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 v=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 x=function(){};
var aa=function(a){a.getInstance=function(){return a.Mb?a.Mb:a.Mb=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 ga=function(a){return"function"==ba(a)};
var ha=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
var ia=function(a){return a[ka]||(a[ka]=++la)};
var ma=function(a,b,c){return a.call.apply(a.bind,arguments)};
var na=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")?ma:na;return A.apply(null,arguments)};
var oa=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 pa=function(a,b){for(var c in b)a[c]=b[c]};
var qa=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.M=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 ra=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ra);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
var sa=function(a,b){return 0==a.lastIndexOf(b,0)};
var ta=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 ua=function(a){return(0,window.encodeURIComponent)(String(a))};
var va=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
var wa=function(a){if(!xa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ya,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(za,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Aa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ba,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ca,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Da,"&#0;"));return a};
var Ea=function(a){return Fa(a,"&")?"document"in r?Ga(a):Ha(a):a};
var Ga=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=r.document.createElement("div");return a.replace(Ia,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 Ha=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 Ja=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
var Fa=function(a,b){return-1!=a.indexOf(b)};
var Ka=function(a,b){return Fa(a.toLowerCase(),b.toLowerCase())};
var La=function(){var a;a="";var b=qa("Skip Ad \u00bb");a=a+b;b=new RegExp(Ma("\u00bb"),"");return a.replace(b,"")};
var Ma=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
var Na=function(a,b,c){a=n(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Oa("0",Math.max(0,b-c))+a};
var D=function(a){return null==a?"":String(a)};
var Pa=function(a){return Array.prototype.join.call(arguments,"")};
var Qa=function(a,b){for(var c=0,d=Ra(String(a)).split("."),e=Ra(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 t=p.exec(l)||["","",""],w=u.exec(m)||["","",""];if(0==t[0].length&&0==w[0].length)break;c=Sa(0==t[1].length?0:(0,window.parseInt)(t[1],10),0==w[1].length?0:(0,window.parseInt)(w[1],10))||Sa(0==t[2].length,0==w[2].length)||Sa(t[2],w[2])}while(0==c)}return c};
var Sa=function(a,b){return a<b?-1:a>b?1:0};
var Ua=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
var Va=function(){return"goog_"+Wa++};
var Xa=function(a){var b=Number(a);return 0==b&&C(a)?window.NaN:b};
var Ya=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};
var Za=function(a){var b=y(void 0)?Ma(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};
var $a=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 ab=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 bb=function(a){return a};
var cb=function(a){return a[a.length-1]};
var db=function(a,b,c){b=eb(a,b,c);return 0>b?null:y(a)?a.charAt(b):a[b]};
var eb=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 fb=function(a,b){var c=gb(a,b,void 0);return 0>c?null:y(a)?a.charAt(c):a[c]};
var gb=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 ib=function(a,b){return 0<=jb(a,b)};
var kb=function(a){return 0==a.length};
var lb=function(a){if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
var nb=function(a,b){ib(a,b)||a.push(b)};
var ob=function(a,b){var c=jb(a,b),d;(d=0<=c)&&pb(a,c);return d};
var pb=function(a,b){Array.prototype.splice.call(a,b,1)};
var qb=function(a,b){var c=eb(a,b,void 0);0<=c&&pb(a,c)};
var rb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};
var sb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
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 ha(a)?"o"+ia(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={};F(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 H=function(){this.Qa=this.Qa;this.Ea=this.Ea};
var J=function(a,b){Lb(a,oa(Mb,b))};
var Lb=function(a,b){a.Qa?b.call(void 0):(a.Ea||(a.Ea=[]),a.Ea.push(n(void 0)?A(b,void 0):b))};
var Mb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
var Nb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ea(d)?Nb.apply(null,d):Mb(d)}};
var Ob=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
var Pb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
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 Yb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
var Zb=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 $b=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 ac=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
var bc=function(a,b){var c=ac(a,b,void 0);return c&&a[c]};
var cc=function(a){for(var b in a)return!1;return!0};
var dc=function(a){for(var b in a)delete a[b]};
var ec=function(a,b){b in a&&delete a[b]};
var fc=function(a,b,c){return null!==a&&b in a?a[b]:c};
var gc=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
var hc=function(a){var b=ba(a);if("object"==b||"array"==b){if(ga(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=hc(a[c]);return b}return a};
var ic=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<jc.length;f++)c=jc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
var kc=function(a){var b=arguments.length;if(1==b&&da(arguments[0]))return kc.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 lc=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.o=!1;this.yq=!0};
var mc=function(a){a.stopPropagation()};
var nc=function(a){nc[" "](a);return a};
var oc=function(a,b){try{return nc(a[b]),!0}catch(c){}return!1};
var pc=function(a){return Fa(qc,a)};
var rc=function(){return pc("Opera")||pc("OPR")};
var sc=function(){return(pc("Chrome")||pc("CriOS"))&&!rc()&&!pc("Edge")};
var tc=function(){return pc("iPhone")&&!pc("iPod")&&!pc("iPad")};
var uc=function(){var a=qc;if(vc)return/rv\:([^\);]+)(\)|;)/.exec(a);if(wc)return/Edge\/([\d\.]+)/.exec(a);if(xc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(yc)return/WebKit\/(\S+)/.exec(a)};
var zc=function(){var a=r.document;return a?a.documentMode:void 0};
var Ac=function(a){return Bc[a]||(Bc[a]=0<=Qa(Cc,a))};
var Dc=function(a,b){lc.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.j=this.state=null;a&&this.init(a,b)};
var Ec=function(a){return!(!a||!a[Fc])};
var Hc=function(a,b,c,d,e){this.listener=a;this.j=null;this.src=b;this.type=c;this.df=!!d;this.Qc=e;this.key=++Ic;this.Kf=this.Gh=!1};
var Jc=function(a){a.Kf=!0;a.listener=null;a.j=null;a.src=null;a.Qc=null};
var Kc=function(a){this.src=a;this.j={};this.o=0};
var Lc=function(a,b,c,d,e,f){var k=b.toString();b=a.j[k];b||(b=a.j[k]=[],a.o++);var l=Mc(b,c,e,f);-1<l?(a=b[l],d||(a.Gh=!1)):(a=new Hc(c,a.src,k,!!e,f),a.Gh=d,b.push(a));return a};
var Nc=function(a,b){var c=b.type;if(!(c in a.j))return!1;var d=ob(a.j[c],b);d&&(Jc(b),0==a.j[c].length&&(delete a.j[c],a.o--));return d};
var Oc=function(a,b,c,d,e){a=a.j[b.toString()];b=-1;a&&(b=Mc(a,c,d,e));return-1<b?a[b]:null};
var Mc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Kf&&f.listener==b&&f.df==!!c&&f.Qc==d)return e}return-1};
var Pc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Pc(a,b[f],c,d,e);return null}c=Qc(c);return Ec(a)?a.R(b,c,d,e):Rc(a,b,c,!1,d,e)};
var Rc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=!!e,l=Sc(a);l||(a[Tc]=l=new Kc(a));c=Lc(l,b,c,d,e,f);if(c.j)return c;d=Uc();c.j=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(Vc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Wc++;return c};
var Uc=function(){var a=Xc,b=Yc?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 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);return null}c=Qc(c);return Ec(a)?Lc(a.bd,String(b),c,!0,d,e):Rc(a,b,c,!0,d,e)};
var $c=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)$c(a,b[f],c,d,e);else c=Qc(c),Ec(a)?a.xa(b,c,d,e):a&&(a=Sc(a))&&(b=Oc(a,b,c,!!d,e))&&ad(b)};
var ad=function(a){if(fa(a)||!a||a.Kf)return!1;var b=a.src;if(Ec(b))return Nc(b.bd,a);var c=a.type,d=a.j;b.removeEventListener?b.removeEventListener(c,d,a.df):b.detachEvent&&b.detachEvent(Vc(c),d);Wc--;(c=Sc(b))?(Nc(c,a),0==c.o&&(c.src=null,b[Tc]=null)):Jc(a);return!0};
var Vc=function(a){return a in bd?bd[a]:bd[a]="on"+a};
var cd=function(a,b,c,d){var e=!0;if(a=Sc(a))if(b=a.j[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.df==c&&!f.Kf&&(f=dd(f,d),e=e&&!1!==f)}return e};
var dd=function(a,b){var c=a.listener,d=a.Qc||a.src;a.Gh&&ad(a);return c.call(d,b)};
var Xc=function(a,b){if(a.Kf)return!0;if(!Yc){var c=b||v("window.event"),d=new Dc(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.o&&0<=k;k--){d.currentTarget=c[k];var l=cd(c[k],f,!0,d),e=e&&l}for(k=0;!d.o&&k<c.length;k++)d.currentTarget=c[k],l=cd(c[k],f,!1,d),e=e&&l}return e}return dd(a,new Dc(b,
this))};
var Sc=function(a){a=a[Tc];return a instanceof Kc?a:null};
var Qc=function(a){if(ga(a))return a;a[ed]||(a[ed]=function(b){return a.handleEvent(b)});
return a[ed]};
var fd=function(){H.call(this);this.bd=new Kc(this);this.Ha=this;this.ia=null};
var gd=function(a,b,c,d){b=a.bd.j[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.Kf&&k.df==c){var l=k.listener,m=k.Qc||k.src;k.Gh&&Nc(a.bd,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.yq};
var hd=function(a,b,c){this.C=c;this.A=a;this.B=b;this.o=0;this.j=null};
var id=function(a){return function(){return a}};
var jd=function(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
var kd=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 ld=function(a){r.setTimeout(function(){throw a;},0)};
var md=function(a,b){var c=a;b&&(c=A(a,b));!ga(r.setImmediate)||r.Window&&r.Window.prototype&&!pc("Edge")&&r.Window.prototype.setImmediate==r.setImmediate?(nd||(nd=od()),nd(c)):r.setImmediate(c)};
var od=function(){var a=r.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!pc("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=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&&!pc("Trident")&&!pc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.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 pd=function(){this.o=this.j=null};
var qd=function(){this.next=this.scope=this.j=null};
var rd=function(a,b){sd||td();ud||(sd(),ud=!0);var c=vd,d=wd.get();d.set(a,b);c.o?c.o.next=d:c.j=d;c.o=d};
var td=function(){if(r.Promise&&r.Promise.resolve){var a=r.Promise.resolve(void 0);sd=function(){a.then(xd)}}else sd=function(){md(xd)}};
var xd=function(){for(var a=null;a=vd.remove();){try{a.j.call(a.scope)}catch(b){ld(b)}wd.put(a)}ud=!1};
var yd=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};
var zd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
var Ad=function(a,b){this.j=0;this.F=void 0;this.B=this.o=this.A=null;this.C=this.D=!1;if(a!=x)try{var c=this;a.call(b,function(a){Bd(c,2,a)},function(a){Bd(c,3,a)})}catch(d){Bd(this,3,d)}};
var Cd=function(){this.next=this.context=this.o=this.A=this.j=null;this.B=!1};
var Dd=function(a,b,c){var d=Ed.get();d.A=a;d.o=b;d.context=c;return d};
var Fd=function(a){return new Ad(function(b,c){c(a)})};
var Gd=function(a,b){return Hd(a,null,b,void 0)};
var Id=function(a,b){if(0==a.j)if(a.A){var c=a.A;if(c.o){for(var d=0,e=null,f=null,k=c.o;k&&(k.B||(d++,k.j==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.j&&1==d?Id(c,b):(f?(d=f,d.next==c.B&&(c.B=d),d.next=d.next.next):Jd(c),Kd(c,e,3,b)))}a.A=null}else Bd(a,3,b)};
var Ld=function(a,b){a.o||2!=a.j&&3!=a.j||Md(a);a.B?a.B.next=b:a.o=b;a.B=b};
var Hd=function(a,b,c,d){var e=Dd(null,null,null);e.j=new Ad(function(a,k){e.A=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){k(p)}}:a;
e.o=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof Nd?k(b):a(e)}catch(p){k(p)}}:k});
e.j.A=a;Ld(a,e);return e.j};
var Bd=function(a,b,c){if(0==a.j){a==c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.j=1;var d;a:{var e=c,f=a.H,k=a.J;if(e instanceof Ad)Ld(e,Dd(f||x,k||null,a)),d=!0;else if(zd(e))e.then(f,k,a),d=!0;else{if(ha(e))try{var l=e.then;if(ga(l)){Od(e,l,f,k,a);d=!0;break a}}catch(m){k.call(a,m);d=!0;break a}d=!1}}d||(a.F=c,a.j=b,a.A=null,Md(a),3!=b||c instanceof Nd||Pd(a,c))}};
var Od=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 Md=function(a){a.D||(a.D=!0,rd(a.G,a))};
var Jd=function(a){var b=null;a.o&&(b=a.o,a.o=b.next,b.next=null);a.o||(a.B=null);return b};
var Kd=function(a,b,c,d){if(3==c&&b.o&&!b.B)for(;a&&a.C;a=a.A)a.C=!1;if(b.j)b.j.A=null,Qd(b,c,d);else try{b.B?b.A.call(b.context):Qd(b,c,d)}catch(e){Rd.call(null,e)}Ed.put(b)};
var Qd=function(a,b,c){2==b?a.A.call(a.context,c):a.o&&a.o.call(a.context,c)};
var Pd=function(a,b){a.C=!0;rd(function(){a.C&&Rd.call(null,b)})};
var Nd=function(a){ra.call(this,a)};
var Sd=function(a,b){fd.call(this);this.j=a||1;this.o=b||r;this.A=A(this.gw,this);this.B=K()};
var Td=function(a,b){a.j=b;a.wa&&a.enabled?(a.stop(),a.start()):a.wa&&a.stop()};
var Ud=function(a,b,c){if(ga(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 Vd=function(a){r.clearTimeout(a)};
var Wd=function(a,b,c){H.call(this);this.j=a;this.B=b||0;this.o=c;this.A=A(this.ho,this)};
var Xd=function(a){a.stop();a.ho()};
var Yd=function(a){if(a.classList)return a.classList;a=a.className;return y(a)&&a.match(/\S+/g)||[]};
var Zd=function(a,b){return a.classList?a.classList.contains(b):ib(Yd(a),b)};
var L=function(a,b){a.classList?a.classList.add(b):Zd(a,b)||(a.className+=0<a.className.length?" "+b:b)};
var $d=function(a,b){if(a.classList)F(b,function(b){L(a,b)});
else{var c={};F(Yd(a),function(a){c[a]=!0});
F(b,function(a){c[a]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};
var ae=function(a,b){a.classList?a.classList.remove(b):Zd(a,b)&&(a.className=be(Yd(a),function(a){return a!=b}).join(" "))};
var ce=function(a,b){a.classList?F(b,function(b){ae(a,b)}):a.className=be(Yd(a),function(a){return!ib(b,a)}).join(" ")};
var N=function(a,b,c){c?L(a,b):ae(a,b)};
var de=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};
var ee=function(a){return eval("("+a+")")};
var fe=function(a){return(new ge(void 0)).oc(a)};
var ge=function(a){this.j=a};
var he=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(da(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],he(a,a.j?a.j.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),ie(d,c),c.push(":"),he(a,a.j?a.j.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":ie(b,
c);break;case "number":c.push((0,window.isFinite)(b)&&!(0,window.isNaN)(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
var ie=function(a,b){b.push('"',a.replace(je,function(a){var b=ke[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),ke[a]=b);return b}),'"')};
var le=function(a,b,c){return Math.min(Math.max(a,b),c)};
var ne=function(a){return oe(arguments,function(a,c){return a+c},0)};
var pe=function(a){return ne.apply(null,arguments)/arguments.length};
var qe=function(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0};
var re=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
var se=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
var te=function(a,b){this.width=a;this.height=b};
var ue=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
var ve=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
var we=function(a){return new se(a.top,a.left+a.width,a.top+a.height,a.left)};
var xe=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
var ye=function(a){return new te(a.width,a.height)};
var ze=function(a){return new qe(a.left,a.top)};
var Ae=function(a,b){return b?a.replace(Be,""):a};
var Ce=function(){this.j="";this.o=De};
var Ee=function(a){return a instanceof Ce&&a.constructor===Ce&&a.o===De?a.j:"type_error:Const"};
var Fe=function(a){var b=new Ce;b.j=a;return b};
var Ge=function(){this.j="";this.o=He};
var Ie=function(a){var b=new Ge;b.j=a;return b};
var Je=function(){this.j="";this.o=Ke};
var Le=function(a){return a instanceof Je&&a.constructor===Je&&a.o===Ke?a.j:"type_error:SafeUrl"};
var Me=function(a){if(a instanceof Je)return a;a=a.Je?a.fd():String(a);Ne.test(a)||(a="about:invalid#zClosurez");var b=new Je;b.j=a;return b};
var Oe=function(){this.j=Pe};
var Qe=function(a){return a instanceof Oe&&a.constructor===Oe&&a.j===Pe?"":"type_error:TrustedResourceUrl"};
var Re=function(){this.j="";this.A=Se;this.o=null};
var Te=function(a){return a instanceof Re&&a.constructor===Re&&a.A===Se?a.j:"type_error:SafeHtml"};
var Ue=function(a){function b(a){if(da(a))F(a,b);else{var f;a instanceof Re?f=a:(f=null,a.Zk&&(f=a.kf()),a=wa(a.Je?a.fd():String(a)),f=Ve(a,f));d+=Te(f);f=f.kf();0==c?c=f:0!=f&&c!=f&&(c=null)}}
var c=0,d="";F(arguments,b);return Ve(d,c)};
var Ve=function(a,b){var c=new Re;c.j=a;c.o=b;return c};
var We=function(a){return a?new Xe(Ye(a)):Ze||(Ze=new Xe)};
var $e=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):af("*",a,b)};
var bf=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=af("*",a,b)[0];return d||null};
var af=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&&ib(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c};
var cf=function(a,b){Ob(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:df.hasOwnProperty(d)?a.setAttribute(df[d],b):sa(d,"aria-")||sa(d,"data-")?a.setAttribute(d,b):a[d]=b})};
var ef=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new te(a.clientWidth,a.clientHeight)};
var ff=function(a){var b=gf(a);a=a.parentWindow||a.defaultView;return xc&&Ac("10")&&a.pageYOffset!=b.scrollTop?new qe(b.scrollLeft,b.scrollTop):new qe(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
var gf=function(a){return a.scrollingElement?a.scrollingElement:yc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
var hf=function(a){return a?a.parentWindow||a.defaultView:window};
var O=function(a,b,c){return jf(window.document,arguments)};
var jf=function(a,b){var c=b[0],d=b[1];if(!kf&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',wa(d.name),'"');if(d.type){c.push(' type="',wa(d.type),'"');var e={};ic(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(" "):cf(c,d));2<b.length&&lf(a,c,b,2);return c};
var lf=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)||ha(f)&&0<f.nodeType?e(f):F(mf(f)?sb(f):f,e)}};
var nf=function(a){return window.document.createElement(a)};
var of=function(a,b){a.appendChild(b)};
var pf=function(a,b){lf(Ye(a),a,arguments,1)};
var qf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
var rf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
var sf=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)};
var tf=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
var uf=function(a){return vf&&void 0!=a.children?a.children:be(a.childNodes,function(a){return 1==a.nodeType})};
var wf=function(a){return n(a.firstElementChild)?a.firstElementChild:xf(a.firstChild)};
var xf=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
var yf=function(a){var b;if(zf&&!(xc&&Ac("9")&&!Ac("10")&&r.SVGElement&&a instanceof r.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ha(b)&&1==b.nodeType?b:null};
var Af=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 Ye=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
var Bf=function(a){try{return a.contentWindow||(a.contentDocument?hf(a.contentDocument):null)}catch(b){}return null};
var Cf=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{qf(a);var c=Ye(a);a.appendChild(c.createTextNode(String(b)))}};
var Df=function(a){if("outerHTML"in a)return a.outerHTML;var b=Ye(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};
var Ef=function(a){var b;if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Ff(a)||Gf(a)):Ff(a)&&Gf(a))&&xc){var c;!ga(a.getBoundingClientRect)||xc&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
var Ff=function(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified};
var Gf=function(a){a=a.tabIndex;return fa(a)&&0<=a&&32768>a};
var mf=function(a){if(a&&"number"==typeof a.length){if(ha(a))return"function"==typeof a.item||"string"==typeof a.item;if(ga(a))return"function"==typeof a.item}return!1};
var Hf=function(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return If(a,function(a){return(!e||a.nodeName==e)&&(!c||y(a.className)&&ib(a.className.split(/\s+/),c))},d)};
var Jf=function(a,b){return Hf(a,null,b,void 0)};
var If=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 Xe=function(a){this.j=a||r.document||window.document};
var Kf=function(a){a=a.j;return a.parentWindow||a.defaultView};
var Lf=function(a){return ff(a.j)};
var Mf=function(){return yc?"Webkit":vc?"Moz":xc?"ms":Nf?"O":null};
var Of=function(a,b,c){if(y(b))(b=Pf(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Pf(c,d);f&&(c.style[f]=e)}};
var Pf=function(a,b){var c=Qf[b];if(!c){var d=Ya(b),c=d;void 0===a.style[d]&&(d=Mf()+Za(d),void 0!==a.style[d]&&(c=d));Qf[b]=c}return c};
var Rf=function(a,b){var c=a.style[Ya(b)];return"undefined"!==typeof c?c:a.style[Pf(a,b)]||""};
var Sf=function(a,b){var c=Ye(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
var Tf=function(a,b){return Sf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
var Vf=function(a,b,c){var d;b instanceof qe?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Wf(d,!1);a.style.top=Wf(b,!1)};
var Xf=function(a){return new qe(a.offsetLeft,a.offsetTop)};
var Yf=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}xc&&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 Zf=function(a){if(xc&&!(8<=$f))return a.offsetParent;var b=Ye(a),c=Tf(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=Tf(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 ag=function(a){for(var b=new se(0,window.Infinity,window.Infinity,0),c=We(a),d=c.j.body,e=c.j.documentElement,f=gf(c.j);a=Zf(a);)if(!(xc&&0==a.clientWidth||yc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Tf(a,"overflow")){var k=bg(a),l=new qe(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=ef(Kf(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 bg=function(a){var b=Ye(a),c=new qe(0,0),d;d=b?Ye(b):window.document;var e;(e=!xc)||(e=9<=$f);e||(e="CSS1Compat"==We(d).j.compatMode);if(a==(e?d.documentElement:d.body))return c;a=Yf(a);b=Lf(We(b));c.x=a.left+b.x;c.y=a.top+b.y;return c};
var cg=function(a,b){var c=new qe(0,0),d=hf(Ye(a));if(!oc(d,"parent"))return c;var e=a;do{var f=d==b?bg(e):dg(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 eg=function(a,b){var c=fg(a),d=fg(b);return new qe(c.x-d.x,c.y-d.y)};
var dg=function(a){a=Yf(a);return new qe(a.left,a.top)};
var fg=function(a){if(1==a.nodeType)return dg(a);a=a.changedTouches?a.changedTouches[0]:a;return new qe(a.clientX,a.clientY)};
var gg=function(a,b,c){if(b instanceof te)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");hg(a,b);a.style.height=Wf(c,!0)};
var Wf=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
var hg=function(a,b){a.style.width=Wf(b,!0)};
var ig=function(a){return jg(a)};
var jg=function(a){var b=kg;if("none"!=Tf(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 kg=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=yc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new te(b,c):(a=Yf(a),new te(a.right-a.left,a.bottom-a.top))};
var lg=function(a){var b=bg(a);a=jg(a);return new ve(b.x,b.y,a.width,a.height)};
var mg=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 ng=function(a,b){a.style.display=b?"":"none"};
var og=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 pg=function(a){var b=Tf(a,"fontSize"),c;c=(c=b.match(qg))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(xc){if(c in rg)return og(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in sg)return a=a.parentNode,c=Tf(a,"fontSize"),og(a,b==c?"1em":b)}c=O("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;sf(c);return b};
var tg=function(){};
var ug=function(a){if(a instanceof tg)return a;if("function"==typeof a.Ub)return a.Ub(!1);if(ea(a)){var b=0,c=new tg;c.next=function(){for(;;){if(b>=a.length)throw vg;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
var wg=function(a,b,c){if(ea(a))try{F(a,b,c)}catch(d){if(d!==vg)throw d;}else{a=ug(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==vg)throw d;}}};
var xg=function(a){if(ea(a))return sb(a);a=ug(a);var b=[];wg(a,function(a){b.push(a)});
return b};
var yg=function(a,b){this.o={};this.j=[];this.be=this.va=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 yg?(c=a.Na(),d=a.Ka()):(c=Yb(a),d=Wb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
var zg=function(a,b){return Ag(a.o,b)};
var Bg=function(a,b){return a===b};
var Cg=function(a){if(a.va!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Ag(a.o,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.va!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],Ag(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
var Ag=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
var Dg=function(a){return a.Xa&&"function"==typeof a.Xa?a.Xa():ea(a)||y(a)?a.length:Tb(a)};
var Eg=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 Fg=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 Yb(a)}};
var Gg=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(ea(a)||y(a))F(a,b,c);else for(var d=Fg(a),e=Eg(a),f=e.length,k=0;k<f;k++)b.call(c,e[k],d&&d[k],a)};
var Hg=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ea(a)||y(a))return Ig(a,b,c);for(var d=Fg(a),e=Eg(a),f=e.length,k=0;k<f;k++)if(!b.call(c,e[k],d&&d[k],a))return!1;return!0};
var Jg=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 Kg=function(a){return a.match(Lg)};
var Mg=function(a){return a?(0,window.decodeURI)(a):a};
var Ng=function(a){return Mg(Kg(a)[3]||null)};
var Og=function(a){return Number(Kg(a)[4]||null)||null};
var Pg=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?va(k):"")}};
var Qg=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 Rg=function(a,b,c){if(da(b))for(var d=0;d<b.length;d++)Rg(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",ua(b))};
var Sg=function(a,b,c){for(c=c||0;c<b.length;c+=2)Rg(b[c],b[c+1],a);return a};
var Tg=function(a,b){for(var c in b)Rg(c,b[c],a);return a};
var Ug=function(a){a=Tg([],a);a[0]="";return a.join("")};
var Vg=function(a,b){return Qg(2==arguments.length?Sg([a],arguments[1],0):Sg([a],arguments,1))};
var Wg=function(a,b){return Qg(Tg([a],b))};
var Xg=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 Yg=function(a,b){var c=a.search(Zg),d=Xg(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 va(a.substr(d,e-d))};
var $g=function(a,b){for(var c=a.search(Zg),d=0,e,f=[];0<=(e=Xg(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(ah,"$1")};
var bh=function(a,b,c){a=[$g(a,b),"&",b];null!=c&&a.push("=",ua(c));return Qg(a)};
var P=function(a,b){this.o=this.G=this.B="";this.C=null;this.H=this.A="";this.D=!1;var c;a instanceof P?(this.D=n(b)?b:a.D,ch(this,a.B),this.G=a.G,dh(this,a.o),eh(this,a.C),fh(this,a.A),gh(this,a.j.clone()),this.H=a.Ce()):a&&(c=Kg(String(a)))?(this.D=!!b,ch(this,c[1]||"",!0),this.G=hh(c[2]||""),dh(this,c[3]||"",!0),eh(this,c[4]),fh(this,c[5]||"",!0),gh(this,c[6]||"",!0),this.H=hh(c[7]||"")):(this.D=!!b,this.j=new ih(null,0,this.D))};
var ch=function(a,b,c){a.B=c?hh(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
var jh=function(a){return a.o};
var dh=function(a,b,c){a.o=c?hh(b,!0):b;return a};
var eh=function(a,b){if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null;return a};
var fh=function(a,b,c){a.A=c?hh(b,!0):b};
var gh=function(a,b,c){b instanceof ih?(a.j=b,kh(a.j,a.D)):(c||(b=lh(b,mh)),a.j=new ih(b,0,a.D));return a};
var nh=function(a){return a.j};
var oh=function(a,b,c){a.j.set(b,c);return a};
var ph=function(a,b,c){da(c)||(c=[String(c)]);qh(a.j,b,c)};
var rh=function(a){oh(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^K()).toString(36));return a};
var sh=function(a){return a instanceof P?a.clone():new P(a,void 0)};
var th=function(a,b,c,d){var e=new P(null,void 0);a&&ch(e,a);b&&dh(e,b);c&&eh(e,c);d&&fh(e,d);return e};
var hh=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
var lh=function(a,b,c){return y(a)?(a=(0,window.encodeURI)(a).replace(b,uh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
var uh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
var ih=function(a,b,c){this.va=this.j=null;this.o=a||null;this.A=!!c};
var vh=function(a){a.j||(a.j=new yg,a.va=0,a.o&&Pg(a.o,function(b,c){wh(a,va(b),c)}))};
var wh=function(a,b,c){vh(a);a.o=null;b=xh(a,b);var d=a.j.get(b);d||a.j.set(b,d=[]);d.push(c);a.va++};
var yh=function(a,b){vh(a);b=xh(a,b);return zg(a.j,b)};
var qh=function(a,b,c){a.remove(b);0<c.length&&(a.o=null,a.j.set(xh(a,b),sb(c)),a.va+=c.length)};
var xh=function(a,b){var c=String(b);a.A&&(c=c.toLowerCase());return c};
var kh=function(a,b){b&&!a.A&&(vh(a),a.o=null,a.j.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),qh(this,e,a))},a));
a.A=b};
var zh=function(a){var b=["b","i","u"],b=b||[];return a=a.replace(/<\/?([^>]*)>?/g,function(a,d){return-1<b.indexOf(d)?a:""})};
var Ah=function(a){var b=Bh();a.innerHTML=b};
var Ch=function(){return Dh?'<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 Eh=function(){return Dh?'<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 Fh=function(){return Dh?'<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 Gh=function(){return Dh?'<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 Bh=function(){return Dh?'<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 Hh=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 Ih=function(a,b){if(a in b)return b[a];var c=Jh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};
var Kh=function(a,b){var c;Lh(a,function(a){c=Ih(a,b);return!!c});
return c};
var Mh=function(a){var b=window.document;if("on"+a in b)return a;a=Jh+a;return"on"+a in b?a:null};
var Nh=function(){return!!Kh(["fullscreenEnabled","fullScreenEnabled"],window.document)};
var Oh=function(){return Kh(["fullscreenElement","fullScreenElement"],window.document)};
var Ph=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||gc(Qh);this.assets=a.assets||{};this.attrs=a.attrs||gc(Rh);this.params=a.params||gc(Sh);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 Th=function(a){window.chrome?Uh(0,a):a(null)};
var Uh=function(a,b){a==Vh.length?b(null):Wh(Vh[a],function(c){c?b(Vh[a]):Uh(a+1,b)})};
var Wh=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+Xh,!0),c.send()}catch(d){b(!1)}};
var Yh=function(a){var b=window.document.createElement("script");b.src=a;(window.document.head||window.document.documentElement).appendChild(b)};
var Zh=function(){var a=window.navigator.userAgent;return 0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")};
var $h=function(){if(window.navigator.presentation&&Zh())Yh("//www.gstatic.com/eureka/clank"+Xh);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}}Th(function(a){a?(window.chrome=window.chrome||{},window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=a,Yh("chrome-extension://"+a+Xh)):(a=window.__onGCastApiAvailable)&&"function"==typeof a&&a(!1,
"No cast extension found")})}};
var ai=function(a){ci();di.push(a);ei(di)};
var fi=function(a){var b=v("yt.mdx.remote.debug.handlers_");ob(b||[],a)};
var gi=function(a,b){ci();var c=di,d=hi(a,String(b));kb(c)?ii(d):(ei(c),F(c,function(a){a(d)}))};
var ci=function(){di||(di=v("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",di,void 0))};
var ii=function(a){var b=(ji+1)%50;ji=b;ki[b]=a;li||(li=49==b)};
var ei=function(a){var b=ki;if(b[0]){var c=ji,d=li?c:-1;do{var d=(d+1)%50,e=b[d];F(a,function(a){a(e)})}while(d!=c);
ki=Array(50);ji=-1;li=!1}};
var hi=function(a,b){var c=(K()-mi)/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 ni=function(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.j=a.uuid||a.dialId||""};
var oi=function(a,b){return!!b&&(a.id==b||a.j==b)};
var pi=function(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.j==b.j:!0};
var qi=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.j}};
var ri=function(a){return new ni(a)};
var si=function(a){return da(a)?Q(a,ri):[]};
var ti=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.j?".."+a.j.slice(-6):"-")+"}":"null"};
var ui=function(a){return da(a)?"["+Q(a,ti).join(",")+"]":"null"};
var vi=function(a,b,c){a&&(a.dataset?a.dataset[wi(b)]=c:a.setAttribute("data-"+b,c))};
var wi=function(a){return xi[a]||(xi[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};
var yi=function(a){H.call(this);this.C=1;this.A=[];this.B=0;this.j=[];this.o={};this.D=Boolean(a)};
var zi=function(a,b,c,d){if(b=a.o[b]){var e=a.j;if(b=db(b,function(a){return e[a+1]==c&&e[a+2]==d}))return a.$b(b)}return!1};
var Ai=function(a,b,c){rd(function(){a.apply(b,c)})};
var Bi=function(a){Ci(Di,arguments)};
var Ei=function(a,b){return a in Di?Di[a]:b};
var Fi=function(a,b){ga(a)&&(a=Gi(a));return window.setTimeout(a,b)};
var Hi=function(a,b){ga(a)&&(a=Gi(a));return window.setInterval(a,b)};
var Ii=function(a){window.clearTimeout(a)};
var Ji=function(a){window.clearInterval(a)};
var Gi=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Ki(b),b;}}:a};
var Ki=function(a,b){var c=v("yt.logging.errors.log");c?c(a,b):(c=Ei("ERRORS",[]),c.push([a,b]),Bi("ERRORS",c))};
var Li=function(a){Ci(Mi,arguments)};
var R=function(a,b,c){var d=b||{};if(a=a in Mi?Mi[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a};
var Ci=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 Ni=function(a,b,c){var d=Oi();if(d){var e=d.subscribe(a,function(){if(!Pi||Pi!=e){var d=arguments,k=function(){Qi[e]&&b.apply(c||window,d)};
try{Ri[a]?k():Fi(k,0)}catch(l){Ki(l)}}},c);
Qi[e]=!0;Si[a]||(Si[a]=[]);Si[a].push(e);return e}return 0};
var Ti=function(a){var b=Oi();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete Qi[a]}))};
var Ui=function(a,b){var c=Oi();c&&c.publish.apply(c,arguments)};
var Vi=function(a,b){Ri[a]=!0;var c=Oi();c&&c.publish.apply(c,arguments);Ri[a]=!1};
var Oi=function(){return v("yt.pubsub.instance_")};
var Wi=function(){};
var Xi=function(){};
var Yi=function(a){this.j=a};
var Zi=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
var $i=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
var aj=function(a){this.j=a};
var bj=function(a){this.j=a};
var cj=function(a){this.data=a};
var dj=function(a){return!n(a)||a instanceof cj?a:new cj(a)};
var ej=function(a){this.j=a};
var fj=function(a){var b=a.creation;a=a.expiration;return!!a&&a<K()||!!b&&b>K()};
var gj=function(a){this.j=a};
var hj=function(a,b){var c=[];wg(b,function(a){var b;try{b=gj.prototype.o.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}n(b)?fj(b)&&c.push(a):c.push(a)},a);
return c};
var ij=function(a,b){var c=hj(a,b);F(c,function(a){gj.prototype.remove.call(this,a)},a)};
var jj=function(){var a=kj;ij(a,a.j.Ub(!0))};
var lj=function(a,b,c){var d=c&&0<c?c:0;c=d?K()+1E3*d:0;if((d=d?kj:mj)&&window.JSON){y(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
var nj=function(a){if(!mj&&!kj||!window.JSON)return null;var b;try{b=mj.get(a)}catch(c){}if(!y(b))try{b=kj.get(a)}catch(c){}if(!y(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};
var oj=function(a){mj&&mj.remove(a);kj&&kj.remove(a)};
var pj=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 qj=function(a,b){Ee(a);Ee(a);return Ve(b,null)};
var rj=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=va(k[0]||""),k=va(k[1]||"");l in d?da(d[l])?ub(d[l],k):d[l]=[d[l],k]:d[l]=k}}return d};
var sj=function(a,b){var c=[];Ob(a,function(a,b){var f=ua(b),k;da(a)?k=a:k=[a];F(k,function(a){""==a?c.push(f):c.push(f+"="+ua(a))})});
return c.join(b)};
var tj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return rj(a,"&")};
var uj=function(a){a=a.split(",");return a=a.map(function(a){return tj(a)})};
var vj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),tj(1<a.length?a[1]:a[0])):{}};
var wj=function(a,b){return xj(a,b||{},!0)};
var xj=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=tj(e[1]||""),f;for(f in b)if(c||!$b(e,f))e[f]=b[f];return Wg(a,e)+d};
var yj=function(a){var b;b||(b=window.location.href);var c=Kg(a)[1]||null,d=Ng(a);c&&d?(a=Kg(a),b=Kg(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Ng(b)==d&&Og(b)==Og(a):!0;return a};
var zj=function(){var a;a||(a=window.document.location.href);a=Kg(a)[1]||null;return null!==a&&"https"==a};
var Aj=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 Bj=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Gi(b)(m)}
var m=Cj&&Cj();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=Dj(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 Dj=function(a,b){b=b||{};for(var c in Ej){var d=Ei(Ej[c]),e;if((e=d)&&!(e=yj(a))){e=c;var f=Ei("CORS_HEADER_WHITELIST")||{},k=Ng(a);e=k?(f=f[k])?ib(f,e):!1:!0}e&&(b[c]=d)}return b};
var Fj=function(a,b){b.method="POST";b.Bb||(b.Bb={});Gj(a,b)};
var Hj=function(a,b){var c=Ei("XSRF_FIELD_NAME",void 0),d;b.headers&&(d=b.headers["Content-Type"]);return!b.QJ&&(!Ng(a)||b.withCredentials||Ng(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Bb&&b.Bb[c])};
var Gj=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=Ei("XSRF_FIELD_NAME",void 0),e=Ei("XSRF_TOKEN",void 0),f=b.Vc;f&&(f[d]&&delete f[d],a=wj(a,f));var k=b.postBody||"",f=b.Bb;Hj(a,b)&&(f||(f={}),f[d]=e);f&&y(k)&&(d=tj(k),ic(d,f),k=Ug(d));var l=!1,m,p=Bj(a,function(a){if(!l){l=!0;m&&Ii(m);var d=Aj(a),e=null;if(d||400<=a.status&&500>a.status)e=Ij(c,
a,b.Gv);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.kb&&b.kb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.Rb&&b.Rb.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.Ud&&0<b.timeout&&(m=Fi(function(){l||(l=!0,p.abort(),Ii(m),b.Ud.call(b.context||r,p))},b.timeout));
return p};
var Ij=function(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=ee(a));break;case "XML":if(b=(b=b.responseXML)?Jj(b):null)d={},F(b.getElementsByTagName("*"),function(a){d[a.tagName]=Kj(a)})}c&&Lj(d);
return d};
var Lj=function(a){if(ha(a))for(var b in a)"html_content"==b||ta(b,"_html")?a[b]=qj(Fe("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):Lj(a[b])};
var Jj=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
var Kj=function(a){var b="";F(a.childNodes,function(a){b+=a.nodeValue});
return b};
var Mj=function(a){this.B=this.A="";this.j="/api/lounge";this.o=!0;a=a||window.document.location.href;var b=Og(a)||"";b&&(this.B=":"+b);this.A=Ng(a)||"";a=qc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Qa(a,"10.0")&&(this.o=!1))};
var Nj=function(a,b,c,d){var e=a.j;if(n(d)?d:a.o)e="https://"+a.A+a.B+a.j;return Wg(e+b,c||{})};
var Oj=function(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,kb:oa(a.D,d,!0),onError:oa(a.C,e),Ud:oa(a.F,e)};c&&(a.Bb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Gj(b,a)};
var Pj=function(a){this.j=this.name=this.id="";this.status="UNKNOWN";a&&(this.id=a.id||"",this.name=a.name||"",this.j=a.activityId||"",this.status=a.status||"UNKNOWN")};
var Qj=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 Rj=function(a){return Q(a,function(a){return{key:a.id,name:a.name}})};
var Sj=function(a){return Q(a,function(a){return new Pj(a)})};
var Tj=function(a,b){return db(a,function(a){return a.id==b})};
var Uj=function(a,b){return db(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};
var Vj=function(a,b){return db(a,function(a){return oi(a,b)})};
var Wj=function(){H.call(this);this.P=new yi;J(this,this.P)};
var Xj=function(a){Wj.call(this);this.D=a;this.screens=[]};
var Yj=function(a,b){var c=a.get(b.j)||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.j=b.j||c.j;return c.name!=d}a.screens.push(b);return!0};
var Zj=function(a,b){var c=a.screens.length!=b.length;a.screens=be(a.screens,function(a){return!!Uj(b,a)});
for(var d=0,e=b.length;d<e;d++)c=Yj(a,b[d])||c;return c};
var ak=function(a,b){var c=a.screens.length;a.screens=be(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.screens.length<c};
var bk=function(a,b,c,d){Wj.call(this);this.D=a;this.C=b;this.A=c;this.B=d;this.o=0;this.j=null;this.wa=window.NaN};
var ck=function(a,b){this.o=a;this.j=b+"::"};
var dk=function(a){var b=new Zi;return b.isAvailable()?a?new ck(b,a):b:null};
var ek=function(a){this.j=new yg;if(a){a=Eg(a);for(var b=a.length,c=0;c<b;c++)fk(this,a[c])}};
var gk=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ia(a):b.substr(0,1)+a};
var fk=function(a,b){a.j.set(gk(b),b)};
var hk=function(a,b){var c=Dg(b);if(a.Xa()>c)return!1;!(b instanceof ek)&&5<c&&(b=new ek(b));return Hg(a,function(a){var c=b;return c.contains&&"function"==typeof c.contains?c.contains(a):c.xe&&"function"==typeof c.xe?c.xe(a):ea(c)||y(c)?ib(c,a):Vb(c,a)})};
var ik=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new ek;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 ek(be((a.capabilities||"").split(","),oa(Ub,jk))))};
var kk=function(a){this.j=a};
var lk=function(a){a=(a.j.cookie||"").split(mk);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 nk=function(a,b,c){ok.set(""+a,b,c,"/","youtube.com")};
var pk=function(){var a=qk(),b=rk();ib(a,b);sk()&&Hb(a,b);a=tk(a);if(kb(a))try{a="remote_sid",ok.remove(""+a,"/","youtube.com")}catch(c){}else try{nk("remote_sid",a.join(","),-1)}catch(c){}};
var qk=function(){var a=nj("yt-remote-connected-devices")||[];Cb(a);return a};
var tk=function(a){if(kb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return Q(a,function(a,b){return 0==b?a:a.substring(c.length)})};
var uk=function(a){lj("yt-remote-connected-devices",a,86400)};
var rk=function(){if(vk)return vk;var a=nj("yt-remote-device-id");a||(a=Qj(),lj("yt-remote-device-id",a,31536E3));for(var b=qk(),c=1,d=a;ib(b,d);)c++,d=a+"#"+c;return vk=d};
var wk=function(){return nj("yt-remote-session-browser-channel")};
var sk=function(){return nj("yt-remote-session-screen-id")};
var xk=function(a){5<a.length&&(a=a.slice(a.length-5));var b=Q(yk(),function(a){return a.loungeToken}),c=Q(a,function(a){return a.loungeToken});
Ig(c,function(a){return!ib(b,a)})&&zk();
lj("yt-remote-local-screens",a,31536E3)};
var yk=function(){return nj("yt-remote-local-screens")||[]};
var zk=function(){lj("yt-remote-lounge-token-expiration",!0,86400)};
var Ak=function(a){lj("yt-remote-online-screens",a,60)};
var Bk=function(){return nj("yt-remote-online-dial-devices")||[]};
var Ck=function(a,b){lj("yt-remote-session-browser-channel",a);lj("yt-remote-session-screen-id",b);var c=qk(),d=rk();ib(c,d)||c.push(d);uk(c);pk()};
var Dk=function(a){a||(oj("yt-remote-session-screen-id"),oj("yt-remote-session-video-id"));pk();a=qk();ob(a,rk());uk(a)};
var Ek=function(){if(!Fk){var a=dk();a&&(Fk=new aj(a))}return Fk?!!Fk.get("yt-remote-use-staging-server"):!1};
var Gk=function(a){Xj.call(this,"LocalScreenService");this.o=a;this.j=window.NaN;Hk(this);this.info("Initializing with "+ui(this.screens))};
var Ik=function(a){if(a.screens.length){var b=Q(a.screens,function(a){return a.id}),c=Nj(a.o,"/pairing/get_lounge_token_batch");
Oj(a.o,c,{screen_ids:b.join(",")},A(a.uw,a),A(a.tw,a))}};
var Hk=function(a){var b=si(yk()),b=be(b,function(a){return!a.j});
return Zj(a,b)};
var Jk=function(a,b){xk(Q(a.screens,qi));b&&zk()};
var Kk=function(a,b){Wj.call(this);this.C=b;for(var c=nj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.C(),f=0,k=e.length;f<k;++f){var l=e[f].id;d[l]=ib(c,l)}this.j=d;this.D=a;this.A=this.B=window.NaN;this.o=null;Lk("Initialized with "+fe(this.j))};
var Mk=function(a,b,c){var d=Nj(a.D,"/pairing/get_screen_availability");Oj(a.D,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 Nk=function(a,b){var c;a:if(Tb(b)!=Tb(a.j))c=!1;else{c=Yb(b);for(var d=0,e=c.length;d<e;++d)if(!a.j[c[d]]){c=!1;break a}c=!0}c||(Lk("Updated online screens: "+fe(a.j)),a.j=b,a.O("screenChange"));Ok(a)};
var Pk=function(a){(0,window.isNaN)(a.A)||Ii(a.A);a.A=Fi(A(a.Hl,a),0<a.B&&a.B<K()?2E4:1E4)};
var Lk=function(a){gi("OnlineScreenService",a)};
var Qk=function(a){var b={};F(a.C(),function(a){a.token?b[a.token]=a.id:this.Wa("Requesting availability of screen w/o lounge token.")});
return b};
var Ok=function(a){var b=Yb(Pb(a.j,function(a){return a}));
Cb(b);b.length?lj("yt-remote-online-screen-ids",b.join(","),60):oj("yt-remote-online-screen-ids");a=be(a.C(),function(a){return!!this.j[a.id]},a);
Ak(Q(a,qi))};
var Rk=function(a){Xj.call(this,"ScreenService");this.C=a;this.j=this.o=null;this.A=[];this.B={};Sk(this)};
var Tk=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.B[b]);var k=a.ac();if(k=(c?Vj(k,c):null)||Vj(k,b)){k.j=b;var l=Uk(a,k);Mk(a.j,l,function(a){e(a?l:null)})}else c?Vk(a,c,A(function(a){var f=Uk(this,new ni({name:d,
screenId:c,loungeToken:a,dialId:b||""}));Mk(this.j,f,function(a){e(a?f:null)})},a),f):e(null)};
var Wk=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 Vk=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Bb:{screen_ids:b},method:"POST",context:a,kb: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"))}};
Gj(Nj(a.C,"/pairing/get_lounge_token_batch"),e)};
var Xk=function(a){a.screens=a.o.ac();var b=a.B,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.j=c[e.id]||""}a.info("Updated manual screens: "+ui(a.screens))};
var Sk=function(a){Yk(a);a.o=new Gk(a.C);a.o.subscribe("screenChange",A(a.Gw,a));Xk(a);a.A=si(nj("yt-remote-automatic-screen-cache")||[]);Yk(a);a.info("Initializing automatic screens: "+ui(a.A));a.j=new Kk(a.C,A(a.ac,a,!0));a.j.subscribe("screenChange",A(function(){this.O("onlineScreenChange")},a))};
var Uk=function(a,b){var c=a.get(b.id);c?(c.j=b.j,b=c):((c=Vj(a.A,b.j))?(c.id=b.id,c.token=b.token,b=c):a.A.push(b),lj("yt-remote-automatic-screen-cache",Q(a.A,qi)));Yk(a);a.B[b.j]=b.id;lj("yt-remote-device-id-map",a.B,31536E3);return b};
var Yk=function(a){a.B=nj("yt-remote-device-id-map")||{}};
var Zk=function(a,b,c){Wj.call(this);this.L=c;this.H=a;this.o=b;this.A=null};
var $k=function(a,b){gi(a.L,b)};
var al=function(a,b){Zk.call(this,a,b,"CastSession");this.j=null;this.C=0;this.B=null;this.F=A(this.oD,this);this.D=A(this.bC,this);this.C=Fi(A(function(){bl(this,null)},this),12E4)};
var cl=function(a){var b=a.B.videoId||a.B.videoIds[a.B.index];b&&dl(a,"flingVideo",{videoId:b,currentTime:a.B.currentTime||0});a.B=null};
var dl=function(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+fe(c));var d={};d.type=b;c&&(d.data=c);a.j?a.j.sendMessage("urn:x-cast:com.google.youtube.mdx",d,x,A(function(){$k(this,"Failed to send message: "+b+".")},a)):$k(a,"Sending yt message without session: "+fe(d))};
var bl=function(a,b){Ii(a.C);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.A||a.A.id!=b){var c=A(a.Fi,a),d=A(a.Yb,a);a.bo(b,c,d,5)}}else a.Yb(Error("Waiting for session status timed out."))};
var el=function(a,b){Zk.call(this,a,b,"DialSession");this.C=this.G=null;this.J="";this.B=null;this.F=x;this.D=window.NaN;this.K=A(this.rD,this);this.j=x};
var fl=function(a){a.j=a.H.sr(a.J,a.o.label,a.o.friendlyName,A(function(a){this.j=x;this.Fi(a)},a),A(function(a){this.j=x;
this.Yb(a)},a))};
var gl=function(a){var b={};b.pairingCode=a.J;if(a.B){var c=a.B.index||0,d=a.B.currentTime||0;b.v=a.B.videoId||a.B.videoIds[c];b.t=d}Ek()&&(b.env_useStageMdx=1);return Ug(b)};
var hl=function(a,b){Zk.call(this,a,b,"ManualSession");this.j=Fi(A(this.Df,this,null),150)};
var il=function(a){Wj.call(this);this.o=a;this.j=null;this.C=!1;this.A=[];this.B=A(this.XA,this)};
var jl=function(a,b){return b?db(a.A,function(a){return oi(b,a.label)},a):null};
var kl=function(a){gi("Controller",a)};
var ll=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};
var ml=function(a){return a.C||!!a.A.length||!!a.j};
var nl=function(a,b,c){Mb(a.j);(a.j=b)?(c?a.O("yt-remote-cast2-receiver-resumed",b.o):a.O("yt-remote-cast2-receiver-selected",b.o),b.subscribe("sessionScreen",A(a.aq,a,b)),b.A?a.O("yt-remote-cast2-session-change",b.A):c&&a.j.Df(null)):a.O("yt-remote-cast2-session-change",null)};
var ol=function(a){var b=a.o.rr(),c=a.j&&a.j.o;a=Q(b,function(a){c&&oi(a,c.label)&&(c=null);var b=a.j?a.j:a.id,f=jl(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 pl=function(a,b,c){ql()?sl(b)&&(tl(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?ul(a,c):(window.__onGCastApiAvailable=function(b,e){b?ul(a,c):(vl("Failed to load cast API: "+e),wl(!1),tl(!1),oj("yt-remote-cast-available"),oj("yt-remote-cast-receiver"),xl(),c(!1))},$h())):rl("Cannot initialize because not running Chrome")};
var xl=function(){rl("dispose");var a=yl();a&&a.dispose();zl=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);Al(!1);Ti(Bl);Bl.length=0};
var Cl=function(){return!!nj("yt-remote-cast-installed")};
var Dl=function(){var a=nj("yt-remote-cast-receiver");return a?Ea(a.friendlyName):null};
var El=function(){return Cl()?yl()?zl.getCastSession():(vl("getCastSelector: Cast is not initialized."),null):(vl("getCastSelector: Cast API is not installed!"),null)};
var Fl=function(){Cl()?yl()?Gl()?(rl("Requesting cast selector."),zl.requestSession()):(rl("Wait for cast API to be ready to request the session."),Bl.push(Ni("yt-remote-cast2-api-ready",Fl))):vl("requestCastSelector: Cast is not initialized."):vl("requestCastSelector: Cast API is not installed!")};
var Hl=function(a){Gl()?yl().setLaunchParams(a):vl("setLaunchParams called before ready.")};
var Il=function(){var a=Jl();Gl()?yl().setConnectedScreenStatus(a,"YouTube TV"):vl("setConnectedScreenStatus called before ready.")};
var ql=function(){var a;a=0<=qc.search(/\ (CrMo|Chrome|CriOS)\//);return Kl||a};
var Ll=function(a,b){zl.init(a,b)};
var sl=function(a){var b=!1;if(!zl){var c=v("yt.mdx.remote.cloudview.instance_");c||(c=new il(a),c.subscribe("yt-remote-cast2-availability-change",function(a){lj("yt-remote-cast-available",a);Ui("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){rl("onReceiverSelected: "+a.friendlyName);
lj("yt-remote-cast-receiver",a);Ui("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){rl("onReceiverResumed: "+a.friendlyName);
lj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){rl("onSessionChange: "+ti(a));
a||oj("yt-remote-cast-receiver");Ui("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
zl=c}rl("cloudview.createSingleton_: "+b);return b};
var yl=function(){zl||(zl=v("yt.mdx.remote.cloudview.instance_"));return zl};
var ul=function(a,b){wl(!0);tl(!1);Ll(a,function(a){a?(Al(!0),Ui("yt-remote-cast2-api-ready")):(vl("Failed to initialize cast API."),wl(!1),oj("yt-remote-cast-available"),oj("yt-remote-cast-receiver"),xl());b(a)})};
var rl=function(a){gi("cloudview",a)};
var vl=function(a){gi("cloudview",a)};
var wl=function(a){rl("setCastInstalled_ "+a);lj("yt-remote-cast-installed",a)};
var Gl=function(){return!!v("yt.mdx.remote.cloudview.apiReady_")};
var Al=function(a){rl("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)};
var tl=function(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)};
var Ml=function(a,b){this.action=a;this.params=b||null};
var Nl=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 Ol||(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.j=a.pageX;this.o=a.pageY}};
var Pl=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+window.document.documentElement.scrollTop;a.j=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.o=a.clientY+b}};
var Ql=function(a,b,c,d){return ac(Rl,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})};
var Sl=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Ql(a,b,c,d);if(e)return e;var e=++Tl.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new Nl(d);if(!If(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Nl(b);
b.currentTarget=a;return c.call(a,b)};
k=Gi(k);Rl[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 Ul=function(a,b,c){var d;return d=Sl(a,b,function(){Wl(d);c.apply(a,arguments)},void 0)};
var Xl=function(a,b){return Yl(a,b,function(a){return Zd(a,"iv-card-poll-choice-input")})};
var Yl=function(a,b,c){var d=a||window.document;return Sl(d,"change",function(a){var f=If(a.target,function(a){return a===d||c(a)});
f&&f!==d&&!f.disabled&&(a.currentTarget=f,b.call(f,a))})};
var Wl=function(a){a&&("string"==typeof a&&(a=[a]),F(a,function(a){if(a in Rl){var c=Rl[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 Rl[a]}}))};
var Zl=function(a){for(var b in Rl)Rl[b][0]==a&&Wl(b)};
var $l=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
var am=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:$l(a)};
var bm=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 cm=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 qe(b,c)};
var dm=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
var em=function(a){a=a||window.event;return!1===a.returnValue||a.Uo&&a.Uo()};
var fm=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
var gm=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 hm=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 im=function(a){gi("CAST",a)};
var jm=function(a){var b=km();b&&b.logMessage&&b.logMessage(a)};
var lm=function(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;mm.length;)mm.shift()()};
var nm=function(){if(!v("yt.mdx.remote.castv2_")&&!om&&(kb(pm)&&ub(pm,Bk()),hm())){var a=km();a?(a.removeReceiverListener("YouTube",qm),a.addReceiverListener("YouTube",qm),im("API initialized in the other binary")):(a=new window.cast.Api,rm(a),a.addReceiverListener("YouTube",qm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){Fi(function(){window.location.reload(!0)},1E3)}),ai(jm),im("API initialized"));
om=!0}};
var sm=function(){var a=km();a&&(im("API disposed"),fi(jm),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(x),a.removeReceiverListener("YouTube",qm),rm(null));om=!1;mm=null;(a=Ql(window,"message",lm,!1))&&Wl(a)};
var tm=function(a){var b=eb(pm,function(b){return b.id==a.id});
0<=b&&(pm[b]={id:a.id,name:a.name,activityId:a.j,status:a.status})};
var qm=function(a){a.length&&im("Updating receivers: "+fe(a));um(a);Ui("yt-remote-cast-device-list-update");F(vm(),function(a){wm(a.id)});
F(a,function(a){if(a.isTabProjected){var c=xm(a.id);im("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");Fi(function(){Ui("yt-remote-cast-device-tab-projected",c.id)},1E3)}})};
var ym=function(a,b){im("Updating "+a+" activity status: "+fe(b));var c=xm(a);c?(b.activityId&&(c.j=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.j=""),tm(c),Ui("yt-remote-cast-device-status-update",c)):im("Device not found")};
var vm=function(){nm();return Sj(pm)};
var um=function(a){a=Q(a,function(a){var c={id:a.id,name:Ea(a.name)};if(a=xm(a.id))c.activityId=a.j,c.status=a.status;return c});
lb(pm);ub(pm,a)};
var xm=function(a){var b=vm();return db(b,function(b){return b.id==a})||null};
var wm=function(a){var b=xm(a),c=km();c&&b&&b.j&&c.getActivityStatus(b.j,function(b){"error"==b.status&&(b.status="stopped");ym(a,b)})};
var zm=function(a){nm();var b=xm(a),c=km();c&&b&&b.j?(im("Stopping cast activity"),c.stopActivity(b.j,oa(ym,a))):im("Dropping cast activity stop")};
var km=function(){return v("yt.mdx.remote.castapi.api_")};
var rm=function(a){q("yt.mdx.remote.castapi.api_",a,void 0)};
var Am=function(){};
var Bm=function(){this.j=K()};
var Cm=function(a,b){this.o=new ge(a);this.j=b?ee:de};
var Dm=function(a){this.o=0;this.A=a||100;this.j=[]};
var Em=function(a,b){if(b>=a.j.length)throw Error("Out of bounds exception");return a.j.length<a.A?b:(a.o+Number(b))%a.A};
var Fm=function(a,b,c){H.call(this);this.B=null!=c?A(a,c):a;this.A=b;this.o=A(this.vB,this);this.j=[]};
var Gm=function(a){a.wa=Ud(a.o,a.A);a.B.apply(null,a.j)};
var Hm=function(a){H.call(this);this.B=a;this.o={}};
var Im=function(a,b,c,d,e){Jm(a,b,c,d,!1,e)};
var Jm=function(a,b,c,d,e,f){da(c)||(c&&(Km[0]=c.toString()),c=Km);for(var k=0;k<c.length;k++){var l=Pc(b,c[k],d||a.handleEvent,e||!1,f||a.B||a);if(!l)break;a.o[l.key]=l}return a};
var Lm=function(a,b,c,d){Mm(a,b,c,d,void 0)};
var Nm=function(a,b,c,d,e){Mm(a,b,c,d,!1,e)};
var Mm=function(a,b,c,d,e,f){if(da(c))for(var k=0;k<c.length;k++)Mm(a,b,c[k],d,e,f);else(b=Zc(b,c,d||a.handleEvent,e,f||a.B||a))&&(a.o[b.key]=b)};
var Om=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 Pm=function(){};
var Qm=function(a){var b;(b=a.j)||(b={},Rm(a)&&(b[0]=!0,b[1]=!0),b=a.j=b);return b};
var Sm=function(){};
var Tm=function(a){return(a=Rm(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};
var Rm=function(a){if(!a.o&&"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.o=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.o};
var Um=function(a,b,c,d,e){this.j=a;this.A=c;this.G=d;this.F=e||1;this.C=45E3;this.B=new Hm(this);this.o=new Sd;Td(this.o,250)};
var Vm=function(a,b,c){a.pf=1;a.Ld=rh(b.clone());a.Me=c;a.D=!0;Wm(a,null)};
var Xm=function(a,b,c,d,e){a.pf=1;a.Ld=rh(b.clone());a.Me=null;a.D=c;e&&(a.Fq=!1);Wm(a,d)};
var Wm=function(a,b){a.Qg=K();Ym(a);a.Yd=a.Ld.clone();ph(a.Yd,"t",a.F);a.$g=0;a.wb=a.j.hk(a.j.Vg()?b:null);0<a.Gk&&(a.Ji=new Fm(A(a.jr,a,a.wb),a.Gk));a.B.R(a.wb,"readystatechange",a.nC);var c=a.Ee?gc(a.Ee):{};a.Me?(a.cj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.wb.send(a.Yd,a.cj,a.Me,c)):(a.cj="GET",a.Fq&&!yc&&(c.Connection="close"),a.wb.send(a.Yd,a.cj,null,c));a.j.Dc(1)};
var Zm=function(a,b,c){for(var d=!0;!a.te&&a.$g<c.length;){var e=$m(a,c);if(e==an){4==b&&(a.Fe=4,bn(),d=!1);break}else if(e==cn){a.Fe=4;bn();d=!1;break}else dn(a,e)}4==b&&0==c.length&&(a.Fe=1,bn(),d=!1);a.Fc=a.Fc&&d;d||(en(a),fn(a))};
var $m=function(a,b){var c=a.$g,d=b.indexOf("\n",c);if(-1==d)return an;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return cn;d+=1;if(d+c>b.length)return an;var e=b.substr(d,c);a.$g=d+c;return e};
var gn=function(a,b){a.Qg=K();Ym(a);var c=b?window.location.hostname:"";a.Yd=a.Ld.clone();oh(a.Yd,"DOMAIN",c);oh(a.Yd,"t",a.F);try{a.Gc=new window.ActiveXObject("htmlfile")}catch(p){en(a);a.Fe=7;bn();fn(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 hn)k=hn[k];else if(k in jn)k=hn[k]=jn[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=hn[k]=l}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=qj(Fe("b/12014412"),d);a.Gc.open();a.Gc.write(Te(c));a.Gc.close();a.Gc.parentWindow.m=A(a.EB,a);a.Gc.parentWindow.d=A(a.iq,a,!0);a.Gc.parentWindow.rpcClose=A(a.iq,a,!1);c=a.Gc.createElement("DIV");a.Gc.parentWindow.document.body.appendChild(c);d=Me(a.Yd.toString());d=wa(Le(d));d=qj(Fe("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=Te(d);a.j.Dc(1)};
var Ym=function(a){a.lm=K()+a.C;kn(a,a.C)};
var kn=function(a,b){if(null!=a.Vf)throw Error("WatchDog timer not null");a.Vf=ln(A(a.VB,a),b)};
var mn=function(a){a.Vf&&(r.clearTimeout(a.Vf),a.Vf=null)};
var fn=function(a){a.j.jo()||a.te||a.j.Ei(a)};
var en=function(a){mn(a);Mb(a.Ji);a.Ji=null;a.o.stop();a.B.removeAll();if(a.wb){var b=a.wb;a.wb=null;nn(b);b.dispose()}a.Gc&&(a.Gc=null)};
var dn=function(a,b){try{a.j.Xp(a,b),a.j.Dc(4)}catch(c){}};
var on=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;pn(a,b,function(e){e?c(!0):r.setTimeout(function(){on(a,b,c,d,f)},f)})}};
var pn=function(a,b,c){var d=new window.Image;d.onload=function(){try{qn(d),c(!0)}catch(a){}};
d.onerror=function(){try{qn(d),c(!1)}catch(a){}};
d.onabort=function(){try{qn(d),c(!1)}catch(a){}};
d.ontimeout=function(){try{qn(d),c(!1)}catch(a){}};
r.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a};
var qn=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
var rn=function(a){this.j=a;this.o=new Cm(null,!0)};
var sn=function(a){var b=tn(a.j,a.lg,"/mail/images/cleardot.gif");rh(b);on(b.toString(),5E3,A(a.xv,a),3,2E3);a.Dc(1)};
var un=function(a){var b=a.j.H;if(null!=b)bn(),b?(bn(),vn(a.j,a,!1)):(bn(),vn(a.j,a,!0));else if(a.Zb=new Um(a,0,void 0,void 0,void 0),a.Zb.Ee=a.Dk,b=a.j,b=tn(b,b.Vg()?a.zg:null,a.Fk),bn(),!xc||10<=$f)ph(b,"TYPE","xmlhttp"),Xm(a.Zb,b,!1,a.zg,!1);else{ph(b,"TYPE","html");var c=a.Zb;a=Boolean(a.zg);c.pf=3;c.Ld=rh(b.clone());gn(c,a)}};
var wn=function(a){fd.call(this);this.headers=new yg;this.L=a||null;this.A=!1;this.K=this.j=null;this.T=this.G="";this.o=0;this.D="";this.B=this.N=this.F=this.P=!1;this.C=0;this.H=null;this.X="";this.J=this.U=!1};
var xn=function(a,b){a.C=Math.max(0,b)};
var yn=function(a){return xc&&Ac(9)&&fa(a.timeout)&&n(a.ontimeout)};
var zn=function(a){return"content-type"==a.toLowerCase()};
var An=function(a,b){a.A=!1;a.j&&(a.B=!0,a.j.abort(),a.B=!1);a.D=b;a.o=5;Bn(a);Cn(a)};
var Bn=function(a){a.P||(a.P=!0,a.Z("complete"),a.Z("error"))};
var nn=function(a,b){a.j&&a.A&&(Dn(a,"Aborting"),a.A=!1,a.B=!0,a.j.abort(),a.B=!1,a.o=b||7,a.Z("complete"),a.Z("abort"),Cn(a))};
var En=function(a){if(a.A&&"undefined"!=typeof Fn)if(a.K[1]&&4==Gn(a)&&2==a.getStatus())Dn(a,"Local request error detected and ignored");else if(a.F&&4==Gn(a))Ud(a.Tp,0,a);else if(a.Z("readystatechange"),4==Gn(a)){Dn(a,"Request complete");a.A=!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=Kg(String(a.G))[1]||null;if(!f&&r.self&&r.self.location)var k=r.self.location.protocol,
f=k.substr(0,k.length-1);e=!Hn.test(f?f.toLowerCase():"")}d=e}if(d)a.Z("complete"),a.Z("success");else{a.o=6;var l;try{l=2<Gn(a)?a.j.statusText:""}catch(m){l=""}a.D=l+" ["+a.getStatus()+"]";Bn(a)}}finally{Cn(a)}}};
var Cn=function(a,b){if(a.j){In(a);var c=a.j,d=a.K[0]?x:null;a.j=null;a.K=null;b||a.Z("ready");try{c.onreadystatechange=d}catch(e){}}};
var In=function(a){a.j&&a.J&&(a.j.ontimeout=null);fa(a.H)&&(Vd(a.H),a.H=null)};
var Gn=function(a){return a.j?a.j.readyState:0};
var Jn=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
var Dn=function(a,b){return b+" ["+a.T+" "+a.G+" "+a.getStatus()+"]"};
var Kn=function(a,b,c){this.F=a||null;this.j=1;this.o=[];this.B=[];this.C=new Cm(null,!0);this.G=b||null;this.H=null!=c?c:null};
var Ln=function(a,b){this.j=a;this.map=b;this.context=null};
var Mn=function(a){lc.call(this,"statevent",a)};
var Nn=function(a,b){lc.call(this,"timingevent",a);this.size=b};
var On=function(a){lc.call(this,"serverreachability",a)};
var Pn=function(a){Qn(a);if(3==a.j){var b=a.Ig++,c=a.Wh.clone();oh(c,"SID",a.A);oh(c,"RID",b);oh(c,"TYPE","terminate");Rn(a,c);b=new Um(a,0,a.A,b,void 0);b.pf=2;b.Ld=rh(c.clone());(new window.Image).src=b.Ld;b.Qg=K();Ym(b)}Sn(a)};
var Qn=function(a){if(a.Hd){var b=a.Hd;b.Zb&&(b.Zb.cancel(),b.Zb=null);b.gd=-1;a.Hd=null}a.qb&&(a.qb.cancel(),a.qb=null);a.$c&&(r.clearTimeout(a.$c),a.$c=null);Tn(a);a.Pb&&(a.Pb.cancel(),a.Pb=null);a.Id&&(r.clearTimeout(a.Id),a.Id=null)};
var Un=function(a,b){if(0==a.j)throw Error("Invalid operation: sending map when state is closed");a.o.push(new Ln(a.uy++,b));2!=a.j&&3!=a.j||Vn(a)};
var Vn=function(a){a.Pb||a.Id||(a.Id=ln(A(a.fq,a),0),a.ug=0)};
var Wn=function(a,b){if(1==a.j){if(!b){a.Ig=Math.floor(1E5*Math.random());var c=a.Ig++,d=new Um(a,0,"",c,void 0);d.Ee=null;var e=Xn(a),f=a.Wh.clone();oh(f,"RID",c);a.F&&oh(f,"CVER",a.F);Rn(a,f);Vm(d,f,e);a.Pb=d;a.j=2}}else 3==a.j&&(b?Yn(a,b):0!=a.o.length&&(a.Pb||Yn(a)))};
var Yn=function(a,b){var c,d;b?6<a.ve?(a.o=a.B.concat(a.o),a.B.length=0,c=a.Ig-1,d=Xn(a)):(c=b.G,d=b.Me):(c=a.Ig++,d=Xn(a));var e=a.Wh.clone();oh(e,"SID",a.A);oh(e,"RID",c);oh(e,"AID",a.Cf);Rn(a,e);c=new Um(a,0,a.A,c,a.ug+1);c.Ee=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Pb=c;Vm(c,e,d)};
var Rn=function(a,b){if(a.Hb){var c=a.Hb.Xn(a);c&&Ob(c,function(a,c){oh(b,c,a)})}};
var Xn=function(a){var b=Math.min(a.o.length,1E3),c=["count="+b],d;6<a.ve&&0<b?(d=a.o[0].j,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.o[e].j,k=a.o[e].map,f=6>=a.ve?e:f-d;try{Gg(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.B=a.B.concat(a.o.splice(0,b));
return c.join("&")};
var Zn=function(a){a.qb||a.$c||(a.D=1,a.$c=ln(A(a.cq,a),0),a.cf=0)};
var $n=function(a){if(a.qb||a.$c||3<=a.cf)return!1;a.D++;a.$c=ln(A(a.cq,a),ao(a,a.cf));a.cf++;return!0};
var vn=function(a,b,c){a.bj=c;a.zc=b.gd;a.Rv(1,0);a.Wh=tn(a,null,a.Ck);Vn(a)};
var Tn=function(a){null!=a.ye&&(r.clearTimeout(a.ye),a.ye=null)};
var ao=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
var bo=function(a,b){if(2==b||9==b){var c=null;a.Hb&&(c=null);var d=A(a.NC,a);c||(c=new P("//www.google.com/images/cleardot.gif"),rh(c));pn(c.toString(),1E4,d)}else bn();co(a,b)};
var co=function(a,b){a.j=0;a.Hb&&a.Hb.Hn(a,b);Sn(a);Qn(a)};
var Sn=function(a){a.j=0;a.zc=-1;if(a.Hb)if(0==a.B.length&&0==a.o.length)a.Hb.Zj(a);else{var b=sb(a.B),c=sb(a.o);a.B.length=0;a.o.length=0;a.Hb.Zj(a,b,c)}};
var tn=function(a,b,c){var d=sh(c);if(""!=d.o)b&&dh(d,b+"."+d.o),eh(d,d.C);else var e=window.location,d=th(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.sg&&Ob(a.sg,function(a,b){oh(d,b,a)});
oh(d,"VER",a.ve);Rn(a,d);return d};
var ln=function(a,b){if(!ga(a))throw Error("Fn must not be null and must be a function");return r.setTimeout(function(){a()},b)};
var bn=function(){eo.Z(new Mn(eo))};
var fo=function(){};
var go=function(a,b){Sd.call(this);this.C=0;if(ga(a))b&&(a=A(a,b));else if(a&&ga(a.handleEvent))a=A(a.handleEvent,a);else throw Error("Invalid listener argument");this.F=a;Pc(this,"tick",A(this.D,this));this.stop();Td(this,5E3+2E4*Math.random())};
var ho=function(a,b){this.K=a;this.B=b;this.A=new yi;this.o=new go(this.iD,this);this.j=null;this.J=!1;this.D=null;this.H="";this.G=this.C=0;this.F=[]};
var io=function(a){return{firstTestResults:[""],secondTestResults:!a.j.bj,sessionId:a.j.A,arrayId:a.j.Cf}};
var jo=function(a,b){a.G=b||0;a.o.stop();a.j&&(3==a.j.j&&Wn(a.j),Pn(a.j));a.G=0};
var ko=function(a,b){(a.B.loungeIdToken=b)||a.o.stop()};
var lo=function(){this.j=[];this.o=[]};
var mo=function(a){kb(a.j)&&(a.j=a.o,a.j.reverse(),a.o=[])};
var no=function(a,b){a.o.push(b)};
var oo=function(a){mo(a);return a.j.pop()};
var po=function(a){mo(a);return cb(a.j)};
var qo=function(a){this.videoIds=null;this.index=-1;this.videoId=this.o="";this.volume=this.j=-1;this.muted=!1;this.audioTrackId=null;this.C=this.B=0;this.A=null;this.reset(a)};
var ro=function(a,b){if(a.o)throw Error(b+" is not allowed in V3.");};
var so=function(a){a.audioTrackId=null;a.A=null;a.j=-1;a.B=0;a.C=K()};
var to=function(a){a.index=-1;a.videoId="";so(a)};
var uo=function(a){return a.o?a.videoId:a.videoIds[a.index]};
var vo=function(a,b){a.B=b;a.C=K()};
var wo=function(a){switch(a.j){case 1:return(K()-a.C)/1E3+a.B;case -1E3:return 0}return a.B};
var xo=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&so(a)};
var yo=function(a,b,c){ro(a,"setPlaylist");c=c||uo(a);Fb(a.videoIds,b)&&c==uo(a)||(a.videoIds=sb(b),a.setVideoId(c))};
var zo=function(a){var b={};b.videoIds=sb(a.videoIds);b.index=a.index;b.listId=a.o;b.videoId=a.videoId;b.playerState=a.j;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=hc(a.A);b.playerTime=a.B;b.playerTimeAt=a.C;return b};
var Ao=function(a,b){Wj.call(this);this.o=0;this.B=a;this.F=[];this.D=new lo;this.C=window.NaN;this.A=this.j=null;this.J=A(this.ez,this);this.G=A(this.Jg,this);this.H=A(this.dz,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.ym,this),Bo(this))):c=3;0!=c&&(b?this.ym(c):Fi(A(function(){this.ym(c)},this),0));
Co(this,El())};
var Do=function(a){return new qo(a.B.getPlayerContextData())};
var Eo=function(a,b,c,d,e){var f=Do(a);d=d||0;var k={videoId:b,currentIndex:d,listId:e||f.o};xo(f,b,d);n(c)&&(vo(f,c),k.currentTime=c);Fo(a,"setPlaylist",k);e||Go(a,f)};
var Bo=function(a){F(["remotePlayerChange","remoteQueueChange"],function(a){this.F.push(this.B.subscribe(a,oa(this.PA,a),this))},a)};
var Ho=function(a){F(a.F,function(a){this.B.unsubscribeByKey(a)},a);
a.F.length=0};
var Io=function(a,b){50>a.D.Xa()&&no(a.D,b)};
var Jo=function(a,b,c){var d=Do(a);vo(d,c);-1E3!=d.j&&(d.j=b);Go(a,d)};
var Fo=function(a,b,c){a.B.sendMessage(b,c)};
var Go=function(a,b){Ho(a);a.B.setPlayerContextData(zo(b));Bo(a)};
var Ko=function(a){Ii(a.C);a.C=Fi(A(function(){this.O("remotePlayerChange");this.C=window.NaN},a),2E3)};
var Co=function(a,b){a.A&&(a.A.removeUpdateListener(a.J),a.A.removeMediaListener(a.G),a.Jg(null));a.A=b;a.A&&(Lo("Setting cast session: "+a.A.sessionId),a.A.addUpdateListener(a.J),a.A.addMediaListener(a.G),a.A.media.length&&a.Jg(a.A.media[0]))};
var Mo=function(a){var b=a.j.customData;if(a.j.media){var c=a.j.media,d=Do(a);c.contentId!=d.videoId&&Lo("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.j=b.playerState;vo(d,a.j.getEstimatedTime());Go(a,d)}else Lo("No cast media video. Ignoring state update.")};
var Lo=function(a){gi("CP",a)};
var No=function(a,b,c){Wj.call(this);this.C=window.NaN;this.L=!1;this.G=this.F=this.K=this.H=window.NaN;this.N=[];this.A=this.ra=this.j=null;this.ca=a;this.N.push(Sl(window,"beforeunload",A(this.lw,this)));this.o=[];this.ra=new qo;3==c["mdx-version"]&&(this.ra.o="RQ"+b.token);this.U=b.id;this.j=Oo(this,c);this.j.subscribe("handlerOpened",this.jz,this);this.j.subscribe("handlerClosed",this.fz,this);this.j.subscribe("handlerError",this.gz,this);this.ra.o?this.j.subscribe("handlerMessage",this.hz,this):
this.j.subscribe("handlerMessage",this.iz,this);ko(this.j,b.token);this.subscribe("remoteQueueChange",function(){var a=this.ra.videoId;sk()&&lj("yt-remote-session-video-id",a)},this)};
var Oo=function(a,b){return new ho(Nj(a.ca,"/bc",void 0,!1),b)};
var Po=function(a,b){a.O("proxyStateChange",b)};
var Qo=function(a){a.C=Fi(A(function(){this.ib("Connecting timeout");this.B(1)},a),2E4)};
var Ro=function(a){Ii(a.C);a.C=window.NaN};
var So=function(a){Ii(a.H);a.H=window.NaN};
var To=function(a){Uo(a);a.K=Fi(A(function(){Vo(this,"getNowPlaying")},a),2E4)};
var Uo=function(a){Ii(a.K);a.K=window.NaN};
var Wo=function(a){var b=a.j;return!!b.j&&3==b.j.j&&(0,window.isNaN)(a.C)};
var Xo=function(a,b){b&&(Ro(a),So(a));b==Wo(a)?b&&(Po(a,1),Vo(a,"getSubtitlesTrack")):b?(a.J()&&a.ra.reset(),Po(a,1),Vo(a,"getNowPlaying"),Yo(a)):a.B(1)};
var Zo=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.ra.videoId&&(cc(b.params)?a.ra.A=null:a.ra.A=b.params,a.O("remotePlayerChange"))};
var $o=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.ra.o=b.params.listId||a.ra.o;xo(a.ra,c,d);a.O("remoteQueueChange")};
var ap=function(a,b){b.params=b.params||{};$o(a,b);bp(a,b)};
var bp=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);vo(a.ra,(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.ra.j&&(c=-1E3);a.ra.j=c;1==a.ra.j?To(a):Uo(a);a.O("remotePlayerChange")};
var cp=function(a,b){var c="true"==b.params.muted;a.ra.volume=(0,window.parseInt)(b.params.volume,10);a.ra.muted=c;a.O("remotePlayerChange")};
var dp=function(a,b){switch(b.action){case "loungeStatus":var c=de(b.params.devices);a.o=Q(c,function(a){return new ik(a)});
break;case "loungeScreenDisconnected":qb(a.o,function(a){return"LOUNGE_SCREEN"==a.type});
break;case "remoteConnected":var d=new ik(de(b.params.device));db(a.o,function(a){return a.equals(d)})||nb(a.o,d);
break;case "remoteDisconnected":d=new ik(de(b.params.device)),qb(a.o,function(a){return a.equals(d)})}};
var ep=function(a,b){var c=!1;if("loungeStatus"==b.action)c=!!db(a.o,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.H))if(c)So(a);else return;c==Wo(a)?c&&Po(a,1):c?(Ro(a),a.J()&&a.ra.reset(),Po(a,1),Vo(a,"getNowPlaying"),Yo(a)):a.B(1)};
var Yo=function(a){Ii(a.G);a.G=Fi(A(a.B,a,1),864E5)};
var Vo=function(a,b,c){c?a.ib("Sending: action="+b+", params="+fe(c)):a.ib("Sending: action="+b);a.j.sendMessage(b,c)};
var fp=function(a,b){var c=gp(a);return be(b,function(a){return a.j?(a=Tj(this.A,a.j),!!a&&"RUNNING"==a.status):!!Uj(c,a)},a)};
var hp=function(a,b,c){var d=ip,e="";Ii(d.o);d.o=window.NaN;d.B="";if(Tj(d.A,a)){if(!e){var f=e=Qj();nm();var k=xm(a),l=km();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",
tm(k),Ui("yt-remote-cast-device-status-update",k));im("Sending a cast launch request with params: "+m.parameters);l.launch(m,oa(ym,a))}else im("No cast API or no cast device. Dropping cast launch.")}d.B=e;d.o=Fi(A(d.H,d,a,0,e),kp[0])}else d.ib("No DIAL device with id: "+a)};
var lp=function(a,b){var c=Vj(gp(a),b);a.ib("Found screen: "+ti(c)+" with key: "+b);return c};
var mp=function(a){var b=ip,c=Vj(b.j,a);b.ib("Found online screen: "+ti(c)+" with key: "+a);return c};
var np=function(a){var b=ip,c=Tj(b.A,a);if(!c){var d=Vj(b.D,a);d&&(c=Tj(b.A,d.j))}b.ib("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c};
var gp=function(a){return rb(a.C,be(a.D,function(a){return!Uj(this.C,a)},a))};
var op=function(a){Xj.call(this,"ScreenServiceProxy");this.Mb=a;this.j=[];this.j.push(this.Mb.$_s("screenChange",A(this.mD,this)));this.j.push(this.Mb.$_s("onlineScreenChange",A(this.EA,this)))};
var pp=function(a){q("yt.mdx.remote.castv2_",!0,void 0);kj&&jj();pk();qp||(qp=new Mj,Ek()&&(qp.j="/api/loungedev"));rp||(rp=v("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",rp,void 0));up();var b=vp();if(!b){var c=new Rk(qp);q("yt.mdx.remote.screenService_",c,void 0);b=vp();pl(a,c,function(a){a?Jl()&&Il():c.subscribe("onlineScreenChange",function(){Ui("yt-remote-receiver-availability-change")})})}};
var wp=function(){Ti(xp);xp.length=0;Mb(yp);yp=null;rp&&(F(rp,function(a){a(null)}),rp.length=0,rp=null,q("yt.mdx.remote.deferredProxies_",null,void 0));
ip&&(Mb(ip),ip=null);qp=null;sm()};
var zp=function(){if(Ap()&&Cl()){var a=[];if(nj("yt-remote-cast-available")||v("yt.mdx.remote.cloudview.castButtonShown_")||Bp())a.push({key:"cast-selector-receiver",name:Cp()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return v("yt.mdx.remote.cloudview.initializing_")?[]:Dp()};
var Dp=function(){var a=[],a=Ep()?vp().Mb.$_gos():si(nj("yt-remote-online-screens")||[]),b=Fp();b&&Bp()&&(Uj(a,b)||a.push(b));Ep()||(b=Sj(Bk()),b=be(b,function(b){return!Vj(a,b.id)}),a=rb(a,b));
return Rj(a)};
var Gp=function(){if(Ap()&&Cl()){var a=Dl();return a?{key:"cast-selector-receiver",name:a}:null}return Hp()};
var Hp=function(){var a=Dp(),b=Ip(),c=Fp();c||(c=Jp());return db(a,function(a){return c&&oi(c,a.key)||b&&(a=np(a.key))&&a.id==b?!0:!1})};
var Cp=function(){if(Ap()&&Cl())return Dl();var a=Fp();return a?a.name:null};
var Fp=function(){var a=Jl();if(!a)return null;if(!ip){var b=vp().ac();return Vj(b,a)}return lp(ip,a)};
var Kp=function(a,b){Lp("Connecting to: "+fe(a));if("cast-selector-receiver"==a.key)Mp(b||null),Hl(b||null);else{Np();Mp(b||null);var c=null;ip?c=mp(a.key):(c=vp().ac(),c=Vj(c,a.key));if(c)Op(c);else{if(ip&&(c=np(a.key))){Pp(c);return}Fi(function(){Qp(null)},0)}}};
var Np=function(){if(ip){var a=ip;Ii(a.o);a.o=window.NaN;a.B=""}a:{if(a=Bp())if(a=a.getOtherConnectedRemoteId()){Lp("Do not stop DIAL due to "+a);Rp("");break a}(a=Ip())?(Lp("Stopping DIAL: "+a),zm(a),Rp("")):(a=Fp())&&a.j&&(Lp("Stopping DIAL: "+a.j),zm(a.j))}Gl()?yl().stopSession():vl("stopSession called before API ready.");(a=Bp())?a.disconnect(1):(Vi("yt-remote-before-disconnect",1),Vi("yt-remote-connection-change",!1));Qp(null)};
var Sp=function(){var a=Tp(),a=a?a.currentTime:0,b=Up();0==a&&b&&(a=wo(Do(b)));return a};
var Up=function(){var a=Bp();return a&&3!=a.getProxyState()?new Ao(a,void 0):null};
var Lp=function(a){gi("remote",a)};
var Ap=function(){return!!v("yt.mdx.remote.castv2_")};
var Ep=function(){return v("yt.mdx.remote.screenService_")};
var vp=function(){if(!yp){var a=Ep();yp=a?new op(a):null}return yp};
var Jl=function(){return v("yt.mdx.remote.currentScreenId_")};
var Vp=function(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(ip){var b=ip;b.G=K()+3E5;if(b.F=a){var c=lp(b,a);if(c&&!Uj(b.j,c)){a=sb(b.j);a.push(c);var c=fp(b,a),d=!Fb(b.j,c,pi);kb(a)||Ak(Q(c,qi));d&&(b.ib("Updating online screens: "+ui(b.j)+" -> "+ui(c)),b.j=c,b.O("onlineReceiverChange"))}}}};
var Ip=function(){return v("yt.mdx.remote.currentDialId_")};
var Rp=function(a){q("yt.mdx.remote.currentDialId_",a,void 0)};
var Tp=function(){return v("yt.mdx.remote.connectData_")};
var Mp=function(a){q("yt.mdx.remote.connectData_",a,void 0)};
var Bp=function(){return v("yt.mdx.remote.connection_")};
var Qp=function(a){var b=Bp();Mp(null);a?bb(!Bp()):(Vp(""),Rp(""));q("yt.mdx.remote.connection_",a,void 0);rp&&(F(rp,function(b){b(a)}),rp.length=0);
b&&!a?Vi("yt-remote-connection-change",!1):!b&&a&&Ui("yt-remote-connection-change",!0)};
var Jp=function(){var a=sk();if(!a)return null;if(Ep()){var b=vp().ac();return Vj(b,a)}return ip?lp(ip,a):null};
var Op=function(a){bb(!Jl());Vp(a.id);a=new No(qp,a,Wp());a.connect(1,Tp());a.subscribe("beforeDisconnect",function(a){Vi("yt-remote-before-disconnect",a)});
a.subscribe("beforeDispose",function(){Bp()&&(Bp(),Qp(null))});
Qp(a)};
var Pp=function(a){Ip();Lp("Connecting to: "+(a?a.toString():"null"));Rp(a.id);var b=Tp();b?hp(a.id,b.videoIds[b.index],b.currentTime):hp(a.id)};
var up=function(){var a=Wp();if(cc(a)){var a=rk(),b=nj("yt-remote-session-name")||"",c=nj("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 Wp=function(){return v("yt.mdx.remote.channelParams_")||{}};
var Xp=function(a){return(a=Yp.exec(a))?a[0]:""};
var Zp=function(a){var b=$p.test(a),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+aq.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Ki(a,"WARNING"));return b||c};
var bq=function(a){a=new P(a);ch(a,window.document.location.protocol);dh(a,window.document.location.hostname);window.document.location.port&&eh(a,window.document.location.port);return a.toString()};
var cq=function(a){a=new P(a);ch(a,window.document.location.protocol);return a.toString()};
var dq=function(a,b,c){a&&(c?a&&(a=O("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Ye(a).body.appendChild(a)):eq(a,b))};
var fq=function(a){try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||dq(a,void 0)}catch(b){dq(a,void 0)}};
var eq=function(a,b){var c=new window.Image,d=""+gq++;hq[d]=c;c.onload=c.onerror=function(){b&&hq[d]&&b();delete hq[d]};
c.src=a};
var iq=function(a,b){this.start=a;this.end=b;this.A=jq++};
var kq=function(a,b){return a.start-b.start||a.end-b.end||a.A-b.A};
var lq=function(a,b,c){iq.call(this,a,b);a=c||{};this.H=a.id||"";this.D=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.j=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.B=null;this.tooltip=a.tooltip};
var mq=function(a){return{start:a.start,end:a.end,id:a.H,priority:a.D,namespace:a.j,tooltip:a.tooltip,style:"ytp-chapter-marker"==a.style?"chapter":"ad",visible:a.visible}};
var nq=function(a){return a.B||(a.B=new yi)};
var oq=function(a,b){return a.start-b.start||a.D-b.D||a.A-b.A};
var pq=function(a,b){Wj.call(this);this.logEvent=this.qa="";this.ta=b||"";this.da=this.loaded=this.G=!1;this.N=this.F=null;this.j=a;if(this.ta){var c=dk("yt-html5-player-modules::"+this.ta);c&&(this.N=new aj(c))}};
var qq=function(a){var b=a.j,c=b.app;a=a.qa;var b=b.playerType,d=rq(c,b);if(d){for(var d=d.D,e=[],f=d.j.j,k=f.length-1;0<=k;k--){var l=f[k];if(l.j==a){var m=d.o.indexOf(l);0<=m&&d.o.splice(m,1);var p=d.j,m=p.j,p=yb(m,l,p.o);0<=p&&pb(m,p);e.push(l)}}d.qc();b&&c.getPresentingPlayerType()!=b||sq(c,"cuerangesremoved",e)}};
var tq=function(a){a.j.Ri(a.qa)};
var uq=function(a,b,c){var d={},e;for(e in b)d[a.qa+"_"+e]=b[e];b={};for(var f in c)b[a.qa+"_"+f]=c[f];a=a.j.app.B;pa(a.B,d||null);pa(a.A,b||null)};
var vq=function(a,b){if(!a.N)return null;var c;try{c=a.N.get(b)}catch(d){a.N&&a.N.remove(b)}return c};
var wq=function(a,b,c){if(a.N)try{a.N.set(b,c)}catch(d){}};
var xq=function(a){a.O("command_stop_redirect_controls")};
var yq=function(a){a.O("command_play",!1,a.j.playerType)};
var zq=function(a){H.call(this);this.na={};this.ha={};this.element=Aq(this,a)};
var Aq=function(a,b){var c=0,d=nf(b[c++]);if(y(b[c])){var e=b[c++];if(e=Bq(a,d,"className",e))Cq(a,d,"className",e),a.na[e]=d}else if(da(b[c])){for(var e=b[c++],f=0;f<e.length;f++)a.na[e[f]]=d;Cq(a,d,"className",e.join(" "))}for(;c<b.length;c++){var k=b[c];if(da(k))e=Aq(a,k),d.appendChild(e);else if(ha(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&&Cq(e,f,l,y(m)?Bq(e,f,l,m):m)}}else y(k)&&(e=Bq(a,d,"child",k),null!=e&&d.appendChild(window.document.createTextNode(String(e))))}return d};
var Dq=function(a){sf(a.element)};
var Bq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.ha[d]=[b,c],null):d};
var Eq=function(a,b,c){(b=a.ha["{{"+b+"}}"])&&Cq(a,b[0],b[1],c)};
var Fq=function(a){return da(a)&&y(a[0])};
var Cq=function(a,b,c,d){if("child"==c){qf(b);if(!da(d)||Fq(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?Fq(f)?c.push(Aq(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 Gq=function(a,b){a&&(a.style.display=b)};
var Hq=function(a,b){var c=Ih("requestAnimationFrame",window);return Fi(function(){c?c.call(window,a):a()},b||0)};
var Iq=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};
var S=function(a){zq.call(this,a);this.A=!0;this.U=[]};
var T=function(a,b,c,d,e){d=A(d,e||a);e={target:b,type:c,listener:d};a.U.push(e);b.addEventListener(c,d);return e};
var Jq=function(a){S.call(this,a);this.N=new Wj;J(this,this.N)};
var Kq=function(a,b,c){Jq.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.o=a;this.H=b;this.J=!1};
var Lq=function(){S.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 Mq=function(a,b){da(b)||(b=[b]);var c=Q(b,function(a){return y(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
Nq(a,c.join(","))};
var Nq=function(a,b){Of(a,"transition",b)};
var Oq=function(a,b){(a=y(a)?window.document.getElementById(a):a)&&a.style&&(ng(a,b),N(a,"hid",!b))};
var Pq=function(a){return(a=y(a)?window.document.getElementById(a):a)?!("none"==a.style.display||Zd(a,"hid")):!1};
var Qq=function(a){F(arguments,function(a){!ea(a)||a instanceof window.Element?Oq(a,!0):F(a,function(a){Qq(a)})})};
var Rq=function(a){F(arguments,function(a){!ea(a)||a instanceof window.Element?Oq(a,!1):F(a,function(a){Rq(a)})})};
var Sq=function(a,b,c,d){H.call(this);this.A=a;c||(Tq(this,!0),a.ea());this.C=b;this.D=null==d?b:d;this.j=null;this.B=!1;this.o=new Wd(this.am,0,this);J(this,this.o)};
var Tq=function(a,b){var c=a.A.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
var Uq=function(a,b){S.call(this,b||["div","ytp-thumbnail-overlay"]);this.B=new Sq(this,500);J(this,this.B);this.o=a};
var Vq=function(a){Uq.call(this,a,["div",["ytp-thumbnail-overlay","ytp-channel-overlay"],["div","ytp-thumbnail-overlay-image",{style:"{{background}}"}],["div","ytp-thumbnail-overlay-curtain"]])};
var Wq=function(a,b){Kq.call(this,a,b,"subscribecard-endscreen");this.B=new Vq(a);J(this,this.B);Xq(this.o,this.B.element,4);this.C=new Lq;J(this,this.C);this.ea()};
var Yq=function(a){var b;b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",R("YTP_ADVERTISEMENT")]],["div","ad-container"]];S.call(this,b);this.o=a;this.B=this.D=this.C=null};
var Zq=function(a){a.C||(a.C=a.na["ad-container"],a.o.V().G&&L(a.C,"ad-container-single-media-element-annotations"));return a.C};
var $q=function(a){a.B&&(a.o.V().G?(ae(a.B,"ad-video"),ar(a.o.app,a.B),a.B=null):(sf(a.B),br(a.B)))};
var cr=function(a){if(!a.D){if(a.o.V().useTabletControls){var b=nf("button");L(b,"video-click-tracking");pf(b,R("YTP_VISIT_ADVERTISERS_SITE"));var c=nf("div");L(c,"video-click-tracking-container");c.appendChild(b);Zq(a).appendChild(c)}else b=nf("div"),$d(b,["video-click-tracking","ad-video"]),Zq(a).appendChild(b);a.D=b}return a.D};
var dr=function(a,b){this.type=a||"";this.id=b||""};
var er=function(a){return new dr(a.substr(0,2),a.substr(2))};
var fr=function(a){a=a.split("");gr.Ww(a,13);gr.W9(a,69);gr.Gz(a,3);gr.Ww(a,2);gr.W9(a,79);gr.Gz(a,3);gr.Ww(a,36);return a.join("")};
var hr=function(a,b){return new Ad(function(c,d){b.kb=function(a){Aj(a)?c(a):d(a)};
b.onError=d;Gj(a,b)})};
var ir=function(a){function b(e,f,k){return Gd(e,function(e){return 0>=f||403===e.status?Fd(e):c(k).then(function(){return b(hr(a,d),f-1,Math.pow(2,4-f+1)*k)})})}
function c(a){return new Ad(function(b){(0,window.setTimeout)(b,a)})}
var d={format:"RAW",method:"GET"};return b(hr(a,d),3,1E3)};
var jr=function(a){this.j=a||0};
var kr=function(a,b,c,d,e,f,k,l){this.id=""+a;this.o=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.j=k||0;this.B=l||0;this.audio=c||null;this.video=d||null;this.Ib=e||null;this.fe=f||null;this.A=lr[mr(this)]||""};
var mr=function(a){return a.id.split(";",1)[0]};
var nr=function(a){return!(a.audio&&a.video)};
var or=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
var pr=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};
var qr=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
var rr=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<sr.length;b++){var m=sr[b],p=tr[m];if(f>=Math.floor(16*p/9)||a>=p){f=m;break a}}f="tiny"}this.quality=f;this.kC=tr[this.quality];this.j=!!k;this.fps=c||0;this.o=e||0;this.projectionType=d||0;if(!(c=l)){a:{for(c=0;c<ur.length;c++)if(this.fps>ur[c][1]){c=ur[c][0];break a}c=""}c=tr[this.quality]+"p"+c}this.qualityLabel=c};
var vr=function(a){this.A=a;this.C=this.B=this.D="";this.j={};this.o=""};
var wr=function(a){a.o||(a.o=xr(a));return a.o};
var yr=function(a){zr(a);return a.C};
var Ar=function(a){zr(a);return Rb(a.j,function(a){return null!==a})};
var zr=function(a){if(a.A){if(!Br.test(a.A))throw Error("Untrusted URL: "+a.A);var b=sh(a.A);a.D=b.B;a.C=b.o+(null!=b.C?":"+b.C:"");var c=b.A;if(0==c.indexOf("/videoplayback"))a.B="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.B=c.substr(0,d),c=c.substr(d+1)):(a.B=c,c="")}d=a.j;a.j=Cr(c);pa(a.j,Dr(b.fo()));pa(a.j,d);a.A="";a.o=""}};
var xr=function(a){zr(a);var b=a.D+(a.D?"://":"//")+a.C+a.B;if(Ar(a)){var c=[];Ob(a.j,function(a,b){null!==a&&c.push(b+"="+a)});
a=c.join("&");b+="?"+a}return b};
var Cr=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Er(c,a[b],a[b+1]);return c};
var Dr=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Er(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
var Er=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 Fr=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
var Gr=function(a){a=a.split("-");return 2==a.length&&(a=new Fr((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 Hr=function(a,b){return new Fr(a,a+b-1)};
var Ir=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 Jr=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 Kr=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 Lr=function(a,b,c,d,e,f){this.duration=c;this.endTime=b+c;this.o=d;this.j=a;this.sourceURL=e;this.startTime=b;this.range=f||null};
var Mr=function(){this.sa=[]};
var Nr=function(a,b){var c=yb(a.sa,new Lr(b,0,0,0,""),function(a,b){return a.j-b.j});
return 0<=c?a.sa[c]:null};
var Or=function(a,b){var c=yb(a.sa,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.sa[c]:a.sa[Math.max(0,-c-2)]};
var Pr=function(a,b){var c=eb(a.sa,function(a){return a.j>=b},a);
0<c&&a.sa.splice(0,c)};
var Qr=function(a){this.j=a;this.o={};this.A=""};
var Rr=function(a,b){var c=b.indexOf("?");if(0<c){var d=Dr(b.substr(c+1));Ob(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=Cr(b);Ob(d,function(a,b){this.set(b,a)},a)};
var Sr=function(a){a.A||(a.A=Tr(a));return a.A};
var Tr=function(a){var b=wr(a.j),c=[];Ob(a.o,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=Ar(a.j)?"&":"?";return b+a+d};
var Ur=function(a,b){var c=new vr(b);Ob(a.o,function(a,b){c.set(b,null)});
return c};
var Vr=function(a){this.j=a;this.B=a.clone();this.o=0;this.A=-1};
var Wr=function(a){var b=wr(a.B),c=new P(b);c.o.match("\\.googlevideo\\.com$")?(dh(c,"redirector.googlevideo.com"),b=c.toString()):c.o.match("r[1-9].*\\.c\\.youtube\\.com$")?(dh(c,"www.youtube.com"),b=c.toString()):b=bq(b);a.j=new vr(b);a.o&&(b=""+a.o,a.j.set("cmo=pf",b),a.B.set("cmo=pf",b))};
var Xr=function(a,b,c){this.index=null;this.info=b;this.initRange=c||null;this.j=null;this.C=this.A=!1;this.D=new Vr(a)};
var Yr=function(a){return!!a.j&&!!a.index&&a.index.fg()};
var Zr=function(a,b,c,d,e,f,k,l,m){this.j=b;this.range=c;this.type=a;this.B=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.A=k||0;this.o=0<=l?l:this.range?this.range.length:window.NaN;this.F=!!m;this.range?(this.D=this.A+this.o==this.range.length,this.C=this.startTime+this.duration*this.A/this.range.length,this.G=this.duration*this.o/this.range.length):(this.D=0!=this.o,this.C=this.startTime,this.G=this.duration);this.H=this.C+this.G};
var $r=function(a){return 1==a.type||2==a.type};
var as=function(a,b){return a.j==b.j&&a.range.start+a.A+a.o==b.range.start+b.A};
var bs=function(a){bb(1==a.length||Ig(a,function(a){return!!a.range}));
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Fr(a[0].range.start+a[0].A,b.range.start+b.A+b.o-1)};
var cs=function(a){var b="";Ob(ds(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)};
var ds=function(a){var b={};b.itag=a.j.info.id;b.seg=a.B;a.range&&(b.range=""+(a.range.start+a.A)+"-"+(a.range.start+a.A+a.o-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.G).toFixed(1);return b};
var es=function(a,b){this.A=a[0].j.D;this.o=b||"";this.j=a;this.range=this.j[0].range&&0<this.j[0].o?bs(this.j):null};
var fs=function(a,b){var c;/http[s]?:\/\//.test(a.o)?c=new Qr(new vr(a.o)):(c=new Qr(a.A.j),a.o&&Rr(c,a.o));var d=b||a.range;d&&c.set("range",d.toString());return c};
var gs=function(a){if(a.range)return a.range.length;a=a.j[0];return Math.round(a.G*a.j.info.j)};
var hs=function(a,b,c,d,e){Xr.call(this,a,b,d);this.index=e||new Mr;this.B=c;this.o=!0};
var is=function(a,b){a.jh(b);return js(a,b.D?b.B+1:b.B,!1)};
var js=function(a,b,c){var d=a.index.co(b),e=a.index.ee(b),f=a.index.dg(b);c?f=c=0:c=0<a.info.j?a.info.j*f:1E3;a=new Zr(3,a,null,b,e,f,0,c,b==a.index.Lb()&&!a.o&&0<c);return new es([a],d)};
var ks=function(a,b,c){this.ae=a;this.durationSecs=b;this.context=c};
var ls=function(a,b,c,d){this.j=a;this.ae=b;this.durationSecs=c;this.o=d||window.NaN};
var ms=function(){this.j=[];this.o=null;this.B=0;this.A=[]};
var ns=function(a){var b=a.A;a.A=[];return b};
var os=function(){this.B=[];this.C=!1;this.j=null;this.o={};this.A={}};
var ps=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.j=new ms:"AdaptationSet"==e.nodeName?a.o[e.attributes.mimeType.value]=new ms:"Representation"==e.nodeName&&(a.A[e.attributes.id.value]=new ms)}a.C=!0};
var qs=function(a,b,c){a.C||ps(a,b);var d=[];b=b.getElementsByTagName("SegmentTimeline");for(var e=0;e<b.length;e++){var f=b[e].parentNode.parentNode,k=null;"Period"==f.nodeName?k=a.j:"AdaptationSet"==f.nodeName?k=a.o[f.attributes.mimeType.value]:"Representation"==f.nodeName&&(k=a.A[f.attributes.id.value]);if(null==k)return;k.update(b[e],c);ub(d,ns(k))}Db(d,function(a){return a.ae});
ub(a.B,d)};
var rs=function(a){a.j&&(a.j.j=[]);Ob(a.o,function(a){a.j=[]});
Ob(a.A,function(a){a.j=[]})};
var ts=function(a,b){var c=us(a,0,1836019558);if(!c)return null;var d=us(a,c.offset+8,1835427940),e=us(a,c.offset+8,1953653094);if(!d||!e)return null;var f=us(a,e.offset+8,1952868452),k=us(a,e.offset+8,1953658222),l=us(a,e.offset+8,1952867444);if(!f||!k||!l)return null;var m=us(a,e.offset+8,1935763823),e=us(a,e.offset+8,1935763834);if(m){var p=vs(m),u=vs(m);if(0!=p||1!=u)return null;p=vs(m)}for(var t=vs(f),w=vs(f),z=t&2,E=t&1?ws(f):0,M=z?vs(f):0,G=t&8?vs(f):0,u=t&16?vs(f):0,I=t&32?vs(f):0,t=vs(k),
Ta=t&1,tb=t&4,Qb=t&256,f=t&512,Xb=t&1024,bi=t&2048,t=vs(k),ZB=Ta?vs(k):0,sp=tb?vs(k):0,Ta=[],tp=[],Vl=[],$B=[],nO=0,Uf=0,Gc=0;Gc<t;Gc++){var g5=Qb?vs(k):G;f&&Ta.push(vs(k));var me=I;tb&&0==Gc?me=sp:Xb&&(me=vs(k));tp.push(me);me=bi?vs(k):0;0==Gc&&(nO=me);Vl.push(Uf+me);$B.push(Gc);Uf+=g5}Cb($B,function(a,b){return Vl[a]-Vl[b]});
k=[];for(Gc=0;Gc<t;Gc++)k[$B[Gc]]=Gc;Uf=z?4:0;Gc=16*t;me=68+Uf+l.size+Gc+(m?m.size:0)+(e?e.size:0);c=me-c.size;G=new xs(me);ys(G,me);ys(G,1836019558);zs(G,d);ys(G,me-24);ys(G,1953653094);ys(G,16+Uf);ys(G,1952868452);ys(G,131072|(z?2:0));ys(G,w);z&&ys(G,M);zs(G,l);ys(G,20+Gc);ys(G,1953658222);ys(G,16781057);ys(G,t);ys(G,E+ZB+c);for(Gc=Uf=0;Gc<t;Gc++)l=k[Gc],d=Math.round(b*l/t),l=Math.round(b*(l+1)/t)-d,me=d-Uf+nO,ys(G,l),ys(G,f?Ta[Gc]:u),ys(G,tp[Gc]),ys(G,me),Uf+=l;m&&(ys(G,m.size),ys(G,1935763823),
ys(G,0),ys(G,1),ys(G,p+c));e&&zs(G,e);return G.data.buffer};
var As=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);for(var b=0;Bs(a,b);){var c=Cs(a,b);if(1836476516==c.type)return Ds(c);b=Es(c.type)?b+8:b+c.size}return window.NaN};
var us=function(a,b,c){for(;Bs(a,b);){var d=Cs(a,b);if(d.type==c)return d;b+=d.size}return null};
var Cs=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new Fs(a,b,c,d)};
var Ds=function(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)};
var Bs=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 Es=function(a){return 1836019558==a||1836019574==a||1953653094==a};
var Fs=function(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.j=8};
var vs=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
var ws=function(a){var b;b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};
var xs=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.j=0};
var ys=function(a,b){a.data.setInt32(a.j,b);a.j+=4};
var zs=function(a,b){for(var c=0;c+4<=b.size;)ys(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.j++,b.data.getUint8(b.offset+c++))};
var Gs=function(a){return(a=us(a,0,1836019558))?a.offset+a.size:null};
var Hs=function(a,b){this.o=a;this.j=0;this.A=b||0};
var Is=function(a){for(var b=Js(a,!1);236==b;)Ks(a),b=Js(a,!1);return b};
var Ls=function(a){var b=Js(a,!0),c=a.o.byteOffset+a.j,c=new window.DataView(a.o.buffer,c,Math.min(b,a.o.buffer.byteLength-c)),c=new Hs(c,a.A+a.j);a.j+=b;return c};
var Ms=function(a){for(var b=Js(a,!0),c=Ns(a),d=1;d<b;d++)c=256*c+Ns(a);return c};
var Ks=function(a){var b=Js(a,!0);a.j+=b};
var Os=function(a){var b=a.j;a.j=0;var c=!1;Ps(a,440786851)&&(a.j=0,Ps(a,408125543)&&(c=!0));a.j=b;return c};
var Qs=function(a,b,c){var d=a.j;a.j=0;if(Os(a)){if(!Ps(a,408125543))return!1;Js(a,!0)}if(!Ps(a,524531317))return!1;Js(a,!0);if(!Ps(a,231))return!1;var e=Js(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.o.setUint8(a.j+c,b&255),b>>>=8;a.j=d;return!0};
var Ps=function(a,b){for(;Is(a)!=b;)if(Ks(a),a.j>=a.o.byteLength)return!1;return!0};
var Js=function(a,b){var c=Ns(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Ns(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+Ns(a),e*=128;return b?c-e:c};
var Ns=function(a){return a.o.getUint8(a.j++)};
var Rs=function(a,b,c,d,e){this.info=a;this.j=b;this.range=c;this.o=d;this.A=e};
var Ss=function(a){return a.range?new window.DataView(a.j,a.range.start,a.range.length):new window.DataView(a.j)};
var Ts=function(a){if(a.info.o!=a.range.length)return!1;if(1==a.info.j.info.o){if(8>a.info.o||4==a.info.type)return!0;var b=Ss(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.o&&1936286840==b;if(3==a.info.type&&0==a.info.A)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b||1701671783==b}else if(2==a.info.j.info.o){if(4>a.info.o||4==a.info.type)return!0;b=Ss(a);c=b.getUint32(0,!1);if(3==a.info.type&&0==a.info.A)return 524531317==c||440786851==c}return!0};
var Us=function(a,b){if(1==a.info.j.info.o){for(var c=a.info.j.j,d=window.NaN,e,f=0,k=new window.DataView(a.j);Bs(k,f);){var l=Cs(k,f);1936286840==l.type?d=l.data.getUint32(l.offset+16):1836476516==l.type?d=Ds(l):1952867444==l.type&&(e=l);f=Es(l.type)?f+8:f+l.size}!d&&c&&(d=As(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.j.j.buffer);
d=new Hs(new window.DataView(a.j));e=d.j;d.j=0;c=1E6;Ps(d,408125543)&&(Js(d,!0),Ps(d,357149030)&&(Js(d,!0),Ps(d,2807729)&&(c=Ms(d))));d.j=e;return Qs(d,b,c)};
var Vs=function(a){var b;a:{for(var c=0,d=new window.DataView(a.j);Bs(d,c);){b=Cs(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=Es(b.type)?c+8:c+b.size}b=window.NaN}if(!(0<=b)){c=a.info.j.j;d=0;b=new window.DataView(a.j);for(var e,f;Bs(b,d);){var k=Cs(b,d);1836476516==k.type?e=Ds(k):1836019558==k.type&&(f=k);d=Es(k.type)?d+8:d+k.size}!e&&c&&(e=As(c));if(f&&e){f=
us(b,f.offset+8,1953653094);c=us(b,f.offset+8,1952868452);f=us(b,f.offset+8,1953658222);b=vs(c);vs(c);b&2&&vs(c);b=b&8?vs(c):0;var l=vs(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.j);f.j+=4;m&&vs(f);c&&vs(f);for(var t=m=0;t<u;t++){var w=d?vs(f):b;k&&vs(f);c&&0==t||!p||vs(f);l&&vs(f);m+=w}b=m/e}else b=window.NaN}return b||a.info.G};
var Ws=function(a){1==a.info.j.info.o?(a=Ss(a),a=!!us(a,0,1718909296)):a=Os(new Hs(new window.DataView(a.j)));return a};
var Xs=function(){this.va=0;this.j=new window.Float64Array(128);this.o=new window.Float64Array(128);this.B=1;this.A=!1};
var Ys=function(a){if(a.j.length<a.va+1){var b=2*a.j.length,b=b+2,c=a.j;a.j=new window.Float64Array(b+1);var d=a.o;a.o=new window.Float64Array(b+1);for(b=0;b<a.va+1;b++)a.j[b]=c[b],a.o[b]=d[b]}};
var Zs=function(a,b,c,d,e,f){Xr.call(this,a,b,c||void 0);this.indexRange=d;this.B=null;this.index=new Xs;this.o=e;this.lastModified=f};
var $s=function(a,b,c,d){for(var e=[];b<=a.index.Lb();b++){var f;f=a.index;var k=b;f=Hr(f.tj(k),k+1<f.va||f.A?f.j[k+1]-f.j[k]:-1);var k=a.index.ee(b),l=a.index.dg(b),m=Math.max(0,c-f.start),p=Math.min(f.end+1,c+d)-(f.start+m);e.push(new Zr(3,a,f,b,k,l,m,p,b==a.index.Lb()&&m+p==f.length));if(f.start+m+p>=c+d)break}return new es(e)};
var at=function(a,b,c){a.jh(b);if(!Yr(a))return c=Hr(b.range.end+1,c),c.end+1>a.o&&(c=new Fr(c.start,a.o-1)),a=[new Zr(4,b.j,c)],new es(a);4==b.type&&(b=a.Oi(b),b=b[b.length-1]);var d=0,e=b.range.start+b.A+b.o;3==b.type&&(d=b.B,e==b.range.end+1&&(d+=1));return $s(a,d,e,c)};
var bt=function(a,b){Wj.call(this);this.G=this.duration=0;this.isLive=this.B=!1;this.D=ct();this.o=window.Infinity;this.j={};this.J=a||"";this.C=this.F=0;this.A=null;this.H=ct();this.U=b||!1};
var dt=function(a){return Rb(a.j,function(a){return!!a.info.fe},a)};
var et=function(a,b,c){var d=new bt;d.duration=c||0;F(a,function(a){var c=a.type,k=a.itag,l=null;if(pr(c))var m=a.size.split("x"),l=new rr(+m[0],+m[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isFastLoad,a.quality_label);var p=null,u=null;or(c)&&(p=new jr,a.name&&(u=new qr(a.name,a.audio_track_id,"1"==a.isDefault)));a.xtags&&(k=a.itag+";"+a.xtags);var t=(0,window.parseInt)(a.bitrate,10)/8,m=(0,window.parseInt)(a.clen,10),w=d.duration&&m?m/d.duration:0,z=null;b&&a.drm_families&&(z={},F(a.drm_families.split(","),
function(a){z[a]=b[a]}));
c=new kr(k,c,p,l,u,z,t,w);l=Gr(a.init);p=Gr(a.index);u=ft(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);u&&(d.j[k]=new Zs(u,c,l,p,m,a))});
return d};
var ft=function(a,b,c){a=new vr(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",fr(c));return a};
var gt=function(a,b){var c=Ir(b,"id"),c=c.replace(":",";");"captions"==c&&(c=Ir(b,"lang"));var d=Ir(b,"mimeType"),e=Ir(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(Ir(b,"bandwidth"),10)/8,f=(0,window.parseInt)(Jr(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(pr(d)){var k=(0,window.parseInt)(Ir(b,"width"),10),l=(0,window.parseInt)(Ir(b,"height"),10),m=(0,window.parseInt)(Ir(b,"frameRate"),10),p=Ir(b,"yt:stereoLayout"),u="equirectangular"==
Ir(b,"yt:projectionType"),t,w;u&&"layout_top_bottom"==p?t=3:u&&!p?t=2:"layout_left_right"==p&&(w=1);k=new rr(k,l,m,t,w)}w=t=null;or(d)&&(t=new jr((0,window.parseInt)(Ir(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10)),w=Ir(b,"lang")||"",(l=Jr(b,"Role"))?(l=Ir(l,"value")||"",w=w&&$b(ht,l)?new qr(Ir(b,"yt:langName")||w+" - "+l,w+"."+ht[l],"main"==l):null):w=null);m=null;if(l=Jr(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 kr(c,d,t,k,w,m,e,f)};
var it=function(a,b){a.C=1;a.D=ct();return Gd(ir(b||a.J).then(A(a.L,a)),A(a.N,a))};
var jt=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=Gr(e):c=c+"?range="+e);return new Lr(b.j,b.ae,b.durationSecs,b.o,c,d)};
var kt=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c&&c.fg())return c.eg()}return window.NaN};
var lt=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c&&c.fg())return c.Kr()}return 0};
var mt=function(a,b){Ob(a.j,function(a){Ob(b,function(b,e){var f=a.D;f.j.set(e,b);f.B.set(e,b)})})};
var nt=function(a,b){var c=(0).toString();if(!a.j[c]){var d=new kr(c,"",void 0,new rr(0,0,0,void 0,void 0,"auto"));a.j[c]=b?new hs(new vr("http://www.youtube.com/videoplayback"),d,""):new Zs(new vr("http://www.youtube.com/videoplayback"),d,new Fr(0,0),new Fr(0,0),0,window.NaN)}};
var ot=function(){return pt("android")&&pt("chrome")&&!(pt("trident/")||pt("edge/"))};
var qt=function(){return pt("(ps3; leanback shell)")||pt("ps3")&&pt("cobalt")};
var rt=function(){return pt("(ps4; leanback shell)")||pt("ps4")&&pt("cobalt")};
var tt=function(){var a=/WebKit\/([0-9]+)/.exec(qc);return!!(a&&600<=a[1])};
var ut=function(){return Kl&&pt("crkey")};
var vt=function(){return pt("nintendo wiiu")};
var wt=function(){return pt("iemobile")||pt("windows phone")&&pt("edge")};
var pt=function(a){var b=qc;return b?0<=b.toLowerCase().indexOf(a):!1};
var xt=function(){var a=v("yt.player.utils.videoElement_");a||(a=window.document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a};
var zt=function(a){var b=xt();try{if(b.canPlayType){a=a?At:Bt;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};
var Ct=function(a){a=O("div",{"class":a});window.document.body.appendChild(a);var b="none"==Sf(a,"display");sf(a);return b};
var Dt=function(a,b,c){this.j=a;this.o=b;this.C=c;this.B={};this.A=null;this.fairPlayCert=""};
var Et=function(a){return!a.A&&Ft()&&"com.microsoft.playready"==a.o};
var Gt=function(a){return!a.A&&Ft()&&"com.apple.fps.1_0"==a.o};
var Ft=function(){var a=window.MSMediaKeys;Ht&&Ac("8")&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
var It=function(){return window.navigator.requestMediaKeySystemAccess&&(Kl&&Jt("45")||wc)};
var Kt=function(a){this.o=[];this.j={};this.A={};this.B=null;Lt(this,a)};
var Lt=function(a,b){Ob(b,function(a){a.forEach(function(a){a.fe&&Ob(a.fe,function(b,c){Mt[c]&&Ob(Mt[c],function(b){this.j[b]=this.j[b]||new Dt(c,b,a.fe[c]);this.A[c]=this.A[c]||{};this.A[c][a.mimeType]=!0},this)},this)},this)},a);
a.o=Nt.filter(function(a){return!!this.j[a]},a)};
var Ot=function(a){var b=a.o.shift(),c=a.j[b],d=Pt(a.A[c.j]);window.navigator.requestMediaKeySystemAccess(b,d).then(Gi(A(a.D,a,c)),Gi(A(a.C,a,c)))};
var Pt=function(a){var b={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};Ob(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})});
return[b]};
var Qt=function(a){var b=Ft(),c=xt();if(b){if(Ht){a.B(new Dt("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=db(a.o,function(a){var b=this.j[a],c,l;Ob(this.A[b.j],function(m,p){d(p,a)&&(b.B[p]=!0,c|=0==p.indexOf("audio/"),l|=0==p.indexOf("video/"))},this);
return c&&l},a))?a.j[c]:null;
a.o=[];a.B(c)};
var Rt=function(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.j=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1};
var St=function(a){a=a||{};this.J=a.formats||"";this.C=a.format||1;if(1==this.C)for(var b=this.J.split(","),c=0;c<b.length;c++){var d=(0,window.parseInt)(b[c],10);(0,window.isNaN)(d)||(this.C=Math.max(d,this.C))}this.j=a.languageCode||"";this.D=a.languageName;this.A=a.kind||"";this.B=a.name;this.L=a.id;this.K=a.is_servable;this.isDefault=a.is_default;this.G=a.is_translateable;this.H=a.url||null;this.F=a.vss_id||"";this.o=null;a.translationLanguage&&(this.o=new Rt(a.translationLanguage))};
var Tt=function(a){var b={format:a.C,languageCode:a.j,languageName:a.D,displayName:Ut(a),kind:a.A,name:a.B,id:a.L,is_servable:a.K,is_default:a.isDefault,is_translateable:a.G,vss_id:a.F};a.o&&(a=a.o,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.j,id:a.id,is_default:a.isDefault});return b};
var Ut=function(a){var b=a.D||"",c=[b];"asr"==a.A&&-1==b.indexOf("(")&&c.push(" (",R("YTP_ASR_SETTINGS_LABEL"),")");a.B&&c.push(" - ",a.B);a.o&&c.push(" >> ",a.o.languageName);return c.join("")};
var Vt=function(a,b){var c=new St;c.j=a.j;c.D=a.D;c.B=a.B;c.A=a.A;c.isDefault=!1;c.G=a.G;c.F=a.F;c.H=a.H;c.o=b;return c};
var Wt=function(a,b){this.id=a;this.Ib=b;this.captionTracks=[];this.tg=this.jk=null;this.En=0};
var Xt=function(a,b,c){this.o=a||0;this.j=b||0;this.A=c};
var Yt=function(a,b,c){return new Xt(tr[a]||0,tr[b]||0,c)};
var Zt=function(a){var b=tr.auto;return a.o==b&&a.j==b};
var $t=function(a,b){if(b.A&&Zt(b))return au;if(b.A||Zt(a))return b;if(a.A||Zt(b))return a;var c=a.o&&b.o?Math.max(a.o,b.o):a.o||b.o,d=a.j&&b.j?Math.min(a.j,b.j):a.j||b.j,c=Math.min(c,d);return c==a.o&&d==a.j?a:new Xt(c,d,!1)};
var bu=function(a){var b=a.j||a.o;return bc(cu,function(a){return tr[a]==b})||"auto"};
var du=function(a,b,c){this.videoInfos=a;this.j=b||null;this.audioTracks=[];this.o=c||null;if(this.j){var d={};F(this.j,A(function(a){if(a.Ib&&!d[a.id]){var b=new Wt(a.id,a.Ib);d[a.id]=b;this.audioTracks.push(b)}},this))}};
var eu=function(a,b){this.j=a;this.o=b};
var fu=function(a){this.j=[];if(a)a:{var b,c;if(a instanceof fu){if(b=a.Na(),c=a.Ka(),0>=a.Xa()){a=this.j;for(var d=0;d<b.length;d++)a.push(new eu(b[d],c[d]));break a}}else b=Yb(a),c=Wb(a);for(d=0;d<b.length;d++)gu(this,b[d],c[d])}};
var gu=function(a,b,c){var d=a.j;d.push(new eu(b,c));b=d.length-1;a=a.j;for(c=a[b];0<b;)if(d=b-1>>1,a[d].j>c.j)a[b]=a[d],b=d;else break;a[b]=c};
var hu=function(){fu.call(this)};
var iu=function(a,b){Wj.call(this);this.o=a;this.A=new hu;this.j=null;this.C={};this.B=b||""};
var ju=function(a,b,c){var d;for(c=ku(a.o,c);0<=c;){d=a.o.j[c];if(d=d.A[Math.floor(b/(d.Gb*d.rows))]?lu(d,b):null)return d;c--}return lu(a.o.j[0],b)};
var mu=function(a,b,c){c=ku(a.o,c);for(var d,e;0<=c;c--)if(d=a.o.j[c],e=Math.floor(b/(d.Gb*d.rows)),!d.A[e]){d=a;var f=c,k=f+"-"+e;d.C[k]||(d.C[k]=!0,gu(d.A,f,{cp:f,ip:e}))}nu(a)};
var nu=function(a){if(!a.j&&!a.A.isEmpty()){var b=a.A.remove(),c=new window.Image;a.B&&(c.crossOrigin=a.B);c.src=ou(a.o.j[b.cp],b.ip);c.onload=A(a.D,a,b.cp,b.ip);a.j=c}};
var pu=function(a,b,c,d){this.A={};this.L=a;this.J=b;a=c.split("#");this.G=(0,window.parseInt)(a[0],10);this.F=(0,window.parseInt)(a[1],10);this.o=(0,window.parseInt)(a[2],10);this.Gb=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.C=(0,window.parseInt)(a[5],10);this.B=a[6];this.D=a[7];this.K=d};
var ou=function(a,b){var c=a.J,c=c.replace("$N",a.B),c=c.replace("$L",a.L.toString()),c=c.replace("$M",b.toString());a.D&&(c=Wg(c,{sigh:a.D}));return cq(c)};
var lu=function(a,b){var c=Math.floor(b/(a.Gb*a.rows)),d=a.Gb*a.rows,e=b%d,f=e%a.Gb,e=Math.floor(e/a.Gb),k,l=a.Nm()+1-d*c;l<a.Gb?(k=l,d=1):(k=a.Gb,d=l<d?Math.ceil(l/a.Gb):a.rows);return{url:ou(a,c),Cv:f,Gb:k,row:e,rows:d,kp:a.G*k,hp:a.F*d}};
var qu=function(a,b){this.j=this.o(a,b);this.A={};1<this.j.length&&this.j[0].isDefault()&&this.j.splice(0,1)};
var ku=function(a,b){var c=a.A[b];if(c)return c;for(var c=a.j.length,d=0;d<c;d++)if(a.j[d].getWidth()>=b)return a.A[b]=d;a.A[b]=c-1;return c-1};
var ru=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");pu.call(this,a,b,c,0);this.j=null;this.H=d?3:0};
var tu=function(a,b){this.D=b;qu.call(this,a,0)};
var uu=function(){if(void 0==vu&&(vu=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new window.Uint8Array(1);window.crypto.getRandomValues(a);vu=!0}catch(e){}if(vu){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=K(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=wu)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 xu=function(){for(var a=uu(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};
var yu=function(){return Q(uu(),function(a){return(a&15).toString(16)}).join("")};
var zu=function(a,b){return void 0==b?a:"1"==b?!0:!1};
var Au=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
var Bu=function(a,b){return void 0==b?a:Number(b)};
var Cu=function(a,b){return void 0==b?a:b.toString()};
var Du=function(a){if(a&&(a=a.match(Eu))){var b=(0,window.parseFloat)(a[2]);if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN};
var Fu=function(a,b){var c=tr.auto,d=tr.medium;if("tivo"==b)return new Xt(c,tr.large,!1);var e=tr[b];return e>d?new Xt(e,c,!1):e>=c?new Xt(c,e,!1):a};
var Gu=function(){return!!v("yt.scheduler.instance")};
var Hu=function(a,b){(0,window.isNaN)(b)&&(b=void 0);var c=v("yt.scheduler.instance.addJob");return c?c(a,0,b):void 0===b?(a(),window.NaN):Fi(a,b||0)};
var Iu=function(a){var b=v("yt.scheduler.instance.cancelJob");b?b(a):Ii(a)};
var Ju=function(){var a=v("yt.scheduler.instance.start");a&&(Ii(Ku),a())};
var Lu=function(){var a=v("yt.scheduler.instance.pause");a&&(a(),Ii(Ku),Ku=Fi(Ju,800))};
var Mu=function(a,b){this.version=a;this.args=b};
var Nu=function(a){if(!a.be){var b={};a.call(b);a.be=b.version}return a.be};
var Ou=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=Nu(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 Pu=function(a,b){this.topic=a;this.j=b};
var Qu=function(a,b){var c=Ru,d=Su();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(Tu[e])try{if(k&&c instanceof Pu&&c!=d)try{k=Ou(c.j,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){Ki(l)}};
Uu[c.toString()]?Gu()?Hu(l,void 0):Fi(l,0):l()}});
Tu[e]=!0;Vu[c.toString()]||(Vu[c.toString()]=[]);Vu[c.toString()].push(e);return e};
var Wu=function(a,b){var c=Qu(function(d){a.apply(b,arguments);Xu(c)},b);
return c};
var Xu=function(a){var b=Su();b&&(fa(a)&&(a=[a]),F(a,function(a){b.unsubscribeByKey(a);delete Tu[a]}))};
var Su=function(){return v("yt.pubsub2.instance_")};
var Yu=function(a){Mu.call(this,1,arguments);this.j=a};
var Zu=function(a,b,c){$u(c)[a]=b||K();b||av(a);b=Ei("TIMING_ACTION",void 0);a=$u(c);if(v("yt.timing.ready_")&&b&&a._start&&bv(c)){b=!0;var d=Ei("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)&&cv(c)}};
var dv=function(a,b){var c=$u(b);return a in c};
var ev=function(a,b,c){fv(c).info[a]=b};
var gv=function(a){hv(a);iv();q("yt.timing.pingSent_",!1,void 0)};
var bv=function(a){a=$u(a);if(a.aft)return a.aft;for(var b=Ei("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 jv=function(a){return Math.round(kv.timing.navigationStart+a)};
var lv=function(a){var b=window.location.protocol,c=kv.getEntriesByType("resource"),d=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.googleapis.com/css?family=")})[0],c=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.gstatic.com/s/")}).reduce(function(a,b){return b.duration>a.duration?b:a},{duration:0});
d&&0<d.startTime&&0<d.responseEnd&&(a.wfcs=jv(d.startTime),a.wfce=jv(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=jv(c.startTime),a.wffe=jv(c.responseEnd))};
var cv=function(a){var b=$u(a),c=fv(a).span,d=fv(a).info,e=v("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))mv(e),gv(a)}else{e={v:2,s:Ei("CSI_SERVICE_NAME","youtube"),action:Ei("TIMING_ACTION",void 0)};if(kv.now&&kv.timing){var f=kv.timing.navigationStart+kv.now(),f=Math.round(K()-f);d.yt_hrd=f}var f=Ei("TIMING_INFO",{}),k;for(k in f)d[k]=f[k];k=d.srt;delete d.srt;var l;k||0===k||(l=kv.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+v("ytplayer.config.assets.js"),(f=kv.getEntriesByName?kv.getEntriesByName(f)[0]:null)?d.h5jse=Math.round(d.h5jse-f.responseEnd):delete d.h5jse);b.aft=bv(a);f=b._start;if("cold"==d.yt_lt){l||(l=kv.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,ga(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||fv(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);kv.getEntriesByType&&lv(b)}p=$u(a);l=p.pbr;m=p.vc;p=p.pbs;l&&
m&&p&&l<m&&m<p&&1==fv(a).info.yt_vis&&(ev("yt_lt","hot_bg",a),l=b.vc,m=b.pbs,delete b.aft,c.aft=Math.round(m-l));(l=Ei("PREVIOUS_ACTION"))&&(d.pa=l);d.p=Ei("CLIENT_PROTOCOL")||"unknown";d.t=Ei("CLIENT_TRANSPORT")||"unknown";window.navigator&&window.navigator.sendBeacon&&(d.ba=1);for(var t in d)"_"!=t.charAt(0)&&(e[t]=d[t]);b.ps=K();d={};t=[];for(var w in b)"_"!=w.charAt(0)&&(m=Math.max(Math.round(b[w]-f),0),d[w]=m,t.push(w+"."+m));e.rt=t.join(",");b=e;w=[];for(var z in c)"_"!=z.charAt(0)&&w.push(z+
"."+c[z]);b.it=w.join(",");(z=v("ytdebug.logTiming"))&&z(e,d,c);gv(a);Ei("EXP_DEFER_CSI_PING")?(nv(),q("yt.timing.deferredPingArgs_",e,void 0),a=Fi(nv,0),q("yt.timing.deferredPingTimer_",a,void 0)):mv(e);a=new Yu(d.aft+(k||0));c=Ru;(e=Su())&&e.publish.call(e,c.toString(),c,a)}};
var mv=function(a){if(Ei("DEBUG_CSI_DATA")){var b=v("yt.timing.csiData");b||(b=[],q("yt.timing.csiData",b,void 0));b.push({page:window.location.href,time:new Date,args:a})}Ei("EXP_DEFER_CSI_PING")&&(Ii(v("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=Ei("CSI_LOG_WITH_YT")?"/csi_204?"+b.substring(1):null;window.navigator&&
window.navigator.sendBeacon?(fq(a),b&&fq(b)):(dq(a),b&&dq(b));q("yt.timing.pingSent_",!0,void 0)};
var nv=function(a){if(Ei("EXP_DEFER_CSI_PING")){var b=v("yt.timing.deferredPingArgs_");b&&(a&&(b.yt_fss=a),mv(b))}};
var $u=function(a){return fv(a).tick};
var fv=function(a){return v("ytcsi."+(a||"")+"data_")||hv(a)};
var hv=function(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};
var ov=function(a,b,c){this.errorCode=a;this.j=b;this.details=c||{}};
var pv=function(a){var b,c;for(c in a.details)b=(b?b+";":"")+c+"."+a.details[c];return b||""};
var qv=function(a){return(a=a.exec(qc))?a[1]:""};
var Jt=function(a){return 0<=Qa(rv,a)};
var tv=function(){};
var uv=function(){this.buffered=new tv};
var vv=function(a,b){this.B=a;this.j=!!b;this.A=!1;this.o={}};
var wv=function(a){return a.j?a.B:Wg(a.B,a.o)};
var xv=function(a,b){this.o=a;this.A=b;this.B=0;Object.defineProperty(this,"timestampOffset",{get:this.bD,set:this.fD});Object.defineProperty(this,"buffered",{get:this.$C})};
var yv=function(){this.length=0};
var zv=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.j=a;this.o=window.NaN;this.A=0;Object.defineProperty(this,"duration",{get:this.aD,set:this.eD});Object.defineProperty(this,"readyState",{get:this.cD});this.j.addEventListener("webkitsourceclose",A(this.dD,this),!0)};
var Av=function(a){H.call(this);this.J=[];this.Sa=a||this};
var Bv=function(a,b,c,d){for(var e=0;e<c.length;e++)U(a,b,c[e],d)};
var U=function(a,b,c,d,e){d=Gi(A(d,e||a.Sa));b.addEventListener(c,d);b={target:b,name:c,Hh:d};a.J.push(b);return b};
var Cv=function(a){for(;a.J.length;){var b=a.J.pop();b.target.removeEventListener(b.name,b.Hh)}};
var Dv=function(a,b,c,d,e){Av.call(this);this.o=this.j=null;this.B=b;this.A=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new zv(a);this.D=this.C=this.F=null;this.G=d;this.L=c;this.P=e;Bv(this,this.A,["sourceopen","webkitsourceopen"],this.K);Bv(this,this.A,["sourceclose","webkitsourceclose"],this.H)};
var Ev=function(a,b){a.C=b};
var Fv=function(a,b){a.D=b};
var Gv=function(a){if(!a.F){var b;b=a.A;b=b.kF?b.j.webkitMediaSourceURL:window.URL.createObjectURL(b);a.F=new vv(b,!0)}return a.F};
var Hv=function(a){try{return"open"==a.A.readyState}catch(b){return!1}};
var Iv=function(a){try{return"closed"==a.A.readyState}catch(b){return!0}};
var Jv=function(a){return a.j.updating||a.o.updating};
var Kv=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
var Lv=function(a){return a.j?!!a.j.appendBuffer:Kv()};
var Mv=function(a){if(/opus/.test(a)&&(Kl&&!Jt("38")||ut()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!rt())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!xt().canPlayType(a)};
var Nv=function(a){this.jc=a};
var Ov=function(a,b){this.o=a;this.B=b;this.A={};this.j=window.cast&&window.cast.__platform__&&window.cast.__platform__.queryPlatformValue&&window.cast.__platform__.queryPlatformValue("max-video-resolution-vpx")||null};
var Pv=function(a,b){if(2.2!=Qv&&zt(a.o))return[];for(var c={},d=xt(),e=0;e<b.length;e++){var f=b[e];if(mr(f.jc)in Rv||"5"==mr(f.jc)?0:Sv(d,f.jc.mimeType)){var k=f.jc.video.quality;c[k]&&2!=c[k].jc.o||(c[k]=f)}}var l=[];c.auto&&l.push(c.auto);F(sr,function(a){(f=c[a])&&l.push(f)});
return l};
var Sv=function(a,b){var c=a.canPlayType(b);Tv?c=c||Uv[b]:2.2==Qv?c=c||Vv[b]:ot()&&(c=c||Wv[b]);return!!c};
var Xv=function(){var a=ot()&&!Jt(29),b=pt("google tv")&&pt("chrome")&&!Jt(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
var Yv=function(a,b){var c={},d;for(d in b.j){var e=b.j[d],f;a:{f=a;var k=e.info;if(k.id!=(0).toString()||f.o){var l=k.mimeType,m={};k.video&&(k.video.width&&(m[Zv.name]=k.video.width),k.video.height&&(m[$v.name]=k.video.height),k.video.fps&&(m[aw.name]=k.video.fps),k.j&&(m[bw.name]=8*k.j));k.audio&&k.audio.j&&(m[cw.name]=k.audio.j);k=m;m=void 0;for(m in dw){var p=dw[m];if(k[p.name]&&ew(f,p))if(f.j){if(f.j[p.name]<k[p.name]){f=!1;break a}}else l=l+"; "+p.name+"="+k[p.name]}f=Mv(l)}else f=!0}f&&(c[e.info.A]=
c[e.info.A]||[],c[e.info.A].push(e.info))}return c};
var fw=function(a,b,c){var d={},e;Ob(b,function(a,b){var l=a.filter(function(a){return a.fe?c&&a.fe[c.j]&&c.B[a.mimeType]?261==mr(a)?(e||(e=xt()),!1):!0:!1:!0},this);
l.length&&(d[b]=l)},a);
return d};
var gw=function(a,b,c,d){function e(a){return!!f[a]}
var f=Yv(a,b);dt(b)&&(f=fw(a,f,c));c=hw;if(!a.o)c=iw;else if(pt("cros armv7")||pt("windows nt 5.1"))c=jw;b=kw;d&&(a.o&&(c=jw),b=lw);d=db(c,e);b=db(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=oe(f["9"],c,0);oe(f.h,c,0)>1.5*k&&(d="h")}c=f[d];k=f[b];c=mw(a,c);nw(c,k);return new du(c,k,ow(a,f,d,b))};
var ow=function(a,b,c,d){var e=b.h;b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=mw(a,e),nw(e,b),new du(e,b)):null};
var nw=function(a,b){Cb(a,function(a,b){return b.video.width-a.video.width||b.j-a.j});
Cb(b,function(a,b){return b.j-a.j})};
var mw=function(a,b){var c=Lh(b,function(a){return 32<a.video.fps});
c&&(b=a.B||ew(a,aw)?be(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):be(b,function(a){return!(32<a.video.fps)}));
c&&qt()&&(b=be(b,function(a){return 299!=mr(a)}));
return b};
var ew=function(a,b){if(!(b.name in a.A)){var c=a.A,d=b.name,e;a.j?e=!!a.j[b.name]:(b.video?(e='video/webm; codecs="vp9"',Mv(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',Mv(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=Mv(e+"; "+b.name+"="+b.valid)&&!Mv(e+"; "+b.name+"="+b.Fg));c[d]=e}return a.A[b.name]};
var pw=function(a,b){this.o=a;this.j=b;this.A=0};
var qw=function(a){for(var b=[],c=[],d=0,e=a.j.length;d<e;++d){var f=a.j[d];f.bitrate<=a.A?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.j=b.concat(c)};
var rw=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.Mn=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.j=m||""};
var tw=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 rw(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 uw=function(a,b){this.jc=a;this.A=b;this.j=null};
var vw=function(a,b,c,d,e,f,k,l,m){c=new kr(c,"application/x-mpegURL",new jr,new rr(d,e,f,null,void 0,k),void 0,m);a=new pw(a,b);a.A=l?l:1369843;return new uw(c,a)};
var ww=function(a,b,c){if(!Tv&&!tt())return[];b=tw(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.j?d:null,l.push(vw([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.jc.fe&&a},!0)?d:null;
l.push(vw(k,f,"93",0,0,0,"auto",c,e));return Pv(a.D,l)};
var xw=function(a,b){this.jc=a;this.j=b};
var yw=function(a,b,c,d,e,f,k){var l=new jr;c in tr||(c="small");e&&f?(f=(0,window.parseInt)(f,10),e=(0,window.parseInt)(e,10)):(f=tr[c],e=Math.round(16*f/9));c=new rr(e,f,0,null,void 0,c,k);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new xw(new kr(d,b,l,c),a)};
var zw=function(a){var b=[];F(a,function(a){a.url&&b.push(yw(a.url,a.type,"medium","0"))});
return b};
var Aw=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||fr(e.s);e.url=wj(e.url,{signature:f})}e.url&&c.push(yw(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isFastLoad))}return Pv(a.D,c)};
var Bw=function(a){Wj.call(this);this.ne=new te(0,0);this.Za=this.Y=this.oa=!1;this.Zc="";this.Hc=this.vb=!1;this.bb={};this.captionTracks=[];this.Fa=[];this.Cb=0;this.captionTranslationLanguages=[];this.Ha=!1;this.X=new Wt("und",new qr("Default","und",!0));this.La=0;this.ke=this.ie=!1;this.H=null;this.T=[];this.je=new Wd(this.Gq,5E3,this);J(this,this.je);this.J=[];this.B={};this.keywords={};this.C={};Cw(this,a)};
var Dw=function(a,b){var c=b||{};c.iv_invideo_url&&(a.bf=cq(c.iv_invideo_url));c.iv_ads_only&&(a.yn="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.nb=c.cta_conversion_urls);a.isPharma=zu(a.isPharma,c.is_pharma);a.author=Cu(a.author,c.author);a.Jh=zu(a.Jh,c.cc_asr);var d=c.ttsurl;Ew.test(d)?a.Kh=d:d&&(d=bq(d),Ew.test(d)&&(a.Kh=d));c.caption_tracks&&c.caption_audio_tracks&&(Fw(a,c.caption_tracks),a.Fa=uj(c.caption_audio_tracks),c.default_audio_track_index&&(a.Cb=(0,window.parseInt)(c.default_audio_track_index,
10)||0),c.caption_translation_languages&&Gw(a,c.caption_translation_languages));a.Ha=zu(a.Ha,c.cc_contribute);a.clientPlaybackNonce=Cu(a.clientPlaybackNonce,c.cpn);a.subscribed=Cu(a.subscribed,c.subscribed);a.sentiment=Au(a.sentiment,c.sentiment,Hw);a.title=Cu(a.title,c.title);a.ypcPreview=Cu(a.ypcPreview,c.ypc_preview);a.ypcOrigin=Cu(a.ypcOrigin,c.ypc_origin);a.paygated=zu(a.paygated,c.paygated);a.requiresPurchase=zu(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=Iw(c.keywords));
c.rvs&&(a.G=uj(c.rvs));a.contentCheckOk=zu(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=zu(a.racyCheckOk,"1"==c.rco);a.oauthToken=Cu(a.oauthToken,c.oauth_token);a.visitorData=Cu(a.visitorData,c.visitor_data);c.session_data&&(a.da=rj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Ic=rj(c.endscreen_autoplay_session_data,"&"));a.ab=Cu(a.ab,c.tv_list);a.K=Au(a.K,c.beyond_config,Jw);F(Bw.F,function(a){a in c&&(this.B[a]=c[a])},a)};
var Cw=function(a,b){var c=b||{};a.Ed="1"!=c.hlsdvr?!1:Xv()?!0:Kw&&5>Lw?!1:!0;a.jg=c.ad_query_id;a.Jj=c.agcid;a.Dh="1"==c.infringe||"1"==c.muted;a.ub=c.authkey;a.zb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||xu());a.Ys=K();a.lk=zu(a.lk,c.cenchd);a.enableCardio=zu(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=zu(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.gf=Bu(a.gf,c.end||c.endSeconds);a.Ia=Cu(a.Ia,c.itct);a.fl=zu(a.fl,c.noiba);a.Bf="1"==c.livemonitor;
a.Da="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=zu(a.isMdxPlayback,c.mdx);a.ll=zu(a.ll,c.reload);a.ml=zu(a.ml,c.utpsa);a.Nb=c.cyc;for(var d in Bw.o){var e=c[d+"_webp"]||c[d];Mw.test(e)&&(a.bb[Bw.o[d]]=e)}a.L=Cu(a.L,c.vvt);a.Kj=c.osig;a.Bd=c.ptchn;a.Cd=c.oid;a.$=c.ptk;a.Dd=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.eventId&&bb(/^[A-Za-z0-9_-]*=*/g.test(a.eventId));
a.osid=c.osid;a.tv=c.vm;a.dv=c.of;a.playlistId=Cu(a.playlistId,c.list);a.he=c.pyv_view_beacon_url;a.Mj=c.pyv_quartile25_beacon_url;a.Zu=c.pyv_quartile50_beacon_url;a.av=c.pyv_quartile75_beacon_url;a.Lj=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.Ze=c.sdetail;!a.$a&&c.session_data&&(a.$a=rj(c.session_data,"&").feature);a.isFling=1==Bu(a.isFling?1:0,c.is_fling);a.vnd=Bu(a.vnd,c.vnd);a.fa=Cu(a.fa,
c.ctrl);a.ia=Cu(a.ia,c.ytr);a.ga=c.ytrcc;a.Sg=Fu(a.Sg,c.vq);a.Xg=Fu(a.Xg,c.suggestedQuality);a.ca=c.approx_threed_layout||0;a.af=zu(a.af,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||c.id||a.videoId;a.vssCredentialsToken=Cu(a.vssCredentialsToken,c.vss_credentials_token);a.jm=Cu(a.jm,c.vss_credentials_token_type);Nw(a,c.watermark);a.ypcGid=Cu(a.ypcGid,c.ypc_gid);a.heartbeatToken=Cu(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=Bu(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=
Bu(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=zu(a.heartbeatSoftFail,c.heartbeat_soft_fail);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.J.push("ad")):"1"!=c.supported_without_ads&&(a.qo=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ha=c.atc);c.license_info&&(a.zm=Ow(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.Gg="1"==c.autoplay);c.iv_load_policy&&(a.Ca=Au(a.Ca,c.iv_load_policy,Pw));c.cc_lang_pref&&(a.pe=Cu(c.cc_lang_pref,a.pe));c.cc_load_policy&&(a.qe=Au(a.qe,c.cc_load_policy,Pw));c.channel_path&&(a.Lh=Cu(c.channel_path,a.Lh));"0"==c.dash&&(a.On=!0);c.dashmpd&&(a.F=Wg(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.F))&&(e=fr(e[1]),a.F=a.F.replace(d,"/signature/"+e));c.delay&&(a.Te=Xa(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.Vo="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.J.push("fresca");c.idpj&&(a.ij=Xa(c.idpj));c.ismb&&(a.eh=Xa(c.ismb));c.is_episodic&&(a.bl="1"==c.is_episodic);c.is_listed&&(a.isListed=zu(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.Uf=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=Xa(c.length_seconds));if(c.live_chunk_readahead||
c.hls_live_chunk_readahead)a.nl=Bu(a.nl,c.live_chunk_readahead||c.hls_live_chunk_readahead);c.live_start_walltime&&(a.liveStartWalltime=Xa(c.live_start_walltime));c.ldpj&&(a.Am=Xa(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.Ch=a.perceptualLoudnessDb?Math.pow(10,Math.min(Bw.C-a.perceptualLoudnessDb,0)/20):Bw.j);c.partnerid&&(a.U=Xa(c.partnerid));c.probe_url&&(a.probeUrl=cq(Wg(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=Cu(c.profile_picture,a.profilePicture));
c.pyv_billable_url&&Qw.test(c.pyv_billable_url)&&(a.ta=c.pyv_billable_url);c.pyv_conv_url&&Qw.test(c.pyv_conv_url)&&(a.za=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Sa=d.quartile_0_url,a.xd=d.quartile_25_url,a.yd=d.quartile_50_url,a.zd=d.quartile_75_url,a.wd=d.quartile_100_url);"1"==c.spacecast_module&&(a.J.push("spacecast"),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=Bu(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||
a.Da||(a.clipStart=c.start);c.two_stage_token&&(a.jj=c.two_stage_token);c.url_encoded_third_party_media&&(a.Pe=uj(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&a.J.push("ypc");c.ypc_clickwrap_module&&a.J.push("ypc_clickwrap");a.cv=Cu(a.cv,c.ucid);F("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.C[a]=c[a])},a);
a.C.focEnabled=zu(a.C.focEnabled,c.focEnabled);a.C.rmktEnabled=zu(a.C.rmktEnabled,c.rmktEnabled);a.B=c;Dw(a,c);Rw(a);c.adpings&&(a.oe=c.adpings?tj(c.adpings):null);c.feature&&(a.$e=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q);c.multifeed_metadata_list&&(a.T=uj(c.multifeed_metadata_list))};
var Sw=function(a){return K()>a.Ys+1E3*Bw.D};
var Tw=function(a){return!(!a.A||!a.A.videoInfos.length)};
var Rw=function(a){Uw(a)||(a.adaptiveFormats?(a.j=et(Vw(a,a.adaptiveFormats),a.zm,a.lengthSeconds),J(a,a.j),dt(a.j)&&(a.Y=!0)):a.F&&(a.oa=!0))};
var Uw=function(a){return!Xv()||a.On?!0:!1};
var Ww=function(a){a.isDisposed()||(a.Pd=!1,a.O("dataloaded",a.B))};
var Xw=function(a,b){if(!a.isDisposed()){a.A=null;a.If=null;a.N=null;var c=Uw(a)||b.jl;if(!c&&a.spacecastAdaptiveFormats)a.j=et(Vw(a,a.spacecastAdaptiveFormats),a.zm,a.lengthSeconds),J(a,a.j),a.A=gw(b.D,a.j,a.H,!0);else if(a.spacecastFormatMap){var d=Vw(a,a.spacecastFormatMap);a.N=Aw(b,d);a.A=new du(Q(a.N,function(a){return a.jc}))}if(a.A){var e,f=0;
Q(a.A.videoInfos,function(a){!e&&a.video.j&&f<a.video.height&&(e=a.video.quality,f=a.video.height)});
e&&(d=Yt(e,e,!0),a.Sg=d,a.Xg=d)}a.A||c||!a.j||(b.J||nt(a.j,a.Da),a.A=gw(b.D,a.j,a.H));a.A||(a.N=Yw(a,b),a.N.length&&(a.A=new du(Q(a.N,function(a){return a.jc}))));
Zw(a)}};
var Yw=function(a,b){if(a.hlsFormats){var c=Vw(a,a.hlsFormats),c=ww(b,c,a.eh);if(c.length)return c}if(a.Pe&&a.$o)return c=zw(a.Pe),Pv(b.D,c);c=Vw(a,a.Uf,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.eh,f={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(f.ibw=e?String(e):"1369843");d={url:Wg(d,f),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return Aw(b,c)};
var $w=function(a){return a.o&&a.o.fe||null};
var ax=function(a){a.ej||(a.B.storyboard_spec?a.ej=new qu(a.B.storyboard_spec,a.lengthSeconds):a.B.live_storyboard_spec&&a.j&&(a.ej=new tu(a.B.live_storyboard_spec,a.j)));return a.ej};
var bx=function(a){var b=ax(a);!a.Ui&&b&&(a.Ui=new iu(b),J(a,a.Ui));return a.Ui};
var cx=function(a){return a.j&&!(0,window.isNaN)(lt(a.j))?lt(a.j):0};
var dx=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.Pe)};
var ex=function(a){return!!(a.j||a.Uf||a.Pe||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};
var fx=function(a){var b=ib(a.J,"ypc");a.ypcPreview&&(b=!1);return dx(a)&&!a.Pd&&!a.oa&&!a.Y&&(ex(a)||ib(a.J,"fresca")||b)};
var Vw=function(a,b,c){b=uj(b);var d={};c&&F(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});
F(b,function(a){a.url&&(a.url=Wg(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b};
var Iw=function(a){var b={};F(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});
return b};
var Nw=function(a,b){if(b){var c=b.split(",");2<=c.length&&(a.Ya=c[1],Mw.test(a.Ya)&&-1==a.Ya.search(Bw.G)||(a.Ya=""))}};
var Ow=function(a){a=uj(a);var b={};F(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});
return b};
var Fw=function(a,b){for(var c=uj(b),d=0;d<c.length;d++){var e=c[d],f=e.u;Ew.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 St(f)))}};
var Gw=function(a,b){for(var c=uj(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new Rt({languageCode:e.lc,languageName:e.n}))}};
var Zw=function(a){for(var b=a.A?a.A.audioTracks:[],b=b.concat(a.X),c=0;c<a.Fa.length;c++)for(var d=a.Fa[c],e=0;e<b.length;e++){var f=b[e],k=f.Ib.id==d.aid;if(f==a.X&&c==a.Cb||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.jk=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(f.tg=a.captionTracks[(0,window.parseInt)(d.f,10)]);f.En=(0,window.parseInt)(d.v,10)}}};
var gx=function(a,b){return!!a.B[b]};
var hx=function(a){return a.Da&&!a.Ed};
var ix=function(a){return a.Da&&a.Ed};
var jx=function(a){if(a.ca||a.Oc["3D"])return!0;a=a.Oc("yt3d:enable");return"true"==a||"LR"==a||"RL"==a};
var kx=function(a){if(!a.j)return!1;for(var b in a.j.j){var c=a.j.j[b].info.video;if(c&&3==c.projectionType||c&&2==c.projectionType&&3==a.ca)return!0}return!1};
var lx=function(a){Wj.call(this);this.startSeconds=0;this.K=!1;this.j=0;this.title="";this.A=0;this.o=[];this.G=this.D=!1;this.da=this.Ic=this.F=null;this.views=0;this.U=0!=a.fetch;this.B=[];this.j=Math.max(0,a.index||0);this.J=!!a.loop;this.startSeconds=a.startSeconds||0;this.T="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.N={};a.video_id&&(this.o[this.j]=a);a.api&&("string"==typeof a.api&&16==a.api.length?
a.list="PL"+a.api:a.playlist=a.api);this.H=0;if(a.list)switch(a.listType){case "user_uploads":mx(this,a.list);break;case "user_favorites":nx(this,a.list);break;case "search":ox(this,a.list);break;default:a.playlist_length&&(this.A=a.playlist_length),this.C=er(a.list),a.video?(this.o=a.video.slice(0),this.D=!0):px(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.j&&(this.o=[]);F(b,function(a){a&&this.o.push({video_id:a})},this);
this.A=this.o.length;b=Q(this.o,function(a){return a.video_id});
qx(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.D=!0}this.setShuffle(!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in Bw.o)b="playlist_"+c,b=a[b+"_webp"]||a[b],Mw.test(b)&&(this.N[Bw.o[c]]=b);this.L=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};
var rx=function(a){return!!(a.playlist||a.list||a.api)};
var sx=function(a){var b=a.j+1;return b>=a.A?0:b};
var tx=function(a){var b=a.j-1;return 0>b?a.A-1:b};
var ux=function(a,b){a.j=le(b,0,a.A-1);a.startSeconds=0};
var mx=function(a,b){a.G||(a.C=new dr("UU","PLAYER_"+b),qx(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};
var nx=function(a,b){a.G||(a.C=new dr("FL","PLAYER_"+b),qx(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
var ox=function(a,b){if(!a.G){a.C=new dr("SR",b);var c={search_query:b};a.T&&(c.mob="1");qx(a,"/search_ajax?style=json&embeddable=1",c)}};
var px=function(a){if(!a.G){var b={list:a.C},c=a.rb();c&&c.videoId&&(b.v=c.videoId);qx(a,"/list_ajax?style=json&action_get_list=1",b)}};
var qx=function(a,b,c){a.U&&Gj(Wg(b,c),{format:"JSON",kb:function(a,b){vx(this,b)},
onError:function(){this.O("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.J=b.loop);var c=a.rb();a.o=[];F(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.o.push(a))},a);
a.A=a.o.length;b.index?a.j=b.index:wx(a,c);a.setShuffle(!1);a.G=!1;a.D=!0;a.H++;a.F&&a.F()}};
var wx=function(a,b){if(b){var c=b.videoId;if(!a.o[a.j]||a.o[a.j].video_id!=c)for(var d=0;d<a.o.length;d++)if(a.o[d].video_id==c){a.j=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 rx(a)?(a.fetch=0,new lx(a)):new Bw(a)};
var Ax=function(a,b,c,d){var e=b.rb();N(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.Ue();d=b.kc(c,d?d:"mqdefault.jpg");var k=b instanceof Bw?xx(b.lengthSeconds):null,l=!!f,f=l&&"RD"==er(f).type;c={title:b.title,author:b.author,watch:R("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:k,url:b.zk(c),episodic_title:b.title,is_episodic:e.bl,is_featured:e.Vo,is_list:l,is_mix:f,background:d?"background-image: url("+d+")":""};b instanceof lx&&(c.playlist_length=b.A,c.episodic_length=
b.A,c.episodic_index=b.j);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",R("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",R("YTP_AUTOPLAY_PAUSED_2")]],
["span","ytp-upnext-close"]];S.call(this,b);var c=this.na["ytp-upnext-cancel"],b=this.na["ytp-upnext-close"],d=new S(["button",["ytp-upnext-cancel-button","ytp-button"],{tabindex:0,"aria-label":R("YTP_AUTOPLAY_CANCEL")},R("YTP_CANCEL")]);J(this,d);d.R("click",this.Vs,this);d.j(c);c=new S(["button",["ytp-upnext-close-button","ytp-button"]]);J(this,c);c.R("click",this.Vs,this);c.j(b);b=this.na["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.B=a;this.F=bf("ytp-svg-autoplay-ring",this.element);this.o=this.C=null;this.D=0;T(this,b,"click",this.rG);this.xp();T(this,a,"autonavvisibility",this.xp)};
var Cx=function(a){a.o||(Ui("a11y-announce",R("YTP_PLAYLIST_UP_NEXT")+" "+a.C.title),a.D=ct(),a.o=new Wd(a.Wm,25,a),a.Wm());ae(a.element,"ytp-upnext-autoplay-paused")};
var Dx=function(a){Ex(a);a.D=ct();a.Wm();L(a.element,"ytp-upnext-autoplay-paused")};
var Ex=function(a){a.o&&(a.o.dispose(),a.o=null)};
var Fx=function(a,b){S.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.o=0;this.H=null};
var Gx=function(){};
var Hx=function(a){var b=window.location;a=Wg(a,{})+"";a=a instanceof Je?a:Me(a);b.href=Le(a)};
var Ix=function(a,b){var c=Ei("EVENT_ID");c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=Ei("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Ng(window.location.href);e&&d.push(e);e=Ng(a);if(ib(d,e)||!e&&sa(a,"/"))if(d=Kg(a),d=Jg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e))d=Ei("SMALLER_SESSION_TEMPDATA_NAME")?"ST-"+Ua(d).toString(36):"s_tempdata-"+Ua(d),e=c?Ug(c):"",nk(d,e,5),c&&(c=c.itct||c.ved,d=v("yt.logging.screenreporter.storeParentElement"),c&&d&&d(new Gx))}};
var Jx=function(a,b){window.open(a,b||Ua(a).toString(36))};
var Kx=function(a){var b=!a.V().ta&&3!=a.getPresentingPlayerType();return a.Ja()||b};
var Lx=function(a,b,c){if(!c&&yx(a))return dm(a),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");Ix(a,null);return!1};
var Mx=function(a,b,c){if(Nx(b.V())&&2!=b.getPresentingPlayerType()){if(yx(c))return b.Ja()&&Ox(b),dm(c),!0}else{var d=yx(c);d&&b.pauseVideo();Ix(a,null);d&&(Jx(a),dm(c))}return!1};
var Px=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&&(yc||vc)?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 Qx=function(a){var b=a.V(),c=b.experiments.ma("video_wall_redesign");this.C=b.experiments.ma("endscreen_redirect")&&!Rx(b);S.call(this,["a","videowall-still",{tabindex:null,href:"{{url}}",target:this.C?"_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",
R("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",R("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"],R("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"],R("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.B=a;this.o=null;this.R("click",this.D);this.R("keypress",
this.F)};
var Sx=function(a,b,c){Kq.call(this,a,b,"videowall-endscreen");this.X=c;this.G=0;this.C=[];this.F=this.B=null;this.K=this.T=!1;this.L=new Wd(oa(L,this.element,"ytp-show-tiles"),0);J(this,this.L);if(b=this.o.V().experiments.ma("video_wall_pagination"))c=new S(["button",["ytp-button","ytp-endscreen-previous"],{"aria-label":R("YTP_PREVIOUS")}]),J(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.j(this.element),c.R("click",this.oz,this);this.P=new zq(["div","ytp-endscreen-content"]);J(this,this.P);this.P.j(this.element);b&&(b=new S(["button",["ytp-button","ytp-endscreen-next"],{"aria-label":R("YTP_NEXT")}]),J(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.j(this.element),b.R("click",this.nz,this));this.o.V().experiments.ma("video_wall_redesign")&&
L(this.element,"ytp-endscreen-redesign");this.D=new Bx(a);J(this,this.P);Xq(this.o,this.D.element,4);this.ea();this.R("transitionend",this.ud)};
var Tx=function(a){return Ux(a.o.V(),a.o.getVideoData(),a.o.bc())&&a.Eh()&&!a.F};
var Vx=function(a,b,c,d){return 0==b&&c>=3*Sx.j&&d>=3*Sx.j&&a.B.length&&zx(a.B[0]).rb().bl?2*Sx.j:Sx.j};
var Wx=function(a){var b=Xx(a.X);b!=a.T&&(a.T=b,a.o.app.Oa("autonavvisibility"))};
var Yx=function(a){pq.call(this,a);Li({});this.qa="endscreen";this.logEvent="end";this.o=null;var b=a.V();Zx(a)?this.o=new Sx(this.j,this.P,this):b.Y?this.o=new Wq(this.j,this.P):this.o=new Kq(this.j,this.P);Xq(this.j,this.o.element,4)};
var $x=function(a){var b=a.getVideoData(),b=b&&b.Da;return ay(a.V())&&1==a.getPresentingPlayerType()&&!b};
var by=function(a){var b=a.j.getVideoData(),c=!Zx(a.j)||!(!b.G||!b.G.length);a.j.V();b=gx(b,"ypc_module");a=cy(a.j.app);return c&&!b&&!a};
var Zx=function(a){a=a.V();return a.Zc&&!a.Y};
var Xx=function(a){return a.o instanceof Sx&&a.o.A&&Tx(a.o)};
var dy=function(a){var b=Math.max(1E3*(a.j.getVideoData().lengthSeconds-10),0),b=new lq(b,0x8000000000000,{id:"preload"}),c=new lq(0x8000000000000,0x8000000000000,{id:"load",priority:6});a.fb([b,c])};
var ey=function(a){return $x(a)?new Yx(a):null};
var fy=function(a){return(a=gy[a.toString()])?a:"YTP_ERROR_LICENSE"};
var hy=function(){var a=[],b=[];return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}};
var iy=function(a){var b="";if(a)for(var c=0;c<a.length;c++)b+=a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3)+",";return b};
var jy=function(a,b){if(!a)return-1;for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c;return-1};
var ky=function(a,b){var c=jy(a,b);return 0<=c?a.end(c):window.NaN};
var ly=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
var my=function(a,b){var c=ky(a,b);return 0<=c?c-b:0};
var ny=function(){};
var br=function(a){a.src&&(Tv&&0<a.readyState&&(a.currentTime=Math.max(oy,0)),a.removeAttribute("src"),a.load(),!a.Ye||!a.Ye.j||a.Ye&&a.Ye.equals(null)||(a.Ye&&a.Ye.dispose(),a.Ye=null))};
var py=function(a,b){a.defaultPlaybackRate=b;a.playbackRate=b};
var qy=function(a,b){this.o=a||64;this.j=b||null};
var ry=function(a,b,c,d,e){if(V(a,128))return a;var f=a.o,k=a.j,l=b.target;if(!V(a,64)||"ended"!=b.type&&"pause"!=b.type)if("pause"==b.type&&l.j.ended||"ended"==b.type&&(l.j.ended||1>Math.abs(l.getCurrentTime()-l.j.duration)))0<l.j.networkState&&l.j.src&&(f=14,k=null);else if("pause"==b.type)V(a,256)?(f^=256)||(f=64):V(a,32)||V(a,2)||V(a,4)||(f=4,V(a,1)&&V(a,8)&&(f|=1),k=null);else if("playing"==b.type)f=8,k=null,V(a,32)&&(f|=32),d&&V(a,1)&&sy(c,l)&&(f|=1);else if("error"==b.type){a:{if(2==l.getErrorCode())b=
"progressive.net";else if(3==l.getErrorCode())b="fmt.decode";else if(4==l.getErrorCode())b="fmt.unplayable";else{b=null;break a}b={errorCode:b,message:R("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(k=b,f|=128)}else if("progress"==b.type)ty(a)&&sy(c,l)&&(f|=1);else if("seeked"==b.type)f&=-17;else if("seeking"==b.type)f|=16,0>=uy(l)&&(f|=1),f&=-3;else if("waiting"==b.type)V(a,2)||(f|=1);else if("timeupdate"==b.type)e&&8!=a.o&&!V(a,512)?f|=512:(V(a,16)||V(a,4)||
(f=sy(c,l)?f|1:f&-2),1<l.j.readyState&&0<l.getCurrentTime()&&(f&=-65));else return a;return vy(a,f,k)};
var sy=function(a,b){return a?wy(a,b.getCurrentTime(),ct(),uy(b)):!1};
var vy=function(a,b,c){b&-522&&(b&=-513);return b==a.o&&c==a.j||b&128&&!c||b&2&&b&16?a:new qy(b,c)};
var yy=function(a,b){return vy(a,a.o|b)};
var zy=function(a,b){return vy(a,a.o&~b)};
var Ay=function(a){return vy(a,(a.o|4)&-9)};
var V=function(a,b){return!!(a.o&b)};
var ty=function(a){return V(a,8)&&!V(a,2)};
var By=function(a){return V(a,64)&&!V(a,8)&&!V(a,4)};
var Cy=function(a){return V(a,1)&&!V(a,2)};
var Dy=function(a){return V(a,128)?-1:V(a,2)?0:V(a,1)&&!V(a,32)?3:V(a,64)?-1:V(a,8)?1:V(a,4)?2:-1};
var Ey=function(a,b,c){Wj.call(this);this.D=b;this.j=7500+Math.floor(15E3*Math.random());this.F=c.innertubeApiKey;this.G=JSON.stringify({context:{client:{clientName:c.Xx,clientVersion:c.innertubeContextClientVersion,hl:c.Zx,gl:c.Yx}},videoId:a});this.H="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.o=new Wd(A(this.C,this));J(this,this.o);this.C()?this.o.start(this.j):this.o.start(1E4)};
var Fy=function(a){S.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.o=a;this.R("click",this.B,
this)};
var Gy=function(a){S.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.o=[];this.B=a;this.C=!1};
var Hy=function(a,b){Eq(a,"suggested_sidebar_title",b.o?R("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.o}):"");var c=a.na["ytp-fresca-suggested-sidebar-close-button"];Ah(c);T(a,c,"click",a.lz);Nb(a.o);a.o=[];F(b.j,function(a,b){if(!(5<=b)&&a){var c=new S(["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.Tr,suggested_content:Ky(a),badge_content:l,image_style:k,link_destination:a.getVideoUrl()});k=c.na["ytp-fresca-suggested-image-badge"];N(k,"ytp-fresca-suggested-image-badge-live",a.isLive());k.style.display=l?"":"none";c.R("click",this.ty,this);this.o.push(c)}},a);
Eq(a,"sidebar_items",a.o)};
var Ly=function(a){S.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.H=a;this.D=0;this.o=null;this.F=-1;this.C=new Fy(a);J(this,this.C);this.B=new Gy(a);
J(this,this.B);this.C.ea();this.C.j(this.element);this.B.ea();this.B.j(this.element)};
var My=function(a,b,c){if(!a.o||a.o.state!=b.state||a.o.startTime!=b.startTime||a.o.imageUrl!=b.imageUrl||a.o.messageText.join()!=b.messageText.join()||c)if(a.o=b,b=Ny(b),N(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.o.imageUrl,b=a.na["ytp-fresca-slant-blur-image"],c=c?"url("+c+")":"",a.element.style.backgroundImage=c,b.style.backgroundImage=c,b=a.o.getMessage(),a.update({heading:b[0]||"",byline:b[1]||"",countdown:b[2]||""}),a.G(!0),a.o.o&&!Oy(a.H))if(Py(a.o.o)&&!Ny(a.o)){b=a.C;c=a.o.o.j[0];
var d;d=a.o.o;d=d.o?R("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.o}):"";var e="background-image:"+Iy(c);b.update({suggested_header_central:d,suggested_title:c.Tr,suggested_content:Ky(c),badge_content:Jy(c),link_destination:c.getVideoUrl(),image_style:e});N(b.na["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.C.show();a.B.ea()}else b=a.o.o,!(0<b.j.length)||Py(b)||Ny(a.o)||a.B.C?a.B.ea():(Hy(a.B,a.o.o),a.B.show()),a.C.ea();else a.C.ea(),a.B.ea()};
var Qy=function(a,b,c,d,e,f){y(a)?(this.D="y"==a?b:0,this.C="m"==a?b:0,this.j="d"==a?b:0,this.o="h"==a?b:0,this.A="n"==a?b:0,this.B="s"==a?b:0):(this.D=a||0,this.C=b||0,this.j=c||0,this.o=d||0,this.A=e||0,this.B=f||0)};
var Ry=function(a,b,c){fa(a)?(this.date=Sy(a,b||0,c||1),Ty(this,c||1)):ha(a)?(this.date=Sy(a.getFullYear(),a.getMonth(),a.getDate()),Ty(this,a.getDate())):(this.date=new Date(K()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Ty(this,a))};
var Sy=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
var Ty=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
var Uy=function(){};
var Vy=function(a){if("number"==typeof a){var b=new Uy;b.A=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(":",Na(c,2));c=d.join("")}b.B=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=Wy(a);b.C=[c,c];b.j={SI:a,mn:a};b.o=[];return b}b=new Uy;b.B=a.id;b.A=-a.std_offset;b.C=a.names;b.j=a.names_ext;b.o=a.transitions;return b};
var Wy=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Na(Math.floor(a/60)%100,2),":",Na(a%60,2));return b.join("")};
var Xy=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.o.length&&c>=a.o[d];)d+=2;return 0==d?0:a.o[d-1]};
var Yy=function(a,b){this.o=[];this.j=b||Zy;"number"==typeof a?$y(this,a):az(this,a)};
var az=function(a,b){for(bz&&(b=b.replace(/\u200f/g,""));b;)for(var c=0;c<cz.length;++c){var d=b.match(cz[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.o.push({text:d,type:c});break}}};
var $y=function(a,b){var c;if(4>b)c=a.j.Ej[b];else if(8>b)c=a.j.nn[b-4];else if(12>b)c=a.j.Jt[b-8],c=c.replace("{1}",a.j.Ej[b-8]),c=c.replace("{0}",a.j.nn[b-8]);else{$y(a,10);return}az(a,c)};
var dz=function(a,b){var c;c=String(b);var d=a.j||Zy;if(void 0!==d.bv){for(var e=[],f=0;f<c.length;f++){var k=c.charCodeAt(f);e.push(48<=k&&57>=k?String.fromCharCode(d.bv+k-48):c.charAt(f))}c=e.join("")}return c};
var ez=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 fz=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.j.Nt[c]:a.j.Ot[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),dz(a,Na(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.j.wu[c];break a;case 4:k=a.j.bn[c];break a;case 3:k=a.j.fn[c];break a;default:k=dz(a,Na(c+1,k))}return k;case "k":return ez(e),dz(a,Na(e.getHours()||24,k));case "S":return dz(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?Na(0,k-3):""));
case "E":return c=d.getDay(),4<=k?a.j.sn[c]:a.j.gn[c];case "a":return ez(e),k=e.getHours(),a.j.Xm[12<=k&&24>k?1:0];case "h":return ez(e),dz(a,Na(e.getHours()%12||12,k));case "K":return ez(e),dz(a,Na(e.getHours()%12,k));case "H":return ez(e),dz(a,Na(e.getHours(),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.j.Pu[c];break a;case 4:k=a.j.ln[c];break a;case 3:k=a.j.kn[c];break a;default:k=dz(a,Na(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.j.Ou[c];break a;case 4:k=a.j.hn[c];break a;
case 3:k=a.j.jn[c];break a;default:k=dz(a,Na(c+1,k))}return k;case "Q":return c=Math.floor(d.getMonth()/3),4>k?a.j.Iu[c]:a.j.Cu[c];case "d":return dz(a,Na(d.getDate(),k));case "m":return ez(e),dz(a,Na(e.getMinutes(),k));case "s":return ez(e),dz(a,Na(e.getSeconds(),k));case "v":return k=f||Vy(c.getTimezoneOffset()),k.B;case "V":return a=f||Vy(c.getTimezoneOffset()),2>=k?a.B:0<Xy(a,c)?n(a.j.Mt)?a.j.Mt:a.j.DST_GENERIC_LOCATION:n(a.j.mn)?a.j.mn:a.j.STD_GENERIC_LOCATION;case "w":return c=a.j.Hj,e=new Date(e.getFullYear(),
e.getMonth(),e.getDate()),b=a.j.Gj||0,c=e.valueOf()+864E5*(((n(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),dz(a,Na(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=f||Vy(c.getTimezoneOffset()),4>k?a.C[0<Xy(a,c)?2:0]:a.C[0<Xy(a,c)?3:1];case "Z":return e=f||Vy(c.getTimezoneOffset()),4>k?(k=-(e.A-Xy(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(Na(Math.floor(k/60)%100,2),Na(k%60,2)),k=a.join("")):k=dz(a,Wy(e.A-Xy(e,c))),k;default:return""}};
var gz=function(a){this.C=a.thumbnailUrl?a.thumbnailUrl:null;this.j=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.Tr=a.title;this.o=a.state;this.A=a.currentViewers?(0,window.parseInt)(a.currentViewers,10):null;this.D=a.videoUrl;this.B=a.durationSecs?(0,window.parseInt)(a.durationSecs,10):null};
var Iy=function(a){return(a=a.C)?"url("+a+")":""};
var Ky=function(a){if("COMPLETE"==a.o){var b=Math.floor(K()/1E3);a=a.j?b-a.j:0;return 172800<a?R("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?R("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):R("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(K()/1E3),a=a.j?a.j-b:0,172800<a?R("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?R("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):R("YTP_FRESCA_STREAMING_SOON")):a.A&&2<a.A?R("YTP_FRESCA_VIEWERS_WATCHING_NOW",
{VIEWER_COUNT:a.A}):R("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")};
var Jy=function(a){return"COMPLETE"==a.o&&a.B?xx(a.B):a.isLive()?R("YTP_FRESCA_LIVE_BADGE"):null};
var hz=function(a){this.o=a.channelName?a.channelName:"";this.j=[];if(a=a.suggestedEvents)for(var b=0;b<a.length;b++)this.j.push(new gz(a[b]))};
var Py=function(a){return 1==a.j.length&&a.j[0].isLive()};
var iz=function(a,b){this.state=-1;this.A=a;this.messageText=[];this.B=!1;b&&jz(this,b)};
var jz=function(a,b){var c=b.lifeCycleState;c&&(a.state=kz[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.B=0<=eb(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});
if(c=b.broadcastId)a.broadcastId=c;a.o=new hz(b)};
var lz=function(a){switch(a.state){case 6:return!a.j()&&a.A?[R("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,R("YTP_FRESCA_EVENT_OFFLINE")]:a.j()?[]:[R("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),R("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:return[R("YTP_FRESCA_EVENT_OVER_MESSAGE"),R("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(Ny(a))return["Dawn of","The final day","-24 hours remain-"];if(!a.A&&a.startTime){var b=Ei("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d="",d=b.formatLongDate;
Zy={bn:b.months,hn:b.months,fn:b.shortMonths,jn:b.shortMonths,Ej:b.dateFormats,sn:b.weekdays,ln:b.shortMonths,gn:b.shortWeekdays,kn:b.shortWeekdays,Xu:b.weekendRange,Gj:b.firstDayOfWeek,Hj:b.firstWeekCutoffDay,Xm:b.amPms};c=(new Yy(d)).format(new Date(1E3*c))}b=Math.floor(K()/1E3);return[b<=a.startTime?R("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?R("YTP_FRESCA_EVENT_STARTING_SOON"):R("YTP_FRESCA_EVENT_HASNT_STARTED"),c]}return a.A?[R("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,R("YTP_FRESCA_EVENT_OFFLINE")]:
a.A?[R("YTP_FRESCA_EVENT_OFFLINE")]:[R("YTP_FRESCA_STAND_BY_MESSAGE")]}};
var Ny=function(a){if(!a.startTime)return!1;var b=a.startTime-Math.floor(K()/1E3);return ib(mz,a.state)&&86459>=b&&86400<=b};
var nz=function(a){pq.call(this,a);this.logEvent=this.qa="fresca";this.A=this.H=!1;this.B=null;Li({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.D=!1;this.J="leanback"!=this.j.V().ya};
var oz=function(a,b){if(!a.J)return!1;var c=!!b.getMessage().length||!!b.imageUrl;if(!a.A&&6>b.state)return c;if(a.j.app.j.J&&(b.imageUrl||b.messageText.length))return!0;var d=pz(a.j),d=Cy(d)||V(d,2),e;if(e=!a.o.j())(e=!a.A)||(e=!(pz(a.j).Ua()&&!hx(a.j.getVideoData())&&!a.j.app.j.J)&&d);return e||a.H&&a.j.app.j.J||!a.A&&6<b.state?c:!1};
var qz=function(a,b){var c=oz(a,b);if(!a.A)switch(b.state){case 6:b.j()&&(a.A=!0,tq(a));break;case 8:case 7:a.A=!0}c&&My(a.C,b);c&&!a.loaded?(a.load(),rz(a.j)):!c&&a.loaded&&(a.unload(),rz(a.j))};
var sz=function(a){return gx(a.getVideoData(),"fresca_module")?new nz(a):null};
var tz=function(a,b){if(!a.o||!a.o.equals(b)){a.o=b;var c=a.j,d;d={hasActiveStream:b.j(),imageUrl:b.imageUrl,messageText:b.getMessage(),startTime:b.startTime,state:b.state};rz(c,d)}};
var uz=function(){if(!xc)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
var vz=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(wz){var b=xz();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
var yz=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 zz=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=Ye(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=Ye(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null};
var xz=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 Az=function(a){this.o=a||window;this.j=[]};
var Bz=function(a,b,c){c=A(c,a.o);b=Ul(b,"mouseleave",c);a.j.push(b);return b};
var Cz=function(a,b,c,d){c=A(c,d||a.o);b=Xl(b,c);a.j.push(b)};
var Dz=function(a,b,c){H.call(this);this.j=null;this.B=!1;this.D=a;this.C=c;this.o=b||window;this.A=A(this.hw,this)};
var Ez=function(a){a=a.o;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
var Fz=function(a){a=a.o;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
var Gz=function(a){a=ia(a);delete Hz[a];cc(Hz)&&Iz&&Iz.stop()};
var Jz=function(){Iz||(Iz=new Wd(function(){Kz()},20));
var a=Iz;a.isActive()||a.start()};
var Kz=function(){var a=K();Ob(Hz,function(b){Lz(b,a)});
cc(Hz)||Jz()};
var Mz=function(){fd.call(this);this.j=0;this.endTime=this.startTime=null};
var Nz=function(a,b,c,d){Mz.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.A=a;this.G=b;this.duration=c;this.D=d;this.o=[];this.progress=this.F=0;this.C=null};
var Lz=function(a,b){a.progress=(b-a.startTime)/(a.endTime-a.startTime);1<=a.progress&&(a.progress=1);a.F=1E3/(b-a.C);a.C=b;Oz(a,a.progress);1==a.progress?(a.j=0,Gz(a),a.Rb(),a.Kg()):a.Ua()&&a.wl()};
var Oz=function(a,b){ga(a.D)&&(b=a.D(b));a.o=Array(a.A.length);for(var c=0;c<a.A.length;c++)a.o[c]=(a.G[c]-a.A[c])*b+a.A[c]};
var Pz=function(a,b){lc.call(this,a);this.x=b.o[0];this.y=b.o[1];this.duration=b.duration;this.progress=b.progress;this.fps=b.F;this.state=b.j};
var Qz=function(a){return Math.pow(a,3)};
var Rz=function(a){return 3*a*a-2*a*a*a};
var Sz=function(a){this.j=[];this.o=a};
var Tz=function(a,b){for(var c=[],d=0;d<a.j.length;++d){var e=a.j[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c};
var Uz=function(a,b,c){return a.j.slice(Vz(a,b),null==c?a.j.length:Vz(a,c))};
var Vz=function(a,b){var c=Bb(a.j,function(a){return b-a.start||1});
return 0>c?-(c+1):c};
var Wz=function(a,b){for(var c=void 0,d=0;d<a.j.length;d++){var e=a.j[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 Xz=function(a,b,c,d,e,f){H.call(this);this.B=0;this.J=!1;this.F=null;this.G=!1;this.A=f;this.H=this.D=!1;this.U=a;this.N=b;this.L=c;this.T=this.A?null:d;this.P=e;this.K=new Wd(this.qc,250,this);J(this,this.K);this.C=new Wd(this.qc,0,this);J(this,this.C);this.o=[];this.j=new Sz(this.A?oq:kq)};
var Yz=function(a,b){var c=[];if(!b.length)return c;a.A||b.sort(oq);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.o.indexOf(e)&&(a.o.push(e),c.push([1,e]))}return c};
var Zz=function(a,b){var c=[];if(!b.length)return c;b.sort(oq);for(var d=0;d<b.length;d++){var e=b[d],f=a.o.indexOf(e);!a.A&&0>f||(a.o.splice(f,1),c.push([2,e]))}return c};
var $z=function(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];1==d[0]?(e.B&&nq(e).O("onEnter",e),a.P("crn_"+e.j,e)):(e.B&&nq(e).O("onExit",e),a.P("crx_"+e.j,e))}};
var aA=function(a){var b=Wz(a.j,Math.max(a.B-2E3,0));null!=b&&(!a.A||0x7ffffffffffff>b)&&a.C.start()};
var bA=function(a){var b=Wz(a.j,a.B);null!=b&&(b=(b-a.B)/a.N(),a.C.start(b))};
var cA=function(a){return V(a.L(),2)?0x8000000000000:1E3*a.U()};
var dA=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 eA=function(a){return da(a)&&a.length?a[0]:a};
var fA=function(a){var b=/.+/;return y(a)&&null!=b&&null!=a&&a.match(b)?a:""};
var gA=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 hA=function(a){return y(a)?a:""};
var iA=function(a,b,c){for(var d in b)if(b[d]==a)return a;return c};
var jA=function(a,b){return"true"==a||"false"==a?"true"==a:b};
var kA=function(a,b){return y(a)?(0,window.parseFloat)(a):b};
var lA=function(a,b,c,d,e){a=(0,window.parseFloat)(a);if(null!=a&&!(0,window.isNaN)(a)){if(d)return le(a,b,c);if(a>=b&&a<=c)return a}return e};
var mA=function(a){if(null==a)return 0;if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;F(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});
return c*b};
var nA=function(a,b){if(null==a)return null;if(ea(a)){var c=[];F(a,function(a){(a=b(a))&&c.push(a)});
return c}var d=b(a);return d?[d]:[]};
var oA=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new se((0,window.parseFloat)(a.top),(0,window.parseFloat)(a.right),(0,window.parseFloat)(a.bottom),(0,window.parseFloat)(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null};
var pA=function(a){function b(a){return be(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)};
var qA=function(a,b,c,d){this.value=a;this.target=b;this.showLinkIcon=c;this.Gi=d};
var rA=function(a){if(!a)return null;var b=hA(a.value);if(!b)return null;var c=iA(a.target,sA,"current");return null==c?null:new qA(b,c,jA(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)};
var tA=function(a){return a.value?a.value:null};
var uA=function(a){var b;(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=vA(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1};
var vA=function(a){a=a.replace(/^(https?:)?\/\//,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()};
var wA=function(a){a=tA(a);if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!uA(a))||(b=Mg(Kg(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=vj(a);if(!b||!b.v)return null;if(b.t)return dA(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=tj(a[1]))&&a.t?dA(a.t):-1};
var xA=function(a){a=tA(a);a=a.replace(/https?:\/\//g,"");return uA(a)?(a=vj(a))&&a.v?a.v:null:null};
var yA=function(a,b,c,d){(a=tA(a))?uA(a)?d=xj(a,{feature:"iv",src_vid:c,annotation_id:b},!1):(a?(b=vA(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=oa(zA,d.pageId,d.zb),a=new P(a),fh(a,d(a.A)),d=a.toString()):d=a):d=null;return d};
var zA=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 AA=function(a,b){return b?b:uA(a)?"current":"new"};
var BA=function(a){this.o=a;this.j=0;this.C=window.NaN;this.A=0;this.sa=[];this.B=CA(this.o);this.D=this.F=0};
var DA=function(a){a.B.startTime=a.A;a.B.endTime=a.j;a.sa.length&&cb(a.sa).isEmpty()?a.sa[a.sa.length-1]=a.B:a.sa.length&&a.B.isEmpty()||a.sa.push(a.B);a.F+=a.j-a.A;a.B=CA(a.o);a.A=a.j};
var EA=function(a){return a.F+a.o.A()-a.A};
var FA=function(a){a.sa.length&&a.j==a.A||DA(a);var b=a.sa;a.sa=[];return b};
var GA=function(a,b,c){c-=a.C;return b==a.j&&.5<c};
var HA=function(a,b){this.o=b;this.B=!1;this.j=a};
var IA=function(a,b,c){HA.call(this,b,c);this.C=a};
var JA=function(a){lj("yt-player-bandwidth",a,2592E3)};
var KA=function(){return nj("yt-player-quality")||"auto"};
var LA=function(a){H.call(this);this.j=a;this.A={};this.P=window.NaN;this.D=new Wd(this.aA,3E4,this);J(this,this.D);this.F=new Wd(this.Li,100,this);J(this,this.F);this.o="N";this.C=0;this.N=window.NaN;this.U=0;this.J=this.X="";this.Y=-1;this.H=this.K=0;this.L=this.G=!1;this.B=null;window.navigator.getBattery&&window.navigator.getBattery().then(A(function(a){this.B=a},this))};
var MA=function(a,b,c,d){var e=a.A[c];e||(e=[],a.A[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
var NA=function(a){var b={event:"streamingstats"};if(a.j.j.o){b.fmt=a.j.j.o.id;var c=a.j.j.D;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.j.j.clientPlaybackNonce;b.ei=a.j.j.eventId;b.el=a.j.o.ya;b.docid=a.j.j.videoId;b.ns=a.j.o.$;b.fexp=a.j.o.experiments.experimentIds.toString();b.cl=a.j.o.fa;a.j.o.C&&(b.adformat=a.j.o.C);a.j.j.Da&&(b.live=a.j.j.Ed?"dvr":"live");b.html5="1";return b};
var OA=function(a,b){var c=a.A.cat||[];c.push(b);a.A.cat=c};
var PA=function(a,b,c,d){this.segments=[];this.experimentIds=[];this.ca=this.Fa=this.da=this.Ea=this.ta=this.autoplay=this.autonav=!1;this.T="yt";this.G=this.o=this.B=null;this.N=!1;this.A="watchtime"==c;this.P="playback"==c;this.za="delayplay"==c;this.L="atr"==c;this.Ca="engage"==c;this.X=!1;this.Ya=this.L?"/api/stats/"+c:"//"+b.zd+"/api/stats/"+c;d&&(this.da=d.fs,d.rtn&&(this.o=d.rtn),this.A?(this.Nb=d.state,0<d.rti&&(this.B=d.rti)):(this.Ha=d.mos,this.La=d.volume,d.at&&(this.adType=d.at)),d.autonav&&
(this.autonav=d.autonav));this.$a=b.C;this.autoplay=b.autoplay;this.ab=b.ca;this.bb=gc(b.o);this.oa=b.N;this.nb=b.ya;this.experimentIds=b.experiments.experimentIds;this.$=b.X;this.T=b.$;this.region=b.region;this.Hc=b.fa?b.fa.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.Za=QA();this.X=b.experiments.j;this.D=a.oauthToken||this.D;this.autoplay=a.Gg;this.autonav=a.al||this.autonav;this.G=a.jj;this.clientPlaybackNonce=a.clientPlaybackNonce;this.K=a.vssCredentialsToken;this.ga=
a.jm;this.F=a.hj;this.Y=a.Te;a.o&&(this.ha=a.o.id,a.D&&a.D.id!=this.ha&&(this.J=a.D.id));this.ca=a.Zf;this.ub=a.ij;a.Da&&(this.Ia=a.Ed?"dvr":"live");this.vb=a.Am;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.ab||a.playlistId;this.ia=a.fa;this.Qa=a.ia;this.Ic=a.af;this.subscribed=a.subscribed;this.videoId=a.videoId;this.Zc=a.tv;this.visitorData=a.visitorData;this.osid=a.osid;this.Cb=a.dv;this.referrer=a.referrer;this.fa=a.$a||a.$e;this.searchQuery=a.searchQuery};
var RA=function(a){var b={ns:a.T,el:a.nb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.j(a.F),plid:a.playbackId,ei:a.eventId,fmt:a.ha,fs:a.da?"1":"0",rt:a.j(a.Sa),of:a.Cb,adformat:a.$a,content_v:a.ab,euri:a.oa,subscribed:a.subscribed,lact:a.Za,live:a.Ia,cl:a.Hc,mos:a.Ha,q:a.searchQuery,osid:a.osid,state:a.Nb,vm:a.Zc,volume:a.La};pa(b,a.bb);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.Ea&&(b["final"]="1");a.ca&&(b.splay="1");a.Y&&(b.delay=a.Y);a.$&&(b.hl=a.$);
a.region&&(b.cr=a.region);n(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);n(a.U)&&(b.len=a.j(a.U));!a.A&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.o&&(b.rtn=a.j(a.o));a.fa&&(b.feature=a.fa);a.playlistId&&(b.list=a.playlistId);a.ia&&(b.ctrl=a.ia);a.Qa&&(b.ytr=a.Qa);a.Ic&&(b.ssrt="1");a.J&&(b.afmt=a.J);a.A?(b.idpj=a.ub,b.ldpj=a.vb,null!=a.B&&(b.rti=a.j(a.B))):n(a.adType)&&(b.at=a.adType);(a.P||a.za)&&a.G&&(b.tst=a.G);a.A&&(b.st=SA(a,Q(a.segments,function(a){return a.startTime})),
b.et=SA(a,Q(a.segments,function(a){return a.endTime})));
Lh(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=SA(a,Q(a.segments,function(a){return a.visibilityState})));
Lh(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=SA(a,Q(a.segments,function(a){return a.playbackRate})));
Lh(a.segments,function(a){return"-"!=a.Xj})&&(b.cc=Q(a.segments,function(a){return a.Xj}).join(","));
if(Lh(a.segments,function(a){return!!a.Uj})){var c="au";
a.P&&(c="au_d");b[c]=Q(a.segments,function(a){return a.Uj}).join(",")}zj()&&a.K&&(b.ctt=a.K,b.cttype=a.ga);
a.Ca&&(b.etype=n(a.C)?a.C:0);return b};
var SA=function(a,b){return Q(b,a.j).join(",")};
var TA=function(a){H.call(this);this.j=a;this.o=new LA(a);J(this,this.o);this.A=new BA(a);this.D="paused";this.F=window.NaN;this.H=[10,10,10,40];this.J=this.G=0;this.P=this.N=this.L=this.K=this.B=!1;this.C=window.NaN;this.U=new IA(this.A,this.j.j,this.j.o)};
var UA=function(a,b,c){var d=VA(a.j);c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.H[a.G];a.G+1<a.H.length&&a.G++;c=c+e;d=1E3*(c-d);a.F=Fi(A(a.Kz,a,c,b),d);return c};
var WA=function(a,b){var c=XA(a.j);pa(c,{state:a.D});c=new PA(a.j.j,a.j.o,b,c);c.F=a.j.A();a.j.j.Da||(c.U=a.j.D());c.Sa=VA(a.j);c.segments=[CA(a.j)];return c};
var YA=function(a,b){var c=WA(a,"watchtime");c.segments=b;c.F=a.A.j;return c};
var ZA=function(a){a.A.update();return YA(a,FA(a.A))};
var $A=function(a){a.j.j.remarketingUrl&&!a.N&&(aB(a,a.j.j.remarketingUrl),a.N=!0);a.j.j.ppvRemarketingUrl&&!a.P&&(aB(a,a.j.j.ppvRemarketingUrl),a.P=!0);bB(a)};
var cB=function(a,b){if(!a.isDisposed()){V(b.state,2)?(a.D="paused",0<dB(b,2)&&a.B&&ZA(a).send()):V(b.state,8)?(a.D="playing",a.B&&(0,window.isNaN)(a.F)&&UA(a,!1)):a.D="paused";var c=a.o,d=b.state,e=VA(c.j),f;f=b.state;if(V(f,128))f="ER";else if(V(f,16)||V(f,32))f="S";else{var k=eB[Dy(f)];"B"==k&&V(f,4)&&(k="PB");f=k}if(f!=c.o){k=f;if(!(e<c.C)){if("PL"==c.o)c.H+=e-c.C;else if("B"==c.o&&c.G&&(c.G=!1,c.K+=e-c.C,!c.L&&10<=c.K&&180>=c.H)){c.j.G();if(!c.isDisposed()){var l=NA(c);l.qoealert="1";l=Wg(c.j.o.xd,
l);dq(l)}c.L=!0}"B"!=k||"PL"!=c.o&&"PB"!=c.o||(c.G=!0);c.C=e}!c.j.o.experiments.o||"B"!=f&&"PB"!=f?MA(c,e,"cmt",[c.j.A().toFixed(3)]):c.Li(e);MA(c,e,"vps",[f]);c.o=f}if(V(d,128))c.onError(d.j.errorCode,d.j.errorDetail);(V(d,2)||V(d,128))&&c.Pg(e);a.C&&V(b.state,128)&&(a.Qi("error-100"),Ii(a.C))}};
var fB=function(a){a.C=Hi(A(a.Qi,a,"heartbeat"),3E4)};
var bB=function(a){a.j.j.C.eventLabel=a.j.o.ya;a.j.j.C.playerStyle=a.j.o.j;a.j.j.ta&&(a.j.j.C.feature="pyv");a.j.j.C.vid=a.j.j.videoId;a.j.j.C.isAd=!("adunit"!=a.j.o.ya&&!a.j.j.ta)};
var aB=function(a,b,c){a.j.o.experiments.j&&a.j.j.visitorData&&yj(b)?Gj(b,{Rb:c,headers:{"X-Goog-Visitor-Id":a.j.j.visitorData}}):dq(b,c)};
var gB=function(a,b){this.aa=b;this.j={}};
var hB=function(a,b,c){if(b){var d=iB(a,b);a.j[b]=d["p-time"];d["iv-event"]=d.link||d["l-class"]||d["link-id"]?2:7;b=sb(c||[]);30==d["a-type"]&&(c=jB(a,d["a-id"],"cta_annotation_shown"))&&b.push(c);kB(a,d,b)}};
var lB=function(a,b,c,d,e,f){if(b){var k=iB(a,b);k["iv-event"]=3;k["i-time"]=a.j[b]||"";ic(k,d||{});b=sb(e||[]);30==k["a-type"]&&(d=jB(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);kB(a,k,b,c,f)}};
var mB=function(a,b){if(b){var c=iB(a,b);c["iv-event"]=4;c["i-time"]=a.j[b]||"";var d=[];if(30==c["a-type"]){var e=jB(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}kB(a,c,d)}};
var jB=function(a,b,c){a=a.aa.getVideoData();if(a.nb){if((c=a.nb[c])&&Qw.test(c))return a=ua("[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.za)return wj(a.za,{label:c,value:"a_id="+b});return""};
var kB=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)}F(c||[],function(a){f++;
dq(a,k)});
e&&(f++,0!=e&&a.aa.cg(e,k));a.ib(b,k)};
var iB=function(a,b){var c={};if(b){var d=new ih(b);F(d.Na(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.aa.getCurrentTime().toFixed(2);
c.ps=a.aa.V().j;return c};
var nB=function(a,b,c,d){d=iB(a,d);d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;kB(a,d,c)};
var oB=function(a,b,c,d){c&&(c=iB(a,c),c["iv-event"]=b,kB(a,c,d))};
var pB=function(a,b){this.Y=a;this.context=b;this.km=!1;this.J=0};
var qB=function(a,b,c,d,e,f){b=new lq(b,c,{id:d});b.j="iv-module";e&&nq(b).subscribe("onEnter",e,a);f&&nq(b).subscribe("onExit",f,a);a.context.o.fb([b])};
var rB=function(a){return K()-a.J};
var sB=function(a,b,c,d,e,f,k){var l=A(function(){k&&this.context.o.pauseVideo();var a=vj(b),d=null;"ei"in a&&(d={ei:a.ei},b=$g(b,"ei"));Ix(b,d);Jx(b,"current"==c?"_top":void 0)},a);
"new"==c&&(l(),l=null);var m={};m.interval=rB(a);lB(a.context.logger,d,l,m,e,f)};
var tB=function(a,b){S.call(this,["div","ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text","{{text}}"]]);this.aa=a;this.G=new Sq(this,250,!1,250);J(this,this.G);this.H=b;this.wa=null;this.C=[];this.B=this.o=this.F=this.D=null;T(this,a,"cardsteasershow",this.uB);T(this,a,"cardsteaserhide",this.zj);this.R("click",this.oF);this.R("mouseenter",this.mF);this.R("mouseleave",this.nF)};
var uB=function(a){if(!a||0==a.length)return"";var b=["ul","ytp-cards-hover-card-metadata"];F(a,function(a){b.push(["li","",a])});
return b};
var vB=function(a,b){if(b){var c=b.dk?"":["h2","ytp-cards-hover-card-title",b.title],d=b.imageUrl,d=["div","ytp-cards-hover-card-image",{style:d?"background-image: url("+d+");":""}];d.push(b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"");c=["a","ytp-cards-hover-card",["div","ytp-cards-video-image",d],["div","ytp-cards-video-desc",c,uB(b.md)]];a.o=new S(c);a.o.j(a.element);c=bf("ytp-cards-hover-card",void 0);T(a,c,"click",oa(a.Gp,b));T(a,c,"mouseenter",a.jx);T(a,c,"mouseleave",
a.kx)}};
var wB=function(a,b){Eq(a,"text",b.teaserText);a.G.show();vB(a,b.fi);b.fi&&b.fi.dk&&L(a.element,"ytp-cards-combined-teaser");a.D=new Wd(function(){L(this.aa.Aa(),"ytp-cards-teaser-shown")},0,a);
a.D.start();xB(a.H,!1);a.wa=new Wd(a.zj,580+b.durationMs,a);a.wa.start();b.rv&&L(a.element,"ytp-cards-auto-open-hover-card");b.ny&&(new Wd(function(){L(this.aa.Aa(),"ytp-cards-button-teaser-merge")},0,a)).start();
a.C.push(a.R("mouseover",a.wa.stop,a.wa));a.C.push(a.R("mouseout",function(){this.wa.start()}))};
var yB=function(a,b,c){this.id=a;this.timestamp=b.timestamp||0;this.type=b.card_type;this.teaserText=b.teaser_text;this.teaserDurationMs=b.teaser_duration_ms;this.startMs=b.start_ms;this.C=b.auto_open||!1;this.Pa=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.j={Qo:a.impression,click:a.click,close:a.close,MC:a.teaser_impression,Vl:a.teaser_click}};
var zB=function(a,b,c){yB.call(this,a,b,c);this.channelId=b.channel_id;this.customMessage=b.custom_message;this.profileImageUrl=b.image_url;this.title=b.title;this.md=b.meta_info;this.url=rA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var AB=function(a,b,c){yB.call(this,a,b,c);this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.A=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=rA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.o=null;b.signin_url&&(this.o=rA({target:"current",value:b.signin_url}));this.F=b.signin_title||null;this.D=b.signin_message||null};
var BB=function(a,b,c){AB.call(this,a,b,c);this.G=b.ypc_flow_type;this.B=b.innertube_request_params};
var CB=function(a,b,c){this.j=a;this.o=b;this.A=c};
var DB=function(a,b){var c=["ul",""];F(b.choices,function(a){c.push(["li",b.A+"-"+a.index.toString(),["label",b.B==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.A,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.o&&(d.push("iv-card-unavailable"),e.push(["div",["iv-card-sign-in"],["h2","",R("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:tA(b.o)},["span",["iv-button-content"],R("YTP_SIGN_IN")]]]));d=new S(["div",d,{tabindex:"0"}].concat(e));e=d.element;void 0!==b.B&&EB(b,e);Cz(a.j.j,e,oa(a.C,b),a);b.o&&(e=bf("iv-card-sign-in-button",e),a.o(e,b.o,b.id,b.Pa,b.j.click,
5));return d};
var FB=function(a,b,c,d){var e=GB(a,b.url,b.id),f=b.displayDomain?["div","iv-card-image-text",b.displayDomain]:"",k=HB(b),l=["iv-card"];b.o&&l.push("iv-card-unavailable");e=["div",l,{tabindex:"0"},["a","iv-click-target",{href:e},IB(b.imageUrl,f),["div","iv-card-content",["h2","",b.title],k]]];b.o&&(e=e.concat([["div",["iv-card-sign-in"],["h2","",b.F],["p","",b.D],["a",["iv-card-sign-in-button","iv-button"],{href:tA(b.o)},["span",["iv-button-content"],R("YTP_SIGN_IN")]]]]));e=new S(e);JB(a,e,b,c,d);
return e};
var KB=function(a,b,c){var d=GB(a,b.url,b.id),e=["yt-badge","standalone-ypc-badge-renderer-icon",b.D?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],f={},e=b.B&&b.A?["span",e,f,b.A]:"";c=["div",["iv-card",c],{tabindex:"0"},["a","iv-click-target",{href:d},IB(b.F,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],LB(b)]]];c=new S(c);JB(a,c,b);return c};
var MB=function(a){return a.customMessage?["div","iv-card-message",a.customMessage]:""};
var IB=function(a,b){var c=["div","iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c};
var LB=function(a){if(!a.md||0==a.md.length)return"";var b=["ul","iv-card-meta-info"];F(a.md,function(a){b.push(["li","",a])});
return b};
var HB=function(a){if(!a.customMessage)return"";var b=["iv-card-action","iv-card-primary-link"],c={};a.A&&(b.push("iv-card-action-icon"),c.style="background-image: url("+a.A+");");b=["div",b,c,["span","",a.customMessage]];a.showLinkIcon&&(b.push("\u00a0"),b.push(["span","iv-card-link-icon"]));return b};
var EB=function(a,b){NB(a,b);$d(b,["iv-card-poll-expanded","iv-card-poll-voted"]);b.querySelector("fieldset").disabled=!0};
var NB=function(a,b){var c=0;F(a.choices,function(a){c+=a.count});
for(var c=c||1,d=0;d<a.choices.length;d++){var e=a.choices[d],f=e.count/c,e=bf(a.A+"-"+e.index.toString(),b),k=bf("iv-card-poll-choice-percent",e);Cf(k,R("YTP_DRAWER_POLL_PERCENT",{PERCENT:(100*f).toFixed(0)}));e=bf("iv-card-poll-result-bar",e);Of(e,"transform","scaleX("+f.toFixed(2)+")")}};
var OB=function(a,b,c){c?(a.j.o.pauseVideo(),a.j.o.Ja()&&Ox(a.j.o),lB(a.j.logger,b.Pa,c,void 0,b.j.click,5)):a.A(b.url,b.id,b.Pa,b.j.click,5)};
var GB=function(a,b,c){return b?yA(b,c,a.j.B.videoId,a.j.A):null};
var JB=function(a,b,c,d,e){c.o&&PB(a,$e("iv-card-sign-in-button",b.element),c,c.o,e);PB(a,$e("iv-click-target",b.element),c,c.url,d)};
var PB=function(a,b,c,d,e){F(b,function(a){if(e){var b=A(function(a){a.stopPropagation();a.preventDefault();e();return!1},this);
this.j.j.R(a,"click",b)}else this.o(a,d,c.id,c.Pa,c.j.click,5)},a)};
var QB=function(a,b,c){yB.call(this,a,b,c);this.A=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.customMessage=b.custom_message;this.title=b.title;this.md=b.meta_info;this.url=rA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var RB=function(a,b,c){yB.call(this,a,b,c);this.A=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.B=b.old_vote;this.o=null;b.signin_url&&(this.o=rA({target:"current",value:b.signin_url}))};
var SB=function(a,b,c){AB.call(this,a,b,c);this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new TB(a[b]))};
var TB=function(a){this.merchant=D(a.merchant);this.price=D(a.price)};
var UB=function(a,b,c){AB.call(this,a,b,c);this.G=b.ypc_item_type;this.B=b.ypc_item_id;this.H=b.ypc_flow_type};
var VB=function(a,b,c){yB.call(this,a,b,c);this.A=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.md=b.meta_info;this.B=!!b.is_live_now;this.url=rA({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
var WB=function(a,b,c){yB.call(this,a,b,c);this.F=b.image_url;this.A=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.md=b.meta_info;this.B=!!b.is_paygated;this.D=!!b.user_has_entitlement;this.url=rA({target:b.target||"new",value:b.url})};
var XB=function(a,b,c){pB.call(this,b,c);this.aa=a;this.si=this.C=this.P=this.U=!1;this.N=null;this.Wj=new Wd(x,c.A.useTabletControls?4E3:3E3);this.A=new CB(c,A(this.Of,this),A(this.wi,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},R("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":R("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.G=new S(a);this.D=this.G.element;this.L=new Sq(this.G,
330,!1);this.T=bf("iv-drawer-header",this.D);this.xc=bf("iv-drawer-content",this.D);a=["iv-drawer-teaser"];this.A.j.A.experiments.vv&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:R("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":R("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];this.X=(new S(a)).element;bf("iv-drawer-teaser-text",this.X);this.o=[];this.B=this.H=this.j=null;this.F=[];if(2==this.context.o.getPresentingPlayerType()?
0:YB(this,"product_listing_ads_cards_drawer_auto_open")||YB(this,"cards_drawer_auto_open"))a=this.context.A.experiments.Vb("cards_drawer_auto_open_offset"),c=1E3*c.B.lengthSeconds,b=0<=a?a:c+a,b<c&&(qB(this,b,0x8000000000000,"",this.qv),a=this.context.A.experiments.Vb("cards_drawer_auto_open_duration"),b+=a,0<=a&&b<c&&qB(this,b,0x8000000000000,"",this.ov))};
var aC=function(a,b){var c=bC(a,b);c&&(c==a.j&&(a.j=null),a.aa.Cr(c.Ra.id),sf(c.Yj),ob(a.o,c),a.Fh())};
var cC=function(a,b){a.C||(a.L.show(),a.H=new Wd(function(){L(this.context.o.Aa(),"ytp-iv-drawer-open")},0,a),a.H.start(),a.C=!0,a.J=K(),nB(a.context.logger,7,void 0,b&&b.Ra?b.Ra.Pa:void 0),F(a.o,function(a){a.xi||(a.xi=!0,hB(this.context.logger,a.Ra.Pa,a.Ra.j.Qo))},a),dC(a.aa),a.B=new Wd(function(){var a;
a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(e){}a=null}this.K=a;this.T.focus()},330,a),a.B.start())};
var eC=function(a){a.C&&(a.L.ea(),ae(a.context.o.Aa(),"ytp-iv-drawer-open"),a.C=!1,nB(a.context.logger,10),dC(a.aa),a.B&&a.B.stop(),a.B=new Wd(function(){this.K&&(this.K.focus(),this.K=null)},330,a),a.B.start())};
var YB=function(a,b){return a.context.A.experiments.ma(b)};
var fC=function(a){var b=bf("iv-drawer-close-button",a.D);a.context.j.R(b,"click",a.Bv,a);a.context.j.R(a.xc,"touchend",function(){this.Wj.start()},a);
a.context.j.R(a.xc,"scroll",a.Nv,a);a.N=Sl(a.xc,"mousewheel",A(a.HE,a));a.context.C.subscribe("onHideControls",function(){this.si=!0},a);
a.context.C.subscribe("onShowControls",function(){this.si=!1},a);
a.context.C.subscribe("onVideoAreaChange",function(){this.si=Zd(this.aa.Aa(),"ytp-autohide")},a);
a.F.push(Ni("iv-teaser-shown",a.my,a));a.F.push(Ni("iv-teaser-clicked",a.ky,a));a.F.push(Ni("iv-hover-card-clicked",a.jy,a));YB(a,"teaser_on_button_hover")&&a.F.push(Ni("iv-button-hovered",a.IC,a));YB(a,"log_teaser_hover")&&a.F.push(Ni("iv-teaser-hovered",a.ly,a))};
var gC=function(a,b){switch(b.type){case "adspaycreator":case "associated":case "fundraising":case "location":case "merch":case "product":case "simple":return FB(a.A,b);case "collaborator":var c=a.A,d=["div",["iv-card","iv-card-channel"],{tabindex:"0"},["a",["iv-click-target","g-hovercard"],{href:GB(c,b.url,b.id),"data-ytid":b.channelId},IB(b.profileImageUrl),["div","iv-card-content",MB(b),["h2","iv-card-primary-link",b.title],LB(b)]]],d=new S(d);JB(c,d,b);return d;case "donation":return c=a.A,d=
A(c.B,c,b),FB(c,b,d,d);case "episode":return KB(a.A,b,"iv-card-episode");case "movie":return KB(a.A,b,"iv-card-movie");case "playlist":return c=a.A,d=["div",["iv-card","iv-card-playlist"],{tabindex:"0"},["a","iv-click-target",{href:GB(c,b.url,b.id)},IB(b.A,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",MB(b),["h2","iv-card-primary-link",b.title],LB(b)]]],d=new S(d),JB(c,d,b),d;case "poll":return DB(a.A,b);case "productListing":var c=
a.A,d=GB(c,b.url,b.id),e=!kb(b.offers)&&(b.sponsored||c.j.A.experiments.RC),f=["iv-card"],k="",l=HB(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",R("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 S(["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=nf("span");f.innerHTML=R("YTP_AD_SETTINGS_INFO",{BEGIN_FORMAT:'<a target="_blank" href="https://www.google.com/settings/ads/onweb">',END_FORMAT:"</a>"});d.Eb(f,"adInfo");JB(c,d,b);return d;case "tip":return c=a.A,d=A(c.D,
c,b),FB(c,b,d,d);case "video":return c=a.A,d=GB(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.B?["span",["yt-badge","yt-badge-live"],R("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],{tabindex:"0"},["a","iv-click-target",{href:d},IB(b.A,f),["div","iv-card-content",MB(b),["h2","iv-card-primary-link",b.title],LB(b),k]]],d=new S(d),JB(c,d,b),d}return null};
var hC=function(a,b){if(0==a.o.length)return 0;var c=gb(a.o,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 iC=function(a,b){if(a.G.A){var c=new Nz([0,a.xc.scrollTop],[0,b.Yj.offsetTop],600,Rz);a.context.j.R(c,"animate",function(a){this.xc.scrollTop=a.y},a);
a.context.j.R(c,"finish",function(a){this.xc.scrollTop=a.y},a);
c.play()}else a.G.ob(!0),a.xc.scrollTop=b.Yj.offsetTop,a.G.ob(!1)};
var jC=function(a){return a.j&&a.j.Ra||a.o[0]&&a.o[0].Ra};
var bC=function(a,b){return db(a.o,function(a){return a.Ra.id==b},a)};
var kC=function(a){return Lh(a.o,function(a){return a.Ra.sponsored&&"productListing"==a.Ra.type})};
var lC=function(a){if(!mC.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(nC,"#$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 oC=function(a,b,c,d,e){Nz.call(this,b,c,d,e);this.element=a};
var pC=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");oC.apply(this,arguments)};
var qC=function(a,b,c){pB.call(this,a,b);this.annotation=c;this.isActive=!1};
var rC=function(a,b,c){qC.call(this,a,b,c);this.o=null;this.F=!1;this.j=null;this.A=!1;this.B=0;this.D=this.C=null};
var sC=function(a,b,c,d,e,f){this.j=a;this.A=b;this.B=c;this.logger=d;this.o=e;this.C=f};
var tC=function(a,b,c){this.type=a;this.trigger=b;this.url=c};
var uC=function(a){if(!a)return null;var b=iA(a.type,vC),c=iA(a.trigger,wC),d=rA(eA(a.url));eA(a.subscribeData);return b?new tC(b,c,d):null};
var xC=function(a,b,c,d,e,f,k,l,m,p,u,t,w,z){this.D=a;this.B=b;this.F=c;this.C=d;this.o=e;this.K=f;this.A=k;this.J=l;this.textSize=m;this.G=p;this.H=u;this.effects=t;this.j=w;this.L=z};
var yC=function(a){if(!a)return null;var b=gA(a.fgColor,"#1A1A1A"),c=gA(a.bgColor,"#FFF"),d=gA(a.borderColor,"#000"),e=lA(a.borderWidth,0,5,!1,0),f=lA(a.bgAlpha,0,1,!1,.8),k=gA(a.highlightFontColor,"#F2F2F2"),l=lA(a.highlightWidth,0,5,!1,3),m=hA(a.textAlign),p=lA(a.textSize,3.3,30.1,!0,3.6107),u=hA(a.fontWeight),t=oA(a.padding),w=pA(a.effects),z=lA(a.cornerRadius,0,10,!0,0);if(a=eA(a.gradient)){var E=lA(a.x1,0,100,!0,0),M=lA(a.y1,0,100,!0,0),G=lA(a.x2,0,100,!0,100),I=lA(a.y2,0,100,!0,100),Ta=gA(a.color1,
"#FFF"),tb=gA(a.color2,"#000");a=new zC(E,M,G,I,Ta,tb,lA(a.opacity1,0,100,!0,100),lA(a.opacity2,0,100,!0,0))}else a=null;return new xC(b,c,d,e,f,k,l,m,p,u,t,w,z,a)};
var zC=function(a,b,c,d,e,f,k,l){this.C=a;this.F=b;this.D=c;this.G=d;this.j=e;this.o=f;this.A=k;this.B=l};
var AC=function(a,b){this.j=a;this.videoId=b};
var BC=function(a,b,c){var d=a.D,e=a.F,f=a.j?a.j:"xy",k=CC(c,a.B,f);a=DC(c,a.o,f);var f=640*b.width*k/100,l=360*b.height*a/100;return new ve(0==d?640*b.left*k/100:0<d?d:c.width+d-f,0==e?360*b.top*a/100:0<e?e:c.height+e-l,f,l)};
var CC=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d};
var DC=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};
var EC=function(a,b,c,d,e,f,k,l,m,p,u){this.x=a;this.y=b;this.C=c;this.A=d;this.t=e;this.J=f;this.D=k;this.F=l;this.B=m;this.o=p;this.j=u};
var FC=function(a,b){if(!a)return null;var c=kA(a.x,0),d=kA(a.y,0),e=kA(a.w,0),f=kA(a.h,0),k=mA(a.t),l=kA(a.scaleSlope,1);return b(c,d,e,f,k,kA(a.d,0),kA(a.px,0),kA(a.py,0),kA(a.scaleSlopeX,l),kA(a.scaleSlopeY,l),iA(a.scaleDimension,GC,"xy"))};
var HC=function(a,b){var c=IC(b,BC(a,new ve(a.x,a.y,a.C,a.A),b.j)),d=b.j,e=c.clone();d&&!d.contains(c)&&(c.width<d.width?e.left=le(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=le(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e};
var JC=function(a){return a?FC(a,function(a,c,d,e,f,k,l,m,p,u,t){return new EC(a,c,d,e,f,k,l,m,p,u,t)}):null};
var KC=function(a,b,c,d,e,f,k,l,m,p,u,t,w){EC.call(this,a,b,c,d,e,l,m,p,u,t,w);this.G=f;this.H=k};
var LC=function(a){if(!a)return null;var b=kA(a.sx,0),c=kA(a.sy,0);return FC(a,function(a,e,f,k,l,m,p,u,t,w,z){return new KC(a,e,f,k,l,b,c,m,p,u,t,w,z)})};
var MC=function(a,b,c,d){this.type=a;this.o=b;this.j=c;this.A=d};
var NC=function(a){if(!a)return null;var b=iA(a.type,OC,"rect"),c=nA(a.rectRegion,JC),d=nA(a.anchoredRegion,LC);a=nA(a.shapelessRegion,JC);return new MC(b,c,d,a)};
var PC=function(a){return a.o&&a.o.length?a.o[0]:a.j&&a.j.length?a.j[0]:a.A&&a.A.length?a.A[0]:null};
var QC=function(a,b){this.o=a;this.j=b};
var RC=function(a,b){this.state=a;this.j=b};
var SC=function(a){if(!a)return null;var b=iA(a.state,TC);a=fA(a.ref);return b?new RC(b,a):null};
var UC=function(a,b,c,d){this.j=a||[];this.A=b||[];this.B=c;this.o=d;this.value=!1};
var VC=function(a){if(!a)return null;var b=nA(a.condition,SC),c=nA(a.notCondition,SC),d=jA(a.show_delay,!1);a=jA(a.hide_delay,!1);return b||c?new UC(b,c,d,a):null};
var WC=function(a,b,c){F(a.j,oa(b,!1),c);F(a.A,oa(b,!0),c)};
var XC=function(a,b,c,d,e,f,k,l,m,p,u,t,w,z,E,M){this.id=a;this.author=b;this.type=c;this.style=d;this.D=e;this.o=f;this.C=k||[];this.H=l||[];this.j=m;this.G=p;this.B=u;this.F=t;this.A=z;this.data=E;this.Pa=M};
var YC=function(a){if(!a)return null;var b=fA(a.id),c=fA(a.author),d=iA(a.type,ZC),e=iA(a.style,$C),f=hA(eA(a.TEXT)),k=hA(a.data),k=0!=k.length?de(k):{},l;var m=eA(a.segment);m?(fA(m.timeRelative),l=fA(m.spaceRelative),l=(m=nA(m.movingRegion,NC))?new QC(l,m):null):l=null;var m=nA(a.action,uC),p=nA(a.trigger,VC),u=yC(eA(a.appearance));u||(u=yC({}));var t=iA(a.coordinate_system,aD,"video_relative"),w;w=(w=eA(a.image_source))?new AC(hA(w.standard_url),hA(w.video_id)):null;var z=jA(a.closeable,!0),E=
hA(a.html_blob);a=hA(a.log_data);return b&&d?new XC(b,c,d,e,f,l,m,p,u,t,w,z,0,E,k,a):null};
var bD=function(a){return(a=cD(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null};
var dD=function(a){return eD(a,function(a){return"click"==a.trigger})};
var eD=function(a,b){return Lh(a.C,b,void 0)};
var fD=function(a,b,c){F(a.C,b,c)};
var cD=function(a,b){return db(a.C,b,void 0)};
var gD=function(a,b,c){F(a.H,b,c)};
var hD=function(a,b){Q(a.H,b,void 0)};
var iD=function(a){return(a=jD(a))?PC(a):null};
var jD=function(a){a.o?(a=a.o,a=a.j.length?a.j[0]:null):a=null;return a};
var kD=function(a,b){var c=iD(a);return c&&b?DC(b,c.o,c.j?c.j:"xy"):1};
var lD=function(a,b,c){qC.call(this,a,b,c);this.F=this.B=this.G=!1;this.D=5E3;this.j=null;this.ng=O("div","iv-promo-contents");this.o=this.A=this.Sb=null;this.C=new Wd(function(){this.Sb.setAttribute("aria-hidden",!0);Rq(this.A);Qq(this.o)},700,this)};
var mD=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.D=b.collapse_delay_ms||a.D;var d=["iv-promo","iv-promo-inactive"];a.ka().setAttribute("aria-hidden",!0);a.ka().setAttribute("aria-label",R("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.ka().tabIndex=0;var e;if(b.image_url){e=O("div",["iv-promo-img","iv-click-target"]);var f=O("img",{src:b.image_url,"aria-hidden":"true"});e.appendChild(f);b.video_duration&&
!b.is_live?(f=O("span","iv-promo-video-duration",b.video_duration),e.appendChild(f)):b.playlist_length&&(f=O("span","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(f));a.Of(e,bD(a.annotation),a.annotation.id,a.annotation.Pa,null,c)}f=bD(a.annotation);a.Sb=f?O("a",{href:tA(f),"class":"iv-promo-txt"}):O("div","iv-promo-txt");var k,l,m;switch(a.annotation.style){case "cta":case "website":k=O("p",null,O("strong",null,b.text_line_1));l=O("p",null,O("span","iv-promo-link",b.text_line_2));
L(a.Sb,"iv-click-target");a.Of(a.Sb,bD(a.annotation),a.annotation.id,a.annotation.Pa,null,c);break;case "playlist":case "video":k=O("p",null,O("span",null,b.text_line_1));l=O("p",null,O("strong",null,b.text_line_2));b.is_live&&(k=l,l=O("span",["yt-badge","iv-promo-badge-live"],R("YTP_LIVE_NOW")));L(a.Sb,"iv-click-target");a.Of(a.Sb,bD(a.annotation),a.annotation.id,a.annotation.Pa,null,c);d.push("iv-promo-video");break;case "vote":k=O("p",null,O("strong",null,b.text_line_1)),l=O("p",null,O("span",
null,b.text_line_2)),m=O("div","iv-promo-button-container"),c=O("button",["iv-button","iv-promo-button"],O("span","iv-button-content",b.button_text)),a.context.j.R(c,"click",function(a){a.stopPropagation();lB(this.context.logger,this.annotation.Pa,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.Sb=bf("iv-promo-txt",this.ng);a=bf("iv-promo-button-container",this.ng);var d=O("div",["iv-promo-txt","iv-click-target"]),e=O("p",null,O("strong",null,c.text_line_3)),c=O("p",
null,c.text_line_4);pf(d,e,c);sf(a);tf(d,this.Sb);ae(this.ka(),"iv-promo-with-button");this.Of(d,bD(this.annotation),this.annotation.id,this.annotation.Pa)},a),m.appendChild(c),d.push("iv-promo-with-button")}k&&a.Sb.appendChild(k);
l&&a.Sb.appendChild(l);a.ng.appendChild(a.Sb);m&&a.ng.appendChild(m);k=O("div","iv-promo-actions");a.o=O("button",["iv-promo-expand","ytp-button"]);a.o.title=R("YTP_EXPAND");a.context.j.R(a.o,"click",oa(a.Hk,5E3),a);k.appendChild(a.o);Rq(a.o);a.context.j.R(a.ka(),"mouseover",a.zw,a);a.context.j.R(a.ka(),"mouseout",a.yw,a);a.context.j.R(a.ka(),"touchend",oa(a.Hk,5E3),a);a.A=O("button",["iv-promo-close","ytp-button"]);a.A.title=R("YTP_CLOSE");a.context.j.R(a.A,"click",a.IE,a);k.appendChild(a.A);$d(a.ka(),
d);e&&of(a.ka(),e);of(a.ka(),a.ng);of(a.ka(),k)};
var nD=function(a){a.B||a.F||a.j||(L(a.ka(),"iv-promo-collapsed"),a.B=!0,a.C.start())};
var oD=function(a){a.C.stop();a.B&&(ae(a.ka(),"iv-promo-collapsed"),a.B=!1,a.Sb&&a.Sb.removeAttribute("aria-hidden"),Rq(a.o),Qq(a.A))};
var pD=function(a,b){a.j||(a.j=Ud(function(){this.j&&(Vd(this.j),this.j=null);nD(this)},b,a))};
var qD=function(a,b,c){this.j={};this.o=!1;this.C="ivTrigger:"+a;this.A=c;WC(b,function(a,b){var c=rD(b.state,b.j);this.A.subscribe(c,A(this.B,this,c,a));this.j[c]=a},this)};
var rD=function(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};
var sD=function(a,b,c){this.A=a;this.annotation=b;this.j=c;this.o=null;this.B=this.isVisible=!1;tD(b,a)};
var tD=function(a,b){hD(a,function(c){return new qD(a.id,c,b)})};
var uD=function(a){zi(a.A,"onResize",a.Ur,a);zi(a.A,"onVideoAreaChange",a.kq,a)};
var vD=function(a){a.o&&(a.o.stop(),a.o=null)};
var wD=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
var xD=function(){};
var yD=function(a,b,c,d,e,f,k,l){this.C=a;this.F=b;this.D=c;this.G=d;this.j=e;this.o=f;this.A=n(k)?k:null;this.B=n(l)?l:null};
var zD=function(){this.sa=[];this.va=[];this.gc=[]};
var AD=function(a,b,c){0==cb(a.sa)?a.gc.length-=2:(a.sa.push(0),a.va.push(1));a.gc.push(b,c);a.Ob=a.Lc=[b,c]};
var BD=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.sa.push(3);a.va.push(1);a.gc.push(b,c,d,90,e,f);a.Wg=!1;a.Ob=[e,f]};
var CD=function(a,b){for(var c=a.gc,d=0,e=0,f=a.sa.length;e<f;e++){var k=a.sa[e],l=DD[k]*a.va[e];b(k,c.slice(d,d+l));d+=l}};
var ED=function(a,b){this.H=a;this.J=null==b?1:b};
var FD=function(a,b,c){this.A=a;this.j=b;this.o=null==c?1:c};
var GD=function(){};
var HD=function(a){fd.call(this);this.L=a||We();this.P=null;this.Ke=!1;this.j=null;this.C=void 0;this.D=this.G=this.H=null};
var ID=function(a,b){a.G&&F(a.G,b,void 0)};
var JD=function(a,b,c,d,e){HD.call(this,e);this.width=a;this.height=b;this.B=c||null;this.J=d||null};
var KD=function(a){var b=a.wg();return b?b.width/(a.B?new te(a.B,a.J):a.wg()).width:0};
var LD=function(a,b){fd.call(this);this.yg=a;this.Bk=b;this[Fc]=!1};
var MD=function(a,b,c,d){LD.call(this,a,b);a=this.Bk;b=this.ka();c?(b.setAttribute("stroke",c.j),b.setAttribute("stroke-opacity",c.o),c=c.getWidth(),y(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/KD(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.Bk;a=this.ka();if(d instanceof ED)a.setAttribute("fill",d.H),a.setAttribute("fill-opacity",d.J);else if(d instanceof yD){b="lg-"+d.C+"-"+d.F+"-"+d.D+"-"+d.G+"-"+d.j+"-"+d.o;var e=
ND(c,b);if(!e){var e=OD(c,"linearGradient",{x1:d.C,y1:d.F,x2:d.D,y2:d.G,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.j;fa(d.A)&&(f+=";stop-opacity:"+d.A);f=OD(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.o;fa(d.B)&&(f+=";stop-opacity:"+d.B);d=OD(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=PD(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")};
var QD=function(a,b){LD.call(this,a,b)};
var RD=function(a,b){LD.call(this,a,b)};
var SD=function(a,b,c,d){MD.call(this,a,b,c,d)};
var TD=function(a,b){LD.call(this,a,b)};
var UD=function(a,b,c,d){MD.call(this,a,b,c,d)};
var VD=function(a,b){LD.call(this,a,b)};
var WD=function(a,b,c,d,e){JD.call(this,a,b,c,d,e);this.o={};this.N=yc&&!Ac(526);this.K=new Hm(this)};
var OD=function(a,b,c){a=a.L.j.createElementNS("http://www.w3.org/2000/svg",b);c&&XD(a,c);return a};
var XD=function(a,b){for(var c in b)a.setAttribute(c,b[c])};
var YD=function(a,b,c,d){b=OD(a,"path",{d:ZD(b)});c=new UD(b,a,c,d);a.A.ka().appendChild(c.ka())};
var ZD=function(a){var b=[];CD(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 PD=function(a,b,c){if(b in a.o)return a.o[b];var d="_svgdef_"+$D++;c.setAttribute("id",d);a.o[b]=d;a.F.appendChild(c);return d};
var ND=function(a,b){return b in a.o?a.o[b]:null};
var aE=function(){bE||(bE=new Sd(400),bE.start());return bE};
var cE=function(){this.j=!1;this.C=this.A=null};
var dE=function(a,b,c){a.A?(a.A.setSize(b,c),a.A.clear()):(b=new WD(b,c,void 0,void 0,void 0),a.A=b,a.A.mo(),a.C=O("div"),b=a.A.ka(),a.C.appendChild(b));return a.A};
var eE=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);b&&Ob(b,function(a,b){d.setAttribute(b,a)});
for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d};
var fE=function(a,b){var c;c=":"+(GD.getInstance().j++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};
var gE=function(a,b){var c=fE(a,eE("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=fE(a,eE("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},eE("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=fE(a,eE("feComposite",{"in":c,in2:b,operator:"in"}));return fE(a,eE("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))};
var hE=function(a,b){var c=fE(a,eE("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=fE(a,eE("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=fE(a,eE("feColorMatrix",{"in":c,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0"})),d=fE(a,eE("feColorMatrix",{"in":b,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 100 0"})),d=fE(a,eE("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=fE(a,eE("feComposite",{operator:"out","in":c,in2:d}));return fE(a,eE("feComposite",{operator:"over","in":b,
in2:c}))};
var iE=function(a,b){return b};
var jE=function(a){var b=eE("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";F(a,function(a){a:{switch(a){case "bevel":a=gE;break a;case "dropshadow":a=hE;break a}a=iE}c=a(b,c)});
return b};
var kE=function(a){a=be(a,function(a){return a in lE});
Cb(a,function(a,c){return lE[a]-lE[c]});
return a};
var mE=function(a){return db(a,function(a){return"dropshadow"==a})?new se(0,7,7,0):new se(0,0,0,0)};
var nE=function(a,b,c,d,e){var f=d?d.getWidth()/2+1:0;b=oE(b,c,f);YD(a,b,d,e)};
var oE=function(a,b,c){var d=new zD;AD(d,a.left+b+c,a.top+c);d.tb(a.left+a.width-b-c,a.top+c);BD(d,b,b,-90);d.tb(a.left+a.width-c,a.top+a.height-b-c);BD(d,b,b,0);d.tb(a.left+b+c,a.top+a.height-c);BD(d,b,b,90);d.tb(a.left+c,a.top+b+c);BD(d,b,b,180);d.close();return d};
var pE=function(a,b,c,d){var e=a.L;return e?new yD(e.C*b/100,e.F*c/100,e.D*b/100,e.G*c/100,e.j,e.o,e.A,e.B):new ED(a.B,qE(d,a.o))};
var qE=function(a,b){return a?Math.max(b,.9):b};
var rE=function(a,b){var c=we(a),d=mE(b);ha(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 ve(c.left,c.top,c.right-c.left,c.bottom-c.top)};
var sE=function(a,b,c){if(c.length&&(b=af("g",void 0,b),b.length)){var d=kE(c);if(d){c="effects:"+(d?d.join("|"):"");var e=ND(a,c);e?a=e:(d=jE(d),a=0<d.childNodes.length?PD(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};
var tE=function(){cE.call(this);this.B=0};
var uE=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 vE=function(){cE.call(this)};
var wE=function(a,b,c){cE.call(this);this.B=a||0;this.F=b||0;this.D=c||!1};
var xE=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 ve(e,f,c,d)};
var yE=function(){cE.call(this)};
var zE=function(){tE.call(this)};
var AE=function(a,b){this.j=a;this.o=b||null};
var IC=function(a,b){var c;c=a.o?HC(a.o,new AE(a.j)):a.j;var d=b.clone(),e=c.left;c=c.top;e instanceof qe?(d.left+=e.x,d.top+=e.y):(d.left+=e,fa(c)&&(d.top+=c));return d};
var BE=function(a,b,c,d,e){this.j=a;this.T=b;this.D=c;this.Ea=d;this.$=e;this.P=!1;this.F=new Az(this);this.N=this.C=this.G=this.L=this.o=null;this.X=!1;this.Y=this.J=this.K=null;this.sl=new Fm(this.xw,100,this);this.H=new Wd(this.so,500,this);this.U=this.A=this.B=null};
var CE=function(a,b){var c=A(function(a,c,f){c=f?DE(this,c,A(f,this)):DE(this,c);this.F.R(b,a,c)},a);
c("mouseover","d",a.Vr);c("mouseout","c",a.Lg);c("click","a");c("touchend","a")};
var EE=function(a){if(a.j.F){var b;eD(a.j,function(a){return"close"==a.type})?b=a.o:(a.B=O("div",["annotation-close-button",
"hid"]),vi(a.B,"annotation_id",a.j.id),a.o.appendChild(a.B),b=a.B);var c=function(a){a.stopPropagation()};
a.F.R(b,"click",DE(a,"b",c));a.F.R(b,"touchend",DE(a,"b",c))}};
var DE=function(a,b,c){return A(function(a){if(this.$)c&&c(a);else if(a.event.target instanceof window.Element){var e=a.event.target;Rq(e);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(Jf(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{Qq(e)}}e=lg(a.target);a=new qe(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.Ea.O(b,this.j)},a)};
var FE=function(a){if(a.o||a.A){var b=iD(a.j);if(b){var c=GE(a);if(a.o){var b=HC(b,c),d=HE(IE(a.D));gg(a.o,b.width,b.height);Vf(a.o,b.left,b.top);a.L=new ve(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=iD(a.j))&&d?CC(d,e.B,e.j?e.j:"xy"):1;var f=kD(a.j,d),d=a.j.j;d.H?d=d.H:(d="speech"==a.j.style?1.6:.8,d=new se(d,d,d,d));d=new se(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.C&&(d.right+=1.5*c.j.height/100);a.o.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+
d.left+"px";"label"==a.j.style&&a.G&&(a.G.style.padding=a.o.style.padding);var d=c.j,k=!1,l=0,m=0,p;p=HE(IE(a.D));var u=a.D.app.ca,t=IE(u.j).Ma(),t=new ve(0,0,t.width,t.height);if(u.A.o&&!JE(u)){if(u.j.V().Fa){var w=KE(u)?69:48;t.top+=w;t.height-=w}u.B&&(t.height-=KE(u.B.B)?72:50)}xe(p,t)?p=null:(t.top+=20,t.height-=40,"player_relative"!=a.j.G&&(t.left-=p.left,t.top-=p.top),p=t);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,z;a.C&&(m=LE(a,23,b,e,f),a.B&&
(z=43-m.width,0<z&&(b.left+m.left-z>d.left&&(m.left-=z),m.width+=z)),z=m,gg(a.C,m.width,m.height),Vf(a.C,m.left,m.top));a.B&&(z?b=new qe(z.left+z.width-23-18,a.X?z.top+2:z.top+z.height-18-2):(z=LE(a,18,b,e,f),b=new qe(z.left,z.top),gg(a.B,z.width,z.height)),Vf(a.B,b));a.N=new ve(a.L.left+z.left,a.L.top+z.top,z.width,z.height);a.K=a.F.R(IE(a.D),"mousemove",a.GE)}else a.C&&(z=e/f*d.height*4.2/100,z=new te(z,z),"highlight"==a.j.type||"label"==a.j.style?(e=1.5*d.height/100,z=new ve(b.width-z.width-e,
b.height-z.height-e,z.width,z.height)):z=new ve(b.width-z.width-3*d.height/100,(b.height-z.height)/2,z.width,z.height),gg(a.C,z.width,z.height),Vf(a.C,z.left,z.top)),a.B&&(z=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,Vf(a.B,z&&e?new qe(b.width-9,-9):z?new qe(b.width-9,45<b.height?9:b.height-9):e?new qe(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new qe(45<b.width?b.width-9-18:-9,b.height-9):new qe(-9,45<b.height?9:b.height-9)))}a.A&&a.A.o(a.j,c);if(a.o){c=a.o;b=a.j.j;
c.style.color="highlightText"==a.j.style?b.K:b.D;z=HE(IE(a.D));c.style.fontSize=360*b.textSize*kD(a.j,z)/100+"px";z=a.j.style;c.style.textAlign=b.J?b.J:"title"==z||"highlightText"==z?"center":"left";b.G&&(c.style.fontWeight=b.G);a=a.o;c=a.style.overflow;b=bf("annotation-link-icon",a);z=Pq(b);d=bf("annotation-close-button",a);e=Pq(d);b&&z&&Rq(b);d&&e&&Rq(d);m=f="";if(l=bf("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=pg(a);u=5;for(t=Math.floor(k/2);t;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(u=p,p=Math.min(p+t,k)):p=Math.max(p-t,u),t=Math.floor(t/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&&Qq(d);b&&z&&Qq(b)}}}};
var LE=function(a,b,c,d,e){var f=0<e;b=new ve(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),L(a.o,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),L(a.o,"annotation-extend-up"),a.X=!0);return b};
var ME=function(a){return"label"!=a.j.style||a.A.j};
var GE=function(a){var b;b=HE(IE(a.D));if("player_relative"==a.j.G){var c=IE(a.D).Ma();b=new ve(-b.left,-b.top,c.width,c.height)}else b=new ve(0,0,b.width,b.height);return new AE(b,a.U?iD(a.U):null)};
var NE=function(a,b){return b?new ve(a.x+b.left,a.y+b.top,b.width,b.height):null};
var OE=function(a){pq.call(this,a);this.da=!0;this.qa="iv-module";this.logEvent="iv";this.H=0;this.A={};this.J={};this.C=new gB(0,a);a=PE;this.subscribe("onHideControls",this.bA,this);this.subscribe("onShowControls",this.mB,this);this.subscribe("onStateChange",this.SA,this);this.subscribe("d",this.xE,this);this.subscribe("c",this.Lg,this);this.subscribe("a",this.Ny,this);this.subscribe("b",this.pz,this);this.subscribe("vast_info_card_add",this.JB,this);this.subscribe("cards_drawer_set_visible",this.bz,
this);this.L=O("DIV",[a.iu,"html5-stop-propagation"]);this.U=O("DIV",a.Ht);this.B=null;a=O("DIV",a.ut,this.L,this.U);L(a,this.qa);IE(this.j).L.appendChild(a);this.D=this.o=null;this.K=[]};
var QE=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(QE(a,e))}return c};
var RE=function(a,b,c){return!(a.loaded&&a.H==b&&a.j.getVideoData().videoId==c)};
var SE=function(a,b){var c=TE(a,b);if(!c&&"marker"!=b.type)return null;gD(b,function(a){a=A(this.FB,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new sD(a.P,b,c)};
var UE=function(a,b){var c=OE.o(),d=null;switch(b.type){case "branding":if(a.j.V().wd)break;a.B.element.appendChild(c);d=new rC(c,VE(a),b);break;case "promotion":Xq(a.j,c,4),d=new lD(c,VE(a),b)}d&&d.Si();return d};
var WE=function(a){var b=a.j.getVideoData();if(b.bf){var c=a.j.V(),d=c.H.remove(b.videoId);if(d){var e={format:"XML",Vc:{}};c.experiments.ma("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.j&&(e.Vc.gaming="1");e.Rb=A(function(a,b,c){RE(this,a,b)||(a=Aj(c)&&c.responseXML?c.responseXML:null)&&XE(this,a)},a,a.H,b.videoId);
Gu()&&(e.Rb=YE(a,e.Rb));e.Bb={ic_only:1};ZE(a,e,d);Gj(b.bf,e)}}};
var ZE=function(a,b,c){b.method="POST";b.Bb=b.Bb||{};c.ue&&(b.Bb.ic_xml=c.ue);c.Sf&&(b.Bb.ic_track=c.Sf);if(a=a.j.getVideoData(1))b.Bb.organic_video_id=a.videoId};
var $E=function(a,b){if(!a.o){var c=new S(["div","hid"]);a.o=new XB(a.j,c.element,VE(a));c.j(a.B.element);a.o.Si()}var d=b&&b.data&&b.data.card_type;if(d&&aF[d]){c=a.o;d=new aF[d](b.id,b.data,b.Pa);c.U||($d(c.ka(),["html5-stop-propagation","iv-drawer-manager"]),Xq(c.aa,c.D,5),fC(c),c.U=!0);aC(c,d.id);var e=gC(c,d);if(e){var f={Ra:d,Yj:e.element,ep:!1,xi:!1},k=hC(c,f);vb(c.o,k,0,f);e.j(c.xc,k);c.Fh();d.C?qB(c,d.startMs,0x8000000000000,d.id,oa(c.BC,f)):(e=1E3*c.context.o.getCurrentTime(),5E3>e&&e>d.startMs&&
c.Ml(f,!1),qB(c,d.startMs,d.startMs+1,d.id,oa(c.Ml,f,!1)))}}dC(a.j)};
var VE=function(a){a.D||(a.D=new sC(new Az(a),a.j.V(),a.j.getVideoData(),a.C,a.j,a.P));return a.D};
var XE=function(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=QE(a,c[d]),f=null;try{f=YC(e)}catch(k){}f&&(OE.C(f)?(e=UE(a,f))&&(a.J[f.id]=e):OE.B(f)?$E(a,f):(e=SE(a,f))&&(a.A[f.id]=e))}Ob(a.A,function(a){var b=a.annotation;b.o&&b.o.o&&(b=this.A[b.o.o])&&(a.j.U=b.annotation)},a)};
var bF=function(a,b,c,d){d?cF(a,b,c):dF(a,b,c)};
var dF=function(a,b,c){if(b=a.A[b])vD(b),c&&c.o?(a=A(a.ro,a,b),b.o=new Wd(a,2E3),b.o.start()):a.ro(b)};
var cF=function(a,b,c){if(b=a.A[b])vD(b),c&&c.B?(a=A(a.Tq,a,b),b.o=new Wd(a,2E3),b.o.start()):a.Tq(b)};
var eF=function(a,b,c){if("new"==b.target)return!1;var d=tA(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!uA(d))return!1;d=vj(d);if(d.list||d.p)return!1;b=xA(b);if(!b)return!1;if(c==b)return!0;a=a.j.V();return a.K&&a.ia?!0:!1};
var TE=function(a,b){if(fF(b)){var c=b.F||eD(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new BE(b,A(a.L.appendChild,a.L),a.j,a.P,c)}return null};
var fF=function(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in $C)if(a.style==$C[b])return!0;return!1};
var gF=function(a,b,c,d){a.O(rD(b,d),c,d)};
var YE=function(a,b){return A(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=oa.apply(window,a);this.K.push(Hu(b,void 0))}},a)};
var hF=function(a){return!!a.o&&a.o.isAvailable()};
var iF=function(a){hF(a);return!!a.o&&a.o.C};
var jF=function(a,b){hF(a);a.o&&(b?cC(a.o):eC(a.o))};
var kF=function(a,b,c){a.O("publish_external_event",b?"cardsteasershow":"cardsteaserhide",c)};
var lF=function(a){this.aa=a;this.o=null;this.j=new ve(0,0,0,0);this.C=new te(0,0);this.B=this.A=0;mF&&Ac(11)&&(this.o=window.document.createElement("canvas").getContext("2d"),Ac(12.10532)||(this.A=3))};
var nF=function(a,b){if(null===a.o)return b;var c=new te(b.videoWidth,b.videoHeight);if(!ue(c,a.C)&&(a.o.canvas.width=c.width,a.o.canvas.height=c.height,a.j.top=0,a.j.left=0,a.j.width=c.width,a.j.height=c.height,a.C=c,0<a.A)){a.A=3;var d=oF(IE(a.aa)),e=16/9;d<e?(a.j.width=c.width*d/e,a.j.left=Math.ceil(.5*(c.width-a.j.width)),a.j.width|=0):d>e&&(a.j.height=c.height*e/d,a.j.top=Math.ceil(.5*(c.height-a.j.height)),a.j.height|=0)}0<a.A&&(a.B^=1,2<=a.j.top?(a.B?pF(a,b,0,0,a.j.width,a.j.top-1):pF(a,b,
0,b.videoHeight-a.j.top+1,a.j.width,a.j.top-1))&&--a.A:2<=a.j.left&&(a.B?pF(a,b,0,0,a.j.left-1,a.j.height):pF(a,b,b.videoWidth-a.j.left+1,0,a.j.left-1,a.j.height))&&--a.A,0>=a.A&&(a.j.top=0,a.j.left=0,a.j.width=b.videoWidth,a.j.height=b.videoHeight));try{a.o.drawImage(b,a.j.left,a.j.top,a.j.width,a.j.height,0,0,a.C.width,a.C.height)}catch(f){if(!(f instanceof window.DOMException)||"IndexSizeError"!=f.name)throw f;}return a.o.canvas};
var pF=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.o.drawImage(b,c,d,e,f,c,d,e,f)}catch(k){if(!(k instanceof window.DOMException)||"IndexSizeError"!=k.name)throw k;}a=a.o.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 qF=function(a,b,c){this.G=b||!1;this.D=c||null;this.j="precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}";this.C=new lF(a)};
var rF=function(a,b){qF.call(this,a);this.j="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.F=b;this.B=null;this.o=1;this.A=!0};
var sF=function(a,b){if(!(b.Ea||Kl&&!tF||b.ma("enable_stereo3d_ie_firefox_opera")&&(uF&&!tF&&Ac(38)||Nf&&!tF&&Ac(27)||mF&&!wt()&&Ac(11))))return!1;if(jx(a)&&3!=a.ca&&4!=a.ca)return!0;if(!a.j)return!1;for(var c in a.j.j){var d=a.j.j[c].info.video;if(d&&1==d.o)return!0}return!1};
var vF=function(a,b){qF.call(this,a,!0,b);this.j="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.A=null;this.aa=a;this.H=a.V().experiments.ma("white_noise_with_interval");this.B=0};
var wF=function(a,b){vF.call(this,a,b);this.j="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.o=null;this.F=!1};
var xF=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
var yF=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
var zF=function(a){var b=a[0],c=a[1];a=a[2];return Math.sqrt(b*b+c*c+a*a)};
var AF=function(){this.j=new window.Float32Array(16);this.A=new window.Float32Array(16);this.o=new window.Float32Array(16);this.identity()};
var BF=function(a,b){for(var c=0;16>c;c+=4)a.o[c+0]=a.j[c+0]*b[0]+a.j[c+1]*b[4]+a.j[c+2]*b[8]+a.j[c+3]*b[12],a.o[c+1]=a.j[c+0]*b[1]+a.j[c+1]*b[5]+a.j[c+2]*b[9]+a.j[c+3]*b[13],a.o[c+2]=a.j[c+0]*b[2]+a.j[c+1]*b[6]+a.j[c+2]*b[10]+a.j[c+3]*b[14],a.o[c+3]=a.j[c+0]*b[3]+a.j[c+1]*b[7]+a.j[c+2]*b[11]+a.j[c+3]*b[15];c=a.j;a.j=a.o;a.o=c};
var CF=function(a,b){ea(a);DF();for(var c=b?EF:FF,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 GF=function(a){var b=[];HF(a,function(a){b.push(a)});
return b};
var HF=function(a,b){function c(){for(;d<a.length;){var b=a.charAt(d++),c=IF[b];if(null!=c)return c;if(!C(b))throw Error("Unknown base64 encoding at char: "+b);}return null}
DF();for(var d=0;;){var e=c(),f=c(),k=c(),l=c();if(null==l){if(null==e)break;l=64;k=null!=k?k:64;f=null!=f?f:0}b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}};
var DF=function(){if(!FF){FF={};IF={};EF={};for(var a=0;65>a;a++)FF[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),IF[FF[a]]=a,EF[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(IF["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
var JF=function(a){var b=new window.Float32Array(3),c=zF(a);b[0]=a[0]/c;b[1]=a[1]/c;b[2]=a[2]/c;a=1/(Math.abs(b[0])+Math.abs(b[1])+Math.abs(b[2]));b[0]*=a;b[1]*=a;b[2]*=a;0<b[2]&&(a=(1-Math.abs(b[0]))*(0<b[1]?1:-1),b[0]=(1-Math.abs(b[1]))*(0<b[0]?1:-1),b[1]=a);b[0]*=.5;b[1]*=.5;b[2]*=.5;b[0]+=.5;b[1]+=.5;a=Math.floor(256*b[0]);b=Math.floor(256*b[1]);256==a&&--a;256==b&&--b;return{x:a,y:255-b}};
var KF=function(a){function b(a,b){var c,d=b;for(c=0;a[c]!=b;++c){var e=a[c];a[c]=d;d=e}a[c]=d;return c}
var c=a.length,d=Array(2*c+3),e=0;d[0]=0;d[1]=c>>8&255;d[2]=c&255;for(var e=3,f=Array(256),k=Array(256),l=Array(256),m=0;256>m;++m)f[m]=m,k[m]=m,l[m]=0;for(var p=0,u=0,m=0;m<c;++m){var t=a[m],w=b(f,t);k[u]==t?l[u]+=4:0==(l[u]>>=1)&&(k[u]=t,l[u]=1);1<l[t]&&b(f,k[t]);u=t;0==w&&++p;if(0!=w||m+1==c){for(;0<p;)--p,0==p%2?d[e++]=0:d[e++]=254,p>>=1;if(255==w||254==w)d[e++]=255;0!=w&&(d[e++]=w)}}return d.slice(0,e)};
var LF=function(){this.D=this.G=this.o=this.F=this.A=0;this.C=new window.Float32Array(3);this.B=-1;this.j=[]};
var MF=function(a,b){this.B=a;this.N=b;this.A=new AF;this.$=this.Y=this.Ea=this.da=null;this.C=.872;this.U=this.X=this.T=this.o=this.j=0;this.G=!0;this.D=this.J=0;this.F=new window.Float32Array(3);this.K=new lF(a);this.ca=this.B.V().experiments.ma("enable_html5_spherical_direction_logging")?new LF:null};
var NF=function(a,b){MF.call(this,a,b);this.P=null;this.H=0;this.L=!0};
var OF=function(){};
var PF=function(a,b,c){return a[b]=a[b]||c};
var QF=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1};
var RF=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 SF=function(){var a;if((a=Object.create)&&TF.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a};
var UF=function(){var a=VF.href,b;if(WF.dpo)b=WF.h;else{b=WF.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 XF=function(a){var b=PF(WF,"PQ",[]);WF.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 YF=function(a){return PF(PF(WF,"H",SF()),a,SF())};
var ZF=function(a,b,c){b&&0<b.length&&(b=$F(b),c&&0<c.length&&(b+="___"+$F(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=PF(aG,"_p",SF()),PF(b,c,SF())[a]=(new Date).getTime(),b=bG.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))};
var $F=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")};
var cG=function(a){throw Error("Bad hint"+(a?": "+a:""));};
var dG=function(a,b,c,d){var e=a.split(";"),f=e.shift(),k=eG[f],l=null;k?l=k(e,b,c,d):cG("no hint processor for: "+f);l||cG("failed to generate load url");b=l;c=b.match(fG);(d=b.match(gG))&&1===d.length&&hG.test(b)&&c&&1===c.length||cG("failed sanity: "+a);return l};
var iG=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")}
a=jG(a);kG.test(c)||cG("invalid_callback");b=lG(b);d=d&&d.length?lG(d):null;return[(0,window.encodeURIComponent)(a.eC).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.xq?"/rs="+e(a.xq):"",a.Xs?"/t="+e(a.Xs):"","/cb=",e(c)].join("")};
var jG=function(a){"/"!==a.charAt(0)&&cG("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))cG("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var 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("/");mG.test(b)||cG("invalid_prefix");c=nG(a,"k",!0);d=nG(a,"am");e=nG(a,"rs");
a=nG(a,"t");return{eC:b,version:c,tn:d,xq:e,Xs:a}};
var lG=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");oG.test(e)&&b.push(e)}return b.join(",")};
var nG=function(a,b,c){a=a[b];!a&&c&&cG("missing: "+b);if(a){if(pG.test(a))return a;cG("invalid: "+b)}return null};
var qG=function(){var a=UF();if(!a)throw Error("Bad hint");return a};
var rG=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>QF.call(b,e)&&c.push(e)}return c};
var sG=function(a){"loading"!=tG.readyState?uG(a):tG.write("<"+vG+' src="'+(0,window.encodeURI)(a)+'"></'+vG+">")};
var uG=function(a){var b=tG.createElement(vG);b.setAttribute("src",a);b.async="true";(a=tG.getElementsByTagName(vG)[0])?a.parentNode.insertBefore(b,a):(tG.head||tG.body||tG.documentElement).appendChild(b)};
var wG=function(a,b){var c=b&&b._c;if(c)for(var d=0;d<xG.length;d++){var e=xG[d][0],f=xG[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}};
var yG=function(a,b,c){zG(function(){var c;c=b===UF()?PF(AG,"_",SF()):SF();c=PF(YF(b),"_",c);a(c)},c)};
var BG=function(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);wG(a,c);var d=a?a.split(":"):[],e=c.h||qG(),f=PF(WF,"ah",SF());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 t=k.length;if(1<t){var w=c.callback;w&&(c.callback=function(){0==--t&&w()})}for(;d=k.shift();)CG(d.features,c,d.hint)}else CG(d||[],c,e)};
var CG=function(a,b,c){function d(a,b){if(t)return 0;DG.clearTimeout(u);w.push.apply(w,E);var d=((AG||{}).config||{}).update;d?d(f):f&&PF(WF,"cu",[]).push(f);if(b){ZF("me0",a,z);try{yG(b,c,p)}finally{ZF("me1",a,z)}}return 1}
a=RF(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,t=!1;if(k&&!l||!k&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var m=PF(YF(c),"r",[]).sort(),w=PF(YF(c),"L",[]).sort(),z=[].concat(m);0<k&&(u=DG.setTimeout(function(){t=!0;l()},k));
var E=rG(a,w);if(E.length){var E=rG(a,m),M=PF(WF,"CP",[]),G=M.length;M[G]=function(a){function b(){var a=M[G+1];a&&a()}
function c(b){M[G]=null;d(E,a)&&XF(function(){e&&e();b()})}
if(!a)return 0;ZF("ml1",E,z);0<G&&M[G-1]?M[G]=function(){c(b)}:c(b)};
if(E.length){var I="loaded_"+WF.I++;AG[I]=function(a){M[G](a);AG[I]=null};
a=dG(c,E,"gapi."+I,m);m.push.apply(m,E);ZF("ml0",E,z);b.sync||DG.___gapisync?sG(a):uG(a)}else M[G](OF)}else d(E)&&e&&e()};
var zG=function(a,b){if(WF.hee&&0<WF.hel)try{return a()}catch(c){b&&b(c),WF.hel--,BG("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;
}};
var EG=function(){Wj.call(this);this.j={}};
var FG=function(a,b,c){if(!a.j[b]&&(c.ue||c.Sf)){var d=a.j,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.O("vast_info_card_add",b)}};
var GG=function(){if(null==v("_lact",window)){var a=(0,window.parseInt)(Ei("LACT"),10),a=(0,window.isFinite)(a)?K()-Math.max(a,0):-1;q("_lact",a,window);-1==a&&HG();Sl(window.document,"keydown",HG);Sl(window.document,"keyup",HG);Sl(window.document,"mousedown",HG);Sl(window.document,"mouseup",HG);Ni("page-mouse",HG);Ni("page-scroll",HG);Ni("page-resize",HG)}};
var HG=function(){null==v("_lact",window)&&(GG(),v("_lact",window));var a=K();q("_lact",a,window);Ui("USER_ACTIVE")};
var QA=function(){var a=v("_lact",window);return null==a?-1:Math.max(K()-a,0)};
var IG=function(a,b){this.experimentIds=(a||"").split(",");this.flags=rj(b||"","&");var c={};F(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;this.D=!!c["9408846"];this.o=!!c["932250"]||!!c["9406444"];this.Y=!!c["945066"]||!!c["9405188"];this.A=!!c["945069"]||!!c["9405408"];this.T=!!c["945074"]||!!c["9405191"];this.L=!!c["945090"]||!!c["9405409"];this.N=!!c["9416855"];this.B=c["9408912"]?5E3:c["9408913"]?7E3:c["9408914"]?9E3:c["9408915"]?11E3:c["9408916"]?13E3:c["9408917"]?15E3:1E4;this.Ea=!!c["9406692"];this.spherical=!!c["9406693"]||!!c["9417210"]&&Ht&&Ac(8);this.P=!!c["9417025"];this.da=!!c["9417026"];this.F=!!c["9417027"];
this.vv=!0;this.G=!!c["909722"];this.$=!!c["922333"];this.J=!!c["937009"];this.enableAudioCast=!!c["9408394"];this.K=!!c["9408919"];this.j=!!c["9414740"];this.RC=!!c["9414661"];this.U=!!c["9414672"];this.showEndToEndLatency=!!c["9416891"];this.C=!!c["9414843"];this.X=!!c["9418683"];this.ca=!!c["9407182"]};
var JG=function(a){H.call(this);a=gc(a);this.L={};this.experiments=new IG(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.ga=b;this.F=(this.K=KG.test(this.ga))?Cu("",a.loaderUrl):this.ga;this.gb=Zp(this.F);this.protocol=(this.Mj=(this.Nb=zu(!1,a.ssl_stream))||zu(!1,a.ssl))?"https":"http";this.baseYtUrl=Xp(a.BASE_YT_URL)||Xp(this.ga)||this.protocol+"://www.youtube.com/";"adunit"==a.el?LG.test(this.F)?this.ya="adunit":
this.ya="embedded":this.experiments.ma("legacy_el")?this.ya=a.el||this.ya:"embedded"==a.el||this.gb?this.ya=Au(this.ya,a.el,MG):a.el&&(this.ya="embedded");GG();b=null;var c=a.ps,d=ib(NG,c);!c||d&&!this.gb||(b=c);this.j=b;this.Ab=ib(NG,this.j);this.B="blogger"==this.j||"books"==this.j||"docs"==this.j||"google-live"==this.j||"picasaweb"==this.j;this.ub=!this.B;this.Kj=zu(!this.B,a.showwatchlater);this.o={};this.o.c=a.c||"web";this.o.cver="html5";this.o.cplayer="UNIPLAYER";this.ab=zu(!1,a.edu_mode);
this.T=!(!xt().defaultPlaybackRate||Nf&&!pt("chrome")||Kw||OG||pt("android")||pt("silk"));a.use_media_volume?b=!1:(b=xt(),c=b.muted,b.muted=!c,b=b.muted!=c);this.bb=b;this.$e=PG;(Kw||OG||Ht)&&"blazer"!=this.j&&QG(this);this.Fa=zu("adunit"!=this.ya&&"detailpage"!=this.ya&&!this.Ab,a.showinfo);this.isMobile=zu("blazer"==this.j,a.is_html5_mobile_device);this.Cb=zu(!1,a.playsinline);b=this.isMobile&&RG&&2.3>=Qv;c=SG(this)||!b&&zu("native"==this.j,a.use_native_controls)?"3":"1";this.A="0"!=a.controls?
c:"0";this.useTabletControls=this.experiments.ma("disable_new_tablet_mode_behavior")?zu("blazer"==this.j||"touch"==this.j,a.use_tablet_controls):this.isMobile;this.color=Au("red",a.color,TG);this.oe="3"==this.A||zu(!1,a.modestbranding)&&"red"==this.color;zu(!1,a.nologo)&&(c=this.F,UG.test(c),Zp(c));this.Ic=(c=!Rx(this)&&"detailpage"!=this.ya&&!this.B&&!this.Ab)&&!this.oe&&"1"==this.A;this.wd="embedded"==this.ya&&c&&!this.Fa&&!this.Ic;this.Lj=this.pe=b;this.G=OG?this.experiments.$&&7<=Lw:!0;this.nb=
this.K||!1;this.N="detailpage"==this.ya?"":(this.F||a.post_message_origin||"").substring(0,128);this.Za=!!a.disableCast;this.autoplay=zu(!1,a.autoplay);this.he=zu(!1,a.autoplayoverride);this.Bd=this.autoplay||"detailpage"==this.ya;b=this.he||!this.isMobile&&!vt();this.za=this.Bd&&b;b="detailpage"==this.ya&&"blazer"==this.j;this.ta=!zu(!0,a.fs);this.Ia=!this.ta&&(b||Nh());this.Zc=zu(!this.Ab,a.rel);this.Jj="adunit"!=this.ya;this.Y="profilepage"==this.ya;this.Ca="blazer"==this.j||"mweb-polymer"==this.j;
switch(this.j){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.$=b;this.zb=Cu("",a.authuser);this.$a=zu(!1,a.disablekb);this.pageId=Cu("",a.pageid);this.qe=Fu(au,a.vq);this.Ze=Cu("",a.playerapiid);this.jg=zu(!0,a.canplaylive);this.ie=zu(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 te(b,c))):b=null;this.yd=b;this.mute=this.gb&&zu(!1,a.mute);this.storeUserVolume=!this.mute&&zu("0"!=this.A,a.store_user_volume);this.useMediaVolume=zu(!1,a.use_media_volume);this.af=zu(!1,a.retryneterr)&&this.gb;this.Cd="3"==this.A?3:Au(void 0,a.iv_load_policy,Pw);this.ia=zu(!1,a.iv_allow_in_place_switch);this.La=Cu("",a.cc_lang_pref);this.da=Au(void 0,a.cc_load_policy,Pw);this.ca=void 0==a.content_v?void 0:a.content_v.toString();this.je=
void 0==a.framer?void 0:a.framer.toString();this.X=Cu("en_US",a.hl);this.region=Cu("US",a.cr);this.hostLanguage=Cu("en",a.host_language);this.ne=zu(!1,a.privembed);this.vb="";this.oa=new ek;this.J=zu(!0,a.deviceHasDisplay);this.Sa=Bu(this.Sa,a.ismb);VG(this,a);this.L=a;this.H=new EG;this.U=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&this.o.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.ma("disable_innertube_config_reporting")||Ki(Error("MISSING_INNERTUBE_CONFIG,api_key="+
b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+this.o.c+",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));this.ke={apiaryHost:Cu("",b.apiary_host),OJ:Cu("",b.apiary_host_firstparty),gapiHintOverride:zu(!1,b.gapi_hint_override),gapiHintParams:Cu("",b.gapi_hint_params),innertubeApiKey:Cu("",b.innertube_api_key),innertubeApiVersion:Cu("",b.innertube_api_version),Xx:this.o.c,innertubeContextClientVersion:Cu("",
b.innertube_context_client_version),Zx:this.hostLanguage,Yx:this.region};this.Hc=void 0!=window.WebKitPlaybackTargetAvailabilityEvent&&zu(!1,a.airplay_button);this.D=new Ov(this.J,"web"==this.o.c.toLowerCase().substr(0,3)||qt()||rt());this.enableSafetyMode=zu(!1,a.enable_safety_mode)};
var WG=function(a,b){a.Ya=b.get("d",a.Ya);a.Ha=b.get("f",a.Ha)};
var VG=function(a,b){a.C=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&$b(XG,c)&&$b(YG,c)?YG[c]+"_"+XG[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.K||a.gb||d)a.C=c,a.L.adformat=b.adformat,d||(a.ya="adunit")}}if(c=b.video_id&&b.video_id!=a.vb)a.vb=b.video_id;(b.adpings||c)&&b.adpings&&tj(b.adpings);a.ab?d="s.youtubeeducation.com":a.ub?(d=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||
"s.youtube.com",a.experiments.ca&&"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.zd=d;a.xd="//"+a.zd+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.Dd=d,a.L.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.L.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var f in ZG)c=ZG[f],d=b[c],void 0!=d&&(a.o[c]=d);!a.fa&&b.cl&&(a.fa=+b.cl);a.userAge=Bu(a.userAge,b.user_age);a.userDisplayImage=Cu(a.userDisplayImage,b.user_display_image);Mw.test(a.userDisplayImage)||(a.userDisplayImage="");
a.userDisplayName=Cu(a.userDisplayName,b.user_display_name);a.userGender=Cu(a.userGender,b.user_gender);a.P=Cu(a.P,b.eventid);a.P&&(wu=a.P);a.csiPageType=Cu(a.csiPageType,b.csi_page_type);a.ha=Cu(a.ha,b.csi_service_name);a.Ca=zu(a.Ca,b.enablecsi);b.enabled_engage_types&&(a.oa=new ek(b.enabled_engage_types.split(",")));a.ia=zu(a.ia,b.iv_allow_in_place_switch)};
var $G=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 Wg(a.baseYtUrl+"get_video_metadata",b)};
var aH=function(a){var b;b=Ng(a.baseYtUrl);var c=Og(a.baseYtUrl);c&&(b+=":"+c);return"www.youtube-nocookie.com"==b||a.ab?"www.youtube.com":b};
var bH=function(a){return"gaming"==a.j?"gaming.youtube.com":aH(a)};
var cH=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
var dH=function(a){var b={};if(a.tc){if(a.tc.getVideoPlaybackQuality)return a.tc.getVideoPlaybackQuality();a.tc.webkitDecodedFrameCount&&(b.totalVideoFrames=a.tc.webkitDecodedFrameCount,b.droppedVideoFrames=a.tc.webkitDroppedFrameCount)}return b};
var eH=function(a){return a.experiments.G?Nx(a)||"leanback"==a.ya:!0};
var ay=function(a){return"leanback"==a.ya||a.Ab||!a.Zc&&!a.Y?!1:!0};
var fH=function(a){return"detailpage"!=a.ya&&"embedded"!=a.ya&&"profilepage"!=a.ya?!1:!0};
var Rx=function(a){return 0==a.F.indexOf(a.baseYtUrl)};
var Nx=function(a){return"detailpage"==a.ya&&"gaming"!=a.j};
var SG=function(a){return OG&&!a.Cb||vt()};
var QG=function(a){return ut()||"TV"==a.o.cplatform};
var Ux=function(a,b,c){return"detailpage"==a.ya&&"blazer"!=a.j&&!!b&&!b.ypcPreview&&!b.Da&&!ib(b.J,"ypc")&&!c};
var gH=function(a,b,c,d){this.F=c;this.B=IE(a).o;this.J=10;this.C=!0;this.U=this.P=this.X=this.A=this.o=null;this.T=b;this.j=null;this.aa=a;this.$=d;this.D=new ve(0,0,0,0);this.K=!1;this.H=!0};
var hH=function(a){a.o=window.document.createElement("canvas");if(!a.o)return 1;a.F.appendChild(a.o);try{a.A=a.o.getContext("webgl")||a.o.getContext("experimental-webgl")}catch(d){return 2}if(null==a.A)return 3;var b=iH(a);if(0!=b)return b;var b=a.A,c=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,c);b.bufferData(b.ARRAY_BUFFER,new window.Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,0]),b.STATIC_DRAW);a.P=c;b=a.A;c=b.createTexture();b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,c);b.texParameteri(b.TEXTURE_2D,
b.TEXTURE_MIN_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);a.X=c;b=a.A;b.clearColor(0,0,0,1);b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT);b.bindBuffer(b.ARRAY_BUFFER,a.P);b.vertexAttribPointer(a.N,3,b.FLOAT,!1,0,0);a.L();a.B.crossOrigin="use-credentials";return 0};
var iH=function(a){var b=a.A,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.j.yk());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.j.uk());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.N=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.N);a.U=e;a.j.Tc(b,a.U,a.F);return 0};
var jH=function(a){a.o&&(sf(a.o),a.o=null);a.A=null;a.C=!1;a.j&&a.j.destroy(a.$);a.j=null;a.B.removeAttribute("crossorigin");a.B.style.display="";a.J=10};
var kH=function(a){pq.call(this,a);this.da=!0;this.qa="webgl";this.subscribe("onResize",this.CE,this);this.subscribe("onPlaybackQualityChange",this.LA,this);this.subscribe("onStateChange",this.Uc,this);this.B=new S(["div","webgl"]);this.B.j(IE(a).B);this.aa=a;this.o=null;this.A=!1};
var lH=function(a){a=a.B;this.A=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.heading=a.ypc_offer_headline;this.B=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.j=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;Mw.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.o=a.ypc_item_url;this.videoId=a.ypc_vid};
var mH=function(){Jq.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.na["ytp-drawer-close-button"],b=Bh();a.innerHTML=b;b=this.na["ytp-drawer-open-button"];T(this,a,"click",this.B);T(this,b,"click",this.show);this.o=new Wd(oa(ae,this.element,"ytp-drawer-closed"),0);J(this,this.o);this.Eb(null);this.ea()};
var nH=function(a,b,c){Wj.call(this);this.B=0==c;this.o=new mH;this.o.subscribe("close-clicked",this.F,this);J(this,this.o);this.C=window.document.createElement("div");L(this.C,"html5-ypc-endscreen");this.D=window.document.createElement("div");L(this.D,"html5-ypc-overlay");this.A=new S(["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}}"]]);J(this,this.A);this.H=this.A.na["html5-ypc-purchase"];T(this.A,this.H,"click",this.G,this);Cf(this.D,b.B);c=b.title;b.o&&(c=["a",{href:b.o,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.A.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.A});this.j(a)};
var oH=function(a){a.B||(a.C.appendChild(a.A.element),a.o.Eb(null),Gq(a.C,"block"))};
var pH=function(a){a.B||a.o.show()};
var qH=function(a){pq.call(this,a);this.logEvent=this.qa="ypc";this.o=this.A=null;this.C=window.NaN;this.B=null};
var rH=function(a){return gx(a.getVideoData(),"ypc_module")?new qH(a):null};
var sH=function(a,b,c){var d=1E4;c.B.hasOwnProperty("ypc_overlay_timeout")&&(d=(0,window.parseInt)(c.B.ypc_overlay_timeout,10));a.o=new nH(a.B.element,a.A,d);a.o.subscribe("ypcContentRequest",a.Cz,a);a.o.subscribe("ypcModuleCloseClicked",a.uA,a);a.A.videoId&&a.B.element.appendChild(a.o.D);ay(b)&&(c=new lq(0x8000000000000,0x8000000000000,{priority:2}),a.fb([c]));pH(a.o);Ii(a.C);a.C=Fi(A(function(){if(this.o&&!b.experiments.J){var a=this.o;a.B||a.o.ea()}},a),d)};
var tH=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 uH(a)};
var uH=function(a,b,c){if(ha(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 vH=function(a){if(a.jl)return 4;var b=Ih("visibilityState",window.document);return b&&"visible"!=b?3:a.Hg?2:a.kl?1:0};
var wH=function(a,b){H.call(this);this.app=a;this.j=null;this.A={};this.B={};this.D={};this.C={};this.o=null;this.playerType=b;W(this,"cueVideoById",this.Cm);W(this,"loadVideoById",this.Fm);W(this,"cueVideoByUrl",this.ID);W(this,"loadVideoByUrl",this.VD);W(this,"playVideo",this.Wc);W(this,"pauseVideo",this.pauseVideo);W(this,"stopVideo",this.Hr);W(this,"clearVideo",this.FD);W(this,"getVideoBytesLoaded",this.PD);W(this,"getVideoBytesTotal",this.QD);W(this,"getVideoLoadedFraction",this.Em);W(this,"getVideoStartBytes",
this.RD);W(this,"cuePlaylist",this.GD);W(this,"loadPlaylist",this.Br);W(this,"nextVideo",this.oj);W(this,"previousVideo",this.pj);W(this,"playVideoAt",this.Gm);W(this,"setShuffle",this.setShuffle);W(this,"setLoop",this.XD);W(this,"getPlaylist",this.bc);W(this,"getPlaylistIndex",this.ND);W(this,"getPlaylistId",this.ce);W(this,"loadModule",this.nj);W(this,"unloadModule",this.Ir);W(this,"setOption",this.de);W(this,"getOption",this.xb);W(this,"getOptions",this.gh);W(this,"mute",this.mute);W(this,"unMute",
this.unMute);W(this,"isMuted",this.uc);W(this,"setVolume",this.setVolume);W(this,"getVolume",this.Db);W(this,"seekTo",this.Tb);W(this,"getPlayerState",this.getPlayerState);W(this,"getPlaybackRate",this.MD);W(this,"setPlaybackRate",this.rj);W(this,"getAvailablePlaybackRates",this.lj);W(this,"getPlaybackQuality",this.mj);W(this,"setPlaybackQuality",this.qj);W(this,"getAvailableQualityLevels",this.zr);W(this,"getCurrentTime",this.getCurrentTime);W(this,"getDuration",this.fh);W(this,"addEventListener",
this.addEventListener);W(this,"removeEventListener",this.removeEventListener);W(this,"getVideoUrl",this.getVideoUrl);W(this,"getDebugText",this.Dm);W(this,"getVideoEmbedCode",this.Ar);W(this,"getVideoData",this.getVideoData);W(this,"addCueRange",this.yr);W(this,"removeCueRange",this.Cr);W(this,"setSize",this.setSize);W(this,"getApiInterface",this.JD);W(this,"destroy",this.destroy);W(this,"showVideoInfo",this.Gr);W(this,"hideVideoInfo",this.TD);xH(this,"getInternalApiInterface",this.KD);xH(this,"getAdState",
this.getAdState);xH(this,"isNotServable",this.UD);xH(this,"getUpdatedConfigurationData",this.OD);xH(this,"updateRemoteReceivers",this.ZD);xH(this,"sendAbandonmentPing",this.WD);xH(this,"setAutonav",this.Dr);xH(this,"setAutonavState",this.Er);xH(this,"setMinimized",this.YD);xH(this,"channelSubscribed",x);xH(this,"channelUnsubscribed",x)};
var W=function(a,b,c){a.A[b]=A(c,a)};
var xH=function(a,b,c){a.B[b]=A(c,a)};
var yH=function(a,b){wH.call(this,a,b);W(this,"getPresentingPlayerType",this.getPresentingPlayerType);W(this,"addInfoCardXml",this.$D);W(this,"cueVideoByPlayerVars",this.aE);W(this,"loadVideoByPlayerVars",this.sj);W(this,"preloadVideoByPlayerVars",this.jE);W(this,"seekBy",this.Xc);W(this,"updatePlaylist",this.qE);W(this,"updateLastActiveTime",this.pE);W(this,"updateVideoData",this.rE);W(this,"getStoryboardFormat",this.fE);W(this,"getProgressState",this.Ve);W(this,"getHousebrandProperties",this.dE);
W(this,"setPlaybackQualityRange",this.kE);W(this,"getCurrentPlaylistSequence",this.cE);W(this,"canPlayType",this.canPlayType);W(this,"sendVideoStatsEngageEvent",this.cg);W(this,"setCardsVisible",this.hh);W(this,"handleGlobalKeyDown",this.hE);W(this,"getAudioTrack",this.ag);W(this,"setAudioTrack",this.Im);W(this,"getAvailableAudioTracks",this.Jr);W(this,"getMaxPlaybackQuality",this.eE);W(this,"setSizeStyle",this.mE);W(this,"forceFrescaUpdate",this.bE);W(this,"setAutonav",this.Dr);W(this,"setAutonavState",
this.Er);W(this,"showControls",this.oE);W(this,"hideControls",this.iE);W(this,"getVisibilityState",this.gE);W(this,"shouldSendVisibilityState",this.nE);W(this,"getVideoContentRect",this.Hm);W(this,"setSafetyMode",this.lE)};
var zH=function(a,b){yH.call(this,a,b)};
var AH=function(a){(a=rq(a.app))&&BH(a)};
var CH=function(a){return(a=DH(a.app.B,"endscreen"))?Xx(a):!1};
var EH=function(a){var b=DH(a.app.B,"endscreen");return b&&by(b)?!0:(a=DH(a.app.B,"ypc"))&&a.Ta()?!0:!1};
var pz=function(a){var b=a.app;a=a.playerType;return 3==b.getPresentingPlayerType()?b.G.L:rq(b,a).getPlayerState()};
var IE=function(a){return a.app.D};
var FH=function(a){return a.app.N&&!a.Ja()||!!a.bc()};
var GH=function(a,b){var c=HH(a.app,"captions","displaySettings",b);a.app.Xf("onCaptionsDisplaySettings");return c};
var Ox=function(a){a=a.app;IH(a,!a.L.Ja())};
var JH=function(a){return(a=rq(a.app))?bu(KH(a.ga,a.j)):"unknown"};
var LH=function(a){(a=DH(a.app.B,"webgl"))?a.A?(a=a.o,a=a.j?a.j.Xe():{}):a={}:a={};return a};
var MH=function(a,b){var c=DH(a.app.B,"webgl");c&&c.A&&(c=c.o,c.j&&c.j.lh(b))};
var NH=function(a,b){a.V().experiments.ma("ui_logging")&&OH(a,"controlclicked",{controlClicked:b})};
var OH=function(a,b,c,d){var e=rq(a.app);c.event=b;a.Ja()&&(c.fs=1);c.ux=1;e.logEvent(c,d)};
var dC=function(a){a.app.Oa("cardstatechange",Oy(a)&&PH(a)?1:0)};
var Oy=function(a){return(a=DH(a.app.B,"iv-module"))?hF(a):!1};
var PH=function(a){return(a=DH(a.app.B,"iv-module"))?iF(a):!1};
var QH=function(a,b,c){(a=DH(a.app.B,"iv-module"))&&kF(a,b,c)};
var rz=function(a,b){a.app.Oa("onFrescaStateChange",b);var c=rq(a.app);if(c&&b&&c.A){var c=c.A.o,d=b.hasActiveStream;MA(c,VA(c.j),"stream",[d?"A":"I"])}};
var RH=function(a){return(a=DH(a.app.B,"fresca"))?!!a.C&&a.C.B.A:!1};
var SH=function(a){var b=rq(a.app,1);if(!b)return!1;var c=b.getVideoData();return dx(c)&&!hx(c)&&2!=a.getPresentingPlayerType()&&(!TH(b)||3==a.getPresentingPlayerType())};
var UH=function(a){return a.app.da.play_pause||2==a.getPresentingPlayerType()?!0:!TH(rq(a.app,1))};
var VH=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=rq(d,a))c.D.bh.apply(c.D,b),a&&d.getPresentingPlayerType()!=a||sq(d,"cuerangesremoved",b)};
var WH=function(a,b,c){a.app.O("progresssync",b,c)};
var Xq=function(a,b,c){a=IE(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));rf(a,b,d);b.setAttribute("data-layer",c)};
var XH=function(a){a=a.fmt_list;if(!a)return{};var b=[];F(a,function(a){a.itag&&(b[a.itag.toString()]=!0)});
return b};
var YH=function(a,b,c){if(!a)return null;var d=b.docid;b=XH(b);return d&&b?ZH(a,d,b,c):null};
var ZH=function(a,b,c,d){d=Q(d.split(","),tj);if(!be(d,function(a){return!!c[a.itag]}).length)return null;
var e=Ng(a)||"",f=Og(a);return Q(d,function(a){if(c[a.itag]){var d=eh(dh(sh(a.url),e),f),m=Kg(a.url),d=oh(oh(d,"orig_host",Jg(m[1],m[2],m[3],m[4])),"scid",b);a.url=d.toString();a.isFastLoad="1"}return Ug(a)}).join(",")};
var $H=function(a,b,c){var d=aI(b);d?(d.status="success-prefetch-1",c(d)):a&&!b?c({status:"success"}):a?(a=[a,"v1/cache/videos",b,"metadata"].join("/"),Gj(a,{format:"JSON",method:"GET",timeout:2E3,kb:function(a,b){null==b&&(b={});b.status="success";c(b)},
onError:function(){c({status:"error"})},
Ud:function(){var a=aI(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})};
var aI=function(a){var b=window.acceleratorMeta;return(b?b.docid:null)===a?b:null};
var bI=function(a){dq("/gen_204?"+a,void 0)};
var cI=function(a){pq.call(this,a);this.logEvent=this.qa="spacecast";this.o=null};
var dI=function(a){return a.getVideoData().spacecastModule?new cI(a):null};
var eI=function(){Li({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 fI=function(a,b){this.L="";this.F=null;var c="caption-window";0==this.id&&(c=[c,"standard-caption-window"]);S.call(this,["div",c,{id:"caption-window-"+a},["div","caption-window-transform",["span","captions-text",{tabindex:0,"aria-live":"assertive"}]]]);this.J=this.na["caption-window-transform"];this.o=this.na["captions-text"];this.C=O("span",{"class":"captions-text",style:"visibility: hidden"});Cf(this.C,"C");this.type=0;this.id=a;this.Ga={};pa(this.Ga,gI);b?pa(this.Ga,b):pa(this.Ga,hI);this.P=
1};
var iI=function(a){Vf(a.element,a.Ga.leftPercentage+"%",a.Ga.topPercentage+"%");for(var b=0;8>=b;b++)ae(a.element,"anchor-point-"+b);L(a.element,"anchor-point-"+a.Ga.anchorPoint)};
var jI=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 kI=function(){this.o=[];this.j=[]};
var lI=function(a,b,c,d,e,f,k){lq.call(this,a,a+b,{priority:c});this.C=d;this.o=e;this.F=f||!1;this.G=k||null};
var mI=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 lI(c,d,a?6:5,e,b,a)};
var nI=function(a,b,c,d,e,f,k){lq.call(this,a,a+b,{priority:c});this.J=!1;this.id=d;this.params=e||{};this.F=f||null;this.G=k||null;this.o="";this.C=!1;oI(this)};
var pI=function(a,b){""!=a.o&&(a.C=!0);a.o=String(a.o+b)};
var qI=function(a){return a.params.modeHint?a.params.modeHint:a.params.textScrollDirection?2:a.C?1:0};
var rI=function(){return new nI(0,0x8000000000000,0,0,hI)};
var oI=function(a){a.F&&pa(a.params,sI(a.F));a.G&&pa(a.params,sI(a.G))};
var tI=function(a){kI.call(this);this.j.push(rI());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=mI(a[b]);this.o.push(d)}};
var uI=function(a){kI.call(this);this.A={};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.A[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.J=!0:e=rI();var f={};pa(f,e?e.params:
hI);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 nI(b,e,0,d,f)}else b=null}this.A[c]=b;this.j.push(b);break;case "text":c=mI(a),this.o.push(c),b=c.C,this.A[b]&&pI(this.A[b],c.o)}a=a.nextSibling}0==this.j.length&&
this.j.push(rI())};
var vI=function(a){this.o=a||null;this.j={}};
var wI=function(a,b,c){var d=a.j[b];if(void 0!=d)return d;if(a.o&&(void 0==c||c))return wI(a.o,b)};
var xI=function(a,b,c){void 0!=c&&(a.j[b]=c)};
var yI=function(a,b,c){void 0!=c&&(a.j[b]=c)};
var sI=function(a){var b=a.o?sI(a.o):{};pa(b,a.j);return b};
var zI=function(a){kI.call(this);var b={Ng:{},nm:{},pm:{}},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=AI(e,"p"),l=void 0;k&&f.Ng[k]&&(l=f.Ng[k]);f=new vI(l);xI(f,"id",AI(e,"id"));k=BI(e,"b");void 0!=k&&(f.j.bold=k);k=BI(e,"i");void 0!=k&&(f.j.italic=k);k=BI(e,"u");void 0!=k&&(f.j.underline=k);xI(f,"charEdgeStyle",CI(e,"et"));xI(f,
"offset",CI(e,"of"));xI(f,"textType",CI(e,"tt"));yI(f,"background",DI(e,"bc"));yI(f,"charEdgeColor",DI(e,"ec"));yI(f,"color",DI(e,"fc"));k=CI(e,"fs");void 0!=k&&0!=k&&xI(f,"fontFamily",k);k=AI(e,"sz");void 0!=k&&xI(f,"fontSizeIncrement",k/100-1);k=AI(e,"bo");void 0!=k&&xI(f,"backgroundOpacity",k/255);e=AI(e,"fo");void 0!=e&&xI(f,"textOpacity",e/255);e=wI(f,"id",!1);b.Ng[e]=f;break;case "ws":f=EI(b,e);e=wI(f,"id",!1);b.pm[e]=f;break;case "wp":f=FI(b,e),e=wI(f,"id",!1),b.nm[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=GI(b,f);if(f=c[k.id])f.end=k.start;c[k.id]=k;this.j.push(k);break;case "p":for(var k=b,l=f,m=[],p=AI(l,"t")||0,u=AI(l,"d")||0,t=AI(l,"w")||0,w=!!BI(l,"a"),z=w?6:5,E=AI(l,"p"),E=E?k.Ng[E]:null,M=l.childNodes,G=0;G<M.length;G++){var I=M[G];if("s"==I.tagName){0<G&&(w=!0);var Ta;Ta=k;var tb=I,I=p,Qb=u,Xb=t,bi=w,ZB=z,sp=E,tp=void 0,tp=tb.textContent?wa(tb.textContent):"",Vl=AI(tb,"p"),sp=Vl?Ta.Ng[Vl]:sp;Ta=AI(tb,"t")||0;Ta=new lI(I+
Ta,Qb-Ta,ZB,Xb,tp,bi,sp)}else Ta=l.textContent?wa(l.textContent):"",Ta=new lI(p,u,z,t,Ta,w,E);m.push(Ta)}l=m;if(0<l.length)for(k=c[l[0].C],k||(k=GI(b,f),k.id=a--,this.j.push(k)),f=0;f<l.length;f++)m=l[f],l[f].C=k.id,pI(k,m.o),this.o.push(m)}};
var AI=function(a,b){var c=a.getAttribute(b);if(null!=c)return(0,window.parseFloat)(c)};
var BI=function(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c};
var CI=function(a,b){var c=AI(a,b);if(void 0!=c)return c};
var DI=function(a,b){var c=a.getAttribute(b);if(null!=c)return HI.test(c),c};
var EI=function(a,b){var c=AI(b,"ws"),d;c&&a.pm[c]&&(d=a.pm[c]);c=new vI(d);xI(c,"id",AI(b,"id"));xI(c,"modeHint",CI(b,"mh"));xI(c,"textAlign",AI(b,"ju"));xI(c,"textPrintDirection",CI(b,"pd"));xI(c,"textScrollDirection",CI(b,"sd"));xI(c,"windowBorderType",CI(b,"et"));yI(c,"windowBorderColor",DI(b,"wbc"));yI(c,"windowColor",DI(b,"wfc"));d=AI(b,"wfo");void 0!=d&&xI(c,"windowOpacity",d/255);return c};
var FI=function(a,b){var c=AI(b,"wp"),d;c&&a.nm[c]&&(d=a.nm[c]);c=new vI(d);xI(c,"anchorPoint",CI(b,"ap"));xI(c,"colCount",AI(b,"cc"));xI(c,"id",AI(b,"id"));xI(c,"leftPercentage",AI(b,"ah"));xI(c,"rowCount",AI(b,"rc"));xI(c,"topPercentage",AI(b,"av"));return c};
var GI=function(a,b){var c=AI(b,"id")||0,d;d=AI(b,"t");var e=AI(b,"d")||0x8000000000000,f=FI(a,b),k=EI(a,b);return new nI(d,e,0,c,null,f,k)};
var II=function(a,b){kI.call(this);this.j.push(rI());for(var c=a.split(JI),d=1;d<c.length;d++){var e;e=c[d];var f=b;if(""==e||0==e.search(KI))e=null;else{var k=e.split(LI),l=0,m=k[l++].match(MI);m||(m=k[l++].match(MI));m?(e=NI(m[1],f)||0,f=NI(m[3],f)||0,k=k.slice(l).join("\n"),k=zh(k),e=new lI(e,f-e,5,0,k)):e=null}e&&this.o.push(e)}};
var NI=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 OI=function(a,b){this.j=[];this.o=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new II(a,b||0):(c=vz(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==(0,window.parseInt)(c.firstChild.getAttribute("format"),10)?new zI(c):new uI(c):new tI(c):null:null;c&&(this.o=c.j,this.j=c.o)};
var PI=function(){this.A=[];this.j=[];this.o=-1};
var QI=function(a,b){return b?a.j.concat(a.A):a.j};
var RI=function(a,b){switch(b.A){case "asr":var c=a.A;db(c,A(b.equals,b))||c.push(b);break;default:if(b.isDefault||0>a.o)a.o=a.j.length;c=a.j;db(c,A(b.equals,b))||c.push(b)}};
var SI=function(a,b){var c=eb(a.j,A(b.equals,b));-1!=c&&(a.o=c)};
var TI=function(a){this.Ro=!!a;this.j=new PI;this.C=[]};
var UI=function(a,b){return db(QI(a.j,!0),function(a){return a.toString()==b})};
var VI=function(a){TI.call(this,a.Jh);this.o=null;this.B=void 0;this.A=null;this.C=a.captionTranslationLanguages};
var WI=function(a,b){var c=b.H,d={};if(a.B||b.C)d.fmt=a.B||"srv"+b.C;b.o&&(d.tlang=b.o.languageCode);return wj(c,d)};
var XI=function(){this.da=this.Ea=!1;this.P=1;this.A=20971520;this.C=8388608;this.o=window.NaN;this.J=3145728;this.K=62914560;this.L=10485760;this.G=window.NaN;this.Qa=2;this.ia=25;this.D=2097152;this.H=!1;this.F=1800;this.j=1.15;this.B=1.05;this.$=!0;this.liveChunkReadahead=3;this.za=pt("xboxone")||tt()||ot();this.Y=25;this.U=!1;this.ta=Kl&&!0;this.Ca=!0;this.X=this.oa=this.T=!1;this.ca=this.N=0;this.ha=.8;this.fa=this.ga=!1};
var YI=function(a,b){1440<b&&!a.Ea&&(a.A=36700160,a.C=5242880,a.J=10485760,a.D=4194304,a.Ea=!0);2160<b&&!a.da&&(a.A=104857600,a.da=!0)};
var ZI=function(){this.sa=[]};
var $I=function(a,b){H.call(this);this.o=b;this.G=new ZI;this.B=!0;this.H=this.C=this.D=this.F=this.j=null;this.A=0};
var aJ=function(a,b){a.F=b};
var bJ=function(a){var b;if(b=!a.B&&null!==a.j)b=a.j,b=b.j.jh(b);return b&&!a.C&&!(a.j&&30<a.j.startTime-a.o.getCurrentTime())};
var cJ=function(a){a.isDisposed();var b;b=a.j;b=is(b.j,b);if(!a.G.contains(b.j[0].B)){var c=Sr(fs(b));a.C=Gj(c,{format:"RAW",Rb:A(a.J,a),withCredentials:!0});a.D=b;var c=a.G,d=a.D.j[0].B,e=yb(c.sa,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.sa[e-1]&&e<c.sa.length&&1==c.sa[e]-d?(pb(c.sa,e),pb(c.sa,e-1)):0<e&&1==d-c.sa[e-1]?c.sa[e-1]=d:e<c.sa.length&&1==c.sa[e]-d?c.sa[e]=d:(vb(c.sa,e,0,d),vb(c.sa,e+1,0,d)))}a.j=cb(b.j)};
var dJ=function(a){a.A=Hi(A(function(){bJ(this)&&cJ(this)},a),1E3);
bJ(a)&&cJ(a)};
var eJ=function(a,b){TI.call(this);this.A=a;this.o=new $I(new XI,b)};
var fJ=function(a,b){fI.call(this,a,b);this.type=1;this.H=this.K="";this.G=!1;this.B=null;this.D=[];this.o.style.display="block";this.o.style.padding="0";var c=this.o;ae(c,"captions-text");L(c,"caption-painton-text-rows")};
var gJ=function(a){return a.D.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)};
var hJ=function(a,b){fI.call(this,a,b);this.type=2;this.D=0;this.H=new Wd(this.K,433,this);J(this,this.H);this.F=[];this.G=[];this.B=[]};
var iJ=function(a){if(!a.H.isActive())if(a.D>=a.F.length)jJ(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.o){a.D++;a.G[b]++;break}if(e.F||0==a.B[b].length)a.B[b]+=e.o,a.D++,a.G[b]++;else break}jJ(a);d<c&&!a.H.isActive()&&(b=a.Xh(),L(a.o,"caption-rollup"),a.element.style.overflow="hidden",a.o.style.top=-b+"px",a.H.start())}};
var jJ=function(a){if(!a.H.isActive()){for(;a.B.length<a.Ga.rowCount;)a.B.unshift(""),a.G.unshift(0);for(;a.B.length>a.Ga.rowCount;){a.B.shift();var b=a.G.shift();0<b&&(a.D-=b,a.F.splice(0,b))}b=a.B.join("\n");a.$d(jI(b))}};
var kJ=function(a){a.C.style.fontFamily=a.o.style.fontFamily;a.C.style.fontSize=a.o.style.fontSize;a.o.appendChild(a.C);Cf(a.C,"\u2014");var b=a.C.offsetWidth;Cf(a.C,String.fromCharCode(160));b=2*a.C.offsetWidth+32*b;a.o.removeChild(a.C);return b};
var lJ=function(a,b,c,d){TI.call(this,d);c||(c=vj(a).hl||"",c=c.split("_").join("-"));this.A=wj(a,{hl:c});this.B=b;this.D={};this.o=null};
var mJ=function(a,b){var c=a.A,d={v:a.B,type:"track",lang:b.j,name:b.B,kind:b.A,fmt:b.C};b.o&&(d.tlang=b.o.languageCode);return c=wj(c,d)};
var nJ=function(a){pq.call(this,a,"subtitlesModuleData");this.qa="captions";this.logEvent="cc";eI();this.da=!0;this.$=this.L=this.ca=!1;this.W=a.V();this.C=null;this.K=IE(a);this.B={};this.U=null;this.Y=[];this.J={};this.X={};this.ga=this.H=this.ha=!1;this.T=new fI(99,oJ);this.o=this.A=this.D=null;this.oa=!1;this.fa=new Wd(this.Zl,0,this);J(this,this.fa);this.ia=new Wd(this.sC,2E3,this);J(this,this.ia);this.subscribe("onResize",A(this.Bp,this));this.subscribe("onCaptionsToggle",A(this.xB,this));this.subscribe("onPlaybackAudioChange",
A(this.Wy,this));this.subscribe("onCaptionsDisplaySettings",A(this.Jl,this))};
var pJ=function(a){return"3"!=a.W.A?!1:!!a.K.o.textTracks};
var qJ=function(a,b,c,d,e){var f=a.B[b];y(f)&&(a.B[c]=d.indexOf(f),-1==a.B[c]&&(a.B[c]=e),delete a.B[b])};
var rJ=function(a,b){if(b&&a.C.captionTracks.length){var c=a.j.ag().En;if(2==c||3==c)return!0}if(1==a.W.da||1==a.C.qe||"alwayson"==a.C.Oc("yt:cc")||pJ(a))return!0;c=vq(a,"module-enabled");return null!=c?!!c:"on"==a.C.Oc("yt:cc")};
var sJ=function(a){a.o&&a.o==a.A.Kd()&&tJ(a);a.A.ql(A(a.gq,a),!0,pJ(a)?"vtt":void 0,a.j.ag())};
var uJ=function(a){a.L=!0;pJ(a)||(vJ(a),a.Bp())};
var wJ=function(a){a.A.Kd()&&xJ(a,a.A.Kd())};
var yJ=function(a){var b=[];Ob(a.J,function(a){a instanceof fJ&&b.push(a)});
if(0!=b.length){b.sort(function(a,b){return b.Ga.Xl-a.Ga.Xl});
var c=zJ(a.K).height,d=b[0].Ga.Xl;F(b,function(a){a.Ga.Xl=d;var b=Math.round(a.Ga.zq*a.Xh());d-=Math.round(b/c*100);a.Wd()},a)}};
var tJ=function(a){a.o&&(a.o=null,qq(a),a.Y=[],a.o=null,a.Zl(),a.A.Yl())};
var xJ=function(a,b,c){!b||a.o&&b.equals(a.o)||(null!=c&&(a.H=c),a.F?(a.o=b,AJ(a),a.Fl("control_subtitles_set_track",Tt(b)),a.L||uJ(a)):(a.A.pl(b,A(a.hq,a)),a.ca=!0))};
var vJ=function(a,b){var c=a.K.Ma();Ob(a.J,function(a){a.rd(this.B,c)},a);
a.D&&a.D.rd(a.B,c);a.T.rd(a.B,c);a.Zl();n(b)&&!b||a.Jl()};
var BJ=function(a){if(a.loaded){var b=a.ia;b.isActive()&&Xd(b);wq(a,"module-enabled",!1);(b=rq(a.j.app))&&b.A&&DA(b.A.A);tJ(a);a.H=!1;a.F?(AJ(a),a.Fl("control_subtitles_set_track")):a.O("publish_external_event","captionschanged",{});wJ(a)}};
var CJ=function(a){return nJ.prototype.Ta(a)?new nJ(a):null};
var DJ=function(a,b){if(b&&!a.D){a.D=new fI(98,EJ);a.U.element.appendChild(a.D.element);var c=a.D,d=R("YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.$d(jI(d)));a.D.rd(a.B,a.K.Ma())}else!b&&a.D&&(a.D.dispose(),a.D=null)};
var FJ=function(a,b){if(b)if(fc(b,"reset"))delete a.B,a.B=gc(GJ),a.Jl(),vJ(a);else{if(!HJ){var c={};c.color=a.ck;c.textOpacity=a.tl;c.background=a.ck;c.backgroundOpacity=a.tl;c.windowColor=a.ck;c.windowOpacity=a.tl;c.charEdgeStyle=a.wv;c.fontFamilyOption=a.$v;c.fontSizeIncrement=a.aw;HJ=c}var c=HJ,d;for(d in c)switch(d){case "fontFamilyOption":a.B.fontFamily=c[d](b[d],a.B.fontFamily);break;default:a.B[d]=c[d](b[d],a.B[d])}vJ(a,QG(a.W))}};
var AJ=function(a){var b={};a.o&&(b=Tt(a.o));a.O("publish_external_event","captionschanged",b)};
var IJ=function(a){pq.call(this,a);this.qa="ypc_license_checker";this.logEvent="ypc_license";this.D=!1;this.B=0;this.C=!1;this.o=window.NaN;yu();this.A=null};
var JJ=function(a){return gx(a.getVideoData(),"ypc_license_checker_module")};
var KJ=function(a){return JJ(a)?new IJ(a):null};
var LJ=function(a){var b=a.j.getVideoData();return $w(b)?!!a.A:!!b.heartbeatToken};
var MJ=function(a,b){if(!a.o&&a.D&&LJ(a)){var c=a.j.getVideoData(),d=a.j.V();if($w(c)||!QG(d)||d.experiments.ma("tv_player_heartbeats"))c=b,void 0==c&&(c=a.C?a.A?1E3*a.A.interval:a.j.getVideoData().heartbeatInterval||6E4:1E3),a.o=Fi(A(a.xC,a),c)}};
var NJ=function(a,b){if(a.o){a.log({errorType:b});a.o=window.NaN;a.B++;var c=a.j.getVideoData();(c.heartbeatSoftFail?0:a.B>=(a.A?a.A.j:c.heartbeatRetries||5))?(c=R("YTP_ERROR_LICENSE"),OJ(a.j.app.j,"heartbeat",c,void 0)):MJ(a)}};
var PJ=function(a){try{return de(a)}catch(b){return null}};
var QJ=function(a){a.B=0;a.o&&(Ii(a.o),a.o=window.NaN);a.C=!1};
var RJ=function(a){pq.call(this,a);this.qa="creatorendscreen";this.K=null;this.J=0;this.D=null;this.o=new S(["div",this.qa]);this.A=new S(["div","creatorendscreen-darken-overlay"]);this.B=null;this.C={};this.H={};this.subscribe("onStateChange",this.BE,this);this.subscribe("onResize",this.UC,this)};
var SJ=function(a){return TJ(a)?new RJ(a):null};
var TJ=function(a){return UJ(a.V().j)?!0:gx(a.getVideoData(),"iv_endscreen_url")};
var UJ=function(a){return"creator-endscreen-editor"===a};
var VJ=function(a,b){qf(a.o.element);qq(a);a.C={};a.H={};if((a.K=b)&&b.elements&&b.elements.length){a.A.j(a.o.element);var c=a.j.Hm(),c=c.width/c.height,d=[],e=new lq(b.startMs,b.startMs+b.durationMs,{id:"ytp-creatorendscreen-active"});d.push(e);for(e=0;e<b.elements.length;e++){var f=b.elements[e],k=WJ(f,c);if(k){a.C[f.id]=k;a.H[f.id]=f;k.j(a.o.element);Pc(k.element,"mouseenter",A(a.zE,a));Pc(k.element,"mouseleave",A(a.AE,a));var l=new lq((0,window.parseInt)(f.startMs,10),(0,window.parseInt)(f.endMs,
10),{id:"ytp-creatorendscreen-element-"+f.id});d.push(l);l=a;k=k.element;Pc(k,"mouseenter",A(l.Pz,l,f));k=af("a",void 0,k)[0];Pc(k,"click",A(l.yE,l,f))}}a.fb(d)}};
var WJ=function(a,b){function c(a){return Math.round(1E6*a)/1E4+"%"}
var d={VIDEO:XJ,PLAYLIST:YJ,CHANNEL:ZJ,WEBSITE:$J},d=d[a.type]?d[a.type](a):null;if(!d)return null;var e=a.width*b/a.aspectRatio;gg(d.element,c(a.width),c(e));Vf(d.element,c(a.left),c(a.top+1));L(d.element,[["creatorendscreen-top-left-quad","creatorendscreen-top-right-quad"],["creatorendscreen-bottom-left-quad","creatorendscreen-bottom-right-quad"]][Math.round(a.top+e/2)][Math.round(a.left+a.width/2)]);return d};
var XJ=function(a){return new S(["div",["creatorendscreen-element","creatorendscreen-video"],["div","creatorendscreen-covering-image",{style:"background-image: url('"+a.imageUrl+"')"}],["div","creatorendscreen-covering-shadow-top"],["div","creatorendscreen-covering-shadow-bottom"],["a","creatorendscreen-covering-overlay",{href:a.targetUrl},["div","creatorendscreen-video-title",a.title],["div","creatorendscreen-video-metadata",a.metadata],["div","creatorendscreen-video-duration",a.videoDuration]]])};
var YJ=function(a){return new S(["div",["creatorendscreen-element","creatorendscreen-playlist"],["div","creatorendscreen-covering-image",{style:"background-image: url('"+a.imageUrl+"')"}],["div","creatorendscreen-covering-shadow-top"],["a","creatorendscreen-covering-overlay",{href:a.targetUrl},["div","creatorendscreen-playlist-title",a.title],["div","creatorendscreen-playlist-metadata",a.metadata],["div","creatorendscreen-playlist-count",["div","creatorendscreen-playlist-icon"],["div","creatorendscreen-playlist-count-text",
a.playlistLength]]]])};
var ZJ=function(a){return new S(["div",["creatorendscreen-element","creatorendscreen-channel"],["div","creatorendscreen-expanding-overlay",["div","creatorendscreen-expanding-overlay-content",["div","creatorendscreen-channel-title",a.title],["a","creatorendscreen-channel-subscribe",a.callToAction,{href:a.targetUrl,target:"_blank"}]]],["div","creatorendscreen-expanding-image",{style:"background-image: url('"+a.imageUrl+"')"}],["span","creatorendscreen-covering-icon"]])};
var $J=function(a){var b=window.document.createElement("a");b.href=a.targetUrl;return new S(["div",["creatorendscreen-element","creatorendscreen-website"],["div","creatorendscreen-expanding-overlay",["div","creatorendscreen-expanding-overlay-content",["div","creatorendscreen-website-title",a.title],["div","creatorendscreen-website-domain",b.hostname],["a","creatorendscreen-website-goto",a.callToAction,{href:a.targetUrl,target:"_blank"}]]],["div","creatorendscreen-expanding-image",{style:'background-image: url("'+
a.imageUrl+'")'}],["span","creatorendscreen-covering-icon"]])};
var aK=function(a,b,c){function d(){f||(e++,e==b.length&&(k.stop(),c&&c()))}
b=bK(a,b);var e=0,f=!1,k=new Wd(function(){f=!0},1E3,a);
k.start();for(a=0;a<b.length;a++)dq(b[a],d)};
var bK=function(a,b){for(var c=a.j.getVideoData().clientPlaybackNonce,d=a.j.getCurrentTime().toFixed(2),e=[],f=0;f<b.length;f++){var k=new P(b[f]);k.j.set("cpn",c);k.j.set("p-time",d);e.push(k.toString())}return e};
var cK=function(a){pq.call(this,a);this.qa="ypc_clickwrap";this.logEvent="ypc-clickwrap";Li({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.A=this.o=null};
var dK=function(a){return gx(a.getVideoData(),"ypc_clickwrap_module")?new cK(a):null};
var eK=function(){return[OE.A,SJ,ey,sz,dI,CJ,kH.o,dK,KJ,rH]};
var fK=function(a){this.C=Math.exp(Math.log(.5)/a);this.o=this.B=0};
var gK=function(a){this.o=window.Float32Array?new window.Float32Array(a):Array(a);this.j=a-1};
var hK=function(a,b){a.j=(a.j+1)%a.o.length;a.o[a.j]=b};
var iK=function(a,b,c){this.H=0;this.F=a;this.C=b||.5;this.D=c||0;this.G="index";this.o=0;this.B=[]};
var jK=function(a,b){kK(a,"value");var c=b*a.o,d=0,e=window.NaN;a.B.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});
return e};
var kK=function(a,b){a.G!=b&&(a.G=b,Eb(a.B,b))};
var lK=function(a){this.B=a;this.o=[]};
var mK=function(a){this.C=a;this.D=this.F=0;this.j=-1;this.J=new gK(100);this.H=0;this.K=ct();this.A=new iK(4,.6);this.B=new fK(4);this.G=new lK(17);this.C.A?this.o=new fK(17):this.o=new iK(17,.5,.1);a=nj("yt-player-bandwidth")||{};this.o.j(this.C.o,0<a.byterate?a.byterate:this.C.j);0<a.delay&&this.A.j(1,Math.min(+a.delay,2));0<a.tailDelay&&this.B.j(1,+a.tailDelay);this.j=ct()};
var nK=function(a,b,c){b=Math.max(b,.05);a.o.j(b,c/b);oK(a)};
var pK=function(a,b,c){(0,window.isNaN)(c)||(a.D+=c);(0,window.isNaN)(b)||(a.F+=b);a.G.j(b,c/b);oK(a)};
var qK=function(a){a=a.A.A();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};
var rK=function(a){return a.B.A()||0};
var sK=function(a){var b=a.o.A(),b=0<b?b:1;a=a.G.A();a=0<a?a:1;return a>2*b?(b+a)/2:b};
var tK=function(a){var b={};b.delay=qK(a);b.tailDelay=rK(a);b.byterate=sK(a);return b};
var uK=function(a){-1<a.j&&3E4<ct()-a.j&&(JA(tK(a)),a.j=ct())};
var oK=function(a){var b=ct();a.K=b;500<b-a.H&&(hK(a.J,1/(1/sK(a)+rK(a))),a.H=b)};
var vK=function(a){return 4E3<=ct()-a.K};
var wK=function(){this.j=13E4;this.o=.5;this.A=!1};
var xK=function(){H.call(this);this.j=[];this.D={};this.A={};this.B={};this.o=this.F=null;this.C=[];this.G=null};
var yK=function(a){a.j=be(a.j,function(a){try{a.destroy()}catch(c){Ki(c)}return!1},a)};
var zK=function(a,b,c){AK(a);a.G=b;a.C=sb(c);F(a.j,function(a){0<=jb(c,a.qa)&&(a.F=b,a.Di(!!a.F))})};
var AK=function(a){F(a.C,function(a){if(a=DH(this,a))a.F=null,a.Di(!1)},a);
a.G=null;a.C=[]};
var BK=function(a){a=DH(a,"iv-module");return!(!a||!a.loaded)};
var CK=function(a,b){if(!b)return Q(a.j,function(a){return a.qa});
var c=DH(a,b);return c?c.We():[]};
var DH=function(a,b){return db(a.j,function(a){return a.qa==b})};
var DK=function(a){var b={};F(a.j,function(a){pa(b,a.kh())});
return b};
var EK=function(a,b,c){this.B=b;this.j=c;this.C=a;this.o=!0};
var FK=function(a,b){lc.call(this,"adError");this.A=a;this.j=b?b:null};
var GK=function(a,b,c){lc.call(this,a);this.A=b;this.j=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=fc(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.j=a};
var JK=function(){var a=KK();return LK(a,"disableExperiments")};
var LK=function(a,b){if($b(a.j,b)){var c=a.j[b];if("boolean"==typeof c)return c}return!1};
var MK=function(a){if($b(a.j,"forceExperimentIds")){a=a.j.forceExperimentIds;var b=[],c=0;da(a)&&F(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 OK=function(){return PK.F};
var KK=function(){var a=PK;if(null==a.C){var b={},c=nh(new P(hf().location.href));if(yh(c,"tcnfp"))try{b=de(c.get("tcnfp"))}catch(d){}a.C=new IK(b)}return a.C};
var QK=function(a,b,c,d){this.o=a;this.j=le(c||0,0,1);this.A=null!=d?d:!0};
var RK=function(a){this.A=a;this.o=new yg;this.j=null};
var SK=function(a){var b=Math.random(),c=0,d=a.o.Ka();F(d,function(a){c+=a.j},a);
var e=1<c?c:1;a.j=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].j,f/e>=b){a.j=d[k];break}};
var TK=function(){this.o=null!=r.G_testRunner;this.j=new yg;UK(this,31061770,.05);UK(this,31061771,.05);UK(this,31061772,.05);UK(this,31061773,.05);UK(this,41351082,.01);UK(this,41351083,.01);UK(this,41351016,.05);UK(this,41351017,.05);UK(this,41351072,.05);UK(this,41351073,.05);UK(this,41351074,.05);UK(this,41351075,.05);UK(this,41351088,.01);UK(this,41351089,.01);UK(this,136961001,.01);UK(this,136961002,.01);UK(this,41351032,.05);UK(this,41351033,.05);VK(this);var a;a=KK();a=MK(a);null!=a&&(this.o=
!1,WK(this,a.map(String)))};
var XK=function(){YK||(YK=new TK);return YK};
var ZK=function(){var a=XK();F(a.j.Na(),function(a){sa(a,"FORCED_PUB_EXP_LAYER_")&&this.j.remove(a)},a)};
var UK=function(a,b,c){C(D("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new QK(b,0,c),$K(a,"GvnExternalLayer").o.set(b.getId(),b))};
var VK=function(a){JK()||F(a.j.Ka(),function(a){SK(a)},a)};
var WK=function(a,b,c){F(b,function(a){var b=Number(a);a="FORCED_PUB_EXP_LAYER_"+a;if(!((0,window.isNaN)(b)||0>=b||C(D(a)))){var f=null!=c?c:!0;$K(this,a).j=new QK(b,0,0,f)}},a)};
var aL=function(a,b){return a.o?!1:Lh(a.j.Ka(),function(a){return!!a.j&&a.j.getId()==b})};
var bL=function(){var a=[9418778,9417893,9417894,9417895,9419817];return XK().o?!1:Lh(a,function(a){return aL(XK(),a)})};
var cL=function(a){if(a.o)return"";var b=[];F(a.j.Ka(),function(a){(a=a.j)&&a.A&&b.push(a.getId())});
return b.sort().join(",")};
var $K=function(a,b){var c=a.j.get(b);null==c&&(c=new RK(b),a.j.set(b,c));return c};
var dL=function(){XK();return bL()};
var eL=function(a){return null!=a?fL(gL,a):!1};
var fL=function(a,b){try{var c=jh(new P(b)),c=c.replace(/^www./i,"");return Lh(a,function(a){return hL(a,c)})}catch(d){return!1}};
var hL=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 iL=function(a){if(jL(a,kL))return a;if("https:"==window.location.protocol&&(jL(a,lL)||OK())){var b=new P(a);if("https"==b.B)return a;ch(b,"https");return b.toString()}return a};
var jL=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
var mL=function(a){window.open(iL(a),"_blank")};
var nL=function(a,b,c){null!=a?(oh(a,"label",b),null!=c&&oh(a,"value",c.join(";")),a=a.toString()):a="";oL(a)};
var oL=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 P(b);yh(l.j,"label")?(oh(l,"acvw",k),a=l.toString().replace(/%2C/g,",")):a=b}}null!=e&&(a=pL(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(t){}try{a=iL(a);var u=!OK()||aL(XK(),41351089);null!=d&&d?qL.Lq(a,u):qL.Kq(a,u)}catch(t){}};
var rL=function(a,b){null!=a&&F(a,function(a){oL(a,b)})};
var pL=function(a,b,c){if(C(D(b)))return a;var d=new P(a),e=d.o;return null!=e&&ta(e,".g.doubleclick.net")&&(c||yh(d.j,"label"))?(oh(d,"ged",b),d.toString()):a};
var sL=function(a,b){this.message=a;this.errorCode=b};
var tL=function(a,b,c){return uL("adLoadError",a,b||null,wb(arguments,2))};
var vL=function(a,b,c){return uL("adPlayError",a,b||null,wb(arguments,2))};
var wL=function(a,b,c,d,e){var f=a.apply(null,rb([c,d],wb(arguments,3)));b.Z(new GK("log",null,f))};
var uL=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.A=c;return a};
var xL=function(a,b,c,d){var e=vL.apply(null,rb([b,c],wb(arguments,3)));a.Z(new FK(e))};
var yL=function(){return!zL()&&(pc("iPod")||pc("iPhone")||pc("Android")||pc("IEMobile"))};
var zL=function(){return pc("iPad")||pc("Android")&&!pc("Mobile")||pc("Silk")};
var AL=function(){return yL()||zL()};
var BL=function(){return CL&&!DL||Ka(qc,"iPod")};
var EL=function(){return BL()||DL};
var FL=function(a,b){if(null==GL[b]){var c;C(HL)&&(c=a.exec(qc))&&(HL=c[1]);(c=HL)?(c=c.replace(/_/g,"."),GL[b]=0<=Qa(c,b)):GL[b]=!1}return GL[b]};
var IL=function(){var a=qc;return a?Ka(a,"Nintendo WiiU"):!1};
var JL=function(){var a;(a=Ka(qc,"CrKey")||Ka(qc,"PlayStation")||Ka(qc,"Roku"))||(a=(a=qc)?Ka(a,"AppleTV")||Ka(a,"GoogleTV")||Ka(a,"HbbTV")||Ka(a,"NetCast.TV")||Ka(a,"Opera TV")||Ka(a,"POV_TV")||Ka(a,"SMART-TV")||Ka(a,"SmartTV"):!1);return a||Ka(qc,"Xbox")};
var KL=function(){return BL()||tF&&(!tF||!FL(LL,4))||!OK()&&JL()?!1:!0};
var ML=function(){this.j=.01>Math.random();this.o=Math.floor(4503599627370496*Math.random())};
var NL=function(a,b,c,d){if(a.j||d){c=c||{};c.lid=b;b=cL(XK());C(D(b))||(c.e=b);c=OL(a,c);var e=new P("http://pagead2.googlesyndication.com/pagead/gen_204");Ob(c,function(a,b){oh(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);
a=PL();ch(e,a.B);oL(e.toString())}};
var OL=function(a,b){b.id="";var c=PL();b.c=a.o;b.domain=c.o;return b};
var PL=function(){var a=hf(),b=window.document;return new P(a.parent==a?a.location.href:b.referrer)};
var QL=function(){};
var RL=function(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=K()-window.performance.timing[a],Math.round(a/1E3)):null};
var SL=function(){this.domLoading=RL("domLoading");this.domComplete=RL("domComplete");this.unloadEventStart=RL("unloadEventStart")};
var TL=function(a){var b={},c=new SL,d=null;null!=c.domLoading&&(d=c.domLoading);0>d&&window.performance&&window.performance.timing&&(b.di="now."+K()+".loadstart."+window.performance.timing.domLoading+".tagload."+a);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b};
var UL=function(a){for(var b=[],c=a=hf(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
var VL=function(){this.j={};this.o=0};
var WL=function(a,b){this.C=a;this.A=!0;this.j=b};
var XL=function(a,b,c){WL.call(this,a,c);this.B=b;this.j=!!c};
var YL=function(a){WL.call(this,"sv",a);this.j=null==a?"1":"2"};
var ZL=function(a,b){WL.call(this,a,b)};
var $L=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 ZL("",new ve(c,b,Number(a[3])-c,Number(a[2])-b))}return new ZL("",new ve(0,0,0,0))};
var aM=function(){bM||(bM=new VL);return bM};
var cM=function(a){var b=new ve(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new ve(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++){var e;a:{e=b;var 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 dM=function(a,b){var c=a.getBoundingClientRect(),d=cg(a,b);return new ve(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
var eM=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 ve(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 WL("vp",d));d&&0<d?(e=we(b),f=we(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new XL("ct",512,e));d&&0<d?(e=we(b),f=we(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new XL("vb",
1024,e));d&&0<d?(e=we(b),f=we(c),e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new XL("vl",2048,e));d&&0<d?(b=we(b),c=we(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new XL("vr",4096,c))}};
var fM=function(a){this.j=kc.apply(null,arguments);return this};
var gM=function(a,b){var c=fc(a.j,"eb",0);a.j.eb=c|b};
var hM=function(a,b){var c=0;Zb(hf(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=aM();d.j={};var f=new XL("ef",32,!0);f.A=!1;d.setItem(f);f=hf().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new XL("tv",64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var l;var m=hf().top;try{l=!!m.location.href||""===m.location.href}catch(t){l=!1}if(l){var p=UL(e);k=p&&0!=p.length?"1":"0"}else k=
"2"}catch(t){k="2"}d.setItem(new WL("is",k));p=l=hf().top;"2"==k&&(p=hf());m=dM(e,p);d.setItem(new ZL("er",m));var u;try{u=p.document&&!p.document.body?null:ef(p||window)}catch(t){u=null}d.setItem(new YL(u));u?(p=Lf(We(p.document)),d.setItem(new XL("sp",16384,!!p)),u=p?new ve(p.x,p.y,u.width,u.height):null):u=null;d.setItem(new ZL("vi",u));if(u&&"1"==k){k=UL(e);e=[];for(p=0;p<k.length;p++)(f=dM(k[p],l))&&e.push(f);e.push(u);u=cM(e)}eM(d,m,u);d.o&&(k=Math.round(K()/1E3)-d.o,d.setItem(new WL("ts",k)));
d.o=Math.round(K()/1E3)}else d=aM(),d.j={},d.o=Math.round(K()/1E3),d.setItem(new XL("ef",32,!1));this.A=d;this.j=new fM("ta",c,"ve",3);c&&gM(this.j,1);Zb(hf(),"ima","video","client","crossdomainTag")&&gM(this.j,4);Zb(hf(),"ima","video","client","sdkTag")&&gM(this.j,8);Zb(hf(),"ima","video","client","jsTag")&&gM(this.j,2);b&&fc(b,"fullscreen",!1)&&gM(this.j,16);this.o=d=null;if(c&&(c=Zb(hf(),"ima","video","client"),c.getEData)){this.o=c.getEData();if(c=Zb(hf(),"ima","video","client","getLastSnapshotFromTop"))if(k=
c())this.o.extendWithDataFromTopIframe(k.buckets,k.tt,k.pd),c=this.A,d=k.er,k=k.vi,d&&k&&(d=$L(d).getValue(),k=$L(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new ZL("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=cM(l),eM(c,e,d),c.setItem(new ZL("vi",k))));d=this.o.getTimeSinceTagLoadSeconds()}this.j.extend(TL(d))};
var iM=function(a){try{return!!a&&null!=a.location.href&&oc(a,"foo")}catch(b){return!1}};
var jM=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
var kM=function(){var a=lM;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 mM=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)};
var nM=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)};
var oM=function(a){var b="";jM(a,function(a,d){if(0===a||a)b+="&"+d+"="+(0,window.encodeURIComponent)(String(a))});
return b};
var pM=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);nM(d,"load",e);nM(d,"error",e)};
mM(d,"load",e);mM(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
var qM=function(a,b,c){this.C=a;this.B=b;this.o=c;this.A=this.j};
var rM=function(a,b,c){this.message=a;this.fileName=b||"";this.lineNumber=c||-1};
var sM=function(a,b,c,d,e){var f;try{f=c()}catch(m){var k=a.o;try{var l=tM(m),k=(e||a.A).call(a,b,l,void 0,d)}catch(p){a.j("pAR",p)}if(!k)throw m;}finally{}return f};
var uM=function(a,b,c,d){var e=vM;return function(){var f=arguments;return sM(e,a,function(){return b.apply(c,f)},d)}};
var tM=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 rM(b,a.fileName,a.lineNumber)};
var wM=function(a){return"function"==typeof window.encodeURIComponent?(0,window.encodeURIComponent)(a):(0,window.escape)(a)};
var xM=function(a,b,c,d){return uM(a,b,c,d)};
var yM=function(a,b){return uM(a,b,void 0,void 0)};
var zM=function(){for(var a=X,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,iM(a)&&(b=a);return b};
var AM=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
var BM=function(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0};
var CM=function(){var a;DM.mozVisibilityState?a="mozvisibilitychange":DM.webkitVisibilityState?a="webkitvisibilitychange":DM.visibilityState&&(a="visibilitychange");return a};
var EM=function(a,b,c,d){c=uM(d||"osd_or_lidar::"+b,c,void 0,void 0);mM(a,b,c,void 0);return c};
var FM=function(a,b){this.j=a;this.o=b};
var GM=function(a){this.url=a;this.Xo=!1;this.depth=fa(void 0)?void 0:null};
var HM=function(a){a=a?a:IM();for(var b=a.length-1,c=null,d=b;0<=d;--d){var e=a[d];if(e.url&&!e.Xo){c=e;break}}d=null;e=a.length&&a[b].url;c&&0==c.depth||!e||(d=a[b]);return new FM(c,d)};
var IM=function(){var a=r,b=[],c=null,d=null;do{var e=a;iM(e)?(c=e.location.href,d=e.document.referrer||null):(c=d,d=null);b.push(new GM(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.Xo=!0);return b};
var JM=function(a,b){var c=a||X;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new te(-1,-1):b?(new te(c.innerWidth,c.innerHeight)).round():ef(c||window).round()}catch(d){return new te(-12245933,-12245933)}};
var KM=function(){var a=LM.getInstance().D,b=0<=MM?NM()-MM:-1,c=OM?NM()-PM:-1,d=0<=QM?NM()-QM:-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 NM=function(){return(new Date).getTime()-RM};
var SM=function(a){var b=[];Ob(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(da(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")};
var TM=function(){var a=O("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};
var UM=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Rf(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=Ye(b))){var c,d;try{if(c=hf(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return UM(d)}return!1};
var VM=function(a){WM.e=-1;WM.i=6;WM.n=7;WM.t=8;if(!XM){var b=[];F(Yb(WM),function(a){b[WM[a]+1]=a});
var c=b.join("");XM=(c=a&&a[c])&&A(c,a)}return XM};
var YM=function(){return ZM&&Ht&&Jt("6.0.1")&&0<=Qa($M,"10.1")?!0:!1};
var aN=function(a,b){this.B=null;this.F=a;this.H=b||1;this.j="u"};
var bN=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.H){case 4:return a.F?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new qe(e,f),new qe(c-e,f),new qe(e,d-f),new qe(c-e,d-f)]):[new qe(e,0),new qe(0,f),new qe(e,d-1),new qe(c-1,f)];case 3:return[new qe(c-1,0),new qe(e,f),new qe(0,d-1)];default:return[new qe(e,f)]}};
var cN=function(a,b){var c;try{c=b||a.B.getBoundingClientRect()}catch(e){c=new se(0,0,0,0)}var d=bN(a,c);F(d,function(a){a.x+=c.left;a.y+=c.top});
return d};
var dN=function(a,b,c,d){aN.call(this,a,d);this.J=b||3E3;this.K=c||3E3;this.o=[];this.G=!1;this.A=-1;this.C=this.D=0};
var eN=function(a,b,c){this.snapshot=a;this.o=b;this.j=c};
var fN=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Qa($M,"11")&&c)||xc&&9>Cc||0<a.o.length)return!1;try{var d=b.getBoundingClientRect()}catch(p){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=Ye(b),k=[];if(e){var l=TM(),d=bN(a,d);F(d,function(a,b){var d=new gN("e",f,c,String(b));this.o.push(d);k.push(A(d.To,d,l,a))},a);
rf(b,l,0)}else d=cN(a,d),F(d,function(a,d){var e=new gN("e",f,c,String(d));this.o.push(e);k.push(A(e.So,e,b,a))},a);
var m=!0;F(k,function(a){m=m&&a()});
m?(a.j="l",a.B=b,a.G=!e):(F(a.o,function(a){a.remove()}),a.o=[]);
return m};
var hN=function(a){if(a.B&&a.G){var b=cN(a);F(b,function(a,b){this.o[b]&&this.o[b].setPosition(a)},a)}};
var iN=function(a){F(a.o,function(a){a.remove()});
a.o=[];a.j="d"};
var jN=function(a){var b=K(),c=a.D?b-a.D:0,d=-1,e=Q(a.o,function(a){return kN(a,b)});
4==a.o.length?d=a.F?lN(e):mN(e):3==a.o.length?d=nN(e):1==a.o.length&&(d=[-1,0,1,2,3,5][kN(a.o[0],b)+1]);a.C=d==a.A?a.C+c:0;c=new eN(d,a.A,c);a.A=d;a.D=b;oN(a,d);hN(a);return c};
var pN=function(a){var b=Jb(Tb(qN));F(a,function(a){0<=a&&++b[a]});
return b};
var mN=function(a){a=pN(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 nN=function(a){var b=pN(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 lN=function(a){a=pN(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 oN=function(a,b){if(0==b&&rN(a))a.j="n";else switch(b){case -1:a.j="d";break;case 0:a.j="l";break;case 1:a.j="f";break;case 2:a.j="c";break;case 3:case 4:case 5:case 6:a.j="r"}};
var rN=function(a){return"n"==a.j?!0:"l"==a.j&&a.C>=a.K};
var gN=function(a,b,c,d){this.module=null;this.A=a;this.D="e"==a?String(c)+"~"+String(d):"";this.j=[];this.o=-1;this.C=0;this.B=Jb(Tb(sN));this.F=Jb(Tb(qN));"e"==this.A&&(tN[this.D]=A(this.Jw,this));xc?(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="'+uN(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=vN(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a};
var vN=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}
var d=uN(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.A?"":"hidden";e.style.opacity=0;return e};
var uN=function(a,b){var c=Vg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.D);"s"==a.A&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=Vg(c,"delay","1"));return c};
var kN=function(a,b){if("e"==a.A){var c=null;try{c=a.module.it()}catch(f){}null===c?(c=0,0<a.o&&(c=2)):c=c?3:4;++a.F[c+1];a.o=c}else{var d=Number(b),e=wN(a);xN(a,e,d);c=a.j[a.j.length-1];if(null===e){if(e=d=0,0<a.o||fa(c.Xi))e=d=2}else null===c.Xi||c.Wl>=d?(d=10<=e?4:0,e=0):e>c.Xi?(c=(e-c.Xi)/(d-c.Wl)*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.C&&6==c&&(c=7),e=c):e=d=1;6==a.C&&(--a.B[6],4==e||8==e?++a.B[5]:++a.B[7]);++a.B[e];a.o=d;a.C=e}return a.o};
var wN=function(a){var b=null;try{b=a.module.fc()}catch(c){}return b};
var xN=function(a,b,c){var d=c-1E3,e=a.j.length;F(a.j,function(a,b){a.Wl<=d&&(e=Math.min(e,b+1))});
var f=a.j.length-e;0<f&&a.j.splice(e,f);a.j.unshift({Xi:b,Wl:c})};
var yN=function(){this.D=!0;this.j=new gN("s",DM);this.C=!1;this.o=this.A=this.F=this.L=this.K=this.P=this.B=this.J=null;this.U=0;this.H=this.G=this.N=null};
var zN=function(a,b){b!==a.o&&(a.o=b,a.P(b),a.U++)};
var AN=function(a){var b=wN(a.j);null===a.N&&null!==b&&null!==a.G&&(a.N=K()-a.G);return b};
var BN=function(a){var b=a.J.getBoundingClientRect(),c;c=null!=a.L?a.L.clone():new qe(Math.floor((b.right-b.left)/2),Math.floor((b.bottom-b.top)/2));a.C&&(c.x+=b.left,c.y+=b.top);return c};
var CN=function(a){a.C&&(a.K=BN(a));a.j.setPosition(a.K);a.F=X.setTimeout(yM("osd_or_lidar::sfm_tpto",A(a.X,a)),125)};
var DN=function(a){if(a.D){var b=A(function(){1===BM(DM)?(this.A=null,CN(this)):(X.clearTimeout(this.F),zN(this,0))},a),c=CM();
if(c){var d=EM(DM,c,b,"osd_or_lidar::sfm_pv");a.H=function(){nM(DM,c,d);this.H=null}}a.D=!1;
a.o=null;b()}};
var EN=function(a){a.D||(X.clearTimeout(a.F),null===a.H||a.H(),a.D=!0)};
var FN=function(a,b){aN.call(this,a,b);this.A=[];this.D=this.G=null;this.C=!0};
var GN=function(a,b,c){if(null!==a.D)return!1;a.B=b;a.G=c;c=b.getBoundingClientRect();c="DIV"==b.tagName||"INS"==b.tagName?bN(a,c):cN(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new yN,k;k=f;var l=b,m=A(a.J,a),p=e;if(null===k.G){var u="DIV"==l.tagName||"INS"==l.tagName;k.C=!u;k.J=l;e=BN(k);if(null!=p){e=p;p=new qe(0,0);if(k.C){var t=k.J.getBoundingClientRect();p.x+=t.left;p.y+=t.top}k.L=new qe(e.x-p.x,e.y-p.y)}k.P=m;m=!1;u?(m=TM(),k.B=m,rf(l,m,0),m=k.j.To(m,e)):m=k.j.So(l,e);m?(k.G=K(),k.K=e,k=
!0):(k.j.remove(),k.B&&sf(k.B),k=!1)}else k=!1;if(!k)return HN(a),a.j="c",!1;a.A.push(f)}a.D=K();a.j="l";return!0};
var IN=function(a){var b=Jb(Tb(JN));F(a.A,function(a){null!=a.o&&0<=a.o&&++b[a.o]});
switch(a.H){case 4:return KN(a,b);case 3:return 1==a.A[0].o&&1==a.A[2].o?3:1==a.A[1].o?2:0<b[1]?1:0;default:return 1==b[1]?2:0}};
var KN=function(a,b){var c=b[1];if(a.F){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 LN=function(a){a.C&&null!==a.D&&"d"!=a.j&&(F(a.A,function(a){DN(a)}),a.j="r",a.C=!1)};
var MN=function(a){a.C||(F(a.A,function(a){EN(a)}),a.C=!0)};
var HN=function(a){MN(a);F(a.A,function(a){EN(a);a.j&&(a.j.remove(),a.j=null);a.B&&(sf(a.B),a.B=null)});
a.A=[];a.j="d"};
var LM=function(){this.C=!1;this.D=void 0;this.o=!iM(X.top);var a=IM();this.F=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Ng(a[a.length-1].url)||"":"";this.A=this.B=this.j=null;this.G=0};
var NN=function(a,b,c,d){this.o=ON.clone();this.H=this.$=0;this.ke=this.je=-1;this.vb=[0,0,0,0,0];this.Fa=[0,0,0,0,0];this.J=[0,0,0,0,0];this.Zc=[0,0,0,0,0];this.F=c;this.da=this.T=-1;this.$e=d;this.zd=x;this.ne=function(){};
this.N=this.element=b;this.C=null;this.L=1;this.oa=!1;this.D=null;this.Cb=this.za=this.af=!1;this.$a=1;this.ie=!0;this.jg=0;b=LM.getInstance();this.Ze=b.G++;PN(this,a,b.o)};
var QN=function(a,b,c,d,e){if(!(0>a.F)){var f=X.innerWidth,k=X.innerHeight,l=new se(Math.round(X.mozInnerScreenY),Math.round(X.mozInnerScreenX+f),Math.round(X.mozInnerScreenY+k),Math.round(X.mozInnerScreenX));c=new se(X.screenY+d,X.screenX+c.width,X.screenY+c.height,X.screenX);e||(d=new se(l.top-c.top,l.right-c.left,l.bottom-c.top,l.left-c.left),d.top>a.o.top?a.o=d:(a.o.right=a.o.left+f,a.o.bottom=a.o.top+k),a.$=f*k);a.Qe(l,c,b,e,!0)}};
var RN=function(a,b,c){var d=VM(X&&X.document);if(d){c||PN(a,X,!0);if(a.Cb)d=SN(a,d);else var e=Math.floor((a.o.left+a.o.right)/2),f=Math.floor((a.o.top+a.o.bottom)/2),k=ff(window.document),d=d(e-k.x,f-k.y)?.5:0;a.Qe(a.o,d,b,c,!0)}};
var TN=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 SN=function(a,b){function c(a,c){return Boolean(b(a,c))}
var d=ff(window.document),e=a.$a,f=Math.floor(a.o.left-d.x)+1,k=Math.floor(a.o.top-d.y)+1,l=Math.floor(a.o.right-d.x)-e,m=Math.floor(a.o.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),t=c(f,m);if(e)m=TN(k,m,function(a){return c(f,a)}),l=TN(f,l,function(a){return c(a,k)});
else if(u)m=TN(k,m,function(a){return c(l,a)}),f=TN(l,f,function(a){return c(a,k)});
else if(t)k=TN(m,k,function(a){return c(f,a)}),l=TN(f,l,function(a){return c(a,m)});
else if(p)k=TN(m,k,function(a){return c(l,a)}),f=TN(l,f,function(a){return c(a,m)});
else{var w=Math.floor((f+l)/2),z=Math.floor((k+m)/2);if(!c(w,z))return 0;k=TN(z,k,function(a){return c(w,a)});
m=TN(z,m,function(a){return c(w,a)});
f=TN(w,f,function(a){return c(a,z)});
l=TN(w,l,function(a){return c(a,z)})}return(m-k)*(l-f)/d};
var UN=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 VN=function(a,b,c){a.L=c;if(!Boolean(Boolean(a.N&&!YM())&&!YM()))return a.oa=!0,!1;c=new dN(!1,void 0,void 0,a.L);var d=fN(c,a.N,String(a.Ze));d?(a.ne=b,a.C=c):a.oa=!0;return d};
var WN=function(a,b,c){if(!a.element||!YM())return!1;a.L=c||1;c=new FN(!1,a.L);var d=GN(c,a.element,A(function(a){XN(this,NM(),!1,b,[0,.01,.5,1,.01,.3][a])},a));
d?(a.D=c,LN(c)):a.af=!0;return d};
var XN=function(a,b,c,d,e){0>a.F||!YN(a)||(c?a.D&&MN(a.D):(PN(a,d,!0),a.D&&LN(a.D)),d=e||0,fa(e)||-1==a.T||(d=[1,.75,.5,.3,.01][a.T]||0),a.Qe(a.o,d,b,c,!1),!a.Le()||a.ri()||a.D&&HN(a.D))};
var YN=function(a){return null!==a.D&&"d"!=a.D.getStatus()};
var PN=function(a,b,c){a.jg++;b=c?b:b.top;try{var d=ON.clone(),e=new qe(0,0);if(a.N){if(c||1!=a.$e||!UM(a.N))d=a.N.getBoundingClientRect();e=cg(a.N,b)}var f=e.x,k=e.y;a.o=new se(Math.round(k),Math.round(f+(d.right-d.left)),Math.round(k+(d.bottom-d.top)),Math.round(f))}catch(l){a.o=ON.clone()}a.$=(a.o.bottom-a.o.top)*(a.o.right-a.o.left)};
var ZN=function(a){a.C&&iN(a.C);a.D&&HN(a.D)};
var $N=function(a,b,c,d){this.ga=0;this.ub=[0,0,0,0,0];this.nb=[0,0,0,0,0];this.ca=[0,0,0,0,0];this.Za=this.X=0;this.G={};this.xd={};this.Zd=this.A="";this.wd=!1;this.La=[];this.ia=void 0;this.ta=this.Qa=this.qe=this.Y=!1;this.B=void 0;this.Nb=0;this.fa=-1;this.bb=this.Ea=0;this.Ca=void 0;this.P=-1;this.ab=void 0;this.Ia=this.U=0;this.Ha=-1;this.Ic=!1;this.Ya=0;this.Sa=!1;this.ha=[0,0,0,0,0];this.j=0;this.Bd=this.Cd=this.Hc=!1;this.Dd=0;this.pe=this.yd=this.K=!1;this.he=0;this.oe=!1;NN.call(this,
a,b,c,d)};
var aO=function(a,b){var c=a.Nb;OM||a.ia||-1==a.fa||(c+=b-a.fa);return c};
var bO=function(a){a.Cb=!0;a.$a=2};
var cO=function(a,b){ub(a.La,Jb(b-a.La.length+1));a.La[b]=(100*a.H|0)/100};
var dO=function(a,b){var c=a.xd[b];if(null!=c)return c;if(a.za)return{"if":0};c=a.o.clone();c.round();var d=Q(a.La,function(a){return 100*a|0}),e=LM.getInstance(),f={};
f["if"]=e.o?1:void 0;f.sdk=a.B?a.B:void 0;f.p=[c.top,c.left,c.bottom,c.right];f.tos=a.vb;f.mtos=a.Fa;f.ps=void 0;f.pt=d;f.vht=aO(a,NM());f.mut=a.bb;f.a=a.Ca;f.ns=a.he;f.at=a.Ya;f.as=a.Sa?1:0;f.atos=a.ha;f.vpt=a.Ia;if("h"==a.B||"as"==a.B)f.gmm="2";"fully_viewable_audible_half_duration_impression"==b&&(f.std="csm");a.Cb&&(f.efpf=a.$a);a.C&&(f.swf=a.C.getStatus(),f.px=a.L);a.D&&(f.sfm=a.D.getStatus(),f.px=a.L);0<a.Dd&&(f.nnut=a.Dd);f.vme=a.Hc?1:0;f.nmtd=a.Cd?1:0;f.mmct=a.Bd?1:0;f.vpaid=a.ab;f.dur=a.P;
f.vmtime=a.U;f.vmtos=a.ub;f.vmmtos=a.nb;eO(a,b)&&a.Le()&&(f.dtos=a.ga,f.vmdtos=a.X,a.Za++,f.dtoss=a.Za,a.ga=0,a.X=0);!a.Le()&&2E3<=a.X&&(f.vmdtos=a.X);e.A&&(f.ps=[e.A.width,e.A.height]);f.dom=e.F;a.oa&&(f.fmf="1",f.px=a.L);a.Y&&(f.ven="1");a.qe&&(f.veh="1");a.j&&(f.vds=a.j);fO()?f.c=(100*a.H|0)/100:f.tth=NM()-gO;return f};
var eO=function(a,b){if(ib(hO,b))return!0;var c=a.G[b];return n(c)&&(a.G[b]=!0,!c)?!0:!1};
var iO=function(){if(!jO){jO=!0;var a=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame;if(!kO){var b;if(a){var c=uM("osd_or_lidar::throttled_scroll_raf_callback",lO,void 0,void 0);b=function(){a(function(){X.setTimeout(c,0)})}}else b=lO;
mO=new Fm(uM("osd_or_lidar::throttled_scroll_timeout",b,void 0,void 0),100);b=A(mO.nf,mO);kO=EM(X,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!oO){if(a){var d=uM("osd_or_lidar::throttled_resize_raf_callback",pO,void 0,void 0);b=function(){a(function(){X.setTimeout(d,0)})}}else b=pO;
qO=new Fm(uM("osd_or_lidar::throttled_resize_timeout",b,void 0,void 0),100);b=A(qO.nf,qO);oO=EM(X,"resize",b,"osd_or_lidar::throttled_resize")}rO();sO()}};
var pO=function(){tO(!1);lO()};
var lO=function(){uO(vO(),!1)};
var wO=function(){var a,b=LM.getInstance();xO&&(b.j=JM(X,xO));var b=b.j,c=yO,d=zO;if(AO){a=c;tO(!1);var e=LM.getInstance(),f=e.B,b=f.height-a;0>=b&&(b=f.height,a=0);e.j=new te(f.width,b);b=new BO;b.D=!0;b.A=e.j;b.o=f;b.B=a;return b}if(d)return a=new BO,a.C=!0,a;if(CO)return a=new BO,a.F=!0,a;if(DO)return a=new BO,a.G=!0,a;a:{c=new BO;c.A=b;c.j=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var d=xO,k=X||X,k=k.top,e=b||JM(k,d),f=Lf(We(k.document));a=-1==e.width||
-12245933==e.width?new se(e.width,e.width,e.width,e.width):new se(f.y,f.x+e.width,f.y+e.height,f.x)}catch(l){a=c;break a}c.H=a;c.j=!0}a=c}return a};
var uO=function(a,b){var c;if(!EO)if(window.clearTimeout(FO),FO=null,0==a.length)b||GO();else{var d=wO();try{var e=NM();if(d.D)for(c=0;c<a.length;c++)QN(a[c],e,d.o,d.B,b);else if(d.C)for(c=0;c<a.length;c++)RN(a[c],e,b);else if(d.F)F(a,function(a){if(b){if(a.C){var c=a.C;3<=c.A&&(c.A=3);a.T=-1}}else if(a.C&&"d"!=a.C.getStatus()){var c=jN(a.C),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.T=UN(d[c.o+1]);a.Qe(a.o,e,a.F+c.j,!1,!0);!a.Le()||a.ri()||a.ie||a.C&&iN(a.C);(c=2==c.snapshot||rN(a.C))||(c=
a.C,c="f"==c.j&&c.C>=c.J);c&&(a.ne(a),a.ie=!1,a.C&&iN(a.C))}});
else if(d.G)for(c=0;c<a.length;c++)XN(a[c],e,b,X);else if(d.j){var f=LM.getInstance();for(c=0;c<a.length;c++)a[c].update(e,d.H,b,X,f.o)}++HO}finally{b?F(a,function(a){a.H=0}):GO()}}};
var rO=function(){var a=sO,b=CM();b&&(IO=IO||EM(DM,b,a,"osd_or_lidar::visibility"))};
var sO=function(){var a=fO();if(a){if(!OM){var b=NM();PM=b;F(JO,function(a){a.Nb=aO(a,b)})}OM=!0;
tO(!0)}else b=NM(),OM=!1,gO=b,F(JO,function(a){0<=a.F&&(a.fa=b)});
uO(vO(),!a)};
var fO=function(){if(KO())return!0;var a=BM(X.document);return 1==a||0==a};
var GO=function(){X&&(FO=X.setTimeout(yM("osd_or_lidar::psamp_to",function(){uO(vO(),!1)}),KM()))};
var LO=function(a){return db(JO,function(b){return b.A==a})};
var vO=function(){return 0==JO.length?MO:0==MO.length?JO:rb(MO,JO)};
var NO=function(){var a=X.document;return a.body&&a.body.getBoundingClientRect?!0:!1};
var tO=function(a){var b=LM.getInstance();b.j=JM(X,xO);if(!a){b.B=X&&X.outerWidth?new te(X.outerWidth,X.outerHeight):new te(-12245933,-12245933);var c;a=X;a.top!=a&&(a=a.top);var d=0,e=0,f=LM.getInstance().j;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,t=m.offsetHeight,w=m.offsetWidth;m.clientHeight!=
t&&(p=l.scrollHeight,u=l.scrollWidth,t=l.offsetHeight,w=l.offsetWidth);p>f.height?p>t?(d=p,e=u):(d=t,e=w):p<t?(d=p,e=u):(d=t,e=w)}c=new te(e,d)}catch(z){c=new te(-12245933,-12245933)}b.A=c}};
var OO=function(a,b){if(1<=Math.random())return!1;var c=!1;F(JO,function(b){b=WN(b,a,3);c=c||b});
(DO=c)&&F(JO,function(a){YN(a)||b(a)});
return c};
var PO=function(a){var b=!1;F(JO,function(c){c=VN(c,a,n(1)&&1>Math.random()?3:1);b=b||c});
(CO=b)&&F(JO,function(b){Boolean(b.C)||a(b)});
return b};
var QO=function(a){F(a,function(a){null==db(JO,function(c){return c.element==a.element&&c.Zd==a.Zd})&&JO.push(a)})};
var KO=function(){return Lh(JO,function(a){return a.K})};
var BO=function(){this.o=this.A=null;this.B=0;this.H=null;this.j=this.G=this.F=this.C=this.D=!1};
var RO=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(RO(a[e],b,c+1));return d.join(b[c])};
var SO=function(){var a=IM(),b=a.length-1,c=HM(a),a=c.j,d=c.o,c=[];d?(a&&c.push(TO(b,[d.url,2],0,[a.url,0],a.depth)),c.push(TO(b,[d.url,2],0))):a&&a.url&&(c.push(TO(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=UO.exec(a.url))&&d[0]||"")&&c.push(TO(b,[d,1],a.depth)));c.push(TO(b));return c};
var TO=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 VO=function(){var a=SO();return Q(a,function(a){return RO(a)})};
var WO=function(a){if(!a)return"";var b=a.document,c=[];c.push("url="+wM(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+wM(b.referrer.substring(0,512)));return c.join("&")};
var XO=function(){this.C=this.A=this.o=this.D=this.B=!1;this.j={};this.j.start=this.ax;this.j.firstquartile=this.Qw;this.j.midpoint=this.Vw;this.j.thirdquartile=this.bx;this.j.complete=this.Mw;this.j.pause=this.Yw;this.j.resume=this.Zw;this.j.skip=this.$w;this.j.viewable_impression=this.fx;this.j.mute=this.Xw;this.j.unmute=this.cx;this.j.fullscreen=this.Rw;this.j.exitfullscreen=this.Pw;this.j.fully_viewable_audible_half_duration_impression=this.Sw;this.j.measurable_impression=this.Uw;this.j.abandon=
this.Lw;this.j.engagedview=this.Ow;this.j.impression=this.Tw;this.j.creativeview=this.Nw};
var YO=function(a){if(!a.B){a.B=!0;try{MM=NM(),1>Math.random()&&(a.C=!0),ZO=zM(),tO(!1),NO()?(window.setTimeout(function(){},1),LM.getInstance().o?$O(a):iO()):aP=!0}catch(b){throw JO=[],MO=[],b;
}}};
var $O=function(a){var b;if(vc&&fa(X.screenX)&&fa(X.mozInnerScreenX)&&fa(X.outerWidth)){var c=X.navigator.userAgent,d=c.indexOf("Firefox/");b=-1;if(0<=d){b=Math.floor(c.substr(d+8))||-1;var e=c.indexOf("Mac OS X 10."),d=-1;0<=e&&(d=Number(c.substr(e+12,1))||-1);var f=0<d?-1:c.indexOf("Windows NT "),e=-1;0<=f&&(e={"6.0":0,"6.1":1,"6.2":2}[c.substr(f+11,3)]||-1);c=148;5<=d?c=4<=b?108:3<=b?127:108:0<=e&&(16==b||17==b||18==b)&&(c=[[146,146,146],[148,147,148],[131,130,136]][e][b-16]);b=c}else b=null;null!==
b&&(yO=b,AO=!0);b=!0}else b=!1;if(b)iO();else if(b=X&&X.document,b=xc&&Ac(8)&&ga(VM(b))?zO=!0:!1,b)a.D=1>Math.random(),iO();else{if(YM()){if(OO(X,A(a.Jk,a))){iO();a.A=!0;return}}else if(PO(A(a.Jk,a))){iO();a.o=!0;return}window.clearTimeout(FO);FO=null;bP="i";EO=!0}};
var cP=function(a,b){a.Nb=aO(a,NM());var c=!fO();uO([a],c);a.ia=!0;return dO(a,b)};
var dP=function(a,b,c){if(!b.pe){b.pe=!0;"i"!=bP&&(EO=!1);if(a.o&&!Boolean(b.C)&&!b.oa){var d=1>Math.random()?3:1;VN(b,A(a.Jk,a),d)}if(a.A&&!YN(b)){a:{a=[3,1];if(!(1E-4>Math.random())&&(d=Math.random(),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()}d=a[Math.floor(d*a.length)];break a}d=null}WN(b,X,d)}b.G={};b.G.firstquartile=!1;b.G.midpoint=!1;b.G.thirdquartile=!1;b.G.complete=!1;b.G.pause=!1;b.G.skip=!1;b.G.viewable_impression=
!1;b.Za=0;c=n(c)?c.opt_nativeTime:void 0;QM=c=fa(c)?c:NM();b.F=c;f=!1;fO()||(f=!0,b.fa=c);uO([b],f)}};
var eP=function(a){if(y(a)){var b=eb(JO,function(b){return b.A==a});
0<=b&&(ZN(JO[b]),pb(JO,b))}};
var fP=function(a,b,c){var d=db(JO,function(a){return a.element==c});
null!==d&&d.A!=b&&(eP(d.A),d=null);d||(d=gP(a,c),d.A=b,d.B="h");return d};
var gP=function(a,b){var c;c=new $N(X,b,-1,7);c.zd=A(a.vw,a);LM.getInstance().D=79463069;QO([c]);iO();return c};
var hP=function(a,b){var c=ac(iP,function(b){return b==a}),c={v:"392v",
e:jP[c]},d=dO(b,a);ic(c,d);b.xd[a]=d;return kP(0,c,lP)};
var kP=function(a,b,c,d){var e={};n(b)&&Ob(c,function(a,c){c in Object.prototype||n(a)&&(e[a]=b[c])});
n(d)&&ic(e,d);return SM(e)};
var mP=function(a,b,c,d){var e=b.toLowerCase();if(b=ac(iP,function(a){return a==e})){b={v:"392v",
e:jP[b]};if(aP)return b.msg="ue",b;c=a.eo(c,d);b.nas=JO.length;if(!c)return b.msg="nf",b;YO(a);"i"==bP&&(c.za=!0);a.D&&bO(c);var f=d.opt_fullscreen;n(f)&&(c.K=Boolean(f));ib(nP,e)&&(dP(a,c,d),a.C&&a.no(c));if(f=a.j[e])if(a=f.call(a,c,d),n(a))return ic(b,a),b}};
var oP=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 pP=function(a){return!!(1<<a&qP)};
var rP=function(){try{sP()}catch(d){}var a="a=1&b="+qP+"&",b=[],c=99;F(tP,function(a,c){var f=!1;try{f=a(X)}catch(k){}b[c/32>>>0]|=f<<c%32});
F(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});
c=105;F(uP,function(b){var e="false";try{e=b(X)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
F(vP,function(b){var e="";try{var f=b(X);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=CF(b,!0)}catch(p){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
var sP=function(){if(!wP){var a=function(){xP=!0;X.document.removeEventListener("webdriver-evaluate",a,!0)};
X.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){yP=!0;X.document.removeEventListener("webdriver-evaluate-response",b,!0)};
X.document.addEventListener("webdriver-evaluate-response",b,!0);wP=!0}};
var zP=function(){XO.call(this)};
var AP=function(a,b,c){var d=db(JO,A(function(a){return a.element?BP(a.element,c)==b&&a.Zd==c:!1},a));
null!==d&&d.A!=b&&(eP(d.A),d=null);if(d)return d;d=CP(c);d=db(d,A(function(a){return BP(a,c)==b},a));
if(!d)return null;d=gP(a,d);d.B="as";d.A=b;d.Zd=c;return d};
var CP=function(a){var b=X.document,c=Kb(Q(["embed","object"],function(a){return sb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=be(c,function(a){if(!a||!ha(a)||1!=a.nodeType||!ga(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ga(a[d])?!0:!1})};
var BP=function(a,b){var c="metricID"+b;if(!a||!a[c]||!ga(a[c]))return null;var d;try{d=a[c]()}catch(e){return null}return d.queryID};
var DP=function(a,b,c,d){var e={};ic(e,{opt_adElement:void 0,opt_fullscreen:void 0},d||{});return e.opt_bounds?{v:"392v",e:b,msg:"ol"}:mP(a,b,c,e)};
var EP=function(a,b,c){a=LM.getInstance();if(a.C!=b){a.C=b;var d=Lh(JO,function(a){return a.oe});
F(JO,function(a){b||d||(a.F=c);a.yd=b;a.oe=!1})}};
var FP=function(){var a={};a.moatInit=rP();return a};
var GP=function(a,b,c){var d=zP.getInstance(),e={};a=DP(d,a,b,c);e.viewability=kP(0,a,lP);b=kP;c=qP=(new Date).getTime();d=pP(5);c=(xP?!d:d)?c|2:c&-3;d=pP(2);c=(yP?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};e.moatViewability=b(0,a,HP,c);return e};
var IP=function(){fd.call(this);this.j=null;this.C=new Hm(this);J(this,this.C);this.D=null;this.J=new yg;this.H=new yg;this.A=this.B=null;this.o=!1;this.F=(ga(null),null)};
var JP=function(){null!=KP||(KP=new IP);return KP};
var LP=function(a){if(null==a)return!1;if(BL()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=MP(a);return 0>=b-a.width&&42>=c-a.height};
var MP=function(a){return ga(a.getBoundingClientRect)&&Af(Ye(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
var NP=function(a,b){a.B=b};
var OP=function(a,b,c,d,e){if(a.o){if(a.F)return a.F(b,c,e);e=e||{};if(d=d?a.H.get(d):PK.A)null!=e.opt_fullscreen||(e.opt_fullscreen=LP(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.B&&(e.opt_bounds=MP(a.B));return sM(vM,"lidar::handlevast_html5",oa(GP,b,c,e),void 0,PP)||{}}return{}};
var QP=function(){var a=JP();if(!a.o)return null;if(null!=a.A)return a.A;a.A=sM(vM,"lidar::getinitsignals_html5",FP,void 0,PP)||null;return a.A};
var RP=function(a){if(ga(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.j.send("activityMonitor","pageSignals",b)}};
var SP=function(a,b,c){if(!PK.B)return"";var d=b?a.H.get(b):PK.A;a={};null!=c&&(a.fullscreen=c);c="";try{try{c=(new hM(function(){return d},a)).oc()}catch(e){c="tle;"+Ja(e.name,12)+";"+Ja(e.message,40)}}catch(e){c="sdktle;"+Ja(e.name,12)+";"+Ja(e.message,40)}return c};
var TP=function(a,b,c){if(kb(a))return null;a=be(a,function(a){var b=a.B;return"application/x-mpegurl"==D(a.j).toLowerCase()||"progressive"==b});
kb(c)||(c=Q(c,function(a){return a.toLowerCase()}),a=be(a,function(a){return ib(c,D(a.j).toLowerCase())}));
if(!fa(b)||0>=b)b=yL()?500:1E3;return UP(a,b)};
var UP=function(a,b){return VP(a,b)||WP(a,b)||XP(a,b)};
var VP=function(a,b){var c=null;F(a,function(a){var e=a.Rd,f=a.Qd;e>b||f<b||!(null==c||c.Rd>e)||(c=a)});
return c};
var WP=function(a,b){var c=null;F(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 XP=function(a,b){var c=null;F(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 YP=function(){fd.call(this);this.D=this.H=this.L=this.F=!1;this.o=0;this.B=[];this.G=!1;this.N=this.P=window.Infinity;this.A=0;this.K=!1;this.C=new Hm(this);this.J={}};
var ZP=function(a,b){null==b||a.F||(a.j=b,$P(a),a.F=!0)};
var aQ=function(a){null!=a.j&&a.F&&(bQ(a),a.F=!1,a.H=!1,a.D=!1,a.o=0,a.B=[],a.G=!1)};
var $P=function(a){bQ(a);!(a.j instanceof fd)&&"ontouchstart"in window.document.documentElement&&EL()?(a.J={touchstart:A(a.AB,a),touchmove:A(a.zB,a),touchend:A(a.yB,a)},Ob(a.J,function(a,c){this.j.addEventListener(c,a,!1)},a)):a.C.R(a.j,"click",a.vo)};
var bQ=function(a){a.C.xa(a.j,"click",a.vo);Ob(a.J,function(a,c){this.j.removeEventListener(c,a,!1)},a);
a.J={}};
var cQ=function(a,b){a.B=[];F(b,function(a){nb(this.B,a.identifier)},a)};
var dQ=function(a,b){return Lh(b,function(a){return ib(this.B,a.identifier)},a)};
var eQ=function(a){null!=a?fL(fQ,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=eL(a)?gQ(a):null:a=null;return a};
var hQ=function(a,b,c){if(null==a)return null;c=new P((null!=c?c:"//www.youtube.com/")+"watch");var d=c.j;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");gh(c,d);return c.toString()};
var iQ=function(a){return null===a?!1:"pharma"==(new P(a)).Ce().toLowerCase()};
var gQ=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=nh(new P(a));return yh(a,"v")?a.get("v").toString():yh(a,"video_id")?a.get("video_id").toString():null};
var jQ=function(a){return C(D(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"};
var kQ=function(){fd.call(this)};
var lQ=function(a){fd.call(this);this.j=a;this.U=new Dm(4);this.A=0;this.N=this.B=this.K=this.G=!1;this.L=this.Rc();this.J=this.Od();this.T=15E3;this.P=!1};
var mQ=function(a){a.K=!1;a.B=!1;a.G=!1;a.A=0;a.N=!1;a.U.clear();nQ(a);Mb(a.C)};
var oQ=function(a){a.B||(a.B=!0,nQ(a),a.Z("start"),KL()||!tF||tF&&FL(LL,3)||BL()&&(!EL()||!FL(pQ,4))||a.Pk())};
var qQ=function(a){for(var b=a.j.buffered.length-1;0<=b;){if(a.j.buffered.start(b)<=a.j.currentTime)return a.j.buffered.end(b);b--}return 0};
var nQ=function(a){a.H&&(Vd(a.H),a.H=null)};
var rQ=function(){fd.call(this);this.o=new sQ;this.j=new Hm(this);var a=KK();if(a){a:{if($b(a.j,"videoElementMockDuration")&&(a=a.j.videoElementMockDuration,fa(a)))break a;a=window.NaN}this.duration=a}};
var tQ=function(){var a=["video/mp4"],b=["video/ogg"],c=new rQ;c.canPlayType=function(c){return ib(a,c)?"probably":ib(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c};
var uQ=function(a){this.startTime=0;this.endTime=a};
var sQ=function(){this.length=0;this.j=[]};
var vQ=function(){};
var wQ=function(){throw Error("Do not instantiate directly");};
var xQ=function(){wQ.call(this)};
var yQ=function(a,b){var c;a:{var d=a(b||aaa,void 0,void 0);c=We().createElement("DIV");d=baa(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c};
var baa=function(a){if(!ha(a))return String(a);if(a instanceof wQ){if(a.Mc===zQ)return a.getContent();if(a.Mc===AQ)return wa(a.getContent())}return"zSoyz"};
var BQ=function(a,b){return null!=a&&a.Mc===b};
var CQ=function(a){if(null!=a)switch(a.ad){case 1:return 1;case -1:return-1;case 0:return 0}return null};
var DQ=function(){wQ.call(this)};
var Y=function(a){return null!=a&&a.Mc===zQ?a:a instanceof Re?EQ(Te(a),a.kf()):EQ(wa(String(String(a))),CQ(a))};
var FQ=function(){wQ.call(this)};
var GQ=function(){wQ.call(this)};
var HQ=function(){wQ.call(this)};
var IQ=function(){wQ.call(this)};
var JQ=function(){wQ.call(this)};
var KQ=function(a,b){this.content=String(a);this.ad=null!=b?b:null};
var LQ=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}};
var MQ=function(a,b,c){var d="key_"+a+":"+b,e=NQ[d];if(void 0===e||0>e)NQ[d]=0,OQ[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
var PQ=function(a,b){var c=OQ["key_"+a+":"+b];c||""==b||(c=OQ["key_"+a+":"]);return c?c:caa;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');};
var caa=function(){return""};
var QQ=function(a){return Y(a)};
var RQ=function(a){return String(a).replace(daa,"").replace(eaa,"&lt;")};
var SQ=function(a){return BQ(a,zQ)?(a=RQ(a.getContent()),String(a).replace(faa,TQ)):wa(String(a))};
var UQ=function(a){return BQ(a,zQ)?(a=RQ(a.getContent()),String(a).replace(gaa,TQ)):String(a).replace(haa,TQ)};
var iaa=function(a){return"%"+a.charCodeAt(0).toString(16)};
var VQ=function(a){a=ua(String(a));WQ.lastIndex=0;return WQ.test(a)?a.replace(WQ,iaa):a};
var XQ=function(a){return YQ(a)};
var ZQ=function(a){$Q[1]||($Q[1]=new vQ);var b=CQ(a);if(null==b){var c=b=0,d=!1;a=Ae(a+"",BQ(a,zQ)).split(jaa);for(var e=0;e<a.length;e++){var f=a[e];kaa.test(Ae(f,void 0))?(b++,c++):laa.test(f)?d=!0:maa.test(Ae(f,void 0))?c++:naa.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return oaa(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")};
var TQ=function(a){return paa[a]};
var aR=function(a){return qaa[a]};
var YQ=function(a){return String(a).replace(bR,aR)};
var raa=function(a,b,c){return""+PQ("a",a.Th)(a,null,c)};
var saa=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+QQ(ZQ(a.Kc))+">"+Y(a.Kc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
var taa=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+QQ(ZQ(a.Kc))+">"+Y(a.Kc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Y(a.Ef)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
var uaa=function(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'};
var cR=function(){var a="",b=qa("Share");return a+b};
var dR=function(a){return""+PQ("b",a.Th)(a,null,void 0)};
var vaa=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button tabindex="2" class="videoAdUiExtendButton videoAdUiAction" style="display: none">'+Y(a.Tv)+'</button><br/><button tabindex="1" class="videoAdUiSkipButton videoAdUiAction">'+Y(a.skipText)+'<div class="videoAdUiSkipIcon"></div><div class="videoAdUiAutoSkipText"></div></button></div>'};
var waa=function(){var a="",b=qa("Continue Ad");return a+b};
var eR=function(a){var b="";a=2<=a.Zi&&1<=a.zh?qa("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Y(a.zh),totalAds:Y(a.Zi),timeLeft:Y(a.Wi)}):qa("Ad {$timeLeft}",{timeLeft:Y(a.Wi)});return b+=a};
var fR=function(){var a=gR(),b=EQ("</a>"),c="",a=qa("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:Y(a),endFormat:Y(b)});return EQ(c+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))};
var gR=function(){return EQ('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')};
var hR=function(a){return EQ("<div class='videoAdUiPopupBackground'><div class='videoAdUiPopupCloseIcon'><svg height=\"100%\" viewBox=\"0 0 24 24\" width=\"100%\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" fill=\"#fff\"></path></svg></div><div class='videoAdUiPopupPositioner'><form class='videoAdUiPopupFrame'><div class='videoAdUiPopupHeading videoAdUiHideIfEmpty'>"+Y(a.heading)+"</div><div class='videoAdUiPopupText'>"+Y(a.message)+
"</div><div class='videoAdUiPopupButtons'>"+Y(a.buttons)+"</div></form></div></div>")};
var xaa=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.Wq,d=c.length,e=0;e<d;e++)b+="<li>"+Y(c[e])+"</li>";b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+Y(a.nk)+"</div><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+Y(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+Y(a.control)+"</a>";a=""+hR({heading:iR(""+Y(a.heading)),message:iR(b),buttons:iR("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+
Y(a.close)+"</button>")});return EQ(a)};
var yaa=function(a){for(var b=""+Y(a.question),c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+SQ(e)+"'><input type='radio' id='videoAdUiMuteOption"+SQ(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+SQ(e)+"' />"+Y(f)+"</label>");a=""+hR({heading:iR(Y(a.heading)+" <a class='videoAdUiMuteUndo'>"+Y(a.undo)+"</a>"),message:iR(b),buttons:iR("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+
Y(a.confirm)+"</button>")});return EQ(a)};
var zaa=function(a){var b=String(""+a.heading);return EQ(hR({heading:b?new KQ(b,void 0):"",message:iR(""+Y(a.message)),buttons:iR("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))};
var jR=function(a,b,c){if(null==a||!Af(Ye(a),a))throw vL(kR,null,"containerElement","element");this.C=a;this.o=this.j=null;this.B=b;this.D=c||!1;this.A=null;this.j=O("div",{style:"display:none;"});a=KK();LK(a,"useVideoElementMock")?(a=tQ(),b=O("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),pa(b,a),a.kg=O("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.Vi=O("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.kg.appendChild(a.Vi),b.appendChild(a.kg),a.j.R(a,["loadeddata","playing","pause","ended"],a.OB),a=b):(a="",b=qa("Advertisement"),a=O("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:a+b}));a.setAttribute("webkit-playsinline",!0);this.o=a;this.C.appendChild(this.j);this.j.appendChild(this.o);this.B&&(a=O("div",{id:this.B,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.j.appendChild(a));this.D&&(this.A=O("div",{style:"position:absolute;width:100%;height:100%;"}),
this.j.appendChild(this.A))};
var lR=function(a){fd.call(this);this.P="ima-chromeless-video";var b=null;null!=a&&(y(a)?this.P=a:b=a);this.N=new Hm(this);this.D=null;this.B=!1;this.fa=this.Rc();this.ca=this.Od();this.J=-1;this.Y=!1;this.F=-1;this.A=this.X=this.K=null;this.T="";this.j=!1;this.da=null!=b;this.ga=this.L=this.$=this.o=null;this.C=void 0;this.G=this.ha=null;this.H=this.oa=0;this.da?(this.j=!0,this.o=b,this.C=2):(a=A(this.Hv,this),mR?a():(nR.push(a),a=nf("script"),a.src="https://www.youtube.com/iframe_api",b=window.document.getElementsByTagName("script")[0],
b.parentNode.insertBefore(a,b)))};
var oR=function(a,b,c){var d={};if(null!=a.A){var e=a.A.D;null!=e&&(d.agcid=e);e=a.A.B;null!=e&&(d.adformat=e);e=a.A.C;null!=e&&(d.ad_query_id=e);(e=a.A.F)&&(d.cta_conversion_urls=e);a.A.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.A.J?1:3;a.A.G&&(d.noiba=1);a.A.K&&(d.utpsa=1);a.A.A&&ic(d,a.A.A)}e=eQ(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+"&type="+(0,window.encodeURIComponent)(null===c?"":c):d.videoId=e;!OK()&&aL(XK(),41351017)&&(d.enabled_engage_types=
(3).toString());a.B=!1;a.A&&a.A.o?(a.ha=d,a.o.preloadVideoByPlayerVars(a.ha)):a.o.cueVideoByPlayerVars(d);a.Z("loaded")};
var pR=function(a){a.N.xa(a.D,"tick",a.zp);null!=a.D&&(a.D.stop(),a.D=null)};
var qR=function(a){null!=a.ta&&Vd(a.ta)};
var rR=function(a){fd.call(this);this.j=a||Va();this.A=[]};
var sR=function(a,b,c,d,e){lc.call(this,a);this.nc=b;this.ld=c;this.uo=d;this.A=e};
var tR=function(a,b){rR.call(this,b);this.B=a;this.Ec=null;this.C=new Hm(this);this.logger=null;this.C.R(hf(),"message",this.receive)};
var uR=function(a){if(null==a||!y(a)||!sa(a,"ima://"))return null;a=a.substr(6);try{return de(a)}catch(b){return null}};
var Aaa=function(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.j;e.channel=a.B;return"ima://"+fe(e)};
var vR=function(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.B)return!1;c=b.sid;return null==c||"*"!=a.j&&c!=a.j?!1:!0};
var wR=function(a,b){fd.call(this);this.B=a;this.A=b;this.j={};this.o=new Hm(this);this.o.R(hf(),"message",this.C)};
var xR=function(a,b,c,d){a.j.hasOwnProperty(b)||(c=new tR(b,c),a.o.R(c,a.B,function(a){a=new yR(a.type,a.nc,a.ld,a.uo,a.getOrigin(),b);this.Z(a)}),c.Ec=d,c.connect(),a.j[b]=c)};
var yR=function(a,b,c,d,e,f){sR.call(this,a,b,c,d,e);this.j=f};
var zR=function(){var a=v("google.ima.gptProxyInstance",hf());if(null!=a)return a;Hm.call(this);this.A=new wR("gpt",!0);J(this,this.A);this.R(this.A,"gpt",this.D);this.j=null;AR()||hf().top===hf()||(this.j=new wR("gpt",!1),J(this,this.j),this.R(this.j,"gpt",this.C))};
var AR=function(){return!!v("googletag.cmd",hf())};
var BR=function(){var a=v("googletag.console",hf());return null!=a?a:null};
var CR=function(a,b,c,d,e,f,k,l,m,p,u,t){this.B=a;this.C=p;this.D=b;this.F=d;this.G=l;this.H=t;this.J=e;this.K=f;this.j=k;this.o=m;this.A=u};
var Baa=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,t){if("%"==p)return"%";var w=c.shift();if("undefined"==typeof w)throw Error("[goog.string.format] Not enough arguments");arguments[0]=w;return DR[p].apply(null,arguments)})};
var ER=function(a,b){fd.call(this);this.B=new Hm(this);this.G=!1;this.H=Va();this.D=new yg;var c=this.H,d=("https:"==window.document.location.protocol?"https:":"http:")+Baa("//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=O("iframe",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});
Lm(this.B,c,"load",this.cw);a.appendChild(c);this.o=c;c=this.D.get("*");null==c&&(c=new tR(this.H,"*"),this.G&&(c.Ec=Bf(this.o),c.connect()),this.D.set("*",c));this.C=c;this.F=b;this.j=this.F.D;this.A=null;this.B.R(this.C,"mouse",this.ww);this.B.R(this.C,"touch",this.Kw);null!=this.j&&(this.B.R(this.C,"displayContainer",this.rw),this.B.R(this.C,"videoDisplay",this.Hw),this.B.R(this.j,Wb(Caa),this.NB));c=hf();d=v("google.ima.gptProxyInstance",c);null==d&&(d=new zR,q("google.ima.gptProxyInstance",d,
c))};
var FR=function(a,b){var c=bg(a.o),d=Q(b,function(a){return window.document.createTouch(window,this.o,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);
return window.document.createTouchList.apply(window.document,d)};
var GR=function(a,b,c,d,e){if(!(e||null!=a&&Af(Ye(a),a)))throw vL(kR,null,"containerElement","element");this.A=a;var f=e=null!=b||null!=d,k=!1;PK.j||(PK.j||EL()||tF&&(!tF||!FL(LL,4))||JL())&&e||(AL()||JL()||(k=!0),f=!1);this.C=f;this.G=k||f&&null!=d;PK.j?a=null:(e=O("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.o=a;this.j=this.C||!this.o||PK.j||!AL()?null:new jR(this.o,null,!0);a=null;this.C?b?a=new lQ(b):d&&(a=new lR(d)):this.j&&(a=new lQ(this.j.o));this.B=(this.D=a)?
c||null:null;this.H=null!=this.B;NL(ML.getInstance(),8,{enabled:this.C,yt:null!=d,customClick:null!=this.B});null===this.o?(b=this.A,PK.A=b):this.C&&b&&!ga(b.getBoundingClientRect)&&(b=this.A,PK.A=b);this.F=null==this.o||PK.j?null:new ER(this.o,this)};
var HR=function(a){return a.H&&a.B?a.B:null!=a.j?a.j.A:null};
var IR=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 t=
e.parent;for(k=0;t&&t!=e&&25>k;++k){for(var w=t.frames,l=0;l<w.length;++l)if(e==w[l]){f.push(l);break}e=t;t=e.parent}}catch(z){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(t=0;t<JR.length-1;++t)c.push(Yg(a,JR[t])||"");t=Yg(a,"videoad_start_delay");w="";t&&(t=(0,window.parseInt)(t,10),w=0>t?"postroll":0==t?"preroll":"midroll");c.push(w)}else for(t=0;t<JR.length;++t)c.push("");c=c.join(":");t=c.length;if(0==t)c=0;else{w=305419896;for(d=0;d<t;d++)w^=(w<<5)+(w>>2)+c.charCodeAt(d)&4294967295;c=0<
w?w:4294967296+w}return c.toString()};
var KR=function(){fd.call(this);this.currentTime=0};
var LR=function(a){KR.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw vL(kR,null,"content","currentTime");this.j=a;this.wa=new Sd(250);this.o=new Hm(this);Im(this.o,this.wa,"tick",this.A,this)};
var MR=function(){this.reset()};
var NR=function(){this.o=this.j=null};
var OR=function(){this.j=PR();this.H=-1;this.L=this.P=this.C=this.G=this.D=null;this.B=PR();this.A=null;this.U=this.J=this.K="";this.F=this.N=this.T=this.o=null};
var PR=function(){return Math.floor(4503599627370496*Math.random())};
var QR=function(a){if(PK.j){var b;return"h.3.0.0"}b="h."+a.U;null!=a.o&&(b+="/n."+a.o,null!=a.D&&(b+="/"+a.D));return b};
var RR=function(a,b){fd.call(this);this.j=a;this.D=!!b;this.A=SR(this);if(!this.A){var c=xc&&!Ac("7")?"readystatechange":"load";this.o=Pc(this.j,c,this.C,!1,this);this.B=window.setInterval(A(this.C,this),100)}};
var TR=function(a){a.B&&(window.clearInterval(a.B),a.B=null)};
var SR=function(a){var b=!1;try{if(a.D||!xc||Ac("11"))var c=a.j,d=(c.contentDocument||c.contentWindow.document).body,b=a.D?!!d&&!!d.firstChild:!!d;else b="complete"==a.j.readyState}catch(e){}return b};
var UR=function(){fd.call(this);this.B=!1;this.impressionUrls=[]};
var VR=function(a,b,c){lc.call(this,a);this.A=b||null;this.j=c||null};
var WR=function(a,b){this.F=a;this.D=Q(b,function(a){return a.clone()});
this.C="";this.o=this.A=0;this.j=!0;this.B=[]};
var XR=function(a){a.C="";a.A=0;a.o=0;a.j=!0;a.B=[]};
var YR=function(){UR.call(this);this.G=[];this.C=!1;this.A="not_loaded";this.o=null;this.D=0;this.j=null;this.H=new Xe};
var ZR=function(a){var b=["googletag","googletag.cmd"];return db(a,function(a){return Ig(b,function(b){return!ca(v(b,a))})})||null};
var $R=function(a){return a.B?Q(a.G,function(a){return a.clone()}):[]};
var Daa=function(a){a=$R(a);return null!=a?Q(a,function(a){return a.D}):void 0};
var aS=function(a,b,c){var d=0,e=0;null!=b&&(b=new P(b.j),d=Number(b.j.get("pod")||0),e=Number(b.j.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(bS.j,d,e,c)}catch(f){}};
var Eaa=function(a,b){var c=cS(a);if(null!==c){aS(c,b,!0);try{c.refreshAllSlots()}catch(d){}}};
var dS=function(a,b){a.F=b;a.setVideoContent("","");var c=cS(a);null===c||aS(c,null,!1)};
var cS=function(a){null==a.j&&eS(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.companionAds?a.j.googletag.companionAds():null};
var fS=function(a){null==a.j&&eS(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.pubads?a.j.googletag.pubads():null};
var gS=function(a){a.o&&(a.o.stop(),a.o.xa("tick",a.Pp,!1,a),a.o.dispose(),a.o=null)};
var hS=function(a){var b;if(b=!a.C)eS(a),b=null!=a.j&&null!=a.j.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.j)a.C=!0,c=[];else{var d=a.j.googleGetCompanionAdSlots();c=Q(d,a.AC,a)}}catch(f){a.C=!0,c=[]}a.G=c;a.C=!0}if("retrieved"!=a.A&&"not_available"!=a.A&&!ca(cS(a))){var e;b=cS(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.A=e;break;default:e=Number(e),(0,window.isNaN)(e)?a.A=
"not_available":(a.F=e,a.A="retrieved")}}a.C&&"retrieved"==a.A?(a.B=!0,gS(a),a.Z(new VR("companions_success"))):a.C&&"not_available"==a.A?(a.B=!0,gS(a),iS(a)):a.o||(a.D=K()+5E3,a.o=new Sd(100),a.o.R("tick",a.Pp,!1,a),a.o.start())};
var eS=function(a){var b=Kf(a.H);try{a.j=ZR([b,b.top])}catch(c){a.j=null}};
var iS=function(a){a.Z(new VR("companion_initialization_failed",Error("Partial or full service initialization failure.")))};
var jS=function(a,b,c){a.Z(new VR("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Pc(d,"click",A(a.vz,a,b),!1,a)};
var kS=function(a,b){lc.call(this,a);this.j=b};
var lS=function(a){lc.call(this,a)};
var mS=function(){};
var nS=function(a,b){if(null==a||0>=a.width||0>=a.height)throw vL(kR,null,"ad slot size",a.toString());this.o=a;this.j=null!=b?b:new mS;this.C=oS(Faa,this.j.A)?this.j.A:"All";this.B=oS(Gaa,this.j.creativeType)?this.j.creativeType:"All";this.F=oS(Haa,this.j.B)?this.j.B:"SelectExactMatch";this.G=oS(Iaa,this.j.o)?this.j.o:"DisallowResize";this.A=null!=this.j.C?this.j.C:[];this.D=fa(this.j.j)&&0<this.j.j&&100>=this.j.j?this.j.j:90};
var pS=function(a,b){var c=[];F(b,function(a){!C(D(a.j.B))&&((0,window.isNaN)(a.j.j)||(0,window.isNaN)(qS(a))||qS(a)==a.j.j)&&rS(this,a)?c.push(a):(a=Jaa(this,a),null!=a&&!C(D(a.j.B))&&c.push(a))},a);
return c};
var rS=function(a,b){var c;if(c="Flash"!=b.getContentType()||sS){if(c="All"==a.C||a.C==b.j.da)c=b.getContentType(),c=null!=c?"All"==a.B||a.B==c:!0;c&&(c=b.A,c=kb(a.A)?!0:null!=c?0<=jb(a.A,c):!1)}if(c){var d=b.j.Wb();if("IgnoreSize"==a.F||ue(a.o,d))c=!0;else if(c="SelectNearMatch"==a.F)"ResizeSmaller"==a.G&&(d=d.width<=a.o.width&&d.height<=a.o.height?d:tS(d,a.o)),c=d.width,d=d.height,c=c>a.o.width||d>a.o.height||c<a.D/100*a.o.width||d<a.D/100*a.o.height?!1:!0}else c=!1;return c};
var Jaa=function(a,b){var c=b.o;return null!=c?db(c,function(a){return rS(this,a)},a):null};
var tS=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new te(c*a.width,c*a.height)};
var oS=function(a,b){return null!=b&&Vb(a,b)};
var uS=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}};
var vS=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 Kaa=function(a){var b={};F(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Ra(d[0]),d=Ra(d[1]),0<a.length&&(b[a]=d))});
return b};
var wS=function(a,b){if(a[b])return xS(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return xS(a[d]);return!1};
var xS=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
var yS=function(a){P.call(this,a);this.F=new yg;a=this.A;var b=a.indexOf(";"),c=null;0<=b?(fh(this,a.substring(0,b)),c=a.substring(b+1)):fh(this,a);Laa(this,c)};
var Laa=function(a,b){C(D(b))||F(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=va(a.substring(0,b));a=va(a.substring(b+1));b=this.F.get(e);null!=b?ib(b,a)||b.push(a):b=[D(a)];this.F.set(e,b)}},a)};
var Maa=function(a){if(C(D("ord")))return null;a=a.F.get("ord");return null!=a?a:null};
var zS=function(a,b,c){C(D(b))||(c=Q(c,D),a.F.set(b,c))};
var AS=function(a,b){var c=[D(b)];ub(c,Naa(a));return c.join(";")};
var Naa=function(a){var b=Maa(a);null!=b?C(D("ord"))||a.F.remove("ord"):b=[D(K())];var c=[];F(a.F.Na(),function(a){F(this.F.get(a),function(b){ub(c,a+"="+b)})},a);
ub(c,"ord="+b[0]);zS(a,"ord",b);return c};
var BS=function(a){if(null==a)return!1;a=new P(a);var b=a.A;return ta(a.o,"googleads.g.doubleclick.net")&&CS("/pagead/ads",b)};
var DS=function(a){a=a.j;return null!=a?"bid.g.doubleclick.net"==jh(new P(a)):!1};
var ES=function(a){if(null==a)return!1;var b=new yS(a);a=b.o;b=AS(b,b.A);return!ta(a,".g.doubleclick.net")&&ta(a,"doubleclick.net")&&CS("/(ad|pfad)[x|i|j]?/",b)};
var FS=function(a){if(null==a)return!1;a=new P(a);var b=a.A;return ta(a.o,"doubleclick.net")&&CS("/gampad/(live/)?ads",b)};
var Oaa=function(a){return BS(a.j)||ES(a.j)||FS(a.j)||DS(a)};
var Paa=function(a){a=a.j;if(null==a)return null;a=nh(new P(a));return null!=a.get("ms")?D(a.get("ms")):null};
var CS=function(a,b){return C(D(b))?!1:(new RegExp(a)).test(b)};
var GS=function(a){return tL(Qaa,null,a.parentNode.nodeName,a.nodeName)};
var HS=function(a){return tL(Raa,null,a.parentNode.nodeName,a.nodeName)};
var IS=function(a,b){return null!=a?be(uf(a),function(a){return a.nodeName==b}):[]};
var JS=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null};
var KS=function(a,b){if(null==a)return null;var c="";F(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});
c=Ra(c);return b?Ea(c):c};
var LS=function(a,b,c,d){null!=a&&F(uf(a),function(a){if(a.nodeName==b)c.call(d,a);else throw GS(a);})};
var MS=function(a){return C(D(a))?window.NaN:Xa(D(a))};
var NS=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new Qy(0,0,0,Xa(c[0]),Xa(c[1]),Xa(c[2])),60*(60*(24*c.j+c.o)+c.A)+c.B}return null!=b?b:-1};
var OS=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 PS=function(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Fa(a,"/pagead/adview")?QS(a)?0:2:Fa(a,"/pagead/conversion")?QS(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+QR(bS);var d=a.indexOf("&adurl=");c=-1!=d?Pa(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c};
var QS=function(a){return Ig(Saa,function(b){var c=a||"";return 0<=Xg(c,0,b,c.search(Zg))})};
var RS=function(a,b){this.j=a;this.o=b};
var SS=function(a){return a.o?-1:a.j};
var TS=function(a,b){a.o&&(a.o=!1,a.j=a.j*b/100)};
var US=function(){this.j=new yg};
var VS=function(a,b){this.A=a;this.j=b};
var WS=function(a,b){VS.call(this,"progress",a);this.o=b};
var XS=function(a,b){F(b,function(a){var b=a.getType().toLowerCase(),e=YS(this,b);e.push(a);this.j.set(b,e)},a)};
var ZS=function(a,b,c,d){b=b.toLowerCase();var e=YS(a,b);null!=d?(d=new WS(c,d),null!=d?e.push(d):e.push(new VS(b,c))):e.push(new VS(b,c));a.j.set(b,e)};
var YS=function(a,b){return null!=b?a.j.get(b.toLowerCase())||[]:[]};
var Taa=function(a,b){var c=YS(a,"progress");F(c,function(a){TS(a.o,b)});
Cb(c,function(a,b){return SS(a.o)-SS(b.o)})};
var $S=function(a,b){return Q(YS(a,b)||[],function(a){return a.j})};
var aT=function(a,b){var c=new US;LS(a,"Tracking",function(a){var e=JS(a,"event"),f=PS(KS(a),b);bT(f)&&null!=e&&("progress"==e?(a=JS(a,"offset"),a=cT(a),null!=a&&ZS(c,e,f,a)):ZS(c,e,f))});
return c};
var Uaa=function(a){if(C(D(a)))return null;a=new P(a);if("thismessage"!=a.B||"extensions"!=a.o)return null;a=a.A;if(!sa(a,"/"))return null;a=a.substr(1);return C(D(a))?null:a};
var cT=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 RS(a,!0))):(a=NS(a),0<=a&&(b=new RS(a,!1)));return b};
var bT=function(a){var b=!0;if(C(D(a)))b=!1;else try{new P(a)}catch(c){b=!1}return b};
var dT=function(a,b){this.j=null!=a?a:new US;this.G=null!=b?b:[]};
var Vaa=function(a,b){var c=b.j;F(c.Na(),function(a){XS(this.j,c.get(a))},a)};
var eT=function(a,b){var c=$S(a.j,b);return null!=c?c:[]};
var fT=function(a,b){dT.call(this);this.o=a;this.A=b};
var gT=function(){};
var hT=function(a,b){dT.call(this,b);this.o=a};
var iT=function(a){dT.call(this);this.o=a};
var jT=function(a){dT.call(this);this.o=(0,window.isNaN)(a)?-1:a};
var kT=function(){this.$=-1;this.K={};this.ca="";this.Af=new US};
var lT=function(a,b,c){a.ca=b;a.K=c};
var mT=function(a,b){var c=[],d=a.Yh();F(d,function(a){a=YS(a.Af,b)||[];c=rb(a,c)},a);
return c};
var nT=function(a,b,c){var d=c||!1;return db(b.B,function(a){var b=a.j==this.j;return a instanceof this.constructor&&(d||b)},a)};
var oT=function(a,b,c,d,e){kT.call(this);C(D(a))&&(a=Va()+"_ima");this.U=D(a);this.oa=b;this.da=c;this.Ea=d;this.B=e;this.H=[];null!=this.Ea?this.fa=pT[this.Ea]||"Other":this.fa=null};
var Waa=function(){this.o=this.B=1;this.j=this.A=0;this.C=1};
var qT=function(a,b,c,d,e,f,k,l,m,p){this.B=a;this.j=b;this.F=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.D=k;this.C=l;this.o=iL(D(m));this.A=p};
var rT=function(a,b,c,d,e,f){kT.call(this);this.Mf(a);this.A=b;this.o=c;this.J=sb(d);this.ha=null;this.B=e;this.Qa=sb(f);xb(this.Qa,null,function(a){return a.H})};
var sT=function(a){var b=new yg,c=a.Yh();F(c,function(a){if(a instanceof rT){var c=a.o;F(c.Na(),function(a){b.set(a,rb(c.get(a),b.get(a)||[]))},this)}},a);
return b};
var Xaa=function(a){a=db(a.J,function(a){return!C(D(a.j))&&-1!=a.j.indexOf("javascript")&&("VPAID"==a.A||"surveys"==a.A)});
return null!=a?a.o:null};
var tT=function(a,b,c){H.call(this);this.o=a;this.A=b;this.B=c;this.D=0;this.j=new Hm(this);Yaa(this)};
var Yaa=function(a){a.B.forEach(function(a,c){this.j.R(c,"mousedown",this.F);this.j.R(c,"mouseup",this.H)},a);
a.j.R(a.A,"mouseover",a.G)};
var uT=function(a,b,c,d,e){oT.call(this,a,b,c,d,e);this.X=this.o=null;this.ga=-2;this.A=null;this.T=this.L=x;this.Y=[];this.ta=[];this.C=!1};
var vT=function(a,b){a.A=b;null!=a.o&&null!=b&&(wT(a,a.L),xT(a,a.T))};
var wT=function(a,b){null!=a.A&&null!=a.o&&F(a.Y,function(a){this.A.xa(a,"click",this.L);!C(D(this.Sc()))&&this.A.R(a,"click",b)},a);
a.L=b};
var xT=function(a,b){null!=a.A&&null!=a.o&&(a.A.xa(a.o,"creativeview",a.T),a.A.R(a.o,"creativeview",b));a.T=b};
var yT=function(a,b){var c=a.U,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 O("div",d,b)};
var zT=function(a){if(!a.C)return null;var b=mT(a,"start");ub(b,mT(a,"creativeview"));if(null!=b&&!kb(b)){var c=[];F(b,function(a){if(!C(D(a))){var b;b=We();var f;f=y(void 0)?Ie(void 0).fd():"";b=b.iw("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+f,src:Zaa});Of(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",iL(a.j));b.setAttribute("id",f);this.ta.push(f);nb(c,b)}},a);
return c}return null};
var $aa=function(a,b){if(null!=a.o){var c=new yg;F(a.Y,function(a){c.set(a,this.Yn(a))},a);
new tT(b,a.o,c)}};
var aba=function(a){var b=[],c=a.Yh();F(c,function(a){b=rb(b,a.H)},a);
return b};
var AT=function(a,b,c){var d=c||!1;return db(b.B,function(a){var b=a.j==this.j;return this instanceof a.constructor&&(d||b)},a)};
var BT=function(a,b,c,d,e,f,k,l,m,p,u,t,w,z,E,M){this.da=a;this.X=b;this.K=c;this.Ha=d;this.Qa=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.$=l?sb(l):[];this.J=m?sb(m):[];this.B=p?sb(p):[];this.Y=[];this.G=[];this.F=null;this.Ea=[];this.fa=!0;this.j=this.o=null;this.H=new yg(t);this.L=null!=M;this.Ca=(this.P=null!=w)?z||!1:!1;this.Fa=this.$x?E||!1:!1;this.Ia=D(w);this.La=D(M);this.za=this.A=null;this.C=new Waa;this.T=new te(0,0);this.ca=String(Math.floor(1E9*Math.random()));this.N=this.U=this.D=null;
this.ta=K();this.ga=this.ia=0;this.oa=this.ha=!1;F(this.B,function(a){a.P=this},this);
CT(this,u)};
var DT=function(a){var b;b=ET(a);b=wS(b,"hideMaster")||wS(b,"blockAllAds")?"3":FT(a)?GT(a)?"2_3":HT(a)?"2_4":IT(a)?JT(a)?"2_5":KT(a)?"2_1":"2_2":"2":"1";return(LT(a)?4:MT(a,bba)?15:NT(a,cba)||NT(a,OT)?1:PT(a)?2:0)+"_"+b};
var QT=function(a){return null!=a.X?a.X:""};
var RT=function(a){return null!=a.j?rb(RT(a.j),a.$):a.$};
var ST=function(a){return null!=a.j?rb(ST(a.j),a.J):a.J};
var TT=function(a){return null!=a.j?rb(a.G,TT(a.j)):a.G};
var ET=function(a){return null!=a.o?a.o.K:{}};
var dba=function(a){var b={};F(a.B,function(a){a=a.K;for(var d in a)b[d]=a[d]});
return b};
var eba=function(a){return null!=a.o?a.o.ca:""};
var UT=function(a,b){a.o=b;a.T=null!=a.o&&a.o instanceof uT?a.o.Wb():new te(0,0)};
var VT=function(a){return a.o};
var WT=function(a){return null!=a.da?a.da:""};
var XT=function(a){if(null==a.j||ZT(a.j.K))return[];var b=[WT(a.j)];ub(b,XT(a.j));return b};
var fba=function(a){var b=XT(a).reverse();b.push(WT(a));return b};
var $T=function(a){if(null==a.j||ZT(a.j.K))return[];var b=[QT(a.j)];ub(b,$T(a.j));return b};
var aU=function(a){if(!OK())return null;if(null!=a.j){var b=aU(a.j);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.o:null};
var gba=function(a){var b=$T(a).reverse();b.push(QT(a));return b};
var ZT=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a};
var bU=function(a){if(null==a.j)return[a.K];var b=bU(a.j);b.push(a.K);ZT(b[0])&&b.shift();return b};
var cU=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.o?a.o:-1};
var dU=function(a){if(-1!=a.Qa)return a.Qa;a=a.getExtension("pod");return null!=a&&-1!=a.o?a.o:-1};
var eU=function(a,b,c,d){a=TT(a);return pS(new nS(new te(b,c),d),a)};
var fU=function(a){var b=a.A.sf,c=a.A.rf;if(!b||!c)if(a=a.A.j?Yg(a.A.j,"sz"):null)a=a.split("x"),2==a.length&&(b=(0,window.parseInt)(a[0],10)||0,c=(0,window.parseInt)(a[1],10)||0);return new te(b,c)};
var hba=function(a){if(!a.A||gU(a)&&!MT(a,["ADSENSE/ADX"]))return[];var b=fU(a);if(0>=b.width||0>=b.height)return[];var c=new mS;c.creativeType="All";c.A="All";c.B="SelectNearMatch";c.j=40;var d=eU(a,b.width,b.height,c);if(!kb(d))return d;c.o="ResizeSmaller";d=be(TT(a),function(a){return a.j.Eg()},a);
return pS(new nS(new te(b.width,b.height),c),d)};
var iba=function(a){var b=null,c=0;F(hba(a),function(a){var e;e=fU(this);e=!a.j.Eg()||a.getWidth()<=e.width&&a.getHeight()<=e.height?a.j.Wb():tS(a.j.Wb(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a);
return b};
var hU=function(a,b){return b||null==a.j?a.Y:rb(a.Y,hU(a.j))};
var CT=function(a,b){a.Y=b?sb(b):[];F(a.Y,function(a){ub(this.G,sb(a.j))},a);
F(a.G,function(a){iU(a,this)},a);
OK()&&FT(a)&&(a.G=be(a.G,function(a){return 60>=a.getHeight()}))};
var jU=function(a,b){return Lh(a.B,function(a){return a instanceof rT&&"linear"==b||a instanceof uT&&"nonlinear"==b?!0:!1})};
var HT=function(a){return-1!=kU(a)&&0!=kU(a)&&7>=kU(a)};
var FT=function(a){return a.ha?a.oa:lU(a)?!0:gU(a)?"video"==a.Ha:jU(a,"linear")};
var IT=function(a){return null!=mU(a)};
var lU=function(a){var b=a.o;return gU(a)&&null!=b&&b instanceof uT&&(90<a.T.height||null!=a.A&&a.A.hf)};
var nU=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:nU(a,b.j)};
var JT=function(a){a=a.getExtension("AdSense");if(null==a)return!1;a=YS(a.j,"video_extend_clicked");return OK()?0!=a.length:!1};
var mU=function(a){var b=nU(a,a.j);if(null!=b){if("skippable"==b.o)return b.A;if("nonskippable"==b.o)return null}var b=null,c=new RS(5,!1),d=jba(a);"implicit"==d&&(b=c);var e=a.o;null==b&&null!=e&&e instanceof rT&&(b=e.B);null!=b||"explicit"!=d||(b=c);return null!=b&&OK()?a.A.Pc("disable_skip_on_short_adsense")&&!GT(a)&&gU(a)&&33>=oU(a)?null:(0,window.isNaN)(a.A.D)?c:new RS(a.A.D,!1):b};
var jba=function(a){if(null!=db(a.H.Ka(),function(a){return!kb(eT(a,"skip"))}))return"implicit";
var b=a.H.get("DFP");if(b instanceof hT)switch(b.o){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.o;return OK()&&null!=a&&(a=a.Af,null!=a&&!kb(YS(a,"skip")))?"explicit":"none"};
var pU=function(a){if(null==a.A)return!1;var b=a.A.j;null!=b&&ta(b,"/PrefetchedAd")&&null!=a.j&&(b=a.j.H.get("LocalRedirect"),b=null!=b?b.ed():null);(a=BS(b)||FS(b)||ES(b))||(null!=b?(b=jh(new P(b)),a=ta(b,"viral.adsense.net")):a=!1);return a};
var KT=function(a){if(null==a.X||null==a.A)return!1;var b;(b=pU(a)||!1)&&!(b=gU(a)&&!MT(a,["ADSENSE/ADX"]))&&(MT(a,OT)?(b=a.H.get("DFP"),b=null!=b?"InstreamSelect"==b.o:!1):b=!1);if(b||a.j&&a.j.L&&pU(a.j))return!0;a=NT(a,["ADSENSE/ADX"])||a.j&&PT(a);return OK()&&!a};
var qU=function(a){return null===a.o?null:a.o.Sc()};
var oU=function(a){return null!=a.o?a.o.Vk():-1};
var rU=function(a){return null!==a.F?10:kb(a.Ea)?0:(a=a.A.ai("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3))};
var kU=function(a){return oU(a)+rU(a)};
var sU=function(a){return null===a.o?null:a.o.Wk()};
var gU=function(a){return MT(a,tU)};
var LT=function(a){return null!=a.j&&LT(a.j)||MT(a,kba)};
var GT=function(a){var b=sU(a);return MT(a,["402"])||y(b)&&!ca(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))};
var uU=function(a){return gU(a)&&KT(a)&&!HT(a)&&!C(D(a.D))&&!ca(mU(a))&&0<SS(mU(a))};
var PT=function(a){return NT(a,tU)||NT(a,["402"])};
var vU=function(a){return a.D};
var wU=function(a){a=a.getExtension("InfoCards");return null!=a?a.o:null};
var xU=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.o:null};
var MT=function(a,b){return null!=a.X?ib(b,a.K):!1};
var NT=function(a,b){for(var c=bU(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(ib(b,c[d]))return!0;break}return!1};
var yU=function(a){var b=GT(a)&&OK();if(a=null!=sU(a))a=0!=PK.D||b;return a};
var zU=function(){fd.call(this);this.A=[]};
var AU=function(){return new BT("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new yg)};
var BU=function(a){zU.call(this);this.j=a;this.F=null;this.G=!1;this.B=null;this.C=new Hm;Im(this.C,this.j,["companions_success","companion_initialization_failed"],this.iB,this);Im(this.C,this.j,"companion_display_error",this.xz,this);Im(this.C,this.j,["companion_slot_init","companion_click"],this.rz,this);this.j.B?this.G=!0:this.j.initialize()};
var CU=function(a,b){Mb(a.o);a.o=new fd;a.B=b;a.D=!0;a.G?DU(a):(a.D=EU(FU(b),[]),a.D||(a.B=null,a.o=null));return a.o};
var DU=function(a){var b=a.B;a.B=null;if(null!=a.j)if(kb(a.A))GU(a,Error("Companion slots not available."));else if(null!=b){var c=lba(a,b),d=a.j;try{d.j.googleSetCompanionAdContents(Q(a.A,d.hv,d)),d.sendImpressionUrls()}catch(f){d.Z(new VR("companion_display_error",f))}if(0<c.length&&b.fa){a=a.j;if(d=0!=c.length)d=bU(b),d=ZT(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].F);b=b.A;c=cS(a);if(null!==c){aS(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else GU(a,
Error("Invalid master ad."))};
var GU=function(a,b){a.Z(new kS("companion_display_error",b))};
var mba=function(a){aL(XK(),9419278)&&rL(a)};
var lba=function(a,b){var c=[],d=[];F(a.A,function(a){XR(a);Lh(a.D,function(d){a:{d=eU(b,d.width,d.height);if(!kb(d)&&(d=nba(d,c),null!=d)){var e=d.A;if(null!=e&&0!=a.F.indexOf(e)){d=!1;break a}c.push(d);var e=d.getContent(),m=d.getWidth(),p=d.getHeight(),u="IFrame"!=d.j.da;d=d.j.H;a.C=e;a.A=m;a.o=p;a.j=u;a.B=d||[];d=!0;break a}d=!1}return d},this)||d.push(a)},a);
var e=FU(b);a.D=EU(e,c);a.D||F(a.A,function(a){XR(a)},a);
return d};
var EU=function(a,b){if(null==a)return!0;var c=a.j;return"all"==a.o?oba(c,b):"any"==a.o?pba(c,b):!0};
var FU=function(a){return null==a||null==a.o||(0,window.isNaN)(a.o.j)?null:db(hU(a,!0),function(a){a=a.j;return kb(a)?!1:(0,window.isNaN)(a[0].j.j)?!1:a[0].j.j==qS(a[0])})};
var oba=function(a,b){return Ig(a,function(a){return ib(b,a)})};
var pba=function(a,b){return Lh(a,function(a){return ib(b,a)})};
var nba=function(a,b){return db(a,function(a){return!ib(b,a)})};
var HU=function(a){this.j=a};
var IU=function(a,b){lc.call(this,"adsManagerLoaded");this.j=a;this.A=b};
var JU=function(a,b,c,d){a.j.Gd(new HU(b),c,d);return a.j};
var KU=function(a){lc.call(this,a);this.C=[];this.B={};this.j=null;this.A=!0};
var LU=function(){this.A=new yg;this.o=!OK()&&.01>Math.random();this.B=0;this.j="0";this.C=""};
var qba=function(){var a=LU.getInstance();a.sendMessage("ff",a.B);a.B=0};
var MU=function(a,b,c,d){d=d||{};var e=new P("https://ssl.google-analytics.com/collect?v=1&t=timing&tid=UA-68696278-1&utc="+rba());d.cid=sba(a);d.utv=b;d.utt=c;d.cd6=QR(bS);b=cL(XK());C(D(b))||(d.xid=b);Ob(d,function(a,b){oh(e,b,a)},a);
return e.toString()};
var tba=function(a,b){if(null!=b){var c=va(b),d=uba.exec(c),c=D(nh(new P(c)).get("client"));a.j=d&&2==d.length?d[1]:C(c)?"0":c}else a.j="0"};
var rba=function(){var a=bS.o,b="html5";null!=a&&(Ka(a,"android")?b="android":Ka(a,"ios")&&(b="ios"));return b};
var sba=function(a){C(a.C)&&(a.C="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.C};
var NU=function(a,b,c){this.D=b;this.B=c;this.C=null;this.o=new Hm(this);this.J=a;this.A=this.j=null;this.G=!1};
var vba=function(a){if(null===a.C)OU(a);else{var b=new P(a.C.j),c=D(b.j.get("vid")),b=D(b.j.get("cmsid")),d=a.B.K,e=a.B.J;a.B.K=c;a.B.J=b;if(C(D(c))||C(D(b)))OU(a);else if(c==d&&b==e)OU(a);else{var f=a.D.Be();f.setVideoContent(c,b);Eaa(f,a.C);a.A=new Sd(100);Im(a.o,a.A,"tick",function(){var a;a:{var b=fS(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&OU(this)},a);
a.A.start()}}};
var wba=function(a){a.j=new Sd;Nm(a.o,a.j,"tick",function(){OU(this)},a);
Td(a.j,a.J);a.j.start()};
var OU=function(a){null!=a.o&&(a.o.dispose(),a.o=null);null!=a.j&&(a.j.stop(),a.j=null);null!=a.A&&(a.A.stop(),a.A=null);a.G=!0;null===a.F||a.F()};
var PU=function(){fd.call(this);this.j=new yg;this.o=null;this.F=new Hm(this);J(this,this.F);this.C="";this.G=this.A=null};
var QU=function(){null!=RU||(RU=new PU);return RU};
var SU=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;QU().Z(new GK("measurable_impression",null,c))};
var TU=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;QU().Z(new GK("viewable_impression",null,c))};
var UU=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;QU().Z(new GK("externalActivityEvent",null,d))};
var xba=function(a,b){a.A=b};
var yba=function(a,b){if(a.o){var c=200,d=XK();aL(d,31061771)?c=300:aL(d,31061772)?c=400:aL(d,31061773)&&(c=500);var e=a.j,c=window.setTimeout(function(){b("timeout");F(e.Na(),function(a){e.get(a)===b&&e.remove(a)})},c);
a.j.set(c,b);d={};a.B&&(d.isFullscreen=a.B.Od());d.osdId=a.C;d.eventId=c;ML.getInstance().j&&(a.D=K(),d.loggingId=Math.random(),NL(ML.getInstance(),43,{step:"sendingMessage",logid:d.loggingId,time:a.D}));a.o.send("activityMonitor","fetchAdTagUrl",d)}else b("")};
var zba=function(a,b,c,d){if(a.o){var e=a.j,f=window.setTimeout(function(){d({viewability:"timeout"});F(e.Na(),function(a){e.get(a)===d&&e.remove(a)})},200);
a.j.set(f,d);var k={};a.B&&(k.isFullscreen=a.B.Od());a.C&&(k.osdId=a.C);k.queryId=c;k.eventId=f;k.vastEvent=b;k.isOverlay=null!=a.A;a.A&&(k.overlayBounds=MP(a.A));a.o.send("activityMonitor","reportVastEvent",k)}else d({})};
var VU=function(){};
var WU=function(a,b,c){this.o=a;this.j=c;this.A=b};
var Aba=function(a){this.A=a};
var XU=function(a){this.A=a;this.o=this.j=!1};
var Bba=function(a,b,c){this.j=a;this.o=b;this.A=c};
var YU=function(){this.j=new yg};
var ZU=function(a,b,c){if((0,window.isNaN)(c))throw Error("Incorrect time offset.");var d=[];zg(a.j,c)&&(d=a.j.get(c,[]));F(b,function(a){null!=a&&nb(d,a)});
a.j.set(c,d)};
var $U=function(a,b){this.j=a;this.o=b};
var Cba=function(a){var b=new YU;F(uf(wf(a.j)),function(a){switch(a.nodeName){case "Preroll":a=aV(this,a);ZU(b,a,0);break;case "Midroll":var d=JS(a,"timeOffset"),e=NS(d);if(-1==e)throw tL(bV,null,"timeOffset",D(d));a=aV(this,a);ZU(b,a,e);break;case "Postroll":a=aV(this,a);ZU(b,a,-1);break;default:throw tL(cV,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.j.Na().length)throw tL(Dba);return b};
var aV=function(a,b){var c=[];F(uf(b),function(a){switch(a.nodeName){case "Ad":var b=D(KS(a));if(!C(b)){a=JS(a,"bumper");var f=this.o.clone();f.j=b;b=new XU(f);b.j=null!=a;b.o="always"==a;nb(c,b)}break;default:throw tL(cV,null,a.parentNode.nodeName,a.nodeName);}},a);
return c};
var dV=function(){this.B=null;this.C="http://www.google.com/adsense/support";this.D=0;this.j=15;this.A=5;this.o=3};
var Eba=function(a,b){a.j=b};
var eV=function(a,b,c,d,e,f,k,l,m,p,u){dT.call(this,p,u);this.C=a;this.D=b;this.A=c;this.F=m;this.H=k;this.B=f;this.o=e};
var fV=function(){};
var Fba=function(a,b){var c;F(uf(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new dV:null;break;case "params":null!=c&&Gba(this,c,a)}},a);
return c};
var Gba=function(a,b,c){F(uf(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.C=c;break;case "attribution_text":b.B=c;break;case "signals":b.D=(0,window.parseInt)(c,10)}},a)};
var gV=function(){};
var hV=function(){};
var iV=function(){};
var jV=function(){};
var kV=function(a,b){a[b]||(a[b]=[]);return a[b]};
var lV=function(a,b){return a[b]?a[b].length:0};
var mV=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&&Hba(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0};
var Hba=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(!mV(a,b))return!1}else return!1;return!0};
var nV=function(a){this.j=a||{}};
var oV=function(a){this.j=a||{}};
var pV=function(a){this.j=a||{}};
var qV=function(a){this.j=a||{}};
var rV=function(a){this.j=a||{}};
var sV=function(a){this.j=a||{}};
var tV=function(a){this.j=a||{}};
var uV=function(a){this.j=a||{}};
var vV=function(a){this.j=a||{}};
var wV=function(a){this.j=a||{}};
var xV=function(a){this.j=a||{}};
var yV=function(a){this.j=a||{}};
var zV=function(a){this.j=a||{}};
var AV=function(a,b){return new oV(kV(a.j,"card")[b])};
var BV=function(a){return(a=a.j.placement)?new qV(a):CV};
var DV=function(a){a=a.j.show_in_endcap;return null!=a?a:!1};
var EV=function(){if(!FV){var a={};FV={Kb:a};a.type={type:"e",label:1,la:0};a.id={type:"s",label:1,la:""};a.link_url={type:"s",label:1,la:""};a.title={type:"s",label:1,la:""};a.image={type:"m",label:1,la:Iba,qa:GV()};a.event={type:"m",label:3,qa:HV()};a.target={type:"s",label:1,la:""}}return FV};
var HV=function(){if(!IV){var a={};IV={Kb:a};a.type={type:"e",label:1,la:0};a.base_url={type:"s",label:1,la:""}}return IV};
var GV=function(){if(!JV){var a={};JV={Kb:a};a.image_url={type:"s",label:1,la:""};a.thumbnail_url={type:"s",label:1,la:""};a.image_height={type:"i",label:1,la:0};a.image_width={type:"i",label:1,la:0}}return JV};
var KV=function(a,b,c){dT.call(this,c);this.o=a;this.A=b||null};
var LV=function(a){this.j=a};
var MV=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.Kb[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]=NV[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.Kb[f.nodeName],l=MV(a,f,k.qa);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d};
var OV=function(a,b){dT.call(this);this.A=a;this.o=D(b)};
var PV=function(a,b){this.logger=null;this.A=b;this.j={};this.o=[];this.j.CustomTracking=aT;this.j.UI=this.C};
var QV=function(a,b){if(null==b)return null;var c={};F(uf(b),function(a){c[a.nodeName]=null!=this.j[a.nodeName]?this.j[a.nodeName].call(this,a):null},a);
return null==c.UI?null:c};
var RV=function(a,b,c,d,e,f){dT.call(this,f);this.A=a;this.C=b;this.D=c;this.B=d;this.o=e};
var SV=function(a){return null!=a.o?a.o.length:0};
var TV=function(){PV.call(this,0,"mute_");this.j.SurveyOptions=this.B};
var UV=function(a,b,c,d){dT.call(this);this.B=a;this.A=b;this.C=c;this.o=d};
var VV=function(){};
var WV=function(){dT.call(this)};
var XV=function(){};
var Jba=function(a,b){F(uf(b),function(a){a.nodeName==this.j.Tu&&KS(a)},a)};
var YV=function(a,b,c,d){dT.call(this);this.A=a;this.B=b;this.C=c;this.o=d};
var ZV=function(){};
var $V=function(a){dT.call(this);this.o=a};
var aW=function(){};
var bW=function(a,b,c,d,e,f){dT.call(this,e);this.B=a;this.C=b;this.D=c;this.A=d;this.o=f||null};
var cW=function(){PV.call(this,0,"why_this_ad_");this.o.push("targeting_reason")};
var dW=function(a,b){return null!=a?Ig(b,function(b){return b in a}):!1};
var Kba=function(a,b){return null!=a?Lh(b,function(b){return b in a}):!1};
var eW=function(){};
var fW=function(){dT.call(this)};
var gW=function(){};
var hW=function(){};
var Lba=function(a,b){this.j=a;this.o=b};
var iW=function(a,b,c){this.j=a;this.o=b;this.A=c};
var qS=function(a){a=VT(a.j.getAd());return null!=a?a.j:window.NaN};
var iU=function(a,b){a.j.P=b;F(a.o,function(a){iU(a,b)},a)};
var Mba=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Fb?'<a class="text-image-link" target="_blank" href="'+Y(a.Fb)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+Y(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+Y(a.duration)+"</div>":"")+"</a>":"")+(a.Fb?'<a class="text-title" href="'+Y(a.Fb)+'" target="_blank" dir='+Y(a.dir)+">"+Y(a.title)+"</a>":"")+'<div class="text-description" dir='+
Y(a.dir)+">"+Y(a.text)+"</div>"+(a.gr&&a.Fb?'<a target="_blank" href="'+Y(a.Fb)+'" class="text-ad-channel">'+Y(a.gr)+"</a>":"")+"</div></div>"};
var Nba=function(a){return'<div class="flash-container '+(a.df?"click-capture":"")+'">'+(a.Fb?'<a class="click-layer" target="_blank" href="'+Y(a.Fb)+'"></a>':"")+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+Y(a.width)+'" height="'+Y(a.height)+'"><param name="movie" value="'+Y(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+
VQ(a.Fb)+'"><embed width="'+Y(a.width)+'" height="'+Y(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+Y(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+VQ(a.Fb)+'"></object></div>'};
var Oba=function(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';">'+(a.Fb?'<a target="_blank" href="'+Y(a.Fb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0"></a></div>'};
var Pba=function(a){return'<div class="image-container" id="'+Y(a.id)+'">'+(a.Fb?'<a target="_blank" href="'+Y(a.Fb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};
var jW=function(a,b,c,d){uT.call(this,a,b,"Static",c,d);this.Fn=!1};
var kW=function(a,b,c,d){uT.call(this,a,b,"Html",c,d)};
var lW=function(a,b,c,d){uT.call(this,a,b,"Static",c,d)};
var mW=function(a,b){uT.call(this,a,b,"Static","text","")};
var nW=function(a,b,c,d,e){uT.call(this,a,b,c,d,e)};
var oW=function(a,b,c){if(kb(c))return new uT(a,b,"",null,"");var d=pW(c);c=d.o;var e=d.j,d=d.A;switch(c){case "Html":return new kW(a,b,e,d);case "Static":switch(pT[e]){case "Image":return new lW(a,b,e,d);case "Flash":return new jW(a,b,e,d);case "Text":return new mW(a,b)}}return new nW(a,b,c,e,d)};
var pW=function(a){var b=db(a,function(a){return"Static"==a.o&&"Flash"==pT[a.j]}),c=db(a,function(a){return"IFrame"==a.o}),d=db(a,function(a){return"Html"==a.o}),e=db(a,function(a){return"Static"==a.o&&"Image"==pT[a.j]}),f=db(a,function(a){return"Static"==a.o&&"Text"==pT[a.j]});
return sS&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};
var Qba=function(a,b,c,d,e,f){var k=pW(f),l=oW(a.id,a.size,[k]);l.C=!0;l.G=a.apiFramework;l.N=b;l.H=c;l.j=d;e&&(l.Af=e);ob(f,k);var m=[];F(f,function(f){f=oW(a.id,a.size,[f]);f.C=!0;f.G=a.apiFramework;f.N=b;f.H=c;f.j=d;e&&(f.Af=e);m.push(new iW(f,[],a.adSlotId))});
return new iW(l,m,a.adSlotId)};
var qW=function(a,b,c){this.o=a;this.j=b;this.A=c};
var rW=function(a,b,c,d,e,f,k){this.A=a;this.H=b;this.C=c;this.D=d;this.o=e;this.F=f;this.G=k;this.j=this.A.we()};
var Rba=function(a){"none"==a.j.style.display&&(ng(a.j,!0),F(a.G,function(a){oL(a)}))};
var Sba=function(a,b,c,d,e,f,k,l,m,p){b=oW("icon"+a,b,p);b.G=k;b.N=l.iconClickThrough;return new rW(b,a,c,d,e,f,m)};
var sW=function(a){this.B=a;this.logger=null};
var tW=function(a){if(null==a)return!1;a=wf(a);return null!=a&&"VAST"==a.nodeName};
var uW=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 Tba=function(a){var b=[],c=wf(a.B),d=uW(c);LS(c,a.j.$s,function(a){var c;c=vW(a);if(null==c)throw GS(a);var k=a.getAttribute(this.o.uh);a=Number(a.getAttribute(this.o.cn));c=Uba(this,c,k||null,a||0);null!=c&&(c.ga=d,b.push(c))},a);
return b};
var vW=function(a){var b=null;F(uf(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw GS(a);}});
return b};
var Uba=function(a,b,c,d){var e,f,k=[],l=[],m=[],p=[],u=new yg,t,w=b.nodeName==a.j.WRAPPER,z=w,E=w,M;F(uf(b),function(a){switch(a.nodeName){case this.j.Uu:if(w){if(null!=t)throw HS(a);t=KS(a);M=Uaa(t);z=OS(b.getAttribute(this.o.jt),z);E=OS(b.getAttribute(this.o.Xt),E)}else throw GS(a);break;case this.j.ft:e=KS(a);break;case this.j.gt:f=KS(a);break;case this.j.Lt:KS(a);break;case this.j.Ru:KS(a);break;case this.j.wh:a=KS(a);bT(a)&&k.push(PS(a));break;case this.j.ERROR:a=KS(a);l.push(PS(a));break;case this.j.Ft:a=
Vba(this,a);m=a.creatives;p=a.Dv;break;case this.j.Ut:u=Wba(this,a,M)}},a);
return new BT(D(c),e,Xba(e),f,0,0,d,l,k,m,p,u,t,z,E,Yba(u))};
var Yba=function(a){var b=null;a=a.get("AdSense");null!=a&&(a=eT(a,"vast2tracking"),null!=a&&!kb(a)&&(b=a[0]));return b};
var Xba=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 Zba=function(a){if(C(D(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}};
var Wba=function(a,b,c){var d=new yg;try{var e=IS(b,a.j.Tt);F(e,function(a){var b=a.getAttribute(this.o.pn);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new gW).parse(a);break;case "pod":a=(new eW).parse(a);break;case "waterfall":a=(new hW).parse(a);break;case "dart":a=(new hV).parse(a);break;case "dfp":b="DFP";a=(new iV).parse(a);break;case "adsense":b="AdSense";a=(new gV).parse(a);break;case "textad":b="TextAd";a=(new ZV).parse(a);break;case "templatead":b="TemplateAd";a=(new XV).parse(a);
break;case "infocards":var b="InfoCards",e=new LV(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new LV(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,m=IS(a,"AdXml");1==m.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+yz(wf(m[0])));a=IS(a,"VASTAdTagURI");m=null;1==a.length&&(m=a[0].textContent);a=new OV(e,m)}else a=null;break;case "viral":b="viral";a=(new aW).parse(a);break;case "adx":b="adx";a=(new gT).parse(a);break;case "why_this_ad":b=
"why_this_ad";a=(new cW).parse(a);break;case "mute":b="mute";a=(new TV).parse(a);break;case "sodar":a=(new VV).parse(a);break;default:e=new jV,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(Vaa(e,a.j),d.set(b,e)):d.set(b,a))},a)}catch(f){if(!ga(f.getErrorCode)||1105==f.getErrorCode())throw f;
}return d};
var Vba=function(a,b){var c=[],d=[];LS(b,a.j.Et,function(a){var b=a.getAttribute(this.o.cn),k;C(D(b))||(k=(0,window.parseFloat)(b));var l=a.getAttribute(this.o.uh),m=!1;F(uf(a),function(a){switch(a.nodeName){case this.j.LINEAR:if(m)throw HS(a);a=$ba(this,a,(0,window.isNaN)(k)?0:k,l||null);ub(c,a);m=!0;break;case this.j.COMPANION_ADS:if(m)throw HS(a);a=wW(this,a,(0,window.isNaN)(k)?void 0:k);ub(d,a);m=!0;break;case this.j.NON_LINEAR_ADS:if(m)throw HS(a);a=aca(this,a,(0,window.isNaN)(k)?0:k,l||null);
ub(c,a);m=!0}},this)},a);
return{creatives:c,Dv:d}};
var aca=function(a,b,c,d){var e=[],f=new US;F(uf(b),function(a){switch(a.nodeName){case this.j.xu:a=bca(this,a,c,d);null!=a&&e.push(a);break;case this.j.Ij:f=aT(a);break;default:throw GS(a);}},a);
0!=e.length||f.isEmpty()||(a=new uT(null,new te(-1,-1),"",null,""),a.j=c,a.ia=d,e.push(a));F(e,function(a){f&&(a.Af=f)});
return e};
var xW=function(a,b){var c={};c.id=b.getAttribute(a.o.uh);c.adSlotId=b.getAttribute(a.o.bt);c.apiFramework=b.getAttribute(a.o.qh);var d=Xa(b.getAttribute(a.o.yh)),e=Xa(b.getAttribute(a.o.rh));c.size=new te(d,e);d=b.getAttribute(a.o.Rt);e=b.getAttribute(a.o.Qt);C(D(d))||C(D(e))||(c.RJ=new te(Xa(d),Xa(e)));return c};
var bca=function(a,b,c,d){var e=xW(a,b);b.getAttribute(a.o.qh);b.getAttribute(a.o.Hu);b.getAttribute(a.o.nu);var f=b.getAttribute(a.o.vu),f=NS(f,-1),k=[];new yg;var l={},m="",p,u=[];F(uf(b),function(a){switch(a.nodeName){case this.j.zu:u.push(KS(a));break;case this.j.yu:p=KS(a);break;case this.j.Dj:l=yW(a);m=D(KS(a));break;case this.j.vh:case this.j.xh:case this.j.sh:a=zW(this,a);null!=a&&k.push(a);break;default:throw GS(a);}},a);
a=oW(e.id,e.size,k);lT(a,m,l);a.G=e.apiFramework;a.N=p;a.H=u;a.ga=f;a.j=c;a.ia=d;return a};
var zW=function(a,b){var c=JS(b,a.o.Gt);if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.j.xh:d="Static";break a;case a.j.vh:d="IFrame";break a;case a.j.sh:d="Html";break a;default:throw tL(cca,null,d);}var e=KS(b);null!=e||(e="");return new qW(d,c,e)};
var wW=function(a,b,c){var d=[],e=Zba(JS(b,a.o.Fu));LS(b,a.j.At,function(a){a=dca(this,a,c);null!=a&&d.push(a)},a);
return new Lba(d,e)};
var dca=function(a,b,c){var d=xW(a,b),e=[],f=new US,k,l=[];F(uf(b),function(a){switch(a.nodeName){case this.j.Ct:l.push(KS(a));break;case this.j.Ij:f=aT(a,!0);break;case this.j.Bt:k=KS(a);break;case this.j.kt:KS(a);break;case this.j.Dj:KS(a);break;case this.j.vh:case this.j.xh:case this.j.sh:a=zW(this,a);null!=a&&e.push(a);break;default:throw GS(a);}},a);
return kb(e)?null:Qba(d,k,l,c,f,e)};
var $ba=function(a,b,c,d){var e=new US,f={},k="",l=[],m,p=new yg,u=[],t=[],w,z=cT(JS(b,a.o.Ku));F(uf(b),function(a){switch(a.nodeName){case this.j.$t:t=eca(this,a);break;case this.j.Dj:f=yW(a);k=D(KS(a));break;case this.j.Fj:w=NS(KS(a),0);break;case this.j.Ij:e=aT(a);break;case this.j.ru:u=fca(this,a);break;case this.j.Vu:a=gca(this,a);p=a.customClicks;m=a.clickThrough;l=a.clickTrackingUrls;break;default:throw GS(a);}},a);
F(l,function(a){ZS(e,"click",a)});
a=new rT(w,m,p,u,z,t);lT(a,k,f);a.j=c;a.ia=d;e&&(a.Af=e);return a};
var gca=function(a,b){var c,d=[],e=new yg;F(uf(b),function(a){switch(a.nodeName){case this.j.xt:c=KS(a);break;case this.j.zt:a=KS(a);d.push(a);break;case this.j.It:var b=JS(a,this.o.uh);null!=b||(b="");var l=e.get(b,[]);l.push(KS(a));e.set(b,l);break;default:throw GS(a);}},a);
return{clickThrough:c,clickTrackingUrls:d,customClicks:e}};
var fca=function(a,b){var c=[];LS(b,a.j.qu,function(a){var b=JS(a,this.o.Kt),f=JS(a,this.o.pn),k=JS(a,this.o.Wu),l=Xa(a.getAttribute(this.o.yh)),m=Xa(a.getAttribute(this.o.rh)),p=a.getAttribute(this.o.qh),u=KS(a),t=MS(a.getAttribute(this.o.Ym)),w=MS(a.getAttribute(this.o.uu));a=MS(a.getAttribute(this.o.pu));b=new qT(b,f,k,t,w,a,l,m,u,p);c.push(b)},a);
return c};
var eca=function(a,b){var c=[];LS(b,a.j.Zt,function(a){a=hca(this,a);null!=a&&c.push(a)},a);
return c};
var hca=function(a,b){var c=b.getAttribute(a.o.Bu),d=JS(b,a.o.Yu),e=JS(b,a.o.$u),f=Xa(b.getAttribute(a.o.yh)),k=Xa(b.getAttribute(a.o.rh)),f=new te(f,k),k=b.getAttribute(a.o.qh),l=cT(JS(b,a.o.Au)),m=b.getAttribute(a.o.Fj),m=NS(m,-1),p=[],u=[],t={};F(uf(b),function(a){switch(a.nodeName){case this.j.du:u.push(KS(a));break;case this.j.au:t=ica(this,a);break;case this.j.vh:case this.j.xh:case this.j.sh:a=zW(this,a);null!=a&&p.push(a);break;default:throw GS(a);}},a);
return kb(p)?null:Sba(c,f,d,e,m,l,k,t,u,p)};
var ica=function(a,b){var c=[],d;F(uf(b),function(a){switch(a.nodeName){case this.j.bu:d=KS(a);break;case this.j.cu:c.push(KS(a));break;default:throw GS(a);}},a);
return{iconClickThrough:d,TJ:c}};
var yW=function(a){a=KS(a);return null!=a?Kaa(a):{}};
var AW=function(a,b){this.o=a;this.j=b};
var jca=function(a){var b=[],c=IS(a,"vmap:Extensions")[0];if(c){var d;LS(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=IS(d,"yt:BreakTime"),!kb(b)))return Q(b,function(a){return JS(a,"timeOffset")})}return[JS(a,"timeOffset")]};
var kca=function(a){var b=new YU;F(uf(wf(a.o)),function(a){if("vmap:AdBreak"==a.nodeName){var d=lca(this,a);a=jca(a);F(a,function(a,c){var k=NS(a);0<c&&(d=mca(this,d));if("start"==a||0==k)ZU(b,d,0);else if("end"==a)ZU(b,d,-1);else{if(-1==k)throw tL(bV,null,"timeOffset",D(a));ZU(b,d,k)}},this)}},a);
if(0==b.j.Na().length)throw tL(BW);return b};
var mca=function(a,b){return Q(b,function(a){var b=new XU(a.A.clone());b.j=a.j;b.o=a.o;return b},a)};
var nca=function(a){a=JS(a,"timeOffset");var b=NS(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b};
var oca=function(a){return(a=db(uf(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?db(uf(a),function(a){return"VAST"==a.nodeName}):null};
var lca=function(a,b){var c=[],d="",e=null,f=!1,k=!1;F(uf(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=zz(a,"vmap:VASTData/VAST")||zz(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=oca(a));if(!e){var c=IS(a,"vmap:AdTagURI"),l="";c.length&&(l=D(KS(c[0])));if(C(l))throw tL(pca,null,a.parentNode.nodeName,a.nodeName);d=l}}break;case "vmap:Extensions":a=IS(a,"vmap:Extension"),a=qca(this,a),null!=a&&(f=!0,a=JS(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a);
var l=null;e?l=rca(a,e):C(d)||(l=sca(a,d));l&&(OK()&&(l.ah=nca(b)),l=new XU(l),l.j=f,l.o=f&&!k,nb(c,l));return c};
var qca=function(a,b){return db(b,function(a){return"bumper"==JS(a,"type")},a)};
var sca=function(a,b){var c=a.j.clone();C(c.o)||(c.o="");c.j=b;return c};
var rca=function(a,b){var c=a.j.clone();c.o=yz(b);c.j="";return c};
var tca=function(a,b){if(null!=a){var c;null!=a?(c=wf(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return LU.getInstance().o=!1,new $U(a,b);null!=a?(c=wf(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return LU.getInstance().o=!1,new AW(a,b);if(tW(a)){if(!tW(a))throw tL(cV);c=wf(a);var d=uW(c);if(1>d||3<d)throw tL(uca);c=IS(c,"Ad");if(kb(c))throw tL(CW);c=vW(c[0]);if(null==c)throw tL(DW);if(1!=IS(c,"AdSystem").length)throw tL(DW);return new sW(a)}}return null};
var EW=function(){};
var FW=function(a,b){this.o=a;this.A=b};
var GW=function(a,b){"auto"!=a.o.Re&&"click"!=a.o.Re||b.set("vpa",a.o.Re)};
var HW=function(a){C("")||(a.set("mpt",""),C("")||a.set("mpv",""))};
var IW=function(a,b){var c=a.A.o;null!=c&&b.set("js","ima-"+c);c=a.o.J;null!=c&&b.set("mv",c+"."+(a.o.H||""))};
var JW=function(a,b){b.set("osd",2);-1!=a.A.H&&b.set("frm",a.A.H);var c=a.A.T;null!=c&&b.set("ms",c);b.set("sdr",1)};
var KW=function(a){return PK.j?"h.3.0.0":null!=a.A?QR(a.A):null};
var LW=function(){this.j=["video"]};
var MW=function(a,b,c){var d={};a=new NW(a,n(b)?b:null,n(c)?c:null);OW(d,a);b=a.error;d.ERRORCODE=1E3>b.j?b.j:900;PW(d);QW(d,a);RW(d,a);b=a.error.getErrorCode();d.ERROR_MSG=a.error.getMessage();d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=jb(vca,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d};
var SW=function(a,b){var c={},d=new NW(null,a,n(b)?b:null);OW(c,d);PW(c);QW(c,d);RW(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.j){var e=d.j.A,f=null!=e&&null!=e.yb&&null!=e.yb.GET_MIDROLL_POSITION_IN_SEC?e.yb.GET_MIDROLL_POSITION_IN_SEC:null;null!=e&&null!=e.re&&null!=e.re.video_start_delay?(e=e.re.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.j.C,c.BREAK_TYPE=0==e.A?"1":-1==e.A?"3":"2",c.SLOT_POS=e.o-1,
e=Math.round(e.j),0<e&&(c.MIDROLL_POS=f&&f(e)?f(e):e))}wca(c,d);xca(c,d);d=a.ta;for(f=a;null!=f;)d=f.ia+","+d,f=f.j;c.RWT=d;return c};
var NW=function(a,b,c){this.error=a;this.j=b;this.display=c};
var yca=function(){var a=QP();if(null!=a)return a.moatInit};
var TW=function(a,b,c,d){OK()&&zca(c,b)?(d=d(),null!=d&&(a[c]=d,qL.Yo(b)&&(a[c]=(0,window.encodeURIComponent)(a[c])))):a[c]=""};
var zca=function(a,b){return Lh(Aca[a],function(a){return null!=b.match(a)})};
var OW=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 xca=function(a,b){a.AD_CPN={toString:function(){return b.display.jf()}};
a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}};
a.MT={toString:function(){if(FT(b.j)){var a=b.j.C;return 0<a.j?Math.round(1E3*a.j).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.Rc()?b.display.Rc().width.toString():""}};
a.P_H={toString:function(){return null!=b.display&&null!=b.display.Rc()?b.display.Rc().height.toString():""}}};
var PW=function(a){a.SDKV=QR(bS);a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}}};
var QW=function(a,b){if(null!=b.j&&null!=b.j.A&&null!=b.j.A.yb&&OK()){var c=b.j.A.yb;F(Bca,function(b){b in c&&(a[b]=c[b])})}};
var RW=function(a,b){if(null!=b.j){a.AD_ID=fba(b.j);a.AD_SYS=gba(b.j);var c=aU(b.j);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.display){var a=eQ(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=DT(b.j).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 wca=function(a,b){null!=b.j&&(a.AD_LEN={toString:function(){var a=kU(b.j);return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.display?b.display.uf()?"0":Math.round(100*b.display.kd()).toString():""}})};
var UW=function(a,b,c){if(null!=c){var d;null==b.C&&(b.C=new MR);d=b.C;var e;null!=c&&d.o!=c?(d.j=1,d.o=c):d.j=null!=c?d.j+1:1;e=d.j;1!=e&&a.set("ad_block",e);null==b.L&&(b.L=new NR);e=b.L;var f=c!=b.P;(d=0==d.j%100||f)||(d=36E5<(null===e.j?0:(new Ry).getTime()-e.j));d&&e.reset();b.P=c;b=e.o;null!==b&&a.set("tok",b)}};
var VW=function(a,b){a.set("sz",Math.max(null!=b.sf?b.sf:0,null!=b.Cc?b.Cc:0)+"x"+Math.max(null!=b.rf?b.rf:0,null!=b.Bc?b.Bc:0))};
var WW=function(a){var b={};b.u_tz=-(new Date).getTimezoneOffset();var c;try{c=X.history.length}catch(e){c=0}b.u_his=c;b.u_java=!!X.navigator&&"unknown"!=typeof X.navigator.javaEnabled&&!!X.navigator.javaEnabled&&X.navigator.javaEnabled();X.screen&&(b.u_h=X.screen.height,b.u_w=X.screen.width,b.u_ah=X.screen.availHeight,b.u_aw=X.screen.availWidth,b.u_cd=X.screen.colorDepth);X.navigator&&X.navigator.plugins&&(b.u_nplug=X.navigator.plugins.length);X.navigator&&X.navigator.mimeTypes&&(b.u_nmime=X.navigator.mimeTypes.length);
for(var d in b)a.set(d,b[d]);a.set("dt",Cca)};
var XW=function(a){if(a.yb&&a.yb.LACT){var b=a.yb.LACT.toString();if(b)return $a(b)}return a.G};
var YW=function(a){return OK()&&a.Pc&&a.Pc("send_presence_signal_vis")&&a.yb&&a.yb.VIS?a.yb.VIS.toString():null};
var ZW=function(a,b,c,d){var e=new yg;dL()||e.set("ad_type",c.adType);sS&&e.set("flash",$M);VW(e,a);$W(c)&&(e.set("ea","0"),null!=a.Cc&&null!=a.Bc&&e.set("image_size",aX(c,a.Cc,a.Bc,a.hf)));bX(e,d);e.set("lact",XW(a));(c=YW(a))&&e.set("yt_vis",c);e.set("videoad_start_delay",a.ah);WW(e);cX(a,e,!0);UW(e,b,a.C);return e};
var cX=function(a,b,c){C(D(a.referrer))||(a=a.referrer,c&&(a=ua(a)),dX("ref",a,b))};
var eX=function(a,b,c){a=null!=b?b.split("_"):a;F(a,function(a){if(!Vb(Dca,a))throw tL(kR,null,"ad_type",String(b));});
if(c){var d=[];F(a,function(a){ib(fX,a)||d.push(a)});
a=d}if(!KL()){d=[];F(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw tL(gX,null,"skippablevideo");a=d}return a};
var hX=function(a,b){return null!=b?b.split(/[+, ]/):a};
var aX=function(a,b,c,d){a.o&&(c=Math.min(c,90));var e=0,f=0;XK();a=!OK();d=d&&a;a&&(e=15,f=65);var k=[];F(Eca,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 iX=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)};
var jX=function(a,b){return null!=b?String(b):null!=a?a:null};
var kX=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 lX=function(a,b,c){return null!=b&&Vb(c,b)?b:a};
var $W=function(a){return Lh(fX,function(b){return ib(a.j,b)})};
var bX=function(a,b){sS?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.A;null!=c&&0<c.length&&(c=c[0].D,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}};
var dX=function(a,b,c){null!=b&&c.set(a,b)};
var mX=function(a,b,c){FW.call(this,a,b);var d=new LW;a=nh(new P(a.j));d.Sk=lX(d.Sk,a.get("cust_age"),Fca);d.Ah=lX(d.Ah,a.get("adsafe"),nX);d.j=eX(d.j,a.get("ad_type"));d.adType=d.j.join("_");d.Oj=iX(d.Oj,a.get("videoad_start_delay"));d.Pj=jX(d.Pj,a.get("slotname"));d.Rk=kX(d.Rk,a.get("adtest"));d.Qj=kX(d.Qj,a.get("scs"));d.Rj=jX(d.Rj,a.get("alternate_ad_url"));d.channels=hX(d.channels,a.get("channel"));d.gk=iX(d.gk,a.get("cpm"));d.qg=jX(d.qg,a.get("description_url"));d.experimentIds=jX(d.experimentIds,
a.get("eid"));d.gender=lX(d.gender,a.get("cust_gender"),Gca);d.o=kX(d.o,a.get("overlay"));d.host=jX(d.host,a.get("host"));d.A=hX(d.A,a.get("h_ch"));d.hostTierId=iX(d.hostTierId,a.get("ht_id"));d.Tk=kX(d.Tk,a.get("lsv"));var e;null!=this.o.language?e=this.o.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=jX(f,e);var k;null!=e&&!C(D(e))&&(k=NK(e));d.language=jX(d.language,k);d.Ko=iX(d.Ko,a.get("linearAdSlotWidth"));
d.Jo=iX(d.Jo,a.get("linearAdSlotHeight"));d.yi=iX(d.yi,a.get("max_ad_duration"));d.rl=iX(d.rl,a.get("min_ad_duration"));d.zi=iX(d.zi,a.get("sdmax"));d.Mo=iX(d.Mo,a.get("nonLinearAdSlotWidth"));d.Lo=iX(d.Lo,a.get("nonLinearAdSlotHeight"));d.yf=jX(d.yf,a.get("client"));d.Ii=jX(d.Ii,a.get("t_pyv"));k=a.get("sdki");d.Pi=iX(d.Pi,y(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=iX(d.tagForChildDirectedTreatment,a.get("tfcd"));d.Ul=lX(d.Ul,a.get("targeting"),Hca);d.pi=iX(d.pi,a.get("video_format"));
d.im=iX(d.im,a.get("video_cpm"));d.Uk=jX(d.Uk,a.get("loeid"));d.um=jX(d.um,a.get("yt_pt"));d.qm=jX(d.qm,a.get("ytdevice"));d.sm=jX(d.sm,a.get("ytdevicever"));d.tm=jX(d.tm,a.get("dbp"));d.B=jX(d.B,a.get("ms"));d.adBlock=iX(d.adBlock,a.get("adBlock"));d.url=jX(d.url,a.get("url"));d.Vj=jX(d.Vj,a.get("avo"));this.j=d;this.H=b;this.J=c;C(D(this.j.experimentIds))||(b=this.j.experimentIds.split(","),WK(XK(),b))};
var Ica=function(a){return Lh(Jca,function(a){return ib(this.j.j,a)},a)};
var oX=function(a){return OK()?1:ib(a.j.adType.split("_"),"text")?3:1};
var Kca=function(a){a=a.j.channels?a.j.channels:[];xb(a);a=wb(a,0,30);return a.join("+")};
var pX=function(a,b){return Math.round(1.1*(a||0)+0*b)};
var qX=function(a,b){FW.call(this,a,b)};
var rX=function(a,b){FW.call(this,a,b)};
var sX=function(a){FW.call(this,a,null)};
var tX=function(a){FW.call(this,a,null)};
var uX=function(a,b){FW.call(this,a,b);OK()&&this.o.Pc("doubleclick_gpt_retagging")&&(this.A.B=PR())};
var vX=function(a){if(C(D(a)))return!1;a=new P(a);if(!a.B||"http"!=a.B&&"https"!=a.B)return!1;a=a.o;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0};
var Lca=function(a){var b=[];F(a,function(a){0<a.length&&b.push(Q(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")};
var wX=function(a,b,c){uX.call(this,a,b);var d=XK();this.H=bL()?!1:C(D(a.A));a=new LW;dL()||(a.j=eX(a.j,this.o.A),a.adType=a.j.join("_"));a.experimentIds=jX(a.experimentIds,this.o.B);this.j=a;this.J=b;this.F=c;C(D(this.j.experimentIds))||WK(d,this.j.experimentIds.split(","))};
var Mca=function(a){var b=ZW(a.o,a.J,a.j,a.F);b.set("sdkv",KW(a));b.set("sdki",a.D().toString(16));return b};
var Nca=function(a,b){var c=Mca(a),d=Q(c.Na(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
oh(b,"afvparams",d.join("&"))};
var xX=function(a,b,c){FW.call(this,a,b);var d=XK();this.H=bL()?!1:C(D(a.A));d=new LW;dL()||(d.j=eX(d.j,this.o.A),d.adType=d.j.join("_"));d.experimentIds=jX(d.experimentIds,this.o.B);this.j=d;this.J=b;this.F=c;C(D(this.j.experimentIds))||(b=this.j.experimentIds.split(","),d=XK(),WK(d,b))};
var Oca=function(a){var b=ZW(a.o,a.J,a.j,a.F);b.set("sdkv",KW(a));return b};
var Pca=function(a,b){var c=Oca(a),d=Q(c.Na(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
zS(b,"afvparams",[ua(d.join("&"))])};
var yX=function(a){FW.call(this,a,null)};
var Qca=function(a){if(null==a.o||null==a.o.yb)return{};var b={},c=a.o.yb;F(Rca,function(a){a in c&&(b[a]=c[a])});
return b};
var Sca=function(a,b){var c;if(!ES(a.j)&&!FS(a.j)||(dL()?null==a.j||-1==a.j.search("afvbase="):C(D(a.A))||null==a.j||-1==a.j.search("afvbase=")))if(ES(a.j))c=new rX(a,bS);else if(BS(a.j))c=new mX(a,bS,b);else if(FS(a.j))c=new uX(a,bS);else if(DS(a))c=new qX(a,bS);else if(c=a.j,null!=c?(c=jh(new P(c)),c=ta(c,".fwmrm.net")):c=!1,c)c=new sX(a);else{c=a.j;if(null!=c){c=new P(c);var d=c.A;c=ta(c.o,"youtube.com")&&CS("/get_midroll_info",d)}else c=!1;c=c?new yX(a):new tX(a)}else c=ES(a.j)?new xX(a,bS,b):
new wX(a,bS,b);return c};
var Tca=function(a){a=be(a,function(a){return 0<dU(a)});
Cb(a,function(a,c){return dU(a)-dU(c)});
return a};
var Uca=function(a){return be(a,function(a){return-1==dU(a)})};
var zX=function(a){this.j=a};
var Vca=function(){this.j=0};
var Wca=function(a,b,c,d,e,f){var k=A(function(a){d(a,Error(Om(a)))},a),l=A(function(a){6==a?AX(this,b,!1,c,k,e,f):k(a)},a);
AX(a,b,!0,c,l,e,f)};
var AX=function(a,b,c,d,e,f,k){var l=new wn;l.U=c;xn(l,Xca(f));var m=new Hm,p=A(function(){m.dispose();l.dispose()},a);
c=A(function(){e(l.o);p()},a);
Nm(m,l,"success",function(){var a;try{a=l.j?l.j.responseXML:null}catch(b){a=null}if(null==a){var c=Jn(l);try{a=vz(c)}catch(b){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(wz&&(a=xz())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);
Nm(m,l,["error","timeout"],c,a);var u;"POST"==k&&(b=new P(b),u=b.j.toString(),gh(b,""),b=b.toString());a.j=K();l.send(iL(b),k,u)};
var BX=function(a,b,c){var d=null,e=c+b;F(a.B,function(f){if(wS(f.K,"rm")){var k=SW(a);LT(a)&&(k.FILLED_OPPORTUNITY=0);rL(a.J,k);(k=a.A)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof uT)0==c&&0==b||f instanceof mW?k=!0:(k=f.Wb(),k=k.width<=b&&k.height<=c);if(k&&(k=0==c&&0==b?0:c-f.Wb().height+b-f.Wb().width,"Flash"!=f.getContentType()||sS))if(null==d)d=f,e=k;else if(k==e&&f.j<d.j||k<e)d=f,e=k}});
UT(a,d)};
var CX=function(a){var b=null;F(a.B,function(a){a instanceof rT&&(null===b||a.j<b.j)&&(b=a)});
UT(a,b)};
var DX=function(a,b,c,d){this.B=a;this.H=b;this.ads=0<this.B.length?this.B:this.H;this.D=c;this.C=this.K=!0;this.o=-1;this.j=null;this.F=0;this.P=d;this.logger=null};
var EX=function(a,b,c){null!=a.j?Yca(a,b,c):a.jd()?Zca(a,b,A(function(a){!this.jd()||!OK()&&301==a.getErrorCode()?c(a):EX(this,b,c)},a)):c(new EK("adLoadError","The ad source contains no more ads.",1005))};
var $ca=function(a,b){a.C=b;a.ads=a.J(a.B,a.H);a.o=-1};
var ada=function(a,b,c,d){var e=a.D.clone();e.o="";e.j=b.La;FX(a,b,e,c,d)};
var FX=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.A,null!=f&&(c.o=f));a.P.fetch(c,A(function(a){a instanceof DX?(bda(a,b,this.C&&b.Ca,b.Fa),d(a)):a instanceof zX?e(new EK("adLoadError","Ad source cannot contain playlist response.",2)):e(new EK("adLoadError","Unknown ad source.",2))},a),e)};
var cda=function(a){var b=0;for(a=a.j;null!=a;)a=a.j,b++;return b};
var Yca=function(a,b,c){a.j.jd()?EX(a.j,A(function(a){this.A(a,b,A(function(a){this.jd()?EX(this,b,c):c(a)},this))},a),A(function(a){GX(this.ads[this.o],a);
this.j=null;OK()||301!=a.getErrorCode()?this.jd()?EX(this,b,c):c(a):c(a)},a)):(0==a.j.F&&GX(a.ads[a.o],tL(HX)),a.j=null,EX(a,b,c))};
var GX=function(a,b){if(b.o){1012==b.getErrorCode()&&(b=tL(IX));var c=MW(b,a);rL(a.$,c)}};
var Zca=function(a,b,c){a.o++;var d=a.ads[a.o];d.P||d.L?d.L?ada(a,d,A(function(a){this.j=a;EX(this,b,c)},a),A(function(a){a=JX(a);
GX(d,a);c(a)},a)):4<=cda(d)?(a=tL(dda,null,"4"),GX(d,a),c(a)):a.K?a.G(d,A(function(a){this.j=a;
EX(this,b,c)},a),A(function(a){a=JX(a);
GX(d,a);c(a)},a)):c(tL(eda)):a.A(d,b,c)};
var JX=function(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=tL(HX)}return a};
var bda=function(a,b,c,d){F(a.ads,function(a){a.j=b});
$ca(a,c);a.K=d};
var KX=function(a,b,c,d){DX.call(this,[],a,b,c);this.L=d};
var LX=function(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.j=d;this.D=e};
var fda=function(a,b,c,d){var e;try{e=vz(b.o)}catch(f){d(tL(cV,f));return}null!=e?MX(a,e,b,c,d):d(tL(cV))};
var NX=function(a,b,c,d){var e;if(e=null!=b.j){a:{try{va(b.j)}catch(f){e=!1;break a}e=!0}e=!e}e?d(tL(gda,null,b.j)):PK.B?yba(QU(),A(a.o,a,b,c,d)):a.o(b,c,d)};
var hda=function(a){var b="third_party";BS(a.j)?b="adsense":ES(a.j)?b="dart":FS(a.j)?b="xfp":DS(a)&&(b="dbm");a={rt:b};NL(ML.getInstance(),17,a,!0)};
var MX=function(a,b,c,d,e){var f;try{var k=tca(b,c);if(!k)throw tL(cV);f=k.A();ida(a,f,c,d)}catch(l){l instanceof EK?e(l):e(tL(jda,l))}};
var ida=function(a,b,c,d){var e=b.j;if(null!=e)d(new zX(e));else{var f=b.A;if(null==f)throw tL(CW);F(f,function(a){a.A=c;var d=KK();d&&LK(d,"useCompanionsAsEndSlate")&&(a.F=iba(a));if(a.A.Pc("enable_ad_video_end_renderers")){var e=a.getExtension("InfoCards");if(null==e)d=[];else for(var d=[],e=e.A?e.A:new nV,f=0;f<lV(e.j,"card");f++){var u=AV(e,f);DV(BV(u))&&d.push(u)}a.Ea=d}a.ia=this.A.j;OK()&&(a.za=b.o)},a);
e=Tca(f);f=Uca(f);0<f.length&&0<=cU(f[0])?d(new KX(f,c,a,a.C)):d(new DX(e,f,c,a))}};
var OX=function(a){this.j=a+K()};
var Xca=function(a){var b=K();a=a.j-b;return 0<a?a:0};
var kda=function(a,b){this.j=a;this.o=b;PK.j&&JP().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}bS.H=c};
var lda=function(a,b,c,d){var e=b.F;OK()&&e&&WK(XK(),e,!1);e=null;null!=a.j&&(e=new NU(1E3,a.j,a.o));var f=Paa(b);null!=f&&Oaa(b)&&(a.o.T=f);(new LX(a.o,new Vca,a.j,e,new OX(8E3))).fetch(b,A(function(a){a instanceof zX?c(a):mda(this,a,c,d)},a),d)};
var mda=function(a,b,c,d){var e=[],f=A(function(a,b){a.jd()?EX(a,A(function(b){e.push(b);f(a,null)},this),A(function(b){301==b.getErrorCode()?d(tL(PX)):f(a,b)},this)):0<e.length?c(e):(null==b&&(b=tL(BW)),1012==b.getErrorCode()&&(b=tL(IX)),d(b))},a);
f(b,null)};
var nda=function(a){this.A=a;this.o=new lo;this.j=!1};
var QX=function(a,b,c,d){var e=A(function(a){c(a);oo(this.o);this.j=!1;RX(this)},a),f=A(function(a){d(a);
oo(this.o);this.j=!1;RX(this)},a);
no(a.o,A(function(){lda(this.A,b,e,f)},a));
RX(a)};
var RX=function(a){if(!a.j){var b=po(a.o);null!=b&&(a.j=!0,b())}};
var SX=function(a,b,c){fd.call(this);this.B=new nda(new kda(b,c));this.C=a;this.o=b;this.j=!0;this.A=c};
var oda=function(a,b,c){if(a.j){var d=null!=c?c:{};LU.getInstance().end("rtr");tba(LU.getInstance(),b.j);LU.getInstance().start("vl");QX(a.B,b,A(function(a){TX(this,a,d)},a),A(function(a){UX(this,a,d)},a))}};
var pda=function(a,b,c){if(!a.j){var d=null!=c?c:{};QX(a.B,b,A(function(a){TX(this,a,d)},a),A(function(a){UX(this,a,d)},a))}};
var TX=function(a,b,c){if(a.j)b instanceof zX?(b=new VX(b.j,a),b.F=a.o,a.Z(new IU(b,c))):(b=WX(b),null!=b?(b.F=a.o,a.Z(new IU(b,c)),LU.getInstance().end("vl")):UX(a,tL(XX,null),c));else if(b instanceof zX)UX(a,tL(qda,null,"Unsupported ad format."),c);else{var d=new KU("adsLoaderSdkAdLoaded");d.C=b;d.B=c;a.Z(d)}};
var UX=function(a,b,c){a.j?("always"==PK.o&&null!=a.o&&CU(a.o,AU()),a.Z(new FK(b,c))):(c=new KU("adsLoaderSdkAdError"),c.j=b,a.Z(c))};
var rda=function(a){return'<div class="close-padding"><a class="close-button" title="'+Y(a.close)+'" role="button" tabindex="0"></a></div>'};
var sda=function(){return'<div class="recall-button"></div>'};
var tda=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="attribution-button">'+Y(a.text)+"</a>"};
var YX=function(a,b){this.H=a;this.G=O("div",{"class":"controls"});this.j=O("div",{"class":"adDisplay"});this.N=b||x;this.Qc=new Hm(this)};
var ZX=function(a){var b=O("div",{"class":"ima-container"});Mq(b,"opacity 0.4s");a.Qc.R(b,"mouseover",a.ix);a.Qc.R(b,"mouseout",a.TC);b.appendChild(a.G);a.G.appendChild(a.j);return b};
var $X=function(a,b){this.J=a;this.P=new yg;this.L=15E3;this.D=O("span");YX.call(this,a[0],b);this.j.appendChild(this.D)};
var aY=function(a,b){YX.call(this,a[0],b);this.B=a;L(this.j,"ima-container-stack")};
var bY=function(a,b,c,d,e){Mz.call(this);this.o=a;this.C=b;this.F=c;this.A=d;this.D=da(e)?e:[e]};
var cY=function(a,b,c,d,e){return new bY(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};
var uda=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="fullslot-attribution-button">'+Y(a.text)+"</a>"};
var vda=function(a){return'<div class="fullslot-autoclose">'+Y(a.pv)+"</div></div>"};
var dY=function(a){var b="";a=qa("Ad will close in {$xSeconds}",{xSeconds:Y(a.Wf)});return b+a};
var eY=function(a){fd.call(this);this.C=new Sd(200);J(this,this.C);this.o=0;this.B=!1;this.J=a;this.H=new Hm(this);this.H.R(this.C,"tick",this.UA)};
var fY=function(a){a.C.stop();a.B=!1};
var gY=function(a,b){fd.call(this);this.o=a;this.U=0;this.$=this.D=!1;this.B=0==SS(this.o.skipOffset)?3:1;this.G=this.H=this.j=this.A=this.ca=this.T=this.P=this.C=null;this.F=new Hm(this);this.J=this.L=this.K=null;this.Y=!1;this.X=new YP;this.N=new YP;this.da="";wda(this,b);this.F.R(this.X,"click",this.JC);ZP(this.X,this.A);this.F.R(this.N,"click",this.Sv);ZP(this.N,this.H)};
var wda=function(a,b){a.C=yQ(uaa);a.P=bf("videoAdUiPreSkipButton",a.C);a.T=bf("videoAdUiPreSkipText",a.P);a.ca=bf("videoAdUiPreSkipThumbnail",a.P);Cf(a.T,dR({Wf:hY(a)}));var c=jQ(a.o.Ea)||"";if(a.o.showContentThumbnail&&!C(D(c))){var d=nf("img");d.setAttribute("src",c);L(d,"videoAdUiPreSkipThumbnailImage");a.ca.appendChild(d)}else L(a.T,"videoAdUiPreSkipTextOnly");a.j=yQ(vaa,{skipText:Ra(La()),Tv:waa()});a.H=bf("videoAdUiExtendButton",a.j);a.A=bf("videoAdUiSkipButton",a.j);a.G=bf("videoAdUiAutoSkipText",
a.A);aL(XK(),9413054)&&(L(a.A,"autofocused"),a.F.R(a.A,"blur",A(function(){ae(this.A,"autofocused")},a)),a.A.autofocus=!0);
ng(a.C,!1);b.appendChild(a.C);0==SS(a.o.skipOffset)?a.Z("skipshown"):(ng(a.j,!1),mg(a.j,0));b.appendChild(a.j)};
var hY=function(a){return null!=a.o.skipOffset&&-1!=SS(a.o.skipOffset)?SS(a.o.skipOffset):-1};
var iY=function(a,b){var c=hY(a);if(!(0>c)){var c=Math.ceil(c-b),d=" "+c;60<=c&&(d=" "+vS(c));c=dR({Wf:d,Th:a.da});Cf(a.T,c)}};
var jY=function(a){return 3==a.B&&a.o.L&&20<a.U};
var kY=function(a){null!=a.J&&(Vd(a.J),a.J=null)};
var lY=function(a,b,c){fd.call(this);this.j=a;this.U=!1;this.za=c;this.ca=this.Y=this.X=this.D=this.J=this.K=this.G=this.da=this.$=this.L=this.o=null;this.oa=!1;this.ta=this.fa=this.ha=this.H=this.B=this.C=this.ga=this.T=this.N=this.F=null;this.A=new Hm(this);this.Ca=[];this.P=[];this.U=!this.j.B&&aL(XK(),9416126);a={Kc:this.j.Kc,Ef:this.j.Ef,se:this.j.se,Th:this.U?"redesign2014q4":""};this.o=yQ(this.j.G,a);this.A.R(this.o,"touchmove",this.Cx);this.T=bf("videoAdUiProgress",this.o);this.ga=bf("videoAdUiBuffer",
this.o);this.L=bf("videoAdUiAttributionContainer",this.o);this.$=bf("videoAdUiAttributionIconContainer",this.o);this.da=bf("videoAdUiAttribution",this.o);this.G=bf("videoAdUiVisitAdvertiserLinkText",this.o);this.K=bf("videoAdUiVisitAdvertiserIcon",this.o);this.J=bf("videoAdUiAuthorIcon",this.o);this.D=bf("videoAdUiAuthorName",this.o);this.X=bf("videoAdUiLearnMore",this.o);this.Y=bf("videoAdUiLearnMoreText",this.o);this.U?(this.H=bf("videoAdUiTopButtonShare",this.o),this.ha=bf("videoAdUiTopButtonShareTooltip",
this.o),this.fa=bf("videoAdUiTopButtonInfo",this.o),this.ta=bf("videoAdUiTopButtonWatchLater",this.o)):this.H=bf("videoAdUiShare",this.o);this.F=bf("videoAdUiTitle",this.o);this.N=bf("videoAdUiTopBar",this.o);this.ca=bf("videoAdUiBottomBar",this.o);null!=this.J&&this.A.R(this.J,"click",this.mv);null!=this.D&&(c=new YP,this.P.push(c),this.A.R(c,"click",this.nv),ZP(c,this.D));null!=this.X&&(c=new YP,c.K=!0,this.P.push(c),this.A.R(c,"click",this.bp),ZP(c,this.X));null!=this.Y&&(c=new YP,c.K=!0,this.P.push(c),
this.A.R(c,"click",this.bp),ZP(c,this.Y));null!=this.H&&this.A.R(this.H,"click",this.GC);null!=this.F&&(c=new YP,this.P.push(c),this.A.R(c,"click",this.PC),ZP(c,this.F));null!=this.N&&this.A.R(this.o,"mouseover",this.FC);null!=this.G&&this.A.R(this.G,"click",this.dj);null!=this.K&&this.A.R(this.K,"click",this.dj);null!=this.L&&null!=this.j.C&&mY(this.j.C)&&(L(this.L,"videoAdUiWtaClickable"),this.A.R(this.L,"click",this.dC),this.A.R(this,"why_this_ad_got_it",this.ZC));null!=this.j.skipOffset&&(this.B=
new gY(this.j,this.o),this.B.Tg(this),this.B.da=a.Th);400>=((0,window.parseInt)(Sf(b,"width"),10)||b.width)&&L(this.o,"videoAdUi-mobile");this.j.B&&(L(this.o,"blazer"),window.settings&&window.settings.isTablet?L(this.o,"tablet"):L(this.o,"phone"));a=Jf(b,"html5-video-player");null!=a&&(this.U&&L(a,"videoAdUiRedesign"),N(a,"ytp-video-ad-learn-more-ui",this.j.o));ng(this.o,!1);b.appendChild(this.o);this.j.o||this.U||!this.j.J||(this.C=O("div",{style:"width:100%;height:100%;pointer-events:auto;"}),this.o.appendChild(this.C));
nY(this)};
var xda=function(a){null!=a.C&&ng(a.C,!1)};
var oY=function(a){a.B&&(a.B.dispose(),a.B=null)};
var yda=function(a,b){a.Ca=b;F(b,function(a){a.display(this.o)},a)};
var pY=function(a){null!=a.G&&(ng(a.G,!0),Cf(a.G,a.j.visitAdvertiserText));null!=a.K&&ng(a.K,!0)};
var qY=function(a,b){if(null!=a.o){var c=Jf(yf(a.o),"html5-video-player");null!=c&&N(c,"ytp-ad-end-cap",b)}};
var nY=function(a){var b=a.j.U&&(a.za>a.j.$||0==a.za),c=b&&a.j.X,d=b&&a.j.Y,e=b&&a.j.A,f=b&&a.j.N,b=b&&a.j.F,k=a.j.P&&a.j.j,l="0px";null!=a.F&&(ng(a.F,b),null!=a.J&&ng(a.J,c),null!=a.D&&ng(a.D,d),null!=a.X&&ng(a.X,e),null!=a.H&&(ng(a.H,f),f&&a.Z("videoShareShown")),null!=a.fa&&ng(a.fa,!1),null!=a.ta&&ng(a.ta,!1),null!=a.N&&ng(a.N,b||c||d||e));null!=a.L&&rY(a);null!=a.T&&(ng(a.T,k),k&&(l=Sf(a.T,"height")));null!=a.ca&&Of(a.ca,"bottom",l);null!=a.Y&&ng(a.Y,OK()&&a.j.o&&!e);null!=a.$&&ng(a.$,a.j.H)};
var zda=function(a,b,c,d,e){var f=eR({Wi:"",zh:0,Zi:0});a.j.j&&a.j.K&&(b=vS(c-b),f=eR({Wi:a.j.B?" \u2022 "+b:a.U?" \u00b7 "+b:": ("+b+")",zh:d,Zi:e}));Cf(a.da,f);rY(a)};
var rY=function(a){ng(a.L,a.j.D&&(!a.j.j||a.oa))};
var sY=function(a,b,c){this.C=a;this.A=b;this.F=c;this.o=this.B=this.D=this.j=null};
var mY=function(a){return a.F&&(null!=a.C||null!=a.A)};
var tY=function(a,b,c){b=bf(b,a.j);null!=b&&a.B.R(b,"click",c)};
var uY=function(a,b,c){null!=a.j&&a.j.parentElement.removeChild(a.j);a.j=yQ(b,c);tY(a,"videoAdUiPopupCloseIcon",a.Ph);a.D.appendChild(a.j);b=bf("videoAdUiPopupFrame",a.j);null!=b&&Pc(b,"submit",function(a){a.preventDefault()});
a=bf("videoAdUiPopupDefaultButton",a.j);null!=a&&a.focus()};
var vY=function(){this.Kc=eR({Wi:"",zh:0,Zi:0});var a="",b=qa("Learn More {$suffix}",{suffix:Y("")});this.Ef=a+b;a="";b=qa("Visit Advertiser's Site");this.visitAdvertiserText=a+b;this.se=fR();this.skipOffset=null;this.L=!1;this.$=6E3;this.D=!0;this.H=!1;this.K=this.j=this.J=!0;this.N=this.P=this.A=!1;this.U=!0;this.F=this.Y=this.X=this.T=this.o=!1;this.G=null;this.showContentThumbnail=!0;this.B=!1};
var wY=function(a,b,c,d){var e=new vY;e.o=a;e.ca=b;e.skipOffset=c;e.Ea=null!=d?d.contentId:null;e.J=d.XC;e.G=raa;e.fa=hQ(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e};
var xY=function(a,b,c,d,e){eY.call(this,b.j);this.G=b;this.F=c;this.K=this.G.j;this.j=a;this.A=this.D=null;L(this.j,uS(this.F));a=this.j;b=new vY;b.skipOffset=new RS(this.G.A,!1);this.A=new gY(b,a);d&&d.text&&(d=yQ(uda,d),this.j.appendChild(d));e?(e=this.j,d=dY({Wf:yY(this.K)}),a=yQ(vda,{pv:d}),Cf(a,d),e.appendChild(a),e=a):e=null;this.D=e};
var Ada=function(a){var b=bf("videoAdUiSkipButton",a.j);return b?eg(b,a.j):new qe(0,0)};
var yY=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)};
var zY=function(){H.call(this);this.C="";this.A=new US;this.o=new yg;this.D=[];this.H=!1;this.j={};this.G={};this.B=-1;this.F=[]};
var AY=function(a,b){if(PK.j){var c=OP(JP(),b.type,a.C);a.J(b.type,c)}else zba(QU(),b.type,a.C,A(a.J,a,b.type))};
var Bda=function(a,b){null!=b&&F(b,function(a){ib(this.F,a)||this.F.push(a)},a)};
var BY=function(a,b,c,d,e){var f;PK.j||(f=QU().G||void 0);F(b,function(a){var b=this.j,m=c||{};TW(b,a,"MOAT_INIT",yca);TW(b,a,"MOAT_VIEWABILITY",id(m.moatViewability||""));TW(b,a,"GOOGLE_VIEWABILITY",id(m.googleViewability||""));oL(a,this.j,c,d,e,f)},a)};
var Cda=function(a,b){switch(b){case "abandon":return!zg(a.o,b)&&!zg(a.o,"skip")&&!zg(a.o,"complete")&&(zg(a.o,"impression")||a.H);case "click":return!0;case "complete":return!zg(a.o,b)&&!zg(a.o,"skip");default:return!zg(a.o,b)}};
var CY=function(a){fd.call(this);this.ads=a;this.H=null;this.X=new Hm(this);J(this,this.X);this.P="normal";this.B=this.volume=null;this.o=new QL;this.ta=!1;this.content={};this.D=new zY;this.da=!1;var b=0;F(a,function(a){b+=kU(a)});
F(a,function(b,d){var e=b.C;e.B=a.length;var f=d+1;e.o=f;e.C=f})};
var DY=function(a){if(EY(a)){if(IT(a.H)&&!KL())throw vL(gX,null,"skippablevideo");if(yU(a.H)&&FY(a,a.H.j))throw vL(gX,null,"vpaidWithSkippabilityOverride");return a.H}throw vL(GY,null,"An ad has not been selected.\n"+Error().stack);};
var FY=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:FY(a,b.j)};
var EY=function(a){return null!==a.H};
var Dda=function(a){return Lh(a.ads,function(a){return Lh(HY(a),function(a){return!C(D(eQ(a.o)))})},a)};
var HY=function(a){var b=a.j;if(b&&b.L&&(b=b.B,!kb(b)&&b[0]instanceof rT))return b[0].J;b=a.o;return IY(a)?b.J:[]};
var IY=function(a){a=a.o;return null!=a&&a instanceof rT};
var JY=function(a){null==a.G&&(a.G=new Hm(a));return a.G};
var KY=function(a,b){if(null!=a.F){a.X.removeAll();Lm(a.X,a.F,"companion_display_error",function(){});
var c=CU(a.F,b);null!=c&&(a.X.R(c,"companion_impression",a.uz),a.X.R(c,"companion_click",a.yl));if(!a.F.zn())throw vL(LY);}};
var Eda=function(a){F(a.ads,function(a){if(a=a.getExtension("sodar")){var c=a.B,d=a.A,e=a.C,f=a.o;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_h.0.0.0";(d=e.GoogleTyFxhY)&&"function"==typeof d.push||(d=e.GoogleTyFxhY=[]);d.push(l);d=c.createElement("script");d.type="text/javascript";d.async=!0;d.src=
a;c.getElementsByTagName("head")[0].appendChild(d)}}})};
var MY=function(a,b){AY(a.D,new lc(b))};
var NY=function(a,b){AY(a.D,new lc(b));a.ua(b)};
var OY=function(a){if(!a.da)throw vL(GY,null,"Ads manager is not correctly configured.");};
var PY=function(a){do if(gU(a))return!1;while(a=a.j);return!0};
var QY=function(a,b){for(var c=b;null!=c;)F(c.H.Ka(),a.pC,a),c=c.j};
var Fda=function(a){if(!da(a))throw vL(GY,null,"adsRenderingSettings.mimeTypes should be an array");var b=rb(Wb(RY),Wb(pT));F(a,function(a){if(!ib(b,a))throw vL(GY,null,"Invalid or unsuppoted mime type "+a);})};
var SY=function(a){CY.call(this,a);this.J=null;this.ha=O("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.U=!1;this.$=[]};
var TY=function(a,b){var c=aba(b);F(c,function(a){ZS(this.D.A,"click",a)},a)};
var UY=function(a,b){var c=MW(b,DY(a)),d=RT(DY(a));rL(d,c)};
var VY=function(a){SY.call(this,a);this.T=!1;this.C=this.N=null;this.ca=!1};
var WY=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.C,b=b.D;a={text:null!=c?c:a.fa.B,url:null!=b?b:a.fa.C};null==a.text&&(c="",b=qa("Ads by Google"),c=EQ(c+b),a.text=c);return a};
var XY=function(a){return EY(a)&&lU(DY(a))};
var Gda=function(a){var b=YY(a);b.rba=a.U;NL(ML.getInstance(),37,b)};
var YY=function(a){var b=[],c=[];F(a.N,function(a){b.push(a.getWidth()+"x"+a.getHeight());c.push(a.getContentType())},a);
var d={};d.pid=LU.getInstance().j;d.fsmode=null!=a.C;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.P;return d};
var ZY=function(a,b){if(a.C){a.ci(new lc("close"));var c={};c.pid=LU.getInstance().j;c.evt=b;NL(ML.getInstance(),35,c)}};
var $Y=function(a){GK.call(this,"adMetadata",a)};
var Hda=function(a,b,c){var d=x,e=new P("https://www.googleapis.com/youtube/v3/videos");oh(e,"id",a);oh(e,"part","snippet,status");oh(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=A(b,c),d=A(d,c));aZ(new wn,e,b,d)};
var Ida=function(a,b,c){var d=x,e=new P("https://www.googleapis.com/youtube/v3/channels");oh(e,"id",a);oh(e,"part","snippet,statistics");oh(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));aZ(new wn,e,b,d)};
var aZ=function(a,b,c,d){oh(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");xn(a,2E3);var e=new Hm(a);Lm(e,a,"success",function(a){a=a.target;var b;b=a.j?de(a.j.responseText):void 0;c(b||{});e.dispose();a.dispose()});
Lm(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.o&&(b=Error(Om(a.o)));d(b);e.dispose();a.dispose()});
a.send(b)};
var bZ=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.o=b.title,this.j=Zb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}};
var cZ=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 Jda=function(a){var b=EQ,c;c=a.image;BQ(c,dZ)?c=YQ(c):BQ(c,eZ)?c=YQ(c):c instanceof Je?c=XQ(Le(c)):c instanceof Oe?c=XQ(Qe(c)):(c=String(c),c=Kda.test(c)?c.replace(bR,aR):"about:invalid#zSoyz");c='<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><div class="iv-endcap-image"><img src="'+SQ(c)+'"></div><div class="iv-endcap-headline" dir='+UQ(a.dir)+">"+Y(a.headline)+'</div><div class="iv-endcap-description" dir='+UQ(a.dir)+">"+Y(a.description)+'</div><a class="iv-endcap-action" href="';
var d;d=a.target;BQ(d,dZ)?d=YQ(d):BQ(d,eZ)?d=YQ(d):d instanceof Je?d=XQ(Le(d)):d instanceof Oe?d=XQ(Qe(d)):(d=String(d),d=Lda.test(d)?d.replace(bR,aR):"#zSoyz");return b(c+SQ(d)+'" target="_blank" dir='+UQ(a.dir)+">"+Y(a.action)+'</a></div></div><div class="iv-endcap-bottom"><svg class="iv-endcap-countdown" viewBox="0 0 20 20"><circle class="iv-endcap-countdown-inner" r="5" cx="10" cy="10" /><circle class="iv-endcap-countdown-outer" r="10" cx="10" cy="10" /></svg></div></div>')};
var fZ=function(a,b,c){eY.call(this,c);c=(c=b.j.product_card)?new tV(c):gZ;var d=new rV(kV(b.j,"action")[0]);b=d.j.title;var d=d.j.target,e=c.j.headline,f=c.j.description;c=c.j.image;c=(c?new yV(c):hZ).j.image_url;b=yQ(Jda,{headline:null!=e?e:"",description:null!=f?f:"",image:null!=c?c:"",action:null!=b?b:"",target:null!=d?d:""});a.appendChild(b);this.j=bf("iv-endcap-countdown-inner",b)};
var Mda=function(){var a="",b=qa("Your video will play after this ad.");return EQ(a+('<div class="videoAdInterstitial"><p>'+b+"</p></div>"))};
var iZ=function(){H.call(this);this.o=yQ(Mda);this.wa=0};
var jZ=function(a){a.wa&&(Vd(a.wa),a.j(x))};
var kZ=function(a){lc.call(this,a)};
var lZ=function(a){fd.call(this);this.B=a;this.L=new yg;this.H=-1;this.J=this.P=!1;this.F=""};
var mZ=function(a){this.j=!1;this.mute=a.uf();this.volume=a.kd()};
var nZ=function(a){null!=a.o&&a.o.dispose();null!=a.j&&a.j.xf();null!=a.D&&a.D.dispose();a.D=null;null!=a.G&&a.G.dispose();a.G=null;a.L.clear();a.H=-1;a.F="";a.P=!1;a.J=!1};
var oZ=function(a,b,c,d){if(!c||null==a.L.get(b)){d&&!a.J&&(b="error");a.L.set(b,!0);a:{c=b;if(a.A&&a.A.j.A){if("click"==c)break a;"videoLearnMoreClicked"==c&&AY(a.B,new lc("click"))}d=Nda[c]||null;null!=d&&null!=a.j&&a.j.Ll(d);AY(a.B,new lc(c))}a.Z(b)}};
var pZ=function(a){0>a.H||a.P||!a.j.pg(a.H)&&!a.j.Ie()||!a.J||(a.P=!0,oZ(a,"engagedview",!0,!0),a.Z(new kZ("viewCount")))};
var qZ=function(a){pZ(a);if(OK()){var b=a.B;if(!(0>b.B))for(var c=YS(b.A,"progress"),d=b.B;d<c.length;d++){var e=c[d];b.B=d+1;oL(e.j,b.j)}}oZ(a,"complete",!0,!0)};
var rZ=function(a){CY.call(this,a);this.C=this.A=null;this.U=!1;this.N=new lZ(this.D);this.fa=this.oa=this.ha=this.T=!1;this.Y=1;this.J=null;this.Ca=new iZ;this.ga=new ek;this.Fa=!1;this.$=[];this.ca=!1;this.za=!AL()&&aL(XK(),9416126)};
var sZ=function(a,b){var c=Ud(function(){this.ga.remove(c);b.call(this)},0,a);
fk(a.ga,c)};
var tZ=function(a){Mb(a.A);a.A=null;Mb(a.N);Mb(a.D);a.ha=!1;a.fa=!1};
var uZ=function(a){a.Rg();EY(a)?a.start():a.stop()};
var Oda=function(a){if(!EY(a))return!1;var b=a.B.De();if(null==b)return!1;var c=DY(a),d;(d=c.F?c.F.j.Eg()?c.F.j.Xk():c.F.getContent():"")?Pda(a,b,d):kb(c.Ea)||(d=rU(c),a.C=new fZ(b,c.Ea[0],d),a.A&&qY(a.A,!0),a.B.Oe(),a.C.start(),a.j.Fo(!0),a.j.Do(),NY(a,"video_card_endcap_impression"));null!=a.C&&(JY(a).R(a.C,"timeUpdate",a.mq),JY(a).R(a.C,"end",a.Qv));return null!=a.C};
var Pda=function(a,b,c){NL(ML.getInstance(),34,{evt:"start"},!0);var d=O("div");L(d,"controls");var e=O("div");L(e,"adDisplay");L(e,"endslate");e.innerHTML=c;(c=uf(e)[0])&&Of(c,{margin:"0 auto"});F(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&JY(this).R(a,"click",A(this.Pv,this,b))},a);
d.appendChild(e);e=new dV;Eba(e,rU(DY(a)));e.A=0;e.o=0;a.C=new xY(d,e,1,{},!0);JY(a).R(a.C,"skip",a.Rn);of(b,a.C.getContainer());a.B.Oe();a.C.start();NY(a,"video_card_endcap_impression");a.A&&(xda(a.A),oY(a.A))};
var vZ=function(a,b){wZ(a);null!=a.j&&a.j.Go();a.ua("complete");NY(a,b);uZ(a)};
var wZ=function(a){a.C&&(a.C.dispose(),a.C=null);a.A&&qY(a.A,!1);a.U=!1};
var xZ=function(a){var b=EY(a)?vU(DY(a)):null;if(b){var c;a:{if(EY(a)&&(c=wU(a.H),null!=c))break a;c=""}var d;a:{if(EY(a)&&(d=xU(a.H),null!=d))break a;d=""}var e;e=DY(a).A;(c||d||e.allowAdsPayCreator)&&a.j.Ok(b,c||null,d||null,e.allowAdsPayCreator)}};
var yZ=function(a,b,c,d){b=YS(b.j,c);kb(b)||(a[d]=b[0].j)};
var zZ=function(a,b,c){b=c.getExtension(b);null!=b&&(yZ(a,b,"annotation_click","cta_annotation_clicked"),yZ(a,b,"annotation_close","cta_annotation_closed"),yZ(a,b,"annotation_start","cta_annotation_shown"))};
var Qda=function(a,b){var c=gU(b)&&!b.P?WT(b):null,d=IT(b)&&!KT(b),e=null!=a.A&&a.A.j.o,f=b.A,k=iQ(a.xo());if(!k){var l=b.getExtension("AdSense");null!=l&&(k=l.isPharma())}var l=DT(b),m;a.A?(m={},zZ(m,"AdSense",b),zZ(m,"dart",b),zZ(m,"DFP",b)):m=null;return new CR(l,c,0,m,e,d,a.o.loadVideoTimeout,f?f.hi:!1,!1,aU(b),a.o.Gf,k)};
var Rda=function(a){var b=0,c=0;F(a.ads,function(a){!IY(a)||OK()&&0!=c||(c++,b+=kU(a))},a);
var d=1;F(a.ads,function(a){var b=a.C;b.B=c;IY(a)&&(b.o=d,b.C=d,d++)},a)};
var AZ=function(a){var b=a.j;return b&&b.L&&(b=b.B,!kb(b)&&b[0]instanceof rT)?b[0].Sc():qU(a)};
var BZ=function(a,b){if(!IY(b))throw vL(CZ);var c=b.o;if(!C(D(null)))return new qT("","","",0,0,0,0,0,null,"");var d=HY(b),e=a.j.Eq(d,a.o.bitrate,a.o.Bg||[],null!=b&&(OK()||a.B.ki()||a.B.Lk()||AL()));Sda(d,a.o.bitrate,e,QT(b));if(null!=e)return c.ha=e;try{Tda(a,b)}catch(f){}throw vL(Uda);};
var Tda=function(a,b){if(ML.getInstance().j){var c=new ek,d=!1;F(HY(b),function(a){fk(c,a.j);"VPAID"==a.A&&(d=!0)},a);
var e=a.j.xk(),e={aid:WT(b),mt:c.Ka().join(","),smt:e.join(","),hvp:d,st:bU(b).join(",")};NL(ML.getInstance(),28,e)}};
var Sda=function(a,b,c,d){if(!OK())try{var e=Q(a,function(a){return a.Qd}),f=Q(a,function(a){return a.j});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Qd;a.selmt=null===c?"":c.j;a.ic=!1;a.nat=!1;a.iyh=eL(c.o)?"1":"0";a.as=d;NL(ML.getInstance(),22,a)}catch(k){}};
var DZ=function(a,b){b in a.$||(a.$.push(b),a.ua(b))};
var EZ=function(a,b,c){b.getMessage();b.getErrorCode();FZ(a,c);a.Rg();EY(a)?(wL(vL,a,b,c,void 0),a.start()):(xL(a,b,c),a.stop())};
var FZ=function(a,b){var c=vL(GZ,b),c=MW(c,DY(a),a.j),d=RT(DY(a));rL(d,c)};
var HZ=function(a){if(PK.j){var b=AZ(DY(a));null!=b&&mL(b)}a.ua("click")};
var IZ=function(a,b){Vb(Vda,b)&&Im(JY(a),a.N,b,a.jq,a)};
var JZ=function(a){if(!a.ca){var b=DY(a),c=b.D;if(uU(b)&&!OK()&&!a.B.ki()&&c){var b=a.j.getCurrentTime(),d=a.j.Nd(),e=new P("//s.youtube.com/s");oh(e,"ns","yt");oh(e,"el","adunit");oh(e,"docid",c);oh(e,"eurl",window.document.URL);oh(e,"len",d.toFixed(2));oh(e,"tv","1");oh(e,"ps","trueview-instream");oh(e,"st",b.toFixed(2));oh(e,"et",b.toFixed(2));oh(e,"rt",b.toFixed(2));oL(e.toString());a.ca=!0}}};
var Wda=function(a){var b;b=DY(a).U;if(null!=b){b=b.videoId;var c=a.o.baseYouTubeUrl;if(C(D(b)))b=null;else{var c=new P((null!=c?c:"//www.youtube.com/")+"watch"),d=c.j;d.set("v",b);gh(c,d);c.H="action=share";b=c.toString()}null!=b&&(mL(b),a=KZ(a),null!=a&&nL(a,"sharebuttonclicked"))}};
var Xda=function(a){a=KZ(a);null!=a&&nL(a,"sharebuttondisplayed")};
var KZ=function(a){var b=DY(a).getExtension("AdSense");if(!(b=null!=b?new P(b.A):null))a:{if(a=VT(DY(a)))if(a=mT(a,"start"),!kb(a)){b=new P(a[0].j);break a}b=null}return b};
var Yda=function(a){var b=DY(a),c=b.U;null!=c&&(b=hQ(c.videoId,null!=mU(b),a.o.baseYouTubeUrl),null!==b&&(a.j.pause(),mL(b)))};
var LZ=function(a,b){sZ(a,function(){this.ua(b?"video_extend_auto_skipped":"skip");uZ(this)})};
var MZ=function(a,b){Hda(b,function(a){a=new cZ(a);EY(this)&&vU(DY(this))==a.videoId&&(Zda(this,a),!C(D(a.channelId))&&a.isListed&&Ida(a.channelId,function(a){a=new bZ(a);if(null!=this.A){var b=this.A,c=a.o;b.j.Y=!C(D(c));b.j.da=c;if(null!=b.D){var c="",k=qa("by {$userDisplayName}",{userDisplayName:""+b.j.da});Cf(b.D,(new KQ(c+(""+k),void 0)).getContent())}nY(b);b=this.A;c=a.j;b.j.X=!C(D(c));null!=b.J&&(k=nf("img"),k.setAttribute("src",c),L(k,"videoAdUiAuthorIconImage"),b.J.appendChild(k),null!=b.F&&
L(b.F,"videoAdUiTitleWithAuthorIcon"),null!=b.D&&L(b.D,"videoAdUiAuthorNameWithAuthorIcon"));nY(b)}EY(this)&&(DY(this).N=a,this.ua("youTubeChannelMetadata"));if(a=this.A)a=DY(this),b=a.U,a=OK()&&kb(TT(a))&&null!=a.N&&null!=b&&b.isListed;if(a){a=DY(this);JY(this).R(window,"message",this.pw);var b=DY(this),c=b.N.channelId,k=DT(b),l=this.o.contentId,m=this.o.baseYouTubeUrl,m=new P((null!=m?m:"//www.youtube.com/")+"ad_companion"),p=m.j;p.set("adformat",k);p.set("p",c);p.set("render","video_wall_companion");
l&&p.set("content",l);c=new nW("1",new te(300,250),"IFrame",null,m.toString());c.P=b;c.C=!0;a.G=[new iW(c,[],null)];KY(this,a)}},this))},a)};
var Zda=function(a,b){if(null!=a.A&&b.isListed){var c=a.A,d=b.title;c.j.F=!C(D(d));c.j.title=d;NZ.test(Ae(c.j.title,void 0));null!=c.F&&Cf(c.F,c.j.title);nY(c);c=a.A;null!=c.ha?Cf(c.ha,cR()):null!=c.H&&Cf(c.H,cR())}EY(a)&&(DY(a).U=b,a.ua("youTubeVideoMetadata"))};
var OZ=function(a){var b;b=DY(a).N;if(null!=b){var c;c=a.o.baseYouTubeUrl;b=D(b.channelId);c=C(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(sa(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.j.pause(),mL(c))}};
var $da=function(a){var b=LU.getInstance();if(b.o){var c={};if(null!=a.J){var d=jh(new P(a.J.o));if(null!=d){var d=ab(d,".",10),e=d.length;2<=e&&(c.cd1=d[e-2]+"."+d[e-1])}c.cm1=a.J.Rd;c.cd3=a.J.j;c.cd5=b.j;c.cm2=a.o.bitrate;c.cd2=eL(a.J.o)?"1":"0";d=a.J.getWidth();e=a.J.getHeight();null!=d&&null!=e&&(c.cd8=d+"x"+e);a.j&&(d=a.j.Rc(),c.cd4=d.width+"x"+d.height);a=a.J.F;C(D(a))||(c.cd7=a)}b.end("bt",c)}};
var PZ=function(){lc.call(this,"vpaidEvent")};
var QZ=function(a){CY.call(this,a);this.za=this.oa=this.ca=!1;this.Y=[];this.fa=Va();this.A=null;this.L=!0;this.ha=this.$=this.U=-1;this.N=1;this.ga=this.Ca="";this.T=!1;this.J=2==PK.D};
var RZ=function(a){var b=eba(DY(a)),c=D(qU(DY(a))),d=sU(DY(a)),c={desiredBitrate:a.o.bitrate,creativeData:b,viewMode:a.P,clickThroughUrl:c,adUrl:d};sU(DY(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.o.surveyCreativeData&&(c.creativeData=a.o.surveyCreativeData);SZ(a,"initAd",c);F(a.Y,function(a){SZ(this,a.type,a.params)},a);
a.ca=!0;a.Y=[]};
var TZ=function(a,b,c){c=c||null;a.ca?SZ(a,b,c):a.Y.push({type:b,params:c})};
var SZ=function(a,b,c){c=c||{};c.session=a.fa;c.type=b;a.J?window.parent.postMessage(fe(c),"*"):null!=a.C.contentWindow&&a.C.contentWindow.postMessage(fe(c),"*")};
var UZ=function(a,b,c,d){d=vL(b,c,d);var e=MW(d,DY(a)),f=RT(DY(a));rL(f,e);b.message=d.getMessage();xL(a,b,c)};
var VZ=function(a,b){if(y(b.type))switch(b.type){case "friendlyReady":RZ(a);break;case "videoCall":switch(b.func){case "load":case "play":a.B.Cg();a.ga!=b.src&&(a.ga=b.src,a.A.load(b.src,b.mimetype));a.A.play();break;case "pause":a.A.pause()}break;case "returnDuration":a.U=b.duration;break;case "returnRemainingTime":WZ(a,b.remainingTime);break;case "AdClickThru":MY(a,"click");a.ua("click");break;case "AdDurationChange":a.U=b.duration;WZ(a,b.remainingTime);VT(DY(a)).Mf(a.U);a.ua("durationChange");
break;case "AdError":UZ(a,aea,Error(b.message));a.stop();break;case "AdExpandedChange":a.ua("expandedChanged");break;case "AdImpression":var c=DY(a);kb(TT(c))||KY(a,c);a.ua("impression");break;case "AdLinearChange":c=b.isLinear;!a.L&&c?(a.ua("contentPauseRequested"),Vd(a.$)):!c&&a.L&&(a.ua("contentResumeRequested"),TZ(a,"getAdRemainingTime"),TZ(a,"getAdDuration"));a.L=c;var d=DY(a);d.ha=!0;d.oa=c;a.ua("linearChanged");a.J&&a.Z(new PZ);break;case "AdLoaded":Vd(a.ha);a.oa=!0;c=b.companions;d=DY(a);
if(kb(TT(d))){var e=d.o.j,f=[],k=null;try{var l=vz(c),m=wf(l);null!=m&&"CompanionAds"==m.nodeName&&(k=wW(sW.prototype,m,e))}catch(p){}null!=k&&f.push(k);kb(f)||CT(d,f)}XZ(a);NY(a,"loaded");break;case "AdPaused":a.T=!0;NY(a,"pause");break;case "AdPlaying":a.T=!1;NY(a,"resume");break;case "AdRemainingTimeChange":WZ(a,b.remainingTime);break;case "AdSkipped":NY(a,"skip");break;case "AdSkippableStateChange":NY(a,"skippableStateChanged");break;case "AdStarted":MY(a,"impression");MY(a,"creativeview");a.ua("start");
break;case "AdStopped":MY(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.L?MY(a,"acceptinvitationlinear"):MY(a,"acceptinvitation");break;case "AdUserMinimize":MY(a,"collapse");break;case "AdUserClose":NY(a,"userClose");break;case "AdVideoComplete":NY(a,"complete");break;case "AdVideoFirstQuartile":NY(a,"firstquartile");break;case "AdVideoMidpoint":NY(a,"midpoint");break;case "AdVideoStart":MY(a,"start");break;case "AdVideoThirdQuartile":NY(a,"thirdquartile");break;case "AdVolumeChange":c=
b.volume;c!=a.N&&a.ua("volumeChange");0==c&&0!=a.N?(MY(a,"mute"),a.ua("mute")):0==a.N&&0!=c&&MY(a,"unmute");a.N=c;a.A.setVolume(c);break;case "Ping":oL(b.url)}};
var YZ=function(a,b){SZ(a,"wrapperCall",{messageType:b})};
var XZ=function(a){a.oa&&a.za&&(TZ(a,"startAd"),a.L||(a.Z(new PZ),TZ(a,"getAdRemainingTime")),TZ(a,"getAdDuration"))};
var WZ=function(a,b){a.L||(Vd(a.$),fa(b)&&-1!=b||(b=30),a.$=Ud(a.DA,1E3*b,a))};
var ZZ=function(a){this.j=a};
var $Z=function(a,b,c,d,e,f,k){fd.call(this);this.B=this.D=0;this.H=a;this.dc=b;this.da=c;this.C=null;this.J=d;this.X=f;this.N=PK.o;this.j=null;this.T="normal";this.L=null;this.G=e;this.o=[];this.$=this.P=this.Y=this.K=!1;this.U=k;bea(this)};
var a_=function(a){return null!=a&&jU(a,"nonlinear")};
var bea=function(a){F(a.H,function(a){a=new P(a.A.j);var c=a.j.get("max_ad_duration");n(c)||a.j.get("pmxd")})};
var b_=function(a){return a.D<a.H.length&&null!=a.H[a.D]};
var cea=function(a,b){if(OK()&&!kb(b)&&0==a.dc&&a_(b[0])){var c=$T(b[0]);return"ADSENSE"==(0<c.length?c.pop():QT(b[0])).toUpperCase()}return!1};
var c_=function(a){!b_(a)||2<=a.o.length-a.B?a.Y||(a.Z("adBreakInitialized"),a.Y=!0):d_(a)};
var d_=function(a){var b=a.H[a.D];Im(a.F,a.J,"adsLoaderSdkAdLoaded",a.sp,a);PK.o="on_master_ad";pda(a.J,b.A,b)};
var dea=function(a){null==a.dc||Lh(a.o,function(a){return!a.o})||(a.o=be(a.o,function(a){return!(a.o&&!a.A)}))};
var e_=function(a){var b;a:{if(a.B<a.o.length&&(b=a.o[a.B].j,!kb(b))){b=null!=b[0]&&null==ET(b[0]).rm;break a}b=!1}if(b){b=a.o[a.B];try{if(a.P||(f_(a),a.j=g_(a,b.j),h_(a)),a.j.init(a.T),null!=a.L&&a.j.setVolume(a.L),i_(a.j))a.Z("contentResumeRequested"),a.G.Oe(),a.j.start(),null!=a.C&&a.C.start();else{var c=a.j;if(null!=c&&c instanceof rZ)a.G.Cg(),a.j.start();else{var d=a.j;if(null!=d&&d instanceof QZ)a.G.Oe(),a.G.Cg(),1==a.j.L||a.Z("contentResumeRequested"),a.j.start();else throw Error("Unknown ads manager type.");
}}}catch(e){a.B++,e_(a)}b_(a)&&d_(a)}else a.Z("contentResumeRequested"),j_(a)};
var g_=function(a,b){var c=null;if(null!=a.J.C)c=WX(b);else if(yU(b[0]))c=new QZ(b);else if(FT(b[0]))c=new rZ(b);else if(a_(b[0]))c=new SY(b);else throw Error("No valid creative type found.");c.F=a.U;null!=a.A&&(a.A.dispose(),a.A=null);a.A=new Hm(a);Im(a.A,c,"companionBackfill",a.tp,a);c.Gd(new ZZ(a.G),{currentTime:0},a.X);return c};
var f_=function(a){a.G.ea();null!=a.C&&(a.C.dispose(),a.C=null);null!=a.A&&(a.A.dispose(),a.A=null);null!=a.j&&(a.j.destroy(),a.j=null)};
var h_=function(a){if(null==a.j)throw Error("The current ads manager is not defined");var b=a.j;Im(a.A,b,"adError",a.Cy,a);Im(a.A,b,k_,a.tp,a);a.A.R(b,["allAdsCompleted"],x);Im(a.A,b,"contentPauseRequested",a.nx,a);Im(a.A,b,"contentResumeRequested",a.ox,a);Im(a.A,b,"userClose",a.qx,a);Im(a.A,b,"autoClose",a.mx,a);i_(a.j)&&(b=VT(DY(a.j)).ga,0<b||a.X.Bn)&&(0>=b&&(b=15),null!=a.C&&a.C.dispose(),a.C=new Sd(1E3*b),Nm(a.A,a.C,"tick",a.CA,a))};
var i_=function(a){return null!=a&&a instanceof SY};
var j_=function(a){a.K=!1;a.Z("allAdsCompleted")};
var eea=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;F(a.o,function(a,b){var f=a.j;jb(f,c);d+=f.length;b<this.B&&(e+=f.length)},a);
b=c.C;var f=e+b.C;b.B=d+(a.H.length-a.D);b.o=f;b.A=a.da;b.j=a.dc}};
var l_=function(a){lc.call(this,a);this.j=null};
var m_=function(a,b,c){fd.call(this);this.j=a;this.A=[];this.D=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.G=null!=c&&fa(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.B=null;this.o=!1;fea(this,b)};
var gea=function(a){this.j=a;this.A=this.o=!1};
var n_=function(a){null!=a.B&&(a.B.dispose(),a.B=null);a.j.stop();a.o=!1};
var hea=function(a){if(a.o){var b=db(a.A,function(a){return-1==a.j},a);
null!=b&&o_(a,!0,b)}};
var fea=function(a,b){F(b,function(a){if((0,window.isNaN)(a))throw Error("The ad play time is not a number:"+a);Hb(this.A,new gea(a),function(a,b){return Ab(a.j,b.j)})},a)};
var iea=function(a,b){for(var c=[],d=0;d<a.A.length;d++){var e=a.A[d];-1!=e.j&&e.j<=b&&nb(c,e)}return c};
var jea=function(a,b){for(var c=0;c<a.A.length;c++){var d=a.A[c];if(-1!=d.j&&b>=d.j-a.G&&b<d.j&&!a.A[c].o)return d}return null};
var p_=function(a){a.Z(new l_("contentTrackingError"))};
var o_=function(a,b,c){if(null!=c){if(!c.o){var d=new l_("requestAds");d.j=c.j;a.Z(d);c.o=!0}b&&!c.A&&(b=new l_("playAds"),b.j=c.j,a.Z(b),c.A=!0)}};
var q_=function(a,b){H.call(this);this.B=a;this.j=-1;this.A=b};
var r_=function(a,b){if(0==b.dc||0>=a.A||0>=a.j)return!1;var c=K()/1E3,d=b.dc-a.B.currentTime;0<d&&(c+=d);return c-a.j<=a.A};
var VX=function(a,b){CY.call(this,[]);this.ca=a;this.K=new yg;this.C=this.A=null;this.T=new lo;this.J=null;this.Y=b;this.ha=this.$=!1;this.fa=this.N=null;this.ga=0;this.U=!1};
var s_=function(a,b){a.U=!1;a.ff(b);if(0==b.dc)a.mi();else{if(-1==b.dc)(t_(a)||!OK()&&a.$)&&u_(a);else{var c=a.C;c.j.start();c.o=!0}a.J=null}};
var v_=function(a){null!=a.G&&(a.G.dispose(),a.G=null);a.$=!1;null!=a.C&&n_(a.C)};
var w_=function(a){if(null==a.J){var b=oo(a.T);if(null!=b){a.J=b;var c=a.K.get(a.J.j);if(null==c)a.J=null,w_(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.J=null,w_(a);else if(null!=a.fa&&r_(a.fa,c))a.J=null,w_(a);else if("requestAds"==b.type)a.U?(a.T.isEmpty()||"playAds"!=po(a.T).type||oo(a.T),s_(a,c)):(b=JY(a),Im(b,c,k_,a.Z,a),Im(b,c,"adError",a.Wn,a),Im(b,c,"allAdsCompleted",a.mp,a),Im(b,c,"contentPauseRequested",a.wo,a),Im(b,c,"contentResumeRequested",a.mi,a),Im(b,c,"userClose",a.vx,a),
Im(b,c,"autoClose",a.tx,a),Im(b,c,"adBreakInitialized",a.np,a),c.init(-1,-1,a.P));else if("playAds"==b.type)if(null!=a.A&&a.A.Ua()&&a.ff(a.A),a.U)s_(a,c);else if(a.A=c,a.A.setVolume(a.volume),c=a.A,b=a.P,null!=b&&(c.T=b),null!=c.j&&c.j.tf(-1,-1,b),a.A.P){c=a.A;if(c.B<c.o.length){b=c.o[c.B];f_(c);try{c.j=g_(c,b.j),h_(c)}catch(d){c.B++,e_(c)}}a.ua("contentResumeRequested");a.C.getCurrentTime()>=a.ga?null!=a.A&&a.A.start():a.J=null}else a.A.start()}}};
var u_=function(a){a.ha||(a.ha=!0,a.Y.j=!0,a.ua("allAdsCompleted"),-1==a.N&&x_(a))};
var x_=function(a){aL(XK(),41351033)||bS.clear();null!=a.F&&(a=a.F.Be(),null!=a&&dS(a,bS.j))};
var t_=function(a){return 0==a.K.Ka().length};
var kea=function(){};
var WX=function(a){if(kb(a))return null;var b=a[0];switch(yU(b)?"vpaid":gU(b)&&jU(b,"nonlinear")?"overlay":jU(b,"linear")?"video":jU(b,"nonlinear")?"overlay":null){case "overlay":return gU(b)?new VY(a):new SY(a);case "video":return new rZ(a);case "vpaid":return new QZ(a);case "flash_vpaid":return null;default:return null}};
var y_=function(a){fd.call(this);this.o=a;a=new BU(new YR);this.j=new SX(new kea,a,bS);this.j.R("adsManagerLoaded",this.Z,!1,this);this.j.R("adError",this.Z,!1,this);this.j.R("adLoadError",this.Z,!1,this)};
var z_=function(a,b,c){ZK();var d="",e=HM(),f=e.o,e=e.j;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.sc=IR(b.j,a.o.A);b.Tl=a.o.G;oda(a.j,b,c)};
var A_=function(a,b){yH.call(this,a,b)};
var B_=function(a){this.app=a;pq.call(this,a.Va)};
var C_=function(a,b,c){this.W=a;this.j=b||"";this.A=c||null;this.B=!1};
var D_=function(a,b){var c=a.W;if(c.Ca&&("detailpage"==c.ya||"leanback"==c.ya||"embedded"==c.ya&&(c.za||c.experiments.A))&&!a.B){a.B=!0;Ei("TIMING_ACTION")||Bi("TIMING_ACTION",a.W.csiPageType);a.W.ha&&Bi("CSI_SERVICE_NAME",a.W.ha);if(a.A){var c=a.A.B,d;for(d in c)Zu(d,c[d],a.j);d=a.A.A;for(var e in d)ev(e,d[e],a.j);e=a.A;e.B={};e.A={}}if(e=Ih("visibilityState",window.document)){d=-1;switch(e){case "hidden":d=0;break;case "visible":d=1;break;case "prerender":d=2;break;case "unloaded":d=3}ev("yt_vis",
d,a.j)}ev("yt_pt","html5",a.j);b&&!dv("pbs",a.j)&&a.o("pbs",b);e=a.W;("detailpage"!=e.ya||"blazer"==e.j)&&dv("_start",a.j)&&cv(a.j)}};
var lea=function(){this.C=new gK(50);this.o=null;this.B=this.A=0;this.j=[]};
var mea=function(a,b){0!=a.j.length&&(b.C=a.j.length,b.G=oe(a.j,function(a,b){return a+b},0),b.F=cb(a.j),b.J=Math.min.apply(Math,a.j),b.H=Math.max.apply(Math,a.j),a.j=[])};
var nea=function(a,b){if(a.o&&!(b>=a.A&&b<a.B)){var c=a.o.lf(b);a.A=a.o.ee(c);a.B=a.A+a.o.dg(c);var d=K()/1E3,c=Nr(a.o,c),d=d-(c?c.o:window.NaN);hK(a.C,d);a.j.push(d)}};
var oea=function(a,b){this.j=a;this.o=b;this.A=1};
var E_=function(a,b,c,d){d/=a.A;var e=rK(a.j)+1/sK(a.j),f;f=Math.max(.9*(d-3),qK(a.j)+8192*e);c=f/e*a.o.ha/(b+c);c=Math.min(c,d);c=Math.max(a.o.Qa,Math.min(a.o.ia,c));return Math.min(a.o.D,Math.max(65536,Math.ceil(c*b)))};
var F_=function(a){var b=sK(a.j);a=1E-9+qK(a.j)+1048576*rK(a.j);return b*Math.min(1,1048576/(b*a))};
var G_=function(a){return F_(a)/a.A};
var H_=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
var pea=function(a,b,c,d){this.U=a;this.G=b;this.D=c;this.H=d;this.A=this.K=this.j=null;this.C="i";this.L=-1;this.F=this.B=null;this.o=[];this.P=this.N=0;this.T=null;this.J=!1};
var qea=function(a,b,c,d){"m"==c&&a.j.isLocked()&&!b.isLocked()&&(c="a");a.J=a.J||d;if("m"==c&&b.isLocked())return a.C=c,I_(a,b),J_(a),a.A=K_(a),new H_(L_(a),a.A,c);d=a.j.equals(b);if("m"==a.C&&a.j.isLocked()&&d)return null;"r"!=c||d||(a.L=-1);I_(a,b);b=K_(a);if("r"==c&&b==a.A){if(d)return null;a.A=b;return new H_(L_(a),b,c)}a.C=c;M_(a);return null};
var rea=function(a,b){N_(a);a.T=b;a.P=ct();a.L=-1;I_(a,a.j)};
var N_=function(a){return!!a.P&&9E4>=ct()-a.P};
var L_=function(a){O_(a);return a.B};
var K_=function(a){O_(a);return a.F};
var M_=function(a){a.A&&a.F&&P_(a,a.A.info)<P_(a,a.F.info)&&(a.J=a.J||a.F.info.video.width>1.6*a.A.info.video.width||"r"==a.C)};
var Q_=function(a){var b=a.C;a.C="a";a.L=ct();a.J=!1;return new H_(a.K,a.A,b)};
var O_=function(a){if(!(!a.j.isLocked()&&-1<a.L&&8E3>ct()-a.L)){a.P&&!N_(a)&&(a.P=0,I_(a,a.j));J_(a);var b=G_(a.U);if(a.j.isLocked())a.F=a.D.j[a.o[a.o.length-1].id];else{for(var c=Math.min(a.N,a.o.length-1),d=b/a.G.B-P_(a,a.B.info);0<c&&!(P_(a,a.o[c])<=d);c--);for(b=b/a.G.j-P_(a,a.B.info);c<a.o.length-1&&!(P_(a,a.o[c+1])>=b);c++);a.N=c;a.F=a.D.j[a.o[c].id];M_(a)}}};
var I_=function(a,b){a.j=b;var c=a.H.videoInfos;if(!a.j.isLocked()&&(c=be(c,function(a){return P_(this,a)>this.G.G?!1:!this.D.j[a.id].C},a),N_(a))){var c=be(c,function(a){return a.id!=this.T.id},a),d=be(c,function(a){a=mr(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.H.videoInfos);d=be(c,b.B,b);d.length||(d=[c[0]]);d.sort(A(function(a,b){return P_(this,a)-P_(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(pb(d,c),c--):P_(a,e)*a.G.j>P_(a,f)&&(pb(d,c-1),c--)}a.o=d;YI(a.G,d[d.length-1].video.kC)};
var sea=function(a,b){if(b)a.B=a.D.j[b];else{var c=db(a.H.j,function(a){return!!a.Ib&&a.Ib.isDefault}),c=c||a.H.j[0];
a.B=a.D.j[c.id]}J_(a)};
var J_=function(a){if(!a.B.info.Ib&&(a.B=a.D.j[a.H.j[0].id],1<a.H.j.length)){var b=!1;if(a.j.isLocked())b=240>a.j.j;else{for(b=0;b+1<a.o.length&&"tiny"==a.o[b].video.quality;)b++;var c=G_(a.U)/a.G.j,b=P_(a,a.B.info)+P_(a,a.o[b])>c}b&&(a.B=a.D.j[a.H.j[1].id])}};
var tea=function(a){var b=a.G.B,c=G_(a.U)/b-P_(a,a.B.info),b=gb(a.o,function(a){return P_(this,a)<c},a);
0>b&&(b=0);a.N=b;a.F=a.D.j[a.o[b].id]};
var P_=function(a,b){return a.G.ga&&b.B?b.B:b.j};
var uea=function(){this.j=this.o=0;this.A=[]};
var R_=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]};
var S_=function(){this.j=this.o=!1};
var T_=function(a,b){this.L=a;this.A=b;this.C=[];this.j=[];this.B=this.o=null;this.D=0;this.N=b.info.j;this.J=this.K=!1;this.H=new S_;this.G=null;this.F=0};
var U_=function(a,b){a.C.push(b);a.o=cb(b.info.j);a.D+=V_(b)};
var W_=function(a){for(var b;a.C.length&&5==a.C[0].state;)b=a.C.shift(),!b.K&&b.j&&(a.D=X_(b,a.D)),Y_(b)&&(b=Z_(b),F(b,a.P,a));a.C.length&&Y_(a.C[0])&&!$r(a.C[0].info.j[0])&&(b=a.C[0],!b.K&&b.j&&(a.D=X_(b,a.D)),b=Z_(b),F(b,a.P,a))};
var $_=function(a){return!(!a.j.length||1!=a.j[0].info.j.info.o||0!=a.j[0].info.A)};
var a0=function(a){var b=Ss(a.j[0]);return b.getInt32(0)>b.byteLength&&1==a.j.length};
var b0=function(a,b){a0(a);var c=a.j[0],d=c0(a);if(!d)return null;c=b||c.info.j.index.tk(c.info.B);return(d=ts(d,c))?d:null};
var d0=function(a){var b=a.j[0],c=c0(a);if(c&&(c=Gs(c)))if(c>Ss(b).byteLength){var d=a.j[1];e0(a,b.range);e0(a,Hr(d.range.start,c-b.range.length))}else e0(a,Hr(b.range.start,c))};
var c0=function(a){var b=a.j[0],c=Ss(b),d=Gs(c);if(!d||d>c.byteLength){d=a.j[1];a=new window.Uint8Array(b.range.length+d.range.length);a.set(new window.Uint8Array(b.j,b.range.start,b.range.length));a.set(new window.Uint8Array(d.j,d.range.start,d.range.length),b.range.length);d=Gs(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c};
var vea=function(a,b){if(a.K)return a.j[0].range;var c=!!a.A.info.audio,d=a.A.Ih();if(a.j[0].info.C>=b)return null;var e;for(e=1;e<a.j.length;e++){var f=a.j[e].j!=a.j[e-1].j;if(a.j[e].info.C>b||f||a.L.U)break}e--;var f=a.j[e].range.end,k=a.j[e].info.H-b;if(d&&c&&0<=a.L.P&&k>a.L.P){c=Math.floor((b-a.j[e].info.C)/a.j[e].info.G*a.j[e].info.o);if(0==c)return null;f=a.j[e].range.start+c-1}return new Fr(a.j[0].A?0:a.j[0].range.start,f)};
var e0=function(a,b){for(var c;a.j.length;){if(a.j[0].range.end>b.end){var d;c=a.j[0];var e=b.end-a.j[0].range.start+1,e=Math.min(e,c.info.o);d=new Zr(c.info.type,c.info.j,c.info.range,c.info.B,c.info.startTime,c.info.duration,c.info.A,e,!1);var f=Hr(c.range.start,e);d=new Rs(d,c.j,f,c.o,c.A);e=new Zr(c.info.type,c.info.j,c.info.range,c.info.B,c.info.startTime,c.info.duration,c.info.A+e,c.info.o-e,c.info.F);f=new Fr(f.end+1,c.range.end);c=new Rs(e,c.j,f,c.o,!1);d=[d,c];c=d[0];a.j[0]=d[1]}else c=a.j.shift();
d=a;f=c.info;d.B=f;d.K&&d.B.D&&(d.K=!1);d.N=Math.max(d.N,f.j.info.j);if(c.range.end==b.end)break}a.j.length&&c.j==a.j[0].j||(a.D-=c.o.length)};
var f0=function(a,b){var c=g0(a,b);if(0<=c)return c;a.o=a.A.Zh(b).j[0];h0(a)&&(a.B=null);a.G=null;a.F=0;return a.o.startTime};
var i0=function(a,b){j0(a);if(a.A.info.video&&a.B&&!a.B.D&&b){var c=eb(a.j,function(a){return a.info.D});
a.j=wb(a.j,0,c+1);a.K=!0}else a.j=[];if(a.j.length)for(a.D=a.j[0].o.length,c=1;c<a.j.length;c++)a.j[c].j!=a.j[c-1].j&&(a.D+=a.j[c].o.length);else a.D=0};
var k0=function(a){a.H.o||a.H.start();i0(a,!1);h0(a)&&(a.B=null)};
var wea=function(a,b){for(var c=0;c<a.C.length&&b!==a.C[c];c++);if(c==a.C.length)b.dispose();else{for(;c<a.C.length;)a.U(a.C.pop());3==b.info.j[0].type?(b.j&&b.j.B?(c=b.j.B,c=new Zr(c.type,c.j,c.range,c.B,c.startTime+c.duration,0,c.A+c.o,0,!1)):(c=b.info.j[0],c=new Zr(c.type,c.j,c.range,c.B,c.startTime,0,c.A,0,!1)),a.o=c):a.o=null}};
var xea=function(a){return Lh(a.j,function(a){return a.info.D})};
var h0=function(a){return!!a.B&&a.B.F};
var l0=function(a){var b=[];a.B&&b.push(a.B);F(a.j,function(a){b.push(a.info)});
F(a.C,function(a){F(a.info.j,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.o&&a.o!=cb(b)&&b.push(a.o);return b};
var m0=function(a){if(!a.o||!a.o.o)return!1;a=l0(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].C-a[b-1].H)))return!1;return!0};
var g0=function(a,b){if(m0(a)){var c;a:{c=l0(a);for(var d=0;d<c.length;d++)if(c[d].C<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break a}c=null}if(c)return c.startTime}return window.NaN};
var n0=function(a){return Lh(a.C,function(a){return 3<=a.state})};
var o0=function(a){return!(!a.o||!Yr(a.A)||a.o.j==a.A)};
var p0=function(a){return o0(a)&&a.o.j.info.j<a.A.info.j};
var j0=function(a){F(a.C,a.U,a);a.C=[];a.o=null};
var q0=function(a){return!!a.o&&a.o.B<a.A.index.vg()};
var yea=function(a,b){this.o=a;this.D=this.C=!1;this.length=b;this.j=0;this.A=[];if(1==this.o.length&&!this.o[0].range){var c=this.o,d;d=this.o[0];var e=Hr(0,this.length);d=new Zr(d.type,d.j,e,d.B,d.startTime,d.duration,d.A,e.length,d.F);c[0]=d}this.B=null};
var zea=function(a){var b=a.length-a.j;F(a.A,function(a){b+=a.range.length});
return b};
var r0=function(a,b,c,d){this.status=0;this.H=this.o=null;this.J=d;this.D=c;this.A=[];this.F=null;this.C=this.j=0;Aea++;this.K=window.NaN;this.B=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(Gi(A(this.mC,this)),Gi(A(this.uj,this)));K();this.G=!1;b()};
var s0=function(a){a.A.push(a.F.subarray(0,a.j));a.j=0;a.F=a.G?null:new window.Uint8Array(t0(a))};
var u0=function(a){a.B.read().then(Gi(A(a.kz,a)),Gi(A(a.uj,a)));var b=K();a.K=b};
var t0=function(a){a=a.gg();return Math.max(16384,.125*a)};
var v0=function(a,b,c,d){this.status=0;this.o=null;Bea++;this.A=this.B=!1;this.j=new window.XMLHttpRequest;this.j.open("GET",a);this.j.responseType="arraybuffer";this.j.withCredentials=!0;this.C=d;this.D=c;a=Gi(A(this.sE,this));this.j.addEventListener("load",a,!1);this.j.addEventListener("error",a,!1);this.j.send();b();this.j.addEventListener("progress",Gi(A(this.tE,this)),!1)};
var w0=function(a,b,c){this.B=a;this.info=b;this.timing=c;this.state=1;this.A=null;this.L=this.F=this.J=0;this.D=window.NaN;this.G=this.o=this.P=null;this.C=0;this.j=null;this.K=!1;this.H=null;this.N=window.NaN};
var x0=function(a){var b;b=a.timing;b={rt:((K()-b.o)/1E3).toFixed(2),lb:b.j,pt:(b.L/1E3).toFixed(2),pb:b.J};b.shost=a.o?yr(a.o.j):"";b.rn=a.J.toString();a.C&&(b.rc=a.C.toString());410!=a.C&&500!=a.C&&503!=a.C||(b.isPotentialFormatUnavaliable="true");return b};
var y0=function(a){a.isDisposed();if(2>a.F)a=!0;else{var b=a.info.A;a=!(a.J>b.A&&1<=b.o)}return a};
var z0=function(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.B&&(c.B=!1)}a.P&&a.P(a)};
var Cea=function(a){return Ig(a.info.j,function(a){return 3==a.type})};
var A0=function(a){if(a.A){var b=a.A;a.A=null;b.Lr()}a=a.timing;a.B&&(a.B=!1)};
var B0=function(a){var b=a.A.ih("content-type"),c=a.A.gg(),c=!c||c<=w0.j;return(!C0(a)||!b||-1!=b.indexOf("text/plain"))&&c};
var Z_=function(a){a=a.j;var b=a.A;a.A=[];a.B=cb(b).info;return b};
var Y_=function(a){return 2<=a.state&&!!a.j&&!!a.j.A.length};
var D0=function(a,b){C0(a)&&!a.A.gg()&&(a.B.T=!1,a.B.X=!1);if(b||C0(a)&&!B0(a)){if(!a.j){var c=b?a.A.pk():a.A.gg();a.j=new yea(a.info.j,c)}for(;a.A.Zo();)for(var c=a.j,d=a.A.Sq(),e=0,f=0,k=0;k<c.o.length;k++){var l=c.o[k];if(e+l.o<=c.j)e+=l.o;else{var m;var p=c,u=l;1==u.type?(p.C=!0,m=!1):3==u.type||4==u.type?(u=p.C&&!p.D,p.D=!0,m=u):m=!1;var p=c,u=l,t=c.j-e,w=f,z=d,E=Math.min(u.o-t,z.length-w),M=void 0,M=new Zr(u.type,u.j,u.range,u.B,u.startTime,u.duration,u.A+t,E,u.A+t+E==u.range.length&&u.F),G=
t=void 0,t=z.buffer,w=z.byteOffset+w,z=Hr(z.byteOffset,z.length);1==u.type?(t.slice?t=t.slice(w,E):(u=new window.Uint8Array(t,w,E),t=(new window.Uint8Array(u)).buffer),G=Hr(0,E)):G=Hr(w,E);p.A.push(new Rs(M,t,G,z,m));p=E;c.j+=p;f+=p;e+=l.o;if(f==d.length)break}}}};
var X_=function(a,b){a.K=!0;return b-gs(a.info)+V_(a)};
var V_=function(a){return a.j&&a.K?zea(a.j):gs(a.info)};
var C0=function(a){return!!(a.B.T||a.B.X&&a.A&&a.A instanceof r0)};
var Dea=function(a,b,c){this.A=a;this.J=b;this.P=c;this.j=this.D=this.o=window.NaN;this.H=this.K=this.B=!1;this.C=0;this.F=this.L=window.NaN};
var E0=function(a,b,c){if(a.B){var d=(b-a.D)/1E3,e=c-a.j;0<e&&(.2<d||1024>e?(a.C+=d,.2<d&&nK(a.A,.05,e)):nK(a.A,d,e),a.H=!0)}else 8192<=c&&(d=a.A,d.A.j(1,(b-a.o)/1E3),uK(d),a.B=!0);a.D=b;a.j=c};
var F0=function(a){var b=a.J-a.j,b=1E3*(b*a.G.tailDelay+b/a.G.byterate),c=K(),b=8192<=a.j?b+c:b+Math.max(c,a.o+1E3*a.G.delay);a.F=b};
var G0=function(a,b,c,d){Wj.call(this);this.H=a;this.B=b;this.F=c;this.A=this.o=null;this.K=new oea(a,b);this.j=null;this.D=new pea(this.K,b,this.F,d);this.C=this.ca=this.$=this.da=window.NaN;this.L=!1;this.G=window.NaN;this.ia=0;this.J=!1;this.ha={};this.U="";this.X=this.Y=0;this.fa=b.oa?new uea:null};
var H0=function(a){0==a.C&&(a.o.A.A||I0(a,a.o,!0),a.A.A.A||I0(a,a.A,!0));a.seek(a.C);J0(a,"gv")};
var K0=function(a){a.j&&a.j.j&&a.j.j.removeEventListener&&(a.j.j.removeEventListener("updateend",A(a.wc,a),!1),a.j.o.removeEventListener("updateend",A(a.wc,a),!1),a.j.j.removeEventListener("error",A(a.Ai,a,!0),!1),a.j.o.removeEventListener("error",A(a.Ai,a,!1),!1));a.j=null;a.J=!0;a.A&&i0(a.A,!1);a.o&&i0(a.o,!1)};
var L0=function(a){a.j&&Iv(a.j)&&K0(a)};
var M0=function(a,b,c,d){a.isDisposed()||((b=qea(a.D,b,c,d))&&a.O("videoformatchange",b),N0(a,a.A,K_(a.D)),a.D.j.isLocked()&&"m"==c&&(k0(a.A),k0(a.o)),p0(a.A)&&O0(a,a.A,a.o),P0(a))};
var Q0=function(a,b,c){if(!b.H.o||!c.remove)return!1;if(c.updating)return!0;if(!b.H.j&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.H.j=!0;b.H.reset();a.O("seekrequired");return!1};
var R0=function(a,b,c){if(a.J)return!1;if(!b.o){if(!Yr(b.A))return b.A.A||I0(a,b,!1),!1;f0(b,a.C)}var d=b.C.length+c.C.length;(n0(b)||n0(c)||a.F.isLive)&&--d;if(2<=d+1)return!1;d=b.o;4==d.type&&Yr(d.j)&&(b.o=cb(d.j.Oi(d)),d=b.o);!d.F&&!d.j.jh(d)||d.j.info.audio&&4==d.type?a=!1:p0(b)&&!a.B.H?a=!0:(!(c=d.F||b.D+c.D>a.B.J||!!(c.o&&!c.o.F&&c.o.H<d.H))&&(c=3==d.type)&&(d=d.H,b=S0(a,b,!0),a.D.j.isLocked()||(c=(ct()-a.ia)/1E3,b=Math.min(b,30+2*c)),c=d>a.C+b),a=c?!1:!0);return a};
var O0=function(a,b,c){if(!a.j||Hv(a.j)||Lv(a.j)){var d=a.C,e=a.K;c=E_(e,b.A.info.j,c.A.info.j,0);e=qK(e.j)+c*rK(e.j)+c/sK(e.j);a:{d+=Math.max(e,e+5-c/b.A.info.j);a=a.D.J;if(b.C.length){if(b.C[0].info.j[0].startTime<=d)break a;j0(b)}for(e=b.j.length-1;0<=e;e--)c=b.j[e],c.info.startTime>d&&(b.j.pop(),b.j.length&&b.j[e-1].j==c.j||(b.D-=c.o.length));b.C.length?b.o=cb(b.C[b.C.length-1].info.j):b.j.length?b.o=cb(b.j).info:b.o=b.B;a&&b.o&&d<b.o.startTime&&(b.G=null,b.F=0,b.o=b.A.Zh(d,!0).j[0])}}};
var T0=function(a,b,c){R0(a,b,c);var d=b.o;if(Yr(b.o.j)){p0(b)&&!a.B.H&&(O0(a,b,c),b.o||f0(b,a.C));var d=b.o,e=d.H-a.C,f=!d.range||0==d.o&&0==d.A?0:d.range.length-(d.A+d.o);o0(b)&&(p0(b)||e<=a.B.Y)&&0==f&&(f=d.startTime+G0.j,d.o&&(f+=d.duration),f0(b,f),d=b.o);d.j.Ih()?(c=E_(a.K,d.j.info.j,c.A.info.j,e),e=o0(b),c=at(d.j,d,c),c.range&&1<c.j.length&&(e?c=at(d.j,d,c.j[0].o):(e=c.j[c.j.length-1],f=e.o/c.range.length,!e.D&&.4>f&&(c=at(d.j,d,c.range.length-e.o)))),d=c):d=is(d.j,d)}else d.j.Ih()?(c=E_(a.K,
b.A.info.j,c.A.info.j,0),d=at(d.j,d,c)):d=is(d.j,d);U_(b,U0(a,d))};
var U0=function(a,b){if(3==b.j[b.j.length-1].type){var c;a:{c=a.D;var d=b.j[0].j;if(d.info.video){if(c.A!=d){c.A=d;c=Q_(c);break a}}else c.K=d;c=null}c&&a.O("videoformatchange",c)}c=gs(b);var d=a.H,e=a.K,f=Math.min(2.5,qK(e.j)),e=F_(e);c=new w0(a.B,b,new Dea(d,c,c-f*e));d=A(a.bB,a);c.isDisposed();c.P=d;c.start(Math.max(0,b.j[0].C-a.C));return c};
var P0=function(a){if((0,window.isNaN)(a.da)){var b=A(a.wc,a);a.da=Fi(b,0)}};
var V0=function(a){if((0,window.isNaN)(a.$)){var b=A(function(){this.$=window.NaN;this.wc()},a);
a.$=Fi(b,G0.C)}};
var W0=function(a,b,c,d,e){if(c.updating)return!0;var f=b.j.length?b.j[0]:null;if(!f)return!1;!b.B||b.B.D||as(b.B,f.info)||(b.B=null,Hv(a.j)&&c.abort(),c.j=null);var k=a.F.isLive&&Ws(f),l=!a.F.B&&b.L.U&&$_(b);if(k)c.j=null;else{if(k=l||!f.A)k=f.info.j.j,c.j==k?k=!1:(X0(a,c,k),c.j=k,a.O("initsegment",c.j),k=c.updating);if(k)return!0}k=S0(a,b,!1);k=a.C+k;null!==d&&0<=d&&(k=Math.min(k,d));d=vea(b,k);if(!d)return!1;if(l){if(a0(b))return!1;if(k=b0(b))return Y0(a,c,new window.Uint8Array(k),f,b)?(d0(b),
!0):!1}k=new window.Uint8Array(f.j,d.start,d.length);if(a.fa&&f.info.j.info.video&&1==f.info.j.info.o){var m=a.fa,p=k;0==f.info.A&&(m.o=0,m.j=0,m.A=[]);if(!((0,window.isNaN)(m.o)||8>p.length)){for(var u=new window.DataView(p.buffer,p.byteOffset),t=!1;!t;)if(m.o==m.j)a:{var t=m,w=u,z=p.length;if(t.o+7>=z){for(var E=t.o;E<z;E++)t.A.push(w.getUint8(E));t=!0}else{var M=E=void 0;if(0<t.A.length){for(E=0;8>t.A.length;E++)t.A.push(w.getUint8(E));E=R_(t.A,0);M=R_(t.A,4);t.A=[]}else E=w.getUint32(t.j),M=w.getUint32(t.j+
4);if(1836019558==M||1836019574==M||1718909296==M||1936286840==M)t.o+=E,t.j=t.o;else if(1835295092==M)t.o+=E,t.j+=8;else{t.o=window.NaN;t=!0;break a}t=t.j>=z}}else a:if(t=m,w=u,z=p.length,t.j+5>=z){for(E=t.j;E<z;E++)t.A.push(w.getUint8(E));t=!0}else{E=void 0;if(0<t.A.length){for(E=0;6>t.A.length;E++)t.A.push(w.getUint8(E));E=R_(t.A,0);12==E&&6==t.A[4]&&45==t.A[5]&&w.setUint8(t.j+5,63);t.j+=E+4;t.A=[]}for(;t.j<t.o&&t.j+5<z;){E=w.getUint32(t.j);if(0>=E){t.o=window.NaN;t=!0;break a}12==E&&6==w.getUint8(t.j+
4)&&45==w.getUint8(t.j+5)&&w.setUint8(t.j+5,63);t.j+=E+4}t=t.j>=z}(0,window.isNaN)(m.o)||(m.o-=p.length,m.j-=p.length)}}m=!1;if(3==f.info.type&&(1==f.info.j.info.o||2==f.info.j.info.o))if(m=1==f.info.j.info.o&&a.B.za&&!l&&!b.J&&0==f.info.A&&0<f.info.startTime)Us(f,0);else if(a.F.B&&0==f.info.A){a:if($_(b)&&!Ws(b.j[0])&&a0(b))e=!1;else{l=null===b.G?f.info.startTime:b.G;0==Us(f,l)?(l=ds(f.info),l.smst=1,a.nd(!0,"fmt.unparseable",l)):b.G=2==f.info.j.info.o?l+f.info.duration:l+Vs(f);if(2!=f.info.j.info.o)if(l=
0,f.info.j.info.video&&null!==e&&(p=1E3*(Vs(f)-f.info.duration),p=b.F+p,e=e-p,Math.abs(e)<G0.D||(l=e/1E3,u=Vs(f)+l,t=ds(f.info),t.deltaOffsetMs=e,t.cumOffsetMs=p,t.finalDurSecs=u,a.nd(!1,"qoe.avsync",t))),(e=l)&&$_(b)&&!Ws(b.j[0])){b.F+=1E3*(Vs(f)-f.info.duration+e);b.G+=e;e=Vs(f)+e;b:{l=0;for(p=new window.DataView(f.j);Bs(p,l);){u=Cs(p,l);if(1936286840==u.type){l=u.data.getUint32(u.offset+16);break b}l=Es(u.type)?l+8:l+u.size}l=window.NaN}if((0,window.isNaN)(l))b:{l=f.info.j.j;p=0;for(u=new window.DataView(f.j);Bs(u,
p);){t=Cs(u,p);if(1836476516==t.type){l=Ds(t);break b}p=Es(t.type)?p+8:p+t.size}l=l?As(l):window.NaN}if(e=b0(b,e*l)){if(Y0(a,c,new window.Uint8Array(e),f,b)){d0(b);e=!0;break a}e=!1;break a}}else b.F+=1E3*(Vs(f)-f.info.duration);e=null}if(null!=e)return e}if(!Y0(a,c,k,f,b))return!1;b.J=!0;m?(Us(f,f.info.startTime),c.abort(),c.j=null,cs(f.info)):(e0(b,d),cs(b.B),iy(c.buffered));f.A&&(c.j=f.info.j.j,a.O("initsegment",c.j));return!0};
var Y0=function(a,b,c,d,e){if(1==d.info.j.info.o&&a.B.fa&&a.F.B)for(var f=new window.DataView(c.buffer),k=us(f,0,1701671783);null!=k;)k.data.setUint32(k.offset+4,1936419184),k=us(f,0,1701671783);return X0(a,b,c)?!0:(d.info.j.info.video?(a=a.B,a.A=Math.floor(.5*a.A),a.K=Math.floor(.5*a.K),a.o=Math.floor(.5*a.o),a.D=Math.floor(.5*a.D)):(a=a.B,a.C=Math.floor(.5*a.C),a.L=Math.floor(.5*a.L),a.o=Math.floor(.5*a.o)),k0(e),!1)};
var X0=function(a,b,c){try{Lv(a.j)?b.appendBuffer(c):b.append(c)}catch(d){return 22!=d.code&&Ki(d),!1}return!Iv(a.j)};
var S0=function(a,b,c){var d=b.A.info.audio?a.B.C:a.B.A;!a.B.H&&a.D.j.isLocked()&&(d=Math.max(d,b.A.info.audio?a.B.L:a.B.K));c&&(d+=a.B.J);b=a.D.j.isLocked()?b.o?b.o.j.info.j:b.A.info.j:b.N;d/=b;0<a.B.o&&(d=Math.min(d,a.B.o));return d};
var Z0=function(a){if(a.F.isLive){if(!a.o.A.index.fg())return window.NaN;var b=a.o.A.index.vg(),c=a.o.A.index.Lb(),d=a.o.A.index;return 1>a.B.liveChunkReadahead?d.ee(c)+d.dg(c)-G0.A:d.ee(Math.max(b,c-a.B.liveChunkReadahead+1))+G0.A}return Math.floor(Math.min(a.o.A.index.eg(),a.A.A.index.eg()))};
var $0=function(a,b,c,d){if(Yr(b.A))if(d){var e=ky(d.buffered,c),f=window.NaN,k=b.B;k&&(f=ky(d.buffered,k.j.index.ee(k.B)));if(e==f&&m0(b))return c;d=g0(b,c);if(0<=d)return d;i0(b,!0);b.A.info.video&&b.B&&!b.B.D&&!xea(b)&&(d=b.B,b.j.length&&(d=cb(b.j).info),d=b.o||d,d=at(d.j,d,d.range.length-(d.o+d.A)),U_(b,U0(a,d)));if((0,window.isNaN)(e))return f0(b,c);f0(b,e+G0.j)}else f0(b,c);else b.A.A||I0(a,b,!1),0!=c&&j0(b);return c};
var N0=function(a,b,c){b.A!=c&&(b.A=c,c.A||I0(a,b,!1))};
var I0=function(a,b,c){var d=c?65536:0;c&&!(0,window.isNaN)(2)&&(d=Math.min(a.B.D,Math.floor(Math.max(d,2*b.A.info.j))));c=b.A.Zn(d);F(c,function(a){if("f"!=a.j[0].j.info.A){var c=U0(this,a);!$r(a.j[a.j.length-1])&&U_(b,c)}},a);
b.A.A=!0};
var a1=function(a){if(!a.A.o)return"";a=yr(a.A.o.j.D.j);return a.substr(0,a.indexOf("."))};
var J0=function(a,b,c){a.ha[b]=c?window.performance.timing.navigationStart+c:K()};
var b1=function(a,b,c,d,e){H.call(this);this.C=a;this.K=b;this.H=c;this.B=d;this.j=e;this.G="";this.o=this.J=this.D=this.F=null;this.A=new Av(this);J(this,this.A);this.B?(U(this.A,this.B,"message",this.gF),U(this.A,this.B,"keystatuseschange",this.eA)):this.j&&(Bv(this.A,this.j,["mskeymessage","webkitkeymessage"],this.Sp),Bv(this.A,this.j,["mskeyerror","webkitkeyerror"],this.Rp),Bv(this.A,this.j,["mskeyadded","webkitkeyadded"],this.Qp))};
var c1=function(a,b){H.call(this);this.o=a;this.j=b;this.D={};this.A=null;this.C=new Av(this);J(this,this.C);this.B=this.F=null};
var d1=function(a){if(a.j.A)return a.j.A.createMediaKeys().then(Gi(A(function(a){this.F=a;this.o.setMediaKeys(a)},a)));
Et(a.j)?e1(a):Gt(a.j)?(e1(a),a.o.webkitSetMediaKeys(a.B)):Eea(a);return null};
var Eea=function(a){Bv(a.C,a.o,["keymessage","webkitkeymessage"],a.jF);Bv(a.C,a.o,["keyerror","webkitkeyerror"],a.iF);Bv(a.C,a.o,["keyadded","webkitkeyadded"],a.hF)};
var e1=function(a){a.B=new (Ft())(a.j.o)};
var f1=function(a,b){var c=a.D[b.sessionId];!c&&a.A&&(c=a.A,a.A=null,c.G=b.sessionId,a.D[b.sessionId]=c);return c};
var Fea=function(a,b,c){this.url=a;this.interval=b;this.j=c};
var Gea=function(a,b,c){this.j=a;this.headers=b;this.message=c};
var g1=function(a,b,c,d,e){H.call(this);this.o=a;this.j=d;this.j.subscribe("oauthtoken",this.Nr,this);this.B={session_id:e};a=this.o.C;Gt(this.o)&&(a=c.j.subarray(4),a=String.fromCharCode.apply(null,new window.Uint16Array(a.buffer,a.byteOffset,a.byteLength/2)).replace("skd://","https://"));h1(this,a);this.C=this.D=!1;var f;try{f=b.createSession(c)}catch(k){b="g",k instanceof window.DOMException&&(b+=k.code),this.j.O("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),f=null}if(this.A=
f)this.A.setCallbacks(this.wE,this.vE,this.uE,this),J(this,this.A)};
var h1=function(a,b){if(Hea.test(b)){for(var c in a.B)b=bh(b,c,a.B[c]);a.G=b}else i1(a,"drm.net","u")};
var i1=function(a,b,c,d){a.isDisposed()||a.j.O("licenseerror",b,c,d);a.dispose()};
var j1=function(a,b){this.j=a;this.contentType=b||null};
var k1=function(a,b){Wj.call(this);a.addKey||a.webkitAddKey||Ft()||It();this.L=a;this.j=b;this.subscribe("newlicense",this.AA,this);this.subscribe("newsession",this.BA,this);this.subscribe("sessionready",this.jB,this);this.U=yu();this.G=null;this.K={};this.o=[];this.B=l1;this.F=new c1(a,b);J(this,this.F);this.A=null;Et(b)&&(this.A=new c1(a,b),J(this,this.A));this.J=2;this.D=new Av(this);J(this,this.D);this.H=!1;this.N=null;this.C=!1;var c=this.L;if(this.j.A)U(this.D,c,"encrypted",this.Qz);else{var d=
Et(this.j)?["msneedkey"]:["needkey","webkitneedkey"];Bv(this.D,c,d,this.yA)}(c=d1(this.F))?c.then(Gi(A(this.rA,this)),Gi(A(this.Uy,this))):this.C=!0;this.A&&d1(this.A)};
var m1=function(a,b,c){a.isDisposed()||Et(a.j)==c||a.H&&"widevine"==a.j.j||(c=String.fromCharCode.apply(String,b.j),a.K[c]||(a.K[c]=!0,a.H=!0,a.o.push(b),1<a.o.length||a.C&&n1(a,b)))};
var n1=function(a,b){var c=new g1(a.j,a.F,b,a,a.U);c.Nr(a.G);J(a,c)};
var o1=function(a){this.o={};this.o.c1a=A(this.C,this);this.o.c3a=A(this.D,this);this.o.c6a=A(this.B,this);(this.j=a)&&this.j.ha?this.A=tj(this.j.ha):this.A=[]};
var p1=function(a,b,c){this.j=a;this.reason=b;this.o=c};
var Iea=function(a,b){this.W=a;this.j=b};
var KH=function(a,b){return $t($t(a.W.qe,b.Sg),b.Xg)};
var q1=function(a,b){var c=KA();return"auto"!=c?Yt("auto",c,!1):r1(a,b)};
var r1=function(a,b){if(QG(a.W)&&ew(a.W.D,$v))return au;var c;c=!!b.A.j;var d;SG(a.W)&&(d=window.screen&&window.screen.width?new te(window.screen.width,window.screen.height):null);d||(d=a.W.yd?a.W.yd.clone():a.j.Ma());(OG||ZM||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.A.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=Yt("auto",e.quality,!1)}else e=au;c=e.j;ut()&&(c=Math.max(c,
tr.hd1080));if(d=(pt("armv7")||pt("android"))&&!QG(a.W))d=b.A.videoInfos[0],d="9"==d.A||"("==d.A;d&&(c=Math.min(c,tr.large));c=Math.max(c,tr.medium);e.j!=c&&(e=new Xt(e.o,c,e.A));return e};
var Jea=function(a){this.B=this.j=window.NaN;this.o=this.A=!1;this.C=!!a};
var s1=function(a,b){a.j=b;a.A=!0};
var wy=function(a,b,c,d){var e=1<d;e&&(a.o=!0);if(a.A)b!=a.j&&(a.A=!1);else if(0<b&&a.j==b)return c-a.B>(e||!a.o?1500:400);a.j=b;a.B=c;return a.C&&a.o&&0>=d};
var t1=function(){fd.call(this);this.o=null;this.B=!1};
var u1=function(a,b){var c="";b&&(v1(a,b),c=wv(b));a.j.src&&""==c||(c&&a.j.src!=c&&(a.j.src=c),b&&b.j||a.load(),a.B||(a.addEventListener("volumechange",A(a.C,a)),a.B=!0))};
var w1=function(a){a.j.ended&&x1(a,0);if(!a.j.src&&a.o){var b=wv(a.o);a.j.src=b;a.o.j||a.load()}a.play();y1&&7<=Lw&&Ul(a,"playing",A(function(){Fi(A(this.D,this,this.getCurrentTime(),0),500)},a))};
var v1=function(a,b){a.o&&a.o.equals(b)||(a.o&&a.o.dispose(),a.o=b)};
var uy=function(a){return my(z1(a),a.getCurrentTime())};
var x1=function(a,b){0<a.j.readyState&&(y1&&4>Lw&&(b=Math.max(.1,b)),a.j.currentTime=b)};
var A1=function(a){a.j.src&&(Tv&&0<a.getCurrentTime()&&x1(a,0),a.j.removeAttribute("src"),a.load(),a.o&&a.o.j&&v1(a,null))};
var B1=function(a){var b=z1(a);return 0<ly(b)&&a.j.duration?ky(b,a.getCurrentTime()):0};
var C1=function(a){var b=a.j.duration;return window.Infinity==b?1:b?B1(a)/b:0};
var Kea=function(a,b,c){this.target=a;this.type=b;this.j=c||null};
var D1=function(a){t1.call(this);this.j=a;this.A={}};
var z1=function(a){return a.j.buffered||hy()};
var E1=function(a,b){b?a.j.setAttribute("crossorigin","anonymous"):a.j.removeAttribute("crossorigin")};
var Lea=function(){this.o=0;this.j=this.D=this.A=this.B=window.NaN;this.C=0;this.H=this.J=this.F=this.G=window.NaN};
var F1=function(){this.endTime=this.startTime=-1;this.Xj="-";this.playbackRate=1;this.visibilityState=0;this.Uj=""};
var Mea=function(a,b,c,d,e,f,k,l,m){this.j=a;this.o=b;this.C=c;this.D=d;this.A=e;this.F=f;this.J=k;this.H=l;this.G=m||function(){};
this.B=-1};
var VA=function(a){var b=ct();0>a.B&&(a.B=b);return Math.round(b-a.B)/1E3};
var XA=function(a){var b=a.C();a=a.j;var c={};a.o&&(c.fmt=a.o.id,a.D&&a.D.id!=a.o.id&&(c.afmt=a.D.id));c.plid=a.playbackId;c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Dh&&(c.infringe=1);a.Zf&&(c.splay=1);a.Da&&(c.live=a.Ed?"dvr":"live");a.Gg&&(c.autoplay=1);a.Ze&&(c.sdetail=a.Ze);a.U&&(c.partnerid=a.U);a.osid&&(c.osid=a.osid);pa(b,c);return b};
var CA=function(a){var b=new F1;b.Xj=a.C().cc||"-";var c=a.o;b.playbackRate=c.tc&&c.tc.playbackRate||1;c=vH(a.o);0!=c&&(b.visibilityState=c);a=a.H();a.Ib&&a.Ib.id&&"und"!=a.Ib.id&&(b.Uj=a.Ib.id);return b};
var G1=function(a,b){this.o=this.A=0;this.W=a;this.C=b;this.j=window.NaN};
var H1=function(a,b){this.state=a;this.j=b};
var dB=function(a,b){return V(a.state,b)&&!V(a.j,b)?1:!V(a.state,b)&&V(a.j,b)?-1:0};
var I1=function(a,b,c,d,e){Wj.call(this);this.Fa=new Jea(a.experiments.ma("html5_always_underrun_on_empty_buffer"));this.F=c;this.La=d;this.D=new Xz(A(this.getCurrentTime,this),A(this.CD,this),A(this.getPlayerState,this),A(this.Ua,this),e,a.experiments.ma("new_cue_range_behavior"));J(this,this.D);this.ia=window.NaN;this.L=this.G=null;this.W=a;this.ga=new Iea(a,this.La);this.J=!1;this.H=this.C=null;this.Y=[];this.da=new S_;this.T=new S_;this.nb=this.Ha=!1;this.Ia=window.NaN;this.B=new qy;this.oa=[];
this.N=b;this.ca=this.ha=null;this.K=window.NaN;this.fa=new Av;J(this,this.fa);this.j=new Bw;this.o=this.$=null;this.za=window.NaN;this.A=null;this.ab=this.bb=!1;this.ta=0;this.Ya=this.Za=this.$a=this.Ca=!1;this.U=this.X=null;this.vb=a.experiments.ma("html5_latch_for_seeking_on_event");this.Cb=this.W.experiments.ma("html5_playing_event_buffer_underrun");this.ub=this.W.experiments.ma("html5_ignore_first_timeupdate")};
var J1=function(a){Gu()?Iu(a.ta):Ii(a.ta)};
var K1=function(a){if(a.A){var b=a.A;if(!b.isDisposed()&&b.B){b.D="paused";var c=ZA(b);c.Ea=!0;c.send();c=b.o;"PL"==c.o&&(c.o="N");var d=VA(c.j);MA(c,d,"vps",[c.o]);c.Pg(d);Ii(b.C);b.dispose()}Mb(a.A);a.A=null}};
var L1=function(a){return a.o?a.o.ka():null};
var M1=function(a){if(dx(a.j))return!0;OJ(a,"api.invalidparam");return!1};
var N1=function(a,b){a.Ha=!!b;M1(a)&&!a.da.o&&(a.da.start(),a.A&&a.A.Rf(),a.Ln())};
var O1=function(a){a.o&&u1(a.o);N1(a);M1(a)&&!V(a.B,128)&&(a.T.o||(a.T.start(),P1(a,yy(a.B,8)),fx(a.j)||P1(a,yy(a.B,1))),Q1(a))};
var Q1=function(a){a.isDisposed();if(!a.T.j&&a.da.j&&!V(a.B,128)&&!a.Y.length&&(a.D.G||a.D.Rf(),!TH(a))){if(a.C){var b=a.C;a.nb=!!b.N&&!!b.T}a.T.j=!0;a.j.Da&&(R1(a,window.Infinity,!0),S1(a,!0),a.W.experiments.ma("disable_live_background_seek_to_head")||3!=vH(a.W)||(a.ab=!0));if(a.A){b=a.A;b.j.j.enableCardio&&b.j.j.enableCardioBeforePlayback&&(b.Qi("connected"),fB(b));var b=b.o,c=b.j.j.j;c&&(0,window.isFinite)(c.o)&&OA(b,"live-segment-"+(c.o/1E3).toFixed(1))}a.O("playbackready",a);dv("pbr",a.F.j)||
a.F.o("pbr",void 0)}};
var T1=function(a,b,c,d){a.j.o=c;a.j.D=d||c;if(a.A){var e=a.j,f=r1(a.ga,e),e=db(e.A.videoInfos,A(f.B,f)),e=new p1(c,b,e?e.id:"");d&&"i"==b&&U1(a,b,d);d=a.A.o;c=VA(d.j);MA(d,c,"vfs",[e.j.id,e.o,d.X,e.reason]);d.X=e.j.id;e=d.j.J();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],f=window.devicePixelRatio||1,1<f&&e.push(f),MA(d,c,"view",e));MA(d,c,"vps",[d.o]);d.Pg(c)}a.O("internalvideoformatchange",a.j,"m"==b)};
var U1=function(a,b,c){a.j.D=c;if(a.A){var d=a.A.o;c=new p1(c,b,"");var e=VA(d.j);c.j.id!=d.J&&(MA(d,e,"afs",[c.j.id,d.J,c.reason]),d.J=c.j.id)}"i"!=b&&a.O("internalaudioformatchange",a.j,"m"==b)};
var OJ=function(a,b,c,d){var e,f;Vb(Nea,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||R(e),messageKey:e};P1(a,vy(a.B,128,b));J1(a);V1(a);W1(a)};
var TH=function(a){return!!a.Y.length||0<Tz(a.D.j,-0x8000000000000).length};
var X1=function(a){a.W.experiments.ma("html5_crossorigin_video")&&a.o&&(a.j.Pe||!a.j.A||a.j.A.j?E1(a.o,!1):E1(a.o,!0))};
var Y1=function(a,b){var c=new D1(b);a.o&&Z1(a);a.o=c;Oea(a);X1(a)};
var Z1=function(a){a.H=null;a.C&&(P0(a.C),a.C.J=!0);a.o&&(a.A&&a.da.o&&V(a.B,64)&&!a.j.Ae&&$1(a),a2(a),Cv(a.fa),A1(a.o),Mb(a.o),a.o=null)};
var b2=function(a){if(!V(a.B,128)&&(O1(a),V(a.B,64)&&P1(a,yy(a.B,8)),a.T.j&&a.o))if(a.j.A){if(a.j.Da){var b=a.getCurrentTime()<cx(a.j),c=hx(a.j)&&V(a.B,4);(b||c)&&R1(a,window.Infinity,!0);c2(a)?S1(a,!0):a.J&&R1(a,window.Infinity,!0)}if(a.j.A.j)b=d2(a),a.C.resume();else{V1(a);var b=a.j.If.o(),c=a.j,d={};c.$&&(d.ptk=c.$,d.oid=c.Cd,d.ptchn=c.Bd,d.pltype=c.Dd);pa(b.o,d);c=a.W.o;pa(b.o,{c:c.c,cver:c.cver})}(c=a.o.o)&&c.equals(b)?w1(a.o):Pea(a,b)}else OJ(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")};
var BH=function(a){a2(a);V1(a);d2(a)};
var e2=function(a){if(a.j.A){var b=f2(a)||au;a=be(a.j.A.videoInfos,A(b.B,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 g2=function(a){return $t($t(KH(a.ga,a.j),q1(a.ga,a.j)),f2(a))};
var f2=function(a){return a.j.lk?au:a.G?a.G.B:Tw(a.j)&&a.j.A.j&&dt(a.j.j)?l1:au};
var h2=function(a,b,c){if(!a.isDisposed()&&!V(a.B,128)&&(c&&(a.j.Xg=c),Tw(a.j))){"m"==b&&c&&Zt(c)&&(b="a");var d=g2(a);if(a.j.A.j)a.C&&"i"!=b&&M0(a.C,d,b,!1);else{c=a.j;a:{var e=a.j.N;if(d.j){for(var f=0;f<e.length;f++){var k=e[f].jc,l=tr[k.video.quality];if((!d.A||"auto"!=k.video.quality)&&l<=d.j){d=e[f];break a}}d=e[e.length-1]}else d=e[0]}c.If=d;T1(a,b,a.j.If.jc)}a.Ua()&&b2(a)}};
var i2=function(a){mt(a.j.j,{c:a.W.o.c,cver:a.W.o.cver});var b=a.W,c=a.j,d=new XI;if(tt()||b.experiments.Y)d.U=!0;tt()&&(d.P=-1);if(pt("trident/")||pt("edge/"))d.o=240;vc&&(d.K=41943040);if(QG(b)||!Kv()){var e=b.experiments;d.A=8388608;d.C=524288;d.J=2097152;d.D=1048576;d.Qa=1.5;d.ia=15;d.H=!Kv();d.$=!1;rt()&&!e.U&&(d.G=625E3);qt()&&(d.G=75E4);d.ga=!0;d.j*=1.3;d.B*=1.3}ut()&&(d.A=20971520,d.C=1572864,d.G=812500,d.F=1E3);b.experiments.L&&(d.G=window.NaN);d.Ca=b.J;e=c.nl;c.Bf&&e--;!c.isLowLatencyLiveStream&&
b.experiments.ma("html5_live_disable_dg_pacing")&&e++;d.liveChunkReadahead=Math.max(0,e);d.oa=!b.experiments.ma("disable_fpa_sei_removal")&&pt("windows nt")&&(jx(c)||kx(c));var e=b.experiments.Vb("dash_html5_refresh_mapping_interval"),f=b.experiments.Vb("dash_html5_refresh_mapping_min_buffer");e&&(d.N=e);f&&(d.ca=f);if(e=b.experiments.Vb("html5_deadzone_multiplier"))d.j*=e,d.B*=e;if(e=b.experiments.Vb("html5_request_sizing_multiplier"))d.ha=e;c.Da&&b.experiments.Vb("html5_live_lower_max_health_buffer_for_downgrade")&&
(d.Y=b.experiments.Vb("html5_live_lower_max_health_buffer_for_downgrade"));b.experiments.ma("html5_strip_emsg")&&(d.fa=!0);a.C=new G0(a.ha,d,a.j.j,a.j.A);a.C.subscribe("initsegment",a.dA,a);a.C.subscribe("videoformatchange",a.oA,a);a.C.subscribe("audioformatchange",a.nA,a);a.C.subscribe("error",a.kj,a);a.C.subscribe("seekrequired",a.vC,a);b=ib(a.Y,"spacecast")||a.Ha;c=a.Bm();c=c.Ib.isDefault?void 0:c;a.C.initialize(a.j.startSeconds,g2(a),b,c);a.j.probeUrl&&(a.C.U=a.j.probeUrl);if(a.Y.length||a.Ha)a.C.J=
!0;a.Ha&&$1(a);a.W.experiments.Vb("html5_dropped_frames_abr")&&(a.U=new G1(a.W,A(a.vy,a)),a=a.U,a.j||(a.j=Hi(A(a.B,a),5E3)))};
var $1=function(a){var b=new H1(new qy(4),a.B);cB(a.A,b)};
var V1=function(a){a.C&&(a.C.dispose(),a.C=null);a.H&&(a.H.dispose(),a.H=null);if(a.U&&a.U){var b=a.U;Ji(b.j);b.j=window.NaN;a.U=null}};
var d2=function(a){a.H||(a.C?a.C.seek(a.getCurrentTime()):i2(a),a.H=new Dv(a.o.ka(),a.j.lengthSeconds,a.j.A.videoInfos[0].mimeType,a.j.A.j[0].mimeType,a.W.J),Ev(a.H,A(a.C.lv,a.C)),Fv(a.H,A(function(){OJ(this,"fmt.unplayable",void 0,"msi.1")},a)));
try{return Gv(a.H)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),OJ(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}};
var W1=function(a){a.o&&(a.o.pause(),a2(a),a.W.experiments.ma("dash_html5_release_loader")?V1(a):a.H&&(a.H.dispose(),a.H=null),a.j&&(a.j.startSeconds=a.getCurrentTime()),a.K=window.NaN,A1(a.o),V(a.B,128)||P1(a,vy(a.B)))};
var R1=function(a,b,c,d){if(a.o&&a.T.j){b=le(b||0,cx(a.j),j2(a,!1));var e=a.j.Da&&!V(a.B,4)&&c2(a,b);S1(a,e);a.j.startSeconds=b;a.K=b;s1(a.Fa,b);c?a.xr():(V(a.B,32)||(P1(a,yy(a.B,32)),V(a.B,8)&&a.pauseVideo(!0),a.O("beginseeking",a)),d&&(a.ca||(a.ca=new Wd(a.xr,d,a)),a.ca.start()),k2(a,!0));a.L&&b>a.j.gf&&(a.D.bh(a.L),a.L=null);b<a.$f()&&P1(a,zy(a.B,2));a.O("seekto",a,b)}else a.j.startSeconds=b||0};
var Qea=function(a){if(!a.o)return 0;if(hx(a.j))return 1;if(ix(a.j)){if(a.J)return 1;var b=a.o,c=z1(b),b=(0<ly(c)&&b.j.duration?c.end(c.length-1):0)-cx(a.j);a=j2(a,!0)-cx(a.j);return Math.max(0,Math.min(1,b/a))}return C1(a.o)};
var l2=function(a,b){var c={};if(b){a.A?pa(c,RA(WA(a.A,"playback"))):a.j&&(c.cpn=a.j.clientPlaybackNonce);if(a.o){var d;d=a.o;d={vct:d.getCurrentTime().toFixed(3),vd:d.j.duration.toFixed(3),vpl:iy(d.j.played||hy()),vbu:iy(z1(d)),vpa:d.j.paused,vsk:d.j.seeking,ven:d.j.ended,vpr:d.j.playbackRate,vrs:d.j.readyState,vns:d.j.networkState,vec:d.getErrorCode(),vvol:d.j.volume};pa(c,d)}if(a.C){d=a.C;var e={lct:d.C.toFixed(3),lsk:d.L,lmf:d.D.j.isLocked(),lbw:sK(d.H).toFixed(3),lhd:qK(d.H).toFixed(3),ltd:(1E9*
rK(d.H)).toFixed(3),laa:d.o.B?cs(d.o.B):"",lva:d.A.B?cs(d.A.B):"",lar:d.o.o?cs(d.o.o):"",lvr:d.A.o?cs(d.A.o):"",lvh:a1(d)};d.j&&!Iv(d.j)&&(e.lab=iy(d.j.j.buffered),e.lvb=iy(d.j.o.buffered));pa(c,e)}c.state=a.B.o.toString(16);V(a.B,128)&&(c.debug_error=a.B.j);TH(a)&&(c.preroll="1");a.j.eh&&(c.ismb=a.j.eh);a.j.isLowLatencyLiveStream&&(c.lowlatency="1");a.j.Da&&a.j.j&&(0,window.isFinite)(a.j.j.o)&&(c.mpdrefresh=a.j.j.o/1E3)}c.debug_videoId=a.j.videoId;return c};
var m2=function(a,b){a.O("internalvideodatachange",b||"dataupdated",a,a.j)};
var Oea=function(a){F("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){U(this.fa,this.o,a,this.ED,this)},a);
a.W.Hc&&(U(a.fa,a.o,"webkitplaybacktargetavailabilitychanged",a.Jy,a),U(a.fa,a.o,"webkitcurrentplaybacktargetiswirelesschanged",a.Ky,a))};
var n2=function(a){var b=a.getCurrentTime(),c=a.j;!dv("pbs",a.F.j)&&kv.measure&&kv.getEntriesByName&&(kv.getEntriesByName("mark_navigation_requested")[0]?kv.measure("measure_above_the_fold","mark_navigation_requested"):kv.measure("measure_above_the_fold"));c.videoId&&a.F.info("docid",c.videoId);c.eventId&&a.F.info("ei",c.eventId);c.clientPlaybackNonce&&a.F.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.F.info("start",c.startSeconds.toString());a.o&&a.o.j.paused&&a.F.info("paused",1);c.o?a.F.info("fmt",
c.o.id):a.F.info("fmt","-1");c.Za&&a.F.info("yt_pre",a.nb?"2":"1");a.W.Hg&&a.F.info("yt_fs","1");a.F.info("cmt",b.toFixed(3));if(a.C){b=a.C;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.T),c.length&&(c=c[0],J0(b,"vri",c.fetchStart),J0(b,"vdns",c.domainLookupEnd),J0(b,"vreq",c.requestStart),J0(b,"fvb",c.responseStart),J0(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.N),c.length&&(c=c[0],J0(b,"ari",c.fetchStart),J0(b,"adns",
c.domainLookupEnd),J0(b,"areq",c.requestStart),J0(b,"avb",c.responseStart),J0(b,"arc",c.responseEnd)));var b=b.ha,d;for(d in b)a.F.o(d,b[d])}};
var Rea=function(a){if(a.ia&&a.o){var b=a.o.j.seekable||hy();b.length&&b.end(0)>a.ia&&(a.o.j.currentTime=a.ia,a.ia=window.NaN,a.Sa=U(a.fa,a.o,"canplay",a.Jz,a))}};
var k2=function(a,b){if(a.o&&a.j){var c=a.getCurrentTime();if(c<cx(a.j))R1(a,j2(a,!1),!0);else{if(a.J){var d=j2(a,!1);if(c<d-I1.o){if(a.j.Bf||hx(a.j)&&a.W.experiments.ma("html5_live_only_stick_to_head")){R1(a,d,!0);return}a.j.Da&&S1(a,!1)}}if(a.C&&(d=a.C,d.j)){d.resume();if(d.L&&!Iv(d.j)){var e=d.C<=c&&c<d.C+10,f=0<=jy(d.j.o.buffered,d.C+G0.j);e&&f&&(d.L=!1)}d.L||(d.C=c);V0(d)}5<c&&(a.j.startSeconds=c);(d=Gu())?Iu(a.ta):Ii(a.ta);!Cy(a.B)&&a.o.j.paused||V(a.B,128)||(e=A(a.Ew,a),a.ta=0==(a.o.j.played||
hy()).length?d?Hu(e,100):Fi(e,100):d?Hu(e,500):Fi(e,500));a.j.hj=c;!b&&a.Ua()&&a.A&&(c=a.A,c.A.update(),fx(c.j.j)&&c.j.j.Te&&!c.L&&EA(c.A)>=c.j.j.Te&&(c.B&&c.j.j.Te&&(d=WA(c,"delayplay"),d.ta=!0,d.send(),c.L=!0),$A(c)),d=c.U,d.B||!d.o.ub||d.o.ne||!d.j.lengthSeconds?d=!1:(e=Math.min(.8*d.j.lengthSeconds,180),d=EA(d.C)>=e),d&&c.U.send());a.O("progresssync",a,b)}}};
var P1=function(a,b){var c=a.B;if(b.o!=c.o||b.j!=c.j){c=new H1(b,a.B);a.B=b;var d=!a.oa.length;a.oa.push(c);0>dB(c,8)&&(Ii(a.za),S1(a,!1));0<dB(c,32)&&S1(a,!1);if(V(c.state,2)&&ix(a.j)){var e=a.getCurrentTime();a.j.lengthSeconds!=e&&(a.j.lengthSeconds=e,m2(a));k2(a,!0)}0<dB(c,2)&&a.Kl();a.A&&cB(a.A,c);if(d)try{for(d=0;d<a.oa.length;d++){var c=a.oa[d],f=a.D,e=c;if(f.G&&!f.J)if(f.A)f.qc(),V(e.j,16)&&aA(f);else if(f.C.stop(),V(e.state,2)){f.F=null;for(var e=[],k=0;k<f.o.length;k++){var l=f.o[k];l.active&&
0x8000000000000>l.end&&e.push(l)}var m=Tz(f.j,0x7ffffffffffff),m=m.concat(Uz(f.j,0x7ffffffffffff)),p=Zz(f,e).concat(Yz(f,m));f.D=!0;$z(f,p);f.D=!1;f.H&&f.qc()}else V(e.state,16)?(f.B=cA(f),f.K.start(),f.qc()):(f.K.stop(),V(e.j,16)?(f.B=cA(f),aA(f)):f.qc());a.O("statechange",c)}}finally{a.oa.length=0}}};
var o2=function(a){V(a.B,2)||V(a.B,32)||(a.K=window.NaN)};
var S1=function(a,b){a.j.Da&&a.J!=b&&(a.J=b,a.O("liveviewshift",b))};
var Pea=function(a,b){Sea(a,b);a.W.$e?Fi(A(function(){w1(this.o)},a),0):w1(a.o)};
var Sea=function(a,b){a.F.o("vta");u1(a.o,b);if($w(a.j)&&$w(a.j)&&!a.G&&a.o){var c=a.j.H;if(c){var d=a.o.ka();a.G=new k1(d,c);a.G.subscribe("newsession",a.zA,a);a.G.subscribe("licenseerror",a.fA,a);a.G.subscribe("qualitychange",a.gA,a);a.G.subscribe("heartbeatparams",a.DD,a);c=a.G;d=a.j.oauthToken;c.G=d;c.O("oauthtoken",d)}else OJ(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}a.H&&Lu();Ii(a.za);a.j.Ae||(a.za=Fi(A(a.lA,a),15E3))};
var a2=function(a){a.G&&(a.G.dispose(),a.G=null)};
var j2=function(a,b){if(!a.o)return 0;if(!a.j.Da){var c=a.j;return c.j&&!(0,window.isNaN)(kt(c.j))?kt(c.j):c.lengthSeconds}if(b&&(a.J||hx(a.j)))return a.getCurrentTime();if(a.C)return c=Z0(a.C),Math.max(Math.max(c,cx(a.j)),a.getCurrentTime())||0;c=a.o.j.seekable||hy();return(1>c.length?window.NaN:c.end(c.length-1))||0};
var c2=function(a,b){void 0==b&&(b=a.getCurrentTime());return b>=j2(a,!1)-I1.j};
var p2=function(a,b){this.j=a;this.o=fa(b)?b:null;if(ib(q2,this.j)){if(!fa(this.o)||0>this.o)throw Error("Must have valid offset");}else if(null!==this.o)throw Error("Must not have offset");};
var r2=function(a){var b=a.o;if(null!==b)return b;switch(a.j){case 1:return 0;case 3:return-1;default:return-100}};
var Tea=function(a,b){var c=a.j,d=b.j;if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.o,f=b.o;return e!=f?null===e?1:null===f?-1:e-f:c-d};
var s2=function(a,b){return"9t_D9IIh_ZI"==b.ia||t2(a,["9418752","9418753"])};
var u2=function(a,b){return ib(a.experiments.experimentIds,b)};
var t2=function(a,b){return Lh(b,oa(ib,a.experiments.experimentIds))};
var v2=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
var w2=function(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null,d="";c?b.error_code=c:(c="getMessage"in a&&ga(a.getMessage)?a.getMessage():a.message,d=Ja(c||"",50),b.error_message=d)}};
var x2=function(a,b){if(a){var c=XT(a).reverse();b.ad_id=rb(c,WT(a)).join(",");c=$T(a).reverse();b.ad_sys=rb(c,QT(a)).join(",");c=aU(a);null!=c&&(b.aqi=c)}};
var y2=function(a,b){if(a[b])return v2(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return v2(a[d]);return!1};
var z2=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 A2=function(a,b,c){var d=new QL;d.baseYouTubeUrl=b.baseYtUrl;d.contentId=c.videoId;d.useShareButton=!0;d.useStyledNonLinearAds=!0;d.useVideoAdUi=a.T;d.showContentThumbnail=a.showContentThumbnail;d.Gf={};c.fa&&(d.Gf.ctrl=c.fa);c.ia&&(d.Gf.ytr=c.ia);c.ga&&(d.Gf.ytrcc=c.ga);c.isMdxPlayback&&(d.Gf.mdx="1");a.Ea?(d.Sj=!0,d.Kv=!0,d.showContentThumbnail=!1,d.fm=!0,d.gm=!0,d.useShareButton=!1):a.B&&(d.Sj=!0);return d};
var B2=function(a){var b=new EW;b.D=a.o.Ia;var c=a.app.D.Ma();b.sf=c.width;b.rf=c.height;b.Cc=c.width;b.Bc=100;b.Qn=eH(a.V());b.F=a.V().experiments.experimentIds;b.Pc=A(a.V().experiments.ma,a.V().experiments);b.ai=A(a.V().experiments.Vb,a.V().experiments);b.Ak=A(a.V().experiments.H,a.V().experiments);b.allowAdsPayCreator=a.o.allowAdsPayCreator;b.Qn?(a.V(),c=QA()):c=-1;c&&(b.G=c);a.o.tagForChildDirected&&(b.hi=!0);if(u2(a.V(),"9415521")||a.o.vb)b.ii=!0;c=C2(a);b.yb={CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,
LACT:Uea(a),VIS:Vea(a)};eH(a.V())||(b.yb.LACT="-1");b.afcRmFallback=a.o.H;u2(a.V(),"9417581")&&(b.C="yt_"+C2(a).videoId);return b};
var Uea=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;a.V();return QA().toString()}}};
var Vea=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:vH(a.V()).toString()}}};
var D2=function(a,b,c,d){this.o=this.A="";this.B=a;this.D=b;this.j=c;this.C=d};
var E2=function(a){var b={};b.l_ns=a.D;b.l_state=a.C;b.break_type=a.B.j;b.sst=r2(a.B);b.sidx=0;a.A&&(b.at=a.A);a.o&&(b.ad_id=a.o);return b};
var F2=function(){var a=v("yt.www.watch.ads.loadAfc");ga(a)?a():G2=!0};
var H2=function(){window.google_ad_output="html";window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"};
var I2=function(){var a=v("window.google_show_companion_ad"),b;b=v("yt.www.watch.ads.getGlobals");ga(a)&&ga(b)?(b=b(),b=Boolean(b&&b.length)):b=!1;b?a():J2=!0};
var K2=function(){var a=v("yt.www.watch.ads.setCompanion");a&&a()};
var Wea=function(a){var b=v("yt.www.watch.ads.showForcedMpu");b&&b(a)};
var L2=function(a,b,c,d){Wj.call(this);this.C=!!b;this.F=a;this.o=c||a;this.H=!!d;this.j=new Av(this);this.B=this.G=null;this.D=this.A=!1;b&&(yc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));M2(this)};
var M2=function(a){a.B=null;a.G=null;U(a.j,a.o,N2("over"),a.mr);U(a.j,a.o,"touchstart",a.xm);a.C&&U(a.j,a.o,N2("down"),a.qy)};
var O2=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.G)return d}return null};
var N2=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
var P2=function(a,b){this.o=a;this.j=b};
var Q2=function(a){return a.j-a.o};
var R2=function(a,b){return a.o+b*Q2(a)};
var S2=function(a,b,c){return Q2(a)?le((b-a.o)/Q2(a),0,1):null!=c?c:window.Infinity};
var T2=function(){this.o=this.position=this.B=this.j=this.C=this.A=this.width=window.NaN};
var U2=function(a,b,c,d,e){var f=b.hp/b.rows,k=Math.min(c/(b.kp/b.Gb),d/f),l=b.kp*k,m=b.hp*k,l=Math.floor(l/b.Gb)*b.Gb,m=Math.floor(m/b.rows)*b.rows,p=l/b.Gb,u=m/b.rows,t=-b.Cv*p,w=-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+") "+t+"px "+w+"px/"+l+"px "+m+"px";if(e)return new te(p,u)};
var Xea=function(){this.A=!1;this.o=0;this.j=""};
var V2=function(a,b,c,d){Wj.call(this);this.j=a;this.o=d;this.B=null;this.adType=c;this.adSystem=b};
var Yea=function(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=x;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0};
var Zea=function(a){this.j=a};
var $ea=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 W2=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 afa=function(a,b){this.C=null;this.A=window.NaN;this.o=null;this.j=a;this.B=b};
var X2=function(a,b,c){a.j.O("AD_LOGGING_EVENT",b,c)};
var Y2=function(a,b,c){Z2(a);var d=$2(a);c&&pa(d,c);d.ad_error=b;X2(a,7,d)};
var $2=function(a){var b={},c=a.j.B,d=a.j.C.$f(),e=a3(a.j);x2(a.j.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=Ng(e),b.ad_dom=c,a.B.o.B&&(b.ad_v_url=e.substr(0,512)));e=a.j;(e=e.o?e.o.jf():null)&&(b.ad_cpn=e);b.format=a.j.Yc();b.at=a.j.mf();b.ad_mt=Math.round(1E3*Math.max(bfa(a.j),0));return b};
var Z2=function(a){a.C||(a.C="InstreamAdDisplay ("+a.j.Yc()+")")};
var b3=function(a,b){H.call(this);this.B=Math.max(0,a);this.A=this.o=0;this.C=b;this.j=window.NaN};
var c3=function(a,b,c,d,e,f){V2.call(this,b,a,2,c);this.K=!1;this.G=this.U=this.L=null;this.j.subscribe("control_toggle_play_pause",this.gs,this);this.j.subscribe("control_play",this.Dl,this);this.j.subscribe("control_pause",this.Cl,this);this.D=new afa(this,this.j);this.A=new Az(this);this.C=d3(b);this.C.subscribe("statechange",this.Uc,this);this.C.subscribe("internalAbandon",this.lp,this);this.C.subscribe("internalvideodatachange",this.es,this);this.F=this.H=!1;this.T=d;this.N=!!e;this.X=!!f;this.J=
new b3(1E3*c3.j,A(this.vj,this))};
var e3=function(a,b){var c=a.j.V();if(a.j.o.T&&"3"==c.A){var c=a.j.app.D,d=c.app.V();SG(d);"3"==d.A&&(c.o.controls=b)}};
var f3=function(a){var b=new Xea;b.A=a.F;b.o=K();a.B&&a.B.clientPlaybackNonce&&(b.j=a.B.clientPlaybackNonce);W1(d3(a.j));g3(a.j,0,b);h3(a.j,0);a.O("adEnd",a);e3(a,!0)};
var i3=function(a,b){a.C.Nf();g3(a.j,0);a.O("adError",b)};
var j3=function(a){return a.B&&a.B.o?a.B.o.mimeType:null};
var a3=function(a){return a.B&&a.B.If?wv(a.B.If.o()):null};
var bfa=function(a){return a.C?a.C.getCurrentTime():0};
var cfa=function(a,b){this.j=a;this.C=b;this.j.Yc();this.o=this.B=0;this.A=null};
var k3=function(a,b,c){a.j.O("AD_LOGGING_EVENT",b,c)};
var l3=function(a){var b={};x2(a.j.getCurrentAd(),b);a.B&&a.o&&(b.ot=a.o-a.B);var c;c=a.C.Ja()?2:a.C.app.ga?1:0;b.ad_ps=c;b.format=a.j.Yc();b.at=a.j.mf();return b};
var m3=function(a,b,c,d){V2.call(this,b,a,1,c);this.A=null;this.F=!1;this.H=null;this.D=new cfa(this,b);this.C=new Az(this);this.G=!!d};
var n3=function(a,b){a.H!=b&&(a.H=b)};
var o3=function(a,b,c,d){H.call(this);this.L=null;this.U=a;this.o=b.jb;this.G=b;this.J=b.getId();this.j=c;this.D=d;this.A=new D2(this.o,this.hg(),c,d);this.C=null;this.N=new Hm(this);this.B=new Hm(this);this.P=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/};
var p3=function(a){var b=new p2(2,o3.o);a.o=b;a.A.B=b};
var q3=function(a,b){a.L=b;var c=b.Yc();a.A.A=c};
var r3=function(a,b){var c=v("yt.www.watch.ads.setAdId");c&&c(b);a.A.o=b};
var s3=function(a){a=r2(a.o);return 0==a||-1==a?a:1E3*a};
var t3=function(a){var b=a.j.V();u2(b,"9417098")&&(a=a.A,b=E2(a),b.format="2_3",b.at="2_3",b.trsp="1",u3(a.j,3,b));I2()};
var v3=function(a){var b=a.G,c=a.o;b.j=a.L;b.jb=c;J(b,b.j);0==b.D&&(a=b.j.mf(),b.A.$.at=a);b.j instanceof c3?b.o=!0:b.j instanceof w3?b.isVisible=!1:b.j instanceof x3?b.isVisible=!1:b.j instanceof y3&&(b.isVisible=!1);b.B="loaded";z3(b)};
var dfa=function(a){this.j=a};
var w3=function(a){V2.call(this,a,2,3,null);this.A=this.C=0};
var A3=function(a){a.C&&(Ji(a.C),a.A=0)};
var B3=function(a,b,c){o3.call(this,2,a,b,c);this.F=new dfa(this.j.o);H2()};
var C3=function(a,b,c){this.o=this.D="";this.H=null;this.B=!1;this.C=this.A="";a&&(this.D=a,this.G=b.Qa,this.B=b.nb,this.F=c,b=this.D,c=b.indexOf(";sz="),a=rj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{uv:b[0],iC:b[1],lC:a})&&(this.A=a.uv,this.C=a.iC,this.H=a.lC)};
var D3=function(a){this.o=a?a:""};
var y3=function(a,b,c,d){m3.call(this,1,a,b,d);this.J=c};
var E3=function(a,b,c){o3.call(this,1,a,b,c);a=this.j.o;this.T=a.ca?new D3(a.adTag):new C3(a.adTag,a,this.J)};
var F3=function(a,b,c,d){E3.call(this,a,b,c|d);this.K=c;this.H=d;this.F=null;H2()};
var G3=function(a,b){var c=b.getCurrentAd(),d=$T(c);d.unshift(QT(c));for(c=0;c<d.length;++c){var e=efa[d[c].toUpperCase()];if(e){a.F=e;return}}a.F=0};
var H3=function(a,b){this.C=[];this.L=a;this.K=b||null;this.B=this.j=!1;this.A=void 0;this.H=this.P=this.F=!1;this.D=0;this.o=null;this.G=0};
var I3=function(a,b,c){a.j=!0;a.A=c;a.B=!b;J3(a)};
var K3=function(a){if(a.j){if(!a.H)throw new L3;a.H=!1}};
var M3=function(a,b,c){N3(a,b,null,c)};
var N3=function(a,b,c,d){a.C.push([b,c,d]);a.j&&J3(a)};
var O3=function(a){return Lh(a.C,function(a){return ga(a[1])})};
var J3=function(a){if(a.D&&a.j&&O3(a)){var b=a.D,c=P3[b];c&&(r.clearTimeout(c.j),delete P3[b]);a.D=0}a.o&&(a.o.G--,delete a.o);for(var b=a.A,d=c=!1;a.C.length&&!a.F;){var e=a.C.shift(),f=e[0],k=e[1],e=e[2];if(f=a.B?k:f)try{var l=f.call(e||a.K,b);n(l)&&(a.B=a.B&&(l==b||l instanceof Error),a.A=b=l);if(zd(b)||"function"===typeof r.Promise&&b instanceof r.Promise)d=!0,a.F=!0}catch(m){b=m,a.B=!0,O3(a)||(c=!0)}}a.A=b;d&&(l=A(a.J,a,!0),d=A(a.J,a,!1),b instanceof H3?(N3(b,l,d),b.P=!0):b.then(l,d));c&&(b=
new Q3(b),P3[b.j]=b,a.D=b.j)};
var L3=function(){ra.call(this)};
var R3=function(){ra.call(this)};
var Q3=function(a){this.j=r.setTimeout(A(this.A,this),0);this.o=a};
var S3=function(a,b){var c=b.o;this.F=c.ta;var d=0,c=c.X.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);o3.call(this,2,a,b,d)};
var T3=function(a,b){V2.call(this,a,14,14,b)};
var U3=function(a,b,c){o3.call(this,14,a,b,c)};
var V3=function(a,b,c){o3.call(this,14,a,b,c)};
var ffa=function(a,b,c,d,e){this.B=a;this.o=b;this.j=c;this.W=this.B.V();this.C=d;this.D=C2(this.B).lengthSeconds;this.F=e;this.A="html5";W3(this)&&"embedded"==this.W.ya?this.A="html5_embed":OG||Kw?this.A="html5_ios":pt("android")?this.A="html5_android":wt()?this.A="html5_wp":qt()?this.A="html5_ps3":"leanback"==this.W.ya?(a=(Zb(window,"environment","brand")||"").toLowerCase(),b=(Zb(window,"environment","model")||"").toLowerCase(),this.A="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):
vt()?this.A="html5_wii":W3(this)&&(this.A="html5_desktop")};
var X3=function(a){return Y3(a.o)?"preroll":Z3(a.o)?"postroll":"midroll"};
var $3=function(a){return(a=a.B.A)?Lh(a.A,function(a){return a4(a)||Z3(a)}):!1};
var W3=function(a){return!$3(a)||s2(a.W,a.j)};
var x3=function(a,b){m3.call(this,4,a,b)};
var b4=function(a,b,c){o3.call(this,4,a,b,c);var d=this.j.o;this.F=D(d.Ya);var e=C2(this.j)&&C2(this.j).spacecastModule;this.H=new ffa(b,a,d,c,!!e)};
var c4=function(a,b,c){this.A=a;this.j=b;this.o=c||0};
var gfa=function(a){return 0<((a.j|a.o)&3)};
var d4=function(a,b,c,d,e){Wj.call(this);this.G=!0;this.o=!1;this.isVisible=!0;this.B="unloaded";this.H=!1;this.D=b;this.A=a;this.jb=c;this.F=d;this.C=this.j=null;this.J=!!e};
var e4=function(a){return Y3(a)?f4(a)&&g4(a)?-0x8000000000000:0:fa(a.jb.o)?1E3*r2(a.jb):0x8000000000000};
var hfa=function(a){return Y3(a)||a.A.j&&1E3*a.A.j.getCurrentTime()>=e4(a)?!1:Ig(a.F,function(a){switch(a.getType()){case 1:case 2:case 3:case 5:return!0;default:return!1}})};
var f4=function(a){return"loaded"==a.B||"error"==a.B};
var Y3=function(a){return 1==a.jb.j};
var g4=function(a){if(!f4(a))throw Error("Preroll status is undefined before ad load.");return Y3(a)&&a.o};
var a4=function(a){return 2==a.jb.j};
var Z3=function(a){return 3==a.jb.j};
var h4=function(a){a.B="loading";Y3(a)&&!Lh(a.F,gfa)&&tq(a.A);if(a.J)a.B="loaded",a.o=!0,z3(a);else{var b=a.F.shift();b?(Y3(a)&&i4(a.A,"nl"),b=b.create(a,a.A),J(a,b),b.load()):(u3(a.A,2,j4(a,{})),k4(a,!1),a.B="error",z3(a))}};
var l4=function(a){a.j&&(a.j.Ba("adEnd",a.pp,a),a.j.Ba("adError",a.Yr,a),a.j.Ba("AD_LOGGING_EVENT",a.Jp,a),a.j.Ba("select",a.Xr,a))};
var z3=function(a){a.O("adBreakComplete",a)};
var k4=function(a,b){a.C&&(a.C.sendImpressionUrls({FILLED_OPPORTUNITY:b?1:0}),a.C.dispose(),a.C=null)};
var j4=function(a,b){b.break_type=a.jb.j;b.sst=r2(a.jb);b.sidx=0;return b};
var m4=function(a){var b=0;a.K&&(b|=1);a.J&&(b|=2);var c=0;a.C&&(a.F&&(c=4),b||a.U||(b=c,c=0));a=new yg;a.set(3,b);a.set(4,c);return a};
var n4=function(a,b){var c=[];if(a.da)return c.push("pla"==(a.X||"").toLowerCase()?new c4(8,16):new c4(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.U&&c.push(new c4(7,16)),c;if(a.L){var d=0;if(a.A||a.D)d|=1;a.P&&(d|=4);a.N&&(d|=8);c.push(new c4(5,d))}d=0;a.G&&(a.A&&(d|=1),a.D&&(d|=2),a.P&&a.C&&(d|=4),a.N&&a.C&&(d|=8));var e=m4(a),f=e.get(3);d&&f&&ifa(a,b)?c.push(new c4(3,d,f)):(d&&c.push(new c4(2,d)),f&&c.push(new c4(1,f)));a.independentBreakOffsets||f&4||!a.U||c.push(new c4(7,16));(d=e.get(4))&&
c.push(new c4(1,d));return c};
var o4=function(a){this.j=a};
var p4=function(a){var b=[];F(jfa(a),function(a,d){var e=this.j,f;f=n4(this.j.o,a.j);e=new d4(e,d,a,f);b.push(e)},a);
return b};
var jfa=function(a){var b=a.j.o,c=[];if(b.L&&!s2(a.j.V(),b))c=q4;else if(b.ha){var d=b.ha.split(",");for(a=0;a<d.length;a++){var e=Xa(d[a]),e=0>e?new p2(3):0<e?new p2(2,e):new p2(1);c.push(e)}}else c=q4;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new p2(5,Xa(b[a])));Cb(c,Tea);return c};
var kfa=function(a,b){this.W=a;this.Ea=this.W.isMobile;this.B="leanback"==this.W.ya;this.j=this.Ea||this.B;this.T=!this.B&&!SG(a);this.A=v2(b.instream);this.Qa=1==b.livestream;this.D=v2(b.trueview);this.$=v2(b.aftv);this.ha=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.ga=b.cafe_experiment_id;this.adTag=b.ad_tag;this.bb=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.La=lfa(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.Ha=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls;this.Sa=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.Ia=(0,window.parseInt)(b.forced_skip_offset,10);this.X=b.force_ad_type;this.ta=b.force_ad_url;this.Ya=b.freewheel_ad_tag;this.gender=bc(mfa,function(a){return a==b.ad_gender});
this.oa=b.dbp;this.H=v2(b.afc_rm_fallback);this.nb=!!b.mpu;this.F=v2(b.afv)&&!this.j;this.J=this.$&&this.D;this.K=this.$&&this.A&&!v2(b.no_afv_instream);this.G=v2(b.dclk);this.ca=v2(b.gpt_migration);this.da=v2(b.forced_ad)&&!this.j;this.L=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.ub=!!b.fqsf;this.P=v2(b.invideo)&&!this.j;this.N=v2(b.mpu)&&!this.j;ib(this.La,"yt_mabv");this.U=!!b.pla;this.Za=v2(b.shortform);this.C=v2(b.sffb);this.Ca=b.ad_language_iso639_2;this.allowAdsPayCreator=!!b.allow_ads_pay_creator;
this.maxDynamicAllocationAdTagLength=(0,window.parseInt)(b.max_dynamic_allocation_ad_tag_length,10);(0,window.isNaN)(this.maxDynamicAllocationAdTagLength)&&(this.maxDynamicAllocationAdTagLength=2E3);this.o=(0,window.parseInt)(b.midroll_freqcap,10);(0,window.isNaN)(this.o)&&(this.o=-1);this.midrollPrefetchSize=(0,window.parseInt)(b.midroll_prefetch_size,10)||0;this.$a=b.pla_ad_tag;"boolean"==typeof b.show_content_thumbnail&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=
v2(b.tag_for_child_directed);this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.Y=this.$&&this.C&&!this.F;this.za=this.F||this.Y;this.ab=(0,window.parseInt)(b.ad_device,10);this.Fa=b.tpas_video_id;this.fa=b.tpas_partner_id;this.vmap=b.vmap;this.Ab=this.W.Ab;this.vb=b.post_ad_requests;this.showContentThumbnail=!0};
var ifa=function(a,b){if(C(D(a.dynamicAllocationAdTag)))return!1;var c=(a.A||a.D)&&a.G;a.C&&a.G&&(c=c||a.P||a.N);if(!c)return!1;c=a.J||a.K;if(!(c||a.C&&a.F))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.ca?25:102);window.document.referrer&&(d+=ua("ref="+ua(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength};
var lfa=function(a){if(C(D(a)))return[];a=(new P(a)).j.get("channel");return null!=a?a.split("+"):[]};
var nfa=function(a){this.o=C2(a);this.j=a.V()};
var r4=function(a,b,c){var d=s4,d=null!=d?d:s4;if(t2(a.j,d)){var e=a.j.baseYtUrl+"player_204";c=c||{};c.event="cdp";c["var"]=b;c.sdkv="h.3.0.0";c.cpn=a.o.clientPlaybackNonce;c.exp=be(d,kd(oa(u2,a.j),oa(ib,s4))).join(",");a=wj(e,c);dq(a)}};
var t4=function(a,b){H.call(this);this.j=a;this.J=b;this.F=a.j.getVideoData();this.A=[];this.C=this.D=this.G=this.B=this.o=0;this.H=!1;var c=a.V().experiments;this.K=c.ma("enable_dynamic_ad_break")&&!!this.F.lengthSeconds&&600<this.F.lengthSeconds;this.L=c.Vb("dynamic_ad_break_pause_threshold_sec")||5;this.N=c.Vb("dynamic_ad_break_seek_threshold_sec")||120;this.K&&this.j.app.subscribe("applicationplayerstatechange",this.Uc,this)};
var u4=function(a){return(a.j.B?a.H:!!a.j.A&&0==a.j.A.A.length)&&1==a.j.getPresentingPlayerType()};
var v4=function(a){a.B&&Ii(a.B);a.B=0;a.o=0};
var w4=function(a,b){var c=null!=vj(a.j.V().F).debugjs,d=a.F.videoId,e=a.F.eventId,f=a.o,k;k=a.A.length?a.A[a.A.length-1]:Math.max(a.J.o(),a.D);k=K()/1E3-k-a.C;c=wj("/gen_204?"+Ug({a:"longform-dynamic-ad-break-desktop-"+b,vid:d,eid:e,mt:f,cwt:k,dt:K()/1E3,dab:a.A,paet:Math.max(a.J.o(),a.D),debug:c}),{});dq(c)};
var x4=function(a){H.call(this);this.j=a;this.o=window.NaN;this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.A=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.Vq()};
var y4=function(a,b){a.C[b]&&(VH(a.j.j,[a.C[b]],void 0),delete a.C[b])};
var z4=function(a,b,c,d){0>=c||((0,window.isNaN)(a.o)||Ii(a.o),c=K()+c,a.o=0==d?Hq(A(a.ls,a,b,c,100),0):Hq(A(a.ks,a,b,c,100),0))};
var A4=function(a,b,c){var d=a.j.V();a=C2(a.j);b.volume=c*(d.useMediaVolume?Bw.j:a.Ch)};
var B4=function(a){x4.call(this,a)};
var C4=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;F(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))});
return 1E3*b};
var D4=function(a){H.call(this);this.j=a;this.o=window.NaN;this.A={};this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.G=a.fadeInStartMilliseconds;this.H=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.J=1E3*this.j.j.getVideoData().lengthSeconds;this.F=this.B+this.H;this.wn()};
var E4=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.J};
var ofa=function(a){a=a.getAttribute("breakType");return!!a&&Lh(a.split(","),function(a){a=Ra(a);return"linear"==a})};
var pfa=function(a,b){if(!E4(a,b))return null;var c,d=3;c=!0;d=d?d:0;c=c?c:!1;var e=(0,window.parseFloat)(Na(b/1E3,2,d)),f=Math.floor(e/60),k=Math.floor(f/60),f=f%60,d=Na(e%60,2,d);c=d=k||c?k+":"+Na(f,2)+":"+d:f+":"+d;return 1==c.split(":")[0].length?"0".concat(c):c};
var qfa=function(a,b){var c=Math.max(Math.abs(a.B),Math.abs(a.F));F(b,A(function(a){var e=Lh(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=rfa(this,a);
if(e||!f)return!1;this.A[f]=a},a));
return 0<Tb(a.A)};
var rfa=function(a,b){var c=1E3*Math.round((b+a.F)/1E3),d=b+a.B,e=b+a.G;return E4(a,b)&&E4(a,c)&&E4(a,d)&&E4(a,e)?c:null};
var F4=function(a,b,c,d){0>=c||(a.o&&Ii(a.o),c=K()+c,a.o=0==d?Hq(A(a.us,a,b,c,100),0):Hq(A(a.ts,a,b,c,100),0))};
var G4=function(a,b,c){var d=a.j.V();a=C2(a.j);b.volume=c*(d.useMediaVolume?Bw.j:a.Ch)};
var H4=function(a){D4.call(this,a)};
var I4=function(a,b){var c=a.o,c=c.applyFadeOnMidrolls&&(c.A||c.D);return a.B?c&&!b?new D4(a):new H4(a):c&&!b?new x4(a):new B4(a)};
var J4=function(a,b,c){H.call(this);this.j=a;this.F=b;this.D=c;this.C=this.A=-1;this.D&&0<this.j.o.o&&this.j.subscribe("endseeking",this.B,this)};
var sfa=function(a,b){K4(a);0<b&&(a.C=Fi(A(a.B,a),1E3*b))};
var K4=function(a){-1!=a.C&&(Ii(a.C),a.C=-1)};
var L4=function(a,b){if(!a.D||!a4(b)&&!Z3(b))return!1;var c=a.j.o.o;if(0>=c||0>=a.A)return!1;var d=K()/1E3,e=M4(a,b)-a.j.j.getCurrentTime();0<e&&(d+=e);return d-a.A<=c};
var M4=function(a,b){return Z3(b)?a.j.j.getVideoData().lengthSeconds:r2(b.jb)};
var N4=function(a,b){H.call(this);this.o=null;this.N=[];this.K=0;this.A=b;this.H=[];this.B={};this.F={};this.j=a;var c=!a.o.Qa&&Lh(this.A,function(a){return a4(a)||Z3(a)});
this.C=new J4(this.j,this,c);this.D=I4(this.j);this.ca=new t4(this.j,this.C);this.X=Lh(this.A,function(a){return Y3(a)})};
var tfa=function(a){a.H.length||(a.H=be(a.A,function(a){return"unloaded"==a.B}),0==a.H.length?tq(a.j):(a.X||tq(a.j),O4(a)))};
var O4=function(a){if(a.H.length){var b=a.H.shift();b.subscribe("adBreakComplete",a.Ff,a);h4(b)}};
var ufa=function(a,b){function c(a){return a&&5!=a.jb.j}
var d=jb(a.A,b),e=wb(a.A,0,d),d=wb(a.A,d+1);return{previous:db(e,c),next:db(d,c)}};
var P4=function(a,b,c){var d=e4(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=r2(b.jb)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.D.Rq(b,d);c=a.D.Qq(b,c);c=new lq(d,c,e);a.F[b.getId()]=c;a.j.fb([c]);a.D.un(b)}};
var Q4=function(a,b){var c=b.getId();a.F[c]&&(y4(a.D,c),VH(a.j.j,[a.F[c]],void 0),delete a.F[c])};
var R4=function(a,b){if(n(b)){var c=a.wj(b);if(c)if(a.o==c&&!c.o&&c.isVisible)c.show();else{if(a.o){if(5==c.jb.j){a.o.o?a.N.push(b):c.show();return}a.ze(a.o)}if(L4(a.C,c))a.o=null,c=a.F[c.getId()],c.visible||(c.visible=!0,a.j.j.fb([c],1)),a.j.V()&&(u2(a.j.V(),"9412857")||u2(a.j.V(),"9412859"))&&a.Cq();else{5!=c.jb.j&&(a.o=c);c.subscribe("adBreakComplete",a.vl,a);if(c.o&&(S4(a.j),null!=a.j.C)){var d=a.C.o(),d=0<d?Math.floor(K()/1E3-d):0;r4(a.j.C,"show_instream_ads",{tfla:d})}a.D.ms(c);c.show()}}}};
var T4=function(a,b,c){N4.call(this,a,b);this.J=[];this.L=[];this.G=[];this.T=c;this.P=0;this.U=a.o.o;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],hfa(c)){var d=new d4(c.A,c.D,c.jb,c.F,!0);b[a]=d;this.J.push(c)}this.X||this.Hf()};
var U4=function(a){V4(a);a.P=Fi(A(a.Hf,a),1E3*(a.U-10))};
var V4=function(a){a.P&&Ii(a.P);a.P=0};
var W4=function(a,b){N4.call(this,a,b);this.U=a;this.T=!0;this.J=[];this.fa=1;this.da=null;this.L=0};
var X4=function(a){if(null==a.o&&0<a.J.length){var b=a.J[0];b.isVisible?(a.T=a.G.J,a.$=Math.ceil(K()/1E3),b.subscribe("adBreakComplete",a.P,a),a.o=b,b.show()):a.P()}else null!=a.o&&a.L++};
var vfa=function(a,b){this.H=a;this.o=b;this.G=K();this.D=0;this.j=a.o;this.C={};this.F=new Zea(a);var c=[];this.j.L&&this.j.A&&c.push("4_2");this.j.G&&(this.j.A&&c.push("1_2"),this.j.D&&c.push("1_2_1"),this.j.P&&c.push("1_1"),this.j.N&&c.push("1_3"));this.j.J&&c.push("2_2_1");this.j.K&&c.push("2_2");this.j.F&&c.push("2_1");(this.j.za||this.j.H)&&c.push("2_3");this.j.U&&c.push("14_14");this.B=c.join(",");this.A="";this.C.allowed=this.B;(c=this.j.excludedAds)&&(this.C.ex_ads=c)};
var Y4=function(a,b,c){H.call(this);this.o=a;this.A=b;this.G=c;this.B=this.D=-1;this.j=Z4(this.A.Md());a=this.A.Md();a.length&&(a=a[a.length-1],-1==a&&this.o.fb([this.j[a]]));0<this.o.o.o&&this.o.subscribe("endseeking",this.C,this)};
var wfa=function(a,b){$4(a);0<b&&(a.B=Fi(A(a.C,a),1E3*b))};
var $4=function(a){-1!=a.B&&(Ii(a.B),a.B=-1)};
var Z4=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 lq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new lq(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b};
var a5=function(a){0<a.o.o.o&&(a.D=K()/1E3,a.C())};
var b5=function(a){H.call(this);this.H=this.A=this.B=this.F=this.o=null;this.K=this.J=!1;this.j=a;this.G=null;this.P={};this.N=new Hm(this);this.D=new Hm(this);this.L=this.C=null};
var xfa=function(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);F(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,f,k;"end"==b?(e="post",f=-1,k="postroll"):(e="mid",f=C4(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 yfa=function(a,b){var c=vz(b),d=c.childNodes[0];if(!d)return b;var e=db(d.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});
if(e){var f=db(e.childNodes,function(a){return"Extensions"==a.localName}),k=db(f?f.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")}),f=f.removeChild(k),l=e,m=1;
F(f?f.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=xfa(e,a,m);m++;d.insertBefore(a,l.nextSibling);l=a});
d.removeChild(e)}f=a.C.qq(d);f||(Mb(a.C),a.C=I4(a.j,!0));return e||f?yz(c):b};
var zfa=function(a){var b=A2(a.j.o,a.j.V(),C2(a.j));b.Lv=!0;b.Bn=!1;b.oq=10;b.El=a.C.ao();return b};
var Afa=function(a,b){var c=ET(b);if(y2(c,o3.j)&&a.j.o.H)return a.B=new w3(a.j),a.B.show(),!1;if(y2(c,"blockAllAds"))return a.o.sendImpressionUrls(),a.B=new y3(a.j,a.o,1,!0),!1;if(y2(c,"hideMaster"))return a.B=new y3(a.j,a.o,0,!0),!1;a.B=new m3(c5(b),a.j,a.o,!0);a.B.show();a.J=!1;return!0};
var d5=function(a,b){if(b&&"adLoadError"==b.getType()){var c=a.j.o;!c.j&&c.za&&(a.B=new w3(a.j),a.B.show())}};
var e5=function(a){a.B&&(a.B.dispose(),a.B=null)};
var c5=function(a){var b=$T(a);a=0<b.length?b.pop():QT(a);a=Bfa[a.toUpperCase()];return null!=a?a:0};
var f5=function(a){a.K||(tq(a.j),a.K=!0)};
var h5=function(a){B_.call(this,a);this.logEvent=this.qa="ad";this.o=this.A=this.J=null;this.T=this.X=!1;this.B=this.L=null;PK.j=!0;PK.B=!1;PK.F=!0;PK.D=0;this.K=null;this.ca={};this.$={at:"0"};this.H=new Yq(this.j);Xq(this.j,this.H.element,4);this.Y=this.D=null;this.U=-1;this.C=null};
var C2=function(a){return i5(a.app)};
var u3=function(a,b,c){a=a.J;c=c||{};var d=(K()-a.G)/1E3;c.art=d;d=a.H.V();d.Dd&&(c.feature=d.Ha);c.ad_flags=a.j.adFlags;(d=a.j.Sa)&&(c.cid=d);c.mt=a.o.getCurrentTime();(d=QA())&&(c.lact=d);(d=a.o.fh())&&(c.len=d);a.j.ub&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.A=c.at;b=a.F;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?W2(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.j.o.ab;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":ib(q2,Xa(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=$ea(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=W2(d);
break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}k=d3(b.j);f=C2(b.j);e.cpn=f.clientPlaybackNonce;e.content_v=f.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.j.A,e.mt=null!=c&&null!=c.o?1E3*r2(c.o.jb):0):e.mt=Math.round(1E3*k.getCurrentTime());c=b.j.V();e.ei=f.eventId;e.lact=QA();e.vol=Math.round(b.j.app.Va.Db());e.vis=vH(c);c=j5(b.j);e.p_w=c.width;e.p_h=c.height;e.rt=K();if(c=(c=L1(k))&&Ye(c)===window.document?ag(c):null)e.pv_h=c.getHeight(),e.pv_w=c.getWidth();k=Fg(e);if("undefined"==
typeof k)throw Error("Keys are undefined");c=new ih(null,0,void 0);e=Eg(e);for(f=0;f<k.length;f++)a=k[f],d=e[f],da(d)?qh(c,a,d):wh(c,a,d);b=b.j.V().baseYtUrl+"api/stats/ads";b=new P(b);gh(b,c);dq(b.toString())}};
var k5=function(a,b,c){c=c||{};c.ad_error=b;u3(a,7,c)};
var l5=function(a){if(!a.X){var b=a.V().baseYtUrl;dq(b+"mac_204?action_fcts=1");a.X=!0}};
var m5=function(a){return a.A instanceof W4?a.A:null};
var n5=function(a){a=a.H;if(a.o.V().G)a=IE(a.o).o;else{if(!a.B){var b;b=a.o.app;if(b.W.G){var c=Xf(b.A),d=jg(b.A);b.fa=new ve(c.x,c.y,d.width,d.height);Z1(b.C);py(b.A,1);br(b.A);b=b.A}else b=o5.getTag(void 0,void 0);a.B=b;$d(a.B,["video-stream","ad-video"])}a=a.B}return a};
var d3=function(a){if(!a.D){var b=gc(a.V().L);b.autoplay="1";b.eventid=C2(a).eventId;b.content_v=C2(a).videoId;b=new JG(b);b.ya="adunit";var c=n5(a);b.tc=c;a.D=new I1(b,2,new C_(b,""),a.app.D,A(a.app.O,a.app))}return a.D};
var j5=function(a){return a.o.B?(a=a.app.D.Ma(),new ve(0,0,a.width,a.height)):lg(a.Aa())};
var p5=function(a,b){i4(a,"bd");var c;c=a.o;var d=c.midrollPrefetchSize;c=c.Qa?new W4(a,b):0<d?new T4(a,b,d):new N4(a,b);a.A=c;tfa(a.A)};
var S4=function(a){a.T=!0;a.O("command_redirect_controls",a,["play_pause"],void 0);a.B||a.pauseVideo()};
var q5=function(a){$q(a.H);a.T=!1;xq(a)};
var h3=function(a,b){switch(b){case 1:a.U=1;a.O("publish_external_event","onAdStart");break;case 0:a.U=0,a.O("publish_external_event","onAdEnd")}};
var g3=function(a,b,c,d){d&&a.O("publish_external_event","onAdInfoChange",d);a.O("publish_external_event","onAdStateChange",b,n5(a),c)};
var i4=function(a,b){var c=b;"nl"==b&&(c=a.J,c.D++,c=c.D.toString());a.ca[c]=K();"bs"!=c&&"fb"!=c||uq(a,a.ca,a.$)};
var r5=function(a){return Boolean(a.o.C&&a.A&&1<a.A.A.length)};
var s5=function(a,b,c){H.call(this);this.o=a;a.subscribe("onVolumeChange",this.Ip,this);this.J=A(this.pA,this);a.j.addEventListener("onCaptionsTrackListChanged",this.J);this.C=!1;this.j=c;c.subscribe("proxyStateChange",this.Vp,this);c.subscribe("remotePlayerChange",this.Al,this);c.subscribe("remoteQueueChange",this.Bl,this);this.L=new qy;this.G=this.F=window.NaN;this.K=0;this.A={};this.D=null;this.H=new Fm(this.OC,1E3,this);J(this,this.H);this.P=0;this.B=!1;a=this.o.j.xb("captions","track");cc(a)||
t5(this,a);this.Bl();this.Al()};
var u5=function(a,b){var c=a.o,d=a.o.j.getVideoData().lengthSeconds;c.J=b||0;WH(c.j,b,d)};
var v5=function(a){a.B||(u5(a,0),w5(a),x5(a,new qy));Nx(a.o.app.Va.V())||(a.B=!0)};
var t5=function(a,b){if(y5(a)&&!a.C){if(b){var c={style:a.o.j.xb("captions","displaySettings")};ic(c,b);a.j.Ql(z5(a),c)}else a.j.Ql(z5(a),null);a.A=Do(a.j).A}};
var A5=function(a){a.j.pause();var b=Do(a.j);u5(a,wo(b));w5(a);x5(a,new qy(4))};
var B5=function(a){a.j.play();C5(a);x5(a,new qy(8))};
var D5=function(a,b){var c=a.o.j.bc();c?Eo(a.j,z5(a),b,c.j,a.o.j.getVideoData().playlistId):Eo(a.j,z5(a),b);x5(a,new qy(1))};
var E5=function(a,b){if(b){var c=a.o.j.xb("captions","tracklist",{Ro:1});c&&c.length?a.o.j.de("captions","track",b):(a.o.j.nj("captions"),a.C=!0)}else a.o.j.de("captions","track",{})};
var y5=function(a){return uo(Do(a.j))==z5(a)};
var z5=function(a){return a.o.j.getVideoData().videoId};
var C5=function(a){w5(a);if(!a.j.isDisposed()){var b=Do(a.j);b.Ua()&&x5(a,new qy(8));u5(a,wo(b));a.F=Fi(A(function(){C5(this)},a),500)}};
var w5=function(a){Ii(a.F);a.F=window.NaN};
var F5=function(a){Ii(a.G);a.G=window.NaN};
var x5=function(a,b){F5(a);var c=a.L;a.L=b;a.B=!1;var d=a.o;d.L=b;d.app.O("presentingplayerstatechange",new H1(b,c))};
var G5=function(a){B_.call(this,a);this.qa=this.logEvent="remote";this.B={key:Qj(),name:R("YTP_MDX_MY_COMPUTER")};this.A=null;this.D=[];this.H=this.K=this.o=null;this.U=[this.B];this.C=this.B;this.L=new qy;this.J=0};
var H5=function(a,b,c){var d=c||a.B;b.unshift(a.B);a.U=b||[a.B];d=db(b,function(a){return a.key==d.key});
a.C=d||a.B;a.O("publish_external_event","onMdxReceiversChange")};
var I5=function(a){S.call(this,["span"]);this.element.innerHTML=a};
var J5=function(a,b){S.call(this,["span","","{{sparkline_container}}"]);this.C=a;this.B=b;this.o=new I5("");J(this,this.o);Eq(this,"sparkline_container",this.o)};
var K5=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.C+","+a.B*(1-b[e]/c));return'<svg width="'+a.C+'" height="'+a.B+'" viewbox="0 0 '+a.C+" "+a.B+'"><g><polyline stroke="white" fill="none" points="'+d.join(" ")+'"/></g></svg>'};
var L5=function(a){S.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}}"]]]]);T(this,this.na["html5-video-info-panel-close"],"click",this.ea);this.B=new J5(200,14);J(this,this.B);Eq(this,"bandwidth_sparkline",this.B);this.C=new J5(200,14);J(this,this.C);Eq(this,"live_latency_sparkline",this.C);this.D=new Wd(this.F,500,this);J(this,this.D);this.o=a};
var M5=function(a){var b=["div","html5-video-player",{tabindex:-1,id:a.X.attrs.id},["div","html5-video-container",{"data-layer":0}]];b.push(["div","html5-video-content",{"data-layer":0}]);Jq.call(this,b);vi(this.element,"version",a.X.assets.js);this.app=a;this.P=null;this.B=this.na["html5-video-container"];this.ca=!!this.B;this.F=new ve(0,0,0,0);this.o=null;this.J=new ve(0,0,0,0);this.L=this.na["html5-video-content"];this.Y=this.da=0;this.K=null;this.G=0;a=a.V();this.T=!a.experiments.ma("legacy_efficient_resize")||
a.nb||"blazer"==a.j;this.X=!a.experiments.ma("legacy_efficient_resize")&&Rx(a);this.H=this.C=null;this.addEventListener=A(this.element.addEventListener,this.element);this.removeEventListener=A(this.element.removeEventListener,this.element);this.dispatchEvent=function(){};
a=Nx(a)&&"blazer"!=a.j&&"mweb-polymer"!=a.j&&window.matchMedia?A(window.matchMedia,window):x;this.$=a(M5.D);this.ta=a(M5.C);this.ga=a(M5.B);this.ia=a(M5.o);this.oa=a(M5.j);this.fa=a(M5.A);this.D=null;Li({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",YTP_SWITCH_CAMERA:"Switch camera"});this.app.subscribe("initializingmode",
this.gx,this);this.app.subscribe("videoplayerreset",this.eF,this);this.app.subscribe("videodatachange",this.dF,this);this.app.subscribe("presentingplayerstatechange",this.Dw,this)};
var Cfa=function(a,b){a.o=b;if(!a.o.parentNode)try{rf(a.B,a.o,0)}catch(d){var c="videoElement_: "+!!a.o+", containerElement: "+!!a.B+", containerElement.childNodes: "+!(!a.B||!a.B.childNodes)+", containerInitiallyTruthy: "+a.ca+", isDisposed: "+a.isDisposed();throw Error(c);}a.D&&(a.D.disconnect(),a.D=null);!a.app.V().experiments.ma("no_detect_bad_extensions2")&&window.MutationObserver&&(a.D=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.J=new ve(0,0,0,0),N5(this))}},a)),a.D.observe(a.o,{attributes:!0}));
a.J=new ve(0,0,0,0);N5(a);Dfa(a)};
var Dfa=function(a){L(a.o,"video-stream");L(a.o,"html5-main-video");var b=a.app.V();"3"==b.A&&a.o.setAttribute("controls",!0);b.ta&&a.o.setAttribute("data-no-fullscreen",!0);b.Cb&&a.o.setAttribute("webkit-playsinline","");b.pe&&T(a,a.o,"click",a.o.play,a.o)};
var O5=function(a,b){if(a.o){var c=a.app.V();Tv&&(a.o.setAttribute("x-webkit-airplay","allow"),b.title?a.o.setAttribute("title",b.title):a.o.removeAttribute("title"));var d;c.Lj&&b.videoId?d=b.kc(c,"default.jpg"):c.experiments.ma("legacy_poster_behavior")||yc&&!P5&&!ot()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.o.poster=d)}c=b.Oc("yt:bgcolor");a.B.style.backgroundColor=c?c:"";a.da=Du(b.Oc("yt:stretch"));c=b.Oc("yt:crop");a.Y="fullwidth"==c?window.Infinity:
Du(c)};
var zJ=function(a){return a.o?new te(0<a.o.style.width.indexOf("px")?(0,window.parseInt)(a.o.style.width,10):a.o.clientWidth,0<a.o.style.height.indexOf("px")?(0,window.parseInt)(a.o.style.height,10):a.o.clientHeight):new te(0,0)};
var oF=function(a){return(a=a.o)?Q5(a.videoWidth,a.videoHeight):window.NaN};
var HE=function(a,b){var c=a.Ma(),d=R5(a,c,oF(a),S5(a),b);return new ve((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)};
var R5=function(a,b,c,d,e){c=a.da||c;a=(0,window.isNaN)(c)?c:a.Y||c;d=Q5(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 Q5=function(a,b){return 1>Math.abs(T5*b-a)||1>Math.abs(T5/a-b)?T5:a/b};
var S5=function(a){return Tv?!0:"3"!=a.app.V().A&&!(0,window.isNaN)(oF(a))};
var N5=function(a){var b=oF(a),c=a.Ma(),d=1,e=S5(a),f=!1,k=rq(a.app),l=k&&k.getPlayerState(),k=R5(a,c,b),m=a.app.V();!l||V(l,2)||By(l)?m.experiments.ma("container_overflow")?(a.B.style.overflow="hidden",b=new ve(0,0,c.width,c.height)):(b=-c.height,Tv?b*=window.devicePixelRatio:wc&&(b-=window.screen.height),b=new ve(0,b,c.width,c.height)):(m.experiments.ma("container_overflow")&&(a.B.style.overflow=""),e&&!(0,window.isNaN)(b)?(d=k.aspectRatio/b,b=new ve((c.width-k.width/d)/2,(c.height-k.height)/2,
k.width/d,k.height)):b=new ve(0,0,c.width,c.height));xe(a.J,b)||(a.J=b,gg(a.o,ye(b)),Vf(a.o,ze(b)),f=!0);c=new ve((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);xe(a.F,c)||(a.F=c,gg(a.L,c.width,c.height),Vf(a.L,c.left,c.top),f=!0);Of(a.o,"transform",1==d?"none":"scaleX("+d+")");return f};
var U5=function(a,b,c,d){Av.call(this);U(this,a,"click",this.K);U(this,a,"dblclick",this.G);this.H=b;this.B=c;this.C=d||null;this.o=new Wd(this.F,200,this);J(this,this.o);this.j=!0;this.A=!1;this.D=null};
var V5=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&&dq(c.data.follow_on_url)}};
var W5=function(){this.j=[];this.o=[]};
var X5=function(a,b,c){c=window.document.createElement(c?"audio":"video");pa(c,Efa);Sl(c,"loadeddata",A(c.yv,c));Sl(c,"volumechange",A(c.Av,c));OG&&6<=Lw&&Sl(c,"webkitbeginfullscreen",A(c.play,c));b||c.src||c.load();a.o.push(c);return c};
var Y5=function(a,b,c){Wj.call(this);this.B=a;this.L=A(b,null);this.o=0;this.D=!1;this.A=new qe(window.NaN,window.NaN);this.j=new Av(this);J(this,this.j);b=c?4E3:3E3;this.H=new Wd(oa(this.cb,1,!1),b,this);J(this,this.H);this.J=new Wd(oa(this.cb,2,!1),b,this);J(this,this.J);this.K=new Wd(oa(this.cb,512,!1),3E3,this);J(this,this.K);c||(this.F=U(this.j,a,"mouseover",this.Bs),U(this.j,a,"mousemove",this.$E),U(this.j,a,"mouseleave",this.ry));vc?U(this.j,a,"keypress",this.ay):U(this.j,a,"focusin",this.Xv);
this.C=U(this.j,a,"mousedown",this.As);this.G=U(this.j,a,"touchstart",this.Cs);this.N=null;this.cb(640,!0)};
var Z5=function(a,b){Fx.call(this,a,b);this.K=null;this.F=this.G=this.C=this.B=0;this.D=-75;L(this.element,"ytp-tv-static");$5(this,a,b)};
var a6=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 $5=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.K=d;a.G=a6(b);a.F=a6(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}};
var b6=function(a){S.call(this,["div",["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.C=a;this.B=[];void 0==c6&&(a=window.document.createElement("canvas"),c6=!(!a.getContext||!a.getContext("2d")));c6&&(this.o=new Z5(1,1),this.o.j(this.element,0),J(this,this.o));a=IE(this.C).Ma();this.o&&$5(this.o,a.width,a.height)};
var Ffa=function(a,b,c){d6("add_to_watch_later_list",a,b,c)};
var Gfa=function(a,b,c){d6("delete_from_watch_later_list",a,b,c)};
var d6=function(a,b,c,d){Gj(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Vc:{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:Ei("PLAYBACK_ID")||null},context:b.context,onError:b.onError,kb:function(a,c){var d=c.result;d&&d.actions&&V5(d.actions);b.kb.call(this,
a,c)},
Rb:b.Rb,withCredentials:!!d})};
var e6=function(a){this.A=a;this.o=this.j=null};
var f6=function(a){if(!a.j){a.j=new S(["canvas",{style:"display: none"}]);a.j.j(a.A);var b=a.j.element;try{a.o=b.getContext("webgl")}catch(c){}}};
var g6=function(a){a.o=null;a.j&&(Dq(a.j),a.j=null)};
var h6=function(a){S.call(this,["div","ytp-bezel",{role:"status","aria-label":"{{label}}"},["div","ytp-bezel-icon"]]);this.o=new Sq(this,500);J(this,this.o);this.aa=a;this.B=null};
var i6=function(a){var b=pz(a.aa);ty(b)?(b=a.aa.getVideoData(),b.Da&&!b.Ed?j6(a,3):j6(a,2),a.o.show(!0)):V(b,64)||(j6(a,1),a.o.show(!0))};
var j6=function(a,b){if(a.B!=b){a.B=b;var c,d;switch(b){case 2:c=R("YTP_PAUSE");d=Dh?'<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=R("YTP_PLAY");d=Dh?'<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=R("YTP_STOP"),d=Dh?'<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];N(e,"ytp-bezel-icon-play",1==b);Eq(a,"label",c);d&&(e.innerHTML=d)}};
var k6=function(a,b){var c=IE(a).Ma();S.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.F=a;this.$=b;this.L=this.na["ytp-tooltip-bg"];this.ga=this.na["ytp-tooltip-image"];this.Y=A(this.wA,this);this.fa=A(this.Rl,this,1);this.ca=A(this.Rl,this,3);this.ia=A(this.Rl,this,4);this.o=null;this.H=new Sq(this,100);
J(this,this.H);this.K=this.G=this.B=null;this.C=window.NaN;this.J="";this.T=0;this.X=c.width;this.P=!0;this.da=c;this.D=1;this.N=new Wd(this.hy,250,this);J(this,this.N)};
var l6=function(a,b){switch(b){case 1:case 2:return a.fa;case 3:return a.ca;default:return a.ia}};
var m6=function(a,b){if(null!=a.B)if(b)switch(a.B){case 1:case 3:case 4:n6(a);a.H.show(!1,400);break;default:a.H.show()}else a.H.ea();a.P=b};
var o6=function(a,b,c){if(a.$)return x;var d=c||4;b.addEventListener("mouseover",l6(a,d));return A(function(){this.o==b&&this.Ge();b.removeEventListener("mouseover",l6(this,d))},a)};
var n6=function(a){var b=a.o.getAttribute("data-tooltip-text");Eq(a,"text",b||a.J);if(b){var c=a.o.getAttribute("data-duration");a.update({title:a.J,duration:c});var d=a.o.getAttribute("data-preview"),e=96*a.D,f=54*a.D,k=120*a.D,l=90*a.D;a.L.style.width=e+"px";a.L.style.height=f+"px";a.L.style.background=d?"#000 url("+d+") "+(e-k)/2+"px "+(f-l)/2+"px/"+k+"px "+l+"px":"";$d(a.element,["ytp-text-detail","ytp-preview"]);N(a.element,"ytp-has-duration",!!c)}else ce(a.element,["ytp-text-detail","ytp-preview",
"ytp-has-duration"]);c=jg(a.o);d=eg(a.o,a.F.Aa());p6(a,d.x+c.width/2,!!b,d.y+c.height/2,c.height)};
var p6=function(a,b,c,d,e){a.element.style.left="0px";a.element.style.top="";a.element.style.maxWidth=c?"":Math.min(a.X,200)+"px";c=jg(a.element);b-=c.width/2;switch(a.B){case 1:case 2:b=le(b,a.T,a.T+a.X-c.width);break;case 3:d=IE(a.F).Ma().width;b=le(b,12,d-c.width-12);break;default:var f=IE(a.F).Ma();b=le(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 q6=function(a){a.o&&a.o.hasAttribute("title")&&(a.J=a.o.getAttribute("title"),a.o.removeAttribute("title"),a.P&&n6(a))};
var r6=function(a,b){N(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.C)){a.C=b;var c=96*a.D,d=96*a.D,e=ju(a.K,a.C,c);U2(a.L,e,c,d,!0);a.N.start()}};
var s6=function(a,b,c){var d=["button",["ytp-button","ytp-cards-button"],{"aria-label":R("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0,"aria-expanded":"{{menuopen}}"}];S.call(this,d);this.element.innerHTML=Dh?'<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.aa=a;this.F=b;this.G=c;this.B=null;this.o=new Sq(this,250,!0,100);J(this,this.o);this.ea();this.R("click",this.C);this.R("mouseover",this.D);xB(this,!0)};
var xB=function(a,b){b?(a.element.title=R("YTP_DRAWER_HEADER_TEXT_2"),a.B=o6(a.F.o,a.element,3)):(a.B(),a.B=null,a.element.title="")};
var t6=function(a,b,c){this.oa=!!c;this.da=this.Y=null;Jq.call(this,a);this.ca=new Sq(this,b);this.H=null};
var u6=function(a){a.H&&(window.document.activeElement&&Af(a.element,window.document.activeElement)&&(Ef(a.H),a.H.focus()),a.H=null)};
var v6=function(a){return a.A&&3!=a.ca.j};
var w6=function(a,b){this.B=[a];this.C=a;x6(this,a);this.size=new te(0,0);this.D=this.G=null;this.ia=this.ga=0;t6.call(this,["div",["ytp-popup",b||null],{child:a}],100,!0);this.R("keydown",this.OF)};
var x6=function(a,b){a.C.Ba("size-change",a.Zg,a);a.C=b;a.C.subscribe("size-change",a.Zg,a)};
var y6=function(a){gg(a.element,a.ga||"100%",a.ia||"100%");var b=a.C;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.B.style.height="";var c=jg(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.C&&(d=jg(b.na["ytp-panel-header"]).height);b.B.style.height=c.height-d+"px";a.size=c};
var z6=function(a,b){a.B.push(b);A6(a,a.C,b)};
var A6=function(a,b,c,d){a.G&&Xd(a.G);a.D&&Xd(a.D);b.Ba("back",a.Vd,a);c.subscribe("back",a.Vd,a);c.j(a.element);x6(a,c);if(a.A){c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;y6(a);d=0==!d?-e.width:a.size.width;gg(a.element,e);Of(c.element,"transform","translateX("+d+"px)");Of(c.element,"opacity","0");a.G=new Wd(oa(a.KC,b,c,-d),20,a);a.G.start()}else Of(c.element,"transform","translateX(0)"),Of(c.element,"opacity","1"),Dq(b)};
var B6=function(a,b,c){for(var d=0;d<c.length;d++)N(c[d].element,"ytp-panel-animating",b);N(a.element,"ytp-popup-animating",b)};
var C6=function(a){Jq.call(this,["div","ytp-menu","{{content}}",{role:"menu",id:a||null}]);this.o=[]};
var D6=function(a,b,c){if(c)a.o.push(b),a.element.appendChild(b.element);else{c=yb(a.o,b,a.Ev);if(0<=c)return;c=~c;vb(a.o,c,0,b);rf(a.element,b.element,c)}b.subscribe("size-change",a.zl,a);a.O("size-change")};
var E6=function(a,b,c,d){Jq.call(this,a);this.priority=b;c&&this.C(c);d&&this.Eb(d)};
var F6=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 G6=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],R("YTP_OPTIONS")])}e.push(k)}e.push(["div","ytp-panel-content",{child:b}]);Jq.call(this,e);this.B=this.na["ytp-panel-content"];this.F=b;this.C=!1;c&&(T(this,this.na[f],"click",this.J),this.C=!0,d&&T(this,this.na[l],"click",d));this.F.subscribe("size-change",this.D,this);T(this,a,"fullscreentoggled",
this.D)};
var H6=function(a){var b=F6({"aria-haspopup":!0});E6.call(this,b,a);this.R("keydown",this.o)};
var I6=function(a,b){a.element.setAttribute("aria-haspopup",b)};
var J6=function(a){this.o=a;this.$=new Av(this);J(this,this.$);this.J=new Jq(["div",["ytp-copytext","ytp-no-contextmenu"],{draggable:!1,tabindex:1},"{{text}}"]);J(this,this.J);this.fa=new G6(a,this.J);J(this,this.fa);var b=new C6("contextmenu");J(this,b);this.P=new H6(8);J(this,this.P);D6(b,this.P,!0);this.P.R("click",this.wF,this);this.L=new H6(6);J(this,this.L);D6(b,this.L,!0);this.L.R("click",this.$z,this);this.K=new H6(5);J(this,this.K);D6(b,this.K,!0);this.K.R("click",this.vF,this);this.X=new E6(F6({href:"{{href}}",
target:"_blank"},void 0,!0),4,R("YTP_REPORT_ISSUE"));J(this,this.X);D6(b,this.X,!0);this.X.R("click",this.yF,this);this.T=new H6(3);J(this,this.T);D6(b,this.T,!0);this.T.R("click",this.uF,this);var c=new E6(F6(),2,R("YTP_SHOW_VIDEO_INFO"));J(this,c);D6(b,c,!0);c.R("click",this.zF,this);c="//"+aH(this.o.V())+"/html5";c=new E6(F6({href:c,target:"_blank"},void 0,!0),1,R("YTP_HTML5_CONTEXT_MENU_LINK"));J(this,c);D6(b,c,!0);c.R("click",this.wy,this);b=new G6(this.o,b);J(this,b);w6.call(this,b);L(this.element,
"ytp-contextmenu");b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");Kl&&Ac(43)&&(b=!0);uF&&!Ac(41)&&(b=!1);b&&(this.F=new S(["div","ytp-html5-clipboard"]),J(this,this.F),this.F.j(this.element));K6(this);T(this,this.o,"fullscreentoggled",this.tF);T(this,this.o,"pageTransition",this.xF);T(this,this.o,"videodatachange",this.AF);T(this,IE(this.o),"contextmenu",this.Dz);T(this,this.J.element,"click",this.Ez);a=a.getVideoData();L6(this,a);this.j(window.document.body)};
var M6=function(a,b){var c;if(a.F){Cf(a.F.element,b);Iq(a.F.element);try{c=window.document.execCommand("copy")}catch(d){}}c?a.sb():(a.J.Eb(b,"text"),z6(a,a.fa),Iq(a.J.element),a.F&&(a.F=null,K6(a)))};
var L6=function(a,b){var c=a.o.V(),d=!c.B&&!!b.videoId;"play"!=c.j?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.o&&(c.fmt=b.o.id),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.U&&(c.partnerid=b.U),c=Wg("//support.google.com/googleplay/",c));a.K.ob(d&&b.allowEmbed);a.P.ob(d);a.L.ob(d&&!b.Da);a.X.Eb(c,"href")};
var K6=function(a){var b=!!a.F;a.T.C(R(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));I6(a.T,!b);a.K.C(R(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));I6(a.K,!b);a.P.C(R(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));I6(a.P,!b);a.L.C(R(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));I6(a.L,!b)};
var N6=function(a){this.D=new Av(this);Uq.call(this,a,["div",["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"]]);this.C=new Wd(this.Hs,0,this);J(this,this.C);this.Hs();T(this,a,"presentingplayerstatechange",this.CF);"detailpage"==a.V().ya&&T(this,a,"videoplayerreset",this.BF)};
var O6=function(a,b,c){var d=By(c);b=V(c,2)&&!EH(b);d||b?a.show():(a.ea(),V(c,1)||a.stop())};
var P6=function(a,b,c,d,e,f,k){Av.call(this);this.j=a;this.K=c;this.F=d;this.A=e;this.G=f;this.H=k;this.o="";a=oa(this.D,!1);U(this,b,"mousedown",a);U(this,c.element,"mousedown",a);U(this,b,"keydown",this.B);U(this,c.element,"keydown",this.B);U(this,b,"keyup",this.C);U(this,c.element,"keyup",this.C)};
var Q6=function(a,b,c){var d=!1,e=a.j.V();if(!e.$a){switch(b){case 80:c&&(a.j.pj(),d=!0);break;case 78:c&&(a.j.oj(),d=!0);break;case 74:a.j.Xc(-10);d=!0;break;case 76:a.j.Xc(10);d=!0;break;case 77:a.j.uc()?a.j.unMute():a.j.mute();d=!0;break;case 75:i6(a.G);ty(pz(a.j))?a.j.pauseVideo():a.j.Wc();d=!0;break;case 190:if(c&&e.T)for(b=a.j.lj(),c=a.j.app.U,e=0;e<b.length-1;e++)b[e]==c&&(a.j.rj(b[e+1]),d=!0);break;case 188:if(c&&e.T)for(b=a.j.lj(),c=a.j.app.U,e=b.length-1;1<=e;e--)b[e]==c&&(a.j.rj(b[e-1]),
d=!0);break;case 70:Kx(a.j)&&(Ox(a.j),d=!0)}d&&a.F.cb(2,!0)}return d};
var R6=function(a,b,c,d){if(DH(a.j.app.B,"captions")){for(var e=a.j.xb("captions","displaySettings"),f,k=0;k<S6.length;k++){var l=S6[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;GH(a.j,d);return!0}return!1};
var T6=function(a){var b=["ytp-large-play-button","ytp-button"],c=a.V();(c.useTabletControls||c.isMobile)&&b.push("ytp-touch-device");S.call(this,["button",b,{"aria-label":"{{label}}"}]);b=a.V();this.element.innerHTML=b.Ab?Dh?'<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>':
Dh?'<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.o=a;this.C=!1;this.B=new Sq(this,250);J(this,this.B);T(this,a,"presentingplayerstatechange",this.D);U6(this,pz(a))};
var U6=function(a,b){if(a.o.V().Jj&&!a.C){O6(a.B,a.o,b);var c;c=(c=a.o.getVideoData())&&c.title?R("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):R("YTP_PLAY");Eq(a,"label",c)}else a.ea()};
var V6=function(a){Jq.call(this,["div","ytp-mini-progress-bar-container",["div",["ytp-mini-progress-bar","ytp-swatch-background-color"]]]);this.o=a;this.F=this.na["ytp-mini-progress-bar"];this.B=null;T(this,a,"presentingplayerstatechange",this.C);a.V();W6(this)&&T(this,a,"fullscreentoggled",this.C);this.ea();this.C()};
var W6=function(a){a=a.o.V();return a.experiments.ma("player_mini_progress_bar")&&Nx(a)};
var X6=function(a,b,c){var d;d=b.rb(c);var e=a.V(),f=d.kc(e,"default.jpg");S.call(this,["a",["ytp-video-menu-item","ytp-button"],{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.C?b.C.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",R("YTP_UPLOADED_BY_2",
{AUTHOR:d.author})]]);this.o=a;this.B=c;this.R("click",this.C)};
var Y6=function(a,b){this.B=a;t6.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":R("YTP_CLOSE")}]],["div","ytp-playlist-menu-subtitle","{{subtitle}}"]],["div","ytp-playlist-menu-items",{role:"menu"}]],250);var c=this.na["ytp-playlist-menu-close"],d=Bh();c.innerHTML=d;T(this,c,"click",this.PF);
T(this,this.na["ytp-playlist-menu-title-name"],"click",this.wB);this.D=this.F=this.o=null;this.J=this.na["ytp-playlist-menu-items"];this.C=[];this.G=b};
var Z6=function(a,b){a.o!=b&&(a.o&&a.o.Ba("shuffle",a.Rm,a),a.o=b,a.F=null,b?b.subscribe("shuffle",a.Rm,a):a.A&&a.G())};
var $6=function(a,b,c){var d=["button",["ytp-playlist-menu-button","ytp-button"],{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-label":R("YTP_PLAYLIST")},["div","ytp-playlist-menu-button-icon",""],["div","ytp-playlist-menu-button-text","{{text}}"]];S.call(this,d);this.na["ytp-playlist-menu-button-icon"].innerHTML=Dh?'<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.F=a;this.o=null;this.G=c;this.C=b.o;T(this,a,"videodatachange",this.D);T(this,a,"onPlaylistUpdate",this.D);T(this,a,"presentingplayerstatechange",this.B);this.ea();this.D();Lb(this,o6(this.C,this.element,3));this.R("click",this.G)};
var a7=function(a,b,c){S.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.B=a;this.o=b;this.C=c;Ax(this,b,a.V());this.R("click",this.D)};
var b7=function(a,b){this.o=a;t6.call(this,["div","ytp-related-menu",{role:"dialog"},["div","ytp-related-menu-header",["button",["ytp-related-menu-close","ytp-button"],{"aria-label":R("YTP_CLOSE")}],["div","ytp-related-menu-title",R("YTP_SUGGESTED_VIDEOS")]],["div","ytp-related-menu-items",{role:"menu"}]],250);var c=this.na["ytp-related-menu-close"],d=Bh();c.innerHTML=d;T(this,c,"click",this.$F);this.D=null;this.F=this.na["ytp-related-menu-items"];this.B=[];this.C=b};
var c7=function(a,b,c,d){var e=["button",["ytp-button","ytp-related-menu-button"],{title:R("YTP_SUGGESTED_VIDEOS"),"aria-owns":"ytp-related-menu","aria-haspopup":!0}];S.call(this,e);this.element.innerHTML=Dh?'<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.o=a;this.D=c;this.C=d;T(this,a,"videodatachange",this.B);T(this,a,"presentingplayerstatechange",this.B);this.B();Lb(this,o6(b.o,this.element,3));this.R("click",this.D)};
var d7=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:R("YTP_CLOSE")}],["div","ytp-share-panel-inner-content",["div","ytp-share-panel-title",{id:"ytp-share-panel-title"},R("YTP_SHARE")],["a",["ytp-share-panel-link","ytp-no-contextmenu"],{href:"{{link}}",target:"_blank",title:R("YTP_SHARE_LINK"),"aria-label":R("YTP_SHARE_LINK")},"{{linkText}}"],["label","ytp-share-panel-include-playlist",
["input","ytp-share-panel-include-playlist-checkbox",{type:"checkbox",checked:!0}],R("YTP_SHARE_WITH_PLAYLIST_2")],["div","ytp-share-panel-loading-spinner"],["div","ytp-share-panel-service-buttons","{{buttons}}"],["div","ytp-share-panel-error",R("YTP_SHARE_PANEL_ERROR")]]];t6.call(this,d,250);this.o=a;this.C=b.o;this.G=c;this.B=[];this.D=!1;this.L=this.na["ytp-share-panel-inner-content"];this.P=this.na["ytp-share-panel-loading-spinner"];b=Hh();this.P.innerHTML=b;this.F=this.na["ytp-share-panel-close"];
b=Bh();this.F.innerHTML=b;T(this,this.F,"click",this.G);Lb(this,o6(this.C,this.F));this.K=this.na["ytp-share-panel-include-playlist-checkbox"];T(this,this.K,"click",this.Rs);this.J=this.na["ytp-share-panel-link"];Lb(this,o6(this.C,this.J));this.R("click",this.IA);T(this,a,"videoplayerreset",this.ea);T(this,a,"fullscreentoggled",this.bG)};
var Hfa=function(a){switch(a){case "facebook":return Dh?'<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 Dh?'<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 Dh?'<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 e7=function(a){for(var b=0;b<a.B.length;b++)Dq(a.B[b]),Mb(a.B[b]);a.B=[]};
var f7=function(a,b,c,d,e){c=["button",["ytp-button","ytp-share-button"],{title:R("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"}];S.call(this,c);this.element.innerHTML=Dh?'<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.o=a;this.B=e;this.R("click",d);this.o.V().ie?this.ea():(T(this,a,"videodatachange",this.C),this.C());Lb(this,o6(b.o,this.element,3))};
var g7=function(a){S.call(this,["div","ytp-webgl-spherical-control",{tabindex:0,"aria-label":R("YTP_SPHERICAL_CONTROL")}]);this.element.innerHTML=Dh?'<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.B=a;this.$=this.da=this.D=this.F=null;this.o=[];this.C=0;this.Y=null;this.G=new Dz(this.dG,null,this);J(this,this.G);this.L=-1;this.N=this.H=this.T=this.K=this.X=this.J=0;this.P=!1;T(this,a,"videodatachange",this.Tm);T(this,a,"onApiChange",this.Tm);this.ea();this.Tm()};
var h7=function(a,b,c,d){a.X=le(b+a.X,-1,1);a.T=le(c+a.T,-1,1);a.N=le(d+a.N,-1,1);1!=a.C&&(a.C=1,L(a.element,"ytp-dragging"),a.L=K(),a.G.start())};
var i7=function(a){a.G.stop();a.C=0;a.X=0;a.T=0;a.N=0;a.o=[];ae(a.element,"ytp-dragging")};
var j7=function(a,b,c,d,e,f){var k=f-a.L;a.K=(a.J*a.K+(b-e.yaw))/(k+a.J);a.H=(a.J*a.H+(c-e.pitch))/(k+a.J);a.L=f;a.J=k;MH(a.B,{shader:"Spherical",yaw:b,pitch:c,fov:d})};
var k7=function(a,b){if(!(-1<a.o.indexOf(b)))switch(b){case 37:case 65:h7(a,1,0,0);a.o.push(b);break;case 39:case 68:h7(a,-1,0,0);a.o.push(b);break;case 38:case 87:h7(a,0,1,0);a.o.push(b);break;case 40:case 83:h7(a,0,-1,0);a.o.push(b);break;case 107:h7(a,0,0,-1);a.o.push(b);break;case 109:h7(a,0,0,1),a.o.push(b)}};
var l7=function(a,b){var c=a.o.indexOf(b);if(-1<c)switch(a.o.splice(c,1),b){case 37:case 65:h7(a,-1,0,0);break;case 39:case 68:h7(a,1,0,0);break;case 38:case 87:h7(a,0,-1,0);break;case 40:case 83:h7(a,0,1,0);break;case 107:h7(a,0,0,1);break;case 109:h7(a,0,0,-1)}0==a.o.length&&(i7(a),a.C=2,a.G.start())};
var m7=function(a){var b=["div","ytp-spinner",["span","ytp-spinner-svg"],["div","ytp-spinner-message",R("YTP_PLAYBACK_STALLED_AT_START")]];S.call(this,b);this.D=this.na["ytp-spinner-svg"];b=Hh();this.D.innerHTML=b;this.C=this.na["ytp-spinner-message"];this.B=a;this.o=new Wd(this.show,500,this);T(this,a,"presentingplayerstatechange",this.hG);T(this,a,"onFrescaStateChange",this.Wz);T(this,a,"playbackstalledatstart",this.OA);n7(this,pz(a))};
var n7=function(a,b){var c;V(b,128)?c=0:!(c=V(b,16))&&(c=V(b,1))&&(c=DH(a.B.app.B,"fresca"),c=!(c&&c.loaded));c?a.o.start():a.ea()};
var o7=function(a,b){var c=["button",["ytp-airplay-button","ytp-button"],{title:R("YTP_AIRPLAY")}];S.call(this,c);this.o=a;this.R("click",this.C);T(this,a,"airplayactivechange",this.B);T(this,a,"airplayavailabilitychange",this.B);this.B();Lb(this,o6(b.o,this.element,1))};
var p7=function(a,b){Jq.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.B=a;this.ca=b.o;this.Y=new Fm(this.EF,250,this);J(this,this.Y);this.G=IE(a).Ma().width;this.C=this.na["ytp-storyboard-filmstrip"];this.fa=this.na["ytp-storyboard-lens"];this.ia=this.na["ytp-storyboard-lens-thumbnail"];
this.ga=this.na["ytp-storyboard-lens-timestamp"];this.da=this.na["ytp-storyboard-thumbnail"];sf(this.da);this.L=0;this.$=!1;this.X=this.o=0;this.T=this.J=this.F=window.NaN;this.H=this.D=null;this.K=new Av(this);this.P=new Sq(this,100);T(this,this.B,"resize",this.DF);T(this,this.B,"beginseeking",this.Jv)};
var q7=function(a,b){a.H&&a.H.Ba("l",a.aj,a);var c=!!a.D;a.D=b&&ax(b);a.H=b&&bx(b);a.$=!!b&&b.Da;a.D?(c||(U(a.K,a.B,"videodatachange",a.FF),U(a.K,a.B,"progresssync",a.Aj),U(a.K,a.B,"videoplayerreset",a.Aj),U(a.K,a.B,"endseeking",a.Wv)),a.H.subscribe("l",a.aj,a),a.T=window.NaN,a.F=window.NaN,a.J=window.NaN,a.Aj(),a.P.show(!1,p7.o)):(c&&Cv(a.K),a.Y.stop(),Iu(a.L),a.P.ea(),a.P.stop())};
var r7=function(a,b){var c=a.da.cloneNode(!1),d=ju(a.H,b,a.o);U2(c,d,a.o,a.X);return c};
var s7=function(a){S.call(this,["div","ytp-storyboard-framepreview",["div","ytp-storyboard-framepreview-img"]]);this.H=this.na["ytp-storyboard-framepreview-img"];this.o=a;this.G=this.C=null;this.F=window.NaN;this.B=new Av(this);this.D=new Sq(this,100);T(this,a,"beginseeking",this.IF)};
var t7=function(a,b){var c=!!a.C;a.C=b&&ax(b);a.G=b&&bx(b);a.C?(c||(U(a.B,a.o,"videodatachange",a.MF),U(a.B,a.o,"progresssync",a.KF),U(a.B,a.o,"resize",a.HF),U(a.B,a.o,"presentingplayerstatechange",a.LF),U(a.B,a.o,"endseeking",a.JF)),a.F=window.NaN,u7(a),a.D.show(!1,200)):(c&&Cv(a.B),a.D.ea(),a.D.stop())};
var u7=function(a){var b=a.o.getCurrentTime(),c=IE(a.o).Ma(),d=ku(a.C,c.width),b=a.C.j[d].yj(b);b!=a.F&&(a.F=b,mu(a.G,b,c.width),b=ju(a.G,b,c.width),U2(a.H,b,c.width,c.height))};
var v7=function(a,b){S.call(this,["button",["ytp-fullscreen-button","ytp-button"],{title:"{{title}}"}]);this.B=a;this.D=b;this.o=null;this.C=o6(b.o,this.element,1);T(this,a,"fullscreentoggled",this.Is);T(this,a,"presentingplayerstatechange",this.Js);this.R("click",this.NF);var c;c=Mh("fullscreenerror");"msfullscreenerror"==c&&(c="MSFullscreenError");c&&T(this,window.document,c,this.Yz);a.V().Ia||w7(this);this.Js();this.Is(a.Ja())};
var w7=function(a){if(!a.o){var b=R(void 0!=Kh(["requestFullscreen","requestFullScreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.o=new t6(["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);J(a,a.o);a.o.j(a.B.Aa());a.element.setAttribute("aria-disabled",!0);a.C();a.C=null}};
var x7=function(a,b,c){var d=["button",["ytp-multicam-button","ytp-button"],{title:R("YTP_SWITCH_CAMERA"),"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"}];S.call(this,d);this.element.innerHTML=Dh?'<div class="ytp-icon ytp-icon-switch-camera"></div>':'<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="100%" version="1.1" viewBox="0 0 36 36" width="100%"><defs><path d="M 26,10 H 22.83 L 21,8 h -6 l -1.83,2 H 10 c -1.1,0 -2,.9 -2,2 v 12 c 0,1.1 .9,2 2,2 h 16 c 1.1,0 2,-0.9 2,-2 V 12 c 0,-1.1 -0.9,-2 -2,-2 z M 21,21.5 V 19 h -6 v 2.5 L 11.5,18 15,14.5 V 17 h 6 V 14.5 L 24.5,18 21,21.5 z" id="ytp-svg-46" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-46" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-46" /></svg>';
this.o=a;this.C=b.o;this.R("click",c);T(this,a,"presentingplayerstatechange",this.B);T(this,a,"videodatachange",this.B);this.B();Lb(this,o6(this.C,this.element,1))};
var y7=function(a,b){this.C=new Av(this);J(this,this.C);var c=["div","ytp-multicam-menu",{role:"dialog"},["div","ytp-multicam-menu-header",["div","ytp-multicam-menu-title",R("YTP_SWITCH_CAMERA"),["button",["ytp-multicam-menu-close","ytp-button"],{"aria-label":R("YTP_CLOSE")}]]],["div","ytp-multicam-menu-items"]];t6.call(this,c,250);var c=this.na["ytp-multicam-menu-close"],d=Bh();c.innerHTML=d;T(this,c,"click",b);this.o=a;this.D=this.na["ytp-multicam-menu-items"];this.B=[];this.F=b};
var z7=function(a,b){var c=["button",["ytp-pip-button","ytp-button"],{title:R("YTP_PIP")}];S.call(this,c);this.element.innerHTML=Dh?'<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.o=a;this.R("click",this.B);Lb(this,o6(b.o,this.element,1))};
var A7=function(a,b){S.call(this,["button",["ytp-play-button","ytp-button"],{title:"{{title}}","aria-label":"{{label}}"}]);this.o=a;this.C=null;this.D=b.o;this.B=null;T(this,a,"fullscreentoggled",this.F);T(this,a,"presentingplayerstatechange",this.G);T(this,a,"videodatachange",this.F);B7(this,pz(a));this.R("click",this.H,this)};
var Ifa=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 B7=function(a,b){var c,d=hx(a.o.getVideoData()),e=!1;ty(b)?c=d?4:2:V(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.C!=c){var f;switch(c){case 2:f=R("YTP_PAUSE");break;case 3:f=R("YTP_REPLAY");break;case 1:f=R("YTP_PLAY");break;case 4:f=R("YTP_STOP")}e=void 0;3==c?(a.B||(a.B=o6(a.D,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.B&&(a.B(),a.B=null),a.update({title:null,label:f}),d=C7[c],e=C7[a.C]);q6(a.D);f=a.o.V().U?Ifa(c):Px(ia(a),d,e);a.element.innerHTML=f;a.C=c}};
var D7=function(a,b,c){var d,e;c?(d="ytp-next-button",e=Dh?'<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=Dh?'<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>');S.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.o=a;this.P=b.o;this.D=c;this.B=this.G=null;this.L=!1;this.J=this.K=this.C=null;this.F=!1;T(this,a,"fullscreentoggled",this.H);T(this,a,"videodatachange",this.H);T(this,a,"onPlaylistUpdate",this.H);this.H()};
var E7=function(a){a.B&&a.B.Ba("shuffle",a.H,a)};
var F7=function(a){return!!a.B&&!a.D&&3<=a.o.getCurrentTime()&&1==a.o.getPresentingPlayerType()};
var G7=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=a.o.V(),d=FH(a.o),e=a.D&&Ux(c,a.G,a.B);if(a.F)b.title=R("YTP_REPLAY");else if(d){var f=null;a.B&&(f=a.B.rb(a.D?sx(a.B):tx(a.B)));if(f){if(f.videoId){var k=a.B.C;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.kc(c,"default.jpg")}b.title=R(a.D?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.G.G&&a.G.G.length&&(f=zx(a.G.G[0]),b.url=f.zk(c),b.text=
f.title,b.duration=f instanceof Bw?xx(f.lengthSeconds):null,b.preview=f.kc(c,"default.jpg")),b.title=R("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.L=!!b.url;e||d||a.F?a.C||(a.C=o6(a.P,a.element,1),a.K=a.R("click",a.T,a)):a.C&&(a.C(),a.C=null,a.xa(a.K),a.K=null);q6(a.P)};
var H7=function(a,b){var c=["div","ytp-progress-bar-container",{"aria-disabled":!0},["div","ytp-progress-bar",{tabindex:0,role:"slider","aria-label":R("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},["div","ytp-progress-bar-padding"],["div","ytp-progress-list",["div",["ytp-play-progress","ytp-swatch-background-color"]],["div","ytp-load-progress"],["div","ytp-hover-progress"],["div","ytp-clip-start-exclude"],
["div","ytp-clip-end-exclude"],["div","ytp-ad-progress-list"],["div","ytp-marker-crenellation-list"],["div","ytp-marker-progress-list"]],["div",["ytp-scrubber-button","ytp-swatch-background-color"],["div","ytp-scrubber-pull-indicator"]]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div","ytp-clip-start",{title:R("YTP_WATCH_ALL")}],["div","ytp-clip-end",{title:R("YTP_WATCH_ALL")}]];Jq.call(this,c);this.B=a;this.nb=b.o;this.ga=!1;this.D=this.$a=
0;this.$=1;this.C=this.bb=this.H=0;this.La=!1;this.P=this.da=0;this.ub=this.na["ytp-ad-progress-list"];this.vb=this.na["ytp-marker-progress-list"];this.Ia=this.na["ytp-marker-crenellation-list"];this.Y={};this.ia={};this.T=window.Infinity;c=b.o;this.K=this.na["ytp-clip-end"];var d=Fh();this.K.innerHTML=d;Lb(this,o6(c,this.K,1));this.oa=new L2(this.K,!0);J(this,this.oa);this.oa.subscribe("hoverstart",this.Ms,this);this.oa.subscribe("hoverend",this.Ls,this);T(this,this.K,"click",this.Bj);this.Ha=this.na["ytp-clip-end-exclude"];
this.Cb=this.na["ytp-clip-start-exclude"];this.X=0;this.L=this.na["ytp-clip-start"];d=Gh();this.L.innerHTML=d;Lb(this,o6(c,this.L,1));this.ta=new L2(this.L,!0);J(this,this.ta);this.ta.subscribe("hoverstart",this.Ms,this);this.ta.subscribe("hoverend",this.Ls,this);T(this,this.L,"click",this.Bj);this.Za=this.na["ytp-load-progress"];this.fa=0;this.Nb=this.na["ytp-play-progress"];this.ca=this.na["ytp-hover-progress"];this.G=0;this.ab=this.na["ytp-progress-bar"];this.F=null;this.Ca=this.na["ytp-scrubber-button"];
this.za=new qe;this.Sa=new T2;this.o=new P2(0,0);this.J=this.Fa=!1;this.Ya=null;T(this,a,"presentingplayerstatechange",this.RF);T(this,a,"videodatachange",this.Ks);T(this,a,"videoplayerreset",this.Bw);T(this,a,"cuerangesadded",this.Ps);T(this,a,"cuerangesremoved",this.ZF);T(this,a,"cuerangemarkersupdated",this.Ps);T(this,a,"onPlaybackQualityChange",this.SF);I7(this,a.getVideoData(),!0)};
var J7=function(a){if(a.D){var b=a.B.Ve(),c=new P2(b.seekableStart,b.seekableEnd),d=S2(c,b.loaded,0),b=S2(c,b.current,0),e=a.o.o!=c.o||a.o.j!=c.j;a.o=c;K7(a,b,d);e&&L7(a);M7(a)}};
var I7=function(a,b,c){var d=!!b&&dx(b);a.Fa=d&&b.Ed;N7(a,SH(a.B));c&&(d?(c=b.clipEnd,a.X=b.clipStart,a.T=c,O7(a),K7(a,a.G,a.fa)):a.Bj());J7(a)};
var P7=function(a){return!!a&&dx(a)&&!!a.o&&a.o.video.j};
var Q7=function(a,b){a.La=b;N(a.Za,"ytp-fast-load",b)};
var R7=function(a,b,c,d){b=le(b,0,a.J?60:40);a.H=b;var e=a.$;a.$=b/(a.J?60:40)*(Math.max(Q2(a.o)/a.D,1)-1)+1;b=a.D*a.$;a.P=le(d*b-c,0,b-a.D);e!=a.$&&L7(a)};
var L7=function(a){var b=S7(a),c=-b.A/b.j,d=(-b.A+b.width)/b.j,e=uf(a.Ia),f=0;if(a.H>.2*(a.J?60:40))for(var k=Q2(a.o)/60*d,l=Math.ceil(Q2(a.o)/60*c);l<k;l++){var m=e[f];m||(m=window.document.createElement("div"),a.Ia.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/Q2(a.o)-c)*b.j+"px"}b=a.Fa?a.o.j:0;a.update({boundTimeLeft:xx(R2(a.o,c)-b),boundTimeRight:xx(R2(a.o,d)-b)});for(c=e.length-1;c>=f;c--)sf(e[c]);
a.element.style.height=a.H+(a.J?8:5)+"px";a.O("height-change",a.H);a.Ca.style.height=a.H+(a.J?20:13)+"px";for(var p in a.Y)T7(a,a.Y[p],a.ia[p]);O7(a);K7(a,a.G,a.fa)};
var S7=function(a){var b=a.za.x,c=a.D*a.$,b=le(b,0,a.D);a.Sa.update(b,a.D,-a.P,-(c-a.P-a.D));return a.Sa};
var K7=function(a,b,c){a.G=b;a.fa=c;var d=S7(a),e=a.o.j,f=R2(a.o,a.G);a.update({ariamin:Math.floor(a.o.o),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:R("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:xx(f),DURATION:xx(e)})});var e=S2(a.o,a.X,0),k=S2(a.o,a.T,1),f=le(b,e,k);c=a.La?1:le(c,e,k);k=b*d.j+d.A;a.Ca.style.display=0<=k&&b<=d.width?"":"none";a.Ca.style.left=k+"px";U7(a,a.Nb,d,e,f);U7(a,a.Za,d,e,c)};
var U7=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.j+c.A,0)+"px";d=Math.min((e-d)*c.j+c.A,c.width);f||a.B.getVideoData().K?(b.style.width=d+"px",Of(b,"transform","")):(Of(b,"transform","scalex("+(c.width?d/c.width:0)+")"),b.style.width="")};
var O7=function(a){var b=a.X>a.o.o,c=0<a.o.j&&a.T<a.o.j;N(a.element,"ytp-clip-start-enabled",b);N(a.element,"ytp-clip-end-enabled",c);b=b?S2(a.o,a.X,0):0;c=c?S2(a.o,a.T,1):1;a.L.style.left=Math.round(1E3*b)/10+"%";a.K.style.left=Math.round(1E3*c)/10+"%";a.Cb.style.width=Math.round(1E3*b)/10+"%";a.Ha.style.left=Math.round(1E3*c)/10+"%";a.Ha.style.width=Math.round(1E3*(1-c))/10+"%"};
var M7=function(a){var b=S7(a);U7(a,a.ca,b,a.G,b.o);N(a.ca,"ytp-hover-progress-light",b.o>a.G)};
var T7=function(a,b,c){var d=S7(a),e=S2(a.o,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=S2(a.o,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=le(e,0,f-k)),f=Math.min(f,e+k),b.color&&(c.style.background=b.color)}U7(a,c,d,e,f,!0);c.className=b.style};
var V7=function(a,b){var c=b.getId();a.Y[c]==b&&(sf(a.ia[c]),delete a.Y[c],delete a.ia[c])};
var N7=function(a,b){b?a.F||(a.element.removeAttribute("aria-disabled"),a.F=new L2(a.ab,!0),a.F.subscribe("hovermove",a.WF,a),a.F.subscribe("hoverend",a.VF,a),a.F.subscribe("dragstart",a.UF,a),a.F.subscribe("dragmove",a.YF,a),a.F.subscribe("dragend",a.XF,a),a.Ya=a.R("keydown",a.TF)):a.F&&(a.element.setAttribute("aria-disabled",!0),a.xa(a.Ya),a.F.cancel(),a.F.dispose(),a.F=null)};
var W7=function(a){S.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.o=new Sq(this,250);J(this,this.o);this.B=a;var b=this.na["ytp-remote-display-status-icon"],c=Ch();b.innerHTML=c;T(this,a,"presentingplayerstatechange",this.C);X7(this,pz(a))};
var X7=function(a,b){if(3==a.B.getPresentingPlayerType()){var c;c=V(b,128)?R("YTP_MDX_PLAYER_ERROR"):R("YTP_MDX_STATUS_CONNECTED");var d=a.B.xb("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.o.show()}else a.o.ea()};
var Y7=function(a,b,c){var d=["button",["ytp-remote-button","ytp-button"],{title:R("YTP_MDX_TOOLTIP")}];S.call(this,d);this.aa=a;this.D=c;this.B=null;T(this,a,"onMdxReceiversChange",this.o);T(this,a,"presentingplayerstatechange",this.o);this.o();this.R("click",this.C,this);Lb(this,o6(b.o,this.element,1))};
var Z7=function(a,b){this.o=!1;var c=F6({role:"menuitemcheckbox","aria-checked":this.o});E6.call(this,c,b,a,["div","ytp-menuitem-toggle-checkbox"]);this.R("click",this.K)};
var $7=function(a,b){a.o=b;a.element.setAttribute("aria-checked",a.o)};
var a8=function(a,b){Z7.call(this,R("YTP_ANNOTATIONS"),6);this.F=b;this.aa=a;this.B=!1;T(this,a,"videodatachange",this.D);T(this,a,"onApiChange",this.D);this.subscribe("select",this.G,this);this.D()};
var b8=function(a,b,c,d,e){var f=F6({"aria-haspopup":!0});E6.call(this,f,b,a);this.o=d;this.J=null;this.B={};this.G=new C6;J(this,this.G);this.P=new G6(c,this.G,a,e);J(this,this.P);this.R("keydown",this.aG);this.R("click",this.open)};
var c8=function(a,b){a.G.removeAll();for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.B[f],l=f==a.J;l&&(d=!0);if(k&&k.priority==-e){var l=a,m=f,p=l.B[m];p.C(l.yc(m,!0));p.O("size-change");delete a.B[f]}else k=new E6(["div","ytp-menuitem",{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},["div","ytp-menuitem-label","{{label}}"]],-e,a.yc(f,!0)),k.R("click",A(a.FA,a,f));c[f]=k;D6(a.G,k,!0)}d||(a.J=null);for(f in a.B)a.B[f].dispose();a.B=c};
var d8=function(a,b){b8.call(this,R("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.aa=a;this.K=new S(["div","",["span","",R("YTP_AUDIO_TRACK_TITLE")],["span","ytp-menuitem-label-count","{{content}}"]]);this.C(this.K);this.L={};this.D=!1;T(this,a,"videodatachange",this.H);T(this,a,"onPlaybackAudioChange",this.H);this.H()};
var e8=function(a,b){Z7.call(this,R("YTP_AUTOPLAY"),7);this.H=b;this.aa=a;this.F=!1;this.B=[];T(this,a,"presentingplayerstatechange",this.D);this.subscribe("select",this.J,this);this.D()};
var f8=function(a,b){b8.call(this,R("YTP_QUALITY_TITLE"),1,a,b);L(this.G.element,"ytp-quality-menu");this.aa=a;this.L={};this.K="unknown";this.D=!1;T(this,a,"videodatachange",this.F);T(this,a,"videoplayerreset",this.F);T(this,a,"onPlaybackQualityChange",this.H);this.F()};
var g8=function(a,b,c){var d=(a=a.L[b])?a.qualityLabel:(d=tr[b])?d+"p":R("YTP_AUTO");c=["span",c,d];var e;a&&a.j?c.push(["div","ytp-menuitem-badge-container",{child:new I5('<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 h8=function(a,b){b8.call(this,R("YTP_MDX_TITLE"),0,a,b);this.aa=a;this.D=!1;this.K={};T(this,a,"onMdxReceiversChange",this.H);T(this,a,"presentingplayerstatechange",this.H);this.H()};
var i8=function(a,b){b8.call(this,R("YTP_SPEED_TITLE"),5,a,b);this.aa=a;this.D=!1;this.F=null;T(this,a,"presentingplayerstatechange",this.Ss);this.Ss()};
var j8=function(a,b,c,d){b8.call(this,k8(d),a,b,c);L(this.element,"ytp-subtitles-options-menu-item");this.H=d.option.toString();this.D=Ib(d.options,this.F,this);c8(this,Q(d.options,this.F))};
var k8=function(a){return(a.message?R(a.message):a.text)||""};
var l8=function(a,b){this.G={};this.o=new C6;for(var c=0;c<S6.length;c++){var d=S6[c],e=new j8(-c,a,b,d);J(this,e);e.subscribe("settingChange",this.H,this);this.G[d.option.toString()]=e;D6(this.o,e,!0)}c=new E6(F6(),-S6.length,R("YTP_RESET"));J(this,c);c.R("click",A(this.H,this,"reset",!0));D6(this.o,c,!0);G6.call(this,a,this.o,R("YTP_OPTIONS"))};
var m8=function(a,b){for(var c in b){var d=a.G[c];if(d){var e=b[c].toString();d.B[e]&&d.Jc(e)}}};
var n8=function(a,b){b8.call(this,R("YTP_AUTO_TRANSLATE"),0,a,b);this.D={}};
var o8=function(a,b){b8.call(this,R("YTP_SUBTITLES"),4,a,b,A(this.HC,this));this.aa=a;this.L=!1;this.D={};this.K=new S(["div","",["span","",R("YTP_SUBTITLES")],["span","ytp-menuitem-label-count","{{content}}"]]);J(this,this.K);this.C(this.K);this.H=new n8(a,b);J(this,this.H);this.H.subscribe("select",this.BB,this);this.F=new l8(a,b);J(this,this.F);this.F.subscribe("settingChange",this.nG,this);T(this,a,"videodatachange",this.oh);T(this,a,"onApiChange",this.oh);T(this,a,"onCaptionsTrackListChanged",
this.oh);T(this,a,"captionschanged",this.oh);this.oh()};
var p8=function(a){a.fontFamily=q8.indexOf(a.fontFamilyOption);a.charEdgeStyle=r8.indexOf(a.charEdgeStyle)};
var s8=function(a,b){b8.call(this,R("YTP_THREED_SHORT"),8,a,b);this.aa=a;this.D=!1;T(this,a,"videodatachange",this.H);this.F=null;this.H()};
var t8=function(a){this.F=a;this.o=new C6("ytp-main-menu-id");J(this,this.o);a=new G6(a,this.o);J(this,a);w6.call(this,a,"ytp-settings-menu");this.K=this.J=null;this.L=!1};
var u8=function(a){if(!a.L){a.L=!0;var b=new f8(a.F,a);J(a,b);b=new o8(a.F,a);J(a,b);b=new a8(a.F,a);J(a,b);b=new i8(a.F,a);J(a,b);b=new s8(a.F,a);J(a,b);b=new e8(a.F,a);J(a,b);b=new d8(a.F,a);J(a,b);a.K=new h8(a.F,a);J(a,a.K);0>=a.o.o.length&&a.J.ea()}};
var v8=function(a,b){D6(a.o,b);a.J&&a.J.show()};
var w8=function(a,b){a.A&&1>=a.o.o.length&&a.ea();a.o.remove(b);0>=a.o.o.length&&a.J&&a.J.ea()};
var x8=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:R("YTP_SETTINGS")}];S.call(this,d);this.element.innerHTML=Dh?'<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.B=c;this.B.subscribe("show",this.C,this);this.aa=a;this.R("click",this.D);T(this,this.aa,"onPlaybackQualityChange",this.o);T(this,a,"videodatachange",this.o);T(this,a,"webglsettingschanged",this.o);Lb(this,o6(b.o,this.element,1));this.o();this.C(!1)};
var y8=function(a,b){S.call(this,["button",["ytp-size-button","ytp-button"],{title:"{{title}}"}]);this.o=a;this.D=b.o;this.C=null;T(this,a,"sizestylechange",this.B);T(this,a,"fullscreentoggled",this.B);T(this,a,"presentingplayerstatechange",this.B);this.B();this.R("click",this.F);Lb(this,o6(this.D,this.element,1))};
var z8=function(a,b){var c=["button",["ytp-subtitles-button","ytp-button"],{"aria-pressed":"{{pressed}}",title:R("YTP_SUBTITLES_TOOLTIP")}];S.call(this,c);this.o=a;c=this.o.V().X;this.element.innerHTML=-1!=A8.indexOf(c)?Dh?'<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>':
Dh?'<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>';T(this,a,"videodatachange",this.B);T(this,a,"onApiChange",
this.B);T(this,a,"onCaptionsTrackListChanged",this.B);T(this,a,"captionschanged",this.B);this.B();this.R("click",this.C);Lb(this,o6(b.o,this.element,1))};
var B8=function(a,b){S.call(this,["div",["ytp-time-display","notranslate"],["span","ytp-time-current","{{currenttime}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"]]);this.D=new S(["button",["ytp-live-badge","ytp-button"],{disabled:!0},R("YTP_LIVE")]);J(this,this.D);this.D.j(this.element);this.B=a;this.J=b.o;this.o=null;this.F=this.C=!1;this.H=this.G=null;this.R("click",this.oG);T(this,a,"presentingplayerstatechange",this.ph);T(this,a,"liveviewshift",this.pG);T(this,
a,"videodatachange",this.qG);var c=a.getVideoData();c&&(this.C=c.Da,N(this.element,"ytp-live",this.C));this.ph()};
var C8=function(a,b){S.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.o=a;this.za=b.o;this.Y=!1;this.ia=this.B=0;this.D=new S(["button",["ytp-mute-button","ytp-button"],{title:"{{title}}"}]);J(this,this.D);this.D.j(this.element,0);this.D.R("click",
this.xA,this);this.fa=this.na["ytp-volume-slider"];this.ga=this.na["ytp-volume-slider-handle"];this.oa=this.na["ytp-volume-slider-track"];this.K=this.N=window.NaN;this.da=-1;this.o.V();this.$=new Dz(this.Ws,null,this);J(this,this.$);this.X=new L2(this.fa,!0);J(this,this.X);this.X.subscribe("dragstart",this.rB,this);this.X.subscribe("dragmove",this.qB,this);this.X.subscribe("dragend",this.pB,this);T(this,a,"onVolumeChange",this.uG);T(this,this.na["ytp-volume-panel"],"keydown",this.sB);T(this,this.element,
"mousewheel",this.sG);T(this,a,"videodatachange",this.tG);this.F=!1;this.J=this.H=this.C=this.G=this.L=null;this.T=this.ca=!1;this.P=new Wd(this.ev,125,this);J(this,this.P);this.Y=!1;D8(this,this.o.Db(),this.o.uc());Lb(this,o6(b.o,this.D.element,1))};
var E8=function(a,b){var c=(b-a.da)/250;return 1<=c?a.K:a.N+(a.K-a.N)*c};
var F8=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 D8=function(a,b,c){var d=Math.round(b),e=d+"% "+R("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+R("YTP_SCREENREADER_VOLUME_MUTED"):""),f=c?0:b/100;if(a.o.V().U){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.ta&&(a.D.element.innerHTML=k,a.ta=k)}else if(k=f?.5*Math.ceil(f/.5):-.5,a.K!=k){var l=K();(0,window.isNaN)(a.N)?(a.N=a.K=k,a.da=l,a.Ws(l)):(a.N=E8(a,l),a.K=
k,a.da=l,a.$.start())}Eq(a,"valuenow",d);Eq(a,"valuetext",e);Eq(a.D,"title",c?R("YTP_UNMUTE"):R("YTP_MUTE"));q6(a.za);c=(a.Y?72:48)*f;a.ga.style.left=c+"px";a.oa.style.width=c+"px";a.B=b;a.F&&G8(a)};
var H8=function(a,b,c){b={src:"//www.gstatic.com/youtube/media/beyond/"+b,preload:"auto"};c&&(b.loop="loop");c=new zq(["audio",b]);J(a,c);c.j(a.element);return c.element};
var G8=function(a){var b=a.o.uc()?0:a.B/100;a.L.volume=b;a.G.volume=b;a.C.volume=b;a.H.volume=b;a.J.volume=b};
var I8=function(a,b){a.ca||(b&&!a.T?a.P.start():!b&&a.T&&(a.P.isActive()?a.P.stop():(a.C.pause(),a.G.play())));a.T=b};
var J8=function(a,b){var c=a.V();S.call(this,["a",["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],{href:"{{url}}",target:"_blank",title:R("YTP_URL_NAVIGATE_TO",{WEBSITE:bH(c)}),"data-sessionlink":"feature=player-button"}]);"gaming"==c.j?(this.element.innerHTML=Dh?'<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>',
L(this.element,"ytp-youtube-gaming-button")):this.element.innerHTML=Dh?'<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.o=a;this.R("click",this.C);T(this,a,"videodatachange",this.B);this.B();Lb(this,o6(b.o,this.element,1))};
var K8=function(a,b,c){Av.call(this);var d=a.V();this.aa=a;this.B=b;this.U=window.NaN;this.N=null;this.L=c;this.L.subscribe("autohideupdate",this.iG,this);c=!By(pz(a));var e=new S(["div","ytp-gradient-bottom"]);J(this,e);Xq(a,e.element,8);this.G=new Sq(e,250,c,100);J(this,this.G);this.A=new S(["div","ytp-chrome-bottom",["div","ytp-chrome-controls"]]);J(this,this.A);Xq(a,this.A.element,8);this.F=new Sq(this.A,250,c,100);J(this,this.F);var f=this.A.element.children[0];this.j=new t8(a);J(this,this.j);
Xq(a,this.j.element,6);this.j.subscribe("show",this.WC,this);this.j.subscribe("show",b.EC,b);this.C=new H7(a,b);J(this,this.C);this.C.j(this.A.element,0);c=new p7(a,b);J(this,c);Xq(a,c.element,4);this.C.subscribe("height-change",c.GF,c);c=new s7(a);J(this,c);Xq(a,c.element,4);c=new zq(["div","ytp-left-controls"]);J(this,c);c.j(f);e=new D7(a,b,!1);J(this,e);e.j(c.element);e=new A7(a,b);J(this,e);e.j(c.element);e=new D7(a,b,!0);J(this,e);e.j(c.element);this.o=new C8(a,b);J(this,this.o);this.o.j(c.element);
this.o.ob(d.bb);this.P=new B8(a,b);J(this,this.P);this.P.j(c.element);e=new zq(["div","ytp-right-controls"]);J(this,e);e.j(f);f=new z8(a,b);J(this,f);f.j(e.element);f=new x8(a,b,this.j);J(this,f);this.j.J=f;f.j(e.element);f=A(this.QC,this);this.K=new y7(a,f);J(this,this.K);Xq(a,this.K.element,5);this.H=new x7(a,b,f);J(this,this.H);this.H.j(e.element);!d.Ab&&d.Ic&&(f=new J8(a,b),J(this,f),f.j(e.element));f=new y8(a,b);J(this,f);f.j(e.element);f=new W7(a);J(this,f);Xq(a,f.element,4);f=new Y7(a,b,this.j);
J(this,f);f.j(e.element);d.Hc&&(f=new o7(a,b),J(this,f),f.j(e.element));xt().webkitSetPresentationMode&&(f=new z7(a,b),J(this,f),f.j(e.element));this.D=new v7(a,b);J(this,this.D);this.D.j(e.element);this.T=new Dz(oa(this.Cj,!1),void 0,this);d.bb&&(b=new L2(this.o.element),J(this,b),b.subscribe("hoverstart",this.mG,this),b=new L2(c.element),J(this,b),b.subscribe("hoverend",this.lG,this));U(this,a,"resize",this.Um);U(this,a,"fullscreentoggled",this.jG);U(this,a,"progresssync",oa(this.Cj,!0));U(this,
a,"presentingplayerstatechange",this.kG);this.Um()};
var L8=function(a){var b=a.aa.V(),c;if(c=!!a.L.o&&!b.isMobile&&pz(a.aa).Ua()){if(c=b.experiments.ma("smooth_progress_bar"))a=a.C,a.B.V(),c=.25>Q2(a.o)/a.D/(10*(window.devicePixelRatio||1));c=c||b.experiments.ma("always_request_animation_frame")}return c};
var M8=function(a,b){By(pz(a.aa))||b?b&&(a.F.ea(),a.G.ea(),a.B.o.mg(1)):b||(a.F.show(),a.G.show(),a.Cj(!0))};
var N8=function(a){S.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.o=a;this.B=null;this.G=this.na["ytp-title-link"];this.F=this.na["ytp-title-channel-logo"];this.D=null;T(this,a,"videodatachange",
this.C);T(this,a,"videoplayerreset",this.C);this.C()};
var O8=function(a){var b=a.o.getVideoData(),c=b.videoId&&2==a.o.getPresentingPlayerType();c&&b.videoId==a.D?L(a.element,"ytp-title-extra-info"):(ae(a.element,"ytp-title-extra-info"),c&&(b.author&&b.Lh&&b.profilePicture?P8(a,b.videoId,b.author,b.Lh,b.profilePicture):(c=$G(a.o.V(),b.videoId,!1),Gj(c,{method:"GET",kb:A(a.H,a,b.videoId),withCredentials:!0}))))};
var P8=function(a,b,c,d,e){d=a.o.V().protocol+"://"+aH(a.o.V())+d;a.F.style.backgroundImage="url("+e+")";Eq(a,"channelImageLink",d);Eq(a,"channelNameLink",d);Eq(a,"channelName",R("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.D=b;O8(a)};
var Q8=function(a,b,c){S.call(this,["button",["ytp-watch-later-button","ytp-button"],{title:"{{title}}","data-tooltip-image":"{{image}}"}]);this.C=a;this.G=b.o;this.F=c;L(c,"ytp-watch-later-button-visible");this.D=null;this.o=this.B=!1;this.R("click",this.vG,this);T(this,a,"videoplayerreset",this.xG);T(this,a,"WATCH_LATER_VIDEO_ADDED",this.Gy);T(this,a,"WATCH_LATER_VIDEO_REMOVED",this.$A);T(this,a,"WATCH_LATER_ERROR",this.wG);R8(this,2);S8(this);Lb(this,o6(b.o,this.element,3))};
var S8=function(a,b){if(b)a.update({title:b,image:null});else{var c=a.C.V();c.userDisplayName?a.update({title:R("YTP_WATCH_LATER_AS_2",{USER_NAME:c.userDisplayName}),image:c.userDisplayImage}):a.update({title:R("YTP_WATCH_LATER"),image:null})}q6(a.G)};
var R8=function(a,b){if(b!=a.D){var c=a.element;switch(b){case 3:var d=Hh();c.innerHTML=d;break;case 1:c.innerHTML=Dh?'<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-53" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-53" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-53" /></svg>';
break;case 2:c.innerHTML=Dh?'<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-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 4:c.innerHTML=Dh?'<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.D=
b}};
var T8=function(a){var b=a.V();S.call(this,["a",["ytp-watermark","yt-uix-sessionlink"],{target:"_blank",href:"{{url}}","aria-label":R("YTP_URL_NAVIGATE_TO",{WEBSITE:bH(b)}),"data-sessionlink":"feature=player-watermark"}]);this.element.innerHTML=Dh?'<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.B=a;this.o=null;T(this,a,"videodatachange",this.C);this.C()};
var U8=function(a){Av.call(this);eI();var b=a.V(),c=IE(a);this.j=a;Jfa(this);var d=pz(a);this.La=!1;this.Ha=!0;this.Fa=!1;this.$=this.H=null;var e=new N6(a);J(this,e);Xq(a,e.element,4);var f=new m7(a);J(this,f);Xq(a,f.element,4);this.L=new h6(a);J(this,this.L);Xq(a,this.L.element,4);var k=new S(["div","ytp-gradient-top"]);J(this,k);Xq(a,k.element,1);this.ta=new Sq(k,250,!0,100);J(this,this.ta);this.D=new S(["div","ytp-chrome-top"]);J(this,this.D);Xq(a,this.D.element,1);this.oa=new Sq(this.D,250,!0,
100);J(this,this.oa);this.P=new T6(a);J(this,this.P);this.P.j(e.element);this.A=new Y5(c,A(this.pF,this),b.useTabletControls);J(this,this.A);this.A.subscribe("autohideupdate",this.qF,this);this.o=new k6(a,b.useTabletControls||b.isMobile);J(this,this.o);Xq(a,this.o.element,4);this.F=new s6(a,this,A(this.Yq,this));J(this,this.F);Xq(a,this.F.element,2);this.N=new tB(a,this.F);J(this,this.N);Xq(a,this.N.element,5);this.K=!1;k=A(this.Zq,this);this.T=new Y6(a,k);J(this,this.T);Xq(a,this.T.element,5);this.ia=
new $6(a,this,k);J(this,this.ia);this.ia.j(this.D.element);k=new N8(a);J(this,k);k.j(this.D.element);k=new zq(["div","ytp-chrome-top-buttons"]);J(this,k);k.j(this.D.element);var l=A(this.ar,this);this.X=new b7(a,l);J(this,this.X);Xq(a,this.X.element,5);this.ha=new c7(a,this,l,this.D.element);J(this,this.ha);this.ha.j(k.element);b.Kj&&(l=new Q8(a,this,this.D.element),J(this,l),l.j(k.element));l=A(this.Fs,this);this.Y=new d7(a,this,l);J(this,this.Y);Xq(a,this.Y.element,5);this.ga=new f7(a,this,0,l,
this.D.element);J(this,this.ga);this.ga.j(k.element);k=new g7(a);J(this,k);Xq(a,k.element,3);(this.B="1"==b.A?new K8(a,this,this.A):null)&&J(this,this.B);b.Ia?(l=new U5(c,A(this.Zp,this),A(this.dB,this),A(this.Yp,this)),J(this,l)):U(this,c,"click",A(function(a){this.Yp(a)||this.Zp(a)},this));
U(this,c,"touchstart",this.eB);this.G=new J6(a);J(this,this.G);this.G.subscribe("show",this.Gs,this);this.Ca=!1;!b.Ab&&b.wd&&(l=new T8(a),J(this,l),Xq(a,l.element,7));l=new V6(a);J(this,l);Xq(a,l.element,4);this.fa=a.getVideoData().videoId;this.C=null;this.za=[];this.ca=new S(["div","",{tabindex:0}]);this.ca.R("focus",this.Yv,this);this.da=new S(["div","",{tabindex:0}]);this.da.R("focus",this.Zv,this);l=a.Aa();l.setAttribute("aria-label",R("YTP_PLAYER_NORMAL"));switch(b.color){case "white":L(l,"ytp-color-white");
break;case "blue":L(l,"ytp-color-blue")}(this.U=b.useTabletControls?null:new P6(a,c,this.G,this.A,k,this.L,A(this.Sn,this)))&&J(this,this.U);U(this,a,"resize",this.Pm);U(this,a,"fullscreentoggled",this.rF);U(this,a,"presentingplayerstatechange",this.sF);U(this,a,"videodatachange",this.Es);U(this,a,"videoplayerreset",this.RA);U(this,a,"autonavvisibility",this.Yg,this);U(this,a,"cardstatechange",this.dr,this);U(this,a,"minimized",this.Tf,this);U(this,a,"onFrescaStateChange",this.Tf,this);V8(this,d);
this.Yg();this.Pm();this.Ia=[c.B,f.element,e.element,this.L.element,this.P.element]};
var W8=function(a,b,c){a.H?(b.element.getAttribute("aria-expanded"),b.element.getAttribute("aria-expanded"),b.element.removeAttribute("aria-expanded"),c.sb(),a.H=null,a.$=null):(b.element.getAttribute("aria-expanded"),a.H=c,a.$=b,c.ge(b.element),b.element.setAttribute("aria-expanded",!0));a.Tf()};
var JE=function(a){a.j.app.V();RH(a.j);return a.Fa||a.K||!!a.H||RH(a.j)||a.j.app.V().kl};
var X8=function(a,b){if(!b)return!1;for(var c=0;c<a.Ia.length;c++)if(Af(a.Ia[c],b))return!1;return Zd(b,"ytp-player-content")||Zd(b,"html5-endscreen")||b==a.j.Aa()?!1:!0};
var Y8=function(a,b){if("3"==a.j.V().A){var c=pz(a.j);if((V(c,8)||V(c,4))&&(!V(c,2)||a.j.V().experiments.ma("disable_native_controls_ended"))&&(c=am(b),"VIDEO"!=c.nodeName||c.controls))return!0}return!1};
var KE=function(a){return!a.j.V().experiments.D&&a.j.Ja()};
var V8=function(a,b){a.A.cb(128,!(b.Ua()&&!V(b,32)));var c=3==a.j.getPresentingPlayerType();a.A.cb(256,c);var c=a.j.Aa(),d;V(b,2)?d=["ended-mode"]:(d=[],V(b,8)?d.push("playing-mode"):V(b,4)&&d.push("paused-mode"),V(b,1)&&!V(b,32)&&d.push("buffering-mode"),V(b,32)&&d.push("seeking-mode"),V(b,64)&&d.push("unstarted-mode"));Fb(a.za,d)||(ce(c,a.za),a.za=d,$d(c,d));a.B&&M8(a.B,JE(a));d=a.j.V();var e=By(b);N(c,"ytp-hide-controls","1"!=d.A||e);N(c,"ytp-native-controls","3"==d.A&&!e&&!V(b,2));if(V(b,128)){a.C||
(a.C=new b6(a.j),J(a,a.C),a.C.j(c),Xq(a.j,a.C.element,4));var c=a.C,f=b.j,e=c.C.V();d=f.message;var k="embedded"==e.ya,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="//"+aH(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",Rx(e)&&!e.K&&
(f=!0));m&&(d=R(l,{BEGIN_LINK:'<br/><a href="'+m+'"'+(k?' target="_blank"':"")+">",END_LINK:"</a>"}));for(m=0;m<c.B.length;m++)c.xa(c.B[m]);c.B=[];Eq(c,"content",new I5(d));if(f)for(m=A(c.D,c),d=c.element.getElementsByTagName("a"),e=0;e<d.length;e++)k=T(c,d[e],"click",m),c.B.push(k);a.C.show()}else a.C&&(a.C.dispose(),a.C=null)};
var Z8=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=Sf(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=Z8(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 Jfa=function(a){a=a.j.V();var b=a.U;if(Ct("ytp-normal-css-loaded")){var c=Ct("ytp-sprite-mode-css-loaded");b!=c&&Ki(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}};
var $8=function(){};
var Z=function(a,b){if(b<a.B){var c=b+a.C,d=a.j[c];return d===a9?a.j[c]=[]:d}d=a.o[b];return d===a9?a.o[b]=[]:d};
var b9=function(a){var b=a;a=Kfa;this.A=null;b||(b=[]);this.C=-1;this.j=b;a:{if(this.j.length){var b=this.j.length-1,c=this.j[b];if(c&&"object"==typeof c&&!da(c)){this.B=b- -1;this.o=c;break a}}this.B=Number.MAX_VALUE}if(a)for(b=0;b<a.length;b++)c=a[b],c<this.B?(c+=-1,this.j[c]=this.j[c]||a9):this.o[c]=this.o[c]||a9};
var c9=function(a,b){Wj.call(this);var c=b;c instanceof Ph||(c=new Ph(c));var c=this.X=c,d;a:{var e=c.args.legacy_config;if(e&&(e=e?de(e):null)){var e=new b9(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=d9[d]?d9[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)Lfa[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++)Ki(Error("Discrepancy in legacy config: "+
l[c]));l=this.X.args||{};this.W=new JG(l);J(this,this.W);this.vb=zu("detailpage"==this.W.ya&&"blazer"!=this.W.j||"books"==this.W.j,l.enablesizebutton);this.ga=zu(!1,l.player_wide);this.N=this.W.gb&&zu(!1,l.external_list);this.Cb=this.W.gb&&zu(!1,l.external_play_video);this.ha=new Av(this);J(this,this.ha);this.L=new zH(this);J(this,this.L);this.Va=new zH(this,1);J(this,this.Va);this.D=new M5(this);J(this,this.D);this.D.subscribe("resize",this.yD,this);this.J=1;this.La={};this.W.storeUserVolume?(l=
nj("yt-player-volume")||{},c=l.volume,l={volume:(0,window.isNaN)(c)?100:le(Math.floor(c),0,100),muted:!!l.muted}):l={volume:100,muted:this.W.mute};this.T=l;this.aa=this.W.gb?new yH(this,1):new wH(this,1);J(this,this.aa);this.Ca=this.A=null;this.za={};l=this.W;c=new wK;QG(l)&&(c.A=!0,c.o=.1);l.Sa&&(c.j=l.Sa/8);this.Fa=new mK(c);this.Sa={internalvideodatachange:this.Qy,liveviewshift:this.vD,playbackready:this.Ry,playbackstarted:this.Sy,statechange:this.Ty,signatureexpired:this.nB};l=new xK;c=this.L;
l.o!=c&&(yK(l),l.D={},l.o=c);c={};c.loaded=A(this.Kp,this);c.unloaded=A(this.Lp,this);c.destroyed=A(this.xl,this);c.command_pause=e9(this.pauseVideo,this);c.command_play=e9(this.Se,this);c.command_seek=e9(this.Yf,this);c.command_redirect_controls=A(this.wr,this);c.command_stop_redirect_controls=A(this.Ti,this);c.publish_external_event=A(this.Hi,this);l.F=c;this.V().H.subscribe("vast_info_card_add",oa(l.J,"vast_info_card_add"),l);this.B=l;J(this,this.B);this.H=new C_(this.W,"",this.B);l=new I1(this.W,
1,this.H,this.D,A(this.O,this));f9(this,l,this.Sa);this.j=l;this.j.ha=this.Fa;this.ub={airplayactivechange:this.Hy,airplayavailabilitychange:this.Iy,beginseeking:this.sD,endseeking:this.tD,internalaudioformatchange:this.Vy,internalvideodatachange:this.AD,internalvideoformatchange:this.PB,playbackstalledatstart:this.tB,progresssync:this.xD,seekto:this.zD,onLoadProgress:this.kA,onVideoProgress:this.RB,playbackready:this.NA,statechange:this.wD,connectionissue:this.Az,heartbeatparams:this.uD,videoelementevent:this.BD};
this.K=this.C=null;this.Ya=this.Za=-1;this.fa=this.G=this.F=null;this.da={};this.oa=null;this.bb=new Wd(this.D.ig,16,this.D);J(this,this.bb);this.Ha=!1;this.Y=!0;this.ta=this.o=null;this.U=1;this.ia=null;this.Nb=this.ab=!1;this.nb=null;this.$=0;this.Ia=new e6(this.D.element);J(this,this.Ia);this.$a=0;this.subscribe("crn_"+c9.A,this.Oy,this);this.subscribe("crx_"+c9.A,this.Py,this);this.subscribe("crn_"+c9.o,this.up,this);this.subscribe("crx_"+c9.o,this.up,this);this.D.initialize(a);Dh=this.W.U;l=
new Bw(this.X.args);dx(l)&&(this.j.Ug(l,A(this.gj,this)),Nx(this.W)&&(c=l.videoId,c=(d=nj("yt-player-restore-playhead"))?d[c]:void 0,c&&(l.startSeconds=c)),oj("yt-player-restore-playhead"),(this.W.za||this.W.Bd&&this.W.experiments.N)&&N1(this.j));this.H.o("fs",void 0);l=this.D;l.isDisposed();c=l.app.V();c.G||l.addClass("tag-pool-enabled");c.Ab&&l.addClass("house-brand");"gvn"==c.j&&l.addClass("ytp-gvn");l.X?(l.K=Ni("yt-dom-content-change",l.ef,l),T(l,window,"resize",l.ef,l)):l.T?T(l,window,"resize",
l.ef,l):(c=Gu()?A(l.jv,l):A(l.ef,l),l.K=Hi(c,250));l=this.aa;l.j=this.D.element;for(var m in l.A)l.j[m]=l.A[m];for(m in l.B)l.j[m]=l.B[m];m=Mh("fullscreenchange");"msfullscreenchange"==m&&(m="MSFullscreenChange");m&&U(this.ha,window.document,m,this.Xz);U(this.ha,window,"resize",this.cB);l=this.X.args;g9(this);m=i5(this);this.Oa("onVolumeChange",this.T);l&&rx(l)&&((c=Nx(this.W))&&!this.N&&(l.fetch=0),h9(this,l),c&&!this.N?i9(this):dx(m)||(l=this.o,c=A(this.Op,this),l.F=c,l.D&&Fi(l.F,0)));if(l=this.X.args.jsapicallback)ga(l)||
(l=v(l)),l&&e9(A(l,r,this.W.Ze),r);this.W.Za||(pp("embedded"==this.W.ya),this.W.og=fH(this.W)&&!kb(zp()));j9(this,this.j);l=zt(this.W.J);"fmt.noneavailable"==l?OJ(this.j,l,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0):"html5.missingapi"==l?OJ(this.j,l,"YTP_ERROR_UNSUPPORTED_DEVICE",void 0):this.W.za&&dx(m)?k9(this):"leanback"!=this.W.ya&&l9(this);this.ca=new U8(this.L);J(this,this.ca);NH(this.Va,"init")};
var g9=function(a){a.A=o5.getTag(!0,!a.W.J);a.Ca=a.A;a.C&&Y1(a.C,a.A);py(a.A,a.U);a.W.useMediaVolume?(a.ia&&a.ha.xa(a.ia),a.ia=U(a.ha,a.A,"volumechange",a.sA)):a.A.setVolume(a.T.volume,a.T.muted);Cfa(a.D,a.A);a=a.W.tc=a.A;a.src||a.load()};
var m9=function(a){if(a.A){a.ia&&(a.ha.xa(a.ia),a.ia=null);a.C&&Z1(a.C);var b=a.D;b.o&&(sf(b.o),b.o=null);a.W.tc=null;o5.releaseTag(a.A);a.A=null}};
var ar=function(a,b){a.W.G?(a.fa&&(Vf(a.A,a.fa.left,a.fa.top),gg(a.A,ye(a.fa)),a.fa=null),br(a.A),Z1(a.C),Y1(a.C,a.A),py(a.A,a.U)):o5.releaseTag(b)};
var j9=function(a,b){a.C!=b&&(a.C&&(yK(a.B),sq(a,"cuerangesremoved",a.C.D.j.j||[]),n9(a)),b!=a.j&&(a.za[b.N]=b),a.C=b,b.ha=a.Fa,a.A&&Y1(b,a.A),f9(a,b,a.ub),o9(a,b,b.getVideoData()),b.da.j&&p9(a,"dataloaded",b,b.getVideoData()),sq(a,"cuerangesadded",a.C.D.j.j||[]),ty(b.getPlayerState())&&b2(b))};
var f9=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)};
var n9=function(a){Z1(a.C);var b=a.C,c=a.ub,d;for(d in c)b.Ba(d,c[d],a);b=a.C;b!=a.j&&(c=b.N,a.za[c]==b&&delete a.za[c]);a.C=null};
var rq=function(a,b){return b?1==b?a.j:a.za[b]||null:a.C};
var q9=function(a){var b=a.B,c=eK();F(c,b.H,b);a.O("videoready",a.getVideoData())};
var r9=function(a){!a.G&&a.Va.V().og&&(a.G=new G5(a),s9(a,a.G));if(a.G){var b=Gp();H5(a.G,zp(),b);var c=a.G;c&&!c.G&&c.Ta(a.Va)&&c.create();b&&a.G.load()}};
var s9=function(a,b){J(a,b);b.subscribe("loaded",a.Kp,a);b.subscribe("unloaded",a.Lp,a);b.subscribe("command_pause",e9(a.pauseVideo,a));b.subscribe("command_play",e9(a.Se,a));b.subscribe("command_seek",e9(a.Yf,a));b.subscribe("command_redirect_controls",a.wr,a);b.subscribe("command_stop_redirect_controls",a.Ti,a);b.subscribe("publish_external_event",a.Hi,a)};
var t9=function(a,b){b&&b.G&&("ad"==b.qa&&ce(a.D.element,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]),b.destroy())};
var i5=function(a){return a.j.getVideoData()};
var u9=function(a,b){var c=a.Ca;return(a.C&&2==a.C.N)==(2==b)&&c?C1(new D1(c)):0};
var l9=function(a){a.O("initializingmode");v9(a,2)};
var k9=function(a){if(V(a.j.getPlayerState(),128))return!1;a.O("initializingmode");j9(a,a.j);v9(a,3);var b;(b=!a.W.G)||(v("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(m9(a),g9(a),Y1(a.j,a.A));O1(a.j);if(V(a.j.getPlayerState(),128))return!1;w9(a,3);return a.Nb=!0};
var x9=function(a){return fH(a.W)&&!!Gp()};
var e9=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);Fi(function(){a.apply(b||this,c)},0)}};
var y9=function(a,b){if(!(0,window.isNaN)(b)&&a.A){var c=1,c=a.W.T?z9:[1],c=1>b?db(c,function(a){return a>=b}):fb(c,function(a){return a<=b});
a.U!=c&&(a.U=c,a.j==a.C&&py(a.A,c),a.O("onPlaybackRateChange",c))}};
var A9=function(a,b){var c=rq(a,b);return c?c.Bm():a.getVideoData().X};
var B9=function(a,b,c,d){if(a=rq(a,c))d=d||b,b=Yt(b,d,!0),lj("yt-player-quality",d,604800),h2(a,"m",b)};
var C9=function(a,b){var c=rq(a,b);return c?c.$f():0};
var D9=function(a,b){var c=l2(a.j,b);if(a.C&&a.C!=a.j){var d=l2(a.C,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.mj();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return fe(c)};
var F9=function(a,b){return 3==a.getPresentingPlayerType()?Dy(a.G.L):2==b?a.Ya:a.Za};
var G9=function(a){t9(a,a.F);t9(a,a.G);a.ab=!1;a.Ti();y9(a,1);a.La={};a=a.H;var b=a.A;b.B={};b.A={};a.B=!1};
var o9=function(a,b){yK(a.B);py(a.A,a.j==a.C?a.U:1);a.Oa("videoplayerreset",b)};
var p9=function(a,b,c,d){if(a.A){if("dataloaded"==b)if(VG(c.V(),d.B),a.C==a.j){a.W.Za||pp("embedded"==a.W.ya);var e=x9(a),f;if(f=!e)f=i5(a).qo&&!a.W.isMobile;if(f){var k="YTP_DEVICE_FALLBACK";P5||wt()||pt("xbox")&&pt("trident")||vt()||(k="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");OJ(a.j,"html5.unsupportedads",k,void 0)}else if(f=i5(a),!ex(f)||e||Tw(a.j.j)){fx(f);e&&v9(a,6);e=!1;!a.F&&h5.Ta(a)&&(a.F=new h5(a),a.F&&s9(a,a.F),e=!0);try{(k=a.F)&&!k.G&&k.Ta(a.Va)&&k.create()}catch(l){Ki(l),a.j&&
a.j.Ri("ad")}e&&(e=a.F,f=i5(a),k=rq(a),f.subscribe("cuepointupdated",e.Fz,e),e.Y=f,e=m5(e),null!=e&&(e.G=k),a.F.subscribe("overlay_ad_open",oa(a.Nq,!0),a),a.F.subscribe("overlay_ad_close",oa(a.Nq,!1),a));r9(a);q9(a)}else OJ(a.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else q9(a);1==c.N&&(a.getVideoData().Dh?(k=a.A,k.Om=!0,k.muted=!0):(a.A.Om=!1,H9(a,a.T)),a.getVideoData().Da&&!a.W.jg&&OJ(a.j,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),fx(d)&&(d.ta||d.Sa||d.C.focEnabled||
d.C.rmktEnabled||a.getVideoData().oe)&&(k=a.getVideoData(),I9(a,"part2viewed",1,0x8000000000000),I9(a,"engagedview",Math.max(1,1E3*k.Te),0x8000000000000),k.Da||(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.N)}};
var J9=function(a){if(!a.W.experiments.ma("disable_webgl_hack")){var b=!1,c=a.getVideoData();c&&c.o&&rq(a).Ua()&&(b=tr[c.o.video.quality],b=1440<=b||1080<=b&&30<c.o.video.fps);b?f6(a.Ia):g6(a.Ia)}};
var E9=function(a){a=a.Ia;var b=!a.j,c="";f6(a);if(a.o)try{a.o.getExtension("WEBGL_debug_renderer_info"),c=a.o.getParameter(37446),c=c.replace(/[ :]/g,"_")}catch(d){}b&&g6(a);return c};
var i9=function(a){var b=K9();if(b)if(b.list){if(a.o&&a.o.C.toString()==b.list)if(0<=b.index){var c=b.video;a.L.Ja()&&((c=c[a.o.j])&&c.encrypted_id!=a.o.rb().videoId||(b.index=a.o.j));vx(a.o,b);a.ta&&L9(a,a.ta)}else a.ta=null}else a.ak()};
var h9=function(a,b){if(a.o){a.o.Ba("error",a.ak,a);Mb(a.o);a.o=null;var c=DH(a.B,"playlist");c&&(ob(a.B.j,c),c.destroy())}b&&(a.N&&(b.fetch=0),a.o=new lx(b),a.o.subscribe("error",a.ak,a))};
var I9=function(a,b,c,d){b in a.La||(c=new lq(c,d,{id:b,priority:1}),c.j=c9.o,a.j.D.fb([c]),a.La[b]=c)};
var v9=function(a,b){b!=a.J&&(2==b&&(w9(a,-1),w9(a,5)),a.J=b,a.O("appstatechange",b))};
var w9=function(a,b){a.C&&2==a.C.N?a.Ya!=b&&(a.Ya=b,a.Jf("onAdStateChange",b)):a.Za!=b&&(a.Za=b,a.Jf("onStateChange",b))};
var M9=function(a,b,c){var d=new Bw(b);b&&rx(b)?(Nx(a.W)&&!a.N&&(b.fetch=0),h9(a,b)):a.o&&h9(a,null);a.N=zu(!1,b.external_list);Nx(a.W)&&!a.N&&i9(a);return N9(a,d,c)};
var O9=function(a,b){a.K&&a.K.getVideoData().videoId==b.videoId||(b.Za=!0,a.K||(a.K=new I1(a.W,1,a.H,a.D,A(a.O,a)),a.K.ha=a.Fa),a.K.Ug(b,A(a.gj,a)),N1(a.K,!0))};
var N9=function(a,b,c){if(!dv("_start",a.H.j)){var d=a.H.j;ev("yt_sts","p",d);Zu("_start",void 0,d);a.H.info("srt",0)}if(a.K&&a.K.getVideoData().videoId==b.videoId){d=a.K;a.K=null;b=d;c=a.j;var e=a.Sa,f;for(f in e)c.Ba(f,e[f],a);a.j.dispose();a.j=b;f9(a,b,a.Sa);G9(a)}else{d=rq(a,c);if(!d)return!1;a.bb.stop();P9(a,c);d.Ug(b,A(a.gj,a))}if(!M1(d))return!1;a.Ha&&(d.$a=!1,a.Ha=!1);if(d==a.j)return v9(a,1),k9(a);O1(d);return!0};
var Q9=function(a,b,c){c=rq(a,c);b&&c==a.j&&(c.getVideoData().Zf=!0)};
var R9=function(a,b,c){var d=rq(a,c);d&&(P9(a,c),d.Ug(b,A(a.gj,a)),!a.W.experiments.ma("legacy_cue_video_behavior")||M1(d))&&(VG(d.V(),b.B),d==a.j&&(v9(a,1),l9(a)))};
var S9=function(a,b,c,d){if(!b&&!d)throw Error("Playback source is invalid");if(a.L.Ja()||"detailpage"!=a.W.ya){c=a.H;var e=c.A;e.B={};e.A={};c.B=!1;a.H.reset();d?(b={video_id:b,list:d},a.Y=!1,T9(a,b,void 0,void 0,void 0)):M9(a,{video_id:b},1)}else a.Cb||"gaming"==a.W.j?a.O("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(b=a.W.getVideoUrl(b,d),d=c||{},d.lact=QA(),a.W.experiments.ma("send_presence_signal_vis_desktop")&&(d.vis=vH(a.W)),v("yt.player.exports.navigate")(b,d,!0),(window.ytspf||{}).enabled?
window.spf.navigate(b):Hx(b))};
var T9=function(a,b,c,d,e){if(ha(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;h9(a,b);b=a.o;a=A(a.Op,a);b.F=a;b.D&&Fi(b.F,0)};
var cy=function(a){Nx(a.W)&&!a.N&&i9(a);return!(!a.o||!a.o.hasNext())};
var U9=function(a,b){a.Oa("autonavcancel",b)};
var V9=function(a,b){if(a.N&&!a.L.Ja())a.O("onPlaylistNext");else if(a.o)Nx(a.W)&&!a.L.Ja()?L9(a,"yt.www.watch.lists.next"):(a.o.hasNext(b)&&ux(a.o,sx(a.o)),a.o.D?N9(a,a.o.rb(),1):a.Y=!1);else if(Ux(a.W,a.getVideoData(),a.o)&&rq(a,1).getVideoData().G){var c=Q(rq(a,1).getVideoData().G,zx)[0];S9(a,c.rb().videoId,c.da,c.Ue())}};
var W9=function(a,b){if(a.N&&!a.L.Ja())a.O("onPlaylistPrevious");else if(a.o)if(Nx(a.W)&&!a.L.Ja())L9(a,"yt.www.watch.lists.prev");else{var c=a.o;(c.J||b||0<=c.j-1)&&ux(a.o,tx(a.o));a.o.D?N9(a,a.o.rb(),1):a.Y=!1}};
var L9=function(a,b){var c=v(b);if(c){var d=K9();d&&d.list&&c();a.ta=null}else a.ta=b};
var X9=function(a,b){a.N&&!a.L.Ja()?a.O("onPlaylistIndex",b):a.o&&(a.o.D?N9(a,a.o.rb(b),1):a.Y=!1,ux(a.o,b))};
var K9=function(){var a=v("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 lq(1E3*c,1E3*d,b);c.j=c9.A;Z9(a,[c],1);return!0};
var Z9=function(a,b,c){var d=rq(a,c);d&&(d.D.fb(b),c&&a.getPresentingPlayerType()!=c||sq(a,"cuerangesadded",b))};
var $9=function(a){var b=K(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
var H9=function(a,b,c){a.T=b;c&&a.W.storeUserVolume&&!a.W.useMediaVolume&&!b.unstorable&&lj("yt-player-volume",b,2592E3);a$(a);a.W.useMediaVolume||(b=gc(b),a.W.storeUserVolume||(b.unstorable=!0),a.Oa("onVolumeChange",b))};
var a$=function(a){var b=a.getVideoData();b.Dh||a.A.setVolume(a.T.volume*(a.W.useMediaVolume?Bw.j:b.Ch),a.T.muted)};
var b$=function(a,b){var c=!!b,d=!!a.$a!=c;a.$a=b;d&&(a.H.o("fsc"),a.W.Hg=c,a.D.ig(),a.Oa("fullscreentoggled",c),d=i5(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId},a.Va.ce()&&(c.listId=a.Va.ce()),a.W.experiments.ma("new_stop_video3")&&(c.time=a.getCurrentTime()),a.O("onFullscreenChange",c))};
var sq=function(a,b,c){a.O(b,c);var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&c&&a.Hi(d,Q(c,mq))};
var c$=function(a,b){if(a.W.experiments.ma("new_stop_video3")){var c=a.j.getVideoData(),c=new Bw({video_id:c.videoId,oauth_token:c.oauthToken});R9(a,c,1)}else P9(a,b)};
var P9=function(a,b){Xu(a.$);a.$=0;var c=rq(a,b);c&&1!=a.J&&2!=a.J&&(yK(a.B),1==b&&t9(a,a.F),W1(c),a.W.experiments.ma("legacy_cue_range_behavior2")||(sq(a,"cuerangesremoved",a.C.D.j.j||[]),c.D.reset()))};
var d$=function(a,b){if(UH(a.Va)){var c=a.da.play_pause?a.oa:null;c?c.Td("control_play"):a.Se(b)}};
var e$=function(a,b,c,d,e){var f=rq(a,e);if(!f||2!=f.N&&!hx(f.getVideoData()))(f=a.da.seek?a.oa:null)?f.Td("control_seek",b):a.Yf(b,c,d,e)};
var f$=function(a,b,c){a.vb=b;a.ga=c;a.Oa("sizestylechange",b,c);a.W.experiments.ma("legacy_efficient_resize")||a.D.ig()};
var IH=function(a,b){if(a.L.Ja()!=b)if(Nh())if(b){var c=a.D.element,d=Kh(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Kh(["exitFullscreen","cancelFullscreen","cancelFullScreen"],window.document))&&c.call(window.document);else b$(a,b?2:0)};
var HH=function(a,b,c,d,e){c=a.W.gb&&a.F&&b==a.F.qa?a.F.sd(c,d):(a.W.gb||e)&&a.G&&b==a.G.qa?a.G.sd(c,d):b&&c?(a=DH(a.B,b))?a.sd(c,d):null:null;return c};
var g$=function(a,b,c){if(b){if(a.W.gb&&a.F&&b==a.F.qa)return a.F.We();if((a.W.gb||c)&&a.G&&b==a.G.qa)return a.G.We()}else return b=CK(a.B),a.W.gb&&a.F&&b.push(a.F.qa),(a.W.gb||c)&&a.G&&b.push(a.G.qa),b;return CK(a.B,b)};
var Fn=Fn||{},r=this,ka="closure_uid_"+(1E9*Math.random()>>>0),la=0,K=Date.now||function(){return+new Date};B(ra,Error);ra.prototype.name="CustomError";var Ze;var Ra=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},ya=/&/g,za=/</g,Aa=/>/g,Ba=/"/g,Ca=/'/g,Da=/\x00/g,xa=/[\x00&<>"']/,Ia=/&([^;\s<&]+);?/g,jn={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},hn={"'":"\\'"},Oa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Wa=2147483648*Math.random()|0;var jb=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},Mfa=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},F=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=y(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},be=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},Q=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},oe=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;
F(a,function(c,k){e=b.call(d,e,c,k,a)});
return e},Lh=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},Ig=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};H.prototype.Qa=!1;H.prototype.isDisposed=function(){return this.Qa};
H.prototype.dispose=function(){this.Qa||(this.Qa=!0,this.S())};
H.prototype.S=function(){if(this.Ea)for(;this.Ea.length;)this.Ea.shift()()};var jc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");lc.prototype.stopPropagation=function(){this.o=!0};
lc.prototype.preventDefault=function(){this.defaultPrevented=!0;this.yq=!1};nc[" "]=x;var qc;a:{var h$=r.navigator;if(h$){var i$=h$.userAgent;if(i$){qc=i$;break a}}qc=""};var Nf=rc(),xc=pc("Trident")||pc("MSIE"),wc=pc("Edge"),mF=wc||xc,vc=pc("Gecko")&&!(Ka(qc,"WebKit")&&!pc("Edge"))&&!(pc("Trident")||pc("MSIE"))&&!pc("Edge"),yc=Ka(qc,"WebKit")&&!pc("Edge"),P5=yc&&pc("Mobile"),ZM=pc("Macintosh"),tF=pc("Android"),CL=tc(),DL=pc("iPad"),Cc=function(){if(Nf&&r.opera){var a;var b=r.opera.version;try{a=b()}catch(c){a=b}return a}a="";(b=uc())&&(a=b?b[1]:"");return xc&&(b=zc(),b>(0,window.parseFloat)(a))?String(b):a}(),Bc={},j$=r.document,$f=j$&&xc?zc()||("CSS1Compat"==j$.compatMode?
(0,window.parseInt)(Cc,10):5):void 0;var Yc=!xc||9<=$f,Nfa=xc&&!Ac("9");!yc||Ac("528");vc&&Ac("1.9b")||xc&&Ac("8")||Nf&&Ac("9.5")||yc&&Ac("528");vc&&!Ac("8")||xc&&Ac("9");B(Dc,lc);
Dc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?vc&&(oc(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.j=a;a.defaultPrevented&&this.preventDefault()};
Dc.prototype.stopPropagation=function(){Dc.M.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Dc.prototype.preventDefault=function(){Dc.M.preventDefault.call(this);var a=this.j;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Nfa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Fc="closure_listenable_"+(1E6*Math.random()|0),Ic=0;Kc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.j))return!1;var e=this.j[a];b=Mc(e,b,c,d);return-1<b?(Jc(e[b]),pb(e,b),0==e.length&&(delete this.j[a],this.o--),!0):!1};
Kc.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.j)if(!a||c==a){for(var d=this.j[c],e=0;e<d.length;e++)++b,Jc(d[e]);delete this.j[c];this.o--}return b};var Tc="closure_lm_"+(1E6*Math.random()|0),bd={},Wc=0,ed="__closure_events_fn_"+(1E9*Math.random()>>>0);B(fd,H);fd.prototype[Fc]=!0;h=fd.prototype;h.Tg=function(a){this.ia=a};
h.addEventListener=function(a,b,c,d){Pc(this,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){$c(this,a,b,c,d)};
h.Z=function(a){var b,c=this.ia;if(c){b=[];for(var d=1;c;c=c.ia)b.push(c),++d}c=this.Ha;d=a.type||a;if(y(a))a=new lc(a,c);else if(a instanceof lc)a.target=a.target||c;else{var e=a;a=new lc(d,c);ic(a,e)}var e=!0,f;if(b)for(var k=b.length-1;!a.o&&0<=k;k--)f=a.currentTarget=b[k],e=gd(f,d,!0,a)&&e;a.o||(f=a.currentTarget=c,e=gd(f,d,!0,a)&&e,a.o||(e=gd(f,d,!1,a)&&e));if(b)for(k=0;!a.o&&k<b.length;k++)f=a.currentTarget=b[k],e=gd(f,d,!1,a)&&e;return e};
h.S=function(){fd.M.S.call(this);this.removeAllListeners();this.ia=null};
h.R=function(a,b,c,d){return Lc(this.bd,String(a),b,!1,c,d)};
h.xa=function(a,b,c,d){return this.bd.remove(String(a),b,c,d)};
h.removeAllListeners=function(a){return this.bd?this.bd.removeAll(a):0};hd.prototype.get=function(){var a;0<this.o?(this.o--,a=this.j,this.j=a.next,a.next=null):a=this.A();return a};
hd.prototype.put=function(a){this.B(a);this.o<this.C&&(this.o++,a.next=this.j,this.j=a)};var nd;var wd=new hd(function(){return new qd},function(a){a.reset()},100);
pd.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.o=null),a.next=null);return a};
qd.prototype.set=function(a,b){this.j=a;this.scope=b;this.next=null};
qd.prototype.reset=function(){this.next=this.scope=this.j=null};var sd,ud=!1,vd=new pd;Cd.prototype.reset=function(){this.context=this.o=this.A=this.j=null;this.B=!1};
var Ed=new hd(function(){return new Cd},function(a){a.reset()},100);
Ad.prototype.then=function(a,b,c){return Hd(this,ga(a)?a:null,ga(b)?b:null,c)};
yd(Ad);Ad.prototype.cancel=function(a){0==this.j&&rd(function(){var b=new Nd(a);Id(this,b)},this)};
Ad.prototype.H=function(a){this.j=0;Bd(this,2,a)};
Ad.prototype.J=function(a){this.j=0;Bd(this,3,a)};
Ad.prototype.G=function(){for(var a=null;a=Jd(this);)Kd(this,a,this.j,this.F);this.D=!1};
var Rd=ld;B(Nd,ra);Nd.prototype.name="cancel";B(Sd,fd);h=Sd.prototype;h.enabled=!1;h.wa=null;h.gw=function(){if(this.enabled){var a=K()-this.B;0<a&&a<.8*this.j?this.wa=this.o.setTimeout(this.A,this.j-a):(this.wa&&(this.o.clearTimeout(this.wa),this.wa=null),this.Z("tick"),this.enabled&&(this.wa=this.o.setTimeout(this.A,this.j),this.B=K()))}};
h.start=function(){this.enabled=!0;this.wa||(this.wa=this.o.setTimeout(this.A,this.j),this.B=K())};
h.stop=function(){this.enabled=!1;this.wa&&(this.o.clearTimeout(this.wa),this.wa=null)};
h.S=function(){Sd.M.S.call(this);this.stop();delete this.o};B(Wd,H);h=Wd.prototype;h.xg=0;h.S=function(){Wd.M.S.call(this);this.stop();delete this.j;delete this.o};
h.start=function(a){this.stop();this.xg=Ud(this.A,n(a)?a:this.B)};
h.Qf=function(a){this.isActive()||this.start(a)};
h.stop=function(){this.isActive()&&Vd(this.xg);this.xg=0};
h.isActive=function(){return 0!=this.xg};
h.ho=function(){this.xg=0;this.j&&this.j.call(this.o)};ge.prototype.oc=function(a){var b=[];he(this,a,b);return b.join("")};
var ke={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},je=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;h=qe.prototype;h.clone=function(){return new qe(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=se.prototype;h.getWidth=function(){return this.right-this.left};
h.getHeight=function(){return this.bottom-this.top};
h.clone=function(){return new se(this.top,this.right,this.bottom,this.left)};
h.contains=function(a){return this&&a?a instanceof se?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
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=te.prototype;h.clone=function(){return new te(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=ve.prototype;h.clone=function(){return new ve(this.left,this.top,this.width,this.height)};
h.contains=function(a){return a instanceof ve?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
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 Ofa={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 Be=/<[^>]*>|&[^;]+;/g,NZ=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),maa=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),kaa=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]"),laa=/^http:\/\/.*/,Pfa=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,
jaa=/\s+/,naa=/[\d\u06f0-\u06f9]/;Ce.prototype.Je=!0;Ce.prototype.fd=function(){return this.j};
Ce.prototype.toString=function(){return"Const{"+this.j+"}"};
var De={};Ge.prototype.Je=!0;var He={};Ge.prototype.fd=function(){return this.j};
var Qfa=Ie(""),Rfa=/^[-,."'%_!# a-zA-Z0-9]+$/;Je.prototype.Je=!0;Je.prototype.fd=function(){return this.j};
Je.prototype.Zk=!0;Je.prototype.kf=function(){return 1};
var Ne=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,Ke={};Oe.prototype.Je=!0;Oe.prototype.fd=function(){return""};
Oe.prototype.Zk=!0;Oe.prototype.kf=function(){return 1};
var Pe={};Re.prototype.Zk=!0;Re.prototype.kf=function(){return this.o};
Re.prototype.Je=!0;Re.prototype.fd=function(){return this.j};
var k$=/^[a-zA-Z0-9-]+$/,Sfa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Tfa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Se={};Ve("<!DOCTYPE html>",0);Ve("",0);var kf=!xc||9<=$f,vf=!vc&&!xc||xc&&9<=$f||vc&&Ac("1.9.1");xc&&Ac("9");var zf=xc||Nf||yc;var df={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=Xe.prototype;h.ka=function(a){return y(a)?this.j.getElementById(a):a};
h.iw=function(a,b,c){return jf(this.j,arguments)};
h.createElement=function(a){return this.j.createElement(a)};
h.appendChild=of;h.contains=Af;var Qf={},qg=/[^\d]+$/,rg={cm:1,"in":1,mm:1,pc:1,pt:1},sg={em:1,ex:1};var vg="StopIteration"in r?r.StopIteration:{message:"StopIteration",stack:""};tg.prototype.next=function(){throw vg;};
tg.prototype.Ub=function(){return this};h=yg.prototype;h.Xa=function(){return this.va};
h.Ka=function(){Cg(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.o[this.j[b]]);return a};
h.Na=function(){Cg(this);return this.j.concat()};
h.xe=function(a){for(var b=0;b<this.j.length;b++){var c=this.j[b];if(Ag(this.o,c)&&this.o[c]==a)return!0}return!1};
h.equals=function(a,b){if(this===a)return!0;if(this.va!=a.Xa())return!1;var c=b||Bg;Cg(this);for(var d,e=0;d=this.j[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};
h.isEmpty=function(){return 0==this.va};
h.clear=function(){this.o={};this.be=this.va=this.j.length=0};
h.remove=function(a){return Ag(this.o,a)?(delete this.o[a],this.va--,this.be++,this.j.length>2*this.va&&Cg(this),!0):!1};
h.get=function(a,b){return Ag(this.o,a)?this.o[a]:b};
h.set=function(a,b){Ag(this.o,a)||(this.va++,this.j.push(a),this.be++);this.o[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 yg(this)};
h.Ub=function(a){Cg(this);var b=0,c=this.be,d=this,e=new tg;e.next=function(){if(c!=d.be)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)throw vg;var e=d.j[b++];return a?e:d.o[e]};
return e};var Lg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Zg=/#|$/,ah=/[?&]($|#)/;h=P.prototype;h.toString=function(){var a=[],b=this.B;b&&a.push(lh(b,l$,!0),":");var c=this.o;if(c||"file"==b)a.push("//"),(b=this.G)&&a.push(lh(b,l$,!0),"@"),a.push(ua(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.A)this.o&&"/"!=c.charAt(0)&&a.push("/"),a.push(lh(c,"/"==c.charAt(0)?Ufa:Vfa,!0));(c=this.j.toString())&&a.push("?",c);(c=this.Ce())&&a.push("#",lh(c,Wfa));return a.join("")};
h.resolve=function(a){var b=this.clone(),c=!!a.B;c?ch(b,a.B):c=!!a.G;c?b.G=a.G:c=!!a.o;c?dh(b,a.o):c=null!=a.C;var d=a.A;if(c)eh(b,a.C);else if(c=!!a.A){if("/"!=d.charAt(0))if(this.o&&!this.A)d="/"+d;else{var e=b.A.lastIndexOf("/");-1!=e&&(d=b.A.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Fa(e,"./")||Fa(e,"/.")){for(var d=sa(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?fh(b,d):c=""!==a.j.toString();c?gh(b,hh(a.j.toString())):c=!!a.H;c&&(b.H=a.Ce());return b};
h.clone=function(){return new P(this)};
h.fo=function(){return this.j.toString()};
h.Ce=function(){return this.H};
var l$=/[#\/\?@]/g,Vfa=/[\#\?:]/g,Ufa=/[\#\?]/g,mh=/[\#\?@]/g,Wfa=/#/g;h=ih.prototype;h.Xa=function(){vh(this);return this.va};
h.remove=function(a){vh(this);a=xh(this,a);return zg(this.j,a)?(this.o=null,this.va-=this.j.get(a).length,this.j.remove(a)):!1};
h.clear=function(){this.j=this.o=null;this.va=0};
h.isEmpty=function(){vh(this);return 0==this.va};
h.xe=function(a){var b=this.Ka();return ib(b,a)};
h.Na=function(){vh(this);for(var a=this.j.Ka(),b=this.j.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){vh(this);var b=[];if(y(a))yh(this,a)&&(b=rb(b,this.j.get(xh(this,a))));else{a=this.j.Ka();for(var c=0;c<a.length;c++)b=rb(b,a[c])}return b};
h.set=function(a,b){vh(this);this.o=null;a=xh(this,a);yh(this,a)&&(this.va-=this.j.get(a).length);this.j.set(a,[b]);this.va++;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.o)return this.o;if(!this.j)return"";for(var a=[],b=this.j.Na(),c=0;c<b.length;c++)for(var d=b[c],e=ua(d),d=this.Ka(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+ua(d[f]));a.push(k)}return this.o=a.join("&")};
h.clone=function(){var a=new ih;a.o=this.o;this.j&&(a.j=this.j.clone(),a.va=this.va);return a};
h.extend=function(a){for(var b=0;b<arguments.length;b++)Gg(arguments[b],function(a,b){wh(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 Dh=void 0;var Jh=yc?"webkit":vc?"moz":xc?"ms":Nf?"o":"",m$=v("yt.dom.getNextId_");if(!m$){m$=function(){return++Xfa};
q("yt.dom.getNextId_",m$,void 0);var Xfa=0};var Qh={enablejsapi:1},Rh={},Sh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};Ph.prototype.clone=function(){var a=new Ph,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ba(c)?a[b]=gc(c):a[b]=c}return a};var Xh=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"],Yfa=["hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo","eojlgccfgnjlphjnlopmadngcgmmdgpk"],p$=["fjhoaacokmgbjemoflkofnenfaiekifl"],Zfa=["ekpaaapppgpmolpcldedioblbkmijaca",
"lhkfccafpkdlaodkicmokbmfapjadkij","ibiljbkambkbohapfhoonkcpcikdglop","enhhojjnijigcajfphajepfemndkmdlo"],q$=n$?o$.concat(Yfa):o$,$fa=n$?Zfa.concat(p$):p$,Vh=window.navigator.presentation?q$.concat($fa):q$;var uF=pc("Firefox"),OG=tc()||pc("iPod"),Kw=pc("iPad"),PG=pc("Android")&&!(sc()||pc("Firefox")||rc()||pc("Silk")),Kl=sc(),Ht=pc("Safari")&&!(sc()||pc("Coast")||rc()||pc("Edge")||pc("Silk")||pc("Android"))&&!(tc()||pc("iPad")||pc("iPod"));var mi=K(),di=null,ki=Array(50),ji=-1,li=!1;var xi={};B(yi,H);h=yi.prototype;h.subscribe=function(a,b,c){var d=this.o[a];d||(d=this.o[a]=[]);var e=this.C;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.C=e+3;d.push(e);return e};
h.$b=function(a){var b=this.j[a];if(b){var c=this.o[b];0!=this.B?(this.A.push(a),this.j[a+1]=x):(c&&ob(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
h.O=function(a,b){var c=this.o[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.D)for(e=0;e<c.length;e++){var k=c[e];Ai(this.j[k+1],this.j[k+2],d)}else{this.B++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.j[k+1].apply(this.j[k+2],d)}finally{if(this.B--,0<this.A.length&&0==this.B)for(;c=this.A.pop();)this.$b(c)}}return 0!=e}return!1};
h.clear=function(a){if(a){var b=this.o[a];b&&(F(b,this.$b,this),delete this.o[a])}else this.j.length=0,this.o={}};
h.Xa=function(a){if(a){var b=this.o[a];return b?b.length:0}a=0;for(b in this.o)a+=this.Xa(b);return a};
h.S=function(){yi.M.S.call(this);this.clear();this.A.length=0};var Di=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",Di,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Mi=window.yt&&window.yt.msgs_||v("window.ytcfg.msgs")||{};q("yt.msgs_",Mi,void 0);
var qa=function(a,b){var c=b||{},d=a in Mi?Mi[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},ct=window.performance&&window.performance.now?function(){return window.performance.now()}:K;var aga=v("yt.pubsub.instance_")||new yi;yi.prototype.subscribe=yi.prototype.subscribe;yi.prototype.unsubscribeByKey=yi.prototype.$b;yi.prototype.publish=yi.prototype.O;yi.prototype.clear=yi.prototype.clear;q("yt.pubsub.instance_",aga,void 0);var Qi=v("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Qi,void 0);var Si=v("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Si,void 0);var Ri=v("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Ri,void 0);
var Pi=v("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Pi,void 0);B(Xi,Wi);Xi.prototype.Xa=function(){var a=0;wg(this.Ub(!0),function(){a++});
return a};
Xi.prototype.clear=function(){var a=xg(this.Ub(!0)),b=this;F(a,function(a){b.remove(a)})};B(Yi,Xi);h=Yi.prototype;h.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};
h.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
h.get=function(a){a=this.j.getItem(a);if(!y(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
h.remove=function(a){this.j.removeItem(a)};
h.Xa=function(){return this.j.length};
h.Ub=function(a){var b=0,c=this.j,d=new tg;d.next=function(){if(b>=c.length)throw vg;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.j.clear()};
h.key=function(a){return this.j.key(a)};B(Zi,Yi);B($i,Yi);aj.prototype.set=function(a,b){n(b)?this.j.set(a,fe(b)):this.j.remove(a)};
aj.prototype.get=function(a){var b;try{b=this.j.get(a)}catch(c){return}if(null!==b)try{return de(b)}catch(c){throw"Storage: Invalid value was encountered";}};
aj.prototype.remove=function(a){this.j.remove(a)};B(bj,aj);bj.prototype.set=function(a,b){bj.M.set.call(this,a,dj(b))};
bj.prototype.o=function(a){a=bj.M.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
bj.prototype.get=function(a){if(a=this.o(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};B(ej,bj);ej.prototype.set=function(a,b,c){if(b=dj(b)){if(c){if(c<K()){ej.prototype.remove.call(this,a);return}b.expiration=c}b.creation=K()}ej.M.set.call(this,a,b)};
ej.prototype.o=function(a,b){var c=ej.M.o.call(this,a);if(c)if(!b&&fj(c))ej.prototype.remove.call(this,a);else return c};B(gj,ej);var kj,r$=new Zi;kj=r$.isAvailable()?new gj(r$):null;var mj,s$=new $i;mj=s$.isAvailable()?new gj(s$):null;var jk={PG:"atp",LI:"ska",wI:"que",cI:"mus",II:"sus"};var Cj=null;"undefined"!=typeof window.XMLHttpRequest?Cj=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(Cj=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var Ej={"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"};Mj.prototype.D=function(a,b,c,d){b?a(d):a({text:c.responseText})};
Mj.prototype.C=function(a,b){a(Error("Request error: "+b.status))};
Mj.prototype.F=function(a){a(Error("request timed out"))};Pj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.j+",status:"+this.status+"}"};B(Wj,H);Wj.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.P.subscribe(a,b,c)};
Wj.prototype.Ba=function(a,b,c){return this.isDisposed()?!1:zi(this.P,a,b,c)};
Wj.prototype.$b=function(a){return this.isDisposed()?!1:this.P.$b(a)};
Wj.prototype.O=function(a,b){return this.isDisposed()?!1:this.P.O.apply(this.P,arguments)};B(Xj,Wj);Xj.prototype.ac=function(){return this.screens};
Xj.prototype.contains=function(a){return!!Uj(this.screens,a)};
Xj.prototype.get=function(a){return a?Vj(this.screens,a):null};
Xj.prototype.info=function(a){gi(this.D,a)};B(bk,Wj);var t$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];h=bk.prototype;h.start=function(){!this.j&&(0,window.isNaN)(this.wa)&&this.qr()};
h.stop=function(){this.j&&(this.j.abort(),this.j=null);(0,window.isNaN)(this.wa)||(Ii(this.wa),this.wa=window.NaN)};
h.S=function(){this.stop();bk.M.S.call(this)};
h.qr=function(){this.wa=window.NaN;this.j=Gj(Nj(this.D,"/pairing/get_screen"),{method:"POST",Bb:{pairing_code:this.C},timeout:5E3,kb:A(this.kD,this),onError:A(this.jD,this),Ud:A(this.lD,this)})};
h.kD=function(a,b){this.j=null;var c=b.screen||{};c.dialId=this.A;c.name=this.B;this.O("pairingComplete",new ni(c))};
h.jD=function(a){this.j=null;a.status&&404==a.status?this.o>=t$.length?this.O("pairingFailed",Error("DIAL polling timed out")):(a=t$[this.o],this.wa=Fi(A(this.qr,this),a),this.o++):this.O("pairingFailed",Error("Server error "+a.status))};
h.lD=function(){this.j=null;this.O("pairingFailed",Error("Server not responding"))};B(ck,Xi);ck.prototype.set=function(a,b){this.o.set(this.j+a,b)};
ck.prototype.get=function(a){return this.o.get(this.j+a)};
ck.prototype.remove=function(a){this.o.remove(this.j+a)};
ck.prototype.Ub=function(a){var b=this.o.Ub(!0),c=this,d=new tg;d.next=function(){for(var d=b.next();d.substr(0,c.j.length)!=c.j;)d=b.next();return a?d.substr(c.j.length):c.o.get(d)};
return d};h=ek.prototype;h.Xa=function(){return this.j.Xa()};
h.removeAll=function(a){a=Eg(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};
h.remove=function(a){return this.j.remove(gk(a))};
h.clear=function(){this.j.clear()};
h.isEmpty=function(){return this.j.isEmpty()};
h.contains=function(a){return zg(this.j,gk(a))};
h.Ka=function(){return this.j.Ka()};
h.clone=function(){return new ek(this)};
h.equals=function(a){return this.Xa()==Dg(a)&&hk(this,a)};
h.Ub=function(){return this.j.Ub(!1)};ik.prototype.equals=function(a){return a?this.id==a.id:!1};var mk=/\s*;\s*/;h=kk.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(K()+1E3*c)).toUTCString();this.j.cookie=a+"="+b+e+d+c+f};
h.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(mk),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 lk(this).keys};
h.Ka=function(){return lk(this).values};
h.isEmpty=function(){return!this.j.cookie};
h.Xa=function(){return this.j.cookie?(this.j.cookie||"").split(mk).length:0};
h.xe=function(a){for(var b=lk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};
h.clear=function(){for(var a=lk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var ok=new kk(window.document);ok.o=3950;var Fk,vk="";B(Gk,Xj);h=Gk.prototype;h.start=function(){Hk(this)&&this.O("screenChange");!nj("yt-remote-lounge-token-expiration")&&Ik(this);Ii(this.j);this.j=Fi(A(this.start,this),1E4)};
h.fj=function(a,b){Hk(this);Yj(this,a);Jk(this,!1);this.O("screenChange");b(a);a.token||Ik(this)};
h.remove=function(a,b){var c=Hk(this);ak(this,a)&&(Jk(this,!1),c=!0);b(a);c&&this.O("screenChange")};
h.$i=function(a,b,c,d){var e=Hk(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,Jk(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.O("screenChange")};
h.S=function(){Ii(this.j);Gk.M.S.call(this)};
h.uw=function(a){Hk(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)}Jk(this,!b);b&&gi(this.D,"Missed "+b+" lounge tokens.")};
h.tw=function(a){gi(this.D,"Requesting lounge tokens failed: "+a)};B(Kk,Wj);h=Kk.prototype;h.start=function(){var a=(0,window.parseInt)(nj("yt-remote-fast-check-period")||"0",10);(this.B=K()-144E5<a?0:a)?Pk(this):(this.B=K()+3E5,lj("yt-remote-fast-check-period",this.B),this.Hl())};
h.isEmpty=function(){return cc(this.j)};
h.update=function(){Lk("Updating availability on schedule.");var a=this.C(),b=Pb(this.j,function(b,d){return b&&!!Vj(a,d)},this);
Nk(this,b)};
h.S=function(){Ii(this.A);this.A=window.NaN;this.o&&(this.o.abort(),this.o=null);Kk.M.S.call(this)};
h.Hl=function(){Ii(this.A);this.A=window.NaN;this.o&&this.o.abort();var a=Qk(this);if(Tb(a)){var b=Nj(this.D,"/pairing/get_screen_availability"),c={lounge_token:Yb(a).join(",")};this.o=Oj(this.D,b,c,A(this.gB,this,a),A(this.fB,this))}else Nk(this,{}),Pk(this)};
h.gB=function(a,b){this.o=null;var c=Yb(Qk(this));if(Fb(c,Yb(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Nk(this,d);Pk(this)}else this.Wa("Changing Screen set during request."),this.Hl()};
h.fB=function(a){this.Wa("Screen availability failed: "+a);this.o=null;Pk(this)};
h.Wa=function(a){gi("OnlineScreenService",a)};B(Rk,Xj);h=Rk.prototype;h.start=function(){this.o.start();this.j.start();this.screens.length&&(this.O("screenChange"),this.j.isEmpty()||this.O("onlineScreenChange"))};
h.fj=function(a,b,c){this.o.fj(a,b,c)};
h.remove=function(a,b,c){this.o.remove(a,b,c);this.j.update()};
h.$i=function(a,b,c,d){this.o.contains(a)?this.o.$i(a,b,c,d):(a="Updating name of unknown screen: "+a.name,gi(this.D,a),d(Error(a)))};
h.ac=function(a){return a?this.screens:rb(this.screens,be(this.A,function(a){return!this.contains(a)},this))};
h.rr=function(){return be(this.ac(!0),function(a){return!!this.j.j[a.id]},this)};
h.sr=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new bk(this.C,a,b,c);f.subscribe("pairingComplete",A(function(a){Mb(f);d(Uk(this,a))},this));
f.subscribe("pairingFailed",function(a){Mb(f);e(a)});
f.start();return A(f.stop,f)};
h.ew=function(a,b){for(var c=2,d=b(a,c);Wk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
h.nD=function(a,b,c,d){Gj(Nj(this.C,"/pairing/get_screen"),{method:"POST",Bb:{pairing_code:a},timeout:5E3,kb:A(function(a,d){var k=new ni(d.screen||{});if(!k.name||Wk(this,k.name))k.name=this.ew(k.name,b);c(Uk(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.S=function(){Mb(this.o);Mb(this.j);Rk.M.S.call(this)};
h.Gw=function(){Xk(this);this.O("screenChange");this.j.update()};
Rk.prototype.dispose=Rk.prototype.dispose;B(Zk,Wj);h=Zk.prototype;h.Fi=function(a){this.A=a;this.O("sessionScreen",this.A)};
h.Yb=function(a){this.isDisposed()||(a&&$k(this,""+a),this.A=null,this.O("sessionScreen",null))};
h.info=function(a){gi(this.L,a)};
h.vr=function(){return null};
h.Ol=function(a){var b=this.o;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(){$k(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
h.S=function(){this.Ol("");Zk.M.S.call(this)};B(al,Zk);h=al.prototype;h.Nl=function(a){if(this.j){if(this.j==a)return;$k(this,"Overriding cast sesison with new session object");this.j.removeUpdateListener(this.F);this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.D)}this.j=a;this.j.addUpdateListener(this.F);this.j.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.D);this.B&&cl(this);dl(this,"getMdxSessionStatus")};
h.Df=function(a){this.info("launchWithParams: "+fe(a));this.B=a;this.j&&cl(this)};
h.stop=function(){this.j?this.j.stop(A(function(){this.Yb()},this),A(function(){this.Yb(Error("Failed to stop receiver app."))},this)):this.Yb(Error("Stopping cast device witout session."))};
h.Ol=x;h.S=function(){this.info("disposeInternal");Ii(this.C);this.C=0;this.j&&(this.j.removeUpdateListener(this.F),this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.D));this.j=null;al.M.S.call(this)};
h.bC=function(a,b){if(!this.isDisposed())if(b){var c=ee(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+fe(c));switch(d){case "mdxSessionStatus":bl(this,c.screenId);break;default:$k(this,"Unknown youtube message: "+d)}}else $k(this,"Unable to parse message.")}else $k(this,"No data in message.")};
h.bo=function(a,b,c,d){Tk(this.H,this.o.label,a,this.o.friendlyName,A(function(e){e?b(e):0<=d?($k(this,"Screen "+a+" appears to be offline. "+d+" retries left."),Fi(A(this.bo,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
h.vr=function(){return this.j};
h.oD=function(a){this.isDisposed()||a||($k(this,"Cast session died."),this.Yb())};B(el,Zk);h=el.prototype;h.Nl=function(a){this.C=a;this.C.addUpdateListener(this.K)};
h.Df=function(a){this.B=a;this.F()};
h.stop=function(){this.j();this.j=x;Ii(this.D);this.C?this.C.stop(A(this.Yb,this,null),A(this.Yb,this,"Failed to stop DIAL device.")):this.Yb()};
h.S=function(){this.j();this.j=x;Ii(this.D);this.C&&this.C.removeUpdateListener(this.K);this.C=null;el.M.S.call(this)};
h.rD=function(a){this.isDisposed()||a||($k(this,"DIAL session died."),this.j(),this.j=x,this.Yb())};
h.$k=function(a){this.J=Qj();if(this.B){var b=new window.chrome.cast.DialLaunchResponse(!0,gl(this));a(b);fl(this)}else this.F=A(function(){Ii(this.D);this.F=x;this.D=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,gl(this));a(b);fl(this)},this),this.D=Fi(A(function(){this.F()},this),100)};
h.Wx=function(a,b){Tk(this.H,this.G.receiver.label,a,this.o.friendlyName,A(function(a){a&&a.token?(this.Fi(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.$k(b)},this),A(function(a){$k(this,"Failed to get DIAL screen: "+a);
this.$k(b)},this))};B(hl,Zk);hl.prototype.stop=function(){this.Yb()};
hl.prototype.Nl=x;hl.prototype.Df=function(){Ii(this.j);this.j=window.NaN;var a=Vj(this.H.ac(),this.o.label);a?this.Fi(a):this.Yb(Error("No such screen"))};
hl.prototype.S=function(){Ii(this.j);this.j=window.NaN;hl.M.S.call(this)};B(il,Wj);h=il.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.$p,this),A(this.ZA,this),d,e);c.customDialLaunchCallback=A(this.Lz,this);window.chrome.cast.initialize(c,A(function(){this.isDisposed()||
(window.chrome.cast.addReceiverActionListener(this.B),ai(ll),this.o.subscribe("onlineScreenChange",A(this.ur,this)),this.A=ol(this),window.chrome.cast.setCustomReceivers(this.A,x,A(function(a){this.Wa("Failed to set initial custom receivers: "+fe(a))},this)),this.O("yt-remote-cast2-availability-change",ml(this)),b(!0))},this),A(function(a){this.Wa("Failed to initialize API: "+fe(a));
b(!1)},this))};
h.CC=function(a,b){kl("Setting connected screen ID: "+a+" -> "+b);if(this.j){var c=this.j.A;if(!a||c&&c.id!=a)kl("Unsetting old screen status: "+this.j.o.friendlyName),Mb(this.j),this.j=null}if(a&&b){if(!this.j){c=Vj(this.o.ac(),a);if(!c){kl("setConnectedScreenStatus: Unknown screen.");return}var d=jl(this,c);d||(kl("setConnectedScreenStatus: Connected receiver not custom..."),d=new window.chrome.cast.Receiver(c.j?c.j:c.id,c.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM,this.A.push(d),
window.chrome.cast.setCustomReceivers(this.A,x,A(function(a){this.Wa("Failed to set initial custom receivers: "+fe(a))},this)));
kl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);nl(this,new hl(this.o,d),!0)}this.j.Ol(b)}else kl("setConnectedScreenStatus: no screen.")};
h.DC=function(a){this.isDisposed()?this.Wa("Setting connection data on disposed cast v2"):this.j?this.j.Df(a):this.Wa("Setting connection data without a session")};
h.qD=function(){this.isDisposed()?this.Wa("Stopping session on disposed cast v2"):this.j?(this.j.stop(),Mb(this.j),this.j=null):kl("Stopping non-existing session")};
h.requestSession=function(){window.chrome.cast.requestSession(A(this.$p,this),A(this.kB,this))};
h.S=function(){this.o.Ba("onlineScreenChange",A(this.ur,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.B);fi(ll);Mb(this.j);il.M.S.call(this)};
h.Wa=function(a){gi("Controller",a)};
h.aq=function(a,b){this.j==a&&(b||nl(this,null),this.O("yt-remote-cast2-session-change",b))};
h.XA=function(a,b){if(!this.isDisposed())if(a)switch(kl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.o.label!=a.label)kl("onReceiverAction_: Stopping active receiver: "+this.j.o.friendlyName),this.j.stop();else{kl("onReceiverAction_: Casting to active receiver.");this.j.A&&this.O("yt-remote-cast2-session-change",this.j.A);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:nl(this,new hl(this.o,a));
break;case window.chrome.cast.ReceiverType.DIAL:nl(this,new el(this.o,a));break;case window.chrome.cast.ReceiverType.CAST:nl(this,new al(this.o,a));break;default:this.Wa("Unknown receiver type: "+a.receiverType);return}break;case window.chrome.cast.ReceiverAction.STOP:this.j&&this.j.o.label==a.label?this.j.stop():this.Wa("Stopping receiver w/o session: "+a.friendlyName)}else this.Wa("onReceiverAction_ called without receiver.")};
h.Lz=function(a){if(this.isDisposed())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.Wa("Not DIAL receiver: "+b.friendlyName),b.receiverType=window.chrome.cast.ReceiverType.DIAL);var c=this.j?this.j.o:null;if(!c||c.label!=b.label)return this.Wa("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.j.A)return kl("Reselecting dial screen."),
this.O("yt-remote-cast2-session-change",this.j.A),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.Wa('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);nl(this,new el(this.o,b))}b=this.j;b.G=a;return b.G.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(A(b.Wx,b,(b.G.extraData||{}).screenId||null)):new window.Promise(A(b.$k,b))};
h.$p=function(a){if(!this.isDisposed()){kl("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=window.chrome.cast.ReceiverType.CUSTOM){if(!this.j)if(b.receiverType==window.chrome.cast.ReceiverType.CAST)kl("Got resumed cast session before resumed mdx connection."),nl(this,new al(this.o,b),!0);else{this.Wa("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.j.o,d=Vj(this.o.ac(),c.label);d&&oi(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&
b.receiverType==window.chrome.cast.ReceiverType.CAST&&(kl("onSessionEstablished_: manual to cast session change "+b.friendlyName),Mb(this.j),this.j=new al(this.o,b),this.j.subscribe("sessionScreen",A(this.aq,this,this.j)),this.j.Df(null));this.j.Nl(a)}}};
h.pD=function(){return this.j?this.j.vr():null};
h.kB=function(a){this.isDisposed()||(this.Wa("Failed to estabilish a session: "+fe(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&nl(this,null))};
h.ZA=function(a){kl("Receiver availability updated: "+a);if(!this.isDisposed()){var b=ml(this);this.C=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;ml(this)!=b&&this.O("yt-remote-cast2-availability-change",ml(this))}};
h.ur=function(){if(!this.isDisposed()){var a=ml(this);this.A=ol(this);kl("Updating custom receivers: "+fe(this.A));window.chrome.cast.setCustomReceivers(this.A,x,A(function(){this.Wa("Failed to set custom receivers.")},this));
var b=ml(this);b!=a&&this.O("yt-remote-cast2-availability-change",b)}};
il.prototype.setLaunchParams=il.prototype.DC;il.prototype.setConnectedScreenStatus=il.prototype.CC;il.prototype.stopSession=il.prototype.qD;il.prototype.getCastSession=il.prototype.pD;il.prototype.requestSession=il.prototype.requestSession;il.prototype.init=il.prototype.init;il.prototype.dispose=il.prototype.dispose;var zl=null,Bl=[];Nl.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Nl.prototype.Uo=function(){return this.event?!1===this.event.returnValue:!1};
Nl.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
var Ol={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var Rl=v("yt.events.listeners_")||{};q("yt.events.listeners_",Rl,void 0);var Tl=v("yt.events.counter_")||{count:0};q("yt.events.counter_",Tl,void 0);var om=!1,mm=null,pm=v("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",pm,void 0);new Bm;Bm.prototype.set=function(a){this.j=a};
Bm.prototype.reset=function(){this.set(K())};
Bm.prototype.get=function(){return this.j};Cm.prototype.stringify=function(a){return this.o.oc(a)};
Cm.prototype.parse=function(a){return this.j(a)};h=Dm.prototype;h.get=function(a){a=Em(this,a);return this.j[a]};
h.set=function(a,b){a=Em(this,a);this.j[a]=b};
h.Xa=function(){return this.j.length};
h.isEmpty=function(){return 0==this.j.length};
h.clear=function(){this.o=this.j.length=0};
h.Ka=function(){for(var a=this.Xa(),b=this.Xa(),c=[],a=this.Xa()-a;a<b;a++)c.push(this.get(a));return c};
h.Na=function(){for(var a=[],b=this.Xa(),c=0;c<b;c++)a[c]=c;return a};
h.xe=function(a){for(var b=this.Xa(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};B(Fm,H);h=Fm.prototype;h.Pf=!1;h.Mg=0;h.wa=null;h.nf=function(a){this.j=arguments;this.wa||this.Mg?this.Pf=!0:Gm(this)};
h.stop=function(){this.wa&&(Vd(this.wa),this.wa=null,this.Pf=!1,this.j=[])};
h.pause=function(){this.Mg++};
h.resume=function(){this.Mg--;this.Mg||!this.Pf||this.wa||(this.Pf=!1,Gm(this))};
h.S=function(){Fm.M.S.call(this);this.stop()};
h.vB=function(){this.wa=null;this.Pf&&!this.Mg&&(this.Pf=!1,Gm(this))};B(Hm,H);var Km=[];h=Hm.prototype;h.R=function(a,b,c,d){return Jm(this,a,b,c,d)};
h.xa=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)this.xa(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.B||this,c=Qc(c),d=!!d,b=Ec(a)?Oc(a.bd,String(b),c,d,e):a?(a=Sc(a))?Oc(a,b,c,d,e):null:null,b&&(ad(b),delete this.o[b.key]);return this};
h.removeAll=function(){Ob(this.o,function(a,b){this.o.hasOwnProperty(b)&&ad(a)},this);
this.o={}};
h.S=function(){Hm.M.S.call(this);this.removeAll()};
h.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Pm.prototype.j=null;var u$;B(Sm,Pm);u$=new Sm;h=Um.prototype;h.Ee=null;h.Fc=!1;h.Vf=null;h.lm=null;h.Qg=null;h.pf=null;h.Ld=null;h.Yd=null;h.Me=null;h.wb=null;h.$g=0;h.Gc=null;h.cj=null;h.Fe=null;h.Ag=-1;h.Fq=!0;h.te=!1;h.Gk=0;h.Ji=null;var cn={},an={};h=Um.prototype;h.setTimeout=function(a){this.C=a};
h.nC=function(a){a=a.target;var b=this.Ji;b&&3==Gn(a)?b.nf():this.jr(a)};
h.jr=function(a){try{if(a==this.wb)a:{var b=Gn(this.wb),c=this.wb.o,d=this.wb.getStatus();if(xc&&!(10<=$f)||yc&&!Ac("420+")){if(4>b)break a}else if(3>b||3==b&&!Nf&&!Jn(this.wb))break a;this.te||4!=b||7==c||(8==c||0>=d?this.j.Dc(3):this.j.Dc(2));mn(this);var e=this.wb.getStatus();this.Ag=e;var f=Jn(this.wb);(this.Fc=200==e)?(4==b&&en(this),this.D?(Zm(this,b,f),Nf&&this.Fc&&3==b&&(this.B.R(this.o,"tick",this.hC),this.o.start())):dn(this,f),this.Fc&&!this.te&&(4==b?this.j.Ei(this):(this.Fc=!1,Ym(this)))):
(this.Fe=400==e&&0<f.indexOf("Unknown SID")?3:0,bn(),en(this),fn(this))}}catch(k){this.wb&&Jn(this.wb)}finally{}};
h.hC=function(){var a=Gn(this.wb),b=Jn(this.wb);this.$g<b.length&&(mn(this),Zm(this,a,b),this.Fc&&4!=a&&Ym(this))};
h.EB=function(a){ln(A(this.DB,this,a),0)};
h.DB=function(a){this.te||(mn(this),dn(this,a),Ym(this))};
h.iq=function(a){ln(A(this.CB,this,a),0)};
h.CB=function(a){this.te||(en(this),this.Fc=a,this.j.Ei(this),this.j.Dc(4))};
h.cancel=function(){this.te=!0;en(this)};
h.VB=function(){this.Vf=null;var a=K();0<=a-this.lm?(2!=this.pf&&this.j.Dc(3),en(this),this.Fe=2,bn(),fn(this)):kn(this,this.lm-a)};h=rn.prototype;h.Dk=null;h.Zb=null;h.Ki=!1;h.ko=null;h.Vh=null;h.Ek=null;h.Fk=null;h.mc=null;h.gd=-1;h.zg=null;h.lg=null;h.connect=function(a){this.Fk=a;a=tn(this.j,null,this.Fk);bn();this.ko=K();var b=this.j.G;null!=b?(this.zg=b[0],(this.lg=b[1])?(this.mc=1,sn(this)):(this.mc=2,un(this))):(ph(a,"MODE","init"),this.Zb=new Um(this,0,void 0,void 0,void 0),this.Zb.Ee=this.Dk,Xm(this.Zb,a,!1,null,!0),this.mc=0)};
h.xv=function(a){if(a)this.mc=2,un(this);else{bn();var b=this.j;b.zc=b.Hd.gd;bo(b,9)}a&&this.Dc(2)};
h.hk=function(a){return this.j.hk(a)};
h.jo=function(){return!1};
h.Xp=function(a,b){this.gd=a.Ag;if(0==this.mc)if(b){try{var c=this.o.parse(b)}catch(d){c=this.j;c.zc=this.gd;bo(c,2);return}this.zg=c[0];this.lg=c[1]}else c=this.j,c.zc=this.gd,bo(c,2);else if(2==this.mc)if(this.Ki)bn(),this.Ek=K();else if("11111"==b){if(bn(),this.Ki=!0,this.Vh=K(),c=this.Vh-this.ko,!xc||10<=$f||500>c)this.gd=200,this.Zb.cancel(),bn(),vn(this.j,this,!0)}else bn(),this.Vh=this.Ek=K(),this.Ki=!1};
h.Ei=function(){this.gd=this.Zb.Ag;if(this.Zb.Fc)0==this.mc?this.lg?(this.mc=1,sn(this)):(this.mc=2,un(this)):2==this.mc&&(a=!1,(a=!xc||10<=$f?this.Ki:200>this.Ek-this.Vh?!1:!0)?(bn(),vn(this.j,this,!0)):(bn(),vn(this.j,this,!1)));else{0==this.mc?bn():2==this.mc&&bn();var a=this.j;a.zc=this.gd;bo(a,2)}};
h.Vg=function(){return this.j.Vg()};
h.isActive=function(){return this.j.isActive()};
h.Dc=function(a){this.j.Dc(a)};B(wn,fd);var Hn=/^https?$/i,cga=["POST","PUT"];h=wn.prototype;
h.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.G+"; newUri="+a);b=b?b.toUpperCase():"GET";this.G=a;this.D="";this.o=0;this.T=b;this.P=!1;this.A=!0;this.j=this.L?Tm(this.L):Tm(u$);this.K=this.L?Qm(this.L):Qm(u$);this.j.onreadystatechange=A(this.Tp,this);try{Am(Dn(this,"Opening Xhr")),this.N=!0,this.j.open(b,String(a),!0),this.N=!1}catch(f){Am(Dn(this,"Error opening Xhr: "+f.message));An(this,f);return}a=c||"";var e=this.headers.clone();
d&&Gg(d,function(a,b){e.set(b,a)});
d=db(e.Na(),zn);c=r.FormData&&a instanceof r.FormData;!ib(cga,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.j.setRequestHeader(b,a)},this);
this.X&&(this.j.responseType=this.X);$b(this.j,"withCredentials")&&(this.j.withCredentials=this.U);try{In(this),0<this.C&&(this.J=yn(this.j),Am(Dn(this,"Will abort after "+this.C+"ms if incomplete, xhr2 "+this.J)),this.J?(this.j.timeout=this.C,this.j.ontimeout=A(this.lo,this)):this.H=Ud(this.lo,this.C,this)),Am(Dn(this,"Sending request")),this.F=!0,this.j.send(a),this.F=!1}catch(f){Am(Dn(this,"Send error: "+f.message)),An(this,f)}};
h.lo=function(){"undefined"!=typeof Fn&&this.j&&(this.D="Timed out after "+this.C+"ms, aborting",this.o=8,Dn(this,this.D),this.Z("timeout"),nn(this,8))};
h.S=function(){this.j&&(this.A&&(this.A=!1,this.B=!0,this.j.abort(),this.B=!1),Cn(this,!0));wn.M.S.call(this)};
h.Tp=function(){this.isDisposed()||(this.N||this.F||this.B?En(this):this.WA())};
h.WA=function(){En(this)};
h.isActive=function(){return!!this.j};
h.getStatus=function(){try{return 2<Gn(this)?this.j.status:-1}catch(a){return-1}};h=Kn.prototype;h.sg=null;h.Pb=null;h.qb=null;h.Ck=null;h.Wh=null;h.Cn=null;h.bi=null;h.Ig=0;h.uy=0;h.Hb=null;h.Id=null;h.$c=null;h.ye=null;h.Hd=null;h.bj=null;h.Cf=-1;h.ap=-1;h.zc=-1;h.ug=0;h.cf=0;h.ve=8;var eo=new fd;B(Mn,lc);B(Nn,lc);B(On,lc);h=Kn.prototype;h.connect=function(a,b,c,d,e){bn();this.Ck=b;this.sg=c||{};d&&n(e)&&(this.sg.OSID=d,this.sg.OAID=e);this.Hd=new rn(this);this.Hd.Dk=null;this.Hd.o=this.C;this.Hd.connect(a)};
h.jo=function(){return 0==this.j};
h.fq=function(a){this.Id=null;Wn(this,a)};
h.cq=function(){this.$c=null;this.qb=new Um(this,0,this.A,"rpc",this.D);this.qb.Ee=null;this.qb.Gk=0;var a=this.Cn.clone();oh(a,"RID","rpc");oh(a,"SID",this.A);oh(a,"CI",this.bj?"0":"1");oh(a,"AID",this.Cf);Rn(this,a);if(!xc||10<=$f)oh(a,"TYPE","xmlhttp"),Xm(this.qb,a,!0,this.bi,!1);else{oh(a,"TYPE","html");var b=this.qb,c=Boolean(this.bi);b.pf=3;b.Ld=rh(a.clone());gn(b,c)}};
h.Xp=function(a,b){if(0!=this.j&&(this.qb==a||this.Pb==a))if(this.zc=a.Ag,this.Pb==a&&3==this.j)if(7<this.ve){var c;try{c=this.C.parse(b)}catch(f){c=null}if(da(c)&&3==c.length)if(0==c[0])a:{if(!this.$c){if(this.qb)if(this.qb.Qg+3E3<this.Pb.Qg)Tn(this),this.qb.cancel(),this.qb=null;else break a;$n(this);bn()}}else this.ap=c[1],0<this.ap-this.Cf&&37500>c[2]&&this.bj&&0==this.cf&&!this.ye&&(this.ye=ln(A(this.Zy,this),6E3));else bo(this,11)}else"y2f%"!=b&&bo(this,11);else if(this.qb==a&&Tn(this),!C(b)){c=
this.C.parse(b);da(c);for(var d=0;d<c.length;d++){var e=c[d];this.Cf=e[0];e=e[1];2==this.j?"c"==e[0]?(this.A=e[1],this.bi=e[2],e=e[3],null!=e?this.ve=e:this.ve=6,this.j=3,this.Hb&&this.Hb.Jn(this),this.Cn=tn(this,this.Vg()?this.bi:null,this.Ck),Zn(this)):"stop"==e[0]&&bo(this,7):3==this.j&&("stop"==e[0]?bo(this,7):"noop"!=e[0]&&this.Hb&&this.Hb.In(this,e),this.cf=0)}}};
h.Zy=function(){null!=this.ye&&(this.ye=null,this.qb.cancel(),this.qb=null,$n(this),bn())};
h.Ei=function(a){var b;if(this.qb==a)Tn(this),this.qb=null,b=2;else if(this.Pb==a)this.Pb=null,b=1;else return;this.zc=a.Ag;if(0!=this.j)if(a.Fc)1==b?(K(),eo.Z(new Nn(eo,a.Me?a.Me.length:0)),Vn(this),this.B.length=0):Zn(this);else{var c=a.Fe,d;if(!(d=3==c||7==c||0==c&&0<this.zc)){if(d=1==b)this.Pb||this.Id||1==this.j||2<=this.ug?d=!1:(this.Id=ln(A(this.fq,this,a),ao(this,this.ug)),this.ug++,d=!0);d=!(d||2==b&&$n(this))}if(d)switch(c){case 1:bo(this,5);break;case 4:bo(this,10);break;case 3:bo(this,
6);break;case 7:bo(this,12);break;default:bo(this,2)}}};
h.Rv=function(a){if(!ib(arguments,this.j))throw Error("Unexpected channel state: "+this.j);};
h.NC=function(a){a?bn():(bn(),co(this,8))};
h.hk=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new wn;a.U=!1;return a};
h.isActive=function(){return!!this.Hb&&this.Hb.isActive(this)};
h.Dc=function(){eo.Z(new On(eo))};
h.Vg=function(){return!(!xc||10<=$f)};
h=fo.prototype;h.Jn=function(){};
h.In=function(){};
h.Hn=function(){};
h.Zj=function(){};
h.Xn=function(){return{}};
h.isActive=function(){return!0};B(go,Sd);go.prototype.D=function(){if(500<this.j){var a=this.j;24E4>2*a&&(a*=2);Td(this,a)}this.F()};
go.prototype.start=function(){go.M.start.call(this);this.C=K()+this.j};
go.prototype.stop=function(){this.C=0;go.M.stop.call(this)};B(ho,fo);h=ho.prototype;h.subscribe=function(a,b,c){return this.A.subscribe(a,b,c)};
h.Ba=function(a,b,c){return zi(this.A,a,b,c)};
h.$b=function(a){return this.A.$b(a)};
h.O=function(a,b){return this.A.O.apply(this.A,arguments)};
h.dispose=function(){this.J||(this.J=!0,this.A.clear(),jo(this),Mb(this.A))};
h.isDisposed=function(){return this.J};
h.connect=function(a,b,c){if(!this.j||2!=this.j.j){this.H="";this.o.stop();this.D=a||null;this.C=b||0;a=this.K+"/test";b=this.K+"/bind";var d=new Kn("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.j;e&&(e.Hb=null);d.Hb=this;this.j=d;e?this.j.connect(a,b,this.B,e.A,e.Cf):c?this.j.connect(a,b,this.B,c.sessionId,c.arrayId):this.j.connect(a,b,this.B)}};
h.sendMessage=function(a,b){var c={_sc:a};b&&ic(c,b);this.o.enabled||2==(this.j?this.j.j:0)?this.F.push(c):this.j&&3==this.j.j&&Un(this.j,c)};
h.Jn=function(){var a=this.o;a.stop();Td(a,5E3+2E4*Math.random());this.D=null;this.C=0;if(this.F.length){a=this.F;this.F=[];for(var b=0,c=a.length;b<c;++b)Un(this.j,a[b])}this.O("handlerOpened")};
h.Hn=function(a,b){var c=2==b&&401==this.j.zc;if(4!=b&&!c){if(6==b||410==this.j.zc)c=this.o,c.stop(),Td(c,500);this.o.start()}this.O("handlerError",b)};
h.Zj=function(a,b,c){if(!this.o.enabled)this.O("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a){var d=c[a].map;d&&this.F.push(d)}};
h.Xn=function(){var a={v:2};this.H&&(a.gsessionid=this.H);0!=this.C&&(a.ui=""+this.C);0!=this.G&&(a.ui=""+this.G);this.D&&ic(a,this.D);return a};
h.In=function(a,b){if("S"==b[0])this.H=b[1];else if("gracefulReconnect"==b[0]){var c=this.o;c.stop();Td(c,500);this.o.start();Pn(this.j)}else this.O("handlerMessage",new Ml(b[0],b[1]))};
h.iD=function(){this.o.stop();var a=this.j,b=0;a.qb&&b++;a.Pb&&b++;0!=b?this.o.start():this.connect(this.D,this.C)};h=lo.prototype;h.Xa=function(){return this.j.length+this.o.length};
h.isEmpty=function(){return kb(this.j)&&kb(this.o)};
h.clear=function(){this.j=[];this.o=[]};
h.contains=function(a){return ib(this.j,a)||ib(this.o,a)};
h.remove=function(a){var b=Mfa(this.j,a);if(0>b)return ob(this.o,a);pb(this.j,b);return!0};
h.Ka=function(){for(var a=[],b=this.j.length-1;0<=b;--b)a.push(this.j[b]);for(var c=this.o.length,b=0;b<c;++b)a.push(this.o[b]);return a};h=qo.prototype;h.reset=function(a){this.videoIds=[];this.o="";to(this);this.volume=-1;this.muted=!1;a&&(this.videoIds=a.videoIds,this.index=a.index,this.o=a.listId,this.videoId=a.videoId,this.j=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.A=a.trackData,this.B=a.playerTime,this.C=a.playerTimeAt)};
h.Ua=function(){return 1==this.j};
h.setVideoId=function(a){ro(this,"setVideoId");var b=this.index;this.index=jb(this.videoIds,a);b!=this.index&&so(this);return-1!=b};
h.remove=function(a){ro(this,"remove");var b=uo(this);return ob(this.videoIds,a)?(this.index=jb(this.videoIds,b),!0):!1};
h.clone=function(){return new qo(zo(this))};B(Ao,Wj);h=Ao.prototype;h.play=function(){1==this.o?(this.j?this.j.play(null,x,A(function(){this.Wa("Failed to play video with cast v2 channel.");Fo(this,"play")},this)):Fo(this,"play"),Jo(this,1,wo(Do(this))),Ko(this)):Io(this,this.play)};
h.pause=function(){1==this.o?(this.j?this.j.pause(null,x,A(function(){this.Wa("Failed to pause video with cast v2 channel.");Fo(this,"pause")},this)):Fo(this,"pause"),Jo(this,2,wo(Do(this))),Ko(this)):Io(this,this.pause)};
h.or=function(a){if(1==this.o){if(this.j){var b=Do(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.Ua()||3==b.j?window.chrome.cast.media.ResumeState.PLAYBACK_START:window.chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(c,x,A(function(){this.Wa("Failed to seek in video with cast v2 channel.");Fo(this,"seekTo",{newTime:a})},this))}else Fo(this,"seekTo",{newTime:a});
Jo(this,3,a);Ko(this)}else Io(this,oa(this.or,a))};
h.stop=function(){if(1==this.o){this.j?this.j.stop(null,x,A(function(){this.Wa("Failed to stop video with cast v2 channel.");Fo(this,"stopVideo")},this)):Fo(this,"stopVideo");
var a=Do(this);to(a);Go(this,a);Ko(this)}else Io(this,this.stop)};
h.setVolume=function(a,b){if(1==this.o){var c=Do(this);if(this.A){if(c.volume!=a){var d=Math.round(a)/100;this.A.setReceiverVolumeLevel(d,A(function(){Lo("set receiver volume: "+d)},this),A(function(){this.Wa("failed to set receiver volume.")},this))}c.muted!=b&&this.A.setReceiverMuted(b,A(function(){Lo("set receiver muted: "+b)},this),A(function(){this.Wa("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);Fo(this,"setVolume",e)}c.muted=b;c.volume=a;Go(this,c);Ko(this)}else Io(this,oa(this.setVolume,a,b))};
h.Ql=function(a,b){if(1==this.o){var c=Do(this);if(b){c.A={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:fe(b.style)};ic(d,c.A);Fo(this,"setSubtitlesTrack",d)}else d={videoId:a},Fo(this,"setSubtitlesTrack",d);Go(this,c)}else Io(this,oa(this.Ql,a,b))};
h.pr=function(a,b){if(1==this.o){Fo(this,"setAudioTrack",{videoId:a,audioTrackId:b.Ib.id});var c=Do(this);c.audioTrackId=b.Ib.id;Go(this,c)}else Io(this,oa(this.pr,a,b))};
h.dispose=function(){if(3!=this.o){var a=this.o;this.o=3;this.O("proxyStateChange",a,this.o)}Ao.M.dispose.call(this)};
h.S=function(){Ii(this.C);this.C=window.NaN;Ho(this);this.B=null;this.D.clear();Co(this,null);Ao.M.S.call(this)};
h.ym=function(a){if((a!=this.o||2==a)&&3!=this.o&&0!=a){var b=this.o;this.o=a;this.O("proxyStateChange",b,a);if(1==a)for(;!this.D.isEmpty();)oo(this.D).apply(this);else 3==a&&this.dispose()}};
h.PA=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.C))&&this.O(a)};
h.ez=function(a){if(!a)this.Jg(null),Co(this,null);else if(this.A.receiver.volume){a=this.A.receiver.volume;var b=Do(this);if(b.volume!=a.level||b.muted!=a.muted)Lo("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,Go(this,b),Ko(this)}};
h.Jg=function(a){Lo("Cast media: "+!!a);this.j&&this.j.removeUpdateListener(this.H);if(this.j=a)this.j.addUpdateListener(this.H),Mo(this),Ko(this)};
h.dz=function(a){a?(Mo(this),Ko(this)):this.Jg(null)};
h.Wa=function(a){gi("CP",a)};B(No,Wj);h=No.prototype;
h.connect=function(a,b){if(b){if(this.ra.o){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.ra.o=c);this.ra.videoId=d;this.ra.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.ra.videoIds=[d];this.ra.index=0}this.ra.state=3;vo(this.ra,f);this.ib("Connecting with setPlaylist and params: "+fe(k));this.j.connect({method:"setPlaylist",params:fe(k)},
a,wk())}else this.ib("Connecting without params"),this.j.connect({},a,wk());Qo(this)};
h.dispose=function(){this.isDisposed()||(this.O("beforeDispose"),Po(this,3));No.M.dispose.call(this)};
h.S=function(){Ro(this);Uo(this);So(this);Ii(this.F);this.F=window.NaN;Ii(this.G);this.G=window.NaN;this.A=null;Wl(this.N);this.N.length=0;this.j.dispose();No.M.S.call(this);this.o=this.ra=this.j=null};
h.ib=function(a){gi("conn",a)};
h.lw=function(){this.B(2)};
h.jz=function(){this.ib("Channel opened");this.L&&(this.L=!1,So(this),this.H=Fi(A(function(){this.ib("Timing out waiting for a screen.");this.B(1)},this),15E3));
Ck(io(this.j),this.U)};
h.fz=function(){this.ib("Channel closed");(0,window.isNaN)(this.C)?Dk(!0):Dk();this.dispose()};
h.gz=function(a){Dk();(0,window.isNaN)(this.D())?(this.ib("Channel error: "+a+" without reconnection"),this.dispose()):(this.L=!0,this.ib("Channel error: "+a+" with reconnection in "+this.D()+" ms"),Po(this,2))};
h.hz=function(a){a.params?this.ib("Received: action="+a.action+", params="+fe(a.params)):this.ib("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=de(a.params.devices);this.o=Q(a,function(a){return new ik(a)});
a=!!db(this.o,function(a){return"LOUNGE_SCREEN"==a.type});
Xo(this,a);break;case "loungeScreenConnected":Xo(this,!0);break;case "loungeScreenDisconnected":qb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});
Xo(this,!1);break;case "remoteConnected":var b=new ik(de(a.params.device));db(this.o,function(a){return a.equals(b)})||nb(this.o,b);
break;case "remoteDisconnected":b=new ik(de(a.params.device));qb(this.o,function(a){return a.equals(b)});
break;case "gracefulDisconnect":break;case "playlistModified":$o(this,a);break;case "nowPlaying":ap(this,a);break;case "onStateChange":bp(this,a);break;case "onVolumeChanged":cp(this,a);break;case "onSubtitlesTrackChanged":Zo(this,a);break;default:this.ib("Unrecognized action: "+a.action)}};
h.iz=function(a){a.params?this.ib("Received: action="+a.action+", params="+fe(a.params)):this.ib("Received: action="+a.action);dp(this,a);ep(this,a);if(Wo(this)){var b=this.ra.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)&&de(a.params.currentError));if("onSubtitlesTrackChanged"==a.action)d==uo(this.ra)&&(delete a.params.videoId,
cc(a.params)?this.ra.A=null:this.ra.A=a.params,this.O("remotePlayerChange"));else if(uo(this.ra)||"onStateChange"!=a.action){"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=uo(this.ra)):this.ra.setVideoId(""),e&&(e=e.split(","),yo(this.ra,e,d))):yo(this.ra,[]);e=this.ra;var p=d;ro(e,"add");p&&!ib(e.videoIds,p)?(e.videoIds.push(p),e=!0):e=!1;e&&Vo(this,"getPlaylist");d&&this.ra.setVideoId(d);b.index==this.ra.index&&Fb(b.videoIds,
this.ra.videoIds)?"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||this.O("remoteQueueChange"):this.O("remoteQueueChange");n(f)&&(a=(0,window.parseInt)(f,10),a=(0,window.isNaN)(a)?-1:a,-1==a&&-1E3==this.ra.j&&(a=-1E3),0==a&&"0"==k&&(a=-1),c=c||a!=this.ra.j,this.ra.j=a,1==this.ra.j?To(this):Uo(this));k&&(a=(0,window.parseInt)(k,10),vo(this.ra,(0,window.isNaN)(a)?0:a),c=!0);n(l)&&(a=(0,window.parseInt)(l,10),(0,window.isNaN)(a)||(c=c||this.ra.volume!=a,this.ra.volume=a),n(m)&&(m="true"==
m,c=c||this.ra.muted!=m,this.ra.muted=m));c&&this.O("remotePlayerChange")}}};
h.tC=function(){if(this.A){var a=this.A;this.A=null;this.ra.videoId!=a&&Vo(this,"getNowPlaying")}};
No.prototype.subscribe=No.prototype.subscribe;No.prototype.unsubscribeByKey=No.prototype.$b;No.prototype.Y=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.D())?Wo(this)&&(a=1):a=2);return a};
No.prototype.getProxyState=No.prototype.Y;No.prototype.B=function(a){this.ib("Disconnecting with "+a);Ro(this);this.O("beforeDisconnect",a);1==a&&Dk();jo(this.j,a);this.dispose()};
No.prototype.disconnect=No.prototype.B;No.prototype.X=function(){var a=this.ra;this.A&&(a=this.ra.clone(),xo(a,this.A,a.index));return zo(a)};
No.prototype.getPlayerContextData=No.prototype.X;
No.prototype.da=function(a){var b=new qo(a);b.videoId&&b.videoId!=this.ra.videoId&&(this.A=b.videoId,Ii(this.F),this.F=Fi(A(this.tC,this),5E3));var c=[];this.ra.o==b.o&&this.ra.videoId==b.videoId&&this.ra.index==b.index&&Fb(this.ra.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ra.j==b.j&&this.ra.volume==b.volume&&this.ra.muted==b.muted&&wo(this.ra)==wo(b)&&fe(this.ra.A)==fe(b.A)||c.push("remotePlayerChange");this.ra.reset(a);F(c,function(a){this.O(a)},this)};
No.prototype.setPlayerContextData=No.prototype.da;No.prototype.T=function(){return this.j.B.loungeIdToken};
No.prototype.getLoungeToken=No.prototype.T;No.prototype.J=function(){var a=this.j.B.id,b=db(this.o,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});
return b?b.id:""};
No.prototype.getOtherConnectedRemoteId=No.prototype.J;No.prototype.D=function(){var a=this.j;return a.o.enabled?a.o.C-K():window.NaN};
No.prototype.getReconnectTimeout=No.prototype.D;No.prototype.fa=function(){if(!(0,window.isNaN)(this.D())){var a=this.j.o;a.enabled&&(a.stop(),a.start(),a.D())}};
No.prototype.reconnect=No.prototype.fa;No.prototype.$=function(a,b){Vo(this,a,b);Yo(this)};
No.prototype.sendMessage=No.prototype.$;var kp=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];B(op,Xj);h=op.prototype;h.ac=function(a){return this.Mb.$_gs(a)};
h.contains=function(a){return!!this.Mb.$_c(a)};
h.get=function(a){return this.Mb.$_g(a)};
h.start=function(){this.Mb.$_st()};
h.fj=function(a,b,c){this.Mb.$_a(a,b,c)};
h.remove=function(a,b,c){this.Mb.$_r(a,b,c)};
h.$i=function(a,b,c,d){this.Mb.$_un(a,b,c,d)};
h.S=function(){for(var a=0,b=this.j.length;a<b;++a)this.Mb.$_ubk(this.j[a]);this.j.length=0;this.Mb=null;op.M.S.call(this)};
h.mD=function(){this.O("screenChange")};
h.EA=function(){this.O("onlineScreenChange")};
Rk.prototype.$_st=Rk.prototype.start;Rk.prototype.$_gspc=Rk.prototype.nD;Rk.prototype.$_gsppc=Rk.prototype.sr;Rk.prototype.$_c=Rk.prototype.contains;Rk.prototype.$_g=Rk.prototype.get;Rk.prototype.$_a=Rk.prototype.fj;Rk.prototype.$_un=Rk.prototype.$i;Rk.prototype.$_r=Rk.prototype.remove;Rk.prototype.$_gs=Rk.prototype.ac;Rk.prototype.$_gos=Rk.prototype.rr;Rk.prototype.$_s=Rk.prototype.subscribe;Rk.prototype.$_ubk=Rk.prototype.$b;var qp=null,rp=null,yp=null,ip=null,xp=[];var Yp=/^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]+)?\/)/,Ew=/^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]+)?([\/\?\#]|$)/,
Hea=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,KG=/^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(\/+|\?|#|$)/,Mw=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-dev\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https?:\/\/(s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/|([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/,
dga=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Qw=/^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)/,ega=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul)/,Br=/^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]+)?([\/\?\#]|$)/,
LG=/^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]+)?([\/\?\#]|$))/,
UG=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,$p=/^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 aq=["2mdn.net","imasdk.googleapis.com","googleads.g.doubleclick.net"];var hq={},gq=0,fga=v("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",fga,void 0);var jq=1;iq.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)};
iq.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};B(lq,iq);lq.prototype.getId=function(){return this.H};
lq.prototype.toString=function(){return lq.M.toString.call(this)};B(pq,Wj);h=pq.prototype;h.fb=function(a,b){for(var c=0;c<a.length;c++)a[c].j=this.qa;this.j.fb(a,b)};
h.create=function(){this.G||(this.Ta(this.j),L(this.j.Aa(),this.qa+"-created"),this.j.addEventListener("crn_"+this.qa,this.Qb,this),this.j.addEventListener("crx_"+this.qa,this.Xb,this),this.G=!0)};
h.destroy=function(){this.loaded&&this.unload();ae(this.j.Aa(),this.qa+"-created");this.j.removeEventListener("crn_"+this.qa,this.Qb,this);this.j.removeEventListener("crx_"+this.qa,this.Xb,this);this.G=!1;this.O("destroyed",this.qa)};
h.load=function(){this.loaded=!0;L(this.j.Aa(),this.qa+"-loaded");this.O("loaded",this.qa)};
h.unload=function(){this.loaded=!1;ae(this.j.Aa(),this.qa+"-loaded");this.O("unloaded",this.qa)};
h.Qb=function(){};
h.Xb=function(){};
h.Td=function(){};
h.log=function(a){OH(this.j,this.logEvent,a)};
h.kh=function(){return null};
h.pauseVideo=function(){this.O("command_pause",!1,this.j.playerType)};
h.sd=function(){};
h.We=function(){return[]};
h.Ta=function(){return!1};
h.Fl=function(a,b){this.F&&this.F.Td&&this.F.Td.apply(this.F,arguments)};
h.Di=function(){};B(zq,H);zq.prototype.j=function(a,b){n(b)?rf(a,this.element,b):a.appendChild(this.element)};
zq.prototype.update=function(a){for(var b in a)Eq(this,b,a[b])};
zq.prototype.S=function(){this.na={};this.ha={};Dq(this);zq.M.S.call(this)};B(S,zq);h=S.prototype;h.Eb=function(a,b){Eq(this,b||"content",a)};
h.show=function(){this.A||(Gq(this.element,""),this.A=!0)};
h.ea=function(){this.A&&(Gq(this.element,"none"),this.A=!1)};
h.ob=function(a){a?this.show():this.ea()};
h.R=function(a,b,c){return T(this,this.element,a,b,c)};
h.xa=function(a){for(var b=0;b<this.U.length;b++)if(this.U[b]==a){a=this.U.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
h.focus=function(){Ef(this.element);this.element.focus()};
h.S=function(){for(;this.U.length;){var a=this.U.pop();a.target.removeEventListener(a.type,a.listener)}S.M.S.call(this)};B(Jq,S);Jq.prototype.subscribe=function(a,b,c){return this.N.subscribe(a,b,c)};
Jq.prototype.Ba=function(a,b,c){return this.N.Ba(a,b,c)};
Jq.prototype.$b=function(a){return this.N.$b(a)};
Jq.prototype.O=function(a,b){return this.N.O.apply(this.N,arguments)};B(Kq,Jq);Kq.prototype.create=function(){this.J=!0};
Kq.prototype.destroy=function(){this.J=!1};
Kq.prototype.Eh=function(){return!1};B(Lq,S);var gga=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(xc)return Ac("10.0");
var a=window.document.createElement("DIV"),b=yc?"-webkit":vc?"-moz":xc?"-ms":Nf?"-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 Tfa)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 Ce)f=Ee(f);else if("style"==k.toLowerCase()){if(!ha(f))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+
typeof f+" given: "+f);if(!(f instanceof Ge)){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 Ce)p=Ee(p);else if(Rfa.test(p)){for(var u=!0,t=!0,w=0;w<p.length;w++){var z=p.charAt(w);"'"==z&&t?u=!u:'"'==z&&u&&(t=!t)}u&&t||(p="zClosurez")}else p="zClosurez";l+=m+":"+p+";"}}f=l?Ie(l):Qfa}f=f instanceof Ge&&f.constructor===Ge&&f.o===He?f.j:"type_error:SafeStyle"}else{if(/^on/i.test(k))throw Error('Attribute "'+
k+'" requires goog.string.Const value, "'+f+'" given.');if(k.toLowerCase()in Sfa)if(f instanceof Oe)f=Qe(f);else if(f instanceof Je)f=Le(f);else if(y(f))f=Me(f).fd();else throw Error('Attribute "'+k+'" on tag "div" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+f+'" given.');}f.Je&&(f=f.fd());k=k+'="'+wa(String(f))+'"';d=d+(" "+k)}}e=void 0;null!=e?da(e)||(e=[e]):e=[];!0===Ofa.div?d+=">":(c=Ue(e),d+=">"+Te(c)+"</div>",c=c.kf());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=
null);b=Ve(d,c);a.innerHTML=Te(b);return""!=Rf(a.firstChild,"transition")});B(Sq,H);h=Sq.prototype;h.show=function(a,b){this.B=!!a;1==this.j||2==this.j||3==this.j&&a||(4==this.j||3==this.j?a||(this.A.show(),Tq(this,!1),this.j=null,this.o.stop()):this.A.A||(Tq(this,!this.B),this.j=1,b?this.o.start(b):this.am()))};
h.ea=function(){3!=this.j&&(1==this.j||2==this.j?(this.A.ea(),this.j=null,this.o.stop()):this.A.A&&(Tq(this,!0),this.j=3,this.o.start(this.D)))};
h.am=function(){switch(this.j){case 1:this.A.show();this.j=2;this.o.start(10);break;case 2:Tq(this,this.B);this.B?(this.j=3,this.o.start(this.C)):this.j=null;break;case 3:this.A.ea();Tq(this,!1);this.j=4;this.o.start(0);break;case 4:this.j=null}};
h.stop=function(){for(;null!=this.j&&4!=this.j;)this.o.stop(),this.am()};
h.S=function(){this.A.isDisposed()||this.A.element.removeAttribute("aria-hidden");Sq.M.S.call(this)};B(Uq,S);B(Vq,Uq);Vq.prototype.ob=function(a){a?this.B.show():this.B.ea()};B(Wq,Kq);Wq.prototype.create=function(){Wq.M.create.call(this);qf(this.element);this.C.j(this.element);var a=this.o.getVideoData().videoId;a&&(a=$G(this.o.V(),a,!0),Gj(a,{method:"GET",kb:this.D,context:this,Gv:!0}))};
Wq.prototype.D=function(a,b){if(this.J){var c=b.user_info;this.o.getVideoData();var d=c.channel_banner_url;Mw.test(d)||(d="");var e=c.channel_logo_url||c.image_url;Mw.test(e)||(e="");Eq(this.B,"background",d?"background-image: url("+d+")":"");Eq(this.C,"image",e);Eq(this.C,"author",c.channel_title||c.username);c=c.subscription_button_html;d=this.C.na["html5-subscribe-button-container"];c?d.innerHTML=Te(c):qf(d)}};
Wq.prototype.show=function(){Wq.M.show.call(this);this.B.ob(!0)};
Wq.prototype.ea=function(){Wq.M.ea.call(this);this.B.ob(!1)};B(Yq,S);Yq.prototype.S=function(){Yq.M.S.call(this);this.B&&(ar(this.o.app,this.B),this.B=null);$q(this);qf(Zq(this));qf(cr(this));this.D=this.C=null;delete this.o};dr.prototype.toString=function(){return this.type+this.id};var T5=16/9,hga=4/3,z9=[.25,.5,1,1.25,1.5,2];var gr={Ww:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
Gz:function(a,b){a.splice(0,b)},
W9:function(a){a.reverse()}};var lr={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 Zv={name:"width",video:!0,valid:640,Fg:99999},$v={name:"height",video:!0,valid:360,Fg:99999},aw={name:"framerate",video:!0,valid:30,Fg:9999},bw={name:"bitrate",video:!0,valid:3E5,Fg:2E9},cw={name:"channels",video:!1,valid:2,Fg:99},dw={yh:Zv,rh:$v,o:aw,Ym:bw,j:cw};qr.prototype.toString=function(){return this.name};var cu={OG:"auto",aJ:"tiny",ju:"light",SMALL:"small",tu:"medium",LARGE:"large",BH:"hd720",xH:"hd1080",yH:"hd1440",zH:"hd2160",AH:"hd2880",FH:"highres",UNKNOWN:"unknown"},tr={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},sr="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var ur=[["60",55],["50",49],["48",39]];vr.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.o="")};
vr.prototype.get=function(a){zr(this);return this.j[a]||null};
vr.prototype.clone=function(){var a=new vr(this.A);a.D=this.D;a.B=this.B;a.C=this.C;a.j=gc(this.j);a.o=this.o;return a};Fr.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};h=Mr.prototype;h.dg=function(a){return(a=Nr(this,a))?a.duration:0};
h.tk=function(a){return this.dg(a)};
h.vg=function(){return this.sa.length?this.sa[0].j:-1};
h.Lb=function(){return this.sa.length?this.sa[this.sa.length-1].j:-1};
h.eg=function(){var a=this.sa[this.sa.length-1];return a?a.endTime:window.NaN};
h.Kr=function(){return this.sa[0].startTime};
h.$n=function(){return this.sa.length};
h.tj=function(){return 0};
h.lf=function(a){return(a=Or(this,a))?a.j:-1};
h.co=function(a){return Nr(this,a).sourceURL};
h.ee=function(a){return(a=Nr(this,a))?a.startTime:0};
h.fg=function(){return 0<this.sa.length};Qr.prototype.set=function(a,b){this.j.get(a);this.o[a]=b;this.A=""};
Qr.prototype.get=function(a){return this.o[a]||this.j.get(a)};var v$=0;Xr.prototype.il=function(){return!1};
Xr.prototype.wq=function(a){return[a]};
Xr.prototype.Oi=function(a){return[a]};Zr.prototype.equals=function(a){return!(!a||a.j!=this.j||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.B!=this.B||a.A!=this.A||a.o!=this.o)};B(hs,Xr);h=hs.prototype;h.Ih=function(){return!1};
h.Zn=function(){var a=new Zr(1,this,this.initRange);return[new es([a],this.B)]};
h.Zh=function(a,b){var c=this.index.lf(a);b&&(c=Math.min(this.index.Lb(),c+1));return js(this,c,!0)};
h.oo=function(a){this.j=new window.Uint8Array(Ss(a).buffer)};
h.il=function(){return!1};
h.jh=function(a){return 0==a.o?!0:this.index.Lb()>a.B&&this.index.vg()<=a.B+1};
h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=sb(a),0==d.sa.length)d.sa=a;else{var e=d.sa.length?cb(d.sa).endTime:0,f=a[0].j-d.Lb();1<f&&lb(d.sa);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.sa.push(a[f])}}Pr(this.index,c);this.o=b};ms.prototype.update=function(a,b){var c=void 0;this.o&&(c=this.o);var d=new ms,e=a.getElementsByTagName("S");if(e.length){var f=+Ir(a,"timescale")||1,k=+Ir(a,"startNumber")||0,l;l=((+e[0].getAttribute("t")||0)-(+Ir(a,"presentationTimeOffset")||0))/f;l=c?c.ae+c.durationSecs:b?l:0;var m;m=Date.parse(Ir(a,"yt:segmentIngestTime"));var p=Date.parse(Ir(a,"yt:mpdResponseTime")),p=K()-p;m=(m+p)/1E3;p=c?k-c.j:1;d.B=0<p?0:-p+1;for(p=0;p<e.length;p++)for(var u=e[p],t=+u.getAttribute("d")/f,w=(u.getAttribute("yt:sid")||
0)/f,z=+u.getAttribute("r")||0,E=0;E<=z;E++)if(c&&k<=c.j)k++;else{var M=new ls(k,l,t,m+w);d.j.push(M);var G;G=u;var I=f,Ta=M.ae,tb=G.getAttribute("yt:cuepointTimeOffset"),M=G.getAttribute("yt:cuepointDuration");tb&&M?(Ta=+tb/I+Ta,I=+M/I,G=G.getAttribute("yt:cuepointContext")||null,G=new ks(Ta,I,G)):G=null;G&&d.A.push(G);k++;l+=t;m+=t+w}d.j.length&&(d.o=cb(d.j))}this.B=d.B;this.o=d.o||this.o;this.j=d.j;ub(this.A,d.A)};Fs.prototype.skip=function(a){this.j+=a};h=Xs.prototype;h.tj=function(a){return this.j[a]};
h.ee=function(a){return this.o[a]/this.B};
h.dg=function(a){a=this.tk(a);return 0<=a?a/this.B:-1};
h.tk=function(a){return a+1<this.va||this.A?this.o[a+1]-this.o[a]:-1};
h.vg=function(){return 0};
h.Lb=function(){return this.va-1};
h.eg=function(){return this.A?this.o[this.va]/this.B:window.NaN};
h.Kr=function(){return 0};
h.$n=function(){return this.va};
h.co=function(){return""};
h.lf=function(a){a=yb(this.o.subarray(0,this.va),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
h.fg=function(){return 0<=this.Lb()};B(Zs,Xr);h=Zs.prototype;h.Zn=function(a){var b=new Zr(1,this,this.initRange),c=new Zr(2,this,this.indexRange),d=[],e=[b];as(b,c)?e.push(c):(d.push(new es([c])),a=0);(0,window.isNaN)(this.o)?a=0:a>this.o&&(a=this.o);b=e[e.length-1];c=b.range.end-e[0].range.start+1;a>c&&(a=Hr(b.range.end+1,a-c),e.push(new Zr(4,this,a)));d.push(new es(e));return d};
h.oo=function(a){if(1==a.info.type){if(this.j)return;this.j=new window.Uint8Array(a.j,a.range.start,a.range.length)}else if(2==a.info.type){if(this.B||0<=this.index.Lb())return;if(1==this.info.o){var b=this.index,c=Ss(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.B=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.j[0]=
k+(e+d);b.o[0]=f;b.A=!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.va++;Ys(f);f.j[f.va]=f.j[f.va-1]+l;f.o[f.va]=f.o[f.va-1]+k}}else this.B=Ss(a)}if(2==this.info.o&&this.j&&this.B){a=new window.DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength);b=this.index;k=this.B;c=this.indexRange.end;a=new Hs(a);if(440786851==Is(a)&&(Ks(a),408125543==Is(a))){e=a;f=e.j;d=Js(e,!0);e.j=f;a=Ls(a);for(var e=a.A+a.j,m=Is(a);357149030!=m;)Ks(a),m=Is(a);
a=Ls(a);for(var l=1E6,p=1E9,f=0;!(a.j>=a.o.byteLength);)if(m=Is(a),2807729==m)l=Ms(a);else if(2807730==m)p=Ms(a);else if(17545==m){var f=a,m=Js(f,!0),u=0;4==m?u=f.o.getFloat32(f.j):8==m&&(u=f.o.getFloat64(f.j));f.j+=m;f=u}else Ks(a);b.B=p/l;a=new Hs(k);if(475249515==Is(a)){a=Ls(a);k=!0;for(l=!1;!(a.j>=a.o.byteLength);)if(m=Is(a),187==m){p=Ls(a);m=e;if(179!=Is(p))u=null;else if(u=Ms(p),183!=Is(p))u=null;else{for(var p=Ls(p),t=m;!(p.j>=p.o.byteLength);)241==Is(p)?t=Ms(p)+m:Ks(p);u=[t,u]}k&&c==u[0]&&
(l=!0);k=!1;l&&(u[0]+=1);p=b;m=u[0];u=u[1];Ys(p);p.j[p.va]=m;p.o[p.va]=u;p.va++}else Ks(a);c=d+e;a=f;Ys(b);b.A=!0;b.o[b.va]=a;b.j[b.va]=c}}this.B=null}};
h.wq=function(a){for(var b=this.Oi(a.info),c=[],d=a.A,e=0;e<b.length;e++){var f=Hr(b[e].range.start+b[e].A-a.info.range.start+a.range.start,b[e].o);c.push(new Rs(b[e],a.j,f,a.o,d));d=!1}return c};
h.Oi=function(a){for(var b=0;b<this.index.Lb()&&a.range.start>=this.index.tj(b+1);)b++;return $s(this,b,a.range.start,a.range.length).j};
h.jh=function(a){return Yr(this)?!0:(0,window.isNaN)(this.o)?!1:a.range.end+1<this.o};
h.Zh=function(a,b){var c=this.index.lf(a);b&&(c=Math.min(this.index.Lb(),c+1));return $s(this,c,this.index.tj(c),0)};
h.il=function(){var a;if(a=Yr(this)&&!(0,window.isNaN)(this.o))a=this.index,a=(a.A?a.j[a.va]:-1)!=this.o;return a};
h.Ih=function(){return!0};B(bt,Wj);var ht={commentary:1,alternate:2,dub:3,main:4};
bt.prototype.L=function(a){this.F=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.o=1E3*Kr(Ir(b,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.o;this.B=!0;this.G=(0,window.parseInt)(Ir(b,"yt:earliestMediaSequence"),10);this.A||(this.A=new os);qs(this.A,b,this.U);this.O("refresh");for(b=0;b<a.length;b++){var c=
gt(this,a[b]);if(!this.j[c.id]){var d=ft(Jr(a[b],"BaseURL").textContent,c),e=Jr(a[b],"Initialization"),f=Ir(e,"sourceURL"),e=Gr(Ir(e,"range"));this.j[c.id]=new hs(d,c,f,null===e?void 0:e)}for(var c=this.j[c.id],d=this.A,f=c,e=ab(f.info.mimeType,";",1)[0],f=d.A[f.info.id]||d.o[e]||d.j||null,d=wb(Jr(a[b],"SegmentList").getElementsByTagName("SegmentURL"),f.B),f=f.j,e=[],k=0;k<d.length;k++)e.push(jt(d[k],f[k]));c.update(e,this.isLive,this.G)}rs(this.A)}else b:for(this.duration=Kr(Ir(b,"mediaPresentationDuration")),
b=0;b<a.length;b++){e=a[b];c=gt(this,e);f=Jr(e,"BaseURL");d=ft(f.textContent,c);k=Jr(e,"SegmentBase");e=Gr(k.attributes.indexRange.value);k=Gr(k.getElementsByTagName("Initialization")[0].attributes.range.value);f=(0,window.parseInt)(f.getAttribute("yt:contentLength"),10);c=new Zs(d,c,k,e,f,window.NaN);if(!c)break b;this.j[c.info.id]=c}this.C=2;this.O("loaded");(0,window.isFinite)(this.o)&&(a=ct()-this.D,a=Math.max(0,this.o-a),Fi(A(this.K,this),a));return this};
bt.prototype.N=function(a){this.F=a.status;this.C=3;this.O("load_error");return Fd(a)};
bt.prototype.K=function(){if(1!=this.C&&!this.isDisposed()){var a;a:{a=this.j;for(var b in a){var c=a[b].index;if(c&&c.fg()){a=c.Lb()+1;break a}}a=0}a=Wg(this.J,{start_seq:a.toString()});it(this,a)}};var Qv,RG;var w$=qc,w$=w$.toLowerCase();if(Fa(w$,"android")){var x$=w$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(x$)Qv=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("("+Yb(y$).join("|")+")");Qv=z$?y$[z$[0]]:0}}else Qv=void 0;RG=0<=Qv;var Tv=OG||Kw;var vu,c6,At=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],Bt=['audio/mp4; codecs="mp4a.40.2"'];var Mt={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},Nt=rb(Mt.widevine,Mt.playready);B(Kt,H);Kt.prototype.D=function(a,b){if(!this.isDisposed()){a.A=b;var c=b.getConfiguration();F([c.audioCapabilities,c.videoCapabilities],function(b){F(b,function(b){a.B[b.contentType]=!0})});
this.B(a)}};
Kt.prototype.C=function(){this.isDisposed()||(0<this.o.length?Ot(this):this.B(null))};Rt.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.j+"_"+this.id+"_"+this.isDefault};St.prototype.toString=function(){return this.j+": "+Ut(this)+" - "+this.F};
St.prototype.equals=function(a){return a?this.toString()==a.toString():!1};Wt.prototype.toString=function(){return this.Ib.name};Xt.prototype.equals=function(a){return this.o==a.o&&this.j==a.j&&this.A==a.A};
var l1=Yt("auto","large",!1),au=Yt("auto","auto",!1);Yt("small","auto",!1);var iga=Yt("auto","hd720",!1);Xt.prototype.isLocked=function(){return this.A&&!!this.o&&this.o==this.j};
Xt.prototype.B=function(a){if(!a.video)return!1;a=tr[a.video.quality];return this.o<=a&&(!this.j||this.j>=a)};var Pw={SH:1,TH:2,UH:3};eu.prototype.getValue=function(){return this.o};
eu.prototype.clone=function(){return new eu(this.j,this.o)};h=fu.prototype;h.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)lb(a);else{a[0]=a.pop();for(var a=0,b=this.j,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2,f=k<d&&b[k].j<b[f].j?k:f;if(b[f].j>e.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
h.Ka=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
h.Na=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};
h.xe=function(a){return Lh(this.j,function(b){return b.getValue()==a})};
h.clone=function(){return new fu(this)};
h.Xa=function(){return this.j.length};
h.isEmpty=function(){return kb(this.j)};
h.clear=function(){lb(this.j)};B(hu,fu);B(iu,Wj);iu.prototype.D=function(a,b){this.j=this.j.onload=null;var c=this.o.j[a];c.A[b]=!0;nu(this);var d=c.Gb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.vk()-1)];this.O("l",c[0],c[1])};
iu.prototype.S=function(){this.j&&(this.j=this.j.onload=null);iu.M.S.call(this)};h=pu.prototype;h.getWidth=function(){return this.G};
h.getHeight=function(){return this.F};
h.vk=function(){return this.o};
h.isDefault=function(){return-1!=this.B.indexOf("default")};
h.yj=function(a){return le(0==this.C?Math.round(a*this.o/this.K):Math.round(1E3*a/this.C),0,this.vk()-1)};
h.Nm=function(){return this.o-1};
h.ys=function(){return this.o?0:-1};
h.zs=function(){};qu.prototype.o=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.B(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
qu.prototype.B=function(a,b,c,d){return new pu(a,b,c,d)};
qu.prototype.C=function(){};B(ru,pu);h=ru.prototype;h.vk=function(){return this.j?this.j.$n():-1};
h.yj=function(a){var b=this.rows*this.Gb*this.H,c=-1,d=-1,e=this.j;e&&(c=e.Lb(),d=e.lf(a));return d>c-b?-1:d};
h.Nm=function(){return this.j?this.j.Lb():-1};
h.ys=function(){return this.j?this.j.vg():-1};
h.zs=function(a){this.j=a?a.index:null};B(tu,qu);tu.prototype.o=function(a,b){return tu.M.o.call(this,"$N|"+a,b)};
tu.prototype.B=function(a,b,c){return new ru(a,b,c,this.D.isLive)};
tu.prototype.C=function(a){for(var b=0;b<this.j.length;b++)this.j[b].zs(a)};var wu=K().toString();var Eu=/^([0-9\.]+)\:([0-9\.]+)$/;var Ku=0;Mu.prototype.oc=function(){return{version:this.version,args:this.args}};
Pu.prototype.toString=function(){return this.topic};var jga=v("yt.pubsub2.instance_")||new yi;yi.prototype.subscribe=yi.prototype.subscribe;yi.prototype.unsubscribeByKey=yi.prototype.$b;yi.prototype.publish=yi.prototype.O;yi.prototype.clear=yi.prototype.clear;q("yt.pubsub2.instance_",jga,void 0);var Tu=v("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",Tu,void 0);var Vu=v("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Vu,void 0);var Uu=v("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Uu,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);B(Yu,Mu);var Ru=new Pu("timing-sent",Yu);var kv=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},iv=A(kv.clearResourceTimings||kv.webkitClearResourceTimings||kv.mozClearResourceTimings||kv.msClearResourceTimings||kv.oClearResourceTimings||x,kv),av=kv.mark?function(a){kv.mark(a)}:x;var Lw,y1;var A$=qc,B$=A$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!B$||2>B$.length)Lw=void 0;else{var C$=A$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Lw=C$&&6==C$.length?Number(C$[5].replace("_",".")):0}(y1=0<=Lw)&&0<=qc.search("Safari")&&qc.search("Version");var Jw={ju:1,jH:2};var Hw={LIKE:0,DISLIKE:1,INDIFFERENT:2};var rv=function(){if(uF)return qv(/Firefox\/([0-9.]+)/);if(xc||wc||Nf)return Cc;if(Kl)return qv(/Chrome\/([0-9.]+)/);if(Ht&&!(tc()||pc("iPad")||pc("iPod")))return qv(/Version\/([0-9.]+)/);if(OG||Kw){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(qc))return a[1]+"."+a[2]}else if(PG)return(a=qv(/Android\s+([0-9.]+)/))?a:qv(/Version\/([0-9.]+)/);return""}();tv.prototype.start=function(){return 0};
tv.prototype.end=function(){return window.Infinity};
tv.prototype.length=1;h=uv.prototype;h.addEventListener=function(){};
h.removeEventListener=function(){};
h.dispatchEvent=function(){};
h.abort=function(){};
h.remove=function(){};
h.appendBuffer=function(){};vv.prototype.dispose=function(){if(!this.A){if(this.j)try{window.URL.revokeObjectURL(this.B)}catch(a){}this.A=!0}};
vv.prototype.isDisposed=function(){return this.A};
vv.prototype.equals=function(a){return null!=a&&wv(a)==wv(this)};h=xv.prototype;h.append=function(a){this.o.webkitSourceAppend(this.A,a)};
h.abort=function(){this.o.webkitSourceAbort(this.A)};
h.$C=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new yv:this.o.webkitSourceBuffered(this.A)};
h.bD=function(){return this.B};
h.fD=function(a){this.B=a;this.o.webkitSourceTimestampOffset(this.A,a)};h=zv.prototype;h.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
h.removeEventListener=function(a,b,c){this.j.removeEventListener(a,b,c)};
h.kF=function(){return this.j.webkitMediaSourceURL};
h.addSourceBuffer=function(a){var b=(this.A++).toString();this.j.webkitSourceAddId(b,a);a=new xv(this.j,b);this.sourceBuffers.push(a);return a};
h.cD=function(){switch(this.j.webkitSourceState){case this.j.SOURCE_CLOSED:return"closed";case this.j.SOURCE_OPEN:return"open";case this.j.SOURCE_ENDED:return"ended"}return""};
h.endOfStream=function(a){var b=this.j.EOS_NO_ERROR;"network"==a?b=this.j.EOS_NETWORK_ERR:"decode"==a&&(b=this.j.EOS_DECODE_ERR);this.j.webkitSourceEndOfStream(b)};
h.dD=function(){lb(this.sourceBuffers)};
h.aD=function(){return this.o};
h.eD=function(a){this.o=a;this.j.webkitSourceSetDuration&&this.j.webkitSourceSetDuration(a)};B(Av,H);Av.prototype.xa=function(a){for(var b=0;b<this.J.length;b++)if(this.J[b]==a){this.J.splice(b,1);a.target.removeEventListener(a.name,a.Hh);break}};
Av.prototype.S=function(){Cv(this);Av.M.S.call(this)};B(Dv,Av);Dv.prototype.Mf=function(a){Hv(this)?this.A.duration=a:this.B=a};
Dv.prototype.K=function(){if(!this.isDisposed()&&Hv(this)&&!(0,window.isNaN)(this.B)){this.A.duration=this.B;this.B=window.NaN;try{this.j=this.A.addSourceBuffer(this.G),this.P?this.o=this.A.addSourceBuffer(this.L):this.o=new uv,this.C&&(this.C(this),this.C=null)}catch(a){this.D&&this.D()}}};
Dv.prototype.H=function(){this.dispose()};Nv.prototype.o=function(){return null};
var Rv={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};var hw="9h8(H*".split(""),jw="h98H(*".split(""),kw="oMavAV".split(""),lw="aoMvAV".split(""),iw=["f"],Vv={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Wv={"application/x-mpegURL":"maybe"},Uv={"application/x-mpegURL":"maybe"};B(uw,Nv);
uw.prototype.o=function(){if(!this.j||this.j.isDisposed()){var a;a=this.A;qw(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.o.length;d<e;++d){var f=a.o[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.j.length;d<e;++d){var k=a.j[d],f=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+f.bitrate)+',CODECS="'+(k.Mn+","+f.Mn)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}a=b.join("\n");this.j=new vv("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(a))}return this.j};B(xw,Nv);xw.prototype.o=function(){return new vv(this.j)};B(Bw,Wj);Bw.G=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Bw.j=1;Bw.C=-21;Bw.D=18E3;Bw.A="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(" ");Bw.F="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(" ");
Bw.o={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};Bw.B=["www.youtube.com","manifest.googlevideo.com"];h=Bw.prototype;h.adModule=!1;h.adaptiveFormats="";h.zm=null;h.allowEmbed=!0;h.backgroundable=!1;h.Ed=!1;h.bf="";h.yn=!1;h.Dh=!1;h.Ch=Bw.j;h.jj=null;h.watchAjaxToken=null;h.author="";h.hj=0;h.Jh=!1;h.On=!1;h.Kh="";h.Lh="";h.clientPlaybackNonce="";h.contentCheckOk=!1;h.Te=0;h.lk=!1;h.enableCardio=!1;
h.enableCardioBeforePlayback=!1;h.gf=0;h.Pd=!1;h.qo=!1;h.ij=0;h.eh=0;h.al=!1;h.Gg=!1;h.bl=!1;h.Vo=!1;h.fl=!1;h.isListed=!1;h.Bf=!1;h.Da=!1;h.isLiveDefaultBroadcast=!1;h.isLowLatencyLiveStream=!1;h.isMdxPlayback=!1;h.isPharma=!1;h.ll=!1;h.Zf=!1;h.$o=!1;h.ml=!1;h.nl=3;h.liveStartWalltime=0;h.lengthSeconds=0;h.Am=0;h.paygated=!1;h.profilePicture="";h.racyCheckOk=!1;h.Fd=1;h.Sg=au;h.Ae=!1;h.startSeconds=0;h.Ui=null;h.sentiment=2;h.spacecastModule=!1;h.Nj=null;h.Xg=au;h.Pe=null;h.title="";h.Uf="";
h.hlsFormats="";h.ej=null;h.jm="vvt";h.requiresPurchase=!1;h.clipStart=0;h.clipEnd=window.Infinity;h.by=function(a){(this.H=a)&&"fairplay"==this.H.j&&(this.H.fairPlayCert=this.fairPlayCert);Ww(this)};
h.Iz=function(a){this.isDisposed()||(this.j=a,J(this,this.j),this.Da?this.j.subscribe("refresh",this.Ap,this):this.j.isLive=!1,Zu("mrc"),dt(this.j)&&(this.Y=!0),Ww(this))};
h.Hz=function(a){this.isDisposed()||(this.Pd=!1,this.O("dataloaderror",new ov("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
h.Ap=function(){this.j.isLive||this.j.Ba("refresh",this.Ap,this);var a=wb(this.j.A.B,this.La);0<a.length&&(this.O("cuepointupdated",a),this.La+=a.length)};
h.Oc=function(a){return y(this.keywords[a])?this.keywords[a]:null};
h.Gq=function(){var a={format:"RAW",method:"GET",context:this,kb:this.Zz,onError:this.Fp,withCredentials:this.ie};this.ke&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});Gj(this.Zc,a);Zu("vir")};
h.kc=function(a,b){if(30==this.U){var c=this.bb["default.jpg"];return c?c:this.videoId?Wg("//docs.google.com/vt",{id:this.videoId,authuser:this.zb,authkey:this.ub}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.bb[b])||a.B||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:cH(a,this.videoId,b)};
h.Zz=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.Pd=!1;var c=tj(b);"fail"==c.status?this.O("onStatusFail",c):(Zu("virc"),F(Bw.A,function(a){a in this.B&&(c[a]=this.B[a])},this),Cw(this,c),Ww(this))}else this.Fp(a)}};
h.Fp=function(a){if(!this.isDisposed()){var b="manifest.net",c=!0,d={backend:"gvi",rc:a.status};this.vb&&(this.Hc?b="manifest.net.retryexhausted":(this.Hc=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.je.start()));this.O("dataloaderror",new ov(b,c,d))}};
h.Ue=function(){return null};
h.rb=function(){return this};
h.zk=function(a){return a.getVideoUrl(this.videoId)};B(lx,Wj);h=lx.prototype;h.hasNext=function(a){return this.J||!!a||this.j+1<this.A};
h.rb=function(a){a=void 0!=a?a:this.j;a=this.o&&a in this.o?this.o[this.B[a]]:null;var b=null;a&&(b=new Bw(a),b.startSeconds=this.startSeconds||b.clipStart||0,this.C&&(b.playlistId=this.C.toString()));return b};
h.setShuffle=function(a){this.K=a;a=this.B&&null!=this.B[this.j]?this.B[this.j]:this.j;this.B=[];for(var b=0;b<this.o.length;b++)this.B.push(b);this.j=a;this.H++;if(this.K){a=this.B[this.j];for(b=1;b<this.B.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.B[b];this.B[b]=this.B[c];this.B[c]=d}for(b=0;b<this.B.length;b++)this.B[b]==a&&(this.j=b);this.H++}this.O("shuffle")};
h.kc=function(a,b){b=b||"hqdefault.jpg";var c=this.N[b];if(c||a.B||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.L.length)return cH(a,this.L[0],b)};
h.Ue=function(){return this.C?this.C.toString():null};
h.zk=function(a){return a.getVideoUrl(this.rb().videoId,this.Ue())};
h.S=function(){this.F=null;Nb(this.o);lx.M.S.call(this)};B(Bx,S);h=Bx.prototype;h.xp=function(){this.ob(CH(this.B))};
h.Wm=function(){var a=this.B.V().experiments.B,b=Math.min(ct()-this.D,a),a=Math.min(b/a,1);this.F.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.o&&this.o.start()};
h.select=function(a){Ex(this);var b=this.C.rb().videoId;S9(this.B.app,b,a?this.C.Ic:this.C.da,this.C.Ue())};
h.rG=function(a){!em(a)&&yx(a)&&(this.select(),dm(a))};
h.Vs=function(a){dm(a);NH(this.B,"autonavcancel");U9(this.B.app,!0)};
h.S=function(){Ex(this);Bx.M.S.call(this)};B(Fx,S);Fx.prototype.J=function(a,b){Ii(this.o);this.context&&(this.o=Hq(A(this.J,this,a,b),b),a.call(this,new Date-this.H))};
Fx.prototype.S=function(){Ii(this.o);this.context=null;Fx.M.S.call(this)};B(Qx,S);Qx.prototype.Lf=function(){var a=this.o.rb().videoId;S9(this.B.app,a,this.o.da,this.o.Ue())};
Qx.prototype.D=function(a){Lx(a,this.B,this.C)&&this.Lf()};
Qx.prototype.F=function(a){switch(a.keyCode){case 13:case 32:em(a)||(this.Lf(),dm(a))}};B(Sx,Kq);Sx.j=2;h=Sx.prototype;h.create=function(){Sx.M.create.call(this);var a=this.o.getVideoData();a&&(this.B=a.G);this.ud();this.H.subscribe("onResize",this.ud,this);this.H.subscribe("videodatachange",this.Sr,this);this.H.subscribe("autonavchange",this.Rr,this);this.H.subscribe("autonavcancel",this.kw,this)};
h.destroy=function(){zi(this.H,"onResize",this.ud,this);zi(this.H,"videodatachange",this.Sr,this);Nb(this.C);this.B=[];this.C=[];Sx.M.destroy.call(this);ae(this.element,"ytp-show-tiles");this.L.stop()};
h.Eh=function(){return 1!=this.o.getVideoData().Fd};
h.show=function(){Sx.M.show.call(this);this.o.V().isMobile?Xd(this.L):this.L.start();(this.K||this.F&&this.F!=this.o.getVideoData().clientPlaybackNonce)&&U9(this.o.app,!1);var a=Ux(this.o.V(),this.o.getVideoData(),this.o.bc()),b=!this.F&&this.Eh()&&a;a&&this.o.V().experiments.ma("ui_logging")&&this.X.log({cancelButtonShow:b?"1":"0",state:this.Eh()?"enabled":"disabled"});b?2==this.o.getVideoData().Fd?Cx(this.D):3==this.o.getVideoData().Fd&&Dx(this.D):U9(this.o.app,!0);Wx(this)};
h.ea=function(){Sx.M.ea.call(this);Dx(this.D);Wx(this)};
h.ud=function(a){if((!a||$l(a)==this.element)&&this.B&&this.B.length){a=this.o.V().experiments.ma("video_wall_pagination");var b=this.o.V().experiments.ma("video_wall_redesign");a&&L(this.element,"ytp-endscreen-paginate");var c=jg(this.element),d=96,e=54,f=c.width/c.height,k=d/e;Nx(this.o.V())&&!this.o.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),t=this.B.length,w=Math.pow(Sx.j,2),z=t*w,E=Vx(this,0,u,p),M=Vx(this,1,u,p),z=z+(Math.pow(E,2)-w),z=z+(Math.pow(M,
2)-w);0<z&&(l<p||m<u);){var G=l/Sx.j,I=m/Sx.j,Ta=l<=p-Sx.j&&z>=I*w,tb=m<=u-Sx.j&&z>=G*w;if(G/I*k>f&&tb)z-=G*w,m+=Sx.j;else if(Ta)z-=I*w,l+=Sx.j;else if(tb)z-=G*w,m+=Sx.j;else break}k=!1;p=Sx.j+E;z>=3*w&&6>=t*w-z&&(m>=p||l>=p)&&M<=Sx.j&&(k=!0);d*=l;e*=m;w=1;w=d/e<f?c.height/e:c.width/d;w=Math.min(w,b?2:Sx.A);d*=w;e*=w;f=b?1:Sx.o;d*=le(c.width/d||1,1,f);e*=le(c.height/e||1,1,f);d=Math.floor(Math.min(c.width,d));e=Math.floor(Math.min(c.height,e));c=this.P.element;gg(c,d,e);Of(c,{marginLeft:d/-2+"px",
marginTop:e/-2+"px"});f=this.D;w=zx(this.B[0]);f.C=w;Ax(f,w,f.B.V(),"hqdefault.jpg");N(this.element,"ytp-endscreen-takeover",Tx(this));Wx(this);b=b?16:1;f=d+b;d=e+b;e=0;w=!1;for(z=0;z<l;z++)for(p=0;p<m;p++)if(u=M>Sx.j&&1<=e&&!w?e+1:e,G=0,k&&z>=l-Sx.j&&p>=m-Sx.j?G=1:0==p%Sx.j&&0==z%Sx.j&&(p<E&&z<E?0==p&&0==z&&(G=E):M>Sx.j&&p>=m-M&&z>=l-M?p==m-M&&z==l-M&&(w=!0,u=1,G=M):G=Sx.j),u=(u+this.G)%t,u=0>u*t?u+t:u,0!=G){I=this.C[e];I||(I=new Qx(this.o),this.C[e]=I,c.appendChild(I.element));var Ta=Math.floor(d*
p/m),tb=Math.floor(f*z/l),Qb=Math.floor(d*(p+G)/m)-Ta-b,Xb=Math.floor(f*(z+G)/l)-tb-b;Vf(I.element,tb,Ta);gg(I.element,Xb,Qb);Of(I.element,"transitionDelay",(p+z)/20+"s");N(I.element,"videowall-still-mini",1==G);N(I.element,"videowall-still-large",2<G);G=I;u=zx(this.B[u]);G.o=u;Ax(G,u,G.B.V(),Zd(G.element,"videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");e++}a&&N(this.element,"ytp-endscreen-paginate",e<t);for(a=this.C.length-1;a>=e;a--)I=this.C[a],sf(I.element),Mb(I);this.C.length=e}};
Sx.A=1.42;Sx.o=1.21;h=Sx.prototype;h.Sr=function(){var a=this.o.getVideoData().G;this.B!=a&&(this.G=0,this.B=a,this.ud())};
h.nz=function(){this.G+=this.C.length;this.ud()};
h.oz=function(){this.G-=this.C.length;this.ud()};
h.Rr=function(a){1==a?(this.K=!1,this.F=this.o.getVideoData().clientPlaybackNonce,Ex(this.D),this.A&&this.ud()):(this.K=!0,this.A&&Tx(this)&&(2==a?Cx(this.D):3==a&&Dx(this.D)))};
h.kw=function(a){a?this.Rr(1):(this.F=null,this.K=!1,this.ud())};B(Yx,pq);h=Yx.prototype;h.Ta=function(a){return $x(a)};
h.create=function(){Yx.M.create.call(this);dy(this);this.j.getVideoData().subscribe("dataupdated",this.lq,this)};
h.destroy=function(){this.j.getVideoData().Ba("dataupdated",this.lq,this);qq(this);this.o.J&&this.o.destroy();Yx.M.destroy.call(this)};
h.load=function(){Yx.M.load.call(this);this.o.show();this.j.V().Y&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};
h.unload=function(){Yx.M.unload.call(this);this.o.ea()};
h.Qb=function(a){Yx.M.Qb.call(this,a);by(this)&&(this.o.J||this.o.create(),"load"==a.getId()&&this.load())};
h.Xb=function(a){"load"==a.getId()&&this.loaded&&this.unload();Yx.M.Xb.call(this,a)};
h.lq=function(){qq(this);dy(this)};var Nea={KG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",LG:"ERROR_AUTHENTICATION_EXPIRED",MG:"ERROR_AUTHENTICATION_MALFORMED",NG:"ERROR_AUTHENTICATION_MISSING",RG:"ERROR_BAD_REQUEST",WG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",dH:"ERROR_CGI_PARAMS_MALFORMED",eH:"ERROR_CGI_PARAMS_MISSING",lH:"YTP_DEVICE_FALLBACK",qH:"YTP_ERROR_LICENSE",vH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",wH:"YTP_ERROR_GEO_FAILURE",GH:"YTP_ERROR_GENERIC_WITHOUT_LINK",HH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",NH:"YTP_ERROR_INVALID_DRM_MESSAGE",
QH:"LEARN_MORE",fI:"YTP_ERROR_NOT_SIGNED_IN",uI:"YTP_ERROR_PURCHASE_NOT_FOUND",vI:"YTP_ERROR_PURCHASE_REFUNDED",yI:"YTP_ERROR_RENTAL_EXPIRED",ZG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",$G:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",bH:"YTP_ERROR_CAST_TOKEN_FAILED",aH:"YTP_ERROR_CAST_TOKEN_EXPIRED",cH:"YTP_ERROR_CAST_TOKEN_MALFORMED",GI:"YTP_ERROR_SERVER_ERROR",TI:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",VI:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",WI:"YTP_ERROR_STREAMING_NOT_ALLOWED",XI:"YTP_ERROR_STREAMING_UNAVAILABLE",
CI:"YTP_ERROR_RETRYABLE_ERROR",fJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",eJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",nJ:"YTP_ERROR_UNSUPPORTED_DEVICE",oJ:"YTP_ERROR_UNUSUAL_ACTIVITY",wJ:"YTP_ERROR_VIDEO_FORBIDDEN",xJ:"YTP_ERROR_VIDEO_NOT_FOUND"},gy={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 MG={CG:"adunit",kH:"detailpage",oH:"embedded",PH:"leanback",sI:"profilepage"};var oy=y1&&4>Lw?.1:0,Efa=new ny;h=ny.prototype;h.Ye=null;h.Om=!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.yv=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};
h.Av=function(){this.Om&&!this.muted&&(this.muted=!0)};qy.prototype.Ua=function(){return V(this,8)&&!V(this,64)&&!V(this,2)};var mz=[1,2,3,4,5],kz={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,Wj);Ey.prototype.B=function(){this.o.isActive()&&Xd(this.o)};
Ey.prototype.C=function(){var a={headers:{"Content-Type":"application/json"},Vc:{alt:"json",key:this.F},postBody:this.G,format:"JSON",timeout:1E4,kb:A(this.J,this),onError:A(this.A,this),Ud:A(this.A,this)};this.D&&(a.headers["X-Goog-Visitor-Id"]=this.D);Fj(this.H,a)};
Ey.prototype.J=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.O("payload",a),this.j=7500+Math.floor(15E3*Math.random()),this.o.start(this.j)):this.A())};
Ey.prototype.A=function(){this.isDisposed()||(this.O("error"),192E4>this.j&&(this.j*=2),this.o.start(this.j))};B(Fy,S);Fy.prototype.B=function(a){if(!yx(a)||this.o.V().experiments.ma("disable_fresca_video_navigation"))Lx(a,this.o,!0);else{var b=a.currentTarget.getAttribute("href");S9(this.o.app,b.substring(b.length-11),void 0,void 0);dm(a)}};B(Gy,S);h=Gy.prototype;h.ty=function(a){if(!yx(a)||this.B.V().experiments.ma("disable_fresca_video_navigation"))Lx(a,this.B,!0);else{var b=a.currentTarget.getAttribute("href");S9(this.B.app,b.substring(b.length-11),void 0,void 0);dm(a)}};
h.lz=function(){this.C=!0;this.ea()};
h.show=function(){var a=!this.A;Gy.M.show.call(this);a&&rz(this.B)};
h.ea=function(){var a=this.A;Gy.M.ea.call(this);a&&rz(this.B)};
h.S=function(){Nb(this.o);Gy.M.S.call(this)};B(Ly,S);
Ly.prototype.G=function(a){var b;b=this.o;b.startTime?(b=b.state,b=6==b||8==b||7==b?!1:!0):b=!1;N(this.element,"ytp-fresca-inline-countdown",b&&!0);N(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.o.startTime-Math.floor(K()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.F)){this.F=a;My(this,this.o,!0);return}Ny(this.o)||(a=this.o.startTime,b=Math.floor(K()/1E3),b>a?a="":(a-=b,a=86400>a?xx(a):259200>a?R("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):
R("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})),Eq(this,"countdown",a));Ii(this.D);this.D=Fi(A(this.G,this),1E3)}};
Ly.prototype.S=function(){Ii(this.D);Ly.M.S.call(this)};var Zy;
Zy={Ot:["BC","AD"],Nt:["Before Christ","Anno Domini"],wu:"JFMAMJJASOND".split(""),Ou:"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(" "),j:"SMTWTFS".split(""),Pu:"SMTWTFS".split(""),Iu:["Q1","Q2","Q3","Q4"],Cu:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Xm:["AM","PM"],Ej:["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"],Jt:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Gj:6,Xu:[5,6],Hj:5};Qy.prototype.equals=function(a){return a.D==this.D&&a.C==this.C&&a.j==this.j&&a.o==this.o&&a.A==this.A&&a.B==this.B};
Qy.prototype.clone=function(){return new Qy(this.D,this.C,this.j,this.o,this.A,this.B)};
h=Ry.prototype;h.Un=Zy.Gj;h.Vn=Zy.Hj;h.clone=function(){var a=new Ry(this.date);a.Un=this.Un;a.Vn=this.Vn;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(),Na(this.getMonth()+1,2),Na(this.getDate(),2)].join("")+""};
h.valueOf=function(){return this.date.valueOf()};var cz=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];
Yy.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.A-Xy(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.o.length;++f){var k=this.o[f].text;1==this.o[f].type?c.push(fz(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var bz=!1;gz.prototype.isLive=function(){return"LIVE"==this.o};
gz.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.o};
gz.prototype.getVideoUrl=function(){return this.D};iz.prototype.j=function(){return this.B};
iz.prototype.getMessage=function(){return this.messageText.length?this.messageText:lz(this)};
iz.prototype.equals=function(a){return a&&this.broadcastId==a.broadcastId&&this.state==a.state&&this.j()==a.j()&&this.imageUrl==a.imageUrl&&Fb(this.messageText,a.messageText)&&(this.startTime==a.startTime||(0,window.isNaN)(this.startTime)&&(0,window.isNaN)(a.startTime))};B(nz,pq);h=nz.prototype;h.Ta=function(){return gx(this.j.getVideoData(),"fresca_module")};
h.create=function(a){nz.M.create.call(this);var b=this.j.V();Sv(xt(),"application/x-mpegURL")||Xv()?(this.H=this.A=!1,this.J&&(this.C=new Ly(this.j),Xq(this.j,this.C.element,4)),this.B=a||null,this.B||(a=this.j.getVideoData(),this.B=new Ey(a.videoId,a.visitorData||Ei("VISITOR_DATA",""),b.ke)),this.B.subscribe("payload",this.YA,this),this.B.subscribe("error",this.Up,this),this.subscribe("onStateChange",this.Pr,this)):OJ(this.j.app.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
h.destroy=function(){this.Ba("onStateChange",this.Pr,this);Nb(this.B,this.C);nz.M.destroy.call(this)};
h.Pr=function(a){this.o&&(this.H=V(a.state,2),Cy(pz(this.j))&&this.B.B(),qz(this,this.o))};
h.Up=function(){if(!this.A){var a=this.j.getVideoData();a.hlsvp||a.F?this.j.V().experiments.ma("disable_fresca_error_fallback")||(this.A=!0,tq(this)):(tz(this,new iz(this.j.getVideoData().isLiveDefaultBroadcast)),qz(this,this.o))}};
h.YA=function(a){if(!a||a.error)this.Up();else{var b=this.o?this.o.broadcastId:"",c=this.j.getVideoData();tz(this,new iz(c.isLiveDefaultBroadcast,a));this.D=this.D||c.isLiveDefaultBroadcast&&""!=b&&b!=this.o.broadcastId;6!=this.o.state||(c.hlsvp||c.F)&&!this.D?qz(this,this.o):(this.D=!1,this.j.Fm(c.videoId))}};var wz=xc&&uz();Az.prototype.R=function(a,b,c,d){c=A(c,d||this.o);a=Sl(a,b,c);this.j.push(a);return a};
Az.prototype.xa=function(a){Wl(a);ob(this.j,a)};
Az.prototype.removeAll=function(){Wl(this.j);this.j.length=0};B(Dz,H);h=Dz.prototype;h.start=function(){this.stop();this.B=!1;var a=Ez(this),b=Fz(this);a&&!b&&this.o.mozRequestAnimationFrame?(this.j=Pc(this.o,"MozBeforePaint",this.A),this.o.mozRequestAnimationFrame(null),this.B=!0):this.j=a&&b?a.call(this.o,this.A):this.o.setTimeout(jd(this.A),20)};
h.stop=function(){if(this.isActive()){var a=Ez(this),b=Fz(this);a&&!b&&this.o.mozRequestAnimationFrame?ad(this.j):a&&b?b.call(this.o,this.j):this.o.clearTimeout(this.j)}this.j=null};
h.isActive=function(){return null!=this.j};
h.hw=function(){this.B&&this.j&&ad(this.j);this.j=null;this.D.call(this.C,K())};
h.S=function(){this.stop();Dz.M.S.call(this)};var Hz={},Iz=null;B(Mz,fd);h=Mz.prototype;h.Ua=function(){return 1==this.j};
h.Bi=function(){this.hc("begin")};
h.Kg=function(){this.hc("end")};
h.Rb=function(){this.hc("finish")};
h.hc=function(a){this.Z(a)};B(Nz,Mz);h=Nz.prototype;h.play=function(a){if(a||0==this.j)this.progress=0,this.o=this.A;else if(this.Ua())return!1;Gz(this);this.startTime=a=K();-1==this.j&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.C=this.startTime;this.progress||this.Bi();this.hc("play");-1==this.j&&this.hc("resume");this.j=1;var b=ia(this);b in Hz||(Hz[b]=this);Jz();Lz(this,a);return!0};
h.stop=function(a){Gz(this);this.j=0;a&&(this.progress=1);Oz(this,this.progress);this.hc("stop");this.Kg()};
h.pause=function(){this.Ua()&&(Gz(this),this.j=-1,this.hc("pause"))};
h.S=function(){0==this.j||this.stop(!1);this.hc("destroy");Nz.M.S.call(this)};
h.destroy=function(){this.dispose()};
h.wl=function(){this.hc("animate")};
h.hc=function(a){this.Z(new Pz(a,this))};
B(Pz,lc);B(Xz,H);h=Xz.prototype;h.fb=function(a){this.qc();var b=this.j;if(1<a.length&&a.length>b.j.length)b.j=b.j.concat(a),b.j.sort(b.o);else for(var c=0;c<a.length;c++){var d=a[c];!b.j.length||0<b.o(d,b.j[b.j.length-1])?b.j.push(d):Hb(b.j,d,b.o)}this.qc()};
h.bh=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.o.indexOf(c);0<=d&&this.o.splice(d,1);var e=this.j,d=e.j,c=yb(d,c,e.o);0<=c&&pb(d,c)}}this.qc()};
h.Rf=function(){this.B=cA(this);this.G=!0;this.qc()};
h.reset=function(){this.G=this.J=!1;this.C.stop();this.j.j=[];this.o=[];this.qc();this.F=null};
h.qc=function(){this.H=!0;if(!this.D){for(var a=3;this.H&&a;){this.H=!1;this.D=!0;if(this.G&&!this.J){this.C.stop();var b=this.L();this.A&&V(b,32)&&this.K.start();for(var c=cA(this),d=V(b,2),e=[],f=[],k=0;k<this.o.length;k++){var l=this.o[k];l.active&&(d&&this.A?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat(Zz(this,f));f=void 0;if(this.A)if(d)f=Tz(this.j,0x7ffffffffffff),f=f.concat(Uz(this.j,0x7ffffffffffff));else{if(this.B<c&&b.Ua()){d=this.j;f=c;k=[];for(l=Vz(d,this.B);l<d.j.length;++l){var m=
d.j[l];(m.end<=f||m.contains(f))&&k.push(m);if(m.start>f)break}d=k}else d=Tz(this.j,c);f=d}else f=Tz(this.j,c),!V(b,48)&&c>this.B&&(f=f.concat(Uz(this.j,this.B,c)));e=e.concat(Yz(this,f));this.B=c;!this.J&&this.F&&(this.F=null,!this.A&&V(b,2)&&(this.B=0x8000000000000));!this.A&&this.T()&&bA(this);$z(this,e)}this.D=!1;a--}this.A&&this.L().Ua()&&bA(this)}};
h.S=function(){this.F=this.j=this.o=null;Xz.M.S.call(this)};var sA={iH:"current",eI:"new"};BA.prototype.update=function(){var a=this.o.A()||0,b=VA(this.o);if(a!=this.j||GA(this,a,b)){if(a<this.j||a-this.j>b-this.C+.5||GA(this,a,b))DA(this),this.A=a;this.C=b;this.j=a}};HA.prototype.A=function(){return{ps:this.o.j,el:this.o.ya}};
HA.prototype.send=function(){if(!this.B){var a;a=this.A();a=Wg(this.o.baseYtUrl+"set_awesome",a);this.o.experiments.j&&this.j.visitorData&&yj(a)?Gj(a,{headers:{"X-Goog-Visitor-Id":this.j.visitorData}}):dq(a);this.B=!0}};B(IA,HA);
IA.prototype.A=function(){var a=IA.M.A.call(this);pa(a,this.o.o);pa(a,{html5:"1",video_id:this.j.videoId,eurl:this.o.N,framer:this.o.je,list:this.j.ab||this.j.playlistId,w:le(this.j.hj/this.j.lengthSeconds,0,1),l:this.j.lengthSeconds,plid:this.j.playbackId,ei:this.j.eventId,access_token:this.j.oauthToken,tpmt:EA(this.C),cpn:this.j.clientPlaybackNonce,feature:this.j.$e});this.o.C&&(a.adformat=this.o.C);var b;(b=(b=this.j.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.j.Zf&&(a.splay="1");this.j.subscribed&&(a.subscribed=this.j.subscribed);pa(a,IA.M.A.call(this));pa(a,this.o.o);return a};B(LA,H);var eB={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};h=LA.prototype;
h.Li=function(a){a=0<=a?a:VA(this.j);var b=this.j.F();if(!(0,window.isNaN)(this.T)&&!(0,window.isNaN)(b.A)){var c=b.A-this.T;0<c&&MA(this,a,"bwm",[c,(b.D-this.$).toFixed(3)])}this.T=b.A;this.$=b.D;(0,window.isNaN)(b.j)||MA(this,a,"bwe",[b.j.toFixed(0)]);(0,window.isNaN)(b.o)||(c=b.o,b.B<c&&(c=b.B),this.N!=c&&(MA(this,a,"bh",[c.toFixed(3)]),this.N=c),this.j.o.experiments.o&&3>c&&("PL"==this.o||"B"==this.o)&&this.F.start());this.B&&MA(this,a,"bat",[this.B.level,this.B.charging?"1":"0"]);c=vH(this.j.o);
this.Y!=c&&(MA(this,a,"vis",[c]),this.Y=c);MA(this,a,"cmt",[this.j.A()]);0<b.C&&MA(this,a,"e2el",[b.C,b.G.toFixed(3),b.F.toFixed(3),b.J.toFixed(3),b.H.toFixed(3)]);null!==this.j.j.Nj&&(this.A.acc=[this.j.j.Nj.join(":")])};
h.Pg=function(a){if(!this.isDisposed()&&!cc(this.A)){a=0<=a?a:VA(this.j);this.F.isActive()||this.Li(a);var b=dH(this.j.o),c=b.droppedVideoFrames,d=c-this.U;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&MA(this,a,"df",[d]);this.U=c;a=NA(this);ic(a,this.j.o.o);a=Wg(this.j.o.xd,a);for(var e in this.A)a+="&"+e+"="+this.A[e].join(",");dq(a);this.A={};this.D.start()}};
h.Rf=function(){MA(this,VA(this.j),"vps",["N"]);this.j.j.Za&&OA(this,"preload");this.j.j.ll&&OA(this,"reload");this.j.j.Bf&&OA(this,"monitor");this.j.j.Da&&OA(this,"live");this.j.o.experiments.X&&Fi(A(this.oC,this),5E3);this.P=Hi(A(this.Pg,this),1E4);this.D.start()};
h.oC=function(){var a=nj("yt-player-benchmark")||0;if(!a){for(var b=a=0;20>b;b++){for(var c=ct(),d=0,e=0;1>ct()-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));lj("yt-player-benchmark",a,172800)}OA(this,"jsbench-"+a)};
h.Mq=function(){this.j.j.H&&OA(this,"drm-"+this.j.j.H.j)};
h.onError=function(a,b){var c=this.j.A(),c=[a,c.toFixed(3)];b&&c.push(b);var d=VA(this.j);MA(this,d,"error",c);this.Li(d)};
h.aA=function(){var a=VA(this.j);"PL"==this.o&&(MA(this,a,"vps",[this.o]),this.Pg(a))};
h.S=function(){LA.M.S.call(this);Ji(this.P)};PA.prototype.send=function(a){if(!this.N){var b=RA(this),b=Wg(this.Ya,b);if(this.L)this.H&&(a={method:"POST",Bb:{atr:this.H}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),Gj(b,a));else{var c=this.D&&zj(),d=this.X&&!!this.visitorData;if(c||d){var e={};c&&(e.Authorization="Bearer "+this.D);d&&(e["X-Goog-Visitor-Id"]=this.visitorData);Gj(b,{headers:e,withCredentials:!0,Rb:a})}else dq(b,a)}this.N=!0}};
PA.prototype.j=function(a){return(1*a.toFixed(3)).toString()};B(TA,H);h=TA.prototype;h.Kz=function(a,b){if(!this.isDisposed()){this.F=window.NaN;this.A.update();var c=FA(this.A),d=YA(this,c);b&&(d.B=a);var e=400<this.J;!(1<c.length)&&c[0].isEmpty()||e||(d.o=UA(this,!0,a));d.send();this.J++}};
h.Rf=function(){this.o.Rf()};
h.onError=function(a,b){this.o.onError(a,b)};
h.Qi=function(a){var b=this.j.o,c=this.j.j,c={ns:b.$,el:b.ya,eurl:b.N,fmt:c.o?c.o.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.j,noflv:1,st:this.j.A(),video_id:c.videoId,metric:a};b.autoplay&&(c.autoplay="1");"heartbeat"==a&&(c.tpmt=EA(this.A));pa(c,b.o);aB(this,Wg("//www.youtube.com/live_204",c))};
h.S=function(){TA.M.S.call(this);Ii(this.F);this.F=window.NaN;var a=this.A;Ji(a.D);a.D=window.NaN};gB.prototype.ib=function(a,b){OH(this.aa,"iv",a,b)};h=pB.prototype;h.Si=function(){this.context.C.subscribe("onResize",this.Fh,this)};
h.ka=function(){return this.Y};
h.Of=function(a,b,c,d,e,f){this.context.j.R(a,"click",oa(this.wi,b,c,d,e||[],f||0),this);this.context.j.R(a,"touchstart",oa(function(){this.km=!1}),this);
this.context.j.R(a,"touchmove",oa(function(){this.km=!0}),this)};
h.wi=function(a,b,c,d,e,f){if(this.km)return!1;f&&(f.stopPropagation(),f.preventDefault());(b=yA(a,b,this.context.B.videoId))&&sB(this,b,AA(b,a.target),c,d,e,a.Gi);return!1};
h.show=function(){this.J=K()};
h.ea=function(){};
h.destroy=function(){sf(this.ka())};
h.Fh=function(){};B(tB,S);h=tB.prototype;h.oF=function(a){this.o&&Af(this.o.element,$l(a))||(this.B&&this.B.dk?this.Gp(this.B):(this.zj(),Ui("iv-teaser-clicked",!!this.wa),this.aa.hh(!0)))};
h.mF=function(){Ui("iv-teaser-hovered")};
h.nF=function(){ae(this.element,"ytp-cards-auto-open-hover-card")};
h.uB=function(a){this.wa||!a||PH(this.aa)||this.D&&this.D.isActive()||(this.B=a.fi,wB(this,a),Ui("iv-teaser-shown"))};
h.Gp=function(a){a.Gi&&this.aa.pauseVideo();Ix(a.rq,void 0);Jx(a.rq,a.target);Ui("iv-hover-card-clicked")};
h.jx=function(){L(this.element,"ytp-hover-card-active")};
h.kx=function(){ae(this.element,"ytp-hover-card-active")};
h.zj=function(){!this.wa||this.F&&this.F.isActive()||(this.o&&(Dq(this.o),this.o=null),this.B=null,this.G.ea(),ae(this.aa.Aa(),"ytp-cards-teaser-shown"),ae(this.aa.Aa(),"ytp-cards-button-teaser-merge"),ae(this.element,"ytp-cards-combined-teaser"),this.F=new Wd(function(){for(var a=0;a<this.C.length;a++)this.xa(this.C[a]);this.C=[];this.wa&&(this.wa.dispose(),this.wa=null);xB(this.H,!0)},330,this),this.F.start())};
h.S=function(){var a=this.aa.Aa();a&&ae(a,"ytp-cards-teaser-shown");Nb(this.D,this.F,this.wa,this.o,this.B);tB.M.S.call(this)};B(zB,yB);B(AB,yB);B(BB,AB);CB.prototype.C=function(a,b){var c=Jf(b.target,"iv-card-poll");if(c){var d=Hf(b.target,"label");L(d,"iv-card-poll-choice-checked");a:{if(d=b.target.form.elements[a.A]){if(d.type){d=pj(d);break a}for(var e=0;e<d.length;e++){var f=pj(d[e]);if(f){d=f;break a}}}d=null}d=(0,window.parseInt)(d,10);a.choices[d].count++;EB(a,c);Fj(this.j.B.bf,{Vc:{action_poll_vote:1},Bb:{poll_id:a.id,index:d}});c={};c["link-id"]=d;lB(this.j.logger,a.Pa,void 0,c,a.j.click,5)}};
CB.prototype.B=function(a){var b=v("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=oa(b,a.G,a.B));OB(this,a,b)};
CB.prototype.D=function(a){var b=v("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=oa(b,a.G,a.B,a.H));OB(this,a,b)};B(QB,yB);B(RB,yB);B(SB,AB);B(UB,AB);B(VB,yB);B(WB,yB);B(XB,pB);h=XB.prototype;h.isAvailable=function(){var a;if(a=!!this.o.length)(a=this.aa.Aa())?(a=jg(a),a=177<a.width&&177<a.height):a=!1;return a};
h.qv=function(){YB(this,"product_listing_ads_cards_drawer_auto_open")&&!kC(this)||cC(this)};
h.ov=function(){eC(this)};
h.Fh=function(){var a=this.isAvailable();Oq(this.ka(),a);N(this.context.o.Aa(),"ytp-iv-drawer-enabled",a);a&&(this.P||(nB(this.context.logger,11),this.P=!0),F(this.o,function(a){a.ep||(a.ep=!0,oB(this.context.logger,11,a.Ra.Pa))},this));
dC(this.aa)};
h.destroy=function(){QH(this.aa,!1);this.aa.Aa().removeChild(this.D);Ti(this.F);Wl(this.N);this.H&&this.H.dispose();this.B&&this.B.dispose();XB.M.destroy.call(this)};
var aF={adspaycreator:AB,associated:AB,associated:AB,collaborator:zB,donation:BB,episode:WB,fundraising:AB,location:AB,merch:AB,movie:WB,playlist:QB,poll:RB,product:AB,productListing:SB,simple:AB,tip:UB,video:VB};h=XB.prototype;h.HE=function(a){this.Wj.start();a.preventDefault();if(a=gm(a||window.event,!1))this.xc.scrollTop+=a};
h.Ml=function(a,b){if(!Zd(this.aa.Aa(),"ytp-cards-teaser-shown")){this.j!=a&&(this.j=a);if(Pq(this.ka())){var c;(c=b)||(2==this.context.o.getPresentingPlayerType()?c=1==((0,window.isNaN)(void 0)?this.context.o.getAdState():void 0):(c=(0,window.isNaN)(void 0)?this.context.o.getPlayerState():void 0,c=1==c||0==c&&0===this.context.o.getCurrentTime()));if(c&&a.Ra.teaserDurationMs){c=null;if("video"==a.Ra.type&&YB(this,"hover_card_for_video_card_teaser")){var d=a.Ra,e=d.url?yA(d.url,a.Ra.id,this.context.B.videoId,
this.context.A):null,f=e?AA(e,d.url.target):null;e&&f&&(c={PJ:d.id,title:d.title,rq:e,target:"current"==f?"_top":void 0,Gi:d.url.Gi,imageUrl:d.A,videoDuration:d.videoDuration,md:d.md,dk:YB(this,"combined_teaser_link")})}QH(this.aa,!0,{teaserText:a.Ra.teaserText,durationMs:b?2E3:a.Ra.teaserDurationMs,fi:c,ny:YB(this,"merge_button_with_teaser"),rv:b&&YB(this,"hover_card_on_button_hover")})}}(!this.C||!this.Wj.isActive()&&this.si)&&iC(this,a)}};
h.IC=function(){this.j&&this.Ml(this.j,!0)};
h.BC=function(a){this.C||(this.j=a,iC(this,a),cC(this,a))};
h.Bv=function(){this.C&&(nB(this.context.logger,4,jC(this).j.close),eC(this))};
h.Nv=function(){N(this.D,"iv-drawer-scrolled",0<this.xc.scrollTop)};
h.my=function(){var a=jC(this);oB(this.context.logger,8,a.Pa,a.j.MC)};
h.ly=function(){var a=this.j;oB(this.context.logger,13,a.Ra.Pa,void 0);var b=YB(this,"hover_card_for_video_card_teaser");"video"==a.Ra.type&&b&&(a=this.j,a.xi||(a.xi=!0,hB(this.context.logger,a.Ra.Pa,a.Ra.j.Qo)))};
h.jy=function(){var a=this.j.Ra;lB(this.context.logger,a.Pa,void 0,void 0,a.j.click,5)};
h.ky=function(a){var b=jC(this);this.j?a?(a=this.context.logger,oB(a,9,b.Pa,b.j.Vl)):(a=this.context.logger,oB(a,12,b.Pa,b.j.Vl)):(a=this.context.logger,nB(a,12,b.j.Vl));a.aa.cg(4,void 0)};var nC=/#(.)(.)(.)/,mC=/^#(?:[0-9a-f]{3}){1,2}$/i;B(oC,Nz);oC.prototype.B=x;oC.prototype.wl=function(){this.B();oC.M.wl.call(this)};
oC.prototype.Kg=function(){this.B();oC.M.Kg.call(this)};
oC.prototype.Bi=function(){this.B();oC.M.Bi.call(this)};
B(pC,oC);pC.prototype.B=function(){this.element.style.left=Math.round(this.o[0])+"px";this.element.style.top=Math.round(this.o[1])+"px"};B(qC,pB);qC.prototype.Si=function(){qC.M.Si.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&qB(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.ea)};B(rC,qC);rC.prototype.H=function(a,b,c,d){this.j.stop();if(!this.A){var e=jg(a);hg(a,e.width);hg(b,e.width);Vf(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.A=!0;Qq(a);this.C=new Wd(function(){L(this.ka(),"iv-branding-active")},0,this);
this.C.start()}};
rC.prototype.G=function(a,b){ae(this.ka(),"iv-branding-active");this.D=new Wd(function(){Rq(a);hg(b,0)},250);
this.D.start();this.A=!1};
rC.prototype.show=function(){if(!this.isActive){rC.M.show.call(this);if(!this.F){L(this.ka(),"iv-branding");var a=this.annotation.data;this.B=a.image_width;this.o=O("img",{src:a.image_url,"class":"branding-img iv-click-target hid",width:a.image_width,height:a.image_height});var b=O("div","branding-img-container",this.o);this.ka().appendChild(b);var c=O("div","iv-branding-context-name");Cf(c,a.channel_name);var d=O("div","iv-branding-context-subscribe");this.annotation.A?d.innerHTML=this.annotation.A:
a.num_subscribers&&Cf(d,a.num_subscribers);b=O("div","iv-branding-context-subscribe-caret");c=O("div",["branding-context-container-inner","hid"],b,c,d);d=O("div","branding-context-container-outer",c);Of(d,"right",this.B+"px");this.ka().appendChild(d);this.Of(this.o,bD(this.annotation),this.annotation.id,this.annotation.Pa);this.j=new Wd(oa(this.G,c,d),500,this);this.context.j.R(this.ka(),"mouseover",A(this.H,this,c,d,b,a.image_height));this.context.j.R(this.ka(),"mouseout",A(this.j.start,this.j));
this.F=!0}hB(this.context.logger,this.annotation.Pa);Qq(this.ka());this.isActive=!0;var a=this.o,e,b=lg(a).width,c=fa(void 0)?void 0:b;e=e||0;Vf(a,c);e=new pC(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,Qz);this.context.j.R(e,"begin",oa(Qq,a));e.play()}};
rC.prototype.ea=function(){this.isActive&&(Rq(this.ka()),this.isActive=!1)};var vC={CLOSE:"close",jI:"openUrl",Qu:"subscribe"},wC={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",DI:"rollOut",Gu:"rollOver",Ju:"shown"};var GC={GJ:"xx",HJ:"xy",KJ:"yx",LJ:"yy"};B(KC,EC);var OC={lt:"anchored",xI:"rect",HI:"shapeless"};var TC={CLOSED:"closed",nI:"playerControlShow",Gu:"rollOver",Ju:"shown"};var $C={lt:"anchored",BRANDING:"branding",CHANNEL:"channel",hH:"cta",EH:"highlightText",OH:"label",PLAYLIST:"playlist",pI:"popup",OI:"speech",Qu:"subscribe",bJ:"title",VIDEO:"video",BJ:"vote",WEBSITE:"website"},ZC={BRANDING:"branding",XG:"card",DH:"highlight",IMAGE:"image",MARKER:"marker",tI:"promotion",TEXT:"text",DJ:"widget"},aD={yJ:"video_relative",oI:"player_relative"};XC.prototype.showLinkIcon=function(){return eD(this,function(a){return null!=a.url&&a.url.showLinkIcon})};B(lD,qC);h=lD.prototype;h.show=function(){this.isActive||(lD.M.show.call(this),this.G||(mD(this),this.G=!0),Qq(this.ka()),this.annotation&&this.annotation.Pa&&hB(this.context.logger,this.annotation.Pa),ae(this.ka(),"iv-promo-inactive"),this.ka().removeAttribute("aria-hidden"),this.isActive=!0,this.j&&(Vd(this.j),this.j=null),oD(this),pD(this,this.D))};
h.ea=function(){this.isActive&&(L(this.ka(),"iv-promo-inactive"),this.isActive=!1,this.ka().setAttribute("aria-hidden",!0))};
h.wi=function(a,b,c,d,e,f){return this.B?!1:lD.M.wi.call(this,a,b,c,d,e,f)};
h.Hk=function(a,b){b.stopPropagation();oD(this);pD(this,a);this.Sb.focus()};
h.zw=function(a){this.F=!0;this.Hk(500,a)};
h.yw=function(){this.F=!1;nD(this)};
h.IE=function(a){a.stopPropagation();this.ea();mB(this.context.logger,this.annotation.Pa)};
h.destroy=function(){this.C.dispose();lD.M.destroy.call(this)};qD.prototype.B=function(a,b,c,d){this.j[a]=b?!c:c;a=Sb(this.j,function(a){return a});
this.o!=a&&(this.o=a,this.A.O(this.C,a,d))};h=sD.prototype;h.ea=function(){this.isVisible=!1;this.j&&(uD(this),this.j.ea())};
h.show=function(){this.isVisible=!0;this.j&&(this.j.show(),this.A.subscribe("onResize",this.Ur,this),this.A.subscribe("onVideoAreaChange",this.kq,this))};
h.destroy=function(){if(this.j){uD(this);var a=this.j;a.F.removeAll();a.sl.dispose();a.H.dispose();a.o&&sf(a.o);a.A&&a.A.ka()&&sf(a.A.ka())}vD(this)};
h.kq=function(){FE(this.j)};
h.Ur=function(){FE(this.j)};wD.prototype.clone=function(){return new wD(this.start,this.end)};B(yD,xD);zD.prototype.Lc=null;zD.prototype.Ob=null;zD.prototype.Wg=!0;var DD=[2,2,6,6,0];h=zD.prototype;h.clear=function(){this.sa.length=0;this.va.length=0;this.gc.length=0;delete this.Lc;delete this.Ob;delete this.Wg;return this};
h.tb=function(a){var b=cb(this.sa);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.sa.push(1),this.va.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.gc.push(c,d)}this.va[this.va.length-1]+=b/2;this.Ob=[c,d]};
h.close=function(){var a=cb(this.sa);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.sa.push(4),this.va.push(1),this.Ob=this.Lc);return this};
h.clone=function(){var a=new this.constructor;a.sa=this.sa.concat();a.va=this.va.concat();a.gc=this.gc.concat();a.Lc=this.Lc&&this.Lc.concat();a.Ob=this.Ob&&this.Ob.concat();a.Wg=this.Wg;return a};
h.transform=function(a){if(!this.Wg)throw Error("Non-simple path");a.transform(this.gc,0,this.gc,0,this.gc.length/2);this.Lc&&a.transform(this.Lc,0,this.Lc,0,1);this.Ob&&this.Lc!=this.Ob&&a.transform(this.Ob,0,this.Ob,0,1);return this};
h.isEmpty=function(){return 0==this.sa.length};B(ED,xD);FD.prototype.getWidth=function(){return this.A};aa(GD);GD.prototype.j=0;B(HD,fd);h=HD.prototype;h.lx=GD.getInstance();h.getId=function(){return this.P||(this.P=":"+(this.lx.j++).toString(36))};
h.ka=function(){return this.j};
h.Tg=function(a){if(this.H&&this.H!=a)throw Error("Method not supported");HD.M.Tg.call(this,a)};
h.mo=function(){this.j=this.L.createElement("DIV")};
h.rg=function(){ID(this,function(a){a.Ke&&a.rg()});
this.C&&this.C.removeAll();this.Ke=!1};
h.S=function(){this.Ke&&this.rg();this.C&&(this.C.dispose(),delete this.C);ID(this,function(a){a.dispose()});
this.j&&sf(this.j);this.H=this.j=this.D=this.G=null;HD.M.S.call(this)};
h.Jd=function(){return this.j};
h.removeChild=function(a,b){if(a){var c=y(a)?a:a.getId();a=this.D&&c?fc(this.D,c)||null:null;if(c&&a){ec(this.D,c);ob(this.G,a);b&&(a.rg(),a.j&&sf(a.j));c=a;if(null==c)throw Error("Unable to set parent component");c.H=null;HD.M.Tg.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};B(JD,HD);JD.prototype.A=null;JD.prototype.wg=function(){return this.Ke?ig(this.ka()):fa(this.width)&&fa(this.height)?new te(this.width,this.height):null};
JD.prototype.resume=function(){};B(LD,fd);h=LD.prototype;h.Bk=null;h.yg=null;h.ka=function(){return this.yg};
h.addEventListener=function(a,b,c,d){Pc(this.yg,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){$c(this.yg,a,b,c,d)};
h.S=function(){LD.M.S.call(this);var a=this.yg;if(a)if(Ec(a))a.removeAllListeners(void 0);else if(a=Sc(a)){var b=0,c;for(c in a.j)for(var d=a.j[c].concat(),e=0;e<d.length;++e)ad(d[e])&&++b}};B(MD,LD);MD.prototype.fill=null;B(QD,LD);B(RD,LD);B(SD,MD);B(TD,QD);TD.prototype.clear=function(){qf(this.ka())};
TD.prototype.setSize=function(a,b){XD(this.ka(),{width:a,height:b})};
B(UD,SD);B(VD,RD);VD.prototype.setPosition=function(a,b){XD(this.ka(),{x:a,y:b})};
VD.prototype.setSize=function(a,b){XD(this.ka(),{width:a,height:b})};var bE;B(WD,JD);var $D=0;h=WD.prototype;h.mo=function(){var a=OD(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=OD(this,"g");this.F=OD(this,"defs");this.A=new TD(b,this);a.appendChild(this.F);a.appendChild(b);this.j=a;this.B&&(this.ka().setAttribute("preserveAspectRatio","none"),this.N?this.fr():this.ka().setAttribute("viewBox","0 0 "+(this.B?this.B+" "+this.J:"")))};
h.fr=function(){if(this.Ke){var a=this.wg();if(0==a.width)this.ka().style.visibility="hidden";else{this.ka().style.visibility="";var b=a.width/this.B,a=a.height/this.J;this.A.ka().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
h.setSize=function(a,b){gg(this.ka(),a,b)};
h.wg=function(){if(!vc)return this.Ke?ig(this.ka()):WD.M.wg.call(this);var a=this.width,b=this.height,c=y(a)&&-1!=a.indexOf("%"),d=y(b)&&-1!=b.indexOf("%");if(!this.Ke&&(c||d))return null;var e,f;c&&(e=this.ka().parentNode,f=jg(e),a=(0,window.parseFloat)(a)*f.width/100);d&&(e=e||this.ka().parentNode,f=f||jg(e),b=(0,window.parseFloat)(b)*f.height/100);return new te(a,b)};
h.clear=function(){this.A.clear();qf(this.F);this.o={}};
h.rg=function(){WD.M.rg.call(this);this.N&&this.K.xa(aE(),"tick",this.fr)};
h.S=function(){delete this.o;delete this.F;delete this.A;this.K.dispose();delete this.K;WD.M.S.call(this)};cE.prototype.ka=function(){return this.C};
cE.prototype.o=function(){};var lE={bevel:1,dropshadow:2};B(tE,cE);
tE.prototype.o=function(a,b){var c=iD(a);if(c){var d=HC(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=jD(a))&&c.j?c.j:null)&&c.length?c[0]:null){var f=ze(IC(b,BC(e,new ve(e.G,e.H,e.C,e.A),b.j))),k=d.clone(),c=new ve(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.j,k=rE(k,c.effects),l=dE(this,k.width,k.height),m=pE(c,k.width,k.height,this.j),
d=new ve(d.left-k.left,d.top-k.top,d.width,d.height),p=new qe(f.x-k.left,f.y-k.top);this.B=17*DC(b.j,e.o,e.j?e.j:"xy");e=c.j;var f=a.j,u=this.j&&dD(a),t=u?f.C+1:f.C,u=(f=t?new FD(t,u?f.D:f.F):null)?f.getWidth()/2:0,t=uE(d,p),w=this.D(d,e,p,t),z=p.x,p=p.y,E=d.width,M=d.height,G=d.left,d=d.top,I=new zD;AD(I,G+e+u,d+u);"t"==t&&(I.tb(w.start,d+u),I.tb(z,p),I.tb(w.end,d+u));I.tb(G+E-e-u,d+u);BD(I,e,e,-90);"r"==t&&(I.tb(G+E-u,w.start),I.tb(z,p),I.tb(G+E-u,w.end));I.tb(G+E-u,d+M-e-u);BD(I,e,e,0);"b"==t&&
(I.tb(w.end,d+M-u),I.tb(z,p),I.tb(w.start,d+M-u));I.tb(G+e+u,d+M-u);BD(I,e,e,90);"l"==t&&(I.tb(G+u,w.end),I.tb(z,p),I.tb(G+u,w.start));I.tb(G+u,d+e+u);BD(I,e,e,180);I.close();YD(l,I,f,m);if(m=this.ka())L(m,"annotation-shape"),L(m,"annotation-speech-shape"),Vf(m,k.left,k.top),gg(m,k.width,k.height),sE(l,m,c.effects)}}}};
tE.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=le(c-a/2,d+b,d+e-a-b);return new wD(c,c+a)}
return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new wD(0,0)};B(vE,cE);vE.prototype.o=function(a,b){var c=iD(a);if(c){var d=HC(c,b);if(!(0>=d.width||0>=d.height)){var c=a.j,e=rE(d,c.effects),f=dE(this,e.width,e.height);nE(f,new ve(0,0,d.width,d.height),c.j,new FD(!c.A&&this.j?1:c.A,c.B),new ED("#000",0));d=this.ka();L(d,"annotation-shape");mg(d,qE(this.j,c.o));Vf(d,e.left,e.top);gg(d,e.width,e.height)}}};B(wE,cE);
wE.prototype.o=function(a,b){var c=HC(iD(a),b);if(!(0>=c.width||0>=c.height)){var d=xE(c,this.F);d.left+=c.left;d.top+=c.top;var e=a.j,f=rE(d,e.effects),k=dE(this,f.width,f.height),l=new ED("#000",0),d=xE(d,this.B),m;m=a.B?a.B.j?a.B.j:a.B.videoId?window.location.protocol+"//i1.ytimg.com/vi/"+(0,window.escape)(a.B.videoId)+"/hqdefault.jpg":"":"";d=OD(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 VD(d,k);k.A.ka().appendChild(p.ka());if(d=this.ka()){mg(d,qE(this.j,e.o));if(this.D&&0<e.A){m=new FD(e.A,e.B);var c=new ve(0,0,c.width,c.height),u=m.getWidth()/2+1;var u=oE(c,e.j,u),t=ND(k,"mask");if(t)u=t;else{var t=window.document.createElementNS("http://www.w3.org/2000/svg","mask"),w=window.document.createElementNS("http://www.w3.org/2000/svg","path");w.setAttribute("d",ZD(u));w.setAttribute("fill","#FFF");t.appendChild(w);u=PD(k,"mask",t)}p=p.ka();u&&p.setAttribute("mask","url(#"+
u+")");nE(k,c,e.j,m,l)}L(d,"annotation-shape");L(d,"annotation-image-shape");Vf(d,f.left,f.top);gg(d,f.width,f.height);sE(k,d,e.effects)}}};B(yE,cE);yE.prototype.o=function(a,b){var c=iD(a);if(c){var d=HC(c,b);if(!(0>=d.width||0>=d.height)){var c=a.j,e=rE(d,c.effects),f=dE(this,e.width,e.height),k=new ve(0,0,d.width,d.height),d=pE(c,d.width,d.height,this.j),l=c.j,m=a.j,p=this.j&&dD(a),u=p?m.C+1:m.C;nE(f,k,l,u?new FD(u,p?m.D:m.F):null,d);if(k=this.ka())L(k,"annotation-shape"),L(k,"annotation-popup-shape"),Vf(k,e.left,e.top),gg(k,e.width,e.height),sE(f,k,c.effects)}}};B(zE,tE);zE.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=c<=d+e/2?Math.max(d+e/4-a/2,d+b):Math.min(d+3*e/4-a/2,d+e-a-b);return new wD(c,c+a)}
return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new wD(0,0)};h=BE.prototype;h.Vr=function(){this.P||(this.B&&Qq(this.B),this.C&&Qq(this.C),this.A&&(this.A.j=!0,mg(this.o,ME(this)?1:0),this.A.o(this.j,GE(this))),this.H.isActive()&&this.H.stop(),this.P=!0,this.J=Bz(this.F,IE(this.D),function(a){this.sl.stop();this.Lg(a)}))};
h.Lg=function(){this.P&&(this.N?this.H.start():this.so(),this.A&&(this.A.j=!1,mg(this.o,ME(this)?1:0),this.A.o(this.j,GE(this))),this.P=!1,this.J&&(this.F.xa(this.J),this.J=null))};
h.so=function(){this.B&&Rq(this.B);this.C&&Rq(this.C)};
h.GE=function(a){this.Y=a;this.sl.nf()};
h.xw=function(){var a=this.Y,b=new qe(a.clientX,a.clientY),c=bg(this.D.Aa()),d=NE(c,this.L),c=(Pq(this.C)||Pq(this.B))&&NE(c,this.N);d&&d.contains(b)||c&&c.contains(b)?this.Vr():this.Lg(a)};
h.show=function(){var a=this.j.j,a=(a&&0==a.o||"title"==this.j.style||"highlightText"==this.j.style?!1:!0)&&!this.A,b=!this.o,c="widget"==this.j.type;if(a){var d=GE(this),e=null;"highlight"==this.j.type||"label"==this.j.style?e=new vE:"popup"==this.j.style?e=new yE:"anchored"==this.j.style?e=new tE:"speech"==this.j.style?e=new zE:"image"==this.j.type&&("video"==this.j.style?e=new wE(hga,T5,!0):"channel"==this.j.style&&(e=new wE));e&&(e.o(this.j,d),this.A=e,d=e.ka())&&(Rq(d),L(d,"annotation-type-"+
this.j.type.toLowerCase()),this.T(d))}if(b){d=["annotation","hid"];"highlightText"!=this.j.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.j.type.toLowerCase());this.o=O("div",d);this.j.D&&(this.G=O("div","inner-text"),"label"==this.j.style&&(L(this.G,"label-text"),this.G.style.backgroundColor=this.j.j.B),Cf(this.G,this.j.D),this.o.appendChild(this.G));vi(this.o,"annotation_id",this.j.id);this.T(this.o);CE(this,this.o);if(dD(this.j)&&"image"!=this.j.type&&this.j.showLinkIcon()){if(e=
bD(this.j))d=this.o,e=new P(tA(e)),d.title=e.o+e.A;this.C=O("span",["annotation-link-icon","hid"]);this.o.appendChild(this.C)}EE(this);dD(this.j)||(this.o.style.cursor="default")}c&&("subscribe"==this.j.style?bf("yt-uix-subscription-button",this.o)||(this.o.innerHTML=this.j.A):this.j.A&&(this.o.innerHTML=this.j.A));if(a||b){a:{a=this.j.o.j;if(a.length&&(a=PC(a[0]))){a=a.J;break a}a=0}this.o&&(this.o.style.zIndex=a);this.A&&this.A.ka()&&(this.A.ka().style.zIndex=a)}Qq(this.o);mg(this.o,ME(this)?1:
0);FE(this);this.A&&Qq(this.A.ka())};
h.ea=function(){Rq(this.o);this.A&&Rq(this.A.ka());this.K&&(this.F.xa(this.K),this.K=null)};B(OE,pq);OE.D="AnnotationsModule";var PE={ut:"video-annotations",Ht:"video-custom-annotations",iu:"video-legacy-annotations"};OE.C=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
OE.B=function(a){return"card"==a.type};
OE.A=function(a){return OE.Ta(a)?new OE(a):null};
OE.Ta=function(a){var b=a.V();return"leanback"==b.ya?!1:!b.H.isEmpty()||OE.j(b.j)?!0:gx(a.getVideoData(),"iv3_module")};
OE.o=function(){return O("div",["annotation","annotation-type-custom","hid"])};
OE.j=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
h=OE.prototype;h.sd=function(a,b){if(!OE.j(this.j.V().j))return null;switch(a){case "loadCustomAnnotationsXml":var c=vz(b);c&&XE(this,c);return!0;case "removeCustomAnnotationById":return b&&this.o&&(aC(this.o,b),dC(this.j)),!0}return null};
h.We=function(){return OE.j(this.j.V().j)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
h.Ta=function(){return OE.Ta(this.j)};
h.create=function(){OE.M.create.call(this);this.B=new S(["div",["ytp-player-content","ytp-iv-player-content"]]);Xq(this.j,this.B.element,4);var a=this.j.V(),b=this.j.getVideoData();1!=(a.Cd||b.Ca)&&ca(a.H.get(b.videoId))||this.load()};
h.destroy=function(){ae(this.j.Aa(),"ytp-iv-drawer-open");Dq(this.B);this.B.dispose();OE.M.destroy.call(this)};
h.SA=function(a){V(a.state,2)&&(hF(this)&&iF(this)&&2!=this.j.getPresentingPlayerType()&&jF(this,!1),kF(this,!1))};
h.load=function(){OE.M.load.call(this);this.H++;var a=this.j.getVideoData(),b=a.videoId,c=A(this.Vz,this,b,this.H);Gu()&&(c=YE(this,c));c={format:"XML",Rb:c,Vc:{}};a.isPharma&&(c.Vc.pharma="1");var d=this.j.V();d.experiments.ma("disable_iv_cors")?c.method="GET":(c.method="POST",c.withCredentials=!0);"gaming"==d.j&&(c.Vc.gaming="1");(b=d.H.remove(b))&&ZE(this,c,b);a.bf&&(b=b&&(b.ue||b.Rh),a.yn&&!b||Gj(a.bf,c))};
h.unload=function(){this.C.ib({"iv-event":1});qq(this);Ob(this.A,function(a){a.destroy()});
Ob(this.J,function(a){a.destroy()});
this.D=null;this.o&&(this.o.destroy(),this.o=null,dC(this.j));this.A={};this.J={};OE.M.unload.call(this)};
h.Vz=function(a,b,c){if(!RE(this,b,a)&&(a=Aj(c)&&c.responseXML?c.responseXML:null)){XE(this,a);L(this.j.Aa(),this.qa+"-loaded");a=[];for(var d in this.A){b=this.A[d].annotation;if(b.o)if(c=b.o,c.j.length)if(c=c.j[0].o||c.j[0].j||c.j[0].A,!c||2>c.length)c=null;else{var e=c.length-1;c=0>=c[0].t&&0>=c[e].t?null:{start:c[0].t,end:c[e].t}}else c=null;else c=null;if(e=c)if(c=1E3*e.start,e=1E3*e.end,0==c&&(c++,e++),!(e<c)){var f={id:d};"marker"==b.type&&(f.style="ytp-chapter-marker",f.tooltip=b.D,f.visible=
!0);b=new lq(c,e,f);a.push(b)}}this.fb(a)}};
h.JB=function(a){this.G&&a==this.j.getVideoData().videoId&&(this.loaded?WE(this):this.load())};
h.bz=function(a){hF(this)&&jF(this,a)};
h.Qb=function(a){OE.M.Qb.call(this,a);a=a.getId();var b=this.A[a];b&&!b.B&&(b=b.annotation,cF(this,a),hB(this.C,b.Pa))};
h.Xb=function(a){OE.M.Xb.call(this,a);dF(this,a.getId())};
h.ro=function(a){a&&(a.ea(),gF(this,"shown",!1,a.annotation.id),this.Sh(a.annotation,"hidden"))};
h.Tq=function(a){a&&(a.show(),gF(this,"shown",!0,a.annotation.id),this.Sh(a.annotation,"shown"))};
h.FB=function(a,b,c){var d=this.A[a];if(d&&b.value!=c){b.value=c;var e=!1;gD(d.annotation,function(a){e|=a.value});
bF(this,a,b,e)}};
h.Ny=function(a){if(a&&a.id){var b=bD(a);if(b){var c=tA(b);if(c){var d=A(this.Sh,this,a,"click"),e=this.j.getVideoData();if("new"==AA(c,b.target)||eF(this,b,e.videoId))d(),d=null;lB(this.C,a.Pa,d)}}}};
h.Sh=function(a,b){fD(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.j.getVideoData(),e;if(!(e=!eF(this,c.url,d.videoId))){e=xA(c.url);var f=wA(c.url);if(e){if(d.videoId==e)this.O("command_seek",f||0);else{var k=VE(this).o;S9(k.app,e,void 0,void 0);f&&SH(VE(this).o)&&VE(this).o.Tb(f)}e=!0}else e=!1;e=!e}e&&(d=yA(c.url,a.id,d.videoId,this.j.V()))&&(this.pauseVideo(),e=AA(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=vj(c),f=null,"ei"in e&&(f={ei:e.ei},c=$g(c,"ei")),Ix(c,f),Jx(c,
d))}},this)};
h.bA=function(){gF(this,"playerControlShow",!1)};
h.mB=function(){gF(this,"playerControlShow",!0)};
h.xE=function(a){gF(this,"rollOver",!0,a.id)};
h.Lg=function(a){gF(this,"rollOver",!1,a.id)};
h.pz=function(a){if(a||a.id)this.A[a.id].B=!0,dF(this,a.id),a&&(mB(this.C,a.Pa),this.Sh(a,"close")),gF(this,"closed",!0,a.id)};
h.S=function(){for(var a=this.K,b=0,c=a.length;b<c;b++)Iu(a[b]);this.K.length=0;OE.M.S.call(this)};lF.prototype.destroy=function(){null!=this.o&&(this.o.canvas.remove?this.o.canvas.remove():this.o.canvas.removeNode(!0),this.o=null)};h=qF.prototype;h.yk=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.uk=function(){return this.j};
h.Tc=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};
h.Wr=function(){};
h.Km=function(a){this.G&&(360>=tr[a]?this.D(!0):this.D(!1))};
h.Nc=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,nF(this.C,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.pq=function(){return!0};
h.Xe=function(){return{shader:"NoOp"}};
h.lh=function(){};
h.destroy=function(){this.C&&this.C.destroy()};B(rF,qF);rF.prototype.Tc=function(a,b,c){rF.M.Tc.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.B=a.getUniformLocation(b,"mode");a.uniform1i(this.B,this.o)};
rF.prototype.Nc=function(a,b,c){this.A&&(a.uniform1i(this.B,this.o),this.A=!1);rF.M.Nc.call(this,a,b,c)};
rF.prototype.Xe=function(){return{shader:"Anaglyph3D",displayMode:this.o}};
rF.prototype.lh=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.o=(0,window.parseInt)(a.displayMode,10),this.A=!0),this.F())};B(vF,qF);
vF.prototype.Tc=function(a,b,c){vF.M.Tc.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.A=a.getUniformLocation(b,"seed");(a=this.aa.getVideoData())&&a.o&&this.Km(a.o.video.quality)};
vF.prototype.Nc=function(a,b,c){if(this.H){var d=K();1E3<d-this.B&&(this.B=d,a.uniform1f(this.A,Math.random()))}else a.uniform1f(this.A,Math.random());vF.M.Nc.call(this,a,b,c)};
vF.prototype.Xe=function(){return{shader:"WhiteNoise"}};B(wF,vF);wF.prototype.Tc=function(a,b,c){wF.M.Tc.call(this,a,b,c);this.o=a.getUniformLocation(b,"mode");a.uniform1i(this.o,1)};
wF.prototype.Nc=function(a,b,c){this.F&&(a.uniform1i(this.o,1),this.F=!1);wF.M.Nc.call(this,a,b,c)};
wF.prototype.Xe=function(){return{shader:"EdgeEnhance"}};xF.prototype.j=4;xF.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
xF.prototype.toString=Array.prototype.join;"undefined"==typeof window.Float32Array&&(xF.BYTES_PER_ELEMENT=4,xF.prototype.BYTES_PER_ELEMENT=xF.prototype.j,xF.prototype.set=xF.prototype.set,xF.prototype.toString=xF.prototype.toString,q("Float32Array",xF,void 0));yF.prototype.j=8;yF.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
yF.prototype.toString=Array.prototype.join;if("undefined"==typeof window.Float64Array){try{yF.BYTES_PER_ELEMENT=8}catch(a){}yF.prototype.BYTES_PER_ELEMENT=yF.prototype.j;yF.prototype.set=yF.prototype.set;yF.prototype.toString=yF.prototype.toString;q("Float64Array",yF,void 0)};AF.prototype.identity=function(){this.j.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};
AF.prototype.get=function(){return this.j};var FF=null,IF=null,EF=null;h=MF.prototype;h.yk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.uk=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.Tc=function(a,b){this.da=a.getUniformLocation(b,"uVMat");this.Y=a.getUniformLocation(b,"uFOVx");this.$=a.getUniformLocation(b,"uFOVy");this.Ea=a.getUniformLocation(b,"uSplr");a.uniform1i(this.Ea,0)};
h.Wr=function(){this.G=!0};
h.Km=x;
h.Nc=function(a,b){var c=this.j,d=this.o;if(this.G){a.o>a.j?(this.j=this.C,this.o=Math.atan(Math.tan(this.C)*a.j/a.o)):(this.o=this.C,this.j=Math.atan(Math.tan(this.C)*a.o/a.j));a.uniform1f(this.Y,this.j);a.uniform1f(this.$,this.o);this.D=le(this.D,-Math.PI/2,Math.PI/2);this.A.identity();var e=this.A,f=this.D,k=Math.sin(f),f=Math.cos(f);e.A.set([1,0,0,0,0,f,k,0,0,-k,f,0,0,0,0,1]);BF(e,e.A);e=this.A;f=this.J;k=Math.sin(f);f=Math.cos(f);e.A.set([f,0,-k,0,0,1,0,0,k,0,f,0,0,0,0,1]);BF(e,e.A);a.uniformMatrix4fv(this.da,!1,
this.A.get());this.G=!1;this.B.V().experiments.C&&(e=this.B,k=LH(e),e.app.Oa("webglsettingschanged",k))}e=K();if(this.ca){this.F[0]=-this.A.get()[8];this.F[1]=-this.A.get()[9];this.F[2]=-this.A.get()[10];var k=this.ca,f=this.F,l=this.B.getCurrentTime(),m=e/1E3,p=this.B.getPlayerState(),u=null,t,w,z;1==p?(t=k.A,z=k.G,w=l):(t=k.F,z=k.D,w=m);var E=0!=k.j.length;if(E){var M=150<=k.j.length;if(k.B!=p||.5<w-z||w<z||M){u=null;if(5<=k.j.length){for(var u=k.j,E=Array(2*u.length),G=M=0,I=0;I<u.length;++I)E[I]=
u[I].x-M&255,E[I+u.length]=u[I].y-G&255,M=u[I].x,G=u[I].y;M=KF(E);u=k.A;E=1==k.B?k.o:0;M=CF(M,!0);G="";for(I=M.length-1;0<=I&&"."==M.charAt(I);--I)G+="=";M=M.substring(0,M.length-G.length)+G;u={start:u,duration:E,data:M}}k.j=[];k.o=0;E=!1}}if(1==p||2==p||3==p){if(E)for(t=t+k.o+.2;t<w;){M=(t-z)/(w-z);k.o+=.2;var E=k.C,G=f,I=M,M=new window.Float32Array(3),Ta=zF(E),tb=zF(G),Qb=(E[0]*G[0]+E[1]*G[1]+E[2]*G[2])/(Ta*tb);if(.999999<Qb)Ta=E[0],tb=E[1],E=E[2],M[0]=(G[0]-Ta)*I+Ta,M[1]=(G[1]-tb)*I+tb,M[2]=(G[2]-
E)*I+E;else{var Xb=0,bi=0;-.999999>Qb?(Qb=new window.Float32Array(3),Xb=(Ta+tb)/2,E[0]?(Xb/=Math.sqrt(E[0]*E[0]+E[1]+E[1]),Qb[0]=-E[1]*Xb,Qb[1]=E[0]*Xb,Qb[2]=0):(Xb/=Math.sqrt(E[2]*E[2]+E[1]+E[1]),Qb[0]=0,Qb[1]=-E[2]*Xb,Qb[2]=E[1]*Xb),.5>=I?(tb=Ta,G=Qb,I*=2):(E=Qb,I=2*I-1),Xb=Math.PI/2,bi=1):(Xb=Math.acos(Qb),bi=Math.sqrt(1-Qb*Qb));Qb=Math.sin((1-I)*Xb)/bi/Ta;Xb=Math.sin(I*Xb)/bi/tb;I=(1-I)*Ta+I*tb;M[0]=(E[0]*Qb+G[0]*Xb)*I;M[1]=(E[1]*Qb+G[1]*Xb)*I;M[2]=(E[2]*Qb+G[2]*Xb)*I}E=M;k.j.push(JF(E));t+=.2}else k.A=
l,k.F=m,k.j.push(JF(f)),k.o=0;k.C=f;k.G=l;k.D=m;k.B=p}k=u;k&&(f=rq(this.B.app))&&f.A&&(f=f.A.o,l=k.start,m=k.duration,k=k.data,MA(f,VA(f.j),"dir",[l.toFixed(3),m.toFixed(3),k]))}(this.T!=this.j||this.X!=this.o)&&3E4<e-this.U&&c==this.j&&d==this.o&&(this.T=this.j,this.X=this.o,this.U=e,(c=rq(this.B.app))&&c.A&&(c=c.A.o,d=Math.round(360*this.j/Math.PI),e=Math.round(360*this.o/Math.PI),MA(c,VA(c.j),"fov",[d,e])));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,nF(this.K,b));a.drawArrays(a.TRIANGLE_STRIP,
0,4)};
h.pq=function(){return!1};
h.Xe=function(){return{shader:"Spherical",yaw:this.J,pitch:this.D,fov:this.C}};
h.lh=function(a){if("Spherical"==a.shader||"Spherical3D"==a.shader)a.yaw&&(this.J=a.yaw),a.pitch&&(this.D=a.pitch),a.fov&&(this.C=le(a.fov,.32,1.05)),this.G=!0,this.N()};
h.destroy=function(){this.K&&this.K.destroy()};B(NF,MF);h=NF.prototype;h.yk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.uk=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.Tc=function(a,b,c){NF.M.Tc.call(this,a,b,c);this.P=a.getUniformLocation(b,"mode");a.uniform1i(this.P,this.H)};
h.Nc=function(a,b,c,d){this.L&&(a.uniform1i(this.P,this.H),this.L=!1);NF.M.Nc.call(this,a,b,c,d)};
h.Xe=function(){var a=NF.M.Xe.call(this);a.shader="Spherical3D";a.displayMode=this.H;return a};
h.lh=function(a){void 0!=a.displayMode&&(this.H=(0,window.parseInt)(a.displayMode,10),this.L=!0,this.N());NF.M.lh.call(this,a)};var DG=window,tG=window.document,VF=DG.location,TF=/\[native code\]/,AG=PF(DG,"gapi",{});var WF;WF=PF(DG,"___jsl",SF());PF(WF,"I",0);PF(WF,"hel",10);var bG=PF(WF,"perf",SF());PF(bG,"g",SF());var aG=PF(bG,"i",SF());PF(bG,"r",[]);SF();SF();var eG=SF(),xG=[];xG.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?WF[b]=PF(WF,b,[]).concat(c):PF(WF,b,c)}if(b=a.u)a=PF(WF,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var mG=/^(\/[a-zA-Z0-9_\-]+)+$/,pG=/^[a-zA-Z0-9\-_\.,!]+$/,kG=/^gapi\.loaded_[0-9]+$/,oG=/^[a-zA-Z0-9,._-]+$/,hG=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,gG=/\/cb=/g,fG=/\/\//g;eG.m=function(a,b,c,d){(a=a[0])||cG("missing_hint");return"https://apis.google.com"+iG(a,b,c,d)};var vG=(0,window.decodeURI)("%73cript");AG.load=function(a,b){return zG(function(){return BG(a,b)})};B(EG,Wj);EG.prototype.remove=function(a){var b=this.get(a);delete this.j[a];return b};
EG.prototype.get=function(a){return this.j[a]||null};
EG.prototype.isEmpty=function(){return cc(this.j)};var TG={RED:"red",WHITE:"white",BLUE:"blue"};IG.prototype.ma=function(a){return"true"==this.flags[a]};
IG.prototype.Vb=function(a){return(0,window.parseFloat)(this.flags[a])};
IG.prototype.H=function(a){return this.flags[a]?this.flags[a].toString():""};var XG={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},YG={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},NG="blogger books docs google-live play picasaweb".split(" ");B(JG,H);var ZG={TG:"cbrand",UG:"cbr",VG:"cbrver",JH:"c",MH:"cver",LH:"ctheme",KH:"cplayer",YH:"cmodel",NETWORK:"cnetwork",kI:"cos",lI:"cosver",mI:"cplatform"};h=JG.prototype;h.ya="detailpage";h.Hg=!1;h.kl=!1;h.jl=!1;h.og=!1;h.tc=null;
h.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);d&&"www.youtube.com"==bH(this)?c="https://youtu.be/"+a:(c=this.protocol+"://"+bH(this)+"/watch",b.v=a,(a=v("yt.www.ads.data.encryptedBiscottiId"))&&(b.ebc=a));return Wg(c,b)};
h.S=function(){this.tc=null;JG.M.S.call(this)};gH.prototype.L=function(){this.K=!1;if(this.A&&(this.B.videoWidth||this.B.videoHeight)){if(0==this.J){var a=HE(IE(this.aa));if(!xe(this.D,a)){this.D=a;var b,c,d,a=IE(this.aa).Ma();this.j.pq()?("Anaglyph3D"!=this.T?b=!1:(b=oF(IE(this.aa)),c=this.aa.getVideoData(),b=(0,window.isNaN)(b)||c.Oc("yt:stretch")||c.Oc("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.D.width,c=this.D.height,
d=this.D.top,a=this.D.left)):(b=a.width,c=a.height,a=d=0);a=new ve(a|0,d|0,b|0,c|0);this.F.style.left=a.left+"px";this.F.style.top=a.top+"px";this.o.width=a.width;this.o.height=a.height;this.A.o=a.width;this.A.j=a.height;this.A.viewport(0,0,a.width,a.height);this.j.Wr()}}this.j.Nc(this.A,this.B,this.P,this.X)}this.C&&this.G()};
gH.prototype.Y=function(a){this.H!=a&&this.o&&((this.H=a)?(this.F.appendChild(this.o),this.G(),mF||(this.B.style.display="none")):(sf(this.o),this.B.style.display=""))};
gH.prototype.G=function(){!this.K&&this.H&&((0,window.requestAnimationFrame)(this.L.bind(this)),this.K=!0)};B(kH,pq);kH.o=function(a){return kH.Ta(a)?new kH(a):null};
kH.prototype.Ta=function(){return kH.Ta(this.j)};
kH.j=function(a){var b=a.V().o.c.toLowerCase(),c;c=a.getVideoData();a=a.V().experiments;if(sF(c,a))b="Anaglyph3D";else{var d;if(d=a.spherical||Kl&&!tF||mF&&!wt()&&Ac(11)||uF&&!tF&&Ac(38)||Nf&&!tF&&Ac(27))a:{if(c.j&&3!=c.ca)for(var e in c.j.j)if((d=c.j.j[e].info.video)&&2==d.projectionType){d=!0;break a}d=!1}b=d?"Spherical":(Kl&&!tF||uF&&!tF&&Ac(38)||Nf&&!tF&&Ac(27)||a.ma("enable_spherical3d_ie")&&mF&&!wt()&&Ac(11))&&c.j&&kx(c)?"Spherical3D":a.P&&"web"==b&&Kl&&!tF?"NoOp":(a.da||a.ma("white_noise_with_interval"))&&
"web"==b&&Kl&&!tF?"WhiteNoise":a.F&&"web"==b&&Kl&&!tF?"EdgeEnhance":null}return b};
kH.Ta=function(a){return a.V().J?null!=kH.j(a):!1};
h=kH.prototype;h.CE=function(){if(this.A){var a=this.o;a.C||(0,window.requestAnimationFrame)(a.L.bind(a))}};
h.LA=function(a){if(this.A){var b=this.o;b.j&&b.j.Km(a)}};
h.Uc=function(a){if(this.A){var b=this.o,c=b.C;b.C=V(a.state,8);b.C&&!c&&b.G()}};
h.S=function(){kH.M.S.call(this)};
h.create=function(){var a=kH.j(this.aa);this.o=new gH(this.aa,a,this.B.element,this);a:{a=this.o;a.j=null;var b=a.Y.bind(a),c=A(a.G,a);switch(a.T){case "Anaglyph3D":a.j=new rF(a.aa,c);break;case "Spherical":a.j=new MF(a.aa,c);break;case "WhiteNoise":a.j=new vF(a.aa,b);break;case "EdgeEnhance":a.j=new wF(a.aa,b);break;case "NoOp":a.j=new qF(a.aa,!0,b);break;case "Spherical3D":a.j=new NF(a.aa,c)}if(a.j){a.J=hH(a);if(0==a.J){a.H&&!mF&&(a.B.style.display="none");a=!0;break a}a.aa.app.j.kj(new ov("html5.missingapi.webgl",
!1));jH(a)}a=!1}this.A=a;kH.M.create.call(this)};
h.destroy=function(){jH(this.o);this.A=!1;kH.M.destroy.call(this);this.o=null};B(mH,Jq);mH.prototype.B=function(){this.ea();this.O("close-clicked")};
mH.prototype.ea=function(){this.o.stop();L(this.element,"ytp-drawer-closed")};
mH.prototype.Eb=function(a){a?(mH.M.Eb.call(this,a),Gq(this.element,"block")):Gq(this.element,"none")};
mH.prototype.show=function(){this.o.start()};B(nH,Wj);nH.prototype.S=function(){nH.M.S.call(this);this.B||(sf(this.C),sf(this.D))};
nH.prototype.j=function(a){this.B||(this.o.j(a),this.o.Eb(this.A.element),a.appendChild(this.C))};
nH.prototype.F=function(){this.O("ypcModuleCloseClicked")};
nH.prototype.G=function(){this.O("ypcContentRequest")};B(qH,pq);h=qH.prototype;h.Ta=function(){return gx(this.j.getVideoData(),"ypc_module")};
h.create=function(){qH.M.create.call(this);this.A=new lH(this.j.getVideoData());Fi(A(this.FE,this),0);this.B=new S(["div",["ytp-player-content","ytp-ypc-player-content"]]);Xq(this.j,this.B.element,4)};
h.destroy=function(){qH.M.destroy.call(this);this.A=null;this.B&&(Dq(this.B),this.B.dispose(),this.B=null)};
h.FE=function(){this.G&&!this.loaded&&this.load()};
h.load=function(){qH.M.load.call(this);var a=this.j.V(),b=this.j.getVideoData();if(this.A.videoId&&!b.ypcPreview){for(var a={autoplay:"1",oauth_token:b.oauthToken,video_id:this.A.videoId,ypc_origin:b.videoId,ypc_preview:"1"},c=Bw.A,d=0;d<c.length;d++){var e=c[d];b.B.hasOwnProperty(e)&&(a[e]=b.B[e])}this.j.sj(a)}else sH(this,a,b),!this.A.videoId&&this.o?oH(this.o):b.ypcPreview?(this.O("publish_external_event","ypcStateChanged",!0),tq(this)):this.o||tq(this)};
h.unload=function(){qq(this);(0,window.isNaN)(this.C)||Ii(this.C);Nb(this.o);this.o=null;qH.M.unload.call(this);this.O("publish_external_event","ypcStateChanged",!1)};
h.Qb=function(a){qH.M.Qb.call(this,a);oH(this.o)};
h.Xb=function(a){qH.M.Xb.call(this,a);a=this.o;a.B||(Gq(a.C,"none"),a.o.Eb(a.A.element))};
h.Cz=function(){if(this.A.j)"embedded"==this.j.V().ya?Jx(this.A.j):Hx(this.A.j);else if(this.A.offerId){var a=v("yt.www.watch.player.handleEndPreview");a&&(this.j.Ja()&&Ox(this.j),a(this.A.offerId))}};
h.uA=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(wH,H);h=wH.prototype;h.JD=function(){return Yb(this.A)};
h.KD=function(){return Yb(this.B)};
h.ka=function(){return this.j};
h.addEventListener=function(a,b){if(y(b)){var c=function(){v(b).apply(window,arguments)};
this.D[b]=c;this.app.subscribe(a,c)}else this.app.subscribe(a,b)};
h.Uv=function(a,b){var c=y(b)?a+b:a+ia(b);if(!this.C[c]){var d;y(b)?d=function(){v(b).apply(window,arguments)}:d=b;
var e=A(function(a){d({target:this.o,data:a})},this);
this.C[c]=e;this.addEventListener(a,e)}};
h.removeEventListener=function(a,b){if(y(b)){var c=this.D[b];ec(this.D,b);this.app.Ba(a,c)}else this.app.Ba(a,b)};
h.Vv=function(a,b){var c=y(b)?a+b:a+ia(b),d=this.C[c];d&&(this.removeEventListener(a,d),ec(this.C,c))};
h.getPlayerState=function(){return F9(this.app)};
h.Tb=function(a,b){Q9(this.app,!0,this.playerType);e$(this.app,a,b,void 0,this.playerType)};
h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
h.fh=function(){return C9(this.app,this.playerType)};
h.Db=function(){return this.app.T.volume};
h.setVolume=function(a){a=le(Math.floor(a),0,100);H9(this.app,{volume:a,muted:this.uc()})};
h.uc=function(){return this.app.T.muted};
h.mute=function(){H9(this.app,{muted:!0,volume:this.Db()})};
h.unMute=function(){H9(this.app,{muted:!1,volume:Math.max(5,this.Db())})};
h.Wc=function(){Q9(this.app,!0,this.playerType);d$(this.app,this.playerType)};
h.pauseVideo=function(){var a=this.app,b=this.playerType;if(UH(a.Va)){var c=a.da.play_pause?a.oa:null;c?c.Td("control_pause"):a.pauseVideo(b)}};
h.Hr=function(){var a=this.app,b=this.playerType;Rx(a.W)&&(IH(a,!1),a.Oa("pageTransition"));c$(a,b)};
h.FD=function(){};
h.MD=function(){return this.app.U};
h.rj=function(a){y9(this.app,a)};
h.lj=function(){return this.app.W.T?z9:[1]};
h.mj=function(){var a=rq(this.app,this.playerType);return a&&(a=a.getVideoData().o)?a.video.quality:"unknown"};
h.qj=function(a){var b=this.app,c=rq(b,this.playerType);c&&!b.W.isMobile&&(a=Yt(a,a,!0),h2(c,"p",a))};
h.zr=function(){var a=rq(this.app,this.playerType);return a?(a=Q(e2(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
h.PD=function(){return this.Em()};
h.QD=function(){return 1};
h.Em=function(){return u9(this.app)};
h.RD=function(){return 0};
h.setSize=function(){this.app.D.ef()};
h.Dr=function(a){var b=this.app;a=a?2:1;i5(b).Fd=a;b.Oa("autonavchange",a)};
h.Er=function(a){var b=this.app;i5(b).Fd=a;b.Oa("autonavchange",a)};
h.YD=function(a){var b=this.app;b.W.kl=a;b.Oa("minimized")};
h.nj=function(a){var b=this.app.B;b.isAvailable(a)&&(a=DH(b,a))&&!a.loaded&&a.load()};
h.Ir=function(a){var b=this.app.B;b.isAvailable(a)&&(a=DH(b,a))&&a.loaded&&a.unload()};
h.Fm=function(a,b,c){a=M9(this.app,uH(a,b,c),this.playerType);Q9(this.app,a,this.playerType)};
h.Cm=function(a,b,c){var d=this.playerType;R9(this.app,new Bw(uH(a,b,c)),d)};
h.VD=function(a,b,c){a=tH(a,b,c);b=M9(this.app,a,this.playerType);Q9(this.app,b,this.playerType);b=this.app;(a=nh(new P(a.mediaContentUrl)))&&WG(b.W,a)};
h.ID=function(a,b,c){a=tH(a,b,c);b=this.playerType;R9(this.app,new Bw(a),b);b=this.app;(a=nh(new P(a.mediaContentUrl)))&&WG(b.W,a)};
h.getVideoUrl=function(){var a=this.app.V();if(a.B)return"";var b=i5(this.app),c=void 0;b.Da||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.ce()||void 0,c)};
h.Dm=function(){return D9(this.app)};
h.Ar=function(){var a=this.app,b=i5(a),c=a.D.Ma(),a="https://"+bH(a.W)+"/embed/"+b.videoId;b.playlistId&&(a=Wg(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+wa(a)+'" frameborder="0" allowfullscreen></iframe>'};
h.yr=function(a,b,c){return Y9(this.app,a,b,c)};
h.Cr=function(a){a:{for(var b=this.app,c=b.j.D.j.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.j.D.bh(e);sq(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
h.Br=function(a,b,c,d){var e=this.app;e.Y=!1;T9(e,a,b,c,d);Q9(this.app,!0,this.playerType)};
h.GD=function(a,b,c,d){var e=this.app;e.Y=!0;T9(e,a,b,c,d)};
h.oj=function(){V9(this.app);Q9(this.app,!0,this.playerType)};
h.pj=function(){W9(this.app);Q9(this.app,!0,this.playerType)};
h.Gm=function(a){X9(this.app,a);Q9(this.app,!0,this.playerType)};
h.setShuffle=function(a){var b=this.app.o;b&&b.setShuffle(a)};
h.XD=function(a){var b=this.app.o;b&&(b.J=a)};
h.bc=function(){var a=this.app.o;if(!a)return null;for(var b=[],c=0;c<a.A;c++){var d=a.rb(c);d&&b.push(d.videoId)}return b};
h.ND=function(){var a=this.app.o;return a?a.j:-1};
h.ce=function(){var a=this.app.o;return a&&a.C?a.C.toString():null};
h.de=function(a,b,c){return HH(this.app,a,b,c)};
h.xb=function(a,b,c){return HH(this.app,a,b,c)};
h.gh=function(a){return g$(this.app,a)};
h.getVideoData=function(){var a=rq(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.Gr=function(){var a=this.app.D;a.C||(a.C=new L5(a.app),J(a,a.C),a.C.j(a.element));a.C.show()};
h.TD=function(){var a=this.app.D;a.C&&a.C.ea()};
h.getAdState=function(){return this.app.getAdState()};
h.UD=function(a){if(a!=this.app.X.args.video_id)return!1;a=(a=rq(this.app,1))?a.getPlayerState():null;return!(!a||!V(a,128)||5!=D$[a.j.errorCode])};
h.OD=function(){var a=this.app.X.clone(),b=a.args,c=i5(this.app),d=gc(c.B);!c.Da&&0<c.startSeconds&&(d.start=c.startSeconds);pa(b,d);return a};
h.ZD=function(a,b){var c=this.app;c.G&&H5(c.G,a,b);fH(c.W)&&6!=c.J&&(c.W.og=!kb(a),c.W.og?(1!=c.J&&3!=c.J||!b||t9(c,c.F),a.length&&1!=c.J&&r9(c)):t9(c,c.G))};
h.destroy=function(){this.app.dispose()};
h.WD=function(){var a=rq(this.app);a&&!V(a.getPlayerState(),128)&&(a.O("internalAbandon"),K1(a),J1(a))};
h.S=function(){if(this.j){for(var a in this.A)this.j[a]=null;for(a in this.B)this.j[a]=null;this.j=null}this.D=this.C=null;wH.M.S.call(this)};B(yH,wH);h=yH.prototype;h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.yr=function(a,b,c,d,e){return Y9(this.app,a,b,c,d,e)};
h.$D=function(a,b,c,d){FG(this.app.V().H,a,{ue:b,Sf:c,Rh:d})};
h.aE=function(a){var b=this.playerType;R9(this.app,new Bw(a),b)};
h.getPlayerState=function(a){return F9(this.app,a)};
h.sj=function(a){M9(this.app,a,this.playerType)};
h.jE=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.K&&b.K.getVideoData().videoId==a.videoId||(a=new Bw(a),O9(b,a))};
h.Wc=function(){d$(this.app,this.playerType)};
h.Tb=function(a,b){e$(this.app,a,b,void 0,this.playerType)};
h.Br=function(a,b,c,d){var e=this.app;e.Y=!1;T9(e,a,b,c,d)};
h.oj=function(a){V9(this.app,a)};
h.pj=function(a){W9(this.app,a)};
h.Gm=function(a){X9(this.app,a)};
h.Xc=function(a,b,c){var d=this.app,e=this.playerType;e$(d,d.getCurrentTime()+a,b,c,e)};
h.qE=function(a){if(a){var b=this.ce();if(!b||b==a.list){var c=a.video;(b=this.app.o)?this.app.Va.Ja()&&((c=c[b.j])&&c.encrypted_id!=b.rb().videoId||(a.index=b.j)):h9(this.app,{list:a.list,index:a.index,playlist_length:c.length});vx(this.app.o,a)}}else a=this.app,i9(a),a.Oa("onPlaylistUpdate")};
h.pE=function(){HG()};
h.rE=function(a){var b=rq(this.app,this.playerType||1);b&&(b=b.getVideoData(),Dw(b,a),b.O("dataupdated"))};
h.fE=function(){var a=this.app.getVideoData();return a.B.storyboard_spec||a.B.live_storyboard_spec};
h.dE=function(){var a=this.app.V();return{Ab:a.Ab,gb:a.gb}};
h.getVideoData=function(){var a=yH.M.getVideoData.call(this),b=rq(this.app,this.playerType),b=b?b.getVideoData():{};a.cpn=b.clientPlaybackNonce;a.isLive=b.Da;a.backgroundable=b.backgroundable;return a};
h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):yH.M.getCurrentTime.call(this)};
h.fh=function(a){return a?C9(this.app,a):yH.M.fh.call(this)};
h.Ve=function(){var a=this.app.getVideoData(),b=rq(this.app),c=SH(this.app.Va),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.fh(),k=rq(this.app,void 0);if(k)var l=B1(k.o),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:j2(b,!0),seekableStart:cx(b.j)}};
h.Em=function(a){return u9(this.app,a)};
h.canPlayType=function(a){return this.app.canPlayType(a)};
h.kE=function(a,b){B9(this.app,a,this.playerType,b)};
h.cE=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.j&&b.Da){var c=b.j.j[b.o.id];c&&c.index?(b=c.index.lf(a),c=c.index.ee(b),a={sequence:b,elapsed:Math.floor(1E3*(a-c))}):a=null}else a=null;return a};
h.cg=function(a){var b=this.app,c=rq(b,this.playerType);c&&b.W.oa.contains(a.toString())&&c.A&&(b=WA(c.A,"engage"),b.C=a,b.send(void 0))};
h.hh=function(a){this.app.Xf("cards_drawer_set_visible",a)};
h.hE=function(a,b){var c=this.app;c.ca&&(c=c.ca,c.U&&Q6(c.U,a,b))};
h.ag=function(){return A9(this.app,this.playerType)};
h.Im=function(a){var b=this.app,c=this.playerType,d=b.da.set_audio_track?b.oa:null;if(d)d.Td("control_set_audio_track",a);else{if(c=b=rq(b,c))if(c=!b.isDisposed()&&!V(b.B,128)&&b.j.A.j)c=b.C,c.isDisposed()?a=!0:(d=c.D,a=a.id,d.C="m",d.B=d.D.j[a],d.K=L_(d),c.O("audioformatchange",new H_(d.K,d.A,d.C)),c.j&&!c.j.j.remove?a=!1:(N0(c,c.o,L_(c.D)),k0(c.o),P0(c),a=!0)),c=!a;c&&(BH(b),b2(b))}};
h.Jr=function(){var a=rq(this.app,this.playerType);return a.j.A?a.j.A.audioTracks:[]};
h.eE=function(){var a=rq(this.app,this.playerType);return a&&a.getVideoData().o?bu(q1(a.ga,a.j)):"unknown"};
h.mE=function(a,b){f$(this.app,a,b)};
h.bE=function(){var a=DH(this.app.B,"fresca");a&&a.B.B()};
h.oE=function(){var a=this.app.ca;a.Fa=!1;a.Tf()};
h.iE=function(){var a=this.app.ca;a.Fa=!0;a.Tf()};
h.gE=function(){return vH(this.app.V())};
h.nE=function(){return this.app.V().experiments.ma("send_presence_signal_vis_desktop")};
h.Hm=function(a){return HE(this.app.D,a)};
h.lE=function(a){this.app.V().enableSafetyMode=a};B(zH,yH);h=zH.prototype;h.Fm=function(a,b,c){this.sj(uH(a,b,c))};
h.Aa=function(){return IE(this).element};
h.V=function(){return this.app.V()};
h.bc=function(){return this.app.o};
h.getVideoData=function(a){return(a=rq(this.app,a||this.playerType))&&a.getVideoData()};
h.Ja=function(){return this.app.V().Hg};
h.addEventListener=function(a,b,c){this.app.subscribe(a,b,c)};
h.removeEventListener=function(a,b,c){this.app.Ba(a,b,c)};
h.qj=function(a){B9(this.app,a,this.playerType)};
h.Dm=function(a){return D9(this.app,a)};
h.getVideoUrl=function(a,b,c){var d=this.getVideoData(),e=void 0;a||d.Da||(e=Math.floor(this.getCurrentTime()));return this.app.V().getVideoUrl(d.videoId,2==this.getPresentingPlayerType()?void 0:this.ce()||void 0,e,b,c)};
h.hh=function(a){var b=DH(this.app.B,"iv-module");b&&jF(b,a)};
h.cg=function(a,b){var c=this.app,d=rq(c,this.playerType);d&&c.W.oa.contains(a.toString())&&d.A&&(c=WA(d.A,"engage"),c.C=a,c.send(b))};
h.fb=function(a,b){Z9(this.app,a,b||this.playerType)};
h.Ri=function(a){var b=rq(this.app,this.playerType);b&&b.Ri(a)};
h.xb=function(a,b,c){return HH(this.app,a,b,c,!0)};
h.gh=function(a){return g$(this.app,a,!0)};
h.de=function(a,b,c){return HH(this.app,a,b,c,!0)};
h.setVolume=function(a){a=le(Math.floor(a),0,100);H9(this.app,{volume:a,muted:this.uc()},!0)};
h.mute=function(){H9(this.app,{muted:!0,volume:this.Db()},!0)};
h.unMute=function(){H9(this.app,{muted:!1,volume:Math.max(5,this.Db())},!0)};B(cI,pq);h=cI.prototype;h.Ta=function(){return!!this.j.getVideoData().spacecastModule};
h.create=function(){cI.M.create.call(this);var a;a:{var b=nj("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.o=a;this.load()};
h.destroy=function(){cI.M.destroy.call(this);this.o=null};
h.load=function(){cI.M.load.call(this);if(this.o){var a=this.j.getVideoData().videoId,b=K();$H(this.o,a,A(this.hx,this,a,b))}else tq(this)};
h.sd=function(a){switch(a){case "getVideo":a=this.j.getVideoData();var b=Boolean(a&&dx(a)&&a.o&&a.o.video.j);return{docid:a.videoId,isFastLoad:b}}};
h.hx=function(a,b,c){if(this.o){b=K()-b;var d=!1,e=this.j.getVideoData(),f="unknown",k=XH(c);e.Nj=Yb(k);if(c){c.status&&(f=c.status);if(k=YH(this.o,c,e.adaptiveFormats))e.spacecastAdaptiveFormats=k;if(c=YH(this.o,c,e.Uf))e.spacecastFormatMap=c;if(k||c)Xw(e,this.j.V()),e.N||AH(this.j),d=bu(e.Sg),this.j.qj(d),d=!0}(c=2==this.j.getPresentingPlayerType())&&!d?rd(function(){var a=this.j.app;a.F&&a.F.G&&(a=a.F,a.D&&(a=a.A.o.j,null!=a&&a.vj()))},this):tq(this);
Ui("yt-spacecast-cache-watch-video-cached",a,d);bI(Ug({a:"spacecast",module:"player",status:f,docid:a,cached:d?1:0,"cache-latency":b,isAd:c?1:0}))}};var HI=/^#(?:[0-9a-f]{3}){1,2}$/i,q8="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),r8=["none","raised","depressed","uniform","dropShadow"],kga=["sub","inherit","super"],GJ={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0},lga=["left","right","center"],gI={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},hI={id:0,priority:0,colCount:100},EJ={id:98},oJ={id:99,priority:1,anchorPoint:0,leftPercentage:5,topPercentage:5,rowCount:2,textAlign:0},A8=["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%"}],S6=[{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%"}]}];B(fI,S);h=fI.prototype;h.getType=function(){return this.type};
h.rd=function(a,b){a&&pa(this.Ga,a);var c=this.Ga.charEdgeStyle,d=this.Ga.textOpacity,e="";if(0!=c){var f="rgba(34, 34, 34, "+d+")",k="rgba(204, 204, 204, "+d+")";this.Ga.charEdgeColor&&(k=f=this.Ga.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.Ga.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=lC(this.Ga.color),k=lC(this.Ga.background),l="rgba("+l[0]+","+l[1]+","+l[2]+","+d+")",d=this.Ga.offset||1,e={color:l,fill:l,"background-color":"rgba("+k[0]+","+k[1]+","+k[2]+","+this.Ga.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":f,"font-weight":this.Ga.bold?"bold":"","font-style":this.Ga.italic?"italic":"","text-decoration":this.Ga.underline?
"underline":"","vertical-align":kga[d]};Of(this.o,e);Of(this.C,e);b&&(this.P=b.height/360);e=lC(this.Ga.windowColor);c=this.Ga.windowOpacity;f=this.Ga.fontSizeIncrement||0;1!=d&&(f*=.8);Of(this.J,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*f)*this.P)+"px"})};
h.Xh=function(){var a;Cf(this.C,"C");this.J.appendChild(this.C);a=this.C.offsetHeight;this.J.removeChild(this.C);return a};
h.Wd=function(){if(this.o){if(0!=this.id&&98!=this.id)if(hg(this.element,"100%"),pt("cobalt")){for(var a=this.element,b=this.o.innerHTML.split("</br>"),c=0,d=0;d<b.length;d++){var e=b[d].replace(/<p>|<\/p>/g,"").trim();e.length>c&&(c=e.length)}hg(a,c+"em")}else hg(this.element,this.o.offsetWidth+1);iI(this);this.ob(this.Ga.isVisible)}};
h.Pq=function(a){if(a.length){var b=a[a.length-1].G;b&&this.rd(sI(b))}for(var b="",c=0;c<a.length;){0<c&&(b+="<br>");var d=a[c].o;for(c++;c<a.length;c++){var e=a[c];if(e.F)d+=e.o;else break}b+=jI(String(d))}this.$d(b);this.F=a};
h.$d=function(a){this.L=a;this.o.innerHTML=a;this.element.style.textAlign=lga[this.Ga.textAlign];1==this.Ga.textPrintDirection?this.o.setAttribute("dir","rtl"):this.o.removeAttribute("dir");this.Wd()};
h.toString=function(){var a="Caption window ("+this.id+"): "+this.L,b;for(b in this.Ga)a+=b+" "+this.Ga[b]+" | ";return a};
h.Oh=function(){this.F=[];this.$d("")};B(lI,lq);lI.prototype.toString=function(){return lI.M.toString.call(this)};
B(nI,lq);B(tI,kI);B(uI,kI);B(zI,kI);B(II,kI);var KI=/NOTE/,JI=/(?:\r\n|\r|\n){2,}/,LI=/\r\n|\r|\n/,MI=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;B(TI,H);h=TI.prototype;h.sk=function(a){var b=this.j.o,c=QI(this.j,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};
h.Kd=function(){return null};
h.seek=function(){};
h.Yl=function(){};
h.S=function(){TI.M.S.call(this);this.Yl()};B(VI,TI);h=VI.prototype;h.Nn=function(){for(var a=[],b=QI(this.j,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:Ut(d),srclang:d.j,src:WI(this,d)};d==this.sk()&&(e["default"]=1);a.push(O("track",e))}return a};
h.pl=function(a,b){bb(!this.isDisposed());var c=WI(this,a),d=A(function(c){this.A=null;c=new OI(c.responseText);b(c,a)},this);
this.A&&this.A.abort();this.A=Gj(c,{format:"RAW",kb:d,withCredentials:!0});this.o&&this.o.tg!=a&&(this.o.jk=a)};
h.ql=function(a,b,c,d){this.B=c;if(this.o=d||null)for(b=0;b<this.o.captionTracks.length;b++)RI(this.j,this.o.captionTracks[b]);a()};
h.Kd=function(){return this.o?this.o.tg:null};
h.sk=function(){return this.o?this.o.jk:null};
h.S=function(){this.A&&this.A.abort();VI.M.S.call(this)};ZI.prototype.contains=function(a){a=yb(this.sa,a);return 0<=a||0>a&&1==(-a-1)%2};
ZI.prototype.length=function(){return this.sa.length/2};B($I,H);$I.prototype.S=function(){Ji(this.A);this.A=0;this.B=!0;this.C&&this.C.abort()};
$I.prototype.resume=function(){this.B=!1;Ji(this.A);this.seek(this.o.getCurrentTime());dJ(this)};
$I.prototype.seek=function(a){this.j=cb(this.H.Zh(a).j)};
$I.prototype.J=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.B||null===this.F||(a=new OI(a.responseText,1E3*this.D.j[0].startTime),this.F(a));this.C=this.D=null};B(eJ,TI);h=eJ.prototype;h.pl=function(a,b){aJ(this.o,function(c){b(c,a)});
this.o.H=this.A.j[a.j];this.o.resume()};
h.ql=function(a){RI(this.j,new St({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};
h.seek=function(a){this.o.seek(a)};
h.Yl=function(){var a=this.o;Ji(a.A);a.A=0;a.B=!0};
h.S=function(){this.o.dispose();eJ.M.S.call(this)};B(fJ,fI);h=fJ.prototype;h.Xh=function(){return this.D[0]?this.D[0].offsetHeight:0};
h.Wd=function(){0!=this.id&&(hg(this.element,"100%"),hg(this.element,this.G?gJ(this):this.B.width));var a=Math.round(this.Ga.rowCount*this.Xh());this.element.style.maxHeight=a+"px";iI(this);this.ob(this.Ga.isVisible)};
h.$d=function(a){this.Oh();a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=O("div",{"class":"caption-row-holder"}),e=O("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.H;d.appendChild(e);e.innerHTML=a[b];this.G||(this.o.style.height=this.B.height+"px",this.o.style.width=this.B.width+"px",d.style.position="absolute",d.style.top=this.B.Bq[b]+"px",d.style.left=this.B.Aq[b]+"px");this.o.appendChild(d);this.D.push(e)}this.Wd()};
h.Oh=function(){for(var a=0,b=this.D.length;a<b;a++){var c=Jf(this.D[a],"caption-row-holder");sf(c)}this.D=[]};
h.rd=function(a,b){fJ.M.rd.call(this,a,b);this.H=this.o.style.backgroundColor;this.o.style.backgroundColor="";for(var c=0,d=this.D.length;c<d;c++)this.D[c].style.backgroundColor=this.H};B(hJ,fI);hJ.prototype.Wd=function(){hg(this.element,"100%");var a=this.element.offsetWidth,a=Math.min(kJ(this),a);hg(this.element,a+"px");hg(this.J,"100%");this.o.style.whiteSpace="nowrap";iI(this);this.ob(this.Ga.isVisible)};
hJ.prototype.Pq=function(a){var b=a.length;if(0>=b)this.Oh();else{for(var c=0;c<b&&0<=this.F.indexOf(a[c]);)c++;this.F=this.F.concat(a.slice(c));iJ(this)}};
hJ.prototype.Oh=function(){this.F=[];this.B=[];this.D=0;this.B=[];this.G=[];jJ(this)};
hJ.prototype.K=function(){this.element.style.overflow="visible";this.o.style.top=0;ae(this.o,"caption-rollup");this.B.push("");this.G.push(0);iJ(this)};B(lJ,TI);lJ.prototype.Nn=function(){for(var a=[],b=QI(this.j,void 0),c=0;c<b.length;c++){var d=b[c],e=mJ(this,d),e={kind:"subtitles",label:d.B,srclang:d.j,src:e};d.isDefault&&(e["default"]=1);a.push(O("track",e))}return a};
lJ.prototype.pl=function(a,b){bb(!this.isDisposed());var c=mJ(this,a),d=A(function(c){this.o=null;c=new OI(c.responseText);b(c,a)},this);
this.o&&this.o.abort();this.o=Gj(c,{format:"RAW",kb:d,withCredentials:!0});SI(this.j,a)};
lJ.prototype.ql=function(a,b,c){var d=this.A;b={type:"list",tlangs:1,v:this.B,fmts:Number(b||!1),vssids:1};this.Ro&&(b.asrs=1);d=wj(d,b);b=A(function(b){this.o=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.j,k=b.getElementsByTagName("track"),l=k.length,m=0;m<l;m++){var p=k[m].getAttribute("formats"),u=c,t=k[m].getAttribute("lang_code"),w=k[m].getAttribute("lang_translated"),z=k[m].getAttribute("name"),E=k[m].getAttribute("kind"),M=k[m].getAttribute("id"),G="true"==k[m].getAttribute("lang_default"),
I="true"==k[m].getAttribute("cantran"),Ta=k[m].getAttribute("vss_id");RI(d,new St({formats:p,format:u,languageCode:t,languageName:w,name:z,kind:E,id:M,is_servable:!0,is_default:G,is_translateable:I,vss_id:Ta}))}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"),t="true"==b[k].getAttribute("lang_default"),l={languageCode:l,languageName:m,languageOriginal:p,
id:u,is_default:t},this.D[l.languageCode]=l.languageName,this.C.push(new Rt(l))}a()},this);
this.o&&this.o.abort();this.o=Gj(d,{format:"RAW",kb:b,withCredentials:!0})};
lJ.prototype.S=function(){this.o&&this.o.abort();lJ.M.S.call(this)};B(nJ,pq);h=nJ.prototype;h.create=function(){nJ.M.create.call(this);this.C=this.j.getVideoData();-1==A8.indexOf(this.W.X)&&L(this.j.Aa(),"cc-international");this.B=gc(GJ);pa(this.B,vq(this,"display-settings"));qJ(this,"fontFamilyOption","fontFamily",q8,4);qJ(this,"charEdgeStyle","charEdgeStyle",r8,3);this.U=new S(["div",["ytp-player-content","ytp-subtitles-player-content"]]);Xq(this.j,this.U.element,4);(this.C.Da&&pJ(this)?0:this.C.captionTracks.length&&this.j.ag().tg||rJ(this,!0))&&this.load()};
h.destroy=function(){Dq(this.U);this.U.dispose();nJ.M.destroy.call(this)};
h.load=function(){this.ga="1"==this.C.B.cc_auto_caps||"1"==this.W.L.cc_auto_caps;nJ.M.load.call(this);this.ca=!0;if(this.C.Da)this.A=new eJ(this.C.j,this.j),this.subscribe("seekto",this.Qr,this);else{var a=this.C.pe||this.W.La||this.C.Oc("yt:cc_default_lang")||this.W.X,a=a&&a.split("_").join("-");this.C.captionTracks.length?this.A=new VI(this.C):this.A=new lJ(this.C.Kh,this.C.videoId,a,this.C.Jh)}sJ(this)};
h.unload=function(){this.F&&(AJ(this),this.Fl("control_subtitles_set_track"));if(pJ(this))for(var a=af("track",void 0,void 0),b=0;b<a.length;b++)sf(a[b]);else DJ(this,!1),tJ(this),this.Ba("seekto",this.Qr,this),this.A.dispose(),this.A=null;this.H=this.$=this.L=this.ca=!1;nJ.M.unload.call(this)};
h.gq=function(){this.ca=!1;if(pJ(this))for(var a=this.K.o,b=this.A.Nn(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(c=this.H||rJ(this,!this.$),b=QI(this.A.j,!0),0<b.length){this.$=!0;a=this.o&&-1!=b.indexOf(this.o);if(c&&!a)if(c=this.A.sk(),!c&&this.H&&(c=b[0]),c)this.ha=!0,xJ(this,c),a=!0;else if(this.L||uJ(this),b=this.A.j.A,b.length&&(b=b[0].toString(),this.H||this.ga))a=UI(this.A,b),xJ(this,a,void 0),a=!0;this.O("publish_external_event","onCaptionsTrackListChanged");a||wJ(this)}else if(this.A.Kd())wJ(this);
else if(a=this.j.app.B,b=DH(a,this.qa))ob(a.j,b),b.destroy()};
h.hq=function(a,b){this.ha&&(this.ha=!1,this.O("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.o||!b.equals(this.o))){tJ(this);this.o=b;this.oa=Pfa.test(b.j);var c={trackName:b.B,trackKind:b.A};b.o?(c.trackLangCode=b.o.languageCode,c.fromLangCode=b.j):c.trackLangCode=b.j;this.log(c);b!=this.A.Kd()&&(this.H&&(c=Ut(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=R("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.T.element),this.T.$d(c),this.T.rd(this.B,this.K.Ma()),this.T.Wd(),this.ia.Qf()),this.O("publish_external_event","captionschanged",Tt(b)),(this.W.experiments.ma("cc_sticky_behavior")||this.H||QG(this.W))&&wq(this,"module-enabled",!0),(c=rq(this.j.app))&&c.A&&DA(c.A.A))}this.L||uJ(this);this.fb(a.o.concat(a.j))};
h.Qb=function(a){this.Y.push(a);this.fa.Qf()};
h.Xb=function(a){ob(this.Y,a);this.fa.Qf()};
h.jC=function(a){if(this.o)if(a instanceof nI){var b=this.J[a.id];pa(a.params,this.B);oI(a);b&&b.getType()!=qI(a)&&(b.dispose(),delete this.J[a.id],b=null);if(!b){var b=this.J,c=a.id,d;a:{d=a.id;var e=a.params;switch(qI(a)){case 1:d=new fJ(d,e);break a;case 2:d=new hJ(d,e);break a;default:d=new fI(d,e)}}b=b[c]=d;c=b.element;N(c,"captions-asr","asr"==this.o.A);null!=a.params.textPrintDirection&&(a.params.textPrintDirection=this.oa?1:0);this.U.element.appendChild(c)}b.rd(a.params,this.K.Ma());if(1==
qI(a)){b.K=jI(a.o);b.B={};b.G=!0;b.$d(b.K);b.B.zq=b.D.length;b.B.width=b.element.offsetWidth;b.B.height=b.element.offsetHeight;b.B.Aq=[];b.B.Bq=[];for(a=0;a<b.B.zq;a++)b.B.Bq.push(b.D[a].offsetTop),b.B.Aq.push(b.D[a].offsetLeft);b.G=!1;b.$d(b.K)}}else b=a.C,this.X[b]||(this.X[b]=[]),this.X[b].push(a)};
h.Bp=function(){this.L&&(vJ(this),Ob(this.J,function(a){a.Wd()},this))};
h.sC=function(){Dq(this.T)};
h.Zl=function(){this.fa.stop();this.L&&(dc(this.X),this.Y.sort(oq),F(this.Y,this.jC,this),Ob(this.J,function(a,b){this.X[b]?a.Pq(this.X[b]):(a.dispose(),delete this.J[b])},this),yJ(this),this.D&&this.D.Wd())};
h.Jl=function(){wq(this,"display-settings",this.B)};
h.sd=function(a,b){switch(a){case "fontSize":return(0,window.isNaN)(b)||(this.B.fontSizeIncrement=Math.max(-2,Math.min(4,b)),vJ(this)),this.B.fontSizeIncrement;case "reload":b&&sJ(this);break;case "stickyLoading":void 0!=b&&this.W.gb&&wq(this,"module-enabled",!!b);break;case "track":if(b){if(!ha(b))break;if(cc(b)){BJ(this);break}for(var c,d=QI(this.A.j,!0),e=0;e<d.length;e++){var f=d[e];f.j!=b.languageCode||c&&f.D!=b.languageName||(c=b.translationLanguage?Vt(f,b.translationLanguage):f)}c&&xJ(this,
c,!0)}else return this.o&&this.o!=this.A.Kd()?Tt(this.o):{};return"";case "tracklist":return this.$?Q(QI(this.A.j,b&&b.includeAsr),function(a){return Tt(a)}):[];
case "translationLanguages":return this.$?this.A.C:[];case "displaySettings":return b&&ha(b)&&FJ(this,b),c=gc(this.B),c.fontFamilyOption=q8[c.fontFamily],c.charEdgeStyle=r8[c.charEdgeStyle],c;case "sampleSubtitles":void 0!=b&&DJ(this,!!b);break;case "xmlTrack":b&&this.W.gb&&(tJ(this),c=new OI(b.xml),this.o=new St({languageName:b.name}),this.hq(c,this.o))}};
h.We=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.W.gb&&a.push("stickyLoading","xmlTrack");return a};
h.ck=function(a,b){return a&&y(a)&&HI.test(a)?a:b};
h.tl=function(a,b){return fa(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b};
h.wv=function(a,b){if(a&&y(a)){var c=r8.indexOf(a);return-1!=c?c:b}return b};
h.$v=function(a,b){if(a&&y(a)){var c=q8.indexOf(a);return-1!=c?c:b}return b};
h.aw=function(a,b){return fa(a)&&!(0,window.isNaN)(a)?Math.max(-2,Math.min(4,a)):b};
var HJ=null;h=nJ.prototype;h.Ta=function(a){if("lb3"==a.V().j)return!1;a=a.getVideoData();var b;if(b=a.Da)b=a.j,b=!(!b||null==b.j.en);return!!(a.Kh||a.captionTracks.length||b)};
h.Di=function(a){a?tJ(this):this.loaded&&(this.unload(),this.load())};
h.Qr=function(){this.A.seek(this.j.getCurrentTime())};
h.kh=function(){var a=this.o;return a?{cc:a.F}:null};
h.xB=function(){this.H=!0;this.loaded?this.o&&this.o!=this.A.Kd()?BJ(this):this.gq():this.load()};
h.Wy=function(){this.C.captionTracks.length&&(this.loaded?sJ(this):(this.j.ag().tg||rJ(this,!0))&&this.load())};B(IJ,pq);h=IJ.prototype;h.Ta=function(){return JJ(this.j)};
h.create=function(){IJ.M.create.call(this);var a=new lq(1E3,0x7ffffffffffff,{priority:0});this.fb([a]);this.subscribe("heartbeatparams",this.DE,this);this.subscribe("onStateChange",this.EE,this)};
h.destroy=function(){QJ(this);IJ.M.destroy.call(this)};
h.Qb=function(){this.D=!0;MJ(this,2E3)};
h.DE=function(a){this.A=a;MJ(this,2E3)};
h.EE=function(a){V(a.state,2)||V(a.state,64)?QJ(this):(V(a.state,1)||V(a.state,8))&&MJ(this,2E3)};
h.xC=function(){var a,b,c=this.j.V(),d=this.j.getVideoData();b=c.baseYtUrl;V(pz(this.j),4)?this.o=window.NaN:LJ(this)?($w(d)?(a="GET",b=Wg(this.A.url,{request_id:yu()}),d.L&&(b=Wg(b,{vvt:d.L})),d.oauthToken&&(b=Wg(b,{access_token:d.oauthToken}))):(a="GET",c=c.o,b=Wg(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.L,access_token:d.oauthToken})),b=Wg(b,{cpn:d.clientPlaybackNonce}),Gj(b,{format:"RAW",method:a,timeout:3E4,kb:A(this.ey,this),
onError:A(this.cy,this),Ud:A(this.fy,this),withCredentials:!0})):QJ(this)};
h.ey=function(a){if(this.o){a=a.responseText;var b;b=(b=PJ(a))?"ok"==b.status?0:"stop"==b.status?1:-1:(b=a.match(G$))?"0"==b[1]?0:1:-1;if(-1==b)NJ(this,"decode");else if(this.B=0,this.o=window.NaN,1==b){this.C=!1;b="YTP_ERROR_LICENSE";var c=PJ(a);c?a=c.reason||R(b):((a=a.match(G$))&&(a=(0,window.parseInt)(a[1],10))&&(b=fy(a)),a=R(b));OJ(this.j.app.j,"heartbeat",a,void 0)}else this.C=!0,MJ(this)}};
h.cy=function(a){NJ(this,"net-"+a.status)};
h.fy=function(){NJ(this,"timeout")};
var G$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;B(RJ,pq);h=RJ.prototype;h.Ta=function(){return TJ(this.j)};
h.create=function(){RJ.M.create.call(this);var a=this.o.element;L(a,this.qa);IE(this.j).L.appendChild(a)};
h.sd=function(a,b){if(!UJ(this.j.V().j))return null;switch(a){case "loadCustomEndscreenJson":return b&&VJ(this,b),!0;case "unloadCustomEndscreenJson":return VJ(this,null),!0}return null};
h.destroy=function(){VJ(this,null);Dq(this.o);this.o.dispose();Dq(this.A);this.A.dispose();RJ.M.destroy.call(this)};
h.load=function(){RJ.M.load.call(this);VJ(this,null);var a=this.j.getVideoData().videoId;this.J++;this.D&&this.D.abort();var a={Rb:A(this.Rz,this,a,this.J),Vc:{v:a}},b=this.j.getVideoData().B.iv_endscreen_url;this.D=Gj(b,a)};
h.unload=function(){VJ(this,null);RJ.M.unload.call(this)};
h.BE=function(a){a.state.Ua()&&(this.loaded||this.load())};
h.Rz=function(a,b,c){this.D=null;var d=this.j.getVideoData().videoId;b==this.J&&a==d&&(a=null,200==c.status&&(c=c.responseText,")]}"==c.substring(0,3)&&(c=c.substring(3),a=JSON.parse(c))),VJ(this,a))};
h.UC=function(){var a=this.j.Hm().width,a=640>a?"creatorendscreen-size-640":853>a?"creatorendscreen-size-853":1280>a?"creatorendscreen-size-1280":"creatorendscreen-size-INF";this.B!=a&&(this.B&&ae(this.o.element,this.B),L(this.o.element,a),this.B=a)};
h.zE=function(){L(this.A.element,"creatorendscreen-darken-overlay-show")};
h.AE=function(){ae(this.A.element,"creatorendscreen-darken-overlay-show")};
h.Qb=function(a){RJ.M.Qb.call(this,a);if("ytp-creatorendscreen-active"==a.getId())aK(this,this.K.impressionUrls);else{a=a.getId().substring(29);var b=this.C[a];b&&L(b.element,"creatorendscreen-element-show");(a=this.H[a])&&aK(this,a.impressionUrls)}};
h.Xb=function(a){var b=this.C[a.getId()];b&&ae(b.element,"creatorendscreen-element-show");RJ.M.Xb.call(this,a)};
h.yE=function(a,b){b.stopPropagation();b.preventDefault();var c=a.clickUrls,d=a.targetUrl;"WEBSITE"==a.type||"CHANNEL"==a.type?(aK(this,c),this.j.pauseVideo(),this.Or(d,"_blank")):aK(this,c,A(this.Or,this,d,"_top"))};
h.Pz=function(a){aK(this,a.hoverUrls)};
h.Or=function(a,b){var c=vj(a),d=null;"ei"in c&&(d={ei:c.ei},a=$g(a,"ei"));Ix(a,d);Jx(a,b)};B(cK,pq);h=cK.prototype;h.Ta=function(){return gx(this.j.getVideoData(),"ypc_clickwrap_module")};
h.create=function(){cK.M.create.call(this);this.load()};
h.load=function(){cK.M.load.call(this);this.o=new S(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",R("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.j.getVideoData().B.ypc_clickwrap_message],["button",["ytp-ypc-clickwrap-confirm","ytp-button"],R("YTP_YPC_START_RENTAL_BUTTON")]]);Xq(this.j,this.o.element,4);J(this,this.o);this.A=this.o.na["ytp-ypc-clickwrap-confirm"];T(this.o,this.A,"click",this.zz,this)};
h.unload=function(){cK.M.unload.call(this);Zl(this.A);Dq(this.o);this.o.dispose();this.o=null};
h.zz=function(){tq(this);this.destroy()};fK.prototype.j=function(a,b){var c=Math.pow(this.C,a);this.o=b*(1-c)+c*this.o;this.B+=a};
fK.prototype.A=function(){return this.o/(1-Math.pow(this.C,this.B))};gK.prototype.forEach=function(a){for(var b=this.j+1;b<this.o.length;b++)a(this.o[b]||0);for(b=0;b<=this.j;b++)a(this.o[b]||0)};
gK.prototype.Ka=function(){var a=[];this.forEach(A(a.push,a));return a};iK.prototype.j=function(a,b){kK(this,"index");this.B.push({index:this.H++,weight:a,value:b});this.o+=a;for(kK(this,"index");this.o>this.F;){var c=this.o-this.F,d=this.B[0];d.weight<=c?(this.o-=d.weight,this.B.shift()):(this.o-=c,d.weight-=c)}};
iK.prototype.A=function(){return this.D?(jK(this,this.C-this.D)+jK(this,this.C)+jK(this,this.C+this.D))/3:jK(this,this.C)};lK.prototype.j=function(a,b){this.o.push(b);this.o.length>this.B&&this.o.shift()};
lK.prototype.A=function(){return pe.apply(null,this.o)};B(xK,H);xK.prototype.H=function(a){if(this.o){var b;var c=ia(a);b=this.D[c];if(!b)if(this.o){if(b=a(this.o)){a=this.D[c]=b;for(var d in this.F)a.subscribe(d,this.F[d]);J(this,b)}}else b=null;b&&b.Ta(this.o)&&!ib(this.j,b)&&(b.create(),this.j.push(b),ib(this.C,b.qa)&&(b.F=this.G,b.Di(!!b.F)))}};
xK.prototype.J=function(a,b){F(this.j,function(c){c.O(a,b)})};
xK.prototype.isAvailable=function(a){a=DH(this,a);return!(!a||!a.da)};EK.prototype.getMessage=function(){return this.B};
EK.prototype.getErrorCode=function(){return this.j};
EK.prototype.getType=function(){return this.C};
EK.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.A?" Caused by: "+this.A:"")};B(FK,lc);FK.prototype.getError=function(){return this.A};var k_="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 mute_interaction_url mute_url mute_undo_url".split(" "),
mga="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,lc);GK.prototype.getAd=function(){return this.A};
var Vda={AG:"adCanPlay",CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",vJ:"videoClicked",Zm:"engagedview",rH:"expandedChanged",STARTED:"start",wh:"impression",an:"measurable_impression",qn:"viewable_impression",$m:"fully_viewable_audible_half_duration_impression",uH:"externalActivityEvent",PAUSED:"pause",BI:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",nH:"durationChange",
QG:"autoClose",USER_CLOSE:"userClose",USER_RECALL:"userRecall",qI:"prefetched",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",qt:"video_extend_auto_skipped",Lu:"skipshown",St:"video_extend_shown",tH:"video_extend_clicked",RH:"linearChanged",MI:"skippableStateChanged",BG:"adMetadata",zG:"adBreakReady",VH:"log",VOLUME_CHANGED:"volumeChange",AJ:"mute",fH:"companionBackfill",JJ:"youTubeVideoMetadata",IJ:"youTubeChannelMetadata",pJ:"urlNavigationRequested",hJ:"trackingUrlPinged",rJ:"video_card_endcap_action",
sJ:"video_card_endcap_collapse",tJ:"video_card_endcap_dismiss",uJ:"video_card_endcap_impression",FJ:"why_this_ad_url",EJ:"why_this_ad_got_it",dI:"MUTE_AD"};var qL={eu:5E3,fu:15E3,Du:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://yts?.moatads.com ://youtube[0-9]+.moatpixel.com www.google.com/pagead/sul www.youtube.com/pagead/sul".split(" "),Eu:/\bocr\b/,fk:0,od:{},Kq:function(a,b){a&&(qL.Yo(a)?qL.Lq(a,b):qL.zC(a,b))},
Yo:function(a){return C(D(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new P(a)).Ce().match(qL.Eu)?!0:null!=db(qL.Du,function(b){return null!=a.match(b)})},
Lq:function(a,b){if(a){var c='javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?qL.Wo(function(b){qL.Hq(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):qL.Hq(c)}},
Hq:function(a){var b=O("iframe",{src:a,style:"display:none"});a=Ye(b).body;var c,d=Ud(function(){ad(c);sf(b)},qL.fu);
c=Zc(b,["load","error"],function(){Ud(function(){Vd(d);sf(b)},qL.eu)});
a.appendChild(b)},
Wo:function(a,b){var c=qL.od.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete qL.od[c];d||(d=!0,null!=qL.od.imageLoadingEnabled||(qL.od.imageLoadingEnabled=b),a(b))};
b?b(c):qL.iy(c)}},
iy:function(a){var b=new window.Image,c,d=""+qL.fk++;qL.od[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=="},
yC:function(a){if(a){var b=nf("OBJECT");b.data=a;b.width=1;b.height=1;b.style.visibility="hidden";var c=""+qL.fk++;qL.od[c]=b;b.onload=b.onerror=function(){delete qL.od[c]};
window.document.body.appendChild(b)}},
Iq:function(a){if(a){var b=new window.Image,c=""+qL.fk++;qL.od[c]=b;b.onload=b.onerror=function(){delete qL.od[c]};
b.src=a}},
zC:function(a,b){b?qL.Wo(function(b){b?qL.Iq(a):qL.yC(a)}):qL.Iq(a)},
XJ:function(a){null!=a&&F(a,function(a){qL.Kq(a)})}};var PK=new function(){this.o="always";this.D=1;this.j=!1;this.B=!0;this.F=!1;this.C=null};var tU=["ADSENSE","ADSENSE/ADX"],cba=["DART","DART_DFA","DART_DFP"],kba=["FREEWHEEL","YT:FREEWHEEL"],OT=["GDFP"],bba=["VIRAL","ADSENSE-VIRAL"],pT={"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"},RY={$H:"video/mp4",bI:"video/mpeg",WH:"application/x-mpegURL",hI:"video/ogg",YI:"video/3gpp",CJ:"video/webm",ZH:"audio/mpeg",aI:"audio/mp4"};QK.prototype.getId=function(){return this.o};RK.prototype.getId=function(){return this.A};var YK=null;var fQ=["*.googlesyndication.com"],gL=["*.youtu.be","*.youtube.com"],lL="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(" "),kL=["c.googlesyndication.com"],nga=
["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];sL.prototype.getErrorCode=function(){return this.errorCode};
sL.prototype.getMessage=function(){return this.message};
var qda=new sL("Unable to request ads from server. Cause: {0}.",1005),oga=new sL("Unable to request ads from server due to network error.",1012),bV=new sL("Cannot parse the {0} value for the adslist response: {1}.",900),GY=new sL("Invalid usage of the API. Cause: {0}",900),LY=new sL("Unable to display one or more required companions.",602),pga=new sL("There was a problem requesting ads from the server.",1005),gda=new sL("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",
1013),gX=new sL("The provided ad type: {0} is not supported.",1005),kR=new sL("The provided {0} information: {1} is invalid.",1101),qga=new sL("The provided skip offset was invalid.",1105),rga=new sL("The extension contained is neither skippable nor nonskippable.",1105),BW=new sL("The response does not contain any valid ads.",1009),sga=new sL("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),Dba=new sL("The ad playlist response was malformed or empty.",
1010),cV=new sL("The ad response was not understood and cannot be parsed.",1010),jda=new sL("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),tga=new sL("The ad response contains unexpected element. Cause {0}.",1010),XX=new sL("No assets were found in the VAST ad response.",200),Raa=new sL("Duplicate node in <{0}>: {1}",101),CW=new sL("The VAST response document is empty.",1009),Uda=new sL("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
403),PX=new sL("Ad request reached a timeout.",301),DW=new sL("VAST response was malformed and could not be parsed.",100),K$=new sL("VAST media file loading reached a timeout of {0} seconds.",402),IX=new sL("Ad request could not be completed due to a network error.",301),uga=new sL("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),dda=new sL("The maximum number of VAST wrappers ({0}) has been reached.",302),vga=new sL("VAST media file duration differs from the VAST response duration by {0} seconds.",
202),CZ=new sL("Video player received an ad with unexpected or incompatible linearity",201),Qaa=new sL("Unknown node in <{0}>: {1}",101),cca=new sL("Invalid VAST resource type: {0}",101),uca=new sL("Invalid VAST version",102),eda=new sL("No additional VAST wrappers allowed.",300),HX=new sL("No Ads VAST response after one or more Wrappers",303),GZ=new sL("There was an error playing the video ad.",400),pca=new sL("VMAP unsupported node in <{0}>: {1}",1010),aea=new sL("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 GL={},HL="",pQ=/OS (\S+) like/,LL=/Android ([\d\.]+)/;aa(ML);h=QL.prototype;h.kv=!1;h.xn=!1;h.An=!0;h.baseYouTubeUrl=null;h.bitrate=-1;h.contentId=null;h.Kv=!1;h.Bg=null;h.surveyCreativeData=null;h.XC=!0;h.gm=!1;h.useShareButton=!1;h.hm=!1;h.useStyledNonLinearAds=!1;h.useVideoAdUi=!0;h.YC=!0;h.Sj=!1;h.Lv=!1;h.youTubeAdNamespace=0;h.showContentThumbnail=!0;h.fm=!1;h.Gf=null;h.loadVideoTimeout=15E3;h.Bn=!0;h.oq=0;h.El=-1;window.console&&"function"===typeof window.console.log&&A(window.console.log,window.console);SL.prototype.toString=function(){function a(a){a=fc(c,a);null!=a?b.push(""+a):b.push("u")}
var b=[],c=this;a("domLoading");a("domComplete");a("unloadEventStart");return b.join(".")};var bM=null;WL.prototype.getValue=function(){return this.j};
WL.prototype.oc=function(){return this.A?this.o():""};
WL.prototype.o=function(){return String(this.j)};
B(XL,WL);XL.prototype.o=function(){return this.j?"1":"0"};
B(YL,WL);YL.prototype.o=function(){return String(this.j)};
B(ZL,WL);ZL.prototype.o=function(){return this.j?Math.round(this.j.top)+"."+Math.round(this.j.left)+"."+(Math.round(this.j.top)+Math.round(this.j.height))+"."+(Math.round(this.j.left)+Math.round(this.j.width)):""};
VL.prototype.setItem=function(a){this.j[a.C]=a};
VL.prototype.getItem=function(a){return fc(this.j,a,null)};
VL.prototype.oc=function(a){var b=[];a||(a=0);for(var c in this.j){var d=this.j[c];d instanceof XL&&d.getValue()&&(a|=d.B);(d=this.j[c].oc())&&b.push(c+d)}b.push("eb"+String(a));return b.join("_")};h=fM.prototype;h.remove=function(a){ec(this.j,a)};
h.set=function(a,b){this.j[a]=b};
h.get=function(a){return fc(this.j,a,null)};
h.extend=function(a){ic(this.j,a)};
h.oc=function(){var a=[],b;for(b in this.j)a.push(b+this.j[b]);return a.join("_")};hM.prototype.oc=function(){var a=[],b=Number(this.j.get("eb"));this.j.remove("eb");var c=this.j.oc();c&&a.push(c);this.o&&(c=this.o.serialize())&&a.push(c);(c=this.A.oc(b))&&a.push(c);this.j.set("eb",b);return a.join("_")};var iP={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",Zs:"abandon",Zm:"engagedview",wh:"impression",CREATIVE_VIEW:"creativeview"},nP=["start","firstquartile","midpoint","thirdquartile",
"resume"],hO=["abandon"],jP={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,Zs:16,Zm:17,wh:18,CREATIVE_VIEW:19};var lP={v:"v",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",ps:"ps",pt:"pt",vht:"vht",mut:"mut",a:"a",ns:"ns",at:"at",as:"as",vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",px:"px",sfm:"sfm",nnut:"nnut",vme:"vme",nmtd:"nmtd",mmct:"mmct",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",dtos:"dtos",vmdtos:"vmdtos",dtoss:"dtoss",dom:"dom",fmf:"fmf",ven:"ven",veh:"veh",vds:"vds",c:"c",tth:"tth"},HP={gmm:"gmm",dom:"j"};var UO=/https?:\/\/[^\/]+/;qM.prototype.j=function(a,b,c,d,e){var f={};f.context=a;b instanceof rM||(b=tM(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.C;try{if(Math.random()<(c||d.o)){var k=d.j+(e||this.B)+oM(f),k=k.substring(0,2E3);pM(r,k)}}catch(l){}return this.o};var DM=window.document,X=window;var vM;vM=new qM(new function(){this.j="http"+("http:"==X.location.protocol?"":"s")+"://pagead2.googlesyndication.com/pagead/gen_204?id=";this.o=.01},"jserror",!0);
var PP=vM.j;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$=AM(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$=AM(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");M$=
!0;N$=AM(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$=AM(b.GetVariable("$version"))}catch(c){}})();
var sS=M$,$M=N$;if(DM&&DM.URL){var lM=DM.URL,wga=!(lM&&0<kM().length);vM.o=wga};var WM={},XM=null;WM.le=0;WM.nt=2;WM.Fr=3;var gO=0,RM=(new Date).getTime(),MM=-1,OM=!1,PM=-1,QM=-1;WM.Po=5;WM.me=1;WM.om=4;aN.prototype.getStatus=function(){return this.j};
B(dN,aN);var qN={mJ:-1,LOADING:0,Yt:1,Dt:2,hu:3,VISIBLE:4},sN={LOADING:0,Yt:1,Dt:2,dJ:3,gI:4,jJ:5,kJ:6,iJ:7,iI:8,cJ:9},tN={};h=gN.prototype;h.To=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.So=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&&!re(a,Xf(this.module))&&Vf(this.module,a)};
h.remove=function(){if(this.module)try{sf(this.module)}catch(a){}this.module=null};
h.Jw=function(a){this.o=a?3:4};
q("gteh",xM("osd_or_lidar::gteh_ex",function(a,b){var c=tN[a];ga(c)&&c(b)}),void 0);
var JN={hu:0,VISIBLE:1},xga=new qe(-99999,0);yN.prototype.X=function(){var a=AN(this);if(null===a)CN(this);else if(null===this.A)this.A=a,CN(this);else{var b=a-this.A;this.A=a;0==(4<=b?1:0)?(CN(this),zN(this,0)):(this.j.setPosition(xga),this.F=X.setTimeout(yM("osd_or_lidar::sfm_cpto",A(this.T,this)),125))}};
yN.prototype.T=function(){var a=AN(this),b=a-this.A;this.A=a;a=4<=b?1:0;CN(this);zN(this,0==a?1:0)};
B(FN,aN);FN.prototype.J=function(){var a=IN(this);this.o!=a&&(this.o=a,this.G(a))};aa(LM);var ON=new se(0,0,0,0);h=NN.prototype;h.update=function(a,b,c,d,e){if(0>this.F)return null;c||PN(this,d,e);return this.Qe(this.o,b,a,c,!1)};
h.Qe=function(a,b,c,d,e,f){var k=c-this.F||1,l=1E4;f=f||{};var m=f.duration;this.ri()&&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.H=this.Qh(b):(m=b,this.H=this.Qh(a,m));a=UN(this.H);this.bm(a,k,this.T,e,d,m,l,f);this.T=d?-1:a;this.F=c;-1!=a&&0>this.je&&(this.je=c);-1==this.ke&&this.Le()&&(this.ke=c);this.zd(this);return this.H};
h.Qh=function(a,b){var c=null;if(fa(a))return a;c=new se(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left));if(0>=this.$||c.top>=c.bottom||c.left>=c.right)return 0;var d=c.clone(),e=-a.left,f=-a.top;e instanceof qe?(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.$};
h.dm=function(a,b){this.vb[a]+=b};
h.$l=function(a,b){this.J[a]+=b;this.J[a]>this.Fa[a]&&(this.Fa[a]=this.J[a])};
h.Il=function(a){this.J[a]=0};
h.bm=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.dm(c,b,l);f=f||null;d=-1!=c&&2>=c;f?(d&&-1!=this.da&&(this.Zc[this.da]+=b),f=100*this.$/((f.bottom-f.top)*(f.right-f.left)),this.da=20<=f?0:10<=f?1:5<=f?2:2.5<=f?3:4):this.da=-1;for(f=c;0<=f&&4>=f;f++)this.$l(f,b,l);for(f=0;f<this.J.length;++f)(f<a||e||-1==a)&&this.Il(f)};
h.ri=function(){return!1};
h.Le=function(){return!1};B($N,NN);h=$N.prototype;
h.Qe=function(a,b,c,d,e,f){var k=c-this.F||1;if(!f){f={};if("as"==this.B){var l="getVideoMetadata"+this.Zd;if(ga(this.element[l]))try{f=this.element[l]()}catch(m){this.Hc=!0}}if("h"==this.B&&(l=v("ima.common.getVideoMetadata"),ga(l)))try{f=l(this.A)}catch(m){this.Hc=!0}l=f.currentTime;n(l)?f.currentTime=Math.floor(1E3*l):this.Bd=!0;l=f.duration;n(l)&&(f.duration=Math.floor(1E3*l));n(f.volume)||(this.j|=524288)}this.P=f.duration||this.P;f.duration=this.P;this.ab=f.isVpaid||this.ab;k=n(f.currentTime)?
f.currentTime:this.U+k;k<this.U&&(k=this.U,this.Cd=!0);f.deltaTime=k-this.U;$N.M.Qe.call(this,a,b,c,d,e,f);-1==this.Ha&&this.Ic&&(this.Ha=this.Ia);this.U=k;return this.H};
h.Qh=function(a,b){return this.yd?0:this.K?1:$N.M.Qh.call(this,a,b)};
h.dm=function(a,b,c){$N.M.dm.call(this,a,b,c);this.ub[a]+=c;2>=a&&(this.ga+=b,this.X+=c)};
h.$l=function(a,b,c){$N.M.$l.call(this,a,b,c);this.ca[a]+=c;this.ca[a]>this.nb[a]&&(this.nb[a]=this.ca[a])};
h.Il=function(a){$N.M.Il.call(this,a);this.ca[a]=0};
h.bm=function(a,b,c,d,e,f,k,l){if(!this.ia){$N.M.bm.call(this,a,b,c,d,e,f,k,l);a=-1==c||-1==a?-1:Math.max(c,a);d=d&&-1!=c&&2>=c?a:c;this.Ia+=b;c=-1!=d&&2>=d;if(n(k)&&.1<=k&&.1<=this.Ca){for(this.Ya+=b;0<=d&&4>=d;d++)this.ha[d]+=b;c||(this.Ea+=b)}else this.Sa=!1;this.Ea>this.bb&&(this.bb=this.Ea);if(c||!n(k)||.1>k)this.Ea=0;n(k)&&(Number(k)?(b=Math.pow(10,3),k=Math.round(k*b)/b):k=0);this.Ca=k}};
h.ri=function(){return!0};
h.Le=function(){return 2E3<=Math.max(this.J[2],this.Fa[2])};var kO=null,mO=null,oO=null,qO=null,IO=null,jO=!1,JO=[],MO=[],EO=!1,FO=null,yO=0,AO=!1,zO=!1,CO=!1,DO=!1,xO=zL()||yL(),HO=0;var ZO=null,bP="",aP=!1;h=XO.prototype;h.eo=function(){return null};
h.no=x;h.tq=x;h.Kn=x;h.Jk=function(a){if(a){if(!a.wd){var b=dO(a,"start"),b=kP(0,b,lP),c=ZO||X,d=[];d.push("v=392v");d.push("r=fp");d.push("efm="+(this.o?1:0));d.push("esfm="+(this.A?1:0));d.push(b);d.push(WO(c));b="&"+d.join("&");pM(X,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3),void 0);a.wd=!0}a.za=!0}};
h.ax=function(a){a.he++;cO(a,0);.1<=a.Ca&&(a.Sa=!0);return dO(a,"start")};
h.Qw=function(a){cO(a,1);uO([a],!fO());return dO(a,"firstquartile")};
h.Vw=function(a){cO(a,2);a.Ic=!0;uO([a],!fO());return dO(a,"midpoint")};
h.bx=function(a){cO(a,3);uO([a],!fO());return dO(a,"thirdquartile")};
h.Mw=function(a){cO(a,4);uO([a],!fO());var b=dO(a,"complete");a.K=!1;eP(a.A);return b};
h.Yw=function(a){return cP(a,"pause")};
h.Lw=function(a){return cP(a,"abandon")};
h.Zw=function(a){var b=fO();a.ia&&!b&&(a.fa=NM());uO([a],!b);a.ia=!1;return dO(a,"resume")};
h.fx=function(a){var b=dO(a,"viewable_impression");a.qe=!0;return b};
h.$w=function(a){var b=!fO();uO([a],b);b=dO(a,"skip");a.K=!1;eP(a.A);return b};
h.Xw=function(a){uO([a],!fO());return dO(a,"mute")};
h.cx=function(a){uO([a],!fO());return dO(a,"unmute")};
h.Rw=function(a){a.K=!0;uO([a],!fO());return dO(a,"fullscreen")};
h.Pw=function(a){a.K=!1;uO([a],!fO());return dO(a,"exitfullscreen")};
h.Sw=function(a){return dO(a,"fully_viewable_audible_half_duration_impression")};
h.Uw=function(a){return dO(a,"measurable_impression")};
h.Ow=function(a){return dO(a,"engagedview")};
h.Tw=function(a){return dO(a,"impression")};
h.Nw=function(a){return dO(a,"creativeview")};
h.vw=function(a){a.Le()&&!a.Y?this.tq(a):a.j|=4;this.Kn(a)};var qP=(new Date).getTime(),wP=!1,xP=!1,yP=!1,tP=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return pP(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 pP(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 pP(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 pP(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 pP(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return xP},
function(){return yP},
function(){return pP(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 pP(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]||oP(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 oP(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 pP(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 oP(a.CSS.supports)},
function(){return oP(window.Intl.Collator)},
function(a){return oP(a.document.createElement("dialog").show)},
function(){return pP(8)},
function(a){return oP(a.document.createElement("div").animate([{transform:"scale(1)",Ov:"ease-in"},{transform:"scale(1.3)",Ov:"ease-in"}],{duration:1300,VJ:1}).reverse)},
function(a){return oP(a.document.createElement("div").animate)},
function(a){return oP(a.document.documentElement.webkitRequestFullScreen)},
function(a){return oP(a.navigator.getBattery)},
function(a){return oP(a.navigator.permissions.query)},
function(){return oP((new window.AudioContext).createBuffer)},
function(){return pP(9)},
function(){return oP(window.webkitRequestAnimationFrame)},
function(a){return oP(a.BroadcastChannel.call)},
function(a){return oP(a.FontFace)},
function(a){return oP(a.Gamepad)},
function(){return pP(10)},
function(a){return oP(a.MutationEvent)},
function(a){return oP(a.MutationObserver)},
function(a){return oP(a.crypto.getRandomValues)},
function(a){return oP(a.document.body.createShadowRoot)},
function(a){return oP(a.document.body.webkitCreateShadowRoot)},
function(a){return oP(a.fetch)},
function(){return pP(11)},
function(a){return oP(a.navigator.serviceWorker.register)},
function(a){return oP(a.navigator.webkitGetGamepads)},
function(a){return oP(a.speechSynthesis.speak)},
function(a){return oP(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return pP(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 pP(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 pP(14)},
function(a){return"undefined"==typeof a.navigator.$J},
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")}],uP=[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}],vP=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];B(zP,XO);aa(zP);zP.prototype.eo=function(a,b){if(b.opt_adElement)return fP(this,a,b.opt_adElement);var c=AP(this,a,b.opt_sdkID||"");return c?c:LO(a)};
zP.prototype.tq=function(a){var b="as"==a.B,c="h"==a.B,d="n"==a.B,e="a"==a.B,f=v("ima.common.triggerViewEvent"),k=v("ima.bridge.triggerViewEvent");try{var l=hP("viewable_impression",a);if(c)ga(f)?(f(a.A,l),a.Y=!0):a.j|=8;else if(e)ga(f)?(f(a.A,l),a.Y=!0):a.j|=131072;else if(d)ga(k)?(k(a.A,l),a.Y=!0):a.j|=32;else if(b){var m="triggerViewEvent"+a.Zd;a.element&&a.element[m]?(a.element[m](l),a.Y=!0):a.j|=1}else a.j|=16}catch(p){a.j|=2}};
zP.prototype.Kn=function(a){var b=a.ha[0];if((15E3<=b||a.Ic&&(-1!=a.P?b>=a.P/2:-1!=a.Ha&&b>=a.Ha))&&!a.ta){var b="as"==a.B,c="h"==a.B,d="a"==a.B;try{if(c){var e=v("ima.common.triggerExternalActivityEvent");if(ga(e)){var f=hP("fully_viewable_audible_half_duration_impression",a);e(a.A,f,"fully_viewable_audible_half_duration_impression");a.ta=!0}else a.j|=8192}else if(d){var k=v("ima.common.triggerExternalActivityEvent");ga(k)?(f=hP("fully_viewable_audible_half_duration_impression",a),k(a.A,f,"fully_viewable_audible_half_duration_impression"),
a.ta=!0):a.j|=65536}else if(b){var l="triggerExternalActivityEvent"+a.Zd;a.element&&a.element[l]?(a.element[l]("fully_viewable_audible_half_duration_impression"),a.ta=!0):a.j|=64}else a.j|=16384}catch(m){a.j|=128}}};
zP.prototype.no=function(a){if(a.Qa||a.za)a.j|=1024;else{var b="as"==a.B,c="h"==a.B,d="n"==a.B,e="a"==a.B,f=v("ima.common.triggerMeasurableEvent"),k=v("ima.bridge.triggerMeasurableEvent");try{var l=hP("measurable_impression",a);if(c)ga(f)?(f(a.A,l),a.Qa=!0):a.j|=2048;else if(e)ga(f)?(f(a.A,l),a.Qa=!0):a.j|=262144;else if(d)ga(k)?(k(a.A,l),a.Qa=!0):a.j|=32768;else if(b){var m="triggerMeasurableEvent"+a.Zd;a.element&&a.element[m]?(a.element[m](),a.Qa=!0):a.j|=256}else a.j|=4096}catch(p){a.j|=512}}};
q("Goog_AdSense_Lidar_sendVastMessage",xM("lidar::handlevast_ex",function(a,b,c){a=DP(zP.getInstance(),a,b,c);return kP(zP.getInstance(),a,lP)}),void 0);
q("Goog_AdSense_Lidar_sendVastEvent",xM("lidar::handlevastevent_ex",GP,void 0,function(){return{v:"392","if":LM.getInstance().o?"1":"0",nas:String(JO.length)}}),void 0);
q("Goog_AdSense_Lidar_getInitSignals",uM("lidar::getinitsignals_ex",FP,void 0,void 0),void 0);q("Goog_AdSense_Lidar_getUrlSignalsArray",xM("lidar::geturlsignalsarray_ex",function(){return VO()}),void 0);
q("Goog_AdSense_Lidar_getUrlSignalsList",xM("lidar::geturlsignalslist_ex",function(){return fe(VO())}),void 0);B(IP,fd);var KP=null;IP.prototype.destroy=function(){this.C.xa(this.j,"activityMonitor",this.G);this.A=null;this.o=!1};
IP.prototype.init=function(a){if(!this.o){if(this.j=a||null)this.C.R(this.j,"activityMonitor",this.G),RP(this);if(PK.B&&!(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.o=!0}};
IP.prototype.G=function(a){var b=a.ld,c=b.queryId,d={};d.eventId=b.eventId;switch(a.nc){case "getPageSignals":RP(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;$b(b,"isFullscreen")&&(k=b.isFullscreen);d.viewabilityData=OP(this,e,c,a,f);d.engagementString=SP(this,a,k);this.j.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":c={},c.eventId=b.eventId,a=b.osdId,k=null,$b(b,
"isFullscreen")&&(k=b.isFullscreen),$b(b,"loggingId")&&(c.loggingId=b.loggingId,NL(ML.getInstance(),43,{step:"beforeLookup",logid:b.loggingId,time:K()},!0)),c.engagementString=SP(this,a,k),this.j.send("activityMonitor","engagement",c)}};
q("ima.common.getVideoMetadata",function(a){var b=JP();a=b.J.get(a)||b.D;return null!=a?a():{}},void 0);
q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=JP().j;d?d.send("activityMonitor","viewableImpression",c):JP().Z(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=JP().j;d?d.send("activityMonitor","measurableImpression",c):JP().Z(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=JP().j)?a.send("activityMonitor","externalActivityEvent",d):JP().Z(new GK("externalActivityEvent",null,d))},void 0);B(YP,fd);h=YP.prototype;h.AB=function(a){this.H=!0;this.o=a.touches.length;this.A&&(window.clearTimeout(this.A),this.A=0,this.L=!0);(this.G=dQ(this,a.touches)||1!=a.touches.length)?this.N=this.P=window.Infinity:(this.P=a.touches[0].clientX,this.N=a.touches[0].clientY);cQ(this,a.touches)};
h.zB=function(a){this.o=a.touches.length;if(!EL()||!FL(pQ,8)||Math.pow(a.changedTouches[0].clientX-this.P,2)+Math.pow(a.changedTouches[0].clientY-this.N,2)>Math.pow(5,2))this.D=!0};
h.yB=function(a){this.K?this.kk():(!this.H||1!=this.o||this.D||this.L||this.G||!dQ(this,a.changedTouches)||(this.A=window.setTimeout(A(this.kk,this),300)),this.o=a.touches.length,0==this.o&&(this.D=this.H=!1,this.B=[]),this.L=!1)};
h.vo=function(){this.kk()};
h.kk=function(){this.A=0;this.Z(new lc("click"))};
h.S=function(){aQ(this);this.C.dispose();this.C=null;YP.M.S.call(this)};B(kQ,fd);var Caa={SG:"beginFullscreen",CLICK:"click",END:"end",pH:"endFullscreen",ERROR:"error",LOADED:"loaded",XH:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",SKIP:"skip",Lu:"skipShown",sH:"video_extend_clicked",St:"video_extend_shown",qt:"video_extend_auto_skipped",START:"start",$I:"timeUpdate",YG:"cardsStateChange",ZI:"timedMetadata",zJ:"volumeChange"};h=kQ.prototype;h.Bo=function(){return!1};
h.Ll=x;h.Fo=x;h.Ok=x;h.jf=function(){return null};
h.Go=x;h.Do=x;B(lQ,kQ);h=lQ.prototype;h.Eq=function(a,b,c,d){if(d&&(d=db(a,function(a){return!ca(eQ(a.o))}),null!==d))return d;
a=be(a,function(a){var b=a.j;C(D(a.o))||"progressive"!=a.B&&"application/x-mpegurl"!=D(b).toLowerCase()?a=!1:(b=D(b).toLowerCase(),a=C(b)||tF&&FL(LL,2.3)&&Fa(b,"application/ogg")?!1:tF&&(Fa(b,"video/mp4")||Fa(b,"video/3gpp"))||EL()&&(Fa(b,"application/x-mpegurl")||Fa(b,"application/vnd.apple.mpegurl"))?!0:!C(this.j.canPlayType(b)));return a},this);
return TP(a,b,c)};
h.xk=function(){return be(Wb(RY),function(a){return!C(this.j.canPlayType(a))},this)};
h.Pl=function(a){this.T=0<a.j?a.j:15E3};
h.load=function(a){mQ(this);this.j.src=a;this.j.load()};
h.getVideoUrl=function(){return this.j.src};
h.setVolume=function(a){this.j.volume=a};
h.kd=function(){return this.j.volume};
h.play=function(){this.P=!1;Ud(this.j.play,0,this.j);this.H||(this.H=Ud(this.zv,this.T,this))};
h.pause=function(){this.P=!0;this.j.pause()};
h.vf=function(){return this.j.paused?EL()||Kl?this.j.currentTime<this.j.duration:!0:!1};
h.uf=function(){return this.j.muted};
h.mk=function(){BL()&&this.j.webkitDisplayingFullscreen&&this.j.webkitExitFullscreen()};
h.Od=function(){return LP(this.j)};
h.pg=function(a){var b;a:{for(b=this.U.Ka();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
h.wf=function(a){this.j.currentTime=a};
h.getCurrentTime=function(){return this.j.currentTime};
h.Co=function(){return qQ(this)};
h.Nd=function(){return(0,window.isNaN)(this.j.duration)?-1:this.j.duration};
h.Ie=function(){return this.j.ended};
h.Rc=function(){return new te(this.j.offsetWidth,this.j.offsetHeight)};
h.Eo=function(){return this.j.seeking};
h.S=function(){this.xf();this.j=null;lQ.M.S.call(this)};
h.getError=function(){return this.j.error};
h.oi=function(){this.xf();this.o=new Hm(this);this.o.R(this.j,L$,this.JA);this.o.R(this.j,"canplay",this.az);this.o.R(this.j,"ended",this.Fx);this.o.R(this.j,"webkitbeginfullscreen",this.Pk);this.o.R(this.j,"webkitendfullscreen",this.Io);this.o.R(this.j,"pause",this.Hx);this.o.R(this.j,"playing",this.TA);this.o.R(this.j,"timeupdate",this.Ix);this.o.R(this.j,"volumechange",this.Jx);this.o.R(this.j,"error",this.Ho);this.o.R(this.j,PG||EL()&&(!EL()||!FL(pQ,8))?"loadeddata":"canplay",this.mA);this.D=
new YP;this.o.R(this.D,"click",this.Ex);ZP(this.D,this.j);this.F=new Sd(1E3);this.o.R(this.F,"tick",this.Gx);this.F.start()};
h.xf=function(){null!=this.D&&(aQ(this.D),this.D=null);null!=this.F&&this.F.dispose();null!=this.o&&(this.o.dispose(),this.o=null);mQ(this)};
h.JA=function(a){this.Z(a.type)};
h.az=function(){var a;if(a=Ht)a=qc,a=!(a&&(Ka(a,"SMART-TV")||Ka(a,"SmartTV")));a&&!this.N&&(this.wf(.001),this.N=!0)};
h.mA=function(){this.K||(this.K=!0,this.Z("loaded"))};
h.TA=function(){this.Z("play");EL()||PG||oQ(this)};
h.Ix=function(){if(!this.B&&(EL()||PG)){if(0>=this.getCurrentTime())return;if(PG&&this.Ie()&&1==this.Nd()){this.Ho();return}oQ(this)}if(EL()||IL()){if(1.5<this.getCurrentTime()-this.A){this.G=!0;this.wf(this.A);return}this.G=!1;this.getCurrentTime()>this.A&&(this.A=this.getCurrentTime())}var a=this.U;a.j[a.o]=this.j.currentTime;a.o=(a.o+1)%a.A;this.Z("timeUpdate")};
h.Jx=function(){this.Z("volumeChange")};
h.Hx=function(){var a;this.B&&EL()&&!this.P&&2>qQ(this)-this.j.currentTime?(this.C=new Sd(250),this.o.R(this.C,"tick",this.Yy),this.C.start(),a=!0):a=!1;a||this.Z("pause")};
h.Fx=function(){var a=aL(XK(),136961002),b=!0;if(EL()||IL()||a&&tF)b=this.A>=this.j.duration-1.5;!this.G&&b&&this.Z("end")};
h.Pk=function(){this.Z("beginFullscreen")};
h.Io=function(){this.Z("endFullscreen")};
h.Ho=function(){nQ(this);this.Z("error")};
h.Ex=function(){this.Z("click")};
h.Gx=function(){var a=this.Rc(),b=this.Od();if(a.width!=this.L.width||a.height!=this.L.height)!this.J&&b?this.Pk():this.J&&!b&&this.Io(),this.L=a,this.J=b};
h.zv=function(){if(!this.B){try{NL(ML.getInstance(),16)}catch(a){}mQ(this);this.Z("mediaLoadTimeout")}};
h.Yy=function(){if(this.Ie()||!this.vf())Mb(this.C);else{var a=this.j.duration-this.j.currentTime,b=qQ(this)-this.j.currentTime;0<b&&(2<=b||2>a)&&(Mb(this.C),this.play())}};B(rQ,fd);sQ.prototype.start=function(a){return this.j[a].startTime};
sQ.prototype.end=function(a){return this.j[a].endTime};
h=rQ.prototype;h.readyState=0;h.currentTime=0;h.duration=window.NaN;h.zf=!0;h.No=!1;h.autoplay=!1;h.controls=!1;h.volume=1;h.muted=!1;h.src="";h.Mx=1;h.playbackRate=0;h.qd=null;h.ti=0;h.gC=4;h.kg=null;h.Vi=null;
h.play=function(){this.No&&(this.currentTime=0,this.Z("timeupdate"));this.zf&&(this.zf=!1,this.Z("play"),this.readyState=this.gC,2>=this.readyState?this.Z("waiting"):this.Z("playing"));if(null===this.qd||this.qd.isDisposed())this.qd=new Sd(10),this.qd.R("tick",A(this.Xq,this));this.ti=K();this.qd.start();this.autoplay=!1};
h.pause=function(){this.autoplay=!1;this.zf||(this.qd.stop(),this.zf=!0,this.Z("timeupdate"),this.Z("pause"))};
h.load=function(){this.readyState=0;this.zf=!0;this.Z("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.o;a.j.push(new uQ(this.duration));a.length=a.j.length;this.Z("loadedmetadata");0<this.currentTime&&this.Z("timeupdate");this.Z("loadeddata");this.Z("canplay");this.Z("canplaythrough");this.Z("progress");this.playbackRate=this.Mx};
h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.Z("seeking");this.currentTime=c;this.Z("seeked");this.Xq();break;case "duration":this.duration=Number(b);this.Z("durationchange");break;case "volume":this.volume=Number(b),this.Z("volumechange")}};
h.Xq=function(){var a=K()-this.ti,b=this.currentTime+a/1E3;this.ti+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.Z("timeupdate");this.currentTime==this.duration&&(this.No=this.zf=!0,this.qd.stop(),this.Z("ended"))};
h.S=function(){this.qd&&this.qd.dispose();this.j.dispose()};
h.OB=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.Vi&&(this.Vi.innerText=b);c&&this.kg&&(this.kg.style.backgroundColor=c)};xc&&Ac(8);var zQ={},dZ={},eZ={},AQ={};wQ.prototype.ad=null;wQ.prototype.getContent=function(){return this.content};
wQ.prototype.toString=function(){return this.content};
B(xQ,wQ);var aaa={};B(DQ,wQ);DQ.prototype.Mc=zQ;B(FQ,wQ);FQ.prototype.Mc={};FQ.prototype.ad=1;B(GQ,wQ);GQ.prototype.Mc=dZ;GQ.prototype.ad=1;B(HQ,wQ);HQ.prototype.Mc=eZ;HQ.prototype.ad=1;B(IQ,wQ);IQ.prototype.Mc={};IQ.prototype.ad=1;B(JQ,wQ);JQ.prototype.Mc={};JQ.prototype.ad=1;B(KQ,xQ);KQ.prototype.Mc=AQ;var EQ=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.ad=d);return e}}(DQ);
LQ(FQ);LQ(GQ);LQ(HQ);var oaa=LQ(IQ);LQ(JQ);var NQ={},OQ={},iR=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.ad=d);return e}}(DQ),WQ=/['()]/g,$Q={},paa={"\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;"},qaa={"\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"},faa=/[\x00\x22\x27\x3c\x3e]/g,haa=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,gaa=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,bR=/[\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,
Lda=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Kda=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,daa=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,eaa=/</g;MQ("a","",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+Y(a.Ef)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Y(a.Ef)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
QQ(ZQ(a.Kc))+">"+Y(a.Kc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+QQ(ZQ(a.se))+">"+Y(a.se)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
MQ("a","redesign2014q4",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTopButtons"><div class="videoAdUiTopButton videoAdUiTopButtonInfo"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
Y(a.YJ)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.ZJ)+'</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"'+QQ(ZQ(a.Kc))+">"+Y(a.Kc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+
QQ(ZQ(a.se))+">"+Y(a.se)+'</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>'});
MQ("b","",function(a){a=a||{};var b="";a=qa("You can skip this ad in {$xSeconds}",{xSeconds:Y(a.Wf)});return b+a});
MQ("b","redesign2014q4",function(a){a=a||{};var b="";a=qa("You can skip to video in {$xSeconds}",{xSeconds:Y(a.Wf)});return b+a});B(jR,H);jR.prototype.initialize=function(){AL()&&this.o.load()};
jR.prototype.S=function(){sf(this.j);jR.M.S.call(this)};
jR.prototype.show=function(){var a=this.j;null!=a&&(a.style.display="block")};
jR.prototype.ea=function(){var a=this.j;null!=a&&(a.style.display="none")};B(lR,kQ);var yga=["video/mp4","video/webm"],zga={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},nR=[],mR=!1;h=lR.prototype;h.Eq=function(a,b,c){var d=db(a,function(a){return!ca(eQ(a.o))});
if(null!==d)return d;a=be(a,function(a){a=D(a.j);return this.j?this.o.canPlayType(a):ib(yga,a)},this);
kb(c)||(d=TP(a,b,c));return null!=d?d:TP(a,b,[])};
h.Pl=function(a){this.A=a};
h.load=function(a,b){null!==a&&(this.T=a,this.j?oR(this,a,b):(this.K=a,this.X=b))};
h.getVideoUrl=function(){return this.T};
h.setVolume=function(a){this.da?this.Z("volumeChange"):this.j?(a=le(100*a,0,100),this.o.setVolume(a),this.F=-1,this.Z("volumeChange")):this.F=a};
h.kd=function(){return this.j?this.o.getVolume()/100:this.F};
h.play=function(){if(!C(D(this.T))){if(!this.B){qR(this);var a=15E3;null!=this.A&&0<this.A.j&&(a=this.A.j);this.ta=Ud(this.KA,a,this)}this.j?(this.Y=!1,!this.B&&this.A&&this.A.o?this.o.loadVideoByPlayerVars(this.ha):this.o.playVideo()):this.Y=!0}};
h.pause=function(){this.j&&this.B&&this.o.pauseVideo()};
h.vf=function(){return this.j?2==this.o.getPlayerState(this.C):!1};
h.uf=function(){return this.j?this.o.isMuted():0==this.kd()};
h.mk=function(){};
h.Od=function(){var a=PK.j?PK.A:window.document.getElementById(this.P);return a?LP(a):!1};
h.pg=function(a){return this.j?this.o.getCurrentTime(this.C)>=a:!1};
h.wf=function(a){this.j?this.o.seekTo(a,!1):this.J=a};
h.getCurrentTime=function(){return this.j?this.o.getCurrentTime(this.C):-1};
h.Co=function(){return this.j&&this.B?this.o.getVideoLoadedFraction(this.C)*this.o.getDuration(this.C):0};
h.Nd=function(){return this.j&&this.B?this.o.getDuration(this.C):-1};
h.getError=function(){return null};
h.xk=function(){return Wb(RY)};
h.Ie=function(){return this.j?0==this.o.getPlayerState(this.C):!1};
h.Rc=function(){var a=PK.j?PK.A:window.document.getElementById(this.P);return a?new te(a.offsetWidth,a.offsetHeight):new te(0,0)};
h.Eo=function(){return!1};
h.Bo=function(){return 1==this.oa};
h.Lx=function(){var a=this.Rc(),b=this.Od();if(a.width!=this.fa.width||a.height!=this.fa.height)!this.ca&&b?this.Z("beginFullscreen"):this.ca&&!b&&this.Z("endFullscreen"),this.fa=a,this.ca=b};
h.oi=function(){this.$=A(this.Mp,this);this.L=A(this.Qk,this);this.ga=A(this.Np,this);this.da&&(this.o.addEventListener("onAdStateChange",this.L),this.o.addEventListener("onReady",this.$),this.o.addEventListener("onStateChange",this.L),this.o.addEventListener("onVolumeChange",this.ga));this.U=new Sd(1E3);this.N.R(this.U,"tick",this.Lx);this.U.start()};
h.xf=function(){this.da&&(this.o.removeEventListener("onAdStateChange",this.L),this.o.removeEventListener("onReady",this.$),this.o.removeEventListener("onStateChange",this.L),this.o.removeEventListener("onVolumeChange",this.ga));null!=this.U&&this.U.dispose()};
h.Hv=function(){var a=this.P,b={playerVars:gc(zga),events:{cardstatechange:A(this.Kx,this),onError:A(this.QA,this),onReady:A(this.Mp,this),onAdStateChange:A(this.Qk,this),onStateChange:A(this.Qk,this),onVolumeChange:A(this.Np,this)}},c=v("YT");this.o=null!=c&&null!=c.Player?new c.Player(a,b):null};
h.QA=function(){this.Z("error")};
h.Mp=function(){this.j=!0;this.G&&this.Ok(this.G.videoId,this.G.ue,this.G.Sf,this.G.Rh);-1!=this.F&&(this.setVolume(this.F),this.F=-1);null!=this.K&&(oR(this,this.K,this.X),this.X=this.K=null);-1!=this.J&&(this.wf(this.J),this.J=-1);this.Y&&this.play()};
h.Kx=function(a){this.oa=a.data;this.Z("cardsStateChange")};
h.Qk=function(a){switch(a.data){case 0:this.B?this.Z("end"):this.Z("error");break;case 1:this.B||(qR(this),this.B=!0,this.H=0,this.Z("start"));this.Z("play");pR(this);this.D=new Sd(100);this.N.R(this.D,"tick",this.zp);this.D.start();break;case 2:this.Z("pause"),pR(this)}};
h.Np=function(){this.Z("volumeChange")};
h.zp=function(){if(OG||IL()){if(1.5<this.getCurrentTime()-this.H){this.j&&this.o.seekTo(this.H,!0);return}this.getCurrentTime()>this.H&&(this.H=this.getCurrentTime())}this.Z("timeUpdate")};
h.KA=function(){this.Z("mediaLoadTimeout")};
h.Ok=function(a,b,c,d){if(b||c)this.j?this.o.addInfoCardXml(a,b,c,d):this.G={videoId:a,ue:b,Sf:c,Rh:d}};
h.jf=function(){if(!this.j)return null;var a=this.o.getVideoData();return a?a.cpn:null};
h.Ll=function(a){this.j&&eQ(this.getVideoUrl())&&this.o.sendVideoStatsEngageEvent(a)};
h.Fo=function(a){this.j&&this.o.setCardsVisible(a)};
h.Go=function(){this.j&&this.o.showControls()};
h.Do=function(){this.j&&this.o.hideControls()};
h.S=function(){pR(this);qR(this);this.xf();this.j=!1;this.N.dispose();this.J=-1;this.X=null;this.Y=!1;this.K=null;this.F=-1;this.$=this.o=this.A=null;this.B=!1;this.T="";lR.M.S.call(this)};
q("onYouTubeIframeAPIReady",function(){mR=!0;F(nR,function(a){a()});
lb(nR)},window);B(rR,fd);rR.prototype.o=!1;rR.prototype.connect=function(){for(this.o=!0;!kb(this.A);){var a=this.A.shift();this.sendMessage(a.name,a.type,a.data)}};
rR.prototype.send=function(a,b,c){this.o?this.sendMessage(a,b,c):this.A.push({name:a,type:b,data:c})};
B(sR,lc);sR.prototype.getOrigin=function(){return this.A};
sR.prototype.toString=function(){return""};B(tR,rR);tR.prototype.sendMessage=function(a,b,c){null!=this.Ec&&null!=this.Ec.postMessage&&this.Ec.postMessage(Aaa(this,a,b,c),"*");null!=this.Ec&&null==this.Ec.postMessage&&NL(ML.getInstance(),11)};
tR.prototype.S=function(){this.C.dispose();tR.M.S.call(this)};
tR.prototype.receive=function(a){a=a.j;var b=uR(a.data);if(vR(this,b)){if(null==this.Ec)this.Ec=a.source,this.o||this.connect();else if(this.Ec!=a.source)return;vR(this,b)&&this.Z(new sR(b.name,b.type,b.data||{},b.sid,a.origin))}};B(wR,fd);wR.prototype.send=function(a){var b=a.j;this.j.hasOwnProperty(b)&&this.j[b].send(a.type,a.nc,a.ld)};
wR.prototype.S=function(){this.o.dispose();for(var a in this.j)Mb(this.j[a]);wR.M.S.call(this)};
wR.prototype.C=function(a){a=a.j;var b=uR(a.data);if(null!=b){var c=b.channel;if(this.A&&!this.j.hasOwnProperty(c)){var d=b.sid;xR(this,c,d,a.source);this.Z(new yR(b.name,b.type,b.data||{},d,a.origin,c))}}};
B(yR,sR);B(zR,Hm);
zR.prototype.D=function(a){var b=a.getOrigin(),c=Kg("//imasdk.googleapis.com"),b=Kg(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.j)xR(this.j,a.j,a.uo,hf().parent),null!=this.j&&this.j.send(a);else if(c=a.ld,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.nc,"isGptPresent"==c?d=AR():"isConsolePresent"==c&&(d=null!=BR());else if(AR())if("pubads"==b||"companionAds"==b){d=a.nc;var e,f=hf().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.nc,e=BR(),null!=e&&(f=e[f],null!=f))try{f.apply(e,c)}catch(k){}}else if(null===b){e=a.nc;d=hf();if(ib(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{f=e.apply(d,c)}catch(k){}d=f}n(d)&&(a.ld.returnValue=d,this.A.send(a))}};
zR.prototype.C=function(a){this.A.send(a)};CR.prototype.isPharma=function(){return this.H};var DR={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Oa(" ",c-a.length):Oa(" ",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+Oa(" ",a):f+Oa(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,l){return DR.f((0,window.parseInt)(a,10),b,c,d,0,f,k,l)}};
DR.i=DR.d;DR.u=DR.d;B(ER,fd);h=ER.prototype;h.S=function(){this.B.dispose();null!==this.A&&(this.A.dispose(),this.A=null);wg(this.D.Ub(!1),function(a){a.dispose()});
this.D.clear();sf(this.o);ER.M.S.call(this)};
h.ww=function(a){var b=a.ld,c=bg(this.o),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.nc,!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(!Ht||EL()||0==window.document.webkitIsFullScreen)this.o.blur(),window.focus();this.o.dispatchEvent(d)};
h.Kw=function(a){var b=a.ld,c=bg(this.o),d=window.document.createEvent("TouchEvent");d.initTouchEvent(a.nc,!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,FR(this,b.touches),FR(this,b.targetTouches),FR(this,b.changedTouches),b.scale,b.rotation);this.o.dispatchEvent(d)};
h.Hw=function(a){if(null!=this.j){var b=a.ld;switch(a.nc){case "startTracking":this.j.oi();break;case "stopTracking":this.j.xf();break;case "exitFullscreen":this.j.mk();break;case "play":this.j.play();break;case "pause":this.j.pause();break;case "load":this.j.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.j.wf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.j.Pl(new CR(a.adFormat,a.adSenseAgcid,0,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId,null,a.isPharma))}}};
h.NB=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.j.Ie();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.j.getCurrentTime();b.duration=
this.j.Nd();break;case "volumeChange":a="volumeChange";b.volume=this.j.kd();break;default:return}this.C.send("videoDisplay",a,b)};
h.rw=function(a){switch(a.nc){case "showVideo":null!=this.A?aQ(this.A):(this.A=new YP,this.B.R(this.A,"click",this.KB));ZP(this.A,HR(this.F));a=this.F;null!=a.j&&a.j.show();break;case "hide":null!==this.A&&(this.A.dispose(),this.A=null),this.F.ea()}};
h.KB=function(){this.C.send("displayContainer","videoClick")};
h.cw=function(){wg(this.D.Ub(!1),function(a){a.Ec=Bf(this.o);a.connect()},this);
this.G=!0};GR.prototype.initialize=function(){null!=this.j&&this.j.initialize()};
GR.prototype.destroy=function(){Mb(this.j);Mb(this.F);Mb(this.D);sf(this.o)};
GR.prototype.ea=function(){null!=this.j&&this.j.ea()};
GR.prototype.setSize=function(a,b){var c=this.o;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.F&&(c=this.F,c.o.width=-1==a?"100%":a,c.o.height=-1==b?"100%":b)};var JR="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");B(KR,fd);B(LR,KR);LR.prototype.start=function(){this.wa.start()};
LR.prototype.stop=function(){this.wa.stop()};
LR.prototype.S=function(){LR.M.S.call(this);this.o.dispose();this.wa.dispose()};
LR.prototype.A=function(){if("currentTime"in this.j&&!(0,window.isNaN)(this.j.currentTime)){var a=this.currentTime;this.currentTime=this.j.currentTime;a!=this.currentTime&&this.Z(new lc("currentTimeUpdate"))}else this.Z(new lc("contentWrapperError")),this.stop()};MR.prototype.reset=function(){this.j=0;this.o=null};NR.prototype.reset=function(){this.o=this.j=null};var bS=new OR;OR.prototype.clear=function(){this.j=PR();this.C=this.G=this.D=null;this.B=PR();this.A=null;this.U=this.J=this.K="";this.F=this.N=this.o=null};B(RR,fd);RR.prototype.o=null;RR.prototype.S=function(){delete this.j;TR(this);ad(this.o);RR.M.S.call(this)};
RR.prototype.C=function(){SR(this)&&(TR(this),ad(this.o),this.o=null,this.A=!0,this.Z("ifload"))};B(UR,fd);B(VR,lc);VR.prototype.getError=function(){return this.A};WR.prototype.getContent=function(){return this.C};
WR.prototype.clone=function(){var a=new WR(this.F,this.D),b=this.A,c=this.o,d=this.j,e=this.B;a.C=this.C;a.A=b;a.o=c;a.j=d;a.B=e||[];return a};B(YR,UR);aa(YR);h=YR.prototype;h.S=function(){this.o&&this.o.dispose();YR.M.S.call(this)};
h.initialize=function(){if(!this.B){var a;var b=Kf(new Xe);try{v("googletag"),ZR([b,b.top]),a=!0}catch(c){a=!1}a?hS(this):(this.B=!0,this.A="not_available")}};
h.setVideoContent=function(a,b){var c=fS(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};
h.Pp=function(){0<this.D&&K()>=this.D?(this.B=!0,gS(this),iS(this)):hS(this)};
h.AC=function(a){var b=Q(a.adSizes,function(a){return new te(a.adWidth,a.adHeight)});
return new WR(a.slotId,b)};
h.hv=function(a){var b={};b.slotId=a.F;b.adContent=a.getContent();b.adWidth=a.A;b.adHeight=a.o;b.friendlyIframeRendering=a.j;aL(XK(),9419278)&&(b.onAdContentSet=A(this.wz,this,a));return b};
h.wz=function(a,b){var c;if(a.j)c=b.querySelector("iframe");else{var d=wf(b);d&&(c=wf(d))}if(c&&"IFRAME"==c.tagName)if(d=new RR(c,!0),d.A)jS(this,a,c);else{var e=c;Zc(d,"ifload",function(){jS(this,a,e)},!1,this)}};
h.vz=function(a){this.Z(new VR("companion_click",null,a))};
h.sendImpressionUrls=function(a){rL(this.impressionUrls,a)};B(kS,lc);kS.prototype.getError=function(){return this.j};B(lS,lc);var Gaa={IMAGE:"Image",Wt:"Flash",ALL:"All"},Faa={HTML:"Html",IFRAME:"IFrame",STATIC:"Static",ALL:"All"},Haa={IH:"IgnoreSize",EI:"SelectExactMatch",FI:"SelectNearMatch"},Iaa={mH:"DisallowResize",AI:"ResizeSmaller"};B(yS,P);yS.prototype.toString=function(){return AS(this,yS.M.toString.call(this))};
yS.prototype.fo=function(){return""};
yS.prototype.Ce=function(){return""};
yS.prototype.clone=function(){return new yS(this.toString())};var Saa=["ai","sigh"];VS.prototype.getType=function(){return this.A};
B(WS,VS);US.prototype.isEmpty=function(){return this.j.isEmpty()};B(fT,dT);gT.prototype.parse=function(a){a=wf(a);var b=KS(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw tL(rga);a=a.getAttribute("offset");a=cT(a);if("skippable"==c&&null==a)throw tL(qga);return new fT(c,a)};B(hT,dT);B(iT,dT);B(jT,dT);h=kT.prototype;h.Mf=function(a){this.$=a};
h.Vk=function(){return this.$};
h.Wk=function(){return null};
h.getAd=function(){return this.P};
h.Yh=function(){for(var a=[this],b=this.P.j;b;){var c=nT(this,b)||nT(this,b,!0);null!=c&&a.push(c);b=b.j}return a};B(oT,kT);h=oT.prototype;h.getContent=function(){return Df(this.Jd())};
h.Eg=function(){return!1};
h.Xk=function(){return this.Eg()?Df(this.Jd(!0)):""};
h.getContentType=function(){return this.fa};
h.Wb=function(){return this.oa};
h.getWidth=function(){return this.Wb().width};
h.getHeight=function(){return this.Wb().height};
h.Wk=function(){return"VPAID"==this.G?this.B:null};
h.Sc=function(){return this.N};qT.prototype.getWidth=function(){return this.D};
qT.prototype.getHeight=function(){return this.C};B(rT,kT);rT.prototype.Vk=function(){return this.$};
rT.prototype.Sc=function(){return this.A};
rT.prototype.getMediaUrl=function(a){var b="";Lh(this.J,function(c){var d=c.o;return!C(D(a))&&a!=c.j||null==d||C(D(d))?!1:(b=d,!0)},this);
return b};
rT.prototype.Wk=function(){return Xaa(this)};B(tT,H);tT.prototype.F=function(){this.C=K()};
tT.prototype.H=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.o&1&&c.push("nm="+this.D);this.o&2&&c.push("nb="+this.B.get(b));if(this.o&8){var d=bg(this.A);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.o&16&&null!=this.C&&c.push("clkt="+(K()-this.C));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
tT.prototype.G=function(){this.D++};
tT.prototype.S=function(){tT.M.S.call(this);this.j.dispose()};var Zaa=xc?'javascript:""':"about:blank";B(uT,oT);uT.prototype.D=function(a){null==this.A||C(D(this.Sc()))||(this.A.R(a,"click",this.L),this.Y.push(a))};
uT.prototype.Jd=function(a){a?(null==this.X&&(this.X=this.we(a),pf(this.X,zT(this))),a=this.X):(null==this.o&&(this.o=this.we(),pf(this.o,zT(this))),a=this.o);null!=this.A&&this.A.R(a,"creativeview",this.T);return a};
uT.prototype.Yn=function(){return 2};
uT.prototype.Yh=function(){var a=[this],b;for(b=this.getAd().j;b;){var c=this.C?nT(this,b)||nT(this,b,!0):AT(this,b)||AT(this,b,!0);null!=c&&a.push(c);b=b.j}return a};h=BT.prototype;h.getContentType=function(){var a=this.o,b="";if(null===a)return b;if(a instanceof rT)a=a.ha,null===a||(b=D(a.j));else if(a instanceof uT)switch(a.da){case "IFrame":case "Html":case "Static":b=D(a.Ea)}return b};
h.getExtension=function(a){return this.H.get(a)};
h.$x=function(){return this.P};
h.getWidth=function(){return FT(this)?0:this.T.width};
h.getHeight=function(){return FT(this)?0:this.T.height};
h.toString=function(){return"Ad: "+this.da};B(zU,fd);zU.prototype.zn=function(){return!0};
zU.prototype.Be=function(){return null};B(BU,zU);h=BU.prototype;h.S=function(){this.destroy();BU.M.S.call(this)};
h.destroy=function(){null!=this.C&&this.C.dispose();this.B=null;F(this.A,function(a){XR(a)},this);
this.o=null};
h.zn=function(){return this.D};
h.iB=function(){null!=this.F&&(this.F.stop(),this.F.dispose(),this.F=null);if(null!=this.j){var a=$R(this.j);null!=a&&(this.A=a)}this.G=!0;null!=this.B&&DU(this);this.Z(new lc("initialized"))};
h.xz=function(a){GU(this,a.getError())};
h.rz=function(a){if(null!=a.j){var b=a.j;"companion_slot_init"==a.type?md(function(){null!=this.o&&this.o.Z(new lS("companion_impression"))},this):"companion_click"==a.type&&(mba(b.B),null!=this.o&&this.o.Z(new lS("companion_click")))}};
h.Be=function(){return this.j};h=HU.prototype;h.rk=function(){return HR(this.j)};
h.$h=function(){return this.j.A};
h.De=function(){return this.j.A};
h.ji=function(){var a=this.j.D;return null!=a?a:new lR};
h.Cg=function(){var a=this.j;null!=a.j&&a.j.show()};
h.Oe=function(){};
h.ik=function(){return null!=this.j.B};
h.Kk=function(){return this.j.C};
h.Lk=function(){return!1};
h.ki=function(){return this.j.G};
h.setSize=function(a,b){this.j.setSize(a,b)};
h.ea=function(){};B(IU,lc);B(KU,lc);aa(LU);var uba=/iu\=\/(\d+)\//;LU.prototype.start=function(a){this.o&&this.A.set(a,K())};
LU.prototype.end=function(a,b){if(this.o&&zg(this.A,a)){var c=K()-this.A.get(a),d=MU(this,a,c,b);oL(d);this.A.remove(a);this.B+=c}};
LU.prototype.sendMessage=function(a,b,c){this.o&&(a=MU(this,a,b,c),oL(a))};NU.prototype.start=function(a,b){this.C=a;this.F=b;wba(this);this.D.G?this.H():Nm(this.o,this.D,"initialized",this.H,this)};
NU.prototype.H=function(){var a=this.D.Be(),b;b=a.B?"retrieved"!=a.A?void 0:a.F:void 0;a=Daa(a);null!=b&&(this.B.B=b);null!=a&&(this.B.F=a);vba(this)};B(PU,fd);var RU=null;PU.prototype.destroy=function(){this.F.xa(this.o,"activityMonitor",this.H);this.o=null};
PU.prototype.H=function(a){var b=a.ld,c=b.engagementString;switch(a.nc){case "appStateChanged":EP(zP.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":UU(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":SU(b.queryId,b.viewabilityString);break;case "pageSignals":this.G=b.pageSignals;break;case "viewableImpression":TU(b.queryId,b.viewabilityString);break;case "viewability":a=b.eventId;window.clearTimeout(a);var d=this.j.get(a);d&&(this.j.remove(a),
d(b.viewabilityData,c));break;case "engagement":a=b.eventId;window.clearTimeout(a);d=this.j.get(a);if(ML.getInstance().j){var e=-1;this.D&&(e=K()-this.D);var f=!1;d||(f=!0);$b(b,"loggingId")&&NL(ML.getInstance(),43,{step:"receivedResponse",time:K(),timeout:f,logid:b.loggingId,timediff:e})}d&&(this.j.remove(a),d(c))}};
q("ima.bridge.getNativeViewability",function(a,b){QU();b({})},void 0);
q("ima.bridge.triggerViewEvent",TU,void 0);q("ima.bridge.triggerMeasurableEvent",SU,void 0);q("ima.bridge.triggerExternalActivityEvent",UU,void 0);B(XU,Aba);B($U,VU);$U.prototype.A=function(){return new WU(this.j,null,Cba(this))};B(eV,dT);eV.prototype.isPharma=function(){return this.F};fV.prototype.parse=function(a){var b;LS(a,"config",function(a){null!=b||(b=Fba(this,a))},this);
return b};gV.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,l,m=!1,p=!1;F(uf(a),function(a){switch(a.nodeName){case "AttributionText":c=KS(a);break;case "AttributionUrl":d=KS(a);break;case "ConversionUrl":f=KS(a);break;case "CustomTracking":null!=uf(a)&&(e=aT(a));break;case "is_pharma":a=JS(a,"bool");p=OS(D(a));break;case "CheckedEvents":a=uf(a);b=Q(a,function(a){return JS(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":KS(a);break;case "VisibleUrl":k=KS(a);break;case "UI":l=(new fV).parse(a);break;case "ShowYouTubeAnnotations":var t=KS(a);m=OS(D(t),!1);case "QueryId":KS(a)}},this);
null!=l||(l=new dV);return new eV(c,d,f,0,k,l,m,0,p,e,b)};hV.prototype.parse=function(a){if(null==a)return null;var b;F(uf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=uf(a)&&(b=aT(a))}});
a=null;null!=b&&0<YS(b,"skip").length&&(a="Generic");return new hT(a,b)};iV.prototype.parse=function(a){if(null==a)return null;var b,c;F(uf(a),function(a){switch(a.nodeName){case "SkippableAdType":b=KS(a);break;case "CustomTracking":null!=uf(a)&&(c=aT(a))}});
return new hT(b,c)};jV.prototype.parse=function(a){if(null==a)return null;var b;F(uf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=uf(a)&&(b=aT(a))}},this);
return new dT(b)};var O$,P$,Q$,R$,FV,IV,S$,T$,U$,V$,W$,X$,JV,Y$;nV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
oV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
oV.prototype.getType=function(){var a=this.j.type;return null!=a?a:0};
var Aga=new pV,Bga=new vV,gZ=new tV,Cga=new uV,Dga=new wV,Ega=new xV,CV=new qV,Fga=new zV;pV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
qV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
rV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
rV.prototype.getType=function(){var a=this.j.type;return null!=a?a:0};
rV.prototype.getId=function(){var a=this.j.id;return null!=a?a:""};
var Iba=new yV;sV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
sV.prototype.getType=function(){var a=this.j.type;return null!=a?a:0};
tV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
var hZ=new yV;uV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
var Gga=new yV,Hga=new yV,Iga=new yV;vV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
wV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
xV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
yV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
zV.prototype.equals=function(a){return mV(this.j,a?a.j:null)};
var Jga=new yV;var NV;
NV={action:{type:{TYPE_NONE:0,TYPE_INLINE_APPLICATION_STORE:19,TYPE_VOTE:18,TYPE_COLLAPSE:17,TYPE_EXTERNAL:16,TYPE_IRDB:8,TYPE_ATTRIBUTION:5,TYPE_FUNDRAISING:10,TYPE_LETTERMAN:14,TYPE_SUBSCRIPTION:6,TYPE_VIDEO:3,TYPE_APPLICATION_STORE:4,TYPE_HEADLINE:1,TYPE_RESPONSE:12,TYPE_PLAYLIST:7,TYPE_INTERNAL:13,TYPE_MERCH:9,TYPE_HELPOUTS:15,TYPE_RESULTS:11,TYPE_CHANNEL:2}},event:{type:{TYPE_NONE:0,TYPE_DISMISS:4,TYPE_ACTION_ENDCAP:9,TYPE_IMPRESSION_GALLERY:7,TYPE_COLLAPSE:3,TYPE_EXPAND:2,TYPE_IMPRESSION_ENDCAP:8,TYPE_DISMISS_ENDCAP:11,
TYPE_COLLAPSE_ENDCAP:10,TYPE_HEADLINE_CLICK:5,TYPE_IMPRESSION:1,TYPE_ACTION:6}},card:{type:{TYPE_NONE:0,TYPE_PRODUCT:1,TYPE_VOTE:3,TYPE_LOCATION:5,TYPE_WEBSITE:4,TYPE_APP:2},prominence:{PROMINENCE_HIGHLIGHT:1,PROMINENCE_NONE:0,PROMINENCE_FEATURE:2}},ad_card:{attribution_position:{POSITION_TOP_RIGHT:2,POSITION_BOTTOM_RIGHT:3,POSITION_TOP_LEFT:1,POSITION_BOTTOM_LEFT:0}}};B(KV,dT);LV.prototype.parse=function(a){var b=yz(a);if(C(D(b)))return null;if(this.j){var c=MV;if(!O$){var d={};O$={Kb:d};if(!P$){var e={};P$={Kb:e};e.type={type:"e",label:1,la:0};if(!Q$){var f={};Q$={Kb:f};f.major_version={type:"i",label:1,la:0};f.minor_version={type:"i",label:1,la:0}}e.version={type:"m",label:1,la:Aga,qa:Q$};e.priority={type:"i",label:1,la:0};e.start_time_ms={type:"j",label:1,la:"0"};e.end_time_ms={type:"j",label:1,la:""};e.action={type:"m",label:3,qa:EV()};e.event={type:"m",label:3,qa:HV()};
V$||(f={},V$={Kb:f},f.headline={type:"s",label:1,la:""},f.description={type:"s",label:1,la:""},f.attribution_icon_url={type:"s",label:1,la:""},f.skippable_seconds={type:"i",label:1,la:0},f.attribution_position={type:"e",label:1,la:0});e.ad_card={type:"m",label:1,la:Bga,qa:V$};if(!S$){f={};S$={Kb:f};f.headline={type:"s",label:1,la:""};f.image={type:"m",label:1,la:hZ,qa:GV()};f.description={type:"s",label:1,la:""};f.rating={type:"f",label:1,la:0};f.review_text={type:"s",label:1,la:""};if(!T$){var k=
{};T$={Kb:k};k.merchant={type:"s",label:1,la:""};k.price={type:"s",label:1,la:""};k.shipping={type:"s",label:1,la:""};k.shipping_tax={type:"s",label:1,la:""};k.condition={type:"s",label:1,la:""};k.unit_price={type:"s",label:1,la:""};k.energy_label={type:"s",label:1,la:""};k.description={type:"s",label:1,la:""};k.rating={type:"f",label:1,la:0};k.review_text={type:"s",label:1,la:""};k.action={type:"m",label:3,qa:EV()};k.event={type:"m",label:3,qa:HV()}}f.offer={type:"m",label:3,qa:T$}}e.product_card=
{type:"m",label:1,la:gZ,qa:S$};U$||(f={},U$={Kb:f},f.app_id={type:"s",label:1,la:""},f.app_name={type:"s",label:1,la:""},f.icon={type:"m",label:1,la:Gga,qa:GV()},f.price={type:"s",label:1,la:""},f.rating_image={type:"s",label:1,la:""},f.review_count={type:"i",label:1,la:0},f.app_store_logo={type:"m",label:1,la:Hga,qa:GV()},f.button_text={type:"s",label:1,la:""},f.screenshots={type:"m",label:3,qa:GV()},f.rating={type:"f",label:1,la:0},f.back_button_text={type:"s",label:1,la:""},f.screenshots_text=
{type:"s",label:1,la:""},f.cover_photo={type:"m",label:1,la:Iga,qa:GV()});e.app_card={type:"m",label:1,la:Cga,qa:U$};e.prominence={type:"e",label:1,la:0};W$||(f={},W$={Kb:f},f.call_to_action_text={type:"s",label:1,la:""});e.social_card={type:"m",label:1,la:Dga,qa:W$};X$||(f={},X$={Kb:f},f.vote_line_1={type:"s",label:1,la:""},f.vote_line_2={type:"s",label:1,la:""},f.confirm_line_1={type:"s",label:1,la:""},f.confirm_line_2={type:"s",label:1,la:""});e.vote_card={type:"m",label:1,la:Ega,qa:X$};e.sponsored=
{type:"b",label:1,la:!1};e.teaser_text={type:"s",label:1,la:""};R$||(f={},R$={Kb:f},f.hide_in_drawer={type:"b",label:1,la:!1},f.show_in_endcap={type:"b",label:1,la:!1},f.show_in_companion_mobile={type:"b",label:1,la:!1},f.show_in_cta={type:"b",label:1,la:!1});e.placement={type:"m",label:1,la:CV,qa:R$};Y$||(f={},Y$={Kb:f},f.latitude_e6={type:"i",label:1,la:0},f.longitude_e6={type:"i",label:1,la:0},f.address={type:"s",label:1,la:""},f.image={type:"m",label:1,la:Jga,qa:GV()},f.headline={type:"s",label:1,
la:""});e.location_card={type:"m",label:1,la:Fga,qa:Y$}}d.card={type:"m",label:3,qa:P$};d.event={type:"m",label:3,qa:HV()}}a=c(this,a,O$);a=new nV(a);c=new US;for(d=0;d<lV(a.j,"card");d++)if(e=AV(a,d),DV(BV(e)))for(f=0;f<lV(e.j,"event");f++){var l,k=f;l=new sV(kV(e.j,"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.j.base_url,ZS(c,
k,null!=l?l:""))}return new KV(b,a,c)}return new KV(b)};B(OV,dT);OV.prototype.ed=function(){return this.o};PV.prototype.C=function(a){var b={};F(this.o,function(a){b[a]=[]});
var c=new RegExp("^"+this.A);F(uf(a),function(a){"config"!=a.nodeName||F(uf(a),function(a){"params"!=a.nodeName||F(uf(a),function(a){var d=this.A?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=KS(a));null!=a.getAttribute("learn_more")&&(e=e+"|");ib(this.o,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};B(RV,dT);B(TV,PV);TV.prototype.parse=function(a){if(null==a)return null;a=QV(this,a);var b=a.UI;return new RV(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
TV.prototype.B=function(a){var b=[],c=0;F(uf(a),function(a){if("SurveyOption"==a.nodeName){var e,f;F(uf(a),function(a){switch(a.nodeName){case "DisplayName":e=KS(a);break;case "URL":f=KS(a)}},this);
null!=e&&null!=f&&(b.push({label:e,url:f}),c++)}},this);
return b};B(UV,dT);VV.prototype.j={Nu:"Siub",Mu:"Scs",wt:"Bgub",vt:"Bgp"};VV.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(uf(a),function(a){switch(a.nodeName){case this.j.Nu:b=KS(a);break;case this.j.Mu:c=KS(a);break;case this.j.wt:d=KS(a);break;case this.j.vt:e=KS(a)}},this);
return b&&c&&d&&e?new UV(b,c,d,e):null};B(WV,dT);XV.prototype.j={Su:"TEMPLATE_PARAMETERS",Tu:"TEMPLATE_URL"};XV.prototype.parse=function(a){if(null==a)return null;F(uf(a),function(a){switch(a.nodeName){case this.j.Su:Jba(this,a)}},this);
return new WV};B(YV,dT);ZV.prototype.j={ku:"Line1",lu:"Line2",mu:"Line3",gu:"ImageUrl"};ZV.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(uf(a),function(a){switch(a.nodeName){case this.j.ku:b=KS(a,!0);break;case this.j.lu:c=KS(a,!0);break;case this.j.mu:d=KS(a,!0);break;case this.j.gu:e=KS(a)}},this);
return new YV(b,c,d,e)};B($V,dT);aW.prototype.parse=function(a){if(null==a)return null;var b;F(uf(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),C(D(a))||(b=a)}},this);
return new $V(b)};B(bW,dT);B(cW,PV);var Kga=["menu","got_it","targeting_reason_header"],Lga=[["generic_message_left","generic_message_hypertext","generic_message_right"]];cW.prototype.parse=function(a){if(null==a)return null;a=QV(this,a);var b=a.UI;if(!dW(b,Kga))return null;var c,d=!0,e=!1;F(Lga,function(a){Kba(b,a)&&(dW(b,a)?e=!0:d=!1)});
var f=b.targeting_reason;if(!d||!e||0==f.length)return null;null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new bW(b.menu,b.targeting_reason_header,b.targeting_reason,b.got_it,a.CustomTracking,c)};eW.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Xa(a):window.NaN;a=(0,window.isNaN)(a)?-1:a;return new iT(a)};B(fW,dT);gW.prototype.parse=function(a){return null!=a?new fW:null};hW.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Xa(a):window.NaN;return new jT(a)};h=iW.prototype;h.getContent=function(){return this.j.getContent()};
h.getContentType=function(){return this.j.getContentType()};
h.getWidth=function(){return this.j.getWidth()};
h.getHeight=function(){return this.j.getHeight()};
h.getAd=function(){return this.j.getAd()};B(jW,uT);jW.prototype.we=function(){var a=this.G,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:iL(D(this.B)),width:this.getWidth(),height:this.getHeight(),Fb:this.Sc(),df:this.Fn||!a},a=yQ(Nba,a);a.style.width=this.getWidth()+"px";a.style.height=this.getHeight()+"px";a.id=this.U;F(a.getElementsByTagName("object"),this.D,this);F(a.getElementsByTagName("a"),this.D,this);return a};B(kW,uT);kW.prototype.we=function(){var a=O("div");a.innerHTML=this.B;this.D(a);return yT(this,a)};B(lW,uT);lW.prototype.getContent=function(){var a=lW.M.getContent.call(this);this.C&&(a=a.replace('src=""','src="'+iL(D(this.B))+'"'));return a};
lW.prototype.Xk=function(){var a=lW.M.Xk.call(this);this.C&&(a=a.replace('src=""','src="'+iL(D(this.B))+'"'));return a};
lW.prototype.we=function(a){var b="";this.C||(b=iL(D(this.B)));b={id:this.U,url:b,Fb:this.Sc(),width:this.getWidth()+"px",height:this.getHeight()+"px"};a=yQ(a?Pba:Oba,b);F(a.getElementsByTagName("a"),this.D,this);return a};
lW.prototype.Eg=function(){return!0};B(mW,uT);h=mW.prototype;h.Wb=function(){return new te(this.getWidth(),this.getHeight())};
h.getHeight=function(){return 63};
h.getWidth=function(){return null!=this.F?lg(this.F).width:0};
h.Yn=function(a){return Zd(a,"text-image")?9:Zd(a,"text-ad-channel")?1:0};
h.we=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.A,e="rtl";null!=d&&(e=NZ.test(Ae(d,void 0))?"rtl":"ltr");d={title:d,text:c.B+" "+c.C,dir:e,Fb:this.Sc()};if(c=c.o)d.image=iL(c),a=db(a.B,function(a){return a instanceof rT}),null!=a&&(d.duration=vS(a.Vk()));
b.o&&(d.gr=b.o);this.F=yQ(Mba,d);F(this.F.getElementsByTagName("a"),this.D,this);this.F.id=this.U;this.F.style.height=this.getHeight()+"px";return this.F};B(nW,uT);nW.prototype.we=function(){var a=D(this.B);C(D(this.Sc()))||(a=new P(a),oh(a,"clickTAG",ua(this.Sc())),a=a.toString());var b=O("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.getWidth());b.setAttribute("src",iL(a));this.D(b);return yT(this,b)};qW.prototype.getContentType=function(){return null!=this.j?pT[this.j]||"Other":null};rW.prototype.Jd=function(){return this.j};
rW.prototype.display=function(a){this.B=a;this.B.appendChild(this.j);a=this.j;var b=jg(this.B),b="left"==this.C?"0px":"right"==this.C?b.width-this.A.Wb().width+"px":this.C+"px",c;c=jg(this.B);c="bottom"==this.D?"0px":"top"==this.D?c.height-this.A.Wb().height+"px":c.height-this.A.Wb().height-$a(this.D)+"px";Of(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});ng(this.j,!1)};
rW.prototype.update=function(a,b){var c=null!=this.F?SS(this.F):0;this.o=0<=this.o?this.o:b;c<=a&&c+this.o>=a?Rba(this):ng(this.j,!1)};B(sW,VU);
sW.prototype.j={$s:"Ad",Dj:"AdParameters",ft:"AdSystem",gt:"AdTitle",yG:"Advertiser",kt:"AltText",xt:"ClickThrough",zt:"ClickTracking",At:"Companion",COMPANION_ADS:"CompanionAds",Bt:"CompanionClickThrough",Ct:"CompanionClickTracking",Et:"Creative",gH:"CreativeExtensions",Ft:"Creatives",It:"CustomClick",Lt:"Description",Fj:"Duration",ERROR:"Error",Tt:"Extension",Ut:"Extensions",sh:"HTMLResource",Zt:"Icon",$t:"Icons",au:"IconClicks",bu:"IconClickThrough",cu:"IconClickTracking",du:"IconViewTracking",vh:"IFrameResource",
wh:"Impression",INLINE:"InLine",LINEAR:"Linear",qu:"MediaFile",ru:"MediaFiles",xu:"NonLinear",NON_LINEAR_ADS:"NonLinearAds",yu:"NonLinearClickThrough",zu:"NonLinearClickTracking",rI:"Pricing",xh:"StaticResource",Ru:"Survey",gJ:"Tracking",Ij:"TrackingEvents",qJ:"VAST",Uu:"VASTAdTagURI",Vu:"VideoClicks",WRAPPER:"Wrapper"};
sW.prototype.o={bt:"adSlotID",jt:"allowMultipleAds",qh:"apiFramework",Ym:"bitrate",Gt:"creativeType",Kt:"delivery",Fj:"duration",EVENT:"event",Xt:"followAdditionalWrappers",Qt:"expandedHeight",Rt:"expandedWidth",rh:"height",uh:"id",nu:"maintainAspectRatio",pu:"maxBitrate",uu:"minBitrate",vu:"minSuggestedDuration",Au:"offset",Bu:"program",Fu:"required",Hu:"scalable",cn:"sequence",Ku:"skipoffset",pn:"type",VERSION:"version",Wu:"codec",yh:"width",Yu:"xPosition",$u:"yPosition"};
sW.prototype.A=function(){return new WU(this.B,Tba(this),null)};B(AW,VU);AW.prototype.A=function(){return new WU(this.o,null,kca(this))};h=EW.prototype;
h.clone=function(){var a=new EW;"auto"==this.Re?a.Re="auto":"click"==this.Re&&(a.Re="click");a.j=this.j;a.re=gc(this.re);a.o=this.o;a.C=this.C;a.yb=gc(this.yb);a.D=this.D;a.location=this.location;a.referrer=this.referrer;a.G=this.G;a.language=this.language;a.sf=this.sf;a.rf=this.rf;a.Cc=this.Cc;a.Bc=this.Bc;a.sc=this.sc;a.hi=this.hi;a.ii=this.ii;a.Tl=this.Tl;a.A=this.A;a.B=this.B;a.ah=this.ah;a.gi=this.gi;a.afcRmFallback=this.afcRmFallback;a.J=this.J;a.H=this.H;a.hf=this.hf;this.F&&(a.F=sb(this.F));
a.Pc=this.Pc;a.ai=this.ai;a.Ak=this.Ak;a.allowAdsPayCreator=this.allowAdsPayCreator;return a};
h.re=null;h.yb=null;h.Re="unknown";h.sf=0;h.rf=0;h.Cc=0;h.Bc=0;h.hf=!1;h.sc=null;h.hi=!1;h.ii=!1;h.Tl=!0;h.Pc=function(){return!1};
h.ai=function(){return window.NaN};
h.Ak=function(){return""};
h.ah=0;h.Qn=!0;h.gi=null;h.afcRmFallback=!1;h.allowAdsPayCreator=!1;FW.prototype.G=function(){return this.B(this.C()).toString()};
FW.prototype.D=function(){var a;a=1;KL()&&(a+=4);aL(XK(),41351017)&&!OK()&&(a+=1024);return a};var nX={lJ:"ultrahigh",CH:"high",tu:"medium"},Fca={DG:1E3,EG:1001,FG:1002,GG:1003,HG:1004,IG:1005,JG:1006},Gca={ou:1,Vt:2},Hca={CONTENT:"content",JI:"site",KI:"site_content"};h=LW.prototype;h.Ah="high";h.Rk=!1;h.Oj=1;h.Pj=null;h.adType="video";h.adBlock=1;h.Sk=null;h.Qj=!0;h.Rj=null;h.gk=null;h.qg=null;h.experimentIds=null;h.gender=null;h.host=null;h.hostTierId=null;h.Tk=!1;h.language=null;h.Ko=null;h.Jo=null;h.yi=1E5;h.zi=null;h.Mo=null;h.Lo=null;h.rl=0;h.yf=null;h.Ii=null;h.Pi=null;h.Ul=null;
h.tagForChildDirectedTreatment=-1;h.url=null;h.pi=null;h.im=null;h.Uk=null;h.um=null;h.qm=null;h.sm=null;h.tm=null;h.Vj=null;var Cca=(new Date).getTime();var vca=[202,1009],Bca=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],Aca={MOAT_INIT:["://yts.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204"],MOAT_VIEWABILITY:["://yts?.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],GOOGLE_VIEWABILITY:["://pubads.g.doubleclick.net"]};var Dca={Wt:"flash",IMAGE:"image",NI:"skippablevideo",QI:"standardvideo",RI:"staticimage",TEXT:"text",VIDEO:"video"},fX=["flash","image","staticimage"],Eca=[new te(200,200),new te(250,250),new te(300,250),new te(336,280),new te(450,50),new te(468,60),new te(480,70),new te(728,90)];B(mX,FW);var Jca=["skippablevideo","standardvideo","video"];mX.prototype.F={ht:"allow",Pt:"exclude",zI:"require"};mX.prototype.D=function(){var a=mX.M.D.call(this);OK()&&this.j.Pi&&(a|=this.j.Pi);return a};
mX.prototype.B=function(a){var b=new P("//googleads.g.doubleclick.net/pagead/ads"),c=a.Na();F(c,function(c){oh(b,c,a.get(c))});
aL(XK(),41351083)||ch(b,"https");return b};
mX.prototype.C=function(){var a=new yg;a.set("sdkv",KW(this));a.set("sdki",this.D().toString(16));a.set("video_product_type",null!=this.j.yf?OK()?5:sa(this.j.yf,"ca-games-")?4:sa(this.j.yf,"ca-video-")?0:-1:-1);a.set("correlator",this.H.j);a.set("client",this.j.yf);OK()&&!C(D(this.j.url))?a.set("url",this.j.url):a.set("url",this.o.location?this.o.location:this.o.referrer);null!=this.o.sc&&a.set("adk",this.o.sc);a.set("num_ads",oX(this));a.set("channel",Kca(this));a.set("output","xml_vast3");this.j.Rk&&
a.set("adtest","on");sS&&a.set("flash",$M);dX("alternate_ad_url",this.j.Rj,a);dX("cpm",this.j.gk,a);VW(a,this.o);OK()||Vb(nX,this.j.Ah)&&a.set("adsafe",this.j.Ah);this.j.host&&(a.set("host",this.j.host),dX("ht_id",this.j.hostTierId,a),null!=this.j.A&&dX("h_ch",this.j.A.join("+"),a));dX("hl",this.j.language,a);dX("cust_age",this.j.Sk,a);dX("cust_gender",this.j.gender,a);-1!=this.j.tagForChildDirectedTreatment&&dX("tfcd",this.j.tagForChildDirectedTreatment,a);dX("slotname",this.j.Pj,a);if($W(this.j)&&
(a.set("ea","0"),null!=this.o.Cc&&null!=this.o.Bc)){var b=aX(this.j,this.o.Cc,this.o.Bc,this.o.hf);a.set("image_size",b);C(b)&&(this.j.j=eX(this.j.j,this.j.adType,!0),this.j.adType=this.j.j.join("_"))}a.set("ad_type",this.j.adType);b=cL(XK());C(D(b))||a.set("eid",b);WW(a);UW(a,this.H,this.o.C||this.j.qg);a.set("unviewed_position_start","1");b=this.j.Oj;a.set("videoad_start_delay",null!=b?b:1);IW(this,a);JW(this,a);GW(this,a);Ica(this)&&a.set("video_format",null!=this.j.pi&&OK()?this.j.pi:Kl&&Jt(6)||
uF&&Jt(4)||tF&&FL(LL,2.3)?43:18);b=null!=this.j.Ii?this.j.Ii:ib(this.j.adType.split("_"),"text")?this.F.ht:this.F.Pt;a.set("t_pyv",b);dX("min_ad_duration",this.j.rl,a);0<this.j.yi&&a.set("max_ad_duration",pX(this.j.yi,oX(this)));0<this.j.zi&&a.set("sdmax",pX(this.j.zi,oX(this)));bX(a,this.J);OK()&&(b=eQ(this.j.qg),null!=b&&a.set("video_doc_id","yt_"+b));dX("description_url",this.j.qg,a);OK()&&(dX("lact",XW(this.o),a),dX("loeid",this.j.Uk,a),dX("lsv",this.j.Tk,a),this.j.Qj||dX("scs","false",a),dX("targeting",
this.j.Ul,a),dX("video_cpm",this.j.im,a),dX("yt_pt",this.j.um,a),dX("ytdevice",this.j.qm,a),dX("ytdevicever",this.j.sm,a),dX("yt_vis",YW(this.o),a),dX("dbp",this.j.tm,a),dX("avo",this.j.Vj,a));null!=a.get("ms")||dX("ms",this.j.B,a);HW(a);cX(this.o,a,!1);null!=this.o.re&&dX("loc",this.o.re.page_location,a);return a};B(qX,FW);qX.prototype.B=function(a){var b=new P(this.o.j);F(a.Na(),function(c){C(a.get(c))?b.j.remove(c):oh(b,c,a.get(c))});
aL(XK(),41351083)||ch(b,"https");return b};
qX.prototype.C=function(){var a=new yg;a.set("sdkv",KW(this));JW(this,a);GW(this,a);HW(a);null!=this.o.sc&&a.set("adk",this.o.sc);return a};B(rX,FW);rX.prototype.C=function(){return new yg};
rX.prototype.B=function(){var a=new yS(this.o.j),b=KW(this);b&&zS(a,"dc_sdkv",[b]);(b=this.D().toString(16))&&zS(a,"dc_sdki",[b]);(b=this.A.G)&&zS(a,"dc_submodel",[b]);null!=this.o.sc&&zS(a,"dc_adk",[this.o.sc]);b=new yg;IW(this,b);JW(this,b);GW(this,b);HW(b);zg(b,"js")&&zS(a,"dc_js",[b.get("js")]);zg(b,"msid")&&zS(a,"dc_msid",[b.get("msid")]);zg(b,"frm")&&zS(a,"dc_frm",[b.get("frm")]);zg(b,"osd")&&zS(a,"dc_osd",[b.get("osd")]);zg(b,"sdr")&&zS(a,"dc_sdr",[b.get("sdr")]);zS(a,"dcmt",["text/xml"]);
zg(b,"vpa")&&zS(a,"vpa",[b.get("vpa")]);zg(b,"mpt")&&zS(a,"mpt",[b.get("mpt")]);zg(b,"mpv")&&zS(a,"mpv",[b.get("mpv")]);aL(XK(),41351083)||ch(a,"https");return a};B(sX,FW);sX.prototype.B=function(a){a=new P(a.get("adTagUrl"));aL(XK(),41351083)||ch(a,"https");return a};
sX.prototype.G=function(){var a=D(this.C().get("adTagUrl"));aL(XK(),41351083)||(a=a.replace(/^http:/i,"https:"));return a};
sX.prototype.C=function(){var a=new yg;a.set("adTagUrl",this.o.j);a.set("adsResponse",this.o.o);return a};B(tX,FW);tX.prototype.B=function(a){return new P(a.get("adTagUrl"))};
tX.prototype.C=function(){var a=new yg;a.set("adTagUrl",this.o.j);a.set("adsResponse",this.o.o);return a};B(uX,FW);uX.prototype.B=function(a){var b=new P(this.o.j);F(a.Na(),function(c){C(a.get(c))?b.j.remove(c):oh(b,c,a.get(c))});
aL(XK(),41351083)||ch(b,"https");return b};
uX.prototype.C=function(){var a=new yg,b=XK(),c=cL(b);C(D(c))||a.set("eid",c);a.set("sdkv",KW(this));a.set("sdki",this.D().toString(16));a.set("correlator",this.A.B);a.set("scor",this.A.j);null!=this.o.sc&&a.set("adk",this.o.sc);IW(this,a);JW(this,a);GW(this,a);HW(a);var c=nh(new P(this.o.j)),d=new LW;d.o=kX(d.o,c.get("overlay"));a.set("afvsz",aX(d,this.o.Cc,this.o.Bc,this.o.hf));c=this.A.A;null!=c&&(this.A.A=null,a.set("fbidx",c));c=this.A.N;null!=c&&a.set("ppid",c);c="null";d=this.A.D;null!=d?c=
d:vX(this.o.location)?c=this.o.location:vX(this.o.referrer)&&(c=this.o.referrer);a.set("url",c);c=this.A.G;null!=c&&a.set("submodel",c);c=this.A.F;null==c||OK()||(c=Lca(c),a.set("ciu_szs",c));a.set("impl","");c=aL(b,41351073);b=aL(b,41351074);(c||!OK()&&b)&&a.set("unviewed_position_start","1");return a};B(wX,uX);wX.prototype.B=function(a){a=wX.M.B.call(this,a);this.H||Nca(this,a);return a};B(xX,rX);xX.prototype.B=function(a){a=xX.M.B.call(this,a);this.H||Pca(this,a);return a};B(yX,FW);var Rca=["CPN","MT","LACT","VIS"];yX.prototype.B=function(){var a=new P(HK(this.o.j,Qca(this)));aL(XK(),41351083)||ch(a,"https");return a};
yX.prototype.C=function(){return new yg};DX.prototype.jd=function(){return null!=this.j&&this.j.jd()?!0:0<this.ads.length&&this.o<this.ads.length-1};
DX.prototype.J=function(a,b){return this.C?0<a.length?a:b:wb(b,0,1)};
DX.prototype.A=function(a,b,c){var d;if(!(d=null!=a.o)){var e=this.D;d=e.Cc||0;e=e.Bc||0;gU(a)&&!a.P?jU(a,"nonlinear")?BX(a,d,e):CX(a):jU(a,"linear")?CX(a):jU(a,"nonlinear")&&BX(a,d,e);d=null!=a.o}d?(this.F++,b(a)):(b=kb(a.B)?tL(DW):FT(a)?tL(XX):tL(uga),d=MW(b,a),wS(dba(a),"rm")?b.o=!1:rL(a.$,d),c(b))};
DX.prototype.G=function(a,b,c){var d=this.D.clone();d.o="";d.j=a.Ia;d.sc=IR(d.j,d.gi);FX(this,a,d,b,c)};B(KX,DX);KX.prototype.jd=function(){return null!=this.j&&this.j.jd()?!0:0<this.ads.length&&this.o<this.ads.length-1&&0==this.F};
KX.prototype.J=function(a,b){return b};
KX.prototype.A=function(a,b,c){var d=-1,d=null==this.j?cU(a):cU(this.ads[this.o]);this.L.A=d;KX.M.A.call(this,a,b,c)};
KX.prototype.G=function(a,b,c){this.L.A=-1;KX.M.G.call(this,a,b,c)};LX.prototype.fetch=function(a,b,c){C(D(a.o))?FS(a.j)&&null!=this.j&&!this.j.G?this.j.start(a,A(function(){NX(this,a,b,c)},this)):NX(this,a,b,c):fda(this,a,b,c)};
LX.prototype.o=function(a,b,c,d){var e=Sca(a,this.B).G(),e=pL(e,d,!0);d=a.ii&&fL(nga,e)?"POST":"GET";Wca(this.A,e,A(function(d){MX(this,d,a,b,c)},this),A(function(b,d){var e;
e=8==b?tL(PX):5==b||6==b?tL(oga):tL(pga,d);c(e);e="third_party";BS(a.j)?e="adsense":ES(a.j)?e="dart":FS(a.j)&&(e="xfp");e={rt:e,ec:b};NL(ML.getInstance(),18,e,!0)},this),this.D,d);
hda(a)};OX.prototype.reset=function(a){this.j=a+K()};B(SX,fd);var Mga={NORMAL:"normal",FULLSCREEN:"fullscreen"};B(YX,H);h=YX.prototype;h.Dg=!1;h.to=1E3;h.fp=30;h.gp=45E3;h.sq=15E3;h.ir=!1;h.ek=function(){var a=ZX(this);this.j.appendChild(this.H);this.display(this.H);this.play();return a};
h.ka=function(){null==this.K&&(this.K=this.ek());return this.K};
h.play=function(){null==this.o&&(this.o=Ud(function(){this.Dg||(this.ea(),this.ir=!0);this.o=null},this.ir?this.sq:this.gp,this))};
h.stop=function(){null!=this.o&&(Vd(this.o),this.o=null)};
h.display=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};
h.show=function(){mg(this.ka(),1);null!=this.A&&(Vd(this.A),this.A=null)};
h.ea=function(){mg(this.ka(),this.fp/100);null==this.A&&(this.A=Ud(function(){this.N();this.A=null},400,this))};
h.ix=function(){this.show();this.Dg=!0;this.C=Ud(function(){this.Dg&&this.stop();this.C=null},this.to,this)};
h.TC=function(){null!=this.C&&(Vd(this.C),this.C=null);this.Dg&&this.play();this.Dg=!1};
h.S=function(){YX.M.S.call(this);this.stop();Mb(this.Qc)};B($X,YX);h=$X.prototype;h.ek=function(){var a=ZX(this);L(a,"ima-container-rotator");this.F=O("div");this.j.appendChild(this.F);F(this.J,function(a,c){L(a,"ima-container-highlight");var d=63/this.J.length*(c+.5)-5,e=O("div",{id:Va(),"class":"ima-container-selector"});e.style.top=d+"px";this.Qc.R(e,"click",function(a){this.Lf(a.target)});
this.P.set(e.id,a);this.D.appendChild(e)},this);
this.Lf(wf(this.D));this.play();return a};
h.play=function(){null==this.wa&&(this.wa=new Sd(this.L),this.Qc.R(this.wa,"tick",this.uC));$X.M.play.call(this);this.wa.start()};
h.stop=function(){null!=this.wa&&this.wa.stop();$X.M.stop.call(this)};
h.uC=function(){var a=this.B;this.Lf((n(a.nextElementSibling)?a.nextElementSibling:xf(a.nextSibling))||wf(this.B.parentNode))};
h.Lf=function(a){this.B&&ae(this.B,"ima-container-active");L(a,"ima-container-active");var b=this.P.get(a.id);tf(b,this.F);this.B=a;this.F=b;this.display(b)};B(aY,YX);aY.prototype.ea=x;aY.prototype.ek=function(){var a=ZX(this);F(this.B,function(a){L(a,"ima-container-highlight");this.j.appendChild(a);this.display(a)},this);
this.play();return a};B(bY,Mz);h=bY.prototype;h.play=function(){if(this.Ua())return!1;this.Bi();this.hc("play");this.startTime=K();this.j=1;if(gga())return Of(this.o,this.F),this.B=Ud(this.jw,void 0,this),!0;this.Sl(!1);return!1};
h.jw=function(){jg(this.o);Mq(this.o,this.D);Of(this.o,this.A);this.B=Ud(A(this.Sl,this,!1),1E3*this.C)};
h.stop=function(){this.Ua()&&this.Sl(!0)};
h.Sl=function(a){Nq(this.o,"");Vd(this.B);Of(this.o,this.A);this.endTime=K();this.j=0;a?this.hc("stop"):this.Rb();this.Kg()};
h.S=function(){this.stop();bY.M.S.call(this)};
h.pause=function(){};B(eY,fd);h=eY.prototype;h.start=function(){this.Nk();this.o=0;fY(this);this.B=!0;this.C.start()};
h.play=function(){this.B||(fY(this),this.B=!0,this.C.start())};
h.pause=function(){this.B&&fY(this)};
h.Nk=function(){};
h.UA=function(){this.o+=.2;this.Mk(this.o,this.J);this.Z("timeUpdate");0>=this.J-this.o&&(fY(this),this.Z("end"))};
h.Mk=x;h.S=function(){this.B=!1;this.H.dispose();eY.M.S.call(this)};B(gY,fd);h=gY.prototype;h.S=function(){null!=this.K&&(this.K.dispose(),this.K=null);null!=this.L&&(this.L.dispose(),this.L=null);kY(this);null!=this.C&&(sf(this.C),this.C=null);null!=this.A&&(this.A=null);null!=this.j&&(sf(this.j),this.j=null);this.X.dispose();this.X=null;this.N.dispose();this.N=null;this.F.dispose();this.F=null;this.Y=!1;gY.M.S.call(this)};
h.update=function(a,b){this.U=b;if(!(0>=this.U||null==this.o.skipOffset||0>SS(this.o.skipOffset))){var c=SS(this.o.skipOffset);c>=this.U||3==this.B||(0>a?this.B=1:a<=c?(2!=this.B&&(iY(this,0),cY(this.C,.5,"ease-out",0,1).play(),ng(this.C,!0)),this.B=2):(3!=this.B&&(ng(this.j,!0),this.L=new bY(this.C,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.K=cY(this.j,.5,"ease-out",0,1),this.L.play(),this.K.play(),this.A.autofocus&&
this.A.focus(),this.F.R(yf(this.j),"mouseover",this.rC),this.F.R(yf(this.j),"mouseout",this.Oq),this.Oq()),this.B=3,this.Z("skipshown"),jY(this)&&(ng(this.H,!0),ng(this.G,!0),this.Z("video_extend_shown"))))}if(2==this.B)iY(this,a);else if(jY(this)&&!this.$){var d=20-a;0<d?(c="",d=qa("Ad will skip in {$xSeconds}",{xSeconds:Y(" "+Math.round(d))}),Cf(this.G,c+d)):this.D||3!=this.B||this.D||(this.D=!0,this.Z("video_extend_auto_skipped"))}};
h.skip=function(){return null==this.o.skipOffset||3!=this.B||this.D?!1:(this.D=!0,this.Z("PUBLISHER_INVOKED_SKIP"),!0)};
h.JC=function(a){OK()||a.stopPropagation();3!=this.B||this.D||(this.D=!0,this.Z("skip"))};
h.Sv=function(a){OK()||a.stopPropagation();3!=this.B||this.D||this.$||(this.$=!0,this.Z("video_extend_clicked"),ng(this.H,!1),ng(this.G,!1))};
h.Oq=function(){null==this.J&&(this.J=Ud(function(){this.Y=!0;cY(this.j,.5,"ease-in",1,.5).play();this.J=null},this.Y?5E3:15E3,this))};
h.rC=function(){mg(this.j,1);kY(this)};
h.setVisible=function(a){null!=this.P&&ng(this.P,a);null!=this.A&&ng(this.A,a);null!=this.H&&ng(this.H,a&&jY(this));null!=this.G&&ng(this.G,a&&jY(this))};B(lY,fd);h=lY.prototype;h.show=function(){null!=this.o&&ng(this.o,!0)};
h.skip=function(){var a;if(a=null!=this.B)a=this.B,a=null!=a.o.skipOffset&&3==a.B;return a?this.B.skip():!1};
h.S=function(){null!=this.o&&(sf(this.o),this.o=null);oY(this);F(this.P,function(a){aQ(a)});
this.P=[];this.C=null;this.A.dispose();this.A=null;this.oa=!1;lY.M.S.call(this)};
h.update=function(a,b,c,d,e){this.oa=!0;null!=this.o&&(null!=this.da&&zda(this,a,c,d,e),null!=this.T&&hg(this.T,a/c*100+"%"),null!=this.ga&&hg(this.ga,b/c*100+"%"),0<c&&null!=this.j.skipOffset&&null!=this.B&&(TS(this.j.skipOffset,c),this.B.update(a,c)),this.j.F&&0<c&&5>c-a&&L(this.N,"videoAdUiTopBarNoFade"),F(this.Ca,function(b){b.update(a,c)},this))};
h.mv=function(){this.Z("videoAuthorIconClicked")};
h.nv=function(){this.Z("videoAuthorClicked")};
h.bp=function(){this.Z("videoLearnMoreClicked")};
h.GC=function(){this.Z("videoShareClicked")};
h.PC=function(){this.Z("videoTitleClicked")};
h.Cx=function(a){a.preventDefault()};
h.dj=function(){this.Z("click")};
h.FC=function(){L(this.N,"videoAdUiTopBarTransitions")};
h.dC=function(){var a=Jf(this.o,"html5-video-player"),b=this.j.C;null!=a&&(b.B=new Hm(b),b.o=new fd,b.o.Tg(this),b.D=a,b.nq(),b.o.Z("why_this_ad_url"));null!=this.B&&this.B.setVisible(!1)};
h.ZC=function(){null!=this.B&&this.B.setVisible(!0)};h=sY.prototype;
h.nq=function(){var a={heading:"",Wq:[],learnMore:"",nk:"",control:"",mute:""};if(null!=this.C){a.heading=this.C.C;var b=this.C.o;if(b&&3==b.length){var c=b[1],d=b[2],b=EQ(Y(b[0])+gR()+Y(c)+EQ("</a>")+Y(d));a.nk=b}a.Wq=sb(this.C.D);a.close=this.C.A}else a.nk=fR(),b="",c=qa("Got It"),a.close=b+c;null!=this.A&&(a.mute=this.A.B);uY(this,xaa,a);tY(this,"videoAdUiWhyThisAdCloseButton",this.Ph);tY(this,"videoAdUiWhyThisAdControl",this.Pn);tY(this,"videoAdUiWhyThisAdMute",this.cC);a=this.Pn;b=bf("videoAdUiWhyThisAdGenericMessage",
this.j);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&this.B.R(b,"click",a))};
h.Ph=function(){null!=this.B&&(this.B.dispose(),this.B=null);mY(this)&&null!=this.j&&(null!=this.o&&(this.o.Z("why_this_ad_got_it"),this.o.dispose(),this.o=null),this.j.parentElement.removeChild(this.j),this.j=null)};
h.Pn=function(){null!=this.o&&this.o.Z("why_this_ad_settings_url")};
h.cC=function(){if(null!=this.A){this.o.Z("mute_interaction_url");var a,b=SV(this.A);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},uY(this,zaa,a),tY(this,"videoAdUiMuteCancel",this.nq),tY(this,"videoAdUiMuteConfirm",this.Fv);else{this.o.Z("mute_url");a={heading:this.A.A,undo:this.A.D,question:this.A.C,options:[],confirm:"SEND",cancel:"CLOSE"};for(var c=0;c<b;c++)a.options.push(this.A.o[c].label);uY(this,yaa,a);tY(this,"videoAdUiMuteUndo",
this.SC);tY(this,"videoAdUiMuteConfirm",this.LC);tY(this,"videoAdUiMuteCancel",this.bk)}}};
h.Fv=function(){this.o.Z("mute_url");this.bk()};
h.SC=function(){this.o.Z("mute_undo_url");this.Ph()};
h.LC=function(){if(null!=this.A){for(var a=SV(this.A),b=!1,c=0;c<a;c++){var d=bf("videoAdUiMuteOption"+c,this.j);if(null!=d&&d.checked){b=!0;oL(this.A.o[c].url);break}}if(!b)return}this.bk()};
h.bk=function(){this.o.Z("MUTE_AD");this.Ph()};B(xY,eY);h=xY.prototype;h.start=function(){this.Nk();this.A.update(0,this.K);cY(this.j,this.G.o,"ease-out",0,1).play();this.H.R(this.A,"skip",this.gv);xY.M.start.call(this)};
h.getContainer=function(){return this.j};
h.Nk=function(){var a=jg(this.j);if(1==this.F){var b=400>=(0,window.parseInt)(Sf(this.j,"width"),10)||400>=a.width;N(this.j,"videoAdUi-mobile",b)}else if(2==this.F){var c=wf(this.j),d=jg(c),e=65>=(a.height-d.height)/2;N(this.j,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;N(this.j,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
h.gv=function(){this.pause();this.Z("skip")};
h.Mk=function(a,b){this.A.update(a,b);if(this.D){var c=dY({Wf:yY(b-a)});Cf(this.D,c)}};
h.S=function(){this.A&&this.A.dispose();qf(this.j);xY.M.S.call(this)};B(zY,H);zY.prototype.J=function(a,b,c){b=gc(b||{});if("timeout"==(b.viewability||"")){var d=this.G[a];null!=d&&(b.viewability=d)}null!=b.viewability&&(d=b.viewability,null!=d&&(this.j.VIEWABILITY=d));"impression"==a&&!this.H&&null!=this.D&&0<this.D.length&&(d=ib(this.F,"impression"),BY(this,this.D,{},d),this.H=!0);if(Cda(this,a)){var d=ib(this.F,a),e=$S(this.A,a);0<e.length&&(BY(this,e,b,d,c),this.o.set(a,!0))}this.j.VIEWABILITY="na"};B(CY,fd);h=CY.prototype;h.Rg=function(){var a=jb(this.ads,this.H);-1!=a&&++a<this.ads.length?this.H=this.ads[a]:this.H=null};
h.Dq=function(){if(!EY(this)){if(kb(this.ads))throw vL(XX);this.H=this.ads[0];if(null==this.H.o)throw tL(XX);}};
h.ua=function(a){EY(this)?this.Z(new GK(a,DY(this))):this.Z(new GK(a,null))};
h.uz=function(){};
h.yl=function(){};
h.destroy=function(){this.dispose()};
h.S=function(){EY(this)&&(UT(this.H,null),this.H=null);Mb(this.G);this.F=this.G=null;this.da=!1;PK.j&&(JP().D=null);CY.M.S.call(this)};
h.Md=function(){return[]};
h.getCurrentAd=function(){return this.ads[0]};
h.init=function(a){OY(this);this.ni(a);this.ta=!0;this.Ci();if(PK.j){a=JP();var b=A(this.wx,this);a.D=b}};
h.Ci=function(){this.ua("loaded")};
h.sendImpressionUrls=function(a){EY(this)&&OK()&&rL(ST(DY(this)),a)};
h.Jq=x;h.Gd=function(a,b,c){if(!this.da){if(null==a)throw vL(kR,null,"displayContainer");if(null!=c){var d=new ek(Yb(this.o));if(!Hg(Yb(c),d.contains,d))throw vL(kR,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.o;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.Bg&&(c.Bg=[]);Fda(c.Bg);if(!fa(c.loadVideoTimeout)||0>=c.loadVideoTimeout)c.loadVideoTimeout=15E3;ic(d,c)}this.content=b;this.B=a;this.Dq();this.j=this.B.ji(Dda(this));this.da=!0}};
h.Ne=function(a){a=wS(ET(a),"rm")?a.J:ST(a);F(a,function(a){nb(this.D.D,a)},this)};
h.Xd=function(a,b){F(b,function(b){b=mT(a,b);XS(this.D.A,b)},this)};
h.Mi=function(a){if(a instanceof rT){var b=sT(a);F(b.Na(),function(a){var d=b.get(a);F(d,function(b){ZS(this.D.A,a,b)},this)},this)}};
h.getCurrentTime=function(){return-1};
h.He=function(){return-1};
h.tf=function(a,b,c){this.ni(c)};
h.pause=x;h.resume=x;h.skip=x;h.start=function(){OY(this);if(!this.ta)throw tL(GY,null,"Must call init before start.");};
h.stop=function(){this.destroy()};
h.yo=function(){return null!=this.volume?this.volume:0};
h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&xL(this,kR,null,"volume",String(a));this.volume=a};
h.ni=function(a){if(!Vb(Mga,a))throw vL(kR,null,"view mode",a);this.P=a};
h.getMediaUrl=function(){return null};
h.xo=function(){return null};
h.zo=function(){return null};
h.jf=function(){return null};
h.wx=function(){var a=this.getCurrentTime(),b=this.He(),c=this.getCurrentAd();return{currentTime:a,duration:b,isVpaid:null!=c?yU(this.getCurrentAd()):!1,volume:this.yo()}};
h.pC=function(a){F(rb(H$,Wb(J$)),function(b){var c=YS(a.j,b);kb(c)||this.Gl(b,c)},this);
Bda(this.D,a.G)};
h.Gl=function(a,b){F(b,function(a){var b=a.getType();ZS(this.D.A,b,a.j)},this)};B(SY,CY);h=SY.prototype;h.start=function(){SY.M.start.call(this);this.B.Oe();this.J=this.B.De();if(null!=this.J){MY(this,"show_ad");qf(this.J);var a=this.Dn();PK.j?NP(JP(),a):xba(QU(),a);this.J.appendChild(a);this.Mh();F(this.$,function(a){a()});
lb(this.$);this.U=!0}};
h.tf=function(a,b,c){SY.M.tf.call(this,a,b,c);this.Mh()};
h.S=function(){Mb(this.A);this.B=this.A=null;this.U=!1;PK.j?JP().B=null:QU().A=null;null!=this.J&&(qf(this.J),this.J=null);SY.M.S.call(this)};
h.Dn=function(){var a=VT(DY(this));if(null==a)throw a=vL(XX),UY(this,a),a;var b=DY(this);vT(a,JY(this));wT(a,this.mw);a.C||xT(a,oa(this.Ik,b,a));try{KY(this,b)}catch(d){throw UY(this,d),d;}this.Ne(b);var c=SW(b,this.j);this.D.j=c;b.o&&(this.Ne(b),(b=b.o)&&this.Xd(b,mga));this.Xd(a,["start"]);TY(this,a);return this.Bh([a.Jd()])};
h.Ao=function(a,b){return new YX(a[0],b)};
h.Bh=function(a){null!=this.A&&this.A.stop();this.A=this.Ao(a,A(this.Uh,this));a=this.A.ka();N(a,"autoalign",this.o.An);OK()&&N(a,"viewmode-fullscreen","fullscreen"==this.P);a.appendChild(this.ha);JY(this).R(a,"click",mc);(EY(this)&&gU(DY(this))||this.o.useStyledNonLinearAds)&&this.Tj(this.A.j);return a};
h.Tj=function(a){var b=JY(this);this.Y=yQ(sda);b.R(this.Y,"click",this.Fw);var c="",d=qa("Close"),c=yQ(rda,{close:c+d});b.R(c,"click",this.ci);L(a,"extra-padding");null!=this.ga&&728<=this.ga.getWidth()&&L(a,"wide-overlay-ad");a.appendChild(c)};
h.Mh=function(a,b){if(null!=this.A){var c=a?a:0,d=b?b:0,e=jg(this.B.De()),f;f=OK()?jg(wf(this.A.j)):jg(this.A.j);if(f.width+c>e.width||f.height+d>e.height)throw c=vL(sga,null),UY(this,c),d={},d.pid=LU.getInstance().j,d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=VT(DY(this)).getContentType(),d.vm=this.P,NL(ML.getInstance(),38,d,!0),this.stop(),c;}};
h.mw=function(a){NY(this,"click");mc(a)};
h.ci=function(){MY(this,"close");this.Uh(!0)};
h.Ik=function(a,b){xT(b,x);this.U?this.Og(a,b):this.$.push(A(this.Og,this,a,b))};
h.Og=function(a){a=SW(a,this.j);this.D.j=a;NY(this,"impression");MY(this,"creativeview");NY(this,"start")};
h.Uh=function(a){null!=this.A&&(this.A.stop(),null!=this.Y&&tf(this.Y,this.A.j),a?this.ua("userClose"):this.ua("autoClose"))};
h.Fw=function(a){mc(a);this.A.show();this.A.play();tf(this.A.j,this.Y);Ud(function(){ng(this.ha,!1)},500,this);
ng(this.ha,!0);this.ua("userRecall")};B(VY,SY);h=VY.prototype;h.Ao=function(a,b){if(this.T||null==b)b=x;var c;OK()&&this.T?c=new YX(a[0],b):1<a.length?XY(this)||"fullscreen"==this.P&&OK()?c=new aY(a):(c=new $X(a),c.L=15E3):c=new YX(a[0],b);c.to=100;this.T&&(c.fp=30);c.gp=45E3;c.sq=6E3;N(c.j,"scalable",this.T);N(c.ka(),"yt-text-overlay",OK()&&this.T);return c};
h.wC=function(a){var b=a.o;null!=b?(null==this.fa&&(this.fa=a.getExtension("AdSense").B),xT(b,oa(this.Ik,a,b)),wT(b,oa(this.ow,a,b)),"Text"==b.getContentType()&&(this.T=!0),this.N.push(b)):(b=tL(XX),b=MW(b,a),rL(RT(a),b))};
h.Gd=function(a,b,c){VY.M.Gd.call(this,a,b,c);this.o.An=!0;a=DY(this);kb(TT(a))?OK()&&this.ua("companionBackfill"):KY(this,a)};
h.Dn=function(){null==this.N&&(this.N=[],F(this.ads,this.wC,this));if(0==this.N.length)throw vL(XX);var a=[];F(this.N,function(b){vT(b,JY(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.Fn=!0);a.push(b.Jd());$aa(b,this.fa.D)},this);
if(0==a.length)throw vL(XX);Gda(this);return this.Bh(a)};
h.start=function(){VY.M.start.call(this);!this.ca&&XY(this)&&(this.ca=!0,this.ua("contentPauseRequested"));null!=this.C&&this.C.start();if(this.U){var a=YY(this);NL(ML.getInstance(),33,a)}};
h.ci=function(a){VY.M.ci.call(this,a);F(this.N,function(a){var c=SW(a.getAd(),this.j);this.D.j=c;this.Xd(a,["close"]);MY(this,"close");this.D=new zY},this)};
h.Uh=function(a){VY.M.Uh.call(this,a);XY(this)&&(null!=this.J&&qf(this.J),this.ca&&(this.ca=!1,this.ua("contentResumeRequested")))};
h.Bh=function(a){a=VY.M.Bh.call(this,a);if(XY(this)){var b=uS(2);L(this.A.j,b);L(a,b)}return a};
h.Tj=function(a){if(XY(this)){var b=yf(a);b&&((a=uf(a)[0])&&Of(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense"),this.C=new xY(b,a.B||new dV,2,WY(this),!0),JY(this).R(this.C,"skip",this.Iw),JY(this).R(this.C,"end",this.rx))}else VY.M.Tj.call(this,a),b=yQ(tda,WY(this)),a.appendChild(b)};
h.Ik=function(a,b){this.U?this.Og(a,b):this.$.push(A(this.Og,this,a,b));xT(b,x);this.ua("impression")};
h.Og=function(a,b){var c=SW(a,this.j);this.D.j=c;this.Ne(a);this.Xd(b,["creativeview"]);MY(this,"impression");MY(this,"creativeview");NY(this,"start");this.D=new zY};
h.ow=function(a,b,c){c=fg(c);a=a.getExtension("AdSense");a=new P(a.A);var d=b.getWidth();(0,window.isNaN)(d)&&(d=ig(b.Jd()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=ig(b.Jd()).height);b=XK();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.P,"sdkv=h.0.0.0","eids="+cL(b)];OK()||(c=jg(this.B.De()),d=this.C?Ada(this.C):new qe(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));nL(a,"elementclick",b);F(this.N,function(a){var b=SW(a.getAd(),this.j);this.D.j=b;TY(this,
a);MY(this,"click");this.D=new zY},this);
this.ua("click")};
h.ni=function(a){this.P!=a&&(VY.M.ni.call(this,a),this.ua("expandedChanged"))};
h.Mh=function(){VY.M.Mh.call(this,this.C?15:0,this.C?65:0)};
h.Iw=function(){ZY(this,"skip")};
h.rx=function(){ZY(this,"close")};B($Y,GK);bZ.prototype.videoCount=0;cZ.prototype.isListed=!0;B(fZ,eY);var Z$=Math.ceil(10*3.14);fZ.prototype.Mk=function(a,b){var c=(b-a)/b*Z$+" "+Z$;null!=this.j&&Of(this.j,"stroke-dasharray",c)};B(iZ,H);iZ.prototype.show=function(a,b){jZ(this);OG&&a?(a.appendChild(this.o),this.wa=Ud(A(this.j,this,b),2E3)):b()};
iZ.prototype.j=function(a){this.wa=0;sf(this.o);a()};
iZ.prototype.S=function(){jZ(this);iZ.M.S.call(this)};B(kZ,lc);B(lZ,fd);mZ.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var Nda={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};h=lZ.prototype;h.S=function(){nZ(this);lZ.M.S.call(this)};
h.qA=function(a){var b=a.j;this.B.G.measurable_impression=null!=b?b.viewabilityString:null;a.j.queryId==this.F&&oZ(this,"measurable_impression",!0,!1)};
h.TB=function(a){a=a.j;a.queryId==this.F&&(this.B.G.viewable_impression=null!=a?a.viewabilityString:null,oZ(this,"viewable_impression",!0,!0))};
h.Uz=function(a){a=a.j;var b=J$[a.eventName];b&&a.queryId==this.F&&(this.B.G[b]=null!=a?a.viewabilityString:null,oZ(this,b,!0,!0))};
h.Ux=function(){var a=this.j.Nd();if(-1!=a){this.j.pg(.25*a)&&oZ(this,"firstquartile",!0,!0);this.j.pg(.5*a)&&oZ(this,"midpoint",!0,!0);this.j.pg(.75*a)&&oZ(this,"thirdquartile",!0,!0);var b=this.B,c=this.j.getCurrentTime();0>b.B&&(Taa(b.A,a),b.B=0);for(var a=YS(b.A,"progress"),d=b.B;d<a.length;d++){var e=a[d];if(SS(e.o)>c)break;b.B=d+1;oL(e.j,b.j)}}pZ(this)};
h.Tx=function(){this.J=!0;oZ(this,"impression",!0,!0);oZ(this,"creativeview",!0,!0);null!=this.K||null!=this.A||this.o.R(this.j,"click",this.Yk);null!=this.K&&(this.D=new YP,this.o.R(this.D,"click",this.Yk,!1),ZP(this.D,this.K));null!=this.A&&(this.G=new YP,this.o.R(this.G,"click",this.Yk,!1),ZP(this.G,this.A));oZ(this,"start",!0,!0);(this.j.uf()||0==this.j.kd())&&oZ(this,"mute",!1,!1)};
h.Vx=function(){var a=this.j.uf(),b=this.j.kd(),c=this.C;c.mute&&!a||!a&&0==c.volume&&0<b?oZ(this,"unmute",!1,!1):this.C.muted(a,b)&&oZ(this,"mute",!1,!1);this.C.mute=a;this.C.volume=b};
h.Rx=function(){this.j.Ie()?qZ(this):this.j.vf()&&!this.j.Eo()&&(this.C.j=!0,oZ(this,"pause",!1,!1))};
h.Sx=function(){this.C.j&&(this.C.j=!1,oZ(this,"resume",!1,!1))};
h.Nx=function(){qZ(this)};
h.Yk=function(){oZ(this,"click",!1,!1)};
h.Ox=function(){oZ(this,"error",!1,!1)};
h.Qx=function(){oZ(this,"mediaLoadTimeout",!1,!1)};
h.bq=function(){oZ(this,"skipshown",!0,!1)};
h.Dp=function(){oZ(this,"video_extend_shown",!0,!1)};
h.bw=function(a){oZ(this,a.type,!1,!1)};
h.GB=function(a){this.Z(a)};
h.SB=function(){oZ(this,"videoShareShown",!0,!1)};
h.Oo=function(){oZ(this,"skip",!0,!1)};
h.wp=function(){oZ(this,"video_extend_auto_skipped",!0,!1)};
h.Ep=function(){oZ(this,"video_extend_clicked",!0,!1)};
h.VA=function(){oZ(this,"skip",!0,!1)};
h.Px=function(){oZ(this,"fullscreen",!1,!1)};
h.Tz=function(){oZ(this,"exitfullscreen",!1,!1)};B(rZ,CY);h=rZ.prototype;h.S=function(){wZ(this);this.Ca.dispose();tZ(this);F(this.ga.Ka(),Vd);var a=!1;null!=this.B&&(a=this.B.Kk(),this.B.ea(),this.B=null);this.T&&(this.T=!1,this.j.vf()||this.j.Ie()||this.j.pause(),EL()&&!a&&(this.j.wf(.001),this.j.load("","")),BL()&&this.j.Od()&&!a&&this.j.mk(),this.ua("contentResumeRequested"),this.ua("allAdsCompleted"));rZ.M.S.call(this)};
h.Rg=function(){tZ(this);rZ.M.Rg.call(this);EY(this)&&(this.D=new zY,this.N=new lZ(this.D),this.ca=!1,this.ua("loaded"))};
h.yl=function(a){rZ.M.yl.call(this,a);null!=this.j&&aL(XK(),9419278)&&this.j.Ll(1)};
h.Pv=function(a,b){b.preventDefault();this.U||(this.U=!0,NY(this,"video_card_endcap_action"));a&&(this.C.pause(),mL(a))};
h.Rn=function(){sZ(this,function(){vZ(this,"video_card_endcap_dismiss")})};
h.Qv=function(){vZ(this,"video_card_endcap_collapse")};
h.gy=function(a,b,c){if(!this.ha){this.ha=!0;var d=eQ(b);d&&(a.D=d);if(this.o.useVideoAdUi){var d=a.getExtension("AdSense"),e;(e=this.za||a.A.Pc("show_ads_pay_this_creator_info_card"))||(e=null===b?!1:"modules"==(new P(b)).Ce().toLowerCase()||iQ(b));e=e||null!=d&&d.H;var d=HT(a)?null:mU(a),f;if(OK()||JL())f=0;else{if(f=AL()){a:{for(f=0;f<this.ads.length;++f)if(!PY(this.ads[f])){f=!1;break a}f=AL()}f=!f||null==this.B||!this.B.ik()}f=f||uU(a)||this.o.hm}f&&(this.o.gm=!0,this.o.hm=!0);if(OK()||this.o.hm){f=
this.o;var k=C(D(qU(a)))?!1:this.o.gm,l=OK()||!1,m=OK();PY(a);var p=JT(a),d=wY(e,a.D,d,f);d.A=k;d.P=l;d.K=!0;d.H=m;d.L=p;d.B=f.fm;d.N=f.useShareButton;d.T=f.YC;d.$=0;f.fm&&(e="",f=qa("Visit Advertiser"),d.Ef=e+f)}else PT(a)||!C(D(a.D))?(f=a.D,!C(D(f))&&null!==d&&0<SS(d)&&(e=!0),d=wY(e,f,d,this.o),d.G=e?taa:saa):(d=wY(e,a.D,d,this.o),d.U=!1,d.D=!1,d.j=!1);e=this.B.$h();null===e?e=window.document.body:qf(e);f=DY(this);k=1E3*kU(f);l=f.getExtension("why_this_ad");m=f.getExtension("mute");p=f.A.Pc("enable_why_this_ad_for_desktop");
d.C=new sY(l,m,p);mY(d.C)&&(m=null!=l?l.B:void 0,l="<span class='videoAdUiAdSettingsShortTooltip'>",m?l+=Y(m):(m=qa("Click for Ad Settings"),l+=m),l=EQ(l+"</span>"),d.se=l);this.A=new lY(d,e,k);e=f.D;null!=e&&(xZ(this),d.T&&MZ(this,e));this.za&&(f=a.getExtension("AdSense"),null!=f?(e=this.A,f=D(f.o),null!=e.G&&(ng(e.G,!0),f=new P(f),f=(f.o+f.A).replace(/^www\./i,""),C(D(f))?pY(e):Cf(e.G,f)),null!=e.K&&ng(e.K,!0)):pY(this.A));e=[];d.D&&e.push("adAttribution");d.j&&e.push("countdown")}else d&&this.o.Sj&&
(xZ(this),MZ(this,d));d=this.N;e=this.j;f=this.B.rk();k=this.A;nZ(d);d.B.C=a.ca;d.j=e;d.A=k||null;d.j.oi();d.C=new mZ(d.j);d.K=f||null;d.o=new Hm(d);d.F=a.ca;e=PK.j?JP():QU();d.o.R(e,"externalActivityEvent",d.Uz);d.o.R(e,"measurable_impression",d.qA);d.o.R(e,"viewable_impression",d.TB);d.o.R(d.j,"timeUpdate",d.Ux);d.o.R(d.j,"volumeChange",d.Vx);d.o.R(d.j,"pause",d.Rx);d.o.R(d.j,"play",d.Sx);d.o.R(d.j,"end",d.Nx);d.o.R(d.j,"beginFullscreen",d.Px);d.o.R(d.j,"endFullscreen",d.Tz);d.o.R(d.j,"skip",d.Oo);
d.o.R(d.j,"skipShown",d.bq);d.o.R(d.j,"video_extend_auto_skipped",d.wp);d.o.R(d.j,"video_extend_clicked",d.Ep);d.o.R(d.j,"video_extend_shown",d.Dp);d.o.R(d.j,"start",d.Tx);d.o.R(d.j,"error",d.Ox);d.o.R(d.j,"mediaLoadTimeout",d.Qx);null!=d.A&&(d.o.R(d.A,"urlNavigationRequested",d.GB),d.o.R(d.A,"videoShareShown",d.SB),d.o.R(d.A,"skipshown",d.bq),d.o.R(d.A,"skip",d.Oo),d.o.R(d.A,"PUBLISHER_INVOKED_SKIP",d.VA),d.o.R(d.A,"video_extend_auto_skipped",d.wp),d.o.R(d.A,"video_extend_clicked",d.Ep),d.o.R(d.A,
"video_extend_shown",d.Dp),d.o.R(d.A,"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 mute_interaction_url mute_url mute_undo_url".split(" "),d.bw));JY(this).R(this.N,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoShareClicked videoShareShown videoTitleClicked start".split(" "),
this.jq);JY(this).R(this.j,"loaded",this.QB);JY(this).R(this.j,"cardsStateChange",this.xx);JY(this).R(this.j,"timeUpdate",this.mq);JY(this).R(this.j,"volumeChange",this.Ax);this.Ne(a);d=SW(a,this.j);this.D.j=d;d=a.o;null!=d&&d instanceof rT&&(this.Xd(d,H$),this.Mi(d),d=JY(this),Im(d,this.N,"error",this.yx,this),Im(d,this.N,"mediaLoadTimeout",this.zx,this));QY(this,a);IT(a)&&(this.N.H=30);this.j.Pl(Qda(this,a));this.j.load(b,c)}};
h.fC=function(a,b,c){null!==a.F&&NL(ML.getInstance(),34,{evt:"filled"},!0);this.oa||(this.oa=!0,this.ua("contentPauseRequested"));this.T=!0;this.gy(a,b,c);MY(this,"show_ad");this.setVolume(this.Y);this.A&&(C(D(AZ(a)))?(b=this.A,null!=b.C&&(b.A.xa(b.C,"click",b.dj),Of(b.C,"cursor","default"))):(b=this.A,null!=b.C&&(b.A.R(b.C,"click",b.dj),Of(b.C,"cursor","pointer"))),b=a.o.Qa,kb(b)||yda(this.A,b),this.A.show());this.B.Cg();try{KY(this,a)}catch(d){EZ(this,LY,d);return}LU.getInstance().end("pi");LU.getInstance().start("bt");
this.Ca.show(this.B.$h(),A(this.j.play,this.j))};
h.Ci=function(){Rda(this);this.ua("loaded");this.Z(new $Y(DY(this)))};
h.skip=function(){EY(this)&&IT(DY(this))&&(null!=this.A?this.A.skip():(MY(this,"skip"),LZ(this)))};
h.Jq=function(){NY(this,"skipshown")};
h.start=function(){rZ.M.start.call(this);LU.getInstance().start("pi");this.$=[];try{var a=DY(this);this.J=BZ(this,a);sZ(this,A(rZ.prototype.fC,this,a,this.J.o,this.J.j))}catch(b){FZ(this,b),this.Rg(),EY(this)?(wL(vL,this,GZ,b,void 0),this.start()):(this.T?wL(vL,this,GZ,b,void 0):(null!=this.F&&CU(this.F,AU()),xL(this,GZ,b)),this.stop())}};
h.yo=function(){OY(this);return this.j.uf()?0:this.j.kd()};
h.setVolume=function(a){OY(this);this.T?this.j.setVolume(a):this.Y=a};
h.pause=function(){OY(this);this.C?this.C.pause():this.j.pause()};
h.resume=function(){OY(this);this.C?this.C.play():this.j.play()};
h.getCurrentTime=function(){OY(this);var a=this.C?this.C.o:0;return this.j.getCurrentTime()+a};
h.He=function(){OY(this);var a=EY(this)?rU(DY(this)):0;return this.j.Nd()+a};
h.jf=function(){return this.j.jf()};
h.yx=function(){this.j.getError();EZ(this,GZ,vL(GZ,this.j.getError()))};
h.zx=function(){EZ(this,K$,vL(K$,null,(this.o.loadVideoTimeout/1E3).toString()))};
h.Gl=function(a,b){rZ.M.Gl.call(this,a,b);IZ(this,a)};
h.jq=function(a){switch(a.type){case "start":$da(this);qba();this.ua("start");Eda(this);break;case "impression":this.ua("impression");break;case "why_this_ad_url":this.Fa=this.j.vf();DZ(this,"why_this_ad_url");this.pause();break;case "pause":this.ua("pause");break;case "why_this_ad_got_it":DZ(this,"why_this_ad_got_it");this.Fa||this.resume();break;case "resume":this.ua("resume");break;case "firstquartile":this.ua("firstquartile");break;case "midpoint":this.ua("midpoint");break;case "thirdquartile":this.ua("thirdquartile");
break;case "complete":Oda(this)||(this.ua("complete"),uZ(this));break;case "click":this.A&&this.A.j.A?this.j.vf()?this.resume():this.pause():HZ(this);break;case "engagedview":JZ(this);this.ua("engagedview");break;case "urlNavigationRequested":this.Z(a);break;case "videoAuthorIconClicked":OZ(this);break;case "videoAuthorClicked":OZ(this);break;case "videoClicked":this.ua("videoClicked");break;case "videoLearnMoreClicked":this.C&&!this.U&&(this.U=!0,NY(this,"video_card_endcap_action"));this.j.pause();
aL(XK(),41351017)&&JZ(this);HZ(this);break;case "videoShareClicked":Wda(this);break;case "videoShareShown":Xda(this);break;case "videoTitleClicked":Yda(this);break;case "skipshown":this.ua("skippableStateChanged");break;case "video_extend_auto_skipped":LZ(this,!0);break;case "skip":this.C?this.Rn():LZ(this);break;case "MUTE_AD":this.ua("MUTE_AD"),sZ(this,function(){uZ(this)})}};
h.Ne=function(a){rZ.M.Ne.call(this,a);IZ(this,"impression")};
h.Xd=function(a,b){rZ.M.Xd.call(this,a,b);F(b,function(a){IZ(this,a)},this)};
h.Mi=function(a){rZ.M.Mi.call(this,a);a instanceof rT&&(a=sT(a),F(a.Na(),function(a){IZ(this,a)},this))};
h.xo=function(){if(!EY(this))return null;try{return BZ(this,DY(this)).o}catch(a){return null}};
h.getMediaUrl=function(){if(!EY(this))return null;var a=DY(this);if(!IY(a))throw vL(CZ);a=a.o.J;return kb(a)?null:a[0].o};
h.QB=function(){this.ua("adCanPlay")};
h.xx=function(){var a=this.A;null!=a.o&&N(a.o,"ytp-iv-drawer-open",this.j.Bo())};
h.mq=function(){var a=this.He(),b;OY(this);b=this.C?this.He():this.j.Co();var c=this.getCurrentTime(),d=0,e=0;EY(this)&&(e=DY(this),d=e.C.o,e=e.C.B);if(null!=this.A&&0<=a&&0<=c){var f;if(f=!this.fa)f=3==DY(this).ga;if(f){f=this.j.Nd();var k=oU(DY(this));f=Math.abs(f-k);2<f&&(f=vL(vga,null,Number(f).toFixed(2)),f=MW(f,DY(this),this.j),k=RT(DY(this)),rL(k,f));this.fa=!0}this.A.update(c,b,a,d,e)}};
h.Ax=function(){var a=this.j.kd();a!=this.Y&&(this.Y=a,this.ua("volumeChange"),0==a&&this.ua("mute"))};
h.pw=function(a){var b=a.j;if("companion-setup-complete"==b.data){a=DY(this);var c=(0,window.encodeURIComponent)(D(qU(a)))+","+(0,window.encodeURIComponent)(KZ(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=qU(a)?210:185}else"pause-video"==b.data&&this.pause()};B(PZ,lc);B(QZ,CY);h=QZ.prototype;
h.init=function(a){QZ.M.init.call(this,a);JY(this).R(window,"message",this.UB);a=PK.j?JP():QU();JY(this).R(a,I$,this.iA);if(this.J)this.Z(new PZ);else{a=sU(DY(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.o.contentId&&(a=bh(a,"v",this.o.contentId));OK()&&(b=Yg(a,"st"),a=bh(a,"st",b?b+" yt":"yt"))}a=D(a)}else{var b=new P(a),c=new P("http://tpc.googlesyndication.com/pagead/js/loader11.html");"https"==
b.B&&ch(c,"https");this.Ca=b.o;a=gh(c,a||"",void 0).toString()}this.C=O("iframe",{src:iL(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});JY(this).R(this.C,"load",this.Iv);JY(this).R(this.C,"error",this.jA);this.B.De().appendChild(this.C)}};
h.Gd=function(a,b,c){QZ.M.Gd.call(this,a,b,c);this.L=VT(DY(this))instanceof rT;this.A=a.ji(!1);this.ha=Ud(this.Bx,this.o.loadVideoTimeout,this);this.J||(JY(this).R(this.A,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.aB),JY(this).R(this.A,L$,this.qz))};
h.stop=function(){this.B.ea();QZ.M.stop.call(this)};
h.start=function(){QZ.M.start.call(this);if(!OK()){var a={};a.pid=LU.getInstance().j;a.dn=this.Ca;a["if"]=this.J;NL(ML.getInstance(),29,a,!0)}a=DY(this);this.D.C=a.ca;var b=SW(a,this.A);this.D.j=b;if(b=a.o)this.Ne(a),this.Xd(b,H$),this.Mi(b),QY(this,a);this.A.oi();MY(this,"show_ad");this.B.Oe();null!=this.C&&(this.C.style.display="block");this.za=!0;this.L&&this.ua("contentPauseRequested");XZ(this)};
h.tf=function(a,b,c){QZ.M.tf.call(this,a,b,c);TZ(this,"resizeAd",{width:a,height:b,viewMode:c})};
h.pause=function(){this.T||TZ(this,"pauseAd")};
h.resume=function(){this.T&&TZ(this,"resumeAd")};
h.setVolume=function(a){QZ.M.setVolume.call(this,a);TZ(this,"setAdVolume",{value:a})};
h.S=function(){this.J&&this.Z(new PZ);sf(this.C);this.L&&this.ua("contentResumeRequested");this.ua("allAdsCompleted");this.ca=!1;this.Y=[];Vd(this.ha);Vd(this.$);QZ.M.S.call(this)};
h.Ci=function(){};
h.Iv=function(){if(!this.J){var a=this.A.xk();kb(a)&&(a=this.o.Bg);TZ(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}RZ(this)};
h.UB=function(a){a=a.j;if(this.J){if(a=uR(a.data),null!=a){try{var b=de(a.data)}catch(c){return}null!=b&&b.session==this.fa&&VZ(this,b)}}else if(a.source==this.C.contentWindow){try{b=de(a.data)}catch(c){return}b.session==this.fa&&VZ(this,b)}};
h.jA=function(a){UZ(this,XX,a);this.stop()};
h.Bx=function(){UZ(this,K$,null,(this.o.loadVideoTimeout/1E3).toString());this.stop()};
h.iA=function(a){var b=a.type;if(ib(I$,b)){if("externalActivityEvent"==b&&(b=a.j.eventName,!J$[b]))return;NY(this,b)}};
h.aB=function(a){switch(a.type){case "timeUpdate":a=this.A.Nd();var b=this.A.getCurrentTime();SZ(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":YZ(this,"ended");break;case "loaded":YZ(this,"loadstart");break;case "mediaLoadTimeout":YZ(this,"stalled");break;case "play":YZ(this,"playing");break;default:YZ(this,a.type)}};
h.qz=function(a){YZ(this,a.type)};
h.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
h.He=function(){return this.U};
h.DA=function(){TZ(this,"stopAd")};h=ZZ.prototype;h.rk=function(){return this.j.rk()};
h.$h=function(){return this.j.$h()};
h.De=function(){return this.j.De()};
h.ji=function(a){return this.j.ji(a)};
h.setSize=function(a,b){this.j.setSize(a,b)};
h.ik=function(){return this.j.ik()};
h.Kk=function(){return this.j.Kk()};
h.Lk=function(){return this.j.Lk()};
h.ki=function(){return this.j.ki()};
h.ea=x;h.Cg=x;h.Oe=x;B($Z,fd);h=$Z.prototype;h.init=function(a,b,c){null!=c&&(this.T=c);null!=this.j&&this.j.tf(a,b,c);null==this.F&&(this.F=new Hm(this),Im(this.F,this.J,"adsLoaderSdkAdError",this.By,this));c_(this)};
h.start=function(){this.K=!0;dea(this);0<this.o.length?e_(this):("always"==PK.o&&null!=this.U&&CU(this.U,AU()),wL(tL,this,BW,void 0,void 0),0==this.dc&&this.Z("contentResumeRequested"),j_(this))};
h.destroy=function(){null!=this.F&&(this.F.dispose(),this.F=null);f_(this);PK.o=this.N;this.K=!1};
h.getCurrentAd=function(){return this.B<this.o.length?this.o[this.B].j[0]:null};
h.Ua=function(){return this.K};
h.pause=function(){null!=this.j&&this.j.pause()};
h.resume=function(){null!=this.j&&this.j.resume()};
h.skip=function(){null!=this.j&&this.j.skip()};
h.getCurrentTime=function(){return null!=this.j?this.j.getCurrentTime():-1};
h.setVolume=function(a){null!=a&&(this.L=a,null!=this.j&&this.j.setVolume(this.L))};
h.sp=function(a){PK.o=this.N;var b=a.C;kb(b)?this.D++:(a=a.B,a.j&&F(b,function(a){a.fa=!1},this),this.P=cea(this,b),nb(this.o,new Bba(b,a.j,a.o)),this.D++,this.F.xa(this.J,"adsLoaderSdkAdLoaded",this.sp,!1,this));
c_(this)};
h.By=function(a){a=a.j;PK.o=this.N;a.getMessage();wL(tL,this,BW,void 0,void 0);this.D++;if(!b_(this)||2<=this.o.length-this.B)a=tL(BW),this.Z(new FK(a));c_(this)};
h.CA=function(){f_(this);j_(this)};
h.Cy=function(a){a.getError();this.B++;e_(this)};
h.qx=function(){this.Z("userClose")};
h.mx=function(){this.Z("autoClose")};
h.ox=function(){this.B++;e_(this)};
h.nx=function(){this.$||(this.Z("contentPauseRequested"),this.$=!0)};
h.tp=function(a){eea(this,a.type,a.getAd());this.Z(a)};B(l_,lc);B(m_,fd);m_.prototype.getCurrentTime=function(){return this.j.currentTime};
m_.prototype.C=function(){if(this.o){var a=this.j.currentTime;if((0,window.isNaN)(a)||0>a)p_(this);else{var b=iea(this,a);this.D?F(b,function(a){o_(this,!0,a)},this):o_(this,!0,cb(b));
o_(this,!1,jea(this,a))}}};
m_.prototype.F=function(){p_(this)};B(q_,H);q_.prototype.o=function(){return this.j};B(VX,CY);h=VX.prototype;
h.Gd=function(a,b,c){null!=this.C&&(n_(this.C),this.C.dispose(),this.C=null);VX.M.Gd.call(this,a,b,c);var d=this.ca.j.Na();b=new LR(b);var e=4;c&&0<=c.El&&(e=c.El);this.ga=null!=c?c.oq:0;this.C=new m_(b,d,{prefetch:e});var f=1;F(d,function(b){if((0,window.isNaN)(b))throw tL(bV,null,"timeOffset",String(b));var c=fa(b)&&!(0,window.isNaN)(b)?this.ca.j.get(b,[]):[];if(!kb(c)){var d;d=0==b||-1==b?b:f++;c=new $Z(c,b,d,this.Y,a,this.o,this.F);if(zg(this.K,b))throw tL(tga,null,"Multiple ad breaks cannot share same ad play time.");this.K.set(b,
c)}},this);
this.N=cb(d);Lh(d,function(a){if(-1==a)return this.N=a,!0;this.N=this.N<a?a:this.N;return!1},this)};
h.init=function(a){VX.M.init.call(this,a);null!=this.C&&(v_(this),a=JY(this),Im(a,this.C,["requestAds","playAds","contentTrackingError"],this.handleEvent,this),Im(a,this.C,"adBreakReady",this.zy,this),Im(a,this.Y,"contentComplete",this.Bz,this),this.Y.j=!1,a=this.C,a.o||(null==a.B&&(a.B=new Hm(a)),a.B.R(a.j,"currentTimeUpdate",a.C,!1),a.B.R(a.j,"contentWrapperError",a.F,!1)),a.j.start(),a.o=!0,this.C.C(),a=fa(0)&&!(0,window.isNaN)(0)?this.ca.j.get(0,[]):[],kb(a)&&this.ua("contentResumeRequested"))};
h.Ci=function(){this.Md();this.Z(new $Y(null))};
h.destroy=function(){this.dispose()};
h.S=function(){this.Y.j=!0;if(0<this.K.Xa()){var a=this.K.Ka();F(a,this.ff,this);this.K.clear()}v_(this);x_(this);null!=this.B&&(this.B.ea(),this.B=null);VX.M.S.call(this)};
h.start=function(){VX.M.start.call(this)};
h.stop=function(){null!=this.A&&(this.ff(this.A),this.mi())};
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){VX.M.setVolume.call(this,a);null!=this.A&&this.A.setVolume(a)};
h.getCurrentTime=function(){return null!=this.A?this.A.getCurrentTime():-1};
h.He=function(){var a;null!=this.A?(a=this.A,a=null!=a.j?a.j.He():-1):a=-1;return a};
h.Md=function(){return this.ca.j.Na()};
h.getCurrentAd=function(){return null!=this.A?this.A.getCurrentAd():null};
h.Dq=function(){};
h.handleEvent=function(a){"contentTrackingError"!=a.type&&(no(this.T,a),w_(this))};
h.vx=function(){this.ua("userClose")};
h.tx=function(){this.ua("autoClose")};
h.ff=function(a){a.destroy();this.K.remove(a.dc);this.A=null;null!=this.G&&(this.G.xa(a,k_,this.Z,!1,this),this.G.xa(a,"adError",this.Wn,!1,this),this.G.xa(a,"allAdsCompleted",this.mp,!1,this),this.G.xa(a,"contentPauseRequested",this.wo,!1,this),this.G.xa(a,"contentResumeRequested",this.mi,!1,this),this.G.xa(a,"adBreakInitialized",this.np,!1,this))};
h.Bz=function(a){this.$=!0;-1==this.N?a.A=!1:OK()&&!t_(this)||u_(this);hea(this.C)};
h.zy=function(a){var b=a.j;a=0==b;var c=-1==b;this.U?(a?this.ua("contentResumeRequested"):!c||OK()&&!t_(this)||u_(this),this.U=!1):(c?Ud(function(){var a=this.K.get(b);a&&this.ff(a);OK()&&!t_(this)||u_(this)},500,this):a&&Ud(function(){this.ua("contentResumeRequested")},100,this),a={},a.adBreakTime=b,this.Z(new GK("adBreakReady",null,a)))};
h.Wn=function(a){var b=a.getError();OK()&&b&&"adLoadError"==b.getType()&&this.Z(a)};
h.mp=function(a){this.ff(a.target);(t_(this)||!OK()&&this.$)&&u_(this);this.J=null;w_(this)};
h.wo=function(){var a=this.C;a.j.stop();a.o=!1;this.ua("contentPauseRequested")};
h.mi=function(){this.ua("contentResumeRequested");if(!this.ha){var a=this.C;a.j.start();a.o=!0}this.J=null};
h.np=function(a){this.J=null;w_(this);a=a.target;var b={};b.adBreakTime=a.dc;this.Z(new GK("prefetched",a.getCurrentAd(),b))};
h.ua=function(a){var b=null;null!=this.A&&(b=this.A.getCurrentAd());this.Z(new GK(a,b))};
h.zo=function(a,b){return this.fa=new q_(a,b)};B(y_,fd);y_.prototype.S=function(){null!=this.j&&(this.j.xa("adsManagerLoaded",this.Z),this.j.xa("adError",this.Z),this.j.xa("adLoadError",this.Z),this.j=null);y_.M.S.call(this)};B(A_,yH);h=A_.prototype;h.Wc=function(){Q9(this.app,!0,this.playerType);this.app.Se(this.playerType)};
h.pauseVideo=function(){this.app.pauseVideo(this.playerType)};
h.Xc=function(a,b,c){Q9(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.Yf(d.getCurrentTime()+a,b,c,e)};
h.Tb=function(a,b){Q9(this.app,!0,this.playerType);this.app.Yf(a,b,void 0,this.playerType)};
h.Hr=function(){c$(this.app,this.playerType)};B(B_,pq);B_.prototype.getAdState=function(){return-1};C_.prototype.reset=function(){gv(this.j)};
C_.prototype.o=function(a,b){Zu(a,b,this.j)};
C_.prototype.info=function(a,b){ev(a,b,this.j)};
(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Mf();return b?(b=b.toLowerCase(),b+=Za("hidden"),!n(a)||b in a?b:null):null})();S_.prototype.start=function(){this.o=!0};
S_.prototype.reset=function(){this.j=this.o=!1};T_.prototype.P=function(a){if(4==a.info.type){var b=a.info.j.wq(a);a.info.equals(this.o)&&(this.o=cb(b).info);F(b,this.P,this)}else 3==a.info.type&&this.j.push(a)};
T_.prototype.U=function(a){a.dispose();this.D-=V_(a)};var Aea=0;h=r0.prototype;h.mC=function(a){this.status=a.status;a.ok?(this.B=a.body.getReader(),this.D?(this.H=a.headers,this.F=new window.Uint8Array(t0(this)),u0(this)):this.B.cancel("Cancelling")):this.uj()};
h.kz=function(a){if(this.D)if(K(),a.done)this.B=null,this.uj();else{a=a.value;this.C+=a.length;var b=a.length>=Math.max(t0(this)/2,16384),c=a.length+this.j>t0(this);(b||c)&&0!==this.j&&s0(this);b?this.A.push(a):(this.F.set(a,this.j),this.j+=a.length);this.D({timeStamp:K(),loaded:this.C});u0(this)}};
h.uj=function(){this.D&&(this.G=!0,this.J())};
h.ih=function(a){return this.H.get(a)};
h.pk=function(){return this.C};
h.gg=function(){return+this.ih("content-length")};
h.po=function(){return 200<=this.status&&300>this.status&&!!this.C};
h.Zo=function(){return!!this.A.length||this.G&&0<this.j};
h.Sq=function(){this.A.length||s0(this);return this.A.shift()};
h.Mr=function(){this.A.length||s0(this);return this.A[0]};
h.Lr=function(){this.B&&this.B.cancel("Cancelling");this.J=this.D=null};var Bea=0;h=v0.prototype;h.sE=function(a){if(!this.A){this.status=this.j.status;try{this.o=this.j.response}catch(b){}this.B=!0;this.C(a)}};
h.tE=function(a){this.A||(this.status=this.j.status,this.D(a))};
h.ih=function(a){try{return this.j.getResponseHeader(a)}catch(b){return Ki(b),""}};
h.gg=function(){return+this.ih("content-length")};
h.pk=function(){return this.o.byteLength};
h.po=function(){return 200<=this.status&&300>this.status&&!!this.o};
h.Zo=function(){return this.B&&!!this.o};
h.Sq=function(){var a=this.o;this.o=null;return new window.Uint8Array(a)};
h.Mr=function(){return new window.Uint8Array(this.o)};
h.Lr=function(){this.A=!0;this.j.abort()};w0.A=!1;w0.o=1E4;w0.j=2048;h=w0.prototype;h.getErrorCode=function(){return this.G};
h.start=function(a){var b=1==this.state,c=6==this.state;1==this.state||4==this.state||c&&y0(this);z0(this,2);this.N=0<=a?a:window.NaN;if(c&&2<=this.F)c=this.info.A,this.J<=c.A||(c.o++,c.A=v$-1,Wr(c)),this.F=0;else if(c){this.F++;b=w0.o*(.5+Math.random());1==this.F&&(b=2E3);Fi(A(this.Jm,this,a),b);return}b?this.Jm(a):Fi(A(this.Jm,this,a),0)};
h.Jm=function(a){if(!this.isDisposed()){this.J=v$++;if(this.j){var b=this.info,c=this.j.j,d=this.j.length;this.H=b.range?new Fr(b.range.start+c,b.range.end):Hr(c,d);this.o=fs(this.info,this.H)}else this.H=this.info.range,this.o=fs(this.info);this.o.set("rn",this.J.toString());this.F&&this.o.set("playerretry",this.F.toString());0<=a&&this.o.set("rbuf",(1E3*a).toFixed().toString());a=Sr(this.o);try{var e=A(this.ZB,this),f=A(this.aC,this),k=A(this.$B,this);this.A=(this.B.T||this.B.X&&5>this.N)&&"function"==
typeof window.fetch&&window.ReadableByteStream&&Cea(this)&&this.info.range?new r0(a,f,k,e):new v0(a,f,k,e)}catch(l){this.G="net.ssl",z0(this,6)}0<this.B.F&&(this.D=Fi(A(this.uq,this),this.B.F));this.o.get("itag");this.o.get("range");K()}};
h.aC=function(){this.L=0;var a=this.timing;this.o&&yr(this.o.j);a.o=K();a.D=a.o;a.j=0;a.K=!1;a.H=!1;a.C=0;a.G=tK(a.A);F0(a);a.L=a.F-a.o};
h.$B=function(a){if(!this.isDisposed()){this.C=this.A.status;D0(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.o&&4E12>c?c:K();50>c-b.D||E0(b,c,a);b=this.timing;b.j>b.P&&8192<b.j&&3>this.state&&z0(this,3)}};
h.ZB=function(){var a=this.A;if(!this.isDisposed()){this.D&&(Ii(this.D),this.D=window.NaN);this.C=a.status;var b=!1;if(400<=a.status)b=!0,this.G="net.badstatus";else if(a.po()){var c="";B0(this)&&(c=a.Mr(),c.length>w0.j?c="":(c=String.fromCharCode.apply(String,c),c=Br.test(c)?c:""));if(c){var a=this.info.A,d=this.o;d.j===a.j&&(a.j=Ur(d,c));z0(this,4)}else{var c=a.gg(),a=a.pk(),d=!!this.H&&this.H.length,e=!0;!c&&d?e=d==a:!d&&c?e=c==a:d&&c&&(e=d==c&&c==a);e?(D0(this,!0),c=this.timing,d=K(),c.K||(c.K=
!0,d=d>c.o&&4E12>d?d:K(),E0(c,d,a),e=(d-c.o)/1E3,!c.H&&8192<=c.j&&nK(c.A,e,a),8192<=c.j&&(e=c.A,a=Math.max(a,8192),e.B.j(1,c.C/a),uK(e)),pK(c.A,(d-c.o)/1E3,c.j),c.B&&(c.B=!1)),K(),z0(this,5)):(b=!0,this.G="net.closed")}}else b=!0,this.G="net.connect";b&&(y0(this),z0(this,6),K())}};
h.uq=function(){this.D=window.NaN;if(!(this.isDisposed()||this.B.ta&&this.A&&8192<=this.timing.j&&"quic"==this.A.ih("client-protocol"))){var a=K(),b=!1;if(8192<=this.timing.j){var c=this.timing.F;F0(this.timing);this.timing.F-c>=.8*this.B.F?(this.L++,b=5<=this.L):this.L=0}else b=this.timing,b=5E3<a-(b.o+1E3*b.G.delay);if(b){b=this.timing;c=a;c=c>b.o&&4E12>c?c:K();a=(c-b.o)/1E3;if(8192<=b.j){b.C+=(c-b.D)/1E3;var c=b.A,d=b.J,d=Math.max(d,8192);c.B.j(1,b.C/d)}else c=b.A,c.A.j(1,a);uK(c);pK(b.A,a,b.j);
A0(this);this.G="net.timeout";z0(this,6)}else this.D=Fi(A(this.uq,this),this.B.F)}};
h.isDisposed=function(){return-1==this.state};
h.dispose=function(){$r(this.info.j[0])&&5!=this.state&&(this.info.j[0].j.A=!1);z0(this,-1);this.P=null;A0(this);Ii(this.D);this.D=window.NaN};B(G0,Wj);G0.F=!1;G0.j=2/24;G0.C=1E3;G0.A=.2;G0.B=1E4;G0.o=1800;G0.D=25;h=G0.prototype;h.initialize=function(a,b,c,d){a=a||0;var e=this.D;d=d&&d.id;e.C="i";"auto"!=KA()&&(e.C="s");I_(e,b);sea(e,d);e.K=e.B;tea(e);e.A=e.F;b=Q_(e);this.o=new T_(this.B,b.audio);this.A=new T_(this.B,b.video);this.O("videoformatchange",b);this.C=a;c?(this.J=!0,V0(this)):H0(this)};
h.resume=function(){this.J&&(this.J=!1)};
h.lv=function(a){this.o.J=!1;this.A.J=!1;this.resume();this.j=a;Lv(a)&&(a.j.addEventListener("updateend",A(this.wc,this),!1),a.o.addEventListener("updateend",A(this.wc,this),!1),a.j.addEventListener("error",A(this.Ai,this,!0),!1),a.o.addEventListener("error",A(this.Ai,this,!1),!1));J0(this,"msa");kv.measure&&kv.getEntriesByName("vta").length&&kv.measure("measure_vta_to_msa","vta");this.T&&this.N&&Ju();this.wc();this.ca=Hi(A(this.wc,this),G0.B)};
h.bB=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.j[0].j,c=!this.T&&b.info.video,d=!this.N&&b.info.audio,e=Math.max(0,a.info.j[0].C-this.C);4==a.state?(c?J0(this,"vrr"):d&&J0(this,"arr"),a.start(e)):5==a.state?(c?(this.T=a.o?Sr(a.o):"",Lu()):d&&(this.N=a.o?Sr(a.o):""),b=a.j.A,F(b,function(a){$r(a.info)&&a.info.j.oo(a)}),!Ig(b,function(a){return Ts(a)},this)||b[0]&&b[0].info.j.il()?this.nd(!0,"fmt.unparseable",x0(a)):this.wc()):3==a.state?(this.wc(),c&&Lu()):6==a.state&&y0(a)?(this.nd(!1,
a.getErrorCode(),x0(a)),this.isDisposed()||((c=b.info.video&&(0<a.F||410==a.C||500==a.C||503==a.C)&&90&&!N_(this.D))&&rea(this.D,b.info),6==a.state&&"net.timeout"==a.G||c?(wea(b.info.video?this.A:this.o,a),this.wc()):a.start(e))):$r(a.info.j[0])?(b.C=!0,this.wc()):this.nd(!0,"net.retryexhausted",x0(a))}};
h.wc=function(){this.da=window.NaN;L0(this);if(this.j&&Hv(this.j)&&!Jv(this.j))if(this.F.isLive)(0,window.isNaN)(this.G)?(this.G=this.C+2*G0.o,this.j.Mf(this.G)):this.G<=this.C+G0.o&&(this.G+=G0.o,this.j.Mf(this.G));else{var a=Math.max(this.o.A.index.eg(),this.A.A.index.eg());(!(0,window.isFinite)(this.G)||this.G!=a)&&0<a&&(this.j.Mf(a),this.G=a)}if(!this.isDisposed())if(a=this.F,a.isLive&&ct()-a.D>=a.o)3==this.F.C?this.nd(!0,"manifest.net.retryexhausted",{rc:this.F.F.toString()}):(this.F.K(),V0(this));
else{if(this.B.N&&ct()-this.F.H>=1E3*this.B.N&&(this.j&&!Iv(this.j)?Math.min(my(this.j.o.buffered,this.C),my(this.j.j.buffered,this.C)):0)>=this.B.ca){var a=this.F,b=a.j,c;for(c in b)Wr(b[c].D);a.H=ct()}this.F.isLive&&(q0(this.A)||q0(this.o))&&(c=Z0(this),(0,window.isNaN)(c)||this.seek(c));"prerender"==window.document.webkitVisibilityState?V0(this):(L0(this),W_(this.A),W_(this.o),this.o.A.A||(!this.J||vK(this.H)?H0(this):V0(this)),!this.j||Q0(this,this.o,this.j.j)||Q0(this,this.A,this.j.o)||((c=W0(this,
this.A,this.j.o,null,this.o.F))&&!this.Y&&(this.Y=K(),J0(this,"vda"),this.X&&Lu()),a=ky(this.j.o.buffered,this.C+G0.j),(0,window.isNaN)(a)&&!h0(this.A)&&this.j.j.buffered.length||(h0(this.A)&&(a=window.NaN),a=W0(this,this.o,this.j.j,a,null),c|=a,a&&!this.X&&(this.X=K(),J0(this,"ada"),this.Y&&Lu())),h0(this.A)&&h0(this.o)&&Hv(this.j)&&!Jv(this.j)&&(a=this.j,Hv(a)&&a.A.endOfStream(),a=this.H,JA(tK(a)),a.j=ct()),c&&!Lv(this.j)&&P0(this)),N0(this,this.A,K_(this.D)),N0(this,this.o,L_(this.D)),this.A.A.C||
this.o.A.C?this.nd(!0,"net.retryexhausted"):(R0(this,this.A,this.o)&&T0(this,this.A,this.o),R0(this,this.o,this.A)&&T0(this,this.o,this.A),this.B.$&&this.U&&!this.J&&vK(this.H)&&(c=this.U,this.U="",a=Ng(c),Gj(c,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:A(this.nd,this,!1,"pathprobe.net",{shost:a})})),this.F.B&&V0(this)))}};
h.Ai=function(a){a=(a=a?this.o:this.A)&&a.B;this.nd(!0,"fmt.unplayable",a?ds(a):void 0)};
h.seek=function(a){if(!this.isDisposed()){L0(this);this.ia=ct();this.A.A=K_(this.D);var b=$0(this,this.A,a,this.j&&this.j.o);this.o.A=L_(this.D);var c=$0(this,this.o,b,this.j&&this.j.j);this.C=Math.max(a,b,c);this.L=!0;P0(this)}};
h.S=function(){K0(this);this.o&&(j0(this.o),j0(this.A));Ji(this.ca);this.A=this.o=null;G0.M.S.call(this)};
h.nd=function(a,b,c){this.O("error",new ov(b,a,c));a&&(this.j&&Hv(this.j)&&(a=this.j,Hv(a)&&a.A.endOfStream("network")),this.dispose())};B(b1,H);h=b1.prototype;h.setCallbacks=function(a,b,c,d){this.F=a;this.D=b;this.J=c;this.o=d};
h.gF=function(a){this.F.call(this.o,new window.Uint8Array(a.message))};
h.eA=function(){};
h.vp=function(a,b){Ki(b);var c=a;b instanceof window.DOMException&&(c+="."+b.name);this.D.call(this.o,c)};
h.Sp=function(a){this.F.call(this.o,a.message)};
h.Rp=function(a){var b;this.j?(b=this.j.error.code,a=this.j.error.systemCode):(b=a.errorCode&&a.errorCode.code,a=a.systemCode);this.D.call(this.o,""+b+"."+a)};
h.Qp=function(){this.J.call(this.o)};
h.update=function(a){this.B?this.B.update(a).then(null,Gi(A(this.vp,this,"u"))):this.j?this.j.update(a):this.C.addKey?this.C.addKey(this.K.o,a,this.H,this.G):this.C.webkitAddKey(this.K.o,a,this.H,this.G)};
h.S=function(){this.C=null;b1.M.S.call(this)};B(c1,H);h=c1.prototype;
h.createSession=function(a){var b=a.j;if(this.j.A){var c=this.F.createSession(),b=c.generateRequest(a.contentType,b),c=new b1(null,null,null,c,null);b.then(null,Gi(A(c.vp,c,"g")));return c}if(Et(this.j)){c=new window.Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=this.B.createSession("video/mp4",b,c);return new b1(null,null,null,null,b)}if(Gt(this.j)){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.j.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.B.createSession("video/mp4",e);return new b1(null,null,null,null,b)}this.o.generateKeyRequest?this.o.generateKeyRequest(this.j.o,b):this.o.webkitGenerateKeyRequest(this.j.o,b);return this.A=new b1(this.o,this.j,b,null,null)};
h.jF=function(a){var b=f1(this,a);b&&b.Sp(a)};
h.iF=function(a){var b=f1(this,a);b&&b.Rp(a)};
h.hF=function(a){(a=f1(this,a))&&a.Qp()};
h.S=function(){this.o=null;c1.M.S.call(this)};B(g1,H);h=g1.prototype;h.Nr=function(a){this.F=a};
h.wE=function(a){if(!this.isDisposed()){this.D||(this.D=!0,this.j.O("newsession",this));if(Et(this.o)){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(GF(a.childNodes[0].data))}if(Gt(this.o))for(b=CF(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,
kb:this.hA,onError:this.Hp,context:this};b=this.G;this.F&&(b=bh(b,"access_token",this.F));Gj(b,a)}};
h.uE=function(){this.isDisposed()||this.C||(this.j.O("sessionready"),this.C=!0)};
h.hA=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=$a(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 Gea(e,f,a.subarray(d+4))}a?0!=a.j?i1(this,"drm.auth","f"+a.j,fy(a.j)):(d=(d=a.headers["Authorized-Format-Types"])?d.split(","):null,e=null,(f=a.headers["Heartbeat-Url"])&&(e=new Fea(f,(0,window.parseInt)(a.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(a.headers["Heartbeat-Num-Retries"],10)||4)),(d||e)&&this.j.O("newlicense",d,e),Gt(this.o)&&(a.message=new window.Uint8Array(GF(String.fromCharCode.apply(null,a.message)))),this.A.update(a.message)):i1(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Hp(a)};
h.vE=function(a){this.isDisposed()||i1(this,"drm.keyerror","s"+a)};
h.Hp=function(a){i1(this,"drm.net","r"+a.status)};
h.S=function(){this.j=null;g1.M.S.call(this)};B(k1,Wj);h=k1.prototype;h.Qz=function(a){a=new j1(new window.Uint8Array(a.initData),a.initDataType);m1(this,a,!0)};
h.yA=function(a){m1(this,new j1(a.initData,a.contentType),!0)};
h.rA=function(){this.isDisposed()||(this.C=!0,this.o.length&&n1(this,this.o[0]))};
h.Uy=function(a){if(!this.isDisposed()){Ki(a);var b="a";a instanceof window.DOMException&&(b+=a.name);this.O("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
h.AA=function(a,b){a&&ib(a,"HD")&&!Zt(this.B)&&!Et(this.j)&&(this.B=au,this.O("qualitychange"));b&&!this.N&&(this.N=b,this.O("heartbeatparams",b))};
h.BA=function(){this.isDisposed()||(this.o.shift(),this.o.length&&n1(this,this.o[0]))};
h.jB=function(){if(Et(this.j)&&(this.J--,0==this.J)){var a=this.A;a.o.msSetMediaKeys(a.B)}};
h.S=function(){this.L=null;this.o=[];k1.M.S.call(this)};o1.prototype.C=function(){var a=v("yt.abuse.botguardInitialized");return a&&a()?(a=v("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
o1.prototype.D=function(a){return"r3a="+Math.floor(this.j.lengthSeconds%Xa(a.c3a))};
o1.prototype.B=function(a){a=Xa(a.c);var b;b=v("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};B(t1,fd);t1.prototype.D=function(a,b){this.j.paused||this.getCurrentTime()>a||10<b||(this.play(),Fi(A(this.D,this,this.getCurrentTime(),b+1),500))};
t1.prototype.addEventListener=function(a,b,c,d){t1.M.addEventListener.call(this,a,b,c,d);this.A[a]||(b=A(this.fF,this),this.j.addEventListener(a,b),this.A[a]=b)};
t1.prototype.C=function(){};
t1.prototype.S=function(){this.B&&this.removeEventListener("volumechange",this.C);t1.M.S.call(this)};B(D1,t1);h=D1.prototype;h.ka=function(){return this.j};
h.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
h.getCurrentTime=function(){return this.j.currentTime};
h.load=function(){this.j.load()};
h.pause=function(){this.j.pause()};
h.play=function(){this.j.play()};
h.getErrorCode=function(){return this.j.error?this.j.error.code:null};
h.setVolume=function(a){this.j.volume=a};
h.fF=function(a){this.Z(new Kea(this,a.type,a))};
h.S=function(){for(var a in this.A)this.j.removeEventListener(a,this.A[a]);D1.M.S.call(this)};F1.prototype.isEmpty=function(){return this.endTime==this.startTime};G1.prototype.B=function(){var a=dH(this.W),b=a.totalVideoFrames,a=a.droppedVideoFrames,c=b-this.A,d=a-this.o;this.A=b;this.o=a;0<c&&.3<d/c&&this.C()};B(I1,Wj);I1.j=1;I1.o=10;I1.A=5;I1.B=5;h=I1.prototype;h.S=function(){Ii(this.za);Ji(this.Ia);K1(this);V1(this);J1(this);Z1(this);Nb(this.ca,this.j);this.L=null;this.Ca=!1};
h.Ug=function(a,b){var c=this.W.experiments.ma("legacy_cue_range_behavior2");this.Y.length=0;this.da.reset();this.T.reset();this.K=this.ia=window.NaN;this.$=null;this.bb=!1;this.o&&A1(this.o);a2(this);K1(this);V1(this);J1(this);Mb(this.j);c&&this.D.reset();if(2==this.N||LG.test(this.W.F))a.$o=!0;this.W.Hg&&(a.Fd=this.j.Fd);this.j=a;this.j.subscribe("dataupdated",this.MB,this);this.j.subscribe("dataloaded",this.Ln,this);this.j.subscribe("dataloaderror",this.kj,this);this.j.subscribe("onStatusFail",
this.LB,this);a.gf&&a.gf>a.startSeconds&&(c=a.gf,this.L&&(this.D.bh(this.L),this.L=null),this.L=new lq(1E3*c,0x7ffffffffffff),nq(this.L).subscribe("onEnter",this.Nf,this),this.D.fb([this.L]));K1(this);this.j.Pe||(c=new Mea(this.j,this.W,b,A(this.$f,this),A(this.getCurrentTime,this),A(this.dw,this),A(this.La.Ma,this.La),A(this.Bm,this),A(this.qw,this)),this.A=new TA(c));this.Ca=!1;m2(this,"newdata");P1(this,new qy)};
h.getVideoData=function(){return this.j};
h.V=function(){return this.W};
h.Ln=function(){if(fx(this.j))fx(this.j),this.da.j=!0,this.Y=sb(this.j.J),Xw(this.j,this.W),Tw(this.j)&&(this.j.Da&&(this.X=new lea),this.j.A.j&&i2(this),h2(this,"i")),m2(this,"dataloaded"),this.T.o&&Q1(this);else if(this.j.oa){var a=this.j,b=this.W.experiments;a.Pd=!0;a.oa=!1;Br.test(a.F)||Ki(Error("DASH MPD Origin invalid: "+a.F),"WARNING");var c;if(b.K)c=a.F;else{c=a.F;var d=Ng(c);c=0>Bw.B.indexOf(d)?bq(c):cq(c)}b.ma("disable_versioned_mpd")||(c=Wg(c,{mpd_version:3}));!a.isLowLatencyLiveStream&&
b.ma("html5_live_disable_dg_pacing")&&(c=Wg(c,{pacing:0}));it(new bt(c,b.ma("html5_live_nonzero_first_segment_start_time")),c).then(a.Iz,a.Hz,a);Zu("mrs")}else if(this.j.Y)this.A&&(a=this.A.o,OA(a,"protected"),a.j.j.H?a.Mq():a.j.j.subscribe("dataloaded",a.Mq,a)),a=this.j,b=this.W.D,dt(a.j),b=new Kt(Yv(b,a.j)),J(a,b),a.Y=!1,a.Pd=!0,a=A(a.by,a),b.B=a,It()?Ot(b):Qt(b);else if(!this.j.Pd){a:switch(b=this.W,a=this.j,c=this.La.Ma(),d=vH(this.W),a.U){case 38:b=a.videoId.indexOf(":");b=Wg("//play.google.com/books/volumes/"+
a.videoId.slice(0,b)+"/content/media",{aid:a.videoId.slice(b+1),sig:a.Kj});break a;case 30:c="//docs.google.com/";b.baseYtUrl!=JG.prototype.baseYtUrl&&(c=b.baseYtUrl);b=Wg(c+"get_video_info",{docid:a.videoId,authuser:a.zb,authkey:a.ub,eurl:b.N});break a;case 33:b=Wg("//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.N,ps:b.j,el:b.ya,hl:b.X,list:a.playlistId,agcid:a.Jj,aqi:a.jg,sts:16777,lact:eH(b)?
QA():"-1"};b.forcedExperiments&&(e.forced_experiments=b.forcedExperiments);a.L?e.vvt=a.L:a.oauthToken&&(e.access_token=a.oauthToken);b.C&&(e.adformat=b.C);b.La&&(e.cc_lang_pref=b.La);b.da&&2!=b.da&&(e.cc_load_policy=b.da);b.mute&&(e.mute=b.mute);a.Ca&&2!=b.Cd&&(e.iv_load_policy=a.Ca);a.Ia&&(e.itct=a.Ia);a.Gg&&(e.autoplay="1");a.al&&(e.autonav="1");a.fl&&(e.noiba="1");a.isMdxPlayback&&(e.mdx="1");a.ga&&(e.ytrcc=a.ga);a.ml&&(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.Zf&&(e.splay="1");a.ypcPreview&&(e.ypc_preview="1");b.ca&&(e.content_v=b.ca);a.Bf&&(e.livemonitor=1);b.zb&&(e.authuser=b.zb);b.pageId&&(e.pageid=b.pageId);b.P&&(e.ei=b.P);b.Nb&&(e.ssl_stream="1");b.K&&(e.iframe="1");a.jj&&(e.tst=a.jj);a.contentCheckOk&&(e.cco="1");a.racyCheckOk&&(e.rco="1");b.gb&&a.liveStartWalltime&&(e.live_start_walltime=a.liveStartWalltime);b.gb&&a.Nb&&(e.cyc=a.Nb);0!=d&&b.experiments.ma("send_presence_signal_vis_desktop")&&(e.vis=d);b.enableSafetyMode&&
(e.enable_safety_mode="1");pa(e,b.o);b=Wg(b.baseYtUrl+"get_video_info",e)}a=this.j;c=this.W.experiments.T;d=this.W.experiments.j;e=!this.W.experiments.ma("disable_gvi_cors");a.isDisposed()||(a.Zc=b,a.vb=!!c,a.ke=!!d,a.ie=!!e,a.Pd=!0,a.Gq())}};
h.Nf=function(a){this.pauseVideo();a=0==a?new qy:new qy(14);P1(this,a)};
h.logEvent=function(a,b){if(this.A){var c=this.A,d=c.j.o.experiments.ma("event_log_respect_caller_args"),e=d?{}:a;e.rt=VA(c.j).toFixed(3);pa(e,XA(c.j));var f=c.j.o,k=c.j.j,l=k.$a||f.Dd,l={ns:f.$,html5:"1",el:f.ya,ps:f.j,fexp:f.experiments.experimentIds.join(",")||void 0,feature:l||void 0,ctrl:k.fa||void 0,ytr:k.ia||void 0,list:k.playlistId,d:f.Ya,f:f.Ha};f.autoplay&&(l.autoplay="1");k.subscribed&&(l.subscribed=k.subscribed);pa(e,l);delete e.fexp;d&&pa(e,a);d=wj(c.j.o.baseYtUrl+"player_204",e);aB(c,
d,b)}};
h.Ri=function(a){this.Y=this.Y.filter(function(b){return a!=b});
this.T.o&&Q1(this)};
h.Ua=function(){return this.B.Ua()};
h.getPlayerState=function(){return this.B};
h.Bm=function(){var a=this.getVideoData(),b=a.D;if(!b)return a.X;var c=db(this.j.A?this.j.A.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.X};
h.vy=function(){var a=this.C.D.j;a.isLocked()||(2==this.W.experiments.Vb("html5_dropped_frames_abr")&&(a=$t(a,iga),M0(this.C,a,"a",!0)),this.A&&OA(this.A.o,"limit-frame-drops"),this.U&&(a=this.U,Ji(a.j),a.j=window.NaN,this.U=null))};
h.dA=function(a){if(this.G){var b=this.G;if(Et(b.j)){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&&m1(b,new j1(a),!1)}}};
h.oA=function(a){T1(this,a.reason,a.video.info,a.audio.info);var b=ax(this.j);b&&b.C(a.video);this.X&&(this.X.o=a.audio.index)};
h.nA=function(a){U1(this,a.reason,a.audio.info)};
h.kj=function(a){var b;Sw(this.j)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)Sw(this.j),this.j.Ae&&!this.$a&&(this.$a=!0,this.O("signatureexpired"));else if(a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)&&this.j.A.o)a=this.j,a.A=a.A.o,BH(this),b2(this);else if(a.j)OJ(this,a.errorCode,void 0,pv(a));else if(this.A)this.A.onError(a.errorCode,pv(a))};
h.pauseVideo=function(a){V(this.B,64)&&!a&&(V(this.B,8)?P1(this,Ay(this.B)):P1(this,zy(this.B,8)));this.o&&(V(this.B,128)||(a?P1(this,yy(this.B,256)):P1(this,Ay(this.B))),this.o.pause())};
h.xr=function(){if(!(0,window.isNaN)(this.K)&&this.o){var a=this.$f();!this.j.Da&&this.K>=Math.floor(a)?(this.K=a,this.O("endseeking",this),this.pauseVideo(!0),this.Nf()):(this.C&&this.C.seek(this.K),(!this.j.Da||1<=this.o.j.readyState)&&x1(this.o,this.K))}this.ca&&(this.ca.dispose(),this.ca=null);V(this.B,32)&&(P1(this,yy(zy(this.B,32),16)),this.O("endseeking",this))};
h.getCurrentTime=function(){if(!(0,window.isNaN)(this.K))return this.K;var a=0;this.o&&1<=this.o.j.readyState?a=this.o.getCurrentTime():this.j&&(a=this.j.hj||this.j.startSeconds||0);return a};
h.$f=function(){return this.j.lengthSeconds?this.j.lengthSeconds:j2(this,!1)?j2(this,!1):0};
h.dw=function(){var a=new Lea;if(this.ha&&this.C){var b=this.ha;a.A=b.D;a.D=b.F;a.j=sK(b);b=this.C;b.j&&!Iv(b.j)&&(a.o=my(b.j.o.buffered,b.C),a.B=my(b.j.j.buffered,b.C));a.j=F_(b.K);sK(b.H);qK(b.H);rK(b.H)}else this.o&&(a.o=uy(this.o));this.X&&mea(this.X,a);return a};
h.MB=function(){if(this.G){var a=this.G,b=this.j.oauthToken;a.G=b;a.O("oauthtoken",b)}X1(this);m2(this)};
h.LB=function(a){OJ(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
h.ED=function(a){var b=a.target.j.src;if(this.o&&this.o.j.src&&this.o.j.src==b){switch(a.type){case "error":if(this.W.af&&2==this.o.getErrorCode()){(0,window.setTimeout)(A(function(){this.o&&(this.j.If&&this.o.load(),b2(this))},this),500);
if(this.A)this.A.onError("progressive.net");return}break;case "durationchange":var c=this.o.j.duration;(!this.H||(0,window.isFinite)(c)&&0<c)&&1!=c&&this.j.lengthSeconds!=c&&(this.j.lengthSeconds=c,m2(this));break;case "ratechange":this.C&&(this.C.K.A=Math.max(1,this.o.j.playbackRate));this.D.Rf();break;case "loadedmetadata":this.j.startSeconds&&(0<(this.o.j.seekable||hy()).length?this.o.j.currentTime=this.j.startSeconds:(this.ia=this.j.startSeconds,this.pauseVideo(!0)));case "loadstart":Ji(this.Ia);
this.$j()||(this.Ia=Hi(A(this.$j,this),100));break;case "progress":Rea(this);case "suspend":k2(this);this.O("onLoadProgress",this,Qea(this));break;case "seeked":o2(this);break;case "seeking":this.C&&this.C.seek(this.o.getCurrentTime());this.vb&&s1(this.Fa,this.o.getCurrentTime());break;case "playing":this.F.o("plev");this.ab&&(this.ab=!1,c2(this)||R1(this,window.Infinity,!0));break;case "timeupdate":this.bb=!0;this.$j();o2(this);k2(this);if(!this.o||this.o.j.src!=b)return;this.O("onVideoProgress",
this,this.o.getCurrentTime());this.X&&this.J&&nea(this.X,this.o.getCurrentTime());break;case "waiting":if(0<(this.o.j.played||hy()).length&&0==z1(this.o).length&&0<this.o.getCurrentTime()&&5>this.o.getCurrentTime()&&this.C)return}this.o&&this.o.j.src==b&&(this.O("videoelementevent",a),a=ry(this.B,a,this.Fa,this.Cb,this.ub),P1(this,a))}};
h.Jy=function(a){a="available"==a.j.availability;a!=this.Za&&(this.Za=a,this.O("airplayavailabilitychange"))};
h.Ky=function(){var a=!!this.o.j.webkitCurrentPlaybackTargetIsWireless;a!=this.Ya&&(function(){this.W.jl=a}.apply(this),this.Ya=a)&&(Xw(this.j,this.W),h2(this,"m"));
this.O("airplayactivechange")};
h.$j=function(){var a=this.o;a&&this.bb&&!this.j.Ae&&!dv("vfp",this.F.j)&&2<=a.j.readyState&&!a.j.ended&&0<ly(z1(a))&&this.F.o("vfp");if((a=this.o)&&!this.j.Ae&&0<a.j.duration&&(!dv("pbp",this.F.j)&&a.j.paused&&2<=a.j.readyState&&0<ly(z1(a))&&this.F.o("pbp",void 0),0<a.getCurrentTime())){Ji(this.Ia);Ii(this.za);this.j.Ae=!0;n2(this);if(this.A){a=this.A;if(!a.B){var b=WA(a,"playback");a.H=[10+a.j.j.ij,10,10,40+a.j.j.Am-a.j.j.ij,40];var c=a.A;Ji(c.D);c.D=window.NaN;c.D=Hi(A(c.update,c),100);c.C=VA(c.o);
c.B=CA(c.o);b.o=UA(a,!0);b.Fa=!0;b.send();a.j.j.$&&(b=a.j.o,c=a.j.j,b=Wg(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.$,oid:c.Cd,ptchn:c.Bd,pltype:c.Dd,content_v:b.ca}),aB(a,b));a.j.j.enableCardio&&(a.Qi("playback"),a.C||fB(a));a.j.j.Te||$A(a);a.B=!0;a=a.A;a.j=a.o.A();a.C=VA(a.o);.5<a.j-a.A&&(a.A=a.j)}Fi(A(this.Kl,this),4500)}this.O("playbackstarted");Gu()&&Ju();return!0}return!1};
h.Jz=function(){this.Sa&&(this.fa.xa(this.Sa),delete this.Sa,w1(this.o))};
h.Ew=function(){if(this.o){var a=this.getCurrentTime();if(V(this.B,8)&&wy(this.Fa,a,ct(),uy(this.o))){var b=this.$f();b&&1>Math.abs(b-a)?this.Nf():P1(this,yy(this.B,1))}else V(this.B,4)&&Cy(this.B)&&uy(this.o)>I1.B&&P1(this,zy(this.B,1));k2(this)}};
h.qw=function(){this.j.Da||this.O("connectionissue")};
h.vC=function(){x1(this.o,this.o.getCurrentTime()+.1)};
h.zA=function(a){var b={};pa(b,this.W.o);b.cpn=this.j.clientPlaybackNonce;this.j.L&&(b.vvt=this.j.L);this.W.zb&&(b.authuser=this.W.zb);this.W.pageId&&(b.pageid=this.W.pageId);ic(a.B,b);h1(a,a.G)};
h.fA=function(a,b,c){OJ(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};
h.gA=function(){h2(this,"r");m2(this)};
h.DD=function(a){this.O("heartbeatparams",a)};
h.lA=function(){if(!this.j.Ae&&this.o){0<this.o.j.readyState&&uy(this.o)>=I1.A&&(P1(this,yy(this.B,1)),this.O("playbackstalledatstart"));if(this.A)this.A.onError("qoe.start15s");this.O("loadsofttimeout")}};
h.Kl=function(){if(!this.Ca){var a=new o1(this.j),b;"c1a"in a.A?(b=v("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)Fi(A(this.Kl,this),4500);else{var c;if(a.j&&a.j.ha){b=[a.j.ha];for(c in a.o)if(a.A[c]&&a.o[c]){var d=a.o[c](a.A);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.A&&(a=this.A,a.K||(b=WA(a,"atr"),b.H=c,b.send(),a.K=!0),this.Ca=!0)}}};
h.CD=function(){return this.o?this.o.j.playbackRate:1};var q2=[2,5];D2.prototype.A="";D2.prototype.o="";var G2=!1,J2=!1;Ni("showCompanionAdLoaded",function(){J2&&(I2(),J2=!1)});
Ni("watchAdsInit",function(){G2&&(G2=!1,F2())});B(L2,Wj);h=L2.prototype;h.cancel=function(){this.D&&this.O("dragend",0,0,null);this.A&&this.O("hoverend",0,0,null);Cv(this.j);M2(this)};
h.mr=function(a){Cv(this.j);U(this.j,this.o,N2("move"),this.kr);U(this.j,this.o,N2("out"),this.lr);U(this.j,this.o,"touchstart",this.xm);this.C&&U(this.j,this.o,N2("down"),this.wm);var b=$l(a);a=cm(a);this.A=!0;this.O("hoverstart",a.x,a.y,b);this.O("hovermove",a.x,a.y,b)};
h.kr=function(a){var b=$l(a);a=cm(a);if(this.B){var c=bm(this.B),d=cm(this.B);d.x==a.x&&d.y==a.y&&c==b||this.O("hovermove",a.x,a.y,b)}else this.O("hovermove",a.x,a.y,b);this.B=null};
h.lr=function(a){var b=cm(a),c=bm(a);c&&Af(this.F,c)?(this.B=a,this.O("hovermove",b.x,b.y,c)):(Cv(this.j),M2(this),this.A=!1,this.O("hoverend",b.x,b.y,c))};
h.qy=function(a){this.mr(a);this.wm(a)};
h.wm=function(a){if(!fa(a.button)||0==a.button){Cv(this.j);U(this.j,window.document,N2("move"),this.oy);U(this.j,window.document,N2("up"),this.gD);var b=$l(a);if(yc)U(this.j,this.o,"dragstart",this.Mv);else if(dm(a),(mF||vc)&&b)a:{for(var c=b;c;){if(Ef(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.D=!0;a=cm(a);this.O("dragstart",a.x,a.y,b);this.O("dragmove",a.x,a.y,b)}};
h.Mv=function(a){dm(a)};
h.oy=function(a){var b=$l(a);b==window.document&&(b=null);a=cm(a);this.O("hovermove",a.x,a.y,b);this.O("dragmove",a.x,a.y,b)};
h.gD=function(a){Cv(this.j);this.D=!1;var b=am(a),c=$l(a);a=cm(a);b&&Af(this.F,b)?(U(this.j,this.o,N2("move"),this.kr),U(this.j,this.o,N2("out"),this.lr),U(this.j,this.o,N2("down"),this.wm),U(this.j,this.o,"touchstart",this.xm),this.O("dragend",a.x,a.y,c)):(M2(this),this.A=!1,this.O("dragend",a.x,a.y,c),this.O("hoverend",a.x,a.y,c))};
h.xm=function(a){var b=a.changedTouches[0];b&&(Cv(this.j),U(this.j,this.o,"touchmove",this.hD),U(this.j,this.o,"touchend",this.nr),U(this.j,this.o,"touchcancel",this.nr),this.G=b.identifier,a=$l(a),this.A||(this.A=!0,this.O("hoverstart",b.pageX,b.pageY,a)),this.O("hovermove",b.pageX,b.pageY,a),this.C&&(this.D=!0,this.O("dragstart",b.pageX,b.pageY,a),this.O("dragmove",b.pageX,b.pageY,a)))};
h.hD=function(a){var b=O2(this,a);b&&(dm(a),a=$l(a),this.O("hovermove",b.pageX,b.pageY,a),this.C&&this.O("dragmove",b.pageX,b.pageY,a))};
h.nr=function(a){var b=O2(this,a);if(b){Cv(this.j);M2(this);this.A=!1;var c=$l(a);this.C&&(this.H||dm(a),this.D=!1,this.O("dragend",b.pageX,b.pageY,c));this.O("hoverend",b.pageX,b.pageY,c)}};
h.S=function(){this.C&&(yc&&this.F.removeAttribute("draggable"),this.F.style.removeProperty("touch-action"));Cv(this.j);L2.M.S.call(this)};T2.prototype.update=function(a,b,c,d){this.width=b;this.A=c;this.C=d;this.j=b-c-d;this.B=le(a-c,0,this.j);this.position=this.B+c;this.o=this.B/this.j};B(V2,Wj);V2.prototype.Yc=function(){return this.adSystem+"_"+this.adType};
V2.prototype.mf=function(){return this.Yc()};
V2.prototype.getCurrentAd=function(){return this.o?this.o.getCurrentAd():null};
V2.prototype.vj=x;B(b3,H);b3.prototype.start=function(){(0,window.isNaN)(this.j)&&(this.A=K(),this.j=Ud(this.C,this.B-this.o,this))};
b3.prototype.stop=function(){(0,window.isNaN)(this.j)||(this.A=this.o=0,Vd(this.j),this.j=window.NaN)};
b3.prototype.pause=function(){(0,window.isNaN)(this.j)||(this.o=K()-this.A,Vd(this.j),this.j=window.NaN)};
b3.prototype.S=function(){(0,window.isNaN)(this.j)||Vd(this.j)};B(c3,V2);c3.j=15;h=c3.prototype;h.vj=function(){Y2(this.D,13);this.N||this.o.destroy();this.F=this.H=!1;f3(this)};
h.Yc=function(){var a=0,a=this.getCurrentAd();if(GT(a))a=3;else if(HT(a))a=4;else if(IT(a))a=KT(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
h.mf=function(){return this.adSystem+"_"+this.adType};
h.show=function(){var a=this.j,b=d3(a);j9(a.app,b);this.D.A=K();this.G=this.j.Aa();this.C.subscribe("progresssync",this.qp,this);this.j.o.T&&sf(bf("video-ad-status-bar",this.G));$d(this.G,["ad-showing","ad-interrupting"]);this.j.subscribe("onResize",this.Lm,this);try{this.A.R(this.o,"adError",this.NE),this.A.R(this.o,"click",this.ME),this.A.R(this.o,"complete",this.yz),this.A.R(this.o,"engagedview",this.Sz),this.A.R(this.o,"pause",this.bs),this.A.R(this.o,"start",this.cs),this.A.R(this.o,"skip",this.ds),
this.A.R(this.o,"video_extend_auto_skipped",this.ds),this.A.R(this.o,"MUTE_AD",this.vj),this.A.R(this.o,"skippableStateChanged",this.oB),this.A.R(this.o,"youTubeChannelMetadata",this.tA),this.A.R(Zq(this.j.H),"mouseup",this.OE),this.Lm(),this.N||this.o.start()}catch(c){i3(this,c)}};
h.es=function(a,b,c){if("newdata"==a&&this.B!=c){a={video_id:c.videoId};b=new Yea;b.isSkippable=this.T;b.skip=A(this.o.skip,this.o);b.skipShown=A(this.o.Jq,this.o);var d=this.getCurrentAd();if(d){b.clickThroughUrl=qU(d)||"";var e;(e=this.j.o.Ia)||(e=c.lengthSeconds,(d=mU(d))?(TS(d,e),e=SS(d)):e=null);b.skipTime=e||0;b.adSystem=this.adSystem}b.videoId=c.videoId;b.videoId||(b.videoUrl=a3(this)||"");c.spacecastModule=this.X;g3(this.j,-1,a,b)}this.B=c};
h.Uc=function(a){a=a.state;V(a,1)||this.J.pause();V(a,128)?i3(this,Error(a.j.message||"Video player error.")):V(a,1)&&this.J.start()};
h.cs=function(){this.K=!0;this.F=!1;if(!this.H){this.H=!0;var a=this.D;Z2(a);var b=$2(a);if((0,window.isNaN)(a.A))Z2(a);else{var c=K()-a.A;b.ad_stl=c}X2(a,4,b);h3(this.j,1);e3(this,!1);(a=R("ADS_INSTREAM_FIRST_PLAY"))&&this.j.O("publish_external_event","onAdAnnounce",a)}g3(this.j,1);this.O("adPlay",this)};
h.bs=function(){this.K&&(this.K=!1,g3(this.j,2))};
h.yz=function(){if(!this.F){var a=this.D;Z2(a);var b=$2(a),c=j3(a.j);c?b.ad_fmt=c:Z2(a);X2(a,5,b);f3(this);this.F=this.H=!1}};
h.Sz=function(){var a=this.D;a.j.O("AD_LOGGING_EVENT",777,$2(a))};
h.ds=function(){this.F=!0;var a=this.D,b=$2(a),c=j3(a.j);c?b.ad_fmt=c:Z2(a);X2(a,14,b);f3(this)};
h.oB=function(){var a=R("ADS_INSTREAM_SKIPPABLE");a&&this.j.O("publish_external_event","onAdAnnounce",a)};
h.tA=function(){var a=this.getCurrentAd();if(a){var b=a.U;if((a=a.N)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.j;c.channelTitle=a.o;c.channelVideoCount=a.videoCount;this.j.O("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()}Y2(this.D,32,b);i3(this,a.event.getError())};
h.ME=function(){var a=this.D;Z2(a);var b=$2(a);if(a.o){var c=j5(a.B);b.ck_xy=Math.round(a.o.x-c.left)+"x"+Math.round(a.o.y-c.top);b.ck_wh=c.width+"x"+c.height}X2(a,15,b);this.o.pause();this.O("select")};
h.qp=function(){};
h.lp=function(){MY(this.o,"abandon");e3(this,!0)};
h.S=function(){this.j.Ba("control_toggle_play_pause",this.gs,this);this.j.Ba("control_play",this.Dl,this);this.j.Ba("control_pause",this.Cl,this);this.j.Ba("onResize",this.Lm,this);this.A.removeAll();this.C.Ba("statechange",this.Uc,this);this.C.Ba("internalAbandon",this.lp,this);this.C.Ba("internalvideodatachange",this.es,this);this.C.Ba("progresssync",this.qp,this);this.N||this.o.destroy();this.L&&(qf(this.L),this.L=null);this.U&&(sf(this.U),this.U=null);this.G&&(ce(this.G,["ad-showing","ad-interrupting"]),
this.G=null);this.F=!1;var a=this.j;if(a.D){var b=a.app,a=a.D;n9(b);a!=b.j&&j9(b,b.j)}this.J.dispose();this.J=null;c3.M.S.call(this)};
h.gs=function(){this.K?this.Cl():this.Dl()};
h.Dl=function(){this.o.resume();this.cs()};
h.Cl=function(){this.o.pause();this.bs()};
h.Lm=function(){gg(Zq(this.j.H),this.j.app.D.Ma())};
h.OE=function(a){n(a.j)||Pl(a);var b=a.j;n(a.o)||Pl(a);this.D.o=new qe(b,a.o)};B(m3,V2);h=m3.prototype;
h.show=function(){if(!this.F||!r5(this.j)){L(this.j.Aa(),"ad-showing");this.A=Zq(this.j.H);var a=this.o.getCurrentAd().getHeight();this.A.style.height=Wf(a,!0);L(this.A,"ad-overlay");this.C.R(this.A,"mouseup",this.RE);try{this.C.R(this.o,"autoClose",this.Xy),this.C.R(this.o,"userClose",this.HB),this.C.R(this.o,"userRecall",this.IB),this.C.R(this.o,"click",this.QE),this.C.R(this.o,"impression",this.cA),this.C.R(this.o,"adError",this.PE),n3(this,"normal"),this.G||this.o.start(),this.Mm(),this.j.subscribe("onResize",
this.xj,this),this.j.subscribe("onStateChange",this.hs,this),this.O("adEnd",this)}catch(b){this.O("adError",b)}}};
h.S=function(){this.C.removeAll();this.j.Ba("onResize",this.xj,this);this.j.Ba("onStateChange",this.hs,this);ae(this.j.Aa(),"ad-showing");this.o&&(this.G||this.o.destroy(),this.o=null);this.A&&ae(this.A,"ad-overlay");this.A=null;this.F=!1;m3.M.S.call(this)};
h.HB=function(){this.A&&this.o&&this.o.getCurrentAd()&&(this.A.style.height=Wf(0,!0));this.F=!0;var a=this.D;a.o=K();var b=l3(a);k3(a,6,b);this.j.O("overlay_ad_close")};
h.Xy=function(){this.j.O("overlay_ad_close")};
h.IB=function(){this.j.O("overlay_ad_open")};
h.QE=function(){this.j.pauseVideo();var a=this.D;a.o=K();var b=l3(a);if(a.A){var c=j5(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}k3(a,100,b)};
h.cA=function(){var a=R("ADS_OVERLAY_IMPRESSION");a&&this.j.O("publish_external_event","onAdAnnounce",a);this.j.O("overlay_ad_open")};
h.RE=function(a){this.D.A=a.target==a.currentTarget?null:new qe(a.pageX,a.pageY)};
h.PE=function(a){a=a.event.getError();this.O("adError",a)};
h.hs=function(a){V(a.state,16)&&n3(this,"normal")};
h.xj=function(){};
h.Mm=function(){var a=this.D;a.B=K();var b=l3(a);k3(a,3,b)};B(o3,H);o3.j="rm";o3.o=10;o3.C=200;o3.A=200;o3.B=190;h=o3.prototype;
h.load=function(){var a;a=this.j.app.D.Ma();var b;this.j.o.j?b=!1:(b=0<(this.D&3)?o3.B:o3.A,b=a.width<o3.C||a.height<b);if(b){b=this.A;var c=E2(b);c.ck_wh=a.width+"x"+a.height;k5(b.j,14,c);K2();this.Ac(Error("The player size is too small."))}else if(this.C=this.j.L)a=this.A,u3(a.j,9,E2(a)),a=B2(this.j),(b=this.j.o.serverPrefetchedVast)&&0<(this.D&3)?(a.o=b,this.j.o.serverPrefetchedVast=void 0):a.j=this.ed(),this.C.R("adsManagerLoaded",this.$r,!1,this),this.C.R("adError",this.Zr,!1,this),this.Ni(this.C,
a)};
h.qk=function(){var a=A2(this.j.o,this.j.V(),C2(this.j));a.surveyCreativeData=this.j.o.surveyCreativeData;a.youTubeAdNamespace=this.hg();return a};
h.hg=function(){return this.U};
h.$r=function(a){if(a.A===this){Zu("aml");try{var b=this.qk(),c=a.j}catch(d){this.Sd(d);return}this.B.R(c,"companionBackfill",A(this.LE,this,c));this.B.R(c,"loaded",A(this.KE,this,c));this.B.R(c,"adError",A(this.JE,this,c));this.B.R(c,"allAdsCompleted",x);this.B.R(c,"contentPauseRequested",x);this.B.R(c,"contentResumeRequested",x);c=JU(a,this.j.K,{},b);try{c.init("normal")}catch(d){c.destroy(),this.Sd(d)}}};
h.KE=function(a,b){this.B.removeAll();var c=b.getAd(),d=FT(c),e=this.A,f=E2(e);f.ad_man=d?"instream":"overlay";u3(e.j,12,f);e=a.getMediaUrl();switch(d?this.qf(a,c,e):this.hd(a,c)){case 0:v3(this);break;case 1:a.destroy();this.Ac(Error("Unable to create a display state."));break;case 2:c=this.A;k5(c.j,21,E2(c));a.destroy();this.Ac(Error("Fallback to next ad."));break;case 3:this.Ac(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
h.JE=function(a,b){this.B.removeAll();a.destroy();this.Sd(b.getError())};
h.Zr=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.j===this&&this.Sd(b)};
h.LE=function(){t3(this)};
h.qf=function(a,b,c){var d=C2(this.j)&&C2(this.j).spacecastModule;if(d&&c&&!this.P.test(c))return 3;r3(this,WT(b));q3(this,new c3(this.hg(),this.j,a,IT(b),void 0,d));return 0};
h.hd=function(a,b){r3(this,WT(b));q3(this,new m3(this.hg(),this.j,a));return 0};
h.Sd=function(a){if(a){var b=this.A,c=E2(b);a&&w2(a,c);k5(b.j,32,c);this.Ac(a)}};
h.Ac=function(){h4(this.G)};
h.S=function(){this.C&&(this.C.xa("adsManagerLoaded",this.$r,!1,this),this.C.xa("adError",this.Zr,!1,this));this.N.removeAll();this.B.removeAll();o3.M.S.call(this)};
h.Ni=function(a,b){try{z_(a,b,this),Zu("ar")}catch(c){this.Sd(c)}};B(w3,V2);w3.prototype.show=function(){F2();this.O("adEnd",this);this.C=Hi(A(this.D,this),1E3)};
w3.prototype.S=function(){A3(this);w3.M.S.call(this)};
w3.prototype.D=function(){var a=v("yt.www.watch.ads.isAfcAdVisible");this.A++;var b={};b.at=this.mf();10<=this.A||!a?(A3(this),this.O("AD_LOGGING_EVENT",2,b)):a()&&(A3(this),this.O("AD_LOGGING_EVENT",3,b))};B(B3,o3);B3.prototype.qk=function(){var a=B3.M.qk.call(this);a.xn=0==this.J;a.kv=r5(this.j)?a.xn:!0;return a};
B3.prototype.ed=function(){var a;var b=this.F;a=s3(this);(b=4==this.D&&b.j.afvInvideoAdTag?b.j.afvInvideoAdTag:b.j.afvAdTag)?(sa(b,"http:")&&(b=b.substr(5)),a=wj(b,{videoad_start_delay:a})):a="";return a};
B3.prototype.hd=function(a,b){if(this.j.o.j)return 1;1==this.o.j&&(p3(this),u3(this.j,1));return B3.M.hd.call(this,a,b)};
B3.prototype.Ac=function(a){var b=this.j.o;b.j?B3.M.Ac.call(this,a):b.Y||this.D&4?(q3(this,new w3(this.j)),v3(this)):B3.M.Ac.call(this,a)};C3.prototype.j=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.F,d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.F,d.push("480x361"));b&12&&d.push("480x70");var e=[],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=hc(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.B&&null==k.ciu_szs&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";
if(this.G||null==k.ord){if(!this.o||this.G)this.o=Math.floor(999999999*Math.random()).toString();k.ord=this.o}d&&d.length&&null!=k.sz&&"WIDTHxHEIGHT"==k.sz&&ec(k,"sz");e=sj(k,";");d&&d.length&&null==k.sz&&(e="sz="+d.join(",")+";"+e);return[this.A,"pfadx",this.C,";",e,"?"].join("")};D3.prototype.j=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 P(this.o),f=e.j,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.o};B(y3,m3);y3.prototype.xj=function(){};
y3.prototype.Yc=function(){return"1_3"};
y3.prototype.Mm=function(){1==this.J?this.O("AD_LOGGING_EVENT",2,{}):y3.M.Mm.call(this)};B(E3,o3);E3.prototype.ed=function(){return this.T.j(r2(this.o),this.D)};
E3.prototype.hd=function(a,b){r3(this,WT(b));var c=ET(b);if(y2(c,o3.j))return 1==this.D||r5(this.j)||K2(),a.sendImpressionUrls(),this.j.o.H?(q3(this,new w3(this.j)),0):2;if(y2(c,"blockAllAds"))return a.sendImpressionUrls(),q3(this,new y3(this.j,a,1)),0;if(y2(c,"hideMaster"))return q3(this,new y3(this.j,a,0)),0;if(this.j.o.j)return 1;q3(this,new m3(this.hg(),this.j,a));return 0};B(F3,E3);var efa={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};h=F3.prototype;h.ed=function(){if(this.j.o.ca){var a=new D3(this.j.o.dynamicAllocationAdTag);return a.j(r2(this.o),this.K)}a=new C3(this.j.o.dynamicAllocationAdTag,this.j.o,this.J);return a.j(r2(this.o),this.K)};
h.Ni=function(a,b){if(this.H){b.A=z2(this.H);var c=this.j.o.ga;c&&(b.B=c);b.ah=s3(this)}F3.M.Ni.call(this,a,b)};
h.qf=function(a,b,c){G3(this,a);return 1!=this.F&&2!=this.F?1:F3.M.qf.call(this,a,b,c)};
h.hd=function(a,b){G3(this,a);switch(this.F){case 1:return F3.M.hd.call(this,a,b);case 2:var c;this.j.o.j?c=1:(1==this.o.j&&(p3(this),u3(this.j,1)),r3(this,WT(b)),q3(this,new m3(2,this.j,a)),c=0);return c;default:return 1}};
h.hg=function(){return this.F||0};
h.Ac=function(a){var b=this.j.o;b.j?F3.M.Ac.call(this,a):b.Y||this.H&4?(q3(this,new w3(this.j)),v3(this)):F3.M.Ac.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.
*/
H3.prototype.cancel=function(a){if(this.j)this.A instanceof H3&&this.A.cancel();else{if(this.o){var b=this.o;delete this.o;a?b.cancel(a):(b.G--,0>=b.G&&b.cancel())}this.L?this.L.call(this.K,this):this.H=!0;this.j||(a=new R3,K3(this),I3(this,!1,a))}};
H3.prototype.J=function(a,b){this.F=!1;I3(this,a,b)};
H3.prototype.Hh=function(a){K3(this);I3(this,!0,a)};
H3.prototype.then=function(a,b,c){var d,e,f=new Ad(function(a,b){d=a;e=b});
N3(this,d,function(a){a instanceof R3?f.cancel():e(a)});
return f.then(a,b,c)};
yd(H3);B(L3,ra);L3.prototype.message="Deferred has already fired";L3.prototype.name="AlreadyCalledError";B(R3,ra);R3.prototype.message="Deferred was canceled";R3.prototype.name="CanceledError";Q3.prototype.A=function(){delete P3[this.j];throw this.o;};
var P3={};B(S3,o3);S3.o="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";S3.A="43";S3.j=function(a){var b=new H3;Gj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Ud:function(){var c=Error(a+" timed out");K3(b);I3(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);K3(b);I3(b,!1,c)},
kb:function(a){b.Hh(a)}});
return b};
S3.prototype.ed=function(){return""};
S3.prototype.Ni=function(a,b){var c=this.D;c&1||c&4||c&8?this.F?c&8?Wea(this.F):("goo.gl"==Ng(this.F)?(c=S3.j(S3.o+this.F),M3(c,function(a){a=de(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new P(a.longUrl);oh(a,"video_format",S3.A);return S3.j(a.toString())},this)):c=S3.j(this.F),M3(c,function(c){b.o=c.responseText;
z_(a,b,this)},this),N3(c,null,this.Sd,this)):this.Sd(Error("Invalid empty URL")):this.Sd(Error("Invalid request type: "+c))};B(T3,V2);T3.prototype.show=function(){var a=C2(this.j).videoId;if(a){var b=this.o.getCurrentAd();FG(this.j.V().H,a,{ue:wU(b)||null,Sf:xU(b)||null,Rh:!1});a={};a.format=this.Yc();a.at=this.mf();x2(b,a);this.O("AD_LOGGING_EVENT",3,a)}};B(U3,o3);U3.prototype.ed=function(){return this.j.o.$a||""};
U3.prototype.hd=function(a,b){r3(this,WT(b));q3(this,new T3(this.j,a));5!=this.o.j&&t3(this);return 0};
U3.prototype.qf=function(){return 1};B(V3,U3);V3.prototype.ed=function(){return this.j.o.ta||""};B(x3,m3);x3.prototype.xj=function(){};
x3.prototype.Yc=function(){return"4_3"};B(b4,o3);
b4.prototype.ed=function(){var a;if(C(this.F)||0!=r2(this.o)){var b=this.H;if(b.j.fa&&b.j.Fa){a={};var c="youtube_watch_"+b.A;a.nw="10613";a.asnw=b.j.fa;a.ssnw=b.j.fa;a.caid=b.j.Fa;a.vdur=b.D;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.j.Ha)||(c._fw_d_001=b.j.Ha);b.j.gender&&(c._fw_d_002=b.j.gender);b.j.Ca&&(c["_fwu:10613:lang"]=b.j.Ca);b.j.oa&&(c._fw_dbp=b.j.oa);b.j.ia&&(c._fw_distributorvideoassetid=b.j.ia);c._fw_yt_type=$3(b)?"long":"short";if(W3(b)){a.prof=$3(b)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
a.crtp="youtube";a.flag=Y3(b.o)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.C&1&&!b.F){e={};d=X3(b);if(a4(b.o)){var f;if(a4(b.o)){f=0;var k=b.B.A;if(k)for(var k=k.A,l=0;l<k.length&&(a4(k[l])&&f++,k[l].getId()!=b.o.getId());l++);}else f=0;d=d+f}e.slid=d;e.ptgt="a";e.slau=X3(b);e.tpos=Z3(b.o)?b.D.toString():r2(b.o.jb).toString();d=sj(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=sj(e,"&")+";"}b.C&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},
e.tpos=Y3(b.o)?"10":Z3(b.o)?b.D.toString():r2(b.o.jb).toString(),d+=sj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=sj(e,"&")+";");b.C&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=sj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+sj(a,"&")+";"+sj(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=X3(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?"+sj(a,"&")+";"+sj(c,"&")+";"+sj(d,"&")}else a=""}else a=this.F;return a};
b4.prototype.qf=function(a,b){return b4.M.qf.call(this,a,b,null)};
b4.prototype.hd=function(a,b){var c=ET(b);if(y2(c,o3.j))return this.G.C=gc(a),2;if(this.j.o.j)return 1;if(y2(c,"hideMaster")){if(a.F&&a.F.Be()){var c=a.F.Be(),d;d=a.getCurrentAd();if(OK()){var e=d.J;d.J=[];d=e}else d=[];c.impressionUrls=d}q3(this,new x3(this.j,a));return 0}return b4.M.hd.call(this,a,b)};c4.prototype.getType=function(){return this.A};
c4.prototype.create=function(a,b){switch(this.A){case 1:return new B3(a,b,this.j);case 2:return new E3(a,b,this.j);case 3:return new F3(a,b,this.j,this.o);case 5:return new b4(a,b,this.j);case 4:return new S3(a,b);case 7:return new U3(a,b,this.j);case 8:return new V3(a,b,this.j);default:return null}};B(d4,Wj);h=d4.prototype;h.getId=function(){return this.D};
h.show=function(){this.H?this.j instanceof m3&&n3(this.j,"normal"):(this.H=!0,this.j instanceof c3&&i4(this.A,"bs"),this.j.subscribe("adEnd",this.pp,this),this.j.subscribe("adError",this.Yr,this),this.j.subscribe("AD_LOGGING_EVENT",this.Jp,this),this.j.subscribe("select",this.Xr,this),this.j.show(),k4(this,!0))};
h.pp=function(){this.o&&(l4(this),l5(this.A));z3(this)};
h.Yr=function(a){if(a){var b={};w2(a,b);j4(this,b);k5(this.A,32,b)}l4(this);z3(this)};
h.Jp=function(a,b){j4(this,b);u3(this.A,a,b)};
h.Xr=function(){this.G=!1};
h.S=function(){l4(this);this.j=null;null!=this.C&&(this.C.dispose(),this.C=null);d4.M.S.call(this)};var q4=[new p2(1)];var mfa={ou:"m",Vt:"f"};var s4=["9412857","9412859"];B(t4,H);t4.prototype.P=function(){this.B=0};
t4.prototype.Uc=function(){if(V(pz(this.j.j),8)){if(u4(this)){this.D=this.D||K()/1E3;this.G&&(this.C+=K()/1E3-this.G);var a=this.j.getCurrentTime(1);0!=this.o&&Math.abs(a-this.o)>this.N?(this.o=this.j.getCurrentTime(1),w4(this,"seek"),this.C=0,this.A.push(K()/1E3)):this.B||0==this.o||(w4(this,"pause"),this.C=0,this.A.push(K()/1E3));v4(this)}}else V(pz(this.j.j),4)&&0==this.o&&u4(this)&&(this.o=this.j.getCurrentTime(1),this.B=Fi(A(this.P,this),1E3*this.L),this.G=K()/1E3)};
t4.prototype.S=function(){v4(this);this.j.Ba("applicationplayerstatechange",this.Uc,this)};B(x4,H);h=x4.prototype;h.Vq=function(){this.j.subscribe("beginseeking",this.Nh,this)};
h.Rq=function(a,b){return a.o&&a4(a)?b+this.B+this.A:b};
h.Qq=function(a,b){return!a.o||Z3(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.B+this.A};
h.un=function(a){if(a.o&&a4(a)&&!(0>=this.A)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=e4(a)+this.B,b=new lq(c,c+this.A-1,b);this.C[a.getId()]=b;this.j.fb([b])}};
h.ms=function(a){a.o&&a4(a)&&(y4(this,a.getId()),this.Nh())};
h.Nh=function(){(0,window.isNaN)(this.o)||(Ii(this.o),this.o=window.NaN);var a=n5(this.j);A4(this,a,this.j.app.Va.Db()/100);Of(a,"transition","");Of(a,"opacity","1")};
h.os=function(a){var b=e4(a)+this.B+this.A,b=50>=1E3*this.j.getCurrentTime(1)-b;a.o&&a4(a)&&b&&(a=.001*(e4(a)+this.F),this.j.O("command_seek",a),0>=this.D||(a=n5(this.j),Of(a,"opacity","0"),A4(this,a,0),Fi(A(this.SE,this),0)))};
h.SE=function(){var a=n5(this.j);Of(a,"transition","opacity "+String(this.D)+"ms linear");Of(a,"opacity","1");z4(this,a,this.D,1)};
h.ls=function(a,b,c){if(!(0,window.isNaN)(this.o)){var d=Math.max(1,b-K()),d=Math.max(0,a.volume+-1*a.volume*c/d);A4(this,a,d);this.o=0<d?Hq(A(this.ls,this,a,b,c),c):window.NaN}};
h.ks=function(a,b,c){if(!(0,window.isNaN)(this.o)){var d=Math.max(1,b-K()),e=this.j.app.Va.Db()/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);A4(this,a,d);this.o=d<e?Hq(A(this.ks,this,a,b,c),c):window.NaN}};
h.S=function(){this.Nh();this.j.Ba("beginseeking",this.Nh,this)};B(B4,x4);h=B4.prototype;h.Vq=x;h.Rq=function(a,b){return b};
h.Qq=function(a,b){return b};
h.un=x;h.ms=x;h.os=x;h.S=x;B(D4,H);h=D4.prototype;h.wn=function(){this.j.app.subscribe("applicationplayerstatechange",this.Uc,this)};
h.ao=function(){return 4-this.B/1E3};
h.Yi=function(a){return $b(this.A,1E3*a)?this.A[1E3*a]/1E3:a};
h.qq=function(a){var b=!1,c={};F(a.childNodes,A(function(a){var e;if(e=(e=a.getAttribute("timeOffset"))?C4(e):null)b=b||ofa(a),c[e]=a},this));
if(!b||0==Tb(c))return!1;a=Q(Yb(c),function(a){return(0,window.parseInt)(a,10)});
if(!qfa(this,a))return!1;Ob(c,A(function(a,b){var c=(0,window.parseInt)(ac(this.A,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",pfa(this,c))},this));
return!0};
h.vn=function(a){if(!(0>=this.H)){var b=[];F(a,A(function(a){if($b(this.A,1E3*a)){var d=new lq(1E3*this.Yi(a)+this.B,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.C[a]=d;b.push(d)}},this));
this.j.fb(b)}};
h.vs=function(a){if($b(this.A,1E3*a)){var b=n5(this.j);a=Math.max(0,1E3*a-1E3*this.j.getCurrentTime(1));Of(b,"transition","opacity "+String(a)+"ms linear");Of(b,"opacity","0");F4(this,b,a,0)}};
h.ws=function(a){E4(this,1E3*a)&&(this.C[a]&&(VH(this.j.j,[this.C[a]],void 0),delete this.C[a]),this.mh())};
h.Uc=function(){V(pz(this.j.j),4)&&this.mh()};
h.mh=function(){(0,window.isNaN)(this.o)||(Ii(this.o),this.o=window.NaN);var a=n5(this.j);G4(this,a,this.j.app.Va.Db()/100);Of(a,"transition","");Of(a,"opacity","1")};
h.xs=function(a){if($b(this.A,1E3*a)){var b=1E3*a;200>=1E3*this.j.getCurrentTime(1)-b&&(this.j.O("command_seek",this.Yi(a)+this.G/1E3),0>=this.D||(a=n5(this.j),Of(a,"opacity","0"),G4(this,a,0),Fi(A(this.YE,this),0)))}};
h.YE=function(){var a=n5(this.j);Of(a,"transition","opacity "+String(this.D)+"ms linear");Of(a,"opacity","1");F4(this,a,this.D,1)};
h.us=function(a,b,c){if(this.o){var d=Math.max(1,b-K()),d=Math.max(0,a.volume+-1*a.volume*c/d);G4(this,a,d);this.o=0<d?Hq(A(this.us,this,a,b,c),c):window.NaN}};
h.ts=function(a,b,c){if(this.o){var d=Math.max(1,b-K()),e=this.j.app.Va.Db()/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);G4(this,a,d);this.o=d<e?Hq(A(this.ts,this,a,b,c),c):window.NaN}};
h.S=function(){this.mh();this.j.Ba("applicationplayerstatechange",this.Uc,this)};B(H4,D4);h=H4.prototype;h.wn=x;h.ao=function(){return 4};
h.Yi=function(a){return a};
h.qq=function(){return!1};
h.vs=x;h.vn=x;h.mh=x;h.ws=x;h.xs=x;h.S=x;B(J4,H);J4.prototype.B=function(){var a=this.j.o.o;if(this.D&&!(0>=a)){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Ob(this.F.B,function(a){a.isDisposed();if(a.isVisible&&!(0>=M4(this,a))){var f;f=a.getId();f=this.F.F[f];if(M4(this,a)>b){var m=!L4(this,a);m!=f.visible&&(f.visible=m,c.push(f));m||(f=M4(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);
0<c.length&&this.j.j.fb(c,1);if(d){var f=0;0<this.A&&(f=K()/1E3-this.A);sfa(this,a-f-e+2)}else K4(this)}};
J4.prototype.o=function(){return this.A};
J4.prototype.S=function(){K4(this);this.j.Ba("endseeking",this.B,this)};B(N4,H);h=N4.prototype;h.Ff=function(a){a.Ba("adBreakComplete",this.Ff,this);this.K=Fi(A(this.yy,this,a),0)};
h.yy=function(a){var b=ufa(this,a),c=b.previous,b=b.next;this.K=0;var d,e=!1;switch(a.jb.j){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&fa(b.jb.o)?e4(b)-1:0x7ffffffffffff}0==a.D&&(i4(this.j,"bl"),g4(a)||i4(this.j,"fb"));"loaded"!=a.B||0==a.D&&g4(a)&&b&&1E3*this.j.j.getCurrentTime()>=e4(b)?(c&&f4(c)&&!e&&(b=d,d=e4(c),d>b&&(b=d),Q4(this,c),P4(this,c,b)),this.ze(a)):(this.B[a.getId()]=a,P4(this,a,d),tq(this.j));Tb(this.B)==this.A.length&&this.C.B();O4(this)};
h.ze=function(a){a.Ba("adBreakComplete",this.Ff,this);this.o&&a==this.o&&(this.o=null);Q4(this,a);ob(this.A,a);delete this.B[a.getId()];Mb(a)};
h.Cq=x;h.wj=function(a){return this.B[a]};
h.vl=function(a){if(a.o){if(!Z3(a)&&a.G){var b=this.j;q5(b);yq(b);this.D.os(a)}else g4(a)&&!a.G?(b=this.j,q5(b),yq(b)):q5(this.j);this.ze(a);null!=this.j.C&&(a=this.C.o(),a=0<a?Math.floor(K()/1E3-a):0,r4(this.j.C,"set_previous_ad_end_time",{tfla:a}));a=this.C;a.D&&0<a.j.o.o&&(a.A=K()/1E3,a.B());for(;!kb(this.N);)R4(this,this.N.shift())}else a.isVisible||this.ze(a)};
h.S=function(){this.K&&Ii(this.K);Mb(this.D);Mb(this.C);Mb(this.ca);F(this.A,this.ze,this);N4.M.S.call(this)};B(T4,N4);h=T4.prototype;h.wj=function(a){a=T4.M.wj.call(this,a);if(!a)return null;if(!a.J)return a;var b;b=null;if(this.G.length){var c=b=this.G.shift();c.jb=a.jb;c.D=a.getId()}b&&"loaded"==b.B?(a.Ba("adBreakComplete",this.Ff,this),this.B[a.getId()]=b,this.A[this.A.indexOf(a)]=b,Mb(a)):(this.Hf(),b&&(Mb(b),b=null),this.ze(a));b&&!b.o&&this.Hf();return b};
h.Ff=function(a){!Y3(a)||"loaded"==a.B&&a.o||this.Hf();T4.M.Ff.call(this,a)};
h.vl=function(a){a.o&&10<this.U?U4(this):this.Hf();T4.M.vl.call(this,a)};
h.Hf=function(){if(!this.isDisposed())for(V4(this);this.J.length&&this.L.length+this.G.length<this.T;){var a=this.J.shift();a.subscribe("adBreakComplete",this.op,this);this.L.push(a);h4(a)}};
h.Cq=function(){U4(this)};
h.op=function(a){a.Ba("adBreakComplete",this.op,this);ob(this.L,a);this.G.push(a)};
h.S=function(){V4(this);F(this.L,Mb);F(this.G,Mb);F(this.J,Mb);T4.M.S.call(this)};B(W4,N4);W4.prototype.Ug=function(a){this.da=a};
W4.prototype.getVideoData=function(){return this.da};
W4.prototype.Y=function(a){"loaded"==a.B&&this.J.push(a);a.Ba("adBreakComplete",this.Y,this)};
W4.prototype.P=function(){if(null!=this.o&&0<this.J.length){var a=this.J.shift();delete this.B[r2(a.jb)];var b=Math.floor(K()/1E3)-this.$;this.$=null;a.Ba("adBreakComplete",this.P,this);this.ze(a);this.o=null}0<this.L?(this.L--,X4(this)):(a=this.U,q5(a),yq(a),(0,window.isFinite)(b)&&(this.T?R1(this.G,window.Infinity,!0):R1(this.G,this.G.getCurrentTime()+b,!0)))};B(Y4,H);Y4.prototype.F=function(){this.j||(this.j=Z4(this.A.Md()));this.o.j.fb(Wb(this.j),1)};
Y4.prototype.C=function(){var a=this.o.o.o;if(!(0>=a)&&this.j){var b=this.o.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;F(this.A.Md(),function(a){var f=this.j[a];if(f){var m=this.A.K.get(a);m&&m.dc>b?(a=!r_(this.G,m),a!=f.visible&&(f.visible=a,c.push(f)),a||(f=m.dc-b,f<e&&(e=f,d=m))):!m||m.Ua()?(VH(this.o.j,[f],void 0),delete this.j[a]):!f.visible&&m&&(f.visible=!0,c.push(f))}},this);
0<c.length&&this.o.j.fb(c,1);if(d){var f=0;0<this.D&&(f=K()/1E3-this.D);wfa(this,a-f-e+2)}else $4(this)}};
Y4.prototype.S=function(){Y4.M.S.call(this);this.o.Ba("endseeking",this.C,this);$4(this)};B(b5,H);var Bfa={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4};h=b5.prototype;
h.load=function(a){if(this.G=this.j.L){this.C=I4(this.j);var b=B2(this.j);b.o=yfa(this,a);b.gi=this.j.K.A;b.yb.GET_MIDROLL_POSITION_IN_SEC=A(this.C.Yi,this.C);if(a=m4(this.j.o).get(3)){var c=this.j.V();t2(c,["9418778","9417893","9417894","9417895","9419817"])||(b.A=z2(a));if(a=this.j.o.ga)b.B=a}this.G.R("adsManagerLoaded",this.rs,!1,this);this.G.R("adError",this.qs,!1,this);z_(this.G,b,this)}};
h.rs=function(a){if(a.A===this){var b={};Object.defineProperty(b,"currentTime",{get:A(function(){return this.j.getCurrentTime(1)},this),
enumerable:!0});Object.defineProperty(b,"duration",{get:A(function(){return this.j.j.getVideoData().lengthSeconds},this),
enumerable:!0});try{var c=zfa(this);this.o=JU(a,this.j.K,b,c)}catch(d){d5(this,d);return}if(this.H=this.o.zo(b,this.j.o.o)){this.C.vn(this.o.Md());this.L=new t4(this.j,this.H);this.F=new Y4(this.j,this.o,this.H);J(this,this.F);Fi(A(this.F.F,this.F),0);ib(this.o.Md(),0)||f5(this);this.D.R(this.o,"companionBackfill",A(this.VE,this));this.D.R(this.o,"prefetched",A(this.Ey,this));this.D.R(this.o,"loaded",A(this.UE,this));this.D.R(this.o,"adError",A(this.TE,this),!1);this.D.R(this.o,"start",A(this.Fy,
this));this.D.R(this.o,"complete",A(this.Ay,this));this.D.R(this.o,"contentPauseRequested",A(this.WE,this));this.D.R(this.o,"contentResumeRequested",A(this.XE,this));this.D.R(this.o,"allAdsCompleted",A(this.Ly,this));try{this.o.init("normal"),this.o.start()}catch(d){r4(this.j.C,"vmap_ads_manager_init_exception"),this.o.destroy(),this.o=null,d5(this,d)}}}};
h.WE=function(a){e5(this);(this.A=a.getAd())&&FT(this.A)&&(a=c5(this.A),this.B=new c3(a,this.j,this.o,IT(this.A),!0),S4(this.j),this.C.ws(this.A.C.j),this.B.show(),null!=this.j.C&&(a=this.H.o(),a=0<a?Math.floor(K()/1E3-a):0,r4(this.j.C,"show_instream_ads",{tfla:a})))};
h.XE=function(a){f5(this);if(this.j.getCurrentTime(1)<this.j.j.getVideoData().lengthSeconds){var b=this.j;q5(b);yq(b);this.A&&FT(this.A)&&this.C.xs(this.A.C.j)}this.J?this.A=null:e5(this);a=a.getAd();b=!0;if(a&&a!==this.A&&!FT(a)){b=this.o;if(null!=b.A&&b.A.P&&!this.J){this.J=!0;b=this.F;if(null!=b.j[0]){var c=b.j[0];delete b.j[0];b.j[0]=new lq(1E4,c.end,{id:"10",visible:!0});c.visible=!1;b.o.j.fb([c,b.j[0]],1);b.o.fb([b.j[0]])}this.A=a;return}b=Afa(this,a)}this.A&&FT(this.A)&&l5(this.j);this.A&&
FT(this.A)?(null!=this.j.C&&(b=this.H.o(),b=0<b?Math.floor(K()/1E3-b):0,r4(this.j.C,"set_previous_ad_end_time",{tfla:b.toString()})),b=this.H,0<b.A&&(b.j=K()/1E3),a5(this.F)):a&&a!==this.A&&!FT(a)&&b&&a5(this.F);this.F.F();this.A=a};
h.Ly=function(){this.L.H=!0};
h.Fy=function(a){(a=a.getAd())&&this.B&&(a=c5(a),this.B.adSystem=a)};
h.Ay=function(a){FT(a.getAd())||this.A!==a.getAd()||(e5(this),this.A=null)};
h.Ey=function(a){var b=a.getAd();null!=b&&(this.P[a.j.adBreakTime]=b)};
h.UE=function(a){if(null!=a.getAd()){var b;b=a.getAd().C;0<b.j&&(this.J=!1);b.A||FT(a.getAd())||f5(this)}};
h.TE=function(a){d5(this,a.getError())};
h.qs=function(a){var b=a.getError();"adLoadError"==b.getType()&&a.j===this&&d5(this,b)};
h.VE=function(){H2();I2()};
h.S=function(){e5(this);this.G&&(this.G.xa("adsManagerLoaded",this.rs,!1,this),this.G.xa("adError",this.qs,!1,this));this.N.removeAll();this.D.removeAll();this.K=!1;this.o&&(this.o.destroy(),this.o=null);Mb(this.C);Mb(this.L);b5.M.S.call(this)};B(h5,B_);h5.A=10;h5.o=1E3;h5.j="livead";h5.Ta=function(a){return!!a.Va.getVideoData().adModule};
h=h5.prototype;h.Ta=function(){return h5.Ta(this.app)};
h.create=function(){h5.M.create.call(this);this.C=new nfa(this);i4(this,"i");this.o=new kfa(this.V(),this.j.getVideoData().B||{});this.J=new vfa(this,this.j);this.X=!1;if(this.L)this.L.j.A.B=PR();else{var a=this.o.T?void 0:cr(this.H),b=new A_(this.app,2),c=Zq(this.H);b.o||(b.o=gc(b.A),b.o.addEventListener=A(b.Uv,b),b.o.removeEventListener=A(b.Vv,b));this.K=new GR(c,void 0,a,b.o,!0);this.K.setSize(-1,-1);this.L=new y_(this.K)}if(Boolean(this.o.vmap&&!this.o.da)){this.B=new b5(this);try{this.B.load(this.o.vmap)}catch(d){r4(this.C,
"vmap_load_exception"),this.B.dispose(),this.B=null,p5(this,p4(new o4(this)))}}else p5(this,p4(new o4(this)));a={};a.allowed=this.J.B;uq(this,{},a)};
h.destroy=function(){this.T&&q5(this);if(this.D==rq(this.app)&&this.D){var a=this.app,b=this.D;n9(a);b!=a.j&&j9(a,a.j)}Nb(this.A,this.D,this.B);this.J=this.o=this.B=this.Y=this.D=this.A=null;$q(this.H);J2=G2=!1;this.C=null;this.G&&h5.M.destroy.call(this)};
h.V=function(){return this.app.V()};
h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.Ja=function(){return this.j.Ja()||this.o.B};
h.kh=function(){var a;if(this.J){a=this.J;var b={allowed:a.B};a.j.excludedAds&&(b.ex_ad=a.j.excludedAds);a.A&&(b.at=a.A);a=b}else a=h5.M.kh.call(this);return a};
h.Aa=function(){return this.j.Aa()};
h.getVideoData=function(){return this.Y};
h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
h.getAdState=function(){return this.U};
h.Qb=function(a){h5.M.Qb.call(this,a);var b=(0,window.parseInt)(a.getId(),10);if(this.A&&!(0,window.isNaN)(b))if("ytp-ad-fadeout"==a.style){var c=this.A,d=c.wj(b);if(d&&!L4(c.C,d)&&(c=c.D,d.o)){var e=n5(c.j),d=Math.max(0,e4(d)+c.B+c.A-1E3*c.j.getCurrentTime(1));Of(e,"transition","opacity "+String(d)+"ms linear");Of(e,"opacity","0");z4(c,e,d,0)}}else R4(this.A,b);this.B&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.B,(c=d.P[b])&&FT(c)&&d.C.vs(b)):0>b?(b=this.L.j,d=new KU("contentComplete"),
b.Z(d),d.A&&(aL(XK(),41351033)||b.A.clear(),null!=b.o&&(d=b.o.Be(),null!=d&&dS(d,b.A.j)))):(b=this.B,null!=b.A&&(b=b.o,null!=b.A&&b.A.start())));if(a.getId()===h5.j&&null!=m5(this)){b=m5(this);for(a=Math.floor(a.start/1E3);n(b.B[a]);)a++;var d=b.fa++,c=0==a?new p2(1):new p2(2,a),e=b.U,f;f=n4(b.U.o,c.j);d=new d4(e,d,c,f,!1);b.B[a]=d;d.subscribe("adBreakComplete",b.Y,b);h4(d)}};
h.Xb=function(a){h5.M.Xb.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=this.getCurrentTime(1)*h5.o;this.A&&!(0,window.isNaN)(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.A,(b=c.B[b])&&c.o==b&&!b.o&&b.isVisible&&b.H&&b.j instanceof m3&&n3(b.j,"fullscreen"));this.B&&"ytp-ad-fadeout"==a.style&&this.B.C.mh();a.getId()===h5.j&&null!=m5(this)&&this.getCurrentTime(1)*h5.o>=a.start&&(VH(this.j,[a],1),X4(m5(this)))};
h.Td=function(a){this.O(a)};
h.Fz=function(a){var b=m5(this);if(null!=b&&null!=b.G){var c=m5(this).G.getCurrentTime();F(a,function(a){0!=c&&a.ae>c&&(a=new lq(1E3*Math.floor(c+Math.random()*Math.max(a.ae-h5.A-c,0)),1E3*a.ae,{id:h5.j,priority:2}),this.fb([a],1))},this)}};
h.sd=function(a){switch(a){case "addata":var b=this.o;return{adTag:b.adTag,adTest:b.bb,forceAdType:b.X,isAfvSkippableInstreamEnabled:b.J,isAfvStandardInstreamEnabled:b.K,isBlazer:b.Ea,isDoubleClickEnabled:b.G,isForcedAd:b.da,isFreeWheelEnabled:b.L,isHouseBrandPlayer:b.Ab,isLeanback:b.B,isShortform:b.Za,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.A instanceof T4?this.A:null,null!=b?b.U:0;case "breakscount":return this.A?this.A.A.length:
0;case "displaystate":return b=null,this.A&&this.A.o&&(b=this.A.o.j),{adFormat:b instanceof V2?b.adType:!1,adSkipped:b instanceof c3?b.F:!1,hasVideoStarted:b instanceof c3?b.H:!1,skippable:b instanceof c3?b.T:!1};case "getContentVideoData":return b=C2(this),{adModule:b.adModule,partnerTrackingToken:b.$,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.A){a=this.A.B;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].o});return c}return 0}};
h.We=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};B(s5,H);h=s5.prototype;h.S=function(){x5(this,new qy);w5(this);F5(this);this.o.Ba("onVolumeChange",this.Ip,this);this.o.j.removeEventListener("onCaptionsTrackListChanged",this.J);var a=this.j;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.j.Ba("proxyStateChange",this.Vp,this),this.j.Ba("remotePlayerChange",this.Al,this),this.j.Ba("remoteQueueChange",this.Bl,this));E5(this,this.A);this.D&&this.o.j.Im(this.D);this.j=this.o=null};
h.ZE=function(a,b){2==this.j.o||(y5(this)?this.Cw.apply(this,arguments):this.B&&this.Aw.apply(this,arguments))};
h.Aw=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":D5(this,this.o.j.getCurrentTime());break;case "control_seek":D5(this,c[0])}};
h.Cw=function(a,b){if(1081==Do(this.j).j)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":Do(this.j).Ua()?A5(this):B5(this);break;case "control_play":B5(this);break;case "control_pause":A5(this);break;case "control_seek":this.P=c[0];this.H.nf();break;case "control_subtitles_set_track":t5(this,c[0]);break;case "control_set_audio_track":c=c[0],y5(this)&&
(this.j.pr(z5(this),c),this.D=c)}};
h.Ip=function(a){if(y5(this)){var b=Math.round(a.volume);a=!!a.muted;var c=Do(this.j);b==c.volume&&a==c.muted||this.j.setVolume(b,a)}};
h.pA=function(){cc(this.A)||E5(this,this.A);this.C=!1};
h.Vp=function(a,b){F5(this);2==b&&this.Uq()};
h.Al=function(){if(y5(this)){w5(this);var a=Do(this.j);switch(a.j){case 1:C5(this);x5(this,new qy(8));break;case 3:x5(this,new qy(1));break;case 0:x5(this,new qy(2));this.H.stop();var b=this.o.j;(b=rq(b.app,b.playerType||1))&&b.Nf(!0);u5(this,this.o.j.getVideoData().lengthSeconds);break;case 2:x5(this,new qy(4));u5(this,wo(a));break;case -1:x5(this,new qy);break;case -1E3:x5(this,new qy(128,{}))}0==this.K&&(b=this.o.j,(b=rq(b.app,b.playerType||1))&&b.Nf(!1));this.K=a.j;a=Do(this.j).A;b=this.A;(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.A=a,E5(this,a));a=Do(this.j);-1==a.volume||Math.round(this.o.j.Db())==a.volume&&this.o.j.uc()==a.muted||(this.o.j.setVolume(a.volume),a.muted?this.o.j.mute():this.o.j.unMute())}else v5(this)};
h.Bl=function(){y5(this)||v5(this)};
h.OC=function(){var a=this.P;w5(this);u5(this,a);-1==Do(this.j).j?D5(this,a):this.j.or(a);x5(this,new qy(1))};
h.Uq=function(){F5(this);w5(this);var a=this.j.B.getReconnectTimeout();2!=this.j.o||(0,window.isNaN)(a)?this.B=!1:this.G=Fi(A(this.Uq,this),1E3)};B(G5,B_);var Nga=["play_pause","seek","set_audio_track"],Oga=["captions"];h=G5.prototype;h.Ta=function(){return this.app.Va.V().og};
h.create=function(){G5.M.create.call(this);this.D.push(Ni("yt-remote-before-disconnect",this.$y,this));this.D.push(Ni("yt-remote-connection-change",this.Wp,this));this.Wp();var a=this.j.app.J;this.C&&this.C!=this.B&&1!=a&&3!=a&&this.load()};
h.destroy=function(){Ti(this.D);this.D.length=0;Mb(this.o);this.o=null;G5.M.destroy.call(this)};
h.load=function(){if(!this.loaded){G5.M.load.call(this);this.o&&(this.A=new s5(this,0,this.o));this.j.pauseVideo();this.O("command_redirect_controls",this,Nga,Oga);var a=Sp();if(0!=a){var b=this.o?uo(Do(this.o)):null;b&&b!=this.j.getVideoData().videoId||Fi(A(function(){this.J=a||0;WH(this.j,a,void 0)},this),0)}}};
h.unload=function(){this.loaded&&(this.C=this.B,xq(this),Mb(this.A),this.A=null,G5.M.unload.call(this))};
h.S=function(){this.destroy();Nb(this.A,this.o);this.o=this.A=null;G5.M.S.call(this)};
h.Td=function(a,b){this.A&&this.A.ZE.apply(this.A,arguments)};
h.getCurrentTime=function(){return this.J};
h.$y=function(a){1==a&&(this.K=this.o?Do(this.o):null);this.H=a};
h.Wp=function(){var a=Up();a?(this.o=a,this.H=this.K=null,this.load(),this.A||(this.A=new s5(this,0,this.o))):(Mb(this.o),this.o=null,this.loaded&&1==this.H&&(this.unload(),(a=this.K)&&uo(a)==this.j.getVideoData().videoId?this.j.Cm(uo(a),wo(a)):this.j.Cm(this.j.getVideoData().videoId)))};
h.sd=function(a,b){switch(a){case "casting":return!!this.o&&!!this.A;case "receivers":return this.U;case "currentReceiver":if(b)if("cast-selector-receiver"==b.key)Fl();else if(this.C=b||this.B,b.key==this.B.key)Np();else{var c=0,d="",e=this.j.bc();e&&(c=e.j,d=this.j.getVideoData().playlistId);if(e=this.j.bc()){for(var f=[],k=0;k<e.A;k++)f[k]=e.rb(k).videoId;e=f}else e=[this.j.getVideoData().videoId];c={videoIds:e,listId:d,videoId:this.j.getVideoData().videoId,index:c,currentTime:this.j.getCurrentTime()};
Kp(b,c);Mb(this.A);this.A=null;this.load()}return this.C;case "castSelector":return c=zp(),c=1==c.length&&"cast-selector-receiver"==c[0].key,b&&c&&Fl(),c}};
h.We=function(){return["casting","receivers","currentReceiver","castSelector"]};B(I5,S);B(J5,S);B(L5,S);L5.prototype.show=function(){L5.M.show.call(this);this.F()};
L5.prototype.ea=function(){L5.M.ea.call(this);this.D.stop()};
L5.prototype.F=function(){var a=rq(this.o),b=this.o.getVideoData(),c=this.o.D.o,d=this.o.V(),e=dH(d),f;f=this.o;f=f.Fa?f.Fa.J.Ka():[0];var k=8*cb(f)/1024,l=b.Da&&this.o.V().experiments.showEndToEndLatency,m;m=this.o;m=(m=m.j&&m.j.X)?m.C.Ka():[0];var p=b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming",u=cb(m),t=a.G?a.G.j:null,w=t&&t.j,z=window.devicePixelRatio||1,E=b.videoId,M=b.clientPlaybackNonce,G=b.clientPlaybackNonce?"":"display:none",e=e.totalVideoFrames?""+
(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.C?a1(a.C):"",I;a:{if(b.Uf&&(I=b.Uf.match(/url=(https?)/))&&2==I.length){I=I[1];break a}I=""}c={video_id:E,cpn:M,cpn_style:G,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:I||d.protocol,dimensions:c.clientWidth+" x "+c.clientHeight+(1<z?" * "+z:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.o.Va.Db())+"%",bandwidth_kbps:k.toFixed(0)+" Kbps",live_latency_style:l?"":"display:none",live_latency_seconds_and_class:u.toFixed(0)+
" s, "+p,drm_style:w?"":"display:none",drm:w?t.j+" / "+t.o:""};b.o&&(d=nr(b.o)?"yes":"no",d+=" ("+b.o.id,b.D&&nr(b.o)&&(d+="/"+b.D.id),c.dash=d+")",c.mime=b.o.mimeType,b=b.o.video.fps,1<b&&(c.resolution+="@"+b));b=this.B;f=K5(b,f);b.o.element.innerHTML=f;f=this.C;m=K5(f,m);f.o.element.innerHTML=m;this.update(c);this.D.start()};B(M5,Jq);M5.D="(max-width: 656px)";M5.C="(min-width: 657px)";M5.B="(min-width: 1294px) and (min-height: 630px)";M5.o="(min-width: 1720px) and (min-height: 980px)";M5.A="(min-width: 1320px) and (min-height: 870px)";M5.j="(min-width: 967px)";h=M5.prototype;h.initialize=function(a){this.P=y(a)?window.document.getElementById(a):a;this.j(this.P)};
h.gx=function(){this.J=new ve(0,0,0,0);this.F=new ve(0,0,0,0)};
h.addClass=function(a){$d(this.element,arguments)};
h.jv=function(){this.G&&Iu(this.G);var a=A(this.ef,this);this.G=Hu(a,0)};
h.ef=function(){this.T?this.ig():ue(this.Ma(),ye(this.F))||this.ig()};
h.ig=function(){if(this.o){var a=this.Ma();if(!a.isEmpty()){var b=!ue(a,ye(this.F)),c=N5(this);b&&(this.F.width=a.width,this.F.height=a.height);(c||b||this.X)&&this.O("resize")}}};
h.dF=function(a,b){O5(this,b)};
h.eF=function(a){a.getVideoData()&&O5(this,a.getVideoData())};
h.Ma=function(){var a=this.app.V(),b=this.app.Va.Ja();if(b&&ot())return new te(window.outerWidth,window.outerHeight);if(b||a.nb){if(window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.H&&this.H.media==a||(this.H=window.matchMedia(a)),this.H&&this.H.matches||pt("aquos_dtv")))return new te(window.innerWidth,window.innerHeight)}else if(this.$){if(a.experiments.ma("player_scaling_360p_to_720p")&&this.oa.matches)return new te(this.element.clientWidth,this.element.clientHeight);
if(this.$.matches)return new te(426,240);a=this.app.ga;if((a?this.fa:this.ia).matches)return new te(1280,720);if(a||this.ga.matches)return new te(854,480);if(this.ta.matches)return new te(640,360)}return new te(this.element.clientWidth,this.element.clientHeight)};
h.Dw=function(){this.ig()};
h.S=function(){this.D&&(this.D.disconnect(),this.D=null);this.K&&(this.X?Ti(this.K):this.T||Ji(this.K),this.G&&Iu(this.G));this.C&&this.C.ea();this.o=this.B=this.P=null;M5.M.S.call(this)};B(U5,Av);U5.prototype.K=function(a){this.C&&this.C(a)?this.A=!0:this.o.isActive()?(this.o.stop(),this.B(a),this.A=this.j=!1):(this.D=a,this.o.start(),this.j=!0)};
U5.prototype.G=function(a){this.A?this.A=!1:this.j&&this.B(a)};
U5.prototype.F=function(){this.H(this.D);this.j=!0};aa(W5);var o5=v("yt.player.utils.VideoTagPool.instance_")||W5.getInstance();q("yt.player.utils.VideoTagPool.instance_",o5,void 0);h=W5.prototype;h.Tn=function(a){if(!(this.j.length>=a)){a-=this.j.length;for(var b=0;b<a;b++){var c=X5(this);this.j.push(c)}}};
h.lF=function(a,b){return this.j.length?this.j.pop():X5(this,a,b)};
h.qC=function(a){a&&ib(this.o,a)&&(br(a),Zl(a),ob(this.o,a))};
h.Ds=function(a){return this.j.length>=(a||1)};
h.fv=function(){this.j=[];this.Ds(4)?F(this.o,function(a){a.src||a.load();this.j.push(a)},this):this.Tn(4)};
W5.prototype.fillPool=W5.prototype.Tn;W5.prototype.getTag=W5.prototype.lF;W5.prototype.releaseTag=W5.prototype.qC;W5.prototype.hasTags=W5.prototype.Ds;W5.prototype.activateTags=W5.prototype.fv;B(Y5,Wj);h=Y5.prototype;h.$E=function(a){a=cm(a);if(!re(a,this.A)){var b=2;this.D&&(b|=8);this.A=a;this.cb(b,!0)}};
h.ry=function(){this.D&&this.cb(8,!0);this.cb(2,!1)};
h.Bs=function(a){var b=cm(a);re(b,this.A)||(this.A=b,(a=$l(a))&&this.L(a)&&(this.cb(4,!0),this.j.xa(this.F),this.F=U(this.j,this.B,"mouseout",this.aF)))};
h.aF=function(a){a=bm(a);a&&this.L(a)||(this.A=new qe(window.NaN,window.NaN),this.cb(4,!1),this.j.xa(this.F),this.F=U(this.j,this.B,"mouseover",this.Bs))};
h.ay=function(){this.cb(1,!0)};
h.Xv=function(a){a=$l(a);a instanceof window.Element&&!(0<a.tabIndex)||this.cb(1,!0)};
h.As=function(){this.D=!0;this.j.xa(this.C);this.C=U(this.j,window.document,"mouseup",this.bF)};
h.bF=function(){this.D=!1;this.cb(8,!1);this.j.xa(this.C);this.C=U(this.j,this.B,"mousedown",this.As)};
h.Cs=function(a){if(a=a.changedTouches[0])this.N=a.identifier,this.j.xa(this.G),this.G=U(this.j,this.B,"touchend",this.cF),this.cb(1024,!0)};
h.cF=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.N){b=d;break}}b&&(this.j.xa(this.G),this.G=U(this.j,this.B,"touchstart",this.Cs),this.cb(1024,!1))};
h.cb=function(a,b){this.isDisposed();var c=!this.o;b?(this.o|=a,a&1&&this.H.start(),a&2&&this.J.start(),a&512&&this.K.start()):(this.o&=~a,a&1&&this.H.stop(),a&2&&this.J.stop(),a&512&&this.K.stop());var d=!this.o;c!=d&&this.O("autohideupdate",d)};B(Z5,Fx);Z5.prototype.show=function(){Z5.M.show.call(this);var a=this.L;this.H=new Date;this.J(a,75)};
Z5.prototype.L=function(){var a=1-1/1.5;this.B=(this.B+this.G)%(this.width*a);this.C=(this.C+this.F)%(this.height*a);this.context.drawImage(this.K,-1*this.B,-1*this.C);this.context.fillRect(0,this.D,this.width,75);this.D=(this.D+75+7)%this.height-75};
Z5.prototype.ea=function(){Ii(this.o);Z5.M.ea.call(this)};B(b6,S);b6.prototype.show=function(){b6.M.show.call(this);this.o&&this.o.show()};
b6.prototype.ea=function(){b6.M.ea.call(this);this.o&&this.o.ea()};
b6.prototype.D=function(a){var b=v("yt.www.feedback.showArticle"),c={as3:!1,html5:!0,player:!0,cpn:this.C.getVideoData().clientPlaybackNonce};b(3037019,"player_error",c)||dm(a)};
b6.prototype.S=function(){b6.M.S.call(this)};e6.prototype.isDisposed=function(){return!this.A};
e6.prototype.dispose=function(){g6(this);delete this.A};B(h6,S);B(k6,S);h=k6.prototype;
h.Rl=function(a,b){var c=b.currentTarget;if(!this.B){(0,window.isNaN)(this.C)||(this.C=window.NaN,this.L.style.background="");this.o=c;this.o.addEventListener("mouseout",this.Y);this.J=this.o.getAttribute("title");this.o.removeAttribute("title");this.element.className="ytp-tooltip";if(c=this.o.getAttribute("data-tooltip-image"))this.ga.style.backgroundImage="url("+c+")";N(this.element,"ytp-tooltip-image-enabled",!!c);this.B=a;this.o.removeEventListener("mouseover",l6(this,this.B));1==this.B||2==this.B?
L(this.element,"ytp-bottom"):3==this.B&&L(this.element,"ytp-top");this.F.addEventListener("resize",this.Us,this);this.P&&(n6(this),this.H.show(!1,400))}};
h.wA=function(a){(a=bm(a))&&Af(this.o,a)||this.Ge()};
h.Ts=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=window.NaN;r6(this,c)}};
h.hy=function(){mu(this.K,this.C,96*this.D)};
h.Us=function(){ue(IE(this.F).Ma(),this.da)||this.Ge()};
h.Ge=function(){switch(this.B){case 1:case 3:case 4:this.F.removeEventListener("resize",this.Us,this);this.o.removeEventListener("mouseout",this.Y);this.o.addEventListener("mouseover",l6(this,this.B));this.o.setAttribute("title",this.J);this.J="";this.o=null;break;case 2:this.G&&(this.G=null,this.K.Ba("l",this.Ts,this),this.K=null),this.F.removeEventListener("videoready",this.Ge,this),this.N.stop()}this.B=null;this.P&&this.H.ea()};
h.mg=function(a){for(var b=0;b<arguments.length;b++)arguments[b]==this.B&&this.Ge()};
h.S=function(){null!=this.B&&this.Ge();k6.M.S.call(this)};B(s6,S);s6.prototype.S=function(){this.B&&this.B();s6.M.S.call(this)};
s6.prototype.D=function(){Ui("iv-button-hovered")};
s6.prototype.C=function(){var a=Zd(this.aa.Aa(),"ytp-cards-teaser-shown");Ui("iv-teaser-clicked",a);this.G()};B(t6,Jq);h=t6.prototype;h.show=function(){t6.M.show.call(this);this.oa&&(this.Y=T(this,window,"blur",this.sb),this.da=T(this,window.document,"click",this.QF))};
h.ea=function(){t6.M.ea.call(this);u6(this);this.Y&&(this.xa(this.Y),this.xa(this.da))};
h.ge=function(a){this.H=a;this.ca.show();a&&window.document.activeElement&&Af(a,window.document.activeElement)&&this.focus()};
h.sb=function(){u6(this);this.ca.ea();this.xa(this.Y);this.xa(this.da)};
h.QF=function(a){var b=am(a);b&&(Af(this.element,b)||this.H&&Af(this.H,b)||!yx(a))||this.sb()};B(w6,t6);h=w6.prototype;h.show=function(){w6.M.show.call(this);this.Zg();this.O("show",!0)};
h.ea=function(){w6.M.ea.call(this);1>=this.B.length||(this.C.Ba("back",this.Vd,this),Dq(this.B[this.B.length-1]),x6(this,this.B[0]),this.B=[this.C],this.C.j(this.element),Of(this.C.element,"transform","translateX(0)"),Of(this.C.element,"opacity","1"),this.Zg());this.O("show",!1)};
h.Zg=function(){this.A&&(y6(this),gg(this.element,this.size))};
h.Vd=function(){var a=this.B.pop();A6(this,a,this.B[this.B.length-1],!0)};
h.KC=function(a,b,c){this.G.dispose();this.G=null;B6(this,!0,[a,b]);Of(a.element,"transform","translateX("+c+"px)");Of(a.element,"opacity","0");Of(b.element,"transform","translateX(0)");Of(b.element,"opacity","1");gg(this.element,this.size);this.D=new Wd(oa(this.My,a,b),250,this);this.D.start()};
h.My=function(a,b){B6(this,!1,[a,b]);Dq(a);this.D.dispose();this.D=null};
h.OF=function(a){if(!em(a))switch(fm(a)){case 27:this.sb();dm(a);break;case 37:1<this.B.length&&this.Vd();dm(a);break;case 39:dm(a)}};
h.focus=function(){this.C.focus()};
h.S=function(){w6.M.S.call(this);this.G&&this.G.dispose();this.D&&this.D.dispose()};B(C6,Jq);h=C6.prototype;h.remove=function(a){ob(this.o,a);a.Ba("size-change",this.zl,this);a=sb(this.o);this.Eb(a);this.O("size-change")};
h.removeAll=function(){for(var a=0;a<this.o.length;a++)this.o[a].Ba("size-change",this.zl,this);this.o=[];this.Eb([]);this.O("size-change")};
h.Ev=function(a,b){return b.priority-a.priority};
h.zl=function(){this.O("size-change")};
h.focus=function(){for(var a=0,b=0;b<this.o.length;b++)if("true"==this.o[b].element.getAttribute("aria-checked")){a=b;break}this.o[a].focus()};B(E6,Jq);E6.prototype.C=function(a){Eq(this,"label",a)};B(G6,Jq);G6.prototype.D=function(){this.O("size-change")};
G6.prototype.focus=function(){this.F.focus()};
G6.prototype.J=function(){this.O("back")};B(H6,E6);H6.prototype.o=function(a){em(a)||39!=fm(a)||(this.element.click(),dm(a))};
H6.prototype.C=function(a){H6.M.C.call(this,a);this.O("size-change")};B(J6,w6);h=J6.prototype;h.ea=function(){Cv(this.$);J6.M.ea.call(this)};
h.wy=function(a){yx(a)&&this.o.pauseVideo();this.sb()};
h.Dz=function(a){if("gvn"!=this.o.V().j){var b=am(a);if(!this.A&&(!b||"A"!=b.tagName&&!Jf(b,"ytp-no-contextmenu"))){dm(a);this.element.style.left="";this.element.style.top="";var c=cm(a);c.x++;c.y++;b=ag(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 ve(0,0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;Vf(this.element,ze(b));this.ge();U(this.$,window.document,"contextmenu",this.Mz)}}};
h.Ez=function(){Iq(this.J.element)};
h.Mz=function(a){em(a)||Af(this.element,am(a))||this.sb()};
h.tF=function(a){this.sb();this.j(a?this.o.Aa():window.document.body)};
h.uF=function(){M6(this,this.o.Dm(!0))};
h.vF=function(){M6(this,this.o.Ar())};
h.wF=function(){M6(this,this.o.getVideoUrl(!0,!0))};
h.$z=function(){M6(this,this.o.getVideoUrl(!1,!0))};
h.xF=function(){this.sb()};
h.yF=function(a){var b=this.o,c=rq(b.app);c&&c.kj(new ov("feedback",!1,{gpu:E9(b.app)}));Nx(this.o.V())&&yx(a)&&!v("yt.www.feedback.start")(void 0,{as3:!1,html5:!0,player:!0})&&(this.o.Ja()&&Ox(this.o),dm(a));this.sb()};
h.zF=function(){this.o.Gr();this.sb()};
h.AF=function(a,b){L6(this,b)};B(N6,Uq);h=N6.prototype;h.show=function(){this.A||(U(this.D,this.o,"videodatachange",this.C.Qf,this.C),U(this.D,this.o,"videoplayerreset",this.C.Qf,this.C));N6.M.show.call(this)};
h.ea=function(){Cv(this.D);N6.M.ea.call(this)};
h.CF=function(a){Nx(this.o.V())&&(a=By(a.state)&&!By(a.j)||FH(this.o)&&V(a.state,2),Of(this.element,"transition-delay",a?"2s":""));this.C.Qf()};
h.BF=function(){this.element.style.backgroundImage=""};
h.Hs=function(){3==this.o.getPresentingPlayerType()?this.B.show():O6(this.B,this.o,pz(this.o));this.A&&3!=this.B.j&&this.VC(this.o.bc(),this.o.getVideoData())};
h.VC=function(a){for(var b=this.o.V(),c,d=0;d<arguments.length;d++){var e=arguments[d];if(!(!e||e instanceof Bw&&!e.videoId)){if(!b.isMobile){c=IE(this.o).Ma();var f=c.width,k=c.height;if(900<f||600<k)if(c=e.kc(b,"maxresdefault.jpg"))break;if(430<f||320<k)if(c=e.kc(b,"sddefault.jpg")||e.kc(b,"hqdefault.jpg")||e.kc(b,"mqdefault.jpg"))break}if(c=e.kc(b,"default.jpg"))break}}this.element.style.backgroundImage=c?"url("+c+")":""};B(P6,Av);
P6.prototype.B=function(a){var b=!1,c=fm(a),d=am(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=this.j.V();em(a)?(e=!1,k=!0):l.$a&&(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.A.A&&e&&!f)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:k7(this.A,c),f=!0}l.Ab||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.o+=f,0=="awesome".indexOf(this.o)?(f=!0,7==this.o.length&&(l=this.j.Aa(),m=!Zd(l,"ytp-color-party"),N(l,"ytp-color-party",m))):(this.o=
f,f=0=="awesome".indexOf(this.o)));if(e&&!f){switch(c){case 32:i6(this.G);ty(pz(this.j))?this.j.pauseVideo():this.j.Wc();k=f=!0;break;case 37:this.j.Xc(-5);k=f=!0;break;case 39:this.j.Xc(5);k=f=!0;break;case 38:this.j.setVolume(Math.min(this.j.Db()+5,100));k=f=!0;break;case 40:this.j.setVolume(Math.max(this.j.Db()-5,0));k=f=!0;break;case 27:this.H()&&(k=f=!0);break;case 36:this.j.Tb(0);k=f=!0;break;case 35:this.j.Tb(window.Infinity);k=f=!0;break;case 67:DH(this.j.app.B,"captions")&&(this.j.app.Xf("onCaptionsToggle"),
k=f=!0);break;case 66:R6(this,"background")&&(f=!0);break;case 79:R6(this,"textOpacity")&&(f=!0);break;case 87:R6(this,"windowOpacity")&&(f=!0);break;case 187:R6(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:R6(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.j.Ve(),this.j.Tb(p/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.D(!0);(b||k)&&this.F.cb(2,!0);(f||e&&Q6(this,c,a.shiftKey))&&dm(a);b=this.j;
b.V().gb&&(a={keyCode:fm(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:em(a),fullscreen:b.Ja()},b.app.Hi("onKeyPress",a))};
P6.prototype.C=function(a){this.A.A&&l7(this.A,fm(a))};
P6.prototype.D=function(a){N(this.j.Aa(),"ytp-keyboard-focus",a);N(this.K.element,"ytp-keyboard-focus",a)};B(T6,S);T6.prototype.D=function(a){Nx(this.o.V())&&Of(this.element,"transition-delay",By(a.state)&&!By(a.j)?"2s":"");U6(this,a.state)};B(V6,Jq);V6.prototype.D=function(){var a=this.o.Ve();this.F.style.width=100*S2(new P2(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
V6.prototype.C=function(){this.o.V();2==this.o.getPresentingPlayerType()||W6(this)&&!this.o.Ja()?this.B||(this.show(),this.B=T(this,this.o,"progresssync",this.D),this.D()):this.B&&(this.ea(),this.xa(this.B),this.B=null)};B(X6,S);X6.prototype.C=function(a){Lx(a,this.o)&&this.o.Gm(this.B)};B(Y6,t6);h=Y6.prototype;h.show=function(){Y6.M.show.call(this);this.B.addEventListener("videodatachange",this.nh,this);this.B.addEventListener("onPlaylistUpdate",this.nh,this);this.nh()};
h.ea=function(){Y6.M.ea.call(this);this.B.removeEventListener("videodatachange",this.nh,this);this.B.removeEventListener("onPlaylistUpdate",this.nh,this);Z6(this,null)};
h.nh=function(){Z6(this,this.B.bc());var a=this.o.author;this.update({title:this.o.title,subtitle:R(a?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:a,CURRENT_POSITION:this.o.j+1,PLAYLIST_LENGTH:this.o.A}),playlisturl:this.B.getVideoUrl(!0)});this.Rm()};
h.Rm=function(){var a=this.o.H;if(a==this.F)this.D.element.setAttribute("aria-checked",!1),this.D=this.C[this.o.j];else{for(var b=0;b<this.C.length;b++)this.C[b].dispose();var c=this.o.A;this.C=[];for(b=0;b<c;b++){var d=new X6(this.B,this.o,b);this.C.push(d);d.j(this.J)}this.D=this.C[this.o.j];this.F=a}this.D.element.setAttribute("aria-checked",!0)};
h.PF=function(){this.G()};
h.wB=function(a){var b=this.B.getVideoUrl(!0);Mx(b,this.B,a)};
h.focus=function(){this.D.focus()};
h.S=function(){this.ea();Y6.M.S.call(this)};B($6,S);$6.prototype.B=function(){this.o&&2!=this.F.getPresentingPlayerType()?(this.update({text:R("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.o.j+1,PLAYLIST_LENGTH:this.o.A}),title:R("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.o.title})}),this.A||(this.show(),q6(this.C))):this.A&&(this.ea(),q6(this.C))};
$6.prototype.D=function(){this.o&&this.o.Ba("shuffle",this.B,this);(this.o=this.F.bc())&&this.o.subscribe("shuffle",this.B,this);this.B()};B(a7,S);a7.prototype.D=function(a){Lx(a,this.B)&&(a=this.o.rb().videoId,S9(this.B.app,a,this.o.da,this.o.Ue()),this.C())};B(b7,t6);h=b7.prototype;h.show=function(){b7.M.show.call(this);this.o.addEventListener("videodatachange",this.Sm,this);this.o.addEventListener("presentingplayerstatechange",this.Qs,this);this.Sm()};
h.ea=function(){b7.M.ea.call(this);this.o.removeEventListener("videodatachange",this.Sm,this);this.o.removeEventListener("presentingplayerstatechange",this.Qs,this);this.D=null;this.A&&this.C()};
h.Sm=function(){var a=Q(this.o.getVideoData().G,zx);this.D=a;!a&&this.A&&this.C();for(a=0;a<this.B.length;a++)this.B[a].dispose();this.B=[];for(a=0;a<this.D.length;a++){var b=new a7(this.o,this.D[a],this.C);this.B.push(b);b.j(this.F)}};
h.Qs=function(a){v6(this)&&V(a.state,2)&&this.C()};
h.$F=function(){this.C()};
h.focus=function(){var a=this.B[0];L(this.element,"ytp-scroll-fix");a.focus();ae(this.element,"ytp-scroll-fix")};
h.S=function(){this.ea();b7.M.S.call(this)};B(c7,S);c7.prototype.B=function(){var a=this.o.V().experiments.ma("related_menu")&&2!=this.o.getPresentingPlayerType()&&this.o.getVideoData().G&&!V(pz(this.o),2);N(this.C,"ytp-related-menu-button-visible",a)};
c7.prototype.S=function(){c7.M.S.call(this);ae(this.C,"ytp-related-menu-button-visible")};B(d7,t6);h=d7.prototype;h.IA=function(a){a=am(a);Af(this.L,a)||Af(this.F,a)||this.G()};
h.sb=function(){d7.M.sb.call(this);this.C.mg(4)};
h.show=function(){d7.M.show.call(this);1==this.o.getPlayerState()&&(this.o.pauseVideo(),this.D=!0);this.Rs()};
h.ea=function(){var a=this.A;d7.M.ea.call(this);a&&this.D&&(this.o.Wc(),this.D=!1)};
h.Rs=function(){L(this.element,"ytp-share-panel-loading");ae(this.element,"ytp-share-panel-fail");var a=this.o.getVideoData(),b=this.o.ce(),c=b&&this.K.checked;N(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=this.o.V();e.zb&&(d.authuser=e.zb);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);var f=this.o.V();Gj(f.baseYtUrl+"share_ajax",{context:this,method:"GET",onError:this.cG,kb:function(a,b){b&&b.actions&&V5(b.actions);
this.lB.call(this,0,b)},
Vc:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);Eq(this,"link",a);Eq(this,"linkText",a)};
h.lB=function(a,b){if(!this.isDisposed()){ae(this.element,"ytp-share-panel-loading");e7(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],k=Hfa(f.img);if(k){var l=new S(["a",["ytp-share-panel-service-button","ytp-button"],["span","ytp-share-panel-service-button-icon"],{href:f.url,target:"_blank",title:f.sname}]);l.na["ytp-share-panel-service-button-icon"].innerHTML=k;l.R("click",oa(this.hB,f.url));Lb(l,o6(this.C,l.element));this.B.push(l);d++}}c=new S(["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:R("YTP_MORE")}]);c.na["ytp-share-panel-service-button-icon"].innerHTML=Dh?'<div class="ytp-icon ytp-icon-share-more"></div>':'<svg height="100%" version="1.1" viewBox="0 0 38 38" width="100%"><rect fill="#fff" height="34" width="34" x="2" y="2" /><path d="M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z" fill="#4e4e4f" fill-rule="evenodd" /></svg>';
c.R("click",A(this.vA,this,b.more));Lb(c,o6(this.C,c.element));this.B.push(c);Eq(this,"buttons",this.B)}};
h.cG=function(){ae(this.element,"ytp-share-panel-loading");L(this.element,"ytp-share-panel-fail")};
h.hB=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 Je?d=Le(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((tc()||pc("iPad")||pc("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))mF&&Fa(d,";")&&(d="'"+d.replace(/'/g,"%27")+"'"),c.opener=null,d=wa(d),d=qj(Fe("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+d+'">'),c.document.write(Te(d)),c.document.close()}else c=
c.open(d,f,l);if(d=c)d.opener||(d.opener=window),d.focus();dm(b)}};
h.vA=function(a,b){if(Mx(a,this.o,b)){var c=this.o.app,d=c.getVideoData();c.O("SHARE_CLICKED",{videoId:d.videoId,listId:d.playlistId,feature:"player_"+c.W.ya})}};
h.bG=function(a){!a&&v6(this)&&(this.D=!1,this.G())};
h.focus=function(){this.J.focus()};
h.S=function(){d7.M.S.call(this);e7(this)};B(f7,S);f7.prototype.C=function(){N(this.B,"ytp-share-button-visible",!!this.o.getVideoData().videoId)};
f7.prototype.S=function(){f7.M.S.call(this);ae(this.B,"ytp-share-button-visible")};B(g7,S);h=g7.prototype;
h.Tm=function(){var a=LH(this.B).shader;"Spherical"==a||"Spherical3D"==a?this.A||(a=IE(this.B).B,L(this.B.Aa(),"ytp-webgl-spherical"),this.show(),this.F=new L2(a,!0,null,!0),this.F.subscribe("dragstart",this.Oz,this),this.F.subscribe("dragmove",this.Cp,this),this.F.subscribe("dragend",this.Nz,this),this.D=new L2(this.element,!0),this.D.subscribe("dragstart",this.HA,this),this.D.subscribe("dragend",this.GA,this),this.da=this.R("keydown",this.fG),this.$=this.R("keyup",this.gG),T(this,a,"click",this.eG,
this)):this.A&&(i7(this),ae(this.B.Aa(),"ytp-webgl-spherical"),this.ea(),this.F.dispose(),this.F=null,this.D.dispose(),this.D=null,this.xa(this.da),this.xa(this.$))};
h.HA=function(a,b,c){i7(this);var d=bg(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?h7(this,0<a?-1:1,0,0):h7(this,0,0<b?-1:1,0)};
h.GA=function(){i7(this);this.C=2;this.G.start()};
h.Oz=function(a,b){i7(this);this.P=!1;this.Y=new qe(a,b);L(this.B.Aa(),"ytp-dragging")};
h.Cp=function(a,b){var c=new qe(a,b),d;d=this.Y;d=new qe(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.P=!0);this.Y=c;var c=LH(this.B),e=c.fov,f=Math.PI*e*.8,k=IE(this.B).Ma();d.scale(1/k.width*f,1/k.height*f);j7(this,c.yaw+d.x,c.pitch+d.y,e,c,K())};
h.Nz=function(a,b){this.Cp(a,b);ae(this.B.Aa(),"ytp-dragging");this.C=2;this.G.start()};
h.eG=function(a){this.P&&(a.stopPropagation(),this.P=!1)};
h.dG=function(a){var b=LH(this.B),c=b.yaw,d=b.pitch,e=b.fov;if(1==this.C)var f=.003*e*(a-this.L),c=c+f*this.X,d=d+f*this.T,e=e+f*this.N;else if(2==this.C){if(1E-5>Math.abs(this.K)&&1E-5>Math.abs(this.H)){this.C=this.H=this.K=0;return}f=a-this.L;f/=Math.pow(1.013,f);c+=f*this.K;d+=f*this.H}j7(this,c,d,e,b,a);this.G.start()};
h.fG=function(a){!em(a)&&k7(this,fm(a))&&dm(a)};
h.gG=function(a){l7(this,fm(a))};
h.S=function(){this.D&&(this.F.dispose(),this.F=null,this.D.dispose(),this.D=null);g7.M.S.call(this)};B(m7,S);h=m7.prototype;h.show=function(){m7.M.show.call(this)};
h.ea=function(){this.o.stop();this.C.style.display="none";m7.M.ea.call(this)};
h.hG=function(a){n7(this,a.state)};
h.Wz=function(){n7(this,pz(this.B))};
h.OA=function(){this.C.style.display="block"};B(o7,S);o7.prototype.C=function(){var a=rq(this.o.app);a&&a.o.j.webkitShowPlaybackTargetPicker()};
o7.prototype.B=function(){var a=rq(this.o.app);this.ob(!!a&&a.Za);a=rq(this.o.app);this.element.innerHTML=a&&a.Ya?Dh?'<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>':
Dh?'<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(p7,Jq);p7.B=84;p7.j=10;p7.C=72;p7.o=200;p7.A=.555;h=p7.prototype;h.Jv=function(){q7(this,this.B.getVideoData())};
h.Wv=function(){this.P.ea()};
h.Aj=function(){this.o=Math.floor(this.G/Math.min(p7.j,Math.ceil(this.G/p7.C)));this.X=this.o*p7.A;var a=this.B.Ve(),b=ku(this.D,this.o),b=this.D.j[b].yj(a.current);if(b!=this.T){var c=Math.round(2*this.o),d=Math.round(2*this.X),e=ju(this.H,b,c),c=U2(this.ia,e,c,d,!0);Vf(this.fa,(this.G-c.width)/2);this.element.style.height=Wf(c.height+p7.B,!0);this.T=b}Cf(this.ga,xx(this.$?a.current-a.seekableEnd:a.current));Iu(this.L);a=A(this.aj,this);this.L=Hu(a,void 0);this.Y.nf()};
h.FF=function(a,b){q7(this,b)};
h.aj=function(){ng(this.C,!1);Iu(this.L);var a=this.B.Ve(),b=this.D.j[0].ys(),c=this.D.j[0].Nm(),a=a.current/(a.seekableEnd-a.seekableStart)*(c-b+1)*this.o-this.G/2,d=Math.floor(a/this.o)+b,c=Math.min(d+Math.min(p7.j,Math.ceil(this.G/this.o)),c),d=Math.max(d,b),e;if(this.J>=d&&this.F<=c){for(e=this.J;e>c;e--)sf(this.C.children[e-this.F]);for(e=d-1;e>=this.F;e--)sf(this.C.children[e-this.F]);for(e=this.F-1;e>=d;e--)this.C.insertBefore(r7(this,e),this.C.firstChild);e=this.J+1}else qf(this.C),e=d;for(;e<=
c;e++)this.C.appendChild(r7(this,e));for(e=d;e<=c;e++)Of(this.C.children[e-d],"transform","translatex("+(-a+(e-b)*this.o)+"px)");this.F=d;this.J=c;ng(this.C,!0)};
h.EF=function(){for(var a=this.F;a<=this.J;a++)mu(this.H,a,2*this.o)};
h.DF=function(){var a=IE(this.B).Ma();this.G!=a.width&&(this.G=a.width,this.D&&(this.Aj(),this.aj()))};
h.GF=function(a){this.element.style.bottom=a+"px"};
h.show=function(){p7.M.show.call(this);m6(this.ca,!1)};
h.ea=function(){this.D&&q7(this,null);p7.M.ea.call(this);m6(this.ca,!0)};
h.S=function(){q7(this,null);p7.M.S.call(this)};B(s7,S);h=s7.prototype;h.IF=function(){t7(this,this.o.getVideoData())};
h.JF=function(){this.A||this.D.ea()};
h.LF=function(a){V(a.state,32)||V(a.state,16)||V(a.state,1)||this.D.ea()};
h.MF=function(a,b){t7(this,b)};
h.KF=function(){var a=pz(this.o);(V(a,32)||V(a,16))&&u7(this)};
h.HF=function(){this.F=window.NaN;u7(this)};
h.ea=function(){this.C&&t7(this,null);s7.M.ea.call(this)};B(v7,S);h=v7.prototype;h.NF=function(){this.B.V().Ia?(NH(this.B,this.B.Ja()?"fullscreen_exit":"fullscreen_enter"),Ox(this.B)):this.o&&v6(this.o)?this.o.sb():(this.D.A.cb(16,!0),this.o.ge(this.element))};
h.Yz=function(){w7(this);this.D.A.cb(16,!0);this.o.ge(this.element)};
h.Js=function(){this.ob(Kx(this.B))};
h.Is=function(a){a?(this.element.innerHTML=Dh?'<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=R("YTP_EXIT_FULLSCREEN")):(this.element.innerHTML=Dh?'<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=R("YTP_FULLSCREEN"));Eq(this,"title",this.o?null:a);q6(this.D.o)};
h.S=function(){this.o?this.D.A.cb(16,!1):(this.C(),this.C=null);v7.M.S.call(this)};B(x7,S);x7.prototype.B=function(){var a=this.o.getVideoData(),b=a.T,c=pz(this.o);this.ob(this.o.V().experiments.ma("html5_multicam")&&(ty(c)||V(c,4))&&0<b.length);if(this.A){for(var c=null,d=0;d<b.length;d++)if(b[d].id==a.videoId){c=b[d].title;break}this.update({text:c,preview:a.kc(this.o.V(),"default.jpg")});q6(this.C)}};B(y7,t6);h=y7.prototype;h.show=function(){var a=this.A;y7.M.show.call(this);a||(U(this.C,this.o,"presentingplayerstatechange",this.Qm),U(this.C,this.o,"videodatachange",this.Qm),this.Qm())};
h.ea=function(){Cv(this.C);y7.M.ea.call(this)};
h.Qm=function(){for(var a=this.o.getVideoData(),b=a.T,c=0;c<b.length;c++){var d=this.B[c];d||(d=new S(["button",["ytp-multicam-menu-item","ytp-button"],{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},["div","ytp-multicam-menu-item-title","{{cameraName}}"]]),d.R("click",oa(this.mz,c),this),d.j(this.D),this.B[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=cH(this.o.V(),f,"default.jpg"));d.element.style.backgroundImage=k?"url("+k+")":""}d.update({cameraName:e.title,
videoId:f,selected:f==a.videoId?!0:null})}for(;c<this.B.length;)this.B.pop().dispose();a=pz(this.o);ty(a)||V(a,4)||b.length||!v6(this)||this.F()};
h.mz=function(a){var b=this.o.getVideoData();this.o.sj({videoId:b.T[a].id,title:b.title,start:b.Da?null:this.o.getCurrentTime(),multifeed_metadata_list:b.B.multifeed_metadata_list})};
h.focus=function(){for(var a=this.o.getVideoData(),b=a.T,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.B[c].focus();break}};
h.S=function(){Nb(this.B);y7.M.S.call(this)};B(z7,S);z7.prototype.B=function(){var a=rq(this.o.app);a&&(a=a.o,a.j.webkitSetPresentationMode("picture-in-picture"==a.j.webkitPresentationMode?"inline":"picture-in-picture"))};B(A7,S);var C7={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"};A7.prototype.G=function(a){B7(this,a.state)};
A7.prototype.F=function(){N(this.element,"ytp-play-button-playlist",FH(this.o))};
A7.prototype.H=function(){2==this.C?NH(this.o,"pause"):3==this.C?NH(this.o,"replay"):1==this.C?NH(this.o,"play"):4==this.C&&NH(this.o,"stop");ty(pz(this.o))?this.o.pauseVideo():this.o.Wc()};
A7.prototype.S=function(){this.B&&this.B();A7.M.S.call(this)};B(D7,S);D7.prototype.H=function(){E7(this);this.J&&(this.xa(this.J),this.J=null);this.G=this.o.getVideoData(1);if(this.B=this.o.bc())this.B.subscribe("shuffle",this.H,this),this.J=T(this,this.o,"progresssync",this.N);this.F=F7(this);G7(this);this.ob(FH(this.o)||Ux(this.o.V(),this.G,this.B)&&this.D)};
D7.prototype.T=function(a){NH(this.o,this.D?"next":"previous");var b=!0;this.L?b=Lx(a,this.o):dm(a);b&&(this.D?this.o.oj(!0):this.F?this.o.Tb(0):this.o.pj(!0))};
D7.prototype.N=function(){var a=F7(this);a!=this.F&&(this.F=a,G7(this))};
D7.prototype.S=function(){this.C&&(this.C(),this.C=null);E7(this);D7.M.S.call(this)};B(H7,Jq);h=H7.prototype;h.TF=function(a){if(!em(a)){var b=!1;switch(fm(a)){case 36:this.B.Tb(0);b=!0;break;case 35:this.B.Tb(window.Infinity);b=!0;break;case 34:this.B.Xc(-60);b=!0;break;case 33:this.B.Xc(60);b=!0;break;case 38:this.B.Xc(5);b=!0;break;case 40:this.B.Xc(-5),b=!0}b&&dm(a)}};
h.Ks=function(a,b){I7(this,b,"newdata"==a)};
h.Bw=function(){this.Ks("newdata",bb(this.B.getVideoData()))};
h.SF=function(){P7(this.B.getVideoData())?pz(this.B).Ua()&&Q7(this,!0):Q7(this,!1)};
h.RF=function(a){0<dB(a,64)||!P7(this.B.getVideoData())?Q7(this,!1):ty(a.state)&&0>dB(a,64)&&Q7(this,!0)};
h.WF=function(a,b,c){var d=bg(this.element),e=S7(this).j,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=S2(this.o,Number(c.getAttribute("data-position")),0)*e+bg(this.ab).x);this.za.x=a-d.x;this.za.y=b-d.y;c=S7(this);a=R2(this.o,c.o);d=f||xx(this.Fa?a-this.o.j:a);b=this.nb;c=c.position+this.$a;f=!!f;2!=b.B&&(b.element.className="ytp-tooltip ytp-bottom",b.B=2,b.P&&b.H.show(),e=b.F.getVideoData(),b.G=ax(e),b.G&&(b.K=bx(e),b.K.subscribe("l",b.Ts,b)));b.update({text:d,title:""});N(b.element,"ytp-text-detail",
!!f);d=-1;b.G&&(d=ku(b.G,96*b.D),d=b.G.j[d].yj(a));r6(b,d);p6(b,c,!!f);N(this.ca,"ytp-hover-progress-shown",!V(pz(this.B),64));M7(this)};
h.VF=function(){this.nb.Ge();ae(this.ca,"ytp-hover-progress-shown")};
h.UF=function(a,b){this.C&&(Ji(this.C),this.C=0);this.bb=b;L(this.element,"ytp-drag");(this.ga=ty(pz(this.B)))&&this.B.pauseVideo()};
h.XF=function(){this.da=0;ae(this.element,"ytp-pull-ui");ae(this.element,"ytp-pulling");if(0<this.H){var a=ct(),b=this.H,c=S7(this).position;this.C&&Ji(this.C);this.C=Hq(A(this.Os,this,a,b,c),0)}this.B.Tb(R2(this.o,S7(this).o));ae(this.element,"ytp-drag");this.ga&&!V(pz(this.B),2)&&this.B.Wc()};
h.Os=function(a,b,c){var d;d=(ct()-a)/200;d=1-Math.pow(1-d,3);var e=c+d*(this.G*this.D-c);if(0>d||1<d)d=1;R7(this,(1-d)*b,e,this.G);this.C=1>d?Hq(A(this.Os,this,a,b,c),0):0};
h.YF=function(a,b){var c=!1,d=!1,e=S7(this);3600<=Q2(this.o)&&(R7(this,this.bb-b-10,e.position,e.o),d=!0,c=this.H>.1*(this.J?60:40),e=S7(this));N(this.element,"ytp-pull-ui",d);c&&L(this.element,"ytp-pulling");c=0;e.A&&0>=e.position?c=-1:e.C&&e.position>=e.width&&(c=1);!this.C||c&&c==this.da||Ii(this.C);c&&(this.C=Hq(A(this.Ns,this,ct(),this.P),0));this.da=c;this.B.Tb(R2(this.o,e.o),!1)};
h.Ns=function(a,b){if(this.da){var c=this.D*(this.$-1);this.P=le(b+this.da*(ct()-a)*.3,0,c);L7(this);this.B.Tb(R2(this.o,S7(this).o),!1);0<this.P&&this.P<c&&(this.C=Hq(A(this.Ns,this,a,b),0))}};
h.setPosition=function(a,b,c){this.$a=a;this.D=b;this.J=c;L7(this)};
h.Ms=function(){var a=Eh();this.L.innerHTML=a;a=Eh();this.K.innerHTML=a;L(this.element,"ytp-clip-hover")};
h.Ls=function(){var a=Gh();this.L.innerHTML=a;a=Fh();this.K.innerHTML=a;ae(this.element,"ytp-clip-hover")};
h.Bj=function(){this.X=0;this.T=window.Infinity;O7(this);K7(this,this.G,this.fa)};
h.Ps=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.Y[d]){var e=window.document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.Y[d]=c;this.ia[d]=e;T7(this,c,e);"ytp-chapter-marker"==c.style?this.vb.appendChild(e):this.ub.appendChild(e)}}else V7(this,c)}};
h.ZF=function(a){for(var b=0;b<a.length;b++)V7(this,a[b])};
h.S=function(){this.C&&(Ii(this.C),this.C=0);N7(this,!1);H7.M.S.call(this)};B(W7,S);W7.prototype.C=function(a){X7(this,a.state)};B(Y7,S);
Y7.prototype.o=function(){var a=!1;-1!=this.aa.gh().indexOf("remote")&&(a=1<this.aa.xb("remote","receivers").length);this.ob(a);var b=1;a&&this.aa.xb("remote","casting")&&(b=2);if(this.B!=b)switch(this.B=b,b){case 1:this.element.innerHTML=Dh?'<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=Ch(),this.element.innerHTML=a}};
Y7.prototype.C=function(){NH(this.aa,"remote");if(this.aa.xb("remote","castSelector"))this.aa.Ja()&&Ox(this.aa),this.aa.de("remote","castSelector",!0);else{var a=this.D,b=this.element;v6(a)?a.sb():(u8(a),a.K.open(),a.ge(b))}};B(Z7,E6);Z7.prototype.K=function(){$7(this,!this.o);this.O("select",this.o)};
Z7.prototype.getValue=function(){return this.o};B(a8,Z7);a8.prototype.D=function(){DH(this.aa.app.B,"iv-module")&&3!=this.aa.getPresentingPlayerType()?this.B||(v8(this.F,this),this.B=!0):this.B&&(w8(this.F,this),this.B=!1);$7(this,BK(this.aa.app.B))};
a8.prototype.G=function(a){BK(this.aa.app.B);a?this.aa.nj("iv-module"):this.aa.Ir("iv-module")};B(b8,E6);h=b8.prototype;h.open=function(){z6(this.o,this.P)};
h.Jc=function(a){if(this.J){var b=this.B[this.J];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.B[a].element.setAttribute("aria-checked",!0);this.Eb(this.yc(a));this.O("size-change");this.J=a};
h.Jb=function(a){this.Jc(a);this.O("select",a)};
h.FA=function(a){"true"!=this.B[a].element.getAttribute("aria-disabled")&&this.Jb(a)};
h.yc=function(a){return a.toString()};
h.aG=function(a){em(a)||39!=fm(a)||(this.open(),dm(a))};
h.S=function(){b8.M.S.call(this);for(var a in this.B)this.B[a].dispose()};B(d8,b8);d8.prototype.H=function(){var a=this.aa.Jr();1<a.length?(c8(this,Q(a,this.F)),this.L=Ib(a,this.F,this),this.K.Eb(a.length?" ("+a.length+")":""),this.Jc(this.F(this.aa.ag())),this.D||(v8(this.o,this),this.D=!0)):this.D&&(w8(this.o,this),this.D=!1)};
d8.prototype.Jb=function(a){d8.M.Jb.call(this,a);this.aa.Im(this.L[a]);this.o.Vd()};
d8.prototype.F=function(a){return a.toString()};B(e8,Z7);e8.prototype.D=function(){if(1==this.aa.getPresentingPlayerType()&&Ux(this.aa.V(),this.aa.getVideoData(),this.aa.bc()))this.F||(v8(this.H,this),this.F=!0,this.B.push(T(this,this.aa,"videodatachange",this.D)),this.B.push(T(this,this.aa,"videoplayerreset",this.D)),this.B.push(T(this,this.aa,"onPlaylistUpdate",this.D)),this.B.push(T(this,this.aa,"autonavchange",this.G)),this.G(this.aa.getVideoData().Fd));else if(this.F){w8(this.H,this);this.F=!1;for(var a=0;a<this.B.length;a++)this.xa(this.B[a])}};
e8.prototype.G=function(a){$7(this,1!=a)};
e8.prototype.J=function(a){this.aa.app.O("onAutonavChangeRequest",1!=(a?2:1))};B(f8,b8);f8.prototype.F=function(){if(1==this.aa.getPresentingPlayerType()){for(var a={},b=e2(rq(this.aa.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.L=a;a=this.aa.zr();if(b=!this.aa.V().experiments.ma("disable_missing_qualities"))b=this.aa.getVideoData().o,b=!!b&&!nr(b);b&&(b=this.aa.getVideoData(),b=!!(b.adaptiveFormats||b.hlsFormats||b.F));b&&a.unshift("missing-qualities");c8(this,a);if(a.length){this.H();this.D||(v8(this.o,this),this.D=!0);return}}this.D&&(w8(this.o,this),this.D=!1)};
f8.prototype.H=function(){var a=JH(this.aa);this.B[a]&&(this.K=this.aa.mj(),this.Jc(a),"auto"==a&&this.Eb(this.yc(a)))};
f8.prototype.Jb=function(a){"missing-qualities"!=a&&(f8.M.Jb.call(this,a),this.aa.qj(a),this.o.sb())};
f8.prototype.yc=function(a,b){if("missing-qualities"==a)return["a",{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},R("YTP_MISSING_FORMATS")];var c=["div",null,g8(this,a)],d=JH(this.aa);b||"auto"!=d||"auto"!=a||(c.push(" "),c.push(g8(this,this.K,["ytp-menu-label-secondary"])));return c};B(h8,b8);h8.prototype.H=function(){var a=-1!=this.aa.gh().indexOf("remote")?this.aa.xb("remote","receivers"):[];1<a.length&&!this.aa.xb("remote","castSelector")?(this.K=Ib(a,this.F,this),c8(this,Q(a,this.F)),a=this.aa.xb("remote","currentReceiver"),this.Jc(this.F(a)),this.D||(v8(this.o,this),this.D=!0)):this.D&&(w8(this.o,this),this.D=!1)};
h8.prototype.F=function(a){return a.key};
h8.prototype.yc=function(a){return this.K[a].name};
h8.prototype.Jb=function(a){h8.M.Jb.call(this,a);this.aa.de("remote","currentReceiver",this.K[a]);this.o.sb()};B(i8,b8);h=i8.prototype;h.wk=function(a){return a.toString()};
h.yc=function(a){return"1"==a?R("YTP_NORMAL_SPEED"):a.toString()};
h.Ss=function(){this.aa.V().T&&1==this.aa.getPresentingPlayerType()?this.D||(v8(this.o,this),this.D=!0,this.F=T(this,this.aa,"onPlaybackRateChange",this.MA),c8(this,Q(this.aa.lj(),this.wk)),this.Jc(this.wk(this.aa.app.U))):this.D&&(w8(this.o,this),this.D=!1,this.xa(this.F),this.F=null)};
h.MA=function(a){this.Jc(this.wk(a))};
h.Jb=function(a){i8.M.Jb.call(this,a);this.aa.rj((0,window.parseFloat)(a));this.o.Vd()};B(j8,b8);j8.prototype.Jc=function(a){j8.M.Jc.call(this,a)};
j8.prototype.F=function(a){return a.option.toString()};
j8.prototype.yc=function(a){return k8(this.D[a])};
j8.prototype.Jb=function(a){j8.M.Jb.call(this,a);this.O("settingChange",this.H,this.D[a].option)};B(l8,G6);l8.prototype.H=function(a,b){this.O("settingChange",a,b)};
l8.prototype.focus=function(){this.o.focus()};B(n8,b8);n8.prototype.F=function(a){return a.languageCode};
n8.prototype.yc=function(a){return this.D[a].languageName||""};
n8.prototype.Jb=function(a){this.O("select",a);a=this.o;var b=a.B.pop(),c=a.B[0];a.B=[c];A6(a,b,c,!0)};B(o8,b8);h=o8.prototype;h.Vm=function(a){return cc(a)?"__off__":a.displayName};
h.yc=function(a){return"__off__"==a?R("YTP_LANGUAGE_OFF"):"__translate__"==a?R("YTP_AUTO_TRANSLATE"):"__contribute__"==a?R("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.D[a]).displayName};
h.Jb=function(a){if("__translate__"==a)this.H.open();else if("__contribute__"==a){this.aa.pauseVideo();this.aa.Ja()&&Ox(this.aa);a=this.aa.V();var b=this.aa.getVideoData();Jx(a.baseYtUrl+"timedtext_video?v="+b.videoId)}else this.aa.de("captions","track","__off__"==a?{}:this.D[a]),o8.M.Jb.call(this,a),this.o.Vd()};
h.HC=function(){z6(this.o,this.F)};
h.oh=function(){var a=-1!=this.aa.gh().indexOf("captions"),b=this.aa.getVideoData().Ha;if(a||b){var c,d;if(a){var e;e=this.aa.xb("captions","track");var f=this.aa.xb("captions","tracklist",{includeAsr:!0}),k=this.aa.xb("captions","translationLanguages"),l=this.aa.xb("captions","displaySettings");p8(l);this.D=Ib(f,this.Vm,this);c=Q(f,this.Vm);if(k.length){d=this.H;var m=k;d.D=Ib(m,d.F,d);c8(d,Q(m,d.F));c.push("__translate__")}d=this.Vm(e)}else this.D={},c=[],d="__off__";c.unshift("__off__");this.D.__off__=
{};b&&c.unshift("__contribute__");this.D[d]||(this.D[d]=e,c.push(d));c8(this,c);this.Jc(d);a?(m8(this.F,l),this.K.Eb(f.length?" ("+f.length+")":""),a&&k.length&&this.B.__translate__.element.setAttribute("aria-disabled",!!cc(e))):this.K.Eb("");this.L||(v8(this.o,this),this.L=!0)}else this.L&&(w8(this.o,this),this.L=!1)};
h.BB=function(a){var b=this.aa.xb("captions","track"),b=gc(b);b.translationLanguage=this.H.D[a];this.aa.de("captions","track",b)};
h.nG=function(a,b){var c={};switch(a){case "fontFamily":c.fontFamilyOption=q8[b];break;case "charEdgeStyle":c.charEdgeStyle=r8[b];break;default:c[a]=b}c=GH(this.aa,c);p8(c);m8(this.F,c)};B(s8,b8);var Pga={0:"YTP_THREED_VIEWMODE_2D",1:"YTP_THREED_VIEWMODE_ANAGLYPH"};s8.prototype.yc=function(a){return R(Pga[(0,window.parseInt)(a,10)])};
s8.prototype.H=function(){var a=LH(this.aa);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.D||(this.F=a.shader,v8(this.o,this),this.D=!0,c8(this,[(0).toString(),(1).toString()])),a=a.displayMode,void 0!=a&&this.Jc(a.toString())):this.D&&(w8(this.o,this),this.D=!1)};
s8.prototype.Jb=function(a){s8.M.Jb.call(this,a);MH(this.aa,{shader:this.F,displayMode:a});this.o.Vd();a=this.aa;var b=LH(a);a.app.Oa("webglsettingschanged",b)};B(t8,w6);t8.prototype.ge=function(a){u8(this);0<this.o.o.length&&t8.M.ge.call(this,a)};
t8.prototype.show=function(){t8.M.show.call(this)};B(x8,S);x8.prototype.D=function(a){NH(this.aa,"settings");this.B.A?this.B.sb():(this.aa.nj("captions"),this.B.ge($l(a)))};
x8.prototype.C=function(a){Eq(this,"pressed",a)};
x8.prototype.o=function(){var a=1==this.aa.getPresentingPlayerType(),b=LH(this.aa),c=a&&("Anaglyph3D"==b.shader||"Spherical3D"==b.shader),b=c&&0==(0,window.parseInt)(b.displayMode,10),a=c||!a?null:this.aa.mj();N(this.element,"ytp-hd-quality-badge","hd720"==a||"hd1080"==a||"hd1440"==a);N(this.element,"ytp-4k-quality-badge","hd2160"==a);N(this.element,"ytp-5k-quality-badge","hd2880"==a);N(this.element,"ytp-8k-quality-badge","highres"==a);N(this.element,"ytp-3d-badge-grey",c&&b);N(this.element,"ytp-3d-badge",
c&&!b)};B(y8,S);y8.prototype.F=function(){NH(this.o,this.o.app.ga?"size_small":"size_large");var a=this.o.app,b=!a.ga;f$(a,!0,b);a.O("SIZE_CLICKED",b)};
y8.prototype.B=function(){this.ob(this.o.app.vb&&!this.o.Ja()&&3!=this.o.getPresentingPlayerType());if(this.A){var a=this.o.app.ga;if(this.C!=a){this.C=a;if(this.o.V().U)this.element.innerHTML=a?Dh?'<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>':
Dh?'<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-47" /></defs><use class="ytp-svg-shadow" xlink:href="#ytp-svg-47" /><use class="ytp-svg-fill" xlink:href="#ytp-svg-47" /></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=Px(ia(this),b,c);this.element.innerHTML=b}a=a?R("YTP_DEFAULT_VIEW"):R("YTP_THEATER_MODE");Eq(this,"title",a);q6(this.D)}}};B(z8,S);z8.prototype.C=function(){NH(this.o,"subtitles");this.o.app.Xf("onCaptionsToggle")};
z8.prototype.B=function(){var a=!!DH(this.o.app.B,"captions");this.ob(a);a&&Eq(this,"pressed",!!this.o.xb("captions","track").displayName)};B(B8,S);h=B8.prototype;h.ph=function(){this.ob(!this.C||!V(pz(this.B),64));var a=this.B.Ve(),b=xx(a.current);this.G!=b&&(Eq(this,"currenttime",b),this.G=b);a=xx(a.duration);this.H!=a&&(Eq(this,"duration",a),this.H=a)};
h.pG=function(a){if(this.F!=a){this.F=a;this.ph();var b=this.D.element;(b.disabled=a)?this.o&&(this.o(),this.o=null,b.removeAttribute("title")):(b.title=R("YTP_GOTO_LIVE_TOOLTIP"),this.o=o6(this.J,this.D.element,1))}};
h.qG=function(a,b){this.C=b.Da;N(this.element,"ytp-live",this.C);this.ph()};
h.oG=function(a){a.target==this.D.element?(NH(this.B,"live"),this.B.Tb(window.Infinity),this.B.Wc()):NH(this.B,"time")};
h.S=function(){this.o&&this.o();B8.M.S.call(this)};B(C8,S);
var Qga=["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"],Rga=["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"],Sga=["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"],Tga=["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=C8.prototype;h.sB=function(a){if(!em(a)){var b=fm(a),c=null;37==b?c=this.B-5:39==b?c=this.B+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=le(c,0,100),0==c?this.o.mute():(this.o.uc()&&this.o.unMute(),this.o.setVolume(c)),dm(a))}};
h.sG=function(a){dm(a);(a=gm(a||window.event,!0)||-gm(a||window.event,!1))&&this.o.setVolume(this.B+le(a/20,-10,10))};
h.xA=function(){this.o.uc()?(NH(this.o,"unmute"),this.o.unMute()):(NH(this.o,"mute"),this.o.mute())};
h.rB=function(){NH(this.o,"volume");this.ca=!0;this.ia=this.B;L(this.element,"ytp-volume-slider-active");this.o.uc()&&this.o.unMute()};
h.qB=function(a){a-=bg(this.fa).x;a=100*le(a/(this.Y?78:52),0,1);if(this.F&&this.H.paused&&this.J.paused){var b=Math.abs(a-this.B);8<b?this.H.play():5<b&&this.J.play()}this.o.setVolume(a)};
h.pB=function(){this.ca=!1;ae(this.element,"ytp-volume-slider-active");0==this.B&&(this.o.setVolume(this.ia),this.o.mute());this.F&&!this.T&&(this.C.pause(),this.G.play())};
h.uG=function(a){D8(this,a.volume,a.muted)};
h.Ws=function(a){a=E8(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=le(2*a,0,1);b.push(F8(Qga,Rga,c),1);(c=le(2*(a-.5),0,1))&&b.push(F8(Sga,Tga,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.D.element.innerHTML=c+"</svg>";this.K!=a&&this.$.start()};
h.tG=function(){this.o.getVideoData().K?this.F||(this.L=H8(this,"activate.mp3"),this.G=H8(this,"deactivate.mp3"),this.C=H8(this,"active.mp3",!0),this.H=H8(this,"swing_fast.mp3"),this.J=H8(this,"swing_slow.mp3"),this.F=!0,G8(this)):this.F&&(sf(this.L),this.L=null,sf(this.G),this.G=null,sf(this.C),this.C=null,sf(this.H),this.H=null,sf(this.J),this.J=null,this.P.stop(),this.F=!1)};
h.ev=function(){this.L.play();this.C.play()};B(J8,S);J8.prototype.B=function(){var a=!!this.o.getVideoData().videoId;this.ob(a);a&&Eq(this,"url",this.o.getVideoUrl(!0))};
J8.prototype.C=function(a){NH(this.o,"youtube");var b=this.o.getVideoUrl(!yx(a),!1,!0);Mx(b,this.o,a)};B(K8,Av);h=K8.prototype;h.mG=function(){L(this.o.element,"ytp-volume-control-hover");this.aa.getVideoData().K&&I8(this.o,!0)};
h.lG=function(){ae(this.o.element,"ytp-volume-control-hover");this.aa.getVideoData().K&&I8(this.o,!1)};
h.kG=function(){L8(this)&&this.T.start()};
h.Cj=function(a){if(this.L.o){if(a||this.aa.V().experiments.ma("smooth_progress_bar")){a=this.C;J7(a);var b=a.B.getCurrentTime();(b<a.X||b>a.T)&&a.Bj();this.P.ph()}L8(this)&&this.T.start()}};
h.iG=function(){this.Cj(!0)};
h.jG=function(a){a&&window.document.activeElement==this.D.element&&this.aa.Aa().focus();this.Um()};
h.WC=function(){m6(this.B.o,!this.j.A)};
h.Um=function(){var a=KE(this.B),b=IE(this.aa).Ma(),c=12*(a?2:1),d=Math.max(b.width-2*c,100);if(this.U!=b.width||this.N!=a){this.U=b.width;this.N=a;var e=Math.max(b.width-2*c,100);this.A.element.style.width=e+"px";this.A.element.style.left=c+"px";this.C.setPosition(c,e,a);var f=this.B.o;f.T=c;f.X=d;c=this.o;c.Y=a;D8(c,c.o.Db(),c.o.uc());N(this.aa.Aa(),"ytp-tiny-mode",200>e)}e=this.j;b=Math.min(250*(a?1.5:1),Math.round(.6*(b.height-(KE(this.B)?72:50))));e.ga=Math.min(350*(a?1.5:1),d);e.ia=b;e.Zg()};
h.QC=function(){W8(this.B,this.H,this.K)};B(N8,S);N8.prototype.J=function(a){NH(this.o,"title");var b=this.o.getVideoUrl(!yx(a),!1,!0);Mx(b,this.o,a)};
N8.prototype.H=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&&Mw.test(b)&&P8(this,a,c,d,b))};
N8.prototype.C=function(){O8(this);var a=this.o.getVideoData();Eq(this,"title",a.title);!this.o.V().B&&a.videoId?(Eq(this,"url",this.o.getVideoUrl(!0)),this.B||(this.B=T(this,this.G,"click",this.J))):this.B&&(Eq(this,"url",null),this.xa(this.B),this.B=null)};B(Q8,S);h=Q8.prototype;h.Gy=function(){this.B=!0;this.o=!1;R8(this,1)};
h.vG=function(){NH(this.C,"watchlater");var a=this.C.getVideoData().videoId;if(!this.o){this.o=!0;R8(this,3);S8(this);var b=this.C.app,c=!this.B;(c?Ffa:Gfa)({videoIds:a,zb:b.W.zb,pageId:b.W.pageId,onError:b.XB,kb:c?b.WB:b.YB,context:b},b.W.baseYtUrl,!0)}};
h.wG=function(a){this.o=!1;R8(this,4);S8(this,a)};
h.$A=function(){this.o=this.B=!1;R8(this,2)};
h.xG=function(){this.o=this.B=!1;R8(this,2);S8(this)};
h.S=function(){Q8.M.S.call(this);ae(this.F,"ytp-watch-later-button-visible")};B(T8,S);T8.prototype.C=function(){this.B.getVideoData().videoId?(Eq(this,"url",this.B.getVideoUrl(!0)),this.o||(this.o=this.R("click",this.D))):this.o&&(Eq(this,"url",null),this.xa(this.o),this.o=null)};
T8.prototype.D=function(a){var b=this.B.getVideoUrl(!yx(a),!1,!0);Mx(b,this.B,a)};B(U8,Av);h=U8.prototype;h.Es=function(a,b){this.fa!=b.videoId&&(this.fa=b.videoId,this.A.cb(512,!0),this.Yg());var c=this.j.Aa();N(c,"ytp-project-beyond",!!b.K);N(c,"ytp-project-beyond-light",1==b.K);N(c,"ytp-project-beyond-dark",2==b.K)};
h.RA=function(){this.Es(0,bb(this.j.getVideoData()))};
h.Fs=function(){W8(this,this.ga,this.Y)};
h.Zq=function(){W8(this,this.ia,this.T)};
h.ar=function(){W8(this,this.ha,this.X)};
h.Tf=function(){var a=!JE(this);a?(this.oa.show(),this.ta.show(),Oy(this.j)&&this.F.o.show()):(this.oa.ea(),this.ta.ea(),this.F.o.ea(),this.o.mg(3));N(this.j.Aa(),"ytp-menu-shown",!a);var b=this.P,c=!a;(b.C=c)?b.ea():O6(b.B,b.o,pz(b.o));this.B&&M8(this.B,!a)};
h.pF=function(a){if(this.B&&!Af(this.B.A.element,a)&&!Af(this.D.element,a))return!1;for(;!a||!Ef(a);){if(!a||a==this.j.Aa())return!1;a=yf(a)}return!0};
h.qF=function(a){var b=this.j.Aa();N(b,"ytp-autohide",a);a&&(this.o.mg(1,3),ae(b,"ytp-touch-mode"));b=this.j;a=!a;b.app.Oa("onVideoAreaChange");b.app.Oa(a?"onShowControls":"onHideControls")};
h.eB=function(a){this.j.V();this.A.o||Y8(this,a)||X8(this,am(a))||dm(a);this.A.cb(2,!0);L(this.j.Aa(),"ytp-touch-mode")};
h.Yp=function(a){if(X8(this,am(a)))return!0;this.A.cb(2,!0);return this.Sn()?!0:!1};
h.Zp=function(a){X8(this,am(a));var b=pz(this.j);V(b,2)&&EH(this.j)||Y8(this,a)||(i6(this.L),ty(b)?this.j.pauseVideo():(this.j.Wc(),window.document.activeElement==this.P.element&&this.j.Aa().focus()))};
h.dB=function(a){X8(this,am(a))||"3"!=this.j.V().A&&3!=this.j.getPresentingPlayerType()&&Ox(this.j)};
h.rF=function(a){var b=this.j.Aa();a?b.parentElement?(b.setAttribute("aria-label",R("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.ca.element,b),b.parentElement.insertBefore(this.da.element,b.nextSibling)):Ki(Error("Player not in DOM.")):(b.setAttribute("aria-label",R("YTP_PLAYER_NORMAL")),Dq(this.ca),Dq(this.da));this.Pm();this.Yg()};
h.Pm=function(){var a=KE(this),b=IE(this.j).Ma(),c=this.j.Ja(),d=this.j.Aa();this.o.D=a?1.5:1;N(d,"ytp-fullscreen",c);N(d,"ytp-small-mode",480>b.width);N(d,"ytp-big-mode",a);N(this.G.element,"ytp-big-mode",a);this.C&&(a=this.C,a.o&&$5(a.o,b.width,b.height))};
h.sF=function(a){V8(this,a.state);this.Yg();this.dr()};
h.Yg=function(){var a=!this.j.getVideoData().isListed&&2==this.j.getPresentingPlayerType(),a=!!this.fa&&!CH(this.j)&&!a&&(2==this.j.getPresentingPlayerType()||this.j.V().Fa||this.j.Ja());this.Ha!=a&&(this.Ha=a,N(this.j.Aa(),"ytp-hide-info-bar",!a),a||(this.o.mg(3),v6(this.Y)&&this.Fs(),v6(this.T)&&this.Zq(),v6(this.X)&&this.ar()))};
h.dr=function(){var a=Oy(this.j),b=a&&PH(this.j);b!=this.K&&(this.K=b,this.Tf(),b&&(b=this.N,b=b.A&&3!=b.G.j),b&&this.N.zj());b=pz(this.j);(a=a&&!V(b,2))&&!JE(this)?this.F.o.show():(b=this.F,b.A&&3!=b.o.j&&this.F.o.ea());N(this.D.element,"ytp-cards-available",a)};
h.Yq=function(){this.K?this.j.hh(!1):this.j.hh(!0)};
h.Sn=function(){if(this.G.A)return this.G.sb(),!0;var a;if(a=this.B){a=this.B;var b=a.D;b.o&&v6(b.o)?(a.D.o.sb(),a=!0):a.j.A?(a.j.sb(),a=!0):a=!1}return a?!0:this.H?(W8(this,this.$,this.H),!0):this.K?(this.Yq(),!0):CH(this.j)?(U9(this.j.app,!0),!0):!1};
h.EC=function(a){this.A.cb(64,a);this.La=a;this.Gs();N(this.j.Aa(),"ytp-settings-shown",a)};
h.Gs=function(){var a=this.La||this.G.A;this.Ca!=a&&(this.Ca=a,this.j.app.O("onAutonavPauseRequest",this.Ca))};
h.Yv=function(){Z8(this,this.j.Aa(),!0).focus()};
h.Zv=function(){Z8(this,this.j.Aa(),!1).focus()};var a9=[];$8.prototype.oc=function(){return r.JSON&&r.JSON.stringify?r.JSON.stringify(this.j):fe(this.j)};
$8.prototype.toString=function(){return this.j.toString()};
$8.prototype.getExtension=function(a){if(this.o){this.A||(this.A={});var b=a.o;if(a.A){if(a.j)return this.A[b]||(this.A[b]=Q(this.o[b]||[],function(b){return new a.j(b)})),this.A[b]}else if(a.j)return!this.A[b]&&this.o[b]&&(this.A[b]=new a.j(this.o[b])),this.A[b];
return this.o[b]}};B(b9,$8);var Kfa=[241];b9.prototype.getStatus=function(){return Z(this,59)};
b9.prototype.setVideoId=function(a){175<this.B?this.j[174]=a:this.o[175]=a};var Lfa={legacy_config:!0,player_response:!0,polymer_player_response:!0},d9={baseurl:"baseUrl",focenabled:"focEnabled",loaderurl:"loaderUrl",rmktenabled:"rmktEnabled",ytfocenabled:"ytfocEnabled",ytfochistoryenabled:"ytfocHistoryEnabled",suggestedquality:"suggestedQuality"};B(c9,Wj);c9.D="defaultcontext";c9.j={};c9.A="appapi";c9.o="appad";c9.create=function(a,b){try{var c=c9.C(a);if(c9.j[c]){try{c9.j[c].dispose()}catch(e){Ki(e)}c9.j[c]=null}var d=new c9(a,b);Lb(d,function(){c9.j[c]=null});
return c9.j[c]=d}catch(e){throw Ki(e),e.stack;}};
c9.B=function(a,b){Zu("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=v("ytplayer.config");c=c9.create(c,d);d.loaded=!0;return c};
c9.C=function(a){return y(a)?a:"player"+ia(a)};
h=c9.prototype;h.Ry=function(){x9(this)||v9(this,5)};
h.NA=function(a){x9(this)||(a$(this),ty(a.getPlayerState())&&this.Se())};
h.Nq=function(a){var b=this.D.element;N(b,"ytp-ad-overlay-open",a);N(b,"ytp-ad-overlay-closed",!a)};
h.Oa=function(a,b){this.O.apply(this,arguments);this.Xf.apply(this,arguments)};
h.Jf=function(a,b){var c=sb(arguments);this.W.gb&&this.C&&c.push(this.C.N);this.O.apply(this,c)};
h.canPlayType=function(a){return!!xt().canPlayType(a)};
h.V=function(){return this.W};
h.getVideoData=function(){return this.C.getVideoData()};
h.gj=function(){var a=dH(this.W);pa(a,DK(this.B));this.F&&pa(a,this.F.kh());a.fs=this.L.Ja();a.volume=Math.round(this.Va.Db());a.mos=this.Va.uc()?1:0;return a};
h.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.G.getCurrentTime():(a=rq(this,a))?a.getCurrentTime():0};
h.getPresentingPlayerType=function(){var a;if(a=this.G)a=this.G,a=!!a.o&&!!a.A;return a?3:rq(this).N};
h.BD=function(a){var b=a.target;switch(a.type){case "loadedmetadata":this.H.o("fvb",void 0);this.bb.start();break;case "loadstart":this.H.o("gv",void 0);break;case "progress":case "timeupdate":2<=ly(b.buffered)&&this.H.o("l2s",void 0)}};
h.kA=function(a,b){this.Jf("onLoadProgress",b)};
h.tB=function(){this.Jf("playbackstalledatstart")};
h.RB=function(a,b){this.Jf("onVideoProgress",b)};
h.xD=function(){WH(this.Va)};
h.Ty=function(a){!this.W.experiments.ma("disable_live_head_slowdown")&&0<dB(a,1)&&!V(a.state,64)&&i5(this).Da&&c2(this.j)&&1<this.U&&y9(this,1);if(0<dB(a,2)){var b;this.o&&("embedded"==this.W.ya||this.L.Ja())&&cy(this)?(V9(this),b=!0):b=!1;!b&&SG(this.W)&&L1(this.j).webkitExitFullScreen&&L1(this.j).webkitExitFullScreen()}V(a.state,128)&&(b=a.state,P9(this),b=b.j,this.O("onError",D$[b.errorCode]||5),this.O("onDetailedError",b));this.O("applicationplayerstatechange",a);V(a.state,2)&&(a=this.getVideoData(),
a.isLiveDefaultBroadcast&&M9(this,{videoId:a.videoId,livemonitor:a.Bf}))};
h.wD=function(a){!V(a.state,32)&&0>dB(a,16)&&(!V(a.state,8)||V(a.state,64)||this.A.ended||V(a.state,2)||this.Se());this.O("presentingplayerstatechange",a);this.Xf("onStateChange",a);w9(this,Dy(a.state));J9(this)};
h.Qy=function(a){"newdata"==a&&G9(this)};
h.Vy=function(a,b){var c=this.C.getVideoData();a==c&&this.Oa("onPlaybackAudioChange",A9(this).Ib.name,b)};
h.AD=function(a,b,c){"newdata"==a?o9(this,b):p9(this,a,b,c)};
h.PB=function(a,b){var c=this.C.getVideoData();a==c&&(this.Oa("onPlaybackQualityChange",a.o.video.quality,b),J9(this))};
h.ak=function(){h9(this,null);this.Oa("onPlaylistUpdate")};
h.up=function(a){var b=a.getId(),c=i5(this);if("part2viewed"==b)c.he&&dq(c.he),c.Sa&&dq(c.Sa);else if("conversionview"==b){var d=this.j;d.A&&bB(d.A)}else"engagedview"==b&&dq(c.ta);c.za&&(d=a.getId(),d=wj(c.za,{label:d}),dq(d));switch(b){case "videoplaytime25":c.xd&&dq(c.xd);dq(c.Mj);break;case "videoplaytime50":c.yd&&dq(c.yd);dq(c.Zu);break;case "videoplaytime75":c.zd&&dq(c.zd);dq(c.av);break;case "videoplaytime100":c.wd&&dq(c.wd),dq(c.Lj)}(b=this.getVideoData().oe)&&b[a.getId()]&&(b=b[a.getId()],
c=C(D(b))?!1:ega.test(b)||dga.test(b),dq(b,void 0,c));this.j.D.bh(a)};
h.Yf=function(a,b,c,d){b=0!=b;if(d=rq(this,d))2==this.J&&k9(this),R1(d,a,b,c)};
h.zD=function(a,b){var c=a.getVideoData();if(1==this.J||2==this.J)c.startSeconds=b;2==this.J?k9(this):this.Oa("seekto",b)};
h.Hy=function(){this.O("airplayactivechange")};
h.Iy=function(){this.O("airplayavailabilitychange")};
h.sD=function(){this.Oa("beginseeking")};
h.tD=function(){this.Oa("endseeking")};
h.Op=function(){var a=this.o.rb(),b=this.getVideoData();b.Gg||!this.Y?(b=b.Zf,a=N9(this,a),b&&Q9(this,a)):a&&R9(this,a)};
h.Oy=function(a){this.O("onCueRangeEnter",a.getId())};
h.Py=function(a){this.O("onCueRangeExit",a.getId())};
h.Sy=function(){this.$||(this.$=Wu(this.yp,this));D_(this.H,$9(this));if(!this.ab&&"detailpage"==this.W.ya){this.ab=!0;var a=this.j;if(a.$&&a.$.j){var b={},c={};a.j.videoId&&(b.docid=a.j.videoId);a.j.playbackId&&(b.plid=a.j.playbackId);b.cpn=a.j.clientPlaybackNonce;b.ad_cpn=a.$.j;var d=K()-a.$.o;a.$.A?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=Ei("TIMING_INFO",{});"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);mv(a)}}this.W.experiments.A&&cy(this)&&(b=this.o.rb(sx(this.o)))&&O9(this,b)};
h.yp=function(a){a=a.j;if(!(0,window.isNaN)(a)&&0<a&&this.j){var b=this.j;b.A&&0<a&&(b.A.o.A.aft=[a])}};
h.Kp=function(a){"remote"==a?(2==this.J&&k9(this),v9(this,6),t9(this,this.F)):this.xl()};
h.Lp=function(a){"remote"!=a||x9(this)||(this.Se(),this.pauseVideo());this.xl()};
h.xl=function(){this.Jf("onApiChange")};
h.sA=function(){var a={volume:100*this.A.volume,muted:this.A.muted};this.T=gc(a);this.Oa("onVolumeChange",a)};
h.Xz=function(){b$(this,Oh()?1:0)};
h.yD=function(){if(this.A){var a=!1;if(0!=this.A.readyState&&this.C){var b=new te(this.A.videoWidth,this.A.videoHeight),c=this.getVideoData();ue(c.ne,b)||(c.ne=b,a=!0)}b=HE(this.D);xe(this.nb,b)||(this.nb=b,a=!0);a&&this.C&&h2(this.C,"r");if(a||!this.W.experiments.ma("legacy_efficient_resize"))this.O("resize",this.D.Ma()),this.Oa("onResize")}};
h.cB=function(){2!=this.$a&&b$(this,Oh()?1:0)};
h.vD=function(a){this.Oa("liveviewshift",a)};
h.WB=function(){this.O("WATCH_LATER_VIDEO_ADDED")};
h.YB=function(){this.O("WATCH_LATER_VIDEO_REMOVED")};
h.XB=function(a,b){var c;b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);this.O("WATCH_LATER_ERROR",c||R("YTP_ERROR_GENERIC_WITHOUT_LINK"))};
h.Hi=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(this.H.o("vr",void 0),this.$||(this.$=Wu(this.yp,this)),n2(this.C),D_(this.H,$9(this)));0==c&&e&&(this.j.$=e);var f=this.W;"leanback"==f.ya&&f.gb&&(0==c?this.Ca=this.A:this.Ca=d,this.O("onAdStateChange",c,e.video_id))}else this.O.apply(this,arguments)};
h.Xf=function(a,b){this.B.J.apply(this.B,arguments);this.F&&this.F.O.apply(this.F,arguments);this.G&&this.G.O.apply(this.G,arguments)};
h.Se=function(a){if(a=rq(this,a))if(2==this.J)k9(this);else{var b=a.getPlayerState();if(V(a.getPlayerState(),2))this.Yf(0);else{if(!this.W.experiments.ma("new_stop_video3")&&1==this.getPresentingPlayerType()&&V(b,64)){var b=this.B,c=eK();F(c,b.H,b)}b2(a)}}};
h.pauseVideo=function(a){(a=rq(this,a))&&a.pauseVideo()};
h.getAdState=function(){return this.F?this.F.getAdState():-1};
h.wr=function(a,b,c){this.Ti();this.oa=a;b&&F(b,function(a){this.da[a]=!0},this);
c&&zK(this.B,a,c)};
h.Ti=function(){this.oa=null;this.da={};AK(this.B)};
h.nB=function(){if(!this.Ha){this.Ha=!0;var a=this.getVideoData(),b={};b.video_id=a.videoId;a.Da||(b.start=rq(this).getCurrentTime());b.autoplay=1;b.reload=1;M9(this,b)}};
h.Az=function(){this.Oa("CONNECTION_ISSUE")};
h.uD=function(a){this.Oa("heartbeatparams",a)};
h.S=function(){wp();this.j.dispose();this.K&&this.K.dispose();m9(this);Nb(Wb(this.za),this.o);this.Ca=null;Xu(this.$);this.$=0;c9.M.S.call(this)};q("yt.player.Application.create",c9.create,void 0);q("yt.player.Application.createWebComponent",c9.B,void 0);var $$=v("ytcsi.tick");$$&&$$("pe");})(_yt_player);
