(function(){var f,aa=aa||{},m=this;function n(a){return void 0!==a}function q(a,b,c){a=a.split(".");c=c||m;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]={}}function r(a,b){for(var c=a.split("."),d=b||m,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d}function u(){}function ba(a){a.getInstance=function(){return a.Eb?a.Eb:a.Eb=new a}}
function ca(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}function da(a){return null===a}function fa(a){return"array"==ca(a)}function ga(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function w(a){return"string"==typeof a}function ha(a){return"number"==typeof a}function ia(a){return"function"==ca(a)}function ja(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ka(a){return a[la]||(a[la]=++ma)}
var la="closure_uid_"+(1E9*Math.random()>>>0),ma=0;function na(a,b,c){return a.call.apply(a.bind,arguments)}function oa(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)}}
function x(a,b,c){x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?na:oa;return x.apply(null,arguments)}function y(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)}}function qa(a,b){for(var c in b)a[c]=b[c]}var z=Date.now||function(){return+new Date};
function B(a,b){function c(){}c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,g){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[c].apply(a,h)}}Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return x.apply(null,c)}return x(this,a)};function ra(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ra);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}B(ra,Error);ra.prototype.name="CustomError";var sa;function ta(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function C(a){return/^[\s\xa0]*$/.test(a)}var ua=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function va(a){return encodeURIComponent(String(a))}function wa(a){return decodeURIComponent(a.replace(/\+/g," "))}
function xa(a){if(!ya.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(za,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Aa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ba,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ca,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Da,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ea,"&#0;"));return a}var za=/&/g,Aa=/</g,Ba=/>/g,Ca=/"/g,Da=/'/g,Ea=/\x00/g,ya=/[\x00&<>"']/;function Fa(a){return-1!=a.indexOf("&")?"document"in m?Ga(a):Ha(a):a}
function Ga(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Ia,function(a,e){var g=b[a];if(g)return g;if("#"==e.charAt(0)){var h=Number("0"+e.substr(1));isNaN(h)||(g=String.fromCharCode(h))}g||(c.innerHTML=a+" ",g=c.firstChild.nodeValue.slice(0,-1));return b[a]=g})}
function Ha(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(!isNaN(d))return String.fromCharCode(d)}return a}})}var Ia=/&([^;\s<&]+);?/g;function Ja(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())}function Ka(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}
function La(a,b){return Array(b+1).join(a)}function Ma(a){a=n(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return La("0",Math.max(0,2-b))+a}function D(a){return null==a?"":String(a)}function Na(a){return Array.prototype.join.call(arguments,"")}
function Oa(a,b){for(var c=0,d=ua(String(a)).split("."),e=ua(String(b)).split("."),g=Math.max(d.length,e.length),h=0;0==c&&h<g;h++){var k=d[h]||"",l=e[h]||"",p=RegExp("(\\d*)(\\D*)","g"),t=RegExp("(\\d*)(\\D*)","g");do{var v=p.exec(k)||["","",""],A=t.exec(l)||["","",""];if(0==v[0].length&&0==A[0].length)break;c=Pa(0==v[1].length?0:parseInt(v[1],10),0==A[1].length?0:parseInt(A[1],10))||Pa(0==v[2].length,0==A[2].length)||Pa(v[2],A[2])}while(0==c)}return c}function Pa(a,b){return a<b?-1:a>b?1:0}
function Qa(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b}var Ra=2147483648*Math.random()|0;function Sa(){return"goog_"+Ra++}function Ta(a){var b=Number(a);return 0==b&&C(a)?NaN:b}function Ua(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Va(a){var b=w(void 0)?Ka(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}
function Wa(a){isFinite(a)&&(a=String(a));return w(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};function Xa(){};function Ya(a){return a[a.length-1]}
var Za=Array.prototype,$a=Za.indexOf?function(a,b,c){return Za.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(w(a))return w(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ab=Za.lastIndexOf?function(a,b,c){return Za.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(w(a))return w(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},E=Za.forEach?function(a,b,c){Za.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},bb=Za.filter?function(a,b,c){return Za.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=w(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[g++]=l)}return e},F=Za.map?function(a,b,c){return Za.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=w(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,
g[h],h,a));return e},cb=Za.reduce?function(a,b,c,d){d&&(b=x(b,d));return Za.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;E(a,function(c,h){e=b.call(d,e,c,h,a)});return e},db=Za.some?function(a,b,c){return Za.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},eb=Za.every?function(a,b,c){return Za.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&!b.call(c,e[g],g,a))return!1;
return!0};function G(a,b,c){b=fb(a,b,c);return 0>b?null:w(a)?a.charAt(b):a[b]}function fb(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1}function gb(a,b){var c=hb(a,b,void 0);return 0>c?null:w(a)?a.charAt(c):a[c]}function hb(a,b,c){for(var d=w(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1}function H(a,b){return 0<=$a(a,b)}function ib(a){return 0==a.length}
function jb(a){if(!fa(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function kb(a,b){H(a,b)||a.push(b)}function lb(a,b){var c=$a(a,b),d;(d=0<=c)&&mb(a,c);return d}function mb(a,b){Za.splice.call(a,b,1)}function nb(a,b){var c=fb(a,b,void 0);0<=c&&mb(a,c)}function ob(a){return Za.concat.apply(Za,arguments)}function pb(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[]}
function qb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ga(d)){var e=a.length||0,g=d.length||0;a.length=e+g;for(var h=0;h<g;h++)a[e+h]=d[h]}else a.push(d)}}function rb(a,b,c,d){Za.splice.apply(a,sb(arguments,1))}function sb(a,b,c){return 2>=arguments.length?Za.slice.call(a,b):Za.slice.call(a,b,c)}
function tb(a,b,c){b=b||a;c=c||function(){return ja(h)?"o"+ka(h):(typeof h).charAt(0)+h};for(var d={},e=0,g=0;g<a.length;){var h=a[g++],k=c(h);Object.prototype.hasOwnProperty.call(d,k)||(d[k]=!0,b[e++]=h)}b.length=e}function ub(a,b,c){c=c||vb;for(var d=0,e=a.length,g;d<e;){var h=d+e>>1,k;k=c(b,a[h]);0<k?d=h+1:(e=h,g=!k)}return g?d:~d}function wb(a,b){a.sort(b||vb)}function xb(a,b,c){var d=c||vb;wb(a,function(a,c){return d(b(a),b(c))})}function yb(a,b){xb(a,function(a){return a[b]},void 0)}
function zb(a,b,c){if(!ga(a)||!ga(b)||a.length!=b.length)return!1;var d=a.length;c=c||Ab;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function vb(a,b){return a>b?1:a<b?-1:0}function Ab(a,b){return a===b}function Bb(a,b,c){c=ub(a,b,c);0>c&&rb(a,-(c+1),0,b)}function Cb(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b}
function Db(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(fa(d))for(var e=0;e<d.length;e+=8192)for(var g=sb(d,e,e+8192),g=Db.apply(null,g),h=0;h<g.length;h++)b.push(g[h]);else b.push(d)}return b};function Eb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Fb(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}function Gb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Hb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Ib(a){var b=0,c;for(c in a)b++;return b}function Jb(a,b){return Kb(a,b)}function Lb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Mb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}
function Nb(a,b){for(var c=ga(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],n(a));c++);return a}function Kb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function Ob(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Pb(a){var b=Qb;return(a=Ob(b,a,void 0))&&b[a]}function Rb(a){for(var b in a)return!1;return!0}function Sb(a){for(var b in a)delete a[b]}function Tb(a,b){b in a&&delete a[b]}function Ub(a,b,c){return b in a?a[b]:c}
function Vb(a){var b={},c;for(c in a)b[c]=a[c];return b}function Xb(a){var b=ca(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=Xb(a[c]);return b}return a}var Yb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Zb(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 g=0;g<Yb.length;g++)c=Yb[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function $b(a){var b=arguments.length;if(1==b&&fa(arguments[0]))return $b.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var ac=$b("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var bc=/<[^>]*>|&[^;]+;/g;function cc(a,b){return b?a.replace(bc,""):a}
var dc=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),ec=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),fc=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),gc=/^http:\/\/.*/,hc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,ic=
/\s+/,jc=/\d/;function kc(){this.j=lc}kc.prototype.Uf=!0;kc.prototype.Tf=function(){return""};kc.prototype.toString=function(){return"Const{}"};function mc(a){return a instanceof kc&&a.constructor===kc&&a.j===lc?"":"type_error:Const"}var lc={};function nc(){this.j="";this.k=oc}nc.prototype.Uf=!0;var oc={};nc.prototype.Tf=function(){return this.j};function pc(a){var b=new nc;b.j=a;return b}var qc=pc(""),rc=/^[-.%_!# a-zA-Z0-9]+$/;function sc(){this.j=tc}sc.prototype.Uf=!0;sc.prototype.Tf=function(){return""};sc.prototype.Wn=!0;sc.prototype.Sf=function(){return 1};function uc(a){return a instanceof sc&&a.constructor===sc&&a.j===tc?"":"type_error:SafeUrl"}var tc={};function vc(){this.j=wc}vc.prototype.Uf=!0;vc.prototype.Tf=function(){return""};vc.prototype.Wn=!0;vc.prototype.Sf=function(){return 1};var wc={};function xc(){this.j="";this.o=yc;this.k=null}xc.prototype.Wn=!0;xc.prototype.Sf=function(){return this.k};xc.prototype.Uf=!0;xc.prototype.Tf=function(){return this.j};function zc(a){return a instanceof xc&&a.constructor===xc&&a.o===yc?a.j:"type_error:SafeHtml"}var Ac=/^[a-zA-Z0-9-]+$/,Bc=$b("action","cite","data","formaction","href","manifest","poster","src"),Cc=$b("embed","iframe","link","object","script","style","template");
function Dc(a){function b(a){if(fa(a))E(a,b);else{if(!(a instanceof xc)){var g=null;a.Wn&&(g=a.Sf());a=Ec(xa(a.Uf?a.Tf():String(a)),g)}d+=zc(a);a=a.Sf();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";E(arguments,b);return Ec(d,c)}var yc={};function Ec(a,b){var c=new xc;c.j=a;c.k=b;return c}Ec("",0);function Fc(a,b,c){return Math.min(Math.max(a,b),c)};function Gc(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=Gc.prototype;f.clone=function(){return new Gc(this.x,this.y)};function Hc(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}function Ic(a,b){return new Gc(a.x-b.x,a.y-b.y)}f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
f.scale=function(a,b){var c=ha(b)?b:a;this.x*=a;this.y*=c;return this};function I(a,b){this.width=a;this.height=b}function Jc(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=I.prototype;f.clone=function(){return new I(this.width,this.height)};f.isEmpty=function(){return!(this.width*this.height)};f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ha(b)?b:a;this.width*=a;this.height*=c;return this};var Kc;t:{var Lc=m.navigator;if(Lc){var Mc=Lc.userAgent;if(Mc){Kc=Mc;break t}}Kc=""}function Nc(a){return-1!=Kc.indexOf(a)};var Oc=Nc("Opera")||Nc("OPR"),Pc=Nc("Trident")||Nc("MSIE"),Qc=Nc("Gecko")&&!Ja(Kc,"WebKit")&&!(Nc("Trident")||Nc("MSIE")),Rc=Ja(Kc,"WebKit"),Sc=Rc&&Nc("Mobile"),Tc=Nc("Macintosh"),Uc=Nc("Windows"),Vc=Nc("Linux")||Nc("CrOS"),Wc=Nc("Android"),Xc=Nc("iPhone")&&!Nc("iPod")&&!Nc("iPad"),Yc=Nc("iPad");function Zc(){var a=m.document;return a?a.documentMode:void 0}
var $c=function(){var a="",b;if(Oc&&m.opera)return a=m.opera.version,ia(a)?a():a;Qc?b=/rv\:([^\);]+)(\)|;)/:Pc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:Rc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(Kc))?a[1]:"");return Pc&&(b=Zc(),b>parseFloat(a))?String(b):a}(),ad={};function bd(a){return ad[a]||(ad[a]=0<=Oa($c,a))}function cd(a){return Pc&&dd>=a}var ed=m.document,dd=ed&&Pc?Zc()||("CSS1Compat"==ed.compatMode?parseInt($c,10):5):void 0;var fd=!Pc||cd(9),gd=!Qc&&!Pc||Pc&&cd(9)||Qc&&bd("1.9.1"),hd=Pc&&!bd("9"),id=Pc||Oc||Rc;function jd(a){return a?new kd(ld(a)):sa||(sa=new kd)}function md(a){return w(a)?document.getElementById(a):a}function nd(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):od("*",a,b)}function pd(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=od("*",a,b)[0];return d||null}
function od(a,b,c){var d=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,g=0,h;h=c[g];g++)a==h.nodeName&&(d[e++]=h);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(g=e=0;h=c[g];g++)a=h.className,"function"==typeof a.split&&H(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function qd(a,b){Eb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in rd?a.setAttribute(rd[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var rd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function sd(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new I(a.clientWidth,a.clientHeight)}function td(a){var b=ud(a);a=a.parentWindow||a.defaultView;return Pc&&bd("10")&&a.pageYOffset!=b.scrollTop?new Gc(b.scrollLeft,b.scrollTop):new Gc(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function ud(a){return Rc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}function vd(a){return a?a.parentWindow||a.defaultView:window}
function J(a,b,c){return xd(document,arguments)}function xd(a,b){var c=b[0],d=b[1];if(!fd&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',xa(d.name),'"');if(d.type){c.push(' type="',xa(d.type),'"');var e={};Zb(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(d)?c.className=d:fa(d)?c.className=d.join(" "):qd(c,d));2<b.length&&yd(a,c,b,2);return c}
function yd(a,b,c,d){function e(c){c&&b.appendChild(w(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ga(g)||ja(g)&&0<g.nodeType?e(g):E(zd(g)?pb(g):g,e)}}function Ad(a){return document.createElement(a)}function Bd(a){return document.createTextNode(String(a))}function Cd(a,b){a.appendChild(b)}function Dd(a,b){yd(ld(a),a,arguments,1)}function Ed(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Fd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}
function Gd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Hd(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function Id(a){return gd&&void 0!=a.children?a.children:bb(a.childNodes,function(a){return 1==a.nodeType})}function Jd(a){return void 0!=a.firstElementChild?a.firstElementChild:Kd(a.firstChild)}function Kd(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function Ld(a){return ja(a)&&1==a.nodeType}
function Md(a){var b;if(id&&!(Pc&&bd("9")&&!bd("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return Ld(b)?b:null}function Nd(a,b){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}function ld(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function Od(a){return a.contentWindow||vd(a.contentDocument||a.contentWindow.document)}function Pd(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{Ed(a);var c=ld(a);a.appendChild(c.createTextNode(String(b)))}}function Qd(a,b){var c=[];return Rd(a,b,c,!0)?c[0]:void 0}
function Rd(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||Rd(a,b,c,d))return!0;a=a.nextSibling}return!1}var Sd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Td={IMG:" ",BR:"\n"};
function Ud(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Vd(a)||Wd(a)):Vd(a)&&Wd(a))&&Pc?(a=ia(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a}function Vd(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified}function Wd(a){a=a.tabIndex;return ha(a)&&0<=a&&32768>a}
function Xd(a,b,c){if(!(a.nodeName in Sd))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Td)b.push(Td[a.nodeName]);else for(a=a.firstChild;a;)Xd(a,b,c),a=a.nextSibling}function zd(a){if(a&&"number"==typeof a.length){if(ja(a))return"function"==typeof a.item||"string"==typeof a.item;if(ia(a))return"function"==typeof a.item}return!1}
function Yd(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return Zd(a,function(a){return(!e||a.nodeName==e)&&(!c||w(a.className)&&H(a.className.split(/\s+/),c))},!0,d)}function $d(a,b){return Yd(a,null,b,void 0)}function Zd(a,b,c,d){c||(a=a.parentNode);c=null==d;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return null}function kd(a){this.j=a||m.document||document}f=kd.prototype;f.M=function(a){return w(a)?this.j.getElementById(a):a};f.setProperties=qd;
f.rE=function(a,b,c){return xd(this.j,arguments)};f.createElement=function(a){return this.j.createElement(a)};function ae(a){return"CSS1Compat"==a.j.compatMode}function be(a){a=a.j;return a.parentWindow||a.defaultView}function ce(a){return td(a.j)}f.appendChild=Cd;f.append=Dd;f.contains=Nd;var de="StopIteration"in m?m.StopIteration:Error("StopIteration");function ee(){}ee.prototype.next=function(){throw de;};ee.prototype.$b=function(){return this};function fe(a){if(a instanceof ee)return a;if("function"==typeof a.$b)return a.$b(!1);if(ga(a)){var b=0,c=new ee;c.next=function(){for(;;){if(b>=a.length)throw de;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function ge(a,b,c){if(ga(a))try{E(a,b,c)}catch(d){if(d!==de)throw d;}else{a=fe(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==de)throw e;}}}function ie(a){if(ga(a))return pb(a);a=fe(a);var b=[];ge(a,function(a){b.push(a)});return b};function je(a,b){this.k={};this.j=[];this.o=this.ka=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof je?(c=a.Ka(),d=a.La()):(c=Mb(a),d=Lb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=je.prototype;f.Qa=function(){return this.ka};f.La=function(){ke(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.k[this.j[b]]);return a};f.Ka=function(){ke(this);return this.j.concat()};
function le(a,b){return me(a.k,b)}f.cg=function(a){for(var b=0;b<this.j.length;b++){var c=this.j[b];if(me(this.k,c)&&this.k[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.ka!=a.Qa())return!1;var c=b||ne;ke(this);for(var d,e=0;d=this.j[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function ne(a,b){return a===b}f.isEmpty=function(){return 0==this.ka};f.clear=function(){this.k={};this.o=this.ka=this.j.length=0};
f.remove=function(a){return me(this.k,a)?(delete this.k[a],this.ka--,this.o++,this.j.length>2*this.ka&&ke(this),!0):!1};function ke(a){if(a.ka!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];me(a.k,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.ka!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],me(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}}f.get=function(a,b){return me(this.k,a)?this.k[a]:b};f.set=function(a,b){me(this.k,a)||(this.ka++,this.j.push(a),this.o++);this.k[a]=b};
f.forEach=function(a,b){for(var c=this.Ka(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};f.clone=function(){return new je(this)};f.$b=function(a){ke(this);var b=0,c=this.j,d=this.k,e=this.o,g=this,h=new ee;h.next=function(){for(;;){if(e!=g.o)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw de;var h=c[b++];return a?h:d[h]}};return h};function me(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function oe(a){return"function"==typeof a.Qa?a.Qa():ga(a)||w(a)?a.length:Ib(a)}function pe(a){if("function"==typeof a.La)return a.La();if(w(a))return a.split("");if(ga(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Lb(a)}function qe(a){if("function"==typeof a.Ka)return a.Ka();if("function"!=typeof a.La){if(ga(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Mb(a)}}
function re(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(ga(a)||w(a))E(a,b,void 0);else for(var c=qe(a),d=pe(a),e=d.length,g=0;g<e;g++)b.call(void 0,d[g],c&&c[g],a)}function se(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ga(a)||w(a))return eb(a,b,c);for(var d=qe(a),e=pe(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};var te=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function ue(a){if(ve){ve=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=we(c))&&c!=b.hostname)throw ve=!0,Error();}}return a.match(te)}var ve=Rc;function xe(a){return a?decodeURI(a):a}function we(a){return xe(ue(a)[3]||null)}
function ye(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("")}function ze(a,b,c){if(fa(b))for(var d=0;d<b.length;d++)ze(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",va(b))}function Ae(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)ze(b[c],b[c+1],a);return a}function Be(a,b){for(var c in b)ze(c,b[c],a);return a}
function Ce(a){a=Be([],a);a[0]="";return a.join("")}function De(a,b){return ye(2==arguments.length?Ae([a],arguments[1],0):Ae([a],arguments,1))}function Ee(a,b){return ye(Be([a],b))}function Fe(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var g=a.charCodeAt(b-1);if(38==g||63==g)if(g=a.charCodeAt(b+e),!g||61==g||38==g||35==g)return b;b+=e+1}return-1}var Ge=/#|$/;
function He(a,b){var c=a.search(Ge),d=Fe(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return wa(a.substr(d,e-d))}var Ie=/[?&]($|#)/;function Je(a,b,c){for(var d=a.search(Ge),e=0,g,h=[];0<=(g=Fe(a,e,b,d));)h.push(a.substring(e,g)),e=Math.min(a.indexOf("&",g)+1||d,d);h.push(a.substr(e));a=[h.join("").replace(Ie,"$1"),"&",b];null!=c&&a.push("=",va(c));return ye(a)};function K(a,b){var c;a instanceof K?(this.Oe=n(b)?b:a.Oe,Ke(this,a.Hb),this.Ne=a.Ne,Le(this,a.mb),Me(this,a.gd),Oe(this,a.Ib),Pe(this,a.j.clone()),this.Gf=a.$e()):a&&(c=ue(String(a)))?(this.Oe=!!b,Ke(this,c[1]||"",!0),this.Ne=Qe(c[2]||""),Le(this,c[3]||"",!0),Me(this,c[4]),Oe(this,c[5]||"",!0),Pe(this,c[6]||"",!0),this.Gf=Qe(c[7]||"")):(this.Oe=!!b,this.j=new Re(null,0,this.Oe))}f=K.prototype;f.Hb="";f.Ne="";f.mb="";f.gd=null;f.Ib="";f.Gf="";f.Oe=!1;
f.toString=function(){var a=[],b=this.Hb;b&&a.push(Se(b,Ue,!0),":");if(b=this.mb){a.push("//");var c=this.Ne;c&&a.push(Se(c,Ue,!0),"@");a.push(va(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.gd;null!=b&&a.push(":",String(b))}if(b=this.Ib)this.mb&&"/"!=b.charAt(0)&&a.push("/"),a.push(Se(b,"/"==b.charAt(0)?Ve:We,!0));(b=this.j.toString())&&a.push("?",b);(b=this.$e())&&a.push("#",Se(b,Xe));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Hb;c?Ke(b,a.Hb):c=!!a.Ne;c?b.Ne=a.Ne:c=!!a.mb;c?Le(b,a.mb):c=null!=a.gd;var d=a.Ib;if(c)Me(b,a.gd);else if(c=!!a.Ib){if("/"!=d.charAt(0))if(this.mb&&!this.Ib)d="/"+d;else{var e=b.Ib.lastIndexOf("/");-1!=e&&(d=b.Ib.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){for(var d=0==e.lastIndexOf("/",0),e=e.split("/"),g=[],h=0;h<e.length;){var k=e[h++];"."==k?d&&h==e.length&&g.push(""):".."==k?((1<g.length||1==g.length&&
""!=g[0])&&g.pop(),d&&h==e.length&&g.push("")):(g.push(k),d=!0)}d=g.join("/")}else d=e}c?Oe(b,d):c=""!==a.j.toString();c?Pe(b,Qe(a.j.toString())):c=!!a.Gf;c&&(b.Gf=a.$e());return b};f.clone=function(){return new K(this)};function Ke(a,b,c){a.Hb=c?Qe(b,!0):b;a.Hb&&(a.Hb=a.Hb.replace(/:$/,""));return a}function Ye(a){return a.mb}function Le(a,b,c){a.mb=c?Qe(b,!0):b;return a}function Me(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.gd=b}else a.gd=null;return a}
function Oe(a,b,c){a.Ib=c?Qe(b,!0):b}function Pe(a,b,c){b instanceof Re?(a.j=b,Ze(a.j,a.Oe)):(c||(b=Se(b,$e)),a.j=new Re(b,0,a.Oe));return a}function af(a){return a.j}f.dq=function(){return this.j.toString()};function L(a,b,c){a.j.set(b,c);return a}function bf(a,b,c){fa(c)||(c=[String(c)]);cf(a.j,b,c)}function df(a,b){return a.j.get(b)}f.$e=function(){return this.Gf};
function ef(a){L(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^z()).toString(36));return a}function ff(a){return a instanceof K?a.clone():new K(a,void 0)}function gf(a,b,c,d){var e=new K(null,void 0);a&&Ke(e,a);b&&Le(e,b);c&&Me(e,c);d&&Oe(e,d);return e}function Qe(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function Se(a,b,c){return w(a)?(a=encodeURI(a).replace(b,hf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}
function hf(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ue=/[#\/\?@]/g,We=/[\#\?:]/g,Ve=/[\#\?]/g,$e=/[\#\?@]/g,Xe=/#/g;function Re(a,b,c){this.j=a||null;this.k=!!c}function jf(a){if(!a.bb&&(a.bb=new je,a.ka=0,a.j)){var b=x(a.add,a);a=a.j.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null,g=null;0<=d?(e=a[c].substring(0,d),g=a[c].substring(d+1)):e=a[c];b(wa(e),g?wa(g):"")}}}f=Re.prototype;f.bb=null;f.ka=null;f.Qa=function(){jf(this);return this.ka};
f.add=function(a,b){jf(this);this.j=null;a=kf(this,a);var c=this.bb.get(a);c||this.bb.set(a,c=[]);c.push(b);this.ka++;return this};f.remove=function(a){jf(this);a=kf(this,a);return le(this.bb,a)?(this.j=null,this.ka-=this.bb.get(a).length,this.bb.remove(a)):!1};f.clear=function(){this.bb=this.j=null;this.ka=0};f.isEmpty=function(){jf(this);return 0==this.ka};function lf(a,b){jf(a);b=kf(a,b);return le(a.bb,b)}f.cg=function(a){var b=this.La();return H(b,a)};
f.Ka=function(){jf(this);for(var a=this.bb.La(),b=this.bb.Ka(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};f.La=function(a){jf(this);var b=[];if(w(a))lf(this,a)&&(b=ob(b,this.bb.get(kf(this,a))));else{a=this.bb.La();for(var c=0;c<a.length;c++)b=ob(b,a[c])}return b};f.set=function(a,b){jf(this);this.j=null;a=kf(this,a);lf(this,a)&&(this.ka-=this.bb.get(a).length);this.bb.set(a,[b]);this.ka++;return this};
f.get=function(a,b){var c=a?this.La(a):[];return 0<c.length?String(c[0]):b};function cf(a,b,c){a.remove(b);0<c.length&&(a.j=null,a.bb.set(kf(a,b),pb(c)),a.ka+=c.length)}f.toString=function(){if(this.j)return this.j;if(!this.bb)return"";for(var a=[],b=this.bb.Ka(),c=0;c<b.length;c++)for(var d=b[c],e=va(d),d=this.La(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+va(d[g]));a.push(h)}return this.j=a.join("&")};
f.clone=function(){var a=new Re;a.j=this.j;this.bb&&(a.bb=this.bb.clone(),a.ka=this.ka);return a};function kf(a,b){var c=String(b);a.k&&(c=c.toLowerCase());return c}function Ze(a,b){b&&!a.k&&(jf(a),a.j=null,a.bb.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),cf(this,e,a))},a));a.k=b};var mf=/^https?:\/\/([-\w.]+\.youtube(education)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|yt-devenv-shared\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/)/,nf=/^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]+)?([\/\?\#]|$)/,
of=/^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\/+/,pf=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,qf=/^(https?:\/\/(lh|dp|gp)[3-6]\.googleusercontent\.com(:[0-9]+)?\/)?[A-Za-z0-9_/-]+photo\.jpg($|\?)|^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]+)?([\/\?\#]|$))/,
rf=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,sf=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,tf=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,uf=/^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]+)?([\/\?\#]|$)/,
vf=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|tpc\.googlesyndication\.com\/pagead\/gadgets\/|([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]+)?([\/\?\#]|$))/,
wf=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,xf=/^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}\.)*(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|plus\.google\.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 yf=window.yt&&window.yt.config_||{};q("yt.config_",yf,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var zf=window.yt&&window.yt.msgs_||{};q("yt.msgs_",zf,void 0);function Af(a){Bf(yf,arguments)}function Cf(a,b){return a in yf?yf[a]:b}function M(a,b){ia(a)&&(a=Df(a));return window.setTimeout(a,b)}function Ef(a,b){ia(a)&&(a=Df(a));return window.setInterval(a,b)}function N(a){window.clearTimeout(a)}function Ff(a){window.clearInterval(a)}
function Df(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Gf(b),b;}}:a}function Gf(a){var b=r("yt.www.errors.log");b?b(a,void 0):(b=Cf("ERRORS")||[],b.push([a,void 0]),Af("ERRORS",b))}function Hf(a){Bf(zf,arguments)}function If(a,b,c){var d=b||{};if(a=a in zf?zf[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}function Bf(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 Jf="corp.google.com googleplex.com youtube.com youtube-nocookie.com youtubeeducation.com borg.google.com prod.google.com sandbox.google.com docs.google.com drive.google.com mail.google.com photos.google.com plus.google.com play.google.com googlevideo.com talkgadget.google.com survey.g.doubleclick.net youtube.googleapis.com vevo.com".split(" "),Kf="2mdn.net corp.google.com imasdk.googleapis.com static.doubleclick.net tpc.googlesyndication.com/pagead/gadgets gstatic.com/doubleclick/studio/innovation/h5/layouts/tetris studioapi.doubleclick.net googleads.g.doubleclick.net gstatic.com/doubleclick/studio/innovation/ytplayer".split(" "),
Lf="";function Mf(a){return a&&a==Lf?!0:Nf(a,Jf)?(Lf=a,!0):!1}function Of(a){var b=!!a&&-1!=a.search(xf),c=Mf(a)||Nf(a,Kf);b!=c&&Gf(Error("isTrustedLoader("+a+") behavior is not consistent"));return c}function Pf(a){return!!a&&-1!=a.search(qf)}function Qf(a){return!!a&&-1!=a.search(vf)}function Nf(a,b){return(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}
function Rf(a){a=new K(a);Ke(a,document.location.protocol);Le(a,document.location.hostname);document.location.port&&Me(a,document.location.port);return a.toString()}function Sf(a){a=new K(a);Ke(a,document.location.protocol);return a.toString()};var Tf={},Uf=0,Vf=r("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",Vf,void 0);function Wf(a,b,c){a&&(c?a&&(a=J("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),ld(a).body.appendChild(a)):Xf(a,b))}function Xf(a,b){var c=new Image,d=""+Uf++;Tf[d]=c;c.onload=c.onerror=function(){b&&Tf[d]&&b();delete Tf[d]};c.src=a;c=eval("null")};function Yf(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+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function Zf(a){return eval("("+a+")")}function $f(a){return ag(new bg(void 0),a)}function bg(a){this.j=a}
function ag(a,b){var c=[];cg(a,b,c);return c.join("")}
function cg(a,b,c){switch(typeof b){case "string":dg(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(null==b){c.push("null");break}if(fa(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],cg(a,a.j?a.j.call(b,String(g),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(g in b)Object.prototype.hasOwnProperty.call(b,g)&&(e=b[g],"function"!=typeof e&&(c.push(d),dg(g,c),
c.push(":"),cg(a,a.j?a.j.call(b,g,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var eg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},fg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function dg(a,b){b.push('"',a.replace(fg,function(a){if(a in eg)return eg[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return eg[a]=e+b.toString(16)}),'"')};function gg(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=gg.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new gg(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof gg?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
f.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};f.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};f.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
f.scale=function(a,b){var c=ha(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function hg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=hg.prototype;f.clone=function(){return new hg(this.left,this.top,this.width,this.height)};function ig(a){return new hg(a.left,a.top,a.right-a.left,a.bottom-a.top)}function jg(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}
f.contains=function(a){return a instanceof hg?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};function kg(a){return new I(a.width,a.height)}f.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
f.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};f.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ha(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function lg(a){lg[" "](a);return a}lg[" "]=u;function mg(a,b){try{return lg(a[b]),!0}catch(c){}return!1};function ng(){return Rc?"Webkit":Qc?"Moz":Pc?"ms":Oc?"O":null}function og(a,b){if(b&&a in b)return a;var c=ng();return c?(c=c.toLowerCase(),c+=Va(a),!n(b)||c in b?c:null):null};function pg(a,b,c){if(w(b))(b=qg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=qg(c,d);g&&(c.style[g]=e)}}var rg={};function qg(a,b){var c=rg[b];if(!c){var d=Ua(b),c=d;void 0===a.style[d]&&(d=ng()+Va(d),void 0!==a.style[d]&&(c=d));rg[b]=c}return c}function sg(a,b){var c=ld(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}
function tg(a,b){return sg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function ug(a,b,c){var d;b instanceof Gc?(d=b.x,b=b.y):(d=b,b=c);a.style.left=vg(d,!1);a.style.top=vg(b,!1)}function wg(a){return new Gc(a.offsetLeft,a.offsetTop)}
function xg(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}Pc&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function yg(a){if(Pc&&!cd(8))return a.offsetParent;var b=ld(a),c=tg(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=tg(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}
function zg(a){for(var b=new gg(0,Infinity,Infinity,0),c=jd(a),d=c.j.body,e=c.j.documentElement,g=ud(c.j);a=yg(a);)if(!(Pc&&0==a.clientWidth||Rc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=tg(a,"overflow")){var h=Ag(a),k=new Gc(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);
c=sd(be(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null}function Ag(a){var b=ld(a);tg(a,"position");var c=new Gc(0,0),d;d=b?ld(b):document;d=!Pc||cd(9)||ae(jd(d))?d.documentElement:d.body;if(a==d)return c;a=xg(a);b=ce(jd(b));c.x=a.left+b.x;c.y=a.top+b.y;return c}
function Bg(a,b){var c=new Gc(0,0),d=vd(ld(a)),e=a;do{var g=d==b?Ag(e):Cg(e);c.x+=g.x;c.y+=g.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c}function Cg(a){a=xg(a);return new Gc(a.left,a.top)}function Dg(a){if(1==a.nodeType)return Cg(a);var b=ia(a.NE),c=a;a.targetTouches&&a.targetTouches.length?c=a.targetTouches[0]:b&&a.j.targetTouches&&a.j.targetTouches.length&&(c=a.j.targetTouches[0]);return new Gc(c.clientX,c.clientY)}
function Eg(a,b,c){if(b instanceof I)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Fg(a,b);a.style.height=vg(c,!0)}function vg(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Fg(a,b){a.style.width=vg(b,!0)}function Gg(a){return Hg(a)}
function Hg(a){var b=Ig;if("none"!=tg(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a}function Ig(a){var b=a.offsetWidth,c=a.offsetHeight,d=Rc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new I(b,c):(a=xg(a),new I(a.right-a.left,a.bottom-a.top))}function Jg(a){var b=Ag(a);a=Hg(a);return new hg(b.x,b.y,a.width,a.height)}
function Kg(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+")")}function Lg(a,b){a.style.display=b?"":"none"}function Mg(a){return"rtl"==tg(a,"direction")}function Ng(a,b){if(/^\d+px?$/.test(b))return 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}
function Og(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Ng(a,c):0}var Pg={thin:2,medium:4,thick:6};function Qg(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:null))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;return c in Pg?Pg[c]:Ng(a,c)}
function Rg(a){if(Pc&&!cd(9)){var b=Qg(a,"borderLeft"),c=Qg(a,"borderRight"),d=Qg(a,"borderTop");a=Qg(a,"borderBottom");return new gg(d,c,a,b)}b=sg(a,"borderLeftWidth");c=sg(a,"borderRightWidth");d=sg(a,"borderTopWidth");a=sg(a,"borderBottomWidth");return new gg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Sg=/[^\d]+$/,Tg={cm:1,"in":1,mm:1,pc:1,pt:1},Ug={em:1,ex:1};
function Vg(a){var b=tg(a,"fontSize"),c;c=(c=b.match(Sg))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(Pc){if(c in Tg)return Ng(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in Ug)return a=a.parentNode,c=tg(a,"fontSize"),Ng(a,b==c?"1em":b)}c=J("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;Gd(c);return b};function Wg(a){if(a.classList)return a.classList;a=a.className;return w(a)&&a.match(/\S+/g)||[]}function Xg(a,b){return a.classList?a.classList.contains(b):H(Wg(a),b)}function O(a,b){a.classList?a.classList.add(b):Xg(a,b)||(a.className+=0<a.className.length?" "+b:b)}function Yg(a,b){if(a.classList)E(b,function(b){O(a,b)});else{var c={};E(Wg(a),function(a){c[a]=!0});E(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function Zg(a,b){a.classList?a.classList.remove(b):Xg(a,b)&&(a.className=bb(Wg(a),function(a){return a!=b}).join(" "))}function $g(a,b){a.classList?E(b,function(b){Zg(a,b)}):a.className=bb(Wg(a),function(a){return!H(b,a)}).join(" ")}function ah(a,b,c){c?O(a,b):Zg(a,b)}function bh(a,b){var c=!Xg(a,b);ah(a,b,c)};function ch(a,b,c){a&&(a.dataset?a.dataset[dh(b)]=c:a.setAttribute("data-"+b,c))}function eh(a,b){return a?a.dataset?a.dataset[dh(b)]:a.getAttribute("data-"+b):null}var fh={};function dh(a){return fh[a]||(fh[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var gh=Rc?"webkit":Qc?"moz":Pc?"ms":Oc?"o":"";function hh(a){var b=a.__yt_uid_key;b||(b=ih(),a.__yt_uid_key=b);return b}var ih=r("yt.dom.getNextId_");if(!ih){ih=function(){return++jh};q("yt.dom.getNextId_",ih,void 0);var jh=0}function kh(a,b){var c=od(a,null,b);return c.length?c[0]:null}function lh(a,b){if(a in b)return b[a];var c=gh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function mh(a,b){var c;db(a,function(a){c=lh(a,b);return!!c});return c};function nh(a){if(a=a||window.event){for(var b in a)b in oh||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Jb=a;(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;"MozMousePixelScroll"==this.type?(this.wheelDeltaX=a.axis==a.HORIZONTAL_AXIS?a.detail:0,this.wheelDeltaY=a.axis==a.HORIZONTAL_AXIS?0:a.detail):window.opera?(this.wheelDeltaX=0,this.wheelDeltaY=a.detail):0==a.wheelDelta%120?"WebkitTransform"in document.documentElement.style?window.chrome&&0==navigator.platform.indexOf("Mac")?(this.wheelDeltaX=a.wheelDeltaX/-30,this.wheelDeltaY=
a.wheelDeltaY/-30):(this.wheelDeltaX=a.wheelDeltaX/-1.2,this.wheelDeltaY=a.wheelDeltaY/-1.2):(this.wheelDeltaX=0,this.wheelDeltaY=a.wheelDelta/-1.6):(this.wheelDeltaX=a.wheelDeltaX/-3,this.wheelDeltaY=a.wheelDeltaY/-3);this.j=a.pageX;this.k=a.pageY}}function ph(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.k=a.clientY+b}}
function qh(a){n(a.j)||ph(a);return a.j}function rh(a){n(a.k)||ph(a);return a.k}f=nh.prototype;f.Jb=null;f.type="";f.target=null;f.relatedTarget=null;f.currentTarget=null;f.data=null;f.source=null;f.state=null;f.keyCode=0;f.charCode=0;f.altKey=!1;f.ctrlKey=!1;f.shiftKey=!1;f.clientX=0;f.clientY=0;f.wheelDeltaX=0;f.wheelDeltaY=0;f.rotation=0;f.scale=1;f.touches=null;f.changedTouches=null;f.preventDefault=function(){this.Jb.returnValue=!1;this.Jb.preventDefault&&this.Jb.preventDefault()};
f.stopPropagation=function(){this.Jb.cancelBubble=!0;this.Jb.stopPropagation&&this.Jb.stopPropagation()};f.stopImmediatePropagation=function(){this.Jb.cancelBubble=!0;this.Jb.stopImmediatePropagation&&this.Jb.stopImmediatePropagation()};var oh={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var sh=r("yt.events.listeners_")||{};q("yt.events.listeners_",sh,void 0);var th=r("yt.events.counter_")||{count:0};q("yt.events.counter_",th,void 0);function uh(a,b,c,d){return Ob(sh,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function P(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=uh(a,b,c,d);if(e)return e;var e=++th.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new nh(d);if(!Zd(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new nh(b);b.currentTarget=a;return c.call(a,b)};h=Df(h);sh[e]=[a,b,c,h,d];a.addEventListener?"mouseenter"==b&&g?a.addEventListener("mouseover",
h,d):"mouseleave"==b&&g?a.addEventListener("mouseout",h,d):"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style?a.addEventListener("MozMousePixelScroll",h,d):a.addEventListener(b,h,d):a.attachEvent("on"+b,h);return e}function vh(a,b){var c;c=P(a,"playing",function(){wh(c);b.apply(a,arguments)},void 0)}function xh(a,b,c,d){return yh(a,b,c,function(a){return Xg(a,d)})}
function yh(a,b,c,d){var e=a||document;return P(e,b,function(a){var b=Zd(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function wh(a){a&&("string"==typeof a&&(a=[a]),E(a,function(a){if(a in sh){var c=sh[a],d=c[0],e=c[1],g=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,g,c):d.detachEvent&&d.detachEvent("on"+e,g);delete sh[a]}}))}function zh(a){for(var b in sh)sh[b][0]==a&&wh(b)}
function Ah(a,b){if(document.createEvent){var c=document.createEvent("HTMLEvents");c.initEvent(b,!0,!0);a.dispatchEvent(c)}else c=document.createEventObject(),a.fireEvent("on"+b,c)};function Bh(){return!!mh(["fullscreenEnabled","fullScreenEnabled"],document)}function Ch(){return mh(["fullscreenElement","fullScreenElement"],document)};function Dh(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||Vb(Eh);this.assets=a.assets||{};this.attrs=a.attrs||Vb(Fh);this.params=a.params||Vb(Gh);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}}var Eh={enablejsapi:1},Fh={},Gh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
Dh.prototype.clone=function(){var a=new Dh,b;for(b in this){var c=this[b];"object"==ca(c)?a[b]=Vb(c):a[b]=c}return a};var Hh,Ih,Jh,Kh,Lh,Mh,Nh;Nh=Mh=Lh=Kh=Jh=Ih=Hh=!1;var Oh=Kc;Oh&&(-1!=Oh.indexOf("Firefox")?Hh=!0:-1!=Oh.indexOf("Camino")?Ih=!0:-1!=Oh.indexOf("iPad")?Kh=!0:-1!=Oh.indexOf("iPhone")||-1!=Oh.indexOf("iPod")?Jh=!0:-1!=Oh.indexOf("Chrome")?Mh=!0:-1!=Oh.indexOf("Android")?Lh=!0:-1!=Oh.indexOf("Safari")&&(Nh=!0));var Ph=Hh,Qh=Ih,Rh=Jh,Sh=Kh,Th=Lh,Uh=Mh,Vh=Nh;var Wh=z(),Xh=null,Yh=Array(50),Zh=-1,$h=!1;function ai(a){bi();Xh.push(a);ci(Xh)}function di(a){var b=r("yt.mdx.remote.debug.handlers_");lb(b||[],a)}function ei(a,b){bi();var c=Xh,d=fi(a,String(b));ib(c)?gi(d):(ci(c),E(c,function(a){a(d)}))}function bi(){Xh||(Xh=r("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",Xh,void 0))}function gi(a){var b=(Zh+1)%50;Zh=b;Yh[b]=a;$h||($h=49==b)}
function ci(a){var b=Yh;if(b[0]){var c=Zh,d=$h?c:-1;do{var d=(d+1)%50,e=b[d];E(a,function(a){a(e)})}while(d!=c);Yh=Array(50);Zh=-1;$h=!1}}function fi(a,b){var c=(z()-Wh)/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("")};function hi(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""}function ii(a,b){return!!b&&(a.id==b||a.uuid==b)}function ji(a,b){return a||b?!a!=!b?!1:a.id==b.id&&a.token==b.token&&a.name==b.name&&a.uuid==b.uuid:!0}function ki(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function li(a){return new hi(a)}function mi(a){return fa(a)?F(a,li):[]}
function ni(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+"}":"null"}function oi(a){return fa(a)?"["+F(a,ni).join(",")+"]":"null"};function Q(){this.Ra=this.Ra;this.Ga=this.Ga}Q.prototype.Ra=!1;Q.prototype.ea=function(){return this.Ra};Q.prototype.dispose=function(){this.Ra||(this.Ra=!0,this.L())};function R(a,b){pi(a,y(qi,b))}function pi(a,b){a.Ra?b.call(void 0):(a.Ga||(a.Ga=[]),a.Ga.push(n(void 0)?x(b,void 0):b))}Q.prototype.L=function(){if(this.Ga)for(;this.Ga.length;)this.Ga.shift()()};function ri(a){return a&&"function"==typeof a.ea?a.ea():!1}function qi(a){a&&"function"==typeof a.dispose&&a.dispose()}
function si(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ga(d)?si.apply(null,d):qi(d)}};function ti(){Q.call(this);this.j=[];this.ic={}}B(ti,Q);f=ti.prototype;f.At=1;f.Kj=0;f.subscribe=function(a,b,c){var d=this.ic[a];d||(d=this.ic[a]=[]);var e=this.At;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.At=e+3;d.push(e);return e};f.unsubscribe=function(a,b,c){if(a=this.ic[a]){var d=this.j;if(a=G(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Kb(a)}return!1};
f.Kb=function(a){if(0!=this.Kj)return this.k||(this.k=[]),this.k.push(a),!1;var b=this.j[a];if(b){var c=this.ic[b];c&&lb(c,a);delete this.j[a];delete this.j[a+1];delete this.j[a+2]}return!!b};f.publish=function(a,b){var c=this.ic[a];if(c){this.Kj++;for(var d=Array(arguments.length-1),e=1,g=arguments.length;e<g;e++)d[e-1]=arguments[e];e=0;for(g=c.length;e<g;e++){var h=c[e];this.j[h+1].apply(this.j[h+2],d)}this.Kj--;if(this.k&&0==this.Kj)for(;c=this.k.pop();)this.Kb(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.ic[a];b&&(E(b,this.Kb,this),delete this.ic[a])}else this.j.length=0,this.ic={}};f.Qa=function(a){if(a){var b=this.ic[a];return b?b.length:0}a=0;for(b in this.ic)a+=this.Qa(b);return a};f.L=function(){ti.I.L.call(this);delete this.j;delete this.ic;delete this.k};var ui=r("yt.pubsub.instance_")||new ti;ti.prototype.subscribe=ti.prototype.subscribe;ti.prototype.unsubscribeByKey=ti.prototype.Kb;ti.prototype.publish=ti.prototype.publish;ti.prototype.clear=ti.prototype.clear;q("yt.pubsub.instance_",ui,void 0);var vi=r("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",vi,void 0);var wi=r("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",wi,void 0);var xi=r("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",xi,void 0);
var yi=r("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",yi,void 0);function zi(a,b,c){var d=Ai();if(d){var e=d.subscribe(a,function(){if(!yi||yi!=e){var d=arguments,h=function(){vi[e]&&b.apply(c||window,d)};try{xi[a]?h():M(h,0)}catch(k){Gf(k)}}},c);vi[e]=!0;wi[a]||(wi[a]=[]);wi[a].push(e);return e}return 0}function Bi(a){var b=Ai();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),E(a,function(a){b.unsubscribeByKey(a);delete vi[a]}))}
function Ci(a,b){var c=Ai();c&&c.publish.apply(c,arguments)}function Di(a,b){xi[a]=!0;var c=Ai();c&&c.publish.apply(c,arguments);xi[a]=!1}function Ei(a){wi[a]&&(a=wi[a],E(a,function(a){vi[a]&&delete vi[a]}),a.length=0)}function Fi(a){var b=Ai();if(b)if(b.clear(a),a)Ei(a);else for(var c in wi)Ei(c)}function Ai(){return r("yt.pubsub.instance_")};function Gi(){};function Hi(){}B(Hi,Gi);Hi.prototype.Qa=function(){var a=0;ge(this.$b(!0),function(){a++});return a};Hi.prototype.clear=function(){var a=ie(this.$b(!0)),b=this;E(a,function(a){b.remove(a)})};function Ii(a){this.j=a}B(Ii,Hi);f=Ii.prototype;f.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};f.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";}};f.get=function(a){a=this.j.getItem(a);if(!w(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.j.removeItem(a)};
f.Qa=function(){return this.j.length};f.$b=function(a){var b=0,c=this.j,d=new ee;d.next=function(){if(b>=c.length)throw de;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!w(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.j.clear()};f.key=function(a){return this.j.key(a)};function Ji(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}B(Ji,Ii);function Ki(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}B(Ki,Ii);function Li(a){this.j=a}Li.prototype.set=function(a,b){n(b)?this.j.set(a,$f(b)):this.j.remove(a)};Li.prototype.get=function(a){var b;try{b=this.j.get(a)}catch(c){return}if(null!==b)try{return Yf(b)}catch(d){throw"Storage: Invalid value was encountered";}};Li.prototype.remove=function(a){this.j.remove(a)};function Mi(a){this.j=a}B(Mi,Li);function Ni(a){this.data=a}function Oi(a){return!n(a)||a instanceof Ni?a:new Ni(a)}Mi.prototype.set=function(a,b){Mi.I.set.call(this,a,Oi(b))};Mi.prototype.k=function(a){a=Mi.I.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Mi.prototype.get=function(a){if(a=this.k(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function Pi(a){this.j=a}B(Pi,Mi);function Qi(a){var b=a.creation;a=a.expiration;return!!a&&a<z()||!!b&&b>z()}Pi.prototype.set=function(a,b,c){if(b=Oi(b)){if(c){if(c<z()){Pi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=z()}Pi.I.set.call(this,a,b)};Pi.prototype.k=function(a,b){var c=Pi.I.k.call(this,a);if(c)if(!b&&Qi(c))Pi.prototype.remove.call(this,a);else return c};function Ri(a){this.j=a}B(Ri,Pi);function Si(a,b){var c=[];ge(b,function(a){var b;try{b=Ri.prototype.k.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?Qi(b)&&c.push(a):c.push(a)},a);return c}function Ti(a,b){var c=Si(a,b);E(c,function(a){Ri.prototype.remove.call(this,a)},a)}function Ui(){var a=Vi;Ti(a,a.j.$b(!0))};function Wi(a,b,c){var d=c&&0<c?c:0;c=d?z()+1E3*d:0;if((d=d?Vi:Xi)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function Yi(a){if(!Xi&&!Vi||!window.JSON)return null;var b;try{b=Xi.get(a)}catch(c){}if(!w(b))try{b=Vi.get(a)}catch(d){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function Zi(a){Xi&&Xi.remove(a);Vi&&Vi.remove(a)}var Vi,$i=new Ji;Vi=$i.isAvailable()?new Ri($i):null;var Xi,aj=new Ki;Xi=aj.isAvailable()?new Ri(aj):null;var bj=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo"];function cj(a,b){a==bj.length?b(null):dj(bj[a],function(c){c?(c=bj[a],Wi("yt-remote-cast-last-extension",c),b(c)):cj(a+1,b)})}function ej(a){return"chrome-extension://"+a+"/cast_sender.js"}
function dj(a,b){var c=new XMLHttpRequest;c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};c.onerror=function(){b(!1)};try{c.open("GET",ej(a),!0),c.send()}catch(d){b(!1)}}
function fj(a){window.__onGCastApiAvailable=a;gj(function(b){if(b){ei("bootstrap","Found cast extension: "+b);q("chrome.cast.extensionId",b,void 0);var c=document.createElement("script");c.src=ej(b);c.onerror=function(){hj();Zi("yt-remote-cast-last-extension");a(!1,"Extension JS failed to load.")};(document.head||document.documentElement).appendChild(c)}else ei("bootstrap","No cast extension found"),a(!1,"No cast extension found")})}
function hj(){window.__onGCastApiAvailable&&delete window.__onGCastApiAvailable}function gj(a){var b=Yi("yt-remote-cast-last-extension");b?a(b):cj(0,a)};var ij={lK:"ska",TJ:"que",sJ:"mus",iK:"sus"};function jj(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}};function kj(a,b){for(var c=a.split(b),d={},e=0,g=c.length;e<g;e++){var h=c[e].split("=");if(1==h.length&&h[0]||2==h.length){var k=wa(h[0]||""),h=wa(h[1]||"");k in d?fa(d[k])?qb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function lj(a,b){var c=[];Eb(a,function(a,b){var g=va(b),h;fa(a)?h=a:h=[a];E(h,function(a){""==a?c.push(g):c.push(g+"="+va(a))})});return c.join(b)}function mj(a){"?"==a.charAt(0)&&(a=a.substr(1));return kj(a,"&")}
function nj(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),mj(1<a.length?a[1]:a[0])):{}}var oj=we;function pj(a){var b=ue(a);a=b[1];var c=b[2],d=b[3],b=b[4],e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e}function qj(a,b){var c=a.split("#",2);a=c[0];var c=1<c.length?"#"+c[1]:"",d=a.split("?",2);a=d[0];var d=mj(d[1]||""),e;for(e in b)d[e]=b[e];return Ee(a,d)+c}
function rj(){var a;a||(a=document.location.href);a=ue(a)[1]||null;return null!==a&&"https"==a};var sj=null;"undefined"!=typeof XMLHttpRequest?sj=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(sj=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function tj(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}};function uj(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Df(b)(l)}var l=sj&&sj();if(!("open"in l))return null;"onloadend"in l?l.addEventListener("loadend",k,!1):l.onreadystatechange=k;c=(c||"GET").toUpperCase();d=d||"";l.open(c,a,!0);g&&(l.responseType=g);h&&(l.withCredentials=!0);g="POST"==c;if(e=vj(a,e))for(var p in e)l.setRequestHeader(p,e[p]),"content-type"==p.toLowerCase()&&(g=!1);g&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l}
function vj(a,b){b=b||{};for(var c in wj){var d=Cf(wj[c]),e;if(e=d){e=a;var g=void 0;g=window.location.href;var h=ue(e)[1]||null,k=oj(e);h&&k?(e=ue(e),g=ue(g),e=e[3]==g[3]&&e[1]==g[1]&&e[4]==g[4]):e=k?oj(g)==k&&(Number(ue(g)[4]||null)||null)==(Number(ue(e)[4]||null)||null):!0;e||(e=c,g=Cf("CORS_HEADER_WHITELIST")||{},e=(h=oj(a))?(g=g[h])?H(g,e):!1:!0)}e&&(b[c]=d)}return b}function xj(a,b){b.method="POST";b.yb||(b.yb={});yj(a,b)}
function zj(a,b){var c=Cf("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.pH&&(!oj(a)||oj(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.yb&&b.yb[c])}
function yj(a,b){var c=b.format||"JSON";b.oH&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=Cf("XSRF_FIELD_NAME"),e=Cf("XSRF_TOKEN"),g=b.ze;g&&(g[d]&&delete g[d],a=qj(a,g));var h=b.lz||"",g=b.yb;zj(a,b)&&(g||(g={}),g[d]=e);g&&w(h)&&(d=mj(h),Zb(d,g),h=Ce(d));var k=!1,l,p=uj(a,function(a){if(!k){k=!0;l&&N(l);var d=tj(a),e=null;if(d||400<=a.status&&500>a.status)e=Aj(c,a);if(d)t:{switch(c){case "XML":d=0==parseInt(e&&e.return_code,
10);break t;case "RAW":d=!0;break t}d=!!e}var e=e||{},g=b.context||m;d?b.$a&&b.$a.call(g,a,e):b.onError&&b.onError.call(g,a,e);b.Lb&&b.Lb.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.te&&0<b.timeout&&(l=M(function(){k||(k=!0,p.abort(),N(l),b.te.call(b.context||m,p))},b.timeout));return p}
function Aj(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=Zf(d));break;case "XML":if(d=(d=b.responseXML)?Bj(d):null)c={},E(d.getElementsByTagName("*"),function(a){c[a.tagName]=Cj(a)})}return c}function Bj(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Cj(a){var b="";E(a.childNodes,function(a){b+=a.nodeValue});return b}
var Dj={html5_ajax:"action_get_html5_token",watch_actions_ajax:"action_get_watch_actions_token",addto_ajax:"action_get_wl_token",playlist_video_ajax:"action_get_html5_wl_token"},Ej={html5_ajax:"html5_ajax_token",watch_actions_ajax:"watch_actions_ajax_token",addto_ajax:"addto_ajax_token",playlist_video_ajax:"playlist_video_ajax_token"};
function Fj(a,b,c,d){if(Cf("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=pj(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Dj.watch_actions_ajax]=1;yj(e,{format:"RAW",method:"GET",ze:g,Lb:function(a){var b=mj(a.responseText);b[Ej.watch_actions_ajax]?c&&c():d&&d(a,b)}})}}var wj={"X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Timestamp":"PAGE_BUILD_TIMESTAMP","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};function Gj(a){this.port=this.o="";this.j="/api/lounge";this.k=!0;a=a||document.location.href;var b=Number(ue(a)[4]||null)||null||"";b&&(this.port=":"+b);this.o=we(a)||"";a=Kc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Oa(a,"10.0")&&(this.k=!1))}function Hj(a,b,c,d){var e=a.j;if(n(d)?d:a.k)e="https://"+a.o+a.port+a.j;return Ee(e+b,c||{})}
Gj.prototype.sendRequest=function(a,b,c,d,e,g,h){a={format:g?"RAW":"JSON",method:a,context:this,timeout:5E3,withCredentials:!!h,$a:y(this.B,d,!g),onError:y(this.A,e),te:y(this.C,e)};c&&(a.yb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return yj(b,a)};Gj.prototype.B=function(a,b,c,d){b?a(d):a({text:c.responseText})};Gj.prototype.A=function(a,b){a(Error("Request error: "+b.status))};Gj.prototype.C=function(a){a(Error("request timed out"))};function Ij(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Ij.prototype.id="";Ij.prototype.name="";Ij.prototype.activityId="";Ij.prototype.status="UNKNOWN";Ij.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};function Jj(){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)})}function Kj(a){return F(a,function(a){return{key:a.id,name:a.name}})}function Lj(a){return F(a,function(a){return new Ij(a)})}function Mj(a,b){return G(a,function(a){return a.id==b})}function Nj(a,b){return G(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function Oj(a,b){return G(a,function(a){return ii(a,b)})};function S(){Q.call(this);this.P=new ti;R(this,this.P)}B(S,Q);S.prototype.subscribe=function(a,b,c){return this.ea()?0:this.P.subscribe(a,b,c)};S.prototype.unsubscribe=function(a,b,c){return this.ea()?!1:this.P.unsubscribe(a,b,c)};S.prototype.Kb=function(a){return this.ea()?!1:this.P.Kb(a)};S.prototype.publish=function(a,b){return this.ea()?!1:this.P.publish.apply(this.P,arguments)};function Pj(a){S.call(this);this.C=a;this.screens=[]}B(Pj,S);f=Pj.prototype;f.ac=function(){return this.screens};f.contains=function(a){return!!Nj(this.screens,a)};f.get=function(a){return a?Oj(this.screens,a):null};function Qj(a,b){var c=a.get(b.uuid)||a.get(b.id);if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.screens.push(b);return!0}
function Rj(a,b){var c=a.screens.length!=b.length;a.screens=bb(a.screens,function(a){return!!Nj(b,a)});for(var d=0,e=b.length;d<e;d++)c=Qj(a,b[d])||c;return c}function Sj(a,b){var c=a.screens.length;a.screens=bb(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});return a.screens.length<c}f.info=function(a){ei(this.C,a)};f.warn=function(a){ei(this.C,a)};function Tj(a,b,c,d){S.call(this);this.D=a;this.C=b;this.A=c;this.B=d;this.o=0;this.j=null;this.k=NaN}B(Tj,S);var Uj=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=Tj.prototype;f.start=function(){!this.j&&isNaN(this.k)&&this.Nr()};f.stop=function(){this.j&&(this.j.abort(),this.j=null);isNaN(this.k)||(N(this.k),this.k=NaN)};f.L=function(){this.stop();Tj.I.L.call(this)};
f.Nr=function(){this.k=NaN;this.j=yj(Hj(this.D,"/pairing/get_screen"),{method:"POST",yb:{pairing_code:this.C},timeout:5E3,$a:x(this.UB,this),onError:x(this.TB,this),te:x(this.VB,this)})};f.UB=function(a,b){this.j=null;var c=b.screen||{};c.dialId=this.A;c.name=this.B;this.publish("pairingComplete",new hi(c))};
f.TB=function(a){this.j=null;a.status&&404==a.status?this.o>=Uj.length?this.publish("pairingFailed",Error("DIAL polling timed out")):(a=Uj[this.o],this.k=M(x(this.Nr,this),a),this.o++):this.publish("pairingFailed",Error("Server error "+a.status))};f.VB=function(){this.j=null;this.publish("pairingFailed",Error("Server not responding"))};function Vj(a,b){this.dg=a;this.Re=b+"::"}B(Vj,Hi);f=Vj.prototype;f.dg=null;f.Re="";f.set=function(a,b){this.dg.set(this.Re+a,b)};f.get=function(a){return this.dg.get(this.Re+a)};f.remove=function(a){this.dg.remove(this.Re+a)};f.$b=function(a){var b=this.dg.$b(!0),c=this,d=new ee;d.next=function(){for(var d=b.next();d.substr(0,c.Re.length)!=c.Re;)d=b.next();return a?d.substr(c.Re.length):c.dg.get(d)};return d};function Wj(a){var b=new Ji;return b.isAvailable()?a?new Vj(b,a):b:null};function Xj(a){this.j=new je;if(a){a=pe(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function Yj(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ka(a):b.substr(0,1)+a}f=Xj.prototype;f.Qa=function(){return this.j.Qa()};f.add=function(a){this.j.set(Yj(a),a)};f.removeAll=function(a){a=pe(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.j.remove(Yj(a))};f.clear=function(){this.j.clear()};f.isEmpty=function(){return this.j.isEmpty()};
f.contains=function(a){return le(this.j,Yj(a))};f.La=function(){return this.j.La()};f.clone=function(){return new Xj(this)};f.equals=function(a){return this.Qa()==oe(a)&&Zj(this,a)};function Zj(a,b){var c=oe(b);if(a.Qa()>c)return!1;!(b instanceof Xj)&&5<c&&(b=new Xj(b));return se(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.cg?c.cg(a):ga(c)||w(c)?H(c,a):Kb(c,a)})}f.$b=function(){return this.j.$b(!1)};function ak(a){a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.wu=a.user||"",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new Xj(bb((a.capabilities||"").split(","),y(Jb,ij))))}ak.prototype.id="";ak.prototype.name="";f=ak.prototype;f.app="";f.type="REMOTE_CONTROL";f.wu="";f.avatar="";f.theme="u";f.equals=function(a){return a?this.id==a.id:!1};function bk(a){this.j=a}var ck=/\s*;\s*/;f=bk.prototype;f.set=function(a,b,c,d,e,g){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:"";g=g?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(z()+1E3*c)).toUTCString();this.j.cookie=a+"="+b+e+d+c+g};
f.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(ck),e=0,g;g=d[e];e++){if(0==g.lastIndexOf(c,0))return g.substr(c.length);if(g==a)return""}return b};f.remove=function(a,b,c){var d=n(this.get(a));this.set(a,"",0,b,c);return d};f.Ka=function(){return dk(this).keys};f.La=function(){return dk(this).values};f.isEmpty=function(){return!this.j.cookie};f.Qa=function(){return this.j.cookie?(this.j.cookie||"").split(ck).length:0};
f.cg=function(a){for(var b=dk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=dk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function dk(a){a=(a.j.cookie||"").split(ck);for(var b=[],c=[],d,e,g=0;e=a[g];g++)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 ek=new bk(document);ek.k=3950;function fk(a,b){ek.set(""+a,b,void 0,"/","youtube.com")};var gk;function hk(){var a=ik(),b=jk();H(a,b);kk()&&Bb(a,b);a=lk(a);if(ib(a))try{a="remote_sid",ek.remove(""+a,"/","youtube.com")}catch(c){}else try{fk("remote_sid",a.join(","))}catch(d){}}function ik(){var a=Yi("yt-remote-connected-devices")||[];wb(a);return a}function lk(a){if(ib(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return F(a,function(a,b){return 0==b?a:a.substring(c.length)})}function mk(a){Wi("yt-remote-connected-devices",a,86400)}
function jk(){if(nk)return nk;var a=Yi("yt-remote-device-id");a||(a=Jj(),Wi("yt-remote-device-id",a,31536E3));for(var b=ik(),c=1,d=a;H(b,d);)c++,d=a+"#"+c;return nk=d}function ok(){return Yi("yt-remote-session-browser-channel")}function kk(){return Yi("yt-remote-session-screen-id")}
function pk(a){5<a.length&&(a=a.slice(a.length-5));var b=F(qk(),function(a){return a.loungeToken}),c=F(a,function(a){return a.loungeToken});eb(c,function(a){return!H(b,a)})&&rk();Wi("yt-remote-local-screens",a,31536E3)}function qk(){return Yi("yt-remote-local-screens")||[]}function rk(){Wi("yt-remote-lounge-token-expiration",!0,86400)}function sk(a){Wi("yt-remote-online-screens",a,60)}function tk(){return Yi("yt-remote-online-dial-devices")||[]}
function uk(a,b){Wi("yt-remote-session-browser-channel",a);Wi("yt-remote-session-screen-id",b);var c=ik(),d=jk();H(c,d)||c.push(d);mk(c);hk()}function vk(a){a||(Zi("yt-remote-session-screen-id"),Zi("yt-remote-session-video-id"));hk();a=ik();lb(a,jk());mk(a)}function wk(){if(!gk){var a=Wj();a&&(gk=new Li(a))}return gk?!!gk.get("yt-remote-use-staging-server"):!1}var nk="";function xk(a){Pj.call(this,"LocalScreenService");this.k=a;this.j=NaN;yk(this);this.info("Initializing with "+oi(this.screens))}B(xk,Pj);f=xk.prototype;f.start=function(){yk(this)&&this.publish("screenChange");!Yi("yt-remote-lounge-token-expiration")&&zk(this);N(this.j);this.j=M(x(this.start,this),1E4)};f.add=function(a,b){yk(this);Qj(this,a);Ak(this,!1);this.publish("screenChange");b(a);a.token||zk(this)};f.remove=function(a,b){var c=yk(this);Sj(this,a)&&(Ak(this,!1),c=!0);b(a);c&&this.publish("screenChange")};
f.Zj=function(a,b,c,d){var e=yk(this),g=this.get(a.id);g?(g.name!=b&&(g.name=b,Ak(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.publish("screenChange")};f.L=function(){N(this.j);xk.I.L.call(this)};function zk(a){if(a.screens.length){var b=F(a.screens,function(a){return a.id}),c=Hj(a.k,"/pairing/get_lounge_token_batch");a.k.sendRequest("POST",c,{screen_ids:b.join(",")},x(a.bF,a),x(a.aF,a))}}
f.bF=function(a){yk(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],g=this.get(e.screenId);g&&(g.token=e.loungeToken,--b)}Ak(this,!b);b&&this.warn("Missed "+b+" lounge tokens.")};f.aF=function(a){this.warn("Requesting lounge tokens failed: "+a)};function yk(a){var b=mi(qk()),b=bb(b,function(a){return!a.uuid});return Rj(a,b)}function Ak(a,b){pk(F(a.screens,ki));b&&rk()};function Bk(a,b){S.call(this);this.B=b;for(var c=Yi("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.B(),g=0,h=e.length;g<h;++g){var k=e[g].id;d[k]=H(c,k)}this.j=d;this.C=a;this.o=this.A=NaN;this.k=null;Ck("Initialized with "+$f(this.j))}B(Bk,S);f=Bk.prototype;f.start=function(){var a=parseInt(Yi("yt-remote-fast-check-period")||"0",10);(this.A=z()-144E5<a?0:a)?Dk(this):(this.A=z()+3E5,Wi("yt-remote-fast-check-period",this.A),this.un())};f.isEmpty=function(){return Rb(this.j)};
f.update=function(){Ck("Updating availability on schedule.");var a=this.B(),b=Fb(this.j,function(b,d){return b&&!!Oj(a,d)},this);Ek(this,b)};function Fk(a,b,c){var d=Hj(a.C,"/pairing/get_screen_availability");a.C.sendRequest("POST",d,{lounge_token:b.token},x(function(a){a=a.screens||[];for(var d=0,h=a.length;d<h;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),x(function(){c(!1)},a))}f.L=function(){N(this.o);this.o=NaN;this.k&&(this.k.abort(),this.k=null);Bk.I.L.call(this)};
function Ek(a,b){var c;t:if(Ib(b)!=Ib(a.j))c=!1;else{c=Mb(b);for(var d=0,e=c.length;d<e;++d)if(!a.j[c[d]]){c=!1;break t}c=!0}c||(Ck("Updated online screens: "+$f(a.j)),a.j=b,a.publish("screenChange"));Gk(a)}function Dk(a){isNaN(a.o)||N(a.o);a.o=M(x(a.un,a),0<a.A&&a.A<z()?2E4:1E4)}
f.un=function(){N(this.o);this.o=NaN;this.k&&this.k.abort();var a=Hk(this);if(Ib(a)){var b=Hj(this.C,"/pairing/get_screen_availability"),c={lounge_token:Mb(a).join(",")};this.k=this.C.sendRequest("POST",b,c,x(this.mE,this,a),x(this.lE,this))}else Ek(this,{}),Dk(this)};
f.mE=function(a,b){this.k=null;var c=Mb(Hk(this));if(zb(c,Mb(a))){for(var c=b.screens||[],d={},e=0,g=c.length;e<g;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Ek(this,d);Dk(this)}else this.Pa("Changing Screen set during request."),this.un()};f.lE=function(a){this.Pa("Screen availability failed: "+a);this.k=null;Dk(this)};function Ck(a){ei("OnlineScreenService",a)}f.Pa=function(a){ei("OnlineScreenService",a)};
function Hk(a){var b={};E(a.B(),function(a){a.token?b[a.token]=a.id:this.Pa("Requesting availability of screen w/o lounge token.")});return b}function Gk(a){var b=Mb(Fb(a.j,function(a){return a}));wb(b);b.length?Wi("yt-remote-online-screen-ids",b.join(","),60):Zi("yt-remote-online-screen-ids");a=bb(a.B(),function(a){return!!this.j[a.id]},a);sk(F(a,ki))};function Ik(a){Pj.call(this,"ScreenService");this.B=a;this.j=this.k=null;this.o=[];this.A={};Jk(this)}B(Ik,Pj);f=Ik.prototype;f.start=function(){this.k.start();this.j.start();this.screens.length&&(this.publish("screenChange"),this.j.isEmpty()||this.publish("onlineScreenChange"))};f.add=function(a,b,c){this.k.add(a,b,c)};f.remove=function(a,b,c){this.k.remove(a,b,c);this.j.update()};
f.Zj=function(a,b,c,d){this.k.contains(a)?this.k.Zj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,this.warn(a),d(Error(a)))};f.ac=function(a){return a?this.screens:ob(this.screens,bb(this.o,function(a){return!this.contains(a)},this))};f.Ss=function(){return bb(this.ac(!0),function(a){return!!this.j.j[a.id]},this)};
function Kk(a,b,c,d,e,g){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.A[b]);var h=a.ac();if(h=(c?Oj(h,c):null)||Oj(h,b)){h.uuid=b;var k=Lk(a,h);Fk(a.j,k,function(a){e(a?k:null)})}else c?Mk(a,c,x(function(a){var g=Lk(this,new hi({name:d,screenId:c,loungeToken:a,dialId:b||""}));Fk(this.j,g,function(a){e(a?g:null)})},a),g):e(null)}
f.ms=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var g=new Tj(this.B,a,b,c);g.subscribe("pairingComplete",x(function(a){qi(g);d(Lk(this,a))},this));g.subscribe("pairingFailed",function(a){qi(g);e(a)});g.start();return x(g.stop,g)};function Nk(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}f.nF=function(a,b){for(var c=2,d=b(a,c);Nk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
f.$G=function(a,b,c,d){yj(Hj(this.B,"/pairing/get_screen"),{method:"POST",yb:{pairing_code:a},timeout:5E3,$a:x(function(a,d){var h=new hi(d.screen||{});if(!h.name||Nk(this,h.name))h.name=this.nF(h.name,b);c(Lk(this,h))},this),onError:x(function(a){d(Error("pairing request failed: "+a.status))},this),te:x(function(){d(Error("pairing request timed out."))},this)})};f.L=function(){qi(this.k);qi(this.j);Ik.I.L.call(this)};
function Mk(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={yb:{screen_ids:b},method:"POST",context:a,$a:function(a,e){var k=e&&e.screens||[];k[0]&&k[0].screenId==b?c(k[0].loungeToken):d(Error("Missing lounge token in token response"))},onError:function(){d(Error("Request screen lounge token failed"))}};yj(Hj(a.B,"/pairing/get_lounge_token_batch"),e)}
function Ok(a){a.screens=a.k.ac();var b=a.A,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+oi(a.screens))}f.yA=function(){Ok(this);this.publish("screenChange");this.j.update()};
function Jk(a){Pk(a);a.k=new xk(a.B);a.k.subscribe("screenChange",x(a.yA,a));Ok(a);a.o=mi(Yi("yt-remote-automatic-screen-cache")||[]);Pk(a);a.info("Initializing automatic screens: "+oi(a.o));a.j=new Bk(a.B,x(a.ac,a,!0));a.j.subscribe("screenChange",x(function(){this.publish("onlineScreenChange")},a))}
function Lk(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=Oj(a.o,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.o.push(b),Wi("yt-remote-automatic-screen-cache",F(a.o,ki)));Pk(a);a.A[b.uuid]=b.id;Wi("yt-remote-device-id-map",a.A,31536E3);return b}function Pk(a){a.A=Yi("yt-remote-device-id-map")||{}}Ik.prototype.dispose=Ik.prototype.dispose;function Qk(a,b,c){S.call(this);this.K=c;this.G=a;this.k=b;this.o=null}B(Qk,S);function Rk(a,b){a.o=b;a.publish("sessionScreen",a.o)}f=Qk.prototype;f.Qb=function(a){this.ea()||(a&&this.warn(""+a),this.o=null,this.publish("sessionScreen",null))};f.info=function(a){ei(this.K,a)};f.warn=function(a){ei(this.K,a)};f.Ht=function(){return null};
f.Dm=function(a){var b=this.k;a?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,x(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),x(function(){this.warn("Failed to update receiver status for: "+b.friendlyName)},this))};f.L=function(){this.Dm("");Qk.I.L.call(this)};function Sk(a,b){Qk.call(this,a,b,"CastSession");this.j=null;this.B=0;this.A=null;this.D=x(this.uC,this);this.C=x(this.tC,this);this.B=M(x(function(){Tk(this,null)},this),12E4)}B(Sk,Qk);f=Sk.prototype;
f.Wm=function(a){if(this.j){if(this.j==a)return;this.warn("Overriding cast sesison with new session object");this.j.removeUpdateListener(this.D);this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C)}this.j=a;this.j.addUpdateListener(this.D);this.j.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.C);this.A&&Uk(this);Vk(this,"getMdxSessionStatus")};f.Mf=function(a){this.info("launchWithParams: "+$f(a));this.A=a;this.j&&Uk(this)};
f.stop=function(){this.j?this.j.stop(x(function(){this.Qb()},this),x(function(){this.Qb(Error("Failed to stop receiver app."))},this)):this.Qb(Error("Stopping cast device witout session."))};f.Dm=u;f.L=function(){this.info("disposeInternal");N(this.B);this.B=0;this.j&&(this.j.removeUpdateListener(this.D),this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C));this.j=null;Sk.I.L.call(this)};
function Uk(a){var b=a.A.videoId||a.A.videoIds[a.A.index];b&&Vk(a,"flingVideo",{videoId:b,currentTime:a.A.currentTime||0});a.A=null}function Vk(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+$f(c));var d={};d.type=b;c&&(d.data=c);a.j?a.j.sendMessage("urn:x-cast:com.google.youtube.mdx",d,u,x(function(){this.warn("Failed to send message: "+b+".")},a)):a.warn("Sending yt message without session: "+$f(d))}
f.tC=function(a,b){if(!this.ea())if(b){var c=Zf(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+$f(c));switch(d){case "mdxSessionStatus":Tk(this,c.screenId);break;default:this.warn("Unknown youtube message: "+d)}}else this.warn("Unable to parse message.")}else this.warn("No data in message.")};
function Tk(a,b){N(a.B);b?(a.info("onConnectedScreenId_: Received screenId: "+b),a.o&&a.o.id==b||Kk(a.G,a.k.label,b,a.k.friendlyName,x(function(a){a?Rk(this,a):this.Qb(Error("Unable to fetch screen."))},a),x(a.Qb,a))):a.Qb(Error("Waiting for session status timed out."))}f.Ht=function(){return this.j};f.uC=function(a){this.ea()||a||(this.warn("Cast session died."),this.Qb())};function Wk(a,b){Qk.call(this,a,b,"DialSession");this.B=this.F=null;this.H="";this.A=null;this.D=u;this.C=NaN;this.J=x(this.GA,this);this.j=u}B(Wk,Qk);f=Wk.prototype;f.Wm=function(a){this.B=a;this.B.addUpdateListener(this.J)};f.Mf=function(a){this.A=a;this.D()};f.stop=function(){this.j();this.j=u;N(this.C);this.B?this.B.stop(x(this.Qb,this,null),x(this.Qb,this,"Failed to stop DIAL device.")):this.Qb()};
f.L=function(){this.j();this.j=u;N(this.C);this.B&&this.B.removeUpdateListener(this.J);this.B=null;Wk.I.L.call(this)};function Xk(a){a.j=a.G.ms(a.H,a.k.label,a.k.friendlyName,x(function(a){this.j=u;Rk(this,a)},a),x(function(a){this.j=u;this.Qb(a)},a))}f.GA=function(a){this.ea()||a||(this.warn("DIAL session died."),this.j(),this.j=u,this.Qb())};
function Yk(a){var b={};b.pairingCode=a.H;if(a.A){var c=a.A.index||0,d=a.A.currentTime||0;b.v=a.A.videoId||a.A.videoIds[c];b.t=d}wk()&&(b.env_useStageMdx=1);return Ce(b)}f.ym=function(a){this.H=Jj();if(this.A){var b=new chrome.cast.DialLaunchResponse(!0,Yk(this));a(b);Xk(this)}else this.D=x(function(){N(this.C);this.D=u;this.C=NaN;var b=new chrome.cast.DialLaunchResponse(!0,Yk(this));a(b);Xk(this)},this),this.C=M(x(function(){this.D()},this),100)};
f.DA=function(a,b){Kk(this.G,this.F.receiver.label,a,this.k.friendlyName,x(function(a){a&&a.token?(Rk(this,a),b(new chrome.cast.DialLaunchResponse(!1))):this.ym(b)},this),x(function(a){this.warn("Failed to get DIAL screen: "+a);this.ym(b)},this))};function Zk(a,b){Qk.call(this,a,b,"ManualSession");this.j=M(x(this.Mf,this,null),150)}B(Zk,Qk);Zk.prototype.stop=function(){this.Qb()};Zk.prototype.Wm=u;Zk.prototype.Mf=function(){N(this.j);this.j=NaN;var a=Oj(this.G.ac(),this.k.label);a?Rk(this,a):this.Qb(Error("No such screen"))};Zk.prototype.L=function(){N(this.j);this.j=NaN;Zk.I.L.call(this)};function $k(a){S.call(this);this.k=a;this.j=null;this.B=!1;this.o=[];this.A=x(this.oz,this)}B($k,S);f=$k.prototype;
f.init=function(a,b){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest("233637DE");c.dialRequest=new chrome.cast.DialRequest("YouTube");var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new chrome.cast.ApiConfig(c,x(this.ht,this),x(this.XD,this),d,e);c.customDialLaunchCallback=x(this.WD,this);chrome.cast.initialize(c,x(function(){this.ea()||(chrome.cast.addReceiverActionListener(this.A),
ai(al),this.k.subscribe("onlineScreenChange",x(this.Dq,this)),this.o=bl(this),chrome.cast.setCustomReceivers(this.o,u,x(function(a){this.Pa("Failed to set initial custom receivers: "+$f(a))},this)),this.publish("yt-remote-cast2-availability-change",cl(this)),b(!0))},this),function(a){this.Pa("Failed to initialize API: "+$f(a));b(!1)})};
f.YG=function(a,b){dl("Setting connected screen ID: "+a+" -> "+b);if(this.j){var c=this.j.o;if(!a||c&&c.id!=a)dl("Unsetting old screen status: "+this.j.k.friendlyName),qi(this.j),this.j=null}if(a&&b){if(!this.j){c=Oj(this.k.ac(),a);if(!c){dl("setConnectedScreenStatus: Unknown screen.");return}var d=el(this,c);d||(dl("setConnectedScreenStatus: Connected receiver not custom..."),d=new chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=chrome.cast.ReceiverType.CUSTOM,this.o.push(d),chrome.cast.setCustomReceivers(this.o,
u,x(function(a){this.Pa("Failed to set initial custom receivers: "+$f(a))},this)));dl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);fl(this,new Zk(this.k,d),!0)}this.j.Dm(b)}else dl("setConnectedScreenStatus: no screen.")};function el(a,b){return b?G(a.o,function(a){return ii(b,a.label)},a):null}f.ZG=function(a){this.ea()?this.Pa("Setting connection data on disposed cast v2"):this.j?this.j.Mf(a):this.Pa("Setting connection data without a session")};
f.stopSession=function(){this.ea()?this.Pa("Stopping session on disposed cast v2"):this.j?(this.j.stop(),qi(this.j),this.j=null):dl("Stopping non-existing session")};f.requestSession=function(){chrome.cast.requestSession(x(this.ht,this),x(this.vG,this))};f.L=function(){this.k.unsubscribe("onlineScreenChange",x(this.Dq,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.A);di(al);qi(this.j);$k.I.L.call(this)};function dl(a){ei("Controller",a)}
f.Pa=function(a){ei("Controller",a)};function al(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)}function cl(a){return a.B||!!a.o.length||!!a.j}function fl(a,b,c){qi(a.j);(a.j=b)?(c?a.publish("yt-remote-cast2-receiver-resumed",b.k):a.publish("yt-remote-cast2-receiver-selected",b.k),b.subscribe("sessionScreen",x(a.Gr,a,b)),b.o?a.publish("yt-remote-cast2-session-change",b.o):c&&a.j.Mf(null)):a.publish("yt-remote-cast2-session-change",null)}
f.Gr=function(a,b){this.j==a&&(b||fl(this,null),this.publish("yt-remote-cast2-session-change",b))};
f.oz=function(a,b){if(!this.ea())if(a)switch(dl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.k.label!=a.label)dl("onReceiverAction_: Stopping active receiver: "+this.j.k.friendlyName),this.j.stop();else{dl("onReceiverAction_: Casting to active receiver.");this.j.o&&this.publish("yt-remote-cast2-session-change",this.j.o);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:fl(this,new Zk(this.k,a));break;case chrome.cast.ReceiverType.DIAL:fl(this,
new Wk(this.k,a));break;case chrome.cast.ReceiverType.CAST:fl(this,new Sk(this.k,a));break;default:this.Pa("Unknown receiver type: "+a.receiverType);return}break;case chrome.cast.ReceiverAction.STOP:this.j&&this.j.k.label==a.label?this.j.stop():this.Pa("Stopping receiver w/o session: "+a.friendlyName)}else this.Pa("onReceiverAction_ called without receiver.")};
f.WD=function(a){if(this.ea())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.Pa("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.j?this.j.k:null;if(!c||c.label!=b.label)return this.Pa("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=chrome.cast.ReceiverType.DIAL){if(this.j.o)return dl("Reselecting dial screen."),
this.publish("yt-remote-cast2-session-change",this.j.o),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.Pa('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);fl(this,new Wk(this.k,b))}b=this.j;b.F=a;return b.F.appState==chrome.cast.DialAppState.RUNNING?new Promise(x(b.DA,b,(b.F.extraData||{}).screenId||null)):new Promise(x(b.ym,b))};
f.ht=function(a){if(!this.ea()){dl("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.j)if(b.receiverType==chrome.cast.ReceiverType.CAST)dl("Got resumed cast session before resumed mdx connection."),fl(this,new Sk(this.k,b),!0);else{this.Pa("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.j.k,d=Oj(this.k.ac(),c.label);d&&ii(d,b.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType==
chrome.cast.ReceiverType.CAST&&(dl("onSessionEstablished_: manual to cast session change "+b.friendlyName),qi(this.j),this.j=new Sk(this.k,b),this.j.subscribe("sessionScreen",x(this.Gr,this,this.j)),this.j.Mf(null));this.j.Wm(a)}}};f.aH=function(){return this.j?this.j.Ht():null};f.vG=function(a){this.ea()||(this.Pa("Failed to estabilish a session: "+$f(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&fl(this,null))};
f.XD=function(a){dl("Receiver availability updated: "+a);if(!this.ea()){var b=cl(this);this.B=a==chrome.cast.ReceiverAvailability.AVAILABLE;cl(this)!=b&&this.publish("yt-remote-cast2-availability-change",cl(this))}};
function bl(a){var b=a.k.Ss(),c=a.j&&a.j.k;a=F(b,function(a){c&&ii(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,g=el(this,a);g?(g.label=b,g.friendlyName=a.name):(g=new chrome.cast.Receiver(b,a.name),g.receiverType=chrome.cast.ReceiverType.CUSTOM);return g},a);c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(c));return a}
f.Dq=function(){if(!this.ea()){var a=cl(this);this.o=bl(this);dl("Updating custom receivers: "+$f(this.o));chrome.cast.setCustomReceivers(this.o,u,x(function(){this.Pa("Failed to set custom receivers.")},this));var b=cl(this);b!=a&&this.publish("yt-remote-cast2-availability-change",b)}};$k.prototype.setLaunchParams=$k.prototype.ZG;$k.prototype.setConnectedScreenStatus=$k.prototype.YG;$k.prototype.stopSession=$k.prototype.stopSession;$k.prototype.getCastSession=$k.prototype.aH;
$k.prototype.requestSession=$k.prototype.requestSession;$k.prototype.init=$k.prototype.init;$k.prototype.dispose=$k.prototype.dispose;function gl(a,b,c){Uh?il(b)&&(jl(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?kl(a,c):fj(function(b,e){b?kl(a,c):(ll("Failed to load cast API: "+e),ml(!1),jl(!1),Zi("yt-remote-cast-available"),Zi("yt-remote-cast-receiver"),nl(),c(!1))})):hl("Cannot initialize because not running Chrome")}function nl(){hl("dispose");hj();var a=ol();a&&a.dispose();pl=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);ql(!1);Bi(rl);rl.length=0}function sl(){return!!Yi("yt-remote-cast-installed")}
function tl(){var a=Yi("yt-remote-cast-receiver");return a?a.friendlyName:null}function ul(){return sl()?ol()?pl.getCastSession():(ll("getCastSelector: Cast is not initialized."),null):(ll("getCastSelector: Cast API is not installed!"),null)}
function vl(){sl()?ol()?wl()?(hl("Requesting cast selector."),pl.requestSession()):(hl("Wait for cast API to be ready to request the session."),rl.push(zi("yt-remote-cast2-api-ready",vl))):ll("requestCastSelector: Cast is not initialized."):ll("requestCastSelector: Cast API is not installed!")}function xl(a){wl()?ol().setLaunchParams(a):ll("setLaunchParams called before ready.")}
function yl(){var a=zl();wl()?ol().setConnectedScreenStatus(a,"YouTube TV"):ll("setConnectedScreenStatus called before ready.")}var pl=null;function Al(a,b){pl.init(a,b)}
function il(a){var b=!1;if(!pl){var c=r("yt.mdx.remote.cloudview.instance_");c||(c=new $k(a),c.subscribe("yt-remote-cast2-availability-change",function(a){Wi("yt-remote-cast-available",a);Ci("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){hl("onReceiverSelected: "+a.friendlyName);Wi("yt-remote-cast-receiver",a);Ci("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){hl("onReceiverResumed: "+a.friendlyName);
Wi("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){hl("onSessionChange: "+ni(a));a||Zi("yt-remote-cast-receiver");Ci("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);pl=c}hl("cloudview.createSingleton_: "+b);return b}function ol(){pl||(pl=r("yt.mdx.remote.cloudview.instance_"));return pl}
function kl(a,b){ml(!0);jl(!1);Al(a,function(a){a?(ql(!0),Ci("yt-remote-cast2-api-ready")):(ll("Failed to initialize cast API."),ml(!1),Zi("yt-remote-cast-available"),Zi("yt-remote-cast-receiver"),nl());b(a)})}function hl(a){ei("cloudview",a)}function ll(a){ei("cloudview",a)}function ml(a){hl("setCastInstalled_ "+a);Wi("yt-remote-cast-installed",a)}function wl(){return!!r("yt.mdx.remote.cloudview.apiReady_")}function ql(a){hl("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)}
function jl(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)}var rl=[];function Bl(a,b){this.action=a;this.params=b||null};function Cl(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Dl(a){ei("CAST",a)}function El(a){var b=Fl();b&&b.logMessage&&b.logMessage(a)}function Gl(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Hl.length;)Hl.shift()()}
function Il(){if(!r("yt.mdx.remote.castv2_")&&!Jl&&(ib(Kl)&&qb(Kl,tk()),Cl())){var a=Fl();a?(a.removeReceiverListener("YouTube",Ll),a.addReceiverListener("YouTube",Ll),Dl("API initialized in the other binary")):(a=new cast.Api,Ml(a),a.addReceiverListener("YouTube",Ll),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){M(function(){window.location.reload(!0)},1E3)}),ai(El),Dl("API initialized"));Jl=!0}}
function Nl(){var a=Fl();a&&(Dl("API disposed"),di(El),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(u),a.removeReceiverListener("YouTube",Ll),Ml(null));Jl=!1;Hl=null;(a=uh(window,"message",Gl,!1))&&wh(a)}function Ol(a){var b=fb(Kl,function(b){return b.id==a.id});0<=b&&(Kl[b]={id:a.id,name:a.name,activityId:a.activityId,status:a.status})}
function Ll(a){a.length&&Dl("Updating receivers: "+$f(a));Pl(a);Ci("yt-remote-cast-device-list-update");E(Ql(),function(a){Rl(a.id)});E(a,function(a){if(a.isTabProjected){var c=Sl(a.id);Dl("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");M(function(){Ci("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function Tl(a,b){Dl("Updating "+a+" activity status: "+$f(b));var c=Sl(a);c?(b.activityId&&(c.activityId=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.activityId=""),Ol(c),Ci("yt-remote-cast-device-status-update",c)):Dl("Device not found")}function Ql(){Il();return Lj(Kl)}
function Pl(a){a=F(a,function(a){var c={id:a.id,name:Fa(a.name)};if(a=Sl(a.id))c.activityId=a.activityId,c.status=a.status;return c});jb(Kl);qb(Kl,a)}function Sl(a){var b=Ql();return G(b,function(b){return b.id==a})||null}function Rl(a){var b=Sl(a),c=Fl();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");Tl(a,b)})}
function Ul(a){Il();var b=Sl(a),c=Fl();c&&b&&b.activityId?(Dl("Stopping cast activity"),c.stopActivity(b.activityId,y(Tl,a))):Dl("Dropping cast activity stop")}function Fl(){return r("yt.mdx.remote.castapi.api_")}function Ml(a){q("yt.mdx.remote.castapi.api_",a,void 0)}var Jl=!1,Hl=null,Kl=r("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Kl,void 0);function Vl(){};function Wl(){this.j=z()}new Wl;Wl.prototype.set=function(a){this.j=a};Wl.prototype.get=function(){return this.j};function Xl(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.k=!1;this.Ls=!0}Xl.prototype.L=function(){};Xl.prototype.dispose=function(){};Xl.prototype.stopPropagation=function(){this.k=!0};Xl.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Ls=!1};function Yl(a){a.stopPropagation()};var Zl=!Pc||cd(9),$l=Pc&&!bd("9");!Rc||bd("528");Qc&&bd("1.9b")||Pc&&bd("8")||Oc&&bd("9.5")||Rc&&bd("528");Qc&&!bd("8")||Pc&&bd("9");var am="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function bm(a,b){Xl.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=this.Cn=this.Bn=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.j=this.state=null;a&&this.init(a,b)}B(bm,Xl);f=bm.prototype;
f.init=function(a,b){this.j=a;var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d?Qc&&(mg(d,"nodeName")||(d=null)):"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;Object.defineProperties?Object.defineProperties(this,{Bn:{configurable:!0,enumerable:!0,get:this.ut,set:this.xE},Cn:{configurable:!0,enumerable:!0,get:this.vt,set:this.yE}}):(this.Bn=this.ut(),this.Cn=this.vt());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.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;a.defaultPrevented&&this.preventDefault()};f.stopPropagation=function(){bm.I.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
f.preventDefault=function(){bm.I.preventDefault.call(this);var a=this.j;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,$l)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.NE=function(){return this.j};f.L=function(){};f.ut=function(){return Rc||void 0!==this.j.offsetX?this.j.offsetX:this.j.layerX};f.xE=function(a){Object.defineProperties(this,{Bn:{writable:!0,enumerable:!0,configurable:!0,value:a}})};
f.vt=function(){return Rc||void 0!==this.j.offsetY?this.j.offsetY:this.j.layerY};f.yE=function(a){Object.defineProperties(this,{Cn:{writable:!0,enumerable:!0,configurable:!0,value:a}})};var cm="closure_listenable_"+(1E6*Math.random()|0);function dm(a){return!(!a||!a[cm])}var em=0;function fm(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.Kf=!!d;this.Vc=e;this.key=++em;this.removed=this.Jj=!1}function gm(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Vc=null};function hm(a){this.src=a;this.j={};this.k=0}hm.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.j[g];a||(a=this.j[g]=[],this.k++);var h=im(a,b,d,e);-1<h?(b=a[h],c||(b.Jj=!1)):(b=new fm(b,this.src,g,!!d,e),b.Jj=c,a.push(b));return b};hm.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.j))return!1;var e=this.j[a];b=im(e,b,c,d);return-1<b?(gm(e[b]),mb(e,b),0==e.length&&(delete this.j[a],this.k--),!0):!1};
function jm(a,b){var c=b.type;if(!(c in a.j))return!1;var d=lb(a.j[c],b);d&&(gm(b),0==a.j[c].length&&(delete a.j[c],a.k--));return d}hm.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,gm(d[e]);delete this.j[c];this.k--}return b};function km(a,b,c,d,e){a=a.j[b.toString()];b=-1;a&&(b=im(a,c,d,e));return-1<b?a[b]:null}
function im(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.Kf==!!c&&g.Vc==d)return e}return-1};var lm="closure_lm_"+(1E6*Math.random()|0),mm={},nm=0;function om(a,b,c,d,e){if(fa(b)){for(var g=0;g<b.length;g++)om(a,b[g],c,d,e);return null}c=pm(c);return dm(a)?a.listen(b,c,d,e):qm(a,b,c,!1,d,e)}function qm(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=rm(a);k||(a[lm]=k=new hm(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=sm();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(tm(b.toString()),d);nm++;return c}
function sm(){var a=um,b=Zl?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}function vm(a,b,c,d,e){if(fa(b)){for(var g=0;g<b.length;g++)vm(a,b[g],c,d,e);return null}c=pm(c);return dm(a)?a.pd.add(String(b),c,!0,d,e):qm(a,b,c,!0,d,e)}function wm(a,b,c,d,e){if(fa(b))for(var g=0;g<b.length;g++)wm(a,b[g],c,d,e);else c=pm(c),dm(a)?a.Aa(b,c,d,e):a&&(a=rm(a))&&(b=km(a,b,c,!!d,e))&&xm(b)}
function xm(a){if(ha(a)||!a||a.removed)return!1;var b=a.src;if(dm(b))return jm(b.pd,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.Kf):b.detachEvent&&b.detachEvent(tm(c),d);nm--;(c=rm(b))?(jm(c,a),0==c.k&&(c.src=null,b[lm]=null)):gm(a);return!0}function tm(a){return a in mm?mm[a]:mm[a]="on"+a}function ym(a,b,c,d){var e=!0;if(a=rm(a))if(b=a.j[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Kf==c&&!g.removed&&(g=zm(g,d),e=e&&!1!==g)}return e}
function zm(a,b){var c=a.listener,d=a.Vc||a.src;a.Jj&&xm(a);return c.call(d,b)}
function um(a,b){if(a.removed)return!0;if(!Zl){var c=b||r("window.event"),d=new bm(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){t:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(h){g=!0}if(g||void 0==c.returnValue)c.returnValue=!0}c=[];for(g=d.currentTarget;g;g=g.parentNode)c.push(g);for(var g=a.type,k=c.length-1;!d.k&&0<=k;k--){d.currentTarget=c[k];var l=ym(c[k],g,!0,d),e=e&&l}for(k=0;!d.k&&k<c.length;k++)d.currentTarget=c[k],l=ym(c[k],g,!1,d),e=e&&l}return e}return zm(a,new bm(b,
this))}function rm(a){a=a[lm];return a instanceof hm?a:null}var Am="__closure_events_fn_"+(1E9*Math.random()>>>0);function pm(a){if(ia(a))return a;a[Am]||(a[Am]=function(b){return a.handleEvent(b)});return a[Am]};function T(){Q.call(this);this.pd=new hm(this);this.ma=this;this.X=null}B(T,Q);T.prototype[cm]=!0;f=T.prototype;f.di=function(a){this.X=a};f.addEventListener=function(a,b,c,d){om(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){wm(this,a,b,c,d)};
f.T=function(a){var b,c=this.X;if(c){b=[];for(var d=1;c;c=c.X)b.push(c),++d}c=this.ma;d=a.type||a;if(w(a))a=new Xl(a,c);else if(a instanceof Xl)a.target=a.target||c;else{var e=a;a=new Xl(d,c);Zb(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.k&&0<=h;h--)g=a.currentTarget=b[h],e=Bm(g,d,!0,a)&&e;a.k||(g=a.currentTarget=c,e=Bm(g,d,!0,a)&&e,a.k||(e=Bm(g,d,!1,a)&&e));if(b)for(h=0;!a.k&&h<b.length;h++)g=a.currentTarget=b[h],e=Bm(g,d,!1,a)&&e;return e};
f.L=function(){T.I.L.call(this);this.removeAllListeners();this.X=null};f.listen=function(a,b,c,d){return this.pd.add(String(a),b,!1,c,d)};f.Aa=function(a,b,c,d){return this.pd.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.pd?this.pd.removeAll(a):0};
function Bm(a,b,c,d){b=a.pd.j[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var h=b[g];if(h&&!h.removed&&h.Kf==c){var k=h.listener,l=h.Vc||h.src;h.Jj&&jm(a.pd,h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.Ls};function Cm(a,b){this.k=new bg(a);this.j=b?Zf:Yf}Cm.prototype.stringify=function(a){return ag(this.k,a)};Cm.prototype.parse=function(a){return this.j(a)};function Dm(a){this.k=0;this.o=a||100;this.j=[]}f=Dm.prototype;f.add=function(a){var b=this.j[this.k];this.j[this.k]=a;this.k=(this.k+1)%this.o;return b};f.get=function(a){a=Em(this,a);return this.j[a]};f.set=function(a,b){a=Em(this,a);this.j[a]=b};f.Qa=function(){return this.j.length};f.isEmpty=function(){return 0==this.j.length};f.clear=function(){this.k=this.j.length=0};f.La=function(){for(var a=this.Qa(),b=this.Qa(),c=[],a=this.Qa()-a;a<b;a++)c.push(this.get(a));return c};
f.Ka=function(){for(var a=[],b=this.Qa(),c=0;c<b;c++)a[c]=c;return a};f.cg=function(a){for(var b=this.Qa(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Em(a,b){if(b>=a.j.length)throw Error("Out of bounds exception");return a.j.length<a.o?b:(a.k+Number(b))%a.o};function Fm(a){m.setTimeout(function(){throw a;},0)}var Gm;
function Hm(){var a=m.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(a=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";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=x(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&&!Nc("Trident")&&!Nc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.Ku;c.Ku=null;a()}};return function(a){d.next={Ku:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=
null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){m.setTimeout(a,0)}};function Im(a,b){Jm||Km();Lm||(Jm(),Lm=!0);Mm.push(new Nm(a,b))}var Jm;function Km(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Jm=function(){a.then(Om)}}else Jm=function(){var a=Om;!ia(m.setImmediate)||m.Window&&m.Window.prototype.setImmediate==m.setImmediate?(Gm||(Gm=Hm()),Gm(a)):m.setImmediate(a)}}var Lm=!1,Mm=[];function Om(){for(;Mm.length;){var a=Mm;Mm=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.j.call(c.scope)}catch(d){Fm(d)}}}Lm=!1}
function Nm(a,b){this.j=a;this.scope=b};function Pm(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Qm(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Rm(a,b){this.k=0;this.C=void 0;this.j=this.o=null;this.A=this.B=!1;try{var c=this;a.call(b,function(a){Sm(c,2,a)},function(a){Sm(c,3,a)})}catch(d){Sm(this,3,d)}}function Tm(){var a=Um;return new Rm(function(b,c){var d=a.length,e=[];if(d)for(var g=function(a,c){d--;e[a]=c;0==d&&b(e)},h=function(a){c(a)},k=0,l;l=a[k];k++)l.then(y(g,k),h);else b(e)})}Rm.prototype.then=function(a,b,c){return Vm(this,ia(a)?a:null,ia(b)?b:null,c)};Pm(Rm);
Rm.prototype.cancel=function(a){0==this.k&&Im(function(){var b=new Wm(a);Xm(this,b)},this)};function Xm(a,b){if(0==a.k)if(a.o){var c=a.o;if(c.j){for(var d=0,e=-1,g=0,h;h=c.j[g];g++)if(h=h.bh)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(0==c.k&&1==d?Xm(c,b):(d=c.j.splice(e,1)[0],Ym(c,d,3,b)))}}else Sm(a,3,b)}function Zm(a,b){a.j&&a.j.length||2!=a.k&&3!=a.k||$m(a);a.j||(a.j=[]);a.j.push(b)}
function Vm(a,b,c,d){var e={bh:null,Qt:null,Rt:null};e.bh=new Rm(function(a,h){e.Qt=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.Rt=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof Wm?h(b):a(e)}catch(p){h(p)}}:h});e.bh.o=a;Zm(a,e);return e.bh}Rm.prototype.D=function(a){this.k=0;Sm(this,2,a)};Rm.prototype.F=function(a){this.k=0;Sm(this,3,a)};
function Sm(a,b,c){if(0==a.k){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(Qm(c)){a.k=1;c.then(a.D,a.F,a);return}if(ja(c))try{var d=c.then;if(ia(d)){an(a,c,d);return}}catch(e){b=3,c=e}}a.C=c;a.k=b;$m(a);3!=b||c instanceof Wm||bn(a,c)}}function an(a,b,c){function d(b){g||(g=!0,a.F(b))}function e(b){g||(g=!0,a.D(b))}a.k=1;var g=!1;try{c.call(b,e,d)}catch(h){d(h)}}function $m(a){a.B||(a.B=!0,Im(a.G,a))}
Rm.prototype.G=function(){for(;this.j&&this.j.length;){var a=this.j;this.j=[];for(var b=0;b<a.length;b++)Ym(this,a[b],this.k,this.C)}this.B=!1};function Ym(a,b,c,d){if(2==c)b.Qt(d);else{if(b.bh)for(;a&&a.A;a=a.o)a.A=!1;b.Rt(d)}}function bn(a,b){a.A=!0;Im(function(){a.A&&cn.call(null,b)})}var cn=Fm;function Wm(a){ra.call(this,a)}B(Wm,ra);Wm.prototype.name="cancel";function dn(a,b){T.call(this);this.j=a||1;this.k=b||m;this.o=x(this.uA,this);this.A=z()}B(dn,T);f=dn.prototype;f.enabled=!1;f.wc=null;function en(a,b){a.j=b;a.wc&&a.enabled?(a.stop(),a.start()):a.wc&&a.stop()}f.uA=function(){if(this.enabled){var a=z()-this.A;0<a&&a<.8*this.j?this.wc=this.k.setTimeout(this.o,this.j-a):(this.wc&&(this.k.clearTimeout(this.wc),this.wc=null),this.T("tick"),this.enabled&&(this.wc=this.k.setTimeout(this.o,this.j),this.A=z()))}};
f.start=function(){this.enabled=!0;this.wc||(this.wc=this.k.setTimeout(this.o,this.j),this.A=z())};f.stop=function(){this.enabled=!1;this.wc&&(this.k.clearTimeout(this.wc),this.wc=null)};f.L=function(){dn.I.L.call(this);this.stop();delete this.k};function fn(a,b,c){if(ia(a))c&&(a=x(a,c));else if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function gn(a){m.clearTimeout(a)};function hn(a,b,c){Q.call(this);this.A=a;this.o=b;this.k=c;this.j=x(this.wA,this)}B(hn,Q);f=hn.prototype;f.eg=!1;f.Eh=0;f.Je=null;function jn(a){a.Je||a.Eh?a.eg=!0:kn(a)}f.stop=function(){this.Je&&(gn(this.Je),this.Je=null,this.eg=!1)};f.pause=function(){this.Eh++};f.resume=function(){this.Eh--;this.Eh||!this.eg||this.Je||(this.eg=!1,kn(this))};f.L=function(){hn.I.L.call(this);this.stop()};f.wA=function(){this.Je=null;this.eg&&!this.Eh&&(this.eg=!1,kn(this))};
function kn(a){a.Je=fn(a.j,a.o);a.A.call(a.k)};function ln(a){Q.call(this);this.A=a;this.k={}}B(ln,Q);var mn=[];f=ln.prototype;f.listen=function(a,b,c,d){return nn(this,a,b,c,d)};function on(a,b,c,d,e){nn(a,b,c,d,!1,e)}function nn(a,b,c,d,e,g){fa(c)||(c&&(mn[0]=c.toString()),c=mn);for(var h=0;h<c.length;h++){var k=om(b,c[h],d||a.handleEvent,e||!1,g||a.A||a);if(!k)break;a.k[k.key]=k}return a}function pn(a,b,c,d){qn(a,b,c,d,void 0)}function rn(a,b,c,d,e){qn(a,b,c,d,!1,e)}
function qn(a,b,c,d,e,g){if(fa(c))for(var h=0;h<c.length;h++)qn(a,b,c[h],d,e,g);else(b=vm(b,c,d||a.handleEvent,e,g||a.A||a))&&(a.k[b.key]=b)}f.Aa=function(a,b,c,d,e){if(fa(b))for(var g=0;g<b.length;g++)this.Aa(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.A||this,c=pm(c),d=!!d,b=dm(a)?km(a.pd,String(b),c,d,e):a?(a=rm(a))?km(a,b,c,d,e):null:null,b&&(xm(b),delete this.k[b.key]);return this};f.removeAll=function(){Eb(this.k,xm);this.k={}};f.L=function(){ln.I.L.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function sn(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"}};function tn(){}tn.prototype.j=null;function un(a){var b;(b=a.j)||(b={},vn(a)&&(b[0]=!0,b[1]=!0),b=a.j=b);return b};var wn;function xn(){}B(xn,tn);function yn(a){return(a=vn(a))?new ActiveXObject(a):new XMLHttpRequest}function vn(a){if(!a.k&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof 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 ActiveXObject(d),a.k=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.k}wn=new xn;function zn(a,b,c,d,e){this.j=a;this.o=c;this.D=d;this.C=e||1;this.rb=45E3;this.A=new ln(this);this.k=new dn;en(this.k,250)}f=zn.prototype;f.Ae=null;f.Jc=!1;f.Zf=null;f.An=null;f.hh=null;f.Of=null;f.Vd=null;f.Zd=null;f.ye=null;f.nb=null;f.wh=0;f.Kc=null;f.Oj=null;f.Ie=null;f.Qg=-1;f.vs=!0;f.Ke=!1;f.Pm=0;f.mj=null;var An={},Bn={};f=zn.prototype;f.setTimeout=function(a){this.rb=a};function Cn(a,b,c){a.Of=1;a.Vd=ef(b.clone());a.ye=c;a.B=!0;Dn(a,null)}
function En(a,b,c,d,e){a.Of=1;a.Vd=ef(b.clone());a.ye=null;a.B=c;e&&(a.vs=!1);Dn(a,d)}function Dn(a,b){a.hh=z();Fn(a);a.Zd=a.Vd.clone();bf(a.Zd,"t",a.C);a.wh=0;a.nb=a.j.nn(a.j.eh()?b:null);0<a.Pm&&(a.mj=new hn(x(a.Ws,a,a.nb),a.Pm));a.A.listen(a.nb,"readystatechange",a.ID);var c=a.Ae?Vb(a.Ae):{};a.ye?(a.Oj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.nb.send(a.Zd,a.Oj,a.ye,c)):(a.Oj="GET",a.vs&&!Rc&&(c.Connection="close"),a.nb.send(a.Zd,a.Oj,null,c));a.j.Ic(1)}
f.ID=function(a){a=a.target;var b=this.mj;b&&3==Gn(a)?jn(b):this.Ws(a)};
f.Ws=function(a){try{if(a==this.nb)t:{var b=Gn(this.nb),c=this.nb.k,d=this.nb.getStatus();if(Pc&&!cd(10)||Rc&&!bd("420+")){if(4>b)break t}else if(3>b||3==b&&!Oc&&!Hn(this.nb))break t;this.Ke||4!=b||7==c||(8==c||0>=d?this.j.Ic(3):this.j.Ic(2));In(this);var e=this.nb.getStatus();this.Qg=e;var g=Hn(this.nb);(this.Jc=200==e)?(4==b&&Jn(this),this.B?(Kn(this,b,g),Oc&&this.Jc&&3==b&&(this.A.listen(this.k,"tick",this.CA),this.k.start())):Ln(this,g),this.Jc&&!this.Ke&&(4==b?this.j.kj(this):(this.Jc=!1,Fn(this)))):
(this.Ie=400==e&&0<g.indexOf("Unknown SID")?3:0,Mn(),Jn(this),Nn(this))}}catch(h){this.nb&&Hn(this.nb)}finally{}};function Kn(a,b,c){for(var d=!0;!a.Ke&&a.wh<c.length;){var e=On(a,c);if(e==Bn){4==b&&(a.Ie=4,Mn(),d=!1);break}else if(e==An){a.Ie=4;Mn();d=!1;break}else Ln(a,e)}4==b&&0==c.length&&(a.Ie=1,Mn(),d=!1);a.Jc=a.Jc&&d;d||(Jn(a),Nn(a))}f.CA=function(){var a=Gn(this.nb),b=Hn(this.nb);this.wh<b.length&&(In(this),Kn(this,a,b),this.Jc&&4!=a&&Fn(this))};
function On(a,b){var c=a.wh,d=b.indexOf("\n",c);if(-1==d)return Bn;c=Number(b.substring(c,d));if(isNaN(c))return An;d+=1;if(d+c>b.length)return Bn;var e=b.substr(d,c);a.wh=d+c;return e}
function Pn(a,b){a.hh=z();Fn(a);var c=b?window.location.hostname:"";a.Zd=a.Vd.clone();L(a.Zd,"DOMAIN",c);L(a.Zd,"t",a.C);try{a.Kc=new ActiveXObject("htmlfile")}catch(d){Jn(a);a.Ie=7;Mn();Nn(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.Kc.open();a.Kc.write(e);a.Kc.close();a.Kc.parentWindow.m=x(a.eE,a);a.Kc.parentWindow.d=x(a.jt,a,!0);a.Kc.parentWindow.rpcClose=x(a.jt,a,!1);c=a.Kc.createElement("div");a.Kc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.Zd+'"></iframe>';a.j.Ic(1)}f.eE=function(a){Qn(x(this.WG,this,a),0)};f.WG=function(a){this.Ke||(In(this),Ln(this,a),Fn(this))};f.jt=function(a){Qn(x(this.VG,this,a),0)};f.VG=function(a){this.Ke||(Jn(this),this.Jc=a,this.j.kj(this),this.j.Ic(4))};f.cancel=function(){this.Ke=!0;Jn(this)};function Fn(a){a.An=z()+a.rb;Rn(a,a.rb)}function Rn(a,b){if(null!=a.Zf)throw Error("WatchDog timer not null");a.Zf=Qn(x(a.uG,a),b)}
function In(a){a.Zf&&(m.clearTimeout(a.Zf),a.Zf=null)}f.uG=function(){this.Zf=null;var a=z();0<=a-this.An?(2!=this.Of&&this.j.Ic(3),Jn(this),this.Ie=2,Mn(),Nn(this)):Rn(this,this.An-a)};function Nn(a){a.j.zt()||a.Ke||a.j.kj(a)}function Jn(a){In(a);qi(a.mj);a.mj=null;a.k.stop();a.A.removeAll();if(a.nb){var b=a.nb;a.nb=null;b.abort();b.dispose()}a.Kc&&(a.Kc=null)}function Ln(a,b){try{a.j.Bt(a,b),a.j.Ic(4)}catch(c){}};function Sn(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;Tn(a,b,function(e){e?c(!0):m.setTimeout(function(){Sn(a,b,c,d,g)},g)})}}function Tn(a,b,c){var d=new Image;d.onload=function(){try{Un(d),c(!0)}catch(a){}};d.onerror=function(){try{Un(d),c(!1)}catch(a){}};d.onabort=function(){try{Un(d),c(!1)}catch(a){}};d.ontimeout=function(){try{Un(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function Un(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function Vn(a){this.j=a;this.k=new Cm(null,!0)}f=Vn.prototype;f.Km=null;f.hc=null;f.Ij=!1;f.ws=null;f.Hj=null;f.Xm=null;f.vn=null;f.xc=null;f.sd=-1;f.oh=null;f.rh=null;f.connect=function(a){this.vn=a;a=Wn(this.j,null,this.vn);Mn();this.ws=z();var b=this.j.F;null!=b?(this.oh=b[0],(this.rh=b[1])?(this.xc=1,Xn(this)):(this.xc=2,Yn(this))):(bf(a,"MODE","init"),this.hc=new zn(this,0,void 0,void 0,void 0),this.hc.Ae=this.Km,En(this.hc,a,!1,null,!0),this.xc=0)};
function Xn(a){var b=Wn(a.j,a.rh,"/mail/images/cleardot.gif");ef(b);Sn(b.toString(),5E3,x(a.AE,a),3,2E3);a.Ic(1)}f.AE=function(a){if(a)this.xc=2,Yn(this);else{Mn();var b=this.j;b.Hc=b.Wd.sd;Zn(b,9)}a&&this.Ic(2)};
function Yn(a){var b=a.j.G;if(null!=b)Mn(),b?(Mn(),$n(a.j,a,!1)):(Mn(),$n(a.j,a,!0));else if(a.hc=new zn(a,0,void 0,void 0,void 0),a.hc.Ae=a.Km,b=a.j,b=Wn(b,b.eh()?a.oh:null,a.vn),Mn(),!Pc||cd(10))bf(b,"TYPE","xmlhttp"),En(a.hc,b,!1,a.oh,!1);else{bf(b,"TYPE","html");var c=a.hc;a=Boolean(a.oh);c.Of=3;c.Vd=ef(b.clone());Pn(c,a)}}f.nn=function(a){return this.j.nn(a)};f.abort=function(){this.hc&&(this.hc.cancel(),this.hc=null);this.sd=-1};f.zt=function(){return!1};
f.Bt=function(a,b){this.sd=a.Qg;if(0==this.xc)if(b){try{var c=this.k.parse(b)}catch(d){c=this.j;c.Hc=this.sd;Zn(c,2);return}this.oh=c[0];this.rh=c[1]}else c=this.j,c.Hc=this.sd,Zn(c,2);else if(2==this.xc)if(this.Ij)Mn(),this.Xm=z();else if("11111"==b){if(Mn(),this.Ij=!0,this.Hj=z(),c=this.Hj-this.ws,!Pc||cd(10)||500>c)this.sd=200,this.hc.cancel(),Mn(),$n(this.j,this,!0)}else Mn(),this.Hj=this.Xm=z(),this.Ij=!1};
f.kj=function(){this.sd=this.hc.Qg;if(this.hc.Jc)0==this.xc?this.rh?(this.xc=1,Xn(this)):(this.xc=2,Yn(this)):2==this.xc&&(a=!1,(a=!Pc||cd(10)?this.Ij:200>this.Xm-this.Hj?!1:!0)?(Mn(),$n(this.j,this,!0)):(Mn(),$n(this.j,this,!1)));else{0==this.xc?Mn():2==this.xc&&Mn();var a=this.j;a.Hc=this.sd;Zn(a,2)}};f.eh=function(){return this.j.eh()};f.isActive=function(){return this.j.isActive()};f.Ic=function(a){this.j.Ic(a)};function ao(a){T.call(this);this.headers=new je;this.K=a||null;this.o=!1;this.J=this.j=null;this.R=this.F="";this.k=0;this.C="";this.A=this.P=this.D=this.N=!1;this.B=0;this.G=null;this.U="";this.H=this.O=!1}B(ao,T);var bo=/^https?$/i,co=["POST","PUT"];function eo(a,b){a.B=Math.max(0,b)}f=ao.prototype;
f.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.F+"; newUri="+a);b=b?b.toUpperCase():"GET";this.F=a;this.C="";this.k=0;this.R=b;this.N=!1;this.o=!0;this.j=this.K?yn(this.K):yn(wn);this.J=this.K?un(this.K):un(wn);this.j.onreadystatechange=x(this.lp,this);try{Vl(fo(this,"Opening Xhr")),this.P=!0,this.j.open(b,String(a),!0),this.P=!1}catch(e){Vl(fo(this,"Error opening Xhr: "+e.message));go(this,e);return}a=c||"";var g=this.headers.clone();
d&&re(d,function(a,b){g.set(b,a)});d=G(g.Ka(),ho);c=m.FormData&&a instanceof m.FormData;!H(co,b)||d||c||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g.forEach(function(a,b){this.j.setRequestHeader(b,a)},this);this.U&&(this.j.responseType=this.U);"withCredentials"in this.j&&(this.j.withCredentials=this.O);try{io(this),0<this.B&&(this.H=jo(this.j),Vl(fo(this,"Will abort after "+this.B+"ms if incomplete, xhr2 "+this.H)),this.H?(this.j.timeout=this.B,this.j.ontimeout=x(this.rb,
this)):this.G=fn(this.rb,this.B,this)),Vl(fo(this,"Sending request")),this.D=!0,this.j.send(a),this.D=!1}catch(h){Vl(fo(this,"Send error: "+h.message)),go(this,h)}};function jo(a){return Pc&&bd(9)&&ha(a.timeout)&&n(a.ontimeout)}function ho(a){return"content-type"==a.toLowerCase()}f.rb=function(){"undefined"!=typeof aa&&this.j&&(this.C="Timed out after "+this.B+"ms, aborting",this.k=8,fo(this,this.C),this.T("timeout"),this.abort(8))};
function go(a,b){a.o=!1;a.j&&(a.A=!0,a.j.abort(),a.A=!1);a.C=b;a.k=5;ko(a);lo(a)}function ko(a){a.N||(a.N=!0,a.T("complete"),a.T("error"))}f.abort=function(a){this.j&&this.o&&(fo(this,"Aborting"),this.o=!1,this.A=!0,this.j.abort(),this.A=!1,this.k=a||7,this.T("complete"),this.T("abort"),lo(this))};f.L=function(){this.j&&(this.o&&(this.o=!1,this.A=!0,this.j.abort(),this.A=!1),lo(this,!0));ao.I.L.call(this)};f.lp=function(){this.ea()||(this.P||this.D||this.A?mo(this):this.fF())};f.fF=function(){mo(this)};
function mo(a){if(a.o&&"undefined"!=typeof aa)if(a.J[1]&&4==Gn(a)&&2==a.getStatus())fo(a,"Local request error detected and ignored");else if(a.D&&4==Gn(a))fn(a.lp,0,a);else if(a.T("readystatechange"),4==Gn(a)){fo(a,"Request complete");a.o=!1;try{var b=a.getStatus(),c;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break t;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var g=ue(String(a.F))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!bo.test(g?g.toLowerCase():"")}d=e}if(d)a.T("complete"),a.T("success");else{a.k=6;var k;try{k=2<Gn(a)?a.j.statusText:""}catch(l){k=""}a.C=k+" ["+a.getStatus()+"]";ko(a)}}finally{lo(a)}}}function lo(a,b){if(a.j){io(a);var c=a.j,d=a.J[0]?u:null;a.j=null;a.J=null;b||a.T("ready");try{c.onreadystatechange=d}catch(e){}}}function io(a){a.j&&a.H&&(a.j.ontimeout=null);ha(a.G)&&(gn(a.G),a.G=null)}f.isActive=function(){return!!this.j};function Gn(a){return a.j?a.j.readyState:0}
f.getStatus=function(){try{return 2<Gn(this)?this.j.status:-1}catch(a){return-1}};function Hn(a){try{return a.j?a.j.responseText:""}catch(b){return""}}function fo(a,b){return b+" ["+a.R+" "+a.F+" "+a.getStatus()+"]"};function no(a,b,c){this.D=a||null;this.j=1;this.k=[];this.A=[];this.B=new Cm(null,!0);this.F=b||null;this.G=null!=c?c:null}function oo(a,b){this.j=a;this.map=b;this.context=null}f=no.prototype;f.Ch=null;f.Ob=null;f.eb=null;f.wm=null;f.Zi=null;f.gs=null;f.zj=null;f.Yg=0;f.ED=0;f.Db=null;f.ae=null;f.rd=null;f.Le=null;f.Wd=null;f.yj=null;f.nf=-1;f.Hs=-1;f.Hc=-1;f.Wg=0;f.Pf=0;f.De=8;var po=new T;function qo(a){Xl.call(this,"statevent",a)}B(qo,Xl);
function ro(a,b){Xl.call(this,"timingevent",a);this.size=b}B(ro,Xl);function so(a){Xl.call(this,"serverreachability",a)}B(so,Xl);f=no.prototype;f.connect=function(a,b,c,d,e){Mn();this.wm=b;this.Ch=c||{};d&&n(e)&&(this.Ch.OSID=d,this.Ch.OAID=e);this.Wd=new Vn(this);this.Wd.Km=null;this.Wd.k=this.B;this.Wd.connect(a)};
f.disconnect=function(){to(this);if(3==this.j){var a=this.Yg++,b=this.Zi.clone();L(b,"SID",this.o);L(b,"RID",a);L(b,"TYPE","terminate");uo(this,b);a=new zn(this,0,this.o,a,void 0);a.Of=2;a.Vd=ef(b.clone());(new Image).src=a.Vd;a.hh=z();Fn(a)}vo(this)};function to(a){a.Wd&&(a.Wd.abort(),a.Wd=null);a.eb&&(a.eb.cancel(),a.eb=null);a.rd&&(m.clearTimeout(a.rd),a.rd=null);wo(a);a.Ob&&(a.Ob.cancel(),a.Ob=null);a.ae&&(m.clearTimeout(a.ae),a.ae=null)}
function xo(a,b){if(0==a.j)throw Error("Invalid operation: sending map when state is closed");a.k.push(new oo(a.ED++,b));2!=a.j&&3!=a.j||yo(a)}f.zt=function(){return 0==this.j};f.getState=function(){return this.j};function zo(a){var b=0;a.eb&&b++;a.Ob&&b++;return b}function yo(a){a.Ob||a.ae||(a.ae=Qn(x(a.bt,a),0),a.Wg=0)}f.bt=function(a){this.ae=null;Ao(this,a)};
function Ao(a,b){if(1==a.j){if(!b){a.Yg=Math.floor(1E5*Math.random());var c=a.Yg++,d=new zn(a,0,"",c,void 0);d.Ae=null;var e=Bo(a),g=a.Zi.clone();L(g,"RID",c);a.D&&L(g,"CVER",a.D);uo(a,g);Cn(d,g,e);a.Ob=d;a.j=2}}else 3==a.j&&(b?Co(a,b):0!=a.k.length&&(a.Ob||Co(a)))}
function Co(a,b){var c,d;b?6<a.De?(a.k=a.A.concat(a.k),a.A.length=0,c=a.Yg-1,d=Bo(a)):(c=b.D,d=b.ye):(c=a.Yg++,d=Bo(a));var e=a.Zi.clone();L(e,"SID",a.o);L(e,"RID",c);L(e,"AID",a.nf);uo(a,e);c=new zn(a,0,a.o,c,a.Wg+1);c.Ae=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Ob=c;Cn(c,e,d)}function uo(a,b){if(a.Db){var c=a.Db.Fu(a);c&&Eb(c,function(a,c){L(b,c,a)})}}
function Bo(a){var b=Math.min(a.k.length,1E3),c=["count="+b],d;6<a.De&&0<b?(d=a.k[0].j,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var g=a.k[e].j,h=a.k[e].map,g=6>=a.De?e:g-d;try{re(h,function(a,b){c.push("req"+g+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+g+"_type="+encodeURIComponent("_badmap"))}}a.A=a.A.concat(a.k.splice(0,b));return c.join("&")}function Do(a){a.eb||a.rd||(a.C=1,a.rd=Qn(x(a.nu,a),0),a.Pf=0)}
function Eo(a){if(a.eb||a.rd||3<=a.Pf)return!1;a.C++;a.rd=Qn(x(a.nu,a),Fo(a,a.Pf));a.Pf++;return!0}f.nu=function(){this.rd=null;this.eb=new zn(this,0,this.o,"rpc",this.C);this.eb.Ae=null;this.eb.Pm=0;var a=this.gs.clone();L(a,"RID","rpc");L(a,"SID",this.o);L(a,"CI",this.yj?"0":"1");L(a,"AID",this.nf);uo(this,a);if(!Pc||cd(10))L(a,"TYPE","xmlhttp"),En(this.eb,a,!0,this.zj,!1);else{L(a,"TYPE","html");var b=this.eb,c=Boolean(this.zj);b.Of=3;b.Vd=ef(a.clone());Pn(b,c)}};
function $n(a,b,c){a.yj=c;a.Hc=b.sd;a.fG(1,0);a.Zi=Wn(a,null,a.wm);yo(a)}
f.Bt=function(a,b){if(0!=this.j&&(this.eb==a||this.Ob==a))if(this.Hc=a.Qg,this.Ob==a&&3==this.j)if(7<this.De){var c;try{c=this.B.parse(b)}catch(d){c=null}if(fa(c)&&3==c.length)if(0==c[0])t:{if(!this.rd){if(this.eb)if(this.eb.hh+3E3<this.Ob.hh)wo(this),this.eb.cancel(),this.eb=null;else break t;Eo(this);Mn()}}else this.Hs=c[1],0<this.Hs-this.nf&&37500>c[2]&&this.yj&&0==this.Pf&&!this.Le&&(this.Le=Qn(x(this.OC,this),6E3));else Zn(this,11)}else"y2f%"!=b&&Zn(this,11);else if(this.eb==a&&wo(this),!C(b)){c=
this.B.parse(b);fa(c);for(var e=0;e<c.length;e++){var g=c[e];this.nf=g[0];g=g[1];2==this.j?"c"==g[0]?(this.o=g[1],this.zj=g[2],g=g[3],null!=g?this.De=g:this.De=6,this.j=3,this.Db&&this.Db.Gs(this),this.gs=Wn(this,this.eh()?this.zj:null,this.wm),Do(this)):"stop"==g[0]&&Zn(this,7):3==this.j&&("stop"==g[0]?Zn(this,7):"noop"!=g[0]&&this.Db&&this.Db.Fs(this,g),this.Pf=0)}}};f.OC=function(){null!=this.Le&&(this.Le=null,this.eb.cancel(),this.eb=null,Eo(this),Mn())};
function wo(a){null!=a.Le&&(m.clearTimeout(a.Le),a.Le=null)}
f.kj=function(a){var b;if(this.eb==a)wo(this),this.eb=null,b=2;else if(this.Ob==a)this.Ob=null,b=1;else return;this.Hc=a.Qg;if(0!=this.j)if(a.Jc)1==b?(z(),po.T(new ro(po,a.ye?a.ye.length:0)),yo(this),this.A.length=0):Do(this);else{var c=a.Ie,d;if(!(d=3==c||7==c||0==c&&0<this.Hc)){if(d=1==b)this.Ob||this.ae||1==this.j||2<=this.Wg?d=!1:(this.ae=Qn(x(this.bt,this,a),Fo(this,this.Wg)),this.Wg++,d=!0);d=!(d||2==b&&Eo(this))}if(d)switch(c){case 1:Zn(this,5);break;case 4:Zn(this,10);break;case 3:Zn(this,
6);break;case 7:Zn(this,12);break;default:Zn(this,2)}}};function Fo(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b}f.fG=function(a){if(!H(arguments,this.j))throw Error("Unexpected channel state: "+this.j);};function Zn(a,b){if(2==b||9==b){var c=null;a.Db&&(c=null);var d=x(a.kG,a);c||(c=new K("//www.google.com/images/cleardot.gif"),ef(c));Tn(c.toString(),1E4,d)}else Mn();Go(a,b)}f.kG=function(a){a?Mn():(Mn(),Go(this,8))};
function Go(a,b){a.j=0;a.Db&&a.Db.xt(a,b);vo(a);to(a)}function vo(a){a.j=0;a.Hc=-1;if(a.Db)if(0==a.A.length&&0==a.k.length)a.Db.Rm(a);else{var b=pb(a.A),c=pb(a.k);a.A.length=0;a.k.length=0;a.Db.Rm(a,b,c)}}function Wn(a,b,c){var d=ff(c);if(""!=d.mb)b&&Le(d,b+"."+d.mb),Me(d,d.gd);else var e=window.location,d=gf(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Ch&&Eb(a.Ch,function(a,b){L(d,b,a)});L(d,"VER",a.De);uo(a,d);return d}
f.nn=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new ao;a.O=!1;return a};f.isActive=function(){return!!this.Db&&this.Db.isActive(this)};function Qn(a,b){if(!ia(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Ic=function(){po.T(new so(po))};function Mn(){po.T(new qo(po))}f.eh=function(){return!(!Pc||cd(10))};function Ho(){}f=Ho.prototype;f.Gs=function(){};f.Fs=function(){};f.xt=function(){};f.Rm=function(){};
f.Fu=function(){return{}};f.isActive=function(){return!0};function Io(a,b){dn.call(this);if(ia(a))b&&(a=x(a,b));else if(a&&ia(a.handleEvent))a=x(a.handleEvent,a);else throw Error("Invalid listener argument");this.D=a;om(this,"tick",x(this.C,this));this.stop();en(this,5E3+2E4*Math.random())}B(Io,dn);Io.prototype.B=0;Io.prototype.C=function(){if(500<this.j){var a=this.j;24E4>2*a&&(a*=2);en(this,a)}this.D()};Io.prototype.start=function(){Io.I.start.call(this);this.B=z()+this.j};Io.prototype.stop=function(){this.B=0;Io.I.stop.call(this)};function Jo(a,b){this.J=a;this.A=b;this.o=new ti;this.k=new Io(this.Yw,this);this.j=null;this.H=!1;this.C=null;this.G="";this.F=this.B=0;this.D=[]}B(Jo,Ho);f=Jo.prototype;f.subscribe=function(a,b,c){return this.o.subscribe(a,b,c)};f.unsubscribe=function(a,b,c){return this.o.unsubscribe(a,b,c)};f.Kb=function(a){return this.o.Kb(a)};f.publish=function(a,b){return this.o.publish.apply(this.o,arguments)};f.dispose=function(){this.H||(this.H=!0,this.o.clear(),this.disconnect(),qi(this.o))};f.ea=function(){return this.H};
function Ko(a){return{firstTestResults:[""],secondTestResults:!a.j.yj,sessionId:a.j.o,arrayId:a.j.nf}}
f.connect=function(a,b,c){if(!this.j||2!=this.j.getState()){this.G="";this.k.stop();this.C=a||null;this.B=b||0;a=this.J+"/test";b=this.J+"/bind";var d=new no("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.j;e&&(e.Db=null);d.Db=this;this.j=d;e?(3!=e.getState()&&0==zo(e)||e.getState(),this.j.connect(a,b,this.A,e.o,e.nf)):c?this.j.connect(a,b,this.A,c.sessionId,c.arrayId):this.j.connect(a,b,this.A)}};
f.disconnect=function(a){this.F=a||0;this.k.stop();this.j&&(3==this.j.getState()&&Ao(this.j),this.j.disconnect());this.F=0};f.sendMessage=function(a,b){var c={_sc:a};b&&Zb(c,b);this.k.enabled||2==(this.j?this.j.getState():0)?this.D.push(c):this.j&&3==this.j.getState()&&xo(this.j,c)};f.Gs=function(){var a=this.k;a.stop();en(a,5E3+2E4*Math.random());this.C=null;this.B=0;if(this.D.length){a=this.D;this.D=[];for(var b=0,c=a.length;b<c;++b)xo(this.j,a[b])}this.publish("handlerOpened")};
f.xt=function(a,b){var c=2==b&&401==this.j.Hc;if(4!=b&&!c){if(6==b||410==this.j.Hc)c=this.k,c.stop(),en(c,500);this.k.start()}this.publish("handlerError",b)};f.Rm=function(a,b,c){if(!this.k.enabled)this.publish("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.D.push(c[a].map)};f.Fu=function(){var a={v:2};this.G&&(a.gsessionid=this.G);0!=this.B&&(a.ui=""+this.B);0!=this.F&&(a.ui=""+this.F);this.C&&Zb(a,this.C);return a};
f.Fs=function(a,b){if("S"==b[0])this.G=b[1];else if("gracefulReconnect"==b[0]){var c=this.k;c.stop();en(c,500);this.k.start();this.j.disconnect()}else this.publish("handlerMessage",new Bl(b[0],b[1]))};function Lo(a,b){(a.A.loungeIdToken=b)||a.k.stop()}f.getDeviceId=function(){return this.A.id};f.Yw=function(){this.k.stop();0!=zo(this.j)?this.k.start():this.connect(this.C,this.B)};function Mo(){this.j=[];this.k=[]}function No(a){ib(a.j)&&(a.j=a.k,a.j.reverse(),a.k=[])}function Oo(a,b){a.k.push(b)}function Po(a){No(a);return a.j.pop()}f=Mo.prototype;f.Qa=function(){return this.j.length+this.k.length};f.isEmpty=function(){return ib(this.j)&&ib(this.k)};f.clear=function(){this.j=[];this.k=[]};f.contains=function(a){return H(this.j,a)||H(this.k,a)};f.remove=function(a){var b=ab(this.j,a);if(0>b)return lb(this.k,a);mb(this.j,b);return!0};
f.La=function(){for(var a=[],b=this.j.length-1;0<=b;--b)a.push(this.j[b]);for(var c=this.k.length,b=0;b<c;++b)a.push(this.k[b]);return a};function Qo(a){Ro(this,a)}function So(a,b){if(a.k)throw Error(b+" is not allowed in V3.");}function To(a){a.volume=-1;a.muted=!1;a.o=null;a.j=-1;a.A=null;a.B=0;a.C=z()}function Ro(a,b){a.videoIds=[];a.k="";Uo(a);b&&(a.videoIds=b.videoIds,a.index=b.index,a.k=b.listId,a.videoId=b.videoId,a.j=b.playerState,a.A=b.errorReason,a.volume=b.volume,a.muted=b.muted,a.o=b.trackData,a.B=b.playerTime,a.C=b.playerTimeAt)}function Uo(a){a.index=-1;a.videoId="";To(a)}f=Qo.prototype;f.ib=function(){return 1==this.j};
function Vo(a){return a.k?a.videoId:a.videoIds[a.index]}function Wo(a,b){a.B=b;a.C=z()}function Xo(a){switch(a.j){case 1:return(z()-a.C)/1E3+a.B;case -1E3:return 0}return a.B}f.setVideoId=function(a){So(this,"setVideoId");var b=this.index;this.index=$a(this.videoIds,a);b!=this.index&&To(this);return-1!=b};function Yo(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&To(a)}function Zo(a,b,c){So(a,"setPlaylist");c=c||Vo(a);zb(a.videoIds,b)&&c==Vo(a)||(a.videoIds=pb(b),a.setVideoId(c))}
f.add=function(a){So(this,"add");return a&&!H(this.videoIds,a)?(this.videoIds.push(a),!0):!1};f.remove=function(a){So(this,"remove");var b=Vo(this);return lb(this.videoIds,a)?(this.index=$a(this.videoIds,b),!0):!1};function $o(a){var b={};b.videoIds=pb(a.videoIds);b.index=a.index;b.listId=a.k;b.videoId=a.videoId;b.playerState=a.j;b.errorReason=a.A;b.volume=a.volume;b.muted=a.muted;b.trackData=Xb(a.o);b.playerTime=a.B;b.playerTimeAt=a.C;return b}f.clone=function(){return new Qo($o(this))};function ap(a,b){S.call(this);this.o=0;this.A=a;this.D=[];this.C=new Mo;this.B=NaN;this.k=this.j=null;this.H=x(this.ix,this);this.F=x(this.Bg,this);this.G=x(this.hx,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Wk,this),bp(this))):c=3;0!=c&&(b?this.Wk(c):M(x(function(){this.Wk(c)},this),0));cp(this,ul())}B(ap,S);f=ap.prototype;f.getState=function(){return this.o};function dp(a){return new Qo(a.A.getPlayerContextData())}
f.play=function(){1==this.getState()?(this.j?this.j.play(null,u,x(function(){this.Pa("Failed to play video with cast v2 channel.");ep(this,"play")},this)):ep(this,"play"),fp(this,1,Xo(dp(this))),gp(this)):hp(this,this.play)};f.pause=function(){1==this.getState()?(this.j?this.j.pause(null,u,x(function(){this.Pa("Failed to pause video with cast v2 channel.");ep(this,"pause")},this)):ep(this,"pause"),fp(this,2,Xo(dp(this))),gp(this)):hp(this,this.pause)};
f.qt=function(a){if(1==this.getState()){if(this.j){var b=dp(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.ib()||3==b.j?chrome.cast.media.ResumeState.PLAYBACK_START:chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(c,u,x(function(){this.Pa("Failed to seek in video with cast v2 channel.");ep(this,"seekTo",{newTime:a})},this))}else ep(this,"seekTo",{newTime:a});fp(this,3,a);gp(this)}else hp(this,y(this.qt,a))};
f.stop=function(){if(1==this.getState()){this.j?this.j.stop(null,u,x(function(){this.Pa("Failed to stop video with cast v2 channel.");ep(this,"stopVideo")},this)):ep(this,"stopVideo");var a=dp(this);Uo(a);ip(this,a);gp(this)}else hp(this,this.stop)};
f.setVolume=function(a,b){if(1==this.getState()){var c=dp(this);if(this.k){if(c.volume!=a){var d=Math.round(a)/100;this.k.setReceiverVolumeLevel(d,x(function(){jp("set receiver volume: "+d)},this),x(function(){this.Pa("failed to set receiver volume.")},this))}c.muted!=b&&this.k.setReceiverMuted(b,x(function(){jp("set receiver muted: "+b)},this),x(function(){this.Pa("failed to set receiver muted.")},this))}else{var e={volume:a,muted:b};-1!=c.volume&&(e.delta=a-c.volume);ep(this,"setVolume",e)}c.muted=
b;c.volume=a;ip(this,c);gp(this)}else hp(this,y(this.setVolume,a,b))};f.bm=function(a,b){if(1==this.getState()){var c=dp(this);if(b){c.o={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:$f(b.style)};Zb(d,c.o);ep(this,"setSubtitlesTrack",d)}else d={videoId:a},ep(this,"setSubtitlesTrack",d);ip(this,c)}else hp(this,y(this.bm,a,b))};
function kp(a,b,c,d,e){var g=dp(a);d=d||0;var h={videoId:b,currentIndex:d,listId:e||g.k};Yo(g,b,d);n(c)&&(Wo(g,c),h.currentTime=c);ep(a,"setPlaylist",h);e||ip(a,g)}f.dispose=function(){if(3!=this.o){var a=this.o;this.o=3;this.publish("proxyStateChange",a,this.o)}ap.I.dispose.call(this)};f.L=function(){N(this.B);this.B=NaN;lp(this);this.A=null;this.C.clear();cp(this,null);ap.I.L.call(this)};
function bp(a){E(["remotePlayerChange","remoteQueueChange"],function(a){this.D.push(this.A.subscribe(a,y(this.hF,a),this))},a)}function lp(a){E(a.D,function(a){this.A.unsubscribeByKey(a)},a);a.D.length=0}function hp(a,b){50>a.C.Qa()&&Oo(a.C,b)}function fp(a,b,c){var d=dp(a);Wo(d,c);-1E3!=d.j&&(d.j=b);ip(a,d)}function ep(a,b,c){a.A.sendMessage(b,c)}function ip(a,b){lp(a);a.A.setPlayerContextData($o(b));bp(a)}
f.Wk=function(a){if((a!=this.o||2==a)&&3!=this.o&&0!=a){var b=this.o;this.o=a;this.publish("proxyStateChange",b,a);if(1==a)for(;!this.C.isEmpty();)Po(this.C).apply(this);else 3==a&&this.dispose()}};function gp(a){N(a.B);a.B=M(x(function(){this.publish("remotePlayerChange");this.B=NaN},a),2E3)}f.hF=function(a){("remotePlayerChange"!=a||isNaN(this.B))&&this.publish(a)};
function cp(a,b){a.k&&(a.k.removeUpdateListener(a.H),a.k.removeMediaListener(a.F),a.Bg(null));a.k=b;a.k&&(jp("Setting cast session: "+a.k.sessionId),a.k.addUpdateListener(a.H),a.k.addMediaListener(a.F),a.k.media.length&&a.Bg(a.k.media[0]))}
f.ix=function(a){if(!a)this.Bg(null),cp(this,null);else if(this.k.receiver.volume){a=this.k.receiver.volume;var b=dp(this);if(b.volume!=a.level||b.muted!=a.muted)jp("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,ip(this,b),gp(this)}};f.Bg=function(a){jp("Cast media: "+!!a);this.j&&this.j.removeUpdateListener(this.G);if(this.j=a)this.j.addUpdateListener(this.G),mp(this),gp(this)};
function mp(a){var b=a.j.customData;if(a.j.media){var c=a.j.media,d=dp(a);c.contentId!=d.videoId&&jp("Cast changing video to: "+c.contentId);var e=c.customData;d.index=e.currentIndex;d.k=e.listId;d.videoId=c.contentId;d.j=b.playerState;Wo(d,a.j.getEstimatedTime());ip(a,d)}else jp("No cast media video. Ignoring state update.")}f.hx=function(a){a?(mp(this),gp(this)):this.Bg(null)};function jp(a){ei("CP",a)}f.Pa=function(a){ei("CP",a)};function np(a,b,c){S.call(this);this.O=a;this.F=[];this.F.push(P(window,"beforeunload",x(this.mC,this)));this.k=[];this.ba=new Qo;3==c["mdx-version"]&&(this.ba.k="RQ"+b.token);this.G=b.id;this.j=op(this,c);this.j.subscribe("handlerOpened",this.rC,this);this.j.subscribe("handlerClosed",this.nC,this);this.j.subscribe("handlerError",this.oC,this);this.ba.k?this.j.subscribe("handlerMessage",this.pC,this):this.j.subscribe("handlerMessage",this.qC,this);Lo(this.j,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.ba.videoId;kk()&&Wi("yt-remote-session-video-id",a)},this)}B(np,S);f=np.prototype;f.xh=NaN;f.pn=!1;f.Yi=NaN;f.Ln=NaN;f.Wi=NaN;
f.connect=function(a,b){if(b){if(this.ba.k){var c=b.listId,d=b.videoId,e=b.index,g=b.currentTime||0;5>=g&&(g=0);h={videoId:d,currentTime:g};c&&(h.listId=c);n(e)&&(h.currentIndex=e);c&&(this.ba.k=c);this.ba.videoId=d;this.ba.index=e||0}else{var d=b.videoIds[b.index],g=b.currentTime||0;5>=g&&(g=0);var h={videoIds:d,videoId:d,currentTime:g};this.ba.videoIds=[d];this.ba.index=0}this.ba.state=3;Wo(this.ba,g);this.Ia("Connecting with setPlaylist and params: "+$f(h));this.j.connect({method:"setPlaylist",
params:$f(h)},a,ok())}else this.Ia("Connecting without params"),this.j.connect({},a,ok());pp(this)};f.dispose=function(){this.ea()||(this.publish("beforeDispose"),qp(this,3));np.I.dispose.call(this)};f.L=function(){rp(this);sp(this);tp(this);N(this.Wi);this.Wi=NaN;this.A=null;wh(this.F);this.F.length=0;this.j.dispose();np.I.L.call(this);this.k=this.ba=this.j=null};f.Ia=function(a){ei("conn",a)};f.mC=function(){this.B(2)};function op(a,b){return new Jo(Hj(a.O,"/bc",void 0,!1),b)}
function qp(a,b){a.publish("proxyStateChange",b)}function pp(a){a.xh=M(x(function(){this.Ia("Connecting timeout");this.B(1)},a),2E4)}function rp(a){N(a.xh);a.xh=NaN}function tp(a){N(a.Yi);a.Yi=NaN}function up(a){sp(a);a.Ln=M(x(function(){this.o("getNowPlaying")},a),2E4)}function sp(a){N(a.Ln);a.Ln=NaN}function vp(a){var b=a.j;return!!b.j&&3==b.j.getState()&&isNaN(a.xh)}
f.rC=function(){this.Ia("Channel opened");this.pn&&(this.pn=!1,tp(this),this.Yi=M(x(function(){this.Ia("Timing out waiting for a screen.");this.B(1)},this),15E3));uk(Ko(this.j),this.G)};f.nC=function(){this.Ia("Channel closed");isNaN(this.xh)?vk(!0):vk();this.dispose()};f.oC=function(a){vk();isNaN(this.C())?(this.Ia("Channel error: "+a+" without reconnection"),this.dispose()):(this.pn=!0,this.Ia("Channel error: "+a+" with reconnection in "+this.C()+" ms"),qp(this,2))};
function wp(a,b){b&&(rp(a),tp(a));b==vp(a)?b&&(qp(a,1),a.o("getSubtitlesTrack")):b?(a.D()&&Ro(a.ba),qp(a,1),a.o("getNowPlaying")):a.B(1)}function xp(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.ba.videoId&&(Rb(b.params)?a.ba.o=null:a.ba.o=b.params,a.publish("remotePlayerChange"))}function yp(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.ba.k=b.params.listId||a.ba.k;Yo(a.ba,c,d);a.publish("remoteQueueChange")}
function zp(a,b){b.params=b.params||{};yp(a,b);Ap(a,b)}function Ap(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);Wo(a.ba,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.ba.j&&(c=-1E3);a.ba.j=c;var d=null;-1E3==c&&(d=a.ba.A||"unknown",n(b.params.currentError)&&(d=Yf(b.params.currentError).reason||d));a.ba.A=d;1==a.ba.j?up(a):sp(a);a.publish("remotePlayerChange")}
function Bp(a,b){var c="true"==b.params.muted;a.ba.volume=parseInt(b.params.volume,10);a.ba.muted=c;a.publish("remotePlayerChange")}
f.pC=function(a){a.params?this.Ia("Received: action="+a.action+", params="+$f(a.params)):this.Ia("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=Yf(a.params.devices);this.k=F(a,function(a){return new ak(a)});a=!!G(this.k,function(a){return"LOUNGE_SCREEN"==a.type});wp(this,a);break;case "loungeScreenConnected":wp(this,!0);break;case "loungeScreenDisconnected":nb(this.k,function(a){return"LOUNGE_SCREEN"==a.type});wp(this,!1);break;case "remoteConnected":var b=new ak(Yf(a.params.device));
G(this.k,function(a){return a.equals(b)})||kb(this.k,b);break;case "remoteDisconnected":b=new ak(Yf(a.params.device));nb(this.k,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":yp(this,a);break;case "nowPlaying":zp(this,a);break;case "onStateChange":Ap(this,a);break;case "onVolumeChanged":Bp(this,a);break;case "onSubtitlesTrackChanged":xp(this,a);break;default:this.Ia("Unrecognized action: "+a.action)}};
f.qC=function(a){a.params?this.Ia("Received: action="+a.action+", params="+$f(a.params)):this.Ia("Received: action="+a.action);Cp(this,a);Dp(this,a);if(vp(this)){var b=this.ba.clone(),c=!1,d,e,g,h,k,l,p;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,g=a.params.state,h=a.params.currentTime||a.params.current_time,k=a.params.volume,l=a.params.muted,n(a.params.currentError)&&(p=Yf(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==Vo(this.ba)&&
(delete a.params.videoId,Rb(a.params)?this.ba.o=null:this.ba.o=a.params,this.publish("remotePlayerChange"));else if(Vo(this.ba)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=Vo(this.ba)):this.ba.setVideoId(""),e&&(e=e.split(","),Zo(this.ba,e,d))):Zo(this.ba,[]),this.ba.add(d)&&this.o("getPlaylist"),d&&this.ba.setVideoId(d),b.index==this.ba.index&&zb(b.videoIds,this.ba.videoIds)||this.publish("remoteQueueChange"),
n(g)&&(b=parseInt(g,10),b=isNaN(b)?-1:b,-1==b&&-1E3==this.ba.j&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.ba.j,this.ba.j=b,d=null,-1E3==b&&(d=this.ba.A||"unknown",p&&(d=p.reason||d)),c=c||this.ba.A!=d,this.ba.A=d,1==this.ba.j?up(this):sp(this)),"onError"!=a.action||-1!=this.ba.j&&-1E3!=this.ba.j||(a=Yf(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==Vo(this.ba)&&(this.ba.j=-1E3,this.ba.A=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),Wo(this.ba,isNaN(b)?0:b),c=!0),
n(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||this.ba.volume!=b,this.ba.volume=b),n(l)&&(l="true"==l,c=c||this.ba.muted!=l,this.ba.muted=l)),c&&this.publish("remotePlayerChange")}};
function Cp(a,b){switch(b.action){case "loungeStatus":var c=Yf(b.params.devices);a.k=F(c,function(a){return new ak(a)});break;case "loungeScreenDisconnected":nb(a.k,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new ak(Yf(b.params.device));G(a.k,function(a){return a.equals(d)})||kb(a.k,d);break;case "remoteDisconnected":d=new ak(Yf(b.params.device)),nb(a.k,function(a){return a.equals(d)})}}
function Dp(a,b){var c=!1;if("loungeStatus"==b.action)c=!!G(a.k,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;if(!isNaN(a.Yi))if(c)tp(a);else return;c==vp(a)?c&&qp(a,1):c?(rp(a),a.D()&&Ro(a.ba),qp(a,1),a.o("getNowPlaying")):a.B(1)}f.sA=function(){if(this.A){var a=this.A;this.A=null;this.ba.videoId!=a&&this.o("getNowPlaying")}};np.prototype.subscribe=np.prototype.subscribe;
np.prototype.unsubscribeByKey=np.prototype.Kb;np.prototype.K=function(){var a=3;this.ea()||(a=0,isNaN(this.C())?vp(this)&&(a=1):a=2);return a};np.prototype.getProxyState=np.prototype.K;np.prototype.B=function(a){this.Ia("Disconnecting with "+a);rp(this);this.publish("beforeDisconnect",a);1==a&&vk();this.j.disconnect(a);this.dispose()};np.prototype.disconnect=np.prototype.B;np.prototype.J=function(){var a=this.ba;this.A&&(a=this.ba.clone(),Yo(a,this.A,a.index));return $o(a)};
np.prototype.getPlayerContextData=np.prototype.J;
np.prototype.N=function(a){var b=new Qo(a);b.videoId&&b.videoId!=this.ba.videoId&&(this.A=b.videoId,N(this.Wi),this.Wi=M(x(this.sA,this),5E3));var c=[];this.ba.k==b.k&&this.ba.videoId==b.videoId&&this.ba.index==b.index&&zb(this.ba.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ba.j==b.j&&this.ba.volume==b.volume&&this.ba.muted==b.muted&&Xo(this.ba)==Xo(b)&&$f(this.ba.o)==$f(b.o)||c.push("remotePlayerChange");Ro(this.ba,a);E(c,function(a){this.publish(a)},this)};
np.prototype.setPlayerContextData=np.prototype.N;np.prototype.H=function(){return this.j.A.loungeIdToken};np.prototype.getLoungeToken=np.prototype.H;np.prototype.D=function(){var a=this.j.getDeviceId(),b=G(this.k,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};np.prototype.getOtherConnectedRemoteId=np.prototype.D;np.prototype.C=function(){var a=this.j;return a.k.enabled?a.k.B-z():NaN};np.prototype.getReconnectTimeout=np.prototype.C;
np.prototype.R=function(){if(!isNaN(this.C())){var a=this.j.k;a.enabled&&(a.stop(),a.start(),a.C())}};np.prototype.reconnect=np.prototype.R;np.prototype.o=function(a,b){b?this.Ia("Sending: action="+a+", params="+$f(b)):this.Ia("Sending: action="+a);this.j.sendMessage(a,b)};np.prototype.sendMessage=np.prototype.o;var Ep=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];function Fp(a,b){var c=Gp(a);return bb(b,function(a){return a.uuid?(a=Mj(this.o,a.uuid),!!a&&"RUNNING"==a.status):!!Nj(c,a)},a)}
function Hp(a,b,c){var d=Ip,e="";N(d.k);d.k=NaN;d.A="";if(Mj(d.o,a)){if(!e){var g=e=Jj();Il();var h=Sl(a),k=Fl();if(k&&h){var l=new cast.Receiver(h.id,h.name),l=new cast.LaunchRequest("YouTube",l);l.parameters="pairingCode="+g;l.description=new cast.LaunchDescription;l.description.text=document.title;b&&(l.parameters+="&v="+b,c&&(l.parameters+="&t="+Math.round(c)),l.description.url="http://i.ytimg.com/vi/"+b+"/default.jpg");"UNKNOWN"!=h.status&&(h.status="UNKNOWN",Ol(h),Ci("yt-remote-cast-device-status-update",
h));Dl("Sending a cast launch request with params: "+l.parameters);k.launch(l,y(Tl,a))}else Dl("No cast API or no cast device. Dropping cast launch.")}d.A=e;d.k=M(x(d.G,d,a,0,e),Ep[0])}else d.Ia("No DIAL device with id: "+a)}function Jp(a,b){var c=Oj(Gp(a),b);a.Ia("Found screen: "+ni(c)+" with key: "+b);return c}function Kp(a){var b=Ip,c=Oj(b.j,a);b.Ia("Found online screen: "+ni(c)+" with key: "+a);return c}
function Lp(a){var b=Ip,c=Mj(b.o,a);if(!c){var d=Oj(b.C,a);d&&(c=Mj(b.o,d.uuid))}b.Ia("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function Gp(a){return ob(a.B,bb(a.C,function(a){return!Nj(this.B,a)},a))};function Mp(a){Pj.call(this,"ScreenServiceProxy");this.Eb=a;this.j=[];this.j.push(this.Eb.$_s("screenChange",x(this.zE,this)));this.j.push(this.Eb.$_s("onlineScreenChange",x(this.wE,this)))}B(Mp,Pj);f=Mp.prototype;f.ac=function(a){return this.Eb.$_gs(a)};f.contains=function(a){return!!this.Eb.$_c(a)};f.get=function(a){return this.Eb.$_g(a)};f.start=function(){this.Eb.$_st()};f.add=function(a,b,c){this.Eb.$_a(a,b,c)};f.remove=function(a,b,c){this.Eb.$_r(a,b,c)};
f.Zj=function(a,b,c,d){this.Eb.$_un(a,b,c,d)};f.L=function(){for(var a=0,b=this.j.length;a<b;++a)this.Eb.$_ubk(this.j[a]);this.j.length=0;this.Eb=null;Mp.I.L.call(this)};f.zE=function(){this.publish("screenChange")};f.wE=function(){this.publish("onlineScreenChange")};Ik.prototype.$_st=Ik.prototype.start;Ik.prototype.$_gspc=Ik.prototype.$G;Ik.prototype.$_gsppc=Ik.prototype.ms;Ik.prototype.$_c=Ik.prototype.contains;Ik.prototype.$_g=Ik.prototype.get;Ik.prototype.$_a=Ik.prototype.add;
Ik.prototype.$_un=Ik.prototype.Zj;Ik.prototype.$_r=Ik.prototype.remove;Ik.prototype.$_gs=Ik.prototype.ac;Ik.prototype.$_gos=Ik.prototype.Ss;Ik.prototype.$_s=Ik.prototype.subscribe;Ik.prototype.$_ubk=Ik.prototype.Kb;function Np(a){q("yt.mdx.remote.castv2_",!0,void 0);Vi&&Ui();hk();Op||(Op=new Gj,wk()&&(Op.j="/api/loungedev"));Pp||(Pp=r("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",Pp,void 0));Qp();var b=Rp();if(!b){var c=new Ik(Op);q("yt.mdx.remote.screenService_",c,void 0);b=Rp();gl(a,c,function(a){a?zl()&&yl():c.subscribe("onlineScreenChange",function(){Ci("yt-remote-receiver-availability-change")})})}}
function Sp(){Bi(Tp);Tp.length=0;qi(Up);Up=null;Pp&&(E(Pp,function(a){a(null)}),Pp.length=0,Pp=null,q("yt.mdx.remote.deferredProxies_",null,void 0));Ip&&(qi(Ip),Ip=null);Op=null;Nl()}
function Vp(){if(Wp()&&sl()){var a=[];if(Yi("yt-remote-cast-available")||r("yt.mdx.remote.cloudview.castButtonShown_")||Xp())a.push({key:"cast-selector-receiver",name:Yp()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}if(r("yt.mdx.remote.cloudview.initializing_"))return[];var b=[],b=Zp()?Rp().Eb.$_gos():mi(Yi("yt-remote-online-screens")||[]);(a=$p())&&Xp()&&(Nj(b,a)||b.push(a));Zp()||(a=Lj(tk()),a=bb(a,function(a){return!Oj(b,a.id)}),b=ob(b,a));return Kj(b)}
function aq(){if(Wp()&&sl()){var a=tl();return a?{key:"cast-selector-receiver",name:a}:null}var a=Vp(),b=bq(),c=$p();c||(c=cq());return G(a,function(a){return c&&ii(c,a.key)||b&&(a=Lp(a.key))&&a.id==b?!0:!1})}function Yp(){if(Wp()&&sl())return tl();var a=$p();return a?a.name:null}function $p(){var a=zl();if(!a)return null;if(!Ip){var b=Rp().ac();return Oj(b,a)}return Jp(Ip,a)}
function dq(a,b){eq("Connecting to: "+$f(a));if("cast-selector-receiver"==a.key)fq(b||null),xl(b||null);else{gq();fq(b||null);var c=null;Ip?c=Kp(a.key):(c=Rp().ac(),c=Oj(c,a.key));if(c)hq(c);else{if(Ip&&(c=Lp(a.key))){iq(c);return}M(function(){jq(null)},0)}}}
function gq(){if(Ip){var a=Ip;N(a.k);a.k=NaN;a.A=""}t:{if(a=Xp())if(a=a.getOtherConnectedRemoteId()){eq("Do not stop DIAL due to "+a);kq("");break t}(a=bq())?(eq("Stopping DIAL: "+a),Ul(a),kq("")):(a=$p())&&a.uuid&&(eq("Stopping DIAL: "+a.uuid),Ul(a.uuid))}wl()?ol().stopSession():ll("stopSession called before API ready.");(a=Xp())?a.disconnect(1):(Di("yt-remote-before-disconnect",1),Di("yt-remote-connection-change",!1));jq(null)}
function lq(){var a=mq(),a=a?a.currentTime:0,b=nq();0==a&&b&&(a=Xo(dp(b)));return a}function nq(){var a=Xp();return a&&3!=a.getProxyState()?new ap(a,void 0):null}function eq(a){ei("remote",a)}function Wp(){return!!r("yt.mdx.remote.castv2_")}function Zp(){return r("yt.mdx.remote.screenService_")}function Rp(){if(!Up){var a=Zp();Up=a?new Mp(a):null}return Up}function zl(){return r("yt.mdx.remote.currentScreenId_")}
function oq(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(Ip){var b=Ip;b.F=z()+3E5;if(b.D=a){var c=Jp(b,a);if(c&&!Nj(b.j,c)){a=pb(b.j);a.push(c);var c=Fp(b,a),d=!zb(b.j,c,ji);ib(a)||sk(F(c,ki));d&&(b.Ia("Updating online screens: "+oi(b.j)+" -> "+oi(c)),b.j=c,b.publish("onlineReceiverChange"))}}}}function bq(){return r("yt.mdx.remote.currentDialId_")}function kq(a){q("yt.mdx.remote.currentDialId_",a,void 0)}function mq(){return r("yt.mdx.remote.connectData_")}
function fq(a){q("yt.mdx.remote.connectData_",a,void 0)}function Xp(){return r("yt.mdx.remote.connection_")}function jq(a){var b=Xp();fq(null);a?Xa(!Xp()):(oq(""),kq(""));q("yt.mdx.remote.connection_",a,void 0);Pp&&(E(Pp,function(b){b(a)}),Pp.length=0);b&&!a?Di("yt-remote-connection-change",!1):!b&&a&&Ci("yt-remote-connection-change",!0)}function cq(){var a=kk();if(!a)return null;if(Zp()){var b=Rp().ac();return Oj(b,a)}return Ip?Jp(Ip,a):null}
function hq(a){Xa(!zl());oq(a.id);a=new np(Op,a,pq());a.connect(1,mq());a.subscribe("beforeDisconnect",function(a){Di("yt-remote-before-disconnect",a)});a.subscribe("beforeDispose",function(){Xp()&&(Xp(),jq(null))});jq(a)}function iq(a){bq();eq("Connecting to: "+(a?a.toString():"null"));kq(a.id);var b=mq();b?Hp(a.id,b.videoIds[b.index],b.currentTime):Hp(a.id)}var Op=null,Pp=null,Up=null,Ip=null;
function Qp(){var a=pq();if(Rb(a)){var a=jk(),b=Yi("yt-remote-session-name")||"",c=Yi("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)}}function pq(){return r("yt.mdx.remote.channelParams_")||{}}var Tp=[];function qq(){var a={volume:100,muted:!1},b=Yi("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Fc(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a}function rq(a){Wi("yt-player-bandwidth",a,2592E3)};function sq(a,b,c){w(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=a;c=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);b.videoId=c&&c[2]?c[2]:null;return tq(a)}function tq(a,b,c){if(ja(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}};function uq(a,b,c){this.errorCode=a;this.k=b;this.j=c||""};function vq(a,b){Q.call(this);this.app=a;this.xd=null;this.Se={};this.gg={};this.o={};this.k={};this.j=null;this.playerType=b;V(this,"cueVideoById",this.MA);V(this,"loadVideoById",this.Em);V(this,"cueVideoByUrl",this.NA);V(this,"loadVideoByUrl",this.bB);V(this,"playVideo",this.oj);V(this,"pauseVideo",this.pauseVideo);V(this,"stopVideo",this.Jl);V(this,"clearVideo",this.KA);V(this,"getVideoBytesLoaded",this.WA);V(this,"getVideoBytesTotal",this.XA);V(this,"getVideoLoadedFraction",this.Jm);V(this,"getVideoStartBytes",
this.ZA);V(this,"cuePlaylist",this.LA);V(this,"loadPlaylist",this.Cr);V(this,"nextVideo",this.Dr);V(this,"previousVideo",this.Er);V(this,"playVideoAt",this.Im);V(this,"setShuffle",this.jB);V(this,"setLoop",this.gB);V(this,"getPlaylist",this.fd);V(this,"getPlaylistIndex",this.wr);V(this,"getPlaylistId",this.Br);V(this,"loadModule",this.Vq);V(this,"unloadModule",this.Xq);V(this,"setOption",this.Wq);V(this,"getOption",this.ni);V(this,"getOptions",this.SA);V(this,"mute",this.tq);V(this,"unMute",this.uq);
V(this,"isMuted",this.sq);V(this,"setVolume",this.setVolume);V(this,"getVolume",this.rq);V(this,"seekTo",this.Ff);V(this,"getPlayerState",this.getPlayerState);V(this,"getPlaybackRate",this.UA);V(this,"setPlaybackRate",this.iB);V(this,"getAvailablePlaybackRates",this.PA);V(this,"getPlaybackQuality",this.TA);V(this,"setPlaybackQuality",this.Gm);V(this,"getAvailableQualityLevels",this.QA);V(this,"getCurrentTime",this.getCurrentTime);V(this,"getDuration",this.Kg);V(this,"addEventListener",this.addEventListener);
V(this,"removeEventListener",this.removeEventListener);V(this,"getVideoUrl",this.getVideoUrl);V(this,"getDebugText",this.Ar);V(this,"getVideoEmbedCode",this.YA);V(this,"getVideoData",this.getVideoData);V(this,"addCueRange",this.zr);V(this,"removeCueRange",this.cB);V(this,"setSize",this.kB);V(this,"getApiInterface",this.OA);V(this,"destroy",this.destroy);V(this,"showVideoInfo",this.lB);V(this,"hideVideoInfo",this.$A);wq(this,"getInternalApiInterface",this.RA);wq(this,"getAdState",this.getAdState);
wq(this,"isNotServable",this.aB);wq(this,"getUpdatedConfigurationData",this.VA);wq(this,"updateRemoteReceivers",this.mB);wq(this,"sendAbandonmentPing",this.dB);wq(this,"setAutonav",this.eB);wq(this,"setAutonavState",this.fB);wq(this,"setMinimized",this.hB);wq(this,"channelSubscribed",u);wq(this,"channelUnsubscribed",u)}B(vq,Q);function V(a,b,c){a.Se[b]=x(c,a)}function wq(a,b,c){a.gg[b]=x(c,a)}f=vq.prototype;f.OA=function(){return Mb(this.Se)};f.RA=function(){return Mb(this.gg)};f.M=function(){return this.xd};
f.addEventListener=function(a,b){if(w(b)){var c=function(){r(b).apply(window,arguments)};this.o[b]=c;this.app.subscribe(a,c)}else this.app.subscribe(a,b)};f.Jw=function(a,b){var c=w(b)?a+b:a+ka(b);if(!this.k[c]){var d;w(b)?d=function(){r(b).apply(window,arguments)}:d=b;var e=x(function(a){d({target:this.j,data:a})},this);this.k[c]=e;this.addEventListener(a,e)}};f.removeEventListener=function(a,b){if(w(b)){var c=this.o[b];Tb(this.o,b);this.app.unsubscribe(a,c)}else this.app.unsubscribe(a,b)};
f.Kw=function(a,b){var c=w(b)?a+b:a+ka(b),d=this.k[c];d&&(this.removeEventListener(a,d),Tb(this.k,c))};f.getPlayerState=function(){return this.app.na};f.Ff=function(a,b){xq(this.app,!0,this.playerType);yq(this.app,a,b,void 0,this.playerType)};f.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};f.Kg=function(){return zq(this.app,1)};f.rq=function(){return Aq(this.app)};f.setVolume=function(a){this.app.setVolume(a)};f.sq=function(){return this.app.H.muted};f.tq=function(){Bq(this.app)};
f.uq=function(){Cq(this.app)};f.oj=function(){xq(this.app,!0,this.playerType);Dq(this.app,this.playerType)};f.pauseVideo=function(){Eq(this.app,this.playerType)};f.Jl=function(){var a=this.app,b=this.playerType;Fq(a.j)&&Gq(a,!1);Hq(a,"play_pause")||Iq(a,b)};f.KA=function(){};f.UA=function(){return this.app.da};f.iB=function(a){Jq(this.app,a)};f.PA=function(){return this.app.j.J?Kq:[1]};f.TA=function(){return Lq(this.app,this.playerType)};
f.Gm=function(a){var b=this.app,c=Mq(b,this.playerType);c&&!b.j.isMobile&&(a=Nq(a,a,!0),Oq(c,"p",a))};f.QA=function(){var a=Mq(this.app,this.playerType);return a?Pq(a):[]};f.WA=function(){return this.Jm()};f.XA=function(){return 1};f.Jm=function(){return Qq(this.app.$)};f.ZA=function(){return 0};f.kB=function(){this.app.k.vj()};f.eB=function(a){var b=this.app;a=a?2:1;b.getVideoData().Ld=a;b.Sa("autonavchange",a)};f.fB=function(a){var b=this.app;b.getVideoData().Ld=a;b.Sa("autonavchange",a)};
f.hB=function(a){this.app.j.hs=a};f.Vq=function(a){this.app.D.isAvailable(a)&&(a=Rq(this.app.D,a))&&!a.loaded&&a.load()};f.Xq=function(a){this.app.D.isAvailable(a)&&(a=Rq(this.app.D,a))&&a.loaded&&a.unload()};f.Em=function(a,b,c){a=Sq(this.app,tq(a,b,c),this.playerType);xq(this.app,a,this.playerType)};f.MA=function(a,b,c){Tq(this.app,tq(a,b,c),this.playerType)};
f.bB=function(a,b,c){a=sq(a,b,c);b=Sq(this.app,a,this.playerType);xq(this.app,b,this.playerType);b=this.app;(a=af(new K(a.mediaContentUrl)))&&Uq(b.j,a)};f.NA=function(a,b,c){b=sq(a,b,c);Tq(this.app,b,this.playerType);a=this.app;(b=af(new K(b.mediaContentUrl)))&&Uq(a.j,b)};f.getVideoUrl=function(){return Vq(this.app)};f.Ar=function(){return Wq(this.app)};f.YA=function(){return Xq(this.app)};f.zr=function(a,b,c){return Yq(this.app,a,b,c)};
f.cB=function(a){t:{for(var b=this.app,c=b.o.D.j.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){e.Oa.clear();b.o.D.wg(e);b.publish("cuerangesremoved",[e]);a=!0;break t}}a=!1}return a};f.Cr=function(a,b,c,d){var e=this.app;e.R=!1;Zq(e,a,b,c,d);xq(this.app,!0,this.playerType)};f.LA=function(a,b,c,d){var e=this.app;e.R=!0;Zq(e,a,b,c,d)};f.Dr=function(){$q(this.app);xq(this.app,!0,this.playerType)};f.Er=function(){ar(this.app);xq(this.app,!0,this.playerType)};
f.Im=function(a){br(this.app,a);xq(this.app,!0,this.playerType)};f.jB=function(a){var b=this.app;b.A&&cr(b.A,a)};f.gB=function(a){var b=this.app;b.A&&(b.A.If=a)};f.fd=function(){var a=this.app.A;if(!a)return null;for(var b=[],c=0;c<a.uc;c++){var d=dr(a,c);d&&b.push(d.videoId)}return b};f.wr=function(){var a;a=this.app;a=a.A?a.A.Ua:null;return null==a?-1:a};f.Br=function(){return er(this.app)};f.Wq=function(a,b,c){return fr(this.app,a,b,c)};f.ni=function(a,b,c){return fr(this.app,a,b,c)};
f.SA=function(a){return gr(this.app,a)};f.getVideoData=function(){var a=Mq(this.app,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.Br();b&&(a.list=b);return a};f.lB=function(){hr(this.app.k)};f.$A=function(){this.app.k.fm()};f.getAdState=function(){return this.app.getAdState()};f.aB=function(a){var b=this.app;a!=b.X.args.video_id?a=!1:(a=b.getPlayerState(),a=!(!a||!W(a,128)||5!=ir[a.j.errorCode]));return a};
f.VA=function(){var a=this.app,b=a.X.clone(),c=b.args,a=jr(a),d=Vb(a.A);!a.Va&&0<a.startSeconds&&(d.start=a.startSeconds);qa(c,d);return b};f.mB=function(a,b){var c=this.app;c.G&&kr(c.G,a,b);lr(c.j)&&6!=c.J&&(c.j.jg=!ib(a),c.j.jg?(1!=c.J&&3!=c.J||!b||mr(c.F),a.length&&1!=c.J&&nr(c)):mr(c.G))};f.destroy=function(){this.app.dispose()};f.dB=function(){var a=Mq(this.app);a&&!W(a.getPlayerState(),128)&&(or(a),pr(a))};
f.L=function(){if(this.xd){for(var a in this.Se)this.xd[a]=null;for(a in this.gg)this.xd[a]=null;this.xd=null}this.o=this.k=null;vq.I.L.call(this)};function qr(a,b){vq.call(this,a,b);V(this,"addInfoCardXml",this.RF);V(this,"cueVideoByPlayerVars",this.SF);V(this,"loadVideoByPlayerVars",this.jq);V(this,"preloadVideoByPlayerVars",this.XF);V(this,"seekBy",this.xu);V(this,"enableLicenseIntercept",this.TF);V(this,"updatePlaylist",this.bG);V(this,"resumeLicenseSession",this.YF);V(this,"updateLastActiveTime",this.aG);V(this,"updateVideoData",this.cG);V(this,"getStoryboardFormat",this.VF);V(this,"getProgressState",this.Dg);V(this,"hideUserInterface",
this.WF);V(this,"showUserInterface",this.$F);V(this,"getHousebrandProperties",this.UF);V(this,"setPlaybackQualityRange",this.ZF);V(this,"getCurrentPlaylistSequence",this.QF);V(this,"canPlayType",this.canPlayType)}B(qr,vq);f=qr.prototype;f.zr=function(a,b,c,d,e){return Yq(this.app,a,b,c,d,e)};f.RF=function(a,b){var c=this.app;c.j.ha=a;c.j.jc=b};f.SF=function(a){Tq(this.app,a,this.playerType)};f.getPlayerState=function(a){var b=this.app;return 2==a?b.Ba:b.na};f.jq=function(a){Sq(this.app,a,this.playerType)};
f.XF=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.N&&b.N.getVideoData().videoId==a.videoId||(a=new rr(a),sr(b,a))};f.oj=function(){Dq(this.app,this.playerType)};f.Ff=function(a,b){yq(this.app,a,b,void 0,this.playerType)};f.Cr=function(a,b,c,d){var e=this.app;e.R=!1;Zq(e,a,b,c,d)};f.Dr=function(){$q(this.app)};f.Er=function(){ar(this.app)};f.Im=function(a){br(this.app,a)};f.xu=function(a,b,c){var d=this.app,e=this.playerType;yq(d,d.getCurrentTime()+a,b,c,e)};
f.TF=function(){var a=this.app;a.hb||(a.hb=!0,a.oa={})};f.bG=function(){var a=this.app;tr(a,jr(a));a.Sa("onPlaylistUpdate")};f.YF=function(a,b){var c=this.app,d=c.oa[a];d&&(ur(d,b),d.start(),delete c.oa[a])};f.aG=function(){vr()};f.cG=function(a){var b=Mq(this.app,this.playerType||1);b&&(b=b.j,wr(b,a),b.publish("dataupdated"))};f.VF=function(){var a=this.app.getVideoData();return a.A.storyboard_spec||a.A.live_storyboard_spec};f.WF=function(){this.app.k.lh(!1)};f.$F=function(){this.app.k.lh(!0)};
f.UF=function(){var a=this.app.S();return{lc:a.lc,xb:a.xb(),nc:a.nc}};f.getVideoData=function(){var a=qr.I.getVideoData.call(this),b=Mq(this.app,this.playerType),b=b?b.getVideoData():{};a.cpn=b.ya;a.isLive=b.Va;return a};f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):qr.I.getCurrentTime.call(this)};f.Kg=function(a){return a?zq(this.app,a):qr.I.Kg.call(this)};
f.Dg=function(){var a=this.app.getVideoData(),b=a.Va&&!a.wb?this.getCurrentTime():a.o&&!isNaN(xr(a.o))?xr(a.o):a.lengthSeconds,c=!a.Va||a.wb,d=a.clipEnd,e=a.clipStart,g=this.getCurrentTime(),h=this.Kg(),k;k=(k=Mq(this.app,void 0))?yr(k.k):0;return{allowSeeking:c,clipEnd:d,clipStart:e,current:g,displayedStart:-1,duration:h,loaded:k,seekableEnd:b,seekableStart:zr(a)}};f.Jm=function(a){var b=this.app;return(b.C&&2==b.C.getPlayerType())==(2==a)?Qq(b.$):0};f.canPlayType=function(a){return this.app.canPlayType(a)};
f.ZF=function(a,b){Ar(this.app,a,this.playerType,b)};f.QF=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.o&&b.Va){var c=b.o.j[b.k.id];c&&c.index?(b=c.index.ih(a),c=c.index.zf(b),a={sequence:b,elapsed:a-c}):a=null}else a=null;return a};function Br(a,b){qr.call(this,a,b)}B(Br,qr);f=Br.prototype;f.getPlayerType=function(){return this.playerType};f.Em=function(a,b,c){Sq(this.app,tq(a,b,c),this.playerType)};f.oj=function(){Dq(this.app,this.playerType)};f.Ff=function(a,b){yq(this.app,a,b,void 0,this.playerType)};function Cr(a,b){a.app.k.o.appendChild(b)}f.Ma=function(){return this.app.k.M()};f.S=function(){return this.app.S()};f.fd=function(){return this.app.A};f.getVideoData=function(){var a=Mq(this.app,this.playerType);return a&&a.getVideoData()};
f.isFullscreen=function(){return this.app.S().Za};f.addEventListener=function(a,b,c){this.app.subscribe(a,b,c)};f.removeEventListener=function(a,b,c){this.app.unsubscribe(a,b,c)};f.Gm=function(a){Ar(this.app,a,1)};f.Ar=function(a){return Wq(this.app,a)};f.getVideoUrl=function(a){return Vq(this.app,a)};function Dr(a,b){this.start=a;this.end=b;this.j=ka(this)}function Er(a,b){return a.start!=b.start?a.start-b.start:a.end!=b.end?a.end-b.end:a.j!=b.j?a.j-b.j:0}Dr.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)};Dr.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function Fr(){this.j=[]}function Gr(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}function Hr(a,b,c){for(var d=[],e=0;e<a.j.length;++e){var g=a.j[e];if(null!=c&&g.start>c)break;g.start>b&&d.push(g)}return d}function Ir(a,b){for(var c=[],d=0;d<a.j.length;++d){var e=a.j[d];e.contains(b)&&c.push(e.end);if(e.start>b){c.push(e.start);break}}c.sort(vb);return c[0]};function Jr(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}function Kr(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}function Lr(a,b){var c=Kr(a,b);return 0<=c?a.end(c):NaN}function Mr(a){return a&&a.length?a.end(a.length-1):NaN}function Nr(a,b){var c=Lr(a,b);return 0<=c?c-b:0};var Or,Pr;var Qr=Kc,Rr=Qr.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Rr||2>Rr.length)Or=void 0;else{var Sr=Qr.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Or=Sr&&6==Sr.length?Number(Sr[5].replace("_",".")):0}(Pr=0<=Or)&&0<=Kc.search("Safari")&&Kc.search("Version");var Tr=Rh||Sh;function Ur(){return Vr("(ps3; leanback shell)")}function Wr(){return Vr("safari/")&&Vr(" version/8")}function Xr(){return Uh&&Vr("crkey")}function Vr(a){var b=Kc;return b?0<=b.toLowerCase().indexOf(a):!1};function Yr(){}var Zr=Pr&&4>Or?.1:0,$r=new Yr;f=Yr.prototype;f.kd=null;f.hm=!1;function as(a,b){var c="";b&&(a.kd=b,c=bs(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.j||a.load())}function cs(a,b){0<a.readyState&&(a.currentTime=Math.max(Zr,b))}f.getCurrentTime=function(){return this.currentTime||0};function yr(a){return 0<Mr(a.buffered)&&a.duration?Lr(a.buffered,a.currentTime):0}function Qq(a){var b=a.duration||0;return Infinity==b?1:b?yr(a)/b:0}function ds(a){return a.paused||a.ended}
function es(a){a.ended&&cs(a,0);!a.hasAttribute("src")&&a.kd&&(a.src=bs(a.kd),a.kd.j||a.load());a.play();Pr&&7<=Or&&vh(a,x(function(){M(x(this.Ct,this,this.currentTime,0),500)},a))}f.Ct=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),M(x(this.Ct,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function fs(a){a.currentSrc&&(Tr&&cs(a,0),Ed(a),a.removeAttribute("src"),a.load(),a.kd&&a.kd.j&&(a.kd=null))}function gs(a){fs(a);a.kd=null}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function hs(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.ZE=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.$E=function(){this.hm&&!this.muted&&(this.muted=!0)};
Yr.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:Jr(this.played),vbu:Jr(this.buffered),vpa:this.paused,vsk:this.seeking,vpr:this.playbackRate,vrs:this.readyState,vns:this.networkState,vec:this.error?this.error.errorCode:null}};function is(a,b){this.k=a||64;this.j=b||null}
function js(a,b,c,d){if(W(a,128))return a;var e=a.k,g=a.j,h=b.target;switch(b.type){case "ended":if(0>=h.networkState||!h.src)break;e=14;g=null;break;case "pause":W(a,256)?(e^=256)||(e=64):W(a,32)||W(a,2)||(e=4,W(a,1)&&W(a,8)&&(e|=1),g=null);break;case "playing":e=8;d&&W(a,1)&&(e|=1);g=null;break;case "abort":if(64==e)break;case "error":t:if((b=h.error)&&b.code){switch(b.code){case b.MEDIA_ERR_NETWORK:b="progressive.net";break;case b.MEDIA_ERR_DECODE:b="fmt.decode";break;case b.MEDIA_ERR_SRC_NOT_SUPPORTED:b=
"fmt.unplayable";break;default:b=null;break t}b={errorCode:b}}else b=null;b&&(g=b,e|=128);break;case "canplay":e&=-2;break;case "progress":W(a,8)&&ks(c,h)&&(e|=1);break;case "seeked":e&=-17;d||(e&=-2);break;case "seeking":e|=16;0>=Nr(h.buffered,h.currentTime)&&(e|=1);e&=-3;break;case "waiting":W(a,2)||(e|=1);break;case "timeupdate":W(a,16)||(e=ks(c,h)?e|1:e&-2);1<h.readyState&&0<h.currentTime&&(e&=-65);break;default:return a}return ls(a,e,g)}
function ks(a,b){if(!a)return!1;var c=Nr(b.buffered,b.currentTime);return ms(a,b.currentTime,z(),c)}function ls(a,b,c){return b==a.k&&c==a.j||b&128&&!c||b&2&&b&16?a:new is(b,c)}function ns(a,b){return ls(a,a.k|b)}function os(a,b){return ls(a,a.k&~b)}function W(a,b){return!!(a.k&b)}function ps(a){return W(a,128)?-1:W(a,2)?0:W(a,1)&&!W(a,32)?3:W(a,64)?-1:W(a,8)?1:W(a,4)?2:-1};function qs(a,b,c){Dr.call(this,a,b);a=c||{};this.va=a.id||"";void 0!=a.priority&&(this.Dh=a.priority);this.namespace=a.namespace||"";this.Oa=new ti;this.tooltip=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.visible=a.visible)}B(qs,Dr);f=qs.prototype;f.va="";f.Dh=7;f.active=!0;f.visible=!1;f.style="ytp-ad-progress";f.Oa=null;f.namespace="";f.getId=function(){return this.va};function rs(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}
function ss(a,b){return a.start==b.start?a.Dh==b.Dh?0:a.Dh<b.Dh?-1:1:a.start<b.start?-1:1}f.toString=function(){return qs.I.toString.call(this)};function ts(a,b,c,d){S.call(this);this.F=a;this.D=b;this.C=c;this.G=d;this.A=new dn(250);om(this.A,"tick",this.qc,!1,this);R(this,this.A);this.k=[];this.j=new Fr}B(ts,S);f=ts.prototype;f.ki=!1;f.vg=!1;f.Rl=!1;f.Ql=!1;f.Eg=null;function us(a,b){a.qc();var c=a.j;if(1<b.length&&b.length>c.j.length)c.j=c.j.concat(b),c.j.sort(Er);else for(var d=0;d<b.length;d++){var e=b[d];!c.j.length||0<Er(e,c.j[c.j.length-1])?c.j.push(e):Bb(c.j,e,Er)}a.qc()}
f.wg=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.k.indexOf(c);0<=d&&this.k.splice(d,1);d=this.j.j;c=ub(d,c,Er);0<=c&&mb(d,c)}}this.qc()};f.hf=function(){this.o=vs(this);this.vg=!0;this.qc()};function ws(a,b){var c=[];if(!b.length)return c;b.sort(ss);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.k.indexOf(e)&&(a.k.push(e),c.push(["onEnter",e]))}return c}
function xs(a,b){var c=[];if(!b.length)return c;b.sort(ss);for(var d=0;d<b.length;d++){var e=b[d],g=a.k.indexOf(e);0>g||(a.k.splice(g,1),c.push(["onExit",e]))}return c}
f.qc=function(){this.Ql=!0;if(!this.Rl)for(var a=3;this.Ql&&a;){this.Ql=!1;this.Rl=!0;if(this.vg&&!this.ki){ys(this);for(var b=vs(this),c=[],d=[],e=0;e<this.k.length;e++){var g=this.k[e];g.active&&!g.contains(b)&&d.push(g)}c=c.concat(xs(this,d));d=Gr(this.j,b);e=this.C();!W(e,48)&&b>this.o&&(d=d.concat(Hr(this.j,this.o,b)));c=c.concat(ws(this,d));this.o=b;!this.ki&&this.B&&(c.unshift(["onLockBlockExit",this.B]),this.B=null,W(e,2)&&(this.o=2147483647));this.G()&&(b=Ir(this.j,this.o),null!=b&&(b=(b-
this.o)/this.D(),this.Eg=fn(x(this.qc,this),b)));zs(this,c)}this.Rl=!1;a--}};function zs(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];"onLockBlockExit"==d[0]||"onLockBlockEnter"==d[0]?a.publish.apply(a,d):e.Oa.publish.apply(e.Oa,d)}}function ys(a){null!=a.Eg&&(gn(a.Eg),a.Eg=null)}function vs(a){return W(a.C(),2)?2147483647:1E3*a.F()}f.L=function(){wm(this.A,"tick",this.qc,!1,this);ys(this);this.B=this.j=this.k=null;ts.I.L.call(this)};function Bs(a){S.call(this);this.j=a;this.zn&&(a=Wj("yt-html5-player-modules::"+this.zn))&&(this.$=new Li(a))}B(Bs,S);f=Bs.prototype;f.ta="";f.oc="";f.Id=!1;f.loaded=!1;f.Oi=!1;f.Mb=null;f.Kd=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];d&&(d.namespace=this.ta,d.Oa.subscribe("onEnter",this.Ec,this),d.Oa.subscribe("onExit",this.Uc,this),b.push(d))}this.publish("command_add_cuerange",b,this.j.getPlayerType())};
f.bl=function(a){var b=pb(arguments);this.publish("command_remove_cuerange",b,this.j.getPlayerType())};function Cs(a){a.publish("command_remove_cuerange_all",a.ta,a.j.getPlayerType())}function Ds(a){a.publish("command_preroll_ready",a.ta,a.j.getPlayerType())}function Es(a,b){O(b,a.ta);a.j.app.k.la.appendChild(b)}function Fs(a,b){a.publish("command_show_dialog",b)}f.og=function(){Fs(this)};f.create=function(){this.Id||(this.Ea(this.j),O(this.j.Ma(),this.ta+"-created"),this.Id=!0)};
f.destroy=function(){this.loaded&&this.unload();Zg(this.j.Ma(),this.ta+"-created");this.Id=!1};f.load=function(){this.loaded=!0;O(this.j.Ma(),this.ta+"-loaded");this.publish("loaded",this.ta)};f.unload=function(){this.loaded=!1;Zg(this.j.Ma(),this.ta+"-loaded");this.publish("unloaded",this.ta)};f.Ec=function(){};f.Uc=function(){};f.$d=function(){};function Gs(a,b,c){a.publish("command_navigate_to_url",b,c)}f.log=function(a){this.publish("command_log",this.oc,a)};
function Hs(a,b,c){var d={},e;for(e in b)d[a.ta+"_"+e]=b[e];b={};for(var g in c)b[a.ta+"_"+g]=c[g];a.publish("command_log_timing",d,b)}f.ah=function(){return null};function Is(a,b){if(!a.$)return null;var c;try{c=a.$.get(b)}catch(d){a.$&&a.$.remove(b)}return c}function Js(a,b,c){if(a.$)try{a.$.set(b,c)}catch(d){}}function Ks(a,b){a.publish("command_disable_controls",b,a.ta)}function Ls(a,b){a.publish("command_enable_controls",b,a.ta)}function Ms(a){a.publish("command_stop_redirect_controls")}
function Ns(a){a.publish("command_play",!1,a.j.getPlayerType())}f.pauseVideo=function(){this.publish("command_pause",!1,this.j.getPlayerType())};function Os(a,b){a.publish("command_redirected_show_is_playing",b)}function Ps(a){return a.j.app.k.k}function Qs(a,b,c){a.publish("module_menu_button_add",b,c)}function Rs(a,b){a.publish("module_menu_button_remove",b)}function Ss(a,b){a.publish("module_menu_item_add",b)}function Ts(a,b){a.publish("module_menu_item_remove",b)}
function Us(a){a.publish("module_menu_show")}f.Xf=function(){};f.Wf=function(){return[]};f.Ea=function(){return!1};f.Hm=function(){return!0};f.Ej=function(a,b){this.Mb&&this.Mb.$d&&this.Mb.$d.apply(this.Mb,arguments)};f.ej=function(){};var Vs={CH:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",GH:"ERROR_AUTHENTICATION_EXPIRED",HH:"ERROR_AUTHENTICATION_MALFORMED",IH:"ERROR_AUTHENTICATION_MISSING",JH:"ERROR_BAD_REQUEST",QH:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",YH:"ERROR_CGI_PARAMS_MALFORMED",ZH:"ERROR_CGI_PARAMS_MISSING",hI:"YTP_DEVICE_FALLBACK",nI:"YTP_ERROR_LICENSE",qI:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",rI:"YTP_ERROR_GEO_FAILURE",HI:"YTP_ERROR_GENERIC",II:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",SI:"YTP_ERROR_INVALID_DRM_MESSAGE",
WI:"LEARN_MORE",xJ:"YTP_ERROR_NOT_SIGNED_IN",RJ:"YTP_ERROR_PURCHASE_NOT_FOUND",SJ:"YTP_ERROR_PURCHASE_REFUNDED",WJ:"YTP_ERROR_RENTAL_EXPIRED",SH:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",TH:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",VH:"YTP_ERROR_CAST_TOKEN_FAILED",UH:"YTP_ERROR_CAST_TOKEN_EXPIRED",WH:"YTP_ERROR_CAST_TOKEN_MALFORMED",gK:"YTP_ERROR_SERVER_ERROR",tK:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",vK:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",wK:"YTP_ERROR_STREAMING_NOT_ALLOWED",xK:"YTP_ERROR_STREAMING_UNAVAILABLE",
ZJ:"YTP_ERROR_RETRYABLE_ERROR",JK:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",IK:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",RK:"YTP_ERROR_UNSUPPORTED_DEVICE",SK:"YTP_ERROR_UNUSUAL_ACTIVITY",aL:"YTP_ERROR_VIDEO_FORBIDDEN",cL:"YTP_ERROR_VIDEO_NOT_FOUND"},Ws={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"};function Xs(a){return(a=Ws[a.toString()])?a:"YTP_ERROR_LICENSE"};var Ys={wt:function(a,b){a.splice(0,b)},ur:function(a){a.reverse()},KU:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c}};function Zs(a){a=a.split("");Ys.ur(a,28);Ys.KU(a,29);Ys.wt(a,1);Ys.ur(a,23);Ys.wt(a,1);Ys.ur(a,31);Ys.KU(a,4);Ys.KU(a,28);return a.join("")};var $s={160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",305:"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:"("};function at(a,b,c){this.k=a;this.j=b;this.o=c}var bt={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},ct=["widevine","playready"];function dt(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}function et(a,b,c,d){return!(0!=b.indexOf("audio/mp4")||"widevine"!=c||!a.canPlayType(b)||!a.canPlayType('video/mp4; codecs="avc1"',d))}
function ft(a,b,c){var d,e=dt();if(e)d=function(a,b){return e.isTypeSupported(b,a)};else if(a.addKey||a.webkitAddKey)d=function(b,c){return a.canPlayType(b,c)};else return null;for(var g=0;g<ct.length;g++){var h=ct[g];if(c[h])for(var k=bt[h],l=0;l<k.length;l++){var p=k[l];if(d(b,p)||et(a,b,h,p))return new at(h,p,c[h])}}return null};function gt(){};function ht(a,b,c,d,e,g,h){this.id=""+a;this.j=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.pa=h||0;this.k=c||null;this.video=d||null;this.Fe=e||null;this.A=g||null;this.o=$s[this.id.split(";")[0]]||""}function it(a){return 2==a.j}function jt(a){return!(a.k&&a.video)}function kt(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function lt(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function mt(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.zi=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1}mt.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.zi+"_"+this.id+"_"+this.isDefault};function nt(a){a=a||{};this.H=a.formats||"";this.C=a.format||1;if(1==this.C)for(var b=this.H.split(","),c=0;c<b.length;c++){var d=parseInt(b[c],10);isNaN(d)||(this.C=Math.max(d,this.C))}this.k=a.languageCode||"";this.D=a.languageName;this.A=a.kind||"";this.o=a.name;this.va=a.id;this.J=a.is_servable;this.isDefault=a.is_default;this.F=a.is_translateable;this.B=a.url||null;this.G=a.vss_id||"";this.j=null;a.translationLanguage&&(this.j=new mt(a.translationLanguage))}
function ot(a){var b={format:a.C,languageCode:a.k,languageName:a.D,displayName:pt(a),kind:a.A,name:a.o,id:a.va,is_servable:a.J,is_default:a.isDefault,is_translateable:a.F};if(a.j){var c=a.j;b.translationLanguage={languageCode:c.languageCode,languageName:c.languageName,languageOriginal:c.zi,id:c.id,is_default:c.isDefault}}a.B&&(b.url=a.B);return b}
function pt(a){var b=[a.D];"asr"==a.A&&-1==a.D.indexOf("(")&&b.push(" (",If("YTP_ASR_SETTINGS_LABEL"),")");a.o&&b.push(" - ",a.o);a.j&&b.push(" >> ",a.j.languageName);return b.join("")}nt.prototype.toString=function(){var a=[this.k,": ",this.o," (",this.A,")"];this.j&&a.push(" >> ",this.j.languageCode);return a.join("")};
nt.prototype.equals=function(a){if(!a)return!1;var b=this.j,c=a.j;if(b&&c){if(b.languageCode!=c.languageCode)return!1}else if(b||c)return!1;return this.k==a.k&&this.o==a.o&&this.A==a.A};function qt(a,b,c,d){this.id=a;this.name=b;this.language=c;this.isDefault=d;this.captionTracks=[];this.Mm=this.Ys=null;this.Js=0}qt.prototype.toString=function(){return this.name};var Qb={CG:"auto",DK:"tiny",XI:"light",SMALL:"small",MG:"medium",LARGE:"large",uI:"hd720",sI:"hd1080",tI:"hd1440",FI:"highres",UNKNOWN:"unknown"},rt={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,highres:2160};function st(a,b,c){this.k=a||0;this.j=b||0;this.o=c}st.prototype.equals=function(a){return this.k==a.k&&this.j==a.j&&this.o==a.o};function Nq(a,b,c){return new st(rt[a]||0,rt[b]||0,c)}var tt=Nq("auto","large",!1),ut=Nq("auto","auto",!1);function vt(a){var b=rt.auto;return a.k==b&&a.j==b}function wt(a){return a.o&&!!a.k&&a.k==a.j}
function xt(a,b){if(b.o&&vt(b))return ut;if(b.o||vt(a))return b;if(a.o||vt(b))return a;var c=a.k&&b.k?Math.max(a.k,b.k):a.k||b.k,d=a.j&&b.j?Math.min(a.j,b.j):a.j||b.j,c=Math.min(c,d);return c==a.k&&d==a.j?a:new st(c,d,!1)}function zt(a){var b=a.j||a.k;return Pb(function(a){return rt[a]==b})||"auto"}st.prototype.A=function(a){if(!a.video)return!1;a=rt[a.video.quality];return this.k<=a&&(!this.j||this.j>=a)};function At(a,b){this.k=a;this.j=b||null;this.audioTracks=[];if(this.j){var c={};E(this.j,x(function(a){if(a.Fe&&!c[a.id]){var b=new qt(a.id,a.Fe.name,a.Fe.language,a.Fe.isDefault);c[a.id]=b;this.audioTracks.push(b)}},this))}}function Bt(a,b){var c=b||ut,c=bb(a.k,x(c.A,c)),c=F(c,function(a){return a.video.quality});tb(c);return c}function Ct(a){var b={};F(a.k,function(a){b[a.video.quality]=a.video.fps});return b};function Dt(a,b,c,d,e,g){this.width=a;this.height=b;if(!g)t:{for(g=2;g<Et.length;g++){var h=Ft[Et[g]];if(a>h[0]&&b>=h[1]||a>=h[0]&&b>h[1]){g=Et[g-1];break t}}g="tiny"}this.quality=g;this.fps=c||0;this.j=e||0;this.projectionType=d||0}var Et="auto highres hd1440 hd1080 hd720 large medium small tiny".split(" "),Ft={auto:[0,0],tiny:[256,144],light:[426,240],small:[426,240],medium:[640,360],large:[854,480],hd720:[1280,720],hd1080:[1920,1080],hd1440:[2560,1440],highres:[3840,2160]};var Gt,Ht;var It=Kc,It=It.toLowerCase();if(-1!=It.indexOf("android")){var Jt=It.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Jt)Gt=Number(Jt[1]);else{var Kt={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},Lt=It.match("("+Mb(Kt).join("|")+")");Gt=Lt?Kt[Lt[0]]:0}}else Gt=void 0;Ht=0<=Gt;var Mt,Nt;function Ot(){var a=r("yt.player.utils.videoElement_");a||(a=document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a}function Pt(){if(2.2==Gt)return!0;var a=Ot();try{return!(!a||!a.canPlayType||!a.canPlayType('video/mp4; codecs="avc1.42001E, mp4a.40.2"')&&!a.canPlayType('video/webm; codecs="vp8.0, vorbis"'))}catch(b){return!1}};function Qt(a){return(a=a.exec(Kc))?a[1]:""}var Rt=function(){if(Ph)return Qt(/Firefox\/([0-9.]+)/);if(Pc||Oc)return $c;if(Uh)return Qt(/Chrome\/([0-9.]+)/);if(Vh)return Qt(/Version\/([0-9.]+)/);if(Rh||Sh){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Kc))return a[1]+"."+a[2]}else{if(Th)return(a=Qt(/Android\s+([0-9.]+)/))?a:Qt(/Version\/([0-9.]+)/);if(Qh)return Qt(/Camino\/([0-9.]+)/)}return""}();function St(a,b){this.k=a;this.o=b;this.A=0;Object.defineProperty(this,"timestampOffset",{get:this.ZD,set:this.$D});Object.defineProperty(this,"buffered",{get:this.YD})}f=St.prototype;f.append=function(a){this.k.webkitSourceAppend(this.o,a)};f.abort=function(){this.k.webkitSourceAbort(this.o)};f.YD=function(){return this.k.webkitSourceState==this.k.SOURCE_CLOSED?new Tt:this.k.webkitSourceBuffered(this.o)};f.ZD=function(){return this.A};
f.$D=function(a){this.A=a;this.k.webkitSourceTimestampOffset(this.o,a)};function Tt(){this.length=0};function Ut(a){this.activeSourceBuffers=this.sourceBuffers=[];this.j=a;this.k=NaN;this.o=0;Object.defineProperty(this,"duration",{get:this.KB,set:this.NB});Object.defineProperty(this,"readyState",{get:this.LB});this.j.addEventListener("webkitsourceclose",x(this.MB,this),!0)}f=Ut.prototype;f.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};f.PC=function(){return this.j.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.o++).toString();this.j.webkitSourceAddId(b,a);a=new St(this.j,b);this.sourceBuffers.push(a);return a};f.LB=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""};f.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)};f.MB=function(){jb(this.sourceBuffers)};
f.KB=function(){return this.k};f.NB=function(a){this.k=a;this.j.webkitSourceSetDuration&&this.j.webkitSourceSetDuration(a)};function Vt(a){this.A=[];this.H=a||null}function Wt(a,b,c,d){for(var e=0;e<c.length;e++)a.listen(b,c[e],d)}Vt.prototype.listen=function(a,b,c){c=x(c,this.H||this);a.addEventListener(b,c,!1);this.A.push(a,b,c)};Vt.prototype.removeAll=function(){if(this.A)for(;this.A.length;){var a=this.A.shift(),b=this.A.shift(),c=this.A.shift();a.removeEventListener&&a.removeEventListener(b,c)}};Vt.prototype.ea=function(){return null===this.A};Vt.prototype.dispose=function(){this.removeAll();this.A=null};function Xt(a,b,c,d){Vt.call(this);this.k=this.j=null;this.C=b;this.o=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Ut(a);this.B="";this.D=null;Wt(this,this.o,["sourceopen","webkitsourceopen"],y(this.G,d,c));Wt(this,this.o,["sourceclose","webkitsourceclose"],this.F)}B(Xt,Vt);function Yt(a,b){a.D=b}function Zt(a){if(!a.B){var b;b=a.o;b=b.PC?b.j.webkitMediaSourceURL:window.URL.createObjectURL(b);a.B=b}return a.B}
Xt.prototype.Ze=function(a){$t(this)?this.o.duration=a:this.C=a};function $t(a){return"open"==a.o.readyState}function au(a){return"closed"==a.o.readyState}function bu(a){return a.j.updating||a.k.updating}function cu(a){return a.j?!!a.j.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}Xt.prototype.G=function(a,b){isNaN(this.C)||(this.o.duration=this.C,this.C=NaN,this.j=this.o.addSourceBuffer(a),this.k=this.o.addSourceBuffer(b),this.D&&(this.D(this),this.D=null))};
Xt.prototype.F=function(){this.dispose()};Xt.prototype.dispose=function(){var a=this.B;if(a)try{window.URL.revokeObjectURL(a)}catch(b){}this.B="";Xt.I.dispose.call(this)};
function du(a){if(/opus/.test(a)&&(Uh&&!(0<=Oa(Rt,"38"))||Xr()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Vr("(ps4; leanback shell)"))return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!Ot().canPlayType(a)};function eu(a,b){this.o=a;this.j=b;this.k={}}function bs(a){return a.j?a.o:Ee(a.o,a.k)};function fu(a,b){this.k=new eu(a,!1);this.j=b}var gu="9h8(H*".split(""),hu="h98H(*".split(""),iu="oMavAV".split("");fu.prototype.getInfo=function(){return this.j};fu.prototype.Rn=function(){return this.j.video.quality};var ju={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},ku={"application/x-mpegURL":"maybe"},lu={"application/x-mpegURL":"maybe"};
function mu(a,b){if(!Pt())return[];var c=nu(a,b);a=!c.length&&b?nu(a,!1):c;for(var d={},c=Ot(),e=0;e<a.length;e++){var g=a[e];if(ou(c,g.getInfo().mimeType)&&!pu(g)){var h=g.Rn();if(!d[h]||it(d[h].getInfo()))d[h]=g}}var k=[];E(Et,function(a){(g=d[a])&&k.push(g)});return k}function ou(a,b){var c;if(!(c=a.canPlayType(b))){var d;Sh?d=lu[b]:2.2==Gt?d=ju[b]:Vr("android")&&Vr("chrome")&&(d=ku[b]);c=d||""}return c}function pu(a){return a.j.id in qu||Ur()&&"5"==a.j.id}
function ru(){return Vr("android")&&Vr("chrome")&&!bd(29)?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var qu={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function su(a){var b=[];E(a,function(a){a.url&&b.push(tu(a.url,a.type,"medium","0"))});return b}
function tu(a,b,c,d,e){var g=new gt,h=Ft[c];h||(c="small",h=Ft.small);c=new Dt(h[0],h[1],0,null,e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new fu(a,new ht(d,b,g,c))}function nu(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],g;if(g=Qc&&0!=e.j.video.j)g=1==e.getInfo().j;g||0!=e.j.video.j==b&&c.push(e)}return c}
function uu(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||Zs(e.s);e.url=qj(e.url,{signature:g})}e.url&&c.push(tu(e.url,e.type,e.quality,e.itag,e.stereo3d))}return mu(c,!!b)}function vu(a){a=su(a);return mu(a,!1)}function wu(a,b){if(!b.j)return a[0];for(var c=0;c<a.length;c++){var d=a[c].getInfo();if(rt[d.video.quality]<=b.j)return a[c]}return a[a.length-1]}
function xu(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.j){var g=a.j[e];if(du(g.info.mimeType)){if(g.info.A){d||(d=Ot());if(!ft(d,g.info.mimeType,g.info.A))continue;if(261==g.info.id&&(Ur()||!d.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))continue}c[g.info.o]=c[g.info.o]||[];c[g.info.o].push(g.info)}}a=gu;if(Vr("cros armv7")||Vr("windows nt 5.1"))a=hu;d=G(a,b);a=G(iu,b);if(!d||!a)return null;"9"==d&&c.h&&(e=function(a,b){return Math.max(a,b.video.height)},g=cb(c["9"],e,
0),cb(c.h,e,0)>1.5*g&&(d="h"));d=c[d];a=c[a];wb(d,function(a,b){return b.video.width-a.video.width||b.pa-a.pa});wb(a,function(a,b){return b.pa-a.pa});return new At(d,a)};var yu={created:1,ready:2,testing:4,"testing-starting":3,live:6,"live-starting":5,complete:8,"complete-starting":7};/*
 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.
*/
function zu(a,b){this.B=[];this.K=a;this.J=b||null;this.A=this.j=!1;this.o=void 0;this.G=this.N=this.D=!1;this.C=0;this.k=null;this.F=0}zu.prototype.cancel=function(a){if(this.j)this.o instanceof zu&&this.o.cancel();else{if(this.k){var b=this.k;delete this.k;a?b.cancel(a):(b.F--,0>=b.F&&b.cancel())}this.K?this.K.call(this.J,this):this.G=!0;this.j||Au(this,new Bu)}};zu.prototype.H=function(a,b){this.D=!1;Cu(this,a,b)};function Cu(a,b,c){a.j=!0;a.o=c;a.A=!b;Du(a)}
function Eu(a){if(a.j){if(!a.G)throw new Fu;a.G=!1}}function Au(a,b){Eu(a);Cu(a,!1,b)}function Gu(a,b,c){Hu(a,b,null,c)}function Hu(a,b,c,d){a.B.push([b,c,d]);a.j&&Du(a)}zu.prototype.then=function(a,b,c){var d,e,g=new Rm(function(a,b){d=a;e=b});Hu(this,d,function(a){a instanceof Bu?g.cancel():e(a)});return g.then(a,b,c)};Pm(zu);function Iu(a){return db(a.B,function(a){return ia(a[1])})}
function Du(a){if(a.C&&a.j&&Iu(a)){var b=a.C,c=Ju[b];c&&(m.clearTimeout(c.va),delete Ju[b]);a.C=0}a.k&&(a.k.F--,delete a.k);for(var b=a.o,d=c=!1;a.B.length&&!a.D;){var e=a.B.shift(),g=e[0],h=e[1],e=e[2];if(g=a.A?h:g)try{var k=g.call(e||a.J,b);n(k)&&(a.A=a.A&&(k==b||k instanceof Error),a.o=b=k);Qm(b)&&(d=!0,a.D=!0)}catch(l){b=l,a.A=!0,Iu(a)||(c=!0)}}a.o=b;d&&(k=x(a.H,a,!0),d=x(a.H,a,!1),b instanceof zu?(Hu(b,k,d),b.N=!0):b.then(k,d));c&&(b=new Ku(b),Ju[b.va]=b,a.C=b.va)}
function Fu(){ra.call(this)}B(Fu,ra);Fu.prototype.message="Deferred has already fired";Fu.prototype.name="AlreadyCalledError";function Bu(){ra.call(this)}B(Bu,ra);Bu.prototype.message="Deferred was canceled";Bu.prototype.name="CanceledError";function Ku(a){this.va=m.setTimeout(x(this.k,this),0);this.j=a}Ku.prototype.k=function(){delete Ju[this.va];throw this.j;};var Ju={};function Lu(a,b){var c=b||{},d=c.document||document,e=Ad("SCRIPT"),g={Du:e,rb:void 0},h=new zu(Mu,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){Nu(e,!0);Au(h,new Ou(1,"Timeout reached for loading script "+a))},l),g.rb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Nu(e,c.QC||!1,k),Eu(h),Cu(h,!0,null))};e.onerror=function(){Nu(e,!0,k);Au(h,new Ou(0,"Error while loading script "+a))};qd(e,{type:"text/javascript",
charset:"UTF-8",src:a});Pu(d).appendChild(e);return h}function Pu(a){var b=a.getElementsByTagName("HEAD");return!b||ib(b)?a.documentElement:b[0]}function Mu(){if(this&&this.Du){var a=this.Du;a&&"SCRIPT"==a.tagName&&Nu(a,!0,this.rb)}}function Nu(a,b,c){null!=c&&m.clearTimeout(c);a.onload=u;a.onerror=u;a.onreadystatechange=u;b&&window.setTimeout(function(){Gd(a)},0)}function Ou(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ra.call(this,c);this.code=a}B(Ou,ra);function Qu(a,b){this.k=new K(a);this.j=b?b:"callback";this.rb=5E3}var Ru=0;Qu.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(Ru++).toString(36)+z().toString(36);m._callbacks_||(m._callbacks_={});var e=this.k.clone();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||bf(e,g,a[g]);b&&(m._callbacks_[d]=Su(d,b),bf(e,this.j,"_callbacks_."+d));b=Lu(e.toString(),{timeout:this.rb,QC:!0});Hu(b,null,Tu(d,a,c),void 0);return{va:d,Ks:b}};
Qu.prototype.cancel=function(a){a&&(a.Ks&&a.Ks.cancel(),a.va&&Uu(a.va,!1))};function Tu(a,b,c){return function(){Uu(a,!1);c&&c(b)}}function Su(a,b){return function(c){Uu(a,!0);b.apply(void 0,arguments)}}function Uu(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=u)};function Vu(a,b){S.call(this);this.A=b+"feeds/api/users/live/broadcasts/"+a+"/states?v=2&alt=json-in-script";this.j=new dn(15E3+Math.floor(3E4*Math.random()));om(this.j,"tick",x(this.k,this));this.k();this.j.start()}B(Vu,S);Vu.prototype.L=function(){this.j.dispose();Vu.I.L.call(this)};Vu.prototype.k=function(){(new Qu(this.A)).send(null,x(this.o,this),x(this.B,this))};Vu.prototype.o=function(a){this.publish("payload",a);en(this.j,15E3+Math.floor(3E4*Math.random()))};
Vu.prototype.B=function(){this.publish("error");var a=this.j.j;192E4>a&&en(this.j,2*a)};function Wu(a){Q.call(this);this.j={};this.o={};this.A={};this.k=Xu(this,a)}B(Wu,Q);function Xu(a,b,c){var d=0,e=Ad(b[d++]);if(w(b[d])||fa(b[d])||null===b[d]){var g=b[d++];fa(g)&&(g=g.join(" "));if(g=Yu(a,e,"className",g))Zu(a,e,"className",g),$u(a,g,e)}for(;d<b.length;d++){var h=b[d];if(fa(h))Xu(a,h,e);else if(ja(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&Zu(g,k,l,Yu(g,k,l,h[l]))}else w(h)&&(g=Yu(a,e,"child",h),null!=g&&e.appendChild(Bd(g)))}c&&c.appendChild(e);return e}f=Wu.prototype;f.M=function(){return this.k};
function $u(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)$u(a,d[b],c);else a.j[b]=c}f.Y=function(a,b){n(b)?Fd(a,this.k,b):a.appendChild(this.k)};f.detach=function(){Gd(this.k)};function Yu(a,b,c,d){return w(d)&&"{{"==d.substr(0,2)?(a.o[d]=[b,c],null):d}f.update=function(a){for(var b in a)av(this,b,a[b])};function av(a,b,c){if(c!=a.A[b]){var d=a.o["{{"+b+"}}"];d&&(a.A[b]=c,Zu(a,d[0],d[1],c))}}function bv(a){return fa(a)&&w(a[0])}
function Zu(a,b,c,d){if("child"==c){Ed(b);if(!fa(d)||bv(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ha(g)||w(g)||ja(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?bv(g)?c.push(Xu(a,g)):g.M?c.push(g.M()):c.push(Bd(g.toString())):c.push(g)}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())}f.L=function(){this.j={};this.o={};this.A={};this.detach();delete this.k;Wu.I.L.call(this)};function cv(a,b){a&&(a.style.display=b)}function dv(a,b){var c=lh("requestAnimationFrame",window);return M(function(){c?c.call(window,a):a()},b||0)};function X(a){Q.call(this);this.template=new Wu(a);R(this,this.template);this.element=this.template.M();this.ha="block";this.F=!0;this.gb=[]}B(X,Q);f=X.prototype;f.M=function(){return this.element};f.Y=function(a,b){this.template.Y(a,b)};f.detach=function(){this.template.detach()};f.ra=function(a,b){av(this.template,b||"content",a)};f.show=function(){cv(this.element,this.ha);this.F=!0;this.element.removeAttribute("aria-hidden")};
f.hide=function(){cv(this.element,"none");this.F=!1;this.element.setAttribute("aria-hidden","true")};function ev(a,b){a.element.setAttribute("role",b)}f.Ya=function(a){this.element.setAttribute("aria-label",a)};f.Sb=function(a){Ah(this.element,a)};f.listen=function(a,b,c){return fv(this,this.element,a,b,c)};function fv(a,b,c,d,e,g){b=P(b,c,x(d,e||a),g);a.gb.push(b);return b}f.Aa=function(a){wh(a)};f.L=function(){this.Aa(this.gb);delete this.element;X.I.L.call(this)};function gv(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),g="";0<c&&(g+=c+":",10>d&&(g+="0"));if(0<c||0<d)g+=d+":",10>e&&(g+="0");g+=e+":";10>b&&(g+="0");g+=b;return 0<=a?g:"-"+g}function hv(a){return Math.round(1E3*a)/10}function iv(a){return(!ha(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};var jv={uK:"html5-stop-propagation",yJ:"ytp-no-controls",ZI:"html5-live-dvr-disabled",$I:"html5-live-dvr-engaged",aJ:"html5-live-playback",UI:"ytp-iv-drawer-open",kJ:"html5-mobile",nJ:"modest-branding",uJ:"html5-native-controls",zK:"html5-tablet",yK:"html5-tablet-body",gJ:"html5-main-video",WK:"html5-video-container",XK:"html5-video-content",YK:"html5-video-controls",ZK:"ytp-fallback",$K:"ytp-fallback-content",bL:"html5-video-loader",iL:"html5-watermark",NH:"html5-branded-watermark",cI:"html5-context-menu",
rB:"html5-context-menu-copy-debug-info",sB:"html5-context-menu-copy-embed-html",tB:"html5-context-menu-copy-video-url",uB:"html5-context-menu-copy-video-url-at-current-time",vB:"html5-context-menu-link",wB:"html5-context-menu-report-playback-issue",xB:"html5-context-menu-show-video-info",dI:"html5-show-video-info-template",lJ:"html5-modal-panel",JI:"ideal-aspect",wI:"autohide-controls",yI:"autohide-controls-aspect",xI:"autohide-controls-fullscreen",iJ:"autominimize-progress-bar",jJ:"autominimize-progress-bar-non-aspect",
zI:"hide-info-bar",AI:"html5-hide-share",BI:"html5-hide-volume",EK:"ytp-tiny-mode",eL:"video-thumbnail",MJ:"ytp-dialog",EH:"html5-async-progress",FH:"html5-async-success",DH:"html5-async-error",XH:"html5-center-overlay",bK:"ytp-scalable-icon-shrink",aK:"ytp-scalable-icon-grow",GI:"house-brand",fK:"sentiment-like",eK:"sentiment-dislike"};function kv(){X.call(this,["div",["ytp-fresca-module","html5-stop-propagation"],["div","ytp-fresca-band-slate",["hgroup","ytp-fresca-message",["h2","ytp-fresca-heading","{{heading}}"],["h3","ytp-fresca-subheading","{{subheading}}"],["h4","ytp-fresca-long-test","{{long_text}}"]],["span","ytp-fresca-countdown","{{countdown}}"]]]);this.k=0;this.j=null}B(kv,X);
kv.prototype.update=function(a){this.j&&this.j.state==a.state&&this.j.startTime==a.startTime&&this.j.imageUrl==a.imageUrl&&this.j.messageText.join()==a.messageText.join()||(this.j=a,this.element.style.backgroundImage=this.j.imageUrl||"none",a=this.j.getMessage(),this.template.update({heading:a[0]||"",subheading:a[1]||"",long_text:a[2]||""}),this.o())};function lv(a){var b=Math.floor(z()/1E3);return b>a?If("YTP_FRESCA_STARTING_SOON_MESSAGE"):gv(a-b)}
kv.prototype.o=function(){var a;a=this.j;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;ah(this.element,"ytp-fresca-show-countdown",a);a&&(this.template.update({countdown:lv(this.j.startTime)}),N(this.k),this.k=M(x(this.o,this),1E3))};kv.prototype.L=function(){N(this.k);kv.I.L.call(this)};function mv(a){this.messageText=[];this.j=!1;a&&nv(this,a)}mv.prototype.state=-1;function ov(a){return{imageUrl:a.imageUrl,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function nv(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=yu[d.$t]||-1);(d=c.yt$when)&&d.start&&(d=new Date(d.start),a.startTime=Math.floor(d.valueOf()/1E3));if(d=c.yt$slate)d.imgUrl&&(a.imageUrl="url("+d.imgUrl+")"),(d=d.content)&&d.length&&(d=d.splice(0,3),a.messageText=F(d,function(a){return a.$t}));if(c=c.entry)a.j=0<=fb(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}mv.prototype.getMessage=function(){return this.messageText.length?this.messageText:pv(this)};
function pv(a){switch(a.state){case 6:return a.j?[]:[If("YTP_FRESCA_STAND_BY_MESSAGE"),If("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[If("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[If("YTP_FRESCA_EVENT_OVER_MESSAGE"),If("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[If("YTP_FRESCA_STAND_BY_MESSAGE")]}};function qv(a){Bs.call(this,a);Hf({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starting soon...",YTP_FRESCA_EVENT_OVER_MESSAGE:"This live event is over.",YTP_FRESCA_COMPLETE_MESSAGE:"Thanks for watching!",YTP_FRESCA_STAND_BY_MESSAGE:"Please stand by.",YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE:"We're experiencing technical difficulties."})}B(qv,Bs);f=qv.prototype;f.ta="fresca";f.oc="fresca";f.aj=!1;f.Xg=!1;f.Ea=function(){return rv(this.j.getVideoData(),"fresca_module")};
f.create=function(a){qv.I.create.call(this);ou(Ot(),"application/x-mpegURL")||ru()?(this.aj=this.Xg=!1,Ks(this,["play_pause","seek"]),this.o=new kv,Cr(this.j,this.o.M()),this.A=a||new Vu(this.j.getVideoData().videoId,this.j.S().Fo),this.A.subscribe("payload",this.kC,this),this.A.subscribe("error",this.jC,this),this.subscribe("onStateChange",this.ds,this)):sv(this.j.app.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
f.destroy=function(){this.unsubscribe("onStateChange",this.ds,this);si(this.A,this.o);qv.I.destroy.call(this)};f.ds=function(a){this.k&&(this.aj=W(a.state,2),(tv(a,16)||this.aj)&&uv(this,this.k))};f.jC=function(){this.Xg||(vv(this,new mv),uv(this,this.k))};f.kC=function(a){vv(this,new mv(a));a=this.j.getVideoData();6!=this.k.state||a.R||a.O?uv(this,this.k):this.j.Em(a.videoId)};
function uv(a,b){var c=6>b.state;!c&&a.j.app.o.la&&(b.imageUrl||b.messageText.length)&&(c=!0);a.aj&&!a.j.S().yc&&(c=!0);b.j||(c=!0);if(!a.Xg)switch(b.state){case 6:b.j&&(a.Xg=!0,Ls(a,["play_pause","seek"]),Ds(a));break;case 8:case 7:c=a.Xg=!0}c&&a.o.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function wv(a){return rv(a.getVideoData(),"fresca_module")?new qv(a):null}function vv(a,b){a.k!=b&&(a.k=b,a.j.S().xb()&&a.publish("publish_external_event","onFrescaStateChange",ov(a.k)))};function xv(a){this.Yn=a||window;this.fg=[]}f=xv.prototype;f.Yn=null;f.fg=null;f.listen=function(a,b,c,d){c=x(c,d||this.Yn);a=P(a,b,c);this.fg.push(a);return a};function yv(a,b,c,d,e,g){d=x(d,g||a.Yn);b=xh(b,c,d,e);a.fg.push(b)}f.Aa=function(a){wh(a);lb(this.fg,a)};f.removeAll=function(){wh(this.fg);this.fg=[]};function zv(a,b,c){Q.call(this);this.j=a;this.A=b||0;this.k=c;this.o=x(this.vA,this)}B(zv,Q);f=zv.prototype;f.va=0;f.L=function(){zv.I.L.call(this);this.stop();delete this.j;delete this.k};f.start=function(a){this.stop();this.va=fn(this.o,n(a)?a:this.A)};f.stop=function(){this.isActive()&&gn(this.va);this.va=0};f.isActive=function(){return 0!=this.va};f.vA=function(){this.va=0;this.j&&this.j.call(this.k)};function Av(){T.call(this);this.j=0;this.endTime=this.startTime=null}B(Av,T);f=Av.prototype;f.ib=function(){return 1==this.j};f.Zb=function(){this.Pb("begin")};f.Fc=function(){this.Pb("end")};f.Lb=function(){this.Pb("finish")};f.onStop=function(){this.Pb("stop")};f.Pb=function(a){this.T(a)};function Bv(){Av.call(this);this.k=[]}B(Bv,Av);Bv.prototype.add=function(a){H(this.k,a)||(this.k.push(a),om(a,"finish",this.A,!1,this))};Bv.prototype.remove=function(a){lb(this.k,a)&&wm(a,"finish",this.A,!1,this)};Bv.prototype.L=function(){E(this.k,function(a){a.dispose()});this.k.length=0;Bv.I.L.call(this)};function Cv(){Bv.call(this);this.o=0}B(Cv,Bv);
Cv.prototype.play=function(a){if(0==this.k.length)return!1;if(a||0==this.j)this.o=0,this.Zb();else if(this.ib())return!1;this.Pb("play");-1==this.j&&this.Pb("resume");var b=-1==this.j&&!a;this.startTime=z();this.endTime=null;this.j=1;E(this.k,function(c){b&&-1!=c.j||c.play(a)});return!0};Cv.prototype.pause=function(){this.ib()&&(E(this.k,function(a){a.ib()&&a.pause()}),this.j=-1,this.Pb("pause"))};
Cv.prototype.stop=function(a){E(this.k,function(b){0==b.j||b.stop(a)});this.j=0;this.endTime=z();this.onStop();this.Fc()};Cv.prototype.A=function(){this.o++;this.o==this.k.length&&(this.endTime=z(),this.j=0,this.Lb(),this.Fc())};var Dv=/#(.)(.)(.)/;function Ev(a){if(!Fv.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Dv,"#$1$1$2$2$3$3"));a=a.toLowerCase();return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)]}var Fv=/^#(?:[0-9a-f]{3}){1,2}$/i;var Gv={},Hv=null;function Iv(a){a=ka(a);delete Gv[a];Rb(Gv)&&Hv&&Hv.stop()}function Jv(){Hv||(Hv=new zv(function(){Kv()},20));var a=Hv;a.isActive()||a.start()}function Kv(){var a=z();Eb(Gv,function(b){Lv(b,a)});Rb(Gv)||Jv()};function Mv(a,b,c,d){Av.call(this);if(!fa(a)||!fa(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.k=[];this.o=this.F=0;this.C=null}B(Mv,Av);f=Mv.prototype;
f.play=function(a){if(a||0==this.j)this.o=0,this.k=this.A;else if(this.ib())return!1;Iv(this);this.startTime=a=z();-1==this.j&&(this.startTime-=this.duration*this.o);this.endTime=this.startTime+this.duration;this.C=this.startTime;this.o||this.Zb();this.Pb("play");-1==this.j&&this.Pb("resume");this.j=1;var b=ka(this);b in Gv||(Gv[b]=this);Jv();Lv(this,a);return!0};f.stop=function(a){Iv(this);this.j=0;a&&(this.o=1);Nv(this,this.o);this.onStop();this.Fc()};
f.pause=function(){this.ib()&&(Iv(this),this.j=-1,this.Pb("pause"))};f.L=function(){0==this.j||this.stop(!1);this.Pb("destroy");Mv.I.L.call(this)};f.destroy=function(){this.dispose()};function Lv(a,b){a.o=(b-a.startTime)/(a.endTime-a.startTime);1<=a.o&&(a.o=1);a.F=1E3/(b-a.C);a.C=b;Nv(a,a.o);1==a.o?(a.j=0,Iv(a),a.Lb(),a.Fc()):a.ib()&&a.Um()}function Nv(a,b){ia(a.D)&&(b=a.D(b));a.k=Array(a.A.length);for(var c=0;c<a.A.length;c++)a.k[c]=(a.G[c]-a.A[c])*b+a.A[c]}f.Um=function(){this.Pb("animate")};
f.Pb=function(a){this.T(new Ov(a,this))};function Ov(a,b){Xl.call(this,a);this.x=b.k[0];this.y=b.k[1];this.duration=b.duration;this.fps=b.F;this.state=b.j}B(Ov,Xl);function Pv(a,b,c,d,e){Mv.call(this,b,c,d,e);this.element=a}B(Pv,Mv);Pv.prototype.Qe=u;Pv.prototype.Um=function(){this.Qe();Pv.I.Um.call(this)};Pv.prototype.Fc=function(){this.Qe();Pv.I.Fc.call(this)};Pv.prototype.Zb=function(){this.Qe();Pv.I.Zb.call(this)};function Qv(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Pv.apply(this,arguments)}B(Qv,Pv);
Qv.prototype.Qe=function(){this.element.style.left=Math.round(this.k[0])+"px";this.element.style.top=Math.round(this.k[1])+"px"};function Rv(a,b,c,d){Qv.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}B(Rv,Qv);Rv.prototype.Zb=function(){this.A=[this.element.offsetLeft,this.element.offsetTop];Rv.I.Zb.call(this)};function Sv(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Pv.apply(this,arguments)}B(Sv,Pv);
Sv.prototype.Qe=function(){this.element.style.width=Math.round(this.k[0])+"px";this.element.style.height=Math.round(this.k[1])+"px"};function Tv(a,b,c,d,e){Pv.call(this,a,[b],[c],d,e)}B(Tv,Pv);Tv.prototype.Qe=function(){this.element.style.width=Math.round(this.k[0])+"px"};function Uv(a,b,c,d,e){ha(b)&&(b=[b]);ha(c)&&(c=[c]);Pv.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");this.B=-1}B(Uv,Pv);var Vv=1/1024;f=Uv.prototype;
f.Qe=function(){var a=this.k[0];Math.abs(a-this.B)>=Vv&&(Kg(this.element,a),this.B=a)};f.Zb=function(){this.B=-1;Uv.I.Zb.call(this)};f.Fc=function(){this.B=-1;Uv.I.Fc.call(this)};f.show=function(){this.element.style.display=""};f.hide=function(){this.element.style.display="none"};function Wv(a,b,c){Uv.call(this,a,1,0,b,c)}B(Wv,Uv);Wv.prototype.Zb=function(){this.show();Wv.I.Zb.call(this)};Wv.prototype.Fc=function(){this.hide();Wv.I.Fc.call(this)};function Xv(a,b,c){Uv.call(this,a,0,1,b,c)}B(Xv,Uv);
Xv.prototype.Zb=function(){this.show();Xv.I.Zb.call(this)};function Yv(a){return Math.pow(a,3)}function Zv(a){return 3*a*a-2*a*a*a};function $v(a){return fa(a)&&a.length?a[0]:a}function aw(a){var b=/.+/;return w(a)&&null!=b&&null!=a&&a.match(b)?a:""}function bw(a,b){if(null==a)return b;var c=parseInt(a,0);if(isNaN(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c}function cw(a){return w(a)?a:""}function dw(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function ew(a,b){return"true"==a||"false"==a?"true"==a:b}function fw(a,b){return w(a)?parseFloat(a):b}
function gw(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Fc(a,c,d);if(a>=c&&a<=d)return a}return g}function hw(a){if(null==a)return 0;if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;E(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function iw(a,b){if(null==a)return null;if(ga(a)){var c=[];E(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function jw(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new gg(parseFloat(a.top),parseFloat(a.right),parseFloat(a.bottom),parseFloat(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null}function kw(a){function b(a){return bb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function lw(a,b,c){this.value=a;this.target=b;this.showLinkIcon=c}var mw={gI:"current",wJ:"new"};function nw(a){if(!a)return null;var b=cw(a.value);if(!b||null==nj(b))return null;var c=dw(a.target,mw,"current");return null==c?null:new lw(b,c,ew(a.show_link_icon,!0))};function ow(a){if(!a)return!1;var b=pw(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function pw(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function qw(a,b){if("new"==a.target)return-1;var c=a.value?a.value:null;if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!ow(c))||(d=xe(ue(c)[5]||null)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=nj(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=mj(c[1]))&&c.t?(d=c.t,c=0,-1!=d.indexOf("h")&&(d=d.split("h"),c=3600*d[0],d=d[1]),-1!=d.indexOf("m")&&(d=d.split("m"),c=60*d[0]+c,d=d[1]),-1!=d.indexOf("s")?(d=d.split("s"),c=1*
d[0]+c):c=1*d+c):c=-1;return c}function rw(a,b,c,d){(a=a.value?a.value:null)?ow(a)?d=qj(a,{src_vid:c,feature:"iv",annotation_id:b}):(a?(b=pw(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=y(sw,d.pageId,d.Wa),a=new K(a),Oe(a,d(a.Ib)),d=a.toString()):d=a):d=null;return d}function sw(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}
function tw(a){return a.target?"new"==a.target?"_blank":"_top":ow(a.value?a.value:null)?"_top":"_blank"};function uw(a,b){this.o=a;this.k=b;this.j={}}function vw(a,b,c,d){if(b){var e=ww(a,b);a.j[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;Zb(e,c||{});b=pb(d||[]);30==e["a-type"]&&(c=xw(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);yw(a,e,b)}}function zw(a,b,c,d,e){if(b){var g=ww(a,b);g["iv-event"]=3;g["i-time"]=a.j[b]||"";Zb(g,d||{});b=pb(e||[]);30==g["a-type"]&&(d=xw(a,g["a-id"],"cta_annotation_clicked"))&&b.push(d);yw(a,g,b,c)}}
function Aw(a,b,c,d){if(b){var e=ww(a,b);e["iv-event"]=4;e["i-time"]=a.j[b]||"";Zb(e,c||{});b=pb(d||[]);30==e["a-type"]&&(c=xw(a,e["a-id"],"cta_annotation_closed"))&&b.push(c);yw(a,e,b)}}function xw(a,b,c){a=a.k.getVideoData();if(a.jc){if((c=a.jc[c])&&-1!=c.search(sf))return a=va("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.ja)return qj(a.ja,{label:c,value:"a_id="+b});return""}
function yw(a,b,c,d){var e=1,g,h=-1;if(d){var k=!1;g=function(){e--;e||k||(clearTimeout(h),k=!0,d())};h=setTimeout(function(){k=!0;d()},1E3)}E(c||[],function(a){e++;Wf(a,g)});a.Ia(b,g)}function ww(a,b){var c={};if(b){var d=new Re(b);E(d.Ka(),function(a){c[a]=escape(d.get(a,""))})}c["p-time"]=a.k.getCurrentTime().toFixed(2);c.ps=a.k.S().k;return c}function Bw(a,b,c){var d=ww(a);d["iv-event"]=b;d["a-id"]="card:drawer";d["a-type"]=51;yw(a,d,c)}
function Cw(a,b,c,d,e){c&&(c=ww(a,c),c["iv-event"]=b,Zb(c,d||{}),yw(a,c,e))}uw.prototype.Ia=function(a,b){this.o.publish("command_log","iv",a,b)};function Dw(a,b){this.Ga=a;this.context=b;this.O=this.P=this.K=null;this.Bm=!1;this.F=0}function Ew(a,b,c,d,e,g){b=new qs(b,c,{id:d});b.namespace="iv-module";e&&b.Oa.subscribe("onEnter",e,a);g&&b.Oa.subscribe("onExit",g,a);a.context.Oa.publish("command_add_cuerange",[b],a.context.k.getPlayerType())}f=Dw.prototype;f.xj=function(){this.context.Oa.subscribe("onResize",this.se,this)};f.M=function(){return this.Ga};
f.Hd=function(a,b,c,d,e){yv(this.context.j,a,"click",y(this.Fd,a,b,c,d,e||[]),"iv-click-target",this);yv(this.context.j,a,"touchend",y(this.Fd,a,b,c,d,e||[]),"iv-click-target",this);yv(this.context.j,a,"touchstart",y(function(){this.Bm=!1}),"iv-click-target",this);yv(this.context.j,a,"touchmove",y(function(){this.Bm=!0}),"iv-click-target",this)};
f.Fd=function(a,b,c,d,e,g){g.stopPropagation();if(!this.Bm){g.preventDefault();var h=rw(b,c,this.context.A.videoId);a=x(function(){this.context.k.pauseVideo();window.open(h,tw(b))},this);ow(b.value?b.value:null)&&"new"!=b.target||(a(),a=null);c={};c.interval=z()-this.F;zw(this.context.logger,d,a,c,e);return!1}};f.show=function(){this.F=z()};f.hide=function(){};f.destroy=function(){Gd(this.M())};function Fw(a){a.O||(a.O=$d(a.M(),"html5-video-player"));return a.O}
function Gw(a){var b=a.context.o.ee;if(!b)return null;var c=a.context.o.jf||new hg(0,0,b.width,b.height),d=-c.top,e=b.height-c.top,g;a.P||(a.P=pd("html5-video-container",Fw(a)));g=a.P;if(!g)return null;g=35-(parseInt(sg(g,"bottom"),10)||0);var h;a.K||(a.K=pd("html5-info-bar",Fw(a)));(h=a.K)&&a.context.o.yk&&"none"!=sg(h,"display")&&(d+=Hg(h).height);return new gg(d,b.width-c.left,e-g,-c.left)}f.se=function(){};function Hw(a,b){fa(b)||(b=[b]);var c=F(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.Np+"s"});Iw(a,c.join(","))}
var Jw=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(Pc)return bd("10.0");var a=document.createElement("div"),b=Rc?"-webkit":Qc?"-moz":Pc?"-ms":Oc?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Ac.test("div"))throw Error("Invalid tag name <div>.");if("div"in Cc)throw Error("Tag name <div> is not allowed for SafeHtml.");var c=null,d="<div";if(b)for(var e in b){if(!Ac.test(e))throw Error('Invalid attribute name "'+
e+'".');var g=b[e];if(null!=g){var h;h=e;if(g instanceof kc)g=mc(g);else if("style"==h.toLowerCase()){if(!ja(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof nc)){var k="",l=void 0;for(l in g){if(!/^[-_a-zA-Z0-9]+$/.test(l))throw Error("Name allows only [-_a-zA-Z0-9], got: "+l);var p=g[l];null!=p&&(p instanceof kc?p=mc(p):rc.test(p)||(p="zClosurez"),k+=l+":"+p+";")}g=k?pc(k):qc}k=void 0;k=g instanceof nc&&g.constructor===
nc&&g.k===oc?g.j:"type_error:SafeStyle";g=k}else{if(/^on/i.test(h))throw Error('Attribute "'+h+'" requires goog.string.Const value, "'+g+'" given.');if(h.toLowerCase()in Bc)if(g instanceof vc)g=g instanceof vc&&g.constructor===vc&&g.j===wc?"":"type_error:TrustedResourceUrl";else if(g instanceof sc)g=uc(g);else throw Error('Attribute "'+h+'" on tag "div" requires goog.html.SafeUrl or goog.string.Const value, "'+g+'" given.');}g.Uf&&(g=g.Tf());h=h+'="'+xa(String(g))+'"';d=d+(" "+h)}}e=void 0;n(e)?fa(e)||
(e=[e]):e=[];!0===ac.div?d+=">":(c=Dc(e),d+=">"+zc(c)+"</div>",c=c.Sf());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Ec(d,c);a.innerHTML=zc(b);a=a.firstChild;b=a.style[Ua("transition")];return""!=("undefined"!==typeof b?b:a.style[qg(a,"transition")]||"")});function Iw(a,b){pg(a,"transition",b)};function Kw(a,b){(a=md(a))&&a.style&&(Lg(a,b),ah(a,"hid",!b))}function Lw(a){return(a=md(a))?!("none"==a.style.display||Xg(a,"hid")):!1}function Mw(a){E(arguments,function(a){Kw(a,!0)})}function Nw(a){E(arguments,function(a){Kw(a,!1)})}var Ow={};function Pw(a,b,c){this.id=a;this.type=b.card_type;this.D=b.teaser_text||b.title;this.C=b.teaser_image_url||b.image_url;this.teaserDurationMs=b.teaser_duration_ms||5E3;this.startMs=b.start_ms;this.endMs=b.end_ms;this.Da=c;a=b.tracking||{};this.j={wq:a.impression,click:a.click,close:a.close,fq:a.teaser_impression,ti:a.teaser_click}};function Qw(a,b,c){Pw.call(this,a,b,c);this.A=b.banner_image_url;this.F=b.image_url;this.B=b.g_plus_url;this.title=b.title;this.k=b.meta_info;this.o=b.html_blobs;this.url=nw({target:b.target||"new",value:b.url})}B(Qw,Pw);function Rw(a,b,c){Pw.call(this,a,b,c);this.B=b.profile_image_url;this.A=b.intro;this.o=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.title=b.title;this.k=b.meta_info;this.url=nw({target:b.target||"new",value:b.url})}B(Rw,Pw);function Sw(a,b,c){Pw.call(this,a,b,c);this.imageUrl=b.image_url;this.title=b.title;this.options=b.options}B(Sw,Pw);function Tw(a,b,c){Pw.call(this,a,b,c);this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.o=b.button_icon_url;this.title=b.title;this.A=b.custom_message;this.url=nw({target:b.target||"new",value:b.url})}B(Tw,Pw);function Uw(a,b,c){Tw.call(this,a,b,c);this.G=b.ypc_item_type;this.F=b.ypc_item_id;this.B=b.ypc_flow_type}B(Uw,Tw);function Vw(a,b,c){Pw.call(this,a,b,c);this.F=b.profile_image_url;this.B=b.intro;this.A=b.image_url;this.o=b.video_duration;this.title=b.title;this.k=b.meta_info;this.url=nw({target:b.target||"new",value:b.url})}B(Vw,Pw);function Ww(a){window.location=Ee(a,{})+""}
function Xw(a,b,c){b||(b={});var d=c||window;c="undefined"!=typeof a.href?a.href:String(a);a=b.target||a.target;var e=[],g;for(g in b)switch(g){case "width":case "height":case "top":case "left":e.push(g+"="+b[g]);break;case "target":case "noreferrer":break;default:e.push(g+"="+(b[g]?1:0))}g=e.join(",");if(b.noreferrer){if(b=d.open("",a,g))Pc&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=xa(c),b.document.write('<META HTTP-EQUIV="refresh" content="0; url='+c+'">'),b.document.close()}else b=
d.open(c,a,g);return b}function Yw(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=Xw(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function Zw(){var a=Cf("PLAYER_CONFIG");return a&&a.args&&void 0!==a.args.authuser?!0:!(!Cf("SESSION_INDEX")&&!Cf("LOGGED_IN"))};function $w(a,b){var c=ax(a),d=document.getElementById(c),e=d&&eh(d,"loaded"),g=d&&!e;e?b&&b():(b&&(zi(c,b),ka(b)),g||(d=bx(a,c,function(){eh(d,"loaded")||(ch(d,"loaded","true"),Ci(c),M(y(Fi,c),0))})))}
function bx(a,b,c){var d=document.createElement("script");d.id=b;d.onload=function(){c&&setTimeout(c,0)};d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};d.src=a;a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(d,a.firstChild);return d}function ax(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Qa(a)}var cx=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,dx=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function ex(a,b){var c=fx(a),d=document.getElementById(c),e=d&&eh(d,"loaded"),g=d&&!e;e?b&&b():(b&&(zi(c,b),ka(b)),g||(d=gx(a,c,function(){eh(d,"loaded")||(ch(d,"loaded","true"),Ci(c),M(y(Fi,c),0))})))}function gx(a,b,c){var d=document.createElement("link");d.id=b;d.rel="stylesheet";d.onload=function(){c&&setTimeout(c,0)};d.href=a;(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d}
function fx(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Qa(a)}var hx=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;var Um=[];
function ix(a){var b=Cf("YPC_LOADER_CSS"),c=Cf("YPC_LOADER_JS");Um.length||(Um.push(new Rm(function(a){if(window.spf){var c=b.match(hx);spf.style.load(b,c?c[1]:"",a)}else ex(b,a)})),Um.push(new Rm(function(a){if(window.spf){var b="";if(c){var g=c.indexOf("jsbin/"),h=c.lastIndexOf(".js"),k=g+6;-1<g&&-1<h&&h>k&&(b=c.substring(k,h),b=b.replace(cx,""),b=b.replace(dx,""),b=b.replace("debug-",""),b=b.replace("tracing-",""))}spf.script.load(c,b,a)}else $w(c,a)})));Tm().then(function(){a&&a()})};function jx(a,b,c){if(Zw())ix(function(){r("yt.www.ypc.checkout.showYpcOverlay")(a,b,c,void 0)});else{var d=kx({ypc_it:a,ypc_ii:b,ypc_ft:c});Ww(d)}}function kx(a){a=qj(window.location.href,a);var b=Cf("YPC_SIGNIN_URL"),c=nj(b)["continue"],c=qj(c,{next:a});return qj(b,{"continue":c})};var lx,mx,nx;var ox=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},px=x(ox.clearResourceTimings||ox.webkitClearResourceTimings||ox.mozClearResourceTimings||ox.msClearResourceTimings||ox.oClearResourceTimings||u,ox),qx=ox.mark?function(a){ox.mark(a)}:u;
function rx(a,b,c){sx(c)[a]=b||z();b||qx(a);if(Cf("CSI_LOG_ON_TICK")&&(b=Cf("TIMING_ACTION"),a=sx(c),b&&a._start&&tx(c))){b=!0;var d=Cf("TIMING_WAIT",[]);if(d.length)for(var e=0,g=d.length;e<g;++e)if(!(d[e]in a)){b=!1;break}(b||c)&&ux(c)}}function vx(a,b){var c=sx(b);return a in c}function wx(a,b,c){xx(c).info[a]=b}function tx(a){a=sx(a);if(a.aft)return a.aft;for(var b=Cf("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return NaN}
function yx(a){return Math.round(ox.timing.navigationStart+a)}
function zx(a){var b=window.location.protocol,c=ox.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=yx(d.startTime),a.wfce=yx(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=yx(c.startTime),a.wffe=yx(c.responseEnd))}
function ux(a){var b=sx(a),c=xx(a).span,d=xx(a).info,e=r("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))Ax(e),Bx(a),px();return NaN}e={v:2,s:"youtube",action:Cf("TIMING_ACTION")};if(ox.now&&ox.timing){var g=ox.timing.navigationStart+ox.now(),g=Math.round(z()-g);d.yt_hrd=g}var g=Cf("TIMING_INFO")||{},h;for(h in g)d[h]=g[h];h=d.srt;delete d.srt;var k;h||0===h||(k=ox.timing||{},h=Math.max(0,k.responseStart-k.navigationStart),isNaN(h)&&d.pt&&(h=d.pt));if(h||0===h)d.srt=h;d.h5jse&&(g=window.location.protocol+
r("ytplayer.config.assets.js"),(g=ox.getEntriesByName?ox.getEntriesByName(g)[0]:null)?d.h5jse=Math.round(d.h5jse-g.responseEnd):delete d.h5jse);b.aft=tx(a);g=b._start;if(!lx){k||(k=ox.timing||{});var l;t:if(l=k,l.msFirstPaint)l=Math.max(0,l.msFirstPaint);else{var p=window.chrome;if(p&&(p=p.loadTimes,ia(p))){var p=p(),t=1E3*Math.min(p.requestTime||Infinity,p.startLoadTime||Infinity),t=Infinity===t?0:l.navigationStart-t;l=Math.max(0,Math.round(1E3*p.firstPaintTime+t)||0);break t}l=0}0<l&&l>g&&(b.fpt=
l);l=k.redirectEnd-k.redirectStart;0<l&&(c.rtime_=l);l=k.domainLookupEnd-k.domainLookupStart;0<l&&(c.dns_=l);l=k.connectEnd-k.connectStart;0<l&&(c.tcp_=l);l=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart&&0<l&&(c.stcp_=l);l=k.responseStart-k.requestStart;0<l&&(c.req_=l);l=k.responseEnd-k.responseStart;0<l&&(c.rcv_=l);Cf("EXP_WEBFONT_ENABLED")&&ox.getEntriesByType&&zx(b);lx=!0}Cf("CSI_MORE")&&(d.p=Cf("CLIENT_PROTOCOL")||"unknown",d.t=Cf("CLIENT_TRANSPORT")||"unknown");for(var v in d)"_"!=
v.charAt(0)&&(e[v]=d[v]);d={};v=[];for(var A in b)"_"!=A.charAt(0)&&(l=Math.max(Math.round(b[A]-g),0),d[A]=l,v.push(A+"."+l));e.rt=v.join(",");b={};A=[];for(var U in c)"_"!=U.charAt(0)&&(b[U]=c[U],A.push(U+"."+c[U]));e.it=A.join(",");(c=r("ytdebug.logTiming"))&&c(e,d,b);Bx(a);px();Cf("EXP_DEFER_CSI_PING")?(Cx(),mx=e,nx=M(Cx,0)):Ax(e);return d.aft+(h||0)}
function Ax(a){Cf("EXP_DEFER_CSI_PING")&&(N(nx),mx=null);var b="https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi",c="",d;for(d in a)c+="&"+d+"="+a[d];Wf(b+"?"+c.substring(1))}function Cx(a){mx&&(a&&(mx.yt_fss=a),Ax(mx))}function sx(a){return xx(a).tick}function xx(a){return r("ytcsi."+(a||"")+"data_")||Bx(a)}function Bx(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};function Dx(){return!!r("yt.scheduler.instance")}function Ex(a,b){void 0===b&&(b=NaN);var c=r("yt.scheduler.instance.addJob");return c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?(a(),NaN):M(a,b||0)}function Fx(a,b){return Ex(a,b)}function Gx(a){var b=r("yt.scheduler.instance.cancelJob");b?b(a):N(a)}function Hx(){var a=r("yt.scheduler.instance.start");a&&(vx("jsp")&&!vx("jsr")&&rx("jsr"),N(Ix),a())}var Ix=0;
function Jx(){var a=r("yt.scheduler.instance.pause");a&&(a(),vx("jsp")||rx("jsp"),N(Ix),Ix=M(Hx,800))};var Kx=r("yt.pubsub2.instance_")||new ti;ti.prototype.subscribe=ti.prototype.subscribe;ti.prototype.unsubscribeByKey=ti.prototype.Kb;ti.prototype.publish=ti.prototype.publish;ti.prototype.clear=ti.prototype.clear;q("yt.pubsub2.instance_",Kx,void 0);var Lx=r("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",Lx,void 0);var Mx=r("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Mx,void 0);var Nx=r("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Nx,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);function Ox(a){Wf("/gen_204?"+a,void 0)}function Px(a,b,c,d,e,g){var h={};b&&(h.v=b);c&&(h.list=c);d&&(h.url=d);a={name:a,locale:e,feature:g};for(var k in h)a[k]=h[k];h=Ee("/sharing_services",a);Wf(h)};Pc&&8<=document.documentMode||Qc&&bd("1.9.2")||Rc&&bd("532.1");window.history.pushState&&(!Rc||Rc&&bd("534.11"));function Qx(a){this.j=a}
function Rx(a,b){var c=Sx(a,b.url,b.id),d=["div","iv-card-channel-banner",""];b.A&&(d=["div",["iv-card-channel-banner","iv-card-channel-banner-custom"],{style:"background-image: url("+b.A+");"}]);var e=b.B?["a","iv-card-gplus",{href:b.B,target:"_blank",title:If("YTP_ON_GOOGLE_PLUS")}]:null,c=new X(["article","iv-card-channel",d,["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.F}]],["div","iv-card-content",e,["h1","iv-click-target",b.title],["div",["iv-blob-subscribe","iv-card-subscribe"],
""]]]),g=c.M();g&&Eb(b.o,function(a,b){var c=nd(b,g);E(c,function(b){b.innerHTML=a})},c);return c}
function Tx(a,b){var c=Sx(a,b.url,b.id),d=["ul","iv-card-meta-info"];E(b.k,function(a){d.push(["li","",a])});c=["article",["iv-card-watchable","iv-card-playlist"],["h1",{style:"background-image: url("+b.B+");"},b.A],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.o}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",If("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],
["h2","",b.title],d]]];return new X(c)}
function Ux(a,b){var c=Sx(a,b.url,b.id),d=["iv-click-target","yt-uix-button","yt-uix-button-primary","yt-uix-button-size-large"],e="";b.o&&(d.push("yt-uix-button-has-icon"),e=["span","yt-uix-button-icon-wrapper",["img",["yt-uix-button-icon","iv-card-button-icon"],{src:b.o}]]);return new X(["article","iv-card-simple",["div","iv-card-image",{style:"background-image: url("+b.imageUrl+");"}],["div","iv-card-content",["h1","",b.title],["a",d,{href:c,role:"button"},e,["span","yt-uix-button-content",b.A]]]])}
function Vx(a,b,c){var d=Ux(a,b),e=d.M();yv(a.j.j,e,"click",y(a.o,b,c),"iv-click-target",a);return d}
function Wx(a,b){var c=Sx(a,b.url,b.id),d=["ul","iv-card-meta-info"];E(b.k,function(a){d.push(["li","",a])});return new X(["article",["iv-card-watchable","iv-card-video"],["h1",{style:"background-image: url("+b.F+");"},b.B],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.A}],["span","iv-card-video-duration",b.o]],["div",["iv-card-content","iv-click-target"],["h2","",b.title],d]]])}
function Xx(a,b){var c=["ul","yt-uix-form-list-option"];qb(c,F(b.options,function(a){return["li","iv-card-option",{"data-index":a.index.toString()},["label","",["span","yt-uix-form-input-radio-container",["input","yt-uix-form-input-radio",{type:"radio",name:"radio"}],["span","yt-uix-form-input-radio-element"]]," ",a.desc]]}));var c=new X(["article",["iv-card-poll","iv-card-simple"],["div","iv-card-image",{style:"background-image: url("+b.imageUrl+");"}],["div","iv-card-content",["h1","",b.title],
["fieldset",["yt-uix-form-fieldset","iv-card-options"],c]]]),d=c.M();yv(a.j.j,d,"click",y(a.k,b),"iv-card-option",a);yv(a.j.j,d,"touchend",y(a.k,b),"iv-card-option",a);return c}Qx.prototype.k=function(a,b){b.stopPropagation();b.preventDefault();var c={poll_id:a.id,index:eh(b.currentTarget,"index")};xj(this.j.A.mh,{ze:{action_poll_vote:1},yb:c})};
Qx.prototype.o=function(a,b,c){c.stopPropagation();c.preventDefault();this.j.k.pauseVideo();this.j.k.isFullscreen()&&Yx(this.j.k.app);this.j.Oa.publish("external_overlay_activated");zw(this.j.logger,a.Da);jx(a.G,a.F,a.B)};function Sx(a,b,c){return b?rw(b,c,a.j.A.videoId,a.j.o):null};function Zx(a,b){Dw.call(this,a,b);this.X=!1;this.H=J("div",["iv-cards-thumbnails","hid"]);this.R=J("button",void 0,J("div"));this.B=J("div","iv-cards-background",J("div"),this.R);this.pe=J("div");this.A=J("div",["iv-cards-notif","iv-cards-notif-inactive"],void 0,this.pe,J("button",{type:"button"},J("div")));this.k=J("div","iv-cards-details");this.C=new Qx(this.context);this.j=[];this.J=null;this.N=0;this.o=-1;this.Xb=null;this.G=this.D=!1;O(this.M(),"iv-cards");Ew(this,1E3*this.context.A.lengthSeconds-
1200,2147483647,"",this.Xw);this.context.k.addEventListener("onStateChange",x(this.je,this));this.context.k.addEventListener("onAdStateChange",x(this.je,this))}B(Zx,Dw);var $x={associated:Tw,channel:Qw,fundraising:Tw,merch:Tw,playlist:Rw,poll:Sw,product:Tw,tip:Uw,video:Vw};function ay(a,b){return new Rv(a,[b,a.offsetTop],200,Zv)}function by(a,b,c){a=new Wv(a,200,Zv);b&&vm(a,"end",b,!1,c);return a}
function cy(a){var b=new Xv(a,200,Zv);vm(b,"end",y(function(a,b){pg(a,"opacity","");b.target.L()},a));return b}
function dy(a){Lg(a.B,!1);a.M().appendChild(a.B);om(a.B,"click",a.Pi,!1,a);om(a.B,"touchend",a.Pi,!1,a);a.M().appendChild(a.H);Lg(a.k,!1);a.M().appendChild(a.k);a.M().appendChild(a.A);ey(a);a.context.j.listen(a.A,"click",a.Yq,a);a.context.j.listen(a.A,"touchend",a.Yq,a);a.context.j.listen(a.A,"mouseover",function(){fy(this);this.Xb&&this.Xb.tm.stop()},a);a.context.j.listen(a.A,"mouseout",function(){this.Xb&&this.Xb.tm.start(200)},a);a.context.Oa.subscribe("external_overlay_activated",a.Pi,a);gy(a,
Gw(a))}f=Zx.prototype;f.zs=function(a){var b=a&&a.data&&a.data.card_type;b&&$x[b]&&this.add(new $x[b](a.id,a.data,a.Da))};
f.add=function(a){this.X||(dy(this),this.X=!0);var b=(new X(["button",{type:"button",style:"background-image: url("+a.C+");"}])).M();Lg(b,!1);var c,d;switch(a.type){case "associated":case "fundraising":case "merch":case "product":if(c=Ux(this.C,a))d=c.M(),this.Hd(d,a.url,a.id,a.Da,a.j.click);break;case "tip":(c=Vx(this.C,a,x(this.Fd,this)))&&(d=c.M());break;case "video":if(c=Wx(this.C,a))d=c.M(),this.Hd(d,a.url,a.id,a.Da,a.j.click);break;case "playlist":if(c=Tx(this.C,a))d=c.M(),this.Hd(d,a.url,a.id,
a.Da,a.j.click);break;case "channel":if(c=Rx(this.C,a))d=c.M(),this.Hd(d,a.url,a.id,a.Da,a.j.click);break;case "poll":(c=Xx(this.C,a))&&(d=c.M())}if(d){var e={jb:a,yg:d,Ag:b},g=ub(this.j,e,function(a,b){return a.jb.startMs-b.jb.startMs});0>g&&(g=-(g+1));rb(this.j,g,0,e);Fd(this.H,b,g);1<this.j.length&&Mw(this.H);c.Y(this.k,g);c=y(this.QB,e);this.context.j.listen(b,"click",c,this);this.context.j.listen(d,"click",c,this);this.context.j.listen(b,"touchend",c,this);this.context.j.listen(d,"touchend",
c,this);Ew(this,a.startMs,a.endMs,a.id,y(this.RB,a),this.SB);gy(this,Gw(this))}};f.Fd=function(a,b,c,d,e,g){Yd(a,"article","iv-card-active")?Zx.I.Fd.call(this,a,b,c,d,e,g):g.preventDefault()};f.QB=function(a,b){var c=fb(this.j,function(b){return b===a});hy(this,c,!0);Yd(b.target,"button","yt-uix-button")||b.stopPropagation()};f.RB=function(){++this.N;iy(this)?fy(this):this.G=!0;Zg(this.A,"iv-cards-notif-inactive")};f.SB=function(){--this.N;0==this.N&&O(this.A,"iv-cards-notif-inactive")};
function jy(a,b){if(!a.Xb){a.se();var c=new X(["div","",["span","",b.D],["span","iv-card-image",{style:"background-image: url("+b.C+");"}]]);a.pe.innerHTML="";Dd(a.pe,Id(c.M()))}}function fy(a){if(!a.Xb){var b=ky(a);if(!(0>b)){var c=a.j[b].jb;jy(a,c);Fg(a.pe,"");var d=a.pe.offsetWidth;(new Tv(a.pe,0,d,400,Zv)).play();Cw(a.context.logger,8,c.Da,void 0,c.j.fq);a.Xb={tm:new zv(function(){this.Xb&&((new Tv(this.pe,d,0,200,Zv)).play(),this.Xb=null)},c.teaserDurationMs,a),ry:b};a.Xb.tm.start()}}}
function ey(a){a.se();cy(a.A)}
f.Yq=function(a){a&&a.stopPropagation();if(!this.D){a=new Cv;Eg(this.M(),this.context.o.ee);for(var b=0;b<this.j.length;++b){var c=this.j[b].Ag;a.add(cy(c));Kg(c,0);Lg(c,!0);a.add(ay(c,b*(c.offsetWidth+15)))}a.add(by(this.A));a.add(cy(this.B));for(b=0;b<this.j.length;++b)a.add(cy(this.j[b].yg));this.D=!0;vm(a,"end",this.Ip,!1,this);a.play();this.F=z();this.k.style.width=445*this.j.length+"px";Lg(this.k,!0);Kg(this.k,1);this.se();a=this.Xb?this.Xb.ry:Math.max(0,ky(this));hy(this,a,!1);a=this.j[a].jb;
this.Xb?Cw(this.context.logger,9,a.Da,void 0,a.j.ti):Cw(this.context.logger,12,a.Da,void 0,a.j.ti);this.J=this.context.j.listen(this.M(),"keydown",this.ty,this)}};f.Ip=function(){this.D=!1};f.ty=function(a){switch(a.keyCode){case 27:this.Pi();a.preventDefault();break;case 37:0<this.o&&hy(this,this.o-1,!0);a.preventDefault();break;case 39:this.o+1<this.j.length&&hy(this,this.o+1,!0);a.preventDefault();break;case 9:hy(this,this.o+1<this.j.length?this.o+1:0,!0),a.preventDefault()}return!1};
f.Pi=function(a){a&&a.stopPropagation();if(!this.D){var b=new Cv;E(this.j,function(a){b.add(by(a.Ag));b.add(ay(a.Ag,0))});b.add(by(this.B));b.add(cy(this.A));b.add(by(this.k,function(){Eg(this.M(),"","")},this));this.D=!0;vm(b,"end",this.Ip,!1,this);b.play();a={};a.interval=z()-this.F;var c=this.j[this.o];c&&Aw(this.context.logger,c.jb.Da,a,c.jb.j.close);this.J&&this.context.j.Aa(this.J)}};f.Xw=function(){"none"!=this.k.style.display&&this.context.k.pauseVideo()};
function hy(a,b,c){var d=a.j[b];a.R.focus();if(a.o!=b){if(0<=a.o){var e=a.j[a.o];Zg(e.Ag,"yt-uix-button-toggled");Zg(e.yg,"iv-card-active")}a.o=b;O(d.Ag,"yt-uix-button-toggled");O(d.yg,"iv-card-active");ay(a.k,ly(a).x).play();b={};b.nav=c?"1":"0";vw(a.context.logger,d.jb.Da,b,d.jb.j.wq)}}function ly(a){var b=Gw(a),c=b.right-b.left,b=b.bottom-b.top,d=Hg(a.k);return new Gc(445*-(isNaN(void 0)?a.o||0:NaN)+(c-445)/2,(b-d.height+(1<a.j.length?63:0))/2)}
f.se=function(){var a=Gw(this);a&&(gy(this,a),Lw(this.k)&&(Eg(this.M(),this.context.o.ee),ug(this.k,ly(this))),ug(this.M(),a.left,a.top))};f.je=function(a){iy(this,a)&&this.G&&(this.G=!1,fy(this))};function gy(a,b){var c=(b?445<b.right-b.left&&243<b.bottom-b.top:!1)&&!!a.j.length;Kw(a.M(),c)}function iy(a,b){return 2==Mq(a.context.k.app).getPlayerType()?1==(isNaN(b)?a.context.k.getAdState():b):1==(isNaN(b)?a.context.k.getPlayerState():b)}
function ky(a){var b=1E3*a.context.k.getCurrentTime();return hb(a.j,function(a){return a.jb.startMs<=b&&b<a.jb.endMs})};function my(a,b){T.call(this);this.j=a;var c=Ld(this.j)?this.j:this.j?this.j.body:null;c&&Mg(c);this.k=om(this.j,Qc?"DOMMouseScroll":"mousewheel",this,b)}B(my,T);
my.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.j;if("mousewheel"==a.type){c=1;if(Pc||Rc&&(Uc||bd("532.0")))c=40;d=ny(-a.wheelDelta,c);n(a.wheelDeltaX)?(b=ny(-a.wheelDeltaX,c),c=ny(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),n(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;ha(this.o)&&Fc(b,-this.o,this.o);ha(this.A)&&Fc(c,-this.A,this.A);b=new oy(d,a);this.T(b)};function ny(a,b){return Rc&&(Tc||Vc)&&0!=a%b?a:a/b}
my.prototype.L=function(){my.I.L.call(this);xm(this.k);this.k=null};function oy(a,b){bm.call(this,b);this.type="mousewheel";this.detail=a}B(oy,bm);var py=16/9,qy=4/3,Kq=[.25,.5,1,1.25,1.5,2];function ry(a,b,c){this.j=a;this.B=b;this.k=c}function sy(a,b){var c=ty(a,b.url,b.id),d=b.o&&b.o["iv-blob-subscribe"]?["div","iv-blob-subscribe"]:uy(b),c=new X(["article","",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.F+");"}],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],d]]),e=c.M();Eb(b.o,function(a,b){var c=nd(b,e);E(c,function(b){b.innerHTML=a})},c);yv(a.j.j,e,"click",y(a.o,b),"iv-click-target",a);return c}
function vy(a,b){var c=ty(a,b.url,b.id),c=["article","iv-card-playlist",["div",["iv-card-image","iv-click-target"],["img",{src:b.o,alt:""}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",If("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],uy(b)]],c=new X(c),d=c.M();wy(a,d,b);return c}
function xy(a,b){var c=["ul","yt-uix-form-list-option"];qb(c,F(b.options,function(a){return["li","",["label","iv-click-target",["span","yt-uix-form-input-radio-container",["input","yt-uix-form-input-radio",{type:"radio",name:"radio",value:a.index.toString()}],["span","yt-uix-form-input-radio-element"]]," ",a.desc]]}));var c=["article","iv-card-poll",["div","iv-card-content",["h2","",b.title],["form","",c,["button",["yt-uix-button","yt-uix-button-size-default","yt-uix-button-primary"],["span","yt-uix-button-content",
If("YTP_DRAWER_POLL_SUBMIT")]]]]],c=new X(c),d=c.M();yv(a.j.j,d,"click",y(a.A,b),"yt-uix-button",a);return c}function yy(a,b){var c=ty(a,b.url,b.id),c=zy(b,c),c=new X(c),d=c.M();wy(a,d,b);return c}function Ay(a,b){var c=ty(a,b.url,b.id),c=zy(b,c),c=new X(c),d=c.M();yv(a.j.j,d,"click",y(a.C,b),"iv-click-target",a);return c}
function By(a,b){var c=ty(a,b.url,b.id),c=["article","iv-card-video",["div",["iv-card-image","iv-click-target"],["img",{src:b.A,alt:""}],["span","iv-card-video-duration",b.o]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],uy(b)]],c=new X(c),d=c.M();wy(a,d,b);return c}function uy(a){if(!a.k||0==a.k.length)return"";var b=["ul","iv-card-meta-info"];E(a.k,function(a){b.push(["li","",a])});return b}
function zy(a,b){var c=a.displayDomain?["a",{href:b},a.displayDomain]:"",d=["iv-card-action"],e={href:b},g=a.A;a.o&&(d.push("iv-card-action-icon"),e.style="background-image: url("+a.o+");");var h=["a",d,e,g];a.showLinkIcon&&(h=["a",d,e,["span","",g],"\u00a0",["span","iv-card-link-icon"]]);return["article","",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+a.imageUrl+");"},c],["div",["iv-card-content","iv-click-target"],["h2","",a.title],h]]}
ry.prototype.o=function(a,b){Yd(b.target,"","iv-blob-subscribe")?b.preventDefault():this.k(b.target,a.url,a.id,a.Da,a.j.click,b)};ry.prototype.A=function(a,b){b.stopPropagation();b.preventDefault();var c=a.id,d;t:{if(d=b.currentTarget.form.elements.radio){if(d.type){d=jj(d);break t}for(var e=0;e<d.length;e++){var g=jj(d[e]);if(g){d=g;break t}}}d=null}xj(this.j.A.mh,{ze:{action_poll_vote:1},yb:{poll_id:c,index:d}})};
ry.prototype.C=function(a,b){b.stopPropagation();b.preventDefault();this.j.k.pauseVideo();this.j.k.isFullscreen()&&Yx(this.j.k.app);zw(this.j.logger,a.Da,a.j.click);jx(a.G,a.F,a.B)};function ty(a,b,c){return b?rw(b,c,a.j.A.videoId,a.j.o):null}function wy(a,b,c){a.B(b,c.url,c.id,c.Da,c.j.click)};function Cy(a,b){Dw.call(this,a,b);this.Rk=this.k=this.H=this.N=!1;this.D=new zv(null,b.o.Mc?4E3:3E3);this.B=new ry(b,x(this.Hd,this),x(this.Fd,this));var c=["header","iv-drawer-header",If("YTP_DRAWER_HEADER_TEXT"),["button","iv-drawer-close-button"]];this.G=(new X(c)).M();this.Jd=(new X(["section","iv-drawer"])).M();this.o=(new X(["div","iv-drawer-teaser",["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button","",["span"]]])).M();this.C=pd("iv-drawer-teaser-text",this.o);this.Ac=
null;this.j=[];this.A=-1;this.J=null;b.o.experiments.ov&&Ew(this,1E3*b.A.lengthSeconds-5E3,2147483647,"",y(this.ip,null))}B(Cy,Dw);var Dy={associated:Tw,channel:Qw,fundraising:Tw,merch:Tw,playlist:Rw,poll:Sw,product:Tw,tip:Uw,video:Vw};function Ey(a){a=$d(a.M(),"ytp-iv-player-content");if(!a)return!1;a=Hg(a);return 177<a.width&&177<a.height}
function Fy(a){var b=["html5-stop-propagation","iv-drawer-manager"];a.context.o.experiments.pv&&b.push("iv-drawer-teaser-style-exp");Yg(a.M(),b);a.M().appendChild(a.o);a.M().appendChild(a.G);a.M().appendChild(a.Jd);yv(a.context.j,a.G,"click",a.FC,"iv-drawer-close-button",a);b=new my(a.Jd);om(b,"mousewheel",function(){this.D.start()},!1,a);a.context.j.listen(a.Jd,"scroll",a.GC,a);a.context.j.listen(a.o,"click",a.HC,a);a.context.j.listen(a.o,"mouseover",function(){this.Ac&&this.Ac.stop()},a);a.context.j.listen(a.o,
"mouseout",function(){this.Ac&&this.Ac.start()},a);a.context.Oa.subscribe("onHideControls",function(){this.Rk=!0},a);a.context.Oa.subscribe("onShowControls",function(){this.Rk=!1},a)}f=Cy.prototype;f.zs=function(a){var b=a&&a.data&&a.data.card_type;b&&Dy[b]&&this.add(new Dy[b](a.id,a.data,a.Da))};
f.add=function(a){this.N||(Fy(this),this.N=!0);var b,c;switch(a.type){case "associated":case "fundraising":case "merch":case "product":b=yy(this.B,a);break;case "tip":b=Ay(this.B,a);break;case "video":b=By(this.B,a);break;case "playlist":b=vy(this.B,a);break;case "channel":b=sy(this.B,a);break;case "poll":b=xy(this.B,a)}if(b){c=b.M();c={jb:a,yg:c,Iq:!1,vr:!1};var d=ub(this.j,c,function(a,b){return a.jb.startMs-b.jb.startMs});0>d&&(d=-(d+1));rb(this.j,d,0,c);b.Y(this.Jd,d);this.se();b=1E3*this.context.k.getCurrentTime();
5E3>b&&b>a.startMs&&this.Pr(c);Ew(this,a.startMs,a.startMs+1,a.id,y(this.Pr,c))}};function Gy(a){if(!(a.Ac||a.k||0>a.A)){O(a.o,"iv-drawer-teaser-active");var b=a.j[a.A].jb;a.Ac=new zv(a.cq,580+b.teaserDurationMs,a);a.Ac.start();var c=Hy(a);Cw(a.context.logger,8,b.Da,c,b.j.fq);a.context.o.experiments.rk&&(a.J=Vg(a.C))}}f.cq=function(){this.Ac&&(Zg(this.o,"iv-drawer-teaser-active"),M(x(function(){this.Ac=null},this),330))};
f.ip=function(a){a&&a.stopPropagation();this.k||(this.cq(),O(this.M(),"iv-drawer-open"),this.k=!0,O(this.context.k.Ma(),"ytp-iv-drawer-open"),this.F=z(),Bw(this.context.logger,7),E(this.j,function(a){a.vr||(a.vr=!0,vw(this.context.logger,a.jb.Da,Hy(this,!0),a.jb.j.wq))},this))};f.GC=function(){ah(this.M(),"iv-drawer-scrolled",0<this.Jd.scrollTop)};
f.FC=function(a){var b=Iy(this);Bw(this.context.logger,4,b.j.close);a&&a.stopPropagation();this.k&&(Zg(this.M(),"iv-drawer-open"),this.k=!1,Zg(this.context.k.Ma(),"ytp-iv-drawer-open"),Bw(this.context.logger,10))};f.HC=function(a){if(!this.k){var b=Hy(this);if(0>this.A)Bw(this.context.logger,12);else{var c=Iy(this);this.Ac?Cw(this.context.logger,9,c.Da,b,c.j.ti):Cw(this.context.logger,12,c.Da,b,c.j.ti)}this.ip(a)}};
f.Pr=function(a){if(!this.Ac){var b=fb(this.j,function(b){return b===a});this.A!=b&&(this.A=b,Pd(this.C,a.jb.D));Lw(this.M())&&Jy(this)&&Gy(this);(!this.k||!this.D.isActive()&&this.Rk)&&Ky(this,b)}};function Ky(a,b){var c=new Mv([0,a.Jd.scrollTop],[0,a.j[b].yg.offsetTop],600,Zv);a.context.j.listen(c,"animate",function(a){this.Jd.scrollTop=a.y},a);a.context.j.listen(c,"finish",function(a){this.Jd.scrollTop=a.y},a);c.play()}
f.se=function(){var a=Ey(this)&&!!this.j.length;Kw(this.M(),a);a&&(this.H||(Bw(this.context.logger,11),this.H=!0),E(this.j,function(a){a.Iq||(a.Iq=!0,Cw(this.context.logger,11,a.jb.Da))},this));this.context.o.experiments.rk&&Ly(this)};function Iy(a){var b=Math.max(0,a.A);return a.j[b].jb}
function Jy(a){if(2==Mq(a.context.k.app).getPlayerType())return 1==(isNaN(void 0)?a.context.k.getAdState():void 0);var b=isNaN(void 0)?a.context.k.getPlayerState():void 0;return 1==b||0==b&&0===a.context.k.getCurrentTime()}function Ly(a){var b=a.context.o.ee;if(b){var c=360*py,b=Fc(b.width/b.height>=c/360?b.height/360:b.width/c,1,1.3),b=Math.round(10*b)/10,c=12;switch(b){case 1.1:c=13;break;case 1.2:c=14;break;case 1.3:c=15}c!==Vg(a.C)&&pg(a.C,"font-size",c+"px")}}
function Hy(a,b){var c;if(a.context.o.experiments.rk){c={};var d=b?a.J:Vg(a.C);d&&(c["a-fs"]=d)}return c}f.Fd=function(a,b,c,d,e,g){var h=Hy(this,!0);h&&"a-fs"in h&&(d+="&a-fs="+h["a-fs"]);Cy.I.Fd.call(this,a,b,c,d,e,g)};function My(a,b,c){Dw.call(this,a,b);this.annotation=c;this.isActive=!1}B(My,Dw);My.prototype.xj=function(){My.I.xj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&Ew(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.hide)};function Ny(a,b,c){My.call(this,a,b,c);this.j=null;this.o=!1;this.nj=null;this.nd=!1;this.k=0}B(Ny,My);
function Oy(a){O(a.M(),"iv-branding");var b=a.annotation.data;a.k=b.image_width;a.j=J("img",{src:b.image_url,"class":"branding-img iv-click-target iv-view-target hid",width:b.image_width,height:b.image_height});var c=J("div","branding-img-container",a.j);a.M().appendChild(c);var d=J("div","iv-branding-context-name");Pd(d,b.channel_name);var e=J("div","iv-branding-context-subscribe");a.annotation.o?e.innerHTML=a.annotation.o:b.num_subscribers&&Pd(e,b.num_subscribers);c=J("div","iv-branding-context-subscribe-caret");
d=J("div",["branding-context-container-inner","iv-view-target"],c,d,e);e=J("div","branding-context-container-outer",d);pg(e,"right",a.k+"px");a.M().appendChild(e);a.Hd(a.M(),Py(a.annotation),a.annotation.id,a.annotation.Da);a.nj=new zv(y(function(a){var b=Hg(a.parentElement);(new Sv(a.parentElement,[b.width,b.height],[0,0],200,Yv)).play();this.nd=!1},d),500,a);yv(a.context.j,a.M(),"mouseover",y(function(a,b,c){this.nj.stop();if(!this.nd){var d=Hg(a);Fg(a,d.width);c=Math.min(d.height,c);c=Math.max(c/
2-10,0);ug(b,d.width,c);this.nd=!0;b=9;d=Hg(a);c=Hg(a.parentElement);(new Sv(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,Yv)).play()}},d,c,b.image_height),"iv-view-target",a);yv(a.context.j,a.M(),"mouseout",x(a.nj.start,a.nj),"iv-view-target",a)}
Ny.prototype.show=function(){if(!this.isActive){Ny.I.show.call(this);this.o||(Oy(this),this.o=!0);vw(this.context.logger,this.annotation.Da);Mw(this.M());this.isActive=!0;var a=this.j,b,c=Jg(a).width,d=ha(void 0)?void 0:c;b=b||0;ug(a,d);b=new Qv(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,Yv);om(b,"begin",y(Mw,a));b.play()}};Ny.prototype.hide=function(){this.isActive&&(Nw(this.M()),this.isActive=!1)};function Qy(a,b,c,d,e,g){this.j=a;this.o=b;this.A=c;this.logger=d;this.k=e;this.Oa=g};function Ry(a){this.value=a};function Sy(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var Ty={CLOSE:"close",EJ:"openUrl",PAUSE:"pause",SG:"subscribe"},Uy={CLICK:"click",CLOSE:"close",vI:"hidden",$J:"rollOut",PG:"rollOver",QG:"shown"};function Vy(a){if(!a)return null;var b=dw(a.type,Ty),c=dw(a.trigger,Uy),d=nw($v(a.url));$v(a.subscribeData);(a=$v(a.duration))?(a=hw(a.value),a=new Ry(a)):a=null;return b?new Sy(b,c,d,a):null};function Wy(a,b,c,d,e,g,h,k,l,p,t,v,A,U){this.C=a;this.B=b;this.D=c;this.F=d;this.o=e;this.J=g;this.A=h;this.textAlign=k;this.K=l;this.G=p;this.H=t;this.j=v;this.k=A;this.N=U}
function Xy(a){if(!a)return null;var b=bw(a.fgColor,"#1A1A1A"),c=bw(a.bgColor,"#FFF"),d=bw(a.borderColor,"#000"),e=gw(a.borderWidth,10,0,5,!1,0),g=gw(a.bgAlpha,10,0,1,!1,.8);gw(a.borderAlpha,10,0,1,!1,.2);gw(a.gloss,16,0,255,!1,0);var h=bw(a.highlightFontColor,"#F2F2F2"),k=gw(a.highlightWidth,10,0,5,!1,3),l=cw(a.textAlign),p=gw(a.textSize,10,3.3,30.1,!0,3.6107),t=cw(a.fontWeight),v=jw(a.padding),A=kw(a.effects),U=gw(a.cornerRadius,10,0,10,!0,0);var Z=$v(a.gradient);if(Z){a=gw(Z.x1,10,0,100,!0,0);
var ea=gw(Z.y1,10,0,100,!0,0),pa=gw(Z.x2,10,0,100,!0,100),Ne=gw(Z.y2,10,0,100,!0,100),he=bw(Z.color1,"#FFF"),As=bw(Z.color2,"#000"),Hz=gw(Z.opacity1,10,0,100,!0,100),Z=gw(Z.opacity2,10,0,100,!0,0);a=new Yy(a,ea,pa,Ne,he,As,Hz,Z)}else a=null;return new Wy(b,c,d,e,g,h,k,l,p,t,v,A,U,a)}function Yy(a,b,c,d,e,g,h,k){this.B=a;this.D=b;this.C=c;this.F=d;this.j=e;this.k=g;this.o=h;this.A=k};function Zy(a,b){this.j=a;this.videoId=b};var $y={mL:"xx",nL:"xy",qL:"yx",rL:"yy"};function az(a,b,c){var d=a.D,e=a.F,g=a.j?a.j:"xy",h=bz(c,a.A,g);a=cz(c,a.o,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new hg(0==d?640*b.left*h/100:0<d?d:c.width+d-g,0==e?360*b.top*a/100:0<e?e:c.height+e-k,g,k)}function bz(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function cz(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function dz(a,b,c,d,e,g,h,k,l,p,t){this.x=a;this.y=b;this.B=c;this.h=d;this.k=e;this.C=g;this.D=h;this.F=k;this.A=l;this.o=p;this.j=t}function ez(a,b){if(!a)return null;var c=fw(a.x,0),d=fw(a.y,0),e=fw(a.w,0),g=fw(a.h,0),h=hw(a.t),k=fw(a.scaleSlope,1);return b(c,d,e,g,h,fw(a.d,0),fw(a.px,0),fw(a.py,0),fw(a.scaleSlopeX,k),fw(a.scaleSlopeY,k),dw(a.scaleDimension,$y,"xy"))}
function fz(a,b,c){c=c?fz(c,b):null;a=az(a,new hg(a.x,a.y,a.B,a.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);c=a.clone();b&&!b.contains(a)&&(a.width<b.width?c.left=Fc(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Fc(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function gz(a){return a?ez(a,function(a,c,d,e,g,h,k,l,p,t,v){return new dz(a,c,d,e,g,h,k,l,p,t,v)}):null};function hz(a,b,c,d,e,g,h,k,l,p,t,v,A){dz.call(this,a,b,c,d,e,k,l,p,t,v,A);this.G=g;this.H=h}B(hz,dz);function iz(a){if(!a)return null;var b=fw(a.sx,0),c=fw(a.sy,0);return ez(a,function(a,e,g,h,k,l,p,t,v,A,U){return new hz(a,e,g,h,k,b,c,l,p,t,v,A,U)})};function jz(a,b,c,d){this.type=a;this.k=b;this.j=c;this.o=d}var kz={BG:"anchored",UJ:"rect",hK:"shapeless"};function lz(a){if(!a)return null;var b=dw(a.type,kz,"rect"),c=iw(a.rectRegion,gz),d=iw(a.anchoredRegion,iz);a=iw(a.shapelessRegion,gz);return new jz(b,c,d,a)}function mz(a){return a.k&&a.k.length?a.k[0]:a.j&&a.j.length?a.j[0]:a.o&&a.o.length?a.o[0]:null};function nz(a,b){this.k=a;this.j=b};function oz(a,b){this.state=a;this.j=b}var pz={CLOSED:"closed",IJ:"playerControlShow",PG:"rollOver",QG:"shown"};function qz(a){if(!a)return null;var b=dw(a.state,pz);a=aw(a.ref);return b?new oz(b,a):null};function rz(a,b,c,d){this.j=a||[];this.o=b||[];this.A=c;this.k=d;this.value=!1}function sz(a){if(!a)return null;var b=iw(a.condition,qz),c=iw(a.notCondition,qz),d=ew(a.show_delay,!1);a=ew(a.hide_delay,!1);return b||c?new rz(b,c,d,a):null}function tz(a,b,c){E(a.j,y(b,!1),c);E(a.o,y(b,!0),c)};function uz(a,b,c,d,e,g,h,k,l,p,t,v,A,U,Z,ea){this.id=a;this.author=b;this.type=c;this.style=d;this.C=e;this.k=g;this.B=h||[];this.F=k||[];this.j=l;this.G=p;this.A=t;this.D=v;this.o=U;this.data=Z;this.Da=ea}
var vz={BG:"anchored",DG:"branding",$H:"channel",fI:"cta",EI:"highlightText",VI:"label",KJ:"playlist",LJ:"popup",pK:"speech",SG:"subscribe",FK:"title",VIDEO:"video",hL:"vote",kL:"website"},wz={DG:"branding",RH:"card",DI:"highlight",Hu:"image",MARKER:"marker",PAUSE:"pause",QJ:"promotion",Os:"survey",TEXT:"text",lL:"widget"},xz={dL:"video_relative",JJ:"player_relative"};
function yz(a){if(!a)return null;var b=aw(a.id),c=aw(a.author),d=dw(a.type,wz),e=dw(a.style,vz),g=cw($v(a.TEXT)),h=cw(a.data),h=0!=h.length?Yf(h):{},k;var l=$v(a.segment);l?(aw(l.timeRelative),k=aw(l.spaceRelative),k=(l=iw(l.movingRegion,lz))?new nz(k,l):null):k=null;var l=iw(a.action,Vy),p=iw(a.trigger,sz),t=Xy($v(a.appearance));t||(t=Xy({}));var v=dw(a.coordinate_system,xz,"video_relative"),A;A=(A=$v(a.image_source))?new Zy(cw(A.standard_url),cw(A.video_id)):null;var U=ew(a.closeable,!0),Z=cw(a.html_blob);
a=cw(a.log_data);return b&&d?new uz(b,c,d,e,g,k,l,p,t,v,A,U,0,Z,h,a):null}function Py(a){return(a=zz(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}uz.prototype.showLinkIcon=function(){return Az(this,function(a){return null!=a.url&&a.url.showLinkIcon})};function Bz(a){return Az(a,function(a){return"click"==a.trigger})}function Az(a,b){return db(a.B,b,void 0)}function Cz(a,b,c){E(a.B,b,c)}function zz(a,b){return G(a.B,b,void 0)}function Dz(a,b,c){E(a.F,b,c)}
function Ez(a,b){F(a.F,b,void 0)}function Fz(a){return(a=Gz(a))?mz(a):null}function Gz(a){a.k?(a=a.k,a=a.j.length?a.j[0]:null):a=null;return a}function Iz(a,b){var c=Fz(a);return c&&b?cz(b,c.o,c.j?c.j:"xy"):1};function Jz(a,b,c){My.call(this,a,b,c);this.Si=this.k=this.A=!1;this.o=5E3;this.j=null;this.Df=J("div","iv-promo-contents")}B(Jz,My);
function Kz(a){var b=a.annotation.data;a.o=b.collapse_delay_ms||a.o;var c=["iv-promo","iv-promo-inactive"],d;if(b.image_url){d=J("div","iv-promo-img");var e=J("img",{src:b.image_url,"class":"iv-click-target"});d.appendChild(e);b.video_duration&&!b.is_live?(e=J("span",["iv-promo-video-duration","iv-click-target"],b.video_duration),d.appendChild(e)):b.playlist_length&&(e=J("span",["iv-promo-playlist-length","iv-click-target"],b.playlist_length.toString()),d.appendChild(e))}var e=J("div","iv-promo-txt"),
g,h,k;switch(a.annotation.style){case "cta":case "website":g=J("p","iv-click-target",J("strong",null,b.text_line_1));h=J("p",["iv-promo-link","iv-click-target"],b.text_line_2);O(e,"iv-click-target");break;case "playlist":case "video":g=J("p","iv-click-target",b.text_line_1);h=J("p","iv-click-target",J("strong",null,b.text_line_2));b.is_live&&(g=h,h=J("span",["yt-badge","iv-promo-badge-live","iv-click-target"],If("YTP_LIVE_NOW")));O(e,"iv-click-target");c.push("iv-promo-video");break;case "vote":g=
J("p",null,J("strong",null,b.text_line_1)),h=J("p",null,b.text_line_2),k=J("div","iv-promo-button"),b=J("button",["yt-uix-button","yt-uix-button-primary"],J("span","yt-uix-button-content",b.button_text)),a.context.j.listen(b,"click",function(a){a.stopPropagation();zw(this.context.logger,this.annotation.Da,null,{contest_vote:"1"});var b=this.annotation.data;a=pd("iv-promo-txt",this.Df);var c=pd("iv-promo-button",this.Df),d=J("div",["iv-promo-txt","iv-click-target"]),e=J("p","iv-click-target",J("strong",
null,b.text_line_3)),b=J("p","iv-click-target",b.text_line_4);Dd(d,e,b);Gd(c);Hd(d,a);Zg(this.M(),"iv-promo-with-button");this.Hd(this.Df,Py(this.annotation),this.annotation.id,this.annotation.Da)},a),k.appendChild(b),c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.Df.appendChild(e);k&&a.Df.appendChild(k);g=J("div","iv-promo-actions");h=J("div","iv-promo-expand");g.appendChild(h);a.context.j.listen(a.M(),"mouseover",a.Bs,a);a.context.j.listen(h,"touchend",function(a){a.stopPropagation();
this.Bs();this.Si=!1},a);a.context.j.listen(a.M(),"mouseout",a.B,a);h=J("div","iv-promo-close");g.appendChild(h);Lz(a,x(function(){this.hide()},a),h);Yg(a.M(),c);d&&Cd(a.M(),d);Cd(a.M(),a.Df);Cd(a.M(),g);a.Hd(a.M(),Py(a.annotation),a.annotation.id,a.annotation.Da)}
Jz.prototype.show=function(){this.isActive||(Jz.I.show.call(this),this.A||(Kz(this),this.A=!0),Mw(this.M()),this.annotation&&this.annotation.Da&&vw(this.context.logger,this.annotation.Da),Zg(this.M(),"iv-promo-inactive"),this.isActive=!0,this.j&&(gn(this.j),this.j=null),Mz(this),Nz(this,this.o))};Jz.prototype.hide=function(){this.isActive&&(O(this.M(),"iv-promo-inactive"),this.isActive=!1)};Jz.prototype.Bs=function(){this.Si=!0;Mz(this);Nz(this,500)};Jz.prototype.B=function(){this.Si=!1;Oz(this)};
function Oz(a){a.k||a.Si||a.j||(O(a.M(),"iv-promo-collapsed"),a.k=!0)}function Mz(a){a.k&&(Zg(a.M(),"iv-promo-collapsed"),a.k=!1)}function Nz(a,b){a.j||(a.j=fn(function(){this.j&&(gn(this.j),this.j=null);Oz(this)},b,a))}function Lz(a,b,c){function d(a){Aw(this.context.logger,this.annotation.Da);b(a);a.stopPropagation()}a.context.j.listen(c,"click",x(d,a));a.context.j.listen(c,"touchend",x(d,a))};var Pz={bJ:1,cJ:2,dJ:3};function Qz(a,b,c){this.j={};this.k=!1;this.B="ivTrigger:"+a;this.o=c;tz(b,function(a,b){var c=Rz(b.state,b.j);this.o.subscribe(c,x(this.A,this,c,a));this.j[c]=a},this)}Qz.prototype.A=function(a,b,c,d){this.j[a]=b?!c:c;a=Hb(this.j,function(a){return a});this.k!=a&&(this.k=a,this.o.publish(this.B,a,d))};function Rz(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function Sz(a,b,c){this.o=a;this.annotation=b;this.j=c;this.k=null;this.B=this.isVisible=!1;Tz(b,a)}function Tz(a,b){Ez(a,function(c){return new Qz(a.id,c,b)})}Sz.prototype.hide=function(){this.isVisible=!1;this.o.unsubscribe("onResize",this.A,this);this.j&&this.j.hide()};Sz.prototype.show=function(){this.isVisible=!0;this.j&&this.j.show();this.o.subscribe("onResize",this.A,this)};
Sz.prototype.destroy=function(){this.o.unsubscribe("onResize",this.A,this);if(this.j){var a=this.j;a.F.removeAll();a.k&&Gd(a.k);a.o&&a.o.M()&&Gd(a.o.M())}Uz(this)};function Uz(a){a.k&&(a.k.stop(),a.k=null)}Sz.prototype.A=function(){this.j&&Vz(this.j)};function Wz(){};function Xz(a,b,c,d,e,g,h,k){this.B=a;this.D=b;this.C=c;this.F=d;this.j=e;this.k=g;this.o=n(h)?h:null;this.A=n(k)?k:null}B(Xz,Wz);function Yz(){this.ga=[];this.ka=[];this.ud=[]}Yz.prototype.ag=null;Yz.prototype.Xc=null;Yz.prototype.ak=!0;var Zz=[2,2,6,6,0];f=Yz.prototype;f.clear=function(){this.ga.length=0;this.ka.length=0;this.ud.length=0;delete this.ag;delete this.Xc;delete this.ak;return this};function $z(a,b,c){0==Ya(a.ga)?a.ud.length-=2:(a.ga.push(0),a.ka.push(1));a.ud.push(b,c);a.Xc=a.ag=[b,c]}
f.ab=function(a){var b=Ya(this.ga);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ga.push(1),this.ka.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.ud.push(c,d)}this.ka[this.ka.length-1]+=b/2;this.Xc=[c,d]};f.close=function(){var a=Ya(this.ga);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ga.push(4),this.ka.push(1),this.Xc=this.ag);return this};
function aA(a,b,c,d,e){var g=a.Xc[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+e)*Math.PI/180),h=a.Xc[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+e)*Math.PI/180);a.ga.push(3);a.ka.push(1);a.ud.push(b,c,d,e,g,h);a.ak=!1;a.Xc=[g,h]}function bA(a,b){for(var c=a.ud,d=0,e=0,g=a.ga.length;e<g;e++){var h=a.ga[e],k=Zz[h]*a.ka[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.ga=this.ga.concat();a.ka=this.ka.concat();a.ud=this.ud.concat();a.ag=this.ag&&this.ag.concat();a.Xc=this.Xc&&this.Xc.concat();a.ak=this.ak;return a};f.isEmpty=function(){return 0==this.ga.length};function cA(a,b){this.G=a;this.H=null==b?1:b}B(cA,Wz);function dA(a,b){this.j=a;this.k=b};function eA(){}ba(eA);eA.prototype.j=0;function fA(a){T.call(this);this.K=a||jd();this.va=null;this.Ee=!1;this.j=null;this.B=void 0;this.C=this.F=this.G=null}B(fA,T);f=fA.prototype;f.sE=eA.getInstance();f.getId=function(){return this.va||(this.va=":"+(this.sE.j++).toString(36))};f.M=function(){return this.j};f.di=function(a){if(this.G&&this.G!=a)throw Error("Method not supported");fA.I.di.call(this,a)};f.Ut=function(){this.j=this.K.createElement("div")};
f.nh=function(){gA(this,function(a){a.Ee&&a.nh()});this.B&&this.B.removeAll();this.Ee=!1};f.L=function(){this.Ee&&this.nh();this.B&&(this.B.dispose(),delete this.B);gA(this,function(a){a.dispose()});this.j&&Gd(this.j);this.G=this.j=this.C=this.F=null;fA.I.L.call(this)};f.He=function(){return this.j};function gA(a,b){a.F&&E(a.F,b,void 0)}
f.removeChild=function(a,b){if(a){var c=w(a)?a:a.getId();a=this.C&&c?Ub(this.C,c)||null:null;if(c&&a){Tb(this.C,c);lb(this.F,a);b&&(a.nh(),a.j&&Gd(a.j));c=a;if(null==c)throw Error("Unable to set parent component");c.G=null;fA.I.di.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function hA(a,b,c,d,e){fA.call(this,e);this.width=a;this.height=b;this.A=c||null;this.H=d||null}B(hA,fA);hA.prototype.o=null;hA.prototype.Bh=function(){return this.Ee?Gg(this.M()):ha(this.width)&&ha(this.height)?new I(this.width,this.height):null};function iA(a){var b=a.Bh();return b?b.width/(a.A?new I(a.A,a.H):a.Bh()).width:0}hA.prototype.resume=function(){};function jA(a,b){T.call(this);this.zh=a;this.Sk=b;this[cm]=!1}B(jA,T);f=jA.prototype;f.Sk=null;f.zh=null;f.M=function(){return this.zh};f.addEventListener=function(a,b,c,d){om(this.zh,a,b,c,d)};f.removeEventListener=function(a,b,c,d){wm(this.zh,a,b,c,d)};f.L=function(){jA.I.L.call(this);var a=this.zh;if(a)if(dm(a))a.removeAllListeners(void 0);else if(a=rm(a)){var b=0,c;for(c in a.j)for(var d=a.j[c].concat(),e=0;e<d.length;++e)xm(d[e])&&++b}};function kA(a,b,c,d){jA.call(this,a,b);a=this.Sk;b=this.M();c?(b.setAttribute("stroke",c.k),b.setAttribute("stroke-opacity",1),c=c.j,w(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/iA(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.Sk;a=this.M();if(d instanceof cA)a.setAttribute("fill",d.G),a.setAttribute("fill-opacity",d.H);else if(d instanceof Xz){b="lg-"+d.B+"-"+d.D+"-"+d.C+"-"+d.F+"-"+d.j+"-"+d.k;var e=lA(c,b);if(!e){var e=mA(c,"linearGradient",
{x1:d.B,y1:d.D,x2:d.C,y2:d.F,gradientUnits:"userSpaceOnUse"}),g="stop-color:"+d.j;ha(d.o)&&(g+=";stop-opacity:"+d.o);g=mA(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.k;ha(d.A)&&(g+=";stop-opacity:"+d.A);d=mA(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=nA(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}B(kA,jA);function oA(a,b){jA.call(this,a,b)}B(oA,jA);function pA(a,b){jA.call(this,a,b)}B(pA,jA);function qA(a,b,c,d){kA.call(this,a,b,c,d)}B(qA,kA);function rA(a,b){jA.call(this,a,b)}B(rA,oA);rA.prototype.clear=function(){Ed(this.M())};function sA(a,b,c,d){kA.call(this,a,b,c,d)}B(sA,qA);function tA(a,b){jA.call(this,a,b)}B(tA,pA);function uA(a,b,c,d,e){hA.call(this,a,b,c,d,e);this.k={};this.N=Rc&&!bd(526);this.J=new ln(this)}var vA;B(uA,hA);var wA=0;function mA(a,b,c){a=a.K.j.createElementNS("http://www.w3.org/2000/svg",b);if(c)for(var d in c)a.setAttribute(d,c[d]);return a}f=uA.prototype;
f.Ut=function(){var a=mA(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=mA(this,"g");this.D=mA(this,"defs");this.o=new rA(b,this);a.appendChild(this.D);a.appendChild(b);this.j=a;this.A&&(this.M().setAttribute("preserveAspectRatio","none"),this.N?this.ir():this.M().setAttribute("viewBox","0 0 "+(this.A?this.A+" "+this.H:"")))};
f.ir=function(){if(this.Ee){var a=this.Bh();if(0==a.width)this.M().style.visibility="hidden";else{this.M().style.visibility="";var b=a.width/this.A,a=a.height/this.H;this.o.M().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.Bh=function(){if(!Qc)return this.Ee?Gg(this.M()):uA.I.Bh.call(this);var a=this.width,b=this.height,c=w(a)&&-1!=a.indexOf("%"),d=w(b)&&-1!=b.indexOf("%");if(!this.Ee&&(c||d))return null;var e,g;c&&(e=this.M().parentNode,g=Hg(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.M().parentNode,g=g||Hg(e),b=parseFloat(b)*g.height/100);return new I(a,b)};f.clear=function(){this.o.clear();Ed(this.D);this.k={}};function xA(a,b,c,d){b=mA(a,"path",{d:yA(b)});c=new sA(b,a,c,d);a.o.M().appendChild(c.M())}
function yA(a){var b=[];bA(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(" ")}function nA(a,b,c){if(b in a.k)return a.k[b];var d="_svgdef_"+wA++;c.setAttribute("id",d);a.k[b]=d;a.D.appendChild(c);return d}
function lA(a,b){return b in a.k?a.k[b]:null}f.nh=function(){uA.I.nh.call(this);this.N&&this.J.Aa(zA(),"tick",this.ir)};f.L=function(){delete this.k;delete this.D;delete this.o;this.J.dispose();delete this.J;uA.I.L.call(this)};function zA(){vA||(vA=new dn(400),vA.start());return vA};function AA(a,b,c){this.j=a;this.k=0;this.D=b;this.F=c||70;this.o=!1}AA.prototype.start=function(a){this.C=z();this.k=a;this.B=this.C+this.k;this.o=!0;Mw(this.j);Ff(this.A);this.A=Ef(x(this.G,this),this.F)};AA.prototype.stop=function(){this.o=!1;Nw(this.j);this.A&&Ff(this.A)};
AA.prototype.G=function(){if(this.o){var a=z(),b;b=0==this.k||a>=this.B?0:1-(a-this.C)/this.k;var c=pd("countdowntimer-diminishing-pieslice",this.j),d=kh("svg",this.j);!d&&this.j.querySelectorAll&&(d=this.j.querySelectorAll("svg"),d=d.length?d[0]:null);var d=parseInt(d.getAttribute("width"),10),e=new Yz,g=d/2-5;$z(e,d/2,d/2);e.ab(d/2,5);aA(e,g,g,-90,360*-b);e.ab(d/2,d/2);e.close();c.setAttribute("d",yA(e));a>=this.B&&(this.stop(),this.D&&this.D())}};function BA(){Q.call(this);this.element=this.label=null;this.priority=0;this.A=this.B=!1;this.k=null}B(BA,Q);BA.prototype.listen=function(a,b,c){return this.element.listen(a,b,c||this)};BA.prototype.Aa=function(a){this.element.Aa(a)};function CA(a,b,c,d){X.call(this,["div",{className:"ytp-button","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.ha="inline-block";this.H=a;this.K=this.k=this.B=null;this.A=!1;this.listen("click",this.cE);this.listen("keypress",this.dE);this.H.pf(this.element,x(this.bE,this));ev(this,"button");b&&DA(this,b);c&&this.Ya(c);d&&(this.k=d)}B(CA,X);function DA(a,b){b&&""!=b&&(a.B&&Zg(a.element,a.B),a.B=b,O(a.element,b))}function EA(a,b){a.K=b;av(a.template,"tabindex",b)}f=CA.prototype;
f.bE=function(){return this.A?null:this.k?this.k:null};f.enable=function(){this.A=!1;this.template.update({disabled:null,tabindex:this.K});Zg(this.element,"ytp-disabled")};f.disable=function(){this.A=!0;this.template.update({disabled:"true",tabindex:null});O(this.element,"ytp-disabled")};f.cE=function(a){this.A&&(a.stopImmediatePropagation(),a.preventDefault())};f.dE=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.Sb("click")};
f.L=function(){this.H.wn(this.element);this.H=null;CA.I.L.call(this)};function FA(a,b,c){X.call(this,["div","ytp-segmented-control"]);this.o=a;this.k=-1;this.j=[];if(null!=b)for(si(this.j),this.j=[],a=0;a<b.length;a++){var d=new CA(this.o);ev(d,"radio");this.j.push(d);c?d.ra(["div",b[a]]):d.ra(b[a]);0!=a&&O(d.M(),"ytp-segmented-control-other");GA(d,a==this.k);d.listen("click",y(this.IA,a),this);d.Y(this.element)}ev(this,"radiogroup")}B(FA,X);f=FA.prototype;
f.Y=function(a,b){FA.I.Y.call(this,a,b);for(var c=0,d=0;d<this.j.length;d++)c=Math.max(c,Gg(this.j[d].M()).width);if(c)for(d=0;d<this.j.length;d++)Fg(this.j[d].M(),c)};f.Ca=function(a){this.k=a;for(var b=0;b<this.j.length;b++)GA(this.j[b],b==a)};f.getSelected=function(){return this.k};function HA(a,b){for(var c=0;c<a.j.length;c++)EA(a.j[c],b)}
function GA(a,b){var c=a.M();b?(Zg(c,"ytp-segmented-control-deselected"),O(c,"ytp-segmented-control-selected"),c.setAttribute("aria-checked",!0)):(Zg(c,"ytp-segmented-control-selected"),O(c,"ytp-segmented-control-deselected"),c.setAttribute("aria-checked",!1))}f.IA=function(a){a!=this.k&&(this.Ca(a),this.Sb("change"))};f.L=function(){si(this.j);this.j=[];FA.I.L.call(this)};function IA(a){BA.call(this);this.label=Y(0,"YTP_ANNOTATIONS");this.element=new FA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);R(this,this.element);this.element.Ya(this.label);HA(this.element,2200);this.priority=3;this.Ca(1)}B(IA,BA);IA.prototype.getSelected=function(){return this.element.getSelected()};IA.prototype.Ca=function(a){this.element.Ca(a)};function JA(a,b){this.start=a<b?a:b;this.end=a<b?b:a}JA.prototype.clone=function(){return new JA(this.start,this.end)};function KA(){this.j=!1;this.B=this.o=null}function LA(a,b,c){a.o?(Eg(a.o.M(),b,c),a.o.clear()):(b=new uA(b,c,void 0,void 0,void 0),a.o=b,a.o.Ut(),a.B=J("div"),b=a.o.M(),a.B.appendChild(b));return a.o}KA.prototype.M=function(){return this.B};KA.prototype.k=function(){};function MA(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Eb(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function NA(a,b){var c;c=":"+(eA.getInstance().j++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function OA(a,b){var c=NA(a,MA("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=NA(a,MA("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},MA("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=NA(a,MA("feComposite",{"in":c,in2:b,operator:"in"}));return NA(a,MA("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function PA(a,b){var c=NA(a,MA("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=NA(a,MA("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=NA(a,MA("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=NA(a,MA("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=NA(a,MA("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=NA(a,MA("feComposite",{operator:"out","in":c,in2:d}));return NA(a,MA("feComposite",{operator:"over","in":b,in2:c}))}
function QA(a,b){return b}function RA(a){var b=MA("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";E(a,function(a){t:{switch(a){case "bevel":a=OA;break t;case "dropshadow":a=PA;break t}a=QA}c=a(b,c)});return b}function SA(a){a=bb(a,function(a){return a in TA});wb(a,function(a,c){return TA[a]-TA[c]});return a}function UA(a){return G(a,function(a){return"dropshadow"==a})?new gg(0,7,7,0):new gg(0,0,0,0)}var TA={bevel:1,dropshadow:2};function VA(a,b,c,d,e){b=WA(b,c,d?d.j/2+1:0);xA(a,b,d,e)}function WA(a,b,c){var d=new Yz;$z(d,a.left+b+c,a.top+c);d.ab(a.left+a.width-b-c,a.top+c);aA(d,b,b,-90,90);d.ab(a.left+a.width-c,a.top+a.height-b-c);aA(d,b,b,0,90);d.ab(a.left+b+c,a.top+a.height-c);aA(d,b,b,90,90);d.ab(a.left+c,a.top+b+c);aA(d,b,b,180,90);d.close();return d}function XA(a,b,c,d){var e=a.N;e?a=new Xz(e.B*b/100,e.D*c/100,e.C*b/100,e.F*c/100,e.j,e.k,e.o,e.A):(b=YA(d,a.o),a=new cA(a.B,b));return a}
function YA(a,b){return a?Math.max(b,.9):b}function aB(a,b){var c=new gg(a.top,a.left+a.width,a.top+a.height,a.left),d=UA(b);ja(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-=NaN);return ig(c)}
function bB(a,b,c){if(c.length&&(b=od("g",void 0,b),b.length)){var d=SA(c);if(d){c="effects:"+(d?d.join("|"):"");var e=lA(a,c);e?a=e:(d=RA(d),a=0<d.childNodes.length?nA(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function cB(){KA.call(this);this.A=0}B(cB,KA);
cB.prototype.k=function(a,b,c){var d=a.j,e=d.F,g=this.j&&Bz(a),e=(e+=g?1:0)?new dA(e,g?d.C:d.D):null;if(g=Fz(a)){var h=fz(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=Gz(a))&&a.j?a.j:null)&&a.length?a[0]:null){var l;c=c?fz(c,b):null;a=az(k,new hg(k.G,k.H,k.B,k.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);l=new Gc(a.left,a.top);c=h.clone();a=new hg(l.x,l.y,1,1);var g=Math.max(c.left+c.width,a.left+a.width),p=Math.max(c.top+c.height,a.top+a.height);c.left=Math.min(c.left,
a.left);c.top=Math.min(c.top,a.top);c.width=g-c.left;c.height=p-c.top;c=aB(c,d.j);a=LA(this,c.width,c.height);var g=XA(d,c.width,c.height,this.j),h=new hg(h.left-c.left,h.top-c.top,h.width,h.height),t=new Gc(l.x-c.left,l.y-c.top);this.A=17*cz(b,k.o,k.j?k.j:"xy");b=d.k;k=e?e.j/2:0;l=dB(h,t);var p=this.C(h,b,t,l),v=t.x,t=t.y,A=h.width,U=h.height,Z=h.left,h=h.top,ea=new Yz;$z(ea,Z+b+k,h+k);"t"==l&&(ea.ab(p.start,h+k),ea.ab(v,t),ea.ab(p.end,h+k));ea.ab(Z+A-b-k,h+k);aA(ea,b,b,-90,90);"r"==l&&(ea.ab(Z+
A-k,p.start),ea.ab(v,t),ea.ab(Z+A-k,p.end));ea.ab(Z+A-k,h+U-b-k);aA(ea,b,b,0,90);"b"==l&&(ea.ab(p.end,h+U-k),ea.ab(v,t),ea.ab(p.start,h+U-k));ea.ab(Z+b+k,h+U-k);aA(ea,b,b,90,90);"l"==l&&(ea.ab(Z+k,p.end),ea.ab(v,t),ea.ab(Z+k,p.start));ea.ab(Z+k,h+b+k);aA(ea,b,b,180,90);ea.close();xA(a,ea,e,g);if(e=this.M())O(e,"annotation-shape"),O(e,"annotation-speech-shape"),ug(e,c.left,c.top),Eg(e,c.width,c.height),bB(a,e,d.j)}}}};
function dB(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,g=a.left-b.x,h=Math.max(c,d,e,g);if(0>h)return"i";switch(h){case c:return"t";case d:return"r";case e:return"b";case g:return"l"}return"i"}cB.prototype.C=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=Fc(c-a/2,d+b,d+e-a-b);return new JA(c,c+a)}return"t"==d||"b"==d?e(this.A,c.x,a.left,a.width):"l"==d||"r"==d?e(this.A,c.y,a.top,a.height):new JA(0,0)};function eB(){KA.call(this)}B(eB,KA);eB.prototype.k=function(a,b,c){var d=Fz(a);d&&(b=fz(d,b,c),0>=b.width||0>=b.height||(a=a.j,c=aB(b,a.j),d=LA(this,c.width,c.height),VA(d,new hg(0,0,b.width,b.height),a.k,new dA(!a.A&&this.j?1:a.A,a.B),new cA("#000",0)),b=this.M(),O(b,"annotation-shape"),Kg(b,YA(this.j,a.o)),ug(b,c.left,c.top),Eg(b,c.width,c.height)))};function fB(a,b){return window.location.protocol+"//i1.ytimg.com/vi/"+escape(a)+"/"+(b||"hqdefault.jpg")};function gB(a,b,c){KA.call(this);this.A=a||0;this.D=b||0;this.C=c||!1}B(gB,KA);function hB(a,b){var c=a.width,d=a.height,e=0,g=0;0<b&&(a.width/a.height>b?(d=a.width/b,g=(a.height-d)/2):(c=a.height*b,e=(a.width-c)/2));return new hg(e,g,c,d)}
gB.prototype.k=function(a,b,c){var d=fz(Fz(a),b,c);if(!(0>=d.width||0>=d.height)){var e=hB(d,this.D);e.left+=d.left;e.top+=d.top;b=a.j;c=aB(e,b.j);var g=LA(this,c.width,c.height),h=new cA("#000",0),e=hB(e,this.A);a=a.A?a.A.j?a.A.j:a.A.videoId?fB(a.A.videoId,"hqdefault.jpg"):"":"";e=mA(g,"image",{x:e.left,y:e.top,width:e.width,height:e.height,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});e.setAttributeNS("http://www.w3.org/1999/xlink","href",a);e=new tA(e,g);g.o.M().appendChild(e.M());
if(a=this.M()){var k=YA(this.j,b.o);Kg(a,k);if(this.C&&0<b.A){var k=new dA(b.A,b.B),d=new hg(0,0,d.width,d.height),l;l=WA(d,b.k,k.j/2+1);var p=lA(g,"mask");if(p)l=p;else{var p=document.createElementNS("http://www.w3.org/2000/svg","mask"),t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("d",yA(l));t.setAttribute("fill","#FFF");p.appendChild(t);l=nA(g,"mask",p)}e=e.M();l&&e.setAttribute("mask","url(#"+l+")");VA(g,d,b.k,k,h)}O(a,"annotation-shape");O(a,"annotation-image-shape");
ug(a,c.left,c.top);Eg(a,c.width,c.height);bB(g,a,b.j)}}};function iB(){KA.call(this)}B(iB,KA);iB.prototype.k=function(a,b,c){var d=Fz(a);if(d){var e=fz(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.j;c=aB(e,b.j);var d=LA(this,c.width,c.height),g=b.F;a=this.j&&Bz(a);a=(g+=a?1:0)?new dA(g,a?b.C:b.D):null;g=new hg(0,0,e.width,e.height);e=XA(b,e.width,e.height,this.j);VA(d,g,b.k,a,e);if(a=this.M())O(a,"annotation-shape"),O(a,"annotation-popup-shape"),ug(a,c.left,c.top),Eg(a,c.width,c.height),bB(d,a,b.j)}}};function jB(){cB.call(this)}B(jB,cB);jB.prototype.C=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 JA(c,c+a)}return"t"==d||"b"==d?e(this.A,c.x,a.left,a.width):"l"==d||"r"==d?e(this.A,c.y,a.top,a.height):new JA(0,0)};function kB(a,b,c,d,e){this.j=a;this.H=b;this.D=c;this.K=d;this.J=e;this.F=new xv(this);this.G=this.o=this.B=this.A=this.C=this.k=null}function lB(a,b){var c=x(function(a,c,g){c=g?mB(this,c,x(g,this)):mB(this,c);this.F.listen(b,a,c)},a);c("mouseover","d",a.P);c("mouseout","c",a.N);c("click","a");c("touchend","a")}
function nB(a){if(a.j.D){var b;Az(a.j,function(a){return"close"==a.type})?b=a.k:(a.B=J("div",["annotation-close-button","hid"]),ch(a.B,"annotation_id",a.j.id),a.k.appendChild(a.B),b=a.B);var c=function(a){a.stopPropagation()};a.F.listen(b,"click",mB(a,"b",c));a.F.listen(b,"touchend",mB(a,"b",c))}}
function mB(a,b,c){return x(function(a){if(this.J)c&&c(a);else if(a.target instanceof Element){var e=a.target;Nw(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if($d(g,"annotation")){var h=document.createEvent("MouseEvent");h.initMouseEvent(a.type,a.bubbles,a.cancelable,a.view,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget);g.dispatchEvent(h)}}finally{Mw(e)}}e=Jg(a.target);a=new Gc(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.K.publish(b,this.j)},a)}kB.prototype.P=function(){this.B&&Mw(this.B);this.A&&Kg(this.A,1);var a=oB(this);this.o&&(this.o.j=!0,Kg(this.k,pB(this)?1:0),a&&this.o.k(this.j,a,qB(this)))};kB.prototype.N=function(){this.B&&Nw(this.B);this.A&&Kg(this.A,0);var a=oB(this);this.o&&(this.o.j=!1,Kg(this.k,pB(this)?1:0),a&&this.o.k(this.j,a,qB(this)))};function qB(a){return a.G?Fz(a.G):null}
function Vz(a){if(a.k||a.o){var b=Fz(a.j);if(b){var c=oB(a),d=qB(a);if(a.k&&c){b=fz(b,c,d);Eg(a.k,b.width,b.height);ug(a.k,b.left,b.top);var e=a.D.jf;if(e){var g;g=(g=Fz(a.j))&&e?bz(e,g.A,g.j?g.j:"xy"):1;var e=Iz(a.j,e),h;h=a.j.j;h.H?h=h.H:(h="speech"==a.j.style?1.6:.8,h=new gg(h,h,h,h));h=new gg(360*h.top*e/100,640*h.right*g/100,360*h.bottom*e/100,640*h.left*g/100);a.A&&(h.right+=1.5*c.height/100);a.k.style.padding=h.top+"px "+h.right+"px "+h.bottom+"px "+h.left+"px";"label"==a.j.style&&a.C&&(a.C.style.padding=
a.k.style.padding);a.A&&(g=g/e*c.height*4.2/100,g=new I(g,g),Eg(a.A,g),"highlight"==a.j.type||"label"==a.j.style?(e=1.5*c.height/100,g=new Gc(b.width-g.width-e,b.height-g.height-e)):g=new Gc(b.width-g.width-3*c.height/100,(b.height-g.height)/2),ug(a.A,g));a.B&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,ug(a.B,g&&e?new Gc(b.width-9,-9):g?new Gc(b.width-9,45<b.height?9:b.height-9):e?new Gc(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new Gc(45<b.width?b.width-9-18:-9,
b.height-9):new Gc(-9,45<b.height?9:b.height-9)))}}a.o&&c&&a.o.k(a.j,c,d);if(a.k){c=a.k;d=a.j.j;c.style.color="highlightText"==a.j.style?d.J:d.C;c.style.fontSize=360*d.K*Iz(a.j,a.D.jf)/100+"px";b=a.j.style;c.style.textAlign=d.textAlign?d.textAlign:"title"==b||"highlightText"==b?"center":"left";d.G&&(c.style.fontWeight=d.G);a=a.k;c=a.style.overflow;d=pd("annotation-link-icon",a);b=Lw(d);g=pd("annotation-close-button",a);e=Lw(g);d&&b&&Nw(d);g&&e&&Nw(g);var k=h="",l=pd("inner-text",a);l&&(h=l.style.overflow,
k=l.style.position,l.style.overflow="visible",l.style.position="static");a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth){for(var p=Vg(a),t=p,v=5,A=Math.floor(p/2);A;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(v=t,t=Math.min(t+A,p)):t=Math.max(t-A,v),A=Math.floor(A/2),a.style.fontSize=t+"px";t!=v&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=v+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=
k);g&&e&&Mw(g);d&&b&&Mw(d)}}}}
kB.prototype.show=function(){var a=this.j.j,a=(a&&0==a.o||"title"==this.j.style||"highlightText"==this.j.style||"pause"==this.j.type?!1:!0)&&!this.o,b=!this.k,c="widget"==this.j.type;if(a){var d=oB(this);if(d){var e=null;"highlight"==this.j.type||"label"==this.j.style?e=new eB:"popup"==this.j.style?e=new iB:"anchored"==this.j.style?e=new cB:"speech"==this.j.style?e=new jB:"image"==this.j.type&&("video"==this.j.style?e=new gB(qy,py,!0):"channel"==this.j.style&&(e=new gB));e&&(e.k(this.j,d,qB(this)),
this.o=e,d=e.M())&&(Nw(d),O(d,"annotation-type-"+this.j.type.toLowerCase()),this.H(d))}}if(b){d=["annotation","hid"];"highlightText"!=this.j.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.j.type.toLowerCase());this.k=J("div",d);this.j.C&&(this.C=J("div","inner-text"),"label"==this.j.style&&(O(this.C,"label-text"),this.C.style.backgroundColor=this.j.j.B),Pd(this.C,this.j.C),this.k.appendChild(this.C));ch(this.k,"annotation_id",this.j.id);this.H(this.k);lB(this,this.k);if(Bz(this.j)&&
"image"!=this.j.type&&this.j.showLinkIcon()){if(d=Py(this.j))this.k.title=d.value?d.value:null;this.A=J("span","annotation-link-icon");this.k.appendChild(this.A)}nB(this);Bz(this.j)||(this.k.style.cursor="default")}c&&("subscribe"==this.j.style?pd("yt-uix-subscription-button",this.k)||(this.k.innerHTML=this.j.o):this.j.o&&(this.k.innerHTML=this.j.o));if(a||b){t:{a=this.j.k.j;if(a.length&&(a=mz(a[0]))){a=a.C;break t}a=0}this.k&&(this.k.style.zIndex=a);this.o&&this.o.M()&&(this.o.M().style.zIndex=a)}Mw(this.k);
Kg(this.k,pB(this)?1:0);Vz(this);this.o&&Mw(this.o.M())};kB.prototype.hide=function(){Nw(this.k);this.o&&Nw(this.o.M())};function pB(a){return"label"!=a.j.style||a.o.j}function oB(a){var b=a.D.jf;return b?"player_relative"==a.j.G?(a=a.D.ee)?new hg(-b.left,-b.top,a.width,a.height):null:new hg(0,0,b.width,b.height):null};function rB(a){Bs.call(this,a);this.Oi=!0;this.ta="iv-module";this.oc="iv";this.N=!1;this.U=!0;this.F=!1;this.A=0;this.k={};this.K={};this.H=null;this.D=new uw(this.P,a);a=sB;this.B=new IA(Ps(this));R(this,this.B);this.B.listen("change",this.Ez,this);this.subscribe("onHideControls",this.Bz,this);this.subscribe("onShowControls",this.Dz,this);this.subscribe("onStateChange",this.Cz,this);this.subscribe("d",this.Gz,this);this.subscribe("c",this.Fz,this);this.subscribe("a",this.zz,this);this.subscribe("b",
this.Az,this);this.subscribe("videodatachange",this.vk,this);var b=new Wu(["div",[a.wz,"hid"],["svg",{width:"60",height:"60"},["g","",["circle","countdowntimer-background-circle",{cx:"30",cy:"30",r:"15"}],["path","countdowntimer-diminishing-pieslice",{d:"M30,30 z"}],["circle","countdowntimer-middle-dot",{cx:"30",cy:"30",r:"4"}]]]]);R(this,b);b=b.M();this.R=J("DIV",[a.yz,"html5-stop-propagation"]);this.X=J("DIV",a.xz);this.C=null;Es(this,J("DIV",a.vz,this.R,this.X));Es(this,b);this.J=new AA(b,x(this.uk,
this));this.G=this.o=null;this.O=[]}B(rB,Bs);rB.B="AnnotationsModule";var sB={vz:"video-annotations",wz:"countdowntimer",xz:"video-custom-annotations",yz:"video-legacy-annotations"};rB.A=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};rB.o=function(a){return"card"==a.type};rB.k=function(a){return rB.Ea(a)?new rB(a):null};rB.Ea=function(a){var b=a.S();return"leanback"==b.ca?!1:b.ha?!0:rv(a.getVideoData(),"iv3_module")};
rB.j=function(){return J("div",["annotation","annotation-type-custom","hid"])};f=rB.prototype;f.Ea=function(){return rB.Ea(this.j)};f.create=function(){rB.I.create.call(this);this.C=new X(["div",["ytp-player-content","ytp-iv-player-content"]]);this.C.Y(this.j.Ma());Ss(this,this.B);var a=this.j.S();(1==(a.da||this.j.getVideoData().oa)||a.ha)&&this.load()};f.destroy=function(){this.C.detach();this.C.dispose();Ts(this,this.B);this.unsubscribe("videodatachange",this.vk,this);rB.I.destroy.call(this)};
f.Ez=function(){var a=this.F||this.A,b=0==this.B.getSelected();a&&!b?(this.unload(),this.log({toggle:0})):!a&&b&&(this.load(),this.log({toggle:1}))};f.Cz=function(a){this.U=W(a.state,8);0>tv(a,4)&&this.J.stop()};
f.load=function(){rB.I.load.call(this);var a=this.j.getVideoData(),b=x(this.Is,this,a.videoId);Dx()&&(b=tB(this,b));var b={format:"XML",method:"GET",Lb:b},c=this.j.S().ha,d=this.j.S().jc;if(c||d)b.method="POST",b.yb={},c&&(b.yb.ic_xml=c),d&&(b.yb.ic_track=d);a.mh&&(this.A++,yj(a.mh,b));a.Qm&&(b=x(this.Is,this,a.videoId),Dx()&&(b=tB(this,b)),b={format:"XML",method:"GET",Lb:b},this.A++,yj(a.Qm,b));this.B.Ca(0)};
f.unload=function(){this.B.Ca(1);this.D.Ia({"iv-event":1});this.uk();Cs(this);Eb(this.k,function(a){a.destroy()});Eb(this.K,function(a){a.destroy()});this.G=null;this.o&&(this.o.destroy(),this.o=null);this.A=0;this.F=!1;this.k={};this.K={};rB.I.unload.call(this)};
function uB(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 g;if(c[e.tagName])g=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){0<e.childNodes.length&&(g=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof g?g.trim():g);continue}else g=[],c[e.tagName]=g;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?g.push(e.childNodes[0].nodeValue):g.push(""):
e&&g.push(uB(a,e))}return c}
f.Is=function(a,b){if(this.A&&!this.F&&this.j.getVideoData().videoId==a){this.A--;var c=b.responseXML?b.responseXML.getElementsByTagName("annotations"):null;if(tj(b)&&c){vB(this,c[0]);O(this.j.Ma(),this.ta+"-loaded");0==this.A&&(this.F=!0);var c=[],d;for(d in this.k){var e=this.k[d].annotation,g;if(e.k)if(g=e.k,g.j.length)if(g=g.j[0].k||g.j[0].j||g.j[0].o,!g||2>g.length)g=null;else{var h=g.length-1;g=0>=g[0].k&&0>=g[h].k?null:{start:g[0].k,end:g[h].k}}else g=null;else g=null;if(h=g)if(g=1E3*h.start,
h=1E3*h.end,0==g&&(g++,h++),g==h&&h++,!(h<g)){var k={id:d};"marker"==e.type&&(k.style="ytp-chapter-marker",k.tooltip=e.C,k.visible=!0);e=new qs(g,h,k);c.push(e)}}this.Kd.apply(this,c)}}};function wB(a,b){var c=xB(a,b);if(!c&&"marker"!=b.type)return null;Dz(b,function(a){a=x(this.NF,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new Sz(a.P,b,c)}
function yB(a,b){var c=a.C.M(),d=rB.j(),e=null;switch(b.type){case "branding":c.appendChild(d);e=new Ny(d,zB(a),b);break;case "promotion":a.j.S().experiments.K&&"video"==b.style?(c=nj(Py(b).value).v,d=hw(b.data.video_duration),c&&d&&(a.H={id:c,fH:d,gH:"feature=endscreen",author:b.data.text_line_1,title:b.data.text_line_2,eH:1},a.vk())):(c.appendChild(d),e=new Jz(d,zB(a),b))}e&&e.xj();return e}
f.vk=function(){if(this.H){var a=this.j.getVideoData().N;!a||1>=a.length||a[1].id==this.H.id||(rb(a,1,0,this.H),mb(a,a.length-1))}};function AB(a,b){if(!a.o){var c=a.j.S().experiments,d=2==Mq(a.j.app).getPlayerType(),c=c.Ga||d||!1,d=rB.j();c?(a.C.M().appendChild(d),a.o=new Cy(d,zB(a))):(a.X.appendChild(d),a.o=new Zx(d,zB(a)));a.o.xj()}a.o.zs(b)}function zB(a){a.G||(a.G=new Qy(new xv(a),a.j.S(),a.j.getVideoData(),a.D,a.j,a.P));return a.G}
function vB(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=uB(a,c[d]),g=null;try{g=yz(e)}catch(h){}g&&(rB.A(g)?(e=yB(a,g))&&(a.K[g.id]=e):rB.o(g)?AB(a,g):(e=wB(a,g))&&(a.k[g.id]=e))}Eb(a.k,function(a){var b=a.annotation;b.k&&b.k.k&&(b=this.k[b.k.k])&&(a.j.G=b.annotation)},a)}f.Ec=function(a){rB.I.Ec.call(this,a);a=a.getId();var b=this.k[a];b&&!b.B&&(b=b.annotation,"pause"==b.type?BB(this,b):(CB(this,a),vw(this.D,b.Da)))};
f.Uc=function(a){rB.I.Uc.call(this,a);DB(this,a.getId())};function BB(a,b){if(a.U){var c=zz(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.N=!0,a.publish("command_pause"),a.J.start(1E3*c.duration.value))}}function EB(a,b,c,d){d?CB(a,b,c):DB(a,b,c)}function DB(a,b,c){if(b=a.k[b])Uz(b),c&&c.k?(a=x(a.bu,a,b),b.k=new zv(a,2E3),b.k.start()):a.bu(b)}f.bu=function(a){a&&(a.hide(),FB(this,"shown",!1,a.annotation.id),this.uj(a.annotation,"hidden"))};
function CB(a,b,c){if(b=a.k[b])Uz(b),c&&c.A?(a=x(a.Pt,a,b),b.k=new zv(a,2E3),b.k.start()):a.Pt(b)}f.Pt=function(a){a&&(a.show(),FB(this,"shown",!0,a.annotation.id),this.uj(a.annotation,"shown"))};f.NF=function(a,b,c){var d=this.k[a];if(d&&b.value!=c){b.value=c;var e=!1;Dz(d.annotation,function(a){e|=a.value});EB(this,a,b,e)}};f.zz=function(a){if(a&&a.id){var b=Py(a);if(b){var c=x(this.uj,this,a,"click"),d=this.j.getVideoData();if("new"==b.target||-1!=qw(b,d.videoId))c(),c=null;zw(this.D,a.Da,c)}}};
f.uj=function(a,b){Cz(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.j.getVideoData(),e=qw(c.url,d.videoId);if(-1!=e)this.publish("command_seek",e),this.uk();else if(d=rw(c.url,a.id,d.videoId,this.j.S()))this.pauseVideo(),window.open(d,tw(c.url))}},this)};f.Bz=function(){FB(this,"playerControlShow",!1)};f.Dz=function(){FB(this,"playerControlShow",!0)};f.Gz=function(a){FB(this,"rollOver",!0,a.id)};f.Fz=function(a){FB(this,"rollOver",!1,a.id)};
f.Az=function(a){if(a||a.id)this.k[a.id].B=!0,DB(this,a.id),a&&(Aw(this.D,a.Da),this.uj(a,"close")),FB(this,"closed",!0,a.id)};f.uk=function(){this.J.stop();this.N&&(this.N=!1,this.publish("command_play"))};function xB(a,b){if(GB(b)){var c=b.D||Az(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new kB(b,x(a.R.appendChild,a.R),a.j.S(),a.P,c)}return null}
function GB(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in vz)if(a.style==vz[b])return!0;return!1}function FB(a,b,c,d){a.publish(Rz(b,d),c,d)}function tB(a,b){return x(function(){if(!this.ea()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=y.apply(window,a);this.O.push(Ex(b,void 0))}},a)}f.L=function(){for(var a=this.O,b=0,c=a.length;b<c;b++)Gx(a[b]);this.O.length=0;rB.I.L.call(this)};var HB=/^#(?:[0-9a-f]{3}){1,2}$/i,IB="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),JB=["none","raised","depressed","uniform","dropShadow"],KB=["sub","inherit","super"],LB=["left","right","center"],MB={id:0,priority:0,anchorPoint:7,gj:50,ZC:80,Ud:100,jd:15,xm:100,isVisible:!0,textAlign:2,wf:0,backgroundColor:"#080808",foregroundColor:"#fff",dr:1,YC:1},NB={id:98},OB={id:99,priority:1,anchorPoint:0,gj:5,Ud:5,jd:2,xm:32,textAlign:0},PB=["en_CA","en_US","es_MX","fr_CA"];var QB=[{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"}],RB=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],SB=[{option:.25,text:"25%"},{option:.5,
text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],TB=[{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:QB},
{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:QB},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:RB},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:QB},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:RB},{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:SB}];var UB;function VB(a,b){fa(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;UB||(UB={atomic:!1,autocomplete:"none",dropeffect:"none",haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:"vertical",readonly:!1,relevant:"additions text",required:!1,sort:"none",busy:!1,disabled:!1,hidden:!1,invalid:"false"});c=UB;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function WB(a,b,c,d,e){CA.call(this,a,b,c,c);this.J=b;this.P=this.N=c;this.C=d||null;this.D=e||null;this.G=e||null;this.j=!1}B(WB,CA);WB.prototype.update=function(){DA(this,this.j&&this.C?this.C:this.J);this.Ya(this.j&&this.D?this.D:this.N);this.k=this.j&&this.G?this.G:this.P;ah(this.element,"ytp-button-pressed",this.j)};function XB(a){a.j=!0;VB(a.element,!0);a.update()}function YB(a){a.j=!1;VB(a.element,!1);a.update()}function ZB(a,b){a.J=b;a.update()}
WB.prototype.L=function(){this.G=this.D=this.C=null;WB.I.L.call(this)};function $B(a){WB.call(this,a,"ytp-subtitles-button",Y(0,"YTP_SUBTITLES"),"ytp-subtitles-button-active");EA(this,6500);this.element.setAttribute("aria-haspopup",!0);this.element.id="subtitles_button"}B($B,WB);function aC(a){X.call(this,a)}B(aC,X);aC.prototype.Es=function(){};aC.prototype.focus=function(){};function bC(a,b,c,d){X.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Y(0,b.message):""),e=[new Wu(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new Wu(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.M().style.background=b.option,e.unshift(d));c?e.unshift(new Wu(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new Wu(["div","ytp-subtitles-settings-dialog-list-check"]));this.j=new CA(a);R(this,this.j);this.j.ra(e);
this.ra(this.j)}B(bC,X);bC.prototype.setEnabled=function(a){ah(this.j.M(),"ytp-subtitles-settings-dialog-list-selected",a)};function cC(a){X.call(this,["div",["ytp-subtitles-settings-dialog","ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body",["div","ytp-subtitles-settings-dialog-top-level","{{top}}"],["div","ytp-subtitles-settings-dialog-sub-level","{{sub}}"]],["div","ytp-dialog-buttons","{{buttons}}"]]);this.A=a;this.k=null;var b=Y(0,"YTP_DONE"),c=new CA(a,"ytp-dialog-button",b);R(this,c);c.ra(b);c.listen("click",y(this.Sb,"cancel"),this);EA(c,1400);b=Y(0,"YTP_RESET");a=new CA(a,"ytp-dialog-button",b);R(this,
a);a.ra(b);O(a.M(),"ytp-dialog-button-left");a.listen("click",y(this.Sb,"select"),this);EA(a,1300);this.o={};this.j={};this.template.update({top:dC(this,TB),buttons:[a,c]})}B(cC,aC);
function dC(a,b,c){var d=new X(["ul","ytp-subtitles-settings-dialog-list"]),e,g=!1;n(c)?(a.j={},e=a.j):(a.o={},e=a.o,g=!0);for(var h=0;h<b.length;h++){var k=b[h],l=new bC(a.A,k,g,b==QB);g?(l.listen("click",x(a.Mq,a,k.options,k.option)),EA(l.j,1100)):c&&(l.listen("click",x(a.AC,a,c,k.option)),EA(l.j,1200));e[k.option]=l;l.Y(d.M())}return d}f=cC.prototype;f.Mq=function(a,b){this.template.update({sub:dC(this,a,b)});eC(this,this.o,b);eC(this,this.j,this.k[b]);fC(this.template.j["ytp-subtitles-settings-dialog-sub-level"])};
function fC(a){(a=pd("ytp-subtitles-settings-dialog-list-selected",a))&&a.focus()}f.focus=function(){fC(this.template.j["ytp-subtitles-settings-dialog-top-level"])};function eC(a,b,c){Eb(b,function(a,b){a.setEnabled(b==c)},a)}f.setProperties=function(a){this.k=a;(a=TB[0])&&a.options&&this.Mq(a.options,a.option)};f.AC=function(a,b){this.k&&(this.k[a]=b,this.Sb("change"));eC(this,this.j,b);this.focus()};
f.Es=function(){var a=this.A.ob(),b=2*Math.floor(Math.min(560,Math.max(230,.65*a.width))/2);this.M().style.width=b+"px";this.template.j["ytp-dialog-body"].style.height=a.height-140+"px"};f.L=function(){this.o=[];this.j=[];cC.I.L.call(this)};function gC(a,b,c){X.call(this,["div","ytp-drop-down","{{content}}"]);this.o=!1;this.B=0;this.G=this.D=null;this.A=new xv(this);this.k=new X(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);R(this,this.k);ev(this.k,"listbox");this.j=new CA(a,"ytp-drop-down-label");R(this,this.j);this.j.listen("click",this.yx,this);this.C=new X(["div","ytp-drop-down-label-content","{{content}}"]);R(this,this.C);this.j.ra([this.C,["div","ytp-drop-down-arrow"]]);this.ra([this.k,this.j]);n(b)&&this.Od(b);n(c)&&
this.G!=c&&(this.k.ra(c),this.G=c,hC(this));hC(this)}B(gC,X);f=gC.prototype;f.Od=function(a){this.D!=a&&(this.C.ra(a),this.D=a,hC(this))};f.Pd=function(){this.o=!1;hC(this)};f.aA=function(a){a.target&&(Nd(this.k.M(),a.target)||Nd(this.j.M(),a.target))||this.Pd()};f.yx=function(){this.o=!this.o;hC(this);this.o&&this.k.M().focus()};function iC(a,b){b>a.B&&(a.B=b,a.element.style.minWidth=a.B+"px")}f.focus=function(){this.j.M().focus()};
function hC(a){a.o?(a.k.show(),a.A.listen(window,"blur",a.Pd),a.A.listen(document,"click",a.aA)):(a.k.hide(),a.A.removeAll());var b=Gg(a.j.M());a.k.M().style.bottom=b.height-1+"px";iC(a,b.width)};function jC(a,b){CA.call(this,a,"ytp-drop-down-menu-button");ev(this,"option");this.j=new X(["div","ytp-drop-down-menu-button-check"]);R(this,this.j);this.o=!!b}B(jC,CA);jC.prototype.ra=function(a){jC.I.ra.call(this,[this.j,a])};jC.prototype.Ca=function(a){ah(this.element,"ytp-drop-down-menu-button-selected",a);this.o||ah(this.element,"ytp-drop-down-menu-button-checked",a);this.element.setAttribute("aria-checked",a)};function kC(a,b){ah(a.element,"ytp-drop-down-menu-button-checked",b)};function lC(a,b,c,d){X.call(this,["div","ytp-drop-down-menu-content",{tabindex:"{{tabindex}}"},"{{content}}"]);this.G=a;this.B=!!d;this.o={};this.A=[];this.j=this.k=null;this.C=b;this.D=c}B(lC,X);function mC(a,b){zb(a.A,b)||(Eb(a.o,function(a){a.detach()}),a.A=[],b&&E(b,function(a){this.A.push(a);var b=nC(this,a);this.B&&kC(b,a==this.j);b.Ca(a==this.k);b.Y(this.element)},a))}lC.prototype.Ca=function(a){null!=this.k&&nC(this,this.k).Ca(!1);null!=a&&nC(this,a).Ca(!0);this.k=a;this.B||(this.j=a)};
lC.prototype.getSelected=function(){return this.k};function oC(a,b){var c=nC(a,"translate");b?c.disable():c.enable()}function pC(a,b){Eb(a.o,function(a){EA(a,b)})}function nC(a,b){var c=a.o[b.toString()];if(c)return c.ra(a.C(b)),c;c=new jC(a.G,a.B);R(a,c);a.o[b.toString()]=c;c.ra(a.C(b));c.listen("click",x(a.D,a,b));return c};function qC(a,b,c,d,e,g){BA.call(this);this.K=b;this.N=c;this.J=d;this.P=e;this.H=g;this.o={};this.o.off=Y(0,"YTP_LANGUAGE_OFF");this.o.translate=Y(0,"YTP_TRANSLATE_MENU_ITEM");this.o.contribute=Y(0,"YTP_CONTRIBUTE_MENU_ITEM");this.label=Y(0,"YTP_SUBTITLES");this.j=new lC(a,x(this.F,this),x(this.O,this));R(this,this.j);this.element=new gC(a,void 0,this.j);R(this,this.element);iC(this.element,150);this.element.Ya(this.label);this.priority=1;this.B=!0;this.D=this.C=!1;rC(this,[]);this.off()}B(qC,BA);
qC.prototype.G=function(){this.J()};function rC(a,b){for(var c=["off"],d=0;d<b.length;d++){var e=b[d],g=e.toString();a.o[g]||(a.o[g]=pt(e));c.push(g)}c.push("translate");a.D&&c.push("contribute");mC(a.j,c);oC(a.j,!a.C);c=nC(a.j,"translate");ah(c.element,"ytp-drop-down-menu-button-separated",!1);ah(c.element,"ytp-drop-down-menu-button-separated-above",!0);c=2500;pC(a.j,c++);c=c++;EA(a.element.j,c)}function sC(a,b){a.o[b]&&(a.j.Ca(b),a.element.Od(a.F(b)))}qC.prototype.off=function(){sC(this,"off")};
qC.prototype.F=function(a){return this.o[a]};qC.prototype.O=function(a){this.element.Pd();"off"==a?this.K():"translate"==a?this.P():"contribute"==a?this.H():this.N(a,!0)};function tC(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);var c=Y(0,"YTP_DISMISS"),b=new CA(a,"ytp-dialog-button",c);R(this,b);b.ra(c);b.listen("click",y(this.Sb,"change"),this);EA(b,1400);var c=Y(0,"YTP_CANCEL"),d=new CA(a,"ytp-dialog-button",c);R(this,d);d.ra(c);d.listen("click",y(this.Sb,"cancel"),this);EA(d,1500);this.k=new lC(a,
x(this.Ir,this),x(this.FB,this),!0);R(this,this.k);this.k.element.style.maxHeight="100px";this.j=new gC(a,void 0,this.k);R(this,this.j);iC(this.j,200);this.j.Ya(Y(0,"YTP_TRANSLATE_DIALOG_TITLE"));this.o=null;this.template.update({content:this.j,buttons:[b,d]})}B(tC,aC);f=tC.prototype;f.Ca=function(a){this.o=a;this.j.Od(a?this.Ir(a):null)};f.getSelected=function(){return this.o};f.FB=function(a){this.j.Pd();this.Ca(a)};f.Ir=function(a){return a.zi?a.languageName+" -- "+a.zi:a.languageName};
f.focus=function(){this.j.focus()};function uC(a){WB.call(this,a,"ytp-settings-button",Y(0,"YTP_SETTINGS"),"ytp-settings-button-active");EA(this,6600);this.element.setAttribute("aria-haspopup",!0);this.element.id="settings_button";this.o=new X(["div","{{content}}"]);R(this,this.o);this.ra(this.o);vC(this,"")}B(uC,WB);function vC(a,b){"highres"==b?a.o.ra("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.o.ra("ytp-settings-hd-quality-badge"):a.o.ra("")};function wC(a){this.anchorPoint=7;this.gj=50;this.Ud=100;this.ZC=80;this.wf=0;this.textAlign=2;this.backgroundColor="#080808";this.color="#fff";this.YC=this.dr=1;this.jd=15;this.xm=32;this.isVisible=!0;this.k=0;this.bold=!1;this.offset=1;this.j=3;a=a||MB;qa(this,a)};function xC(a,b){this.id=a;this.za=new wC(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.Ha=J("div",{id:"caption-window-"+this.id,"class":c});this.Vb=J("span",{"class":"captions-text",style:"visibility: hidden"});this.Vb.innerHTML="C";this.Na=J("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.Ah=J("div",{"class":"caption-window-transform"});this.Ah.appendChild(this.Na);this.Ha.appendChild(this.Ah);this.j=1}xC.prototype.id=0;f=xC.prototype;
f.za=null;f.kh="";f.Lc=null;f.Ha=null;f.Ah=null;f.Na=null;f.Vb=null;f.type=0;
f.$c=function(a,b){a&&qa(this.za,a);var c=this.za.charEdgeStyle,d=this.za.textOpacity,e="";if(0!=c){var g="rgba(34, 34, 34, "+d+")",h="rgba(204, 204, 204, "+d+")";this.za.charEdgeColor&&(h=g=this.za.charEdgeColor);switch(c){case 4:e="2px 2px 3px "+g+", 2px 2px 4px "+g+", 2px 2px 5px "+g;break;case 1:e="1px 1px "+g+", 2px 2px "+g+", 3px 3px "+g;break;case 2:e="1px 1px "+h+", 0 1px "+h+", -1px -1px "+g+", 0 -1px "+g;break;case 3:e="0 0 4px "+g+", 0 0 4px "+g+", 0 0 4px "+g+", 0 0 4px "+g}}c=this.za.fontFamily;
g="";switch(c){case 1:g='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case 2:g='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:g='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:g='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:g='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:g='"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';
break;case 0:case 4:g='"Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}var k=Ev(this.za.color),h=Ev(this.za.background),k="rgba("+k[0]+","+k[1]+","+k[2]+","+d+")",d=this.za.offset||1;pg(this.Na,{color:k,fill:k,"background-color":"rgba("+h[0]+","+h[1]+","+h[2]+","+this.za.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":g,"font-weight":this.za.bold?"bold":"","font-style":this.za.italic?"italic":"","text-decoration":this.za.underline?
"underline":"","vertical-align":KB[d]});b&&(this.j=b.height/360);e=Ev(this.za.windowColor);c=this.za.windowOpacity;g=this.za.fontSizeIncrement||0;1!=d&&(g*=.8);pg(this.Ah,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*g)*this.j)+"px"})};f.Fj=function(){var a;this.Vb.style.fontFamily=this.Na.style.fontFamily;this.Ha.appendChild(this.Vb);a=this.Vb.offsetHeight;this.Ha.removeChild(this.Vb);return a};
f.Pe=function(){this.Na&&(0!=this.id&&(Fg(this.Ha,"100%"),Fg(this.Ha,this.Na.offsetWidth+1)),yC(this),Kw(this.Ha,this.za.isVisible))};function yC(a){ug(a.Ha,a.za.gj+"%",a.za.Ud+"%");for(var b=0;8>=b;b++)Zg(a.Ha,"anchor-point-"+b);O(a.Ha,"anchor-point-"+a.za.anchorPoint)}f.Vt=function(a){var b=[];E(a,function(a){a.k?b[b.length-1]+=a.j:b.push(a.j)});if(a.length){var c=a[a.length-1].an;c&&this.$c(zC(c))}this.Gd(b.join("\n"));this.Lc=a};
f.Gd=function(a){this.kh=a=AC(a);this.Na.innerHTML=this.kh;this.Ha.style.textAlign=LB[this.za.textAlign];1==this.za.wf?this.Na.setAttribute("dir","rtl"):this.Na.removeAttribute("dir");this.Pe()};f.toString=function(){var a="Caption window ("+this.id+"): "+this.kh,b;for(b in this.za)a+=b+" "+this.za[b]+" | ";return a};function AC(a){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>")}f.bk=function(){this.Lc=[];this.Gd("")};function BC(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=CC();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function DC(a){if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(a);if(a=a.xml)return a;throw Error("Your browser does not support serializing XML documents");}
function EC(a,b){if("undefined"!=typeof a.selectSingleNode){var c=ld(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(document.implementation.hasFeature("XPath","3.0")){var c=ld(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null}
function FC(a){if("undefined"!=typeof a.selectNodes){var b=ld(a);"undefined"!=typeof b.setProperty&&b.setProperty("SelectionLanguage","XPath");return a.selectNodes('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]')}if(document.implementation.hasFeature("XPath","3.0")){var b=ld(a),c=b.createNSResolver(b.documentElement);a=b.evaluate('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]',a,c,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var b=
[],c=a.snapshotLength,d=0;d<c;d++)b.push(a.snapshotItem(d));return b}return[]}function CC(){var a=new 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};function GC(){this.k=[];this.j=[]};function HC(a){this.o=a.startMs||0;this.A=a.priority||0;this.durationMs=a.durationMs||0}HC.prototype.kb=function(){return this.o};HC.prototype.toString=function(){return this.o+", "+this.durationMs};function IC(a){HC.call(this,a);this.windowId=a.windowId||0;this.j=a.text||"";this.k=a.params.append||!1;this.an=a.an||null}B(IC,HC);IC.prototype.toString=function(){return this.o+", "+this.durationMs+": "+this.j};
function JC(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=1E3*parseFloat(a.getAttribute("start")||0);a.getAttribute("t")&&(c=parseInt(a.getAttribute("t"),10));var d=1E3*parseFloat(a.getAttribute("dur")||0);a.getAttribute("d")&&(d=parseFloat(a.getAttribute("d")));var e=parseInt(a.getAttribute("w"),10)||0,b={startMs:c,durationMs:d,text:b,windowId:e,priority:5,params:{}};a.getAttribute("r")&&(b.params.row=parseInt(a.getAttribute("r"),10));a.getAttribute("c")&&(b.params.col=parseInt(a.getAttribute("c"),
10));a.getAttribute("append")&&(b.priority=6,b.params.append=!0);return new IC(b)}function KC(a){HC.call(this,a);this.id=a.windowId||0;this.params=a.params||{};this.Lj=a.Lj||null;this.Mj=a.Mj||null;this.j="";this.k=!1;LC(this)}B(KC,HC);function MC(a){return a.params.cF?a.params.cF:a.params.xA?2:a.k?1:0}function NC(){return new KC({startMs:0,durationMs:2147483647,params:MB})}function LC(a){a.Lj&&qa(a.params,zC(a.Lj));a.Mj&&qa(a.params,zC(a.Mj))};function OC(a){GC.call(this);this.j.push(NC());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=JC(a[b]);this.k.push(d)}}B(OC,GC);function PC(a){GC.call(this);this.o={};a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)switch(a[b].tagName){case "window":var d=a[b],e=parseInt(d.getAttribute("id"),10);t:{var g=this.o[e];if(d.getAttribute("t")||d.getAttribute("start")){var h=parseInt(d.getAttribute("t"),10);d.getAttribute("start")&&(h=1E3*parseFloat(d.getAttribute("start")));g&&(g.kb()+g.durationMs>=h?g.durationMs=h:g=null);switch(d.getAttribute("op")){case "kill":d=null;break t;case "define":g=null}g?g.B=!0:g=NC();var k=
{};qa(k,g?g.params:MB);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.dH=d.getAttribute("op"));d.getAttribute("rc")&&(k.jd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.xm=parseInt(d.getAttribute("cc"),10));d.getAttribute("ap")&&(g=parseInt(d.getAttribute("ap"),10),k.anchorPoint=0>g||8<g?7:g);d.getAttribute("ah")&&(k.gj=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(k.Ud=parseInt(d.getAttribute("av"),10));d.getAttribute("id")&&(k.id=parseInt(d.getAttribute("id"),
10)||0);d.getAttribute("vs")&&(k.isVisible=Boolean(d.getAttribute("vs")));d.getAttribute("ju")&&(k.textAlign=parseInt(d.getAttribute("ju"),10));d.getAttribute("pd")&&(k.wf=1,0==parseInt(d.getAttribute("pd"),10)&&(k.wf=0));d.getAttribute("bc")&&(k.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(k.dr=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(k.color=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(k.xA=parseInt(d.getAttribute("sd"),10));g=parseInt(d.getAttribute("d"),
10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d={startMs:h,durationMs:g,params:k,windowId:parseInt(d.getAttribute("id"),10)};d=new KC(d)}else d=null}this.o[e]=d;this.j.push(d);break;case "text":e=JC(a[b]),this.k.push(e),d=e.windowId,this.o[d]&&(d=this.o[d],e=e.j,""!=d.j&&(d.k=!0),d.j+=e)}}B(PC,GC);function QC(a){this.parent=a||null;this.j={}}function RC(a,b,c){var d=a.j[b];if(void 0!=d)return d;if(a.parent&&(void 0==c||c))return RC(a.parent,b)}function SC(a,b,c){void 0!=c&&(a.j[b]=c)}function TC(a,b,c){void 0!=c&&(a.j[b]=c)}function zC(a){var b=a.parent?zC(a.parent):{};qa(b,a.j);return b};function UC(a){GC.call(this);var b={uh:{},cn:{},fn:{}},c,d;a=a.firstChild.childNodes;for(var e=0;e<a.length;e++){var g=a[e];switch(g.tagName){case "head":c=g;break;case "body":d=g}}if(c)for(c=c.childNodes,a=0;a<c.length;a++)switch(e=c[a],e.tagName){case "pen":var g=b,h=VC(e,"p"),k=void 0;h&&g.uh[h]&&(k=g.uh[h]);g=new QC(k);SC(g,"id",VC(e,"id"));h=WC(e,"b");void 0!=h&&(g.j.bold=h);h=WC(e,"i");void 0!=h&&(g.j.italic=h);h=WC(e,"u");void 0!=h&&(g.j.underline=h);SC(g,"charEdgeStyle",XC(e,"et"));SC(g,"offset",
XC(e,"of"));SC(g,"textType",XC(e,"tt"));TC(g,"background",YC(e,"bc"));TC(g,"charEdgeColor",YC(e,"ec"));TC(g,"color",YC(e,"fc"));h=XC(e,"fs");void 0!=h&&0!=h&&SC(g,"fontFamily",h);h=VC(e,"sz");void 0!=h&&SC(g,"fontSizeIncrement",h/100-1);h=VC(e,"bo");void 0!=h&&SC(g,"backgroundOpacity",h/255);e=VC(e,"fo");void 0!=e&&SC(g,"textOpacity",e/255);e=RC(g,"id",!1);b.uh[e]=g;break;case "ws":g=ZC(b,e);e=RC(g,"id",!1);b.fn[e]=g;break;case "wp":g=$C(b,e),e=RC(g,"id",!1),b.cn[e]=g}if(d)for(c={},a=-1,d=d.childNodes,
e=0;e<d.length;e++)switch(g=d[e],g.tagName){case "w":k=aD(b,g);if(g=c[k.id])g.durationMs=k.kb()-g.kb();c[k.id]=k;this.j.push(k);break;case "p":var h=b,l=g,p={},k={startMs:VC(l,"t"),durationMs:VC(l,"d"),text:l.textContent,params:p},t=VC(l,"w");void 0!=t&&(k.windowId=t);WC(l,"a")?(k.priority=6,p.append=!0):k.priority=5;(l=VC(l,"p"))&&h.uh[l]&&(k.an=h.uh[l]);h=new IC(k);k=c[h.windowId];k||(k=aD(b,g),k.id=a--,h.windowId=k.id,this.j.push(k));g=k;k=h.j;""!=g.j&&(g.k=!0);g.j+=k;this.k.push(h)}}B(UC,GC);
function VC(a,b){var c=a.getAttribute(b);if(null!=c)return parseFloat(c)}function WC(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c}function XC(a,b){var c=VC(a,b);if(void 0!=c)return c}function YC(a,b){var c=a.getAttribute(b);if(null!=c)return HB.test(c),c}
function ZC(a,b){var c=VC(b,"ws"),d;c&&a.fn[c]&&(d=a.fn[c]);c=new QC(d);SC(c,"id",VC(b,"id"));SC(c,"modeHint",XC(b,"mh"));SC(c,"textAlign",VC(b,"ju"));SC(c,"textPrintDirection",XC(b,"pd"));SC(c,"textScrollDirection",XC(b,"sd"));SC(c,"windowBorderType",XC(b,"et"));TC(c,"windowBorderColor",YC(b,"wbc"));TC(c,"windowColor",YC(b,"wfc"));d=VC(b,"wfo");void 0!=d&&SC(c,"windowOpacity",d/255);return c}
function $C(a,b){var c=VC(b,"wp"),d;c&&a.cn[c]&&(d=a.cn[c]);c=new QC(d);SC(c,"anchorPoint",XC(b,"ap"));SC(c,"colCount",VC(b,"cc"));SC(c,"id",VC(b,"id"));SC(c,"leftPercentage",VC(b,"ah"));SC(c,"rowCount",VC(b,"rc"));SC(c,"topPercentage",VC(b,"av"));return c}function aD(a,b){var c={windowId:VC(b,"id"),startMs:VC(b,"t"),durationMs:VC(b,"d")||2147483647,Lj:$C(a,b),Mj:ZC(a,b)};return new KC(c)};function bD(a,b){GC.call(this);this.j.push(NC());for(var c=a.split(cD),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(dD))e=null;else{var h=e.split(eD),k=0,l=h[k++].match(fD);l||(l=h[k++].match(fD));l?(e=gD(l[1],g),g=gD(l[3],g),h=h.slice(k).join("\n"),e=new IC({startMs:e,durationMs:g-e,text:h,windowId:0,priority:5,params:{}})):e=null}e&&this.k.push(e)}}B(bD,GC);var dD=/NOTE/,cD=/(?:\r\n|\r|\n){2,}/,eD=/\r\n|\r|\n/,fD=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function gD(a,b){for(var c=a.split(":"),d=0,e=0;e<c.length;e++)d=60*d+parseFloat(c[e]);return 1E3*d+b};function hD(a,b){this.j=[];this.k=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new bD(a,b||0):(c=BC(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new UC(c):new PC(c):new OC(c):null:null;c&&(this.k=c.j,this.j=c.k)};function iD(){this.k=[];this.j=[];this.o=-1}function jD(a,b){return b?a.j.concat(a.k):a.j}function kD(a,b){switch(b.A){case "asr":return lD(b,a.k);default:if(b.isDefault||0>a.o)a.o=a.j.length;return lD(b,a.j)}}function lD(a,b){return G(b,x(a.equals,a))?!1:(b.push(a),!0)};function mD(a){this.gq=!!a;this.k=new iD;this.A=[]}B(mD,Q);function nD(a,b){return G(jD(a.k,!0),function(a){return a.toString()==b})}f=mD.prototype;f.Qp=function(a){var b=this.k.o,c=jD(this.k,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};f.re=function(){return null};f.seek=function(){};f.um=function(){};f.L=function(){mD.I.L.call(this);this.um()};function oD(a){mD.call(this,a.ri);this.o=null;this.A=a.Ue}B(oD,mD);f=oD.prototype;f.Pp=function(){for(var a=[],b=jD(this.k,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:d.o,srclang:d.k,src:pD(d)};d.isDefault&&(e["default"]=1);a.push(J("track",e))}return a};f.Gn=function(a,b){var c=pD(a),d=x(function(c){this.j=null;c=new hD(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=yj(c,{format:"RAW",$a:d,withCredentials:!0})};
f.qn=function(a,b,c,d){if(this.o=d||null)for(b=0;b<this.o.captionTracks.length;b++)kD(this.k,this.o.captionTracks[b]);a()};function pD(a){return a.j?qj(a.B,{tlang:a.j.languageCode}):a.B}f.re=function(){return this.o?this.o.Mm:null};f.Qp=function(){return this.o?this.o.Ys:null};f.L=function(){this.j&&this.j.abort();oD.I.L.call(this)};function qD(){this.G=1;this.C=20971520;this.B=8388608;this.j=5242880;this.pa=NaN;this.J=2;this.O=25;this.D=2097152;this.o=!1;this.k=1800;this.A=rt.auto;this.P=!0;this.liveChunkReadahead=3;this.R=Vr("xboxone");this.H=0;this.K=!1;this.N=this.F=0};function rD(){this.ga=[]}rD.prototype.contains=function(a){a=ub(this.ga,a);return 0<=a||0>a&&1==(-a-1)%2};rD.prototype.length=function(){return this.ga.length/2};function sD(a,b){Q.call(this);this.Z=b;this.D=new rD;this.A=!0;this.F=this.j=this.B=this.C=this.k=null;this.o=0}B(sD,Q);sD.prototype.L=function(){Ff(this.o);this.o=0;this.A=!0;this.j&&this.j.abort()};sD.prototype.resume=function(){this.A=!1;Ff(this.o);this.seek(this.Z.getCurrentTime());tD(this)};sD.prototype.seek=function(a){this.k=Ya(this.F.Ii(a).j)};function uD(a,b){a.C=b}function vD(a){var b;if(b=!a.A&&null!==a.k)b=a.k,b=b.j.Cg(b);return b&&!a.j&&!(a.k&&30<a.k.startTime-a.Z.getCurrentTime())}
function wD(a){var b;b=a.k;b=xD(b.j,b);if(!a.D.contains(b.j[0].A)){var c=yD(zD(b));a.j=yj(c,{format:"RAW",Lb:x(a.G,a),withCredentials:!0});a.B=b;var c=a.D,d=a.B.j[0].A,e=ub(c.ga,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ga[e-1]&&e<c.ga.length&&1==c.ga[e]-d?(mb(c.ga,e),mb(c.ga,e-1)):0<e&&1==d-c.ga[e-1]?c.ga[e-1]=d:e<c.ga.length&&1==c.ga[e]-d?c.ga[e]=d:(rb(c.ga,e,0,d),rb(c.ga,e+1,0,d)))}a.k=Ya(b.j)}
sD.prototype.G=function(a){null==a.responseText||400<=a.status||this.A||null===this.C||(a=new hD(a.responseText,1E3*this.B.j[0].startTime),this.C(a));this.j=this.B=null};function tD(a){a.o=Ef(x(function(){vD(this)&&wD(this)},a),1E3);vD(a)&&wD(a)};function AD(a,b){mD.call(this);this.o=a;this.j=new sD(new qD,b)}B(AD,mD);f=AD.prototype;f.Gn=function(a,b){uD(this.j,function(c){b(c,a)});this.j.F=this.o.j[a.k];this.j.resume()};f.qn=function(a){kD(this.k,new nt({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};f.seek=function(a){this.j.seek(a)};f.um=function(){var a=this.j;Ff(a.o);a.o=0;a.A=!0};f.L=function(){this.j.dispose();AD.I.L.call(this)};function BD(a,b){xC.call(this,a,b);this.Na.style.display="block";this.Na.style.padding="0";this.dc=[];var c=this.Na;Zg(c,"captions-text");O(c,"caption-painton-text-rows")}B(BD,xC);f=BD.prototype;f.type=1;f.qr="";f.Sn="";f.jh=!1;f.Tb=null;f.dc=null;f.Fj=function(){return this.dc[0]?this.dc[0].offsetHeight:0};function CD(a){return a.dc.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.Pe=function(){0!=this.id&&(Fg(this.Ha,"100%"),Fg(this.Ha,this.jh?CD(this):this.Tb.width));var a=Math.round(this.za.jd*this.Fj());this.Ha.style.maxHeight=a+"px";yC(this);Kw(this.Ha,this.za.isVisible)};
f.Gd=function(a){this.bk();a=AC(a);this.jh||(this.kh=a);a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=J("div",{"class":"caption-row-holder"}),e=J("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.Sn;d.appendChild(e);e.innerHTML=a[b];this.jh||(this.Na.style.height=this.Tb.height+"px",this.Na.style.width=this.Tb.width+"px",d.style.position="absolute",d.style.top=this.Tb.pr[b]+"px",d.style.left=this.Tb.or[b]+"px");this.Na.appendChild(d);this.dc.push(e)}this.Pe()};
f.bk=function(){for(var a=0,b=this.dc.length;a<b;a++){var c=$d(this.dc[a],"caption-row-holder");Gd(c)}this.dc=[]};f.$c=function(a){BD.I.$c.call(this,a);this.Sn=this.Na.style.backgroundColor;this.Na.style.backgroundColor="";a=0;for(var b=this.dc.length;a<b;a++)this.dc[a].style.backgroundColor=this.Sn};function DD(a,b){xC.call(this,a,b);this.Lc=[];this.Xd=[];this.Ub=[];this.Rf=new dn(433);this.Rf.stop();P(this.Rf,"tick",x(this.dG,this))}B(DD,xC);f=DD.prototype;f.type=2;f.eG=32;f.Ub=null;f.Yd=0;f.Xd=null;f.Rf=null;f.Pe=function(){Fg(this.Ha,"100%");var a=this.Ha.offsetWidth,a=Math.min(ED(this),a);Fg(this.Ha,a+"px");Fg(this.Ah,"100%");this.Na.style.whiteSpace="nowrap";yC(this);Kw(this.Ha,this.za.isVisible)};
f.Vt=function(a){var b=a.length;if(0>=b)this.bk();else{for(var c=0;c<b&&0<=this.Lc.indexOf(a[c]);)c++;this.Lc=this.Lc.concat(a.slice(c));FD(this)}};f.bk=function(){this.Lc=[];this.Ub=[];this.Yd=0;this.Ub=[];this.Xd=[];GD(this)};
function FD(a){if(!HD(a))if(a.Yd>=a.Lc.length)GD(a);else{var b=a.Ub.length-1;0>b&&(a.Xd.push(0),a.Yd=0,a.Ub.push(""),b=0);for(var c=a.Lc.length,d=a.Yd;d<c;d++){var e=a.Lc[d];if("\n"==e.j){a.Yd++;a.Xd[b]++;break}if(e.k||0==a.Ub[b].length)a.Ub[b]+=e.j,a.Yd++,a.Xd[b]++;else break}GD(a);d<c&&!HD(a)&&(b=a.Fj(),O(a.Na,"caption-rollup"),a.Ha.style.overflow="hidden",a.Na.style.top=-b+"px",a.Rf.start())}}function HD(a){return a.Rf.enabled||Xg(a.Na,"caption-rollup")}
f.dG=function(){this.Ha.style.overflow="visible";this.Na.style.top=0;this.Rf.stop();Zg(this.Na,"caption-rollup");this.Ub.push("");this.Xd.push(0);FD(this)};function GD(a){if(!HD(a)){for(;a.Ub.length<a.za.jd;)a.Ub.unshift(""),a.Xd.unshift(0);for(;a.Ub.length>a.za.jd;){a.Ub.shift();var b=a.Xd.shift();0<b&&(a.Yd-=b,a.Lc.splice(0,b))}a.Gd(a.Ub.join("\n"))}}
function ED(a){a.Vb.style.fontFamily=a.Na.style.fontFamily;a.Vb.style.fontSize=a.Na.style.fontSize;a.Na.appendChild(a.Vb);a.Vb.innerHTML="\u2014";var b=a.Vb.offsetWidth;a.Vb.innerHTML="&nbsp;";b=2*a.Vb.offsetWidth+b*a.eG;a.Na.removeChild(a.Vb);return b};function ID(a,b,c,d){mD.call(this,d);c||(c=nj(a).hl||"",c=c.split("_").join("-"));this.o=qj(a,{hl:c});this.B=b;this.C={};this.j=null}B(ID,mD);ID.prototype.Pp=function(){for(var a=[],b=jD(this.k,void 0),c=0;c<b.length;c++){var d=b[c],e=JD(this,d),e={kind:"subtitles",label:d.o,srclang:d.k,src:e};d.isDefault&&(e["default"]=1);a.push(J("track",e))}return a};
ID.prototype.Gn=function(a,b){var c=JD(this,a),d=x(function(c){this.j=null;c=new hD(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=yj(c,{format:"RAW",$a:d,withCredentials:!0})};
ID.prototype.qn=function(a,b,c){var d=this.o;b={type:"list",tlangs:1,v:this.B,fmts:Number(b||!1),vssids:1};this.gq&&(b.asrs=1);d=qj(d,b);b=x(function(b){this.j=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.k,h=b.getElementsByTagName("track"),k=h.length,l=0;l<k;l++){var p=h[l].getAttribute("formats"),t=c,v=h[l].getAttribute("lang_code"),A=h[l].getAttribute("lang_translated"),U=h[l].getAttribute("name"),Z=h[l].getAttribute("kind"),ea=h[l].getAttribute("id"),pa="true"==h[l].getAttribute("lang_default"),
Ne="true"==h[l].getAttribute("cantran"),he=h[l].getAttribute("vss_id"),p=new nt({formats:p,format:t,languageCode:v,languageName:A,name:U,kind:Z,id:ea,is_servable:!0,is_default:pa,is_translateable:Ne,vss_id:he});kD(d,p)}b=b.getElementsByTagName("target");d=b.length;for(h=0;h<d;h++)k=b[h].getAttribute("lang_code"),l=b[h].getAttribute("lang_translated"),p=b[h].getAttribute("lang_original"),t=b[h].getAttribute("id"),v="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:p,
id:t,is_default:v},this.C[k.languageCode]=k.languageName,this.A.push(new mt(k))}a()},this);this.j&&this.j.abort();this.j=yj(d,{format:"RAW",$a:b,withCredentials:!0})};function JD(a,b){var c=a.o,d={v:a.B,type:"track",lang:b.k,name:b.o,kind:b.A,fmt:b.C};b.j&&(d.tlang=b.j.languageCode);return c=qj(c,d)}ID.prototype.L=function(){this.j&&this.j.abort();ID.I.L.call(this)};function KD(a){Bs.call(this,a);Hf({YTP_TRANSLATE_MENU_ITEM:"Translate captions",YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_TRANSLATE_DIALOG_TITLE:"Translate...",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_LANGUAGE_OFF:"Off",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font colour",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background colour",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window colour",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"});this.Oi=!0;this.na=this.X=this.oa=!1;this.Ja=new xv(this);this.F=a.S();this.C=null;this.O=a.app.k;this.la=this.ia=null;this.ua={};this.ha=[];this.Fa=0;this.K={};this.W={};this.ma=this.xa=this.J=this.wa=!1;this.ja=new xC(99,OB);this.A=this.o=this.D=null;this.Ba=!1;this.G=this.H=
0;this.U=new $B(Ps(this));R(this,this.U);this.U.listen("click",this.Ty,this);this.N=this.ta+"-mdx";this.da=new uC(Ps(this));R(this,this.da);O(this.da.M(),"ytp-mdx-settings-button");this.da.listen("click",this.ez,this);this.B=new qC(Ps(this),x(this.Pl,this),x(this.yo,this),x(this.cz,this),x(this.dz,this),x(this.Uy,this));this.R=new cC(Ps(this));R(this,this.R);this.R.listen("change",x(this.Rd,this,!0));this.R.listen("cancel",this.Sy,this);this.R.listen("select",this.mq,this);this.V=new tC(Ps(this));
R(this,this.V);this.V.listen("change",this.Zy,this);this.V.listen("cancel",this.og,this);this.subscribe("onResize",x(this.nq,this));this.subscribe("onBackgroundChange",x(this.$y,this));this.subscribe("onTextOpacityChange",x(this.az,this));this.subscribe("onWindowOpacityChange",x(this.bz,this));this.subscribe("onFontSizeIncrease",x(this.Xy,this));this.subscribe("onFontSizeDecrease",x(this.Wy,this));this.subscribe("onCaptionsToggle",x(this.Yy,this));this.subscribe("onPlaybackAudioChange",x(this.Vy,
this))}B(KD,Bs);KD.prototype.ta="captions";KD.prototype.oc="cc";KD.prototype.zn="subtitlesModuleData";var LD={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function MD(a){return"3"!=a.F.j?!1:!!a.O.j.textTracks}function ND(a,b,c,d,e){w(a.k[b])&&(a.k[c]=d.indexOf(a.k[b]),-1==a.k[c]&&(a.k[c]=e),delete a.k[b])}f=KD.prototype;
f.create=function(){KD.I.create.call(this);this.C=this.j.getVideoData();-1==PB.indexOf(this.F.N)&&O(this.j.Ma(),"cc-international");this.k=Vb(LD);qa(this.k,Is(this,"display-settings"));ND(this,"fontFamilyOption","fontFamily",IB,LD.fontFamily);ND(this,"charEdgeStyle","charEdgeStyle",JB,LD.charEdgeStyle);this.R.setProperties(this.k);this.la=new X(["div",["ytp-player-content","ytp-subtitles-player-content"]]);this.la.Y(this.j.Ma());this.ia=this.la.M();MD(this)||(Qs(this,this.ta,this.U),Ss(this,this.B));
OD(this)&&this.load()};f.destroy=function(){this.la.detach();this.la.dispose();this.ia=null;KD.I.destroy.call(this)};function OD(a){if(a.C.captionTracks.length){var b=PD(a.j.app,1),c=b.Js;if(b.Mm||2==c||3==c)return!0}if(1==a.F.A.cc_load_policy||1==a.C.Gp||"alwayson"==a.C.Bc("yt:cc")||MD(a))return!0;b=Is(a,"module-enabled");return null!=b?!!b:"on"==a.C.Bc("yt:cc")}function QD(a){a.o.qn(x(a.ys,a),!0,MD(a)?"vtt":void 0,PD(a.j.app,1))}
f.load=function(){this.ma="alwayson"==this.C.Bc("yt:cc");this.xa="1"==this.C.A.cc_auto_caps||"1"==this.F.A.cc_auto_caps;this.B.D="1"==this.C.A.cc_contribute||"1"==this.F.A.cc_contribute;this.Mb?(Qs(this,this.N,this.da),this.B.k=this.N):(Rs(this,this.N),this.B.k=null);KD.I.load.call(this);this.oa=!0;if(this.C.Va)this.o=new AD(this.C.o,this.j),this.subscribe("seekto",this.hp,this);else{var a=this.C.A.cc_lang_pref||this.F.A.cc_lang_pref||this.C.Bc("yt:cc_default_lang")||this.F.N,a=a&&a.split("_").join("-");
this.C.captionTracks.length?this.o=new oD(this.C):this.o=new ID(this.C.kf,this.C.videoId,a,this.C.ri)}QD(this)};f.ez=function(){this.loaded||this.load()};f.unload=function(){this.Mb&&(Rs(this,this.N),this.B.k=null,RD(this,!1),this.Ej("control_subtitles_set_track"));if(MD(this)){var a;a=od("track",void 0,void 0);for(var b=0;b<a.length;b++)Gd(a[b])}else SD(this,!1),TD(this),this.unsubscribe("seekto",this.hp,this),this.o.dispose(),this.o=null,this.og();this.J=this.na=this.X=this.oa=!1;KD.I.unload.call(this)};
f.Ia=function(){};
f.ys=function(){this.oa=!1;if(MD(this))for(var a=this.O.j,b=this.o.Pp(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(a=this.V,b=this.o.A,mC(a.k,b),pC(a.k,1E3),av(a.k.template,"tabindex",1E3),EA(a.j.j,1001),b.length?a.Ca(b[0]):a.Ca(null),b=this.J||OD(this)||UD(this.F),a=jD(this.o.k,!0),0<a.length){this.Ia("Caption track list loaded, found "+a.length+" tracks.");this.na=!0;rC(this.B,a);a=!1;if(b)if(b=this.o.Qp())this.wa=!0,VD(this,b),a=!0;else if(this.X||WD(this),b=this.o.k.k,b.length&&(b=b[0].toString(),
this.J||this.xa))this.yo(b),a=!0;this.publish("publish_external_event","onCaptionsTrackListChanged");a||this.o.re()&&VD(this,this.o.re())}else this.Ia("No captions found."),this.unload()};function WD(a){a.X=!0;MD(a)||(a.Rd(),a.nq())}
f.OE=function(a,b){this.X||WD(this);this.wa&&(this.wa=!1,this.publish("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.A||!b.equals(this.A))){TD(this);this.A=b;this.Ba=hc.test(b.k);var c={trackName:b.o,trackKind:b.A};b.j?(c.trackLangCode=b.j.languageCode,c.fromLangCode=b.k):c.trackLangCode=b.k;this.log(c);if(b!=this.o.re()){this.J&&(c=pt(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=If("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.ia.appendChild(this.ja.Ha),this.ja.Gd(c),this.ja.$c(this.k,this.O.cb()),this.G||(this.G=M(x(this.zp,this),2E3)));this.publish("publish_external_event","captionschanged",ot(b));XB(this.U);var c=this.B,d=!this.ma&&0<this.o.A.length;c.C=d;oC(c.j,!d);sC(this.B,b.toString());Js(this,"module-enabled",!0);this.publish("vss_segment")}}XD(this,a.k.concat(a.j))};
function XD(a,b){a.Ia("Caption track loaded with "+b.length+" events.");var c=[];E(b,function(a){a.kb();var b;this.Fa++;b="caption"+this.Fa.toString();c.push(new qs(a.kb(),a.kb()+a.durationMs,{id:b}));this.ua[b]=a},a);a.Kd.apply(a,c)}f.Ec=function(a){if(a=YD(this,a))this.ha.push(a),this.H||(this.H=M(x(this.wi,this),0))};f.Uc=function(a){if(a=YD(this,a))lb(this.ha,a),this.H||(this.H=M(x(this.wi,this),0))};function YD(a,b){var c=b.getId();return 0!=c.indexOf("caption")?null:a.ua[c]}
f.UE=function(a){if(a instanceof KC){var b=this.K[a.id];qa(a.params,this.k);LC(a);b&&b.type!=MC(a)&&(Gd(b.Ha),delete this.K[a.id],b=null);if(!b){var b=this.K,c=a.id,d;t:{d=a.id;var e=a.params;switch(MC(a)){case 1:d=new BD(d,e);break t;case 2:d=new DD(d,e);break t;default:d=new xC(d,e)}}b=b[c]=d;c=b.Ha;ah(c,"captions-asr","asr"==this.A.A);null!=a.params.wf&&(a.params.wf=this.Ba?1:0);0==b.id?this.ia.appendChild(c):Es(this,c)}b.$c(a.params,this.O.cb());if(1==MC(a)){b.qr=a.j;b.Tb={};b.jh=!0;b.Gd(b.qr);
b.Tb.jd=b.dc.length;b.Tb.width=b.Ha.offsetWidth;b.Tb.height=b.Ha.offsetHeight;b.Tb.or=[];b.Tb.pr=[];for(a=0;a<b.Tb.jd;a++)b.Tb.pr.push(b.dc[a].offsetTop),b.Tb.or.push(b.dc[a].offsetLeft);b.jh=!1;b.Gd(b.kh)}}else b=a.windowId,this.W[b]||(this.W[b]=[]),this.W[b].push(a)};f.nq=function(){this.X&&(this.Rd(),Eb(this.K,function(a){a.Pe()},this))};
function ZD(a){var b=[];Eb(a.K,function(a){a instanceof BD&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.za.Ud-a.za.Ud});var c=$D(a.O).height,d=b[0].za.Ud;E(b,function(a){a.za.Ud=d;var b=Math.round(a.za.jd*a.Fj());d-=Math.round(b/c*100);a.Pe()},a)}}f.zp=function(){this.G=0;Gd(this.ja.Ha)};
f.wi=function(){this.H=0;this.X&&(Sb(this.W),this.ha.sort(function(a,b){return a.kb()==b.kb()?a.A-b.A:a.kb()-b.kb()}),E(this.ha,this.UE,this),Eb(this.K,function(a,b){this.W[b]?a.Vt(this.W[b]):(Gd(a.Ha),delete this.K[b])},this),ZD(this),this.D&&this.D.Pe(),this.Ia("Refreshing caption display..."))};function aE(a,b,c){if(c&&c.length){for(var d=a.k[b],e=0,g=0;g<c.length;g++)if(d==c[g].option){e=(g+1)%c.length;break}a.k[b]=c[e].option;a.Rd(!0)}}f.$y=function(){aE(this,"backgroundOpacity",RB)};
f.az=function(){aE(this,"textOpacity",SB)};f.bz=function(){aE(this,"windowOpacity",RB)};f.Wy=function(){bE(this,-1)};f.Xy=function(){bE(this,1)};function bE(a,b){var c=a.k.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.k.fontSizeIncrement=c;a.Rd()}function TD(a){if(a.A){a.A=null;Cs(a);a.ha=[];a.ua={};a.A=null;a.wi();YB(a.U);a.B.off();var b=a.B;b.C=!1;oC(b.j,!0);a.o.um()}}
function VD(a,b,c){!b||a.A&&b.equals(a.A)||(null!=c&&(a.J=c),a.Mb?(a.A=b,RD(a,!0),a.Ej("control_subtitles_set_track",ot(b)),a.X||WD(a)):(a.o.Gn(b,x(a.OE,a)),a.oa=!0,sC(a.B,b.toString())))}f.yo=function(a,b){var c=nD(this.o,a);VD(this,c,b);Us(this)};f.dz=function(){this.ma||(Fs(this,this.V),Us(this))};
f.Zy=function(){if(!this.ma){this.og();var a=this.V.getSelected();if(a){var b=this.A,c=new nt;c.k=b.k;c.D=b.D;c.o=b.o;c.A=b.A;c.isDefault=!1;c.F=b.F;c.G=b.G;c.B=b.B;c.j=a;kD(this.o.k,c)&&(a=c.toString(),rC(this.B,jD(this.o.k,!0)),sC(this.B,a));VD(this,c,!0)}}};f.Sy=function(){this.og();this.Mb&&this.A&&this.Ej("control_subtitles_set_track",ot(this.A))};f.mq=function(){delete this.k;this.k=Vb(LD);this.R.setProperties(this.k);Js(this,"display-settings",this.k);this.Rd()};
f.Rd=function(a){var b=this.O.cb();Eb(this.K,function(a){a.$c(this.k,b)},this);this.D&&this.D.$c(this.k,b);this.ja.$c(this.k,b);this.wi();n(a)&&!a||Js(this,"display-settings",this.k)};f.Ty=function(){this.J=!0;cE(this)};function cE(a){a.loaded?a.A&&a.A!=a.o.re()?a.Pl():a.ys():a.load()}
f.Pl=function(){this.G&&(N(this.G),this.zp());Js(this,"module-enabled",!1);this.publish("vss_segment");TD(this);Us(this);this.J=!1;this.Mb?(RD(this,!1),this.Ej("control_subtitles_set_track")):this.publish("publish_external_event","captionschanged",{});this.o.re()&&VD(this,this.o.re())};f.cz=function(){Fs(this,this.R);Us(this)};f.Uy=function(){Gs(this,this.F.Ab+"timedtext_video?v="+this.C.videoId);Us(this)};function dE(a){return KD.prototype.Ea(a)?new KD(a):null}
f.Xf=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.k.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.Rd()),this.k.fontSizeIncrement;case "reload":b&&QD(this);break;case "stickyLoading":this.F.xb()&&Js(this,"module-enabled",!!b);break;case "track":if(b){if(!ja(b))break;if(Rb(b)){this.Pl();break}var c=new nt(b);c.equals(this.A)||(VD(this,c,!0),sC(this.B,c.toString()))}else return this.A?ot(this.A):{};return"";case "tracklist":return this.na?F(jD(this.o.k,b&&b.includeAsr),function(a){return ot(a)}):
[];case "translationLanguages":return this.na?this.o.A:[];case "displaySettings":return b&&ja(b)&&eE(this,b),c=Vb(this.k),c.fontFamily=IB[c.fontFamily],c.charEdgeStyle=JB[c.charEdgeStyle],c;case "sampleSubtitles":SD(this,!!b)}};function SD(a,b){if(b&&!a.D){a.D=new xC(98,NB);a.ia.appendChild(a.D.Ha);var c=a.D,d=Y(Ps(a),"YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.Gd(d));a.D.$c(a.k,a.O.cb())}else!b&&a.D&&(Gd(a.D.Ha),a.D=null)}
f.Wf=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.F.xb()&&a.push("stickyLoading");return a};f.Hn=function(a,b){return a&&w(a)&&HB.test(a)?a:b};f.In=function(a,b){return ha(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.QE=function(a,b){if(a&&w(a)){var c=JB.indexOf(a);return-1!=c?c:b}return b};f.RE=function(a,b){if(a&&w(a)){var c=IB.indexOf(a);return-1!=c?c:b}return b};
f.SE=function(a,b){return ha(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var fE=null;function eE(a,b){if(b)if(Ub(b,"reset"))a.mq();else{if(!fE){var c={};c.color=a.Hn;c.textOpacity=a.In;c.background=a.Hn;c.backgroundOpacity=a.In;c.windowColor=a.Hn;c.windowOpacity=a.In;c.charEdgeStyle=a.QE;c.fontFamilyOption=a.RE;c.fontSizeIncrement=a.SE;fE=c}var c=fE,d;for(d in c)switch(d){case "fontFamilyOption":a.k.fontFamily=c[d](b[d],a.k.fontFamily);break;default:a.k[d]=c[d](b[d],a.k[d])}a.Rd(UD(a.F))}}f=KD.prototype;
f.Ea=function(a){a=a.getVideoData();var b;if(b=a.Va)b=a.o,b=!(!b||null==b.j.en);return!!(a.kf||a.captionTracks.length||b)};f.ej=function(a){Ts(this,this.B);a?(this.B.k=this.N,Qs(this,this.N,this.da)):(this.B.k=null,Rs(this,this.N));Ss(this,this.B);a?TD(this):this.loaded&&(this.unload(),this.load())};function RD(a,b){b?(XB(a.U),sC(a.B,a.A.toString())):(YB(a.U),a.B.off())}f.hp=function(){this.o.seek(this.j.getCurrentTime())};f.ah=function(){var a=this.A;return a?{cc:a.G}:null};
f.Yy=function(){this.J=!0;cE(this)};f.Vy=function(){this.C.captionTracks.length&&QD(this)};f.L=function(){this.Ja.removeAll();this.H&&(N(this.H),this.H=0);this.G&&(Ff(this.G),this.G=0);KD.I.L.call(this)};function gE(){if(void 0==Mt&&(Mt=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new Uint8Array(1);window.crypto.getRandomValues(a);Mt=!0}catch(b){}if(Mt){var a=Array(16),c=new Uint8Array(16);window.crypto.getRandomValues(c);for(var d=0;d<a.length;d++)a[d]=c[d]}else for(a=Array(16),c=0;16>c;c++){for(var d=z(),e=0;e<d%23;e++)a[c]=Math.random();a[c]=Math.floor(256*Math.random())}return a}
function hE(){for(var a=gE(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function iE(){return F(gE(),function(a){return(a&15).toString(16)}).join("")};function jE(a){Bs.call(this,a);this.ta="ypc_license_checker";this.oc="ypc_license";this.C=!1;this.B=0;this.A=!1;this.k=NaN;this.D=iE();this.o=null}B(jE,Bs);
var kE={LICENSE_DENIED_CANNOT_ACTIVATE_RENTAL:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",LICENSE_DENIED_NOT_SIGNED_IN:"YTP_ERROR_NOT_SIGNED_IN",LICENSE_DENIED_VIDEO_NOT_FOUND:"YTP_ERROR_VIDEO_NOT_FOUND",LICENSE_DENIED_NO_ACTIVE_PURCHASE_AGREEMENT:"YTP_ERROR_PURCHASE_REFUNDED",LICENSE_DENIED_PURCHASE_NOT_FOUND:"YTP_ERROR_PURCHASE_NOT_FOUND",LICENSE_DENIED_PURCHASE_EXPIRED:"YTP_ERROR_RENTAL_EXPIRED",LICENSE_DENIED_STREAMING_UNAVAILABLE:"YTP_ERROR_STREAMING_UNAVAILABLE",LICENSE_DENIED_ALREADY_PINNED_ON_A_DEVICE:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",
LICENSE_DENIED_CONCURRENT_PLAYBACK:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",LICENSE_DENIED_TOO_MANY_STREAMS_PER_USER:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",LICENSE_DENIED_TOO_MANY_STREAMS_PER_ENTITLEMENT:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",LICENSE_DENIED_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",LICENSE_DENIED_UNUSUAL_ACTIVITY:"YTP_ERROR_UNUSUAL_ACTIVITY",LICENSE_DENIED_UNKNOWN:"YTP_ERROR_RETRYABLE_ERROR",LICENSE_DENIED_PLAYBACK_CAP:"YTP_ERROR_LICENSE"};
function lE(a){return rv(a.getVideoData(),"ypc_license_checker_module")}f=jE.prototype;f.Ea=function(){return lE(this.j)};f.create=function(){jE.I.create.call(this);var a=new qs(1E3,2147483646,{priority:0});this.Kd(a);this.subscribe("heartbeatparams",this.KF,this);this.subscribe("onStateChange",this.LF,this)};function mE(a){return lE(a)?new jE(a):null}f.destroy=function(){nE(this);jE.I.destroy.call(this)};f.Ec=function(){this.C=!0;oE(this,2E3)};f.KF=function(a){this.o=a;oE(this,2E3)};
f.LF=function(a){W(a.state,2)||W(a.state,64)?nE(this):(W(a.state,1)||W(a.state,8))&&oE(this,2E3)};function pE(a){var b=a.j.getVideoData();return qE(b)?!!a.o:!!b.heartbeatToken||!!b.gb}function oE(a,b){if(!a.k&&a.C&&pE(a)&&(qE(a.j.getVideoData())||!UD(a.j.S()))){var c=b;void 0==c&&(c=a.A?(c=a.j.getVideoData().Mh)?c:a.o?1E3*a.o.j:6E4:1E3);a.k=M(x(a.pz,a),c)}}
f.pz=function(){var a,b,c;c=this.j.S().Ab;var d=this.j.getVideoData();pE(this)?(qE(d)?(b="GET",a={},c=Ee(this.o.url,{request_id:iE()}),d.F&&(c=Ee(c,{vvt:d.F})),d.C&&(c=Ee(c,{access_token:d.C}))):d.heartbeatToken?(b="GET",a={},c=Ee(c+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken}),d.F&&(c=Ee(c,{vvt:d.F})),d.C&&(c=Ee(c,{access_token:d.C}))):(b="POST",a={video_id:d.videoId,player_id:this.D,request_id:iE(),purchase_id:d.purchaseId,version:"4",player_time_seconds:this.j.getCurrentTime().toString(),
gid:d.Jo,ypc_token:d.gb},d.F&&(a.vvt=d.F),d.C&&(a.access_token=d.C),c+="ypc_license_server"),c=Ee(c,{cpn:d.ya}),yj(c,{format:"RAW",method:b,yb:a,timeout:3E4,$a:x(this.hC,this),onError:x(this.gC,this),te:x(this.iC,this),withCredentials:!0})):nE(this)};
f.hC=function(a){if(this.k){a=a.responseText;var b;t:if(b=a,this.j.getVideoData().heartbeatToken)b=Yf(b),b="ok"==b.status?0:"stop"==b.status?1:-1;else{var c=b.match(rE);if(c){if("0"!=c[1]){b=1;break t}b=c[3]}b=b in kE?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?sE(this,"decode"):(this.B=0,this.k=NaN,1==b?(this.A=!1,b="YTP_ERROR_LICENSE",this.j.getVideoData().heartbeatToken?a=Yf(a).reason||If(b):((c=a.match(rE))?(a=parseInt(c[1],10))&&(b=Xs(a)):a in kE&&(b=kE[a]),a=If(b)),sv(this.j.app.o,"heartbeat",
a,void 0)):(this.A=!0,oE(this)))}};f.gC=function(a){sE(this,"net-"+a.status)};f.iC=function(){sE(this,"timeout")};function sE(a,b){if(a.k){a.log({errorType:b});a.k=NaN;var c=++a.B,d=a.j.getVideoData().kp;c>(d?d:a.o?a.o.k:5)?(c=If("YTP_ERROR_LICENSE"),sv(a.j.app.o,"heartbeat",c,void 0)):oE(a)}}var rE=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function nE(a){a.B=0;a.k&&(N(a.k),a.k=NaN);a.A=!1};function tE(a){X.call(this,a);this.X=new S;R(this,this.X)}B(tE,X);tE.prototype.subscribe=function(a,b,c){return this.X.subscribe(a,b,c)};tE.prototype.unsubscribe=function(a,b,c){return this.X.unsubscribe(a,b,c)};tE.prototype.Kb=function(a){return this.X.Kb(a)};tE.prototype.publish=function(a,b){return this.X.publish.apply(this.X,arguments)};function uE(a,b,c){tE.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.k=a;this.Oa=b;this.B=!1}B(uE,tE);uE.prototype.create=function(){this.B=!0};uE.prototype.destroy=function(){this.B=!1};uE.prototype.Qi=function(){return!1};function vE(){X.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}B(vE,X);function wE(){X.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"]]])}B(wE,X);function xE(a,b){tE.call(this,b);this.G=a;this.videoId=null}B(xE,tE);
xE.prototype.pi=function(a,b){this.videoId=a?a.id||a.video_id:"";ah(this.element,"ytp-suggestion-set",!!this.videoId);if(this.videoId){var c,d=a.list?a.playlist_iurlhq:a.iurlhq_webp||a.iurlhq,e=a.list?a.playlist_iurlmq:a.iurlmq_webp||a.iurlmq;b&&d?c=d:!b&&e?c=e:c=fB(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:this.videoId,b?"hqdefault.jpg":"mqdefault.jpg");d=Vb(a);d.playlist_length=d.playlist_length||0;d.title=d.title||d.playlist_title;d.author=d.author||d.playlist_author;d.image=c;d.background=
"background-image: url("+c+")";d.duration=gv(a.length_seconds);d.episodic_title=d.title;d.episodic_index=parseInt(d.index,10)+1;d.episodic_length=d.playlist_length;this.template.update(d)}};function yE(a){var b=["div","ytp-watch-next-card",["div","ytp-watch-next-content",["div","ytp-watch-next-header",Y(0,"YTP_WATCH_NEXT")],["img","ytp-watch-next-thumbnail",{src:"{{image}}"}],["div","ytp-watch-next-title","{{title}}"],["div","ytp-watch-next-views","{{view_count_string}}"],["div","ytp-watch-next-uploaded","{{uploaded}}"]]];xE.call(this,a,b)}B(yE,xE);function zE(a,b,c){uE.call(this,a,b,"subscribecard-endscreen");this.A=new vE;R(this,this.A);this.C=new Wu(["div","ytp-channel-curtain"]);R(this,this.C);this.o=new wE;R(this,this.o);(this.j=c?new yE(this.k.app.k.k):null)&&R(this,this.j);this.hide()}B(zE,uE);
zE.prototype.create=function(){zE.I.create.call(this);Ed(this.M());this.A.Y(this.M());this.C.Y(this.M());this.o.Y(this.M());var a=this.k.getVideoData().videoId,b=this.D,c=this.k.S().Wa,d=this.k.S().pageId;a&&(a={video_id:a,html5:1,page_subscribe:1},c&&(a.authuser=c),d&&(a.pageid=d),yj("/get_video_metadata",{method:"GET",onError:u,$a:b,ze:a,context:this}))};
zE.prototype.D=function(a,b){if(this.B){var c=b.user_info,d=this.k.getVideoData();d&&(d.cH=c.external_id);d=c.channel_banner_url;Pf(d)||(d="");var e=c.channel_logo_url||c.image_url;Pf(e)||(e="");av(this.A.template,"banner",d);av(this.o.template,"image",e);av(this.o.template,"author",c.channel_title||c.username);this.j&&b.watch_next&&(this.j.pi(b.watch_next),this.j.Y(this.M()));c=c.subscription_button_html;this.o.template.j["html5-subscribe-button-container"].innerHTML=c?c:""}};function AE(a,b){return Sh&&BE(a,"947233")||b&&BE(a,"947243")}function BE(a,b){return H(a.experiments.experimentIds,b)}function CE(a,b){return db(sb(arguments,1),y(H,a.experiments.experimentIds))};function DE(a,b){var c=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",Y(0,"YTP_AD_INTERRUPT_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",Y(0,"YTP_ADVERTISEMENT")],["div","video-ad-time-left"],["div",["html5-progress-bar","html5-stop-propagation"],["div",["html5-ad-progress-list","html5-progress-list"]]]],["div","ad-container"]];X.call(this,c);this.Z=b}B(DE,X);DE.prototype.o=null;DE.prototype.k=null;DE.prototype.j=null;
function EE(a){if(!a.o&&(a.o=a.template.j["ad-container"],a.Z.S().B)){var b=BE(a.Z.S(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";O(a.o,b)}return a.o}function FE(a){a.j&&(a.Z.S().B?(Zg(a.j,"ad-video"),GE(a.Z.app,a.j),a.j=null):(Gd(a.j),gs(a.j)))}
function HE(a){if(!a.k){if(a.Z.S().Mc){var b=Ad("button");O(b,"video-click-tracking");Dd(b,If("YTP_VISIT_ADVERTISERS_SITE"));var c=Ad("div");O(c,"video-click-tracking-container");c.appendChild(b);EE(a).appendChild(c)}else b=Ad("div"),Yg(b,["video-click-tracking","ad-video"]),EE(a).appendChild(b);a.k=b}return a.k}DE.prototype.L=function(){DE.I.L.call(this);this.j&&(GE(this.Z.app,this.j),this.j=null);FE(this);Ed(EE(this));Ed(HE(this));this.k=this.o=null;delete this.Z};
function IE(a){if(!a.j){var b;b=a.Z.app;if(b.j.B){var c=wg(b.B),d=Hg(b.B);b.W=new hg(c.x,c.y,d.width,d.height);JE(b.C);hs(b.B,1);gs(b.B);b=b.B}else b=KE.getTag(void 0);a.j=b;Yg(a.j,["video-stream","ad-video"])}return a.j};function LE(a,b){this.type=a||"";this.id=b||""}function ME(a){return new LE(a.substr(0,2),a.substr(2))}LE.prototype.toString=function(){return this.type+this.id};function NE(a,b){X.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.j=0;this.B=null}B(NE,X);NE.prototype.o=function(a,b){N(this.j);this.context&&(this.j=dv(x(this.o,this,a,b),b),a.call(this,new Date-this.B))};NE.prototype.L=function(){N(this.j);this.context=null;NE.I.L.call(this)};function OE(a,b){NE.call(this,2*(a+2),2*(a+2));this.D=a;this.k=b;this.C=this.width/2;this.A=this.height/2}B(OE,NE);var PE=3*Math.PI/2,QE=2*Math.PI;function RE(a,b){var c=a.app.k.k,d=["span","videowall-still-info-upnext",Y(0,"YTP_PLAYLIST_UP_NEXT")],e=["span","videowall-still-info-paused",Y(0,"YTP_AUTOPLAY_PAUSED")],g=[["div",["videowall-still-listlabel-episodic","videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",Y(0,"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","videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],Y(0,"YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix","videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],Y(0,"YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]];xE.call(this,c,
["a","videowall-still",{tabIndex:0,style:"{{background}}",href:"{{linkurl}}"},["span","videowall-still-featured-label",Y(0,"YTP_FEATURED")],["span","videowall-still-info",["span","videowall-still-info-bg",["span","videowall-still-info-content",d,["span","videowall-still-info-title","{{title}}"],["span","videowall-still-info-author","{{author}}"],["span","videowall-still-info-duration","{{duration}}"],["span","videowall-still-info-cancel"]].concat([e])]]].concat(g));this.Z=a;this.H=b;this.D={};this.A=
this.B=null;this.C=0;this.k=this.o=this.j=null;this.listen("click",this.ny);this.listen("keypress",this.oy)}B(RE,xE);f=RE.prototype;
f.pi=function(a,b){RE.I.pi.call(this,a,b);this.D=a.session_data?kj(a.session_data,"&"):null;if((this.B=a.endscreen_autoplay_session_data?kj(a.endscreen_autoplay_session_data,"&"):null)&&!this.k){this.k=new Wu(["div","videowall-still-listlabel-autoplay",["div","videowall-still-listlabel-autoplay-label",["span","videowall-still-listlabel-autoplay-label-message",Y(0,"YTP_AUTOPLAY")]," ",["span","videowall-still-listlabel-autoplay-countdown","{{autoplay}}"]]]);R(this,this.k);this.k.Y(this.element);var c=
new CA(this.G);R(this,c);c.listen("click",this.Bp,this);c.Ya(Y(0,"YTP_CANCEL"));this.Z.S().experiments.j?(c.Y(this.template.j["videowall-still-info-cancel"]),DA(c,"videowall-still-info-cancel-button"),EA(c,7100)):(c.Y(this.k.j["videowall-still-listlabel-autoplay"],0),DA(c,"videowall-still-listlabel-autoplay-cancel"));c.ra(Y(0,"YTP_CANCEL"));c=new CA(this.G);R(this,c);c.listen("click",this.Bp,this);c.Y(this.template.j["videowall-still-info-bg"],0);DA(c,"videowall-still-info-close");this.Z.S().experiments.j?
this.o=new OE(44,48):this.o=new OE(40,35);R(this,this.o);O(this.o.M(),"autoplay-play-canvas");this.o.Y(this.element)}this.A=a.list;av(this.template,"linkurl",SE(this.Z.S(),this.videoId,this.A));var d=c=!1,e=!1;"1"!=a.is_episodic?this.A&&"RD"==ME(this.A).type?e=!0:this.A&&(c=!0):d=!0;ah(this.element,"videowall-still-featured",!!a.featured);ah(this.element,"videowall-still-list",c);ah(this.element,"videowall-still-episodic",d);ah(this.element,"videowall-still-mix",e)};
f.select=function(a){TE(this);UE(this.Z.app,this.videoId,a?this.B:this.D,this.A||void 0,void 0)};
f.xn=function(){var a=z()-this.C,b=this.o,c=a/1E4;b.context.clearRect(0,0,b.width,b.height);b.context.beginPath();b.context.arc(b.C,b.A,b.D+2,0,QE);b.context.fillStyle="rgba(0, 0, 0, 0.6)";b.context.fill();var d=Math.sqrt(3)/2*b.k;b.context.save();b.context.fillStyle="#fff";b.context.translate(b.C-b.k/3,b.A);b.context.beginPath();b.context.lineTo(0,d/2);b.context.lineTo(b.k/1.25,0);b.context.lineTo(0,-d/2);b.context.closePath();b.context.fill();b.context.restore();b.context.beginPath();b.context.arc(b.C,
b.A,b.D,PE,c*QE+PE,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();b=Math.max(1E4-a,0);av(this.k,"autoplay",If("YTP_AUTOPLAY_COUNTDOWN_2",{SECONDS_LEFT:Math.ceil(b/1E3)}));1E4<=a?144E5<VE(this.Z.S())?TE(this):this.select(!0):this.j&&this.j.start()};function WE(a){a.j||(a.C=z(),a.j=new zv(a.xn,50,a),R(a,a.j),a.xn());O(a.element,"videowall-still-autoplay");Zg(a.element,"videowall-still-autoplay-paused")}function TE(a){a.j&&(qi(a.j),a.j=null)}
function XE(a){TE(a);a.C=z();a.xn();Yg(a.element,["videowall-still-autoplay","videowall-still-autoplay-paused"])}f.Bp=function(a){a.preventDefault();YE(this)&&(this.H.log({cancelButtonClick:"1"}),this.publish("autonavchangerequest",1))};function ZE(a){YE(a)&&(TE(a),ah(a.element,"videowall-still-autoplay",!1),a.publish("autonavchangerequest",1))}function YE(a){return Xg(a.element,"videowall-still-autoplay")}f.ny=function(a){!1!==a.Jb.returnValue&&iv(a)&&(this.select(!1),a.preventDefault())};
f.oy=function(a){switch(a.keyCode){case 13:case 32:!1!==a.Jb.returnValue&&(this.select(),a.preventDefault())}};f.L=function(){ZE(this);RE.I.L.call(this)};function $E(a,b,c){uE.call(this,a,b,"videowall-endscreen");this.H=c;this.j=[];this.A=this.o=null;this.C=!1;this.G=new zv(y(O,this.element,"ytp-animate-tiles"),0);R(this,this.G);this.D=new Wu(["div","ytp-endscreen-content"]);R(this,this.D);this.D.Y(this.element);this.hide()}B($E,uE);$E.C=96;$E.B=54;$E.k=1;$E.j=2;f=$E.prototype;
f.create=function(){$E.I.create.call(this);var a=this.k.getVideoData();a&&(this.o=a.N);this.mf();this.Oa.subscribe("onResize",this.mf,this);this.Oa.subscribe("videodatachange",this.N,this);this.Oa.subscribe("autonavchange",this.K,this)};f.destroy=function(){this.Oa.unsubscribe("onResize",this.mf,this);this.Oa.unsubscribe("videodatachange",this.N,this);si(this.j);this.o=[];this.j=[];$E.I.destroy.call(this)};f.Qi=function(){return 1!=this.k.getVideoData().Ld};
function aF(a){a=a.k.S();return a.experiments.o&&"detailpage"==a.ca}function bF(a){return aF(a)&&a.k.S().experiments.j&&a.Qi()&&!a.A}
f.show=function(){$E.I.show.call(this);this.G.start();if(this.C||this.A&&this.A!=this.k.getVideoData().ya)this.A=null,this.C=!1,this.mf();var a=!this.A&&!!this.j[0].B&&aF(this)&&this.Qi();aF(this)&&this.H.log({cancelButtonShow:a?"1":"0",state:this.Qi()?"enabled":"disabled"});a?(2==this.k.getVideoData().Ld?WE(this.j[0]):3==this.k.getVideoData().Ld&&XE(this.j[0]),this.j[0].subscribe("autonavchangerequest",this.J,this)):this.A=this.k.getVideoData().ya};
f.hide=function(){$E.I.hide.call(this);this.B&&(this.j[0].unsubscribe("autonavchangerequest",this.J,this),ZE(this.j[0]))};
f.mf=function(){if(this.o&&this.o.length){var a=this.element,b;t:{if(Xg(this.k.Ma(),"ad-showing")&&(b=pd("ad-container"))){b=Hg(b).height+20;break t}b=0}pg(a,"marginBottom",b+"px");var a=Hg(this.element),c=$E.C,d=$E.B,e=a.width/a.height,g=c/d,h=b=0,k=Math.max(a.width/c,2),l=Math.max(a.height/d,2);bF(this)&&(k=l=Math.min(k,l));for(var p=this.o.length,t=Math.pow($E.j,2),v=p*t,A=cF(this,0,l,k),U=cF(this,1,l,k),v=v+(Math.pow(A,2)-t),v=v+(Math.pow(U,2)-t);0<v&&(b<k||h<l);){var Z=b/$E.j,ea=h/$E.j,pa=b<=
k-$E.j&&v>=ea*t,Ne=h<=l-$E.j&&v>=Z*t;if(Z/ea*g>e&&Ne)v-=Z*t,h+=$E.j;else if(pa)v-=ea*t,b+=$E.j;else if(Ne)v-=Z*t,h+=$E.j;else break}g=!1;k=$E.j+A;v>=3*t&&6>=p*t-v&&(h>=k||b>=k)&&U<=$E.j&&(g=!0);c*=b;p=h*d;d=1;d=c/p<e?a.height/p:a.width/c;d=Math.min(d,$E.A);c*=d;p*=d;c*=Fc(a.width/c||1,1,$E.o);p*=Fc(a.height/p||1,1,$E.o);c=Math.floor(Math.min(a.width,c));p=Math.floor(Math.min(a.height,p));bF(this)&&(c=a.width);e=this.D.M();Eg(e,c,p);pg(e,{marginLeft:c/-2+"px",marginTop:p/-2+"px"});d=c+$E.k;t=p+$E.k;
c=0;v=!1;for(k=0;k<b;k++)for(l=0;l<h;l++)if(ea=U>$E.j&&1<=c&&!v?c+1:c,Z=0,g&&k>=b-$E.j&&l>=h-$E.j?Z=1:0==l%$E.j&&0==k%$E.j&&(l<A&&k<A?0==l&&0==k&&(Z=A):U>$E.j&&l>=h-U&&k>=b-U?l==h-U&&k==b-U&&(v=!0,ea=1,Z=U):Z=$E.j),0!=Z){p=this.j[c];p||(p=new RE(this.k,this.H),this.j[c]=p,pa=p.M(),e.appendChild(pa));p.pi(this.o[ea],2<Z);var ea=Math.floor(t*l/h),pa=Math.floor(d*k/b),Ne=Math.floor(t*(l+Z)/h)-ea-$E.k,he=Math.floor(d*(k+Z)/b)-pa-$E.k;bF(this)&&(pa=0,he=a.width);ug(p.M(),pa,ea);Eg(p.M(),he,Ne);pg(p.M(),
"transitionDelay",(l+k)/50+"s");ah(p.M(),"videowall-still-mini",1==Z);ah(p.M(),"videowall-still-takeover",0==c&&bF(this));c++}for(a=this.j.length-1;a>=c;a--)p=this.j[a],Gd(p.M()),qi(p);this.j.length=c}};$E.A=1.42;$E.o=1.21;$E.prototype.N=function(){var a=this.k.getVideoData().N;this.o!=a&&(this.o=a,this.mf())};$E.prototype.K=function(a){var b=this.j[0]&&YE(this.j[0]);1==a?(this.C=!1,this.A=this.k.getVideoData().ya,b&&ZE(this.j[0]),this.j[0]&&this.mf()):(this.C=!0,b&&(2==a?WE(this.j[0]):3==a&&XE(this.j[0])))};
$E.prototype.J=function(a){this.K(a);this.publish("autonavchangerequest",a)};function cF(a,b,c,d){var e=a.k.S().experiments,g=a.o.length;return 0==b&&bF(a)?$E.j*Math.floor(Math.min(c,d)/$E.j):0==b&&aF(a)&&!e.j&&c>=2*$E.j&&d>2*$E.j||0==b&&c>=3*$E.j&&d>=3*$E.j&&1<=g&&1==a.o[0].episodic?2*$E.j:$E.j};function dF(a){Bs.call(this,a);Hf({});this.ta="endscreen";this.oc="end";this.k=null;var b=a.S();eF(a)?this.k=new $E(this.j,this.P,this):b.qg?(a=b.experiments.F,b=new zE(this.j,this.P,a),a&&P(b.j.M(),"click",x(this.lC,this)),this.k=b):this.k=new uE(this.j,this.P);this.k.Y(this.j.Ma())}B(dF,Bs);function fF(a){return gF(a.S())&&1==Mq(a.app).getPlayerType()}function eF(a){a=a.S();return a.yc&&!a.qg}f=dF.prototype;f.Ea=function(a){return fF(a)};
f.create=function(){dF.I.create.call(this);hF(this);this.j.getVideoData().subscribe("dataupdated",this.cs,this)};f.destroy=function(){this.j.getVideoData().unsubscribe("dataupdated",this.cs,this);Cs(this);this.k.B&&this.k.destroy();dF.I.destroy.call(this)};f.load=function(){dF.I.load.call(this);this.k.show();if(this.j.S().qg&&.01>Math.random()){var a=this.j.S().experiments.F;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){dF.I.unload.call(this);this.k.hide()};
f.Ec=function(a){dF.I.Ec.call(this,a);var b=this.j.getVideoData(),c=!eF(this.j)||!(!b.N||!b.N.length);this.j.S();var b=rv(b,"ypc_module"),d=iF(this.j.app);!c||b||d||(this.k.B||this.k.create(),"load"==a.getId()&&this.load())};f.Uc=function(a){"load"==a.getId()&&this.loaded&&this.unload();dF.I.Uc.call(this,a)};f.cs=function(){Cs(this);hF(this)};f.lC=function(a){var b=this.k.j.videoId,b=SE(this.j.S(),b,null);Gs(this,b,a.ctrlKey)};
function hF(a){var b=Math.max(1E3*(a.j.getVideoData().lengthSeconds-10),0),b=new qs(b,2147483647,{id:"preload"}),c=new qs(2147483647,2147483647,{id:"load",priority:6});a.Kd(b,c)}function jF(a){return fF(a)?new dF(a):null};function kF(){X.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}B(kF,X);kF.prototype.Ui=function(a){av(this.template,"index",a+1)};function lF(a){WB.call(this,a,"ytp-button-expand",Y(0,"YTP_ST_EXPAND"),"ytp-button-collapse",Y(0,"YTP_ST_COLLAPSE"));EA(this,3050);this.element.setAttribute("aria-haspopup",!0);this.ra([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Y(0,"YTP_PLAYLIST")]])}B(lF,WB);function mF(a){X.call(this,["div","ytp-playlist-tray-controller"]);this.j=new lF(a);this.j.Y(this.template.M());R(this,this.j);this.k=new kF;this.k.Y(this.template.M());R(this,this.k)}B(mF,X);function nF(a,b){var c=oF(a,"default.jpg");X.call(this,["div","ytp-playlist-tray-item",{tabIndex:3910,"aria-label":a.title,role:"menuitemradio"},["span","ytp-playlist-tray-item-index",b+1],["span","ytp-playlist-tray-item-now-playing","\u25b6"],["img","ytp-playlist-tray-item-thumbnail",{src:c}],["span","ytp-playlist-tray-item-title",a.title],["span","ytp-playlist-tray-item-author",a.author]]);this.j=b;this.listen("keypress",this.k)}B(nF,X);
nF.prototype.Ui=function(a){a=this.j==a;ah(this.element,"ytp-playlist-tray-item-current",a);this.element.setAttribute("aria-checked",a)};nF.prototype.k=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.Sb("click")};function pF(){tE.call(this,["div","ytp-playlist-tray-tray",{role:"menu"}]);this.j=null;this.k=[]}B(pF,tE);function qF(a,b){a.j&&a.j.unsubscribe("shuffle",a.o,a);a.j=b;a.j.subscribe("shuffle",a.o,a);a.o()}pF.prototype.o=function(){si(this.k);this.k=[];Ed(this.element);for(var a=0;a<=this.j.uc-1;++a){var b=dr(this.j,a);b&&(b=new nF(b,a),b.Ui(this.j.Ua),this.k.push(b),b.listen("click",x(this.A,this,a)),b.Y(this.element))}};pF.prototype.A=function(a){this.publish("playvideoat",a)};
pF.prototype.L=function(){si(this.k);this.k=[];Ed(this.element);pF.I.L.call(this)};function rF(a){Bs.call(this,a);var b=a.Ma();this.F=a.app.k.k;this.C=!1;this.o=this.A=null;this.D=pd("ytp-button-playlist",b);P(this.D,"click",x(this.vp,this));this.k=this.B=null}B(rF,Bs);f=rF.prototype;f.ta="playlist";
f.create=function(){rF.I.create.call(this);sF(this,this.j.fd());this.B=new Wu(["div",["ytp-playlist-tray-container","ytp-player-content"]]);this.B.Y(this.j.Ma());this.o=new pF;this.o.subscribe("playvideoat",this.kq,this);this.o.Y(this.B.M(),0);this.k=new mF(this.F);this.k.Y(pd("html5-title",void 0),0);this.k.j.listen("click",this.vp,this);this.subscribe("fullscreentoggled",this.yq,this);this.subscribe("videodatachange",this.Aq,this);this.subscribe("clearvideooverlays",this.zq,this);this.Bi()};
f.Bi=function(){var a=this.j.wr(),b=this.k.k;null!=a?b.show():b.hide();this.k.k.Ui(a);a=this.j.fd();av(this.k.k.template,"length",a.uc)};f.destroy=function(){rF.I.destroy.call(this);sF(this,null);this.unsubscribe("fullscreentoggled",this.yq,this);this.unsubscribe("videodatachange",this.Aq,this);this.unsubscribe("clearvideooverlays",this.zq,this);Gd(this.B.M());this.o.dispose();this.o=null;this.B.dispose();this.B=null;Gd(this.k.M());this.k.dispose();this.k=null};
f.load=function(){this.publish("command_clear_video_overlays",!0);rF.I.load.call(this);this.C||(qF(this.o,this.A),this.C=!0);for(var a=this.o,b=0;b<a.k.length;b++)a.k[b].Ui(a.j.Ua);XB(this.k.j)};f.unload=function(){rF.I.unload.call(this);this.C=!1;YB(this.k.j)};f.zq=function(){this.loaded&&this.unload()};f.kq=function(a){this.j.Im(a);this.publish("command_clear_video_overlays",!1)};f.vp=function(){this.loaded?this.publish("command_clear_video_overlays",!1):this.load()};
f.yq=function(a){var b=this.j.S().ca;this.loaded&&!a&&"detailpage"==b&&this.publish("command_clear_video_overlays",!1)};f.Aq=function(){sF(this,this.j.fd());this.C&&qF(this.o,this.A);this.Bi()};function sF(a,b){a.A&&a.A.unsubscribe("shuffle",a.Bi,a);a.A=b;a.A&&a.A.subscribe("shuffle",a.Bi,a)}rF.Ea=function(a){return!!a.fd()&&!0};rF.prototype.Ea=function(a){return rF.Ea(a)};rF.prototype.Hm=function(a){return!rF.Ea(a)};rF.j=function(a){return rF.Ea(a)?new rF(a):null};
rF.prototype.L=function(){this.o.unsubscribe("playvideoat",this.kq,this);zh(this.D);rF.I.L.call(this)};function tF(a,b){Q.call(this);this.j=a;this.k=!!b}B(tF,Q);function uF(a,b,c){if(c)if(a.k)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.j&&(d=vF(a.j));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),yj(d,{format:"JSON",method:"GET",context:a,timeout:600,$a:function(a,d){c(d);wF("success",{v:b})},onError:function(){wF("error",{v:b});c({})},te:function(){wF("timeout",{v:b});xF("__notfound__");c({})}})):c({})}}
function wF(a,b){var c={a:"spacecast",module:"cache",request:"meta",status:a};Zb(c,b);Ox(Ce(c))}tF.prototype.L=function(){this.j=null;tF.I.L.call(this)};function yF(a){Q.call(this);(this.j=a)&&xF("http://"+a)}B(yF,Q);function vF(a){var b;(b=(b=Yi("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.j?"http://"+a.j:null;return b}function xF(a){var b=Yi("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;Wi("yt-spacecast-uri",b)};function zF(){Q.call(this);this.k=this.j=null}B(zF,Q);ba(zF);zF.prototype.init=function(a){this.j||(this.j=new yF(a||null),this.k=new tF(this.j))};zF.prototype.L=function(){this.k&&(this.k.dispose(),this.k=null);this.j&&(this.j.dispose(),this.j=null);zF.I.L.call(this);delete zF.Eb};function AF(a){Bs.call(this,a);this.oc=this.ta="spacecast";this.k=null}B(AF,Bs);f=AF.prototype;f.Ea=function(){return!!this.j.getVideoData().Xa};function BF(a){return a.getVideoData().Xa?new AF(a):null}f.create=function(){AF.I.create.call(this);var a=this.j.getVideoData().Xa,b=zF.getInstance();b&&b.init(a);this.k=b;this.load()};f.destroy=function(){AF.I.destroy.call(this);this.k=null};
f.load=function(){AF.I.load.call(this);var a=this.j.getVideoData().videoId,b=this.k.k,c=z(),c=x(this.NC,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),wF("prefetch",{v:a})):uF(b,a,c)};f.NC=function(a,b,c){b=z()-b;var d=0;if(c){var e=c.id;c=c.fmt_list;if(e&&c){var g={};E(c,function(a){a.itag&&(g[a.itag.toString()]=!0)});if(c=CF(this,vF(this.k.j),e,g))d=this.j.getVideoData(),d.$=c,DF(d),this.j.Gm("auto"),d=1}}Ds(this);Ox(Ce({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))};
function CF(a,b,c,d){if(!b)return null;a=a.j.getVideoData();a=EF(a.ge);a=bb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=oj(b)||"",g=Number(ue(b)[4]||null)||null;return F(a,function(a){var b=L(L(Me(Le(Ke(ff(a.url),"http"),e),g),"orig_host",pj(a.url)),"scid",c);a.url=b.toString();return Ce(a)}).join(",")};function FF(){var a=Kc,b;if(b=Pt())t:{if(navigator.plugins&&0<navigator.plugins.length)for(b=0;b<navigator.plugins.length;b++)if(0<=navigator.plugins[b].name.indexOf("NVIDIA 3D Vision")){b=!0;break t}b=!1}if(b)t:{var c=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);if(c&&1<c.length&&4<=c[1]){c=document.createElement("embed");c.setAttribute("id","NvImageDetectionFFID");c.setAttribute("style","visibility: hidden");c.setAttribute("width",25);c.setAttribute("height",25);c.setAttribute("type","image/jps");
Dd(document.documentElement,c);c=md("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break t}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function GF(a){BA.call(this);this.label=Y(0,"YTP_THREED_SHORT");this.element=new FA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);R(this,this.element);this.element.Ya(this.label);HA(this.element,2100);this.priority=10;this.B=!0;this.Ca(1)}B(GF,BA);GF.prototype.G=function(){this.element.Sb("select")};GF.prototype.getSelected=function(){return this.element.getSelected()};GF.prototype.Ca=function(a){this.element.Ca(a)};function HF(a){X.call(this,["span"]);this.element.innerHTML=a}B(HF,X);function IF(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.j=new CA(a,"ytp-dialog-button",b);R(this,this.j);this.j.ra(b);b=Y(0,"YTP_CLOSE");this.k=new CA(a,"ytp-dialog-button",b);this.k.ra(b);R(this,this.k);this.template.update({content:new HF(Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE",
{BEGIN_LINK:'<a href="//support.google.com/youtube/bin/answer.py?answer=1229982">',END_LINK:"</a>"})),buttons:[this.j,this.k]})}B(IF,aC);function JF(a){Bs.call(this,a);Hf({YTP_THREED_HTML5_WARNING_DIALOG_TITLE:"No HTML5 3D hardware detected",YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE:"Get $BEGIN_LINKhelp setting up HTML5 3D$END_LINK, or change 3D viewing modes.",YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE:"Change 3D viewing mode"});this.k=new GF(Ps(this));R(this,this.k);this.k.Ca(1);this.k.listen("change",this.HB,this);this.k.listen("select",this.IB,this);this.o=new IF(Ps(this));R(this,this.o);this.o.j.listen("click",this.Lr,this);this.o.k.listen("click",
this.og,this)}B(JF,Bs);f=JF.prototype;f.zn="threeDModuleData";f.ta="threed";f.oc="threed";f.create=function(){KF(this.j.app,void 0);Ss(this,this.k);JF.I.create.call(this)};f.destroy=function(){Ts(this,this.k);KF(this.j.app,!0);JF.I.destroy.call(this)};function LF(a){return JF.prototype.Ea(a)?new JF(a):null}f.Ea=function(a){a=a.getVideoData();return FF()?!!a.ma||!!a.xs:!1};
function MF(a,b){if(a.j.getVideoData().$g!=b)if(Fs(a),FF()){var c=a.j.app,d=Mq(c);d.j.j&&d.j.j.j||(d.j.$g=!d.j.$g,DF(d.j),Oq(d,"r"));KF(c)}else b&&(Fs(a,a.o),a.k.Ca(1),Us(a))}f.Lr=function(){Gs(this,"/select_3d_mode?video_id="+this.j.getVideoData().videoId)};f.HB=function(){0==this.k.getSelected()?MF(this,!0):MF(this,!1)};f.IB=function(){Us(this);this.Lr()};function NF(a){BA.call(this);this.j=2;this.label=Y(0,"YTP_THREED_SHORT");this.menu=new lC(a,x(this.o,this),x(this.C,this));R(this,this.menu);this.element=new gC(a,Y(0,"YTP_WEBGL_ANAGLYPH"),this.menu);R(this,this.element);iC(this.element,100);mC(this.menu,[0,1,2]);a=2100;pC(this.menu,a++);a=a++;EA(this.element.j,a);OF(this,this.j);this.priority=1;this.A=!0}B(NF,BA);function OF(a,b){a.j=b;a.menu.Ca(b);a.element.Od(a.o(b))}
NF.prototype.o=function(a){switch(a){case 0:return Y(0,"YTP_OFF");case 1:return Y(0,"YTP_WEBGL_3D_2D");case 2:return Y(0,"YTP_WEBGL_3D_ANAGLYPH")}return"."};NF.prototype.C=function(a){this.element.Pd();OF(this,a);this.element.Sb("change")};function PF(a,b,c){this.B=null;this.A=-1;this.o=a.getVideoData().la;0!=this.o||"LR"!=a.getVideoData().Bc("yt3d:enable")&&"true"!=a.getVideoData().Bc("yt3d:enable")||(this.o=1);this.j=new NF(a.app.k.k);this.j.listen("change",this.Fy,this);this.j.listen("change",c,this);this.k=null;this.C=!0;Ss(b,this.j);R(b,this.j)}function QF(a){if(FF())return!1;a=a.getVideoData();var b;(b=1==a.la||2==a.la)||(b=a.Bc["3D"])||(a=a.Bc("yt3d:enable"),b="true"==a||"LR"==a||"RL"==a);return b?!0:!1}f=PF.prototype;f.Sj=function(){return"attribute vec3 aVertPos;attribute vec2 aTexCrd;varying vec2 vTexCrd;void main(void) {  vTexCrd = aTexCrd;  gl_Position = vec4(aVertPos, 1.0);}"};
f.Rj=function(){return"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 == 2)\n    anaglyph(vTexCrd.x, vTexCrd.y);\n  else if (mode == 0)\n    gl_FragColor = texture2D(uSplr, vTexCrd);\n  else if (mode == 1)\n    gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n}"};
f.Tj=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.A=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.A);this.k=a.getUniformLocation(b,"mode");a.uniform1i(this.k,this.j.j);var c=1==this.o;a.uniformMatrix4fv(a.getUniformLocation(b,c?"mLt":"mRt"),!1,new Float32Array([.456,-.04,-.015,0,.5,-.038,-.021,0,.176,-.016,-.005,0,0,0,0,1]));a.uniformMatrix4fv(a.getUniformLocation(b,c?"mRt":"mLt"),!1,new Float32Array([-.043,.378,-.072,0,-.088,.734,-.113,0,0,-.018,1.226,
0,0,0,0,1]))};f.bj=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,1,1,1,0,0,1,0]),a.STATIC_DRAW);b.j=2;b.fj=4;this.B=b};f.cj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.B);a.vertexAttribPointer(this.A,this.B.j,a.FLOAT,!1,0,0)};f.ij=function(){};f.hj=function(){};f.jj=function(){};f.pj=function(a,b){this.C&&a.uniform1i(this.k,this.j.j);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};
f.dj=function(){return!0};f.qj=function(){return!1};f.Fy=function(){this.C=!0};f.destroy=function(a){Ts(a,this.j)};function RF(){this.j=new Float32Array(16);this.o=new Float32Array(16);this.k=new Float32Array(16);this.identity()}RF.prototype.identity=function(){this.j.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};RF.prototype.get=function(){return this.j};
function SF(a,b){for(var c=0;16>c;c+=4)a.k[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.k[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.k[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.k[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.k;a.k=c};function TF(){this.A=new RF;this.G=this.F=this.D=null;this.B=!1;this.C=this.o=this.j=this.k=0}function UF(a){if(!a.o)return!1;for(var b in a.o.j){var c=a.o.j[b].info.video;if(c&&2==c.projectionType)return!0}return!1}f=TF.prototype;f.Sj=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};f.Rj=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float tanFOVx;uniform float tanFOVy;\n#define INV_PI 0.3183\nvoid main() {  vec3 ray = vec3(pos.x * tanFOVx, pos.y * tanFOVy, -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 - atan(ray.x, ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  gl_FragColor = vec4(texture2D(uSplr, texCrd).xyz, 1.0);}"};
f.Tj=function(a,b){this.D=a.getUniformLocation(b,"uVMat");a.uniformMatrix4fv(this.D,!1,this.A.get());a.uniform1f(a.getUniformLocation(b,"tanFOVx"),Math.tan(.35*py));a.uniform1f(a.getUniformLocation(b,"tanFOVy"),Math.tan(.35));this.G=a.getUniformLocation(b,"uSplr");a.uniform1i(this.G,0)};f.bj=function(a){this.F=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.F);a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,1,2,3]),a.STATIC_DRAW)};f.cj=function(){};
f.hj=function(a){switch(a.keyCode){case 65:case 97:case 68:case 100:case 87:case 119:case 83:case 115:0==this.o&&(this.C=Date.now()),this.o=a.keyCode}};f.ij=function(){this.o=0};f.jj=function(a,b){this.k+=3.1415*a;this.j+=3.1415*b;this.B=!0};
f.pj=function(a,b,c,d){if(this.o){c=Date.now();var e=.002*(c-this.C);switch(this.o){case 65:case 97:this.k+=e;break;case 68:case 100:this.k-=e;break;case 87:case 119:this.j+=e;break;case 83:case 115:this.j-=e}this.C=c;this.B=!0}if(this.B){this.j=Fc(this.j,-1.57075,1.57075);this.A.identity();c=this.A;var g=this.j,e=Math.sin(g),g=Math.cos(g);c.o.set([1,0,0,0,0,g,e,0,0,-e,g,0,0,0,0,1]);SF(c,c.o);c=this.A;g=this.k;e=Math.sin(g);g=Math.cos(g);c.o.set([g,0,-e,0,0,1,0,0,e,0,g,0,0,0,0,1]);SF(c,c.o);a.uniformMatrix4fv(this.D,
!1,this.A.get());this.B=!1}a.clearColor(0,0,0,1);a.clear(a.DEPTH_BUFFER_BIT|a.COLOR_BUFFER_BIT);a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,d);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.F);a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0)};f.dj=function(){return!1};f.qj=function(){return 0!=this.o};f.destroy=function(){};function VF(){this.k=null;this.j=-1}f=VF.prototype;f.Sj=function(){return"attribute vec3 aVertPos;\nattribute vec2 aTexCrd;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = aTexCrd;\n  gl_Position = vec4(aVertPos, 1.0);\n}"};f.Rj=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}"};
f.Tj=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.j=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.j)};f.bj=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,1,1,1,0,0,1,0]),a.STATIC_DRAW);b.j=2;b.fj=4;this.k=b};f.cj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.k);a.vertexAttribPointer(this.j,this.k.j,a.FLOAT,!1,0,0)};f.ij=function(){};f.hj=function(){};f.jj=function(){};
f.pj=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};f.dj=function(){return!0};f.qj=function(){return!1};f.destroy=function(){};function WF(){this.A=null;this.o=-1;this.j=43758.5453;this.k=null}f=WF.prototype;f.Sj=function(){return"attribute vec3 aVertPos;\nattribute vec2 aTexCrd;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = aTexCrd;\n  gl_Position = vec4(aVertPos, 1.0);\n}"};f.Rj=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nuniform float seed;\nvarying vec2 vTexCrd;\nfloat noise(float n)\n{\n    return fract(sin(n) * seed);\n}\nvoid main(void) {\n  vec4 col = vec4(texture2D(uSplr,\n      vec2(vTexCrd.x, 1.0 - vTexCrd.y)).xyz, 1.0);\n  float amt = 0.035;\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  float noiseL = noise(gl_FragCoord.x + gl_FragCoord.y * 2000.0) * amt;\n  col.xyz = col.xyz + noiseL;\n  gl_FragColor = col;\n}"};
f.Tj=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.k=a.getUniformLocation(b,"seed");a.uniform1f(this.k,this.j);this.o=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.o)};f.bj=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,1,1]),a.STATIC_DRAW);b.j=2;b.fj=4;this.A=b};f.cj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.A);a.vertexAttribPointer(this.o,this.A.j,a.FLOAT,!1,0,0)};f.ij=function(){};
f.hj=function(){};f.jj=function(){};f.pj=function(a,b){this.j+=1;a.uniform1f(this.k,this.j);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};f.dj=function(){return!0};f.qj=function(){return!1};f.destroy=function(){};function XF(a,b,c,d){this.X=c;this.o=a.app.k.j;this.G=10;this.B=!0;this.O=this.K=this.N=this.A=this.k=null;this.D=b;this.j=null;this.R=a;this.J=d;this.F=this.C=-1;this.H=!1}
function YF(a){a.k=document.createElement("canvas");if(!a.k)return 1;a.X(a.k);try{a.A=a.k.getContext("webgl")}catch(b){return 2}if(null==a.A)return 3;ZF(a);var c=$F(a);if(0!=c)return c;a.k.addEventListener("click",a.sz.bind(a),!0);a.k.addEventListener("mousedown",a.qz.bind(a));a.k.addEventListener("mousemove",a.rz.bind(a));a.k.addEventListener("mouseup",a.uz.bind(a));var c=a.A,d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,new Float32Array([-1,-1,0,1,-1,0,-1,1,0,1,1,
0]),c.STATIC_DRAW);a.K=d;a.j.bj(c);c=a.A;d=c.createTexture();c.bindTexture(c.TEXTURE_2D,d);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);a.N=d;c=a.A;c.clearColor(0,0,0,1);c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT);c.bindBuffer(c.ARRAY_BUFFER,a.K);c.vertexAttribPointer(a.P,3,c.FLOAT,!1,0,0);c.activeTexture(c.TEXTURE0);
c.bindTexture(c.TEXTURE_2D,a.N);a.j.cj(c);a.Nd();a.o.crossOrigin="use-credentials";return 0}
function $F(a){var b=a.A,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.j.Sj());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.j.Rj());b.compileShader(d);if(!b.getShaderParameter(c,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.P=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.P);a.O=e;a.j.Tj(b,a.O);return 0}f=XF.prototype;f.Nd=function(){this.A&&(this.o.videoWidth||this.o.videoHeight)&&(ZF(this),this.j.pj(this.A,this.o,this.K,this.N));(this.B||this.j.qj())&&requestAnimationFrame(this.Nd.bind(this))};
function ZF(a){if(0==a.G&&null!=a.o.offsetParent){if(a.j.dj())var b=a.o.offsetWidth,c=a.o.offsetHeight,d=a.o.offsetTop;else b=a.o.offsetParent.offsetWidth,d=a.o.offsetParent.offsetHeight;c=9*b/16;a.k.top=d;a.k.width=b;a.k.height=c;a.A.k=b;a.A.j=c;a.A.viewport(0,0,b,c)}}f.sz=function(a){this.H&&(a.stopPropagation(),this.H=!1)};f.qz=function(a){this.C=a.x;this.F=a.y};
f.rz=function(a){-1!=this.C&&this.j&&(this.j.jj((a.x-this.C)/this.k.width,(a.y-this.F)/this.k.height),this.C=a.x,this.F=a.y,this.H=!0,this.B||requestAnimationFrame(this.Nd.bind(this)))};f.uz=function(){this.F=this.C=-1};f.Uz=function(){this.B||requestAnimationFrame(this.Nd.bind(this));Us(this.J)};function aG(a){a.k&&(Gd(a.k),a.k=null);a.A=null;a.B=!1;a.j&&a.j.destroy(a.J);a.j=null;a.o.removeAttribute("crossorigin");a.o.hidden=!1;a.G=10};function bG(a){Bs.call(this,a);this.Oi=!0;this.ta="webgl";this.subscribe("onResize",this.MC,this);this.subscribe("onKeyPress",this.KC,this);this.subscribe("onKeyDown",this.JC,this);this.subscribe("onKeyUp",this.LC,this);this.subscribe("onStateChange",this.je,this);this.B=J("DIV",cG.IC);Es(this,this.B);this.A=a;a=window.localStorage["yt-html5-player-module-webgl-shadertype"];if(void 0==a||null==a)if(a="",QF(this.A))a="Anaglyph3D";else{var b=this.A.getVideoData();UF(b)&&this.A.S().experiments.spherical?
a="Spherical":this.A.S().experiments.C&&(a="NoOp")}this.k=new XF(this.A,a.toString(),x(this.B.appendChild,this.B),this);this.o=!1}B(bG,Bs);var cG={IC:"video-annotations"};bG.j=function(a){return bG.Ea(a)?new bG(a):null};bG.prototype.Ea=function(){return bG.Ea(this.j)};bG.Ea=function(a){var b;(b=QF(a)&&a.S().experiments.oa)||(b=a.getVideoData(),b=UF(b)&&a.S().experiments.spherical);return b||a.S().experiments.C?!0:!1};f=bG.prototype;f.MC=function(){this.o&&ZF(this.k)};
f.KC=function(){if(this.o){var a=this.k;a.j&&(a.B||requestAnimationFrame(a.Nd.bind(a)))}};f.LC=function(a){if(this.o){var b=this.k;b.j&&(b.j.ij(a),b.B||requestAnimationFrame(b.Nd.bind(b)))}};f.JC=function(a){if(this.o){var b=this.k;b.j&&(b.j.hj(a),b.B||requestAnimationFrame(b.Nd.bind(b)))}};f.je=function(a){if(this.o){var b=this.k,c=b.B;b.B=W(a.state,8);b.B&&!c&&requestAnimationFrame(b.Nd.bind(b))}};f.L=function(){bG.I.L.call(this)};
f.create=function(){var a=this.k;a.j=null;null!=a.D&&("Anaglyph3D"==a.D?a.j=new PF(a.R,a.J,a.Uz.bind(a)):"Spherical"==a.D?a.j=new TF:"WhiteNoise"==a.D?a.j=new WF:"NoOp"==a.D&&(a.j=new VF));a.j&&(a.G=YF(a),0==a.G?a.o.hidden=!0:(a.R.app.o.Sh(new uq("html5.missingapi.webgl",!1)),aG(a)));this.o=null!=this.k.j;bG.I.create.call(this)};f.destroy=function(){aG(this.k);this.o=!1;bG.I.destroy.call(this)};function dG(a){Bs.call(this,a);Hf({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.o=this.k=null}B(dG,Bs);f=dG.prototype;f.ta="ypc_clickwrap";f.oc="ypc-clickwrap";f.Ea=function(){return rv(this.j.getVideoData(),"ypc_clickwrap_module")};function eG(a){return rv(a.getVideoData(),"ypc_clickwrap_module")?new dG(a):null}f.create=function(){dG.I.create.call(this);this.load()};
f.load=function(){dG.I.load.call(this);this.k=new Wu(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",If("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.j.getVideoData().A.ypc_clickwrap_message],["button","ytp-ypc-clickwrap-confirm",If("YTP_YPC_START_RENTAL_BUTTON")]]);this.k.Y(this.j.Ma());R(this,this.k);this.o=this.k.j["ytp-ypc-clickwrap-confirm"];P(this.o,"click",x(this.Vz,this))};
f.unload=function(){dG.I.unload.call(this);zh(this.o);this.k.detach();this.k.dispose();this.k=null};f.Vz=function(){Ds(this);this.destroy()};function fG(a){a=a.A;this.o=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.B=a.ypc_offer_headline;this.A=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.j=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;Pf(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.k=a.ypc_item_url;this.videoId=a.ypc_vid};function gG(){X.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["a","ytp-drawer-close-button"],["a","ytp-drawer-open-button"]]);var a=this.template.j["ytp-drawer-open-button"];fv(this,this.template.j["ytp-drawer-close-button"],"click",this.hide);fv(this,a,"click",this.show);this.j=new zv(y(Zg,this.element,"ytp-drawer-closed"),0);R(this,this.j);this.ra(null);this.hide()}B(gG,X);gG.prototype.hide=function(){this.j.stop();O(this.element,"ytp-drawer-closed")};
gG.prototype.ra=function(a){a?(gG.I.ra.call(this,a),cv(this.element,"block")):cv(this.element,"none")};gG.prototype.show=function(){this.j.start()};function hG(a,b){S.call(this);this.j=new gG;R(this,this.j);this.k=document.createElement("div");O(this.k,"html5-ypc-endscreen");this.A=document.createElement("div");O(this.A,"html5-ypc-overlay");this.o=new Wu(["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","{{button_label}}"]]);R(this,this.o);this.B=
this.o.j["html5-ypc-purchase"];P(this.B,"click",x(this.C,this));Pd(this.A,b.A);var c=b.title;b.k&&(c=["a",{href:b.k,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.o.update({heading:b.B,title:c,thumbnail_element:d,description:b.description,button_label:b.o});this.Y(a)}B(hG,S);hG.prototype.L=function(){hG.I.L.call(this);this.B&&zh(this.B);Gd(this.k);Gd(this.A)};hG.prototype.Y=function(a){this.j.Y(a);this.j.ra(this.o.M());a.appendChild(this.k)};
function iG(a){var b=a.o.M();a.k.appendChild(b);a.j.ra(null);cv(a.k,"block")}hG.prototype.C=function(){this.publish("ypcContentRequest")};function jG(a){Bs.call(this,a);this.o=this.k=null;this.B=NaN;this.A=null}B(jG,Bs);f=jG.prototype;f.ta="ypc";f.oc="ypc";f.Ea=function(){return rv(this.j.getVideoData(),"ypc_module")};function kG(a){return rv(a.getVideoData(),"ypc_module")?new jG(a):null}f.create=function(){jG.I.create.call(this);this.k=new fG(this.j.getVideoData());M(x(this.PB,this),0);this.A=new X(["div",["ytp-player-content","ytp-ypc-player-content"]]);this.A.Y(this.j.Ma())};
f.destroy=function(){jG.I.destroy.call(this);this.k=null;this.A.detach();this.A.dispose();this.A=null};f.PB=function(){this.Id&&!this.loaded&&this.load()};
f.load=function(){jG.I.load.call(this);var a=this.j.getVideoData();if(this.k.videoId&&!a.na)this.j.jq({video_id:this.k.videoId,ypc_preview:1});else{this.o=new hG(this.A.M(),this.k);this.o.subscribe("ypcContentRequest",this.Jy,this);this.k.videoId&&Cd(this.A.M(),this.o.A);if(gF(this.j.S())){var b=new qs(2147483647,2147483647,{priority:2});this.Kd(b)}this.o.j.show();N(this.B);this.B=M(x(function(){this.o.j.hide()},this),1E4);this.k.videoId?a.na&&Ds(this):iG(this.o)}};
f.unload=function(){Cs(this);si(this.o);this.o=null;jG.I.unload.call(this)};f.Ec=function(a){jG.I.Ec.call(this,a);iG(this.o)};f.Uc=function(a){jG.I.Uc.call(this,a);a=this.o;cv(a.k,"none");a.j.ra(a.o.M())};f.Jy=function(){if(this.k.j)"embedded"==this.j.S().ca?Xw(this.k.j):Ww(this.k.j);else if(this.k.offerId){var a=r("yt.www.watch.player.handleEndPreview");a&&(this.j.isFullscreen()&&Yx(this.j.app),a(this.k.offerId))}};function lG(a){this.A=Math.exp(Math.log(.5)/a);this.j=this.o=0}lG.prototype.k=function(a,b){var c=Math.pow(this.A,a);this.j=b*(1-c)+c*this.j;this.o+=a};lG.prototype.B=function(){return this.j/(1-Math.pow(this.A,this.o))};function mG(a){this.k=window.Float32Array?new Float32Array(a):Array(a);this.j=a-1}mG.prototype.add=function(a){this.j=(this.j+1)%this.k.length;this.k[this.j]=a};mG.prototype.forEach=function(a){for(var b=this.j+1;b<this.k.length;b++)a(this.k[b]||0);for(b=0;b<=this.j;b++)a(this.k[b]||0)};function nG(a,b,c){this.G=0;this.D=a;this.A=b||.5;this.C=c||0;this.F="index";this.j=0;this.o=[]}nG.prototype.k=function(a,b){oG(this,"index");this.o.push({index:this.G++,weight:a,value:b});this.j+=a;for(oG(this,"index");this.j>this.D;){var c=this.j-this.D,d=this.o[0];d.weight<=c?(this.j-=d.weight,this.o.shift()):(this.j-=c,d.weight-=c)}};function pG(a,b){oG(a,"value");var c=b*a.j,d=0,e=NaN;a.o.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}
nG.prototype.B=function(){return this.C?(pG(this,this.A-this.C)+pG(this,this.A)+pG(this,this.A+this.C))/3:pG(this,this.A)};function oG(a,b){a.F!=b&&(a.F=b,yb(a.o,b))};function qG(a){this.policy=a;this.k=this.B=this.C=0;this.F=new mG(100);this.D=0;this.G=z();this.A=new nG(16,.6);this.o=new lG(4);this.policy.k?this.j=new lG(17):this.j=new nG(17,.5,.1);a=Yi("yt-player-bandwidth")||{};this.j.k(this.policy.j,0<a.byterate?a.byterate:13E4);0<a.delay&&this.A.k(1,Math.min(+a.delay,2));0<a.tailDelay&&this.o.k(1,+a.tailDelay);this.k=z()}function rG(a,b,c){b=Math.max(b,.05);a.j.k(b,c/b);sG(a)}function tG(a,b,c){isNaN(c)||(a.B+=c);isNaN(b)||(a.C+=b/1E3);sG(a)}
function uG(a){a=a.A.B();a=isNaN(a)?.5:a;return a=Math.min(a,5)}function vG(a){return a.o.B()||0}function wG(a){a=a.j.B();return 0<a?a:1}function xG(a){var b={};b.delay=uG(a);b.tailDelay=vG(a);b.byterate=wG(a);return b}function yG(a){3E4<z()-a.k&&(rq(xG(a)),a.k=z())}function sG(a){var b=z();a.G=b;500<b-a.D&&(a.F.add(1/(1/wG(a)+vG(a))),a.D=b)}function zG(a){return 4E3<=z()-a.G};function AG(){this.j=.5;this.k=!1};function BG(a,b,c,d){this.name=a;this.language=b;this.isDefault=d}BG.prototype.toString=function(){return this.name};function CG(a){this.k=a;this.C=this.A=this.B="";this.j={};this.o=""}CG.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.o="")};CG.prototype.get=function(a){DG(this);return this.j[a]||null};function EG(a){a.o||(a.o=FG(a));return a.o}function GG(a){DG(a);return Gb(a.j,function(a){return null!==a})}
function DG(a){if(a.k){var b=a.k;if(!b||-1==b.search(uf))throw Error("Untrusted URL: "+a.k);b=ff(a.k);a.B=b.Hb;a.C=b.mb+(null!=b.gd?":"+b.gd:"");var c=b.Ib;if(0==c.indexOf("/videoplayback"))a.A="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.A=c.substr(0,d),c=c.substr(d+1)):(a.A=c,c="")}d=a.j;a.j=HG(c);qa(a.j,IG(b.dq()));qa(a.j,d);a.k="";a.o=""}}
function FG(a){DG(a);var b=a.B+(a.B?"://":"//")+a.C+a.A;if(GG(a)){var c=[];Eb(a.j,function(a,b){null!==a&&c.push(b+"="+a)});a=c.join("&");b+="?"+a}return b}function HG(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&(c[a[b]]=a[b+1]);return c}function IG(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?b[d.substr(0,e)]=d.substr(e+1):d&&(b[d]="")}return b};function JG(a,b){this.start=a;this.end=b;this.length=b-a+1}function KG(a){a=a.split("-");return 2==a.length&&(a=new JG(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function LG(a,b){return new JG(a,a+b-1)}JG.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function MG(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];if(d)return d.value}return""}function NG(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0<d.length)return d[0]}return null};function OG(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.j=a;this.sourceURL=d;this.startTime=b;this.aa=e||null};function PG(){this.ga=[]}f=PG.prototype;f.rj=function(a){return(a=QG(this,a))?a.duration:0};f.Zk=function(a){return this.rj(a)};f.Pg=function(){return this.ga[0].j};f.Gb=function(){return this.ga[this.ga.length-1].j};f.af=function(){return this.ga[this.ga.length-1].endTime};f.It=function(){return this.ga[0].startTime};f.Ft=function(){return this.ga.length};f.Qj=function(){return 0};f.ih=function(a){return(a=RG(this,a))?a.j:-1};f.Xt=function(a){return QG(this,a).sourceURL};
f.zf=function(a){return(a=QG(this,a))?a.startTime:0};f.En=function(){return 0<this.ga.length};function QG(a,b){var c=ub(a.ga,new OG(b,0,0,""),function(a,b){return a.j-b.j});return 0<=c?a.ga[c]:null}function RG(a,b){var c=ub(a.ga,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.ga[c]:a.ga[Math.max(0,-c-2)]}
f.append=function(a){if(0!=a.length)if(a=pb(a),0==this.ga.length)this.ga=a;else{var b=this.ga.length?Ya(this.ga).endTime:0,c=a[0].j-this.Gb();1<c&&jb(this.ga);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.ga.push(a[c])}}};function SG(a,b){var c=fb(a.ga,function(a){return a.j>=b},a);0<c&&a.ga.splice(0,c)};function TG(a){this.j=a;this.k={};this.o=""}TG.prototype.set=function(a,b){this.j.get(a);this.k[a]=b;this.o=""};TG.prototype.get=function(a){return this.k[a]||this.j.get(a)};function UG(a,b){var c=b.indexOf("?");if(0<c){var d=IG(b.substr(c+1));Eb(d,function(a,b){this.set(b,a)},a);b=b.substr(0,c)}d=HG(b);Eb(d,function(a,b){this.set(b,a)},a)}function yD(a){a.o||(a.o=VG(a));return a.o}
function VG(a){var b=EG(a.j),c=[];Eb(a.k,function(a,b){c.push(b+"="+a)});if(!c.length)return b;var d=c.join("&");a=GG(a.j)?"&":"?";return b+a+d}function WG(a,b){var c=new CG(b);Eb(a.k,function(a,b){c.set(b,null)});return c};function XG(a){this.j=a;this.k=0;this.o=-1}var YG=0;function ZG(a,b){this.index=null;this.info=b;this.j=null;this.B=this.o=!1;this.C=new XG(a)}ZG.prototype.Hl=function(){return!1};ZG.prototype.Qc=function(){return!1};ZG.prototype.Ds=function(a){return[a]};ZG.prototype.vi=function(a){return[a]};function $G(a,b,c,d,e,g,h,k,l){this.j=b;this.aa=c;this.type=a;this.A=0<=d?d:-1;this.startTime=e||0;this.duration=g||0;this.o=h||0;this.k=0<=k?k:this.aa?this.aa.length:NaN;this.F=!!l;this.aa?(this.C=this.o+this.k==this.aa.length,this.B=this.startTime+this.duration*this.o/this.aa.length,this.G=this.duration*this.k/this.aa.length):(this.C=0!=this.k,this.B=this.startTime,this.G=this.duration);this.D=this.B+this.G}function aH(a){return 1==a.type||2==a.type}
function bH(a,b){return a.j==b.j&&a.aa.start+a.o+a.k==b.aa.start+b.o}function cH(a){Xa(1==a.length||eb(a,function(a){return!!a.aa}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new JG(a[0].aa.start+a[0].o,b.aa.start+b.o+b.k-1)}function dH(a){var b="i="+a.j.info.id+",s="+a.A;a.aa&&(b=b+",r="+(a.aa.start+a.o)+"-"+(a.aa.start+a.o+a.k-1));return b=b+",t="+a.B.toFixed(1)+","+(a.B+a.G).toFixed(1)};function eH(a,b){this.o=a[0].j.C;this.k=b||"";this.j=a;this.aa=this.j[0].aa&&0<this.j[0].k?cH(this.j):null}function zD(a){var b;/http[s]?:\/\//.test(a.k)?b=new TG(new CG(a.k)):(b=new TG(a.o.j),a.k&&UG(b,a.k));a.aa&&b.set("range",a.aa.toString());return b}function fH(a){if(a.aa)return a.aa.length;a=a.j[0];return Math.round(a.G*a.j.info.pa)};function gH(a,b,c,d,e){ZG.call(this,a,b);this.index=e||new PG;this.A=d||null;this.D=c;this.k=!0}B(gH,ZG);f=gH.prototype;f.qi=function(){return!1};f.Zs=function(){var a=new $G(1,this,this.A);return[new eH([a],this.D)]};function xD(a,b){a.Cg(b);return hH(a,b.C?b.A+1:b.A,!1)}f.Ii=function(a,b){var c=this.index.ih(a);b&&(c=Math.min(this.index.Gb(),c+1));return hH(this,c,!0)};f.Vp=function(a){this.j=new Uint8Array(iH(a).buffer)};f.Hl=function(){return!1};f.Qc=function(){return null!==this.j&&this.index.En()};
f.Cg=function(a){return 0==a.k?!0:this.index.Gb()>a.A&&this.index.Pg()<=a.A+1};f.update=function(a,b,c){this.index.append(a);SG(this.index,c);this.k=b};function hH(a,b,c){var d=a.index.Xt(b),e=a.index.zf(b),g=a.index.rj(b);c?g=c=0:c=0<a.info.pa?a.info.pa*g:1E3;a=new $G(3,a,null,b,e,g,0,c,b==a.index.Gb()&&!a.k&&0<c);return new eH([a],d)};function jH(a,b){this.Vg=a;this.context=b};function kH(a,b,c){this.k=a;this.Vg=b;this.j=c}function lH(){this.j=[];this.k=null;this.A=0;this.o=[]}
lH.prototype.update=function(a){var b=void 0;this.k&&(b=this.k);var c=b,b=+MG(a,"timescale")||1,d=+MG(a,"startNumber")||0,e=0,g=1;c&&(e=c.Vg+c.j,g=d-c.k);c=new lH;g=0<g?0:-g+1;c.A=g;for(a=a.getElementsByTagName("S");g<a.length;g++){var h=a[g],k=+h.getAttribute("d")/b,l=new kH(d+g,e,k);c.j.push(l);var e=e+k,k=h.getAttribute("yt:cuepointTimeOffset"),p=h.getAttribute("yt:cuepointDuration"),h=h.getAttribute("yt:cuepointContext")||null;k&&p&&c.o.push(new jH(+k/b+l.Vg,h))}c.j.length&&(c.k=Ya(c.j));this.A=
c.A;this.k=c.k||this.k;this.j=c.j;qb(this.o,c.o)};function mH(a){var b=a.o;a.o=[];return b};function nH(){this.B=[];this.A=!1;this.j=null;this.k={};this.o={}}function oH(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 lH:"AdaptationSet"==e.nodeName?a.k[e.attributes.mimeType.value]=new lH:"Representation"==e.nodeName&&(a.o[e.attributes.id.value]=new lH)}a.A=!0}
function pH(a,b){a.A||oH(a,b);for(var c=[],d=b.getElementsByTagName("SegmentTimeline"),e=0;e<d.length;e++){var g=d[e].parentNode.parentNode,h=null;"Period"==g.nodeName?h=a.j:"AdaptationSet"==g.nodeName?h=a.k[g.attributes.mimeType.value]:"Representation"==g.nodeName&&(h=a.o[g.attributes.id.value]);if(null==h)return;h.update(d[e]);qb(c,mH(h))}xb(c,function(a){return a.Vg});qb(a.B,c)}function qH(a){a.j&&(a.j.j=[]);Eb(a.k,function(a){a.j=[]});Eb(a.o,function(a){a.j=[]})};function rH(a,b){var c=sH(a,0,1836019558);if(!c)return null;var d=sH(a,c.offset+8,1835427940),e=sH(a,c.offset+8,1953653094);if(!d||!e)return null;var g=sH(a,e.offset+8,1952868452),h=sH(a,e.offset+8,1953658222),k=sH(a,e.offset+8,1952867444);if(!g||!h||!k)return null;var l=sH(a,e.offset+8,1935763823),e=sH(a,e.offset+8,1935763834);if(l){var p=tH(l),t=tH(l);if(0!=p||1!=t)return null;p=tH(l)}for(var v=tH(g),A=tH(g),U=v&2,Z=v&1?uH(g):0,ea=U?tH(g):0,pa=v&8?tH(g):0,t=v&16?tH(g):0,Ne=v&32?tH(g):0,v=tH(h),
he=v&1,As=v&4,Hz=v&256,g=v&512,$0=v&1024,a1=v&2048,v=tH(h),b1=he?tH(h):0,c1=As?tH(h):0,he=[],eN=[],ZA=[],$A=[],fN=0,Te=0,Wb=0;Wb<v;Wb++){var d1=Hz?tH(h):pa;g&&he.push(tH(h));var wd=Ne;As&&0==Wb?wd=c1:$0&&(wd=tH(h));eN.push(wd);wd=a1?tH(h):0;0==Wb&&(fN=wd);ZA.push(Te+wd);$A.push(Wb);Te+=d1}wb($A,function(a,b){return ZA[a]-ZA[b]});h=[];for(Wb=0;Wb<v;Wb++)h[$A[Wb]]=Wb;Te=U?4:0;Wb=16*v;wd=68+Te+k.size+Wb+(l?l.size:0)+(e?e.size:0);c=wd-c.size;pa=new vH(wd);wH(pa,wd);wH(pa,1836019558);xH(pa,d);wH(pa,wd-
24);wH(pa,1953653094);wH(pa,16+Te);wH(pa,1952868452);wH(pa,131072|(U?2:0));wH(pa,A);U&&wH(pa,ea);xH(pa,k);wH(pa,20+Wb);wH(pa,1953658222);wH(pa,16781057);wH(pa,v);wH(pa,Z+b1+c);for(Wb=Te=0;Wb<v;Wb++)k=h[Wb],d=Math.round(b*k/v),k=Math.round(b*(k+1)/v)-d,wd=d-Te+fN,wH(pa,k),wH(pa,g?he[Wb]:t),wH(pa,eN[Wb]),wH(pa,wd),Te+=k;l&&(wH(pa,l.size),wH(pa,1935763823),wH(pa,0),wH(pa,1),wH(pa,p+c));e&&xH(pa,e);return pa.data.buffer}
function sH(a,b,c){for(;yH(a,b);){var d=zH(a,b);if(d.type==c)return d;b+=d.size}return null}function zH(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new AH(a,b,c,d)}function BH(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}function yH(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}function AH(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.j=8}
function tH(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}function uH(a){var b=BH(a.data,a.offset+a.j);a.j+=8;return b}AH.prototype.skip=function(a){this.j+=a};function vH(a){this.data=new DataView(new ArrayBuffer(a));this.j=0}function wH(a,b){a.data.setInt32(a.j,b);a.j+=4}function xH(a,b){for(var c=0;c+4<=b.size;)wH(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.j++,b.data.getUint8(b.offset+c++))};function CH(a,b,c,d){this.info=a;this.buffer=b;this.aa=c;this.j=d}function iH(a){return a.aa?new DataView(a.buffer,a.aa.start,a.aa.length):new DataView(a.buffer)}function DH(a){if(a.info.k!=a.aa.length)return!1;if(1==a.info.j.info.j){if(8>a.info.k||4==a.info.type)return!0;var b=iH(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.k&&1936286840==b;if(3==a.info.type&&0==a.info.o)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b}return!0}
function EH(a){var b;if(1==a.info.j.info.j){var c=NaN,d=NaN;b=0;for(a=new DataView(a.buffer);yH(a,b);){var e=zH(a,b);if(1936286840==e.type)d=e.data.getUint32(e.offset+16);else if(1836476516==e.type)var d=e,g=d.data.getUint8(d.offset+8)?28:20,d=d.data.getUint32(d.offset+g);else 1952867444==e.type&&(c=e,c=c.data.getUint8(c.offset+8)?BH(c.data,c.offset+12):c.data.getUint32(c.offset+12));g=e.type;b=1836019558==g||1836019574==g||1953653094==g?b+8:b+e.size}b=c/d}else b=NaN;return b};function FH(){this.ka=0;this.j=new Float64Array(128);this.k=new Float64Array(128);this.A=1;this.o=!1}f=FH.prototype;f.Qj=function(a){return this.j[a]};f.zf=function(a){return this.k[a]/this.A};f.rj=function(a){a=this.Zk(a);return 0<=a?a/this.A:-1};f.Zk=function(a){return a+1<this.ka||this.o?this.k[a+1]-this.k[a]:-1};f.Pg=function(){return 0};f.Gb=function(){return this.ka-1};f.af=function(){return this.o?this.k[this.ka]/this.A:NaN};f.It=function(){return 0};f.Ft=function(){return this.ka};f.Xt=function(){return""};
f.ih=function(a){a=ub(this.k.subarray(0,this.ka),a*this.A);return 0<=a?a:Math.max(0,-a-2)};f.En=function(){return 0<=this.Gb()};function GH(a){if(a.j.length<a.ka+1){var b=2*a.j.length,b=b+2,c=a.j;a.j=new Float64Array(b+1);var d=a.k;a.k=new Float64Array(b+1);for(b=0;b<a.ka+1;b++)a.j[b]=c[b],a.k[b]=d[b]}}function HH(a,b){this.k=a;this.j=0;this.o=b||0}function IH(a){for(var b=JH(a,!1);236==b;)KH(a),b=JH(a,!1);return b}
function LH(a){var b=JH(a,!0),c=a.k.byteOffset+a.j,d=Math.min(b,a.k.buffer.byteLength-c),c=new DataView(a.k.buffer,c,d),c=new HH(c,a.o+a.j);a.j+=b;return c}function MH(a){for(var b=JH(a,!0),c=NH(a),d=1;d<b;d++)c=256*c+NH(a);return c}function KH(a){var b=JH(a,!0);a.j+=b}function JH(a,b){var c=NH(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+NH(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+NH(a),e*=128;return b?c-e:c}function NH(a){return a.k.getUint8(a.j++)};function OH(a,b,c,d,e,g){ZG.call(this,a,b);this.initRange=c;this.indexRange=d;this.A=null;this.index=new FH;this.k=e;this.lastModified=g}B(OH,ZG);f=OH.prototype;f.Qc=function(){return!(!this.j||!this.index.En())};
f.Zs=function(a){var b=new $G(1,this,this.initRange),c=new $G(2,this,this.indexRange),d=[],e=[b];bH(b,c)?e.push(c):(d.push(new eH([c])),a=0);isNaN(this.k)?a=0:a>this.k&&(a=this.k);b=e[e.length-1];c=b.aa.end-e[0].aa.start+1;a>c&&(a=LG(b.aa.end+1,a-c),e.push(new $G(4,this,a)));d.push(new eH(e));return d};
f.Vp=function(a){if(1==a.info.type){if(this.j)return;this.j=new Uint8Array(a.buffer,a.aa.start,a.aa.length)}else if(2==a.info.type){if(this.A||0<=this.index.Gb())return;if(1==this.info.j){var b=this.index,c=iH(a),d=a.info.aa.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.A=h;a+=8;0==g?(g=c.getUint32(a,!1),h=c.getUint32(a+4,!1),a+=8):(g=4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),h=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.j[0]=h+(e+d);
b.k[0]=g;b.o=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var k=c.getUint32(a,!1),h=c.getUint32(a+4,!1);a+=12;g=b;g.ka++;GH(g);g.j[g.ka]=g.j[g.ka-1]+k;g.k[g.ka]=g.k[g.ka-1]+h}}else this.A=iH(a)}if(it(this.info)&&this.j&&this.A){c=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength);b=this.index;g=this.A;c=new HH(c);if(440786851==IH(c)&&(KH(c),408125543==IH(c))){d=c;e=d.j;a=JH(d,!0);d.j=e;for(var c=LH(c),d=c.o+c.j,l=IH(c);357149030!=l;)KH(c),l=IH(c);c=LH(c);h=1E6;k=1E9;for(e=0;!(c.j>=
c.k.byteLength);)if(l=IH(c),2807729==l)h=MH(c);else if(2807730==l)k=MH(c);else if(17545==l){var e=c,l=JH(e,!0),p=0;4==l?p=e.k.getFloat32(e.j):8==l&&(p=e.k.getFloat64(e.j));e.j+=l;e=p}else KH(c);b.A=k/h;c=new HH(g);if(475249515==IH(c)){for(c=LH(c);!(c.j>=c.k.byteLength);)if(l=IH(c),187==l){g=LH(c);h=d;if(179!=IH(g))k=null;else if(k=MH(g),183!=IH(g))k=null;else{g=LH(g);for(l=h;!(g.j>=g.k.byteLength);)241==IH(g)?l=MH(g)+h:KH(g);k=[l,k]}g=b;h=k[0];k=k[1];GH(g);g.j[g.ka]=h;g.k[g.ka]=k;g.ka++}else KH(c);
c=a+d;a=e;GH(b);b.o=!0;b.k[b.ka]=a;b.j[b.ka]=c}}this.A=null}};function PH(a,b,c,d){for(var e=[];b<=a.index.Gb();b++){var g;g=a.index;var h=b;g=LG(g.Qj(h),h+1<g.ka||g.o?g.j[h+1]-g.j[h]:-1);var h=a.index.zf(b),k=a.index.rj(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new $G(3,a,g,b,h,k,l,p,b==a.index.Gb()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new eH(e)}
f.Ds=function(a){for(var b=this.vi(a.info),c=[],d=a.j,e=0;e<b.length;e++){var g=LG(b[e].aa.start+b[e].o-a.info.aa.start+a.aa.start,b[e].k);c.push(new CH(b[e],a.buffer,g,d));d=!1}return c};f.vi=function(a){for(var b=0;b<this.index.Gb()&&a.aa.start>=this.index.Qj(b+1);)b++;return PH(this,b,a.aa.start,a.aa.length).j};f.Cg=function(a){return this.Qc()?!0:isNaN(this.k)?!1:a.aa.end+1<this.k};
function QH(a,b,c){a.Cg(b);if(!a.Qc())return c=LG(b.aa.end+1,c),c.end+1>a.k&&(c=new JG(c.start,a.k-1)),a=[new $G(4,b.j,c)],new eH(a);4==b.type&&(b=a.vi(b),b=b[b.length-1]);var d=0,e=b.aa.start+b.o+b.k;3==b.type&&(d=b.A,e==b.aa.end+1&&(d+=1));return PH(a,d,e,c)}f.Ii=function(a,b){var c=this.index.ih(a);b&&(c=Math.min(this.index.Gb(),c+1));return PH(this,c,this.index.Qj(c),0)};f.Hl=function(){var a;if(a=this.Qc()&&!isNaN(this.k))a=this.index,a=(a.o?a.j[a.ka]:-1)!=this.k;return a};f.qi=function(){return!0};function RH(a,b){S.call(this);this.N=!!b;this.F=this.duration=0;this.isLive=this.B=!1;this.H=z();this.C=Infinity;this.j={};this.J=a||"";this.K=this.G=0;this.D=!1;this.k=this.o=0;this.A=null}B(RH,S);RH.prototype.getErrorCode=function(){return 3>this.k?"manifest.net":"manifest.net.retryexhausted"};function SH(a){return Gb(a.j,function(a){return!!a.info.A},a)}var TH=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function UH(a,b){var c=new RH;E(a,function(a){var e=a.type,g=a.itag,h=null;lt(e)&&(h=a.size.split("x"),h=new Dt(+h[0],+h[1],+a.fps,+a.projection_type));var k=null,l=null;kt(e)&&(k=new gt,a.name&&(l=new BG(a.name,a.lang,0,"1"==a.isDefault)));a.xtags&&(g=a.itag+";"+a.xtags);var p=parseInt(a.bitrate,10)/8,t=null;b&&a.drm_families&&(t={},E(a.drm_families.split(","),function(a){t[a]=b[a]}));e=new ht(g,e,k,h,l,t,p);h=KG(a.init);k=KG(a.index);l=VH(a.url,e,a.s);p=parseInt(a.clen,10);a=parseInt(a.lmt,10);
l&&(c.j[g]=new OH(l,e,h,k,p,a))});return c}function WH(a){if(!a)return 0;var b=TH.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function VH(a,b,c){a=new CG(a);a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",encodeURIComponent(b.mimeType.split(";")[0]));c&&a.set("signature",Zs(c));return a}
function XH(a){var b=MG(a,"id"),b=b.replace(":",";");"captions"==b&&(b=MG(a,"lang"));var c=MG(a,"mimeType"),d=MG(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(MG(a,"bandwidth"),10)/8,e=null;lt(c)&&(e=new Dt(parseInt(MG(a,"width"),10),parseInt(MG(a,"height"),10),parseInt(MG(a,"frameRate"),10)));var g=null,h=null;if(kt(c)){g=new gt;var h=MG(a,"lang")||"",k=NG(a,"Role");if(k){var k=MG(k,"value")||"",l="invalid";"main"==k?l="original":"dub"==k?l="dubbed":"descriptive"==k?l="descriptive":"commentary"==
k&&(l="commentary");h="invalid"!=l&&h?new BG(MG(a,"yt:langName")||h+" - "+l,h,0,"original"==l):null}else h=null}k=null;if(a=NG(a,"ContentProtection"))if((k=a.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==k.textContent)for(k={},a=a.firstChild;null!=a;a=a.nextSibling)"yt:SystemURL"==a.nodeName&&(k[a.attributes.type.textContent]=a.textContent.trim());else k=null;return new ht(b,c,g,e,h,k,d)}
function YH(a,b,c,d){a.o=1;b=b||a.J;c={format:"RAW",method:"GET",Lb:x(a.O,a,c,d||null)};a.N&&(c.timeout=15E3);yj(b,c)}
RH.prototype.O=function(a,b,c){this.K=c.status;if(200<=c.status&&400>c.status){b=c.responseText;c=(new DOMParser).parseFromString(b,"text/xml").getElementsByTagName("MPD")[0];b=c.getElementsByTagName("Representation");if(0<c.getElementsByTagName("SegmentList").length){this.C=1E3*WH(MG(c,"minimumUpdatePeriod"))||Infinity;this.isLive=Infinity>this.C;this.B=!0;this.F=parseInt(MG(c,"yt:earliestMediaSequence"),10);this.A||(this.A=new nH);pH(this.A,c);for(c=0;c<b.length;c++){var d=XH(b[c]);if(!this.j[d.id]){var e=
VH(NG(b[c],"BaseURL").textContent,d),g=NG(b[c],"Initialization"),h=MG(g,"sourceURL"),g=KG(MG(g,"range"));this.j[d.id]=new gH(e,d,h,null===g?void 0:g)}for(var d=this.j[d.id],e=this.A,h=d,g=1,k=h.info.mimeType.split(";"),l=[];0<g&&k.length;)l.push(k.shift()),g--;k.length&&l.push(k.join(";"));g=l[0];h=e.o[h.info.id]||e.k[g]||e.j||null;e=sb(NG(b[c],"SegmentList").getElementsByTagName("SegmentURL"),h.A);h=h.j;g=[];for(k=0;k<e.length;k++)g.push(ZH(e[k],h[k]));d.update(g,this.isLive,this.F)}qH(this.A)}else i:for(this.duration=
WH(MG(c,"mediaPresentationDuration")),c=0;c<b.length;c++){g=b[c];d=XH(g);h=NG(g,"BaseURL");e=VH(h.textContent,d);k=NG(g,"SegmentBase");g=KG(k.attributes.indexRange.value);k=KG(k.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),10);d=new OH(e,d,k,g,h,NaN);if(!d)break i;this.j[d.info.id]=d}this.H=z();this.o=2;this.D=!1;this.k=0;a&&a(this);this.publish("loaded")}else this.o=3,this.D?this.k+=1:this.D=!0,b&&b(c),this.publish("load_error")};
function ZH(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");null!=e&&(0<=parseInt(e.split("-")[1],10)?d=KG(e):c=c+"?range="+e);return new OG(b.k,b.Vg,b.j,c,d)}function xr(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.af();return NaN}function $H(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.It();return 0}function aI(a,b){Eb(a.j,function(a){Eb(b,function(b,e){a.C.j.set(e,b)})})};function bI(a,b,c,d){this.o={};this.K=a;this.H=b;a=c.split("#");this.F=parseInt(a[0],10);this.D=parseInt(a[1],10);this.k=parseInt(a[2],10);this.Cb=parseInt(a[3],10);this.rows=parseInt(a[4],10);this.B=parseInt(a[5],10);this.A=a[6];this.C=a[7];this.J=d}f=bI.prototype;f.getHeight=function(){return this.D};f.Cf=function(){return this.k};f.isDefault=function(){return-1!=this.A.indexOf("default")};
function cI(a,b){var c=a.H,c=c.replace("$N",a.A),c=c.replace("$L",a.K.toString()),c=c.replace("$M",b.toString());a.C&&(c=Ee(c,{sigh:a.C}));return c}function dI(a,b){var c=Math.floor(b/(a.Cb*a.rows)),d=a.Cb*a.rows,e=b%d,g=e%a.Cb,e=Math.floor(e/a.Cb),h=a.rows,k=a.jn()+1-d*c;k<d&&(h=Math.ceil(k/a.Cb));return{url:cI(a,c),mF:g,Cb:a.Cb,row:e,rows:h,mu:a.F*a.Cb,lu:a.D*h}}f.yi=function(a){var b=this.Cf()-1;a=0==this.B?Math.round(a*this.k/this.J):Math.round(1E3*a/this.B);return Fc(a,0,b)};
f.jn=function(){return this.k-1};f.ft=function(){return this.k?0:-1};f.Jt=function(){};function eI(a,b){this.j=this.k(a,b);this.o={};1<this.j.length&&this.j[0].isDefault()&&this.j.splice(0,1)}eI.prototype.k=function(a,b){for(var c=[],d=a.split("|"),e=d[0],g=1;g<d.length;g++){var h=this.A(g-1,e,d[g],b);180>h.getHeight()&&c.push(h)}return c};eI.prototype.A=function(a,b,c,d){return new bI(a,b,c,d)};function fI(a,b){var c=a.o[b];if(c)return c;for(var c=a.j.length,d=0;d<c;d++)if(a.j[d].F>=b)return a.o[b]=d;a.o[b]=c-1;return c-1}eI.prototype.B=function(){};function gI(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");bI.call(this,a,b,c,0);this.j=null;this.G=d?3:0}B(gI,bI);f=gI.prototype;f.Cf=function(){return this.j?this.j.Ft():-1};f.yi=function(a){var b=this.rows*this.Cb*this.G,c=-1,d=-1,e=this.j;e&&(c=e.Gb(),d=e.ih(a));return d>c-b?-1:d};f.jn=function(){return this.j?this.j.Gb():-1};f.ft=function(){return this.j?this.j.Pg():-1};f.Jt=function(a){this.j=a?a.index:null};function hI(a,b){this.C=b;eI.call(this,a,0)}B(hI,eI);hI.prototype.k=function(a,b){return hI.I.k.call(this,"$N|"+a,b)};hI.prototype.A=function(a,b,c){return new gI(a,b,c,this.C.isLive)};hI.prototype.B=function(a){for(var b=0;b<this.j.length;b++)this.j[b].Jt(a)};var iI={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};function jI(a,b,c){b={cpn:b};c&&(b.ibw="1369843");return{url:Ee(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};function kI(a,b){return void 0==b?a:"1"==b?!0:!1}function lI(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function mI(a,b){return void 0==b?a:Number(b)}function nI(a,b){return void 0==b?a:b.toString()}function oI(a,b){var c=nI(a,b);c&&(c=Rf(c));return c}var pI=/^([0-9\.]+)\:([0-9\.]+)$/;function qI(a){if(a&&(a=a.match(pI))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function rI(a,b){var c=rt.auto,d=rt[b];return d>=rt.medium?new st(d,c,!1):d>=c?new st(c,d,!1):a};var sI={YI:0,iI:1,MI:2};function tI(a,b,c){c=c||{};Fj(c.Wa,c.pageId,x(uI,m,a,b,c),c.onError)}
function uI(a,b,c){var d={};0===b?d.action_like_video=1:1===b?d.action_dislike_video=1:d.action_indifferent_video=1;d.video_id=a;d.plid=c.playbackId;c.playlistId&&(d.list=c.playlistId);c.Wa&&(d.authuser=c.Wa);c.pageId&&(d.pageid=c.pageId);a={screen:Ce({h:screen.height,w:screen.width,d:screen.colorDepth})};c.PF&&(a.station_id=c.PF);yj("/watch_actions_ajax",{format:"XML",method:"POST",ze:d,yb:a,$a:c.$a,onError:c.onError,Lb:c.Lb})};function vI(a,b){this.j=a;this.k=b}vI.prototype.clone=function(){return new vI(this.j,this.k)};function wI(a){this.j=[];if(a)t:{var b,c;if(a instanceof wI){if(b=a.Ka(),c=a.La(),0>=a.Qa()){a=this.j;for(var d=0;d<b.length;d++)a.push(new vI(b[d],c[d]));break t}}else b=Mb(a),c=Lb(a);for(d=0;d<b.length;d++)xI(this,b[d],c[d])}}function xI(a,b,c){var d=a.j;d.push(new vI(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}f=wI.prototype;
f.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)jb(a);else{a[0]=a.pop();for(var a=0,b=this.j,d=b.length,e=b[a];a<d>>1;){var g=2*a+1,h=2*a+2,g=h<d&&b[h].j<b[g].j?h:g;if(b[g].j>e.j)break;b[a]=b[g];a=g}b[a]=e}return c.k}};f.La=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].k);return b};f.Ka=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};f.cg=function(a){return db(this.j,function(b){return b.k==a})};f.clone=function(){return new wI(this)};
f.Qa=function(){return this.j.length};f.isEmpty=function(){return ib(this.j)};f.clear=function(){jb(this.j)};function yI(){wI.call(this)}B(yI,wI);function zI(a,b){S.call(this);this.j=a;this.o=new yI;this.B={};this.A=b||""}B(zI,S);zI.prototype.k=!1;function AI(a,b,c){var d;for(c=fI(a.j,c);0<=c;){d=a.j.j[c];if(d=d.o[Math.floor(b/(d.Cb*d.rows))]?dI(d,b):null)return d;c--}return dI(a.j.j[0],b)}function BI(a,b,c){c=fI(a.j,c);for(var d,e;0<=c;c--)if(d=a.j.j[c],e=Math.floor(b/(d.Cb*d.rows)),!d.o[e]){d=a;var g=c,h=g+"-"+e;d.B[h]||(d.B[h]=!0,xI(d.o,g,{hq:g,iq:e}))}CI(a)}
function CI(a){if(!a.k)if(a.o.isEmpty())a.k=!1;else{a.k=!0;var b=a.o.remove(),c=new Image;a.A&&(c.crossOrigin=a.A);c.src=Sf(cI(a.j.j[b.hq],b.iq));c.onload=x(a.C,a,b.hq,b.iq)}}zI.prototype.C=function(a,b){this.k=!1;var c=this.j.j[a];c.o[b]=!0;CI(this);var d,e=c.Cb*c.rows;d=b*e;c=Math.min(d+e-1,c.Cf()-1);d=[d,c];this.publish("l",d[0],d[1])};function rr(a){S.call(this);this.Bq=new I(0,0);this.Fa=this.da=!1;this.Th="";this.Uh=this.ua=!1;this.hb={};this.captionTracks=[];this.wa=[];this.Ue=[];this.V=new qt("und","Default","und",!0);this.Tt=new zv(this.St,5E3,this);R(this,this.Tt);this.H=[];this.A={};this.keywords={};this.B={};DI(this,a)}B(rr,S);rr.D=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;rr.j=1;rr.A=-21;rr.B=18E3;rr.C="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(" ");
rr.k={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};rr.o=["www.youtube.com","manifest.googlevideo.com"];f=rr.prototype;f.adModule=!1;f.adaptiveFormats="";f.lr=null;f.allowEmbed=!0;f.wb=!1;f.mh="";f.Qm="";f.xk=!1;f.Yp=rr.j;f.Lh=null;f.ks=null;f.author="";f.Kh=0;f.ri=!1;f.Gp=3;f.kr=!1;f.kf="";f.ya="";f.contentCheckOk=!1;f.de=0;f.Uk=!1;f.Yh=!1;f.Kk=!1;f.gf=0;f.tf=!1;f.No=!1;f.Jh=0;f.bo=!1;f.kg=!1;f.Do=!0;f.Wh=!1;f.Yl=!1;f.Xl=!1;
f.Va=!1;f.Zl=!1;f.Ok=!1;f.yd=!1;f.yp=!1;f.$l=!1;f.Iy=0;f.lengthSeconds=0;f.jk=0;f.du=!1;f.racyCheckOk=!1;f.Ld=1;f.Kl=ut;f.Kp=0;f.Mk=!1;f.startSeconds=0;f.dk=null;f.Jn=2;f.oi=ut;f.xs=!1;f.$g=!1;f.fe=null;f.title="";f.ge="";f.Yj=null;f.kk="vvt";f.eu=!1;f.Eo=!1;f.clipStart=0;f.clipEnd=Infinity;
function wr(a,b){var c=b||{};c.iv_invideo_url&&(a.mh=Rf(c.iv_invideo_url));c.iv_cta_url&&(a.Qm=Rf(c.iv_cta_url));c.cta_conversion_urls&&(a.jc=c.cta_conversion_urls);a.author=nI(a.author,c.author);a.ri=kI(a.ri,c.cc_asr);var d=c.ttsurl||a.kf;d&&Mf(d)?a.kf=d:a.kf=oI(a.kf,c.ttsurl);c.caption_tracks&&c.caption_audio_tracks&&(EI(a,c.caption_tracks),a.wa=EF(c.caption_audio_tracks),FI(a,c.caption_translation_languages));a.ya=nI(a.ya,c.cpn);a.subscribed=nI(a.subscribed,c.subscribed);a.Jn=lI(a.Jn,c.sentiment,
sI);a.title=nI(a.title,c.title);a.na=nI(a.na,c.ypc_preview);a.du=kI(a.du,c.paygated);a.eu=kI(a.eu,c.requires_purchase);c.keywords&&(a.keywords=GI(c.keywords));c.rvs&&(a.N=EF(c.rvs));a.contentCheckOk=kI(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=kI(a.racyCheckOk,"1"==c.rco);a.C=nI(a.C,c.oauth_token);E(rr.C,function(a){a in c&&(this.A[a]=c[a])},a)}
function DI(a,b){var c=b||{};a.wb="1"!=c.hlsdvr||Vh||Sh&&5>Or?!1:!0;a.xk="1"==c.infringe||"1"==c.muted;a.wd=c.authkey;a.Wa=c.authuser;a.ya||(a.ya=c.cpn||hE());a.qy=z();a.tv=c.t;a.Uk=kI(a.Uk,c.cenchd);a.Yh=kI(a.Yh,c.enable_cardio);a.Kk=kI(a.Kk,c.enable_cardio_before_playback);a.gf=mI(a.gf,c.end||c.endSeconds);a.xa=nI(a.xa,c.itct);a.Do="1"!=c.no_get_video_log;a.Wh="1"==c.tmi;a.Yl=kI(a.Yl,c.noiba);a.Xl="1"==c.livemonitor;a.Va="1"==c.live_playback;a.Zl=kI(a.Zl,c.mdx);a.Ok=kI(a.Ok,c.on3g);a.$l=kI(a.$l,
c.utpsa);for(var d in rr.k){var e=c[d+"_webp"]||c[d];Pf(e)&&(a.hb[rr.k[d]]=e)}a.F=nI(a.F,c.vvt);a.kz=c.osig;a.zo=c.ptchn;a.Ao=c.oid;a.K=c.ptk;a.Bo=c.pltype;a.playbackId=c.plid;a.G=c.eventid;a.ub=c.osid;a.Ou=c.vm;a.Nu=c.of;a.playlistId=nI(a.playlistId,c.list);a.Zo=c.pyv_view_beacon_url;a.Fw=c.pyv_quartile25_beacon_url;a.Gw=c.pyv_quartile50_beacon_url;a.Hw=c.pyv_quartile75_beacon_url;a.Ew=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=
c.ppv_remarketing_url);a.purchaseId=c.purchase_id;a.Jp=c.sdetail;!a.Ja&&c.session_data&&(a.Ja=kj(c.session_data,"&").feature);a.qq=1==mI(a.qq?1:0,c.is_fling);a.vb=nI(a.vb,c.ctrl);a.Fb=nI(a.Fb,c.ytr);a.Nh=c.ytrcc;a.Eo="1"==c.skip_kansas_logging;a.Wb=nI(a.Wb,c.cl);a.Kl=rI(a.Kl,c.vq);a.oi=rI(a.oi,c.suggestedQuality);a.la=c.approx_threed_layout||0;a.xs="1"==c.threed_converted;a.startSeconds=mI(a.startSeconds,c.start||c.startSeconds);a.ao=kI(a.ao,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||a.videoId;
a.$n=nI(a.$n,c.vss_credentials_token);a.kk=nI(a.kk,c.vss_credentials_token_type);HI(a,c.watermark);a.Jo=nI(a.Jo,c.ypc_gid);a.gb=nI(a.gb,c.ypc_license_session_token);a.heartbeatToken=nI(a.heartbeatToken,c.heartbeat_token);a.Mh=mI(a.Mh,c.heartbeat_interval);a.kp=mI(a.kp,c.heartbeat_retries);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.H.push("ad")):"1"!=c.supported_without_ads&&(a.No=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ha=
c.atc);c.license_info&&(a.lr=II(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.autonav&&(a.bo="1"==c.autonav);c.autoplay&&(a.kg="1"==c.autoplay);c.iv_load_policy&&(a.oa=JI(c.iv_load_policy,a.oa));c.cc_load_policy&&(a.Gp=JI(c.cc_load_policy,2));"0"==c.dash&&(a.kr=!0);c.dashmpd&&(a.O=Ee(c.dashmpd,{cpn:a.ya}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O))&&(e=Zs(e[1]),a.O=a.O.replace(d,"/signature/"+e));c.delay&&(a.de=Ta(c.delay));void 0!=c.end&&(a.clipEnd=c.end);c.fresca_preroll&&a.H.push("fresca");
c.idpj&&(a.Jh=Ta(c.idpj));c.url_encoded_fmt_stream_map&&(a.ge=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.R=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Ta(c.length_seconds));c.ldpj&&(a.jk=Ta(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.Yp=KI(a));c.partnerid&&(a.U=Ta(c.partnerid));c.probe_url&&(a.probeUrl=Sf(Ee(c.probe_url,{cpn:a.ya})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(sf)&&(a.ia=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(sf)&&(a.ja=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&
(d=c.video_masthead_ad_quartile_urls,a.Ba=d.quartile_0_url,a.Wo=d.quartile_25_url,a.Xo=d.quartile_50_url,a.Yo=d.quartile_75_url,a.Vo=d.quartile_100_url);c.spacecast_address&&(a.H.push("spacecast"),a.Xa=c.spacecast_address);void 0==c.start||"1"==c.resume||a.Va||(a.clipStart=c.start);c.threed_module&&!c.threed_converted&&(a.ma=c.threed_module,a.wy=6);c.two_stage_token&&(a.Lh=c.two_stage_token);c.url_encoded_third_party_media&&(a.fe=EF(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.ks=c.watch_ajax_token);
c.ypc_module&&a.H.push("ypc");c.ypc_clickwrap_module&&a.H.push("ypc_clickwrap");a.Co=nI(a.Co,c.ucid);E("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.B[a]=c[a])},a);a.B.focEnabled=kI(a.B.focEnabled,c.focEnabled);a.B.rmktEnabled=kI(a.B.rmktEnabled,c.rmktEnabled);a.A=c;wr(a,c);LI(a)}function LI(a){(a.Va||a.Xl)&&"1"==a.A.as3fb||!ru()||a.kr||(a.adaptiveFormats?a.o=UH(MI(a,a.adaptiveFormats),a.lr):a.O&&(a.tf=!0,a.da=!0))}
f.Nz=function(a){this.ea()||(this.o=a,rx("mrc"),this.o&&(this.lengthSeconds=this.o.duration||xr(this.o)||this.lengthSeconds),this.im())};f.im=function(){this.ea()||(this.tf=!1,this.ua&&!NI(this)?this.publish("dataloaderror",new uq("fmt.noneavailable",!0)):this.publish("dataloaded",this.A))};
function DF(a){if(!a.ea()){a.j=null;a.X=null;a.J=null;if(a.$){var b=MI(a,a.$);a.J=uu(b,!1);a.j=new At(F(a.J,function(a){return a.getInfo()}))}!a.j&&a.o&&(a.j=xu(a.o));if(a.j)OI(a);else{if(a.fe&&a.yp)a.J=vu(a.fe);else{b=MI(a,a.ge);if(a.R){var c=jI(a.R,a.ya,-1==a.R.indexOf("/ibw/")&&!a.Ok);b.push(c)}a.J=uu(b,!!a.ma||a.$g)}a.J.length&&(a.j=new At(F(a.J,function(a){return a.getInfo()})))}a.Kp=Math.min(.8*a.lengthSeconds,180)}}function qE(a){return a.k&&a.k.A||null}
f.Bc=function(a){return w(this.keywords[a])?this.keywords[a]:null};function PI(a){a.Yj||(a.A.storyboard_spec?a.Yj=new eI(a.A.storyboard_spec,Ta(a.A.length_seconds)):a.A.live_storyboard_spec&&a.o&&(a.Yj=new hI(a.A.live_storyboard_spec,a.o)));return a.Yj}function QI(a){var b=PI(a);!a.dk&&b&&(a.dk=new zI(b),R(a,a.dk));return a.dk}function zr(a){return a.o&&!isNaN($H(a.o))?$H(a.o):0}function RI(a){return!a.ea()&&!(!a.videoId&&!a.fe)}
function NI(a){return RI(a)&&!a.tf&&!a.da&&(!!(a.o||a.ge||a.fe||a.$||a.R)||H(a.H,"fresca")||H(a.H,"ypc"))}function SI(a,b,c){a.ea()||(a.Th=b,a.ua=!!c,a.tf=!0,a.St())}f.St=function(){yj(this.Th,{format:"RAW",method:"GET",context:this,$a:this.gG,onError:this.vu});rx("vir")};
function oF(a,b){if(30==a.U){var c=a.hb["default.jpg"];return c?c:a.videoId?Ee("//docs.google.com/vt",{id:a.videoId,authuser:a.Wa,authkey:a.wd}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=a.hb[b])||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:fB(a.videoId,b)}f.gG=function(a){if(!this.ea()){var b=a.responseText;b?(this.tf=!1,a=mj(b),"fail"==a.status?this.publish("onStatusFail",a):(rx("virc"),DI(this,a),this.im())):this.vu(a)}};
f.vu=function(a){if(!this.ea()){var b="manifest.net",c=!0,d="rc."+a.status;this.ua&&(this.Uh?b="manifest.net.retryexhausted":(this.Uh=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Tt.start()));this.publish("dataloaderror",new uq(b,c,d))}};function KI(a){return a.perceptualLoudnessDb?(a=Math.min(rr.A-a.perceptualLoudnessDb,0),Math.pow(10,a/20)):rr.j}function JI(a,b){var c=parseInt(a,10);return Kb(Pz,c)?c:b}
function EF(a){a=a.split(",");return a=a.map(function(a){return mj(a)})}function MI(a,b){var c=EF(b);E(c,function(a){a.url&&(a.url=Ee(a.url,{cpn:this.ya}))},a);return c}function GI(a){var b={};E(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}function HI(a,b){if(b){var c=b.split(",");2<=c.length&&(a.W=c[1],Pf(a.W)&&-1==a.W.search(rr.D)||(a.W=""))}}function II(a){a=EF(a);var b={};E(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}
function EI(a,b){for(var c=EF(b),d=0;d<c.length;d++){var e=c[d];a.captionTracks.push(new nt({qH:e.is_translatable,languageCode:e.language_code,languageName:e.name,url:e.base_url,rH:e.vss_id,kind:e.kind}))}}function FI(a,b){for(var c=EF(b),d=0;d<c.length;d++){var e=c[d];a.Ue.push(new mt({languageCode:e.language_code,languageName:e.language_name}))}}
function OI(a){for(var b=a.j?a.j.audioTracks:[],b=b.concat(a.V),c=0;c<a.wa.length;c++)for(var d=a.wa[c],e=0;e<b.length;e++){var g=b[e];if(g.name==d.audio_track_language_name||g==a.V&&"original"==d.audio_content_type){g.languageCode=d.language_code;for(var h=d.caption_track_indices.split(","),k=0;k<h.length;k++)g.captionTracks[k]=a.captionTracks[parseInt(h[k],10)];d.default_caption_track_index&&(g.Ys=a.captionTracks[parseInt(d.default_caption_track_index,10)]);d.forced_caption_track_index&&(g.Mm=a.captionTracks[parseInt(d.forced_caption_track_index,
10)]);g.Js=parseInt(d.visibility,10)}}}function rv(a,b){return!!a.A[b]}function TI(a){return a.Va&&!a.wb}function UI(a){return a.Va&&a.wb};function VI(a){S.call(this);this.views=0;this.j=[];this.k=[];this.Ua=Math.max(0,a.index||0);this.If=!!a.loop;this.startSeconds=a.startSeconds||0;this.Uq="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||"";a.video_id&&(this.j[this.Ua]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);this.A=0;if(a.list)switch(a.listType){case "user_uploads":WI(this,a.list);break;case "user_favorites":XI(this,a.list);break;
case "search":YI(this,a.list);break;default:a.playlist_length&&(this.uc=a.playlist_length),this.o=ME(a.list),0==a.fetch&&a.videoList?ZI(this,a.videoList):$I(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Ua&&(this.j=[]);E(b,function(a){a&&this.j.push({video_id:a})},this);this.uc=this.j.length;b=F(this.j,function(a){return a.video_id});aJ(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.Bd=!0}else a.videoList&&ZI(this,a.videoList);cr(this,!!a.shuffle);
a.suggestedQuality&&(this.quality=a.suggestedQuality)}B(VI,S);f=VI.prototype;f.If=!1;f.startSeconds=0;f.Xr=!1;f.Ua=0;f.title="";f.uc=0;f.Uq=!1;f.Bd=!1;f.sh=!1;f.ce=null;function bJ(a){return a.If||a.Ua+1<a.uc}function cJ(a){var b=a.Ua+1;b>=a.uc&&(b=a.If?0:-1);return b}function dJ(a){var b=cJ(a);if(-1==b)return null;eJ(a,b);return dr(a,b)}function fJ(a){var b;b=a.Ua-1;0>b&&(b=a.If?a.uc-1:-1);if(-1==b)return null;eJ(a,b);return dr(a,a.Ua)}
function dr(a,b){var c=void 0!=b?b:a.Ua,c=a.j&&c in a.j?a.j[a.k[c]]:null,d=null;c&&(d=new rr(c),d.startSeconds=a.startSeconds||d.clipStart||0,a.o&&(d.playlistId=a.o.toString()));return d}
function cr(a,b){a.Xr=b;var c=a.k&&null!=a.k[a.Ua]?a.k[a.Ua]:a.Ua;a.k=[];for(var d=0;d<a.j.length;d++)a.k.push(d);a.Ua=c;a.A++;if(a.Xr){c=a.k[a.Ua];for(d=1;d<a.k.length;d++){var e=Math.floor(Math.random()*(d+1)),g=a.k[d];a.k[d]=a.k[e];a.k[e]=g}for(d=0;d<a.k.length;d++)a.k[d]==c&&(a.Ua=d);a.A++}a.publish("shuffle")}function eJ(a,b){a.Ua=Fc(b,0,a.uc-1);a.startSeconds=0}
function WI(a,b){a.sh||(a.o=new LE("UU","PLAYER_"+b),aJ(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}function XI(a,b){a.sh||(a.o=new LE("FL","PLAYER_"+b),aJ(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function YI(a,b){if(!a.sh){a.o=new LE("SR",b);var c={search_query:b};a.Uq&&(c.mob="1");aJ(a,"/search_ajax?style=json&embeddable=1",c)}}
function $I(a){if(!a.sh){var b={list:a.o},c=dr(a);c&&c.videoId&&(b.v=c.videoId);aJ(a,"/list_ajax?style=json&action_get_list=1",b)}}function aJ(a,b,c){yj(Ee(b,c),{format:"JSON",$a:function(a,b){gJ(this,b)},onError:function(){this.publish("error")},context:a})}
function gJ(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;var c=dr(a);a.j=[];E(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.j.push(a))},a);a.uc=a.j.length;hJ(a,c);cr(a,!1);a.sh=!1;a.Bd=!0;a.A++;a.ce&&a.ce()}}function ZI(a,b){0<a.Ua&&(a.j=[]);E(b,function(a){this.j.push(a)},a);a.uc=a.j.length;a.Bd=!0}
function hJ(a,b){if(b){var c=b.videoId;if(!a.j[a.Ua]||a.j[a.Ua].video_id!=c)for(var d=0;d<a.j.length;d++)if(a.j[d].video_id==c){a.Ua=d;break}}}f.L=function(){this.ce=null;si(this.j);VI.I.L.call(this)};function iJ(){Q.call(this);this.j=[];this.C={};this.o={};this.A={};this.k=this.D=null;this.B=[];this.F=null}B(iJ,Q);iJ.prototype.xr=function(a){if(this.k){var b;var c=ka(a);b=this.C[c];if(!b)if(this.k){if(b=a(this.k)){a=this.C[c]=b;for(var d in this.D)a.subscribe(d,this.D[d]);a.subscribe("command_log_timing",this.G,this);R(this,b)}}else b=null;b&&b.Ea(this.k)&&!H(this.j,b)&&(b.create(),this.j.push(b),H(this.B,b.ta)&&(b.Mb=this.F,b.ej(!!b.Mb)))}};
function jJ(a){a.j=bb(a.j,function(a){if(!this.k||a.Hm(this.k)){try{a.destroy()}catch(c){Gf(c)}return!1}return!0},a)}function kJ(a,b,c){lJ(a);a.F=b;a.B=pb(c);E(a.j,function(a){0<=$a(c,a.ta)&&(a.Mb=b,a.ej(!!a.Mb))})}function lJ(a){E(a.B,function(a){if(a=Rq(this,a))a.Mb=null,a.ej(!1)},a);a.F=null;a.B=[]}function mJ(a,b){if(!b)return F(a.j,function(a){return a.ta});var c=Rq(a,b);return c?c.Wf():[]}function Rq(a,b){return G(a.j,function(a){return a.ta==b})}
iJ.prototype.H=function(a,b){E(this.j,function(c){c.publish(a,b)})};function nJ(a){var b={};E(a.j,function(a){qa(b,a.ah())});return b}iJ.prototype.G=function(a,b){qa(this.A,a||null);qa(this.o,b||null)};iJ.prototype.isAvailable=function(a){a=Rq(this,a);return!(!a||!a.Oi)};function oJ(a,b,c){this.A=b;this.j=c;this.o=a}oJ.prototype.getMessage=function(){return this.A};oJ.prototype.getErrorCode=function(){return this.j};oJ.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.k?" Caused by: "+this.k:"")};function pJ(a,b){Xl.call(this,"adError");this.o=a;this.A=b?b:null}B(pJ,Xl);var qJ="acceptinvitation acceptinvitationlinear click close collapse complete creativeview engagedview exitfullscreen expand firstquartile fullscreen midpoint mute pause progress replay resume rewind skipshown skip start stop thirdquartile unmute userClose videoShareClicked videoShareShown viewable_impression".split(" "),rJ="acceptinvitation click collapse creativeview expand progress close".split(" ");function sJ(a,b,c){Xl.call(this,a);this.A=b;this.o=null!=c?c:null}B(sJ,Xl);sJ.prototype.getAd=function(){return this.A};
var tJ={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",VK:"videoClicked",mI:"engagedview",pI:"expandedChanged",STARTED:"start",Ns:"impression",Ju:"viewable_impression",PAUSED:"pause",YJ:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",RG:"skipshown",nK:"skippableStateChanged",uH:"adMetadata",
tH:"adBreakReady",eJ:"log",VOLUME_CHANGED:"volumeChange",gL:"mute",aI:"companionBackfill",pL:"youTubeVideoMetadata",oL:"youTubeChannelMetadata",TK:"urlNavigationRequested"};var uJ=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"],vJ=/\bocr\b/,wJ=0,xJ={};function yJ(a){return C(D(a))?!1:(new K(a)).$e().match(vJ)?!0:null!=G(uJ,function(b){return null!=a.match(b)})}
function zJ(a){if(a){var b=J("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"});a=ld(b).body;var c,d=fn(function(){xm(c);Gd(b)},15E3);c=vm(b,["load","error"],function(){fn(function(){gn(d);Gd(b)},5E3)});a.appendChild(b)}}function AJ(a){if(a){var b=new Image,c=""+wJ++;xJ[c]=b;b.onload=b.onerror=function(){delete xJ[c]};b.src=a}};var BJ={"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"},CJ=["ADSENSE","ADSENSE/ADX"],DJ=["DART","DART_DFA","DART_DFP"],EJ=["FREEWHEEL"],FJ=["GDFP"],GJ={pJ:"video/mp4",rJ:"video/mpeg",fJ:"application/x-mpegURL",BJ:"video/ogg",AK:"video/3gpp",jL:"video/webm",oJ:"audio/mpeg",qJ:"audio/mp4"};var HJ=["google-developers.appspot.com","devsite.googleplex.com"],IJ=["*.googlesyndication.com"],JJ=["*.youtu.be","*.youtube.com"],KJ="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 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(" "),
LJ=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function MJ(a,b){try{var c=Ye(new K(b)),c=c.replace(/^www./i,"");return db(a,function(a){return NJ(a,c)})}catch(d){return!1}}function NJ(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}
function OJ(a){var b;if(b="https:"==window.location.protocol)b=(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+KJ.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);return b?(a=new K(a),Ke(a,"https"),a.toString()):a};function PJ(a){window.open(OJ(a),"_blank")}function QJ(a,b,c,d){null!=b&&(a=RJ(a,b));null!=c&&(C(D(c))||(b=new K(a),lf(b.j,"label")&&(L(b,"acvw",c),a=b.toString().replace(/%2C/g,","))));a=OJ(a);null!=d&&d?zJ(a):(c=a)&&(yJ(c)?zJ(c):AJ(c))}function SJ(a,b){null!=a&&E(a,function(a){QJ(a,b)})}function RJ(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=Ub(b,a),d=d.toString();if(!C(D(d)))return encodeURIComponent(d).replace(/%2C/g,",")}catch(e){}return a})}
function TJ(a,b,c){if(null==a)return"";L(a,"label",b);null!=c&&L(a,"value",c.join(";"));return a.toString()};function UJ(a,b){this.message=a;this.errorCode=b}UJ.prototype.getErrorCode=function(){return this.errorCode};UJ.prototype.getMessage=function(){return this.message};
var VJ=new UJ("Unable to request ads from server. Cause: {0}.",1005),WJ=new UJ("Unable to request ads from server due to network error.",1012),XJ=new UJ("Cannot parse the {0} value for the adslist response: {1}.",900),YJ=new UJ("Invalid usage of the API. Cause: {0}",900),ZJ=new UJ("Unable to display one or more required companions.",602),$J=new UJ("There was a problem requesting ads from the server.",1005),aK=new UJ("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),
bK=new UJ("The provided ad type: {0} is not supported.",1005),cK=new UJ("The provided {0} information: {1} is invalid.",1101),dK=new UJ("The response does not contain any valid ads.",1009),eK=new UJ("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),fK=new UJ("The ad playlist response was malformed or empty.",1010),gK=new UJ("The ad response was not understood and cannot be parsed.",1010),hK=new UJ("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",
900),iK=new UJ("The ad response contains unexpected element. Cause {0}.",1010),jK=new UJ("No assets were found in the VAST ad response.",200),kK=new UJ("Duplicate node in <{0}>: {1}",101),lK=new UJ("The VAST response document is empty.",1009),mK=new UJ("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),nK=new UJ("Ad request reached a timeout.",301),oK=new UJ("VAST response was malformed and could not be parsed.",100),pK=new UJ("VAST media file loading reached a timeout of {0} seconds.",
402),qK=new UJ("Ad request could not be completed due to a network error.",301),rK=new UJ("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),sK=new UJ("The maximum number of VAST wrappers ({0}) has been reached.",302),tK=new UJ("VAST media file duration differs from the VAST response duration by {0} seconds.",202),uK=new UJ("Video player received an ad with unexpected or incompatible linearity",201),vK=new UJ("Unknown node in <{0}>: {1}",
101),wK=new UJ("Invalid VAST resource type: {0}",101),xK=new UJ("Invalid VAST version",102),yK=new UJ("No additional VAST wrappers allowed.",300),zK=new UJ("No Ads VAST response after one or more Wrappers",303),AK=new UJ("There was an error playing the video ad.",400),BK=new UJ("VMAP unsupported node in <{0}>: {1}",1010),CK=new UJ("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);
function DK(a,b,c){return EK("adLoadError",a,b||null,sb(arguments,2))}function FK(a,b,c){return EK("adPlayError",a,b||null,sb(arguments,2))}function GK(a,b,c,d,e){var g=a.apply(null,ob([c,d],sb(arguments,3)));b.T(new sJ("log",null,g))}function EK(a,b,c,d){if(c instanceof oJ)return c;var e=b.errorCode;b=b.message;if(0<d.length)for(var g=0;g<d.length;g++)b=b.replace(new RegExp("\\{"+g+"\\}","ig"),d[g]);a=new oJ(a,b,e);a.k=c;return a}
function HK(a,b,c,d){var e=FK.apply(null,ob([b,c],sb(arguments,3)));a.T(new pJ(e))};function IK(a){this.j=a}function JK(){var a=KK();return LK(a,"disableExperiments")}function LK(a,b){if(b in a.j){var c=a.j[b];if("boolean"==typeof c)return c}return!1};function MK(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};function NK(){this.k="always";this.B=this.j=!1;this.A=null}function OK(){return PK.B}NK.prototype.getPlayerType=function(){return""};function KK(){var a=PK;if(null==a.A){var b={},c=af(new K(vd().location.href));if(lf(c,"tcnfp"))try{b=Yf(c.get("tcnfp"))}catch(d){}a.A=new IK(b)}return a.A}var PK=new NK;var QK={},RK="",SK=/OS (\S+) like/,TK=/Android (\S+);/;function UK(){return Wc||Ja(Kc,"Mobile")}function VK(){return Xc&&!Yc||Ja(Kc,"iPod")}function WK(){return VK()||Yc}function XK(a,b){if(null==QK[b]){var c=YK(a);c?(c=c.replace(/_/g,"."),QK[b]=0<=Oa(c,b)):QK[b]=!1}return QK[b]}function YK(a){C(RK)&&(a=a.exec(Kc))&&(RK=a[1]);return RK}
function ZK(){var a=Kc;return a?Ja(a,"AppleTV")||Ja(a,"GoogleTV")||Ja(a,"HbbTV")||Ja(a,"NetCast.TV")||Ja(a,"POV_TV")||Ja(a,"SMART-TV")||Ja(a,"SmartTV")||Wc&&Ja(a,"AFT"):!1}function $K(){return Ja(Kc,"PlayStation")}function aL(){return VK()||Wc&&(!Wc||!XK(TK,4))||!OK()&&(Ja(Kc,"CrKey")||$K()||Ja(Kc,"Roku")||ZK()||Ja(Kc,"Xbox"))?!1:!0};function bL(){this.j=.05>Math.random();this.k=Math.floor(4503599627370496*Math.random())}ba(bL);function cL(a,b,c,d){if(a.j||d){c=c||{};c.lid=b;c=dL(a,c);var e=new K("http://pagead2.googlesyndication.com/pagead/gen_204");Eb(c,function(a,b){L(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=eL();Ke(e,a.Hb);QJ(e.toString())}}function dL(a,b){b.id="";var c=eL();b.c=a.k;b.domain=c.mb;return b}function eL(){var a=vd(),b=document;return new K(a.parent==a?a.location.href:b.referrer)};function fL(){}f=fL.prototype;f.oE=!1;f.kt=!1;f.ls=!0;f.baseYouTubeUrl=null;f.bitrate=-1;f.contentId=null;f.aE=!1;f.Bk=!1;f.mimeTypes=null;f.surveyCreativeData=null;f.Aw=!0;f.Lo=!1;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.Bw=!0;f.Ko=!1;f.jp=!1;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.Ck=!1;f.loadVideoTimeout=15E3;var gL={Iu:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",OG:"resume",SKIPPED:"skip",Ju:"viewable_impression",NG:"mute",TG:"unmute",FULLSCREEN:"fullscreen",FG:"exitfullscreen"},hL={UNKNOWN:-1,Iu:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,OG:7,SKIPPED:8,Ju:9,NG:10,TG:11,FULLSCREEN:12,FG:13};function iL(a){try{return!!a&&null!=a.location.href&&mg(a,"foo")}catch(b){return!1}};var jL=document,kL=window;function lL(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){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b}function mL(a){kL.google_image_requests||(kL.google_image_requests=[]);var b=kL.document.createElement("img");b.src=a;kL.google_image_requests.push(b)};function nL(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(null,a[c],c,a)}function oL(a){return"function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a)};var pL=!0,qL={};function rL(a,b,c,d){var e=sL,g,h=pL;try{g=b()}catch(k){try{var l=lL(k);b="";k.fileName&&(b=k.fileName);var p=-1;k.lineNumber&&(p=k.lineNumber);h=e(a,l,b,p,c)}catch(t){try{var v=lL(t);a="";t.fileName&&(a=t.fileName);c=-1;t.lineNumber&&(c=t.lineNumber);sL("pAR",v,a,c,void 0,void 0)}catch(A){tL({context:"mRE",msg:A.toString()+"\n"+(A.stack||"")},void 0)}}if(!h)throw k;}finally{if(d)try{d()}catch(U){}}return g}
function sL(a,b,c,d,e,g){var h={};if(e)try{e(h)}catch(k){}h.context=a;h.msg=b.substring(0,512);c&&(h.file=c);0<d&&(h.line=d.toString());h.url=jL.URL.substring(0,512);h.ref=jL.referrer.substring(0,512);uL(h);tL(h,g);return pL}function tL(a,b){try{if(Math.random()<(b||.01)){var c="/pagead/gen_204?id=jserror"+vL(a),d="http"+("http:"==kL.location.protocol?"":"s")+"://pagead2.googlesyndication.com"+c,d=d.substring(0,2E3);mL(d)}}catch(e){}}function uL(a){var b=a||{};nL(qL,function(a,d){b[d]=kL[a]})}
function wL(a,b,c,d,e){return function(){var g=arguments;return rL(a,function(){return b.apply(c,g)},d,e)}}function xL(a,b){return wL(a,b,void 0,void 0,void 0)}function vL(a){var b="";nL(a,function(a,d){if(0===a||a)b+="&"+d+"="+oL(a)});return b};function yL(){for(var a=kL,b=a,c=0;a!=a.parent;)a=a.parent,c++,iL(a)&&(b=a);return b};var zL=!1,AL="";function BL(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var CL=navigator.plugins["Shockwave Flash"];CL&&(zL=!0,CL.description&&(AL=BL(CL.description)));navigator.plugins["Shockwave Flash 2.0"]&&(zL=!0,AL="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var DL=navigator.mimeTypes["application/x-shockwave-flash"];(zL=DL&&DL.enabledPlugin)&&(AL=BL(DL.enabledPlugin.description))}else try{var EL=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),zL=!0,AL=BL(EL.GetVariable("$version"))}catch(FL){try{EL=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),zL=!0,AL="6.0.21"}catch(GL){try{EL=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),zL=!0,AL=BL(EL.GetVariable("$version"))}catch(HL){}}}var IL=zL,JL=AL;if(jL&&jL.URL)var KL=jL.URL,pL=!(KL&&(0<KL.indexOf("?google_debug")||0<KL.indexOf("&google_debug")));function LL(a,b,c,d){c=wL(d||"osd_or_lidar::"+b,c,void 0,void 0,void 0);a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c);return c};function ML(a,b){var c=a||kL;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new I(-1,-1):b?new I(c.innerWidth,c.innerHeight):sd(c||window)}catch(d){return new I(-12245933,-12245933)}}var NL=0;
function OL(){var a=PL,b=0<=QL?RL()-QL:-1,c=SL?RL()-TL:-1,d=0<=UL?RL()-UL:-1,e;if(79463068==a)return 500;947190538==a?(a=[4E3],e=[250,1E3]):947190541==a?(a=[4E3],e=[100,1E3]):(a=[2E3,4E3],e=[250,500,1E3]);var g=b;-1!=c&&c<b&&(g=c);for(var h,b=0;b<a.length;++b)if(g<a[b]){h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h}var VL=(new Date).getTime(),QL=-1,SL=!1,TL=-1,UL=-1;function RL(){return(new Date).getTime()-VL}
function WL(a){var b=[];Eb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(fa(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});return b.join("&")}function XL(){var a=J("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};function YL(a,b){this.G=a||3E3;this.F=b||3E3;this.k="u";this.B=null;this.j=[];this.C=!1;this.o=-1;this.A=0}function ZL(a,b,c){this.snapshot=a;this.k=b;this.j=c}
function $L(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Oa(JL,"11")&&c)||Pc&&9>$c||0<a.j.length)return!1;try{var d=b.getBoundingClientRect()}catch(e){return!1}var g="DIV"==b.tagName||"INS"==b.tagName,h=ld(b),k=[];if(g){var l=XL(),d=aM(d);E(d,function(a,b){var d=new bM("e",h,c,String(b));this.j.push(d);k.push(x(d.F,d,l,a))},a);Fd(b,l,0)}else d=cM(a,d),E(d,function(a,d){var e=new bM("e",h,c,String(d));this.j.push(e);k.push(x(e.D,e,b,a))},a);var p=!0;E(k,function(a){p=p&&a()});p?(a.k="l",a.B=b,a.C=!g):
(E(a.j,function(a){a.remove()}),a.j=[]);return p}function aM(a){return[new Gc(Math.floor((a.right-a.left)/2),Math.floor((a.bottom-a.top)/2))]}function cM(a,b){var c;try{c=b||a.B.getBoundingClientRect()}catch(d){c=new gg(0,0,0,0)}var e=aM(c);E(e,function(a){a.x+=c.left;a.y+=c.top});return e}function dM(a){if(a.B&&a.C){var b=cM(a);E(b,function(a,b){this.j[b]&&eM(this.j[b],a)},a)}}function fM(a){E(a.j,function(a){a.remove()});a.j=[];a.k="d"}
function gM(a){var b=(new Date).getTime(),c=a.D?b-a.D:0,d=-1;4==a.j.length?(d=F(a.j,function(a){return hM(a,b)}),d=iM(d)):1==a.j.length&&(d=[-1,0,1,2,3,5][hM(a.j[0],b)+1]);a.A=d==a.o?a.A+c:0;c=new ZL(d,a.o,c);a.o=d;a.D=b;jM(a,d);dM(a);return c}function iM(a){var b=Cb(Ib(kM));E(a,function(a){0<=a&&++b[a]});return 4==b[4]?6:3<=b[4]?5:0<b[4]?4:4==b[2]?2:4==b[1]?1:4==b[0]?0:3}function jM(a,b){0==b&&lM(a)?a.k="n":a.k="dlfcrrrr".split("")[b+1]}YL.prototype.getStatus=function(){return this.k};
function lM(a){return"n"==a.k?!0:"l"==a.k&&a.A>=a.F}
function bM(a,b,c,d){this.module=null;this.A=a;this.va="e"==a?String(c)+"~"+String(d):"";this.j=[];this.k=-1;this.B=0;this.o=Cb(Ib(mM));this.G=Cb(Ib(kM));"e"==this.A&&(nM[this.va]=x(this.C,this));Pc?(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="'+oM(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=pM(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a}var kM={QK:-1,LOADING:0,KG:1,EG:2,TI:3,VISIBLE:4},mM={LOADING:0,KG:1,EG:2,HK:3,AJ:4,MK:5,NK:6,LK:7,DJ:8,GK:9},nM={};
function pM(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}var d=oM(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="hidden";e.style.opacity=0;return e}function oM(a,b){var c="//www.gstatic.com/osd/hbt.swf";"e"==a.A&&(c=De("//www.gstatic.com/osd/hbe.swf","id",a.va));b&&(c=De(c,"delay","1"));return c}
bM.prototype.F=function(a,b){if(!this.module)return!1;this.module.style.position="absolute";eM(this,b);var c=!0;try{a.appendChild(this.module)}catch(d){c=!1}return c};bM.prototype.D=function(a,b){if(!this.module||!a.parentNode)return!1;this.module.style.position="fixed";eM(this,b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.module,a.nextSibling)}catch(d){c=!1}return c};function eM(a,b){a.module&&!Hc(b,wg(a.module))&&ug(a.module,b)}
bM.prototype.remove=function(){if(this.module)try{Gd(this.module)}catch(a){}this.module=null};bM.prototype.C=function(a){this.k=a?3:4};
function hM(a,b){if("e"==a.A){var c=null;try{c=a.module.it()}catch(d){}null===c?(c=0,0<a.k&&(c=2)):c=c?3:4;++a.G[c+1];a.k=c}else{var e=Number(b),g=null;try{g=a.module.fc()}catch(h){}qM(a,g,e);c=a.j[a.j.length-1];if(null===g){if(g=e=0,0<a.k||ha(c.Ri))g=e=2}else null===c.Ri||c.Sl>=e?(e=10<=g?4:0,g=0):g>c.Ri?(c=(g-c.Ri)/(e-c.Sl)*1E3,e=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.B&&6==c&&(c=7),g=c):g=e=1;6==a.B&&(--a.o[6],4==g||8==g?++a.o[5]:++a.o[7]);++a.o[g];a.k=e;a.B=g}return a.k}
function qM(a,b,c){var d=c-1E3,e=a.j.length;E(a.j,function(a,b){a.Sl<=d&&(e=Math.min(e,b+1))});var g=a.j.length-e;0<g&&a.j.splice(e,g);a.j.unshift({Ri:b,Sl:c})}q("gteh",wL("osd_or_lidar::gteh_ex",function(a,b){var c=nM[a];ia(c)&&c(b)}),void 0);function rM(a,b,c,d,e,g,h,k,l){this.j=sM.clone();this.o=this.N=0;this.ub=this.vb=this.Fa=-1;this.Ra=[0,0,0,0,0];this.F=[0,0,0,0,0];this.B=[0,0,0,0,0];this.ma=[0,0,0,0,0];this.K=d;this.P=this.Ga=-1;this.O=e;this.ia=function(){};this.Fb=function(){};this.X=this.element=c;this.Ue=0;this.wd=-1;this.U=l||sM;this.C="";this.Uh=null;this.Mh="";this.A={};this.A.le=0;this.A.nt=2;this.A.Fr=3;this.k=this.oa=null;this.ua=!1;this.G=this.hb=this.Xa=null;this.ha=0;this.$=!1;this.na=null;this.Nh=this.xa=this.wa=!1;
this.Th=void 0;this.Wb=!1;this.la=[];this.W=void 0;this.ja=!1;this.D=void 0;this.Ja=0;this.V=-1;this.Ba=this.R=0;this.da=void 0;this.H=0;this.J=!1;this.gb=5==e?.02>Math.random():Boolean(c&&c._tos_);tM(this,a,g)}var sM=new gg(0,0,0,0);
function uM(a,b,c,d,e){if(!(0>a.K)){var g=kL.innerWidth,h=kL.innerHeight,k=new gg(Math.round(kL.mozInnerScreenY),Math.round(kL.mozInnerScreenX+g),Math.round(kL.mozInnerScreenY+h),Math.round(kL.mozInnerScreenX));c=new gg(kL.screenY+d,kL.screenX+c.width,kL.screenY+c.height,kL.screenX);e||(d=new gg(k.top-c.top,k.right-c.left,k.bottom-c.top,k.left-c.left),d.top>a.j.top?a.j=d:(a.j.right=a.j.left+g,a.j.bottom=a.j.top+h),a.N=g*h);vM(a,k,c,b,e,!0)}}
function wM(a,b,c){var d=xM(a,kL&&kL.document);if(d){c||tM(a,kL,!0);var e=Math.floor((a.j.left+a.j.right)/2),g=Math.floor((a.j.top+a.j.bottom)/2),h=td(document),d=d(e-h.x,g-h.y)?.5:0;vM(a,a.j,d,b,c,!0)}}function xM(a,b){yM(a);if(!a.oa){var c=[];E(Mb(a.A),function(a){c[this.A[a]+1]=a},a);var d=c.join(""),d=b&&b[d];a.oa=d&&x(d,b)}return a.oa}function yM(a){a.A.e=-1;a.A.i=6;a.A.n=7;a.A.t=8}
rM.prototype.update=function(a,b,c,d,e){if(0>this.K)return null;c||tM(this,d,e);Boolean(null)&&c&&(d.clearInterval(this.Xa),this.Xa=null);Boolean(null)&&c&&(d.clearInterval(this.hb),this.hb=null);null!=this.na&&(c?(d.clearInterval(this.G),this.G=null,this.$=!1):this.wa&&!this.G&&(this.G=d.setInterval(xL("osd_or_lidar::adblock::iem_int",x(this.jc,this,d,1E3)),1E3),this.jc(d)));return vM(this,this.j,b,a,c,!1)};
function vM(a,b,c,d,e,g){var h=d-a.K||1,k=null;ha(c)?b=zM(a,c):(k=c,b=zM(a,b,k));a.W||AM(a,b,h,a.Ga,g,e,k,void 0);a.Ga=e?-1:b;a.K=d;-1!=b&&(0>a.Fa&&(a.Fa=d),a.ub=d);-1==a.vb&&1E3<=Math.max(a.B[2],a.F[2])&&(a.vb=d);a.ia(a,k||sM);return a.o}
function zM(a,b,c){if(a.J&&7==a.O)return a.o=1,BM(a.o);var d=null;if(ha(b))a.o=b;else{c=new gg(Math.max(b.top,c.top),Math.min(b.right,c.right),Math.min(b.bottom,c.bottom),Math.max(b.left,c.left));if(0>=a.N||c.top>=c.bottom||c.left>=c.right)return a.o=0,-1;var d=c.clone(),e=-b.left;b=-b.top;e instanceof Gc?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,ha(b)&&(d.top+=b,d.bottom+=b));d=(c.bottom-c.top)*(c.right-c.left);a.o=d/a.N}return BM(a.o)}
function BM(a){var b=-1;1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.25<=a?b=3:0<a&&(b=4);return b}
function AM(a,b,c,d,e,g,h,k){e=e&&-1!=d&&2>=d;var l=-1==d||-1==b?-1:Math.max(d,b);d=e?l:d;-1!=d&&(a.Ra[d]+=c);(h=h||null)?(-1!=d&&2>=d&&-1!=a.P&&(a.ma[a.P]+=c),h=100*a.N/((h.bottom-h.top)*(h.right-h.left)),a.P=20<=h?0:10<=h?1:5<=h?2:2.5<=h?3:4):a.P=-1;if(7==a.O){k=n(k)?k:CM(a);h=-1!=d&&2>=d;!h&&n(a.da)&&0<a.da&&(a.R+=c);a.R>a.Ba&&(a.Ba=a.R);if(h||!n(k)||0>=k)a.R=0;a.da=n(k)?(1E3*k|0)/1E3:k}for(k=d;0<=k&&4>=k;k++)a.B[k]+=c,a.B[k]>a.F[k]&&(a.F[k]=a.B[k]);for(k=0;k<a.B.length;++k)if(k<b||g||-1==b)a.B[k]=
0}function DM(a,b,c){if(!Boolean(Boolean(a.X&&!!c&&!Vh)&&!Vh))return a.ua=!0,!1;var d=new YL;(c=$L(d,a.X,c))?(a.Fb=b,a.k=d):a.ua=!0;return c}
rM.prototype.jc=function(a,b){var c=xM(this,a&&a.document);if(c){tM(this,a,!0);var d=Math.floor((this.j.left+this.j.right)/2),e=Math.floor((this.j.top+this.j.bottom)/2),g=td(document),c=Boolean(c(d-g.x,e-g.y)),d=b||0;c?(this.ha+=this.$?d:0,this.$=!0):(this.ha=0,this.$=!1);1E3<=this.ha&&(a.clearInterval(this.G),this.G=null,this.wa=!1,this.na="v");tM(this,a,!1)}else a.clearInterval(this.G),this.G=null,this.wa=!1,this.na="i"};
function tM(a,b,c){b=c?b:b.top;try{var d=sM.clone(),e=new Gc(0,0);a.X&&(d=a.X.getBoundingClientRect(),c||!b.frameElement)&&(e=Bg(a.X,b));var g=d.right-d.left,h=d.bottom-d.top,k=e.x+a.U.left,l=e.y+a.U.top,p=a.U.right||g,t=a.U.bottom||h;a.j=new gg(Math.round(l),Math.round(k+p),Math.round(l+t),Math.round(k))}catch(v){a.j=a.U}finally{a.A.Po=5,a.A.me=1,a.A.om=4}a.N=(a.j.bottom-a.j.top)*(a.j.right-a.j.left);a.Nh=2!=a.O&&3!=a.O&&6!=a.O||0!=a.N?!1:!0}
function EM(a,b){var c=a.Ja;SL||a.W||-1==a.V||(c+=b-a.V);return c}function CM(a){if("as"==a.D&&ia(a.element.sdkVolume))try{return Number(a.element.sdkVolume())}catch(b){return-1}if("h"==a.D){var c=r("ima.common.sdkVolume");if(ia(c))try{return Number(c(a.C))}catch(d){return-1}}}function FM(a,b){qb(a.la,Cb(b-a.la.length+1));a.la[b]=(100*a.o|0)/100}
function GM(a){if(a.xa)return{"if":0};var b=a.j.clone();b.round();var c=F(a.la,function(a){return 100*a|0}),b={"if":HM?1:void 0,sdk:a.D?a.D:void 0,p:[b.top,b.left,b.bottom,b.right],tos:a.Ra,mtos:a.F,ps:void 0,pt:c,vht:EM(a,RL()),mut:a.Ba,a:a.da};IM&&(b.ps=[IM.width,IM.height]);a.ja&&(b.ven="1");a.H&&(b.vds=a.H);JM()?b.c=(100*a.o|0)/100:b.tth=RL()-NL;return b};function KM(){return!LM()&&(Nc("iPod")||Nc("iPhone")||Nc("Android")||Nc("IEMobile"))}function LM(){return Nc("iPad")||Nc("Android")&&!Nc("Mobile")||Nc("Silk")};var MM=null,NM=null,OM=null,PM=!1,PL=void 0;function QM(){if(!PM){PM=!0;MM=MM||LL(kL,"scroll",RM,"osd_or_lidar::scroll");NM=NM||LL(kL,"resize",SM,"osd_or_lidar::resize");var a=TM,b;jL.mozVisibilityState?b="mozvisibilitychange":jL.webkitVisibilityState?b="webkitvisibilitychange":jL.visibilityState&&(b="visibilitychange");b&&(OM=OM||LL(jL,b,a,"osd_or_lidar::visibility"));TM()}}function SM(){UM(!1);RM()}function RM(){VM(WM,!1)}
function XM(){var a;YM&&(ZM=ML(kL,YM));a=ZM;var b=$M,c=aN;if(bN){a=b;UM(!1);var d=cN,e=d.height-a;0>=e&&(e=d.height,a=0);ZM=new I(d.width,e);e=new dN;e.C=!0;e.A=ZM;e.o=d;e.k=a;return e}if(c)return a=new dN,a.B=!0,a;if(gN)return a=new dN,a.D=!0,a;if(hN)return a=new dN,a.G=!0,a;t:{b=new dN;b.A=a;b.j=!1;if(null!=a&&-1!=a.width&&-1!=a.height&&-12245933!=a.width&&-12245933!=a.height){try{var c=YM,g=kL||kL,g=g.top,e=a||ML(g,c),h=ce(jd(g.document)),d=-1==e.width||-12245933==e.width?new gg(e.width,e.width,
e.width,e.width):new gg(h.y,h.x+e.width,h.y+e.height,h.x)}catch(k){a=b;break t}b.F=d;b.j=!0}a=b}return a}
function VM(a,b){var c;if(!iN)if(window.clearTimeout(jN),jN=null,0==a.length)b||kN();else{var d=XM();try{var e=RL();if(d.C)for(c=0;c<a.length;c++)uM(a[c],e,d.o,d.k,b);else if(d.B)for(c=0;c<a.length;c++)wM(a[c],e,b);else if(hN)E(a,function(){});else if(d.D)E(a,function(a){if(b){if(a.k){var c=a.k;3<=c.o&&(c.o=3);a.Ga=-1}}else if(a.k&&"d"!=a.k.getStatus()){var c=gM(a.k),d=[-1,-1,-1,-1,-1,4,2,0],e=d[c.snapshot+1];AM(a,e,c.j,d[c.k+1],!0,!1);a.Ga=e;a.ia(a,sM);7==a.O?2E3<=Math.max(a.B[2],a.F[2])&&a.k&&fM(a.k):
1E3<=Math.max(a.B[2],a.F[2])&&!a.gb&&a.k&&fM(a.k);(c=2==c.snapshot||lM(a.k))||(c=a.k,c="f"==c.k&&c.A>=c.G);c&&(a.Fb(a),a.gb=!1,a.k&&fM(a.k))}});else if(d.j)for(c=0;c<a.length;c++)a[c].update(e,d.F,b,kL,HM);++lN}finally{b?E(a,function(a){a.o=0}):kN()}}}function TM(){var a=JM();if(a){if(!SL){var b=RL();TL=b;E(WM,function(a){a.Ja=EM(a,b)})}SL=!0;UM(!0)}else b=RL(),SL=!1,NL=b,E(WM,function(a){0<=a.K&&(a.V=b)});VM(WM,!a)}
function JM(){if(mN())return!0;var a;a=kL.document;a={visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0;return 1==a||0==a}function kN(){kL&&(jN=kL.setTimeout(xL("osd_or_lidar::psamp_to",function(){VM(WM,!1)}),OL()))}function nN(a){return null!=G(WM,function(b){return b.element==a})}var WM=[],iN=!1,ZM=null,cN=null,IM=null,jN=null,HM=!iL(kL.top),$M=0,bN=!1,aN=!1,gN=!1,hN=!1,YM=LM()||KM(),lN=0;
function oN(){var a=kL.document;return a.body&&a.body.getBoundingClientRect?!0:!1}
function UM(a){ZM=ML(kL,YM);if(!a){cN=kL.outerWidth?new I(kL.outerWidth,kL.outerHeight):new I(-12245933,-12245933);a=kL;a.top!=a&&(a=a.top);var b=0,c=0,d=ZM;try{var e=a.document,g=e.body,h=e.documentElement;if("CSS1Compat"==e.compatMode&&h.scrollHeight)b=h.scrollHeight!=d.height?h.scrollHeight:h.offsetHeight,c=h.scrollWidth!=d.width?h.scrollWidth:h.offsetWidth;else{var k=h.scrollHeight,l=h.scrollWidth,p=h.offsetHeight,t=h.offsetWidth;h.clientHeight!=p&&(k=g.scrollHeight,l=g.scrollWidth,p=g.offsetHeight,
t=g.offsetWidth);k>d.height?k>p?(b=k,c=l):(b=p,c=t):k<p?(b=k,c=l):(b=p,c=t)}IM=new I(c,b)}catch(v){IM=new I(-12245933,-12245933)}}}function pN(){var a=qN,b=!1;E(WM,function(c,d){if(1>Math.random()){var e=DM(c,a,String(d));b=b||e}});(gN=b)&&E(WM,function(b){Boolean(b.k)||a(b)});return b}function rN(a){E(a,function(a){nN(a.element)||WM.push(a)})}function mN(){return db(WM,function(a){return a.J})}function dN(){this.o=this.A=null;this.k=0;this.F=null;this.j=this.G=this.D=this.B=this.C=!1};function sN(a,b){return a.dataset?b in a.dataset?a.dataset[b]:null:a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())};var tN=null,uN="",vN=!1;function wN(){var a=tN||kL;if(!a)return"";var b=a.document,c=[];c.push("url="+oL(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+oL(b.referrer.substring(0,512)));b=a.location&&a.location.ancestorOrigins;if(HM&&b&&0<b.length){for(var d=[],a=b.length,e=a-1;0<=e;--e)d.push(oL(b[e]));b=d.join(",");b=b.substring(0,512);c.push("adep="+a);c.push("anc="+b)}return c.join("&")};var xN=!1,yN=!1;function zN(){xN=!0;try{QL=RL(),tN=yL(),UM(!1),oN()?(window.setTimeout(function(){},1),HM?AN():QM()):vN=!0}catch(a){throw WM=[],a;}}
function AN(){var a;if(Qc&&ha(kL.screenX)&&ha(kL.mozInnerScreenX)&&ha(kL.outerWidth)&&1>Math.random()){var b=kL.navigator.userAgent,c=b.indexOf("Firefox/");a=-1;if(0<=c){a=Math.floor(b.substr(c+8))||-1;var d=b.indexOf("Mac OS X 10."),c=-1;0<=d&&(c=Number(b.substr(d+12,1))||-1);var e=0<c?-1:b.indexOf("Windows NT "),d=-1;0<=e&&(d={"6.0":0,"6.1":1,"6.2":2}[b.substr(e+11,3)]||-1);b=148;5<=c?b=4<=a?108:3<=a?127:108:0<=d&&(16==a||17==a||18==a)&&(b=[[146,146,146],[148,147,148],[131,130,136]][d][a-16]);a=
b}else a=null;null!==a&&($M=a,bN=!0);a=!0}else a=!1;a?QM():(a=Pc&&bd(8)&&1>Math.random()?aN=!0:!1,a?QM():pN()?(QM(),yN=!0):(window.clearTimeout(jN),jN=null,uN="i",iN=!0))}function qN(a){if(a){if(!a.Wb){var b=[];b.push("v=252v");b.push("r=fp");b.push("efm="+(yN?1:0));b.push(Ce(GM(a)));b.push(wN());b="&"+b.join("&");mL(("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3));a.Wb=!0}a.xa=!0}}
function BN(a,b,c){var d={};Zb(d,{opt_videoAdElement:void 0,opt_VideoAdLength:void 0,opt_fullscreen:void 0,opt_nativeMobile:!1},c||{});var e=a.toLowerCase();if(a=Ob(gL,function(a){return a==e})){a={e:hL[a],hd:iN?"1":"0",v:"252v",hdr:uN||void 0};if(d.opt_offset)return a.msg="ol",WL(a);if(vN)return a.msg="ue",WL(a);b=CN(b,d);if(!b)return a.msg="nf",WL(a);xN||zN();"i"==uN&&(b.xa=!0);c=d.opt_fullscreen;n(c)&&(b.J=Boolean(c));c={};c.start=DN;c.firstquartile=EN;c.midpoint=FN;c.thirdquartile=GN;c.complete=
HN;c.metric=IN;c.pause=JN;c.resume=KN;c.skip=LN;c.viewable_impression=IN;c.mute=MN;c.unmute=NN;c.fullscreen=ON;c.exitfullscreen=PN;if(c=c[e]){d=c(b,d);if(!n(d)||w(d))return d;Zb(a,d);return WL(a)}}}function DN(a,b){"i"!=uN&&(iN=!1);!yN||Boolean(a.k)||a.ua||DM(a,qN,String($a(WM,a)));QN(a,b);FM(a,0);return GM(a)}function EN(a){FM(a,1);VM([a],!JM());return GM(a)}function FN(a){FM(a,2);VM([a],!JM());return GM(a)}function GN(a){FM(a,3);VM([a],!JM());return GM(a)}
function HN(a){FM(a,4);VM([a],!JM());var b=GM(a);a.J=!1;RN(a.C);return b}function JN(a){a.Ja=EM(a,RL());var b=!JM();VM([a],b);a.W=!0;return GM(a)}function KN(a){var b=JM();a.W&&!b&&(a.V=RL());VM([a],!b);a.W=!1;return GM(a)}function IN(a){return GM(a)}function LN(a){var b=!JM();VM([a],b);b=GM(a);a.J=!1;RN(a.C);return b}function MN(a){VM([a],!JM());return GM(a)}function NN(a){VM([a],!JM());return GM(a)}function ON(a){a.J=!0;VM([a],!JM());return GM(a)}
function PN(a){a.J=!1;VM([a],!JM());return GM(a)}function QN(a,b){b&&b.opt_VideoAdLength&&(a.Th=b.opt_VideoAdLength);var c=RL();UL=c;a.Ra=[0,0,0,0,0];a.F=[0,0,0,0,0];a.B=[0,0,0,0,0];a.ma=[0,0,0,0,0];a.K=-1;a.Fa=-1;a.ub=-1;a.Ue=0;a.wd=-1;a.Ga=-1;a.P=-1;a.o=0;a.K=c;var d=!1;JM()||(d=!0,a.V=c);VM([a],d)}function RN(a){if(w(a)){var b=fb(WM,function(b){return b.C==a});0<=b&&mb(WM,b)}}
function CN(a,b){if(b.opt_nativeMobile)return SN(a,b);if(b.opt_videoAdElement)return TN(a,b.opt_videoAdElement);var c=UN(a);return c?c:c=G(WM,function(b){return b.C==a})}function SN(a,b){var c=G(WM,function(b){return b.C==a});c||(c=new rM(window,0,null,b.opt_nativeTime,7,!1),c.D="n",c.ia=VN,rN([c]),c.C=a);return c}function TN(a,b){var c=G(WM,function(a){return a.element==b});c||(c=WN(b),c.C=a,c.D="h");return c}
function UN(a){var b=G(WM,function(b){return b.element?XN(b.element)==a:!1});if(b)return b;b=YN();b=G(b,function(b){return XN(b)==a});if(!b)return null;b=WN(b);b.D="as";ZN(b);return b}function ZN(a){var b=XN(a.element);w(b)&&(a.C=b)}function YN(){var a=kL.document,b=Db(F(["embed","object"],function(b){return pb(a.getElementsByTagName(b))}));return b=bb(b,function(a){if(!a||!Ld(a))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a.metricID&&ia(a.metricID)?!0:!1})}
function XN(a){if(!a||!a.metricID||!ia(a.metricID))return null;var b;try{b=a.metricID()}catch(c){return null}return b.queryID}
function WN(a){var b=RL();sN(a,"admeta")||sN(a,"admetaDfp");var c=sN(a,"ord")||"",d;t:if(c){d=kL.document.getElementsByTagName("script");for(var c=new RegExp(".doubleclick.net/(N.+/)?(pf)?(ad[ijx])/.*;ord="+Ka(c)),e=0;e<d.length;e++){var g=d[e];if(g&&g.src&&c.test(g.src)){d=g.src;break t}}d=kL!=kL.top&&c.test(kL.location.href)?kL.location.href:""}else d="";a=new rM(kL,0,a,b,7,HM);b=d.match(/.doubleclick.net\/(N.+\/)?(pf)?(ad[ijx])\//);a.Uh=b?{adi:"adi",adj:"adj",adx:"adx"}[b[3]]:"";if(d){t:{if(d&&
(b=d.match(/\/\/.*(;u=xb[^;\?]*)/i))&&(b=b[b.length-1].split("="))&&2==b.length){b=b[1];break t}b=null}a.Mh=b}a.ia=VN;rN([a]);QM();return a}function VN(a){if(2E3<=Math.max(a.B[2],a.F[2])&&!a.ja){var b="as"==a.D,c="h"==a.D,d="n"==a.D,e=r("ima.common.triggerViewEvent"),g=GM(a);g.e=9;try{var h=WL(g);c||d?ia(e)?(e(a.C,h),a.ja=!0):a.H=4:b?a.element&&a.element.triggerViewEvent?(a.element.triggerViewEvent(h),a.ja=!0):a.H=1:a.H=5}catch(k){a.H=a.H||2}}else a.H=3}
q("Goog_AdSense_Lidar_startMetricMeasurement",wL("lidar::startmm_ex",function(a,b){var c=b||{};if(!w(a)){var d=CN(a,c);d&&QN(d,c)}}),void 0);q("Goog_AdSense_Lidar_stopMetricMeasurement",wL("lidar::stopmm_ex",RN),void 0);q("Goog_AdSense_Lidar_getMetric",wL("lidar::getmetric_ex",function(a){var b=G(WM,function(b){return b.C===a});if(!b)return"-1";var c={xsj:b.Ra,mkdj:b.F};JM()?c.c7=(100*b.o|0)/100:c.ftr=RL()-NL;return $f(c)}),void 0);
q("Goog_AdSense_Lidar_sendVastMessage",wL("lidar::handlevast_ex",BN),void 0);function $N(){T.call(this);this.j=null;this.A=new ln(this);R(this,this.A);this.B=null;this.F=new je;this.D=new je;this.o=null;this.k=!1}B($N,T);var aO=null;function bO(){null!=aO||(aO=new $N);return aO}$N.prototype.destroy=function(){this.A.Aa(this.j,"activityMonitor",this.C);this.k=!1};$N.prototype.init=function(a){this.k||((this.j=a||null)&&this.A.listen(this.j,"activityMonitor",this.C),this.k=!0)};
function cO(a){if(null==a)return!1;if(VK()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=dO(a);return 0>=b-a.width&&42>=c-a.height}function dO(a){return ia(a.getBoundingClientRect)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}}function eO(a,b){a.o=b}
function fO(a,b,c,d,e){if(a.k){e=e||{};if(d=d?a.D.get(d):PK.o)null!=e.opt_fullscreen||(e.opt_fullscreen=cO(d)),null!=e.opt_videoAdElement||(e.opt_videoAdElement=d);null==e.opt_offset&&a.o&&(e.opt_offset=dO(a.o));return BN(b,c,e)||""}return""}
$N.prototype.C=function(a){var b=a.md,c=b.queryId,d={};d.timeoutId=b.timeoutId;switch(a.vc){case "getViewability":d.viewabilityString=fO(this,"metric",c)||"";this.j.send("activityMonitor","viewability",d);break;case "reportVastEvent":a=b.vastEvent;var e=b.osdId,g={};g.opt_fullscreen=b.isFullscreen;b.isOverlay&&(g.opt_offset=b.overlayOffset);d.viewabilityString=fO(this,a,c,e,g);this.j.send("activityMonitor","viewability",d)}};
q("ima.common.sdkVolume",function(a){var b=bO();a=b.F.get(a)||b.B;return null!=a?a():-1},void 0);q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d;(d=bO().j)?d.send("activityMonitor","viewableImpression",c):bO().T(new sJ("viewable_impression",null,c))},void 0);function gO(a,b,c){if(ib(a))return null;a=bb(a,function(a){var b=a.A;return"application/x-mpegurl"==D(a.j).toLowerCase()||"progressive"==b});ib(c)||(c=F(c,function(a){return a.toLowerCase()}),a=bb(a,function(a){return H(c,D(a.j).toLowerCase())}));if(!ha(b)||0>=b)b=KM()?500:1E3;return hO(a,b)}function hO(a,b){return iO(a,b)||jO(a,b)||kO(a,b)}function iO(a,b){var c=null;E(a,function(a){var e=a.Ge,g=a.Sd;e>b||g<b||!(null==c||c.Ge>e)||(c=a)});return c}
function jO(a,b){var c=null;E(a,function(a){var e=a.Ge,g=a.Sd;g>b||(null==c||c.Sd<g?c=a:null!=c&&c.Sd==g&&c.Ge>e&&(c=a))});return c}function kO(a,b){var c=null;E(a,function(a){var e=a.Ge,g=a.Sd;if(!(e<b))if(null!=c&&c.Ge==e&&c.Sd<g)c=a;else if(null==c||c.Ge>e)c=a});return c};function lO(){T.call(this);this.C=this.F=this.H=this.D=!1;this.k=0;this.A=[];this.J=!1;this.o=0;this.B=new ln(this);this.G={}}B(lO,T);function mO(a,b){null==b||a.D||(a.j=b,nO(a),a.D=!0)}function oO(a){null!=a.j&&a.D&&(pO(a),a.D=!1,a.F=!1,a.C=!1,a.k=0,a.A=[],a.J=!1)}
function nO(a){pO(a);!(a.j instanceof T)&&"ontouchstart"in document.documentElement&&WK()?(a.G={touchstart:x(a.TD,a),touchmove:x(a.SD,a),touchend:x(a.RD,a)},Eb(a.G,function(a,c){this.j.addEventListener(c,a,!1)},a)):a.B.listen(a.j,"click",a.ct)}function pO(a){a.B.Aa(a.j,"click",a.ct);Eb(a.G,function(a,c){this.j.removeEventListener(c,a,!1)},a);a.G={}}f=lO.prototype;
f.TD=function(a){this.F=!0;this.k=a.touches.length;this.o&&(window.clearTimeout(this.o),this.o=0,this.H=!0);this.J=qO(this,a.touches)||1!=a.touches.length;rO(this,a.touches)};f.SD=function(a){this.k=a.touches.length;this.C=!0};f.RD=function(a){!this.F||1!=this.k||this.C||this.H||this.J||!qO(this,a.changedTouches)||(this.o=window.setTimeout(x(this.Cs,this),300));this.k=a.touches.length;0==this.k&&(this.C=this.F=!1,this.A=[]);this.H=!1};f.ct=function(){this.Cs()};
function rO(a,b){a.A=[];E(b,function(a){kb(this.A,a.identifier)},a)}function qO(a,b){return db(b,function(a){return H(this.A,a.identifier)},a)}f.Cs=function(){this.o=0;this.T(new Xl("click"))};f.L=function(){oO(this);this.B.dispose();this.B=null;lO.I.L.call(this)};function sO(a,b,c,d,e,g,h,k,l){this.A=a;this.j=b;isNaN(c)&&isNaN(d)&&isNaN(e)?e=d=0:isNaN(d)&&!isNaN(e)?d=e:!isNaN(d)&&isNaN(e)?e=d:!isNaN(c)&&isNaN(d)&&isNaN(e)&&(d=e=c);this.Ge=d;this.Sd=e;this.B=h;this.k=k;this.o=l}sO.prototype.getHeight=function(){return this.B};function tO(){T.call(this)}B(tO,T);var uO={KH:"beginFullscreen",CLICK:"click",jI:"end",lI:"endFullscreen",ERROR:"error",hJ:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",mK:"skip",RG:"skipShown",Iu:"start",CK:"timeUpdate",BK:"timedMetadata",fL:"volumeChange"};tO.prototype.gr=u;tO.prototype.Ef=function(){return null};function vO(a){T.call(this);this.j=a;this.N=new Dm(4);this.A=0;this.K=this.o=this.F=!1;this.H=this.ug();this.G=this.ie();this.O=15E3;this.J=!1}B(vO,tO);f=vO.prototype;
f.Rq=function(a,b,c){a=bb(a,function(a){var b=a.j;C(D(a.k))||"progressive"!=a.A&&"application/x-mpegurl"!=D(b).toLowerCase()?a=!1:(b=D(b).toLowerCase(),a=C(b)||Wc&&XK(TK,2.3)&&-1!=b.indexOf("application/ogg")?!1:Wc&&(-1!=b.indexOf("video/mp4")||-1!=b.indexOf("video/3gpp"))||WK()&&(-1!=b.indexOf("application/x-mpegurl")||-1!=b.indexOf("application/vnd.apple.mpegurl"))?!0:!C(this.j.canPlayType(b)));return a},this);return gO(a,b,c)};
f.Am=function(){return bb(Lb(GJ),function(a){return!C(this.j.canPlayType(a))},this)};f.Ek=function(a){this.O=0<a.rb?a.rb:15E3};f.load=function(a){wO(this);this.j.src=a;this.j.load()};f.getVideoUrl=function(){return this.j.src};f.setVolume=function(a){this.j.volume=a};f.ed=function(){return this.j.volume};f.play=function(){this.J=!1;fn(this.j.play,0,this.j);this.P=fn(this.nE,this.O,this)};f.pause=function(){this.J=!0;this.j.pause()};
f.Lg=function(){return this.j.paused?WK()||Uh?this.j.currentTime<this.j.duration:!0:!1};f.Ng=function(){return this.j.muted};f.gn=function(){VK()&&this.j.webkitDisplayingFullscreen&&this.j.webkitExitFullscreen()};f.ie=function(){return cO(this.j)};f.gh=function(a){var b;t:{for(b=this.N.La();b.length;){var c=b.pop();if(0<c){b=c;break t}}b=-1}return b>=a};f.Hf=function(a){this.j.currentTime=a};f.getCurrentTime=function(){return this.j.currentTime};f.Or=function(){return xO(this)};
f.ad=function(){return isNaN(this.j.duration)?-1:this.j.duration};f.ve=function(){return this.j.ended};f.ug=function(){return new I(this.j.offsetWidth,this.j.offsetHeight)};f.Yr=function(){return this.j.seeking};f.L=function(){this.sf();this.j=null;vO.I.L.call(this)};f.Gt=function(){return this.j.error};
f.ai=function(){this.sf();this.k=new ln(this);this.k.listen(this.j,"canplay",this.aC);this.k.listen(this.j,"ended",this.XB);this.k.listen(this.j,"webkitbeginfullscreen",this.Wl);this.k.listen(this.j,"webkitendfullscreen",this.nr);this.k.listen(this.j,"pause",this.ZB);this.k.listen(this.j,"playing",this.bC);this.k.listen(this.j,"timeupdate",this.cC);this.k.listen(this.j,"volumechange",this.$B);this.k.listen(this.j,"error",this.Rp);this.C=new lO;this.k.listen(this.C,"click",this.WB);mO(this.C,this.j);
this.D=new dn(1E3);this.k.listen(this.D,"tick",this.YB);this.D.start()};f.sf=function(){null!=this.C&&(oO(this.C),this.C=null);null!=this.D&&this.D.dispose();null!=this.k&&(this.k.dispose(),this.k=null);wO(this)};function wO(a){a.o=!1;a.F=!1;a.A=0;a.K=!1;a.N.clear();gn(a.P);qi(a.B)}function yO(a){a.o||(a.o=!0,gn(a.P),a.T("start"),aL()||!Wc||Wc&&XK(TK,3)||VK()&&(!WK()||!XK(SK,4))||a.Wl())}
f.aC=function(){var a;if(a=Vh)a=Kc,a=!(a&&(Ja(a,"SMART-TV")||Ja(a,"SmartTV")));a&&!this.K&&(this.Hf(.001),this.K=!0)};f.bC=function(){this.T("play");WK()||Th||yO(this)};f.cC=function(){if(!this.o&&(WK()||Th)){if(0>=this.getCurrentTime())return;if(Th&&this.ve()&&1==this.ad()){this.Rp();return}yO(this)}if(WK()){if(1.5<this.getCurrentTime()-this.A){this.F=!0;this.Hf(this.A);return}this.F=!1;this.getCurrentTime()>this.A&&(this.A=this.getCurrentTime())}this.N.add(this.j.currentTime);this.T("timeUpdate")};
f.$B=function(){this.T("volumeChange")};f.ZB=function(){var a;this.o&&WK()&&!this.J&&2>xO(this)-this.j.currentTime?(this.B=new dn(250),this.k.listen(this.B,"tick",this.tA),this.B.start(),a=!0):a=!1;a||this.T("pause")};f.XB=function(){var a=!0;WK()&&(a=this.A>=this.j.duration-1.5);!this.F&&a&&this.T("end")};f.Wl=function(){this.T("beginFullscreen")};f.nr=function(){this.T("endFullscreen")};f.Rp=function(){gn(this.P);this.T("error")};f.WB=function(){this.T("click")};
f.YB=function(){var a=this.ug(),b=this.ie();if(a.width!=this.H.width||a.height!=this.H.height)!this.G&&b?this.Wl():this.G&&!b&&this.nr(),this.H=a,this.G=b};f.nE=function(){if(!this.o){try{cL(bL.getInstance(),16)}catch(a){}wO(this);this.T("mediaLoadTimeout")}};f.tA=function(){if(this.ve()||!this.Lg())qi(this.B);else{var a=this.j.duration-this.j.currentTime,b=xO(this)-this.j.currentTime;0<b&&(2<=b||2>a)&&(qi(this.B),this.play())}};
function xO(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};function zO(){T.call(this);this.j=new AO;this.k=new ln(this);var a=KK();if(a){t:{if("videoElementMockDuration"in a.j&&(a=a.j.videoElementMockDuration,ha(a)))break t;a=NaN}this.duration=a}}B(zO,T);function BO(){var a=["video/mp4"],b=["video/ogg"],c=new zO;c.canPlayType=function(c){return H(a,c)?"probably":H(b,c)?"maybe":""};c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c}function CO(a){this.startTime=0;this.endTime=a}function AO(){this.length=0;this.j=[]}AO.prototype.start=function(a){return this.j[a].startTime};
AO.prototype.end=function(a){return this.j[a].endTime};f=zO.prototype;f.readyState=0;f.currentTime=0;f.duration=NaN;f.Yf=!0;f.tu=!1;f.autoplay=!1;f.volume=1;f.muted=!1;f.src="";f.qE=1;f.playbackRate=0;f.Wc=null;f.$j=0;f.MF=4;f.Ug=null;f.Xi=null;
f.play=function(){this.tu&&(this.currentTime=0,this.T("timeupdate"));this.Yf&&(this.Yf=!1,this.T("play"),this.readyState=this.MF,2>=this.readyState?this.T("waiting"):this.T("playing"));if(null===this.Wc||this.Wc.ea())this.Wc=new dn(10),this.Wc.listen("tick",x(this.uu,this));this.$j=z();this.Wc.start();this.autoplay=!1};f.pause=function(){this.autoplay=!1;this.Yf||(this.Wc.stop(),this.Yf=!0,this.T("timeupdate"),this.T("pause"))};
f.load=function(){this.readyState=0;this.Yf=!0;this.T("loadstart");this.setProperty("duration",isNaN(this.duration)?10+20*Math.random():this.duration);var a=this.j;a.j.push(new CO(this.duration));a.length=a.j.length;this.T("loadedmetadata");0<this.currentTime&&this.T("timeupdate");this.T("loadeddata");this.T("canplay");this.T("canplaythrough");this.T("progress");this.playbackRate=this.qE};
f.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.T("seeking");this.currentTime=c;this.T("seeked");this.uu();break;case "duration":this.duration=Number(b);this.T("durationchange");break;case "volume":this.volume=Number(b),this.T("volumechange")}};f.uu=function(){var a=z()-this.$j,b=this.currentTime+a/1E3;this.$j+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.T("timeupdate");this.currentTime==this.duration&&(this.tu=this.Yf=!0,this.Wc.stop(),this.T("ended"))};
f.L=function(){this.Wc&&!this.Wc.ea()&&this.Wc.dispose()};f.mz=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.Xi&&(this.Xi.innerText=b);c&&this.Ug&&(this.Ug.style.backgroundColor=c)};function DO(a,b){if(null==a||!Nd(ld(a),a))throw FK(cK,null,"containerElement","element");this.B=a;this.k=this.j=null;this.A=b;this.o=null;this.j=J("div",{style:"display:none;"});var c;c=KK();if(LK(c,"useVideoElementMock")){c=BO();var d=J("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"});qa(d,c);c.Ug=J("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"});c.Xi=J("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"});
c.Ug.appendChild(c.Xi);d.appendChild(c.Ug);c.k.listen(c,["loadeddata","playing","pause","ended"],c.mz);c=d}else c=J("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;"}),c.setAttribute("webkit-playsinline",!0);this.k=c;this.o=J("div",{style:"position:absolute;width:100%;height:100%;"});this.B.appendChild(this.j);this.j.appendChild(this.k);this.A&&(c=J("div",{id:this.A,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.j.appendChild(c));
this.j.appendChild(this.o)}B(DO,Q);DO.prototype.initialize=function(){UK()&&this.k.load()};DO.prototype.L=function(){Gd(this.j);DO.I.L.call(this)};DO.prototype.show=function(){var a=this.j;null!=a&&(a.style.display="block")};DO.prototype.hide=function(){var a=this.j;null!=a&&(a.style.display="none")};function EO(a){null!=a?MJ(IJ,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&MJ(JJ,a)?FO(a):null:a=null;return a}function GO(a,b,c){if(null==a)return null;c=new K((null!=c?c:"//www.youtube.com/")+"watch");var d=c.j;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");Pe(c,d);return c.toString()}
function FO(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=af(new K(a));return lf(a,"v")?a.get("v").toString():lf(a,"video_id")?a.get("video_id").toString():null};function HO(a){T.call(this);this.H="ima-chromeless-video";var b=null;null!=a&&(w(a)?this.H=a:b=a);this.J=new ln(this);this.B=null;this.o=!1;this.V=this.ug();this.U=this.ie();this.D=-1;this.P=!1;this.C=-1;this.k=this.N=this.F=null;this.R="";this.j=!1;this.$=null!=b;this.G=this.O=this.Z=null;this.A=void 0;this.W=null;null!=b?(this.j=!0,this.Z=b,this.A=2):(a=x(this.Zv,this),IO?a():(JO.push(a),a=Ad("script"),a.src="https://www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,
b)))}B(HO,tO);var KO=["video/mp4","video/webm"],LO={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},JO=[],IO=!1;f=HO.prototype;f.Rq=function(a,b,c){var d=G(a,function(a){return null!==EO(a.k)});if(null!==d)return d;a=bb(a,function(a){a=D(a.j);return this.j?this.Z.canPlayType(a):H(KO,a)},this);ib(c)||(d=gO(a,b,c));return null!=d?d:gO(a,b,[])};f.Ek=function(a){this.k=a};f.load=function(a,b){null!==a&&(this.R=a,this.j?MO(this,a,b):(this.F=a,this.N=b))};f.getVideoUrl=function(){return this.R};
f.setVolume=function(a){this.$?this.T("volumeChange"):this.j?(a=Fc(100*a,0,100),this.Z.setVolume(a),this.C=-1,this.T("volumeChange")):this.C=a};f.ed=function(){return this.j?this.Z.getVolume()/100:this.C};
f.play=function(){if(!C(D(this.R))){if(!this.o){NO(this);var a=15E3;null!=this.k&&0<this.k.rb&&(a=this.k.rb);this.ha=fn(this.Tz,a,this)}this.j?(this.P=!1,OO(this),this.B=new dn(100),this.J.listen(this.B,"tick",this.Jq),this.B.start(),!this.o&&this.k&&this.k.j?this.Z.loadVideoByPlayerVars(this.W):this.Z.playVideo()):this.P=!0}};f.pause=function(){this.j&&this.o&&(OO(this),this.Z.pauseVideo())};f.Lg=function(){return this.j?2==this.Z.getPlayerState(this.A):!1};
f.Ng=function(){return this.j?this.Z.isMuted():0==this.ed()};f.gn=function(){};f.ie=function(){var a=PK.j?PK.o:document.getElementById(this.H);return a?cO(a):!1};f.gh=function(a){return this.j?this.Z.getCurrentTime(this.A)>=a:!1};f.Hf=function(a){this.j?this.Z.seekTo(a,!1):this.D=a};f.getCurrentTime=function(){return this.j?this.Z.getCurrentTime(this.A):-1};f.Or=function(){return this.j&&this.o?this.Z.getVideoLoadedFraction(this.A)*this.Z.getDuration(this.A):0};
f.ad=function(){return this.j&&this.o?this.Z.getDuration(this.A):-1};f.Gt=function(){return null};f.Am=function(){return Lb(GJ)};f.ve=function(){return this.j?0==this.Z.getPlayerState(this.A):!1};f.ug=function(){var a=PK.j?PK.o:document.getElementById(this.H);return a?new I(a.offsetWidth,a.offsetHeight):new I(0,0)};f.Yr=function(){return!1};
f.jF=function(){var a=this.ug(),b=this.ie();if(a.width!=this.V.width||a.height!=this.V.height)!this.U&&b?this.T("beginFullscreen"):this.U&&!b&&this.T("endFullscreen"),this.V=a,this.U=b};f.ai=function(){this.O=x(this.ju,this);this.G=x(this.Mn,this);this.$&&(this.Z.addEventListener("onAdStateChange",this.G),this.Z.addEventListener("onReady",this.O),this.Z.addEventListener("onStateChange",this.G));this.K=new dn(1E3);this.J.listen(this.K,"tick",this.jF);this.K.start()};
f.sf=function(){this.$&&(this.Z.removeEventListener("onAdStateChange",this.G),this.Z.removeEventListener("onReady",this.O),this.Z.removeEventListener("onStateChange",this.G));null!=this.K&&this.K.dispose()};f.Zv=function(){var a=this.H,b={playerVars:Vb(LO),events:{onError:x(this.FF,this),onReady:x(this.ju,this),onAdStateChange:x(this.Mn,this),onStateChange:x(this.Mn,this)}},c=r("YT");this.Z=null!=c&&null!=c.Player?new c.Player(a,b):null};
function MO(a,b,c){var d={};if(null!=a.k){var e=a.k.k;null!=e&&(d.agcid=e);e=a.k.B;null!=e&&(d.adformat=e);(e=a.k.o)&&(d.cta_conversion_urls=e);d.iv_load_policy=a.k.C?1:3;a.k.A&&(d.noiba=1);a.k.D&&(d.utpsa=1)}e=EO(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.o=!1;a.k&&a.k.j?(a.W=d,a.Z.preloadVideoByPlayerVars(a.W)):a.Z.cueVideoByPlayerVars(d)}f.FF=function(){this.T("error")};
f.ju=function(){this.j=!0;-1!=this.C&&(this.setVolume(this.C),this.C=-1);null!=this.F&&(MO(this,this.F,this.N),this.N=this.F=null);-1!=this.D&&(this.Hf(this.D),this.D=-1);this.P&&this.play()};f.Mn=function(a){switch(a.data){case 0:this.o?this.T("end"):this.T("error");break;case 1:this.o||(NO(this),this.o=!0,this.T("start"));this.T("play");break;case 2:this.T("pause")}};function OO(a){a.J.Aa(a.B,"tick",a.Jq);null!=a.B&&(a.B.stop(),a.B=null)}function NO(a){null!=a.ha&&gn(a.ha)}f.Jq=function(){this.T("timeUpdate")};
f.Tz=function(){this.T("mediaLoadTimeout")};f.gr=function(a,b){this.j&&this.Z.addInfoCardXml(a,b)};f.Ef=function(){if(!this.j)return null;var a=this.Z.getVideoData();return a?a.cpn:null};f.L=function(){OO(this);NO(this);this.sf();this.j=!1;this.J.dispose();this.D=-1;this.N=null;this.P=!1;this.F=null;this.C=-1;this.O=this.Z=this.k=null;this.o=!1;this.R="";HO.I.L.call(this)};q("onYouTubeIframeAPIReady",function(){IO=!0;E(JO,function(a){a()});jb(JO)},window);function PO(a){T.call(this);this.j=a||Sa();this.k=[]}B(PO,T);PO.prototype.o=!1;PO.prototype.connect=function(){for(this.o=!0;!ib(this.k);){var a=this.k.shift();this.sendMessage(a.name,a.type,a.data)}};PO.prototype.send=function(a,b,c){this.o?this.sendMessage(a,b,c):this.k.push({name:a,type:b,data:c})};function QO(a,b,c,d,e){Xl.call(this,a);this.vc=b;this.md=c;this.Nq=d;this.A=e}B(QO,Xl);QO.prototype.getOrigin=function(){return this.A};QO.prototype.toString=function(){return""};function RO(a,b){PO.call(this,b);this.A=a;this.Cc=null;this.B=new ln(this);this.logger=null;this.B.listen(vd(),"message",this.receive)}B(RO,PO);function SO(a){if(null==a||!w(a)||0!=a.lastIndexOf("ima://",0))return null;a=a.substr(6);try{return Yf(a)}catch(b){return null}}RO.prototype.sendMessage=function(a,b,c){null!=this.Cc&&null!=this.Cc.postMessage&&this.Cc.postMessage(TO(this,a,b,c),"*");null!=this.Cc&&null==this.Cc.postMessage&&cL(bL.getInstance(),11)};
RO.prototype.L=function(){this.B.dispose();RO.I.L.call(this)};RO.prototype.receive=function(a){a=a.j;var b=SO(a.data);if(null!=b){if(null==this.Cc)this.Cc=a.source;else if(this.Cc!=a.source)return;var c=b.channel;null!=c&&c==this.A&&(c=b.sid,null!=c&&("*"!=this.j&&c!=this.j||this.T(new QO(b.name,b.type,b.data||{},b.sid,a.origin))))}};function TO(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.j;e.channel=a.A;return"ima://"+$f(e)};function UO(a,b){T.call(this);this.A=a;this.o=b;this.j={};this.k=new ln(this);this.k.listen(vd(),"message",this.B)}B(UO,T);UO.prototype.send=function(a){var b=a.getChannelId();this.j.hasOwnProperty(b)?this.j[b].send(a.type,a.vc,a.md):a.getChannelId()};function VO(a,b,c,d){a.j.hasOwnProperty(b)||(c=new RO(b,c),a.k.listen(c,a.A,function(a){a=new WO(a.type,a.vc,a.md,a.Nq,a.getOrigin(),b);this.T(a)}),c.Cc=d,c.connect(),a.j[b]=c)}
UO.prototype.L=function(){this.k.dispose();for(var a in this.j)qi(this.j[a]);UO.I.L.call(this)};UO.prototype.B=function(a){a=a.j;var b=SO(a.data);if(null!=b){var c=b.channel;if(this.o&&!this.j.hasOwnProperty(c)){var d=b.sid;VO(this,c,d,a.source);this.T(new WO(b.name,b.type,b.data||{},d,a.origin,c))}}};function WO(a,b,c,d,e,g){QO.call(this,a,b,c,d,e);this.o=g}B(WO,QO);WO.prototype.getChannelId=function(){return this.o};function XO(){var a=r("google.ima.gptProxyInstance",vd());if(null!=a)return a;ln.call(this);this.o=new UO("gpt",!0);R(this,this.o);this.listen(this.o,"gpt",this.C);this.j=null;YO()||vd().top===vd()||(this.j=new UO("gpt",!1),R(this,this.j),this.listen(this.j,"gpt",this.B))}B(XO,ln);function YO(){return!!r("googletag.cmd",vd())}function ZO(){var a=r("googletag.console",vd());return null!=a?a:null}
XO.prototype.C=function(a){var b=a.getOrigin(),c=ue("//imasdk.googleapis.com"),b=ue(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.j)VO(this.j,a.getChannelId(),a.Nq,vd().parent),null!=this.j&&this.j.send(a);else if(c=a.md,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.vc,"isGptPresent"==c?d=YO():"isConsolePresent"==c&&(d=null!=ZO());else if(YO())if("pubads"==b||"companionAds"==b){d=a.vc;var e,g=vd().googletag;if(null!=g&&null!=g[b]&&(g=g[b](),null!=g&&(d=g[d],null!=d)))try{e=d.apply(g,
c)}catch(h){}d=e}else if("console"==b){if(g=a.vc,e=ZO(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.vc;d=vd();if(H(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}n(d)&&(a.md.returnValue=d,this.o.send(a))}};XO.prototype.B=function(a){this.o.send(a)};function $O(a,b,c,d,e,g,h,k){this.B=a;this.k=b;this.o=c;this.A=h;this.C=d;this.D=e;this.rb=g;this.j=k};function aP(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,k,l,p,t,v){if("%"==p)return"%";var A=c.shift();if("undefined"==typeof A)throw Error("[goog.string.format] Not enough arguments");arguments[0]=A;return bP[p].apply(null,arguments)})}
var bP={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+La(" ",c-a.length):La(" ",c-a.length)+a},f:function(a,b,c,d,e){d=a.toString();isNaN(e)||""==e||(d=a.toFixed(e));var g;g=0>a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=g+d);if(isNaN(c)||d.length>=c)return d;d=isNaN(e)?Math.abs(a).toString():Math.abs(a).toFixed(e);a=c-d.length-g.length;return d=0<=b.indexOf("-",0)?g+d+La(" ",a):g+La(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,g,h,k){return bP.f(parseInt(a,
10),b,c,d,0,g,h,k)}};bP.i=bP.d;bP.u=bP.d;function cP(a,b){T.call(this);this.A=new ln(this);this.F=!1;this.G=Sa();this.C=new je;var c=this.G,c=J("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+aP("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});pn(this.A,c,"load",this.mx);a.appendChild(c);this.k=c;c=this.C.get("*");null==c&&(c=new RO(this.G,"*"),this.F&&(c.Cc=Od(this.k),c.connect()),this.C.set("*",c));this.B=c;this.D=b;this.j=this.D.o;
this.o=null;this.A.listen(this.B,"mouse",this.ox);this.A.listen(this.B,"touch",this.rx);null!=this.j&&(this.A.listen(this.B,"displayContainer",this.nx),this.A.listen(this.B,"videoDisplay",this.qx),this.A.listen(this.j,Lb(uO),this.tx));var c=vd(),d=r("google.ima.gptProxyInstance",c);null==d&&(d=new XO,q("google.ima.gptProxyInstance",d,c))}B(cP,T);f=cP.prototype;
f.L=function(){this.A.dispose();null!==this.o&&(this.o.dispose(),this.o=null);ge(this.C.$b(!1),function(a){a.dispose()});this.C.clear();Gd(this.k);cP.I.L.call(this)};f.ox=function(a){var b=a.md,c=Ag(this.k),d=document.createEvent("MouseEvent");d.initMouseEvent(a.vc,!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(!Vh||WK()||0==document.webkitIsFullScreen)this.k.blur(),window.focus();this.k.dispatchEvent(d)};
function dP(a,b){var c=Ag(a.k),d=F(b,function(a){return document.createTouch(window,this.k,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
f.rx=function(a){var b=a.md,c=Ag(this.k),d=document.createEvent("TouchEvent");d.initTouchEvent(a.vc,!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,dP(this,b.touches),dP(this,b.targetTouches),dP(this,b.changedTouches),b.scale,b.rotation);this.k.dispatchEvent(d)};
f.qx=function(a){if(null!=this.j){var b=a.md;switch(a.vc){case "startTracking":this.j.ai();break;case "stopTracking":this.j.sf();break;case "exitFullscreen":this.j.gn();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.Hf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.j.Ek(new $O(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading))}}};
f.tx=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 "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.j.ve();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.ad();break;case "volumeChange":a=
"volumeChange";b.volume=this.j.ed();break;default:return}this.B.send("videoDisplay",a,b)};f.nx=function(a){switch(a.vc){case "showVideo":null!=this.o?oO(this.o):(this.o=new lO,this.A.listen(this.o,"click",this.sC));mO(this.o,eP(this.D));a=this.D;null!=a.j&&a.j.show();break;case "hide":null!==this.o&&(this.o.dispose(),this.o=null),this.D.hide()}};f.sC=function(){this.B.send("displayContainer","videoClick")};f.mx=function(){ge(this.C.$b(!1),function(a){a.Cc=Od(this.k);a.connect()},this);this.F=!0};function fP(a,b,c,d){if(null==a||!Nd(ld(a),a))throw FK(cK,null,"containerElement","element");this.A=a;var e=null!=b||null!=d,g=e,h=!1;PK.j||(WK()||Wc||Ja(Kc,"CrKey")||$K()||Ja(Kc,"Roku")||ZK()||Ja(Kc,"Xbox"))&&e||(UK()||Ja(Kc,"CrKey")||$K()||Ja(Kc,"Roku")||ZK()||Ja(Kc,"Xbox")||(h=!0),g=!1);this.C=g;this.F=h||g&&null!=d;PK.j?a=null:(e=J("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.k=a;this.j=!this.C&&this.k&&!PK.j&&UK()?new DO(this.k,null):null;a=null;this.C?b?a=new vO(b):
d&&(a=new HO(d)):this.j&&(a=new vO(this.j.k));this.B=(this.o=a)?c||null:null;this.G=null!=this.B;cL(bL.getInstance(),8,{enabled:this.C,yt:null!=d,customClick:null!=this.B});PK.j&&(b=this.A,PK.o=b);this.D=null==this.k||PK.j?null:new cP(this.k,this)}fP.prototype.initialize=function(){null!=this.j&&this.j.initialize()};fP.prototype.destroy=function(){qi(this.j);qi(this.D);qi(this.o);Gd(this.k)};fP.prototype.hide=function(){null!=this.j&&this.j.hide()};
function eP(a){return a.G&&a.B?a.B:null!=a.j?a.j.o:null};function gP(a,b,c,d,e,g){var h=[];h.push(b||"");h.push(c||"");h.push(d||"");h.push(e||"");c=b="";if(null!=g){b=[];c=0;for(d=g;d&&25>c;d=d.parentNode,++c)b.push(9!=d.nodeType&&d.id||"");b=b.join();t:{if(g&&g.nodeName&&g.parentElement){c=g.nodeName.toLowerCase();d=g.parentElement.childNodes;for(var k=e=0;k<d.length;++k){var l=d[k];if(l.nodeName&&l.nodeName.toLowerCase()==c){if(g==l){c="."+e;break t}++e}}}c=""}}h.push(b,c);if(null!=a)h.push(He(a,"ad_type")||""),h.push(He(a,"videoad_start_delay")||""),
h.push(He(a,"sz")||""),h.push(He(a,"vpos")||""),h.push(He(a,"mridx")||""),h.push(He(a,"vad_type")||"");else for(a=0;8>a;++a)h.push("");h.join(":");h=h.join(":");a=h.length;if(0==a)h=0;else{g=305419896;for(b=0;b<a;b++)g^=(g<<5)+(g>>2)+h.charCodeAt(b)&4294967295;h=0<g?g:4294967296+g}return h.toString()};function hP(){T.call(this);this.currentTime=0}B(hP,T);function iP(a){hP.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw FK(cK,null,"content","currentTime");this.k=a;this.j=new dn(250);this.o=new ln(this);on(this.o,this.j,"tick",this.A,this)}B(iP,hP);iP.prototype.start=function(){this.j.start()};iP.prototype.stop=function(){this.j.stop()};iP.prototype.L=function(){iP.I.L.call(this);this.o.dispose();this.j.dispose()};
iP.prototype.A=function(){if("currentTime"in this.k&&!isNaN(this.k.currentTime)){var a=this.currentTime;this.currentTime=this.k.currentTime;a!=this.currentTime&&this.T(new Xl("currentTimeUpdate"))}else this.T(new Xl("contentWrapperError")),this.stop()};function jP(){this.j=0;this.k=null};var kP;
kP={B:["BC","AD"],A:["Before Christ","Anno Domini"],D:"JFMAMJJASOND".split(""),P:"JFMAMJJASOND".split(""),C:"January February March April May June July August September October November December".split(" "),N:"January February March April May June July August September October November December".split(" "),H:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),R:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),V:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Ga:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
K:"Sun Mon Tue Wed Thu Fri Sat".split(" "),X:"Sun Mon Tue Wed Thu Fri Sat".split(" "),F:"SMTWTFS".split(""),O:"SMTWTFS".split(""),J:["Q1","Q2","Q3","Q4"],G:["1st quarter","2nd quarter","3rd quarter","4th quarter"],j:["am","pm"],k:["EEEE, d MMMM y","d MMMM y","d MMM y","dd/MM/y"],U:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],o:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],HG:0,Ra:[5,6],IG:3};function lP(a,b,c,d,e,g){w(a)?(this.o="y"==a?b:0,this.k="m"==a?b:0,this.j="d"==a?b:0,this.A="h"==a?b:0,this.B="n"==a?b:0,this.C="s"==a?b:0):(this.o=a||0,this.k=b||0,this.j=c||0,this.A=d||0,this.B=e||0,this.C=g||0)}lP.prototype.equals=function(a){return a.o==this.o&&a.k==this.k&&a.j==this.j&&a.A==this.A&&a.B==this.B&&a.C==this.C};lP.prototype.clone=function(){return new lP(this.o,this.k,this.j,this.A,this.B,this.C)};
lP.prototype.add=function(a){this.o+=a.o;this.k+=a.k;this.j+=a.j;this.A+=a.A;this.B+=a.B;this.C+=a.C};function mP(a,b,c){ha(a)?(this.j=nP(a,b||0,c||1),oP(this,c||1)):ja(a)?(this.j=nP(a.getFullYear(),a.getMonth(),a.getDate()),oP(this,a.getDate())):(this.j=new Date(z()),this.j.setHours(0),this.j.setMinutes(0),this.j.setSeconds(0),this.j.setMilliseconds(0))}function nP(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=mP.prototype;f.Dt=kP.HG;f.Et=kP.IG;
f.clone=function(){var a=new mP(this.j);a.Dt=this.Dt;a.Et=this.Et;return a};f.getFullYear=function(){return this.j.getFullYear()};f.getMonth=function(){return this.j.getMonth()};f.getDate=function(){return this.j.getDate()};f.getTime=function(){return this.j.getTime()};f.set=function(a){this.j=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
f.add=function(a){if(a.o||a.k){var b=this.getMonth()+a.k+12*a.o,c=this.getFullYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d;t:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break t;case 5:case 8:case 10:case 3:d=30;break t}d=31}d=Math.min(d,this.getDate());this.j.setDate(1);this.j.setFullYear(c);this.j.setMonth(b);this.j.setDate(d)}a.j&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.j),this.j.setDate(1),this.j.setFullYear(a.getFullYear()),
this.j.setMonth(a.getMonth()),this.j.setDate(a.getDate()),oP(this,a.getDate()))};f.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};f.toString=function(){return[this.getFullYear(),Ma(this.getMonth()+1),Ma(this.getDate())].join("")+""};function oP(a,b){a.getDate()!=b&&a.j.setUTCHours(a.j.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.j.valueOf()};function pP(){this.k=this.j=null};function qP(){this.j=rP();this.G=-1;this.K=this.N=this.o=this.F=this.A=null;this.C=rP();this.k=null;this.O=this.H=this.J="";this.D=this.P=this.B=null}function rP(){return Math.floor(4503599627370496*Math.random())}var sP=new qP;qP.prototype.clear=function(){this.j=rP();this.o=this.F=this.A=null;this.C=rP();this.k=null;this.O=this.H=this.J="";this.D=this.P=this.B=null};function tP(a){if(PK.j)return"h.3.0.0";var b="h."+a.O;null!=a.B&&(b+="/n."+a.B,null!=a.A&&(b+="/"+a.A));return b};function uP(a,b){this.C=a;this.B=F(b,function(a){return a.clone()});this.A="";this.j=this.o=0;this.k=!0}function vP(a){a.A="";a.o=0;a.j=0;a.k=!0}uP.prototype.getContent=function(){return this.A};uP.prototype.clone=function(){var a=new uP(this.C,this.B),b=this.o,c=this.j,d=this.k;a.A=this.A;a.o=b;a.j=c;a.k=d;return a};function wP(){T.call(this);this.A=!1;this.impressionUrls=[]}B(wP,T);function xP(a){Xl.call(this,a)}B(xP,Xl);function yP(){wP.call(this);this.F=[];this.B=!1;this.o="not_loaded";this.k=null;this.C=0;this.j=null;this.G=new kd}B(yP,wP);ba(yP);function zP(a){var b=["googletag","googletag.cmd"];return G(a,function(a){return eb(b,function(b){return!da(r(b,a))})})||null}f=yP.prototype;f.L=function(){this.k&&this.k.dispose()};f.initialize=function(){if(!this.A){var a;var b=be(new kd);try{r("googletag"),zP([b,b.top]),a=!0}catch(c){a=!1}a?AP(this):(this.A=!0,this.o="not_available")}};
function BP(a){return a.A?F(a.F,function(a){return a.clone()}):[]}function CP(a){a=BP(a);return null!=a?F(a,function(a){return a.B}):void 0}function DP(a,b,c){var d=0,e=0;null!=b&&(b=new K(b.adTagUrl),d=Number(df(b,"pod")||0),e=Number(df(b,"ppos")||0));if(null!=a.setVideoSessionInfo)try{a.setVideoSessionInfo(sP.j,"","","",d,e,c)}catch(g){}}function EP(a,b){var c=FP(a);if(null!==c){DP(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}
f.setVideoContent=function(a,b){var c=GP(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};function HP(a,b){a.D=b;a.setVideoContent("","");var c=FP(a);DP(c,null,!1)}function FP(a){null==a.j&&IP(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.companionAds?a.j.googletag.companionAds():null}function GP(a){null==a.j&&IP(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.pubads?a.j.googletag.pubads():null}
f.Ap=function(){0<this.C&&z()>=this.C?(this.A=!0,JP(this),KP(this)):AP(this)};function JP(a){a.k&&(a.k.stop(),a.k.Aa("tick",a.Ap,!1,a),a.k.dispose(),a.k=null)}
function AP(a){var b;if(b=!a.B)IP(a),b=null!=a.j&&null!=a.j.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.j)a.B=!0,c=[];else{var d=a.j.googleGetCompanionAdSlots();c=F(d,a.xx,a)}}catch(e){a.B=!0,c=[]}a.F=c;a.B=!0}if("retrieved"!=a.o&&"not_available"!=a.o&&!da(FP(a))){var g;b=FP(a);if(null!==b&&null!=b.getDisplayAdsCorrelator)try{g=b.getDisplayAdsCorrelator()}catch(h){g=null}else g=null;switch(g){case "not_loaded":case "not_available":a.o=g;break;default:g=Number(g),isNaN(g)?a.o="not_available":
(a.D=g,a.o="retrieved")}}a.B&&"retrieved"==a.o?(a.A=!0,JP(a),a.T(new xP("companions_success"))):a.B&&"not_available"==a.o?(a.A=!0,JP(a),KP(a)):a.k||(a.C=z()+5E3,a.k=new dn(100),a.k.listen("tick",a.Ap,!1,a),a.k.start())}function IP(a){var b=be(a.G);try{a.j=zP([b,b.top])}catch(c){a.j=null}}function KP(a){a.T(new xP("companion_initialization_failed"))}f.xx=function(a){var b=F(a.adSizes,function(a){return new I(a.adWidth,a.adHeight)});return new uP(a.slotId,b)};
f.BA=function(a){var b={};b.slotId=a.C;b.adContent=a.getContent();b.adWidth=a.o;b.adHeight=a.j;b.friendlyIframeRendering=a.k;return b};f.sendImpressionUrls=function(a){SJ(this.impressionUrls,a)};function LP(a){Xl.call(this,a)}B(LP,Xl);function MP(){T.call(this);this.o=[]}B(MP,T);MP.prototype.ou=function(){return!0};function NP(){return new OP("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new je)}MP.prototype.oe=function(){return null};function PP(a){MP.call(this);this.j=a;this.C=null;this.D=!1;this.k=null;this.B=new ln;on(this.B,this.j,["companions_success","companion_initialization_failed"],this.Mz,this);on(this.B,this.j,"companion_display_error",this.Lz,this);this.j.A?this.D=!0:this.j.initialize()}B(PP,MP);f=PP.prototype;f.destroy=function(){null!=this.B&&this.B.dispose();this.k=null};function QP(a,b){a.k=b;a.A=!0;a.D?RP(a):(a.A=SP(TP(b),[]),a.A||(a.k=null))}
function RP(a){var b=a.k;a.k=null;if(null!=a.j)if(ib(a.o))UP(a);else if(null!=b){var c=VP(a,b),d=a.j;try{d.j.googleSetCompanionAdContents(F(a.o,d.BA,d)),d.sendImpressionUrls()}catch(e){d.T(new xP("companion_display_error"))}if(0<c.length&&b.da&&(d=a.j,0!=c.length&&"GDFP"==WP(b)[0])){a=[];for(var g=0;g<c.length;g++)a.push(c[g].C);b=b.o;c=FP(d);if(null!==c){DP(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else UP(a)}function UP(a){a.T(new LP("companion_display_error"))}f.ou=function(){return this.A};
f.Mz=function(){null!=this.C&&(this.C.stop(),this.C.dispose(),this.C=null);if(null!=this.j){var a=BP(this.j);null!=a&&(this.o=a)}this.D=!0;null!=this.k&&RP(this);this.T(new Xl("initialized"))};f.Lz=function(){UP(this)};
function VP(a,b){var c=[],d=[];E(a.o,function(a){vP(a);db(a.B,function(d){t:{var e=XP(b);d=YP(new ZP(new I(d.width,d.height)),e);if(!ib(d)&&(d=$P(d,c),null!=d)){e=d.o;if(null!=e&&0!=a.C.indexOf(e)){d=!1;break t}c.push(d);var e=d.getContent(),l=d.j.bd(),p=d.getHeight();d="IFrame"!=d.j.X;a.A=e;a.o=l;a.j=p;a.k=d;d=!0;break t}d=!1}return d},this)||d.push(a)},a);var e=TP(b);a.A=SP(e,c);a.A||E(a.o,function(a){vP(a)},a);return d}
function SP(a,b){if(null==a)return!0;var c=a.j;return"all"==a.k?aQ(c,b):"any"==a.k?bQ(c,b):!0}function TP(a){return null==a||null==a.j||isNaN(a.j.j)?null:G(cQ(a,!0),function(a){a=a.j;return ib(a)?!1:isNaN(a[0].j.j)?!1:a[0].j.j==dQ(a[0])})}function aQ(a,b){return eb(a,function(a){return H(b,a)})}function bQ(a,b){return db(a,function(a){return H(b,a)})}function $P(a,b){return G(a,function(a){return!H(b,a)})}f.oe=function(){return this.j};function eQ(a){Xl.call(this,a);this.C=[];this.B={};this.o=null;this.A=!0}B(eQ,Xl);function fQ(){this.k=new je;this.j=.01>Math.random()&&!OK();this.o=0}ba(fQ);fQ.prototype.start=function(a){this.j&&this.k.set(a,z())};fQ.prototype.end=function(a){if(this.j&&le(this.k,a)){var b=z()-this.k.get(a);QJ(gQ(a,b));this.k.remove(a);this.o+=b}};function gQ(a,b){return"https://csi.gstatic.com/csi?v=2&s=ima_sdk&action=html5&it="+a+"."+b};function hQ(a,b,c){this.C=b;this.A=c;this.B=null;this.k=new ln(this);this.H=a;this.o=this.j=null;this.D=!1}hQ.prototype.start=function(a,b){this.B=a;this.G=b;iQ(this);this.C.D?this.F():rn(this.k,this.C,"initialized",this.F,this)};hQ.prototype.F=function(){var a=this.C.oe(),b;b=a.A?"retrieved"!=a.o?void 0:a.D:void 0;a=CP(a);null!=b&&(this.A.C=b);null!=a&&(this.A.D=a);jQ(this)};
function jQ(a){if(null===a.B)kQ(a);else{var b=new K(a.B.adTagUrl),c=D(df(b,"vid")),b=D(df(b,"cmsid")),d=a.A.J,e=a.A.H;a.A.J=c;a.A.H=b;if(C(D(c))||C(D(b)))kQ(a);else if(c==d&&b==e)kQ(a);else{var g=a.C.oe();g.setVideoContent(c,b);EP(g,a.B);a.o=new dn(100);on(a.k,a.o,"tick",function(){var a;t:{var b=GP(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break t}catch(c){a=!0;break t}a=!1}a&&kQ(this)},a);a.o.start()}}}
function iQ(a){a.j=new dn;rn(a.k,a.j,"tick",function(){kQ(this)},a);en(a.j,a.H);a.j.start()}function kQ(a){null!=a.k&&(a.k.dispose(),a.k=null);null!=a.j&&(a.j.stop(),a.j=null);null!=a.o&&(a.o.stop(),a.o=null);a.D=!0;null===a.G||a.G()};function lQ(){};function mQ(a){return DK(vK,null,a.parentNode.nodeName,a.nodeName)}function nQ(a){return DK(kK,null,a.parentNode.nodeName,a.nodeName)}function oQ(a,b){return null!=a?bb(Id(a),function(a){return a.nodeName==b}):[]}function pQ(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function qQ(a,b){if(null==a)return null;var c="";E(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=ua(c);return b?Fa(c):c}
function rQ(a,b,c,d){null!=a&&E(Id(a),function(a){if(a.nodeName==b)c.call(d,a);else throw mQ(a);})}function sQ(a){return C(D(a))?NaN:Ta(D(a))}function tQ(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new lP(0,0,0,Ta(c[0]),Ta(c[1]),Ta(c[2])),60*(60*(24*c.j+c.A)+c.B)+c.C}return null!=b?b:-1}function uQ(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};function vQ(a,b,c){this.k=a;this.j=c;this.o=b};function wQ(a){this.o=a};function xQ(a){this.o=a;this.k=this.j=!1}B(xQ,wQ);function yQ(a,b,c){this.j=a;this.k=b;this.o=c};function zQ(){this.j=new je}function AQ(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];le(a.j,c)&&(d=a.j.get(c,[]));E(b,function(a){null!=a&&kb(d,a)});a.j.set(c,d)};function BQ(a,b){this.j=a;this.k=b}B(BQ,lQ);BQ.prototype.o=function(){return new vQ(this.j,null,CQ(this))};
function CQ(a){var b=new zQ;E(Id(Jd(a.j)),function(a){switch(a.nodeName){case "Preroll":a=DQ(this,a);AQ(b,a,0);break;case "Midroll":var d=pQ(a,"timeOffset"),e=tQ(d);if(-1==e)throw DK(XJ,null,"timeOffset",D(d));a=DQ(this,a);AQ(b,a,e);break;case "Postroll":a=DQ(this,a);AQ(b,a,-1);break;default:throw DK(gK,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.j.Ka().length)throw DK(fK);return b}
function DQ(a,b){var c=[];E(Id(b),function(a){switch(a.nodeName){case "Ad":var b=D(qQ(a));if(!C(b)){a=pQ(a,"bumper");var g=this.k.clone();g.adTagUrl=b;b=new xQ(g);b.j=null!=a;b.k="always"==a;kb(c,b)}break;default:throw DK(gK,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function EQ(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)}function FQ(a){var b={};E(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=ua(d[0]),d=ua(d[1]),0<a.length&&(b[a]=d))});return b};var GQ=["ai","sigh"];function HQ(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?-1!=a.indexOf("/pagead/adview")?IQ(a)?0:2:-1!=a.indexOf("/pagead/conversion")?IQ(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+tP(sP);var d=a.indexOf("&adurl=");c=-1!=d?Na(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c}function IQ(a){return eb(GQ,function(b){var c=a||"";return 0<=Fe(c,0,b,c.search(Ge))})};function JQ(a,b){this.j=a;this.k=b}function KQ(a){return a.k?-1:a.j}function LQ(a,b){a.k&&(a.k=!1,a.j=a.j*b/100)};function MQ(){this.j=new je}function NQ(a,b){this.o=a;this.j=b}function OQ(a,b){NQ.call(this,"progress",a);this.k=b}B(OQ,NQ);function PQ(a,b){E(b,function(a){var b=a.o.toLowerCase(),e=QQ(this,b);e.push(a);this.j.set(b,e)},a)}function RQ(a,b,c,d){b=b.toLowerCase();var e=QQ(a,b);null!=d?(d=new OQ(c,d),null!=d?e.push(d):e.push(new NQ(b,c))):e.push(new NQ(b,c));a.j.set(b,e)}function QQ(a,b){return null!=b?a.j.get(b.toLowerCase())||[]:[]}
function SQ(a,b){var c=QQ(a,"progress");E(c,function(a){LQ(a.k,b)});wb(c,function(a,b){return KQ(a.k)-KQ(b.k)})}MQ.prototype.isEmpty=function(){return this.j.isEmpty()};function TQ(a,b){return F(QQ(a,b)||[],function(a){return a.j})};function UQ(a,b){var c=new MQ;rQ(a,"Tracking",function(a){var e=pQ(a,"event"),g=HQ(qQ(a),b);VQ(g)&&null!=e&&("progress"==e?(a=pQ(a,"offset"),a=WQ(a),null!=a&&RQ(c,e,g,a)):RQ(c,e,g))});return c}function XQ(a){if(C(D(a)))return null;a=new K(a);if("thismessage"!=a.Hb||"extensions"!=a.mb)return null;a=a.Ib;if(0!=a.lastIndexOf("/",0))return null;a=a.substr(1);return C(D(a))?null:a}
function WQ(a){if(C(D(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new JQ(a,!0))):(a=tQ(a),0<=a&&(b=new JQ(a,!1)));return b}function VQ(a){var b=!0;if(C(D(a)))b=!1;else try{new K(a)}catch(c){b=!1}return b};function YQ(a,b){this.j=null!=a?a:new MQ;this.D=null!=b?b:[]}function ZQ(a,b){var c=b.j;E(c.Ka(),function(a){PQ(this.j,c.get(a))},a)}function $Q(a,b){var c=TQ(a.j,b);return null!=c?c:[]};function aR(){this.j="Ads by Google";this.k="http://www.google.com/adsense/support";this.o=0};function bR(a,b,c,d,e,g,h,k,l,p){YQ.call(this,l,p);this.A=a;this.B=b;this.k=c;this.F=h;this.C=g;this.o=e}B(bR,YQ);function cR(){}cR.prototype.parse=function(a){var b;rQ(a,"config",function(a){null!=b||(b=dR(this,a))},this);return b};function dR(a,b){var c;E(Id(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new aR:null;break;case "params":null!=c&&eR(this,c,a)}},a);return c}function eR(a,b,c){E(Id(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.k=c;break;case "attribution_text":b.j=c;break;case "signals":b.o=parseInt(c,10)}},a)};function fR(){}
fR.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k,l=!1;E(Id(a),function(a){switch(a.nodeName){case "AttributionText":c=qQ(a);break;case "AttributionUrl":d=qQ(a);break;case "ConversionUrl":g=qQ(a);break;case "CustomTracking":null!=Id(a)&&(e=UQ(a));break;case "CheckedEvents":a=Id(a);b=F(a,function(a){return pQ(a,"id")});null!=b||(b=[]);break;case "PreviousAdInformation":qQ(a);break;case "VisibleUrl":h=qQ(a);break;case "UI":k=(new cR).parse(a);break;case "ShowYouTubeAnnotations":var t=qQ(a);
l=uQ(D(t),!1);case "QueryId":qQ(a)}},this);null!=k||(k=new aR);return new bR(c,d,g,0,h,k,l,0,e,b)};function gR(a,b){YQ.call(this,b);this.k=a}B(gR,YQ);function hR(){}hR.prototype.parse=function(a){if(null==a)return null;var b;E(Id(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Id(a)&&(b=UQ(a))}});a=null;null!=b&&0<QQ(b,"skip").length&&(a="Generic");return new gR(a,b)};function iR(){}iR.prototype.parse=function(a){if(null==a)return null;var b,c;E(Id(a),function(a){switch(a.nodeName){case "SkippableAdType":b=qQ(a);break;case "CustomTracking":null!=Id(a)&&(c=UQ(a))}});return new gR(b,c)};function jR(){}jR.prototype.parse=function(a){if(null==a)return null;var b;E(Id(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Id(a)&&(b=UQ(a))}},this);return new YQ(b)};function kR(a){YQ.call(this);this.k=a}B(kR,YQ);function lR(){}lR.prototype.parse=function(a){a=DC(a);return C(D(a))?null:new kR(a)};function mR(a){YQ.call(this);this.k=a}B(mR,YQ);function nR(){YQ.call(this)}B(nR,YQ);function oR(){}oR.prototype.j={LE:"TEMPLATE_PARAMETERS",ME:"TEMPLATE_URL"};oR.prototype.parse=function(a){if(null==a)return null;E(Id(a),function(a){switch(a.nodeName){case this.j.LE:pR(this,a)}},this);return new nR};function pR(a,b){E(Id(b),function(a){a.nodeName==this.j.ME&&qQ(a)},a)};function qR(a,b,c,d){YQ.call(this);this.o=a;this.A=b;this.B=c;this.k=d}B(qR,YQ);function rR(){}rR.prototype.j={FE:"Line1",GE:"Line2",HE:"Line3",EE:"ImageUrl"};rR.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;E(Id(a),function(a){switch(a.nodeName){case this.j.FE:b=qQ(a,!0);break;case this.j.GE:c=qQ(a,!0);break;case this.j.HE:d=qQ(a,!0);break;case this.j.EE:e=qQ(a)}},this);return new qR(b,c,d,e)};function sR(a){YQ.call(this);this.k=a}B(sR,YQ);function tR(){}tR.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Ta(a):NaN;a=isNaN(a)?-1:a;return new sR(a)};function uR(){YQ.call(this)}B(uR,YQ);function vR(){}vR.prototype.parse=function(a){return null!=a?new uR:null};function wR(a){YQ.call(this);this.k=isNaN(a)?-1:a}B(wR,YQ);function xR(){}xR.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Ta(a):NaN;return new wR(a)};function yR(a,b,c,d){this.va=a;this.j=Fc(c||0,0,1);this.k=null!=d?d:!0}yR.prototype.getId=function(){return this.va};function zR(a){this.va=a;this.k=new je;this.j=null}function AR(a){var b=Math.random(),c=0,d=a.k.La();E(d,function(a){c+=a.j},a);var e=1<c?c:1;a.j=null;for(var g=0,h=0;h<d.length;++h)if(g+=d[h].j,g/e>=b){a.j=d[h];break}};function BR(){this.j=new je;CR(this,41351068,.1);CR(this,41351069,.1);CR(this,41351020,.01);CR(this,41351021,.01);DR(this)}var ER=null;function FR(){ER||(ER=new BR);return ER}function CR(a,b,c){C(D("GvnExternalLayer"))||isNaN(b)||0>=b||(b=new yR(b,0,c),GR(a,"GvnExternalLayer").k.set(b.getId(),b))}function DR(a){JK()||E(a.j.La(),function(a){AR(a)},a)}
function HR(a,b,c){E(b,function(a){var b=Number(a),g="forcedLayer"+a;isNaN(b)||0>=b||C(D(g))||(a=null!=c?c:!0,g=GR(this,g),b=new yR(b,0,0,a),g.j=b)},a)}function IR(a){var b=FR();return db(b.j.La(),function(b){return!!b.j&&b.j.getId()==a})}function JR(a){var b=[];E(a.j.La(),function(a){(a=a.j)&&a.k&&b.push(a.getId())});return b.sort().join(",")}function GR(a,b){var c=a.j.get(b);null==c&&(c=new zR(b),a.j.set(b,c));return c};function KR(a){if(IR(947225)){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.k=b.title,this.j=Nb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}}else LR(this,a)}KR.prototype.videoCount=0;
function LR(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&db(d.$t.split(":"),function(a,b,c){return"channel"==a?(this.channelId=c[b+1],!0):!1},a);(d=c.author)&&d[0]&&d[0].name&&(a.k=d[0].name.$t);(c=c.media$thumbnail)&&c[0]&&(a.j=c[0].url)}}};function MR(a){if(IR(947225)){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.j="unlisted"!=a.privacyStatus}}else NR(this,a)}MR.prototype.j=!0;
function NR(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&db(d.$t.split(":"),function(a,b,c){return"video"==a?(this.videoId=c[b+1],!0):!1},a);if(d=c.title)a.title=d.$t;if(d=c.media$group)if(d=d.yt$uploaderId)a.channelId=d.$t;c.yt$accessControl&&(c=G(c.yt$accessControl,function(a){return"list"==a.action}))&&(a.j="denied"!=c.permission)}}};function OR(){}var PR={Hu:"Image",JG:"Flash",AG:"All"},QR={HTML:"Html",KI:"IFrame",rK:"Static",AG:"All"},RR={LI:"IgnoreSize",cK:"SelectExactMatch",dK:"SelectNearMatch"};function SR(){T.call(this);this.j=new je;this.k=null;this.A=new ln(this);R(this,this.A);this.B="";this.o=null}B(SR,T);var TR=null;function UR(){null!=TR||(TR=new SR);return TR}function VR(a,b){a.o=b}
function WR(a,b,c,d){if(a.k){var e=a.j,g=window.setTimeout(function(){d("");E(e.Ka(),function(a){e.get(a)===d&&e.remove(a)})},200);a.j.set(g,d);var h={};a.C&&(h.isFullscreen=a.C.ie());a.B&&(h.osdId=a.B);h.queryId=c;h.timeoutId=g;h.vastEvent=b;h.isOverlay=null!=a.o;h.isOverlay&&(h.overlayOffset=dO(a.o));a.k.send("activityMonitor","reportVastEvent",h)}else d("")}SR.prototype.destroy=function(){this.A.Aa(this.k,"activityMonitor",this.D);this.k=null};
SR.prototype.D=function(a){var b=a.md;switch(a.vc){case "viewableImpression":a=b.viewabilityString;var c={};c.queryId=b.queryId;c.viewabilityString=a;UR().T(new sJ("viewable_impression",null,c));break;case "viewability":if(a=b.timeoutId,window.clearTimeout(a),c=this.j.get(a))this.j.remove(a),c(b.viewabilityString)}};q("ima.bridge.getNativeViewability",function(a,b){UR();b({})},void 0);function ZP(a){if(null==a||0>=a.width||0>=a.height)throw FK(cK,null,"ad slot size",a.toString());this.k=a;this.j=new OR;this.B=XR(QR,this.j.o)?this.j.o:"All";this.A=XR(PR,this.j.creativeType)?this.j.creativeType:"All";this.D=XR(RR,this.j.A)?this.j.A:"SelectExactMatch";this.o=null!=this.j.k?this.j.k:[];this.C=ha(this.j.j)&&0<this.j.j&&100>=this.j.j?this.j.j:90}
function YP(a,b){var c=[];E(b,function(a){!C(D(a.j.A))&&(isNaN(a.j.j)||isNaN(dQ(a))||dQ(a)==a.j.j)&&YR(this,a)?c.push(a):(a=ZR(this,a),null!=a&&!C(D(a.j.A))&&c.push(a))},a);return c}
function YR(a,b){var c;if(c="Flash"!=b.getContentType()||IL){if(c="All"==a.B||a.B==b.j.X)c=b.getContentType(),c=null!=c?"All"==a.A||a.A==c:!0;c&&(c=b.o,c=ib(a.o)?!0:null!=c?0<=$a(a.o,c):!1)}c?(c=b.j.Dc(),c="IgnoreSize"==a.D||Jc(a.k,c)?!0:"SelectNearMatch"==a.D&&(c.width>a.k.width||c.height>a.k.height||c.width<a.C/100*a.k.width||c.height<a.C/100*a.k.height?!1:!0)):c=!1;return c}function ZR(a,b){var c=b.k;return null!=c?G(c,function(a){return YR(this,a)},a):null}
function XR(a,b){return null!=b&&Kb(a,b)};function $R(a){K.call(this,a);this.k=new je;a=this.Ib;var b=a.indexOf(";"),c=null;0<=b?(Oe(this,a.substring(0,b)),c=a.substring(b+1)):Oe(this,a);aS(this,c)}B($R,K);$R.prototype.toString=function(){return bS(this,$R.I.toString.call(this))};$R.prototype.dq=function(){return""};$R.prototype.$e=function(){return""};
function aS(a,b){C(D(b))||E(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=wa(a.substring(0,b));a=wa(a.substring(b+1));b=this.k.get(e);null!=b?H(b,a)||b.push(a):b=[D(a)];this.k.set(e,b)}},a)}function cS(a){if(C(D("ord")))return null;a=a.k.get("ord");return null!=a?a:null}function dS(a,b,c){C(D(b))||(c=F(c,D),a.k.set(b,c))}function bS(a,b){var c=[D(b)];qb(c,eS(a));return c.join(";")}
function eS(a){var b=cS(a);null!=b?C(D("ord"))||a.k.remove("ord"):b=[D(z())];var c=[];E(a.k.Ka(),function(a){E(this.k.get(a),function(b){qb(c,a+"="+b)})},a);qb(c,"ord="+b[0]);dS(a,"ord",b);return c}$R.prototype.clone=function(){return new $R(this.toString())};function fS(a){a=a.adTagUrl;if(null==a)return!1;a=new K(a);var b=a.Ib;return ta(a.mb,"googleads.g.doubleclick.net")&&gS("/pagead/ads",b)}function hS(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==Ye(new K(a)):!1}function iS(a){a=a.adTagUrl;if(null==a)return!1;var b=new $R(a);a=b.mb;b=bS(b,b.Ib);return!ta(a,".g.doubleclick.net")&&ta(a,"doubleclick.net")&&gS("/(ad|pfad)[x|i|j]?/",b)}
function jS(a){a=a.adTagUrl;if(null==a)return!1;a=new K(a);var b=a.Ib;return ta(a.mb,"doubleclick.net")&&gS("/gampad/ads",b)}function gS(a,b){return C(D(b))?!1:(new RegExp(a)).test(b)};function kS(){this.j=this.o=1;this.B=this.k=0;this.A=1};function lS(){this.F={};this.U="";this.Lf=new MQ}lS.prototype.Fn=function(){return null};function mS(a,b,c){a.U=b;a.F=c}lS.prototype.rg=function(a){this.W=a};lS.prototype.getAd=function(){return this.W};function nS(a,b){var c=[],d=a.K();E(d,function(a){a=QQ(a.Lf,b)||[];c=ob(a,c)},a);return c}lS.prototype.K=function(){for(var a=[this],b=this.W.k;b;){var c=oS(this,b)||oS(this,b,!0);null!=c&&a.push(c);b=b.k}return a};
function oS(a,b,c){var d=c||!1;return G(b.A,function(a){var b=a.j==this.j;return a instanceof this.constructor&&(d||b)},a)};function pS(a,b,c,d,e,g){lS.call(this);this.$=a;this.o=b;this.k=c;this.H=pb(d);this.da=this.la=null;this.A=e;this.ha=pb(g);tb(this.ha,null,function(a){return a.G})}B(pS,lS);pS.prototype.Rc=function(){return this.o};function qS(a){var b=new je,c=a.K();E(c,function(a){if(a instanceof pS){var c=a.k;E(c.Ka(),function(a){b.set(a,ob(c.get(a),b.get(a)||[]))},this)}},a);return b}
pS.prototype.getMediaUrl=function(a){var b="";db(this.H,function(c){var d=c.k;return!C(D(a))&&a!=c.j||null==d||C(D(d))?!1:(b=d,!0)},this);return b};pS.prototype.setMediaUrl=function(a){this.da=a};pS.prototype.Fn=function(){var a=G(this.H,function(a){return!C(D(a.j))&&-1!=a.j.indexOf("javascript")&&("VPAID"==a.o||"surveys"==a.o)});return null!=a?a.k:null};function rS(a,b,c){Q.call(this);this.k=a;this.o=b;this.A=c;this.C=0;this.j=new ln(this);sS(this)}B(rS,Q);function sS(a){a.A.forEach(function(a,c){this.j.listen(c,"mousedown",this.D);this.j.listen(c,"mouseup",this.G)},a);a.j.listen(a.o,"mouseover",a.F)}rS.prototype.D=function(){this.B=z()};
rS.prototype.G=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.k&1&&c.push("nm="+this.C);this.k&2&&c.push("nb="+this.A.get(b));if(this.k&8){var d=Ag(this.o);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.k&16&&null!=this.B&&c.push("clkt="+(z()-this.B));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};rS.prototype.F=function(){this.C++};rS.prototype.L=function(){rS.I.L.call(this);this.j.dispose()};function tS(a,b,c,d,e){lS.call(this);C(D(a))&&(a=Sa()+"_ima");this.va=D(a);this.ma=b;this.X=c;this.R=d;this.A=e;this.V=[];null!=this.R?this.Ra=BJ[this.R]||"Other":this.Ra=null}B(tS,lS);f=tS.prototype;f.getContent=function(){var a;a=this.He();if("outerHTML"in a)a=a.outerHTML;else{var b=ld(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.Ra};f.Dc=function(){return this.ma};f.bd=function(){return this.Dc().width};f.getHeight=function(){return this.Dc().height};
f.Fn=function(){return"VPAID"==this.G?this.A:null};f.Rc=function(){return this.N};function uS(a,b,c,d,e){tS.call(this,a,b,c,d,e);this.ia=-2;this.o=null;this.P=this.J=u;this.O=[];this.ja=!0;this.Ga=[];this.D=!1}B(uS,tS);function vS(a,b){a.o=b;null!=a.k&&null!=b&&(wS(a,a.J),xS(a,a.P))}function wS(a,b){null!=a.o&&null!=a.k&&E(a.O,function(a){this.o.Aa(a,"click",this.J);C(D(this.Rc()))||this.o.listen(a,"click",b)},a);a.J=b}function xS(a,b){null!=a.o&&null!=a.k&&(a.o.Aa(a.k,"creativeview",a.P),a.o.listen(a.k,"creativeview",b));a.P=b}
function yS(a){E(a.Ga,function(a){Gd(md(a))},a);a.Ga=[]}uS.prototype.B=function(a){null==this.o||C(D(this.Rc()))||(this.o.listen(a,"click",this.J),this.O.push(a))};uS.prototype.He=function(){null==this.k&&(this.k=this.uf(),Dd(this.k,zS(this)));null!=this.o&&this.o.listen(this.k,"creativeview",this.P);return this.k};
function AS(a,b){var c=a.va,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.bd()+"px");C(D(c))||(d.id=c);return J("div",d,b)}uS.prototype.Wt=function(){return 2};
function zS(a){if(!a.ja)return null;var b=nS(a,"start");qb(b,nS(a,"creativeview"));if(null!=b&&!ib(b)){var c=[];E(b,function(a){if(!C(D(a))){var b;b=jd().rE("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});pg(b,{display:"block",height:"0px",width:"0px"});var g="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",OJ(a.j));b.setAttribute("id",g);this.Ga.push(g);kb(c,b)}},a);return c}return null}
function BS(a,b){if(null!=a.k){var c=new je;E(a.O,function(a){c.set(a,this.Wt(a))},a);new rS(b,a.k,c)}}function CS(a){var b=[],c=a.K();E(c,function(a){b=ob(b,a.V)},a);return b}uS.prototype.K=function(){var a=[this],b;for(b=this.getAd().k;b;){var c=this.D?oS(this,b)||oS(this,b,!0):DS(this,b)||DS(this,b,!0);null!=c&&a.push(c);b=b.k}return a};function DS(a,b,c){var d=c||!1;return G(b.A,function(a){var b=a.j==this.j;return this instanceof a.constructor&&(d||b)},a)};function OP(a,b,c,d,e,g,h,k,l,p,t,v,A,U,Z,ea){T.call(this);this.R=a;this.N=b;this.U=c;this.xa=d;this.W=new ln(this);this.W.listen(PK.j?bO():UR(),"viewable_impression",this.qv);this.ja=isNaN(h)||""==h||0==h?-1:h;this.P=k?pb(k):[];this.O=l?pb(l):[];this.A=p?pb(p):[];this.V=t?pb(t):[];this.C=[];E(this.V,function(a){qb(this.C,pb(a.j))},this);this.da=!0;this.k=this.j=null;this.D=new je(v);this.F=null!=ea;this.ua=(this.G=null!=A)?U||!1:!1;this.wa=this.rv?Z||!1:!1;this.Ba=D(A);this.Fa=D(ea);this.oa=this.o=
null;this.B=new kS;this.ha=new I(0,0);this.$=String(Math.floor(1E9*Math.random()));this.H=this.K=this.J=null;this.na=z();this.la=this.ia=0;E(ob(this.A,this.C),function(a){a.rg(this)},this);OK()&&ES(this)&&(this.C=bb(this.C,function(a){return 60>=a.getHeight()}))}B(OP,T);function FS(a){var b;b=GS(a)?HS(a)?"2_1":"2_2":"2";return(IS(a,DJ)||IS(a,FJ)?1:IS(a,CJ)?2:0)+"_"+b}function JS(a){return null!=a.N?a.N:""}function KS(a){return null!=a.k?ob(KS(a.k),a.P):a.P}
function LS(a){return null!=a.k?ob(LS(a.k),a.O):a.O}f=OP.prototype;f.getContentType=function(){var a=this.j,b="";if(null===a)return b;if(a instanceof pS)a=a.la,null===a||(b=D(a.j));else if(a instanceof uS)switch(a.X){case "IFrame":case "Html":case "Static":b=D(a.R)}return b};function XP(a){return null!=a.k?ob(a.C,XP(a.k)):a.C}function MS(a){return null!=a.j?a.j.U:""}f.getExtension=function(a){return this.D.get(a)};function NS(a,b){a.j=b;a.ha=null!=a.j&&a.j instanceof uS?a.j.Dc():new I(0,0)}
function OS(a){return a.j}f.qv=function(a){a.o.queryId==this.$&&this.T(new sJ("viewable_impression",this,a.o))};function PS(a){return null!=a.R?a.R:""}function QS(a){if(null==a.k)return[];var b=[PS(a.k)];qb(b,QS(a.k));return b}function RS(a){var b=QS(a).reverse();b.push(PS(a));return b}function SS(a){if(null==a.k)return[];var b=[JS(a.k)];qb(b,SS(a.k));return b}function TS(a){var b=SS(a).reverse();b.push(JS(a));return b}function WP(a){if(null==a.k)return[a.U];var b=WP(a.k);b.push(a.U);return b}
function US(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.k?a.k:-1}function VS(a){if(-1!=a.ja)return a.ja;a=a.getExtension("pod");return null!=a&&-1!=a.k?a.k:-1}function cQ(a,b){return b||null==a.k?a.V:ob(a.V,cQ(a.k))}function WS(a,b){return db(a.A,function(a){return a instanceof pS&&"linear"==b||a instanceof uS&&"nonlinear"==b?!0:!1})}function ES(a){return XS(a)?"video"==a.xa:WS(a,"linear")}function GS(a){return null!=YS(a)}
function ZS(a,b){var c=YS(a);if(!c)return null;LQ(c,b);return KQ(c)}function YS(a){if(IR(919139)||IR(919140))return new JQ(0,!1);var b=new JQ(5,!1),c=$S(a);if("implicit"==c)return b;a=a.j;var d=null;null!=a&&a instanceof pS&&(d=a.A);null!=d||"explicit"!=c||(d=b);return null!=d&&OK()?b:d}
function $S(a){if(null!=G(a.D.La(),function(a){return!ib($Q(a,"skip"))}))return"implicit";var b=a.D.get("DFP");if(b instanceof gR)switch(b.k){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.j;return null==a||(a=a.Lf,null==a||ib(QQ(a,"skip")))?"none":"explicit"}function aT(a){return null!=a.o&&(fS(a.o)||jS(a.o)||iS(a.o))}
function HS(a){if(null==a.N||null==a.o)return!1;var b;(b=aT(a)||!1)&&!(b=XS(a)&&!bT(a,["ADSENSE/ADX"]))&&(bT(a,FJ)?(b=a.D.get("DFP"),b=null!=b?"InstreamSelect"==b.k:!1):b=!1);if(b||a.k&&a.k.F&&aT(a.k))return!0;a=IS(a,["ADSENSE/ADX"])||a.k&&IS(a,CJ);return OK()&&!a}f.rv=function(){return this.G};function cT(a){return null===a.j?null:a.j.Rc()}function dT(a){return null==a.j||a.j instanceof uS?-1:a.j.$}function eT(a){return null===a.j?null:a.j.Fn()}function XS(a){return bT(a,CJ)}
function fT(a){var b=eT(a);return bT(a,["402"])||w(b)&&!da(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))}f.getHeight=function(){return this.ha.height};function gT(a){return a.J}f.toString=function(){return"Ad: "+this.R};function bT(a,b){return null!=a.N?H(b,a.U):!1}function IS(a,b){for(var c=WP(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(H(b,c[d]))return!0;break}return!1}f.L=function(){null!=this.W&&this.W.dispose();OP.I.L.call(this)};function hT(a,b){this.j=a;this.k=b};function iT(a,b,c){this.j=a;this.k=b;this.o=c}iT.prototype.getContent=function(){return this.j.getContent()};iT.prototype.getContentType=function(){return this.j.getContentType()};iT.prototype.getHeight=function(){return this.j.getHeight()};function dQ(a){a=OS(a.j.getAd());return null!=a?a.j:NaN}iT.prototype.rg=function(a){this.j.rg(a);E(this.k,function(b){b.rg(a)},this)};function jT(a,b,c){this.k=a;this.j=b;this.o=c}jT.prototype.getContentType=function(){return null!=this.j?BJ[this.j]||"Other":null};Pc&&bd(8);function kT(){};var lT={},mT={},nT={};function oT(){throw Error("Do not instantiate directly");}oT.prototype.be=null;oT.prototype.getContent=function(){return this.content};oT.prototype.toString=function(){return this.content};function pT(a,b){var c=jd().createElement("DIV"),d=qT(a(b||rT,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function qT(a){if(!ja(a))return String(a);if(a instanceof oT){if(a.Yc===lT)return a.getContent();if(a.Yc===nT)return xa(a.getContent())}return"zSoyz"}var rT={};function sT(a){if(null!=a)switch(a.be){case 1:return 1;case -1:return-1;case 0:return 0}return null}function tT(){oT.call(this)}B(tT,oT);tT.prototype.Yc=lT;function uT(a){return null!=a&&a.Yc===lT?a:a instanceof xc?vT(zc(a),a.Sf()):vT(xa(String(String(a))),sT(a))}function wT(){oT.call(this)}B(wT,oT);wT.prototype.Yc={};wT.prototype.be=1;function xT(){oT.call(this)}B(xT,oT);xT.prototype.Yc=mT;xT.prototype.be=1;function yT(){oT.call(this)}B(yT,oT);yT.prototype.Yc={};yT.prototype.be=1;
function zT(){oT.call(this)}B(zT,oT);zT.prototype.Yc={};zT.prototype.be=1;function AT(a,b){this.content=String(a);this.be=null!=b?b:null}B(AT,oT);AT.prototype.Yc=nT;function BT(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}}var vT=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.be=d);return e}}(tT);BT(wT);BT(xT);var CT=BT(yT);BT(zT);
(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.be=d);return e}})(tT);var DT=/['()]/g;function ET(a){return"%"+a.charCodeAt(0).toString(16)}function FT(a){if(null!=a&&a.Yc===mT)return String(a).replace(GT,HT);if(a instanceof sc)return a=uc(a),String(a).replace(GT,HT);a=va(String(a));DT.lastIndex=0;return DT.test(a)?a.replace(DT,ET):a}var IT={};
function JT(a){IT[1]||(IT[1]=new kT);var b=sT(a);if(null==b){var c=b=0,d=!1;a=cc(a+"",null!=a&&a.Yc===lT).split(ic);for(var e=0;e<a.length;e++){var g=a[e];fc.test(cc(g,void 0))?(b++,c++):gc.test(g)?d=!0:ec.test(cc(g,void 0))?c++:jc.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return CT(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var KT={"\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"};function HT(a){return KT[a]}var GT=/[\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;function LT(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+uT(a.qd)+'"><img src="'+uT(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+uT(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+uT(a.qd)+'" target="_blank" dir='+uT(a.dir)+">"+uT(a.title)+'</a><div class="text-description" dir='+uT(a.dir)+">"+uT(a.text)+"</div>"+(a.As?'<a target="_blank" href="'+
uT(a.qd)+'" class="text-ad-channel">'+uT(a.As)+"</a>":"")+"</div></div>"}
function MT(a){return'<div class="flash-container '+(a.Kf?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+uT(a.qd)+'"></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="'+uT(a.width)+'" height="'+uT(a.height)+'"><param name="movie" value="'+uT(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+FT(a.qd)+
'"><embed width="'+uT(a.width)+'" height="'+uT(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+uT(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+FT(a.qd)+'"></object></div>'}function NT(a){return'<div class="image-container" id="'+uT(a.id)+'" style="width:'+uT(a.width)+";height:"+uT(a.height)+'"><a target="_blank" href="'+uT(a.qd)+'"><img src="'+uT(a.url)+'" border="0"></a></div>'};function OT(a,b,c,d){uS.call(this,a,b,"Static",c,d);this.lt=!1}B(OT,uS);OT.prototype.uf=function(){var a=this.G,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:OJ(D(this.A)),width:this.bd(),height:this.getHeight(),qd:this.Rc(),Kf:this.lt||!a},a=pT(MT,a);a.style.width=this.bd()+"px";a.style.height=this.getHeight()+"px";a.id=this.va;E(a.getElementsByTagName("object"),this.B,this);E(a.getElementsByTagName("a"),this.B,this);return a};function PT(a,b,c,d){uS.call(this,a,b,"Html",c,d)}B(PT,uS);PT.prototype.uf=function(){var a=J("div");a.innerHTML=this.A;this.B(a);return AS(this,a)};function QT(a,b,c,d){uS.call(this,a,b,"Static",c,d)}B(QT,uS);QT.prototype.getContent=function(){var a=QT.I.getContent.call(this);this.D&&(a=a.replace('<img src=""','<img src="'+OJ(D(this.A))+'"'));return a};QT.prototype.uf=function(){var a="";this.D||(a=OJ(D(this.A)));a={id:this.va,url:a,qd:this.Rc(),width:this.bd()+"px",height:this.getHeight()+"px"};a=pT(NT,a);E(a.getElementsByTagName("a"),this.B,this);return a};function RT(a,b){uS.call(this,a,b,"Static","text","")}B(RT,uS);f=RT.prototype;f.Dc=function(){return new I(this.bd(),this.getHeight())};f.getHeight=function(){return 63};f.bd=function(){return null!=this.C?Jg(this.C).width:0};f.Wt=function(a){return Xg(a,"text-image")?9:Xg(a,"text-ad-channel")?1:0};
f.uf=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.o,e="rtl";null!=d&&(e=dc.test(cc(d,void 0))?"rtl":"ltr");d={title:d,text:c.A+" "+c.B,dir:e,qd:this.Rc()};if(c=c.k)d.image=OJ(c),a=G(a.A,function(a){return a instanceof pS}),null!=a&&(d.duration=EQ(a.$));b.o&&(d.As=b.o);this.C=pT(LT,d);E(this.C.getElementsByTagName("a"),this.B,this);this.C.id=this.va;this.C.style.height=this.getHeight()+"px";return this.C};function ST(a,b,c,d,e){uS.call(this,a,b,c,d,e)}B(ST,uS);ST.prototype.uf=function(){var a=D(this.A);C(D(this.Rc()))||(a=new K(a),L(a,"clickTAG",va(this.Rc())),a=a.toString());var b=J("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.bd());b.setAttribute("src",OJ(a));this.B(b);return AS(this,b)};function TT(a,b,c){if(ib(c))return new uS(a,b,"",null,"");var d=UT(c);c=d.k;var e=d.j,d=d.o;switch(c){case "Html":return new PT(a,b,e,d);case "Static":switch(BJ[e]){case "Image":return new QT(a,b,e,d);case "Flash":return new OT(a,b,e,d);case "Text":return new RT(a,b)}}return new ST(a,b,c,e,d)}
function UT(a){var b=G(a,function(a){return"Static"==a.k&&"Flash"==BJ[a.j]}),c=G(a,function(a){return"IFrame"==a.k}),d=G(a,function(a){return"Html"==a.k}),e=G(a,function(a){return"Static"==a.k&&"Image"==BJ[a.j]}),g=G(a,function(a){return"Static"==a.k&&"Text"==BJ[a.j]});return IL&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function VT(a,b,c,d,e){var g=UT(e),h=TT(a.id,a.size,[g]);h.D=!0;h.G=a.apiFramework;h.N=b;h.j=c;d&&(h.Lf=d);lb(e,g);var k=[];E(e,function(e){e=TT(a.id,a.size,[e]);e.D=!0;e.G=a.apiFramework;e.N=b;e.j=c;d&&(e.Lf=d);k.push(new iT(e,[],a.adSlotId))});return new iT(h,k,a.adSlotId)};function WT(a,b,c,d,e,g,h){this.o=a;this.G=b;this.B=c;this.C=d;this.k=e;this.D=g;this.F=h;this.j=this.o.uf()}WT.prototype.He=function(){return this.j};
WT.prototype.display=function(a){this.A=a;this.A.appendChild(this.j);a=this.j;var b=Hg(this.A),b="left"==this.B?"0px":"right"==this.B?b.width-this.o.Dc().width+"px":this.B+"px",c;c=Hg(this.A);c="bottom"==this.C?"0px":"top"==this.C?c.height-this.o.Dc().height+"px":c.height-this.o.Dc().height-Wa(this.C)+"px";pg(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});Lg(this.j,!1)};
WT.prototype.update=function(a,b){var c=null!=this.D?KQ(this.D):0;this.k=0<=this.k?this.k:b;c<=a&&c+this.k>=a?XT(this):Lg(this.j,!1)};function XT(a){"none"==a.j.style.display&&(Lg(a.j,!0),E(a.F,function(a){QJ(a)}))};function ZT(a,b,c,d,e,g,h,k,l,p){b=TT("icon"+a,b,p);b.G=h;b.N=k.iconClickThrough;return new WT(b,a,c,d,e,g,l)};function $T(a){this.A=a;this.logger=null}B($T,lQ);
$T.prototype.j={dC:"Ad",Tm:"AdParameters",$C:"AdSystem",aD:"AdTitle",sH:"Advertiser",tE:"AltText",vD:"ClickThrough",wD:"ClickTracking",CD:"Companion",rD:"CompanionAds",uE:"CompanionClickThrough",vE:"CompanionClickTracking",sD:"Creative",eI:"CreativeExtensions",cD:"Creatives",xD:"CustomClick",dD:"Description",$m:"Duration",ERROR:"Error",BD:"Extension",eD:"Extensions",Bj:"HTMLResource",KE:"Icon",kD:"Icons",SC:"IconClicks",IE:"IconClickThrough",JE:"IconClickTracking",TC:"IconViewTracking",Cj:"IFrameResource",
Ns:"Impression",NI:"InLine",LINEAR:"Linear",mD:"MediaFile",nD:"MediaFiles",DE:"NonLinear",tD:"NonLinearAds",xC:"NonLinearClickThrough",yC:"NonLinearClickTracking",PJ:"Pricing",Dj:"StaticResource",Os:"Survey",KK:"Tracking",bn:"TrackingEvents",UK:"VAST",gD:"VASTAdTagURI",qD:"VideoClicks",hD:"Wrapper"};
$T.prototype.k={WE:"adSlotID",bD:"allowMultipleAds",Aj:"apiFramework",iD:"bitrate",uD:"creativeType",jD:"delivery",$m:"duration",oI:"event",fD:"followAdditionalWrappers",XE:"expandedHeight",YE:"expandedWidth",Ym:"height",wj:"id",vC:"maintainAspectRatio",lD:"maxBitrate",oD:"minBitrate",wC:"minSuggestedDuration",UC:"offset",VC:"program",DD:"required",zC:"scalable",Qr:"sequence",pD:"skipoffset",Ms:"type",VERSION:"version",Zm:"width",WC:"xPosition",XC:"yPosition"};
function aU(a){if(null==a)return!1;a=Jd(a);return null!=a&&"VAST"==a.nodeName}function bU(a){if(null==a)return 0;a=parseInt(a.getAttribute("version"),10);return ha(a)&&!isNaN(a)?a:0}function cU(a){var b=[],c=Jd(a.A),d=bU(c);rQ(c,a.j.dC,function(a){var c;c=dU(a);if(null==c)throw mQ(a);var h=a.getAttribute(this.k.wj);a=Number(a.getAttribute(this.k.Qr));c=eU(this,c,h||null,a||0);null!=c&&(c.la=d,b.push(c))},a);return b}$T.prototype.o=function(){return new vQ(this.A,cU(this),null)};
function dU(a){var b=null;E(Id(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw mQ(a);}});return b}
function eU(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],t=new je,v,A=b.nodeName==a.j.hD,U=A,Z=A,ea;E(Id(b),function(a){switch(a.nodeName){case this.j.gD:if(A){if(null!=v)throw nQ(a);v=qQ(a);ea=XQ(v);U=uQ(b.getAttribute(this.k.bD),U);Z=uQ(b.getAttribute(this.k.fD),Z)}else throw mQ(a);break;case this.j.$C:e=qQ(a);break;case this.j.aD:g=qQ(a);break;case this.j.dD:qQ(a);break;case this.j.Os:qQ(a);break;case this.j.Ns:a=qQ(a);VQ(a)&&h.push(HQ(a));break;case this.j.ERROR:a=qQ(a);k.push(HQ(a));break;case this.j.cD:a=
fU(this,a);l=a.creatives;p=a.RC;break;case this.j.eD:t=gU(this,a,ea)}},a);return new OP(D(c),e,hU(e),g,0,0,d,k,h,l,p,t,v,U,Z,iU(t))}function iU(a){var b=null;a=a.get("AdSense");null!=a&&(a=$Q(a,"vast2tracking"),null!=a&&!ib(a)&&(b=a[0]));return b}function hU(a){if(C(D(a)))return"UNKNOWN";a=a.toUpperCase();switch(a){case "ADSENSE":case "ADSENSE/ADX":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "402":return a;default:return"UNKNOWN"}}
function jU(a){if(C(D(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function gU(a,b,c){var d=new je;try{var e=oQ(b,a.j.BD);E(e,function(a){var b=a.getAttribute(this.k.Ms);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new vR).parse(a);break;case "pod":a=(new tR).parse(a);break;case "waterfall":a=(new xR).parse(a);break;case "dart":a=(new hR).parse(a);break;case "dfp":b="DFP";a=(new iR).parse(a);break;case "adsense":b="AdSense";a=(new fR).parse(a);break;case "textad":b="TextAd";a=(new rR).parse(a);break;case "templatead":b="TemplateAd";a=(new oR).parse(a);break;
case "infocards":var b="InfoCards",e=new lR;a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new lR;a=e.parse(a);break;case c:b="LocalRedirect";null!=a?(e=null,a=oQ(a,"AdXml"),1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+DC(Jd(a[0]))),a=new mR(e)):a=null;break;default:e=new jR,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(ZQ(e,a.j),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function fU(a,b){var c=[],d=[];rQ(b,a.j.sD,function(a){var b=a.getAttribute(this.k.Qr),h;C(D(b))||(h=parseFloat(b));a.getAttribute(this.k.wj);var k=!1;E(Id(a),function(a){switch(a.nodeName){case this.j.LINEAR:if(k)throw nQ(a);a=kU(this,a,isNaN(h)?0:h);qb(c,a);k=!0;break;case this.j.rD:if(k)throw nQ(a);a=lU(this,a,isNaN(h)?void 0:h);qb(d,a);k=!0;break;case this.j.tD:if(k)throw nQ(a);a=mU(this,a,isNaN(h)?0:h);qb(c,a);k=!0}},this)},a);return{creatives:c,RC:d}}
function mU(a,b,c){var d=[],e=new MQ;E(Id(b),function(a){switch(a.nodeName){case this.j.DE:a=nU(this,a,c);null!=a&&d.push(a);break;case this.j.bn:e=UQ(a);break;default:throw mQ(a);}},a);0!=d.length||e.isEmpty()||(a=new uS(null,new I(-1,-1),"",null,""),a.j=c,d.push(a));E(d,function(a){e&&(a.Lf=e)});return d}
function oU(a,b){var c={};c.id=b.getAttribute(a.k.wj);c.adSlotId=b.getAttribute(a.k.WE);c.apiFramework=b.getAttribute(a.k.Aj);var d=Ta(b.getAttribute(a.k.Zm)),e=Ta(b.getAttribute(a.k.Ym));c.size=new I(d,e);d=b.getAttribute(a.k.YE);e=b.getAttribute(a.k.XE);C(D(d))||C(D(e))||(c.iH=new I(Ta(d),Ta(e)));return c}
function nU(a,b,c){var d=oU(a,b);b.getAttribute(a.k.Aj);b.getAttribute(a.k.zC);b.getAttribute(a.k.vC);var e=b.getAttribute(a.k.wC),e=tQ(e,-1),g=[];new je;var h={},k="",l,p=[];E(Id(b),function(a){switch(a.nodeName){case this.j.yC:p.push(qQ(a));break;case this.j.xC:l=qQ(a);break;case this.j.Tm:h=pU(a);k=D(qQ(a));break;case this.j.Cj:case this.j.Dj:case this.j.Bj:g.push(qU(this,a));break;default:throw mQ(a);}},a);a=TT(d.id,d.size,g);mS(a,k,h);a.G=d.apiFramework;a.N=l;a.V=p;a.ia=e;a.j=c;return a}
function qU(a,b){var c=pQ(b,a.k.uD),d;t:switch(d=b.nodeName,d){case a.j.Dj:d="Static";break t;case a.j.Cj:d="IFrame";break t;case a.j.Bj:d="Html";break t;default:throw DK(wK,null,d);}var e=qQ(b);null!=e||(e="");return new jT(d,c,e)}function lU(a,b,c){var d=[],e=jU(pQ(b,a.k.DD));rQ(b,a.j.CD,function(a){a=rU(this,a,c);null!=a&&d.push(a)},a);return new hT(d,e)}
function rU(a,b,c){var d=oU(a,b),e=[],g=new MQ,h;E(Id(b),function(a){switch(a.nodeName){case this.j.vE:break;case this.j.bn:g=UQ(a,!0);break;case this.j.uE:h=qQ(a);break;case this.j.tE:qQ(a);break;case this.j.Tm:qQ(a);break;case this.j.Cj:case this.j.Dj:case this.j.Bj:e.push(qU(this,a));break;default:throw mQ(a);}},a);return ib(e)?null:VT(d,h,c,g,e)}
function kU(a,b,c){var d=new MQ,e={},g="",h=[],k,l=new je,p=[],t=[],v,A=WQ(pQ(b,a.k.pD));E(Id(b),function(a){switch(a.nodeName){case this.j.kD:t=sU(this,a);break;case this.j.Tm:e=pU(a);g=D(qQ(a));break;case this.j.$m:v=tQ(qQ(a),0);break;case this.j.bn:d=UQ(a);break;case this.j.nD:p=tU(this,a);break;case this.j.qD:a=uU(this,a);l=a.customClicks;k=a.clickThrough;h=a.clickTrackingUrls;break;default:throw mQ(a);}},a);E(h,function(a){RQ(d,"click",a)});a=new pS(v,k,l,p,A,t);mS(a,g,e);a.j=c;d&&(a.Lf=d);return a}
function uU(a,b){var c,d=[],e=new je;E(Id(b),function(a){switch(a.nodeName){case this.j.vD:c=qQ(a);break;case this.j.wD:a=qQ(a);d.push(a);break;case this.j.xD:var b=pQ(a,this.k.wj);null!=b||(b="");var k=e.get(b,[]);k.push(qQ(a));e.set(b,k);break;default:throw mQ(a);}},a);return{clickThrough:c,clickTrackingUrls:d,customClicks:e}}
function tU(a,b){var c=[];rQ(b,a.j.mD,function(a){var b=pQ(a,this.k.jD),g=pQ(a,this.k.Ms);a.getAttribute(this.k.Zm);var h=Ta(a.getAttribute(this.k.Ym)),k=a.getAttribute(this.k.Aj),l=qQ(a),p=sQ(a.getAttribute(this.k.iD)),t=sQ(a.getAttribute(this.k.oD));a=sQ(a.getAttribute(this.k.lD));c.push(new sO(b,g,p,t,a,0,h,l,k))},a);return c}function sU(a,b){var c=[];rQ(b,a.j.KE,function(a){a=vU(this,a);null!=a&&c.push(a)},a);return c}
function vU(a,b){var c=b.getAttribute(a.k.VC),d=pQ(b,a.k.WC),e=pQ(b,a.k.XC),g=Ta(b.getAttribute(a.k.Zm)),h=Ta(b.getAttribute(a.k.Ym)),g=new I(g,h),h=b.getAttribute(a.k.Aj),k=WQ(pQ(b,a.k.UC)),l=b.getAttribute(a.k.$m),l=tQ(l,-1),p=[],t=[],v;E(Id(b),function(a){switch(a.nodeName){case this.j.TC:t.push(qQ(a));break;case this.j.SC:v=wU(this,a);break;case this.j.Cj:case this.j.Dj:case this.j.Bj:p.push(qU(this,a));break;default:throw mQ(a);}},a);return ib(p)?null:ZT(c,g,d,e,l,k,h,v,t,p)}
function wU(a,b){var c=[],d;E(Id(b),function(a){switch(a.nodeName){case this.j.IE:d=qQ(a);break;case this.j.JE:c.push(qQ(a));break;default:throw mQ(a);}},a);return{iconClickThrough:d,hH:c}}function pU(a){a=qQ(a);return null!=a?FQ(a):{}};function xU(a,b){this.k=a;this.j=b}B(xU,lQ);xU.prototype.o=function(){return new vQ(this.k,null,yU(this))};function zU(a){var b=FC(a);return ib(b)?[pQ(a,"timeOffset")]:F(b,function(a){return pQ(a,"timeOffset")})}
function yU(a){var b=new zQ;E(Id(Jd(a.k)),function(a){if("vmap:AdBreak"==a.nodeName){var d=AU(this,a);a=zU(a);E(a,function(a,c){var h=tQ(a);0<c&&(d=BU(this,d));if("start"==a||0==h)AQ(b,d,0);else if("end"==a)AQ(b,d,-1);else{if(-1==h)throw DK(XJ,null,"timeOffset",D(a));AQ(b,d,h)}},this)}},a);if(0==b.j.Ka().length)throw DK(dK);return b}function BU(a,b){return F(b,function(a){var b=new xQ(a.o.clone());b.j=a.j;b.k=a.k;return b},a)}
function CU(a){a=pQ(a,"timeOffset");var b=tQ(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b}
function AU(a,b){var c=[],d="",e=null,g=!1,h=!1;E(Id(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e&&(e=EC(a,"vmap:VASTData/VAST")||EC(a,"vmap:VASTAdData/VAST"),!e)){var b=oQ(a,"vmap:AdTagURI"),c="";b.length&&(c=D(qQ(b[0])));if(C(c))throw DK(BK,null,a.parentNode.nodeName,a.nodeName);d=c}break;case "vmap:Extensions":a=oQ(a,"vmap:Extension"),a=DU(this,a),null!=a&&(g=!0,a=pQ(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=EU(a,e):C(d)||(k=FU(a,d));k&&(OK()&&(k.ph=CU(b)),
k=new xQ(k),k.j=g,k.k=g&&!h,kb(c,k));return c}function DU(a,b){return G(b,function(a){return"bumper"==pQ(a,"type")},a)}function FU(a,b){var c=a.j.clone();C(c.adsResponse)||(c.adsResponse="");c.adTagUrl=b;return c}function EU(a,b){var c=a.j.clone();c.adsResponse=DC(b);c.adTagUrl="";return c};function GU(a,b){if(null!=a){var c;null!=a?(c=Jd(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return fQ.getInstance().j=!1,new BQ(a,b);null!=a?(c=Jd(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return fQ.getInstance().j=!1,new xU(a,b);if(aU(a)){if(!aU(a))throw DK(gK);c=Jd(a);var d=bU(c);if(1>d||3<d)throw DK(xK);c=oQ(c,"Ad");if(ib(c))throw DK(lK);c=dU(c[0]);if(null==c)throw DK(oK);if(1!=oQ(c,"AdSystem").length)throw DK(oK);return new $T(a)}}return null};function HU(){}f=HU.prototype;
f.clone=function(){var a=new HU;"auto"==this.Me?a.Me="auto":"click"==this.Me&&(a.Me="click");a.adTagUrl=this.adTagUrl;a.xe=Vb(this.xe);a.adsResponse=this.adsResponse;a.Tc=Vb(this.Tc);a.tt=this.tt;a.isYouTube=this.isYouTube;a.location=this.location;a.referrer=this.referrer;a.lastActivity=this.lastActivity;a.language=this.language;a.linearAdSlotWidth=this.linearAdSlotWidth;a.linearAdSlotHeight=this.linearAdSlotHeight;a.nonLinearAdSlotWidth=this.nonLinearAdSlotWidth;a.nonLinearAdSlotHeight=this.nonLinearAdSlotHeight;
a.sc=this.sc;a.tagForChildDirectedContent=this.tagForChildDirectedContent;a.Ig=this.Ig;a.Lm=this.Lm;a.youTubeAdType=this.youTubeAdType;a.youTubeExperimentIds=this.youTubeExperimentIds;a.ph=this.ph;a.Nj=this.Nj;this.j&&(a.j=pb(this.j));return a};f.xe=null;f.Tc=null;f.Me="unknown";f.tt=!1;f.isYouTube=!1;f.linearAdSlotWidth=0;f.linearAdSlotHeight=0;f.nonLinearAdSlotWidth=0;f.nonLinearAdSlotHeight=0;f.sc=null;f.tagForChildDirectedContent=!1;f.Ig=!1;f.Lm=!0;f.ph=0;f.Xp=!0;f.Nj=null;function IU(a,b){this.k=a;this.o=b;var c=a.j;OK()&&c&&HR(FR(),c,!1)}function JU(a,b){"auto"!=a.k.Me&&"click"!=a.k.Me||b.set("vpa",a.k.Me)}function KU(a){C(PK.getPlayerType())||(a.set("mpt",PK.getPlayerType()),C("")||a.set("mpv",""))}function LU(a,b){var c=a.o.B;null!=c&&b.set("js","ima-"+c)}function MU(a,b){b.set("osd",2);-1!=a.o.G&&b.set("frm",a.o.G)}IU.prototype.F=function(){return this.A(this.C()).toString()};function NU(a){return PK.j?"h.3.0.0":null!=a.o?tP(a.o):null}
IU.prototype.B=function(){var a;a=1;aL()&&(a+=4);return a};function OU(){this.j=["video"]}var PU={PK:"ultrahigh",CI:"high",MG:"medium"},QU={vH:1E3,wH:1001,xH:1002,yH:1003,zH:1004,AH:1005,BH:1006},RU={LG:1,GG:2},SU={bI:"content",jK:"site",kK:"site_content"};f=OU.prototype;f.Ci="high";f.pl=!1;f.fl=1;f.il=null;f.adType="video";f.adBlock=1;f.ql=null;f.jl=!0;f.kl=null;f.nl=null;f.Jg=null;f.experimentIds=null;f.rl=null;f.host=null;f.hostTierId=null;f.tl=!1;f.language=null;f.Fq=null;f.Eq=null;f.Di=1E5;f.Fi=null;f.Hq=null;f.Gq=null;f.xl=0;f.rf=null;f.Gi=null;
f.Mi=null;f.yl=null;f.tagForChildDirectedTreatment=-1;f.url=null;f.Ei=null;f.vl=null;f.wl=null;f.Cl=null;f.zl=null;f.Al=null;f.Bl=null;f.ll=null;var TU=(new Date).getTime();var UU=[202,1009],VU=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"];function WU(a,b,c){var d={};a=new XU(a,n(b)?b:null,n(c)?c:null);YU(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.j?b.j:900;ZU(d,a);$U(d,a);aV(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=$a(UU,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function bV(a,b){var c={},d=new XU(null,a,n(b)?b:null);YU(c,d);ZU(c,d);$U(c,d);aV(c,d);c["[BREAK_TYPE]"]="0";c["[SLOT_POS]"]="0";c["[MIDROLL_POS]"]="0";if(null!=d.j){var e=d.j.o;null!=e&&null!=e.xe&&null!=e.xe.video_start_delay?(e=e.xe.video_start_delay,0==e?c["[BREAK_TYPE]"]="1":-1==e?c["[BREAK_TYPE]"]="3":(c["[BREAK_TYPE]"]="2",c["[MIDROLL_POS]"]=e)):(e=d.j.B,c["[BREAK_TYPE]"]=0==e.k?"1":-1==e.k?"3":"2",c["[SLOT_POS]"]=e.j-1,0<e.B&&(c["[MIDROLL_POS]"]=Math.round(1E3*e.B)))}cV(c,d);dV(c,d);d=a.na;
for(e=a;null!=e;)d=e.ia+","+d,e=e.k;c["[RWT]"]=d;return c}function XU(a,b,c){this.error=a;this.j=b;this.display=c}function eV(a,b){null!=b&&(a["[VIEWABILITY]"]=b);return a}function YU(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():""}}}
function dV(a,b){a["[AD_CPN]"]={toString:function(){return b.display.Ef()}};a["[AD_MT]"]={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}}}function ZU(a,b){a["[SDKV]"]="h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";null!=b.j&&(a["[VIEWABILITY]"]={toString:function(){var a;PK.j?(a=bO(),a=fO(a,"metric",b.j.$)):(UR(),a="");return a}});a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}
function $U(a,b){if(null!=b.j&&null!=b.j.o&&null!=b.j.o.Tc&&OK()){var c=b.j.o.Tc;E(VU,function(b){b in c&&(a[b]=c[b])})}}
function aV(a,b){if(null!=b.j){a["[AD_ID]"]=RS(b.j);a["[AD_SYS]"]=TS(b.j);a["[AD_V]"]={toString:function(){return null!=b.display?EO(b.display.getVideoUrl()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=FS(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])}}
function cV(a,b){null!=b.j&&(a["[AD_LEN]"]={toString:function(){var a=dT(b.j);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.ed()).toString():""}})};var fV={JG:"flash",Hu:"image",oK:"skippablevideo",qK:"standardvideo",sK:"staticimage",TEXT:"text",VIDEO:"video"},gV=["flash","image","staticimage"],hV=[new I(200,200),new I(250,250),new I(300,250),new I(336,280),new I(450,50),new I(468,60),new I(480,70),new I(728,90)];
function iV(a,b){var c=null!=b.linearAdSlotHeight?b.linearAdSlotHeight:0,d=null!=b.nonLinearAdSlotHeight?b.nonLinearAdSlotHeight:0;a.set("sz",Math.max(null!=b.linearAdSlotWidth?b.nonLinearAdSlotWidth:0,null!=b.nonLinearAdSlotWidth?b.nonLinearAdSlotWidth:0)+"x"+Math.max(c,d))}
function jV(a){var b={};b.u_tz=-(new Date).getTimezoneOffset();var c;var d=window;try{c=d.history.length}catch(e){c=0}b.u_his=c;b.u_java=navigator.javaEnabled();window.screen&&(b.u_h=window.screen.height,b.u_w=window.screen.width,b.u_ah=window.screen.availHeight,b.u_aw=window.screen.availWidth,b.u_cd=window.screen.colorDepth);navigator.plugins&&(b.u_nplug=navigator.plugins.length);navigator.mimeTypes&&(b.u_nmime=navigator.mimeTypes.length);for(var g in b)a.set(g,b[g]);a.set("dt",TU)}
function kV(a){if(a.Tc&&a.Tc["[LACT]"]){var b=a.Tc["[LACT]"].toString();if(b)return Wa(b)}return a.lastActivity}function lV(a,b,c){var d=new je;d.set("ad_type",b.adType);IL&&d.set("flash",JL);iV(d,a);mV(b)&&(d.set("ea","0"),null!=a.nonLinearAdSlotWidth&&null!=a.nonLinearAdSlotHeight&&d.set("image_size",nV(b,a.nonLinearAdSlotWidth,a.nonLinearAdSlotHeight)));oV(d,c);d.set("lact",kV(a));d.set("videoad_start_delay",a.ph);jV(d);pV(a,d,!0);return d}
function pV(a,b,c){C(D(a.referrer))||(a=a.referrer,c&&(a=va(a)),qV("ref",a,b))}function rV(a,b){var c=null!=b?b.split("_"):a;E(c,function(a){if(!Kb(fV,a))throw DK(cK,null,"ad_type",String(b));});if(!aL()){var d=[];E(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw DK(bK,null,"skippablevideo");return d}return c}function sV(a,b){return null!=b?b.split(/[+, ]/):a}
function nV(a,b,c){a.o&&(c=Math.min(c,90));var d=[];E(hV,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}function tV(a,b){return null==b||isNaN(b)?a:Number(b)}function uV(a,b){return null!=b?String(b):null!=a?a:null}function vV(a,b){if(null==b)return a;switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a}function wV(a,b,c){return null!=b&&Kb(c,b)?b:a}function mV(a){return db(gV,function(b){return H(a.j,b)})}
function oV(a,b){IL?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.o;null!=c&&0<c.length&&(c=c[0].B,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}function qV(a,b,c){null!=b&&c.set(a,b)};function xV(a,b,c){IU.call(this,a,b);b=new OU;a=af(new K(a.adTagUrl));b.ql=wV(b.ql,a.get("cust_age"),QU);b.Ci=wV(b.Ci,a.get("adsafe"),PU);b.j=rV(b.j,a.get("ad_type"));b.adType=b.j.join("_");b.fl=tV(b.fl,a.get("videoad_start_delay"));b.il=uV(b.il,a.get("slotname"));b.pl=vV(b.pl,a.get("adtest"));b.jl=vV(b.jl,a.get("scs"));b.kl=uV(b.kl,a.get("alternate_ad_url"));b.channels=sV(b.channels,a.get("channel"));b.nl=tV(b.nl,a.get("cpm"));b.Jg=uV(b.Jg,a.get("description_url"));b.experimentIds=uV(b.experimentIds,
a.get("eid"));b.rl=wV(b.rl,a.get("cust_gender"),RU);b.o=vV(b.o,a.get("overlay"));b.host=uV(b.host,a.get("host"));b.k=sV(b.k,a.get("h_ch"));b.hostTierId=tV(b.hostTierId,a.get("ht_id"));b.tl=vV(b.tl,a.get("lsv"));var d;null!=this.k.language?d=this.k.language:(d=m.navigator||null,d=MK(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=uV(e,d);var g;null!=d&&!C(D(d))&&(g=MK(d));b.language=uV(b.language,g);b.Fq=tV(b.Fq,a.get("linearAdSlotWidth"));
b.Eq=tV(b.Eq,a.get("linearAdSlotHeight"));b.Di=tV(b.Di,a.get("max_ad_duration"));b.xl=tV(b.xl,a.get("min_ad_duration"));b.Fi=tV(b.Fi,a.get("sdmax"));b.Hq=tV(b.Hq,a.get("nonLinearAdSlotWidth"));b.Gq=tV(b.Gq,a.get("nonLinearAdSlotHeight"));b.rf=uV(b.rf,a.get("client"));b.Gi=uV(b.Gi,a.get("t_pyv"));b.Mi=tV(b.Mi,a.get("sdki"));b.tagForChildDirectedTreatment=tV(b.tagForChildDirectedTreatment,a.get("tfcd"));b.yl=wV(b.yl,a.get("targeting"),SU);b.Ei=tV(b.Ei,a.get("video_format"));b.vl=tV(b.vl,a.get("video_cpm"));
b.wl=uV(b.wl,a.get("loeid"));b.Cl=uV(b.Cl,a.get("yt_pt"));b.zl=uV(b.zl,a.get("ytdevice"));b.Al=uV(b.Al,a.get("ytdevicever"));b.Bl=uV(b.Bl,a.get("dbp"));b.A=uV(b.A,a.get("ms"));b.adBlock=tV(b.adBlock,a.get("adBlock"));b.url=uV(b.url,a.get("url"));b.ll=uV(b.ll,a.get("avo"));this.j=b;this.G=c;C(D(this.j.experimentIds))||(c=this.j.experimentIds.split(","),HR(FR(),c))}B(xV,IU);var yV=["skippablevideo","standardvideo","video"];xV.prototype.D={uy:"allow",vy:"exclude",XJ:"require"};
xV.prototype.B=function(){var a=xV.I.B.call(this);this.j.Mi&&(a+=this.j.Mi&2);return a};xV.prototype.A=function(a){var b=new K("//googleads.g.doubleclick.net/pagead/ads"),c=a.Ka();E(c,function(c){L(b,c,a.get(c))});return b};
xV.prototype.C=function(){var a=new je;a.set("sdkv",NU(this));a.set("sdki",this.B().toString(16));a.set("video_product_type",null!=this.j.rf?OK()?5:0==this.j.rf.lastIndexOf("ca-games-",0)?4:0==this.j.rf.lastIndexOf("ca-video-",0)?0:-1:-1);a.set("correlator",this.o.j);a.set("client",this.j.rf);OK()&&!C(D(this.j.url))?a.set("url",this.j.url):a.set("url",this.k.location?this.k.location:this.k.referrer);null!=this.k.sc&&a.set("adk",this.k.sc);a.set("num_ads",zV(this));a.set("channel",AV(this));a.set("ad_type",
this.j.adType);IR(41351020)?a.set("output","xml_vast3"):a.set("output","xml_vast2");this.j.pl&&a.set("adtest","on");IL&&a.set("flash",JL);qV("alternate_ad_url",this.j.kl,a);qV("cpm",this.j.nl,a);iV(a,this.k);OK()||Kb(PU,this.j.Ci)&&a.set("adsafe",this.j.Ci);this.j.host&&(a.set("host",this.j.host),qV("ht_id",this.j.hostTierId,a),null!=this.j.k&&qV("h_ch",this.j.k.join("+"),a));qV("hl",this.j.language,a);qV("cust_age",this.j.ql,a);qV("cust_gender",this.j.rl,a);-1!=this.j.tagForChildDirectedTreatment&&
qV("tfcd",this.j.tagForChildDirectedTreatment,a);qV("slotname",this.j.il,a);var b=JR(FR());C(D(b))||a.set("eid",b);jV(a);b=this.j.Jg;if(null!=b){var c;c=this.o;null==c.o&&(c.o=new jP);c=c.o;var d;null!=b&&c.k!=b?(c.j=1,c.k=b):c.j=null!=b?c.j+1:1;d=c.j;1!=d&&a.set("ad_block",d);d=this.o;null==d.K&&(d.K=new pP);d=d.K;var e=b!=this.o.N;(c=0==c.j%100||e)||(c=36E5<(null===d.j?0:(new mP).getTime()-d.j));c&&(d.j=null,d.k=null);this.o.N=b;b=d.k;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");
b=this.j.fl;a.set("videoad_start_delay",null!=b?b:1);LU(this,a);MU(this,a);JU(this,a);mV(this.j)&&(a.set("ea","0"),null!=this.k.nonLinearAdSlotWidth&&null!=this.k.nonLinearAdSlotHeight&&a.set("image_size",nV(this.j,this.k.nonLinearAdSlotWidth,this.k.nonLinearAdSlotHeight)));BV(this)&&a.set("video_format",null!=this.j.Ei&&OK()?this.j.Ei:Uh&&0<=Oa(Rt,6)||Ph&&0<=Oa(Rt,4)||Wc&&XK(TK,2.3)?43:18);b=null!=this.j.Gi?this.j.Gi:H(this.j.adType.split("_"),"text")?this.D.uy:this.D.vy;a.set("t_pyv",b);qV("min_ad_duration",
this.j.xl,a);0<this.j.Di&&a.set("max_ad_duration",CV(this.j.Di,zV(this)));0<this.j.Fi&&a.set("sdmax",CV(this.j.Fi,zV(this)));oV(a,this.G);OK()&&(b=EO(this.j.Jg),null!=b&&a.set("video_doc_id","yt_"+b));qV("description_url",this.j.Jg,a);OK()&&(qV("lact",kV(this.k),a),qV("loeid",this.j.wl,a),qV("lsv",this.j.tl,a),this.j.jl||qV("scs","false",a),qV("targeting",this.j.yl,a),qV("video_cpm",this.j.vl,a),qV("yt_pt",this.j.Cl,a),qV("ytdevice",this.j.zl,a),qV("ytdevicever",this.j.Al,a),qV("dbp",this.j.Bl,a),
qV("avo",this.j.ll,a));qV("ms",this.j.A,a);KU(a);pV(this.k,a,!1);null!=this.k.xe&&qV("loc",this.k.xe.page_location,a);return a};function BV(a){return db(yV,function(a){return H(this.j.j,a)},a)}function zV(a){return OK()?1:H(a.j.adType.split("_"),"text")?3:1}function AV(a){a=a.j.channels?a.j.channels:[];tb(a);a=sb(a,0,30);return a.join("+")}function CV(a,b){return Math.round(1.1*(a||0)+0*b)};function DV(a,b){IU.call(this,a,b)}B(DV,IU);DV.prototype.A=function(a){var b=new K(this.k.adTagUrl);E(a.Ka(),function(c){C(a.get(c))?b.j.remove(c):L(b,c,a.get(c))});return b};DV.prototype.C=function(){var a=new je;a.set("sdkv",NU(this));MU(this,a);JU(this,a);KU(a);null!=this.k.sc&&a.set("adk",this.k.sc);return a};function EV(a,b){IU.call(this,a,b)}B(EV,IU);EV.prototype.C=function(){return null};
EV.prototype.A=function(){var a=new $R(this.k.adTagUrl),b=NU(this);b&&dS(a,"dc_sdkv",[b]);(b=this.B().toString(16))&&dS(a,"dc_sdki",[b]);(b=this.o.F)&&dS(a,"dc_submodel",[b]);null!=this.k.sc&&dS(a,"dc_adk",[this.k.sc]);b=new je;LU(this,b);MU(this,b);JU(this,b);KU(b);le(b,"js")&&dS(a,"dc_js",[b.get("js")]);le(b,"msid")&&dS(a,"dc_msid",[b.get("msid")]);le(b,"frm")&&dS(a,"dc_frm",[b.get("frm")]);le(b,"osd")&&(dS(a,"osd",[b.get("osd")]),dS(a,"dc_osd",[b.get("osd")]));dS(a,"dcmt",["text/xml"]);le(b,"vpa")&&
dS(a,"vpa",[b.get("vpa")]);le(b,"mpt")&&dS(a,"mpt",[b.get("mpt")]);le(b,"mpv")&&dS(a,"mpv",[b.get("mpv")]);return a};function FV(a){IU.call(this,a,null)}B(FV,IU);FV.prototype.A=function(a){return new K(a.get("adTagUrl"))};FV.prototype.F=function(){return D(this.C().get("adTagUrl"))};FV.prototype.C=function(){var a=new je;a.set("adTagUrl",this.k.adTagUrl);a.set("adsResponse",this.k.adsResponse);return a};function GV(a){IU.call(this,a,null)}B(GV,IU);GV.prototype.A=function(a){return new K(a.get("adTagUrl"))};GV.prototype.C=function(){var a=new je;a.set("adTagUrl",this.k.adTagUrl);a.set("adsResponse",this.k.adsResponse);return a};function HV(a,b){IU.call(this,a,b)}B(HV,IU);HV.prototype.A=function(a){var b=new K(this.k.adTagUrl);E(a.Ka(),function(c){C(a.get(c))?b.j.remove(c):L(b,c,a.get(c))});return b};
HV.prototype.C=function(){var a=new je;a.set("sdkv",NU(this));a.set("sdki",this.B().toString(16));a.set("correlator",this.o.C);a.set("scor",this.o.j);null!=this.k.sc&&a.set("adk",this.k.sc);LU(this,a);MU(this,a);JU(this,a);KU(a);var b=this.o.k;null!=b&&(this.o.k=null,a.set("fbidx",b));b=this.o.P;null!=b&&a.set("ppid",b);var b="null",c=this.o.A;null!=c?b=c:IV(this.k.location)?b=this.k.location:IV(this.k.referrer)&&(b=this.k.referrer);a.set("url",b);b=this.o.F;null!=b&&a.set("submodel",b);b=this.o.D;
null!=b&&(b=JV(b),a.set("ciu_szs",b));a.set("impl","");return a};function IV(a){if(C(D(a)))return!1;a=new K(a);if(!a.Hb||"http"!=a.Hb&&"https"!=a.Hb)return!1;a=a.mb;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0}function JV(a){var b=[];E(a,function(a){0<a.length&&b.push(F(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function KV(a,b,c){IU.call(this,a,b);this.G=C(D(a.youTubeAdType));a=new OU;a.j=rV(a.j,this.k.youTubeAdType);a.adType=a.j.join("_");a.experimentIds=uV(a.experimentIds,this.k.youTubeExperimentIds);this.j=a;this.D=c;C(D(this.j.experimentIds))||(c=this.j.experimentIds.split(","),HR(FR(),c))}B(KV,HV);KV.prototype.A=function(a){a=KV.I.A.call(this,a);this.G||LV(this,a);return a};function MV(a){var b=lV(a.k,a.j,a.D);b.set("sdkv",NU(a));b.set("sdki",a.B().toString(16));return b}
function LV(a,b){var c=MV(a),d=F(c.Ka(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});L(b,"afvparams",d.join("&"))};function NV(a,b,c){IU.call(this,a,b);this.G=C(D(a.youTubeAdType));a=new OU;a.j=rV(a.j,this.k.youTubeAdType);a.adType=a.j.join("_");a.experimentIds=uV(a.experimentIds,this.k.youTubeExperimentIds);this.j=a;this.D=c;C(D(this.j.experimentIds))||(c=this.j.experimentIds.split(","),HR(FR(),c))}B(NV,EV);NV.prototype.A=function(a){a=NV.I.A.call(this,a);this.G||OV(this,a);return a};function PV(a){var b=lV(a.k,a.j,a.D);b.set("sdkv",NU(a));b.set("sdki",a.B().toString(16));return b}
function OV(a,b){var c=PV(a),d=F(c.Ka(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});dS(b,"afvparams",[va(d.join("&"))])};function QV(a,b){var c;!iS(a)&&!jS(a)||C(D(a.youTubeAdType))||null==a.adTagUrl||-1==a.adTagUrl.search("afvbase=")?iS(a)?c=new EV(a,sP):fS(a)?c=new xV(a,sP,b):jS(a)?c=new HV(a,sP):hS(a)?c=new DV(a,sP):(c=a.adTagUrl,null!=c?(c=Ye(new K(c)),c=ta(c,".fwmrm.net")):c=!1,c=c?new FV(a):new GV(a)):c=iS(a)?new NV(a,sP,b):new KV(a,sP,b);return c};function RV(a){a=bb(a,function(a){return 0<VS(a)});wb(a,function(a,c){return VS(a)-VS(c)});return a}function SV(a){return bb(a,function(a){return-1==VS(a)})};function TV(a){this.j=a};function UV(){this.j=0}function VV(a,b,c,d,e,g){var h=x(function(a){d(a,Error(sn(a)))},a),k=x(function(a){6==a?WV(this,b,!1,c,h,e,g):h(a)},a);WV(a,b,!0,c,k,e,g)}
function WV(a,b,c,d,e,g,h){var k=new ao;k.O=c;eo(k,XV(g));var l=new ln,p=x(function(){l.dispose();k.dispose()},a);c=x(function(){e(k.k);p()},a);rn(l,k,"success",function(){var a;try{a=k.j?k.j.responseXML:null}catch(b){a=null}if(null==a){var c=Hn(k);try{a=BC(c)}catch(e){t:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=CC())){a.appendChild(a.createNode(1,"parsererror",""));
break t}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);rn(l,k,["error","timeout"],c,a);var t;"POST"==h&&(b=new K(b),t=b.j.toString(),Pe(b,""),b=b.toString());a.j=z();k.send(OJ(b),h,t)};function YV(a,b,c){var d=null,e=c+b;E(a.A,function(g){if("true"!=g.F.rm||bT(a,EJ)){var h;if(h=g instanceof uS)0==c&&0==b||g instanceof RT?h=!0:(h=g.Dc(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-g.Dc().height+b-g.Dc().width,"Flash"!=g.getContentType()||IL))if(null==d)d=g,e=h;else if(h==e&&g.j<d.j||h<e)d=g,e=h}else h=bV(a),SJ(LS(a),h),(h=a.o)&&h.adTagUrl&&-1!=h.adTagUrl.indexOf(";afc=1")&&(d=g)});NS(a,d)}
function ZV(a){var b=null;E(a.A,function(a){a instanceof pS&&(null===b||a.j<b.j)&&(b=a)});NS(a,b)};function $V(a,b,c,d){this.A=a;this.G=b;this.ads=0<this.A.length?this.A:this.G;this.C=c;this.B=this.J=!0;this.k=-1;this.j=null;this.D=0;this.N=d;this.logger=null}$V.prototype.od=function(){return null!=this.j&&this.j.od()?!0:0<this.ads.length&&this.k<this.ads.length-1};function aW(a,b,c){null!=a.j?bW(a,b,c):a.od()?cW(a,b,x(function(a){this.od()&&301!=a.getErrorCode()?aW(this,b,c):c(a)},a)):c(new oJ("adLoadError","The ad source contains no more ads.",1005))}
$V.prototype.H=function(a,b){return this.B?0<a.length?a:b:sb(b,0,1)};$V.prototype.o=function(a,b,c){var d;if(!(d=null!=a.j)){var e=this.C;d=e.nonLinearAdSlotWidth||0;e=e.nonLinearAdSlotHeight||0;XS(a)&&!a.G?WS(a,"nonlinear")?YV(a,d,e):ZV(a):WS(a,"linear")?ZV(a):WS(a,"nonlinear")&&YV(a,d,e);d=null!=a.j}d?(this.D++,b(a)):(b=ib(a.A)?DK(oK):ES(a)?DK(jK):DK(rK),d=WU(b,a),SJ(a.P,d),c(b))};
$V.prototype.F=function(a,b,c){var d=this.C.clone();d.adsResponse="";d.adTagUrl=a.Ba;d.sc=gP(d.adTagUrl,d.linearAdSlotWidth,d.linearAdSlotHeight,d.nonLinearAdSlotWidth,d.nonLinearAdSlotHeight,d.Nj);dW(this,a,d,b,c)};function eW(a,b,c,d){var e=a.C.clone();e.adsResponse="";e.adTagUrl=b.Fa;dW(a,b,e,c,d)}
function dW(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.k,null!=g&&(c.adsResponse=g));a.N.k(c,x(function(a){if(a instanceof $V){var c=this.B&&b.ua,g=b.wa,p;for(p in a.ads)a.ads[p].k=b;a.B=c;a.ads=a.H(a.A,a.G);a.k=-1;a.J=g;d(a)}else a instanceof TV?e(new oJ("adLoadError","Ad source cannot contain playlist response.",2)):e(new oJ("adLoadError","Unknown ad source.",2))},a),e)}function fW(a){var b=0;for(a=a.k;null!=a;)a=a.k,b++;return b}
function bW(a,b,c){a.j.od()?aW(a.j,x(function(a){this.o(a,b,x(function(a){this.od()?aW(this,b,c):c(a)},this))},a),x(function(a){gW(this.ads[this.k],a);this.j=null;301==a.getErrorCode()?c(a):this.od()?aW(this,b,c):c(a)},a)):(0==a.j.D&&gW(a.ads[a.k],DK(zK)),a.j=null,aW(a,b,c))}function gW(a,b){1012==b.getErrorCode()&&(b=DK(qK));var c=WU(b,a);SJ(a.P,c)}
function cW(a,b,c){a.k++;var d=a.ads[a.k];d.G||d.F?d.F?eW(a,d,x(function(a){this.j=a;aW(this,b,c)},a),x(function(a){a=hW(a);gW(d,a);c(a)},a)):4<=fW(d)?(a=DK(sK,null,"4"),gW(d,a),c(a)):a.J?a.F(d,x(function(a){this.j=a;aW(this,b,c)},a),x(function(a){a=hW(a);gW(d,a);c(a)},a)):c(DK(yK)):a.o(d,b,c)}function hW(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=DK(zK)}return a};function iW(a,b,c,d){$V.call(this,[],a,b,c);this.K=d}B(iW,$V);iW.prototype.od=function(){return null!=this.j&&this.j.od()?!0:0<this.ads.length&&this.k<this.ads.length-1&&0==this.D};iW.prototype.H=function(a,b){return b};iW.prototype.o=function(a,b,c){var d=-1,d=null==this.j?US(a):US(this.ads[this.k]);this.K.k=d;iW.I.o.call(this,a,b,c)};iW.prototype.F=function(a,b,c){this.K.k=-1;iW.I.F.call(this,a,b,c)};function jW(a,b,c,d,e){this.B=a;this.o=b;this.A=c;this.j=d;this.rb=e}jW.prototype.k=function(a,b,c){C(D(a.adsResponse))?jS(a)&&null!=this.j&&!this.j.D?this.j.start(a,x(function(){kW(this,a,b,c)},this)):kW(this,a,b,c):lW(this,a,b,c)};function lW(a,b,c,d){var e;try{e=BC(b.adsResponse)}catch(g){d(DK(gK,g));return}null!=e?mW(a,e,b,c,d):d(DK(gK))}
function kW(a,b,c,d){var e;if(e=null!=b.adTagUrl){t:{try{wa(b.adTagUrl)}catch(g){e=!1;break t}e=!0}e=!e}if(e)d(DK(aK,null,b.adTagUrl));else{e=QV(b,a.A).F();var h=b.Ig&&MJ(LJ,e)?"POST":"GET";VV(a.o,e,x(function(a){mW(this,a,b,c,d)},a),x(function(a,c){var e;e=8==a?DK(nK):5==a||6==a?DK(WJ):DK($J,c);d(e);e="third_party";fS(b)?e="adsense":iS(b)?e="dart":jS(b)&&(e="xfp");e={rt:e,ec:a};cL(bL.getInstance(),18,e,!0)},a),a.rb,h);nW(b)}}
function nW(a){var b="third_party";fS(a)?b="adsense":iS(a)?b="dart":jS(a)?b="xfp":hS(a)&&(b="dbm");a={rt:b};cL(bL.getInstance(),17,a,!0)}function mW(a,b,c,d,e){var g;try{var h=GU(b,c);if(!h)throw DK(gK);g=h.o();oW(a,g,c,d)}catch(k){k instanceof oJ?e(k):e(DK(hK,k))}}function oW(a,b,c,d){var e=b.j;if(null!=e)d(new TV(e));else{var g=b.o;if(null==g)throw DK(lK);E(g,function(a){a.o=c;a.ia=this.o.j;OK()&&(a.oa=b.k)},a);e=RV(g);g=SV(g);0<g.length&&0<=US(g[0])?d(new iW(g,c,a,a.B)):d(new $V(e,g,c,a))}};function pW(){this.j=8E3+z()}function XV(a){var b=z();a=a.j-b;return 0<a?a:0};function qW(a,b){this.j=a;this.k=b;PK.j&&bO().init();var c;t:{try{c=window.top.location.href}catch(d){c=2;break t}c=null!=c?c==window.document.location.href?0:1:2}sP.G=c}function rW(a,b,c,d){var e=null;null!=a.j&&(e=new hQ(1E3,a.j,a.k));(new jW(a.k,new UV,a.j,e,new pW)).k(b,x(function(a){a instanceof TV?c(a):sW(this,a,c,d)},a),d)}
function sW(a,b,c,d){var e=[],g=x(function(a,b){a.od()?aW(a,x(function(b){e.push(b);g(a,null)},this),x(function(b){301==b.getErrorCode()?d(DK(nK)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=DK(dK)),1012==b.getErrorCode()&&(b=DK(qK)),d(b))},a);g(b,null)};function tW(a){this.k=a;this.j=new Mo}function uW(a,b,c,d){var e=x(function(a){c(a);Po(this.j);vW(this)},a),g=x(function(a){d(a);Po(this.j);vW(this)},a);Oo(a.j,x(function(){rW(this.k,b,e,g)},a));vW(a)}function vW(a){1==a.j.Qa()?(a=a.j,No(a),a=Ya(a.j),null!=a&&a()):a.j.Qa()};function wW(a,b,c){T.call(this);this.A=new tW(new qW(b,c));this.k=b;this.j=!0;this.o=c}B(wW,T);function xW(a,b,c){if(a.j){var d=null!=c?c:{};fQ.getInstance().end("rtr");fQ.getInstance().start("vl");uW(a.A,b,x(function(a){yW(this,a,d)},a),x(function(a){zW(this,a,d)},a))}}function AW(a,b,c){if(!a.j){var d=null!=c?c:{};uW(a.A,b,x(function(a){yW(this,a,d)},a),x(function(a){zW(this,a,d)},a))}}
function yW(a,b,c){if(a.j)b instanceof TV?(b=new BW(b.j,a),b.C=a.k,a.T(new CW(b,c))):(b=DW(b),b.C=a.k,null!=b?(a.T(new CW(b,c)),fQ.getInstance().end("vl")):zW(a,DK(jK,null),c));else if(b instanceof TV)zW(a,DK(VJ,null,"Unsupported ad format."),c);else{var d=new eQ("adsLoaderSdkAdLoaded");d.C=b;d.B=c;a.T(d)}}function zW(a,b,c){a.j?("always"==PK.k&&null!=a.k&&QP(a.k,NP()),a.T(new pJ(b,c))):(c=new eQ("adsLoaderSdkAdError"),c.o=b,a.T(c))};var EW={NORMAL:"normal",FULLSCREEN:"fullscreen"};function FW(){return'<div class="close-padding"><div class="close-button"></div></div>'}function GW(){return'<div class="recall-button"></div>'}function HW(a){return'<a target="_blank" href="'+uT(a.url)+'" class="attribution-button">'+uT(a.text)+"</a>"};function IW(a,b){this.G=a;this.j=J("div",{"class":"controls"});this.P=b||u;this.Vc=new ln(this)}B(IW,Q);f=IW.prototype;f.nd=!1;f.Xs=1E3;f.rs=30;f.Rr=45E3;f.Sr=15E3;f.Yt=!1;function JW(a){var b=J("div",{"class":"container"});Hw(b,"opacity 0.4s");a.Vc.listen(b,"mouseover",a.BE);a.Vc.listen(b,"mouseout",a.CE);b.appendChild(a.j);return b}f.Tn=function(){var a=JW(this);this.j.appendChild(this.G);this.display(this.G);this.play();return a};f.M=function(){null==this.J&&(this.J=this.Tn());return this.J};
f.play=function(){null==this.k&&(this.k=fn(function(){this.nd||(this.hide(),this.Yt=!0);this.k=null},this.Yt?this.Sr:this.Rr,this))};f.stop=function(){null!=this.k&&(gn(this.k),this.k=null)};f.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};f.show=function(){Kg(this.M(),1);null!=this.o&&(gn(this.o),this.o=null)};f.hide=function(){Kg(this.M(),this.rs/100);null==this.o&&(this.o=fn(function(){this.P();this.o=null},400,this))};
f.BE=function(){this.show();this.nd=!0;this.C=fn(function(){this.nd&&this.stop();this.C=null},this.Xs,this)};f.CE=function(){null!=this.C&&(gn(this.C),this.C=null);this.nd&&this.play();this.nd=!1};f.L=function(){IW.I.L.call(this);this.stop();qi(this.Vc)};function KW(a,b){this.H=a;this.N=new je;this.K=15E3;this.D=J("span");IW.call(this,a[0],b);this.j.appendChild(this.D)}B(KW,IW);
KW.prototype.Tn=function(){var a=JW(this);O(a,"container-rotator");this.F=J("div");this.j.appendChild(this.F);E(this.H,function(a,c){O(a,"container-highlight");var d=63/this.H.length*(c+.5)-5,e=J("div",{id:Sa(),"class":"container-selector"});e.style.top=d+"px";this.Vc.listen(e,"click",function(a){LW(this,a.target)});this.N.set(e.id,a);this.D.appendChild(e)},this);LW(this,Jd(this.D));this.play();return a};
KW.prototype.play=function(){null==this.A&&(this.A=new dn(this.K),this.Vc.listen(this.A,"tick",this.O));KW.I.play.call(this);this.A.start()};KW.prototype.stop=function(){null!=this.A&&this.A.stop();KW.I.stop.call(this)};KW.prototype.O=function(){var a=this.B;LW(this,(void 0!=a.nextElementSibling?a.nextElementSibling:Kd(a.nextSibling))||Jd(this.B.parentNode))};function LW(a,b){a.B&&Zg(a.B,"container-active");O(b,"container-active");var c=a.N.get(b.id);Hd(c,a.F);a.B=b;a.F=c;a.display(c)};function MW(a,b){IW.call(this,a[0],b);this.A=a;O(this.j,"container-stack")}B(MW,IW);MW.prototype.hide=u;MW.prototype.Tn=function(){var a=JW(this);E(this.A,function(a){O(a,"container-highlight");this.j.appendChild(a);this.display(a)},this);this.play();return a};function NW(){Q.call(this);this.D="";this.k=new MQ;this.o=new je;this.A=[];this.F=!1;this.j={};this.C=-1;this.B=[]}B(NW,Q);function OW(a,b){if(PK.j){var c=fO(bO(),b.type,a.D);a.G(b.type,c)}else WR(UR(),b.type,a.D,x(a.G,a,b.type))}
NW.prototype.G=function(a,b){null!=b&&eV(this.j,b);if("impression"==a&&!this.F&&null!=this.A&&0<this.A.length){var c=H(this.B,"impression");PW(this,this.A,"",c);this.F=!0}t:switch(a){case "click":c=!0;break t;case "complete":c=!le(this.o,a)&&!le(this.o,"skip");break t;default:c=!le(this.o,a)}if(c){var c=H(this.B,a),d=TQ(this.k,a);0<d.length&&(PW(this,d,b,c),this.o.set(a,!0))}};function QW(a,b){null!=b&&E(b,function(a){H(this.B,a)||this.B.push(a)},a)}
function PW(a,b,c,d){E(b,function(a){QJ(a,this.j,c,d)},a)};function RW(a){T.call(this);this.ads=a;this.G=null;this.J="normal";this.o=this.volume=null;this.k=new fL;this.da=!1;this.content={};this.B=new NW;this.O=!1;E(a,function(){});E(a,function(b,c){var d=b.B;d.o=a.length;var e=c+1;d.j=e;d.A=e})}B(RW,T);function SW(a){if(TW(a)){if(GS(a.G)&&!aL())throw FK(bK,null,"skippablevideo");return a.G}throw FK(YJ,null,"An ad has not been selected.");}function TW(a){return null!==a.G}f=RW.prototype;
f.Og=function(){var a=$a(this.ads,this.G);-1!=a&&++a<this.ads.length?this.G=this.ads[a]:this.G=null};f.ar=function(){if(!TW(this)){if(ib(this.ads))throw FK(jK);this.G=this.ads[0];if(null==this.G.j)throw DK(jK);}};f.qa=function(a){TW(this)?this.T(new sJ(a,SW(this))):this.T(new sJ(a,null))};function UW(a){null==a.F&&(a.F=new ln(a));return a.F}function VW(a,b){if(null!=a.C&&(pn(UW(a),a.C,"companion_display_error",function(){}),QP(a.C,b),!a.C.ou()))throw FK(ZJ);}
f.destroy=function(){PK.j&&(bO().B=null);this.dispose()};f.L=function(){TW(this)&&(NS(this.G,null),this.G=null);qi(this.F);this.F=null;qi(this.C);this.C=null;this.O=!1;RW.I.L.call(this)};f.ue=function(){return[]};f.getCurrentAd=function(){return this.ads[0]};f.init=function(a){WW(this);this.Pj(a);this.da=!0;this.ck()};f.ck=function(){this.qa("loaded")};f.sendImpressionUrls=function(a){TW(this)&&OK()&&SJ(LS(SW(this)),a)};f.Dl=function(){};
f.Pc=function(a,b,c){if(!this.O){if(null==a)throw FK(cK,null,"displayContainer");if(null!=c){var d=new Xj(Mb(this.k));if(!se(Mb(c),d.contains,d))throw FK(cK,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.k;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.mimeTypes&&(c.mimeTypes=[]);XW(c.mimeTypes);ha(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);Zb(d,c)}this.content=b;this.o=a;this.ar();PK.j&&(a=bO(),b=x(this.Zq,this),a.B=b);this.O=!0}};
f.We=function(a){E(LS(a),function(a){kb(this.B.A,a)},this)};f.ke=function(a,b){E(b,function(b){b=nS(a,b);PQ(this.B.k,b)},this)};f.bi=function(a){if(a instanceof pS){var b=qS(a);E(b.Ka(),function(a){var d=b.get(a);E(d,function(b){RQ(this.B.k,a,b)},this)},this)}};function YW(a,b){OW(a.B,new Xl(b))}f.bc=function(a){OW(this.B,new Xl(a));this.qa(a)};f.getRemainingTime=function(){return-1};f.yh=u;f.pause=function(){};f.resume=function(){};f.skip=function(){};
f.start=function(){WW(this);if(!this.da)throw DK(YJ,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.Zq=function(){return null!=this.volume?this.volume:0};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&HK(this,cK,null,"volume",String(a));this.volume=a};f.Pj=function(a){if(!Kb(EW,a))throw FK(cK,null,"view mode",a);this.J=a};f.setMediaUrl=function(){};function WW(a){if(!a.O)throw FK(YJ,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
f.Oq=function(){return null};f.Ef=function(){return null};function XW(a){if(!fa(a))throw FK(YJ,null,"adsRenderingSettings.mimeTypes should be an array");var b=ob(Lb(GJ),Lb(BJ));E(a,function(a){if(!H(b,a))throw FK(YJ,null,"Invalid or unsuppoted mime type "+a);})};function ZW(a){RW.call(this,a);this.A=null;this.V=J("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.N=!1;this.P=[]}B(ZW,RW);f=ZW.prototype;f.start=function(){ZW.I.start.call(this);this.o.mi();this.A=this.o.Af();if(null!=this.A){Ed(this.A);var a=this.Om();PK.j?eO(bO(),a):VR(UR(),a);this.A.appendChild(a);$W(this);E(this.P,function(a){a()});jb(this.P);this.N=!0;this.qa("start")}};f.yh=function(){ZW.I.yh.call(this);$W(this)};
f.L=function(){qi(this.j);this.o=this.j=null;this.N=!1;PK.j?bO().o=null:UR().o=null;null!=this.A&&(Ed(this.A),this.A=null);ZW.I.L.call(this)};function aX(a,b){var c=CS(b);E(c,function(a){RQ(this.B.k,"click",a)},a)}
f.Om=function(){var a=OS(SW(this));if(null==a)throw a=FK(jK),bX(this,a),a;vS(a,UW(this));wS(a,this.VD);try{VW(this,SW(this))}catch(b){throw bX(this,b),b;}var c=SW(this),d=bV(c);this.B.j=d;c.j&&(this.We(c),(c=c.j)&&this.ke(c,rJ));aX(this,a);this.N?this.bc("impression"):this.P.push(x(this.bc,this,"impression"));return cX(this,[a.He()])};f.us=function(a,b){return new IW(a[0],b)};
function cX(a,b){null!=a.j&&a.j.stop();a.j=a.us(b,x(a.ts,a));var c=a.j.M();if(PK.j){var d=J("style",{type:"text/css"},'.close-padding{color:#fff;cursor:pointer;margin:0;padding-bottom:10px;padding-left:10px;position:absolute;right:0;top:0;z-index:1001}.close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAt0lEQVQY03XQMW7CQBAAwLmTlSp9JFpHiCYfiFzkCZbfkqfwjshPoEART6BwWmRQ5IrqikDB4QQFb7V7o7vd2/CiPr26F5/aEJan0lR8KUos7uJWKV6LTvcvo7gercHzn2zk6ADW+nzzYO4iKDS5vOBck5+NkAwas9xvpjFIv0yyscu8s8k4cmcFHsFqnD1zDxbe8w76249ViGrfah9+VLdM5cEgSd7GzhR7T7YTO9+LbThO4FEbzuewMmr11FxHAAAAAElFTkSuQmCC);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAAN1JREFUCNcB0gAt/wDbutvr23TbBAAA2wXbeNvs27UAAAHb9QAK+v3CoyBzJGAAhAAJ9vsvjgNuAftABgMUKvtBDlEBDvv9ouLGAAEAAJunMVIPBgAAAADx+aXjj90AoAAAAAAAwM/b/9v/2/+k6wCtAFUAAAIAANtxGxcAAAAAAAAlDX8LAKsAAAPbdgCDABH1+dDwEAUPBiggNCGxsQHb9AAL+/2c4KPZdQlNPwQC9vsvWwIAzff8ouGU3euhs1TJrvj82vQAXQEAAACRACMApwCpAPwABABaAFcA1sKJVOsU6fRuAAAAAElFTkSuQmCC);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAs0lEQVQY03XQLc7CQBAA0LdQjf8UQSCBcIHvAHgM6Wm4CB4kAk96g+IQhECCJATbUMy2NIGO2Mzs298JU/Py36/Y24SwKofa4ihkJYOfeEKnKnL5V0ZSTe3AqJHVHFzBzsUBXI2pDu9K4+pD3JnqfrjwkOrH+/pSD8WHKWTOkc+yiDXntqAHtvXbI1/AxNKkUdcfmyFYuFt4Kc0iN7qWoIhj1bXk5s+ppec3nXV4tuDTOrwBYQs0jH6JoccAAAAASUVORK5CYII=)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAALpJREFUCNclyL1Kw1AAgNFPqLh3cu/D+ARV8S0UEcFVoYOL4Kw4FSmClBZiB38WHZ10sQUnB6MR2hruTVI/h5zx4MjUXRvgsvt+OQT81VBdn7803THXWUEHD+JCf+L48e9bY9WZ0AcG3SyqahYO30jYBOD9uc67lCvaALjtR52f4TSpa89cp+E+nRYayuQMcK6xOhqvDi9ui4XOCtr4MC+PJys3rK81R728fMroLwEntOhySUWDLTZ4/QdyroIjdfxoFwAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:inset 0 -1px 3px rgba(0,0,0,0.3),0 1px 0 rgba(255,255,255,0.5);height:20px;margin:4px 4px 0 0;width:20px}.recall-button{background:rgba(200,200,200,0.2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAgAfJAUZwAAAURJREFUGNMFwb1LAmEAB+Dfe+/daZ3aWX6k1WFmSElQUBYUVIsguTQ0BUm4VtDYFLT4b7hkYLQGDg5BtERkUIRDgX1oWg6deKl359vzEFZO0mwWJgAUjgr88fe7R/2BkVonXVOGOQRQAJSwcp4CWWhKhnI6Vg0TkWYbnc8G7hbCjlLM3SQOBZQDAPgyk3wP+/Vf2Oyu4JV/NHDf1CG/1NREdZuZVRUCeiaLal12iETBQ4E1iN4QaNLqAafMptlw6Yvtwh4cI5CiIm09BAh06fbDbEx7saXp0M9vkDtJELQ5jPQAK1i5Irb+mGwYbEfV2AHiZz7M7YVLNZZ6rLDYACac8xAkwjp6ROf4ePEV19EZmaCrdQXwbzq19V8W68qUH+Hx4OYFnp6ZjJWck4NlUYLVf5pOgpXzdAOCOIg+N1zLIQuPpX9L/XzfXOCrFgAAAABJRU5ErkJggg==) no-repeat center;border:1px solid rgba(255,255,255,0.498039);box-shadow:rgba(0,0,0,0.701961) 0 4px 3px;color:#fff;cursor:pointer;height:11px;width:26px;z-index:1001}.yt-text-overlay .recall-button{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(0,0,0,0);box-shadow:none;height:17px;width:29px}.autoalign .recall-button{margin:auto}.yt-text-overlay.autoalign .recall-button{margin:auto auto 6px}.recall-button:hover{background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAAAAAAUx4O/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAcA+wgIqAAAAEtJREFUCNcVi1kRwEAIQ3GAhEpAAhJWChKQsBIqBQlIQAIS0jQ/OeZFAIz70ARIjdDL2GYF1OMrxZ6JvUugjGoCG5rcJSHv+d/oMx893S/cqF2DpwAAAABJRU5ErkJggg==) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(255,255,255,0.5)}.auto-hide{display:none}body:hover .auto-hide{display:block}.attribution-button{bottom:12px;color:#fff;font:11px arial,sans-serif;position:absolute;right:5px;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;z-index:1001}.yt-text-overlay .attribution-button{color:#888;text-shadow:none}.viewmode-fullscreen .attribution-button{bottom:auto;right:22px;top:5px}.yt-text-overlay.viewmode-fullscreen .attribution-button{right:5px;top:auto}.text-container .attribution-button{bottom:7px}.container{position:absolute;width:100%;z-index:1000}.container.autoalign{bottom:0;text-align:center}.container-stack{background-color:#666;border-radius:5px;display:block;padding:3px 0}.container-rotator .attribution-button{bottom:7px}.container-rotator .text-inner-container{left:20px}.container-selector{-webkit-box-shadow:0 4px 3px rgba(0,0,0,.7);-moz-box-shadow:0 4px 3px rgba(0,0,0,.7);box-shadow:0 4px 3px rgba(0,0,0,.7);background:#666;border-radius:2px;cursor:pointer;height:10px;left:5px;position:absolute;width:10px;z-index:1002}.container-selector:hover{background:#fff}.container-rotator .container-highlight:hover{border-color:#fff!important}.container-stack .container-highlight:hover{background-color:#999!important}.container-active{background:#fc0!important}.container-slider .attribution-button{bottom:7px}.container-slider .controls{max-width:100%!important}.container-slider .text-container{background-color:#000;border-radius:5px 5px 0 0;margin-bottom:0}.container-slider .text-title:hover{text-decoration:underline!important}.container-slider.hidden .controls{top:38px}.container-slider.animated .controls{-webkit-transition:top .4s;-moz-transition:top .4s;-o-transition:top .4s;transition:top .4s}.controls{display:inline-block;position:relative}.controls.scalable{display:block;min-width:320px;max-width:450px}.autoalign .controls.scalable{margin:auto}.flash-container,.image-container{display:inline-block;position:relative}.flash-container.click-capture .click-layer{display:block}.click-layer{background:rgba(0,0,0,0.0);bottom:0;left:0;position:absolute;right:0;top:0;z-index:100}.text-container{margin-bottom:5px;position:relative}.yt-text-overlay .text-container{margin-bottom:3px}.text-inner-container{background-image:-webkit-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-moz-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-ms-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-o-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));border:1px solid rgba(102,102,102,0.7);border-radius:3px;box-shadow:rgba(0,0,0,0.7) 0 5px 5px;padding-left:10px;position:absolute;text-align:left;top:0;bottom:0;left:0;right:0}.yt-text-overlay .text-container .text-inner-container{background-color:rgba(0,0,0,0.6);background-image:none;border:1px solid rgba(0,0,0,0.6);border-radius:0;box-shadow:none;padding-left:10px}.viewmode-fullscreen .text-inner-container{background-image:none;border:none;box-shadow:none}.yt-text-overlay .controls:hover .text-inner-container{border:1px solid rgba(58,58,58,1.0)}.text-title{text-decoration:underline}.yt-text-overlay .text-title{text-decoration:none}.viewmode-fullscreen .text-title{text-decoration:none}.yt-text-overlay .controls:hover .text-container .text-title{text-decoration:underline}.text-image-link{float:left;position:relative}.text-image{box-shadow:rgba(0,0,0,0.498039) 0 3px 5px;height:57px;margin:3px 10px 0 0;width:79px}.yt-text-overlay .text-image{margin:2px 10px 0 0}.text-image-duration{background:#000;color:#fff;font:10px arial,sans-serif;padding:2px;position:absolute;right:10px;top:43px}.text-title{color:#fff;display:block;font:bold 14px arial,sans-serif;margin:7px 16px 0 0;overflow:hidden;padding-bottom:4px;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-title{margin-top:7px;text-shadow:#000 0 -1px 0}.text-description{color:#fff;font:12px arial,sans-serif;margin-top:-3px;overflow:hidden;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-description{text-align:left;text-shadow:none}.text-ad-channel{bottom:7px;color:#f9fcc0;font:bold 11px arial,sans-serif;left:10px;position:absolute;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px}.yt-text-overlay .text-ad-channel{bottom:9px;color:#eade90;font-weight:normal;left:10px;text-shadow:#000 0 -1px 0}.pyv .text-ad-channel{left:99px}.yt-text-overlay .pyv .text-ad-channel{left:99px}.viewmode-fullscreen .text-ad-channel{color:#ccc}.yt-text-overlay.viewmode-fullscreen .text-ad-channel{color:#eade90}.ima-sdk-frame body{background:transparent;height:100%;margin:0;overflow:hidden}.ima-sdk-frame{height:100%}.ima-sdk-frame-native body{background:#000}.ima-sdk-frame-native video{bottom:0;left:0;margin:auto;right:0;top:0}.ytp-iv-drawer-open .videoAdUiTopBar,.ytp-iv-drawer-open .videoAdUiPreSkipContainer,.ytp-iv-drawer-open .videoAdUiSkipContainer,.ytp-iv-drawer-open .ad-overlay .container{display:none}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0;z-index:1000}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;opacity:.9;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgress{background-image:-webkit-linear-gradient(top,#ffec7b,#dea405);background-image:-moz-linear-gradient(top,#ffec7b,#dea405);background-image:-ms-linear-gradient(top,#ffec7b,#dea405);background-image:-o-linear-gradient(top,#ffec7b,#dea405);background-image:linear-gradient(top,#ffec7b,#dea405);border-right:solid 1px #666;height:4px;opacity:.9;width:0%}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;font:normal 13px arial,sans-serif;margin-bottom:5px;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttribution{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;box-sizing:content-box;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center;cursor:pointer}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}.videoAdUi.blazer .videoAdUiProgressBar{background-color:#222;height:4px}.videoAdUi.blazer .videoAdUiProgress{background-image:none;background-color:#e6bc27;opacity:1;position:absolute}.videoAdUi.blazer .videoAdUiBuffer{background-color:#666;display:block;position:absolute}.videoAdUi.blazer .videoAdUiAuthorName{display:none}.videoAdUi.blazer .videoadUiTitle,.videoAdUi.blazer .videoAdUiLearnMore{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:14px;text-shadow:0 0 2px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiAttribution{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:16px;text-shadow:0 0 2px rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiSkipButton,.videoAdUi.blazer .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-size:13px}.videoAdUi.blazer .videoAdUiSkipButton{font-family:"Helvetica Neue Light","Arial",sans-serif;border:1px solid rgba(255,255,255,0.25);background-color:rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiPreSkipButton{font-family:"Helvetica Neue","Arial",sans-serif;background-color:rgba(0,0,0,0.25);text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiPreSkipText{padding:5px 0}.videoAdUi.blazer .videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{line-height:inherit}.videoAdUi.blazer .videoAdUiLearnMore{text-shadow:1px 1px 1px rgba(0,0,0,0.75);margin:5px;margin-right:20px}.videoAdUi.blazer.phone .videoAdUiAuthorIcon,.videoAdUi.blazer.phone .videoadUiTitle{display:none}.videoAdUi.blazer.phone .videoAdUiAttribution{font-size:14px}.videoAdUi.blazer.phone .videoAdUiSkipButton{padding:6px 0}.videoAdUi.blazer.phone .videoAdUiSkipIcon{margin-left:6px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon,.videoAdUi.blazer.tablet .videoadUiTitle{left:0;position:absolute;margin-top:17px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon{margin:5px 10px}.videoAdUi.blazer.tablet .videoAdUiSkipButton,.videoAdUi.blazer.tablet .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:13px;text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer.tablet .videoAdUiPreSkipContainer,.videoAdUi.blazer.tablet .videoAdUiSkipContainer{bottom:55px}.videoAdUi.blazer.tablet .videoAdUiAttribution{left:0;bottom:0}.videoAdUi.blazer.tablet:hover .videoAdUiAttribution{right:84%;bottom:26px;text-align:right}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar{bottom:35px;left:16%;width:68%}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar,.videoAdUi.blazer.tablet:hover .videoAdUiBuffer,.videoAdUi.blazer.tablet:hover .videoAdUiProgress{height:20px}');c.appendChild(d)}ah(c,
"autoalign",a.k.ls);ah(c,"viewmode-fullscreen","fullscreen"==a.J);c.appendChild(a.V);UW(a).listen(c,"click",Yl);(TW(a)&&XS(SW(a))||a.k.useStyledNonLinearAds)&&a.pm(a.j.j);return c}f.pm=function(a){var b=UW(this);this.U=pT(GW);b.listen(this.U,"click",this.OF);var c=pT(FW);b.listen(c,"click",this.tn);a.appendChild(c)};function $W(a){if(null!=a.j){var b=Hg(a.o.Af()),c=Hg(Jd(a.j.j));if(c.width>b.width||c.height>b.height)throw b=FK(eK,null),bX(a,b),a.stop(),b;}}
function bX(a,b){var c=WU(b,SW(a)),d=KS(SW(a));SJ(d,c)}f.VD=function(a){this.bc("click");Yl(a)};f.tn=function(){this.ts();this.qa("userClose");YW(this,"close")};f.ts=function(){this.j.stop();var a=OS(SW(this));null!=a&&yS(a);Hd(this.U,this.j.j)};f.OF=function(a){Yl(a);this.j.show();this.j.play();Hd(this.j.j,this.U);fn(function(){Lg(this.V,!1)},500,this);Lg(this.V,!0)};function dX(a){ZW.call(this,a);this.D=!1;this.K=this.W=null;ib(a)||null==a[0].o||(this.W=a[0].o,df(new K(this.W.adTagUrl),"channel"))}B(dX,ZW);f=dX.prototype;f.us=function(a,b){if(this.D||null==b)b=u;var c;OK()&&this.D?c=new IW(a[0],b):"fullscreen"==this.J?c=new MW(a):1<a.length?(c=new KW(a),c.K=15E3):c=new IW(a[0],b);c.Xs=100;this.D&&(c.rs=30);c.Rr=45E3;c.Sr=6E3;ah(c.j,"scalable",this.D);ah(c.M(),"yt-text-overlay",OK()&&this.D);return c};
f.gF=function(a){var b=a.j;null!=b?(null==this.R&&(this.R=a.getExtension("AdSense").C),xS(b,y(this.PD,a,b)),wS(b,y(this.OD,a,b)),b.ja=!1,"Text"==b.getContentType()&&(this.D=!0),this.K.push(b)):(b=DK(jK),b=WU(b,a),SJ(KS(a),b))};f.Pc=function(a,b,c){dX.I.Pc.call(this,a,b,c);this.k.ls=!0;null!=this.ads[0]&&0<XP(this.ads[0]).length?VW(this,this.ads[0]):OK()&&this.qa("companionBackfill")};
f.Om=function(){null==this.K&&(this.K=[],E(this.ads,this.gF,this));if(0==this.K.length)throw FK(jK);var a=[];E(this.K,function(b){vS(b,UW(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.lt=!0);a.push(b.He());BS(b,this.R.o)},this);if(0==a.length)throw FK(jK);return cX(this,a)};f.tn=function(a){dX.I.tn.call(this,a);E(this.K,function(a){var c=bV(a.getAd());this.B.j=c;this.ke(a,["close"]);YW(this,"close");this.B=new NW},this)};
f.pm=function(a){dX.I.pm.call(this,a);var b=this.ads[0].getExtension("AdSense"),c=b.A,b=b.B,c=pT(HW,{text:null!=c?c:this.R.j,url:null!=b?b:this.R.k});a.appendChild(c)};f.PD=function(a,b){this.N?this.qu(a,b):this.P.push(x(this.qu,this,a,b));xS(b,u)};f.qu=function(a,b){var c=bV(a);this.B.j=c;this.We(a);this.ke(b,["creativeview"]);YW(this,"impression");YW(this,"creativeview");this.B=new NW};
f.OD=function(a,b,c){c=Dg(c);a=a.getExtension("AdSense");a=new K(a.k);var d=b.bd();isNaN(d)&&(d=Gg(b.He()).width);var e=b.getHeight();isNaN(e)&&(e=Gg(b.He()).height);b=FR();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.J,"sdkv=h.0.0.0","eids="+JR(b)];b=TJ(a,"elementclick",b);QJ(b);this.qa("click")};f.Pj=function(a){this.J!=a&&(dX.I.Pj.call(this,a),null!=this.A&&(Ed(this.A),a=this.Om(),this.A.appendChild(a)),this.qa("expandedChanged"))};function eX(a){sJ.call(this,"adMetadata",a)}B(eX,sJ);var fX={};q("adsense.mobileads.afmanotify.receiveMessage",function(a,b){if(fX.hasOwnProperty(a))for(var c=fX[a],d=0;d<c.length;++d){var e=c[d];e.callback.call(e.object,a,b)}},void 0);new je;function gX(a,b,c){var d=u,e;IR(947225)?(e=new K("https://www.googleapis.com/youtube/v3/videos"),L(e,"id",a),L(e,"part","snippet,status"),L(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus")):e=new K("https://gdata.youtube.com/feeds/api/videos/"+a);null!=c&&(b=x(b,c),d=x(d,c));hX(new ao,e,b,d)}
function iX(a,b,c){var d=u,e;IR(947225)?(e=new K("https://www.googleapis.com/youtube/v3/channels"),L(e,"id",a),L(e,"part","snippet,statistics"),L(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount")):e=new K("https://gdata.youtube.com/feeds/api/channels/"+a);null!=c&&(b=x(b,c),d=x(d,c));hX(new ao,e,b,d)}
function hX(a,b,c,d){jX(b);eo(a,2E3);var e=new ln(a);pn(e,a,"success",function(a){a=a.target;var b;b=a.j?Yf(a.j.responseText):void 0;c(b||{});e.dispose();a.dispose()});pn(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.k&&(b=Error(sn(a.k)));d(b);e.dispose();a.dispose()});a.send(b)}function jX(a){IR(947225)?L(a,"key","AIzaSyDykhSj35yFHOiDglTp-ZuD9HCUQf62oS0"):(L(a,"alt","json"),L(a,"v","2"))};function kX(a){var b='<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+uT(a.tg)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+uT(a.tg)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttribution"',c;c=JT(a.Ye);
c=uT(c);return b+c+">"+uT(a.Ye)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'}function lX(a){var b=JT(a.Ye);return'<div class="videoAdUi videoAdUi-gvn"><div class="videoAdUiTopBar"><div class="videoAdUiAttribution videoAdUiAttribution-gvn"'+uT(b)+">"+uT(a.Ye)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}
function mX(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'}function nX(a){var b="";a="You can skip this ad in "+uT(a.Mo);return b+a}function oX(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton">'+uT(a.Yv)+'<div class="videoAdUiSkipIcon"></div></button></div>'}
function pX(a){var b="";a=2<=a.ji&&1<=a.hi?"Ad "+(uT(a.hi)+(" of "+(uT(a.ji)+(" "+uT(a.ii))))):"Ad "+uT(a.ii);return b+=a};function qX(a,b,c,d,e){Av.call(this);this.k=a;this.B=b;this.C=c;this.o=d;this.D=fa(e)?e:[e]}B(qX,Av);f=qX.prototype;f.play=function(){if(this.ib())return!1;this.Zb();this.Pb("play");this.startTime=z();this.j=1;if(Jw())return pg(this.k,this.C),this.A=fn(this.FA,void 0,this),!0;this.Gl(!1);return!1};f.FA=function(){Hg(this.k);Hw(this.k,this.D);pg(this.k,this.o);this.A=fn(x(this.Gl,this,!1),1E3*this.B)};f.stop=function(){this.ib()&&this.Gl(!0)};
f.Gl=function(a){Iw(this.k,"");gn(this.A);pg(this.k,this.o);this.endTime=z();this.j=0;if(a)this.onStop();else this.Lb();this.Fc()};f.L=function(){this.stop();qX.I.L.call(this)};f.pause=function(){};function rX(a,b,c,d){return new qX(a,.5,{opacity:c},{opacity:d},{property:"opacity",duration:.5,timing:b,Np:0})};function sX(a,b){T.call(this);this.o=a;this.N=0;this.G=!1;this.k=1;this.j=this.U=this.J=this.O=this.A=null;this.B=new ln(this);this.R=!1;this.W=this.V=this.P=0;this.C=this.F=this.D=null;this.K=!1;this.H=new lO;this.o.D&&(this.B.listen(b,"touchstart",this.Wv),this.B.listen(b,"touchmove",this.Vv),this.B.listen(b,"touchend",this.Uv));this.A=pT(mX);this.O=pd("videoAdUiPreSkipButton",this.A);this.J=pd("videoAdUiPreSkipText",this.O);this.U=pd("videoAdUiPreSkipThumbnail",this.O);Pd(this.J,nX({Mo:tX(this)}));
var c=this.o.U,c=(C(D(c))?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.o.showContentThumbnail&&!C(D(c))){var d=Ad("img");d.setAttribute("src",c);O(d,"videoAdUiPreSkipThumbnailImage");this.U.appendChild(d)}else O(this.J,"videoAdUiPreSkipTextOnly");this.o.D?c="\u00ab Swipe to Skip":(c="Skip Ad \u00bb",d=new RegExp(Ka("\u00bb"),""),c=c.replace(d,""),c=ua(c));this.j=pT(oX,{Yv:c});Lg(this.A,!1);b.appendChild(this.A);Lg(this.j,!1);Kg(this.j,0);b.appendChild(this.j);this.B.listen(this.H,"click",
this.Xv);mO(this.H,this.j)}B(sX,T);f=sX.prototype;f.L=function(){null!=this.D&&(this.D.dispose(),this.D=null);null!=this.F&&(this.F.dispose(),this.F=null);uX(this);null!=this.A&&(Gd(this.A),this.A=null);null!=this.j&&(Gd(this.j),this.j=null);this.H.dispose();this.H=null;this.B.dispose();this.B=null;this.K=!1;sX.I.L.call(this)};
f.update=function(a,b){this.N=b;if(!(0>=this.N||null==this.o.skipOffset||0>KQ(this.o.skipOffset))){var c=KQ(this.o.skipOffset);c>=this.N||3==this.k||(0>a?this.k=1:a<=c?(2!=this.k&&(vX(this,0),rX(this.A,"ease-out",0,1).play(),Lg(this.A,!0)),this.k=2):(3!=this.k&&(Lg(this.j,!0),this.F=new qX(this.A,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",Np:0}),this.D=rX(this.j,"ease-out",0,1),this.F.play(),this.D.play(),this.B.listen(Md(this.j),
"mouseover",this.xy),this.B.listen(Md(this.j),"mouseout",this.Op),this.Op()),this.k=3,this.T("skipshown")))}2==this.k&&vX(this,a)};f.skip=function(){return null==this.o.skipOffset||3!=this.k||this.G?!1:(this.G=!0,this.T("PUBLISHER_INVOKED_SKIP"),!0)};f.Wv=function(a){var b=a.j;3==this.k&&1==b.touches.length&&(this.R=!0,this.W=b.touches[0].pageX,a.preventDefault())};
f.Vv=function(a){var b=a.j;3==this.k&&1==b.touches.length&&this.R&&(b=b.touches[0].pageX,this.P=this.V-b,this.V=b,b=this.W-b,0<b&&(this.j.style.right=b+"px"),a.preventDefault())};f.Uv=function(){this.R=!1;if(3==this.k){var a=Gg(Md(this.j));if(parseInt(this.j.style.right,10)+4*this.P>.25*a.width&&0<this.P){Lg(this.j,!1);this.G=!0;this.T("skip");return}}this.j.style.right=0};function tX(a){return null!=a.o.skipOffset&&-1!=KQ(a.o.skipOffset)?KQ(a.o.skipOffset):-1}
function vX(a,b){var c=tX(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+EQ(c));c=nX({Mo:d});Pd(a.J,c)}}f.Xv=function(a){OK()||a.stopPropagation();3!=this.k||this.G||(this.G=!0,this.T("skip"))};f.Op=function(){null==this.C&&(this.C=fn(function(){this.K=!0;rX(this.j,"ease-in",1,.5).play();this.C=null},this.K?5E3:15E3,this))};f.xy=function(){Kg(this.j,1);uX(this)};function uX(a){null!=a.C&&(gn(a.C),a.C=null)};function wX(a,b,c){T.call(this);this.j=a;this.V=c;this.O=this.P=this.N=this.F=this.D=this.K=this.k=null;this.U=!1;this.G=this.A=this.C=this.R=this.J=this.H=this.B=null;this.o=new ln(this);this.W=[];this.k=pT(this.j.C,{Ye:this.j.Ye,tg:this.j.tg});this.o.listen(this.k,"touchmove",this.Pv);this.J=pd("videoAdUiProgress",this.k);this.R=pd("videoAdUiBuffer",this.k);this.K=pd("videoAdUiAttribution",this.k);this.D=pd("videoAdUiAuthorIcon",this.k);this.F=pd("videoAdUiAuthorName",this.k);this.N=pd("videoAdUiLearnMore",
this.k);this.P=pd("videoAdUiLearnMoreText",this.k);this.G=pd("videoAdUiShare",this.k);this.B=pd("videoAdUiTitle",this.k);this.H=pd("videoAdUiTopBar",this.k);this.O=pd("videoAdUiBottomBar",this.k);null!=this.D&&this.o.listen(this.D,"click",this.Nv);null!=this.F&&this.o.listen(this.F,"click",this.Ov);null!=this.N&&this.o.listen(this.N,"click",this.Qv);null!=this.P&&this.o.listen(this.P,"click",this.Ak);null!=this.G&&this.o.listen(this.G,"click",this.Sv);null!=this.B&&this.o.listen(this.B,"click",this.Tv);
null!=this.H&&this.o.listen(this.k,"mouseover",this.Rv);null!=this.j.skipOffset&&(this.A=new sX(this.j,this.k),this.A.di(this));400>=(parseInt(sg(b,"width"),10)||b.width)&&O(this.k,"videoAdUi-mobile");this.j.F&&(O(this.k,"blazer"),window.settings&&window.settings.isTablet?O(this.k,"tablet"):O(this.k,"phone"));this.j.D&&O(this.k,"videoAdUi-swipeable");Lg(this.k,!1);b.appendChild(this.k);this.j.o||(this.C=J("div",{style:"width:100%;height:100%"}),this.k.appendChild(this.C));xX(this)}B(wX,T);f=wX.prototype;
f.show=function(){null!=this.k&&Lg(this.k,!0)};f.skip=function(){var a;if(a=null!=this.A)a=this.A,a=null!=a.o.skipOffset&&3==a.k;return a?this.A.skip():!1};f.L=function(){null!=this.k&&(Gd(this.k),this.k=null);null!=this.A&&(this.A.dispose(),this.A=null);this.C=null;this.o.dispose();this.o=null;this.U=!1;wX.I.L.call(this)};
f.update=function(a,b,c,d,e){this.U=!0;null!=this.k&&(null!=this.K&&yX(this,a,c,d,e),null!=this.J&&Fg(this.J,a/c*100+"%"),null!=this.R&&Fg(this.R,b/c*100+"%"),0<c&&null!=this.j.skipOffset&&null!=this.A&&(LQ(this.j.skipOffset,c),this.A.update(a,c)),this.j.B&&0<c&&5>c-a&&O(this.H,"videoAdUiTopBarNoFade"),E(this.W,function(b){b.update(a,c)},this))};function zX(a,b){a.W=b;E(b,function(a){a.display(this.k)},a)}
function xX(a){var b=a.j.N&&(a.V>a.j.X||0==a.V),c=b&&a.j.O,d=b&&a.j.R,e=b&&a.j.k,g=b&&a.j.K,b=b&&a.j.B,h=a.j.J&&a.j.j,k="0px";null!=a.B&&(Lg(a.B,b),null!=a.D&&Lg(a.D,c),null!=a.F&&Lg(a.F,d),null!=a.N&&Lg(a.N,e),null!=a.G&&(Lg(a.G,g),g&&a.T("videoShareShown")),null!=a.H&&Lg(a.H,b||c||d||e));null!=a.K&&AX(a);null!=a.J&&(Lg(a.J,h),h&&(k=sg(a.J,"height")));null!=a.O&&pg(a.O,"bottom",k);null!=a.P&&Lg(a.P,a.j.o)}
function yX(a,b,c,d,e){var g=pX({ii:"",hi:0,ji:0});a.j.j&&a.j.H&&(b=EQ(c-b),g=pX({ii:a.j.F?" \u2022 "+b:": ("+b+")",hi:d,ji:e}));Pd(a.K,g);AX(a)}function AX(a){Lg(a.K,a.j.A&&(!a.j.j||a.U))}f.Nv=function(){this.T("videoAuthorIconClicked")};f.Ov=function(){this.T("videoAuthorClicked")};f.Qv=function(){this.T("videoLearnMoreClicked")};f.Sv=function(){this.T("videoShareClicked")};f.Tv=function(){this.T("videoTitleClicked")};f.Pv=function(a){a.preventDefault()};
f.Ak=function(){this.j.G?this.T("click"):this.T("videoClicked")};f.Rv=function(){O(this.H,"videoAdUiTopBarTransitions")};function BX(){this.Ye=pX({ii:"",hi:0,ji:0});var a="",b="Learn More "+uT("");this.tg=a+b;this.skipOffset=null;this.X=6E3;this.H=this.j=this.G=this.A=!0;this.K=this.J=this.k=!1;this.N=!0;this.B=this.R=this.O=this.P=this.o=!1;this.C=null;this.D=am&&IR(0);this.showContentThumbnail=!0;this.F=!1}function CX(a,b,c,d){var e=new BX;e.o=a;e.Ga=b;e.skipOffset=c;e.U=null!=d?d.contentId:null;e.C=kX;e.Ra=GO(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e};function DX(a){Xl.call(this,a)}B(DX,Xl);function EX(a){T.call(this);this.B=a;this.H=new je;this.F=-1;this.J=!1}B(EX,T);function FX(a){this.k=!1;this.j=a.Ng();this.volume=a.ed()}FX.prototype.muted=function(a,b){return!this.j&&a||0<this.volume&&0==b};f=EX.prototype;f.L=function(){GX(this);EX.I.L.call(this)};function GX(a){null!=a.k&&a.k.dispose();null!=a.j&&a.j.sf();null!=a.C&&a.C.dispose();a.C=null;null!=a.D&&a.D.dispose();a.D=null;a.H.clear();a.F=-1;a.J=!1}
function HX(a,b,c){if(!c||null==a.H.get(b)){a.H.set(b,!0);t:{if(a.o&&a.o.j.k){if("click"==b)break t;"videoLearnMoreClicked"==b&&OW(a.B,new Xl("click"))}OW(a.B,new Xl(b))}a.T(b)}}f.zw=function(a){a=a.o;a=eV(this.B.j,null!=a?a.viewabilityString:null);this.B.j=a;HX(this,"viewable_impression",!1)};
f.kw=function(){var a=this.j.ad();if(-1!=a){this.j.gh(.25*a)&&HX(this,"firstquartile",!0);this.j.gh(.5*a)&&HX(this,"midpoint",!0);this.j.gh(.75*a)&&HX(this,"thirdquartile",!0);var b=this.B,c=this.j.getCurrentTime();0>b.C&&(SQ(b.k,a),b.C=0);for(var a=QQ(b.k,"progress"),d=b.C;d<a.length;d++){var e=a[d];if(KQ(e.k)>c)break;b.C=d+1;QJ(e.j,b.j)}}IX(this)};function IX(a){0>a.F||a.J||!a.j.gh(a.F)&&!a.j.ve()||(a.J=!0,HX(a,"engagedview",!0),a.T(new DX("viewCount")))}
f.jw=function(){HX(this,"impression",!0);HX(this,"creativeview",!0);null!=this.G||null!=this.o||this.k.listen(this.j,"click",this.lm);null!=this.G&&(this.C=new lO,this.k.listen(this.C,"click",this.lm,!1),mO(this.C,this.G));null!=this.o&&(this.D=new lO,this.k.listen(this.D,"click",this.lm,!1),mO(this.D,this.o));HX(this,"start",!0);(this.j.Ng()||0==this.j.ed())&&HX(this,"mute",!1)};
f.lw=function(){var a=this.j.Ng(),b=this.j.ed(),c=this.A;c.j&&!a||!a&&0==c.volume&&0<b?HX(this,"unmute",!1):this.A.muted(a,b)&&HX(this,"mute",!1);this.A.j=a;this.A.volume=b};f.hw=function(){this.j.ve()?(IX(this),HX(this,"complete",!0)):this.j.Lg()&&!this.j.Yr()&&(this.A.k=!0,HX(this,"pause",!1))};f.iw=function(){this.A.k&&(this.A.k=!1,HX(this,"resume",!1))};f.cw=function(){IX(this);HX(this,"complete",!0)};f.lm=function(){HX(this,"click",!1)};f.dw=function(){HX(this,"error",!1)};
f.gw=function(){HX(this,"mediaLoadTimeout",!1)};f.Ro=function(){HX(this,"skipshown",!0)};f.rw=function(){HX(this,"videoAuthorIconClicked",!1)};f.qw=function(){HX(this,"videoAuthorClicked",!1)};f.sw=function(){HX(this,"videoClicked",!1)};f.tw=function(){HX(this,"videoLearnMoreClicked",!1)};f.uw=function(){HX(this,"videoShareClicked",!1)};f.ww=function(){HX(this,"videoShareShown",!0)};f.yw=function(){HX(this,"videoTitleClicked",!1)};f.Qo=function(){HX(this,"skip",!0)};
f.ow=function(){HX(this,"skip",!0)};f.ew=function(){HX(this,"fullscreen",!1)};f.mw=function(){HX(this,"exitfullscreen",!1)};function JX(a){RW.call(this,a);this.A=null;this.D=new EX(this.B);this.P=this.U=this.R=this.K=!1;this.N=1}B(JX,RW);f=JX.prototype;f.L=function(){KX(this);var a=!1;null!=this.o&&(a=this.o.hn(),this.o.hide(),this.o=null);this.K&&(this.K=!1,this.j.Lg()||this.j.ve()||this.j.pause(),WK()&&!a&&(this.j.Hf(.001),this.j.load("","")),VK()&&this.j.ie()&&!a&&this.j.gn(),this.qa("contentResumeRequested"),this.qa("allAdsCompleted"));JX.I.L.call(this)};
function KX(a){qi(a.A);a.A=null;qi(a.D);qi(a.B);qi(a.G);a.R=!1;a.P=!1}function LX(a){a.Og();TW(a)?a.start():a.stop()}f.Og=function(){KX(this);JX.I.Og.call(this);TW(this)&&(this.B=new NW,this.D=new EX(this.B))};
f.GB=function(a,b,c){if(!this.R){this.R=!0;var d=EO(b);if(this.k.useVideoAdUi){var e=a.getExtension("AdSense"),g=this.k.Bk&&((null===b?!1:"modules"==(new K(b)).$e().toLowerCase())||null!=e&&e.F),h=!0,k=!0;if(IR(909720)||GS(a)&&30<dT(a)&&IR(909721))k=h=!1;var l=-1!=dT(a)&&0!=dT(a)&&7>=dT(a)?null:YS(a);if(OK()){var e=this.k,p=C(D(cT(a)))?!1:this.k.Lo;IS(a,CJ);d=CX(g,d,l,e);d.k=p;d.J=k;d.H=h;d.F=e.Ck;d.G=e.Aw;d.K=e.useShareButton;d.P=e.Bw;d.X=0;e.Ck&&(d.tg="Visit Advertiser")}else IS(a,CJ)||!C(D(a.J))?
(d=CX(g,d,l,this.k),d.C=lX):(d=CX(g,d,l,this.k),d.N=!1,d.A=!1,d.j=!1);e=this.o.Gk();null===e?e=document.body:(Ed(e),p=J("style",{type:"text/css"},'.close-padding{color:#fff;cursor:pointer;margin:0;padding-bottom:10px;padding-left:10px;position:absolute;right:0;top:0;z-index:1001}.close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAt0lEQVQY03XQMW7CQBAAwLmTlSp9JFpHiCYfiFzkCZbfkqfwjshPoEART6BwWmRQ5IrqikDB4QQFb7V7o7vd2/CiPr26F5/aEJan0lR8KUos7uJWKV6LTvcvo7gercHzn2zk6ADW+nzzYO4iKDS5vOBck5+NkAwas9xvpjFIv0yyscu8s8k4cmcFHsFqnD1zDxbe8w76249ViGrfah9+VLdM5cEgSd7GzhR7T7YTO9+LbThO4FEbzuewMmr11FxHAAAAAElFTkSuQmCC);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAAN1JREFUCNcB0gAt/wDbutvr23TbBAAA2wXbeNvs27UAAAHb9QAK+v3CoyBzJGAAhAAJ9vsvjgNuAftABgMUKvtBDlEBDvv9ouLGAAEAAJunMVIPBgAAAADx+aXjj90AoAAAAAAAwM/b/9v/2/+k6wCtAFUAAAIAANtxGxcAAAAAAAAlDX8LAKsAAAPbdgCDABH1+dDwEAUPBiggNCGxsQHb9AAL+/2c4KPZdQlNPwQC9vsvWwIAzff8ouGU3euhs1TJrvj82vQAXQEAAACRACMApwCpAPwABABaAFcA1sKJVOsU6fRuAAAAAElFTkSuQmCC);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAs0lEQVQY03XQLc7CQBAA0LdQjf8UQSCBcIHvAHgM6Wm4CB4kAk96g+IQhECCJATbUMy2NIGO2Mzs298JU/Py36/Y24SwKofa4ihkJYOfeEKnKnL5V0ZSTe3AqJHVHFzBzsUBXI2pDu9K4+pD3JnqfrjwkOrH+/pSD8WHKWTOkc+yiDXntqAHtvXbI1/AxNKkUdcfmyFYuFt4Kc0iN7qWoIhj1bXk5s+ppec3nXV4tuDTOrwBYQs0jH6JoccAAAAASUVORK5CYII=)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAALpJREFUCNclyL1Kw1AAgNFPqLh3cu/D+ARV8S0UEcFVoYOL4Kw4FSmClBZiB38WHZ10sQUnB6MR2hruTVI/h5zx4MjUXRvgsvt+OQT81VBdn7803THXWUEHD+JCf+L48e9bY9WZ0AcG3SyqahYO30jYBOD9uc67lCvaALjtR52f4TSpa89cp+E+nRYayuQMcK6xOhqvDi9ui4XOCtr4MC+PJys3rK81R728fMroLwEntOhySUWDLTZ4/QdyroIjdfxoFwAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:inset 0 -1px 3px rgba(0,0,0,0.3),0 1px 0 rgba(255,255,255,0.5);height:20px;margin:4px 4px 0 0;width:20px}.recall-button{background:rgba(200,200,200,0.2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAgAfJAUZwAAAURJREFUGNMFwb1LAmEAB+Dfe+/daZ3aWX6k1WFmSElQUBYUVIsguTQ0BUm4VtDYFLT4b7hkYLQGDg5BtERkUIRDgX1oWg6deKl359vzEFZO0mwWJgAUjgr88fe7R/2BkVonXVOGOQRQAJSwcp4CWWhKhnI6Vg0TkWYbnc8G7hbCjlLM3SQOBZQDAPgyk3wP+/Vf2Oyu4JV/NHDf1CG/1NREdZuZVRUCeiaLal12iETBQ4E1iN4QaNLqAafMptlw6Yvtwh4cI5CiIm09BAh06fbDbEx7saXp0M9vkDtJELQ5jPQAK1i5Irb+mGwYbEfV2AHiZz7M7YVLNZZ6rLDYACac8xAkwjp6ROf4ePEV19EZmaCrdQXwbzq19V8W68qUH+Hx4OYFnp6ZjJWck4NlUYLVf5pOgpXzdAOCOIg+N1zLIQuPpX9L/XzfXOCrFgAAAABJRU5ErkJggg==) no-repeat center;border:1px solid rgba(255,255,255,0.498039);box-shadow:rgba(0,0,0,0.701961) 0 4px 3px;color:#fff;cursor:pointer;height:11px;width:26px;z-index:1001}.yt-text-overlay .recall-button{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(0,0,0,0);box-shadow:none;height:17px;width:29px}.autoalign .recall-button{margin:auto}.yt-text-overlay.autoalign .recall-button{margin:auto auto 6px}.recall-button:hover{background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAAAAAAUx4O/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAcA+wgIqAAAAEtJREFUCNcVi1kRwEAIQ3GAhEpAAhJWChKQsBIqBQlIQAIS0jQ/OeZFAIz70ARIjdDL2GYF1OMrxZ6JvUugjGoCG5rcJSHv+d/oMx893S/cqF2DpwAAAABJRU5ErkJggg==) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(255,255,255,0.5)}.auto-hide{display:none}body:hover .auto-hide{display:block}.attribution-button{bottom:12px;color:#fff;font:11px arial,sans-serif;position:absolute;right:5px;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;z-index:1001}.yt-text-overlay .attribution-button{color:#888;text-shadow:none}.viewmode-fullscreen .attribution-button{bottom:auto;right:22px;top:5px}.yt-text-overlay.viewmode-fullscreen .attribution-button{right:5px;top:auto}.text-container .attribution-button{bottom:7px}.container{position:absolute;width:100%;z-index:1000}.container.autoalign{bottom:0;text-align:center}.container-stack{background-color:#666;border-radius:5px;display:block;padding:3px 0}.container-rotator .attribution-button{bottom:7px}.container-rotator .text-inner-container{left:20px}.container-selector{-webkit-box-shadow:0 4px 3px rgba(0,0,0,.7);-moz-box-shadow:0 4px 3px rgba(0,0,0,.7);box-shadow:0 4px 3px rgba(0,0,0,.7);background:#666;border-radius:2px;cursor:pointer;height:10px;left:5px;position:absolute;width:10px;z-index:1002}.container-selector:hover{background:#fff}.container-rotator .container-highlight:hover{border-color:#fff!important}.container-stack .container-highlight:hover{background-color:#999!important}.container-active{background:#fc0!important}.container-slider .attribution-button{bottom:7px}.container-slider .controls{max-width:100%!important}.container-slider .text-container{background-color:#000;border-radius:5px 5px 0 0;margin-bottom:0}.container-slider .text-title:hover{text-decoration:underline!important}.container-slider.hidden .controls{top:38px}.container-slider.animated .controls{-webkit-transition:top .4s;-moz-transition:top .4s;-o-transition:top .4s;transition:top .4s}.controls{display:inline-block;position:relative}.controls.scalable{display:block;min-width:320px;max-width:450px}.autoalign .controls.scalable{margin:auto}.flash-container,.image-container{display:inline-block;position:relative}.flash-container.click-capture .click-layer{display:block}.click-layer{background:rgba(0,0,0,0.0);bottom:0;left:0;position:absolute;right:0;top:0;z-index:100}.text-container{margin-bottom:5px;position:relative}.yt-text-overlay .text-container{margin-bottom:3px}.text-inner-container{background-image:-webkit-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-moz-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-ms-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-o-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));border:1px solid rgba(102,102,102,0.7);border-radius:3px;box-shadow:rgba(0,0,0,0.7) 0 5px 5px;padding-left:10px;position:absolute;text-align:left;top:0;bottom:0;left:0;right:0}.yt-text-overlay .text-container .text-inner-container{background-color:rgba(0,0,0,0.6);background-image:none;border:1px solid rgba(0,0,0,0.6);border-radius:0;box-shadow:none;padding-left:10px}.viewmode-fullscreen .text-inner-container{background-image:none;border:none;box-shadow:none}.yt-text-overlay .controls:hover .text-inner-container{border:1px solid rgba(58,58,58,1.0)}.text-title{text-decoration:underline}.yt-text-overlay .text-title{text-decoration:none}.viewmode-fullscreen .text-title{text-decoration:none}.yt-text-overlay .controls:hover .text-container .text-title{text-decoration:underline}.text-image-link{float:left;position:relative}.text-image{box-shadow:rgba(0,0,0,0.498039) 0 3px 5px;height:57px;margin:3px 10px 0 0;width:79px}.yt-text-overlay .text-image{margin:2px 10px 0 0}.text-image-duration{background:#000;color:#fff;font:10px arial,sans-serif;padding:2px;position:absolute;right:10px;top:43px}.text-title{color:#fff;display:block;font:bold 14px arial,sans-serif;margin:7px 16px 0 0;overflow:hidden;padding-bottom:4px;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-title{margin-top:7px;text-shadow:#000 0 -1px 0}.text-description{color:#fff;font:12px arial,sans-serif;margin-top:-3px;overflow:hidden;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-description{text-align:left;text-shadow:none}.text-ad-channel{bottom:7px;color:#f9fcc0;font:bold 11px arial,sans-serif;left:10px;position:absolute;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px}.yt-text-overlay .text-ad-channel{bottom:9px;color:#eade90;font-weight:normal;left:10px;text-shadow:#000 0 -1px 0}.pyv .text-ad-channel{left:99px}.yt-text-overlay .pyv .text-ad-channel{left:99px}.viewmode-fullscreen .text-ad-channel{color:#ccc}.yt-text-overlay.viewmode-fullscreen .text-ad-channel{color:#eade90}.ima-sdk-frame body{background:transparent;height:100%;margin:0;overflow:hidden}.ima-sdk-frame{height:100%}.ima-sdk-frame-native body{background:#000}.ima-sdk-frame-native video{bottom:0;left:0;margin:auto;right:0;top:0}.ytp-iv-drawer-open .videoAdUiTopBar,.ytp-iv-drawer-open .videoAdUiPreSkipContainer,.ytp-iv-drawer-open .videoAdUiSkipContainer,.ytp-iv-drawer-open .ad-overlay .container{display:none}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0;z-index:1000}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;opacity:.9;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgress{background-image:-webkit-linear-gradient(top,#ffec7b,#dea405);background-image:-moz-linear-gradient(top,#ffec7b,#dea405);background-image:-ms-linear-gradient(top,#ffec7b,#dea405);background-image:-o-linear-gradient(top,#ffec7b,#dea405);background-image:linear-gradient(top,#ffec7b,#dea405);border-right:solid 1px #666;height:4px;opacity:.9;width:0%}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;font:normal 13px arial,sans-serif;margin-bottom:5px;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttribution{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;box-sizing:content-box;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center;cursor:pointer}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}.videoAdUi.blazer .videoAdUiProgressBar{background-color:#222;height:4px}.videoAdUi.blazer .videoAdUiProgress{background-image:none;background-color:#e6bc27;opacity:1;position:absolute}.videoAdUi.blazer .videoAdUiBuffer{background-color:#666;display:block;position:absolute}.videoAdUi.blazer .videoAdUiAuthorName{display:none}.videoAdUi.blazer .videoadUiTitle,.videoAdUi.blazer .videoAdUiLearnMore{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:14px;text-shadow:0 0 2px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiAttribution{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:16px;text-shadow:0 0 2px rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiSkipButton,.videoAdUi.blazer .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-size:13px}.videoAdUi.blazer .videoAdUiSkipButton{font-family:"Helvetica Neue Light","Arial",sans-serif;border:1px solid rgba(255,255,255,0.25);background-color:rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiPreSkipButton{font-family:"Helvetica Neue","Arial",sans-serif;background-color:rgba(0,0,0,0.25);text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiPreSkipText{padding:5px 0}.videoAdUi.blazer .videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{line-height:inherit}.videoAdUi.blazer .videoAdUiLearnMore{text-shadow:1px 1px 1px rgba(0,0,0,0.75);margin:5px;margin-right:20px}.videoAdUi.blazer.phone .videoAdUiAuthorIcon,.videoAdUi.blazer.phone .videoadUiTitle{display:none}.videoAdUi.blazer.phone .videoAdUiAttribution{font-size:14px}.videoAdUi.blazer.phone .videoAdUiSkipButton{padding:6px 0}.videoAdUi.blazer.phone .videoAdUiSkipIcon{margin-left:6px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon,.videoAdUi.blazer.tablet .videoadUiTitle{left:0;position:absolute;margin-top:17px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon{margin:5px 10px}.videoAdUi.blazer.tablet .videoAdUiSkipButton,.videoAdUi.blazer.tablet .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:13px;text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer.tablet .videoAdUiPreSkipContainer,.videoAdUi.blazer.tablet .videoAdUiSkipContainer{bottom:55px}.videoAdUi.blazer.tablet .videoAdUiAttribution{left:0;bottom:0}.videoAdUi.blazer.tablet:hover .videoAdUiAttribution{right:84%;bottom:26px;text-align:right}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar{bottom:35px;left:16%;width:68%}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar,.videoAdUi.blazer.tablet:hover .videoAdUiBuffer,.videoAdUi.blazer.tablet:hover .videoAdUiProgress{height:20px}'),
e.appendChild(p));p=1E3*dT(SW(this));this.A=new wX(d,e,p);e=d.Ga;null!=e&&(SW(this).J=e,d.P&&MX(this,e));e=[];d.A&&e.push("adAttribution");d.j&&e.push("countdown")}else d&&this.k.Ko&&(SW(this).J=d,MX(this,d));d=this.D;e=this.j;p=this.o.Fk();g=this.A;GX(d);d.B.D=a.$;d.j=e;d.o=g||null;d.j.ai();d.A=new FX(d.j);d.G=p||null;d.k=new ln(d);d.k.listen(a,"viewable_impression",d.zw);d.k.listen(d.j,"timeUpdate",d.kw);d.k.listen(d.j,"volumeChange",d.lw);d.k.listen(d.j,"pause",d.hw);d.k.listen(d.j,"play",d.iw);
d.k.listen(d.j,"end",d.cw);d.k.listen(d.j,"beginFullscreen",d.ew);d.k.listen(d.j,"endFullscreen",d.mw);d.k.listen(d.j,"skip",d.Qo);d.k.listen(d.j,"skipShown",d.Ro);d.k.listen(d.j,"start",d.jw);d.k.listen(d.j,"error",d.dw);d.k.listen(d.j,"mediaLoadTimeout",d.gw);null!=d.o&&(d.k.listen(d.o,"videoAuthorIconClicked",d.rw),d.k.listen(d.o,"videoAuthorClicked",d.qw),d.k.listen(d.o,"videoClicked",d.sw),d.k.listen(d.o,"videoLearnMoreClicked",d.tw),d.k.listen(d.o,"videoTitleClicked",d.yw),d.k.listen(d.o,"videoShareClicked",
d.uw),d.k.listen(d.o,"videoShareShown",d.ww),d.k.listen(d.o,"skipshown",d.Ro),d.k.listen(d.o,"skip",d.Qo),d.k.listen(d.o,"PUBLISHER_INVOKED_SKIP",d.ow));UW(this).listen(this.D,"engagedview",this.Zc);UW(this).listen(this.D,"videoAuthorIconClicked",this.Zc);UW(this).listen(this.D,"videoAuthorClicked",this.Zc);UW(this).listen(this.D,"videoClicked",this.Zc);UW(this).listen(this.D,"videoLearnMoreClicked",this.Zc);UW(this).listen(this.D,"videoShareClicked",this.Zc);UW(this).listen(this.D,"videoShareShown",
this.Zc);UW(this).listen(this.D,"videoTitleClicked",this.Zc);UW(this).listen(this.j,"timeUpdate",this.xw);UW(this).listen(this.j,"volumeChange",this.bw);this.We(a);d=bV(a,this.j);this.B.j=d;d=a.j;null!=d&&d instanceof pS&&(this.ke(d,qJ),this.bi(d),d=UW(this),on(d,this.D,"error",this.$v,this),on(d,this.D,"mediaLoadTimeout",this.aw,this));NX(this,a);GS(a)&&(this.D.F=30);this.j.Ek(OX(this,a));this.j.load(b,c)}};
f.rA=function(a,b,c){this.U||(this.U=!0,this.qa("contentPauseRequested"));if(IR(41351068)&&(this.o.xg(),"4.4.4"==(Wc?YK(TK):""))){JX.prototype.hu.call(this,a,b,c);return}this.hu(a,b,c)};
f.hu=function(a,b,c){this.K=!0;this.GB(a,b,c);this.setVolume(this.N);this.A&&(C(D(PX(a)))?(b=this.A,null!=b.C&&(b.o.Aa(b.C,"click",b.Ak),pg(b.C,"cursor","default"))):(b=this.A,null!=b.C&&(b.o.listen(b.C,"click",b.Ak),pg(b.C,"cursor","pointer"))),b=a.j.ha,ib(b)||zX(this.A,b),this.A.show());IR(41351068)||this.o.xg();try{VW(this,a)}catch(d){QX(this,ZJ,d);return}fQ.getInstance().end("pi");fQ.getInstance().start("bt");this.j.play()};function RX(a,b,c,d){b=QQ(b.j,c);ib(b)||(a[d]=b[0].j)}
function SX(a,b,c){b=c.getExtension(b);null!=b&&(RX(a,b,"annotation_click","cta_annotation_clicked"),RX(a,b,"annotation_close","cta_annotation_closed"),RX(a,b,"annotation_start","cta_annotation_shown"))}function OX(a,b){var c=XS(b)&&!b.G?PS(b):null,d=GS(b)&&!HS(b),e=null!=a.A&&a.k.Bk&&a.A.j.o,g=b.o,h=FS(b),k;a.A?(k={},SX(k,"AdSense",b),SX(k,"dart",b),SX(k,"DFP",b)):k=null;return new $O(h,c,k,e,d,a.k.loadVideoTimeout,g?g.tagForChildDirectedContent:!1,!1)}
function TX(a){var b=0;E(a.ads,function(a){!UX(a)||OK()&&0!=b||b++},a);var c=1;E(a.ads,function(a){var e=a.B;e.o=b;UX(a)&&(e.j=c,e.A=c,c++)},a)}function UX(a){a=a.j;return null!=a&&a instanceof pS}function VX(a){return db(a.ads,function(a){return db(WX(a),function(a){return!C(D(EO(a.k)))})},a)}function PX(a){var b=a.k;return b&&b.F&&(b=b.A,!ib(b)&&b[0]instanceof pS)?b[0].Rc():cT(a)}function WX(a){var b=a.k;if(b&&b.F&&(b=b.A,!ib(b)&&b[0]instanceof pS))return b[0].H;b=a.j;return UX(a)?b.H:[]}
function XX(a,b){if(bL.getInstance().j){var c=new Xj,d=!1;E(WX(b),function(a){c.add(a.j);"VPAID"==a.o&&(d=!0)},a);var e=a.j.Am(),e={aid:PS(b),mt:c.La().join(","),smt:e.join(","),hvp:d,st:WP(b).join(",")};cL(bL.getInstance(),28,e)}}function YX(a,b,c){try{var d=F(a,function(a){return a.Sd}),e=F(a,function(a){return a.j}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.Sd,selmt:null===c?"":c.j,nat:!1};cL(bL.getInstance(),22,g)}catch(h){}}f.ck=function(){TX(this);this.qa("loaded");this.T(new eX(SW(this)))};
f.Pc=function(a,b,c){JX.I.Pc.call(this,a,b,c);a=VX(this);this.j=this.o.$i(a);t:{if(TW(this)&&(b=this.G.getExtension("InfoCards"),b=null!=b?b.k:null,null!=b))break t;b=""}t:{if(TW(this)&&(c=this.G.getExtension("InfoCardsTracking"),c=null!=c?c.k:null,null!=c))break t;c=""}a&&(b||c)&&this.j.gr(b,c)};f.skip=function(){TW(this)&&GS(SW(this))&&(null!=this.A?this.A.skip():(YW(this,"skip"),ZX(this)))};f.Dl=function(){this.bc("skipshown")};
f.start=function(){JX.I.start.call(this);fQ.getInstance().start("pi");try{var a=SW(this),b;if(!UX(a))throw FK(uK);var c=a.j,d=c.da;if(C(D(d))){var e=WX(a),g=this.j.Rq(e,this.k.bitrate,this.k.mimeTypes||[],null!=a&&(OK()||this.o.Ni()||this.o.sm()&&Wc));YX(e,this.k.bitrate,g);if(null!=g)b=c.la=g;else{try{XX(this,a)}catch(h){}throw FK(mK);}}else b=new sO("","",0,0,0,0,0,d,"");fn(x(JX.prototype.rA,this,a,b.k,b.j))}catch(k){$X(this,k),this.Og(),TW(this)?(GK(FK,this,AK,k,void 0),this.start()):(this.K?GK(FK,
this,AK,k,void 0):(null!=this.C&&QP(this.C,NP()),HK(this,AK,k)),this.stop())}};f.Zq=function(){WW(this);return this.j.Ng()?0:this.j.ed()};f.setVolume=function(a){WW(this);this.K?this.j.setVolume(a):this.N=a};f.setMediaUrl=function(a){WW(this);var b;if(b=TW(this))b=null!=SW(this).o;if(b){b=SW(this);var c=b.o.location,d;if(d=null!=c)(d=MJ(HJ,c))||(d=Ye(new K(c)),d=null!=d?ta(d,".corp.google.com")||"corp.google.com"==d:!1),d=d||(null!=c?MJ(JJ,c):!1);(d||OK())&&null!=b.j&&b.j instanceof pS&&b.j.setMediaUrl(a)}};
f.pause=function(){WW(this);this.j.pause()};f.resume=function(){WW(this);this.j.play()};f.getRemainingTime=function(){WW(this);var a=this.j.ad(),b=this.j.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.Ef=function(){return this.j.Ef()};f.$v=function(){QX(this,AK,FK(AK,this.j.Gt()))};f.aw=function(){QX(this,pK,FK(pK,null,(this.k.loadVideoTimeout/1E3).toString()))};function QX(a,b,c){$X(a,c);a.Og();TW(a)?(GK(FK,a,b,c,void 0),a.start()):(HK(a,b,c),a.stop())}
function $X(a,b){var c=FK(AK,b),c=WU(c,SW(a),a.j),d=KS(SW(a));SJ(d,c)}function aY(a){if(PK.j){var b=PX(SW(a));null!=b&&PJ(b)}a.qa("click")}function NX(a,b){var c=b;do c.D.forEach(function(a){E(qJ,function(b){var c=QQ(a.j,b);ib(c)||bY(this,b,c)},this);QW(this.B,a.D)},a),c=c.k;while(c)}function bY(a,b,c){E(c,function(a){RQ(this.B.k,a.o,a.j)},a);cY(a,b)}function cY(a,b){Kb(tJ,b)&&on(UW(a),a.D,b,a.Zc,a)}
f.Zc=function(a){switch(a.type){case "start":fQ.getInstance().end("bt");a=fQ.getInstance();a.j&&(QJ(gQ("ff",a.o)),a.o=0);this.qa("start");break;case "impression":this.qa("impression");break;case "pause":this.qa("pause");break;case "resume":this.qa("resume");break;case "firstquartile":this.qa("firstquartile");break;case "midpoint":this.qa("midpoint");break;case "thirdquartile":this.qa("thirdquartile");break;case "complete":this.qa("complete");LX(this);break;case "click":this.A&&this.A.j.k?this.j.Lg()?
this.resume():this.pause():aY(this);break;case "engagedview":var b=SW(this);a=b.J;if(HS(b)&&!OK()&&!this.o.Ni()&&a){var b=this.j.getCurrentTime(),c=this.j.ad(),d=new K("//s.youtube.com/s");L(d,"ns","yt");L(d,"el","adunit");L(d,"docid",a);L(d,"eurl",document.URL);L(d,"len",c.toFixed(2));L(d,"tv","1");L(d,"ps","trueview-instream");L(d,"st",b.toFixed(2));L(d,"et",b.toFixed(2));L(d,"rt",b.toFixed(2));QJ(d.toString())}this.qa("engagedview");break;case "videoAuthorIconClicked":dY(this);break;case "videoAuthorClicked":dY(this);
break;case "videoClicked":this.qa("videoClicked");break;case "videoLearnMoreClicked":this.j.pause();aY(this);break;case "videoShareClicked":a=SW(this).K;null!=a&&(a=a.videoId,b=this.k.baseYouTubeUrl,C(D(a))?a=null:(b=new K((null!=b?b:"//www.youtube.com/")+"watch"),c=b.j,c.set("v",a),Pe(b,c),b.Gf="action=share",a=b.toString()),null!=a&&(PJ(a),a=eY(this),null!=a&&(a=TJ(a,"sharebuttonclicked",void 0),QJ(a))));break;case "videoShareShown":a=eY(this);null!=a&&(a=TJ(a,"sharebuttondisplayed",void 0),QJ(a));
break;case "videoTitleClicked":a=SW(this);b=a.K;null!=b&&(a=GO(b.videoId,null!=YS(a),this.k.baseYouTubeUrl),null!==a&&(this.j.pause(),PJ(a)));break;case "skipshown":this.qa("skippableStateChanged");break;case "skip":ZX(this)}};function eY(a){var b=SW(a).getExtension("AdSense");if(!(b=null!=b?new K(b.k):null))t:{if(a=OS(SW(a)))if(a=nS(a,"start"),!ib(a)){b=new K(a[0].j);break t}b=null}return b}function ZX(a){fn(function(){this.qa("skip");LX(this)},0,a)}
f.We=function(a){JX.I.We.call(this,a);cY(this,"impression")};f.ke=function(a,b){JX.I.ke.call(this,a,b);E(b,function(a){cY(this,a)},this)};f.bi=function(a){JX.I.bi.call(this,a);a instanceof pS&&(a=qS(a),E(a.Ka(),function(a){cY(this,a)},this))};f.getMediaUrl=function(){if(!TW(this))return null;var a=SW(this);if(!UX(a))throw FK(uK);a=a.j.H;return ib(a)?null:a[0].k};
f.xw=function(){var a=this.j.ad(),b=this.j.Or(),c=this.j.getCurrentTime(),d=0,e=0;TW(this)&&(e=SW(this),d=e.B.j,e=e.B.o);if(null!=this.A&&0<=a&&0<=c){var g;if(g=!this.P)g=3==SW(this).la;if(g){g=this.j.ad();var h=dT(SW(this));g=Math.abs(g-h);2<g&&(g=FK(tK,null,Number(g).toFixed(2)),g=WU(g,SW(this),this.j),h=KS(SW(this)),SJ(h,g));this.P=!0}this.A.update(c,b,a,d,e)}};f.bw=function(){var a=this.j.ed();a!=this.N&&(this.N=a,this.qa("volumeChange"),0==a&&this.qa("mute"))};
function MX(a,b){gX(b,function(a){a=new MR(a);gT(SW(this))==a.videoId&&(fY(this,a),!C(D(a.channelId))&&a.j&&iX(a.channelId,function(a){a=new KR(a);if(null!=this.A){var b=this.A,c=a.k;b.j.R=!C(D(c));b.j.V=c;null!=b.F&&(c="by "+b.j.V,Pd(b.F,(new AT(c,void 0)).getContent()));xX(b);b=this.A;c=a.j;b.j.O=!C(D(c));if(null!=b.D){var h=Ad("img");h.setAttribute("src",c);O(h,"videoAdUiAuthorIconImage");b.D.appendChild(h);null!=b.B&&O(b.B,"videoAdUiTitleWithAuthorIcon")}xX(b)}SW(this).H=a;this.qa("youTubeChannelMetadata");
if(a=this.A)a=SW(this),b=a.K,a=OK()&&ib(XP(a))&&null!=a.H&&null!=b&&b.j;if(a){a=SW(this);UW(this).listen(window,"message",this.Ey);var b=SW(this),c=b.H.channelId,h=FS(b),k=this.k.contentId,l=this.k.baseYouTubeUrl,l=new K((null!=l?l:"//www.youtube.com/")+"ad_companion"),p=l.j;p.set("adformat",h);p.set("p",c);p.set("render","video_wall_companion");k&&p.set("content",k);c=new ST("1",new I(300,250),"IFrame",null,l.toString());c.rg(b);c.D=!0;a.C=[new iT(c,[],null)];VW(this,a)}},this))},a)}
f.Ey=function(a){var b=a.j;if("companion-setup-complete"==b.data){a=SW(this);var c=encodeURIComponent(D(cT(a)))+","+encodeURIComponent(eY(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=cT(a)?210:185}else"pause-video"==b.data&&this.pause()};
function fY(a,b){if(null!=a.A&&b.j){var c=a.A,d=b.title;c.j.B=!C(D(d));c.j.title=d;dc.test(cc(c.j.title,void 0));null!=c.B&&Pd(c.B,c.j.title);xX(c);c=a.A;null!=c.G&&Pd(c.G,"Share")}SW(a).K=b;a.qa("youTubeVideoMetadata")}function dY(a){var b;b=SW(a).H;if(null!=b){b=b.channelId;var c=a.k.baseYouTubeUrl;b=C(D(b))?null:(null!=c?c:"//www.youtube.com/")+"channel/UC"+b;null!==b&&(a.j.pause(),PJ(b))}};function gY(a){this.j=a}f=gY.prototype;f.Fk=function(){return this.j.Fk()};f.Gk=function(){return this.j.Gk()};f.Af=function(){return this.j.Af()};f.$i=function(a){return this.j.$i(a)};f.hn=function(){return this.j.hn()};f.sm=function(){return this.j.sm()};f.Ni=function(){return this.j.Ni()};f.hide=u;f.xg=u;f.mi=u;function hY(a,b,c,d,e,g,h){T.call(this);this.A=this.C=0;this.D=a;this.Ed=b;this.W=c;this.B=null;this.N=d;this.O=g;this.K=PK.k;this.j=null;this.U="normal";this.J=null;this.G=e;this.o=[];this.V=this.R=this.H=!1;this.P=h;iY(this)}B(hY,T);f=hY.prototype;f.init=function(a,b,c){jY(this,c);null==this.F&&(this.F=new ln(this),on(this.F,this.N,"adsLoaderSdkAdLoaded",this.zF,this),on(this.F,this.N,"adsLoaderSdkAdError",this.yF,this));kY(this)};
f.start=function(){this.H=!0;lY(this);0<this.o.length?mY(this):("always"==PK.k&&null!=this.P&&QP(this.P,NP()),GK(DK,this,dK,void 0,void 0),0==this.Ed&&this.T("contentResumeRequested"),nY(this))};f.destroy=function(){null!=this.F&&(this.F.dispose(),this.F=null);this.G.hide();oY(this);PK.k=this.K;this.H=!1};f.getCurrentAd=function(){return this.A<this.o.length?this.o[this.A].j[0]:null};f.ib=function(){return this.H};f.pause=function(){null!=this.j&&this.j.pause()};
f.resume=function(){null!=this.j&&this.j.resume()};f.skip=function(){null!=this.j&&this.j.skip()};f.getRemainingTime=function(){return null!=this.j?this.j.getRemainingTime():-1};f.setVolume=function(a){null!=a&&(this.J=a,null!=this.j&&this.j.setVolume(this.J))};function jY(a,b){null!=b&&(a.U=b);null!=a.j&&(a.j.Pj(b),a.j.yh())}function iY(a){E(a.D,function(a){a=new K(a.o.adTagUrl);var c=df(a,"max_ad_duration");n(c)||df(a,"pmxd")})}
f.zF=function(a){PK.k=this.K;var b=a.C;ib(b)||(a=a.B,a.j&&E(b,function(a){a.da=!1},this),kb(this.o,new yQ(b,a.j,a.k)));this.C++;kY(this)};f.yF=function(a){a=a.o;PK.k=this.K;a.getMessage();GK(DK,this,dK,void 0,void 0);this.C++;kY(this)};function kY(a){a.C<a.D.length&&null!=a.D[a.C]&&!(2<=a.o.length-a.A)?pY(a):a.R||(a.T("adBreakInitialized"),a.R=!0)}function pY(a){var b=a.D[a.C];PK.k="on_master_ad";AW(a.N,b.o,b)}
function lY(a){null==a.Ed||db(a.o,function(a){return!a.k})||(a.o=bb(a.o,function(a){return!(a.k&&!a.o)}))}
function mY(a){if(a.A<a.o.length){var b=a.o[a.A];oY(a);try{var c=b.j,b=null;if(ES(c[0]))a.O.jp&&(c=sb(c,0,1)),b=new JX(c);else{var d=c[0];if(null!=d&&WS(d,"nonlinear"))b=new ZW(c);else throw Error("No valid creative type found.");}b.C=a.P;b.Pc(new gY(a.G),{currentTime:0},a.O);a.j=b;if(null==a.j)throw Error("The current ads manager is not defined");null!=a.k&&(a.k.dispose(),a.k=null);a.k=new ln(a);var e=a.j;on(a.k,e,"adError",a.bx,a);on(a.k,e,"click videoClicked start pause resume firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),
a.fx,a);a.k.listen(e,["allAdsCompleted"],u);on(a.k,e,"contentPauseRequested",a.$w,a);on(a.k,e,"contentResumeRequested",a.ax,a);if(qY(a.j)){var g;g=OS(SW(a.j)).ia;g=0<g?g:15;null!=a.B&&a.B.dispose();a.B=new dn(1E3*g);rn(a.k,a.B,"tick",a.gx,a)}a.j.init(a.U);null!=a.J&&a.j.setVolume(a.J);if(qY(a.j))a.T("contentResumeRequested"),a.G.hide(),a.G.mi(),a.j.start(),null!=a.B&&a.B.start();else{var h=a.j;if(null!=h&&h instanceof JX)a.G.xg(),a.j.start();else throw Error("Unknown ads manager type.");}}catch(k){a.A++,
mY(a)}a.C<a.D.length&&null!=a.D[a.C]&&pY(a)}else a.T("contentResumeRequested"),nY(a)}function oY(a){null!=a.B&&(a.B.dispose(),a.B=null);null!=a.k&&(a.k.dispose(),a.k=null);null!=a.j&&(a.j.destroy(),a.j=null)}f.gx=function(){oY(this);nY(this)};f.bx=function(){this.A++;mY(this)};f.ax=function(){this.A++;mY(this)};f.$w=function(){this.V||(this.T("contentPauseRequested"),this.V=!0)};function qY(a){return null!=a&&a instanceof ZW}function nY(a){a.H=!1;a.T("allAdsCompleted")}
f.fx=function(a){rY(this,a.type,a.getAd());this.T(a)};function rY(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;E(a.o,function(a,b){var g=a.j;$a(g,c);d+=g.length;b<this.A&&(e+=g.length)},a);b=c.B;var g=e+b.A;b.o=d+(a.D.length-a.C);b.j=g;b.k=a.W;b.B=a.Ed}};function sY(a){Xl.call(this,a);this.o=null}B(sY,Xl);function tY(a,b,c){T.call(this);this.k=a;this.j=[];this.C=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.F=null!=c&&ha(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.o=null;this.A=!1;uY(this,b)}B(tY,T);function vY(a){this.j=a;this.o=this.k=!1}function wY(a){null!=a.o&&(a.o.dispose(),a.o=null);a.k.stop();a.A=!1}function xY(a){if(a.A){var b=G(a.j,function(a){return-1==a.j},a);null!=b&&yY(a,!0,b)}}
function uY(a,b){E(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Bb(this.j,new vY(a),function(a,b){return vb(a.j,b.j)})},a)}tY.prototype.B=function(){if(this.A){var a=this.k.currentTime;if(isNaN(a)||0>a)zY(this);else{var b=AY(this,a);this.C?E(b,function(a){yY(this,!0,a)},this):yY(this,!0,Ya(b));yY(this,!1,BY(this,a))}}};function AY(a,b){for(var c=[],d=0;d<a.j.length;d++){var e=a.j[d];-1!=e.j&&e.j<=b&&kb(c,e)}return c}
function BY(a,b){for(var c=0;c<a.j.length;c++){var d=a.j[c];if(-1!=d.j&&b>=d.j-a.F&&b<d.j&&!a.j[c].k)return d}return null}tY.prototype.D=function(){zY(this)};function zY(a){a.T(new sY("contentTrackingError"))}function yY(a,b,c){if(null!=c){if(!c.k){var d=new sY("requestAds");d.o=c.j;a.T(d);c.k=!0}b&&!c.o&&(b=new sY("playAds"),b.o=c.j,a.T(b),c.o=!0)}};function CY(a,b){Q.call(this);this.o=a;this.k=-1;this.j=b}B(CY,Q);function DY(a,b){if(0==b.Ed||0>=a.j||0>=a.k)return!1;var c=z()/1E3,d=b.Ed-a.o.currentTime;0<d&&(c+=d);return c-a.k<=a.j};function BW(a,b){RW.call(this,[]);this.P=a;this.H=new je;this.A=this.j=null;this.W=new Mo;this.D=null;this.N=b;this.U=this.V=!1;this.K=null;this.$=this.ha=-1;this.R=null}B(BW,RW);f=BW.prototype;
f.Pc=function(a,b,c){null!=this.A&&(wY(this.A),this.A.dispose(),this.A=null);BW.I.Pc.call(this,a,b,c);c=this.P.j.Ka();b=new iP(b);this.A=new tY(b,c,{prefetch:4});E(c,function(b,c){if(isNaN(b))throw DK(XJ,null,"timeOffset",b+"");var g=ha(b)&&!isNaN(b)?this.P.j.get(b,[]):[];if(!ib(g)){g=new hY(g,b,0==b||-1==b?b:c,this.N,a,this.k,this.C);if(le(this.H,b))throw DK(iK,null,"Multiple ad breaks cannot share same ad play time.");this.H.set(b,g)}},this);this.K=Ya(c);db(c,function(a){if(-1==a)return this.K=
a,!0;this.K=this.K<a?a:this.K;return!1},this)};
f.init=function(a){BW.I.init.call(this,a);null!=this.A&&(EY(this),a=UW(this),on(a,this.A,"requestAds",this,this),on(a,this.A,"playAds",this,this),on(a,this.A,"contentTrackingError",this,this),on(a,this.A,"adBreakReady",this.Ay,this),on(a,this.N,"contentComplete",this.By,this),this.N.j=!1,a=this.A,a.A||(null==a.o&&(a.o=new ln(a)),a.o.listen(a.k,"currentTimeUpdate",a.B,!1),a.o.listen(a.k,"contentWrapperError",a.D,!1)),a.k.start(),a.A=!0,this.A.B(),a=ha(0)&&!isNaN(0)?this.P.j.get(0,[]):[],ib(a)&&this.qa("contentResumeRequested"))};
f.ck=function(){this.ue();this.T(new eX(null))};f.destroy=function(){this.dispose()};f.L=function(){this.N.j=!0;if(0<this.H.Qa()){var a=this.H.La();E(a,this.sj,this);this.H.clear()}EY(this);FY(this);null!=this.o&&(this.o.hide(),this.o=null);BW.I.L.call(this)};f.start=function(){BW.I.start.call(this)};f.stop=function(){null!=this.j&&this.j.destroy()};f.pause=function(){null!=this.j&&this.j.pause()};f.resume=function(){null!=this.j&&this.j.resume()};f.skip=function(){null!=this.j&&this.j.skip()};
f.setVolume=function(a){BW.I.setVolume.call(this,a);null!=this.j&&this.j.setVolume(a)};f.yh=function(){BW.I.yh.call(this);var a=sd(window);this.ha=a.width;this.$=a.height;null!=this.j&&jY(this.j,this.J)};f.getRemainingTime=function(){return null!=this.j?this.j.getRemainingTime():-1};f.ue=function(){return this.P.j.Ka()};f.getCurrentAd=function(){return null!=this.j?this.j.getCurrentAd():null};f.ar=function(){};f.handleEvent=function(a){"contentTrackingError"!=a.type&&(Oo(this.W,a),GY(this))};
function EY(a){null!=a.F&&(a.F.dispose(),a.F=null);a.V=!1;null!=a.A&&wY(a.A)}
function GY(a){if(null==a.D){var b=Po(a.W);if(null!=b){a.D=b;var c=a.H.get(a.D.o);null==c?(a.D=null,GY(a)):"requestAds"!=b.type&&"playAds"!=b.type?(a.D=null,GY(a)):null!=a.R&&DY(a.R,c)?(a.D=null,GY(a)):"requestAds"==b.type?(b=UW(a),on(b,c,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),a.T,a),on(b,c,"allAdsCompleted",a.Vr,a),on(b,c,"contentPauseRequested",a.Tr,a),on(b,c,"contentResumeRequested",a.Ur,a),on(b,c,"adBreakInitialized",
a.Wr,a),c.init(a.ha,a.$,a.J)):"playAds"==b.type&&(null!=a.j&&a.j.ib()&&a.sj(a.j),a.j=c,a.j.setVolume(a.volume),jY(a.j,a.J),a.j.start())}}}
f.sj=function(a){a.destroy();this.H.remove(a.Ed);this.j=null;null!=this.F&&(this.F.Aa(a,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),this.T,!1,this),this.F.Aa(a,"allAdsCompleted",this.Vr,!1,this),this.F.Aa(a,"contentPauseRequested",this.Tr,!1,this),this.F.Aa(a,"contentResumeRequested",this.Ur,!1,this),this.F.Aa(a,"adBreakInitialized",this.Wr,!1,this))};
f.By=function(a){this.V=!0;-1==this.K?a.A=!1:OK()&&0!=this.H.La().length||HY(this);xY(this.A)};f.Ay=function(a){var b=a.o;-1==b?fn(function(){var a=this.H.get(b);a&&this.sj(a);OK()&&0!=this.H.La().length||HY(this)},500,this):0==b&&fn(function(){this.qa("contentResumeRequested")},100,this);this.T(new sJ("adBreakReady",null,{jH:b}))};f.Vr=function(a){this.sj(a.target);(0==this.H.La().length||!OK()&&this.V)&&HY(this);this.D=null;GY(this)};
function HY(a){a.U||(a.U=!0,a.N.j=!0,a.qa("allAdsCompleted"),-1==a.K&&FY(a))}function FY(a){sP.clear();null!=a.C&&(a=a.C.oe(),null!=a&&HP(a,sP.j))}f.Tr=function(){var a=this.A;a.k.stop();a.A=!1;this.qa("contentPauseRequested")};f.Ur=function(){this.qa("contentResumeRequested");if(!this.U){var a=this.A;a.k.start();a.A=!0}this.D=null};f.Wr=function(){this.D=null;GY(this)};f.qa=function(a){var b=null;null!=this.j&&(b=this.j.getCurrentAd());this.T(new sJ(a,b))};
f.Oq=function(a,b){return this.R=new CY(a,b)};function IY(a){RW.call(this,a);this.W=this.V=this.P=!1;this.N=[];this.U=Sa();this.j=null;this.A=!0;this.R=-1;this.K=1}B(IY,RW);f=IY.prototype;
f.init=function(a){IY.I.init.call(this,a);a=eT(SW(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en-gb".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.k.contentId&&(a=Je(a,"v",this.k.contentId))}a=D(a)}else{var b=new K(a),c=new K("http://tpc.googlesyndication.com/pagead/js/loader7.html");"https"==b.Hb&&Ke(c,"https");a=Pe(c,a||"",void 0).toString()}this.D=J("iframe",{src:OJ(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});
UW(this).listen(window,"message",this.iE);UW(this).listen(this.D,"load",this.gE);UW(this).listen(this.D,"error",this.hE);this.o.Af().appendChild(this.D)};f.Pc=function(a,b,c){IY.I.Pc.call(this,a,b,c);this.A=OS(SW(this))instanceof pS;this.j=a.$i(!1);UW(this).listen(this.j,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.QD)};f.stop=function(){this.o.hide();IY.I.stop.call(this)};
f.start=function(){IY.I.start.call(this);var a=SW(this),b=bV(a,this.j);this.B.j=b;if(b=a.j)this.We(a),this.ke(b,qJ),this.bi(b);this.j.ai();this.o.mi();this.D.style.opacity=1;this.W=!0;this.A&&this.qa("contentPauseRequested");JY(this)};f.pause=function(){KY(this,"pauseAd")};f.resume=function(){KY(this,"resumeAd")};f.setVolume=function(a){IY.I.setVolume.call(this,a);KY(this,"setAdVolume",{value:a})};
f.L=function(){var a=this.o.Af();null!=a&&Ed(a);this.A&&this.qa("contentResumeRequested");this.qa("allAdsCompleted");this.P=!1;this.N=[];IY.I.L.call(this)};f.ck=function(){};
f.gE=function(){var a=this.j.Am();ib(a)&&(a=this.k.mimeTypes);LY(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=MS(SW(this)),b=D(cT(SW(this))),b={desiredBitrate:this.k.bitrate,creativeData:a,viewMode:this.J,clickThroughUrl:b};eT(SW(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.k.surveyCreativeData&&(b.creativeData=this.k.surveyCreativeData);LY(this,"initAd",b);E(this.N,function(a){LY(this,a.type,a.params)},
this);this.P=!0;this.N=[]};function KY(a,b,c){a.P?LY(a,b,c):a.N.push({type:b,params:c})}function LY(a,b,c){null!=a.D?(null!=c||(c={}),c.session=a.U,c.type=b,a.D.contentWindow.postMessage($f(c),"*")):(MY(a,CK,null),a.stop())}
f.iE=function(a){a=a.j;if(a.source==this.D.contentWindow&&(a=Yf(a.data),a.session==this.U&&w(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.o.xg();this.j.getVideoUrl()!=a.src&&this.j.load(a.src,a.mimetype);this.j.play();break;case "pause":this.j.pause()}break;case "getAdRemainingTime":a=a.remainingTime;this.A||(gn(this.R),ha(a)&&-1!=a||(a=30),this.R=fn(this.OB,1E3*a,this));break;case "AdClickThru":YW(this,"click");this.qa("click");break;case "AdError":MY(this,CK,null);this.stop();
break;case "AdExpandedChange":this.qa("expandedChanged");break;case "AdImpression":this.qa("impression");break;case "AdLinearChange":a=a.isLinear;!this.A&&a?(this.qa("contentPauseRequested"),gn(this.R)):!a&&this.A&&(this.qa("contentResumeRequested"),this.A=a,KY(this,"getAdRemainingTime"));this.A=a;break;case "AdLoaded":this.V=!0;JY(this);this.bc("loaded");break;case "AdPaused":this.bc("pause");break;case "AdPlaying":this.bc("resume");break;case "AdRemainingTimeChange":this.A||KY(this,"getAdRemainingTime");
break;case "AdSkipped":this.bc("skip");break;case "AdStarted":YW(this,"impression");YW(this,"creativeview");this.qa("start");break;case "AdStopped":YW(this,"stop");this.stop();break;case "AdUserAcceptInvitation":this.A?YW(this,"acceptinvitationlinear"):YW(this,"acceptinvitation");break;case "AdUserMinimize":YW(this,"collapse");break;case "AdUserClose":this.bc("userClose");break;case "AdVideoComplete":this.bc("complete");break;case "AdVideoFirstQuartile":this.bc("firstquartile");break;case "AdVideoMidpoint":this.bc("midpoint");
break;case "AdVideoStart":YW(this,"start");break;case "AdVideoThirdQuartile":this.bc("thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.K&&this.qa("volumeChange");0==a&&0!=this.K?(YW(this,"mute"),this.qa("mute")):0==this.K&&0!=a&&YW(this,"unmute");this.K=a;this.j.setVolume(a);break;case "Ping":QJ(a.url)}};f.hE=function(a){MY(this,jK,a);this.stop()};function MY(a,b,c){var d=FK(b,c),d=WU(d,SW(a)),e=KS(SW(a));SJ(e,d);HK(a,b,c)}
f.QD=function(a){switch(a.type){case "timeUpdate":a=this.j.ad();var b=this.j.getCurrentTime();LY(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":NY(this,"ended");break;case "mediaLoadTimeout":NY(this,"stalled");break;default:NY(this,a.type)}};function NY(a,b){LY(a,"wrapperCall",{messageType:b})}function JY(a){a.V&&a.W&&(KY(a,"startAd"),a.A||KY(a,"getAdRemainingTime"))}f.OB=function(){KY(this,"stopAd")};function OY(){}function DW(a){if(!ib(a)){var b=a[0],c=fT(b)&&OK();switch(null!=eT(b)&&c?"vpaid":XS(b)&&WS(b,"nonlinear")?"overlay":WS(b,"linear")?"video":WS(b,"nonlinear")?"overlay":null){case "overlay":return XS(b)?new dX(a):new ZW(a);case "video":return new JX(a);case "vpaid":return new IY(a)}}return null};function PY(a){T.call(this);this.k=a;a=new PP(new yP);this.j=new wW(new OY,a,sP);this.j.listen("adsManagerLoaded",this.T,!1,this);this.j.listen("adError",this.T,!1,this);this.j.listen("adLoadError",this.T,!1,this)}B(PY,T);function QY(a,b,c){var d;try{d=window.top.location.href}catch(e){d=window.location.href}b.location=d;b.referrer=window.document.referrer;b.sc=gP(b.adTagUrl,b.linearAdSlotWidth,b.linearAdSlotHeight,b.nonLinearAdSlotWidth,b.nonLinearAdSlotHeight,a.k.A);b.Lm=a.k.F;xW(a.j,b,c)}
PY.prototype.L=function(){null!=this.j&&(this.j.Aa("adsManagerLoaded",this.T),this.j.Aa("adError",this.T),this.j.Aa("adLoadError",this.T),this.j=null);PY.I.L.call(this)};function RY(a,b){qr.call(this,a,b)}B(RY,qr);f=RY.prototype;f.oj=function(){xq(this.app,!0,this.playerType);this.app.Cd(this.playerType)};f.pauseVideo=function(){this.app.pauseVideo(this.playerType)};f.xu=function(a,b,c){xq(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.Te(d.getCurrentTime()+a,b,c,e)};f.Ff=function(a,b){xq(this.app,!0,this.playerType);this.app.Te(a,b,void 0,this.playerType)};f.Jl=function(){Iq(this.app,this.playerType)};function SY(a){this.app=a;Bs.call(this,a.kc)}B(SY,Bs);SY.prototype.getAdState=function(){return-1};SY.prototype.subscribe=function(a,b,c){return SY.I.subscribe.call(this,a,b,c)};function TY(a,b,c){this.A=a;this.j=b||"";this.k=c||null;this.o=!1}function UY(a,b,c){var d;if(d=vx("grc",a.j))xx(a.j),d=!0;if(d){var e=a.j;d=xx(e).span;e=sx(e);"grc"in e&&(d[b]=(c||z())-e.grc);a.A.experiments.k&&!vx(b,a.j)&&rx(b,c)}else vx(b,a.j)||(rx(b,c,a.j),a.A.experiments.k&&"new_playback"==a.j&&rx(b,c))}TY.prototype.info=function(a,b){wx(a,b,this.j)};
function VY(a){var b=a.A;if(!b.V||"detailpage"!=b.ca&&"leanback"!=b.ca&&("embedded"!=b.ca||!b.Hh&&!b.experiments.D)||a.o)return NaN;a.o=!0;Cf("TIMING_ACTION")||Af("TIMING_ACTION",a.A.ja);if(a.k){var b=a.k.A,c;for(c in b)rx(c,b[c],a.j);c=a.k.o;for(var d in c)wx(d,c[d],a.j)}if(d=lh("visibilityState",document)){c=-1;switch(d){case "hidden":c=0;break;case "visible":c=1;break;case "prerender":c=2;break;case "unloaded":c=3}wx("yt_vis",c,a.j)}wx("yt_pt","html5",a.j);if(vx("_start",a.j))return d=ux(a.j),
a.A.experiments.k&&"new_playback"==a.j&&(a.j="",a.o=!1,VY(a),a.j="new_playback"),d;a.k&&(a=a.k,a.A={},a.o={});return NaN}og("hidden",window.document);function WY(a,b){a=!!a;q("_lactCookie",a,window);if(null==r("_lact",window)){if(a&&b){var c;c=ek.get("ACTIVITY","-1");q("_lact",parseInt(c,10),window)}else q("_lact",-1,window),vr();P(document,"keypress",vr);P(document,"mousedown",vr);P(document,"mouseup",vr)}}function vr(){var a=r("_lact",window);null==a&&(WY(),a=r("_lact",window));var b=z();q("_lact",b,window);r("_lactCookie",window)&&1E3<=b-a&&fk("ACTIVITY",""+b)}function XY(){var a=r("_lact",window);return null==a?-1:Math.max(z()-a,0)};var YY={zJ:"0",CJ:"1",CG:"2",tJ:"3"};var ZY={VJ:"red",WHITE:"white",LH:"blue"};function $Y(a){this.experimentIds=(a||"").split(",");var b={};E(this.experimentIds,function(a){b[a]=!0});this.G=!!b["913424"];this.B=!!b["932250"];this.na=!!b["945066"];this.D=!!b["945069"];this.O=!!b["945073"];this.ma=!!b["945074"];this.U=!!b["945089"];this.Ra=!!b["945090"];this.ja=!!b["934048"];this.N=!!b["945091"];this.la=!!b["945093"];this.ia=!!b["945094"];this.V=!!b["927845"];this.A=!!b["936926"];this.F=!!b["913430"];this.ha=!!b["927877"];this.o=!!b["913436"]||!!b["934933"]||!!b["934934"]||!!b["934936"]||
!!b["934937"]||!!b["934938"]||!!b["934939"]||!!b["934941"]||!!b["934942"]||!!b["934943"]||!!b["934944"]||!!b["934945"]||!!b["934946"]||!!b["934947"]||!!b["934948"]||!!b["934949"]||!!b["934950"]||!!b["934951"]||!!b["934952"]||!!b["934953"]||!!b["934954"]||!!b["913444"]||!!b["937225"]||!!b["937226"]||!!b["948904"]||!!b["948905"]||!!b["948906"]||!!b["948907"]||!!b["948908"]||!!b["948909"]||!!b["948910"]||!!b["948911"]||!!b["948912"]||!!b["948913"];this.j=!!b["934947"]||!!b["913444"]||!!b["937226"]||
!!b["934953"]||!!b["934954"]||!!b["948904"]||!!b["948905"]||!!b["948906"]||!!b["948907"]||!!b["948908"]||!!b["948909"]||!!b["948910"]||!!b["948911"]||!!b["948912"]||!!b["948913"];this.K=!!b["953500"];this.da=!!b["941004"];this.oa=!!b["951502"];this.spherical=!!b["951503"];this.C=!!b["951506"];this.W=!!b["930676"]||!!b["930677"];this.Ga=!!b["943603"]||!!b["943604"]||!!b["943605"]||!!b["943606"]||!!b["943607"]||!!b["943610"]||!!b["900718"];this.ov=!!b["943610"];this.rk=!!b["943605"];this.pv=!!b["943606"];
this.R=!!b["909722"];this.P=!!b["939977"]||!!b["930678"];this.H=!!b["957105"];this.J=!!b["959800"];this.$=!!b["937222"];this.X=!!b["939945"];this.k=!!b["922317"]};var aZ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},bZ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},cZ="blogger books docs google-live play picasaweb".split(" ");
function dZ(a){Q.call(this);a=Vb(a);this.A={};this.experiments=new $Y(a.fexp);this.oa=a.forced_experiments||null;this.origin=nI(this.origin,a.origin);this.F=nI("",a.loaderUrl);var b=document.location.toString();this.Xa=(this.G=!!b&&-1!=b.search(of))?nI("",a.loaderUrl):document.location.toString();"adunit"==a.el?Qf(this.F)?this.ca="adunit":this.ca="embedded":this.ca=a.el||this.ca;WY("detailpage"==this.ca,a.autonav);var b=null,c=a.ps;!c||H(cZ,c)&&!this.xb()||(b=c);this.k=b;switch(this.ca){case "adunit":this.Go=
!1;break;case "detailpage":this.mc=!0;break;case "profilepage":this.qg=!0}switch(this.k){case "blazer":this.mc=this.Vh=this.autoplay=!1;this.V=!0;break;case "blogger":this.Ve=this.mc=this.yc=this.nc=this.bf=this.he=!1;this.Nc="bl";break;case "books":this.yc=this.nc=this.bf=this.he=!1;this.mc=!0;this.Ve=!1;this.Nc="gb";break;case "docs":this.Ve=this.mc=this.yc=this.nc=this.bf=this.he=!1;this.Nc="gd";break;case "google-live":this.Ve=this.mc=this.yc=this.nc=this.bf=this.he=!1;this.Nc="gl";break;case "play":this.mc=
this.yc=!1;this.Nc="gp";break;case "native":this.Vh=!1;break;case "picasaweb":this.Ve=this.mc=this.yc=this.nc=this.bf=this.he=!1;this.Nc="pw";break;case "touch":this.Vh=!1}this.lc=this.xb()&&H(cZ,this.k);this.o={};this.o.c="web";this.o.cver="html5";this.o.cplayer="UNIPLAYER";this.J=!(!Ot().defaultPlaybackRate||Oc&&!Vr("chrome")||Sh||Rh||Vr("android")||Vr("silk"));a.use_media_volume?b=!1:(b=Ot(),c=b.muted,b.muted=!c,b=b.muted!=c);this.Ja=b;this.gb=Th;this.Fb=(Sh||Rh||Vh)&&"blazer"!=this.k&&!UD(this);
this.yk=kI("adunit"!=this.ca&&"detailpage"!=this.ca&&!this.lc,a.showinfo);this.isMobile=kI("blazer"==this.k,a.is_html5_mobile_device);this.H=kI(!1,a.playsinline);b=this.isMobile&&Ht&&2.3>=Gt;c=Rh&&!this.H||!b&&kI("native"==this.k,a.use_native_controls)?"3":"1";this.j="0"!=a.controls?c:"0";this.Mc=kI("blazer"==this.k||"touch"==this.k,a.use_tablet_controls);this.ia="1"!=this.j?"0":this.Mc?"blazer"==this.k?"3":"1":lI("2",a.autohide,YY);this.color=lI("red",a.color,ZY);this.ua="3"==this.j||kI(!1,a.modestbranding)&&
"red"==this.color;if(c=kI(!1,a.nologo))var c=this.G?this.F:document.location.toString(),d=!!c&&-1!=c.search(wf),c=Of(c)||d;this.vb=c;c=!this.ua&&"1"==this.j;this.ub="embedded"==this.ca&&!this.yk&&!this.lc&&!c&&!0;this.Wb=this.hb=b;this.B=!Rh;this.na=this.G||!1;if(this.experiments.W)b="detailpage"!=this.ca?this.Xa.substring(0,128):"";else if(b=nI("",a.eurl),"detailpage"==this.ca||"unknown"==b||"undefined"==b)b="";this.D=b;this.ma=!!a.disableCast;this.wa=a.videostats_playback_base_url&&a.videostats_playback_base_url.split("/")[2];
b=kI(this.mg,a.fs);this.mg="detailpage"==this.ca&&"blazer"==this.k?b:b&&Bh();this.Wa=nI(this.Wa,a.authuser);this.autoplay=kI(this.autoplay,a.autoplay);this.Jk=kI(this.Jk,a.autoplayoverride);this.K=nI(this.K,a.content_v);this.zk=kI(this.zk,a.disablekb);this.gi=kI(this.gi,a.edu_mode);this.O=nI(this.O,a.framer);this.da=lI(this.da,a.iv_load_policy,Pz);this.N=nI(this.N,a.hl);this.So=kI(this.So,a.bwlogging);this.zd=kI(this.zd,a.player_wide);this.Xh=kI(this.Xh,a.privembed);this.U=mI(this.U,a.live_chunk_readahead||
a.hls_live_chunk_readahead);this.Uo=kI(this.Uo,a.loop);this.To=kI(this.To,a.on3g);this.pageId=nI(this.pageId,a.pageid);this.Ik=rI(this.Ik,a.vq);this.gk=nI(this.gk,a.playerapiid);this.xa=nI(this.xa,a.cr);this.nc=kI(this.nc,a.logwatch);this.qk=kI(this.qk,a.canplaylive);this.yc=kI(this.yc,a.rel);this.mc=kI(this.mc,a.enablesizebutton);this.ci=kI(this.ci,a.ss);this.theme=nI(this.theme,a.theme);this.xb()&&(this.tk=kI(this.tk,a.retryneterr));"3"==this.j&&(this.da=3);this.useSsl=kI(this.useSsl,a.ssl);if(this.Zh=
kI(this.Zh,a.ssl_stream))this.useSsl=!0;this.Mc&&(this.theme="dark");b=this.pg;if(c=a.video_container_override)d=c.split("x"),2==d.length&&(c=parseInt(d[0],10),d=parseInt(d[1],10),b=isNaN(c)||isNaN(d)||0>=c*d?b:new I(c,d));this.pg=b;this.wd=nI(this.wd,a.attrib);this.Ue=nI(this.Ue,a.sk);this.protocol=this.useSsl?"https":"http";this.fk=kI("0"!=this.j,a.store_user_volume);this.Dd=kI(this.Dd,a.use_media_volume);if(b=a.BASE_YT_URL)if(b=(b=b&&b.match(mf))?b[0]:"")this.Ab=b;(b=a.gdatabaseurl)&&b&&-1!=b.search(pf)&&
(this.Fo=b);eZ(this,a);b=fZ(this);c=!0;this.isMobile&&(c=!1);Vr("nintendo wiiu")&&(c=!1);this.Jk&&(c=!0);this.Hh=b&&c;this.A=a}B(dZ,Q);var gZ={MH:"cbrand",OH:"cbr",PH:"cbrver",OI:"c",RI:"cver",QI:"cplayer",mJ:"cmodel",vJ:"cnetwork",FJ:"cos",GJ:"cosver",HJ:"cplatform"};f=dZ.prototype;f.xf=null;f.mg=!0;f.Wa="";f.autoplay=!1;f.Jk=!1;f.Ab="/";f.Fo="//gdata.youtube.com/";f.zk=!1;f.gi=!1;f.Vh=!0;f.ca="detailpage";f.So=!1;f.Za=!1;f.hs=!1;f.zd=!1;f.he=!0;f.Xh=!1;f.bf=!0;f.jg=!1;f.Uo=!1;f.Ik=ut;f.gk="";
f.To=!1;f.pageId="";f.tk=!1;f.Hh=!1;f.nc=!1;f.qk=!0;f.fk=!0;f.Dd=!1;f.Go=!0;f.yc=!0;f.qg=!1;f.mc=!1;f.Ve=!0;f.ci=!1;f.useSsl=!1;f.Zh=!1;f.ee=null;f.pg=null;f.Kr=null;f.jf=null;f.tb=null;f.Nc="yt";function Uq(a,b){a.la=b.get("d",a.la);a.W=b.get("f",a.W)}
function eZ(a,b){a.C=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&c in aZ&&c in bZ?bZ[c]+"_"+aZ[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);d&&5==d.length&&(d=d[3],d=6==d||7==d||8==d||10==d,a.xb()||d)&&(a.C=c,a.A.adformat=b.adformat,d||(a.ca="adunit"))}a.xf=(b&&b.adpings?mj(b.adpings):null)||a.xf;c=b.agcid;a.Fa=c;a.A.agcid=c;c=b.feature;a.P=c;a.A.feature=c;c=b.referrer;a.referrer=c;a.A.referrer=c;a.searchQuery=b.q;for(var e in gZ)c=gZ[e],d=b[c],void 0!=d&&(a.o[c]=d);a.nc=kI(a.nc,b.logwatch);
a.userAge=mI(a.userAge,b.user_age);a.R=nI(a.R,b.user_display_image);Pf(a.R)||(a.R="");a.$=nI(a.$,b.user_display_name);a.Ba=nI(a.Ba,b.user_gender);a.X=nI(a.X,b.eventid);a.ja=nI(a.ja,b.csi_page_type);a.V=kI(a.V,b.enablecsi)}
function hZ(a,b,c){switch(b.U){case 38:return a=b.videoId.indexOf(":"),Ee("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.kz});case 30:return c="//docs.google.com/",a.Ab!=dZ.prototype.Ab&&(c=a.Ab),Ee(c+"get_video_info",{docid:b.videoId,authuser:b.Wa,authkey:b.wd,eurl:a.D});case 33:return Ee("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});default:var d={html5:"1",video_id:b.videoId,cpn:b.ya,eurl:a.D,ps:a.k,el:a.ca,hl:a.N,list:b.playlistId,
agcid:a.Fa,sts:16444,lact:iZ(a)?XY():"-1"};a.oa&&(d.forced_experiments=a.oa);b.F?d.vvt=b.F:b.C&&(d.access_token=b.C);a.C&&(d.adformat=a.C);b.oa&&(d.iv_load_policy=b.oa);b.xa&&(d.itct=b.xa);b.kg&&(d.autoplay="1");b.Yl&&(d.noiba="1");b.Zl&&(d.mdx="1");b.Nh&&(d.ytrcc=b.Nh);b.$l&&(d.utpsa="1");b.qq&&(d.is_fling="1");c.width&&(d.width=c.width);c.height&&(d.height=c.height);b.na&&(d.ypc_preview="1");b.yd&&(d.splay="1");a.K&&(d.content_v=a.K);b.Xl&&(d.livemonitor=1);a.Wa&&(d.authuser=a.Wa);a.pageId&&(d.pageid=
a.pageId);a.X&&(d.ei=a.X);a.Zh&&(d.ssl_stream="1");a.G&&(d.iframe="1");b.Lh&&(d.tst=b.Lh);b.contentCheckOk&&(d.cco="1");b.racyCheckOk&&(d.rco="1");qa(d,a.o);return Ee(a.Ab+"get_video_info",d)}}function jZ(a){return a.gi?"//s.youtubeeducation.com/":a.bf?a.wa?"//"+a.wa+"/":"//s.youtube.com/":"//video.google.com/"}function kZ(a){return a.referrer?a.referrer.slice(0,128):""}f.getVideoUrl=function(a,b,c){return SE(this,a.videoId,a.playlistId,b,c)};
function lZ(a){return"www.youtube-nocookie.com"==window.location.host||a.gi?"www.youtube.com":window.location.host}function SE(a,b,c,d,e){b={v:b,list:c};d&&qa(b,d);a=Ee(a.protocol+"://"+lZ(a)+"/watch",b);if(e){d="";d="!"=="#".charAt(1)?"#".substr(0,2):"#";b="#";"#"==b.charAt(0)&&(b="!"==b.charAt(1)?b.substr(2):b.substr(1));b=mj(b);for(var g in e)b[g]=e[g];e=d+Ce(b);a=a+e}return a}
function mZ(a,b){if("play"!=a.k)return"https://support.google.com/youtube/?p=report_playback";var c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.G,v:b.videoId,p:"movies_playback"};b.k&&(c.fmt=b.k.id);b.ya&&(c.cpn=b.ya);b.U&&(c.partnerid=b.U);return Ee("//support.google.com/googleplay/",c)}
function nZ(a){var b={};if(!a.tb)return b;a.tb.webkitDecodedFrameCount&&(b.hmewdfc=a.tb.webkitDecodedFrameCount,b.hmewdrop=a.tb.webkitDroppedFrameCount,b.hmewvdbc=a.tb.webkitVideoDecodedByteCount,b.hmewadbc=a.tb.webkitAudioDecodedByteCount);a.tb.mozParsedFrames&&(b.hmempf=a.tb.mozParsedFrames,b.hmemdf=a.tb.mozDecodedFrames,b.hmempresented=a.tb.mozPresentedFrames,b.hmempainted=a.tb.mozPaintedFrames,b.hmempaintdelay=a.tb.mozPaintDelay);return b}function VE(){return XY()}
function iZ(a){return a.experiments.R?"detailpage"==a.ca||"leanback"==a.ca:!0}function gF(a){return"leanback"==a.ca||a.lc||!a.yc&&!a.qg?!1:!0}function fZ(a){return a.autoplay||"detailpage"==a.ca}function lr(a){return"detailpage"!=a.ca&&"embedded"!=a.ca&&"profilepage"!=a.ca?!1:!0}f.xb=function(){var a;a=document.location.toString();var b=(a=!!a&&-1!=a.search(nf))&&!this.G;return a&&this.G&&Of(this.F)||b};
function Fq(a){var b=null!=a.F&&0==a.F.search("^https?://www.youtube.com");return"detailpage"==a.ca||"profilepage"==a.ca||b}function UD(a){return Xr()||"tv"==a.o.cplatform}f.L=function(){this.tb=null;dZ.I.L.call(this)};function oZ(a,b){this.j=a;this.k=b;this.o=1}function pZ(a,b,c,d){d/=a.o;var e=vG(a.j)+1/wG(a.j),g;g=Math.max(.9*(d-3),uG(a.j)+8192*e);c=g/e/(b+c);c=Math.min(c,d);c=Math.max(a.k.J,Math.min(a.k.O,c));a=Math.max(a.k.D,Math.ceil(a.k.J*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function qZ(a){var b=wG(a.j);a=uG(a.j)+1048576*vG(a.j);return b*Math.min(1,1048576/(b*a))}function rZ(a){var b=qZ(a)/a.o;b<a.k.F&&(b=Math.min(a.k.F,b+a.k.N));return b};function sZ(a,b,c){this.j=a;this.video=b;this.reason=c};function tZ(a,b,c,d){this.N=a;this.P=b;this.F=c;this.D=d;this.o=this.G=this.j=null;this.B="i";this.J=-1;this.C=this.A=null;this.k=[];this.H=this.K=0;this.O=null}function uZ(a,b,c){"m"==c&&wt(a.j)&&!wt(b)&&(c="a");if("m"==c&&wt(b))return a.B=c,vZ(a,b),wZ(a),a.o=xZ(a),new sZ(yZ(a),a.o,c);var d=a.j.equals(b);if("m"==a.B&&wt(a.j)&&d)return null;"r"!=c||d||(a.J=-1);vZ(a,b);b=xZ(a);if("r"==c&&b==a.o){if(d)return null;a.o=b;return new sZ(yZ(a),b,c)}a.B=c;return null}
function zZ(a,b){AZ(a);a.O=b;a.H=z();a.J=-1;vZ(a,a.j)}function AZ(a){return!!a.H&&9E4>=z()-a.H}function yZ(a){BZ(a);return a.A}function xZ(a){BZ(a);return a.C}function CZ(a){var b=a.B;a.B="a";a.J=z();return new sZ(a.G,a.o,b)}
function BZ(a){if(wt(a.j)||!(8E3>z()-a.J)){a.H&&!AZ(a)&&(a.H=0,vZ(a,a.j));wZ(a);var b=rZ(a.N);if(wt(a.j))a.C=a.F.j[a.k[a.k.length-1].id];else{for(var c=Math.min(a.K,a.k.length-1),d=b/1.05-a.A.info.pa;0<c&&!(a.k[c].pa<=d);c--);for(b=b/1.15-a.A.info.pa;c<a.k.length-1&&!(a.k[c+1].pa>=b);c++);a.K=c;a.C=a.F.j[a.k[c].id]}}}
function vZ(a,b){a.j=b;var c=a.D.k;if(!wt(a.j)&&(c=bb(c,function(a){return a.pa>this.P.pa?!1:!this.F.j[a.id].B},a),AZ(a))){var c=bb(c,function(a){return a.id!=this.O.id},a),d=bb(c,function(a){return"140"==a.id||"134"==a.id||"243"==a.id});d.length&&(c=d)}c.length||(c=a.D.k);c=bb(c,a.j.A,a.j);c.length||(c=[a.D.k[0]]);c.sort(function(a,b){return a.pa-b.pa});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.video.width>g.video.width?(mb(c,d),d--):1.15*e.pa>g.pa&&(mb(c,d-1),d--)}a.k=c}
function DZ(a){var b=G(a.D.j,function(a){return!!a.Fe&&a.Fe.isDefault}),b=b||a.D.j[0];a.A=a.F.j[b.id];wZ(a)}function wZ(a){if(!a.A.info.Fe&&(a.A=a.F.j[a.D.j[0].id],1<a.D.j.length)){var b=!1;if(wt(a.j))b=240>a.j.j;else{for(b=0;b+1<a.k.length&&"tiny"==a.k[b].video.quality;)b++;var c=rZ(a.N)/1.15,b=a.A.info.pa+a.k[b].pa>c}b&&(a.A=a.F.j[a.D.j[1].id])}}
function EZ(a){var b=rZ(a.N)/1.05-a.A.info.pa,c=hb(a.k,function(a){return this.P.A&&this.P.A<rt[a.video.quality]?!1:a.pa<b},a);0>c&&(c=0);a.K=c;a.C=a.F.j[a.k[c].id]};function FZ(){this.j=this.k=!1}FZ.prototype.start=function(){this.k=!0};function GZ(a,b){this.G=a;this.o=b;this.pendingRequests_=[];this.j=[];this.A=this.k=null;this.B=0;this.pa=b.info.pa;this.D=this.F=!1;this.C=new FZ}function HZ(a,b){a.pendingRequests_.push(b);a.k=Ya(b.info.j);a.B+=fH(b.info)}function IZ(a){for(;a.pendingRequests_.length&&5==a.pendingRequests_[0].state;){var b=a.pendingRequests_.shift();a.B-=fH(b.info);a.B+=Ya(b.B).buffer.byteLength;E(b.B,a.J,a)}}
GZ.prototype.J=function(a){if(4==a.info.type){var b=a.info.j.Ds(a);a.info==this.k&&(this.k=Ya(b).info);E(b,this.J,this)}else 3==a.info.type&&this.j.push(a)};function JZ(a){var b=iH(a.j[0]);return b.getInt32(0)>b.byteLength&&1==a.j.length}
function KZ(a,b){if(a.F)return a.j[0].aa;var c=a.o.info.k,d=a.o.qi();if(a.j[0].info.B>=b)return null;var e;for(e=1;e<a.j.length;e++){var g=a.j[e].buffer!=a.j[e-1].buffer;if(a.j[e].info.B>b||g||a.G.K)break}e--;var g=a.j[e].aa.end,h=a.j[e].info.D-b;if(d&&c&&0<=a.G.G&&h>a.G.G){c=Math.floor((b-a.j[e].info.B)/a.j[e].info.G*a.j[e].info.k);if(0==c)return null;g=a.j[e].aa.start+c-1}return new JG(a.j[0].j?0:a.j[0].aa.start,g)}
function LZ(a,b){for(var c;a.j.length;){if(a.j[0].aa.end>b.end){var d;c=a.j[0];var e=b.end-a.j[0].aa.start+1,e=Math.min(e,c.info.k),g=new $G(c.info.type,c.info.j,c.info.aa,c.info.A,c.info.startTime,c.info.duration,c.info.o,e,!1);d=LG(c.aa.start,e);g=new CH(g,c.buffer,d,c.j);e=new $G(c.info.type,c.info.j,c.info.aa,c.info.A,c.info.startTime,c.info.duration,c.info.o+e,c.info.k-e,c.info.F);d=new JG(d.end+1,c.aa.end);d=[g,new CH(e,c.buffer,d,!1)];c=d[0];a.j[0]=d[1]}else c=a.j.shift();d=a;g=c.info;d.A=
g;d.F&&d.A.C&&(d.F=!1);d.pa=Math.max(d.pa,g.j.info.pa);if(c.aa.end==b.end)break}a.j.length&&c.buffer==a.j[0].buffer||(a.B-=c.buffer.byteLength)}function MZ(a,b){var c=NZ(a,b);if(0<=c)return c;a.k=a.o.Ii(b).j[0];OZ(a)&&(a.A=null);return a.k.startTime}
function PZ(a,b){QZ(a);if(a.o.info.video&&a.A&&!a.A.C&&b){var c=fb(a.j,function(a){return a.info.C});a.j=sb(a.j,0,c+1);a.F=!0}else a.j=[];if(a.j.length)for(a.B=a.j[0].buffer.byteLength,c=1;c<a.j.length;c++)a.j[c].buffer!=a.j[c-1].buffer&&(a.B+=a.j[c].buffer.byteLength);else a.B=0}function RZ(a){a.C.k||a.C.start();PZ(a,!1);OZ(a)&&(a.A=null)}
function SZ(a,b){for(var c=0;c<a.pendingRequests_.length&&b!==a.pendingRequests_[c];c++);if(c==a.pendingRequests_.length)b.dispose();else{for(;c<a.pendingRequests_.length;)a.H(a.pendingRequests_.pop());3==b.info.j[0].type?(c=b.info.j[0],c=new $G(c.type,c.j,c.aa,c.A,c.startTime,0,c.o,0,!1),a.k=c):a.k=null}}function TZ(a){return db(a.j,function(a){return a.info.C})}function OZ(a){return!!a.A&&a.A.F}
function UZ(a){var b=[];a.A&&b.push(a.A);E(a.j,function(a){b.push(a.info)});E(a.pendingRequests_,function(a){E(a.info.j,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.k&&a.k!=Ya(b)&&b.push(a.k);return b}function VZ(a){if(!a.k||!a.k.k)return!1;a=UZ(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].B-a[b-1].D)))return!1;return!0}
function NZ(a,b){if(VZ(a)){var c;t:{c=UZ(a);for(var d=0;d<c.length;d++)if(c[d].B<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break t}c=null}if(c)return c.startTime}return NaN}function WZ(a){return db(a.pendingRequests_,function(a){return 3<=a.state})}function XZ(a){return!(!a.k||!a.o.Qc()||a.k.j==a.o)}function YZ(a){return XZ(a)&&a.k.j.info.pa<a.o.info.pa}GZ.prototype.H=function(a){a.dispose();this.B-=fH(a.info)};function QZ(a){E(a.pendingRequests_,a.H,a);a.pendingRequests_=[];a.k=null}
function ZZ(a){return!!a.k&&a.k.A<a.o.index.Pg()};function $Z(a,b,c){this.H=a;this.info=b;this.timing=c;this.state=1;this.j=this.B=null;this.J=NaN;this.D=this.A=0;this.o=NaN;this.C=this.k=this.F=null;this.G=0}$Z.k=!1;$Z.j=1E4;f=$Z.prototype;f.getErrorCode=function(){return this.C};function a_(a){var b;b=a.timing;b={rt:((z()-b.k)/1E3).toFixed(2),lb:b.j,pt:(b.K/1E3).toFixed(2),pb:b.J};b.shost=oj(a.k?yD(a.k):"")||"";a.G&&(b.rc=a.G.toString());return b}
f.start=function(){var a=1==this.state,b=6==this.state;1==this.state||4==this.state||b&&b_(this);c_(this,2);if(b){if(2>this.A){this.A++;a=$Z.j*(.5+Math.random());1==this.A&&(a=2E3);M(x(this.nm,this),a);return}b=this.info.o;if(!(this.J<=b.o)){b.k++;b.o=YG-1;var c=EG(b.j),d=new K(c);d.mb.match("\\.googlevideo\\.com$")?(Le(d,"redirector.googlevideo.com"),c=d.toString()):d.mb.match("r[1-9].*\\.c\\.youtube\\.com$")?(Le(d,"www.youtube.com"),c=d.toString()):c=Rf(c);b.j=new CG(c);b.j.set("cmo",encodeURIComponent("pf="+
b.k))}this.A=0}a?this.nm():M(x(this.nm,this),0)};
f.nm=function(){if(!this.ea()){this.J=YG++;this.k=zD(this.info);this.A&&this.k.set("playerretry",this.A.toString());var a=yD(this.k);this.j=new XMLHttpRequest;try{this.j.open("GET",a)}catch(b){this.C="net.ssl";c_(this,6);return}this.j.responseType="arraybuffer";this.j.withCredentials=!0;a=x(this.Pw,this);this.j.addEventListener("load",a,!1);this.j.addEventListener("error",a,!1);this.j.send();this.D=0;a=this.timing;a.k=z();a.C=a.k;a.j=0;a.G=!1;a.H=!1;a.B=0;a.F=xG(a.o);d_(a);a.K=a.D-a.k;this.j.addEventListener("progress",
x(this.Qw,this),!1);0<this.H.k&&(this.o=M(x(this.$o,this),this.H.k));this.k.get("itag");this.k.get("range");Math.round(this.info.j[0].B);Math.round(Ya(this.info.j).D);z()}};f.Qw=function(a){if(!this.ea()){this.j&&(this.G=this.j.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.k&&4E12>c?c:z();20>c-b.C||e_(b,c,a);b=this.timing;b.j>b.N&&8192<b.j&&3>this.state&&c_(this,3)}};
f.Pw=function(a){var b=this.j;if(!this.ea()&&a.target==b){this.o&&(N(this.o),this.o=NaN);this.G=b.status;a=!1;400<=b.status?(a=!0,this.C="net.badstatus"):null==b.response&&(a=!0,this.C="net.connect");if(!a){var b=b.response,c;t:{if(2048>b.byteLength&&(c=String.fromCharCode.apply(String,new Uint8Array(b)))&&-1!=c.search(uf))break t;c=""}if(c){var b=this.info.o,d=this.k;d.j===b.j&&(b.j=WG(d,c));c_(this,4)}else if(this.info.aa&&b.byteLength!=this.info.aa.length)a=!0,this.C="fmt.unparseable";else{c=this.info.j;
if(1==c.length&&!c[0].aa){var d=c[0],e=LG(0,b.byteLength),d=new $G(d.type,d.j,e,d.A,d.startTime,d.duration,d.o,e.length,d.F);c[0]=d}for(var d=[],e=0,g=!1,h=!1,k=0;k<c.length;k++){var l=c[k],p=b,t=LG(e,l.k),v=!1;if(1==l.type)b.slice?p=b.slice(e,e+l.k):(g=new Uint8Array(b,e,e+l.k),p=(new Uint8Array(g)).buffer),t=LG(0,l.k),g=!0;else if(3==l.type||4==l.type)v=g&&!h,h=!0;d.push(new CH(l,p,t,v));e+=l.k}this.B=d;c=this.timing;d=z();b=b.byteLength;c.G||(c.G=!0,d=d>c.k&&4E12>d?d:z(),e_(c,d,b),e=(d-c.k)/1E3,
!c.H&&8192<=c.j&&rG(c.o,e,b),8192<=c.j&&(e=c.o,h=c.B,b=Math.max(b,8192),e.o.k(1,h/b),yG(e)),tG(c.o,d-c.k,c.j),c.A&&(c.A=!1));z();c_(this,5)}}a&&(b_(this),c_(this,6))}};function b_(a){if(2>a.A)a=!0;else{var b=a.info.o;a=!(a.J>b.o&&1<=b.k)}return a}function c_(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.A&&(c.A=!1)}a.F&&a.F(a)}
f.$o=function(){this.o=NaN;if(!this.ea()){var a=z(),b=!1;if(8192<=this.timing.j){var c=this.timing.D;d_(this.timing);this.timing.D-c>=.8*this.H.k?(this.D++,b=5<=this.D):this.D=0}else b=this.timing,b=5E3<a-(b.k+1E3*b.F.delay);if(b){b=this.timing;a=a>b.k&&4E12>a?a:z();b.B+=(a-b.C)/1E3;var c=b.o,d=b.J,e=b.B,d=Math.max(d,8192);c.o.k(1,e/d);yG(c);tG(b.o,a-b.k,b.j);f_(this);this.C="net.timeout";c_(this,6)}else this.o=M(x(this.$o,this),this.H.k)}};f.ea=function(){return-1==this.state};
f.dispose=function(){aH(this.info.j[0])&&5!=this.state&&(this.info.j[0].j.o=!1);c_(this,-1);this.F=this.B=null;f_(this);N(this.o);this.o=NaN};function f_(a){if(a.j){var b=a.j;a.j=null;b.abort()}a=a.timing;a.A&&(a.A=!1)};function g_(a,b,c){this.o=a;this.J=b;this.N=c;this.j=this.C=this.k=NaN;this.H=this.G=this.A=!1;this.B=0;this.D=this.K=NaN}function e_(a,b,c){if(a.A){var d=(b-a.C)/1E3,e=c-a.j;0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&rG(a.o,.05,e)):rG(a.o,d,e),a.H=!0)}else 8192<=c&&(d=a.o,d.A.k(1,(b-a.k)/1E3),yG(d),a.A=!0);a.C=b;a.j=c}function d_(a){var b=a.J-a.j,b=1E3*(b*a.F.tailDelay+b/a.F.byterate),c=z(),b=8192<=a.j?b+c:b+Math.max(c,a.k+1E3*a.F.delay);a.D=b};function h_(a,b,c,d){S.call(this);this.F=a;this.D=b;this.C=c;this.k=this.o=null;this.H=new oZ(a,b);this.j=null;this.B=new tZ(this.H,b,this.C,d);this.A=this.ia=this.da=this.V=this.W=NaN;this.K=!1;this.O=NaN;this.$=0;this.G=!1;this.ja={};this.R="";this.ha=!1;this.U=this.J=0}B(h_,S);h_.B=!1;h_.j=2/24;h_.k=1E3;h_.A=1E4;h_.o=.2;f=h_.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.B;d.B="i";vZ(d,b);DZ(d);d.G=d.A;EZ(d);d.o=d.C;b=CZ(d);this.o=new GZ(this.D,b.j);this.k=new GZ(this.D,b.video);this.publish("videoformatchange",b);this.A=a;c?(this.G=!0,i_(this)):j_(this)};function j_(a){0==a.A&&(a.o.o.o||k_(a,a.o,!0),a.k.o.o||k_(a,a.k,!0));a.seek(a.A);l_(a,"gv")}f.resume=function(){this.G&&(this.G=!1)};
f.HA=function(a){this.resume();this.j=a;cu(a)&&(a.j.addEventListener("updateend",x(this.tc,this),!1),a.k.addEventListener("updateend",x(this.tc,this),!1));l_(this,"msa");this.X&&this.N&&Hx();this.tc();this.da=Ef(x(this.tc,this),h_.A)};function m_(a){a.j&&a.j.j&&a.j.j.removeEventListener&&(a.j.j.removeEventListener("updateend",x(a.tc,a),!1),a.j.k.removeEventListener("updateend",x(a.tc,a),!1));a.j=null;a.G=!0;a.o&&(PZ(a.k,!1),PZ(a.o,!1))}function n_(a){a.j&&au(a.j)&&m_(a)}
function o_(a,b,c){if(!b.C.k||!c.remove)return!1;if(c.updating)return!0;if(!b.C.j&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.C.j=!0;b=b.C;b.k=!1;b.j=!1;a.publish("seekrequired");return!1}
function p_(a,b,c){if(a.G)return!1;if(!b.k){if(!b.o.Qc())return b.o.o||k_(a,b,!1),!1;MZ(b,a.A)}var d=b.pendingRequests_.length+c.pendingRequests_.length;(WZ(b)||WZ(c)||a.C.isLive)&&--d;if(2<=d+1)return!1;d=b.k;4==d.type&&d.j.Qc()&&(b.k=Ya(d.j.vi(d)),d=b.k);!d.F&&!d.j.Cg(d)||d.j.info.k&&4==d.type?a=!1:YZ(b)&&!a.D.o?a=!0:(!(c=d.F||b.B+c.B>a.D.j||!!(c.k&&!c.k.F&&c.k.D<d.D))&&(c=3==d.type)&&(d=d.D,b=q_(a,b,!0),wt(a.B.j)||(c=(z()-a.$)/1E3,b=Math.min(b,30+2*c)),c=d>a.A+b),a=c?!1:!0);return a}
function r_(a,b,c){if(!a.j||$t(a.j)||cu(a.j)){var d=a.A,e;e=a.H;c=pZ(e,b.o.info.pa,c.o.info.pa,0);e=uG(e.j)+c*vG(e.j)+c/wG(e.j);e=Math.max(e,e+5-c/b.o.info.pa);d=d+e;a=a.B;t:{a=!a.o||!a.C||a.o.info.pa>=a.C.info.pa?!1:a.C.info.video.width>1.6*a.o.info.video.width?!0:"r"==a.B;if(b.pendingRequests_.length){if(b.pendingRequests_[0].info.j[0].startTime<=d)break t;QZ(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].buffer==c.buffer||(b.B-=c.buffer.byteLength));
b.pendingRequests_.length?b.k=Ya(b.pendingRequests_[b.pendingRequests_.length-1].info.j):b.j.length?b.k=Ya(b.j).info:b.k=b.A;a&&b.k&&d<b.k.startTime&&(b.k=b.o.Ii(d,!0).j[0])}}}
function s_(a,b,c){p_(a,b,c);var d=b.k;if(b.k.j.Qc()){YZ(b)&&!a.D.o&&(r_(a,b,c),b.k||MZ(b,a.A));var d=b.k,e=d.D-a.A,g=!d.aa||0==d.k&&0==d.o?0:d.aa.length-(d.o+d.k);XZ(b)&&(YZ(b)||25>=e)&&0==g&&(g=d.startTime+h_.j,d.k&&(g+=d.duration),MZ(b,g),d=b.k);d.j.qi()?(c=pZ(a.H,d.j.info.pa,c.o.info.pa,e),e=XZ(b),c=QH(d.j,d,c),c.aa&&1<c.j.length&&(e?c=QH(d.j,d,c.j[0].k):(e=c.j[c.j.length-1],g=e.k/c.aa.length,!e.C&&.4>g&&(c=QH(d.j,d,c.aa.length-e.k)))),d=c):d=xD(d.j,d)}else d.j.qi()?(c=pZ(a.H,b.o.info.pa,c.o.info.pa,
0),d=QH(d.j,d,c)):d=xD(d.j,d);HZ(b,t_(a,d))}function t_(a,b){if(3==b.j[b.j.length-1].type){var c;t:{c=a.B;var d=b.j[0].j;if(d.info.video){if(c.o!=d){c.o=d;c=CZ(c);break t}}else c.G=d;c=null}c&&a.publish("videoformatchange",c)}c=fH(b);var d=a.F,e=a.H,g=Math.min(2.5,uG(e.j)),e=qZ(e);c=new $Z(a.D,b,new g_(d,c,c-g*e));d=x(a.nB,a);c.F=d;c.start();return c}
f.nB=function(a){if(!this.ea()&&3<=a.state){var b=a.info.j[0].j,c=!this.X&&b.info.video,d=!this.N&&b.info.k;4==a.state?(c?l_(this,"vrr"):d&&l_(this,"arr"),a.start()):5==a.state?(c?(this.X=a.k?yD(a.k):"",Jx()):d&&(this.N=a.k?yD(a.k):""),E(a.B,function(a){aH(a.info)&&a.info.j.Vp(a)}),eb(a.B,function(a){return DH(a)})&&!a.B[0].info.j.Hl()?this.tc():this.Xe(!0,"fmt.unparseable",a_(a))):3==a.state?(this.tc(),c&&Jx()):6==a.state&&b_(a)?(this.Xe(!1,a.getErrorCode(),a_(a)),(c=b.info.video&&0<a.A&&90&&!AZ(this.B))&&
zZ(this.B,b.info),6==a.state&&"net.timeout"==a.C||c?(SZ(b.info.video?this.k:this.o,a),this.tc()):a.start()):aH(a.info.j[0])?(b.B=!0,this.tc()):this.Xe(!0,"net.retryexhausted",a_(a))}};function u_(a){if(isNaN(a.W)){var b=x(a.tc,a);a.W=M(b,0)}}function i_(a){if(isNaN(a.V)){var b=x(function(){this.V=NaN;this.tc()},a);a.V=M(b,h_.k)}}
f.tc=function(){this.W=NaN;n_(this);if(this.j&&!bu(this.j))if(this.C.isLive)Infinity!=this.O&&(this.O=Infinity,this.j.Ze(Infinity));else if(!isFinite(this.O)){var a=Math.floor(Math.max(this.o.o.index.af(),this.k.o.index.af()));0<a&&(this.j.Ze(a),this.O=a)}if(!this.ea())if(a=this.C,z()-a.H>=a.C){if(3==this.C.o&&(this.Xe(!(3>this.C.k),this.C.getErrorCode(),{rc:this.C.K.toString()}),!(3>this.C.k)))return;a=this.C;if(3!=a.o||z()-a.G>=1E3*Math.pow(2,a.k))if(a=this.C,1!=a.o){var b;t:{var c=a.j;for(b in c){b=
c[b];break t}b=void 0}b=Ee(a.J,{start_seq:(b.index.Gb()+1).toString()});a.G=z();YH(a,b)}i_(this)}else if(this.C.isLive&&(ZZ(this.k)||ZZ(this.o))&&(b=v_(this),isNaN(b)||this.seek(b)),"prerender"==window.document.webkitVisibilityState)i_(this);else if(n_(this),IZ(this.k),IZ(this.o),this.o.o.o||(!this.G||zG(this.F)?j_(this):i_(this)),!this.j||o_(this,this.o,this.j.j)||o_(this,this.k,this.j.k)||((b=w_(this,this.k,this.j.k))&&!this.J&&(this.J=z(),l_(this,"vda"),this.U&&Jx()),a=Lr(this.j.k.buffered,this.A+
h_.j),isNaN(a)&&!OZ(this.k)&&this.j.j.buffered.length||(OZ(this.k)&&(a=NaN),a=w_(this,this.o,this.j.j,a),b|=a,a&&!this.U&&(this.U=z(),l_(this,"ada"),this.J&&Jx())),OZ(this.k)&&OZ(this.o)&&$t(this.j)&&!bu(this.j)&&(a=this.j,$t(a)&&a.o.endOfStream(),a=this.F,rq(xG(a)),a.k=z()),b&&!cu(this.j)&&u_(this)),x_(this,this.k,xZ(this.B)),x_(this,this.o,yZ(this.B)),this.k.o.B||this.o.o.B)this.Xe(!0,"net.retryexhausted");else{b=this.J?z()-this.J:0;if(this.ha||b>=this.D.H)p_(this,this.k,this.o)&&s_(this,this.k,
this.o),p_(this,this.o,this.k)&&s_(this,this.o,this.k);this.D.P&&this.R&&!this.G&&zG(this.F)&&(b=this.R,this.R="",a=oj(b),yj(b,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:x(this.Xe,this,!1,"pathprobe.net",{shost:a})}))}};
function w_(a,b,c,d){if(c.updating)return!0;var e=b.j.length?b.j[0]:null;if(!e)return!1;!b.A||b.A.C||bH(b.A,e.info)||(b.A=null,$t(a.j)&&c.abort(),c.j=null);var g;if(g=a.C.isLive){var h;b.j.length&&1==b.j[0].info.j.info.j&&0==b.j[0].info.o&&8<b.j[0].info.k&&3==b.j[0].info.type?(h=iH(b.j[0]),h=!!sH(h,0,1718909296)):h=!1;g=h}h=!(!b.G.K||!b.j.length||1!=b.j[0].info.j.info.j||0!=b.j[0].info.o)&&!a.C.B;if(g)c.j=null;else{if(g=h||!e.j)g=e.info.j.j,c.j==g?g=!1:(y_(a,c,g),c.j=g,a.publish("initsegment",c.j),
g=c.updating);if(g)return!0}g=q_(a,b,!1);g=a.A+g;0<=d&&(g=Math.min(g,d));d=KZ(b,g);if(!d)return!1;if(h){if(JZ(b))return!1;var k;t:{JZ(b);h=b.j[0];var l=iH(h);g=l.getInt32(0);if(g>l.byteLength){var p=b.j[1];if(p.aa.length+l.byteLength<g){k=null;break t}k=new Uint8Array(g);l=new Uint8Array(h.buffer,h.aa.start,h.aa.length);k.set(l);l=new Uint8Array(p.buffer,p.aa.start,g-h.aa.length);k.set(l,h.aa.length);l=new DataView(k.buffer)}var t=h.info.j.index.Zk(h.info.A);(l=rH(l,t))?(k?(LZ(b,h.aa),LZ(b,LG(p.aa.start,
g-h.aa.length))):LZ(b,LG(h.aa.start,g)),k=l):k=null}if(k)return y_(a,c,new Uint8Array(k)),!0}k=new Uint8Array(e.buffer,d.start,d.length);a.C.B&&3==e.info.type&&ha(c.timestampOffset)&&(p=0,p=a.D.R&&!b.D?-EH(e):-(EH(e)-e.info.startTime),Math.abs(c.timestampOffset-p)>h_.o&&(b.A&&b.A.A+1==e.info.A&&(p=Lr(c.buffered,b.A.startTime)-EH(e)),c.timestampOffset=p));if(!y_(a,c,k))return RZ(b),!0;a.C.B&&a.D.R&&!b.D||LZ(b,d);b.D||(b.D=!0);e.j&&(c.j=e.info.j.j,a.publish("initsegment",c.j));return!0}
function y_(a,b,c){if(cu(a.j))try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!au(a.j)}function q_(a,b,c){var d;d=wt(a.B.j)&&!a.D.o?b.o.info.k?10485760:62914560:b.o.info.k?a.D.B:a.D.C;c&&(d+=a.D.j);return d/(wt(a.B.j)?b.k?b.k.j.info.pa:b.o.info.pa:b.pa)}function v_(a){if(a.C.isLive){var b=Math.max(a.k.o.index.Pg(),a.k.o.index.Gb()-a.D.liveChunkReadahead);return a.k.o.index.zf(b)}return Math.floor(Math.min(a.o.o.index.af(),a.k.o.index.af()))}
f.seek=function(a){if(!this.ea()){n_(this);this.$=z();this.k.o=xZ(this.B);var b=z_(this,this.k,a,this.j&&this.j.k);this.o.o=yZ(this.B);var c=z_(this,this.o,b,this.j&&this.j.j);this.A=Math.max(a,b,c);this.K=!0;u_(this)}};
function z_(a,b,c,d){if(b.o.Qc())if(d){var e=Lr(d.buffered,c),g=NaN,h=b.A;h&&(g=Lr(d.buffered,h.j.index.zf(h.A)));if(e==g&&VZ(b))return c;d=NZ(b,c);if(0<=d)return d;PZ(b,!0);b.o.info.video&&b.A&&!b.A.C&&!TZ(b)&&(d=b.A,b.j.length&&(d=Ya(b.j).info),d=b.k||d,d=QH(d.j,d,d.aa.length-(d.k+d.o)),HZ(b,t_(a,d)));if(isNaN(e))return MZ(b,c);MZ(b,e+h_.j)}else MZ(b,c);else b.o.o||k_(a,b,!1),0!=c&&QZ(b);return c}function x_(a,b,c){b.o!=c&&(b.o=c,c.o||k_(a,b,!1))}
function k_(a,b,c){var d=r("ytplayer.playback_delay");d?a.ia=M(x(a.iu,a,b,c),d):a.iu(b,c);b.o.o=!0}f.iu=function(a,b){var c=b?65536:0;b&&!isNaN(2)&&(c=Math.floor(Math.max(c,2*a.o.info.pa)));c=a.o.Zs(c);E(c,function(b){var c=t_(this,b);!aH(b.j[b.j.length-1])&&HZ(a,c)},this)};f.L=function(){m_(this);this.o&&(QZ(this.o),QZ(this.k));Ff(this.da);N(this.ia);this.k=this.o=null;h_.I.L.call(this)};
f.Xe=function(a,b,c){var d;if(c)for(var e in c)d=(d?d+";":"")+e+"."+c[e];this.publish("error",new uq(b,a,d));a&&(this.j&&$t(this.j)&&(a=this.j,$t(a)&&a.o.endOfStream("network")),this.dispose())};
h_.prototype.getDebugInfo=function(){var a={lct:this.A.toFixed(3),lsk:this.K,lmf:wt(this.B.j),lbw:wG(this.F).toFixed(3),lhd:uG(this.F).toFixed(3),ltd:(1E9*vG(this.F)).toFixed(3),laa:this.o.A?dH(this.o.A):"",lva:this.k.A?dH(this.k.A):"",lar:this.o.k?dH(this.o.k):"",lvr:this.k.k?dH(this.k.k):""};this.j&&!au(this.j)&&(a.lab=Jr(this.j.j.buffered),a.lvb=Jr(this.j.k.buffered));return a};function l_(a,b,c){a.ja[b]=c?window.performance.timing.navigationStart+c:z()};function A_(a,b,c,d){Q.call(this);this.o=a;this.H=b;this.C=c;this.j=d;this.B="";this.k=this.D=this.F=this.G=null;this.A=new Vt(this);R(this,this.A);this.j&&(Wt(this.A,this.j,["message","mskeymessage"],this.qp),Wt(this.A,this.j,["error","mskeyerror"],this.pp),Wt(this.A,this.j,["ready","mskeyadded"],this.np))}B(A_,Q);f=A_.prototype;f.setCallbacks=function(a,b,c,d){this.G=a;this.F=b;this.D=c;this.k=d};f.qp=function(a){this.G.call(this.k,a)};
f.pp=function(a){var b;this.j?(b=this.j.error.code,a=this.j.error.systemCode):(b=a.errorCode.code,a=a.systemCode);this.F.call(this.k,b,a)};f.np=function(a){this.D.call(this.k,a)};f.update=function(a){this.j?this.j.update(a):this.o.addKey?this.o.addKey(this.H.j,a,this.C,this.B):this.o.webkitAddKey(this.H.j,a,this.C,this.B)};f.L=function(){this.o=null;A_.I.L.call(this)};function B_(a,b){Q.call(this);this.j=a;this.A=b;this.C={};this.o=null;this.B=new Vt(this);R(this,this.B);dt()||(Wt(this.B,this.j,["keymessage","webkitkeymessage"],this.G),Wt(this.B,this.j,["keyerror","webkitkeyerror"],this.F),Wt(this.B,this.j,["keyadded","webkitkeyadded"],this.D));this.k=null}B(B_,Q);function C_(a){a.k=new (dt())(a.A.j);a.j&&(a.j.msSetMediaKeys?a.j.msSetMediaKeys(a.k):a.j.setMediaKeys(a.k))}
function D_(a,b){var c=a.C[b.sessionId];!c&&a.o&&(c=a.o,a.o=null,c.B=b.sessionId,a.C[b.sessionId]=c);return c}B_.prototype.G=function(a){var b=D_(this,a);b&&b.qp(a)};B_.prototype.F=function(a){var b=D_(this,a);b&&b.pp(a)};B_.prototype.D=function(a){var b=D_(this,a);b&&b.np(a)};B_.prototype.L=function(){this.j=null;B_.I.L.call(this)};var E_=null,F_=null;function G_(a,b,c){this.url=a;this.j=b;this.k=c};function H_(a,b,c){this.j=a;this.headers=b;this.message=c};function I_(a,b,c,d,e){Q.call(this);this.H=a;this.k=d;this.k.subscribe("oauthtoken",this.Fp,this);this.B={session_id:e};ur(this,a.o);this.j=[];this.A=this.D=this.G=!1;var g;try{var h=c.j;if(dt()){b.k||C_(b);var k=c.k||"video/mp4",l;if("com.microsoft.playready"==b.A.j){var p=new Uint8Array(270);for(a=0;135>a;a++)p[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);l=b.k.createSession(k,h,p)}else l=
b.k.createSession(k,h);g=new A_(null,null,null,l)}else b.j.generateKeyRequest?b.j.generateKeyRequest(b.A.j,h):b.j.webkitGenerateKeyRequest(b.A.j,h),b.o=new A_(b.j,b.A,h,null),g=b.o}catch(t){b="g",t instanceof DOMException&&(b+=t.code),this.k.publish("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),g=null}if(this.o=g)this.o.setCallbacks(this.El,this.zy,this.yy,this),R(this,this.o)}B(I_,Q);f=I_.prototype;f.Fp=function(a){this.F=a};
function ur(a,b){if(Mf(b)){for(var c in a.B)b=Je(b,c,a.B[c]);a.C=b}else J_(a,"drm.net","u")}f.start=function(){this.ea()||(this.G=!0,this.j.length&&this.El(this.j.shift()))};
f.El=function(a){if(!this.ea()){var b=a.defaultURL||a.destinationURL;this.A&&b&&ur(this,b);if(this.G){a=a.message;if("com.microsoft.playready"==this.H.j){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);b=(new DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=Uint8Array;b=b.childNodes[0].data;if(!E_)for(E_={},F_={},c=0;65>c;c++)E_[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),F_[E_[c]]=c,62<=c&&(F_["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)]=
c);for(var c=F_,d=[],e=0;e<b.length;){var g=c[b.charAt(e++)],h=e<b.length?c[b.charAt(e)]:0;++e;var k=e<b.length?c[b.charAt(e)]:64;++e;var l=e<b.length?c[b.charAt(e)]:64;++e;if(null==g||null==h||null==k||null==l)throw Error();d.push(g<<2|h>>4);64!=k&&(d.push(h<<4&240|k>>2),64!=l&&d.push(k<<6&192|l))}a=new a(d)}a={format:"RAW",method:"POST",lz:a,responseType:"arraybuffer",withCredentials:!0,$a:this.nz,onError:this.Hp,context:this};b=this.C;this.F&&(b=Je(b,"access_token",this.F));yj(b,a)}else this.j.push(a),
this.D||(this.D=!0,this.k.publish("newsession",this))}};f.yy=function(){this.ea()||(this.A||(this.k.publish("sessionready"),this.A=!0),this.j.length&&this.El(this.j.shift()))};
f.nz=function(a){if(!this.ea())if(0!=a.status&&a.response){t:{a=new Uint8Array(a.response);var b=0,c=String.fromCharCode.apply(String,a.subarray(0,16384)).split("\r\n"),d=c[0];mb(c,0);c.pop();var b=b+(d.length+2),e=d.match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null!=e)for(var d=Wa(e[1]),g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new H_(d,g,a.subarray(b));break t}e=e.match(/([^:]+):\s+([^]+)/);if(null==e)break;g[e[1]]=e[2]}a=null}a?0!=a.j?J_(this,"drm.auth","f"+a.j,Xs(a.j)):(b=
(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new G_(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60,parseInt(a.headers["Heartbeat-Num-Retries"],10)||4)),(b||c)&&this.k.publish("newlicense",b,c),this.o.update(a.message)):J_(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Hp(a)};f.zy=function(a,b){this.ea()||J_(this,"drm.keyerror","s"+a+"."+b)};f.Hp=function(a){J_(this,"drm.net","r"+a.status)};
function J_(a,b,c,d){a.ea()||a.k.publish("licenseerror",b,c,d);a.dispose()}f.L=function(){this.k=null;I_.I.L.call(this)};function K_(a,b){this.j=a;this.k=b||null};function L_(a,b){S.call(this);this.G=a;this.j=b;this.subscribe("newlicense",this.Mw,this);this.subscribe("newsession",this.Nw,this);this.subscribe("sessionready",this.Ow,this);this.N=iE();this.A=null;this.F={};this.k=[];this.o=tt;this.K=new B_("com.microsoft.playready"==b.j?null:a,b);R(this,this.K);this.C=new B_(a,b);R(this,this.C);this.D=2;this.H=new Vt(this);R(this,this.H);this.B=!1;this.J=null;Wt(this.H,this.G,dt()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.Lw)}B(L_,S);f=L_.prototype;
f.Lw=function(a){M_(this,new K_(a.initData,a.contentType),!0)};
function M_(a,b,c){if(!(a.ea()||"com.microsoft.playready"==a.j.j^!c||(c=b.j,a.B&&"widevine"==a.j.k))){var d=String.fromCharCode.apply(String,c);if(!a.F[d]){a.F[d]=!0;d="clearkey"==a.j.k;if(112==c[4]&&115==c[5]&&115==c[6]&&104==c[7]&&d){t:{for(var e=new DataView(c.buffer),d=0;d<e.byteLength;){var g=e.getUint32(d,!1);if(1886614376!=e.getUint32(d+4,!1))break;if(1477738184==e.getUint32(d+12,!1)&&69420633==e.getUint32(d+16,!1)&&2464609580==e.getUint32(d+20,!1)&&1558758348==e.getUint32(d+24,!1)){e=e.getUint32(d+
28,!1);if(16!=e)break;c=c.subarray(d+32,d+32+e);break t}d+=g}c=null}if(!c)return}a.k.push(b);1<a.k.length||(N_(a,b),a.B=!0)}}}function N_(a,b){var c=new I_(a.j,a.K,b,a,a.N);c.Fp(a.A);R(a,c)}f.Mw=function(a,b){a&&H(a,"HD")&&!vt(this.o)&&"com.microsoft.playready"!=this.j.j&&(this.o=ut,this.publish("qualitychange"));b&&!this.J&&(this.J=b,this.publish("heartbeatparams",b))};f.Nw=function(){this.ea()||(this.k.shift(),this.k.length&&N_(this,this.k[0]))};f.Ow=function(){this.D--;0==this.D&&C_(this.C)};
f.L=function(){this.G=null;this.k=[];L_.I.L.call(this)};function O_(a){this.k={};this.k.c1a=x(this.A,this);this.k.c3a=x(this.B,this);(this.j=a)&&this.j.ha?this.o=mj(this.j.ha):this.o=[]}O_.prototype.A=function(){var a=r("yt.abuse.botguardInitialized");return a&&a()?(a=r("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};O_.prototype.B=function(a){return"r3a="+Math.floor(this.j.lengthSeconds%Ta(a.c3a))};function P_(a,b,c){this.j=a;this.reason=b;this.k=c};function Q_(a,b){this.j=a;this.k=b}function R_(a,b){return xt(xt(a.j.Ik,b.Kl),b.oi)}
function S_(a,b){var c;c=!!b.j.j;var d;Rh&&!a.j.H&&(d=window.screen&&window.screen.width?new I(window.screen.width,window.screen.height):null);d||(d=a.j.pg?a.j.pg.clone():a.k.cb());(Rh||Tc||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.j.k;if(d.length){for(var g=0;g<d.length&&!(e=d[g].video,null===c||.85*e.width<c.width&&.85*e.height<c.height);g++);e=Nq("auto",e.quality,!1)}else e=ut;c=e.j;Xr()&&(c=Math.max(c,rt.hd1080));if(d=(Vr("armv7")||Vr("android"))&&!UD(a.j))d=b.j.k[0],d="9"==d.o||"("==
d.o;d&&(c=Math.min(c,rt.large));c=Math.max(c,rt.medium);e.j!=c&&(e=new st(e.k,c,e.o));return e};function T_(){this.A=this.j=NaN;this.o=this.k=!1}function ms(a,b,c,d){if(d=1<d)a.o=!0;if(a.k)b!=a.j&&(a.k=!1);else if(0<b&&a.j==b)return c-a.A>(d||!a.o?1500:400);a.j=b;a.A=c;return!1};function U_(){this.k=0;this.j=this.B=this.o=this.A=NaN};var V_={};function W_(a){this.k=a;this.j=0;this.B=NaN;this.o=0;this.ga=[];this.A=X_(this.k);this.C=this.D=0}function Y_(a){a.A.startTime=a.o;a.A.endTime=a.j;a.ga.length&&Ya(a.ga).isEmpty()?a.ga[a.ga.length-1]=a.A:a.ga.length&&a.A.isEmpty()||a.ga.push(a.A);a.D+=a.j-a.o;a.A=X_(a.k);a.o=a.j}function Z_(a){return a.D+a.k.o()-a.o}function $_(a){a.ga.length&&a.j==a.o||Y_(a);var b=a.ga;a.ga=[];return b}
W_.prototype.update=function(){var a=this.k.o()||0,b=a0(this.k);if(a!=this.j||b0(this,a,b)){if(a<this.j||a-this.j>b-this.B+.5||b0(this,a,b))Y_(this),this.o=a;this.B=b;this.j=a}};function b0(a,b,c){c-=a.B;return b==a.j&&.5<c};function c0(a,b){this.j=b;this.A=!1;this.k=a}c0.prototype.o=function(){return{ps:this.j.k,el:this.j.ca}};c0.prototype.send=function(){this.A||(Wf(Ee(this.j.Ab+"set_awesome",this.o())),this.A=!0)};function d0(a,b,c){c0.call(this,b,c);this.B=a}B(d0,c0);
d0.prototype.o=function(){var a=d0.I.o.call(this);qa(a,this.j.o);var b=Fc(this.k.Kh/this.k.lengthSeconds,0,1);qa(a,{html5:"1",video_id:this.k.videoId,eurl:this.j.D,framer:this.j.O,feature:this.j.P,list:this.k.playlistId,w:b,l:this.k.lengthSeconds,plid:this.k.playbackId,ei:this.k.G,access_token:this.k.C,tpmt:Z_(this.B),cpn:this.k.ya});this.j.C&&(a.adformat=this.j.C);this.j.referrer&&(a.referrer=kZ(this.j));this.j.autoplay&&(a.autoplay="1");this.j.Wa&&(a.authuser=this.j.Wa);this.j.pageId&&(a.pageid=
this.j.pageId);this.k.yd&&(a.splay="1");this.k.subscribed&&(a.subscribed=this.k.subscribed);qa(a,d0.I.o.call(this));qa(a,this.j.o);return a};function e0(a){Q.call(this);this.j=a;this.o={};this.N=NaN;this.B=new zv(this.Cw,3E4,this);R(this,this.B);this.C=new zv(this.Lk,100,this);R(this,this.C);this.k="N";this.A=0;this.P=NaN;this.H=0;this.G=this.R="";this.F=this.J=0;this.K=this.D=!1}B(e0,Q);var f0={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function g0(a,b,c,d){var e=a.o[b];e||(e=[],a.o[b]=e);a=0<=d?d:a0(a.j);e.push(a.toFixed(3)+":"+c.join(":"))}f=e0.prototype;
f.Lk=function(a){a=a||a0(this.j);var b=this.j.D();if(!isNaN(this.O)&&!isNaN(b.o)){var c=b.o-this.O;0<c&&g0(this,"bwm",[c,(b.B-this.X).toFixed(3)],a)}this.O=b.o;this.X=b.B;isNaN(b.j)||g0(this,"bwe",[b.j.toFixed(0)],a);isNaN(b.k)||(c=b.k,b.A<c&&(c=b.A),this.P!=c&&(g0(this,"bh",[c.toFixed(3)],a),this.P=c),this.j.k.experiments.B&&3>c&&("PL"==this.k||"B"==this.k)&&this.C.start());g0(this,"cmt",[this.j.o()],a)};
function h0(a){var b={event:"streamingstats"};if(a.j.j.k){b.fmt=a.j.j.k.id;var c=a.j.j.D;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.j.j.ya;b.ei=a.j.j.G;b.el=a.j.k.ca;b.docid=a.j.j.videoId;b.ns=a.j.k.Nc;b.fexp=a.j.k.experiments.experimentIds.toString();b.cl=a.j.j.Wb;a.j.k.C&&(b.adformat=a.j.k.C);a.j.j.Va&&(b.live=a.j.j.wb?"dvr":"live");b.html5="1";return b}
f.zg=function(a){if(!this.ea()&&!Rb(this.o)){this.C.isActive()||this.Lk(a);a=nZ(this.j.k).hmewdrop;a>this.H&&g0(this,"df",[a-this.H]);this.H=a;a=h0(this);Zb(a,this.j.k.o);a=Ee(jZ(this.j.k)+"api/stats/qoe",a);for(var b in this.o)a+="&"+b+"="+this.o[b].join(",");Wf(a);this.o={};this.B.start()}};f.hf=function(){g0(this,"vps",["N"]);this.j.j.Fa&&(this.o.cat=["preload"]);this.N=Ef(x(this.zg,this),1E4);this.B.start()};
f.onError=function(a,b){var c=this.j.o(),c=[a,c.toFixed(3)];b&&c.push(b);g0(this,"error",c)};f.Cw=function(){"PL"==this.k&&(g0(this,"vps",[this.k]),this.zg())};f.L=function(){e0.I.L.call(this);Ff(this.N)};function i0(a,b,c,d){this.P=b;this.j=[];this.experimentIds=[];this.K=!1;this.o="watchtime"==c;this.ha="playback"==c;this.$="delayplay"==c;this.na=(this.J="atr"==c)?"/api/stats/"+c:jZ(b)+"api/stats/"+c;d&&(this.wo=d.fs,d.rtn&&(this.ng=d.rtn),this.o?(this.vb=d.state,0<d.rti&&(this.Qh=d.rti)):(this.da=d.mos,this.ja=d.volume,d.at&&(this.adType=d.at),d.allowed&&(this.C=d.allowed),d.ex_ads&&(this.H=d.ex_ads)),d.autonav&&(this.Rh=d.autonav));this.oa=b.C;this.autoplay=b.autoplay;this.wa=b.K;this.xa=Vb(b.o);
this.Ba=b.D;this.Ja=b.ca;this.experimentIds=b.experiments.experimentIds;this.R=b.N;this.vo=b.Nc;this.referrer=b.referrer;this.X=b.xa;this.A=b.P;this.searchQuery=b.searchQuery;this.userAge=b.userAge;this.Ra=b.Ba;this.ma=XY();this.autoplay=a.kg||this.autoplay;this.Rh=a.bo||this.Rh;this.V=a.Lh;this.ua=a.ya;this.k=a.$n;this.G=a.kk;this.B=a.Kh;this.O=a.de;a.k&&(this.W=a.k.id,a.D&&a.D.id!=this.W&&(this.F=a.D.id));this.xo=a.yd;this.Xa=a.Jh;a.Va&&(this.ia=a.wb?"dvr":"live");this.hb=a.jk;this.playbackId=a.playbackId;
this.Fa=a.G;this.playlistId=a.playlistId;this.A=a.Ja||this.A;this.Ga=a.vb;this.U=a.Fb;this.Wb=a.ao;this.subscribed=a.subscribed;this.Fb=a.Wb;this.videoId=a.videoId;this.jc=a.Ou;this.gb=a.ub;this.ub=a.Nu}f=i0.prototype;f.Rh=!1;f.autoplay=!1;f.Hy=!1;f.Oo=!1;f.wo=!1;f.Dw=!1;f.xo=!1;f.vo="yt";f.Qh=null;f.ng=null;
f.send=function(){if(!this.K){var a=j0(this),a=Ee(this.na,a);this.J?this.D&&yj(a,{method:"POST",yb:{atr:this.D}}):!this.P.experiments.H&&rj()&&this.k?yj(a,{headers:{Authorization:"CredentialTransfer type="+this.G+",token="+this.k}}):Wf(a);this.K=!0}};
function j0(a){var b={ns:a.vo,el:a.Ja,cpn:a.ua,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.cf(a.B),plid:a.playbackId,ei:a.Fa,fmt:a.W,fs:a.wo?"1":"0",rt:a.cf(a.la),of:a.ub,adformat:a.oa,content_v:a.wa,euri:a.Ba,subscribed:a.subscribed,lact:a.ma,live:a.ia,cl:a.Fb,mos:a.da,q:a.searchQuery,osid:a.gb,state:a.vb,vm:a.jc,volume:a.ja};qa(b,a.xa);a.Rh&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.Oo&&(b["final"]="1");a.xo&&(b.splay="1");a.O&&(b.delay=a.O);a.R&&(b.hl=a.R);a.X&&(b.cr=a.X);n(a.userAge)&&
a.Ra&&(b.uga=a.Ra+a.userAge);n(a.N)&&(b.len=a.cf(a.N));!a.o&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.ng&&(b.rtn=a.cf(a.ng));a.A&&(b.feature=a.A);a.playlistId&&(b.list=a.playlistId);a.Ga&&(b.ctrl=a.Ga);a.U&&(b.ytr=a.U);a.Wb&&(b.ssrt="1");a.F&&(b.afmt=a.F);a.o?(b.idpj=a.Xa,b.ldpj=a.hb,null!=a.Qh&&(b.rti=a.cf(a.Qh))):(n(a.adType)&&(b.at=a.adType),n(a.C)&&(b.allowed=a.C),n(a.H)&&(b.ex_ads=a.H));(a.ha||a.$)&&a.V&&(b.tst=a.V);a.o&&(b.st=k0(a,F(a.j,function(a){return a.startTime})),
b.et=k0(a,F(a.j,function(a){return a.endTime})));db(a.j,function(a){return 0!=a.visibilityState})&&(b.vis=k0(a,F(a.j,function(a){return a.visibilityState})));db(a.j,function(a){return 1!=a.playbackRate})&&(b.rate=k0(a,F(a.j,function(a){return a.playbackRate})));db(a.j,function(a){return"-"!=a.Hk})&&(b.cc=F(a.j,function(a){return a.Hk}).join(","));a.P.experiments.H&&rj()&&a.k&&(b.ctt=a.k,b.cttype=a.G);return b}f.cf=function(a){return(1*a.toFixed(3)).toString()};
function k0(a,b){return F(b,a.cf).join(",")};function l0(a){Q.call(this);this.j=a;this.A=new e0(a);R(this,this.A);this.k=new W_(a);this.C="paused";this.D=NaN;this.H=[10,10,10,40];this.J=this.G=0;this.P=this.F=this.N=this.K=this.o=!1;this.B=NaN;this.O=new d0(this.k,this.j.j,this.j.k)}B(l0,Q);function m0(a,b,c){var d=a0(a.j);c=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.D=M(x(a.UD,a,c,b),d);return c}f=l0.prototype;
f.UD=function(a,b){if(!this.ea()){this.D=NaN;this.k.update();var c=$_(this.k),d=n0(this,c);b&&(d.Qh=a);var e=400<this.J;!(1<c.length)&&c[0].isEmpty()||e||(d.ng=m0(this,!0,a));d.send();this.J++}};function o0(a,b){var c=p0(a.j);qa(c,{state:a.C});c=new i0(a.j.j,a.j.k,b,c);c.B=a.j.o();c.N=a.j.C();c.la=a0(a.j);c.j=[X_(a.j)];return c}function n0(a,b){var c=o0(a,"watchtime");c.j=b;c.B=a.k.j;return c}function q0(a){a.k.update();return n0(a,$_(a.k))}
function r0(a){var b=a.j.k;a=a.j.j;var c=a.Ja||b.P,c={ns:b.Nc,html5:"1",el:b.ca,ps:b.k,fexp:b.experiments.experimentIds.join(",")||void 0,feature:c||void 0,ctrl:a.vb||void 0,ytr:a.Fb||void 0,list:a.playlistId,d:b.la,f:b.W};b.autoplay&&(c.autoplay="1");a.subscribed&&(c.subscribed=a.subscribed);return c}function s0(a){a.j.j.remarketingUrl&&!a.F&&(Wf(a.j.j.remarketingUrl),a.F=!0);a.j.j.ppvRemarketingUrl&&!a.P&&(Wf(a.j.j.ppvRemarketingUrl),a.P=!0);a.j.j.remarketingUrl||t0(a)}f.hf=function(){this.A.hf()};
f.onError=function(a,b){this.A.onError(a,b)};
function u0(a,b){if(!a.ea()){W(b.state,2)?(a.C="paused",0<tv(b,2)&&a.o&&q0(a).send()):W(b.state,8)?(a.C="playing",a.o&&isNaN(a.D)&&m0(a,!1)):a.C="paused";var c=a.A,d=b.state,e;e=b.state;if(W(e,128))e="ER";else if(W(e,16)||W(e,32))e="S";else{var g=f0[ps(e)];"B"==g&&W(e,4)&&(g="PB");e=g}if(e!=c.k){var g=e,h=a0(c.j);if(!(h<c.A)){if("PL"==c.k)c.F+=h-c.A;else if("B"==c.k&&c.D&&(c.D=!1,c.J+=h-c.A,!c.K&&10<=c.J&&180>=c.F)){c.j.F();if(!c.ea()){var k=h0(c);k.qoealert="1";k=Ee(jZ(c.j.k)+"api/stats/qoe",k);
Wf(k)}c.K=!0}"B"!=g||"PL"!=c.k&&"PB"!=c.k||(c.D=!0);c.A=h}!c.j.k.experiments.B||"B"!=e&&"PB"!=e?g0(c,"cmt",[c.j.o().toFixed(3)]):c.Lk();g0(c,"vps",[e]);c.k=e}if(W(d,128))c.onError(d.j.errorCode,d.j.errorDetail);(W(d,2)||W(d,128))&&c.zg();a.B&&W(b.state,128)&&(a.fi("error-100"),N(a.B))}}function v0(a){a.B=Ef(x(a.fi,a,"heartbeat"),3E4)}
f.fi=function(a){var b=this.j.k,c=this.j.j,d={ns:b.Nc,el:b.ca,eurl:b.D,fmt:c.k?c.k.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.ya,ei:c.G,ps:b.k,noflv:1,st:this.j.o(),video_id:c.videoId,metric:a};b.autoplay&&(d.autoplay="1");c.Wh&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=Z_(this.k));qa(d,b.o);Wf(Ee("//www.youtube.com/live_204",d))};f.L=function(){l0.I.L.call(this);N(this.D);this.D=NaN;var a=this.k;Ff(a.C);a.C=NaN};l0.prototype.getDebugInfo=function(){return j0(o0(this,"playback"))};
function t0(a){if(!a.F){a.j.j.B.eventLabel=a.j.k.ca;a.j.j.B.playerStyle=a.j.k.k;a.j.j.ia&&(a.j.j.B.feature="pyv");a.j.j.B.vid=a.j.j.videoId;a.j.j.B.isAd=!("adunit"!=a.j.k.ca&&!a.j.j.ia);var b=a.j.j.B;b&&b.uid&&(V_[b.uid]=b);t:{var c=a.j.j.B.uid;if(!c){b=Cf("CONVERSION_CONFIG_DICT");if(!b)break t;c=b.uid||null;if(!c)break t}i:{b=Cf("CONVERSION_CONFIG_DICT");if(w(c)&&(c=c?24==c.length&&"UC"==c.slice(0,2)?c.substr(2):22==c.length?c:null:null,!b||b.uid!=c)&&(b=V_[c],!b||b.uid!=c))break i;var d;if(b&&
b.baseUrl&&b.uid){var e=b.rmktEnabled,c=b.focEnabled&&(!b.isAd||!1);if(e||c){var g={};if(e){e={utuid:b.uid,type:"view",client_name:"html5"};b.vid&&(e.utvid=b.vid);b.eventLabel&&(e.el=b.eventLabel);b.playerStyle&&(e.ps=b.playerStyle);b.feature&&(e.feature=b.feature);b.ppe&&(e.ppe=b.ppe);b.subscribed&&(e.subscribed=b.subscribed);b.engaged&&(e.engaged=b.engaged);var h=[];for(d in e)h.push(encodeURIComponent(d)+"="+encodeURIComponent(e[d]));d=h.join(";");g.data=d}c&&(g.label="followon_view",g.foc_id=
b.uid,g.r=Math.round(1E4*Math.random()));d=Ee(b.baseUrl,g)}else d=null}else d=null;d&&Wf(d)}}a.F=!0}};function w0(){this.endTime=this.startTime=-1;this.Hk="-";this.playbackRate=1;this.visibilityState=0}w0.prototype.isEmpty=function(){return this.endTime==this.startTime};function x0(a,b,c,d,e,g,h,k){this.j=a;this.k=b;this.B=c;this.C=d;this.o=e;this.D=g;this.G=h;this.F=k||function(){};this.A=-1}function a0(a){var b=window.performance&&window.performance.now?window.performance.now():z();0>a.A&&(a.A=b);return Math.round(b-a.A)/1E3}
function p0(a){var b=a.B();a=a.j;var c={};a.k&&(c.fmt=a.k.id,a.D&&a.D.id!=a.k.id&&(c.afmt=a.D.id));a.ma&&(c.threed=a.wy);c.plid=a.playbackId;c.ei=a.G;c.list=a.playlistId;c.cpn=a.ya;a.videoId&&(c.v=a.videoId);a.xk&&(c.infringe=1);a.yd&&(c.splay=1);a.Va&&(c.live=a.wb?"dvr":"live");a.kg&&(c.autoplay=1);a.Jp&&(c.sdetail=a.Jp);a.U&&(c.partnerid=a.U);a.ub&&(c.osid=a.ub);qa(b,c);return b}
function X_(a){var b=new w0;b.Hk=a.B().cc||"-";var c=a.k;b.playbackRate=c.tb&&c.tb.playbackRate||1;(c=lh("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.k.Za?b.visibilityState=2:a.k.hs&&(b.visibilityState=1);return b};function y0(a,b){this.state=a;this.j=b}function tv(a,b){return W(a.state,b)&&!W(a.j,b)?1:!W(a.state,b)&&W(a.j,b)?-1:0};function z0(a,b,c,d){S.call(this);this.ua=new T_;this.F=c;this.oa=d;this.D=new ts(x(this.getCurrentTime,this),x(this.sv,this),x(this.getPlayerState,this),x(this.ib,this));R(this,this.D);this.V=NaN;this.K=this.G=null;this.C=a;this.ja=new Q_(a,this.oa);this.la=!1;this.H=this.o=null;this.N=[];this.X=new FZ;this.O=new FZ;this.Ba=this.ma=!1;this.na=NaN;this.A=new is;this.Ja=b;this.U=this.$=null;this.J=NaN;this.W=new xv(this);this.j=new rr;this.k=this.R=null;this.da=NaN;this.B=null;this.xa=!1;this.ha=0;
this.Fa=null;this.ia=!1}B(z0,S);function pr(a){Dx()?Gx(a.ha):N(a.ha)}f=z0.prototype;f.L=function(){N(this.da);Ff(this.na);or(this);A0(this);pr(this);JE(this);si(this.U,this.W,this.j);this.W=this.K=null;this.ia=!1};
function B0(a,b,c){a.N.length=0;var d=a.X;d.k=!1;d.j=!1;d=a.O;d.k=!1;d.j=!1;a.V=NaN;a.J=NaN;a.R=null;a.xa=!1;a.k&&gs(a.k);C0(a);or(a);A0(a);pr(a);qi(a.j);d=a.D;d.ki=!1;d.vg=!1;ys(d);d.j.j=[];d.k=[];d.qc();d.B=null;if(2==a.Ja||Qf(a.C.F))b.yp=!0;b.Ld=a.j.Ld;a.j=b;a.j.subscribe("dataupdated",a.iz,a);a.j.subscribe("dataloaded",a.oq,a);a.j.subscribe("dataloaderror",a.Sh,a);a.j.subscribe("onStatusFail",a.hz,a);b.gf&&b.gf>b.startSeconds&&(b=b.gf,a.K&&(a.D.wg(a.K),a.K=null),a.K=new qs(1E3*b,2147483646),a.K.Oa.subscribe("onEnter",
a.df,a),us(a.D,[a.K]));or(a);a.j.fe||(c=new x0(a.j,a.C,c,x(a.Oc,a),x(a.getCurrentTime,a),x(a.fz,a),x(a.oa.ob,a.oa),x(a.gz,a)),a.B=new l0(c));a.ia=!1;D0(a,"newdata");E0(a,new is)}function or(a){if(a.B){var b=a.B;if(!b.ea()&&b.o){b.C="paused";var c=q0(b);c.Oo=!0;c.send();c=b.A;"PL"==c.k&&(c.k="N");g0(c,"vps",[c.k]);c.zg();N(b.B);b.dispose()}qi(a.B);a.B=null}}f.getVideoData=function(){return this.j};f.S=function(){return this.C};function F0(a){return!(!a.j.j||!a.j.j.k.length)}
function G0(a){if(RI(a.j))return!0;sv(a,"api.invalidparam");return!1}function H0(a,b){a.ma=!!b;G0(a)&&!a.X.k&&(a.X.start(),a.B&&a.B.hf(),a.oq())}
f.oq=function(){if(NI(this.j))NI(this.j),this.X.j=!0,this.N=pb(this.j.H),DF(this.j),F0(this)&&(this.j.wb&&(I0(this,this.j.lengthSeconds),J0(this,!0)),this.j.j.j&&K0(this),Oq(this,"i")),D0(this,"dataloaded"),this.O.k&&L0(this);else if(this.j.da){var a=this.j,b=this.C.experiments.U;a.da=!1;var c=a.O,d=oj(c),c=0>rr.o.indexOf(d)?Rf(c):Sf(c),d=x(a.Nz,a),a=x(a.im,a);YH(new RH(c,b),c,d,a);rx("mrs")}else this.j.tf||(b=hZ(this.C,this.j,this.oa.ob()),SI(this.j,b,this.C.experiments.ma))};
function M0(a){H0(a);G0(a)&&!W(a.A,128)&&(a.O.k||(a.O.start(),E0(a,ns(a.A,8))),L0(a))}function L0(a){if(!(a.O.j||!a.X.j||W(a.A,128)||a.N.length||(a.D.vg||a.D.hf(),a.N.length||0<Gr(a.D.j,-2147483648).length))){if(a.o){var b=a.o;a.Ba=!!b.N&&!!b.X}a.O.j=!0;a.j.Va&&N0(a,Infinity,!0);a.B&&(b=a.B,b.j.j.Yh&&b.j.j.Kk&&(b.fi("connected"),v0(b)));a.publish("playbackready",a)}}f.df=function(a){this.pauseVideo();a=0==a?new is:new is(14);E0(this,a)};
function O0(a,b,c,d){a.j.k=c;a.j.D=d||c;if(a.B){var e=a.j,g=S_(a.ja,e),e=G(e.j.k,x(g.A,g)),e=new P_(c,b,e?e.id:"");d&&"i"==b&&P0(a,b,d);d=a.B.A;c=a0(d.j);g0(d,"vfs",[e.j.id,e.k,d.R,e.reason],c);d.R=e.j.id;e=d.j.G();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],1<window.devicePixelRatio&&e.push(window.devicePixelRatio),g0(d,"view",e,c));g0(d,"vps",[d.k],c);d.zg(c)}a.publish("internalvideoformatchange",a.j,"m"==b)}
function P0(a,b,c){a.j.D=c;if(a.B){var d=a.B.A;c=new P_(c,b,"");var e=a0(d.j);c.j.id!=d.G&&(g0(d,"afs",[c.j.id,d.G,c.reason],e),d.G=c.j.id)}"i"!=b&&a.publish("internalaudioformatchange",a.j,"m"==b)}function sv(a,b,c,d){if(Kb(Vs,c))var e=c;else var g=c;E0(a,ls(a.A,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));pr(a);A0(a);Q0(a)}function R0(a,b){a.N=a.N.filter(function(a){return b!=a});a.O.k&&L0(a)}f.ib=function(){return W(this.A,8)&&!W(this.A,64)&&!W(this.A,2)};f.getPlayerState=function(){return this.A};
f.getPlayerType=function(){return this.Ja};function S0(a,b){a.k&&JE(a);a.k=b;T0(a)}function JE(a){a.H=null;a.o&&(u_(a.o),a.o.G=!0);a.k&&(a.B&&a.X.k&&W(a.A,64)&&U0(a),C0(a),a.W.removeAll(),gs(a.k),a.k=null)}
function V0(a){M0(a);W(a.A,64)&&E0(a,ns(a.A,8));if(a.O.j&&a.k)if(a.j.j){var b;if(a.j.j.j)W0(a),b=a.Fa,a.o.resume();else{A0(a);b=a.j.X.k;var c=a.j,d={};c.K&&(d.ptk=c.K,d.oid=c.Ao,d.ptchn=c.zo,d.pltype=c.Bo);qa(b.k,d);qa(b.k,{c:a.C.o.c,cver:a.C.o.cver})}a.k.kd!=b?X0(a,b):(TI(a.j)&&ds(a.k)&&N0(a,Infinity,!0),es(a.k))}else sv(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function Pq(a){if(!a.j.j)return[];var b=Y0(a);a=Bt(a.j.j,b);a.length&&(a=a.concat(["auto"]));return a}
function Z0(a){return xt(xt(R_(a.ja,a.j),S_(a.ja,a.j)),Y0(a))}function Y0(a){return a.j.Uk?ut:a.G?a.G.o:F0(a)&&a.j.j.j&&SH(a.j.o)?tt:ut}function Oq(a,b,c){if(!a.ea()&&!W(a.A,128)&&(c&&(a.j.oi=c),F0(a))){"m"==b&&c&&vt(c)&&(b="a");var d=Z0(a);a.j.j.j?"i"!=b&&(c=a.o,c.ea()||((d=uZ(c.B,d,b))&&c.publish("videoformatchange",d),x_(c,c.k,xZ(c.B)),wt(c.B.j)&&"m"==b&&RZ(c.k),YZ(c.k)&&r_(c,c.k,c.o),u_(c))):(a.j.X=wu(a.j.J,d),O0(a,b,a.j.X.getInfo()));a.ib()&&V0(a)}}
function e1(a){var b=a.getVideoData().D;if(!b)return a.getVideoData().V;var c=G(a.j.j?a.j.j.audioTracks:[],function(a){return a.id==b.id});return c?c:a.getVideoData().V}
function K0(a){aI(a.j.o,{c:a.C.o.c,cver:a.C.o.cver});var b=a.C,c=new qD;if(Wr()||b.experiments.na)c.K=!0;Wr()&&(c.G=-1);0<=b.U&&(c.liveChunkReadahead=b.U);b.experiments.ha&&(c.H=300);b.experiments.N&&(c.F=45E3,c.N=12E3);if(UD(b)){var d=b.experiments;c.C=8388608;c.B=524288;c.j=2097152;c.D=1048576;c.J=1.5;c.O=15;c.o=!0;c.P=!1;c.H=0;c.A=rt.hd720;Ur()&&!d.ja&&(c.pa=44E4);Vr("(ps4; leanback shell)")&&(c.pa=562500)}Xr()&&(c.C=20971520,c.B=1572864,c.pa=812500,c.j=20971520,c.k=1E3);var d=b.pg||new I(window.screen.width,
window.screen.height),e=window.devicePixelRatio||1;2560<=d.width*e&&1440<=d.height*e&&(c.C=52428800,c.B=5242880,c.j=20971520,c.D=8388608,c.A=rt.auto);b.experiments.Ra&&(c.pa=NaN);b.experiments.la&&(c.j=1.5*c.D);a.o=new h_(a.$,c,a.j.o,a.j.j);a.o.subscribe("initsegment",a.Jv,a);a.o.subscribe("videoformatchange",a.Lv,a);a.o.subscribe("audioformatchange",a.Kv,a);a.o.subscribe("error",a.Sh,a);a.o.subscribe("seekrequired",a.Mv,a);b=H(a.N,"spacecast")||a.ma;a.o.initialize(a.j.startSeconds,Z0(a),b);a.j.probeUrl&&
(a.o.R=a.j.probeUrl);if(a.N.length||a.ma)a.o.G=!0;a.ma&&U0(a)}function U0(a){var b=new y0(new is(4),a.A);u0(a.B,b)}function A0(a){a.o&&(a.o.dispose(),a.o=null);a.H&&(a.H.dispose(),a.H=null)}
function W0(a){if(!a.H){a.o?a.o.seek(a.getCurrentTime()):K0(a);a.H=new Xt(a.k,a.j.lengthSeconds,a.j.j.k[0].mimeType,a.j.j.j[0].mimeType);try{var b=Zt(a.H)}catch(c){c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);sv(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Fa=new eu(b,!0);Yt(a.H,x(a.o.HA,a.o))}}
f.Jv=function(a){if(this.G){var b=this.G;if("com.microsoft.playready"==b.j.j){for(var c=new Uint8Array(0),d=new DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var g=d.getUint32(e);if(1>g)break;var h=d.getUint32(e+4);if(1836019574==h)e+=8;else{if(1886614376==h){var h=a.subarray(e,e+g),k=new Uint8Array(c.length+h.length);k.set(c);k.set(h,c.length);c=k}e+=g}}a=c;0!=a.length&&M_(b,new K_(a),!1)}}};f.Lv=function(a){O0(this,a.reason,a.video.info,a.j.info);var b=PI(this.j);b&&b.B(a.video)};
f.Kv=function(a){P0(this,a.reason,a.j.info)};f.Sh=function(a){if(a.k)sv(this,a.errorCode,void 0,a.j);else{var b;if(b=this.C.experiments.A&&("net.badstatus"==a.errorCode||"manifest.net"==a.errorCode))b=this.j,b=z()-b.qy>rr.B;if(this.B&&(this.B.onError(a.errorCode,a.j),b))this.B.onError("staleconfig");b&&this.publish("signatureexpired")}};f.pauseVideo=function(a){W(this.A,64)&&!a&&E0(this,os(this.A,8));this.k&&(a&&!W(this.A,128)&&E0(this,ns(this.A,256)),this.k.pauseVideo())};
function Q0(a){a.pauseVideo(!0);a.k&&(C0(a),a.H&&(a.H.dispose(),a.H=null),a.j&&(a.j.startSeconds=a.getCurrentTime()),a.J=NaN,fs(a.k),W(a.A,128)||E0(a,ls(a.A)))}function N0(a,b,c,d){if(a.k&&a.O.j){b=Fc(b||0,zr(a.j),f1(a));b>=f1(a)?J0(a,!0):J0(a,!1);a.j.startSeconds=b;a.J=b;var e=a.ua;e.j=b;e.k=!0;c?a.Hi():(g1(a),d&&(a.U||(a.U=new zv(a.Hi,d,a)),a.U.start()),h1(a,!0));a.K&&b>a.j.gf&&(a.D.wg(a.K),a.K=null);b<a.Oc()&&E0(a,os(a.A,2));a.publish("seekto",a,b)}else a.j.startSeconds=b||0}
function g1(a){W(a.A,32)||(E0(a,ns(a.A,32)),W(a.A,8)&&a.pauseVideo(!0),a.publish("beginseeking",a))}f.Hi=function(){if(!isNaN(this.J)&&this.k){var a=this.Oc();!this.j.Va&&this.J>=Math.floor(a)?(this.J=a,this.publish("endseeking",this),this.pauseVideo(!0),this.df()):(this.o&&this.o.seek(this.J),cs(this.k,this.J))}this.U&&(this.U.dispose(),this.U=null);W(this.A,32)&&(E0(this,ns(os(this.A,32),16)),this.publish("endseeking",this))};
f.getCurrentTime=function(){if(!isNaN(this.J))return this.J;var a=0;this.k&&1<=this.k.readyState?a=this.k.getCurrentTime():this.j&&(a=this.j.Kh||this.j.startSeconds||0);return a};f.Oc=function(){return TI(this.j)?Infinity:this.j&&this.j.lengthSeconds?this.j.lengthSeconds:f1(this)?f1(this):0};
f.fz=function(){var a=new U_;if(this.$&&this.o){var b=this.$;a.o=b.B;a.B=b.C;a.j=wG(b);b=this.o;b.j&&!au(b.j)&&(a.k=Nr(b.j.k.buffered,b.A),a.A=Nr(b.j.j.buffered,b.A));a.j=qZ(b.H);wG(b.F);uG(b.F);vG(b.F)}else this.k&&(a.k=Nr(this.k.buffered,this.getCurrentTime()));return a};function i1(a){if(a.k)if(TI(a.j))a=1;else if(UI(a.j))if(a.la)a=0;else{var b=a.k;a=(0<Mr(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.Oc()}else a=Qq(a.k);else a=0;return a}
z0.prototype.getDebugInfo=function(a){var b={};a&&(this.B&&qa(b,this.B.getDebugInfo()),this.k&&qa(b,this.k.getDebugInfo()),this.o&&qa(b,this.o.getDebugInfo()),W(this.A,128)&&(b.debug_error=this.A.j),(this.N.length||0<Gr(this.D.j,-2147483648).length)&&(b.preroll="1"));b.debug_videoId=this.j.videoId;return b};f=z0.prototype;f.iz=function(){if(this.G){var a=this.G,b=this.j.C;a.A=b;a.publish("oauthtoken",b)}D0(this)};f.hz=function(a){sv(this,"auth",unescape(a.reason),a.errordetail||"sec."+a.errorcode)};
function D0(a,b){a.publish("internalvideodatachange",b||"dataupdated",a,a.j)}function T0(a){E("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.W.listen(this.k,a,this.VE)},a)}
f.VE=function(a){var b=a.target;if(b==this.k&&b.currentSrc){switch(a.type){case "error":if(this.C.tk&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(x(function(){this.k&&(this.j.X&&this.k.load(),V0(this))},this),500);if(this.B)this.B.onError("progressive.net");return}break;case "durationchange":if(!this.j.wb||this.j.o&&!this.j.o.isLive)b=b.duration||0,(!this.H||isFinite(b)&&0<b)&&1!=b&&I0(this,b);break;case "ratechange":this.o&&(this.o.H.o=Math.max(1,this.k.playbackRate));this.D.hf();
break;case "ended":E0(this,ls(this.A,4));this.Dk();break;case "loadedmetadata":this.j.startSeconds&&(this.k.currentTime=this.j.startSeconds),this.C.Fb&&this.j.startSeconds&&(this.V=this.j.startSeconds,this.pauseVideo(!0));case "loadstart":Ff(this.na);this.Tk()||(this.na=Ef(x(this.Tk,this),100));break;case "progress":this.V&&this.k.seekable.length&&this.k.seekable.end(0)>this.V&&(this.k.currentTime=this.V,this.V=NaN,this.wa=this.W.listen(this.k,"canplay",this.Zw));case "suspend":h1(this);this.publish("onLoadProgress",
this,i1(this));break;case "seeked":j1(this);break;case "seeking":this.o&&this.o.seek(b.currentTime);break;case "playing":rx("plev",void 0,this.F.j);break;case "timeupdate":this.xa=!0,this.Tk(),j1(this),h1(this),this.publish("onVideoProgress",this,b.getCurrentTime())}this.publish("videoelementevent",a);a=js(this.A,a,this.ua,this.C.experiments.O);E0(this,a)}};
f.Tk=function(){var a=this.k;a&&this.xa&&!this.j.Mk&&!vx("vfp",this.F.j)&&2<=a.readyState&&!a.ended&&0<Mr(a.buffered)&&rx("vfp",void 0,this.F.j);if((a=this.k)&&!this.j.Mk&&0<(a.duration||0)&&(!vx("pbr",this.F.j)&&ds(a)&&2<=a.readyState&&0<Mr(a.buffered)&&UY(this.F,"pbr"),0<a.getCurrentTime())){Ff(this.na);N(this.da);this.j.Mk=!0;k1(this);if(this.B){a=this.B;if(!a.o){var b=o0(a,"playback");a.H=[10+a.j.j.Jh,10,10,40+a.j.j.jk-a.j.j.Jh,40];var c=a.k;Ff(c.C);c.C=NaN;c.C=Ef(x(c.update,c),100);c.B=a0(c.k);
c.A=X_(c.k);b.ng=m0(a,!0);b.Dw=!0;b.send();!a.j.k.nc||a.j.k.Xh||a.o||(b=a.j.k,c=a.j.j,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.ya,plid:c.playbackId,ei:c.G,referrer:kZ(b),eurl:b.D,framer:b.O,feature:b.P,fmt:c.k?c.k.id:0,ptk:c.K,skl:c.Eo,access_token:c.C,ucid:c.Co},qa(b,r0(a)),delete b.fexp,b=Ee(a.j.k.Ab+"user_watch",b),Wf(b));a.j.j.K&&(b=a.j.k,c=a.j.j,b=Ee(b.Ab+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.ya,plid:c.playbackId,ei:c.G,ptk:c.K,oid:c.Ao,ptchn:c.zo,pltype:c.Bo,content_v:b.K}),
Wf(b));if(a.j.j.Do&&a.j.k.he&&!a.o){var b=a.j.k,c=a.j.j,d={noflv:1,video_id:c.videoId,cpn:c.ya,el:b.ca,ps:b.k,referrer:kZ(b),eurl:b.D,framer:b.O,fmt:c.k?c.k.id:0,ptk:c.K,subscribed:c.subscribed,t:c.tv};b.autoplay&&(d.autoplay="1");c.yd&&(d.splay="1");0<c.startSeconds&&(d.start=1E3*c.startSeconds);c.Wh&&(d.tmi="1");b=Ee(a.j.k.Ab+"get_video",d);Wf(b)}a.j.j.Yh&&(a.fi("playback"),a.B||v0(a));a.j.j.de||s0(a);a.o=!0;a=a.k;a.j=a.k.o();a.B=a0(a.k);.5<a.j-a.o&&(a.o=a.j)}M(x(this.Dk,this),4500)}this.publish("playbackstarted");
this.o&&(this.o.ha=!0);Dx()&&Hx();return!0}return!1};
function k1(a){var b=z(),c=a.getCurrentTime(),d=a.j;if(!vx("pbs",a.F.j)){var e=1E3*(c-d.startSeconds);0>e&&(e=0);UY(a.F,"pbs",b-e);ox.measure&&ox.getEntriesByName&&(ox.getEntriesByName("mark_navigation_requested")[0]?ox.measure("measure_above_the_fold","mark_navigation_requested"):ox.measure("measure_above_the_fold"))}d.videoId&&a.F.info("docid",d.videoId);d.G&&a.F.info("ei",d.G);d.ya&&a.F.info("cpn",d.ya);0<d.startSeconds&&a.F.info("start",d.startSeconds.toString());a.k&&ds(a.k)&&a.F.info("paused",
1);d.k?a.F.info("fmt",d.k.id):a.F.info("fmt","-1");d.Fa&&a.F.info("yt_pre",a.Ba?"2":"1");a.C.Za&&a.F.info("yt_fs","1");a.F.info("tds",Math.round(i1(a)*a.Oc()).toString());a.F.info("cmt",c.toFixed(3));if(a.o){b=a.o;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.X),c.length&&(c=c[0],l_(b,"vri",c.fetchStart),l_(b,"vdns",c.domainLookupEnd),l_(b,"vreq",c.requestStart),l_(b,"fvb",c.responseStart),l_(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.N),
c.length&&(c=c[0],l_(b,"ari",c.fetchStart),l_(b,"adns",c.domainLookupEnd),l_(b,"areq",c.requestStart),l_(b,"avb",c.responseStart),l_(b,"arc",c.responseEnd)));var b=b.ja,g;for(g in b)rx(g,b[g],a.F.j)}}f.Zw=function(){this.wa&&(this.W.Aa(this.wa),this.wa=void 0,es(this.k))};
function h1(a,b){if(a.k&&a.j){var c=a.getCurrentTime();if(c<zr(a.j))N0(a,f1(a),!0);else{if(a.o){var d=a.o;if(d.j){d.resume();if(d.K&&!au(d.j)){var e=d.A<=c&&c<d.A+10,g=0<=Kr(d.j.j.buffered,d.A+h_.j)&&0<=Kr(d.j.k.buffered,d.A+h_.j);e&&g&&(d.K=!1)}d.K||(d.A=c);i_(d)}}UI(a.j)&&c>a.Oc()&&(d=a.Oc(),0==d&&(d=c),I0(a,1.2*d));5<c&&(a.j.startSeconds=c);(d=Dx())?Gx(a.ha):N(a.ha);ds(a.k)||(e=x(a.Gy,a),a.ha=a.k.played&&0==a.k.played.length?d?Ex(e,100):M(e,100):d?Ex(e,500):M(e,500));a.j.Kh=c;!b&&a.ib()&&a.B&&
(d=a.B,d.k.update(),d.j.j.lengthSeconds&&d.j.j.de&&!d.N&&Z_(d.k)>=d.j.j.de&&(d.o&&d.j.j.de&&(e=o0(d,"delayplay"),e.Hy=!0,e.send(),d.N=!0),s0(d)),e=d.O,!e.A&&e.j.he&&!e.j.Xh&&e.k.lengthSeconds&&Z_(e.B)>=e.k.Kp&&d.O.send());a.publish("progresssync",a,b);a.j.Iy=c}}}f.Gy=function(){if(this.k){if(W(this.A,8)&&ms(this.ua,this.getCurrentTime(),Date.now(),Nr(this.k.buffered,this.k.getCurrentTime()))){var a=this.Oc();a&&1>Math.abs(a-this.k.currentTime)?this.df():E0(this,ns(this.A,1))}h1(this)}};
function E0(a,b){var c=a.A;if(b.k!=c.k||b.j!=c.j){c=new y0(b,a.A);a.A=b;0>tv(c,8)&&(N(a.da),J0(a,!1));0<tv(c,32)&&J0(a,!1);UI(a.j)&&W(c.state,2)&&(I0(a,a.getCurrentTime()),h1(a,!0));a.B&&u0(a.B,c);var d=a.D;if(d.vg&&!d.ki)if(ys(d),W(c.state,2)){d.B=null;for(var e=[],g=0;g<d.k.length;g++){var h=d.k[g];h.active&&2147483647>h.end&&e.push(h)}g=Gr(d.j,2147483646);g=g.concat(Hr(d.j,2147483646));e=xs(d,e).concat(ws(d,g));zs(d,e)}else W(c.state,16)?(d.o=vs(d),d.A.stop(),d.A.start(),d.qc()):(d.A.stop(),W(c.j,
16)?(d.o=vs(d),null!=Ir(d.j,Math.max(d.o-2E3,0))&&(d.Eg=fn(x(d.qc,d)))):d.qc());a.publish("statechange",c)}}f.gz=function(){this.j.Va||this.publish("connectionissue")};f.Mv=function(){cs(this.k,Math.max(0,this.k.currentTime+.1))};function j1(a){W(a.A,2)||W(a.A,32)||(a.J=NaN)}function J0(a,b){a.j.wb&&a.la!=b&&(a.la=b,a.publish("liveviewshift",b))}function X0(a,b){l1(a,b);a.C.gb?M(x(function(){es(this.k)},a),0):es(a.k)}
function l1(a,b){rx("vta",void 0,a.F.j);as(a.k,b);a.H&&!b.j&&(a.H=null);if(qE(a.j)){var c=qE(a.j);if(c&&!a.G&&a.k){var d=a.j.k.mimeType;if(c=ft(a.k,d,c)){a.G=new L_(a.k,c);a.G.subscribe("newsession",a.$z,a);a.G.subscribe("licenseerror",a.Wz,a);a.G.subscribe("qualitychange",a.Xz,a);a.G.subscribe("heartbeatparams",a.Zz,a);var e=a.G,g=a.j.C;e.A=g;e.publish("oauthtoken",g);R(a,a.G);a.k.canPlayType(d,c.j)}else sv(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}}a.H&&Jx();N(a.da);a.da=M(x(a.Yz,
a),15E3)}function C0(a){a.G&&(a.G.dispose(),a.G=null)}f.$z=function(a){var b={};qa(b,this.C.o);b.cpn=this.j.ya;this.j.F&&(b.vvt=this.j.F);this.C.Wa&&(b.authuser=this.C.Wa);this.C.pageId&&(b.pageid=this.C.pageId);Zb(a.B,b);ur(a,a.C);this.publish("newlicensesession",a)};f.Wz=function(a,b,c){sv(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.Xz=function(){Oq(this,"r");D0(this)};f.Zz=function(a){this.publish("heartbeatparams",a)};f.Yz=function(){if(this.B)this.B.onError("qoe.start15s");this.publish("loadsofttimeout")};
function I0(a,b){a.j.lengthSeconds!=b&&(a.j.lengthSeconds=b,D0(a))}f.Dk=function(){if(!this.ia){var a=new O_(this.j),b;"c1a"in a.o?(b=r("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)M(x(this.Dk,this),4500);else{var c;if(a.j&&a.j.ha){b=[a.j.ha];for(c in a.k)if(a.o[c]&&a.k[c]){var d=a.k[c](a.o);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.B&&(a=this.B,a.K||(b=o0(a,"atr"),b.D=c,b.send(),a.K=!0),this.ia=!0)}}};
function f1(a){if(!a.k)return 0;if(a.o){var b=v_(a.o);return Math.max(b,zr(a.j))}a=a.k;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}f.sv=function(){return this.k?this.k.playbackRate:1};var m1={OJ:0,NJ:-1,kI:-2};function n1(a){this.j=a}f=n1.prototype;f.Fk=function(){return eP(this.j)};f.Gk=function(){return this.j.A};f.Af=function(){return this.j.A};f.$i=function(){var a=this.j.o;return null!=a?a:new HO};f.xg=function(){var a=this.j;null!=a.j&&a.j.show()};f.mi=function(){};f.hn=function(){return this.j.C};f.sm=function(){return!1};f.Ni=function(){return this.j.F};f.hide=function(){};function CW(a,b){Xl.call(this,"adsManagerLoaded");this.o=a;this.A=b}B(CW,Xl);function o1(a,b,c,d){a.o.Pc(new n1(b),c,d);return a.o};function p1(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function q1(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null;c?b.error_code=c:(c=("getMessage"in a&&ia(a.getMessage)?a.getMessage():a.message)||"",50<c.length&&(c=c.substring(0,47)+"..."),b.error_message=c)}}function r1(a,b){if(a){var c=PS(a);if(c){var d=QS(a)||[];b.ad_id=ob(d,c).join(",");if(c=JS(a))d=SS(a)||[],b.ad_sys=ob(d,c).join(",");fT(a)?b.survey=1:GS(a)&&(b.skip=1)}}}
function s1(a,b){if(a[b])return p1(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return p1(a[d]);return!1}function t1(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};function u1(a,b,c,d){this.A=a;this.B=b;this.j=c;this.C=d}u1.prototype.o="";u1.prototype.k="";function v1(a){var b={};b.l_ns=a.B;b.l_state=a.C;b.sst=a.A;b.sidx=0;a.o&&(b.at=a.o);a.k&&(b.ad_id=a.k);return b};var w1=!1;function x1(){window.google_ad_output="html";window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"}function y1(){var a=r("window.google_show_companion_ad");ia(a)?a():w1=!0}function z1(){var a=r("yt.www.watch.ads.setCompanion");a&&a()}function A1(a){var b=r("yt.www.watch.ads.showForcedMpu");b&&b(a)}zi("showCompanionAdLoaded",function(){w1&&(y1(),w1=!1)});function B1(a,b){this.k=a;this.j=b}function C1(a){return a.j-a.k}function D1(a,b){return a.k+b*C1(a)}function E1(a,b){return C1(a)?Fc((b-a.k)/C1(a),0,1):Infinity};function F1(a,b,c){Q.call(this);this.o=a;c||(G1(this,!0),a.hide());this.B=b;this.j=null;this.A=!1;this.k=new zv(this.dm,0,this);R(this,this.k)}B(F1,Q);f=F1.prototype;f.show=function(a,b){this.A=!!a;1==this.j||2==this.j||3==this.j&&a||(4==this.j||3==this.j?a||(this.o.show(),G1(this,!1),this.j=null,this.k.stop()):(G1(this,!this.A),this.j=1,b?this.k.start(b):this.dm()))};f.hide=function(){3!=this.j&&(1==this.j||2==this.j?(this.o.hide(),this.j=null,this.k.stop()):(G1(this,!0),this.j=3,this.k.start(this.B)))};
f.dm=function(){switch(this.j){case 1:this.o.show();this.j=2;this.k.start(10);break;case 2:G1(this,this.A);this.A?(this.j=3,this.k.start(this.B)):this.j=null;break;case 3:this.o.hide();G1(this,!1);this.j=4;this.k.start(0);break;case 4:this.j=null}};function G1(a,b){var c=a.o.M();b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")}f.stop=function(){for(;null!=this.j&&4!=this.j;)this.k.stop(),this.dm()};f.L=function(){this.o.ea()||this.o.M().removeAttribute("aria-hidden");F1.I.L.call(this)};function H1(a,b,c,d){var e=Math.min(c/(b.mu/b.Cb),d/(b.lu/b.rows)),g=b.mu*e,e=b.lu*e,g=Math.floor(g/b.Cb)*b.Cb,e=Math.floor(e/b.rows)*b.rows,h=g/b.Cb,k=e/b.rows,l=Math.floor((c-h)/2);c=Math.ceil((c-h)/2);var p=Math.floor((d-k)/2);d=b.mF*h*-1;var t=b.row*k*-1;a=a.style;a.width=h+"px";a.height=k+"px";h=p+"px";a.marginTop=h;a.marginBottom=h;a.marginLeft=l+"px";a.marginRight=c+"px";a.backgroundImage="url("+b.url+")";a.backgroundPosition=d+"px "+t+"px";a.backgroundSize=g+"px "+e+"px"};function I1(){this.k=this.j=null}function Y(a,b,c){return If(b,c,void 0)}f=I1.prototype;f.pf=function(a,b){this.j&&this.j.pf(a,b)};f.sg=function(a,b,c){this.j&&this.j.sg(a,b,c)};f.wn=function(a){this.j&&this.j.wn(a)};f.ob=function(){return this.k.ob()};f.cb=function(){return this.k.cb()};function J1(a,b){S.call(this);this.A=!!b;this.k=a;this.j=new xv(this);this.o=this.B=null;b&&Rc&&a.setAttribute("draggable","true");K1(this)}B(J1,S);function K1(a){a.o=null;a.B=null;a.j.listen(a.k,L1("over"),a.zA);a.j.listen(a.k,"touchstart",a.AA)}f=J1.prototype;
f.zA=function(a){this.j.removeAll();this.j.listen(this.k,L1("move"),this.$r);this.j.listen(this.k,L1("out"),this.as);this.A&&this.j.listen(this.k,L1("down"),this.Zr);this.publish("hoverstart",qh(a),rh(a),a.target);this.publish("hovermove",qh(a),rh(a),a.target)};f.$r=function(a){this.o&&qh(this.o)==qh(a)&&rh(this.o)==rh(a)&&this.o.relatedTarget==a.target||this.publish("hovermove",qh(a),rh(a),a.target);this.o=null};
f.as=function(a){a.relatedTarget&&Nd(this.k,a.relatedTarget)?(this.o=a,this.publish("hovermove",qh(a),rh(a),a.relatedTarget)):(this.j.removeAll(),K1(this),this.publish("hoverend",qh(a),rh(a),a.relatedTarget))};
f.Zr=function(a){ha(a.button)&&0!=a.button||(this.j.removeAll(),this.j.listen(document,L1("move"),this.zD),this.j.listen(document,L1("up"),this.AD),Rc?this.j.listen(this.k,"dragstart",this.yD):a.preventDefault(),this.publish("dragstart",qh(a),rh(a),a.target),this.publish("dragmove",qh(a),rh(a),a.target))};f.yD=function(a){a.preventDefault()};f.zD=function(a){var b=a.target==document?null:a.target;this.publish("hovermove",qh(a),rh(a),b);this.publish("dragmove",qh(a),rh(a),b)};
f.AD=function(a){this.j.removeAll();a.target&&Nd(this.k,a.target)?(this.j.listen(this.k,L1("move"),this.$r),this.j.listen(this.k,L1("out"),this.as),this.j.listen(this.k,L1("down"),this.Zr),this.publish("dragend",qh(a),rh(a),a.target)):(K1(this),this.publish("dragend",qh(a),rh(a),a.target),this.publish("hoverend",qh(a),rh(a),a.target))};
f.AA=function(a){var b=a.changedTouches[0];b&&(this.j.removeAll(),this.j.listen(this.k,"touchmove",this.EA),this.j.listen(this.k,"touchend",this.mr),this.j.listen(this.k,"touchcancel",this.mr),this.B=b.identifier,this.publish("hoverstart",b.pageX,b.pageY,a.target),this.publish("hovermove",b.pageX,b.pageY,a.target),this.A&&(this.publish("dragstart",b.pageX,b.pageY,a.target),this.publish("dragmove",b.pageX,b.pageY,a.target)))};
f.EA=function(a){var b=M1(this,a);b&&(a.preventDefault(),this.publish("hovermove",b.pageX,b.pageY,a.target),this.A&&this.publish("dragmove",b.pageX,b.pageY,a.target))};f.mr=function(a){var b=M1(this,a);b&&(a.preventDefault(),this.j.removeAll(),K1(this),this.A&&this.publish("dragend",b.pageX,b.pageY,a.target),this.publish("hoverend",b.pageX,b.pageY,a.target))};function M1(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.B)return d}return null}
function L1(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.L=function(){this.j.removeAll();J1.I.L.call(this)};function N1(a,b,c,d){this.width=b;this.k=c;this.B=d;this.j=b-c-d;this.A=Fc(a-c,0,this.j);this.position=this.A+c;this.o=this.A/this.j};function O1(){X.call(this,["div","ytp-progress-tooltip",["div","ytp-progress-tooltip-thumbnail-container",["div","ytp-progress-tooltip-thumbnail"]],["div","ytp-progress-tooltip-text-container",["div","ytp-progress-tooltip-text","{{text}}"]],["div","ytp-progress-tooltip-timestamp-container",["div","ytp-progress-tooltip-timestamp","{{timestamp}}"]],["div","ytp-progress-tooltip-arrow"]]);this.o=this.template.j["ytp-progress-tooltip-arrow"];this.j=-1;this.ha="";this.k=new B1(0,0);this.hide()}B(O1,X);
f=O1.prototype;f.Ji=!1;f.Ce=null;f.Mg=null;f.disable=function(){this.Ji=!0};f.show=function(){this.Ji||O1.I.show.call(this)};function P1(a){Zg(a.M(),"with-thumbnail");a.Ce=null;a.Mg=null;a.template.j["ytp-progress-tooltip-thumbnail"].removeAttribute("style")}f.Ry=function(a,b){a<=this.j&&this.j<=b&&Q1(this)};function Q1(a){var b=AI(a.Mg,a.j,108);H1(a.template.j["ytp-progress-tooltip-thumbnail"],b,108,60)}f.L=function(){this.o=this.Mg=this.Ce=null;O1.I.L.call(this)};function R1(a,b){var c;c=a.ob().width;var d=["div","ytp-progress-bar-container",["div",["html5-progress-bar","ytp-force-transform"],{tabindex:6250,role:"slider","aria-label":If("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-unloaded-progress"],["div","ytp-play-progress"],["div","ytp-load-progress"],["div","ytp-spacecast-load-progress"],
["div","ytp-hover-progress"],["div","ytp-clip-start-exclude"],["div","ytp-clip-end-exclude"],["div","html5-ad-progress-list"],["div","ytp-marker-crenellation-list"],["div","ytp-marker-progress-list"]],["div","ytp-scrubber-pull-indicator"]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div",["ytp-clip-start","html5-clip-marker","yt-uix-tooltip"],{title:If("YTP_TOOLTIP_CLIP_MARKER")}],["div",["ytp-clip-end","html5-clip-marker","yt-uix-tooltip"],
{title:If("YTP_TOOLTIP_CLIP_MARKER")}]];tE.call(this,d);this.B=c;this.D=1;this.N=this.U=this.A=this.Ja=this.K=0;this.ia=this.template.j["html5-ad-progress-list"];this.ub=this.template.j["ytp-marker-progress-list"];this.Fa=this.template.j["ytp-marker-crenellation-list"];this.J={};this.R={};this.P=Infinity;this.W=this.template.j["ytp-clip-end"];this.la=new J1(this.W,!0);R(this,this.la);this.la.subscribe("hoverstart",this.Io,this);this.la.subscribe("hoverend",this.Ho,this);fv(this,this.W,"click",this.wk);
this.ja=this.template.j["ytp-clip-end-exclude"];this.Ba=this.template.j["ytp-clip-start-exclude"];this.O=0;this.$=this.template.j["ytp-clip-start"];this.ma=new J1(this.$,!0);R(this,this.ma);this.ma.subscribe("hoverstart",this.Io,this);this.ma.subscribe("hoverend",this.Ho,this);fv(this,this.$,"click",this.wk);this.wa=this.template.j["ytp-unloaded-progress"];this.ua=this.template.j["ytp-load-progress"];this.H=0;this.xa=this.template.j["ytp-play-progress"];this.C=0;this.G=this.template.j["html5-progress-bar"];
this.k=this.o=null;this.da=new X(["div","html5-scrubber-button"]);R(this,this.da);this.da.Y(this.G);this.vb=this.template.j["ytp-scrubber-pull-indicator"];this.Xa=0;this.na=!1;this.oa=new Gc;this.j=new B1(0,0);this.hb=!1;this.V=b;S1(this)}B(R1,tE);f=R1.prototype;f.My=function(){this.k&&this.k.show()};
f.Oy=function(a,b,c){var d=Ag(this.M()),e=T1(this).j,g=c?c.getAttribute("data-tooltip"):void 0;g&&(a=E1(this.j,Number(c.getAttribute("data-position")))*e+Ag(this.G).x);this.oa.x=a-d.x;this.oa.y=b-d.y;b=this.hb?this.j.j:0;d=T1(this);this.k&&(a=this.k,a.Ji||(c=50,a.Ce?(c=108,g&&(c*=2)):g&&(c=108),a.M().style.padding="2px",a.M().style.width=c+"px",e=c/2+2,e=(new N1(d.position,d.width,e,e)).position-e,a.M().style.left=e+"px",a.o.style.left=Fc(d.position,0,d.width)-e-5+"px",d=D1(a.k,d.o),a.ra(gv(d-b),
"timestamp"),a.Ce&&(b=fI(a.Ce,c),b=a.Ce.j[b].yi(d),0<b&&b!=a.j&&(a.j=b,Q1(a))),g?(O(a.M(),"with-text"),a.ra(g,"text")):Zg(a.M(),"with-text")))};f.Ny=function(){this.k&&this.k.hide()};f.Ly=function(a,b,c){a=U1(this);this.Xa=a.k-T1(this).o*(a.k+a.B);this.k&&this.k.hide();this.A&&(Ff(this.A),this.A=0);this.Ja=b;this.na=!0;this.publish("beginseeking",parseFloat(c.getAttribute("data-position")))};
f.Py=function(){this.U=0;Zg(this.M(),"ytp-pull-ui");Zg(this.M(),"ytp-pulling");if(0<this.K){var a=z(),b=this.K,c=T1(this).position;this.A&&Ff(this.A);this.A=dv(x(this.$s,this,a,b,c),0)}this.k&&this.k.show();this.na=!1;this.publish("endseeking")};f.$s=function(a,b,c){var d;d=(z()-a)/200;d=1-Math.pow(1-d,3);var e=c+d*(this.C*this.B-c);if(0>d||1<d)d=1;V1(this,(1-d)*b,e,this.C);this.A=1>d?dv(x(this.$s,this,a,b,c),0):0};
function V1(a,b,c,d){b=Fc(b,0,40);a.K=b;var e=a.D,g=Math.max(C1(a.j)/a.B,1);a.D=b/40*(g-1)+1;b=a.B*a.D;a.N=Fc(d*b-c,0,b-a.B);e!=a.D&&S1(a)}
f.Qy=function(a,b){var c=!1,d=!1,e=T1(this);3600<=C1(this.j)&&(V1(this,this.Ja-b-10,e.position,e.o),d=!0,c=4<this.K,e=T1(this));ah(this.M(),"ytp-pull-ui",d);c&&O(this.M(),"ytp-pulling");c=0;e.k&&0>=e.position?c=-1:e.B&&e.position>=e.width&&(c=1);!this.A||c&&c==this.U||N(this.A);c&&(this.A=dv(x(this.Lp,this,z(),this.N),0));this.U=c;this.publish("seekto",D1(this.j,e.o),!1)};
f.Lp=function(a,b){if(this.U){var c=this.B*(this.D-1);this.N=Fc(b+this.U*(z()-a)*.3,0,c);S1(this);this.publish("seekto",D1(this.j,T1(this).o),!1);0<this.N&&this.N<c&&(this.A=dv(x(this.Lp,this,a,b),0))}};
function S1(a){var b=T1(a),c=Id(a.Fa),d=0;if(8<a.K)for(var e=(-b.k+b.width)/b.j*(C1(a.j)/60),g=Math.ceil(-b.k/b.j*(C1(a.j)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),a.Fa.appendChild(h));d++;h.className=0==g%60?"ytp-60m-progress":0==g%30?"ytp-30m-progress":0==g%15?"ytp-15m-progress":"ytp-1m-progress";h.style.left=60*g/C1(a.j)*b.j+"px"}for(e=c.length-1;e>=d;e--)Gd(c[e]);c=(-b.k+b.width)/b.j;a.ra(gv(D1(a.j,-b.k/b.j)),"boundTimeLeft");a.ra(gv(D1(a.j,c)),"boundTimeRight");a.G.style.width=
b.j+"px";a.M().style.height=a.K+(a.V?20:8)+"px";b=b.k;pg(a.G,"transform",b?"translatex("+b+"px)":"");a.da.M().style.height=a.K+(a.V?12:6)+"px";for(var k in a.J)W1(a,a.J[k],a.R[k]);X1(a);Y1(a,a.C,a.H)}function Z1(a){var b=Math.floor(a.j.j),c=Math.floor(D1(a.j,a.C));a.template.update({ariamin:Math.floor(a.j.k),ariamax:b,arianow:c,arianowtext:If("YTP_PROGRESS_LABEL",{PLAY_PROGRESS:c,DURATION:b})})}
function T1(a){var b=a.oa.x;if(a.na)var c=a.V?32:16,b=(b+a.Xa-c/2)/(a.B-c)*a.B;c=a.B*a.D;b=Fc(b,0,a.B);return new N1(b,a.B,-a.N,-(c-a.N-a.B))}function U1(a){var b=a.V?32:16,c=a.B*a.D;return new N1(a.C*(c-b)+b/2,c,b/2,b/2)}
function Y1(a,b,c){if(b<a.O||b>a.P)a.wk();else{a.C=b;a.H=Math.max(a.C,c);Z1(a);var d=E1(a.j,a.O),e=E1(a.j,a.P),g=Fc(b,d,e);c=Fc(c,d,e);var h=g;g<e&&(h=a.B*a.D,h=(g*h-g)/h);a.xa.style.left=hv(d)+"%";pg(a.xa,"transform","scalex("+(h-d)+")");g=a.da.M();h=U1(a).position+"px";g.style.left=h;pg(g,"transformOrigin",hv(b)+"%");a.vb.style.left=h;a.ua.style.left=hv(d)+"%";pg(a.ua,"transform","scalex("+(c-d)+")");a.wa.style.left=hv(d)+"%";pg(a.wa,"transform","scalex("+(e-d)+")")}}
function X1(a){var b=a.O>a.j.k,c=0<a.j.j&&a.P<a.j.j;ah(a.M(),"ytp-clip-start-enabled",b);ah(a.M(),"ytp-clip-end-enabled",c);b=b?E1(a.j,a.O):0;c=c?E1(a.j,a.P):1;a.$.style.left=hv(b)+"%";a.W.style.left=hv(c)+"%";a.Ba.style.width=hv(b)+"%";a.ja.style.left=hv(c)+"%";a.ja.style.width=hv(1-c)+"%"}f.Io=function(){O(this.M(),"ytp-clip-hover")};f.Ho=function(){Zg(this.M(),"ytp-clip-hover")};f.wk=function(){this.O=0;this.P=Infinity;X1(this);Y1(this,this.C,this.H)};
function W1(a,b,c){var d=T1(a).j,e=E1(a.j,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=rs(b);var g=a/2,d=Fc(e,g,d-g)-g;break;default:a=Math.min(Math.min(E1(a.j,b.end/1E3)*d,d)-e,rs(b)),d=Fc(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function $1(a,b){E(b,function(a){if(a.visible){var b=a.getId();if(!this.J[b]){var e=document.createElement("div");a.tooltip&&(e.setAttribute("data-tooltip",a.tooltip),e.setAttribute("data-position",a.start/1E3));this.J[b]=a;this.R[b]=e;W1(this,a,e);"ytp-chapter-marker"==a.style?this.ub.appendChild(e):this.ia.appendChild(e)}}else a2(this,a)},a)}function b2(a,b){E(b,function(a){a2(this,a)},a)}function a2(a,b){var c=b.getId();a.J[c]==b&&(Gd(a.R[c]),delete a.J[c],delete a.R[c])}
f.L=function(){this.A&&(N(this.A),this.A=0);this.o&&(this.o.dispose(),this.o=null);this.ua=this.$=this.Ba=this.W=this.ja=this.ia=null;this.R={};this.wa=this.G=this.xa=null;this.V=!1;R1.I.L.call(this)};function c2(a,b,c,d){S.call(this);this.j=a;this.type=b+"_"+c;this.k=d;this.o=null;this.J=c}B(c2,S);c2.prototype.B=function(){return this.type};c2.prototype.getCurrentAd=function(){return this.k?this.k.getCurrentAd():null};function d2(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=u;this.skipTime=0;this.videoUrl=this.videoId=""};function e2(a){this.j=a}var f2=[1,2];function g2(a){switch(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}
function h2(a){switch(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}};function i2(a,b){this.j=a;this.A=b}i2.prototype.B=null;i2.prototype.k=NaN;function j2(a,b,c){a.j.publish("AD_LOGGING_EVENT",b,c)}function k2(a){l2(a);var b=m2(a);if(a.o){var c=n2(a.A),d=a.o.y-c.top,d=Math.round(a.o.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}j2(a,15,b)}function o2(a){l2(a);var b=m2(a);if(isNaN(a.k))l2(a);else{var c=z()-a.k;b.ad_stl=c}j2(a,4,b)}function p2(a){l2(a);var b=m2(a),c=a.j.Dn();c?b.ad_fmt=c:l2(a);j2(a,5,b)}
function q2(a){var b=m2(a),c=a.j.Dn();c?b.ad_fmt=c:l2(a);j2(a,14,b)}function m2(a){var b={},c=a.j.o,d=a.j.Vi(),e=a.j.Tl();r1(a.j.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);c&&c.videoId?b.ad_v=c.videoId:e&&(c=oj(e),b.ad_dom=c,a.A.fa.A&&(b.ad_v_url=e.substr(0,512)));e=a.j;(e=e.k?e.k.Ef():null)&&(b.ad_cpn=e);b.at=a.j.B();return b}function l2(a){a.B||(a.B="InstreamAdDisplay ("+a.j.B()+")")};function r2(a,b,c,d,e,g){c2.call(this,b,a,2,c);this.j.subscribe("onVolumeChange",this.Zp,this);this.j.subscribe("control_toggle_play_pause",this.$p,this);this.j.subscribe("control_play",this.Ml,this);this.j.subscribe("control_pause",this.Ll,this);this.H=d;this.C=new i2(this,this.j);this.A=new xv(this);this.G=this.D=!1;this.F=0;this.N=e;this.K=!!g}B(r2,c2);r2.j=2E3;f=r2.prototype;f.Rb=null;f.Vf=!1;f.Sg=null;f.Rg=null;f.Tg=null;
f.show=function(){this.C.k=z();var a;if(a=this.H){var b=nj(a),b=b.v||b.video_id;if(!b){var c=xe(ue(a)[5]||null).match(/^\/watch\/([^\/]*)$/i);c&&(b=c[1])}b||(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),null!=a&&1<a.length&&(b=a[1]));a=b?new rr({video_id:b,dash:"0"}):null}else a=null;this.o=a;var d;a=new d2;a.isSkippable=this.N;a.skip=x(this.Cy,this);a.skipShown=x(this.k.Dl,this.k);if(b=this.getCurrentAd())a.clickThroughUrl=cT(b)||"",a.skipTime=ZS(b,dT(b))||0;this.o?(this.o.yd=!0,d={video_id:this.o.videoId},
a.videoId=this.o.videoId,this.o.subscribe("onStatusFail",this.Up,this),this.o.subscribe("dataloaded",this.Tp,this),b=this.j.S(),b=new dZ(b.A),b.ca="adunit",b.autoplay=!0,b.C=this.type,b=hZ(b,this.o,this.j.app.k.ob()),SI(this.o,b)):(this.H&&(a.videoUrl=this.H),s2(this));this.D||(t2(this.j,-1,d,a),this.mp())};f.Cy=function(){this.j.A.o.T("skip")};function u2(a){a.o&&(a.o.unsubscribe("onStatusFail",a.Up,a),a.o.unsubscribe("dataloaded",a.Tp,a))}
f.Tp=function(){u2(this);DF(this.o);var a=new Q_(this.j.S(),this.j.app.k),b=this.o;b.j&&b.j.k.length?(a=wu(this.o.J,S_(a,this.o)))?(a=a.k)?(a=new K(bs(a)),a.j.set("autoplay","1"),this.k.setMediaUrl(a.toString()),s2(this)):v2(this,Error("Failed to determine ad media resource.")):v2(this,Error("Failed to determine ad media format.")):v2(this,Error("No selectable formats."))};
function s2(a){if(Rh||2.2<=Gt&&3>Gt||(Rh||Sh)&&!Vh){var b=z()-a.C.k,b=r2.j-b;a.F=M(x(a.bs,a),Math.max(0,b));O(a.j.Ma(),"ad-interstitial-showing")}else a.bs()}
f.bs=function(){w2(this);this.Rb=x2(this.j,!0);this.Tg=this.j.Ma();if(this.j.fa.D)Gd(pd("video-ad-status-bar"));else{var a=this.j.Ma();this.Sg=pd("video-ad-time-left",a);var a=pd("html5-ad-progress-list",a),b=Ad("div");O(b,"ytp-ad-progress");a.appendChild(b);this.Rg=b;this.A.listen(this.Rb,"timeupdate",this.Sz)}Yg(this.Tg,["ad-showing","ad-interrupting"]);this.A.listen(HE(this.j.k),"mouseup",this.Qz);this.A.listen(this.Rb,"waiting",this.mp);this.j.subscribe("onResize",this.am,this);try{this.A.listen(this.k,
"adError",this.Pz);this.A.listen(this.k,"click",this.Oz);this.A.listen(this.k,"complete",this.Ul);this.A.listen(this.k,"pause",this.Kq);this.A.listen(this.k,"start",this.Lq);this.A.listen(this.k,"skip",this.Rz);this.am();var c=this.j,d=c.k,e=y2(c);d.Z.S().B&&(Eg(d.j,e),ug(d.j,0,0));this.K||this.k.start()}catch(g){v2(this,g)}};f.Lq=function(){this.Vf=!0;this.D=!1;this.G||(this.G=!0,o2(this.C),z2(this.j,1));Os(this.j,!0);t2(this.j,1);this.publish("adPlay",this)};
f.Kq=function(){this.Vf=!1;Os(this.j,!1);t2(this.j,2)};f.Rz=function(){q2(this.C);this.Ul()};f.Ul=function(){this.D||(p2(this.C),this.Vf=!1,this.D=!0,this.G=!1,t2(this.j,0),z2(this.j,0),this.publish("adEnd",this))};f.Pz=function(a){v2(this,a.o)};function v2(a,b){a.Vf=!1;a.D=!0;t2(a.j,0);a.publish("adError",b)}f.Up=function(){u2(this);v2(this,Error("Request to get video data failed."))};f.Oz=function(){k2(this.C);this.publish("select")};f.Qz=function(a){a=new Gc(qh(a),rh(a));this.C.o=a};
f.Sz=function(a){var b=gv(this.k.getRemainingTime());this.Sg.innerHTML=b;b=this.Vi()?this.Rb.getCurrentTime()/this.Vi():0;b=hv(b);this.Rg.style.width=b+"%";this.Rb.ended&&M(x(this.Ul,this,a),50)};f.mp=function(){!this.Vf&&this.G||t2(this.j,3)};
f.L=function(){this.j.unsubscribe("control_toggle_play_pause",this.$p,this);this.j.unsubscribe("control_play",this.Ml,this);this.j.unsubscribe("control_pause",this.Ll,this);this.j.unsubscribe("onResize",this.am,this);this.j.unsubscribe("onVolumeChange",this.Zp,this);this.A.removeAll();u2(this);this.K||this.k.destroy();this.Rb&&(FE(this.j.k),this.Rb=null);w2(this);this.Sg&&(this.Sg.innerHTML="",this.Sg=null);this.Rg&&(Gd(this.Rg),this.Rg=null);this.Tg&&($g(this.Tg,["ad-showing","ad-interrupting"]),
this.Tg=null);this.D=!0;r2.I.L.call(this)};function w2(a){a.F&&(N(a.F),a.F=0,Zg(a.j.Ma(),"ad-interstitial-showing"))}f.Vi=function(){return this.Rb?this.Rb.duration||0:null};f.Dn=function(){return null};f.Tl=function(){return this.Rb&&this.Rb.currentSrc?this.Rb.currentSrc:null};f.Zp=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Fc(a/100,0,1),this.k.setVolume(a))};f.$p=function(){this.Vf?this.Ll():this.Ml()};f.Ml=function(){this.Rb&&(this.k.resume(),this.Lq())};
f.Ll=function(){this.Rb&&(this.k.pause(),this.Kq())};f.am=function(){EE(this.j.k)&&Eg(EE(this.j.k),y2(this.j))};function A2(){this.o=!1;this.k=0;this.j=""};function B2(a,b,c,d,e){c2.call(this,b,a,2,c);this.j.subscribe("control_toggle_play_pause",this.xp,this);this.j.subscribe("control_play",this.Yk,this);this.j.subscribe("control_pause",this.Xk,this);this.D=new i2(this,this.j);this.A=new xv(this);this.C=C2(b);this.C.subscribe("statechange",this.je,this);this.C.subscribe("internalvideodatachange",this.wp,this);this.F=this.G=!1;this.K=d;this.H=!!e}B(B2,c2);f=B2.prototype;f.tj=!1;f.Gg=null;f.Fg=null;f.Hg=null;
f.show=function(){var a=this.j,b=C2(a);D2(a.app,b);this.D.k=z();this.Hg=this.j.Ma();this.C.subscribe("progresssync",this.Cp,this);this.j.fa.D?Gd(pd("video-ad-status-bar")):(a=this.j.Ma(),this.Gg=pd("video-ad-time-left",a),a=pd("html5-ad-progress-list",a),b=Ad("div"),O(b,"ytp-ad-progress"),a.appendChild(b),this.Fg=b);Yg(this.Hg,["ad-showing","ad-interrupting"]);this.j.subscribe("onResize",this.$k,this);try{this.A.listen(this.k,"adError",this.pA),this.A.listen(this.k,"click",this.oA),this.A.listen(this.k,
"complete",this.lA),this.A.listen(this.k,"engagedview",this.mA),this.A.listen(this.k,"pause",this.Pq),this.A.listen(this.k,"start",this.Qq),this.A.listen(this.k,"skip",this.qA),this.A.listen(this.k,"youTubeChannelMetadata",this.nA),this.$k(),this.H||this.k.start()}catch(c){E2(this,c)}};
f.wp=function(a,b,c){if("newdata"==a&&this.o!=c){a={video_id:c.videoId};b=new d2;b.isSkippable=this.K;b.skip=x(this.k.skip,this.k);b.skipShown=x(this.k.Dl,this.k);var d=this.getCurrentAd();d&&(b.clickThroughUrl=cT(d)||"",b.skipTime=ZS(d,c.lengthSeconds)||0);b.videoId=c.videoId;b.videoId||(b.videoUrl=this.Tl()||"");t2(this.j,-1,a,b)}this.o=c};f.je=function(a){a=a.state;W(a,128)&&E2(this,Error(a.j.message||"Video player error."))};
f.Qq=function(){this.tj=!0;this.F=!1;if(!this.G){this.G=!0;o2(this.D);z2(this.j,1);var a=this.j.S();this.j.fa.D&&"3"==a.j&&(a=this.j.app.k,"3"==a.app.S().j&&(a.j.controls=!1))}t2(this.j,1);this.publish("adPlay",this)};f.Pq=function(){this.tj&&(this.tj=!1,t2(this.j,2))};f.lA=function(){p2(this.D);F2(this);this.F=this.G=!1};
function F2(a){var b=new A2;b.o=a.F;b.k=z();a.o&&a.o.ya&&(b.j=a.o.ya);Q0(C2(a.j));t2(a.j,0,b);z2(a.j,0);a.publish("adEnd",a);b=a.j.S();a.j.fa.D&&"3"==b.j&&(a=a.j.app.k,"3"==a.app.S().j&&(a.j.controls=!0))}f.mA=function(){var a=this.D;a.j.publish("AD_LOGGING_EVENT",777,m2(a))};f.qA=function(){this.F=!0;q2(this.D);F2(this)};
f.nA=function(){var a=this.getCurrentAd();if(a){var b=a.K;if((a=a.H)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.j;c.channelTitle=a.k;c.channelVideoCount=a.videoCount;this.j.publish("publish_external_event","onAdMetadataAvailable",c)}}};f.pA=function(a){var b={};try{b.error_code=a.o.getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}var d=this.D;l2(d);var e=m2(d);b&&qa(e,b);e.ad_error=32;j2(d,7,e);E2(this,a.o)};
function E2(a,b){a.C.df();t2(a.j,0);a.publish("adError",b)}f.oA=function(){k2(this.D);this.k.pause();this.publish("select")};f.Cp=function(){var a=this.j.j.Dg();this.j.fa.D||(this.Gg.innerHTML=gv(a.duration-a.current),a=hv(a.current/a.duration),this.Fg.style.width=a+"%")};
f.L=function(){this.j.unsubscribe("control_toggle_play_pause",this.xp,this);this.j.unsubscribe("control_play",this.Yk,this);this.j.unsubscribe("control_pause",this.Xk,this);this.j.unsubscribe("onResize",this.$k,this);this.A.removeAll();this.C.subscribe("statechange",this.je,this);this.C.unsubscribe("internalvideodatachange",this.wp,this);this.C.unsubscribe("progresssync",this.Cp,this);this.H||this.k.destroy();this.Gg&&(this.Gg.innerHTML="",this.Gg=null);this.Fg&&(Gd(this.Fg),this.Fg=null);this.Hg&&
($g(this.Hg,["ad-showing","ad-interrupting"]),this.Hg=null);this.F=!1;var a=this.j;if(a.o){var b=a.app,a=a.o;G2(b);a!=b.o&&D2(b,b.o)}B2.I.L.call(this)};f.Vi=function(){return this.C.Oc()};f.Dn=function(){return this.o&&this.o.k?this.o.k.mimeType:null};f.Tl=function(){return this.o&&this.o.X?bs(this.o.X.k):null};f.xp=function(){this.tj?this.Xk():this.Yk()};f.Yk=function(){this.k.resume();this.Qq()};f.Xk=function(){this.k.pause();this.Pq()};f.$k=function(){Eg(EE(this.j.k),y2(this.j))};function H2(a,b){this.o=a;this.k=b}function I2(a,b,c){a.o.publish("AD_LOGGING_EVENT",b,c)}function J2(a){var b={};r1(a.o.getCurrentAd(),b);a.B&&a.j&&(b.ot=a.j-a.B);var c;c=a.k.isFullscreen()?2:a.k.S().zd?1:0;b.ad_ps=c;b.at=a.o.B();return b};function K2(a,b,c,d){c2.call(this,b,a,1,c);this.C=new H2(this,b);this.A=new xv(this);this.D=!!d}B(K2,c2);f=K2.prototype;f.ld=null;f.Vl=!1;
f.show=function(){if(!this.Vl||!L2(this.j)){var a=this.j.Ma();O(a,"ad-showing");this.ld=EE(this.j.k);a=this.k.getCurrentAd().getHeight();this.ld.style.height=vg(a,!0);O(this.ld,"ad-overlay");this.A.listen(this.ld,"mouseup",this.Kz);try{this.A.listen(this.k,"userClose",this.Hz);this.A.listen(this.k,"click",this.Jz);this.A.listen(this.k,"adError",this.Iz);M2(this,"normal");this.D||this.k.start();var b=this.C;b.B=z();var c=J2(b);I2(b,3,c);this.j.subscribe("onResize",this.Ti,this);this.j.subscribe("onStateChange",
this.pq,this);this.publish("adEnd",this)}catch(d){this.publish("adError",d)}}};f.L=function(){this.A.removeAll();this.j.unsubscribe("onResize",this.Ti,this);this.j.unsubscribe("onStateChange",this.pq,this);var a=this.j.Ma();Zg(a,"ad-showing");this.k&&(this.D||this.k.destroy(),this.k=null);this.ld&&Zg(this.ld,"ad-overlay");this.ld=null;this.Vl=!1;K2.I.L.call(this)};
f.Hz=function(){this.ld&&this.k&&this.k.getCurrentAd()&&(this.ld.style.height=vg(0,!0));this.Vl=!0;var a=this.C;a.j=z();var b=J2(a);I2(a,6,b)};f.Jz=function(){this.j.pauseVideo();var a=this.C;a.j=z();var b=J2(a);if(a.A){var c=n2(a.k),d=a.A.y-c.top,d=Math.round(a.A.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}I2(a,100,b)};f.Kz=function(a){this.C.A=a.target==a.currentTarget?null:new Gc(a.pageX,a.pageY)};f.Iz=function(a){this.publish("adError",a.o)};
f.pq=function(a){W(a.state,16)&&M2(this,"normal")};function M2(a,b){a.F!=b&&(a.F=b)}f.Ti=function(){};function N2(a,b,c,d){Q.call(this);this.N=a;this.k=b.j;this.F=b;this.J=b.getId();this.j=c;this.o=d;this.B=new u1(this.k,this.qe(),c,d);this.C=null;this.K=new ln(this);this.A=new ln(this)}B(N2,Q);N2.j="rm";N2.k=10;N2.C=200;N2.A=200;N2.B=190;N2.o=100;f=N2.prototype;f.Ol=null;
f.load=function(){var a;a=this.j;a=a.fa.A?y2(a):a.app.k.k.ob();var b;this.j.fa.j?b=!1:(b=0<(this.o&3)?N2.B:N2.A,b=a.width<N2.C||a.height<b);if(b){b=this.B;var c=v1(b);c.ck_wh=a.width+"x"+a.height;O2(b.j,14,c);z1();this.we(Error("The player size is too small."))}else if(this.C=this.j.ef){a=this.B;P2(a.j,9,v1(a));a=new HU;(b=this.j.fa.serverPrefetchedVast)&&0<(this.o&3)?(a.adsResponse=b,this.j.fa.serverPrefetchedVast=void 0):a.adTagUrl=this.vf();b=y2(this.j);a.linearAdSlotWidth=b.width;a.linearAdSlotHeight=
b.height;a.nonLinearAdSlotWidth=b.width;a.nonLinearAdSlotHeight=N2.o;a.Xp=iZ(this.j.S());a.j=this.j.S().experiments.experimentIds;if(b=a.Xp?VE(this.j.S()):-1)a.lastActivity=b;this.j.fa.tagForChildDirected&&(a.tagForChildDirectedContent=!0);BE(this.j.S(),"937420")&&(a.Ig=!0);b=jr(this.j.app);a.Tc={"[CONTENT_V]":b.videoId,"[CPN]":b.ya,"[LACT]":Q2(this)};iZ(this.j.S())||(a.Tc["[LACT]"]="-1");this.C.listen("adsManagerLoaded",this.Ep,!1,this);this.C.listen("adError",this.Dp,!1,this);this.Ai(this.C,a)}};
f.Sm=function(){var a=new fL,b=this.j.fa,c=this.j.S();a.baseYouTubeUrl=c.Ab;a.contentId=jr(this.j.app).videoId;a.Bk=BE(c,"927622");a.showContentThumbnail=b.showContentThumbnail;a.surveyCreativeData=b.surveyCreativeData;a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=b.D;a.youTubeAdNamespace=this.qe();b.P&&(a.Ko=!0,a.aE=!0,a.showContentThumbnail=!1,a.Ck=!0,a.Lo=!0,a.useShareButton=!1);return a};f.qe=function(){return this.N};function R2(a){var b=N2.k;a.k=b;a.B.A=b}
function S2(a,b){a.Ol=b;a.B.o=b.B()}function T2(a,b){var c=r("yt.www.watch.ads.setAdId");c&&c(b);a.B.k=b}function U2(a){a=a.k;return 0==a||-1==a?a:1E3*a}function Q2(a){var b=a.j;return{toString:function(){return null==b||b.ea()?b=null:VE(b.S()).toString()}}}
f.Ep=function(a){if(a.A===this){rx("aml");try{var b=this.Sm(),c=a.o}catch(d){this.Td(d);return}this.A.listen(c,"companionBackfill",x(this.EC,this,c));this.A.listen(c,"loaded",x(this.DC,this,c));this.A.listen(c,"adError",x(this.CC,this,c));this.A.listen(c,"allAdsCompleted",u);this.A.listen(c,"contentPauseRequested",u);this.A.listen(c,"contentResumeRequested",u);c=o1(a,this.j.A,{},b);try{c.init("normal")}catch(e){c.destroy(),this.Td(e)}}};
f.DC=function(a,b){this.A.removeAll();var c=b.getAd(),d=ES(c),e=this.B,g=v1(e);g.ad_man=d?"instream":"overlay";P2(e.j,12,g);e=a.getMediaUrl();switch(d?this.Zg(a,c,e):this.Qd(a,c)){case 0:V2(this.F,this.Ol,this.k);break;case 1:a.destroy();this.we(Error("Unable to create a display state."));break;case 2:c=this.B;O2(c.j,21,v1(c));a.destroy();this.we(Error("Fallback to next ad."));break;default:a.destroy()}};f.CC=function(a,b){this.A.removeAll();a.destroy();this.Td(b.o)};
f.Dp=function(a){var b=a.o;"adLoadError"==b.o&&a.A===this&&this.Td(b)};f.EC=function(){y1()};f.Zg=function(a,b,c){T2(this,PS(b));var d;this.j.fa.N?d=new B2(this.qe(),this.j,a,GS(b)):d=new r2(this.qe(),this.j,a,c,GS(b));S2(this,d);return 0};f.Qd=function(a,b){T2(this,PS(b));S2(this,new K2(this.qe(),this.j,a));return 0};f.Td=function(a){if(a){var b=this.B,c=v1(b);a&&q1(a,c);O2(b.j,32,c);this.we(a)}};f.we=function(){W2(this.F)};
f.L=function(){this.C&&(this.C.Aa("adsManagerLoaded",this.Ep,!1,this),this.C.Aa("adError",this.Dp,!1,this));this.K.removeAll();this.A.removeAll();N2.I.L.call(this)};f.Ai=function(a,b){try{QY(a,b,this),rx("ar")}catch(c){this.Td(c)}};function X2(a){this.j=a};function Y2(a){c2.call(this,a,2,3,null);this.A=this.C=0}B(Y2,c2);Y2.prototype.show=function(){var a=r("yt.www.watch.ads.loadAfc");a&&a();this.publish("adEnd",this);this.C=Ef(x(this.D,this),1E3)};Y2.prototype.L=function(){Z2(this);Y2.I.L.call(this)};function Z2(a){a.C&&(Ff(a.C),a.A=0)}Y2.prototype.D=function(){var a=r("yt.www.watch.ads.isAfcAdVisible");this.A++;var b={};b.at=this.B();10<=this.A||!a?(Z2(this),this.publish("AD_LOGGING_EVENT",2,b)):a()&&(Z2(this),this.publish("AD_LOGGING_EVENT",3,b))};function $2(a,b,c){N2.call(this,2,a,b,c);this.D=new X2(this.j.fa);x1()}B($2,N2);$2.prototype.Sm=function(){var a=$2.I.Sm.call(this);a.kt=0==this.J;a.oE=L2(this.j)?a.kt:!0;return a};$2.prototype.vf=function(){var a;var b=this.D;a=U2(this);(b=4==this.o&&b.j.afvInvideoAdTag?b.j.afvInvideoAdTag:b.j.afvAdTag)?(0==b.lastIndexOf("http:",0)&&(b=b.substr(5)),a=qj(b,{videoad_start_delay:a})):a="";return a};
$2.prototype.Qd=function(a,b){if(this.j.fa.j)return 1;0==this.k&&(R2(this),P2(this.j,1));return $2.I.Qd.call(this,a,b)};$2.prototype.we=function(a){var b=this.j.fa;b.j?$2.I.we.call(this,a):b.ja||this.o&4?(S2(this,new Y2(this.j)),V2(this.F,this.Ol,this.k)):$2.I.we.call(this,a)};function a3(a,b){if(a){this.Cu=a;this.zu=b;var c,d=this.Cu,e=d.indexOf(";sz=");c=kj(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{hG:d[0],iG:d[1],jG:c})this.yu=c.hG,this.Au=c.iG,this.Bu=c.jG}}f=a3.prototype;f.Cu="";f.yu="";f.zu=!1;f.Xn="";f.Au="";f.Bu=null;
f.lj=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos=0",d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos=0",d.push("480x361"));b&12&&d.push("480x70");var e=[],g,h;b&12&&(e.push("300x250"),g="watch-channel-brand-div",h=1);0<(b&3)&&(e.push("300x60"),g="watch-longform-ad",h=1);var k=Xb(this.Bu);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.zu&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.Xn||(this.Xn=Math.floor(999999999*Math.random()).toString());
k.ord=this.Xn;d&&d.length&&Tb(k,"sz");e=lj(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.yu,"pfadx",this.Au,";",e,"?"].join("")};function b3(a){this.j=a?a:""}b3.prototype.lj=function(a,b){if(b&1){var c="mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new K(this.j),g=e.j,h=g.get("scp",""),c=(h?h+"&":"")+("pos="+c);g.set("scp",c);g.set("vpos",d);return e.toString()}return this.j};function c3(a,b,c){K2.call(this,1,a,b,c)}B(c3,K2);c3.prototype.Ti=function(){};c3.prototype.B=function(){return"1_3"};function d3(a,b,c){N2.call(this,1,a,b,c);a=this.j.fa;this.P=a.lg?new b3(a.adTag):new a3(a.adTag,a.ia)}B(d3,N2);d3.prototype.vf=function(){return this.P.lj(this.k,this.o)};
d3.prototype.Qd=function(a,b){T2(this,PS(b));var c=null!=b.j?b.j.F:{};if(s1(c,N2.j))return 1==this.o||L2(this.j)||z1(),a.sendImpressionUrls(),this.j.fa.$h?(S2(this,new Y2(this.j)),0):2;if(s1(c,"blockAllAds"))return a.sendImpressionUrls(),S2(this,new c3(this.j,a)),0;if(s1(c,"hideMaster"))return S2(this,new c3(this.j,a)),0;if(this.j.fa.j)return 1;S2(this,new K2(this.qe(),this.j,a));return 0};function e3(a,b,c,d){d3.call(this,a,b,c|d);this.H=c;this.G=d;this.D=null;x1()}B(e3,d3);var f3={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=e3.prototype;f.vf=function(){if(this.j.fa.lg){var a=new b3(this.j.fa.dynamicAllocationAdTag);return a.lj(this.k,this.H)}a=new a3(this.j.fa.dynamicAllocationAdTag,this.j.fa.ia);return a.lj(this.k,this.H)};
f.Ai=function(a,b){if(this.G){b.youTubeAdType=t1(this.G);var c=this.j.fa.$;c&&(b.youTubeExperimentIds=c);b.ph=U2(this)}e3.I.Ai.call(this,a,b)};f.Zg=function(a,b,c){g3(this,a);return 1!=this.D&&2!=this.D?1:e3.I.Zg.call(this,a,b,c)};f.Qd=function(a,b){g3(this,a);switch(this.D){case 1:return e3.I.Qd.call(this,a,b);case 2:var c;this.j.fa.j?c=1:(0==this.k&&(R2(this),P2(this.j,1)),T2(this,PS(b)),S2(this,new K2(2,this.j,a)),c=0);return c;default:return 1}};f.qe=function(){return this.D||0};
function g3(a,b){var c=b.getCurrentAd(),d=SS(c);d.unshift(JS(c));for(c=0;c<d.length;++c){var e=f3[d[c].toUpperCase()];if(e){a.D=e;return}}a.D=0};function h3(a,b){var c=b.fa;this.D=c.Fa;var d=0,c=c.da.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);N2.call(this,2,a,b,d)}B(h3,N2);h3.k="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";h3.o="43";
h3.j=function(a){var b=new zu;yj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,te:function(){Au(b,Error(a+" timed out"))},onError:function(c){Au(b,Error("Problem loading "+a+" with status code "+c.status))},$a:function(a){Eu(b);Cu(b,!0,a)}});return b};h3.prototype.vf=function(){return""};
h3.prototype.Ai=function(a,b){var c=this.o;c&1||c&4||c&8?this.D?c&8?A1(this.D):("goo.gl"==oj(this.D)?(c=h3.j(h3.k+this.D),Gu(c,function(a){a=Yf(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new K(a.longUrl);L(a,"video_format",h3.o);return h3.j(a.toString())},this)):c=h3.j(this.D),Gu(c,function(c){b.adsResponse=c.responseText;QY(a,b,this)},this),Hu(c,null,this.Td,this)):this.Td(Error("Invalid empty URL")):this.Td(Error("Invalid request type: "+
c))};function i3(a,b,c,d){this.j=a;this.A=c;this.o=d;this.B=b;Rh||Sh?this.k="html5_ios":Th?this.k="html5_android":Ur()?this.k="html5_ps3":"leanback"==this.A.ca?this.k="html5_tv_leanback":j3(this)?this.k="html5_desktop":this.k="html5"}var k3="kyvDG3GPNY0 F_HOziu_duk T8uOdgwGUvc Ojs8LzuieSI JzTfd-RlK4M bfHSqiuB_QA b2nJxZl0xEk Bj9O5BESM1o tu3C_TjRpGM FQYmOyuKtwg FEWg27qS_aY 9_edKusM2j0 SbL08XsN9rk u31pf-9Rsjc 64J_K7R7Bu8 wDzg2Eh-TiQ qERY1A8AnM0 B5uvc8NhkwI".split(" ");
function j3(a){return H(k3,a.j.V)||CE(a.A,"952600","952605")&&!a.j.hb};function l3(a,b){K2.call(this,4,a,b)}B(l3,K2);l3.prototype.Ti=function(){};l3.prototype.B=function(){return"4_3"};function m3(a,b,c){N2.call(this,4,a,b,c);this.D=new i3(this.j.fa,jr(this.j.app).lengthSeconds,this.j.S(),c)}B(m3,N2);
m3.prototype.vf=function(){var a;var b=this.D;if(b.j.U&&b.j.V){a={};var c="youtube_watch_"+b.k;a.nw="10613";a.asnw=b.j.U;a.ssnw=b.j.U;a.caid=b.j.V;a.vdur=b.B;a.csid=c;a.resp="vast2";c={};isNaN(b.j.na)||(c._fw_d_001=b.j.na);b.j.ua&&(c._fw_d_002=b.j.ua);b.j.ma&&(c["_fwu:10613:lang"]=b.j.ma);b.j.ha&&(c._fw_dbp=b.j.ha);b.j.oa&&(c._fw_distributorvideoassetid=b.j.oa);c._fw_yt_type=b.j.B?"short":"long";if(j3(b)){a.prof="10613:10613_youtube_html5_2014";a.crtp="youtube";a.flag="+slcb+qtcb+amcb+exvt+emcr";
var d="",e;b.o&1&&(e={slid:"preroll",ptgt:"a",slau:"preroll",tpos:"0"},d=lj(e,"&")+";",e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"},d+=lj(e,"&")+";");b.o&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay",tpos:"10"},d+=lj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=lj(e,"&")+";");b.o&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display"},d+=lj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+lj(a,"&")+
";"+lj(c,"&")+";"+b}else{d="10613:10613_youtube_"+b.k.split("_")[0];a.prof="10613:10613_youtube_"+b.k;a.crtp="vast2s";a.flag="+emcr";e={ptgt:"a",slid:"preroll"};var g="";b.j.C&&!b.j.o?g=";linear-skippable":!b.j.C&&b.j.o&&(g=";video");e.slau="preroll"+g;e.w="480";e.h="360";e.tpos="0";e.tpcl="preroll";e.envp=d;e.cd="1440,900";a="//2975c.v.fwmrm.net/ad/g/1?"+lj(a,"&")+";"+lj(c,"&")+";"+lj(e,"&")}}else a="";return a};m3.prototype.Zg=function(a,b){return 0!=this.k?1:m3.I.Zg.call(this,a,b,null)};
m3.prototype.Qd=function(a,b){var c=null!=b.j?b.j.F:{};if(s1(c,N2.j))return this.F.A=Vb(a),2;if(this.j.fa.j)return 1;if(s1(c,"hideMaster")){if(a.C&&a.C.oe()){var c=a.C.oe(),d;d=a.getCurrentAd();if(OK()){var e=d.O;d.O=[];d=e}else d=[];c.impressionUrls=d}S2(this,new l3(this.j,a));return 0}return m3.I.Qd.call(this,a,b)};function n3(a,b,c){N2.call(this,13,a,b,c)}B(n3,N2);var o3=[{Nm:4,size:"480x70",Jr:"300x250"},{Nm:1,size:"480x360",Jr:"300x60"}];
n3.prototype.vf=function(){var a=new K(this.j.fa.gb,!0),b=this.o,c=o3.filter(function(a){return(b&a.Nm)==a.Nm}),d=c.map(function(a){return a.size}).join("|");L(a,"sz",d);c=c.map(function(a){return a.Jr}).join(",");L(a,"ciu_szs",c);c=4==(this.o&4);1==(this.o&1)?(c||L(a,"vad_type","linear"),c="midroll",0==this.k?c="preroll":-1==this.k&&(c="postroll"),L(a,"vpos",c)):c&&L(a,"vad_type","nonlinear");return a.toString()};function p3(a,b,c){this.o=a;this.j=b;this.k=c||0}p3.prototype.create=function(a,b){switch(this.o){case 1:return new $2(a,b,this.j);case 2:return new d3(a,b,this.j);case 3:return new e3(a,b,this.j,this.k);case 5:return new m3(a,b,this.j);case 4:return new h3(a,b);case 6:return new n3(a,b,this.j);default:return null}};function q3(a){return 0<((a.j|a.k)&3)};function r3(a,b,c,d,e){S.call(this);this.va=b;this.o=a;this.j=c;this.B=d;this.A=this.k=null;this.C=!!e;this.D=NaN}B(r3,S);f=r3.prototype;f.gm=!0;f.qb=!1;f.isVisible=!0;f.Sc="unloaded";f.Fm=!1;f.kb=function(){return 0==this.j?s3(this)&&t3(this)?-2147483648:0:-1==this.j||-2==this.j?2147483647:1E3*this.j};function u3(a){return 0==a.j||-2==a.j?!1:eb(a.B,function(a){switch(a.o){case 1:case 2:case 3:case 6:return!0;default:return!1}})}function s3(a){return"loaded"==a.Sc||"error"==a.Sc}
function t3(a){if(!s3(a))throw Error("Preroll status is undefined before ad load.");return 0==a.j&&a.qb}function W2(a){a.Sc="loading";0==a.j&&!db(a.B,q3)&&Ds(a.o);if(a.C)a.Sc="loaded",a.qb=!0,v3(a);else{var b=a.B.shift();if(b){0==a.j&&w3(a.o,"nl");b=b.create(a,a.o);R(a,b);var c=r("ytplayer.playback_delay");c?a.D=M(x(b.load,b),c):b.load()}else P2(a.o,2,x3(a,{})),y3(a,!1),a.Sc="error",v3(a)}}f.getId=function(){return this.va};
function z3(a){a.k&&(a.k.unsubscribe("adEnd",a.Kt,a),a.k.unsubscribe("adError",a.Nt,a),a.k.unsubscribe("AD_LOGGING_EVENT",a.Lt,a),a.k.unsubscribe("select",a.Mt,a))}function V2(a,b,c){a.k=b;a.j=c;R(a,a.k);0==a.va&&(a.o.C.at=a.k.B());a.k instanceof r2||a.k instanceof B2?a.qb=!0:a.k instanceof Y2?a.isVisible=!1:a.k instanceof l3?a.isVisible=!1:a.k instanceof c3&&(a.isVisible=!1);a.Sc="loaded";v3(a)}function v3(a){a.publish("adBreakComplete",a)}
f.show=function(){this.Fm?this.k instanceof K2&&M2(this.k,"normal"):(this.Fm=!0,(this.k instanceof r2||this.k instanceof B2)&&w3(this.o,"bs"),this.k.subscribe("adEnd",this.Kt,this),this.k.subscribe("adError",this.Nt,this),this.k.subscribe("AD_LOGGING_EVENT",this.Lt,this),this.k.subscribe("select",this.Mt,this),this.k.show(),y3(this,!0))};function y3(a,b){a.A&&(a.A.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.A.dispose(),a.A=null)}
f.Kt=function(){if(this.qb){z3(this);var a=this.o;if(a.fa.la&&!a.Nk){var b=a.S().Ab;Wf(b+"mac_204?action_fcts=1");a.Nk=!0}}v3(this)};f.Nt=function(a){if(a){var b={};q1(a,b);x3(this,b);O2(this.o,32,b)}z3(this);v3(this)};f.Lt=function(a,b){x3(this,b);P2(this.o,a,b)};f.Mt=function(){this.gm=!1};function x3(a,b){b.sst=a.j;b.sidx=0;return b}f.L=function(){z3(this);this.k=null;null!=this.A&&(this.A.dispose(),this.A=null);N(this.D);r3.I.L.call(this)};function A3(a){this.Iw=a}function B3(a){try{var b=BC(a).getElementsByTagName("AdBreak"),c=F(b,function(a){a=a.getAttribute("time");return Ta(a)});return new A3(c)}catch(d){return new A3([0])}};function C3(a){var b=0;if(a.J||a.H)a.J&&(b|=1),a.H&&(b|=2);var c=0;a.B&&(a.G&&(a.afvMergeEnabled&&b?b|=4:c=4),b||(b=c,c=0));a=new je;a.set(3,b);a.set(4,c);return a};function D3(a){this.j=a};function E3(a,b){this.X=a;this.P=this.X.isMobile;this.A="leanback"==this.X.ca;this.j=this.P||this.A;this.D=!this.A&&!(Rh&&!a.H);this.N=a.B&&(!this.j||this.A)||this.P&&!(Rh&&!a.H);this.apply(b);if(this.C&&!this.N)throw"Skippable instreams were enabled without FullPlayerApiSupport";}var F3={LG:"m",GG:"f"};f=E3.prototype;
f.apply=function(a){var b=p1(a.instream),c=p1(a.trueview),d=p1(a.aftv);this.Ra=a.ad_slots;this.W=a.ad_breaks;this.adFlags=a.ad_flags||0;this.$=a.cafe_experiment_id;this.adTag=a.ad_tag;this.vb=!!a.adtest;this.afvAdTag=a.afv_ad_tag;this.xa=G3(this.afvAdTag);this.afvInvideoAdTag=a.afv_invideo_ad_tag;this.afvMergeEnabled=!!a.afv_merge_enabled;this.na=parseInt(a.ad_age,10);this.amsBaseTag=a.ams_base_tag;this.applyFadeOnMidrolls=!!a.apply_fade_on_midrolls;this.Ba=a.cid;this.oa=a.docid||a.video_id||a.videoId;
this.dynamicAllocationAdTag=a.dynamic_allocation_ad_tag;this.excludedAds=a.excluded_ads;this.fadeInDurationMilliseconds=parseInt(a.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=parseInt(a.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=parseInt(a.fade_out_duration_milliseconds,10)||0;this.fadeOutStartMilliseconds=parseInt(a.fade_out_start_milliseconds,10)||0;this.da=a.force_ad_type;this.Fa=a.force_ad_url;this.ua=Ob(F3,function(b){return b==a.ad_gender});this.ha=
a.dbp;this.$h=p1(a.afc_rm_fallback);this.ia=!!a.mpu;this.G=p1(a.afv)&&!this.j;this.H=d&&c;this.J=d&&b&&!p1(a.no_afv_instream);this.K=p1(a.dclk);this.lg=p1(a.gpt_migration);this.wa=1==a.livestream;this.Ga=p1(a.forced_ad)&&!this.j;this.O=1==parseInt(a.tpas_ad_type_id,10);this.Fb=!!a.fqsf;this.o=b;this.F=p1(a.invideo)&&!this.j;this.R=p1(a.mpu)&&!this.j;this.hb=H(this.xa,"yt_mabv");this.la=p1(a.shortform);this.B=p1(a.sffb);this.nk=p1(a.xfp);this.gb=a.xfp_tag;b=AE(this.X,this.A);this.uo=(!this.j||b)&&
!this.O;this.C=c;this.ma=a.ad_language_iso639_2;c=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(c)&&(c=2E3);this.maxDynamicAllocationAdTagLength=c;this.k=parseInt(a.midroll_freqcap,10);isNaN(this.k)&&(this.k=-1);this.midrollPrefetchSize=parseInt(a.midroll_prefetch_size,10)||0;"boolean"==typeof a.show_content_thumbnail&&(this.showContentThumbnail=a.show_content_thumbnail);this.tagForChildDirected=p1(a.tag_for_child_directed);this.serverPrefetchedVast=a.server_prefetched_vast;this.surveyCreativeData=
a.surveyCreativeData;this.ja=d&&this.B&&!this.G;this.Ja=this.G||this.ja;this.ub=parseInt(a.ad_device,10);this.V=a.tpas_video_id;this.U=a.tpas_partner_id;this.vmap=a.vmap;this.Xa=H3(this)};
function H3(a){if(C(D(a.dynamicAllocationAdTag)))return!1;var b=(a.o||a.C)&&a.K;a.B&&a.K&&(b=b||a.F||a.R);if(!b)return!1;b=a.H||a.J;if(!(b||a.B&&a.G))return!1;if(a.serverPrefetchedVast)return!0;var c=a.dynamicAllocationAdTag.length+330+(a.lg?25:102);window.document.referrer&&(c+=va("ref="+va(window.document.referrer)).length);b||(c+=41);return c<=a.maxDynamicAllocationAdTagLength}function G3(a){if(C(D(a)))return[];a=df(new K(a),"channel");return null!=a?a.split("+"):[]}f.applyFadeOnMidrolls=!1;
f.uo=!0;f.$h=!1;f.lg=!1;f.nk=!1;f.showContentThumbnail=!0;function I3(a){Q.call(this);this.j=a;this.k=0;this.B={};a=a.fa;this.C=a.fadeInDurationMilliseconds;this.D=a.fadeInStartMilliseconds;this.o=a.fadeOutDurationMilliseconds;this.A=a.fadeOutStartMilliseconds;this.Mp()}B(I3,Q);f=I3.prototype;f.Mp=function(){this.j.subscribe("beginseeking",this.Vj,this)};f.Vs=function(a,b){return a.qb&&0<a.j?b+this.A+this.o:b};f.Us=function(a,b){return a.qb&&-1!=a.j&&2147483646!=b&&2147483647!=b?b+this.A+this.o:b};
f.Ts=function(a){if(a.qb&&0<a.j&&!(0>=this.o)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=a.kb()+this.A,b=new qs(c,c+this.o-1,b);this.B[a.getId()]=b;this.j.Kd(b)}};function J3(a,b){a.B[b]&&(a.j.bl(a.B[b]),delete a.B[b])}f.Wp=function(a){a.qb&&0<a.j&&(J3(this,a.getId()),this.Vj())};f.Vj=function(){this.k&&(N(this.k),this.k=0);var a=x2(this.j,!1);a.volume=Aq(this.j.app)/100;pg(a,"transition","");pg(a,"opacity","1")};
f.xq=function(a){var b=a.kb()+this.A+this.o,b=50>=1E3*this.j.j.getCurrentTime()-b;a.qb&&0<a.j&&b&&(a=.001*(a.kb()+this.D),this.j.publish("command_seek",a),0>=this.C||(a=x2(this.j,!1),pg(a,"opacity","0"),a.volume=0,M(x(this.qB,this),0)))};f.qB=function(){var a=x2(this.j,!1);pg(a,"transition","opacity "+String(this.C)+"ms linear");pg(a,"opacity","1");K3(this,a,this.C,1)};function K3(a,b,c,d){0>=c||(a.k&&N(a.k),c=z()+c,a.k=0==d?dv(x(a.Zt,a,b,c,100),0):dv(x(a.Ps,a,b,c,100),0))}
f.Zt=function(a,b,c){if(this.k){var d=Math.max(1,b-z()),d=Math.max(0,a.volume+-1*a.volume*c/d);a.volume=d;this.k=0<d?dv(x(this.Zt,this,a,b,c),c):0}};f.Ps=function(a,b,c){if(this.k){var d=Math.max(1,b-z()),e=Aq(this.j.app)/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);a.volume=d;this.k=d<e?dv(x(this.Ps,this,a,b,c),c):0}};f.L=function(){this.Vj();this.j.unsubscribe("beginseeking",this.Vj,this)};function L3(a){I3.call(this,a)}B(L3,I3);f=L3.prototype;f.Mp=u;f.Vs=function(a,b){return b};f.Us=function(a,b){return b};f.Ts=u;f.Wp=u;f.xq=u;f.L=u;function M3(a,b){return b?new I3(a):new L3(a)};function N3(a,b,c){Q.call(this);this.j=a;this.C=b;this.o=c;this.B=this.k=-1;this.o&&0<this.j.fa.k&&this.j.subscribe("endseeking",this.A,this)}B(N3,Q);function O3(a,b){P3(a);0<b&&(a.B=M(x(a.A,a),1E3*b))}function P3(a){-1!=a.B&&(N(a.B),a.B=-1)}
N3.prototype.A=function(){var a=this.j.fa.k;if(this.o&&!(0>=a)){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Eb(this.C.o,function(a){if(a.isVisible&&!(0>=Q3(this,a))){var g;g=a.getId();g=this.C.B[g];if(Q3(this,a)>b){var l=!R3(this,a);l!=g.visible&&(g.visible=l,c.push(g));l||(g=Q3(this,a)-b,g<e&&(e=g,d=a))}else g.visible||(g.visible=!0,c.push(g))}},this);0<c.length&&S3(this.j,c);if(d){var g=0;0<this.k&&(g=z()/1E3-this.k);O3(this,a-g-e+2)}else P3(this)}};
function R3(a,b){if(!a.o||!(0<b.j)&&-1!=b.j)return!1;var c=a.j.fa.k;if(0>=c||0>=a.k)return!1;var d=z()/1E3,e=Q3(a,b)-a.j.j.getCurrentTime();0<e&&(d+=e);return d-a.k<=c}function Q3(a,b){return-1==b.j?a.j.j.getVideoData().lengthSeconds:b.j}N3.prototype.L=function(){P3(this)};function T3(a,b){Q.call(this);this.k=b;this.C=[];this.o={};this.B={};this.j=a;var c=a.fa,d=!c.wa&&db(this.k,function(a){return 0<a.j||-1==a.j});this.D=new N3(this.j,this,d);c=c.applyFadeOnMidrolls&&(c.o||c.C)&&db(this.k,function(a){return 0<a.j});this.A=M3(this.j,c);this.N=db(this.k,function(a){return 0==a.j})}B(T3,Q);f=T3.prototype;f.zc=null;function U3(a){a.C.length||(a.C=bb(a.k,function(a){return"unloaded"==a.Sc}),0==a.C.length?Ds(a.j):(a.N||Ds(a.j),V3(a)))}
function V3(a){if(a.C.length){var b=a.C.shift();b.subscribe("adBreakComplete",a.Jf,a);W2(b)}}f.Jf=function(a){a.unsubscribe("adBreakComplete",this.Jf,this);M(x(this.tG,this,a),0)};
f.tG=function(a){var b=$a(this.k,a),c=this.k[b+1],b=this.k[b-1],d=2147483646;-2==a.j||-1==a.j?d=2147483647:c&&2147483647!=c.j&&(d=c.kb()-1);0==a.va&&(w3(this.j,"bl"),t3(a)||w3(this.j,"fb"));if(c="loaded"!=a.Sc||0==a.va&&t3(a)&&c&&1E3*this.j.j.getCurrentTime()>c.kb()){if(b&&s3(b)){var e=b.kb();e>d&&(d=e);W3(this,b);X3(this,b,d)}}else this.o[a.getId()]=a,X3(this,a,d);Ds(this.j);c&&this.lf(a);Ib(this.o)==this.k.length&&this.D.A();V3(this)};
function X3(a,b,c){var d=b.kb();if(!isNaN(d)){var e={};e.priority=-2!=b.j?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.A.Vs(b,d);c=a.A.Us(b,c);c=new qs(d,c,e);a.B[b.getId()]=c;a.j.Kd(c);a.A.Ts(b)}}function W3(a,b){var c=b.getId();a.B[c]&&(J3(a.A,c),a.j.bl(a.B[c]),delete a.B[c])}f.lf=function(a){a.unsubscribe("adBreakComplete",this.Jf,this);this.zc&&a==this.zc&&(this.zc=null);W3(this,a);lb(this.k,a);delete this.o[a.getId()];qi(a)};f.xi=function(a){return this.o[a]};
f.al=function(a){if(a.qb){if(-1!=a.j&&a.gm){var b=this.j;Y3(b);Ns(b);this.A.xq(a)}else t3(a)&&!a.gm?(b=this.j,Y3(b),Ns(b)):(Y3(this.j),Os(this.j,!1));this.lf(a);a=this.D;a.o&&0<a.j.fa.k&&(a.k=z()/1E3,a.A())}else a.isVisible||this.lf(a)};f.L=function(){qi(this.A);qi(this.D);E(this.k,this.lf,this);T3.I.L.call(this)};function Z3(a,b,c){T3.call(this,a,b);this.H=[];this.J=[];this.F=[];this.P=c;this.G=0;this.K=a.fa.k;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],u3(c)){var d=new r3(c.o,c.va,c.j,c.B,!0);b[a]=d;this.H.push(c)}this.N||this.qf()}B(Z3,T3);f=Z3.prototype;
f.xi=function(a){a=Z3.I.xi.call(this,a);if(!a)return null;if(!a.C)return a;var b;b=null;if(this.F.length){var c=b=this.F.shift();c.j=a.j;c.va=a.getId()}b&&"loaded"==b.Sc?(a.unsubscribe("adBreakComplete",this.Jf,this),this.o[a.getId()]=b,this.k[this.k.indexOf(a)]=b,qi(a)):(this.qf(),b&&(qi(b),b=null),this.lf(a));b&&!b.qb&&this.qf();return b};f.Jf=function(a){0!=a.j||"loaded"==a.Sc&&a.qb||this.qf();Z3.I.Jf.call(this,a)};
f.al=function(a){a.qb&&10<this.K?($3(this),this.G=M(x(this.qf,this),1E3*(this.K-10))):this.qf();Z3.I.al.call(this,a)};f.qf=function(){for($3(this);this.H.length&&this.J.length+this.F.length<this.P;){var a=this.H.shift();a.subscribe("adBreakComplete",this.ku,this);this.J.push(a);W2(a)}};f.ku=function(a){a.unsubscribe("adBreakComplete",this.ku,this);lb(this.J,a);this.F.push(a)};f.L=function(){$3(this);E(this.J,qi);E(this.F,qi);E(this.H,qi);Z3.I.L.call(this)};function $3(a){a.G&&N(a.G);a.G=0};function a4(a,b){this.F=a;this.Z=b;this.D=z();this.j=a.fa;this.A={};this.C=new e2(a);var c=[];this.j.O&&this.j.o&&c.push("4_2");this.j.nk&&(this.j.o&&c.push("13_2"),this.j.F&&c.push("13_1"));this.j.K&&(this.j.o&&c.push("1_2"),this.j.C&&c.push("1_2_1"),this.j.F&&c.push("1_1"),this.j.R&&c.push("1_3"));this.j.H&&c.push("2_2_1");this.j.J&&c.push("2_2");this.j.G&&c.push("2_1");(this.j.Ja||this.j.$h)&&c.push("2_3");this.o=c.join(",");this.k="";this.A.allowed=this.o;(c=this.j.excludedAds)&&(this.A.ex_ads=
c)}a4.prototype.B=0;function b4(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;E(a.split(":"),function(a){b=60*b+Math.abs(parseFloat(a))});return 1E3*b};function c4(a,b,c){Q.call(this);this.j=a;this.o=b;this.D=c;this.A=this.C=-1;this.k=d4(this.o.ue());a=this.o.ue();a.length&&(a=a[a.length-1],-1==a&&this.j.Kd(this.k[a]));0<this.j.fa.k&&this.j.subscribe("endseeking",this.B,this)}B(c4,Q);function e4(a,b){f4(a);0<b&&(a.A=M(x(a.B,a),1E3*b))}function f4(a){-1!=a.A&&(N(a.A),a.A=-1)}function g4(a){a.k||(a.k=d4(a.o.ue()));S3(a.j,Lb(a.k))}
function d4(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?2147483647:1E3*e;b[d]=new qs(-1==d?2147483647:1E3*d,2147483647==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new qs(-1==d?2147483647:1E3*d,2147483647,{id:String(d),visible:!0});return b}
c4.prototype.B=function(){var a=this.j.fa.k;if(!(0>=a)&&this.k){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;E(this.o.ue(),function(a){var g=this.k[a];if(g){var l=this.o.H.get(a);l&&l.Ed>b?(a=!DY(this.D,l),a!=g.visible&&(g.visible=a,c.push(g)),a||(g=l.Ed-b,g<e&&(e=g,d=l))):!l||l.ib()?(this.j.bl(g),delete this.k[a]):!g.visible&&l&&(g.visible=!0,c.push(g))}},this);0<c.length&&S3(this.j,c);if(d){var g=0;0<this.C&&(g=z()/1E3-this.C);e4(this,a-g-e+2)}else f4(this)}};
c4.prototype.L=function(){c4.I.L.call(this);f4(this)};function h4(a){Q.call(this);this.j=a;this.A=null;this.C=new ln(this);this.o=new ln(this)}B(h4,Q);f=h4.prototype;f.Ta=null;f.Ki=null;f.zb=null;f.gc=null;f.Li=null;function i4(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);E(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,g;"end"==b?(e="post",g=-1):(e="mid",g=b4(b).toString());var h={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":g};a.innerHTML=a.innerHTML.replace(/\[[A-Z_]+\]/g,function(a){return h[a]||a})});return a}
function j4(a){var b=BC(a),c=b.childNodes[0];if(!c)return a;var d=G(c.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});if(d){a=G(d.childNodes,function(a){return"Extensions"==a.localName});var e=G(a?a.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")});a=a.removeChild(e);var g=d,h=1;E(a?a.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=i4(d,a,h);h++;c.insertBefore(a,g.nextSibling);g=a});c.removeChild(d);return DC(b)}return a}
f.load=function(a){if(this.A=this.j.ef){var b=new HU;b.adsResponse=j4(a);a=y2(this.j);b.linearAdSlotWidth=a.width;b.linearAdSlotHeight=a.height;b.nonLinearAdSlotWidth=a.width;b.nonLinearAdSlotHeight=100;b.j=this.j.S().experiments.experimentIds;b.Nj=this.j.A.A;if(a=VE(this.j.S()))b.lastActivity=a;this.j.fa.tagForChildDirected&&(b.tagForChildDirectedContent=!0);BE(this.j.S(),"937420")&&(b.Ig=!0);a=C3(this.j.fa);b.youTubeAdType=t1(a.get(3));if(a=this.j.fa.$)b.youTubeExperimentIds=a;a=jr(this.j.app);
var c=this.j;b.Tc={"[CONTENT_V]":a.videoId,"[CPN]":a.ya,"[LACT]":{toString:function(){return null==c||c.ea()?c=null:VE(c.S()).toString()}}};this.A.listen("adsManagerLoaded",this.Tq,!1,this);this.A.listen("adError",this.Sq,!1,this);try{QY(this.A,b,this)}catch(d){}}};function k4(a){var b=new fL;b.baseYouTubeUrl=a.j.S().Ab;b.contentId=jr(a.j.app).videoId;b.useShareButton=!0;b.useStyledNonLinearAds=!0;b.useVideoAdUi=a.j.fa.D;b.showContentThumbnail=a.j.fa.showContentThumbnail;b.jp=!0;return b}
f.Tq=function(a){if(a.A===this){var b={};Object.defineProperty(b,"currentTime",{get:x(function(){return this.j.j.getCurrentTime()},this),enumerable:!0});Object.defineProperty(b,"duration",{get:x(function(){return this.j.j.getVideoData().lengthSeconds},this),enumerable:!0});try{var c=k4(this);this.Ta=o1(a,this.j.A,b,c)}catch(d){return}if(this.Li=this.Ta.Oq(b,this.j.fa.k)){this.Ki=new c4(this.j,this.Ta,this.Li);g4(this.Ki);H(this.Ta.ue(),0)||l4(this);this.o.listen(this.Ta,"companionBackfill",x(this.iA,
this));this.o.listen(this.Ta,"loaded",x(this.hA,this));this.o.listen(this.Ta,"adError",x(this.gA,this));this.o.listen(this.Ta,"start",x(this.fA,this));this.o.listen(this.Ta,"complete",x(this.eA,this));this.o.listen(this.Ta,"contentPauseRequested",x(this.jA,this));this.o.listen(this.Ta,"contentResumeRequested",x(this.kA,this));this.o.listen(this.Ta,"allAdsCompleted",u);try{this.Ta.init("normal"),this.Ta.start()}catch(e){this.Ta.destroy(),this.k=null}}}};
f.jA=function(a){this.zb&&this.zb.dispose();(this.gc=a.getAd())&&ES(this.gc)&&(a=m4(this.gc),this.j.fa.N?this.zb=new B2(a,this.j,this.Ta,GS(this.gc),!0):this.zb=new r2(a,this.j,this.Ta,this.Ta.getMediaUrl(),GS(this.gc),!0),n4(this.j),this.zb.show())};
function o4(a,b){var c=null!=b.j?b.j.F:{};if(s1(c,N2.j)&&a.j.fa.$h)return a.zb=new Y2(a.j),a.zb.show(),!1;if(s1(c,"blockAllAds"))return a.Ta.sendImpressionUrls(),a.zb=new c3(a.j,a.Ta,!0),!1;if(s1(c,"hideMaster"))return a.zb=new c3(a.j,a.Ta,!0),!1;a.zb=new K2(m4(b),a.j,a.Ta,!0);a.zb.show();return!0}
f.kA=function(a){this.zb&&this.zb.dispose();l4(this);if(this.j.j.getCurrentTime()<this.j.j.getVideoData().lengthSeconds){var b=this.j;Y3(b);Ns(b)}a=a.getAd();b=!0;a&&a!==this.gc&&!ES(a)&&(b=o4(this,a));if(this.gc&&ES(this.gc)||a&&a!==this.gc&&!ES(a)&&b)b=this.Li,0<b.j&&(b.k=z()/1E3),b=this.Ki,0<b.j.fa.k&&(b.C=z()/1E3,b.B());g4(this.Ki);this.gc=a};f.fA=function(a){if((a=a.getAd())&&this.zb){a=m4(a);var b=this.zb;b.type=a+"_"+b.J;2==a&&x1();y1()}};
f.eA=function(a){ES(a.getAd())||this.gc!==a.getAd()||(this.zb&&this.zb.dispose(),this.gc=null)};f.hA=function(a){a.getAd().B.k||ES(a.getAd())||l4(this)};f.gA=function(){};f.Sq=function(){};f.iA=function(){y1()};f.L=function(){this.A&&(this.A.Aa("adsManagerLoaded",this.Tq,!1,this),this.A.Aa("adError",this.Sq,!1,this));this.C.removeAll();this.o.removeAll();this.B=!1;this.Ta&&(this.Ta.destroy(),this.Ta=null);h4.I.L.call(this)};
function m4(a){switch(JS(a).toUpperCase()){case "ADSENSE":return 2;case "DOUBLECLICK":return 1;case "FREEWHEEL":return 4;case "XFP":return 13;default:return 0}}function l4(a){a.B||(Ds(a.j),a.B=!0)};function p4(a){SY.call(this,a);PK.j=!0;PK.B=!0;this.A=null;this.D={};this.C={at:"0"};this.k=new DE(0,this.j);Cr(this.j,this.k.M());this.o=null;this.B=-1}B(p4,SY);f=p4.prototype;f.ta="ad";f.oc="ad";f.ne=null;f.fb=null;f.fa=null;f.Nk=!1;f.yn=!1;f.ef=null;f.ff=null;p4.Ea=function(a){return!!a.kc.getVideoData().adModule};f=p4.prototype;f.Ea=function(){return p4.Ea(this.app)};
f.create=function(){p4.I.create.call(this);w3(this,"i");this.fa=new E3(this.S(),this.j.getVideoData().A||{});this.ne=new a4(this,this.j);this.Nk=!1;if(this.ef)this.ef.j.o.C=rP();else{var a=this.fa.D?void 0:HE(this.k);if(this.fa.N){var b=new RY(this.app,2),c=EE(this.k);b.j||(b.j=Vb(b.Se),b.j.addEventListener=x(b.Jw,b),b.j.removeEventListener=x(b.Kw,b));this.A=new fP(c,void 0,a,b.j)}else{b=x2(this,!1);if(!b)throw"initAdsLoader_: getVideoElement returned a null element";this.A=new fP(EE(this.k),b,a,
void 0)}a=this.A;b=a.k;null!=b&&(b.style.right=0,b.style.left=0,b.style.bottom=0,b.style.top=0);null!=a.D&&(a=a.D,a.k.width="100%",a.k.height="100%");this.ef=new PY(this.A)}if(!this.fa.vmap||this.fa.Ga||this.fa.lg){a=new D3(this);t:{b=[];try{var d=a.j.fa,e;if(d.uo){var g;if(d.W)g=B3(d.W);else{var h;if(d.Ra){var k=F(d.Ra.split(","),Ta);h=new A3(k)}else h=new A3([0]);g=h}e=g}else e=new A3([0]);for(var l=e.Iw,d=0;d<l.length;d++){var p=a.j;e=d;var t=l[d],v;var A=a.j.fa;g=[];if(A.Ga)g.push(new p3(4,0));
else{if(A.O){h=0;if(A.o||A.C)h|=1;A.F&&(h|=4);A.R&&(h|=8);g.push(new p3(5,h))}A.nk&&(h=0,A.o&&(h|=1),A.F&&A.B&&(h|=4),g.push(new p3(6,h)));h=0;A.K&&(A.o&&(h|=1),A.C&&(h|=2),A.F&&A.B&&(h|=4),A.R&&A.B&&(h|=8));var U=C3(A);A.Xa&&h&&U.get(3)?g.push(new p3(3,h,U.get(3))):(h&&g.push(new p3(2,h)),U.get(3)&&g.push(new p3(1,U.get(3))));U.get(4)&&g.push(new p3(1,U.get(4)))}v=g;var Z=new r3(p,e,t,v);b.push(Z)}}catch(ea){}finally{break t}}l=b;w3(this,"bd");p=this.fa;t=p.midrollPrefetchSize;this.fb=!p.wa&&0<t?
new Z3(this,l,t):new T3(this,l);U3(this.fb)}else this.ff=new h4(this),this.ff.load(this.fa.vmap);l={};l.allowed=this.ne.o;Hs(this,{},l)};f.destroy=function(){this.yn&&Y3(this);if(this.o){var a=this.app,b=this.o;G2(a);b!=a.o&&D2(a,a.o)}si(this.fb,this.o,this.ff);this.ne=this.ff=this.o=this.fb=null;FE(this.k);w1=!1;this.Id&&p4.I.destroy.call(this)};f.S=function(){return this.app.S()};f.isFullscreen=function(){return this.j.isFullscreen()||this.fa.A};
function P2(a,b,c){a=a.ne;c=c||{};var d=(z()-a.D)/1E3;c.art=d;d=a.F.S();d.P&&(c.feature=d.W);c.ad_flags=a.j.adFlags;(d=a.j.Ba)&&(c.cid=d);c.mt=a.Z.getCurrentTime();(d=XY())&&(c.lact=d);(d=a.Z.Kg())&&(c.len=d);a.j.Fb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.k=c.at;b=a.C;t:{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 t}a=c&&c.ad_event?h2(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var e;c.at&&(e=c.at);var g;c.sst&&(g=c.sst);"2_1"==e&&
10==g&&(c.sst=0);e={};e.device=b.j.fa.ub;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var h in c){g=e;a=h;var d=c[h],k=c;switch(a){case "at":g.format=d;k.survey?g.format+="_3":k.skip&&(g.format+="_1");break;case "sst":0==d?g.break_type=1:-1==d||-2==m1?g.break_type=3:(g.break_type=2,g.m_pos=d);break;case "trsp":g.slot_pos=d;break;case "ad_id":case "ad_v":case "ad_cpn":case "ad_sys":g[a]=d;break;case "ad_len":g[a]=Math.round(1E3*d);break;case "ad_error":g.error_code=g2(d);break;case "error_code":g.ima_error=
d;case "error_message":g.error_msg=d;break;case "ad_event":g.event=h2(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(g.i_x=a[0],g.i_y=a[1])}}h=C2(b.j);c=jr(b.j.app);e.cpn=c.ya;e.content_v=c.videoId;e.mt=Math.round(1E3*h.getCurrentTime());e.ei=c.G;e.lact=VE(b.j.S());h=n2(b.j);e.p_w=h.width;e.p_h=h.height;e.rt=(new Date).getTime();c=qe(e);if("undefined"==typeof c)throw Error("Keys are undefined");h=new Re(null,0,void 0);g=pe(e);for(a=0;a<c.length;a++)d=c[a],k=g[a],fa(k)?cf(h,d,k):h.add(d,k);c=b.j.S().Ab+
"api/stats/ads";c=new K(c);Pe(c,h);Wf(c.toString());h=e.event;c=-1!=f2.indexOf(h);g=b.j.fa.amsBaseTag;b=CE(b.j.S(),"932015","932016");c&&!C(D(g))&&b&&(b=new K(g),c=b.j,c.set("ad_break_id",Ub(e,"m_pos","0")),c.set("ad_slot_id",Ub(e,"slot_pos","0")),c.set("ad_break_rel_start_time",Ub(e,"m_pos","0")),c.set("ad_break_type",Ub(e,"break_type","")),c.set("rel_time",Ub(e,"mt","")),c.set("wall_time",Ub(e,"rt","")),2==h&&(c.set("served",Ub(e,"format","")),c.set("ad_id",Ub(e,"ad_id","")),c.set("ad_len",Ub(e,
"ad_len",""))),Wf(b.toString()))}}function O2(a,b,c){c=c||{};c.ad_error=b;P2(a,7,c)}f.ah=function(){var a;if(this.ne){a=this.ne;var b={allowed:a.o};a.j.excludedAds&&(b.ex_ad=a.j.excludedAds);a.k&&(b.at=a.k);a=b}else a=p4.I.ah.call(this);return a};f.Ma=function(){return this.j.Ma()};function x2(a,b){var c;if(b){c=a.k;var d=IE(c);c.Z.S().B||Md(d)||EE(c).appendChild(d);c=d}else c=a.k,c=c.Z.S().B?c.Z.app.k.j:IE(c);return c}
function C2(a){if(!a.o){var b=new dZ(a.S().A);b.ca="adunit";b.autoplay=!0;var c=x2(a,!1);b.tb=c;a.o=new z0(b,2,new TY(b,""),a.app.k)}return a.o}function n2(a){return a.fa.A?(a=y2(a),new hg(0,0,a.width,a.height)):Jg(a.Ma())}function y2(a){return a.app.k.au()}function n4(a){a.yn=!0;a.publish("command_redirect_controls",a,["play_pause"],void 0);Ks(a,["seek"]);a.S().Dd&&Ks(a,["audio"]);a.ff||a.pauseVideo()}function Y3(a){FE(a.k);a.yn=!1;Ms(a);Ls(a,["seek"]);a.S().Dd&&Ls(a,["audio"])}f.getAdState=function(){return this.B};
function z2(a,b){switch(b){case 1:a.B=1;a.publish("publish_external_event","onAdStart");break;case 0:a.B=0,a.publish("publish_external_event","onAdEnd")}}function t2(a,b,c,d){d&&a.publish("publish_external_event","onAdInfoChange",d);a.publish("publish_external_event","onAdStateChange",b,x2(a,!1),c)}
f.Ec=function(a){p4.I.Ec.call(this,a);var b=parseInt(a.getId(),10);if(this.fb&&!isNaN(b))if("ytp-ad-fadeout"==a.style){var c=this.fb;if((a=c.xi(b))&&!R3(c.D,a)&&(c=c.A,a.qb)){var d=x2(c.j,!1);a=Math.max(0,a.kb()+c.A+c.o-1E3*c.j.j.getCurrentTime());pg(d,"transition","opacity "+String(a)+"ms linear");pg(d,"opacity","0");K3(c,d,a,0)}}else if(a=this.fb,n(b)&&(c=a.xi(b)))a.zc==c&&!c.qb&&c.isVisible?c.show():(a.zc&&a.lf(a.zc),R3(a.D,c)?(a.zc=null,c=a.B[c.getId()],c.visible||(c.visible=!0,S3(a.j,[c]))):
(a.zc=c,c.subscribe("adBreakComplete",a.al,a),c.qb&&n4(a.j),a.A.Wp(c),c.show()));!isNaN(b)&&0>b&&this.ff&&(b=this.ef.j,a=new eQ("contentComplete"),b.T(a),a.A&&(b.o.clear(),null!=b.k&&(a=b.k.oe(),null!=a&&HP(a,b.o.j))))};f.Uc=function(a){p4.I.Uc.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.j.getCurrentTime();this.fb&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(a=this.fb,(b=a.o[b])&&a.zc==b&&!b.qb&&b.isVisible&&b.Fm&&b.k instanceof K2&&M2(b.k,"fullscreen"))};
function w3(a,b){var c=b;"nl"==b&&(c=a.ne,c.B++,c=c.B.toString());a.D[c]=z();"bs"!=c&&"fb"!=c||Hs(a,a.D,a.C)}function S3(a,b){a.publish("command_update_cuerange_markers",b,a.j.getPlayerType())}function L2(a){return Boolean(a.fa.B&&a.fb&&1<a.fb.k.length)}f.$d=function(a){this.publish(a)};
f.Xf=function(a){switch(a){case "addata":var b=this.fa;return{adTag:b.adTag,adTest:b.vb,forceAdType:b.da,isAfvSkippableInstreamEnabled:b.H,isAfvStandardInstreamEnabled:b.J,isBlazer:b.P,isDoubleClickEnabled:b.K,isForcedAd:b.Ga,isFreeWheelEnabled:b.O,isHouseBrandPlayer:b.X.lc,isLeanback:b.A,isShortform:b.la,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return this.fb?this.fb.K:0;case "breakscount":return this.fb?this.fb.k.length:0;case "displaystate":return b=
null,this.fb&&this.fb.zc&&(b=this.fb.zc.k),{adFormat:b instanceof c2?b.J:!1,adSkipped:b instanceof B2?b.F:!1,hasVideoStarted:b instanceof B2?b.G:!1,skippable:b instanceof B2?b.K:!1};case "getContentVideoData":return b=jr(this.app),{adModule:b.adModule,isGetVideoThirdPartyOnly:b.Wh,partnerTrackingToken:b.K,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.fb){a=this.fb.o;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].qb});return c}return 0}};f.Wf=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};function q4(a,b){var c=["ytp-large-play-button","html5-center-overlay","ytp-scalable-icon-shrink"],d;b&&c.push("ytp-housebrand-large-play-button");a?b?c.push("ytp-housebrand-large-play-button-image"):c.push("ytp-large-play-button-image"):d=b?'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-housebrand-large-play-button-svg" d="M59.6,1.35c0.267,0.5,0.4,1.133,0.4,1.9v53.5c0,0.767-0.133,1.4-0.4,1.9c-0.5,0.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.333-0.433-2.8-1.3C0.15,58.167,0,57.517,0,56.75V3.25c0-0.833,0.167-1.5,0.5-2C1,0.417,1.917,0,3.25,0h53.5C58.15,0,59.1,0.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="21,41.65 21,18 43.7,29.85"/></svg>':
'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-large-play-button-svg" d="M84.15,26.4v6.35c0,2.833-0.15,5.967-0.45,9.4c-0.133,1.7-0.267,3.117-0.4,4.25l-0.15,0.95c-0.167,0.767-0.367,1.517-0.6,2.25c-0.667,2.367-1.533,4.083-2.6,5.15c-1.367,1.4-2.967,2.383-4.8,2.95c-0.633,0.2-1.316,0.333-2.05,0.4c-0.767,0.1-1.3,0.167-1.6,0.2c-4.9,0.367-11.283,0.617-19.15,0.75c-2.434,0.034-4.883,0.067-7.35,0.1h-2.95C38.417,59.117,34.5,59.067,30.3,59c-8.433-0.167-14.05-0.383-16.85-0.65c-0.067-0.033-0.667-0.117-1.8-0.25c-0.9-0.133-1.683-0.283-2.35-0.45c-2.066-0.533-3.783-1.5-5.15-2.9c-1.033-1.067-1.9-2.783-2.6-5.15C1.317,48.867,1.133,48.117,1,47.35L0.8,46.4c-0.133-1.133-0.267-2.55-0.4-4.25C0.133,38.717,0,35.583,0,32.75V26.4c0-2.833,0.133-5.95,0.4-9.35l0.4-4.25c0.167-0.966,0.417-2.05,0.75-3.25c0.7-2.333,1.567-4.033,2.6-5.1c1.367-1.434,2.967-2.434,4.8-3c0.633-0.167,1.333-0.3,2.1-0.4c0.4-0.066,0.917-0.133,1.55-0.2c4.9-0.333,11.283-0.567,19.15-0.7C35.65,0.05,39.083,0,42.05,0L45,0.05c2.467,0,4.933,0.034,7.4,0.1c7.833,0.133,14.2,0.367,19.1,0.7c0.3,0.033,0.833,0.1,1.6,0.2c0.733,0.1,1.417,0.233,2.05,0.4c1.833,0.566,3.434,1.566,4.8,3c1.066,1.066,1.933,2.767,2.6,5.1c0.367,1.2,0.617,2.284,0.75,3.25l0.4,4.25C84,20.45,84.15,23.567,84.15,26.4z M33.3,41.4L56,29.6L33.3,17.75V41.4z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="33.3,41.4 33.3,17.75 56,29.6"/></svg>';
X.call(this,["div",c]);d&&(this.element.innerHTML=d)}B(q4,X);function r4(a){this.k=a||30;NE.call(this,this.k,this.k);this.C=this.width/2;this.A=this.height/2;this.D=0;this.context.translate(this.C,this.A);this.hide()}B(r4,NE);r4.prototype.show=function(){r4.I.show.call(this);var a=this.G;this.B=new Date;this.o(a,125)};
r4.prototype.G=function(){this.context.clearRect(-this.C,-this.A,this.width,this.height);for(var a=this.D++%8,b=0;8>b;b++){var c=2*Math.PI/8*(a+b),d=11/30*this.k,e=d*Math.cos(c),c=d*Math.sin(c),d=(b+1)/9;this.context.beginPath();this.context.arc(e,c,4/30*this.k,0,2*Math.PI,!1);this.context.fillStyle="rgba(189, 189, 189, "+d+")";this.context.fill()}};r4.prototype.hide=function(){N(this.j);r4.I.hide.call(this)};function s4(a,b,c){tE.call(this,["div","html5-remote-module",["div","ytp-remote-display-thumbnail"],["div","","{{largeplaybutton}}"],["div","ytp-remote-display-controls",["div",["ytp-remote-display-error","html5-center-overlay"],["div","ytp-remote-display-error-icon"],["p","ytp-remote-display-error-text","{{error}}"],["div","","{{reconnectbutton}}"]],["div","","{{loadingicon}}"]],["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}}"]],["div","ytp-remote-display-watch-while",["div","","{{maximizebutton}}"]]]);this.A=c;this.B=this.template.j["ytp-remote-display-thumbnail"];this.j=this.k=this.o=null;t4(this,a,b)}B(s4,tE);function u4(a){v4(a,Y(0,"YTP_MDX_STATUS_CONNECTING"));w4(a,2)}function x4(a,b){v4(a,Y(0,"YTP_MDX_STATUS_ERROR"));av(a.template,"error",b);w4(a,0)}
function w4(a,b){var c=a.template.j["ytp-remote-display-error"],d=a.template.j["ytp-remote-display-status"];Nw(c);Nw(d);a.o.hide();a.j.hide();a.k.hide();switch(b){case 0:Mw(d);Mw(c);break;case 1:Mw(d);break;case 2:Mw(d);a.j.show();break;case 3:a.o.show()}}
function t4(a,b,c){var d=b.j.S();a.o=new q4(d.isMobile,d.lc);R(a,a.o);a.j=new r4(60);O(a.j.element,"html5-video-loader");O(a.j.element,"html5-center-overlay");O(a.j.element,"ytp-scalable-icon-grow");R(a,a.j);a.k=new CA(a.A,"ytp-button-remote-reconnect");a.k.ra(Y(0,"YTP_MDX_PLAYER_RECONNECT_BUTTON"));R(a,a.k);d=new CA(a.A,"ytp-button-remote-maximize");d.ra(["div",["html5-center-overlay","ytp-button-remote-maximize-icon"]]);R(a,d);b=b.j.getVideoData();a.B.style.backgroundImage=b.videoId?"url("+oF(b,
"hqdefault.jpg")+")":"";av(a.template,"largeplaybutton",a.o);av(a.template,"reconnectbutton",a.k);av(a.template,"loadingicon",a.j);av(a.template,"maximizebutton",d);a.k.listen("click",function(){this.publish("reconnect-button-click")},a);d.listen("click",function(a){a.stopPropagation();this.publish("maximize-button-click")},a);u4(a);av(a.template,"receiver",c)}function v4(a,b){av(a.template,"statustext",b)};function y4(a,b,c){Q.call(this);this.k=a;a.subscribe("onVolumeChange",this.ap,this);this.G=x(this.Uw,this);a.j.addEventListener("onCaptionsTrackListChanged",this.G);this.B=!1;this.o=b;b.subscribe("reconnect-button-click",this.dp,this);b.subscribe("maximize-button-click",this.bp,this);this.j=c;c.subscribe("proxyStateChange",this.ep,this);c.subscribe("remotePlayerChange",this.Pk,this);c.subscribe("remoteQueueChange",this.Qk,this);this.J=new is;this.D=this.C=NaN;this.H=0;this.A={};this.F=new hn(this.Vw,
1E3,this);R(this,this.F);this.K=0;a=this.k.j.ni("captions","track");Rb(a)||z4(this,a);this.Qk();this.Pk()}B(y4,Q);f=y4.prototype;
f.L=function(){A4(this,new is);B4(this);C4(this);this.k.unsubscribe("onVolumeChange",this.ap,this);this.k.j.removeEventListener("onCaptionsTrackListChanged",this.G);ri(this.o)||(this.o.unsubscribe("reconnect-button-click",this.dp,this),this.o.unsubscribe("maximize-button-click",this.bp,this));ri(this.j)||(this.j.unsubscribe("proxyStateChange",this.ep,this),this.j.unsubscribe("remotePlayerChange",this.Pk,this),this.j.unsubscribe("remoteQueueChange",this.Qk,this));D4(this,this.A);this.j=this.o=this.k=
null};f.iF=function(a,b){2==this.j.o||(E4(this)?this.KD.apply(this,arguments):this.o.o.F&&this.JD.apply(this,arguments))};function F4(a,b){var c=a.k.j.getVideoData().lengthSeconds;a.k.publish("command_progress",b,c)}f.JD=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":G4(this,this.k.j.getCurrentTime());break;case "control_seek":G4(this,c[0])}};
f.KD=function(a,b){if(1081==dp(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":dp(this.j).ib()?H4(this):I4(this);break;case "control_play":I4(this);break;case "control_pause":H4(this);break;case "control_seek":this.K=c[0];jn(this.F);break;case "control_subtitles_set_track":z4(this,c[0])}};
f.ap=function(a){if(E4(this)){var b=Math.round(a.volume);a=!!a.muted;var c=dp(this.j);b==c.volume&&a==c.muted||this.j.setVolume(b,a)}};f.Uw=function(){Rb(this.A)||D4(this,this.A);this.B=!1};f.dp=function(){C4(this);this.j.A.reconnect();u4(this.o)};f.bp=function(){var a=this.k,b={video_id:a.j.getVideoData().videoId},b=new rr(b),b=a.app.kc.S().getVideoUrl(b,{});Gs(a,b)};f.ep=function(a,b){C4(this);2==b&&this.Cq()};
f.Pk=function(){if(E4(this)){B4(this);var a=dp(this.j);switch(a.j){case 1:J4(this);A4(this,new is(8));break;case 3:A4(this,new is(1));break;case 0:A4(this,new is(2));this.F.stop();var b=this.k.j;(b=Mq(b.app,b.playerType||1))&&b.df(!0);F4(this,this.k.j.getVideoData().lengthSeconds);break;case 2:A4(this,new is(4));F4(this,Xo(a));break;case -1:A4(this,new is);break;case -1E3:A4(this,new is(128,{}))}0==this.H&&(b=this.k.j,(b=Mq(b.app,b.playerType||1))&&b.df(!1));this.H=a.j;a=dp(this.j).o;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,D4(this,a));a=dp(this.j);-1==a.volume||Math.round(this.k.j.rq())==a.volume&&this.k.j.sq()==a.muted||(this.k.j.setVolume(a.volume),a.muted?this.k.j.tq():this.k.j.uq())}else K4(this)};function K4(a){a.o.o.F||(F4(a,0),B4(a),A4(a,new is));"detailpage"!=a.k.app.kc.S().ca&&w4(a.o,3)}f.Qk=function(){E4(this)||K4(this)};
function z4(a,b){if(E4(a)&&!a.B){if(b){var c={style:a.k.j.ni("captions","displaySettings")};Zb(c,b);a.j.bm(L4(a),c)}else a.j.bm(L4(a),null);a.A=dp(a.j).o}}function H4(a){a.j.pause();var b=dp(a.j);F4(a,Xo(b));B4(a);A4(a,new is(4))}function I4(a){a.j.play();J4(a);A4(a,new is(8))}function G4(a,b){var c=a.k.j.fd();c?kp(a.j,L4(a),b,c.Ua,a.k.j.getVideoData().playlistId):kp(a.j,L4(a),b);A4(a,new is(1))}
function D4(a,b){if(b){var c=a.k.j.ni("captions","tracklist",{gq:1});c&&c.length?(c=G(c,function(a){return a.languageCode==b.languageCode&&a.name==b.trackName}),a.k.j.Wq("captions","track",c)):(a.k.j.Vq("captions"),a.B=!0)}else a.k.j.Xq("captions")}f.Vw=function(){var a=this.K;B4(this);F4(this,a);-1==dp(this.j).j?G4(this,a):this.j.qt(a);A4(this,new is(1))};function E4(a){return Vo(dp(a.j))==L4(a)}function L4(a){return a.k.j.getVideoData().videoId}
function J4(a){B4(a);if(!a.j.ea()){var b=dp(a.j);b.ib()&&A4(a,new is(8));F4(a,Xo(b));a.C=M(x(function(){J4(this)},a),500)}}function B4(a){N(a.C);a.C=NaN}f.Cq=function(){C4(this);B4(this);var a=this.j.A.getReconnectTimeout();if(2!=this.j.o||isNaN(a))u4(this.o);else{var b=this.o;x4(b,Y(0,"YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:gv(a/1E3)}));b.k.show();this.D=M(x(this.Cq,this),1E3)}};function C4(a){N(a.D);a.D=NaN}
function A4(a,b){C4(a);var c=a.J;a.J=b;var d=a.o;v4(d,Y(0,"YTP_MDX_STATUS_CONNECTED"));w4(d,1);W(b,1)&&(d=a.o,v4(d,Y(0,"YTP_MDX_STATUS_CONNECTED")),w4(d,2));W(b,128)&&x4(a.o,If("YTP_MDX_PLAYER_ERROR"));d=a.k;Os(d,W(b,8));d.app.publish("presentingplayerstatechange",new y0(b,c))};function M4(a){SY.call(this,a);this.N=a.k.k;this.B={key:Jj(),name:Y(0,"YTP_MDX_MY_COMPUTER")};this.A=this.o=null;this.H=[];this.J=this.K=this.k=null;this.O=[this.B];this.F=this.B;this.D=new WB(this.N,"ytp-remote-button",Y(0,"YTP_MDX_TOOLTIP"),"ytp-remote-button-active");R(this,this.D);EA(this.D,6950);this.D.listen("click",this.dA,this);this.D.M().id="remote_button";this.C=new lC(this.N,x(this.bA,this),x(this.cA,this));O(this.C.M(),"ytp-drop-down-background");R(this,this.C);this.G=new BA;this.G.label=
Y(0,"YTP_MDX_TITLE");this.G.element=this.C;this.G.k=this.ta;R(this,this.G);this.C.Ya(this.G.label)}B(M4,SY);var N4=["play_pause","seek"],O4=["captions"];f=M4.prototype;f.ta="remote";f.oc="remote";f.Ea=function(){return this.app.kc.S().jg};
f.create=function(){M4.I.create.call(this);this.H.push(zi("yt-remote-before-disconnect",this.BC,this));this.H.push(zi("yt-remote-connection-change",this.os,this));this.os();Qs(this,this.ta,this.D);Ss(this,this.G);var a=this.j.app.J;this.F&&this.F!=this.B&&1!=a&&3!=a&&this.load()};f.destroy=function(){Bi(this.H);this.H.length=0;qi(this.k);this.k=null;M4.I.destroy.call(this)};
f.load=function(){if(!this.loaded){M4.I.load.call(this);ZB(this.D,"ytp-remote-button-active");this.A=new s4(this,this.F.name,this.N);Cr(this.j,this.A.M());this.k&&(this.o=new y4(this,this.A,this.k));this.j.Jl();this.publish("command_redirect_controls",this,N4,O4);var a=lq();if(0!=a){var b=this.k?Vo(dp(this.k)):null;b&&b!=this.j.getVideoData().videoId||M(x(function(){this.publish("command_progress",a,void 0)},this),0)}}};
f.unload=function(){this.loaded&&(ZB(this.D,"ytp-remote-button"),this.C.Ca(this.B),Ms(this),si(this.o,this.A),this.A=this.o=null,M4.I.unload.call(this))};f.L=function(){this.destroy();si(this.o,this.A,this.k);this.k=this.A=this.o=null;M4.I.L.call(this)};f.$d=function(a,b){this.o&&this.o.iF.apply(this.o,arguments)};
function kr(a,b,c){var d=c||a.B;b.unshift(a.B);a.O=b||[a.B];d=G(b,function(a){return a.key==d.key});P4(a,b);a.C.Ca(d);a.F=d||a.B;a.A&&av(a.A.template,"receiver",d.name);a.publish("publish_external_event","onMdxReceiversChange")}f.BC=function(a){1==a&&(this.K=this.k?dp(this.k):null);this.J=a};
f.os=function(){var a=nq();a?(this.k=a,this.J=this.K=null,this.load(),this.o||(this.o=new y4(this,this.A,this.k))):(qi(this.k),this.k=null,this.loaded&&1==this.J&&(this.unload(),(a=this.K)&&Vo(a)==this.j.getVideoData().videoId?this.j.Ff(Xo(a)):this.j.Ff(0)))};f.cA=function(a){Us(this);a!=this.C.getSelected()&&(this.C.Ca(a),Q4(this,a))};
function Q4(a,b){a.F=b||a.B;if(b.key==a.B.key)gq();else{var c=0,d="",e=a.j.fd();e&&(c=e.Ua,d=a.j.getVideoData().playlistId);if(e=a.j.fd()){for(var g=[],h=0;h<e.uc;h++)g[h]=dr(e,h).videoId;e=g}else e=[a.j.getVideoData().videoId];c={videoIds:e,listId:d,videoId:a.j.getVideoData().videoId,index:c,currentTime:a.j.getCurrentTime()};dq(b,c);a.A&&av(a.A.template,"receiver",b.name);qi(a.o);a.o=null;a.load()}}function P4(a,b){E(b,function(a){a.toString=function(){return a.key}},a);mC(a.C,b)}
f.dA=function(a){var b=Vp();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),vl())};f.bA=function(a){return a.name};f.Xf=function(a,b){switch(a){case "casting":return this.loaded;case "receivers":return this.O;case "currentReceiver":return b&&("cast-selector-receiver"==b.key?vl():Q4(this,b)),this.F;case "castSelector":var c=Vp(),c=1==c.length&&"cast-selector-receiver"==c[0].key;b&&c&&vl();return c}};
f.Wf=function(){return["casting","receivers","currentReceiver","castSelector"]};function R4(a){this.addEventListener=x(a.addEventListener,a);this.removeEventListener=x(a.removeEventListener,a);this.dispatchEvent=x(a.dispatchEvent,a)}
function S4(a,b,c){S.call(this);this.D=a;this.K=x(b,null);this.G=c;this.j=0;this.A=new Gc(NaN,NaN);b=c?4E3:3E3;this.B=new zv(y(this.Bb,1,!1),b,this);R(this,this.B);this.C=new zv(y(this.Bb,2,!1),b,this);R(this,this.C);c||(this.o=P(a,"mouseover",x(this.gp,this)),this.H=P(a,"mousemove",x(this.Ww,this)),this.J=P(a,"mouseleave",x(this.Tw,this)));this.F=Qc?P(a,"keypress",x(this.Sw,this)):P(a,"focusin",x(this.Rw,this));this.k=P(a,"mousedown",x(this.fp,this));this.Bb(130,!0)}B(S4,S);f=S4.prototype;
f.Ww=function(a){a=new Gc(qh(a),rh(a));Hc(a,this.A)||(this.A=a,this.Bb(2,!0))};f.Tw=function(){this.Bb(2,!1)};f.gp=function(a){var b=new Gc(qh(a),rh(a));Hc(b,this.A)||(this.A=b,this.j&2&&this.K(a.target)&&(this.Bb(4,!0),wh(this.o),this.o=P(this.D,"mouseout",x(this.eC,this))))};f.eC=function(){this.Bb(4,!1);wh(this.o);this.o=P(this.D,"mouseover",x(this.gp,this))};f.Sw=function(){this.Bb(1,!0)};f.Rw=function(){this.Bb(1,!0)};
f.fp=function(){var a=8;this.G&&(a|=2);this.Bb(a,!0);wh(this.k);this.k=P(document,"mouseup",x(this.TE,this))};f.TE=function(){this.Bb(8,!1);wh(this.k);this.k=P(this.D,"mousedown",x(this.fp,this))};f.Bb=function(a,b){var c=!this.j;b?(this.j|=a,a&1&&this.B.start(),a&2&&this.C.start()):(this.j&=~a,a&1&&this.B.stop(),a&2&&this.C.stop());var d=!this.j;c!=d&&this.publish("autohideupdate",d)};f.L=function(){wh(this.o);wh(this.H);wh(this.J);wh(this.F);wh(this.k);S4.I.L.call(this)};function T4(a,b){X.call(this,["span","","{{sparkline_container}}"]);this.o=a;this.k=b;this.j=new HF("");R(this,this.j);av(this.template,"sparkline_container",this.j)}B(T4,X);function U4(){X.call(this,["div","html5-video-info-panel",["span","html5-video-info-panel-close",{role:"button",title:"close"},"[x]"],["div","html5-video-info-panel-content",["table","html5-video-info-table",["tr","",["th","","Video ID:"],["td","","{{video_id}}"]],["tr","",["th","","Dimensions:"],["td","","{{dimensions}}"]],["tr","",["th","","Resolution:"],["td","","{{resolution}}"]],["tr","",["th","","Volume:"],["td","","{{volume}}"]],["tr","",["th","","Stream Type:"],["td","","{{stream_type}}"]],
["tr",{style:"{{cpn_style}}"},["th","","CPN:"],["td","","{{cpn}}"]],["tr","",["th","","Mime Type:"],["td","","{{mime}}"]],["tr","",["th","","DASH:"],["td","","{{dash}}"]],["tr",{style:"{{drm_style}}"},["th","","Protected:"],["td","","{{drm}}"]],["tr","",["th","","Bandwidth:"],["td","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]]],["table",["html5-video-info-table","html5-video-element-info-table"],["tr","",["th","","Decoded Frames"],["th","","Dropped Frames"],["th","",
"Parsed Frames"],["th","","Presented Frames"]],["tr","",["td","","{{decoded_frames}}"],["td","","{{dropped_frames}}"],["td","","{{parsed_frames}}"],["td","","{{presented_frames}}"]],["tr","",["th","","Video Bytes Decoded"],["th","","Audio Bytes Decoded"],["th","","Painted Frames"],["th","","Paint Delay"]],["tr","",["td","","{{video_bytes_decoded}}"],["td","","{{audio_bytes_decoded}}"],["td","","{{painted_frames}}"],["td","","{{paint_delay}}"]]]]]);this.closeButton=this.template.j["html5-video-info-panel-close"];
this.j=new T4(200,14);R(this,this.j);av(this.template,"bandwidth_sparkline",this.j)}B(U4,X);
U4.prototype.update=function(a){a.dimensions=a.video_element_width+" x "+a.video_element_height;1<a.device_pixel_ratio&&(a.dimensions+=" * "+a.device_pixel_ratio);a.resolution=a.video_width+" x "+a.video_height;1<a.video_fps&&(a.resolution+="@"+a.video_fps);a.volume+="%";a.drm_flavor?(a.drm_style="",a.drm=a.drm_flavor+" / "+a.drm_key_system):(a.drm_style="display:none",a.drm="");var b=a.bandwidth_history;a.bandwidth_kbps=(8*Ya(b)/1024).toFixed(0)+" Kbps";for(var c=this.j,d=c.j,e=Math.max.apply(Math,
b)||1,g=[],h=0;h<b.length;h++)g.push(h/b.length*c.o+","+c.k*(1-b[h]/e));b='<svg width="'+c.o+'" height="'+c.k+'" viewbox="0 0 '+c.o+" "+c.k+'"><g><polyline stroke="white" fill="none" points="'+g.join(" ")+'"/></g></svg>';d.element.innerHTML=b;a.cpn_style=a.cpn?"":"display:none";this.template.update(a)};U4.prototype.L=function(){this.closeButton=null;U4.I.L.call(this)};function V4(a){var b=["div","html5-video-container"],c=["div","html5-video-player",{tabindex:-1,id:a.X.attrs.id},b];b.push(["div","html5-video-content"]);tE.call(this,c);ch(this.element,"version",a.X.assets.js);this.app=a;this.ja=null;this.o=this.template.j["html5-video-container"];this.K=new hg(0,0,0,0);this.j=null;this.W=new hg(0,0,0,0);this.la=this.template.j["html5-video-content"];this.wa=this.Ja=0;this.U=null;this.R=0;this.ia=null;a=a.S();this.Fa=a.na||"blazer"==a.k;this.ma=0;this.H=new U4;R(this,
this.H);this.H.Y(this.element);fv(this,this.H.closeButton,"click",this.fm);this.k=new I1;this.km();Hf({YTP_ADVERTISEMENT:"Advertisement",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",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_HEADER_TEXT:"In this video",YTP_DRAWER_POLL_SUBMIT:"Submit",
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:"An error occurred.  Please try again later.",YTP_ERROR_GENERIC_WITH_LINK_2:"An error occurred, please try again later. $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FEATURED:"Featured",
YTP_FULLSCREEN:"Full screen",YTP_INCREASE_PLAYBACK_SPEED:"Increase playback speed",YTP_KEYBOARD_SHORTCUTS:"Keyboard shortcuts",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_PLAYLIST:"Playlist",YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_REPLAY:"Replay",YTP_REPORT_ISSUE:"Report playback issue",YTP_SEEK_BACK:"Seek backwards 10 seconds",YTP_SEEK_FORWARD:"Seek forwards 10 seconds",YTP_SEEK_PERCENT:"Seek to 0%\u201390%.",YTP_SETTINGS:"Settings",YTP_SHARE:"share",YTP_SHARE_WITH_PLAYLIST:"Share with playlist",YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBTITLES:"Subtitles/CC",YTP_THREED_SHORT:"3D",
YTP_THEATER_MODE:"Cinema mode",YTP_TOGGLE_FULLSCREEN:"Toggle full screen.",YTP_TOGGLE_MUTE:"Toggle mute",YTP_UNMUTE:"Unmute",YTP_URL_NAVIGATE:"Watch on YouTube.com",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 at present because this video has been downloaded for offline viewing.",YTP_ERROR_LICENSE:"Sorry, there was an error while licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video cannot 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 rented video. 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_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_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 recognise 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 has 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:"$PLAY_PROGRESS of $DURATION seconds",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH"});this.jm()}B(V4,tE);f=V4.prototype;f.jm=function(){this.app.subscribe("initializingmode",this.qG,this);this.app.subscribe("videoplayerreset",this.sG,this);this.app.subscribe("videodatachange",this.rG,this);this.app.subscribe("presentingplayerstatechange",this.Kn,this)};f.initialize=function(a){this.ja=md(a);this.Y(this.ja)};
f.qG=function(){this.W=new hg(0,0,0,0);this.K=new hg(0,0,0,0)};f.addClass=function(a){Yg(this.element,arguments)};f.removeClass=function(a){$g(this.element,arguments)};
f.ek=function(){var a=this.app.S();this.addClass("el-"+a.ca);this.addClass("ps-"+a.k);ah(this.element,"html5-native-controls","3"==a.j);ah(this.element,"html5-mobile",a.isMobile);this.lh(!0);a.B||this.addClass("tag-pool-enabled");a.lc&&this.addClass("house-brand");this.Fa?this.U=P(window,"resize",x(this.vj,this)):(a=Dx()?x(this.fC,this):x(this.vj,this),this.U=Ef(a,250))};f.lh=function(a){var b=this.app.S();ah(this.element,"ytp-no-controls",!a||"0"==b.j)};
f.fC=function(){this.R&&Gx(this.R);this.R=Fx(x(this.vj,this),0)};f.vj=function(){Jc(this.cb(),kg(this.K))||this.Qf()};f.Qf=function(){if(this.j){var a=this.cb();if(!a.isEmpty()){var b=!Jc(a,kg(this.K)),c=W4(this);b&&(this.K.width=a.width,this.K.height=a.height,this.qh(a));(c||b)&&this.publish("resize")}}};f.qh=function(){};f.hk=function(){};f.rG=function(a,b){this.Uj(b)};f.sG=function(a){a.getVideoData()&&this.Uj(a.getVideoData())};
f.Uj=function(a){this.j&&(this.j.setAttribute("data-youtube-id",a.videoId),Tr&&(a.title?this.j.setAttribute("title",a.title):this.j.removeAttribute("title")),this.app.S().Wb&&(this.j.poster=a.videoId?oF(a,"default.jpg"):""));var b=a.Bc("yt:bgcolor");this.o.style.backgroundColor=b?b:"";this.Ja=qI(a.Bc("yt:stretch"));a=a.Bc("yt:crop");this.wa="fullwidth"==a?Infinity:qI(a)};f.yf=function(){};f.Cm=function(){};
f.ob=function(){var a=this.app.S();return a.na||a.Za?new I(window.innerWidth,window.innerHeight):new I(this.element.clientWidth,this.element.clientHeight)};f.cb=function(){return this.ob()};f.au=function(){return this.cb()};function $D(a){return a.j?new I(0<a.j.style.width.indexOf("px")?parseInt(a.j.style.width,10):a.j.clientWidth,0<a.j.style.height.indexOf("px")?parseInt(a.j.style.height,10):a.j.clientHeight):new I(0,0)}function X4(a){return a.j?new I(a.j.videoWidth,a.j.videoHeight):new I(0,0)}
function Y4(a){return Z4(a,a.cb(),X4(a),$4(a),void 0)}function Z4(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.Ja||a5(c),a=a.wa||c,d=a5(b),d=a>d?new I(b.width,b.width/(isFinite(a)?a:c)):a<d?new I(b.height*a,b.height):b.clone(),e||(c>a?d.width=d.height*c:c<a&&(d.height=d.width/c))):(e=c.clone(),d=e.scale(e.width/e.height>b.width/b.height?b.width/e.width:b.height/e.height));return new hg((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}
function a5(a){return 1>Math.abs(py*a.height-a.width)||1>Math.abs(py/a.width-a.height)?py:a.width/a.height}function $4(a){return"3"!=a.app.S().j&&!X4(a).isEmpty()}
function W4(a){var b=X4(a),c=a.cb(),d=1,e=$4(a),g=!1,h;e?(h=Z4(a,c,b,e,!1),d=a5(new I(h.width,h.height))/a5(b),h=new hg(h.left+h.width/2*(1-1/d),h.top,h.width/d,h.height)):h=new hg(0,0,c.width,c.height);jg(a.W,h)||(a.W=h,Eg(a.j,kg(h)),ug(a.j,new Gc(h.left,h.top)),g=!0);b=Z4(a,c,b,e);jg(a.K,b)||(a.K=b,Eg(a.la,b.width,b.height),ug(a.la,b.left,b.top),g=!0);pg(a.j,"transform",1==d?"none":"scaleX("+d+")");return g}f.pk=function(){};
function hr(a){a.H&&(a.H.show(),a.pu(),Ff(a.ma),a.ma=Ef(x(a.pu,a),500))}
f.pu=function(){var a=Mq(this.app),b=this.app.getVideoData(),c=this.app.ig(),d=this.j,e=this.app.S(),g=b.videoId,h=d.videoWidth,k=d.videoHeight,l=d.clientWidth,d=d.clientHeight,p=window.devicePixelRatio,t=b.ya,v=Math.round(Aq(this.app)),A;t:{if(b.ge&&(A=b.ge.match(/url=(https?)/))&&2==A.length){A=A[1];break t}A=""}e=A||e.protocol;A=this.app;if(A.ma){var U=[];A.ma.F.forEach(x(U.push,U));A=U}else A=[0];c={video_id:g,video_width:h,video_height:k,video_element_width:l,video_element_height:d,device_pixel_ratio:p,
cpn:t,mime:"",dash:"no",drm_flavor:"",drm_key_system:"",volume:v,stream_type:e,bandwidth_history:A,decoded_frames:c.hmewdfc||c.hmemdf||"-",dropped_frames:c.hmewdrop||"-",parsed_frames:c.hmempf||"-",presented_frames:c.hmempresented||"-",video_bytes_decoded:c.hmewvdbc||"-",audio_bytes_decoded:c.hmewadbc||"-",painted_frames:c.hmempainted||"-",paint_delay:c.hmempaintdelay||"-"};b.k&&(g=jt(b.k)?"yes":"no",g+=" ("+b.k.id,b.D&&jt(b.k)&&(g+="/"+b.D.id),c.dash=g+")",c.mime=b.k.mimeType,c.video_fps=b.k.video.fps);
if(a=a.G?a.G.j:null)c.drm_flavor=a.k,c.drm_key_system=a.j;this.H.update(c)};f.fm=function(){this.H&&(Ff(this.ma),this.H.hide())};f.km=function(){this.k.k=this};f.Kn=function(){};f.L=function(){this.U&&(this.Fa?wh(this.U):Ff(this.U),this.R&&Gx(this.R));this.ia&&wh(this.ia);this.fm();this.j=this.o=this.ja=null;V4.I.L.call(this)};function b5(a,b,c){Q.call(this);this.B=P(a,"click",x(this.H,this));this.C=P(a,"dblclick",x(this.F,this));this.G=b;this.o=c;this.k=new zv(this.D,200,this);R(this,this.k);this.j=!0;this.A=null}B(b5,Q);b5.prototype.H=function(a){this.k.isActive()?(this.k.stop(),this.o(a),this.j=!1):(this.A=a,this.k.start(),this.j=!0)};b5.prototype.F=function(a){this.j&&this.o(a)};b5.prototype.D=function(){this.G(this.A);this.j=!0};b5.prototype.L=function(){wh(this.B);wh(this.C);b5.I.L.call(this)};var c5=new I(1720,980),d5=new I(1294,630),e5=new I(640,560),f5=new I(1320,870),g5={Vn:new I(1280,720),j:new I(960,540),Un:new I(854,480),su:new I(640,360),ru:new I(426,240)},h5={Vn:new I(1280,750),j:new I(960,570),Un:new I(854,510),su:new I(640,390),ru:new I(426,270)};
function i5(a,b){var c=new I(window.innerWidth,window.innerHeight),d=b&&!a.experiments.P?h5:g5;return a.zd?c.width>=f5.width&&c.height>=f5.height?d.Vn.clone():d.Un.clone():c.width>=c5.width&&c.height>=c5.height?d.Vn.clone():c.width>=d5.width&&c.height>=d5.height?d.Un.clone():!a.experiments.X||c.width>=e5.width?d.su.clone():d.ru.clone()};function j5(a){X.call(this,["div","ytp-action-buttons"]);this.shareButton=new CA(a,"ytp-button-share",Y(0,"YTP_SHARE"));R(this,this.shareButton);this.shareButton.Y(this.element);EA(this.shareButton,3400);this.j=new CA(a,"ytp-button-dislike",Y(0,"YTP_DISLIKE"));R(this,this.j);this.j.Y(this.element);EA(this.j,3300);ch(this.j.M(),"tooltip-below","1");a.sg(this.j.M(),"YTP_DISLIKE_AS",Y(0,"YTP_DISLIKE"));this.likeButton=new CA(a,"ytp-button-like",Y(0,"YTP_LIKE"));R(this,this.likeButton);this.likeButton.Y(this.element);
EA(this.likeButton,3200);ch(this.likeButton.M(),"tooltip-below","1");a.sg(this.likeButton.M(),"YTP_LIKE_AS",Y(0,"YTP_LIKE"))}B(j5,X);function k5(a,b,c,d,e,g){var h,k;if(h=c.offsetParent){var l="HTML"==h.tagName||"BODY"==h.tagName;l&&"static"==tg(h,"position")||(k=Ag(h),l||(l=(l=Mg(h))&&Qc?-h.scrollLeft:!l||Pc&&bd("8")||"visible"==tg(h,"overflowX")?h.scrollLeft:h.scrollWidth-h.clientWidth-h.scrollLeft,k=Ic(k,new Gc(l,h.scrollTop))))}h=k||new Gc;k=Jg(a);if(l=zg(a)){var p=ig(l),l=Math.max(k.left,p.left),t=Math.min(k.left+k.width,p.left+p.width);if(l<=t){var v=Math.max(k.top,p.top),p=Math.min(k.top+k.height,p.top+p.height);v<=p&&(k.left=
l,k.top=v,k.width=t-l,k.height=p-v)}}l=jd(a);v=jd(c);l.j!=v.j&&(t=l.j.body,v=Bg(t,be(v)),v=Ic(v,Ag(t)),!Pc||cd(9)||ae(l)||(v=Ic(v,ce(l))),k.left+=v.x,k.top+=v.y);a=l5(a,b);b=new Gc(a&2?k.left+k.width:k.left,a&1?k.top+k.height:k.top);b=Ic(b,h);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);if(e=zg(c))e.top-=h.y,e.right-=h.x,e.bottom-=h.y,e.left-=h.x;m5(b,c,d,g,e,197,void 0)}
function m5(a,b,c,d,e,g,h){a=a.clone();var k=l5(b,c);c=Hg(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||0!=k)k&2?a.x-=h.width+(d?d.right:0):d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);g&&(e?(d=a,k=h,l=0,65==(g&65)&&(d.x<e.left||d.x>=e.right)&&(g&=-2),132==(g&132)&&(d.y<e.top||d.y>=e.bottom)&&(g&=-5),d.x<e.left&&g&1&&(d.x=e.left,l|=1),d.x<e.left&&d.x+k.width>e.right&&g&16&&(k.width=Math.max(k.width-(d.x+k.width-e.right),0),l|=4),d.x+k.width>e.right&&g&1&&(d.x=
Math.max(e.right-k.width,e.left),l|=1),g&2&&(l=l|(d.x<e.left?16:0)|(d.x+k.width>e.right?32:0)),d.y<e.top&&g&4&&(d.y=e.top,l|=2),d.y<=e.top&&d.y+k.height<e.bottom&&g&32&&(k.height=Math.max(k.height-(e.top-d.y),0),d.y=e.top,l|=8),d.y>=e.top&&d.y+k.height>e.bottom&&g&32&&(k.height=Math.max(k.height-(d.y+k.height-e.bottom),0),l|=8),d.y+k.height>e.bottom&&g&4&&(d.y=Math.max(e.bottom-k.height,e.top),l|=2),g&8&&(l=l|(d.y<e.top?64:0)|(d.y+k.height>e.bottom?128:0)),e=l):e=256,l=e);e=new hg(0,0,0,0);e.left=
a.x;e.top=a.y;e.width=h.width;e.height=h.height;l&496||(ug(b,new Gc(e.left,e.top)),h=kg(e),Jc(c,h)||(c=h,e=ld(b),h=ae(jd(e)),!Pc||bd("10")||h&&bd("8")?(b=b.style,Qc?b.MozBoxSizing="border-box":Rc?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(c.width,0)+"px",b.height=Math.max(c.height,0)+"px"):(e=b.style,h?(Pc?(h=Og(b,"paddingLeft"),g=Og(b,"paddingRight"),a=Og(b,"paddingTop"),d=Og(b,"paddingBottom"),h=new gg(a,g,d,h)):(h=sg(b,"paddingLeft"),g=sg(b,"paddingRight"),a=sg(b,
"paddingTop"),d=sg(b,"paddingBottom"),h=new gg(parseFloat(a),parseFloat(g),parseFloat(d),parseFloat(h))),b=Rg(b),e.pixelWidth=c.width-b.left-h.left-h.right-b.right,e.pixelHeight=c.height-b.top-h.top-h.bottom-b.bottom):(e.pixelWidth=c.width,e.pixelHeight=c.height))))}function l5(a,b){return(b&4&&Mg(a)?b^2:b)&-5};function n5(a){X.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.j=new X(["input","html5-modal-panel-input",{type:"text",readonly:"readonly"}]);R(this,this.j);Sc&&this.j.M().removeAttribute("readonly");this.j.listen("click",this.o,this);var b=Y(0,"YTP_CLOSE");this.k=new CA(a,"ytp-dialog-button",b);this.k.ra(b);R(this,this.k);this.template.update({content:this.j,buttons:this.k});this.listen("contextmenu",
this.A)}B(n5,aC);n5.prototype.A=function(a){a.stopPropagation()};n5.prototype.o=function(){this.j.M().select()};function o5(a,b,c){X.call(this,["ul",["html5-context-menu","yt-uix-button-menu"],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url"],Y(0,"YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],Y(0,"YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],Y(0,"YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"],
Y(0,"YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],Y(0,"YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],Y(0,"YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},Y(0,"YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.Z=a;this.Z.subscribe("internalvideodatachange",this.jr,this);this.o=new xv(this);this.o.listen(b,"contextmenu",
this.zB);this.j=new xv(this);this.k=new n5(c);R(this,this.k);this.k.k.listen("click",this.yB,this);a={rB:this.BB,sB:this.CB,tB:x(this.Hr,this,!1),uB:x(this.Hr,this,!0),wB:this.DB,xB:this.EB,vB:this.AB};for(var d in a)p5(this,d,a[d]);this.hide()}B(o5,X);f=o5.prototype;f.yB=function(){this.Z.k.yf()};function q5(a,b){var c=a.k;c.j.M().value=b;c.j.M().focus();M(x(c.o,c),100);a.Z.k.yf(a.k)}
function p5(a,b,c){a.o.listen(a.template.j[jv[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.hide();a=b.replace("CONTEXT_MENU_","").toLowerCase();r5(this.Z,"contextmenu."+a)})}f.jr=function(a,b){Kw(this.template.j["html5-context-menu-copy-embed-html"],b.allowEmbed)};f.Hr=function(a){q5(this,Vq(this.Z,a))};f.CB=function(){q5(this,Xq(this.Z))};f.AB=function(a){s5(this.Z,a.target.getAttribute("href"))};
f.DB=function(){var a=Mq(this.Z);a&&a.Sh(new uq("feedback",!1));var a=this.Z.S(),b=!0;"detailpage"==a.ca&&(b=r("yt.player.exports.feedbackStart")(void 0,{as3:!1,html5:!0,player:!0}));b&&(this.Z.pauseVideo(),window.open(mZ(a,this.Z.getVideoData())))};f.BB=function(){q5(this,Wq(this.Z,!0))};f.EB=function(){hr(this.Z.k)};f.zB=function(a){a.preventDefault();var b=qh(a);a=rh(a);var c=zg(document.body);m5(new Gc(b,a),this.element,0,null,c,5);this.show()};f.jE=function(a){!1===a.Jb.returnValue||this.hide()};
f.show=function(){this.F||(this.j.removeAll(),this.j.listen(window,"blur",this.hide),this.j.listen(document,"click",this.kE),this.j.listen(document,"contextmenu",this.jE),o5.I.show.call(this))};f.kE=function(a){2==a.button||a.target&&Nd(this.element,a.target)||this.hide()};f.hide=function(){o5.I.hide.call(this);this.j.removeAll()};f.L=function(){this.o.removeAll();this.j.removeAll();this.Z.unsubscribe("internalvideodatachange",this.jr,this);this.Z=null;o5.I.L.call(this)};function t5(){var a=["button","ytp-button-share-more",{tabIndex:3800},["div",["ytp-button-share-more-icon","yt-uix-button-icon-new-window"]],["span","ytp-button-share-more-content",Y(0,"YTP_MORE")]];X.call(this,a)}B(t5,X);function u5(a,b,c,d){CA.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);O(this.element,"share-service-icon-sharebar");EA(this,3700)}B(u5,CA);function v5(){X.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.j=this.template.j["ytp-share-url"]}B(v5,X);v5.prototype.focus=function(){this.j.focus();this.j.select()};v5.prototype.L=function(){this.j=null;v5.I.L.call(this)};function w5(a,b){var c=["div","share-bar",["div","share-bar-content"],["div","share-bar-playlist",["input",["ytp-share-bar-checkbox","ytp-share-bar-checked"],{type:"checkbox",checked:"checked"}],["div","share-bar-playlist-message",Y(0,"YTP_SHARE_WITH_PLAYLIST")]]];tE.call(this,c);this.o=b;this.B=a;this.shareUrl=null;this.A=[];this.k=this.j=null;this.closeButton=new CA(this.B,"yt-uix-button-icon-share-bar-close",Y(0,"YTP_CLOSE"),Y(0,"YTP_CLOSE"));this.closeButton.Y(this.template.j["share-bar-content"]);
EA(this.closeButton,3900)}B(w5,tE);function x5(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.k?a.k.videoId:void 0};a.o.Wa&&(b.authuser=a.o.Wa);a.o.pageId&&(b.pageid=a.o.pageId);var c;y5(a)?(c=pd("ytp-share-bar-checkbox"),c=!c||Xg(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=y5(a));yj("/share_ajax",{context:a,method:"GET",onError:a.G,$a:a.C,ze:b})}
w5.prototype.C=function(a,b){if(!this.ea()){z5(this);var c=this.template.j["share-bar-content"];this.shareUrl=new v5;R(this,this.shareUrl);qd(this.shareUrl.j,{value:b.url_short});this.shareUrl.Y(c);for(var d=b.links,e=0;e<Math.min(3,d.length);e++){var g=new u5(this.B,d[e].name,d[e].sname,d[e].img);R(this,g);g.Y(c);g.listen("click",y(Yw,d[e].url,{}));this.A.push(g)}this.j=new t5;R(this,this.j);this.j.listen("click",x(this.H,this,b.more));this.j.Y(c);fv(this,this.template.j["ytp-share-bar-checkbox"],
"click",this.D,this);this.publish("menu_show")}};w5.prototype.G=function(){};w5.prototype.H=function(a){Xw(a)};function y5(a){return a.k?a.k.playlistId:void 0}w5.prototype.D=function(){var a=pd("ytp-share-bar-checkbox");bh(a,"ytp-share-bar-checked");x5(this)};function z5(a){a.shareUrl&&(a.shareUrl.detach(),a.shareUrl=null);a.j&&(a.j.detach(),a.j=null);E(a.A,function(a){Gd(a.M())});a.A=[]};function A5(a,b){var c=["div","html5-info-bar",["div","html5-title",["div",["html5-like-dislike-buttons","hid"]],["a","html5-title-logo",{tabIndex:3550,href:"{{logolink}}","aria-label":Y(0,"YTP_URL_NAVIGATE")},"YouTube"],["div","html5-title-text-wrapper",["a","html5-title-text",{tabIndex:3100,href:"{{titlelink}}"},"{{titletext}}"]]]];tE.call(this,c);this.o=b;this.C=a;this.k=null;fv(this,this.template.j["html5-title-text"],"click",this.er);c=this.template.j["html5-title-logo"];ch(c,"tooltip",Y(0,"YTP_URL_NAVIGATE"));
ch(c,"tooltip-below","1");a.pf(c);fv(this,c,"click",this.er);c=this.template.j["html5-title"];this.actionButtons=new j5(this.C);R(this,this.actionButtons);this.actionButtons.Y(c,1);this.actionButtons.shareButton.listen("click",this.zm,this);this.j=null}B(A5,tE);f=A5.prototype;f.update=function(a){this.k=a;if(this.j){var b=this.j;b.k=a;x5(b)}b=a.title||"";a=this.o.getVideoUrl(a);this.template.update({titletext:b,titlelink:a,logolink:a})};f.er=function(a){iv(a)&&(this.Lu(),a.preventDefault())};
f.Lu=function(){this.Mu()};function B5(a){return Xg(a.element,"show-share")}f.zm=function(){C5(this,!B5(this))};function C5(a,b){if(b&&!a.j){a.j=new w5(a.C,a.o);var c=a.j;c.k=a.k;x5(c);a.j.Y(a.template.j["html5-info-bar"]);a.j.closeButton.listen("click",a.zm,a);a.j.subscribe("menu_show",x(a.fr,a))}ah(a.element,"show-share",b);ah(a.element,"share-with-playlist",b&&!!y5(a.j));a.fr()}f.fr=function(){B5(this)&&this.j.shareUrl&&this.j.shareUrl.M().focus()};f.Ot=function(a){Xw(a)};f.Mu=function(){this.Ot(this.o.getVideoUrl(this.k))};
f.L=function(){this.k=this.o=null;A5.I.L.call(this)};function D5(a,b){A5.call(this,a,b.S());this.Z=b;this.B=2;this.A=!1;this.actionButtons.likeButton.listen("click",this.GD,this);this.actionButtons.j.listen("click",this.FD,this)}B(D5,A5);f=D5.prototype;f.update=function(a){D5.I.update.call(this,a);E5(this,a.Jn);a=!(!a||!a.ks||this.Z.A);var b=!this.Z.S().ci;ah(this.element,"ytp-can-share",b);ah(this.element,"ytp-can-sentiment",a)};f.zm=function(){this.publish("share-click")};f.Lu=function(){this.publish("title-click")};f.GD=function(){F5(this,0)};
f.FD=function(){F5(this,1)};function F5(a,b){if(!a.A&&(a.B==b&&(b=2),E5(a,b),a.k)){if("detailpage"!=a.o.ca){a.A=!0;var c={playbackId:a.k.playbackId,$a:x(function(){this.A=!1},a),onError:x(function(){this.A=!1},a),Wa:a.o.Wa,pageId:a.o.pageId};tI(a.k.videoId,b,c)}a.Z.publish("RATE_SENTIMENT",{videoId:a.k.videoId,sentiment:b})}}function E5(a,b){a.B=b;ah(a.element,"sentiment-like",0==b);ah(a.element,"sentiment-dislike",1==b)}f.Ot=function(a){s5(this.Z,a)};f.Mu=function(){G5(this.Z)};
f.L=function(){this.Z=null;D5.I.L.call(this)};function H5(a){var b=["div",["ytp-dialog","html5-stop-propagation"],{tabindex:1E3},["div","ytp-dialog-title",Y(0,"YTP_KEYBOARD_SHORTCUTS")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Y(0,"YTP_DONE");this.j=new CA(a,"ytp-dialog-button",b);this.j.ra(b);R(this,this.j);EA(this.j,1400);this.j.listen("click",this.k,this);this.template.update({content:I5(),buttons:this.j})}B(H5,aC);
function I5(){var a=[{key:"K",message:Y(0,"YTP_PLAY_PAUSE")},{key:"J",message:Y(0,"YTP_SEEK_BACK")},{key:"L",message:Y(0,"YTP_SEEK_FORWARD")},{key:"0-9",message:Y(0,"YTP_SEEK_PERCENT")},{key:">",message:Y(0,"YTP_INCREASE_PLAYBACK_SPEED")},{key:"<",message:Y(0,"YTP_DECREASE_PLAYBACK_SPEED")},{key:"F",message:Y(0,"YTP_TOGGLE_FULLSCREEN")},{key:"M",message:Y(0,"YTP_TOGGLE_MUTE")}],b=[];E(a,function(a){a=new X(["p",null,a.key+": "+a.message]);b.push(a)});return b}H5.prototype.k=function(){this.Sb("done")};
H5.prototype.focus=function(){this.element.focus()};function J5(a,b,c,d,e,g,h,k){this.B=[];E(Db(b),function(b){this.B.push(P(a,b,x(this.kx,this)))},this);E(Db(d),function(b){this.B.push(P(a,b,x(this.jx,this)))},this);this.C=g||null;this.H=c;this.G=h||0;this.o=0;this.A=!1;this.F=e;this.D=k||0;this.j=0;this.k=!1}f=J5.prototype;f.kx=function(a){N(this.j);this.j=0;this.o=M(x(this.LD,this,a),this.G)};f.jx=function(a){N(this.o);this.o=0;this.j=M(x(this.HD,this,a),this.D)};f.LD=function(a){this.k||this.A||(this.A=!0,this.H.call(this.C||m,a))};
f.HD=function(a){!this.k&&this.A&&(this.A=!1,this.F.call(this.C||m,a))};f.dispose=function(){this.k=!0;N(this.o);N(this.j);wh(this.B)};f.ea=function(){return this.k};function K5(){X.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.j=this.template.j["ytp-tooltip-body"]}B(K5,X);K5.prototype.hide=function(){K5.I.hide.call(this);ug(this.j,0)};K5.prototype.L=function(){Ed(this.j);this.j=null;K5.I.L.call(this)};function L5(a,b){Q.call(this);this.j={};this.Vm=a;this.k=b}B(L5,Q);
L5.prototype.pf=function(a,b){var c,d=new J5(a,"mouseover",function(){if(this.Vm){var d=new K5;d.Y(this.Vm);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||eh(a,"tooltip")||"";if(w(d)){var g=Bd(d),d=Ad("span");d.className="ytp-text-tooltip";d.appendChild(g)}av(c.template,"content",d);var g=!!eh(a,"tooltip-below"),d=c,h=Hg(a),h=new Gc(h.width/2,g?h.height:0),k=Ag(a),h=new Gc(k.x+h.x,k.y+h.y),g=!!g;ah(d.element,"ytp-tooltip-below",g);if(k=yg(d.element))var l=Ag(k),p=Rg(k),h=Ic(h,new Gc(l.x+p.left,l.y+
p.top));m5(h,d.element,g?1:0);d.show();var p=Hg(d.j),g=p.width/2*-1,t=sd(window),v=td(document),h=v.x,t=t.width+v.x,v=h,A=t;k&&(k=Hg(k),v=l.x,A=k.width+l.x);k=Ag(d.j);l=k.x+g;k=k.x+p.width+g;l<Math.max(h,v)?g-=l-Math.max(h,v):k>Math.min(t,A)&&(g-=k-Math.min(t,A));ug(d.j,g)}},["mouseout","mousedown"],function(){c&&(c.hide(),qi(c),c=null)},this,10,50);this.j[ka(a)]=d};
L5.prototype.sg=function(a,b,c){var d=this.k;this.pf(a,function(){if(d){var a="detailpage"==d.ca;if(!d.$||a)return c}else return c;var g=d.$,h=d.R,a=Ad("div");O(a,"ytp-identity-tooltip");var k=Ad("img");k.src=h;h=Ad("span");g=Bd(If(b,{USER_NAME:g}));Dd(h,g);Dd(a,k,h);return a})};L5.prototype.wn=function(a){a=ka(a);qi(this.j[a]);this.j[a]=null};L5.prototype.L=function(){this.k=this.Vm=null;for(var a in this.j)qi(this.j[a]);this.j={};L5.I.L.call(this)};function M5(){this.j=[];this.k=[]}ba(M5);var KE=r("yt.player.utils.VideoTagPool.instance_")||M5.getInstance();q("yt.player.utils.VideoTagPool.instance_",KE,void 0);f=M5.prototype;f.Qs=function(a){if(!(this.j.length>=a)){a-=this.j.length;for(var b=0;b<a;b++){var c=N5(this);this.j.push(c)}}};function N5(a,b){var c=document.createElement("video");qa(c,$r);P(c,"loadeddata",x(c.ZE,c));P(c,"volumechange",x(c.$E,c));Rh&&6<=Or&&P(c,"webkitbeginfullscreen",x(c.play,c));b||as(c);a.k.push(c);return c}
f.bH=function(a){return this.j.length?this.j.pop():N5(this,a)};f.XG=function(a){a&&H(this.k,a)&&(gs(a),zh(a),lb(this.k,a))};f.Rs=function(a){return this.j.length>=(a||1)};f.UG=function(){this.j=[];this.Rs(4)?E(this.k,function(a){as(a);this.j.push(a)},this):this.Qs(4)};M5.prototype.fillPool=M5.prototype.Qs;M5.prototype.getTag=M5.prototype.bH;M5.prototype.releaseTag=M5.prototype.XG;M5.prototype.hasTags=M5.prototype.Rs;M5.prototype.activateTags=M5.prototype.UG;function O5(){X.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.j=new F1(this,500);R(this,this.j)}B(O5,X);function P5(a){X.call(this,["div","ytp-dialog-holder","{{content}}"]);this.k=a;this.j=null}B(P5,X);P5.prototype.show=function(){P5.I.show.call(this);Q5(this);this.j.focus()};P5.prototype.hide=function(){P5.I.hide.call(this);var a=Md(this.element);a&&a.focus()};function Q5(a){if(a.j){a.j.Es();var b=a.k.ob(),c=Gg(a.j.M());a=a.j;b=new Gc(Math.floor((b.width-c.width)/2),Math.floor((b.height-c.height)/2));a.M().style.marginLeft=b.x+"px";a.M().style.marginTop=b.y+"px"}}
P5.prototype.L=function(){this.j=null;P5.I.L.call(this)};function R5(a,b){NE.call(this,a,b);this.C=null;this.D=this.G=this.A=this.k=0;O(this.element,"ytp-tv-static");S5(this,a,b)}B(R5,NE);function T5(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}
function S5(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=document.createElement("canvas");d.width=b;d.height=c;for(var e=d.getContext("2d"),g=e.getImageData(0,0,b,c),h=b*c,k=0;k<h;k++){var l=4*k;g.data[l]=g.data[l+1]=g.data[l+2]=Math.floor(35*Math.random());g.data[l+3]=255}e.putImageData(g,0,0);a.C=d;a.G=T5(b);a.D=T5(c/10);a.context.scale(1.5,1.5)}}R5.prototype.show=function(){R5.I.show.call(this);var a=this.H;this.B=new Date;this.o(a,75)};
R5.prototype.H=function(){var a=1-1/1.5;this.k=(this.k+this.G)%(this.width*a);this.A=(this.A+this.D)%(this.height*a);this.context.drawImage(this.C,-1*this.k,-1*this.A)};R5.prototype.hide=function(){N(this.j);R5.I.hide.call(this)};function U5(){X.call(this,["div",["ytp-error","html5-stop-propagation"],["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.ha="table";this.k=[];if(void 0==Nt){var a=document.createElement("canvas");Nt=!(!a.getContext||!a.getContext("2d"))}Nt&&(this.j=new R5(1,1),this.j.Y(this.element,0),R(this,this.j))}B(U5,X);U5.prototype.show=function(){U5.I.show.call(this);V5(this);this.j&&this.j.show()};U5.prototype.hide=function(){U5.I.hide.call(this);this.j&&this.j.hide()};
function V5(a){a.j&&S5(a.j,a.element.clientWidth,a.element.clientHeight)}U5.prototype.L=function(){wh(this.k);this.k=[];U5.I.L.call(this)};function W5(a){tE.call(this,["div","html5-storyboard",["div","html5-storyboard-filmstrip",["img","html5-storyboard-thumbnail",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]],["div","html5-storyboard-lens",["img","html5-storyboard-lens-thumbnail",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}],["span","html5-storyboard-lens-timestamp"]]]);this.G=!1;this.B=new hn(this.lx,250,this);R(this,this.B);this.Md=a;this.j=this.template.j["html5-storyboard-filmstrip"];
this.D=this.template.j["html5-storyboard-lens"];this.H=this.template.j["html5-storyboard-lens-thumbnail"];this.J=this.template.j["html5-storyboard-lens-timestamp"];this.A=this.template.j["html5-storyboard-thumbnail"];Gd(this.A);this.k=0;this.o=new B1(0,0);this.C=!1;this.hide()}B(W5,tE);f=W5.prototype;f.lq=!1;f.Md=0;f.Fl=0;f.Vk=0;f.gt=10;f.Nb=0;f.Gj=0;f.rn=0;f.Yb=null;f.Be=null;f.disable=function(){this.lq=!0};
f.Ky=function(){for(var a=this.j.cloneNode(!0),b=this.Yb.j[0].jn(),c,d,e=this.Yb.j[0].ft();e<=b;e++)d=this.A.cloneNode(!1),c=AI(this.Be,e,this.Nb),H1(d,c,this.Nb,this.Gj),a.appendChild(d);Hd(a,this.j);this.j=a};f.Sp=function(a,b){Lg(this.j,!1);for(var c,d,e=a;e<=b;e++)if(d=this.j.children[e])c=AI(this.Be,e,this.Nb),H1(d,c,this.Nb,this.Gj);Lg(this.j,!0)};function X5(a,b){if(b!=a.rn){var c=AI(a.Be,b,2*a.Nb),d=Math.round(2*a.Nb),e=Math.round(2*a.Gj);H1(a.H,c,d,e);a.rn=b}}
f.lx=function(){for(var a=this.Fl,b=Math.max(Math.floor(a/this.Nb),0),a=Math.min(Math.ceil((a+this.Md)/this.Nb),this.Yb.j[0].Cf()-1);b<=a;b++)BI(this.Be,b,2*this.Nb)};function Y5(a,b){a.gt=Math.min(10,Math.ceil(a.Md/72));a.Nb=Math.floor(a.Md/a.gt);a.Gj=.555*a.Nb;a.Vk=a.Nb*a.Yb.j[0].Cf();Fg(a.j,a.Vk);var c=Math.round(2*a.Nb),d=.555*c+12;Eg(a.D,c,d);ug(a.D,(a.Md-c)/2);c=d+20;a.M().style.height=vg(c,!0);b&&(a.Sp(0,a.Yb.j[0].Cf()-1),X5(a,a.rn),a.G=!0)}f.show=function(){this.Yb&&W5.I.show.call(this)};
f.L=function(){this.Be=this.Yb=null;Gx(this.k);W5.I.L.call(this)};function Z5(a){X.call(this,["div","html5-storyboard-framepreview",["img","html5-storyboard-framepreview-img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]]);this.D=this.template.j["html5-storyboard-framepreview-img"];this.C=a;this.j=this.C.cb();this.o=this.k=null;this.A=0;this.B=new B1(0,0);this.hide()}B(Z5,X);function $5(a){var b=AI(a.o,a.A,a.j.width);H1(a.D,b,a.j.width,a.j.height);BI(a.o,a.A,a.j.width)}Z5.prototype.show=function(){this.k&&Z5.I.show.call(this)};function a6(a,b,c){X.call(this,["div",["ytp-thumbnail","html5-stop-propagation"]]);this.k=a;this.j=null;c&&(this.j=new q4(a,b),R(this,this.j),this.j.Y(this.element))}B(a6,X);
function b6(a,b){if(b&&b.videoId){var c;if(!a.k){var d=a.element.clientWidth,e=a.element.clientHeight;if(900<d||600<e)c=oF(b,"maxresdefault.jpg");!c&&(430<d||320<e)&&(c=oF(b,"sddefault.jpg")||oF(b,"hqdefault.jpg"))}c||(c=oF(b,"default.jpg"));a.element.style.backgroundImage="url("+c+")"}else a.element.style.backgroundImage=""};var c6={},d6="ontouchstart"in document;function e6(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return Zd(c,function(a){return Xg(a,b)},!0,d)}
function f6(a){var b="mouseover"==a.type&&"mouseenter"in c6||"mouseout"==a.type&&"mouseleave"in c6,c=a.type in c6||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=c6[b],d;for(d in c.ic){var e=e6(b,d,a.target);e&&!Zd(a.relatedTarget,function(a){return a==e},!0)&&c.publish(d,e,b,a)}}if(b=c6[a.type])for(d in b.ic)(e=e6(a.type,d,a.target))&&b.publish(d,e,a.type,a)}}P(document,"blur",f6,!0);P(document,"change",f6,!0);P(document,"click",f6);
P(document,"focus",f6,!0);P(document,"mouseover",f6);P(document,"mouseout",f6);P(document,"mousedown",f6);P(document,"keydown",f6);P(document,"keyup",f6);P(document,"keypress",f6);P(document,"cut",f6);P(document,"paste",f6);d6&&(P(document,"touchstart",f6),P(document,"touchend",f6),P(document,"touchcancel",f6));function g6(){this.A={};this.Nn=[]}function h6(a,b){return"yt-uix"+(a.Zn?"-"+a.Zn:"")+(b?"-"+b:"")}g6.prototype.init=u;g6.prototype.dispose=u;function i6(a,b,c){var d=h6(a,void 0),e=x(c,a);b in c6||(c6[b]=new ti);c6[b].subscribe(d,e);a.A[c]=e}g6.prototype.k=function(a,b,c){var d=eh(a,b);if(d&&(d=r(d))){var e=sb(arguments,2);rb(e,0,0,a);d.apply(null,e)}};function j6(a,b){ch(a,"tooltip-text",b)}g6.prototype.removeData=function(a,b){a&&(a.dataset?delete a.dataset[dh(b)]:a.removeAttribute("data-"+b))};function k6(){g6.call(this);this.j={}}B(k6,g6);ba(k6);f=k6.prototype;f.Zn="tooltip";f.Xj=0;f.register=function(){i6(this,"mouseover",this.Eu);i6(this,"mouseout",this.Wj);i6(this,"click",this.Wj);i6(this,"touchstart",this.pG);i6(this,"touchend",this.Gu);i6(this,"touchcancel",this.Gu)};f.dispose=function(){for(var a in this.j)this.Wj(this.j[a]);this.j={}};
f.Eu=function(a){if(!(this.Xj&&1E3>z()-this.Xj)){var b=parseInt(eh(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),N(b));var b=x(function(){l6(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(eh(a,"tooltip-show-delay"),10)||0,b=M(b,c);ch(a,"tooltip-show-timer",b.toString());a.title&&(j6(a,m6(a)),a.title="");b=ka(a).toString();this.j[b]=a}};
f.Wj=function(a){var b=parseInt(eh(a,"tooltip-show-timer"),10);b&&(N(b),this.removeData(a,"tooltip-show-timer"));b=x(function(){n6(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=M(b,50);ch(a,"tooltip-hide-timer",b.toString());if(b=eh(a,"tooltip-text"))a.title=b;b=ka(a).toString();delete this.j[b]};f.pG=function(a,b,c){this.Xj=0;a=e6(b,h6(this),c.changedTouches[0].target);this.Eu(a)};f.Gu=function(a,b,c){this.Xj=z();a=e6(b,h6(this),c.changedTouches[0].target);this.Wj(a)};
function o6(a,b){j6(a,b);var c=eh(a,"content-id");if(c=md(c))c.innerHTML=b}function m6(a){return eh(a,"tooltip-text")||a.title}
function l6(a,b){if(b){var c=m6(b);if(c){var d=md(p6(a,b));if(!d){d=document.createElement("div");d.id=p6(a,b);d.className=h6(a,"tip");var e=document.createElement("div");e.className=h6(a,"tip-body");var g=document.createElement("div");g.className=h6(a,"tip-arrow");var h=document.createElement("div");h.className=h6(a,"tip-content");var k=q6(a,b),l=p6(a,b,"content");h.id=l;ch(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Ch()||document.body).appendChild(d);
o6(b,c);(c=parseInt(eh(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",O(h,h6(a,"normal-wrap")));h=Xg(b,h6(a,"reverse"));r6(a,b,d,e,k,h)||r6(a,b,d,e,k,!h);var p=h6(a,"tip-visible");M(function(){O(d,p)},0)}}}}
function r6(a,b,c,d,e,g){ah(c,h6(a,"tip-reverse"),g);a=0;g&&(a=1);var h=Hg(b);g=new Gc((h.width-10)/2,g?h.height:0);var k=Ag(b);m5(new Gc(k.x+g.x,k.y+g.y),c,a);var k=sd(window),l=Dg(c);c=Hg(d);var p=Math.floor(c.width/2);a=!!(k.height<l.y+h.height);h=!!(l.y<h.height);g=!!(l.x<p);k=!!(k.width<l.x+p);l=(c.width+3)/-2- -5;b=eh(b,"force-tooltip-direction");if("left"==b||g)l=-5;else if("right"==b||k)l=20-c.width-3;b=Math.floor(l)+"px";d.style.left=b;e&&(e.style.left=b,e.style.height=c.height+"px",e.style.width=
c.width+"px");return!(a||h)}function n6(a,b){if(b){var c=md(p6(a,b));c&&(s6(c),Gd(c),a.removeData(b,"content-id"))}}function p6(a,b,c){a=h6(a)+hh(b);c&&(a+="-"+c);return a}function q6(a,b){var c=null;Uc&&Xg(b,h6(a,"masked"))&&((c=md("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),Mw(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=h6(a,"tip-mask")));return c}
function s6(a){var b=md("yt-uix-tooltip-shared-mask"),c=b&&Zd(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),Nw(b),document.body.appendChild(b))};function t6(a,b){$g(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&O(a,b);n6(k6.getInstance(),a)};function u6(a){BA.call(this);this.o=null;this.j=new lC(a,x(this.C,this),x(this.D,this));R(this,this.j);this.label=Y(0,"YTP_AUDIO_TRACK_TITLE");this.element=new gC(a,void 0,this.j);R(this,this.element);iC(this.element,100);this.element.Ya(this.label);this.priority=0;this.A=!0}B(u6,BA);function v6(a,b){a.o!=b&&(a.o=b,a.j.Ca(b),a.element.Od(a.C(b)))}u6.prototype.C=function(a){return a.name};u6.prototype.D=function(a){this.element.Pd();v6(this,a);this.element.Sb("change")};function w6(a){BA.call(this);this.label=Y(0,"YTP_AUTOPLAY");this.element=new FA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);R(this,this.element);this.element.Ya(this.label);HA(this.element,2050);this.priority=4;this.Ca(0)}B(w6,BA);w6.prototype.getSelected=function(){return this.element.getSelected()};w6.prototype.Ca=function(a){this.element.Ca(a)};function x6(a){CA.call(this,a);EA(this,6900);y6(this)}B(x6,CA);function y6(a){DA(a,"ytp-button-fullscreen-enter");var b=Y(0,"YTP_FULLSCREEN");a.Ya(b);a.k=b};function z6(a,b,c){X.call(this,["div","ytp-menu-container",{tabIndex:-1,role:"menu","aria-labelledby":b},["div","ytp-menu",["div","ytp-menu-content","{{content}}"]]]);this.A=a;this.o=c||!1;this.j=[];this.k=[]}B(z6,X);f=z6.prototype;f.add=function(a){for(var b=this.j.length,c=0;c<this.j.length;c++){if(this.j[c]==a)return;if(c<b&&this.j[c].priority<a.priority){b=c;break}}rb(this.j,b,0,a);A6(this)};f.remove=function(a){lb(this.j,a);A6(this)};
function A6(a){si(a.k);a.k=[];var b,c,d=[],e=1==a.j.length||a.o;e&&a.j.length&&(c=new X(["div","ytp-menu-row",["div","ytp-menu-cell",a.j[0].label]]),d.push(c));var g=!1;for(b=0;b<a.j.length;b++)g=g||a.j[b].B;var h=g?["ytp-menu-cell","ytp-menu-cell-span"]:"ytp-menu-cell";for(b=0;b<a.j.length;b++){var k=a.j[b];c=k.A;c=e?!g||c?new X(["div","ytp-menu-row",["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.A?new X(["div",
"ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.ra(k.element);c.ra(B6(a,k),"more");d.push(c)}a.ra(d)}function B6(a,b){if(b.B){var c=Y(0,"YTP_OPTIONS"),d=new CA(a.A,"ytp-menu-more-options",c);EA(d,2700);d.ra(c);a.k.push(d);d.listen("click",b.G,b);return d}return null}f.focus=function(){this.M().focus()};
f.fj=function(){return this.j.length};f.L=function(){this.j=[];A6(this);z6.I.L.call(this)};function C6(a){CA.call(this,a,"ytp-button-next",Y(0,"YTP_NEXT"),Y(0,"YTP_NEXT"));EA(this,6051)}B(C6,CA);function D6(a){CA.call(this,a);EA(this,6E3);E6(this)}B(D6,CA);function E6(a){DA(a,"ytp-button-play");var b=Y(0,"YTP_PLAY");a.Ya(b)};function F6(a){CA.call(this,a,"ytp-button-prev",Y(0,"YTP_PREVIOUS"),Y(0,"YTP_PREVIOUS"));EA(this,6050)}B(F6,CA);function G6(a){BA.call(this);this.D=this.F="unknown";this.H={};this.label=Y(0,"YTP_QUALITY_TITLE");this.o=new lC(a,x(this.C,this),x(this.J,this),!0);R(this,this.o);this.j=NaN;this.element=new gC(a,void 0,this.o);R(this,this.element);iC(this.element,100);this.element.Ya(this.label);this.priority=-1;this.A=!0}B(G6,BA);G6.prototype.Rn=function(){return this.F};
function H6(a,b,c){a.F=b;a.D=c;a.o.Ca(c);var d=a.o;null!=d.j&&kC(nC(d,d.j),!1);null!=b&&kC(nC(d,b),!0);d.j=b;"auto"==c&&c!=b?(b=Y(0,"YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:I6(a,b)}),b=new HF(b)):b=a.C(b);isNaN(a.j)||(Dx()?Gx(a.j):N(a.j));Dx()?a.j=Fx(x(a.element.Od,a.element,b),0):a.j=M(x(a.element.Od,a.element,b),0)}
function I6(a,b){var c="";switch(b){case "highres":c="2160p";break;case "hd1440":c="1440p";break;case "hd1080":c="1080p";break;case "hd720":c="720p";break;case "large":c="480p";break;case "medium":c="360p";break;case "small":c="240p";break;case "tiny":c="144p";break;case "auto":c=If("YTP_AUTO")}var d=a.H[b];return d&&30<d?c+d.toString():c}
G6.prototype.C=function(a){var b=["span","",I6(this,a)];"highres"==a?(b.push(" "),b.push(["sup","","4K"])):0==a.indexOf("hd")&&(b.push(" "),b.push(["sup","","HD"]));return new Wu(b)};G6.prototype.J=function(a){this.element.Pd();if("auto"!=this.D||"auto"!=a)H6(this,a,a),this.element.Sb("change")};G6.prototype.L=function(){Dx()?Gx(this.j):N(this.j);G6.I.L.call(this)};function J6(a){WB.call(this,a,"ytp-size-toggle-large",Y(0,"YTP_THEATER_MODE"),"ytp-size-toggle-small",Y(0,"YTP_DEFAULT_VIEW"));EA(this,6800)}B(J6,WB);J6.prototype.update=function(){J6.I.update.call(this);this.element.removeAttribute("aria-pressed")};function K6(a){BA.call(this);this.o=2;this.label=Y(0,"YTP_SPEED_TITLE");this.j=new lC(a,x(this.C,this),x(this.D,this));R(this,this.j);this.element=new gC(a,void 0,this.j);R(this,this.element);iC(this.element,100);this.element.Ya(this.label);L6(this,this.o);this.priority=1;this.A=!0}B(K6,BA);function L6(a,b){a.o=b;a.j.Ca(b);a.element.Od(a.C(b))}K6.prototype.C=function(a){return 1==a?Y(0,"YTP_NORMAL_SPEED"):a.toString()};K6.prototype.D=function(a){this.element.Pd();L6(this,a);this.element.Sb("change")};function M6(){X.call(this,["div",["ytp-time-display","html5-control"],{"aria-hidden":"true"},["span","ytp-time-current","{{current}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"],["span","ytp-time-live-badge","Live"]]);this.liveBadge=this.template.j["ytp-time-live-badge"]}B(M6,X);M6.prototype.Ze=function(a){av(this.template,"duration",gv(a))};function N6(a,b,c){ah(a.element,"ytp-time-liveonly",b&&!c);ah(a.element,"ytp-time-live",b&&c)}
M6.prototype.L=function(){this.liveBadge=null;M6.I.L.call(this)};function O6(a,b){this.C=a;X.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:6200},["div","ytp-volume-slider",["div","ytp-volume-slider-foreground"]]]]);this.j=new CA(this.C,"ytp-button-volume",Y(0,"YTP_BUTTON_VOLUME"));R(this,this.j);this.j.Y(this.element,0);EA(this.j,6100);this.A=this.template.j["ytp-volume-panel"];this.o=this.template.j["ytp-volume-slider"];
this.B=this.template.j["ytp-volume-slider-foreground"];this.k=b}B(O6,X);O6.prototype.Ya=function(a){this.j.Ya(a)};
O6.prototype.setVolume=function(a,b){var c=Y(0,b?"YTP_UNMUTE":"YTP_MUTE");this.j.k=c;var c=Math.round(a),d=c+"% "+Y(0,"YTP_SCREENREADER_VOLUME_SETTING")+(b?" "+Y(0,"YTP_SCREENREADER_VOLUME_MUTED"):"");this.Ya(Y(0,b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+Y(0,"YTP_SCREENREADER_CONTROL_TOGGLE"));av(this.template,"valuenow",c);av(this.template,"valuetext",d);c="max";b||0==a?c="off":20>a?c="min":40>a?c="quiet":60>a?c="normal":80>a&&(c="loud");ch(this.j.M(),"value",c);c=(this.k?
85:54)-(this.k?7:5);d=b?0:a;0>=d?c=0:100<=d||(d=(c-0)*d/100,c=0>=d?0:d>=c?c:0+Math.round(d));this.B.style.left=c+"px"};function P6(a,b,c){tE.call(this,["div","html5-video-controls"]);this.xa=a;this.na=new xv(this);this.D={};this.B=null;this.W=new xv(this);this.la=-1;this.ja=null;this.wa=c;this.da=new R1(a,b);R(this,this.da);this.da.Y(this.element);c=new Wu(["div","html5-player-chrome"]);R(this,c);c.Y(this.element);c=c.M();this.ia=this.R=!1;this.U=new F6(a);R(this,this.U);this.U.listen("click",y(this.publish,"previousvideo"),this);this.U.Y(c);this.A=new D6(a);R(this,this.A);this.A.Y(c);this.A.listen("click",this.Fv,
this);this.$=new C6(a);R(this,this.$);this.$.listen("click",y(this.publish,"nextvideo"),this);this.$.Y(c);var d=new Wu(["span","ytp-volume-hover-area"]);R(this,d);d.Y(c);this.j=new O6(a,b);R(this,this.j);this.j.Y(d.M());this.j.j.listen("click",this.Gv,this);this.V=new J1(this.j.o,!0);R(this,this.V);this.V.subscribe("dragstart",this.Cv,this);this.V.subscribe("dragmove",this.Bv,this);this.V.subscribe("dragend",this.Av,this);this.C=new M6;R(this,this.C);this.C.Y(d.M());this.na.listen(this.C.liveBadge,
"click",y(this.publish,"seekto",Infinity));this.ua=new J1(this.j.M());R(this,this.ua);this.ua.subscribe("hoverstart",this.Iv,this);this.oa=new J1(d.M());R(this,this.oa);this.oa.subscribe("hoverend",this.Hv,this);this.J=new x6(a);R(this,this.J);this.J.Y(c);this.J.listen("click",this.zv,this);this.o=new J6(a);R(this,this.o);this.o.hide();this.o.Y(c);this.o.listen("click",this.xv,this);this.H=new CA(a,"ytp-button-watch-on-youtube",Y(0,"YTP_URL_NAVIGATE"),Y(0,"YTP_URL_NAVIGATE"));R(this,this.H);EA(this.H,
6700);this.H.Y(c);this.H.listen("click",this.Ev,this);this.K=new uC(a);R(this,this.K);Q6(this,"__default__",this.K,this.H.M());this.ma=new CA(a,"ytp-button-playlist",Y(0,"YTP_PLAYLIST"),Y(0,"YTP_PLAYLIST"));EA(this.ma,6400);this.ma.Y(c);R(this,this.ma);this.k=new CA(a,"ytp-button-watch-later",Y(0,"YTP_WATCH_LATER"));a.sg(this.k.M(),"YTP_WATCH_LATER_AS_2",Y(0,"YTP_WATCH_LATER"));this.k.Y(c);EA(this.k,6300);this.k.Ya(Y(0,"YTP_WATCH_LATER"));R(this,this.k);this.k.listen("click",this.Dv,this);this.G=
new G6(a);R(this,this.G);this.G.listen("change",this.wv,this);this.P=new K6(a);R(this,this.P);this.P.listen("change",this.yv,this);this.N=new u6(a);R(this,this.N);this.N.listen("change",this.uv,this);this.O=new w6(a);R(this,this.O);this.O.listen("change",this.vv,this)}B(P6,tE);f=P6.prototype;f.oB="__default__";f.Il=!1;f.disable=function(a){R6(this,a,!0)};f.enable=function(a){R6(this,a,!1)};
function R6(a,b,c){for(var d=0;d<b.length;d++)switch(b[d]){case "audio":ah(a.element,"disabled-control-audio",c);break;case "play_pause":var e=a.A;c?e.disable():e.enable();break;case "seek":ah(a.element,"disabled-control-seek",c)}}f.setVolume=function(a,b){if(this.la!=a||this.ja!=b)this.j.setVolume(a,b),this.la=a,this.ja=b};f.Ze=function(a){this.C.Ze(a)};f.Gv=function(){this.publish("mutetoggled")};
function S6(a,b){if(b){if(a.Il){var c=a.A;DA(c,"ytp-button-stop");var d=Y(0,"YTP_STOP")}else c=a.A,DA(c,"ytp-button-pause"),d=Y(0,"YTP_PAUSE");c.Ya(d)}else E6(a.A)}function T6(a){var b=a.$;a.R||a.ia?b.show():b.hide();b=a.U;a.R?b.show():b.hide()}f.Fv=function(){this.publish("playpausetoggled")};f.Iv=function(){O(this.j.M(),"ytp-volume-control-hover")};f.Hv=function(){Zg(this.j.M(),"ytp-volume-control-hover")};f.Cv=function(){O(this.j.M(),"ytp-volume-slider-active");this.publish("volumechangestart")};
f.Bv=function(a){a=(a-Ag(this.j.o).x)/(this.j.k?85:54)*100;a={volume:Fc(a,0,100),muted:!1};this.publish("volumechanged",a)};f.Av=function(){Zg(this.j.M(),"ytp-volume-slider-active");this.publish("volumechangeend");this.j.A.blur()};f.zv=function(){this.publish("fullscreentoggled")};function U6(a,b){var c=a.D[b.k||"__default__"].menu;c&&c.add(b)}function V6(a,b){var c=a.D[b.k||"__default__"].menu;c&&c.remove(b)}
function Q6(a,b,c,d){if(!a.D[b]){if("remote"==b)Fd(Md(a.K.M()),c.M(),0);else{var e=c.M();d=d||a.K.M();d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling)}e=c.listen("click",y(a.lF,b),a);c.M().getAttribute("aria-label");d=c.M().id;d=new z6(a.xa,d,"__default__"!=b);d.hide();d.Y(a.element);a.D[b]={menu:d,button:c,kF:e}}}function W6(a,b){var c=a.D[b];c&&(c.button.detach(),c.button.Aa(c.kF),c.menu.dispose(),delete a.D[b])}
f.Dv=function(){var a=this.k.M();if(!Xg(a,"html5-async-progress")){var b=Xg(a,"html5-async-success");t6(a,"html5-async-progress");this.publish("watchlater",b)}};f.Ev=function(){this.publish("watchonyoutube")};f.pB=function(a){a.target&&(Nd(this.B.button.M(),a.target)||Nd(this.B.menu.M(),a.target))||this.Bf()};f.Bf=function(){this.publish("menu_show")};f.lF=function(a){var b=this.D[a];b&&b.menu.fj()&&(b.button.j?this.Bf():this.publish("menu_show",a))};
f.uv=function(){this.publish("audiotrackchanged",this.N.o);this.Bf()};f.wv=function(){var a=this.G.Rn();this.publish("qualitychanged",a);this.publish("controlclick","quality-"+a);this.Bf()};f.xv=function(){var a=this.o;a.j?YB(a):XB(a);this.o.M().focus();this.publish("sizechangerequested",1==this.o.j)};f.yv=function(){var a=this.P.o;this.publish("speedchanged",a);this.publish("controlclick","speed-"+a);this.Bf()};f.vv=function(){this.publish("autonavchangerequest",0==this.O.getSelected()?2:1)};
f.ey=function(a){var b=a.target;a=b==this.A.M()?"playpause":b==this.j?"volume":b==this.C?"time":b==this.K?"settings":b==this.k?"watchlater":b==this.H?"youtube":b==this.J.M()?"fullscreen":b==this.o?"size":a.target.className;this.publish("controlclick",a)};f.focus=function(){this.A.M().focus()};f.L=function(){this.na.removeAll();this.W.removeAll();this.B=null;for(var a in this.D)W6(this,a);this.wa||(this.la=-1,this.ja=null);P6.I.L.call(this)};function X6(a){Y6("add_to_watch_later_list",a)}function Z6(a){Y6("delete_from_watch_later_list",a)}function Y6(a,b){yj("/playlist_video_ajax?action_"+a+"=1",{method:"POST",ze:{feature:b.lH||null,authuser:b.Wa||null,pageid:b.pageId||null},yb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.mH||null,delete_from_playlists:b.nH||null,add_to_playlists:b.kH||null,plid:Cf("PLAYBACK_ID")||null},context:b.context,onError:b.onError,$a:b.$a,Lb:b.Lb})};function $6(a,b){Q.call(this);this.G=a;this.D=[];this.H=b;this.F=[]}B($6,Q);function a7(a,b,c){a.D.push(a.G.subscribe(b,c,a))}function b7(a,b,c){a.F.push(a.H.subscribe(b,c,a))}function c7(a){for(var b=0;b<a.D.length;b++)a.G.Kb(a.D[b]);for(b=0;b<a.F.length;b++)a.H.Kb(a.F[b])}$6.prototype.L=function(){c7(this);$6.I.L.call(this)};function d7(a,b,c,d){$6.call(this,a,b);this.C=!1;this.B=a;this.j=b;this.A=c;this.k=0;this.o=d;a=a.S();a.color&&O(this.j.G,a.color);a.Vh&&(a=this.j,a.k=new O1,a.k.Y(a.M()),R(a,a.k));e7(this)}B(d7,$6);
function e7(a){c7(a);a.C=!0;a7(a,"cuerangesadded",a.rF);a7(a,"cuerangesremoved",a.sF);a7(a,"cuerangemarkersupdated",a.qF);a7(a,"progresssync",a.bq);a7(a,"resize",a.uF);a7(a,"seekto",a.wF);a7(a,"videodatachange",a.xF);a7(a,"videoplayerreset",a.aq);a7(a,"videoready",a.vF);b7(a,"beginseeking",a.pF);b7(a,"endseeking",a.tF);b7(a,"seekto",a.oF)}f=d7.prototype;f.rF=function(a){$1(this.j,a)};f.sF=function(a){b2(this.j,a)};f.qF=function(a){$1(this.j,a)};
f.uF=function(a){var b=this.j;b.B=a.width;S1(b);b=this.A;b.j=b.C.cb();b.k&&b.o&&$5(b);b=this.o;a=a.width;!b.Yb||b.Md==a&&b.G||(b.Md=a,Y5(b,!0))};f.wF=function(a){var b=this.B.kc.Dg();a=E1(new B1(b.seekableStart,b.seekableEnd),a);b=this.j;Y1(b,n(a)?a:b.C,n(void 0)?void 0:b.H);b=this.o;if(b.Yb){b.Fl=b.Vk*a-b.Md/2;ug(b.j,-1*b.Fl);var c=D1(b.o,a),d=fI(b.Yb,b.Nb),d=b.Yb.j[d].yi(c);X5(b,d);Pd(b.J,gv(b.C?c-b.o.j:c));jn(b.B)}b=this.A;b.k&&b.o&&(a=D1(b.B,a),c=fI(b.k,b.j.width),b.A=b.k.j[c].yi(a),$5(b))};
f.aq=function(a){if(1!=a.getPlayerType()){if(!this.C)return;c7(this);this.C=!1;a7(this,"videoplayerreset",this.aq)}else if(!this.C){e7(this);var b=this.j;Ed(b.ia);b.J={};b.R={};$1(this.j,a.D.j.j||[])}this.j.k&&P1(this.j.k);this.k&&(N(this.k),this.k=0);this.o.hide();this.A.hide();this.bq()};
f.xF=function(a,b){var c=new B1(0,b.lengthSeconds),d=this.j;d.j=c;Z1(d);S1(d);this.j.k&&(this.j.k.k=c);this.o.o=c;this.A.B=c;c=this.j;c.O=b.clipStart;X1(c);Y1(c,c.C,c.H);c=this.j;c.P=b.clipEnd;X1(c);Y1(c,c.C,c.H);ah(this.j.G,"spacecast-cached",!!b.$)};
f.vF=function(a){if(this.j.k){var b=this.j.k;b.Ji||(PI(a)?(O(b.M(),"with-thumbnail"),b.Ce=PI(a),b.Mg=QI(a),b.Mg.subscribe("l",b.Ry,b)):P1(b))}b=this.o;b.A&&Ed(b.j);Zg(b.M(),"enabled");Gx(b.k);b.Yb=PI(a);b.Be=QI(a);b.C=a.Va;b.Yb&&!b.lq&&(O(b.M(),"enabled"),b.Be.subscribe("l",b.Sp,b),Y5(b),Gx(b.k),b.k=Fx(x(b.Ky,b)));b=this.A;b.k=PI(a);b.o=QI(a);this.j.hb=a.wb?!0:!1;TI(a)?(a=this.j,a.o&&(a.o.dispose(),a.o=null)):(a=this.j,a.o||(a.o=new J1(a.G,!0),a.o.subscribe("hoverstart",a.My,a),a.o.subscribe("hovermove",
a.Oy,a),a.o.subscribe("hoverend",a.Ny,a),a.o.subscribe("dragstart",a.Ly,a),a.o.subscribe("dragmove",a.Qy,a),a.o.subscribe("dragend",a.Py,a)))};f.bq=function(a,b){var c=this.B.kc.Dg(),d=n(a)?a:c.current,e=new B1(c.seekableStart,n(b)?b:c.seekableEnd),c=E1(e,c.loaded),d=E1(e,d),g=this.j;g.j=e;Z1(g);S1(g);g=this.j;Y1(g,n(d)?d:g.C,n(c)?c:g.H);this.j.k&&(this.j.k.k=e);this.o.o=e;this.A.B=e};
f.pF=function(a){g1(this.B.o);null==a||isNaN(a)||this.B.Ph("chaptermarker",{position:a});this.k&&N(this.k);this.k=M(x(this.fE,this),200)};f.tF=function(){this.B.o.Hi();this.o.hide();this.A.hide();this.k&&(N(this.k),this.k=0)};f.oF=function(a,b){yq(this.B,a,b)};f.fE=function(){this.o.show();this.A.show()};f.L=function(){d7.I.L.call(this)};function f7(a,b,c,d){$6.call(this,a,b);a7(this,"applicationplayerstatechange",this.zx);a7(this,"controlsdisabled",this.Cx);a7(this,"controlsenabled",this.Ex);a7(this,"liveviewshift",this.Hx);a7(this,"fullscreentoggled",this.Gx);a7(this,"presentingplayerstatechange",this.Qx);a7(this,"progresssync",this.my);a7(this,"videoplayerreset",this.ly);a7(this,"videodatachange",this.ky);a7(this,"onPlaybackQualityChange",this.Tx);a7(this,"onVolumeChange",this.Zx);a7(this,"menu_button_add",this.Ix);a7(this,"menu_button_remove",
this.Jx);a7(this,"menu_item_add",this.Kx);a7(this,"menu_item_remove",this.Lx);a7(this,"menu_show",this.iy);a7(this,"onPlaybackRateChange",this.Px);a7(this,"onPlaylistUpdate",this.Rx);a7(this,"autonavchange",this.hy);b7(this,"fullscreentoggled",this.Fx);b7(this,"mutetoggled",this.Mx);b7(this,"nextvideo",this.Nx);b7(this,"playpausetoggled",this.Ox);b7(this,"previousvideo",this.Sx);b7(this,"qualitychanged",this.Ux);b7(this,"audiotrackchanged",this.Ax);b7(this,"seekto",this.jy);b7(this,"sizechangerequested",
this.Vx);b7(this,"speedchanged",this.Wx);b7(this,"volumechanged",this.$x);b7(this,"volumechangestart",this.Yx);b7(this,"volumechangeend",this.Xx);b7(this,"watchlater",this.ay);b7(this,"watchonyoutube",this.by);b7(this,"controlclick",this.Bx);b7(this,"showdialog",this.fy);b7(this,"menu_show",x(a.Fh,a));b7(this,"autonavchangerequest",this.gy);this.j=a;this.k=b;this.o=NaN;this.A=new d7(a,b.da,c,d);R(this,this.A);a=a.S();a.mc&&(b=this.k,this.j.S().zd?XB(b.o):YB(b.o),b.o.show());a.Ve||this.k.k.hide();
a.mg&&this.k.J.show();a.J&&(b=this.k,c=b.P,mC(c.j,this.j.j.J?Kq:[1]),d=2300,pC(c.j,d++),d=d++,EA(c.element.j,d),U6(b,b.P));if(a.experiments.G)for(b=this.k,c=[b.A,b.j,b.C,b.k,b.H,b.J,b.K,b.o],d=0;d<c.length;d++)b.na.listen(c[d].M(),"click",b.ey,b);Fq(a)&&this.k.H.hide()}B(f7,$6);f=f7.prototype;f.Cx=function(a){this.k.disable(a)};f.Ex=function(a){this.k.enable(a)};f.Hx=function(a){ah(this.k.C.element,"ytp-time-live-dvr",!a)};
f.Gx=function(a){var b=this.k;this.j.S();a?(a=b.J,DA(a,"ytp-button-fullscreen-exit"),b=Y(0,"YTP_EXIT_FULLSCREEN"),a.Ya(b),a.k=b):y6(b.J);g7(this)};f.Qx=function(a){W(a.state,2)||(0<tv(a,8)?S6(this.k,!0):0>tv(a,8)?S6(this.k,!1):0>tv(a,2)&&S6(this.k,W(a.state,8)));0>tv(a,16)&&h7(this,this.j.getCurrentTime())};f.zx=function(a){if(W(a.state,2)&&!iF(this.j)){a=this.k.A;DA(a,"ytp-button-replay");var b=Y(0,"YTP_REPLAY");a.Ya(b)}};
f.ly=function(a){i7(this)&&(h7(this,a.getCurrentTime()),t6(this.k.k.M()),L6(this.k.P,1),a.getVideoData()&&j7(this,a.getVideoData()))};f.ky=function(a,b){i7(this)&&j7(this,b)};function g7(a){a.j.A?(a=a.k,a.R=!0):(a=a.k,a.R=!1);T6(a)}function k7(a){var b=a.j.S();!b.experiments.o||b.isMobile||a.j.A||"detailpage"!=b.ca?(a=a.k,V6(a,a.O)):(a=a.k,U6(a,a.O))}
function j7(a,b){a.k.Ze(b.lengthSeconds);var c=Mq(a.j),d=a.k,e=Pq(c),g=c.j.j?Ct(c.j.j):{},h=d.G;h.H=g;mC(h.o,e);pC(h.o,2600);EA(h.element.j,2601);e.length?U6(d,d.G):V6(d,d.G);d=a.k;e=Lq(a.j);g=l7(a.j);H6(d.G,e,g);vC(d.K,e);d=a.k;c=c.j.j?c.j.j.audioTracks:[];mC(d.N.j,c);1<c.length?U6(d,d.N):V6(d,d.N);(c=PD(a.j))&&v6(a.k.N,c);c=a.k;d=b.Va;e=b.wb;c.Il=d&&!e;N6(c.C,d,e);W(a.j.getPlayerState(),2)||S6(a.k,W(a.j.getPlayerState(),8));g7(a);k7(a)}
f.Tx=function(a){if(i7(this)){var b=this.k,c=l7(this.j);H6(b.G,a,c);vC(b.K,a)}};f.Zx=function(a){this.k.setVolume(a.volume,a.muted)};f.Kx=function(a){U6(this.k,a)};f.Lx=function(a){V6(this.k,a)};f.Ix=function(a,b){Q6(this.k,a,b)};f.Jx=function(a){W6(this.k,a)};
f.iy=function(a){if(a==P6.prototype.oB&&this.j.D.isAvailable("captions")){var b=Rq(this.j.D,"captions");b&&!b.loaded&&b.load()}b=this.k;b.W.removeAll();b.B&&(document.activeElement&&Nd(b.B.menu.M(),document.activeElement)&&Md(b.element).focus(),b.B.menu.hide(),YB(b.B.button),b.B=null);a&&(a=b.D[a])&&(b.publish("showdialog"),b.B=a,XB(a.button),a.menu.show(),a.menu.focus(),b.W.listen(window,"blur",b.Bf),b.W.listen(document,"click",b.pB))};f.my=function(a){h7(this,n(a)?a:this.j.kc.Dg().current)};
f.Fx=function(){Gq(this.j,!this.j.S().Za)};f.Mx=function(){this.j.H.muted?Cq(this.j):Bq(this.j)};f.Nx=function(){$q(this.j)};f.Ox=function(){m7(this.j)};f.Sx=function(){ar(this.j)};f.Ux=function(a){Ar(this.j,a,1)};f.Ax=function(a){var b=Mq(this.j,1);if(b&&!b.ea()&&!W(b.A,128)&&b.j.j.j&&(b=b.o,!b.ea())){var c=b.B;a=a.id;c.B="m";c.A=c.F.j[a];c.G=yZ(c);b.publish("audioformatchange",new sZ(c.G,c.o,c.B));x_(b,b.o,yZ(b.B));RZ(b.o);u_(b)}};f.fy=function(a){this.j.mk(a)};f.jy=function(a){yq(this.j,a,!0)};
f.Vx=function(a){var b=this.j;Gq(b,!1);a!=b.j.zd&&(b.j.zd=a,b.publish("SIZE_CLICKED",a))};f.Wx=function(a){Jq(this.j,a)};f.Yx=function(){this.o=Aq(this.j)};f.$x=function(a){n7(this.j,a)};f.Xx=function(){Aq(this.j)||n7(this.j,{muted:!0,volume:this.o})};f.by=function(){G5(this.j)};f.Bx=function(a){r5(this.j,a)};f.ay=function(a){(a?Z6:X6).call(this,o7(this,a?this.yG:this.zG))};f.Px=function(a){L6(this.k.P,a)};f.Rx=function(){g7(this);k7(this)};
f.hy=function(a){var b=this.k;b.ia=1!=a;T6(b);b.O.Ca(b.ia?0:1)};f.gy=function(a){this.j.publish("onAutonavChangeRequest",1!=a)};function o7(a,b){return{videoIds:jr(a.j).videoId,Wa:a.j.S().Wa,pageId:a.j.S().pageId,$a:b,onError:a.pE,context:a}}f.zG=function(){var a=this.k.k.M();t6(a,"html5-async-success");this.j.publish("WATCH_LATER_VIDEO_ADDED")};f.yG=function(){t6(this.k.k.M());this.j.publish("WATCH_LATER_VIDEO_REMOVED")};
f.pE=function(a,b){var c=b&&b.error_message,d=this.k.k.M();t6(d,"html5-async-error");if(c){var e=k6.getInstance(),g=m6(d);o6(d,c);l6(e,d);j6(d,g)}};function i7(a){return 1==Mq(a.j).getPlayerType()}function h7(a,b){if(i7(a)&&(av(a.k.C.template,"current",gv(b)),14400<b&&a.j.getVideoData().wb)){var c=a.k;c.Il=!0;N6(c.C,!0,!1)}};var p7={0:[],1:["autohide-controls"],2:["autohide-controls-aspect","autohide-controls-fullscreen","autominimize-progress-bar-non-aspect"],3:["autominimize-progress-bar"]};
function q7(a){V4.call(this,a);this.ua=this.$=this.da=this.G=this.Ba=this.B=null;a=a.S();if("1"==a.j){this.G=new P6(this.k,a.Mc,a.experiments.V);R(this,this.G);this.G.Y(this.element);this.da=new Z5(this.k);var b=this.da.M();this.o.appendChild(b);R(this,this.da);this.$=new W5(this.k.ob().width);this.$.Y(this.G.da.M(),0);R(this,this.$);this.ua=new f7(this.app,this.G,this.da,this.$);R(this,this.ua)}this.N=new r4(60);R(this,this.N);O(this.N.element,"html5-video-loader");O(this.N.element,"html5-center-overlay");
O(this.N.element,"ytp-scalable-icon-grow");this.N.Y(this.o);this.Xa=new X(["div","ytp-clickguard"]);R(this,this.Xa);this.Xa.Y(this.element);this.O=new a6(a.isMobile,a.lc,a.Go);R(this,this.O);this.O.Y(this.o);this.O.listen("click",this.ux,this);this.V=new O5;R(this,this.V);this.V.Y(this.o);this.oa=null;this.J=new S4(new R4(this.element),x(this.vx,this),a.Mc);this.J.subscribe("autohideupdate",x(this.wx,this));this.xa=!0;this.A=new P5(this.k);R(this,this.A);this.A.hide();this.A.Y(this.element)}
B(q7,V4);f=q7.prototype;f.jm=function(){q7.I.jm.call(this);this.app.subscribe("appstatechange",this.GF,this);this.app.subscribe("initializingmode",this.HF,this);this.app.subscribe("onDetailedError",this.IF,this);this.app.subscribe("clearvideooverlays",this.On,this);this.app.subscribe("menu_show",this.JF,this)};f.ek=function(){q7.I.ek.call(this);this.Qn(this.app.S());this.Pn()};f.vx=function(a){if(Nd(this.o,a))return!1;for(;!a||!Ud(a);){if(!a||a==this.element)return!1;a=Md(a)}return!0};
f.wx=function(a){ah(this.element,"ytp-block-autohide",!a);this.app.Sa(a?"onHideControls":"onShowControls")};f.Qn=function(a){a.theme&&this.addClass(a.theme+"-theme");(a.ua||"0"==a.j)&&this.addClass("modest-branding");a.ci&&this.addClass("html5-hide-share");a.Ja||this.addClass("html5-hide-volume");a.Mc&&(this.addClass("html5-tablet"),O(document.body,"html5-tablet-body"));r7(this)&&this.addClass("ideal-aspect");!this.J.j||this.addClass("ytp-block-autohide")};
f.lh=function(a){q7.I.lh.call(this,a);var b=this.app.S();ah(this.element,"hide-info-bar",!a||!b.yk);var c=p7[b.ia];a&&"1"==b.j?Yg(this.element,c):$g(this.element,c)};f.qh=function(a){q7.I.qh.call(this,a);s7(this,a);this.B&&V5(this.B);ah(this.element,"ideal-aspect",r7(this));this.A.F&&Q5(this.A)};f.hk=function(){q7.I.hk.call(this);s7(this,this.cb())};f.GF=function(a){(this.xa=2==a)?(this.addClass("cued-mode"),b6(this.O,this.app.getVideoData())):this.removeClass("cued-mode")};
f.Kn=function(a){q7.I.Kn.call(this,a);if(this.element){W(a.state,2)&&b6(this.O,this.app.getVideoData());this.J.Bb(128,!(W(a.state,8)&&!W(a.state,32)&&!W(a.state,2)));var b;b=a.state;if(W(b,2))b=["ended-mode"];else{var c=[];W(b,8)?c.push("playing-mode"):W(b,4)&&c.push("paused-mode");W(b,1)&&!W(b,32)&&c.push("buffering-mode");W(b,32)&&c.push("seeking-mode");W(b,64)&&c.push("unstarted-mode");b=c}H(b,"ended-mode")&&((c=t7())&&c.autoPlay||iF(this.app))&&lb(b,"ended-mode");this.oa&&$g(this.element,this.oa);
Yg(this.element,b);this.oa=b;b=Mq(this.app);!W(b.A,1)||W(b.A,2)||W(b.A,4)||2==b.getPlayerType()?this.N.hide():this.N.show();0>tv(a,64)&&u7(this.app)}};f.Pn=function(){this.app.S().Mc&&(fv(this,this.element,"gesturechange",this.MD),fv(this,this.element,"gestureend",this.ND));Tr?this.o.onclick=x(function(a){this.ln(new nh(a))},this):this.mn();var a,b=x(function(){var b=this.j;b&&(as(b),KE.fillPool(4),this.Aa(a))},this);a=fv(this,this.element,"click",b,void 0,!0)};
f.mn=function(){fv(this,this.o,"click",this.ln);fv(this,this.o,"dblclick",this.gu)};f.ux=function(){var a=this.app.S();a.experiments.J&&"embedded"==a.ca&&a.isMobile&&(!Rh||a.H)&&Gq(this.app,!0);v7(this);m7(this.app)};f.ln=function(a){$d(a.target,"html5-stop-propagation")||(this.element.focus(),"3"!=this.app.S().j&&(v7(this),m7(this.app)));r5(this.app,"screenclick")};f.gu=function(a){6!=this.app.J&&this.app.S().mg&&(!$d(a.target,"html5-stop-propagation")&&Yx(this.app),r5(this.app,"screendoubleclick"))};
f.MD=function(a){var b=a.scale,c=this.app.S().Za;b*(c?-1:1)>(c?-.7:1.3)&&Yx(this.app);a.preventDefault()};f.ND=function(a){a=a.scale;var b=this.app.S().Za;a*(b?-1:1)>(b?-.9:1.1)&&Yx(this.app)};function r7(a){a=new I(a.element.clientWidth,a.element.clientHeight);a=(a.width/a.height).toFixed(1);return"1.3"==a||"1.8"==a}f.yf=function(a){if(a){var b=this.A;b.j=a;b.ra(a);this.A.show();this.J.Bb(32,!0)}else a=this.A,a.j=null,a.ra(null),this.A.hide(),this.J.Bb(32,!1)};
f.JF=function(a){ah(this.element,"ytp-menu-shown",!!a);this.J.Bb(64,!!a)};
f.IF=function(a){if(this.element){this.B||(this.B=new U5,this.B.Y(this.element),R(this,this.B));var b=this.app.S(),c=a.message,d="embedded"==b.ca,e=a.messageKey,g;a=!1;"YTP_ERROR_GENERIC"!=e||b.lc?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==e?(g="https://get.adobe.com/flashplayer/",d=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=e||b.lc||(g="/html5",e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(g="//support.google.com/youtube/?p=player_error1",e="YTP_ERROR_GENERIC_WITH_LINK_2",b=this.app.S(),
b.experiments.da&&Fq(b)&&(a=!0));g&&(c=If(e,{BEGIN_LINK:'<br/><a href="'+g+'"'+(d?' target="_blank"':"")+">",END_LINK:"</a>"}));d=this.B;wh(d.k);d.k=[];av(d.template,"content",new HF(c));if(a)for(c=this.B,a=x(this.PE,this),d=c.element.getElementsByTagName("a"),g=0;g<d.length;g++)c.k.push(P(d[g],"click",a));this.B.show()}};f.PE=function(a){var b=r("yt.player.exports.feedbackShowArticle"),c={as3:!1,html5:!0,player:!0,cpn:this.app.getVideoData().ya};b(3037019,"player_error",c)||a.preventDefault()};
f.cb=function(){var a=this.app.S();return"0"==a.j||"3"==a.j||"1"==a.ia&&(a=Mq(this.app),!a||2!=a.getPlayerType())?this.ob():new I(this.o.clientWidth,this.o.clientHeight)};f.HF=function(){this.B&&this.B.hide()};function v7(a){var b=Mq(a.app).getPlayerState(),c=a.app.getVideoData(),d="html5-bezel-pause";W(b,8)?c.Va&&!c.wb&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.V;d&&av(a.template,"icon",d);a.j.show(!0)}
f.Qf=function(){var a=this.app.S();ch(document.documentElement,"player-size",a.Za?"fullscreen":a.zd?"large":"small");q7.I.Qf.call(this)};f.On=function(a){this.J.Bb(16,a)};
function s7(a,b){if(!b.isEmpty()){var c=b.width,d=b.height,e=0,g=0;c/d>480/360?(e=d,g=360):(e=c,g=480);for(var c=Fc(e/g,.5,1),d=nd("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++){var k=1==c?"":"scale("+c+")";pg(d[h],"transform",k)}c=Fc(e/g*.33,.5,1);d=nd("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)k=1==c?"":"scale("+c+")",pg(d[h],"transform",k)}}f.pk=function(a){this.G&&S6(this.G,a)};
f.L=function(){this.J.dispose();zh(this.element);Gd(this.Ba);q7.I.L.call(this);this.O=this.V=this.Ba=null};function w7(a){q7.call(this,a);this.P=new X(["img",["html5-watermark","ytp-scalable-icon-shrink"],{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:Y(0,"YTP_WATERMARK")}]);R(this,this.P);this.P.hide();this.P.Y(this.element);this.P.listen("click",this.sr,this);this.C=new o5(this.app,this.element,this.k);R(this,this.C);this.C.Y(document.body);a.S().lc&&O(this.C.M(),"house-brand");this.na=null;this.D=new D5(this.k,this.app);this.D.Y(this.element);R(this,this.D);
this.D.subscribe("title-click",x(this.sr,this));this.D.subscribe("share-click",x(this.JA,this));this.rr(w7.k/w7.j)}B(w7,q7);w7.k=3E4;w7.j=50;f=w7.prototype;f.fh=null;f.rr=function(a){var b;if(!(b=0>=a)){b=J("div",{"class":"html5-player-css-loaded"});document.body.appendChild(b);var c="none"==sg(b,"display");Gd(b);b=c}b?0>=a&&Gf(Error("Warning: Player CSS missing.")):M(x(this.rr,this,a-1),w7.j)};f.Qn=function(a){w7.I.Qn.call(this,a);x7(this);a.mc&&this.Qf()};
function x7(a){ah(a.element,"ytp-tiny-mode",290>a.ob().width)}f.mn=function(){this.app.S().mg?this.na||(this.na=new b5(this.o,x(this.ln,this),x(this.gu,this)),R(this,this.na)):w7.I.mn.call(this)};f.Uj=function(a){w7.I.Uj.call(this,a);this.D&&this.D.update(a);var b=this.app;if(b.j.vb?0:b.getVideoData().W||b.j.ub){if(a=a.W)this.P.M().src=a;this.P.show()}};
f.Pn=function(){w7.I.Pn.call(this);var a=this.app.S();a.Mc||(fv(this,this.element,"mousedown",this.BF,void 0,!0),fv(this,this.element,"keydown",this.AF,void 0,!0));a.zk||(fv(this,this.element,"keypress",this.DF),fv(this,this.element,"keydown",this.CF),fv(this,this.element,"keyup",this.EF))};f.AF=function(a){var b=!1;switch(a.keyCode){case 32:case 13:if(b=a.target)a=a.target,b="BUTTON"==a.tagName||"A"==a.tagName||"button"==a.getAttribute("role");break;case 9:b=!0}b&&O(this.element,"ytp-keyboard-focus")};
f.BF=function(){Zg(this.element,"ytp-keyboard-focus")};
f.DF=function(a){var b=!1===a.Jb.returnValue,c=a.keyCode;if(!b){if(179==c||178==c)179==c&&(this.publish("playpausetoggled",!0),b=!0),178==c&&(Eq(this.app),b=!0);98==c&&(this.app.Gc("onBackgroundChange"),b=!0);111==c&&(this.app.Gc("onTextOpacityChange"),b=!0);119==c&&(this.app.Gc("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.app.Gc("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.app.Gc("onFontSizeDecrease"),b=!0;99==c&&(this.app.Gc("onCaptionsToggle"),b=!0);102==c&&(Yx(this.app),b=!0);109==c&&
(this.app.H.muted?Cq(this.app):Bq(this.app),b=!0);32==c&&(v7(this),m7(this.app),b=!0);48<=c&&57>=c&&(yq(this.app,(c-48)/10*zq(this.app)),b=!0);if(60==c||62==c){var b=this.app.j.J?Kq:[1],d=b.indexOf(this.app.da);60==c&&0<d?Jq(this.app,b[d-1]):62==c&&d<b.length-1&&Jq(this.app,b[d+1]);b=!0}if(d=63==c)d=this.app.S(),d=d.experiments.$?!Fq(d)||d.Za:!0;d&&(this.fh||(this.fh=new H5(this.k),R(this,this.fh),this.fh.listen("done",this.Nl,this)),this.A.F?this.Nl():this.yf(this.fh),b=!0);b&&a.preventDefault()}this.app.Gc("onKeyPress",
a);this.app.S().xb()&&this.app.Ih("onKeyPress",{keyCode:c,handled:b})};
f.CF=function(a){var b=!1===a.Jb.returnValue,c=a.keyCode;if(!b){if(38==c||40==c||37==c||39==c){b=5;a.ctrlKey&&(b*=2);if(38==c)b=this.app,n7(b,{volume:b.H.volume+5,muted:!1});else if(40==c)b=this.app,n7(b,{volume:b.H.volume-5,muted:!1});else if(37==c){var d=this.app,b=-1*b;yq(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.app,yq(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(yq(this.app,0),b=!0);35==c&&(yq(this.app,Infinity),b=!0);27==c&&(Ch()?(Gq(this.app,!1),b=!0):this.C&&this.C.F?
(this.C.hide(),b=!0):"1"==this.app.S().j&&null!=this.G.B?(this.app.Fh(),b=!0):this.A.F&&(this.Nl(),b=!0));b&&a.preventDefault()}this.app.Gc("onKeyDown",a);this.app.S().xb()&&this.app.Ih("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.app.S().Za})};f.EF=function(a){this.app.Gc("onKeyUp",a)};f.sr=function(){G5(this.app)};
f.JA=function(){if("detailpage"==this.app.S().ca){Gq(this.app,!1);var a=this.app,b=a.getVideoData();a.publish("SHARE_CLICKED",{videoId:b.videoId,listId:b.playlistId,feature:"player_"+a.j.ca})}else a=!B5(this.D),this.app.ik(a),a&&C5(this.D,!0)};f.On=function(a){w7.I.On.call(this,a);C5(this.D,!1)};f.Nl=function(){this.yf()};f.Cm=function(a){w7.I.Cm.call(this,a);this.C&&(a?this.C.Y(this.M()):this.C.Y(document.body),this.C.hide());a&&"1"==this.app.S().j&&this.G.focus()};
f.qh=function(a){w7.I.qh.call(this,a);x7(this)};f.km=function(){w7.I.km.call(this);if(!this.app.S().isMobile){var a=new L5(this.element,this.app.S());R(this,a);this.k.j=a;var b=nd("ytp-tooltip-anchor",this.element);E(b,function(b){a.pf(b)})}};f.ob=function(){var a=this.app.S();return"detailpage"!=a.ca||a.Za?w7.I.ob.call(this):i5(a,!0)};f.cb=function(){var a=this.app.S();return"detailpage"!=a.ca||a.Za?w7.I.cb.call(this):i5(a)};
f.au=function(){var a=this.cb();"1"==this.app.S().j&&(a=a.clone(),a.height+=3);return a};var ir={"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};function y7(a,b){S.call(this);var c=b;c instanceof Dh||(c=new Dh(c));this.X=c;this.j=new dZ(this.X.args||{});R(this,this.j);this.k=new w7(this);R(this,this.k);this.k.subscribe("resize",this.jv,this);this.J=1;this.wa={};this.V=null;this.H=this.j.fk?qq():{volume:100,muted:!1};this.jc=this.j.xb()?new qr(this,1):new vq(this,1);R(this,this.jc);this.vb=new Br(this);R(this,this.vb);this.kc=new Br(this,1);R(this,this.kc);this.$=this.B=null;this.la={};c=new AG;UD(this.j)&&(c.k=!0,c.j=.1);this.ma=new qG(c);
this.xa={internalvideodatachange:this.Pu,liveviewshift:this.Yu,playbackready:this.Qu,playbackstarted:this.Ru,statechange:this.Su,signatureexpired:this.dv};var c=new iJ,d=this.vb;c.k!=d&&(jJ(c),c.C={},c.k=d);d={};d.loaded=x(this.jo,this);d.unloaded=x(this.ko,this);d.command_pause=z7(this.pauseVideo,this);d.command_play=z7(this.Cd,this);d.command_seek=z7(this.Te,this);d.command_disable_controls=x(this.hg,this);d.command_enable_controls=x(this.Gh,this);d.command_redirect_controls=x(this.oo,this);d.command_stop_redirect_controls=
x(this.Oh,this);d.command_redirected_show_is_playing=x(this.k.pk,this.k);d.command_progress=x(this.ok,this);d.command_add_cuerange=x(this.no,this);d.command_remove_cuerange=x(this.po,this);d.command_remove_cuerange_all=x(this.lo,this);d.command_preroll_ready=x(this.qo,this);d.command_update_cuerange_markers=x(this.ro,this);d.command_show_dialog=x(this.mk,this);d.command_clear_video_overlays=x(this.ik,this);d.command_navigate_to_url=x(this.lk,this);d.command_log=x(this.Ph,this);d.publish_external_event=
x(this.Ih,this);d.module_menu_button_add=x(this.co,this);d.module_menu_button_remove=x(this.eo,this);d.module_menu_item_add=x(this.fo,this);d.module_menu_item_remove=x(this.ho,this);d.module_menu_show=x(this.Fh,this);d.vss_segment=x(this.nv,this);c.D=d;this.D=c;R(this,this.D);this.K=new TY(this.j,"",this.D);c=new z0(this.j,1,this.K,this.k);A7(this,c,this.xa);this.o=c;this.o.$=this.ma;this.Fb={beginseeking:this.Uu,endseeking:this.Wu,internalaudioformatchange:this.Tu,internalvideodatachange:this.lv,
internalvideoformatchange:this.ev,progresssync:this.av,seekto:this.kv,onLoadProgress:this.Zu,onVideoProgress:this.fv,newlicensesession:this.hv,playbackready:this.$u,statechange:this.iv,connectionissue:this.Vu,heartbeatparams:this.gv,videoelementevent:this.mv};this.N=this.C=null;this.Ba=this.na=-1;this.G=this.F=null;this.O={};this.W=null;this.U={};this.ia=null;this.gb=0;this.ua=!1;this.R=!0;this.ja=this.A=null;this.da=1;this.Wb=this.ha=this.Fa=null;this.hb=this.Xa=!1;this.oa=null;this.ub=0;this.wd=
!1;this.Ja=0;c=new rr(this.X.args);if(RI(c)){B0(this.o,c,x(this.ig,this));if("detailpage"==this.j.ca){var d=c.videoId,e=Yi("yt-player-restore-playhead"),d=e?e[d]:void 0;d&&(c.startSeconds=d)}Zi("yt-player-restore-playhead");(this.j.Hh||fZ(this.j)&&this.j.experiments.ia)&&H0(this.o)}UY(this.K,"fs");this.k.initialize(a);this.k.ek();c=this.jc;d=this.k.M();c.xd=d;for(var g in c.Se)c.xd[g]=c.Se[g];for(g in c.gg)c.xd[g]=c.gg[g];g=x(this.Xu,this);c=document;"onfullscreenchange"in c?d="fullscreenchange":
(d=gh+"fullscreenchange",d="on"+d in c?d:null);"msfullscreenchange"==d&&(d="MSFullscreenChange");this.Fa=d?P(c,d,g):null;this.Wb=P(window,"resize",x(this.cv,this));c=this.X.args;if(Pt()){B7(this);g=jr(this);d=this.k.cb();this.j.ee=d;this.Sa("onVolumeChange",this.H);"detailpage"==this.j.ca?tr(this,g):c&&(c.playlist||c.list||c.api)&&(C7(this,c),RI(g)||(c=this.A,d=x(this.to,this),c.ce=d,c.Bd&&M(c.ce,0)));if(c=this.X.args.jsapicallback)ia(c)||(c=r(c)),c&&z7(x(c,m,this.j.gk),m);this.j.ma||(Np("embedded"==
this.j.ca),this.j.jg=lr(this.j)&&!ib(Vp()));D2(this,this.o);this.j.Hh&&RI(g)?D7(this):"leanback"!=this.j.ca&&E7(this)}else sv(this.o,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.k.hk();r5(this,"init")}B(y7,S);y7.k="defaultcontext";y7.j={};y7.create=function(a,b){try{var c=y7.o(a);if(y7.j[c]){try{y7.j[c].dispose()}catch(d){Gf(d)}y7.j[c]=null}var e=new y7(a,b);pi(e,function(){y7.j[c]=null});return y7.j[c]=e}catch(g){throw Gf(g),g;}};
y7.o=function(a){return w(a)?a:"player"+ka(a)};
function B7(a){a.B=KE.getTag(!0);a.$=a.B;a.C&&S0(a.C,a.B);hs(a.B,a.da);a.j.Dd?(a.ha&&wh(a.ha),a.ha=P(a.B,"volumechange",x(a.jz,a),!1)):a.B.setVolume(a.H.volume,a.H.muted);var b=a.k;b.j=a.B;b.j.parentNode||Fd(b.o,b.j,0);b.W=new hg(0,0,0,0);W4(b);O(b.j,"video-stream");O(b.j,"html5-main-video");var c=b.app.S();"3"==c.j&&b.j.setAttribute("controls",!0);c.H&&b.j.setAttribute("webkit-playsinline","");b.j.setAttribute("x-webkit-airplay","allow");c.hb&&(b.ia=P(b.j,"click",x(b.j.play,b.j)));a.j.tb=a.B;as(a.B)}
function F7(a){if(a.B){a.ha&&(wh(a.ha),a.ha=null);a.C&&JE(a.C);var b=a.k;b.j&&(Gd(b.j),b.j=null);a.j.tb=null;KE.releaseTag(a.B);a.B=null}}function GE(a,b){a.j.B?(a.W&&(ug(a.B,a.W.left,a.W.top),Eg(a.B,kg(a.W)),a.W=null),gs(a.B),JE(a.C),S0(a.C,a.B),hs(a.B,a.da)):KE.releaseTag(b)}function D2(a,b){if(a.C!=b){a.C&&(jJ(a.D),G2(a));if(b!=a.o){var c=b.getPlayerType();a.la[c]=b}a.C=b;b.$=a.ma;a.B&&S0(b,a.B);A7(a,b,a.Fb);G7(a,b,b.getVideoData());b.X.j&&H7(a,"dataloaded",b,b.getVideoData())}}
function A7(a,b,c){for(var d in c)b.subscribe(d,c[d],a)}function G2(a){JE(a.C);var b=a.C,c=a.Fb,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.C;b!=a.o&&(c=b.getPlayerType(),a.la[c]==b&&delete a.la[c]);a.C=null}f=y7.prototype;f.subscribe=function(a,b,c){return y7.I.subscribe.call(this,a,b,c)};function Mq(a,b){return b?1==b?a.o:a.la[b]||null:a.C}function I7(a){var b=a.D,c=[rB.k,jF,wv,BF,dE,LF,bG.j,eG,mE,kG];c.push(rF.j);E(c,b.xr,b);a.publish("videoready",a.getVideoData())}
f.Qu=function(){J7(this)||K7(this,5)};f.$u=function(a){J7(this)||(L7(this),a=a.getPlayerState(),W(a,8)&&!W(a,2)&&this.Cd())};function nr(a){!a.G&&a.kc.S().jg&&(a.G=new M4(a),M7(a,a.G));if(a.G){var b=aq();kr(a.G,Vp(),b);var c=a.G;c&&!c.Id&&c.Ea(a.kc)&&c.create();b&&a.G.load()}}
function M7(a,b){R(a,b);b.subscribe("loaded",a.jo,a);b.subscribe("unloaded",a.ko,a);b.subscribe("command_pause",z7(a.pauseVideo,a));b.subscribe("command_play",z7(a.Cd,a));b.subscribe("command_seek",z7(a.Te,a));b.subscribe("command_disable_controls",a.hg,a);b.subscribe("command_enable_controls",a.Gh,a);b.subscribe("command_redirect_controls",a.oo,a);b.subscribe("command_stop_redirect_controls",a.Oh,a);b.subscribe("command_redirected_show_is_playing",a.k.pk,a.k);b.subscribe("command_progress",a.ok,
a);b.subscribe("command_add_cuerange",a.no,a);b.subscribe("command_remove_cuerange",a.po,a);b.subscribe("command_remove_cuerange_all",a.lo,a);b.subscribe("command_update_cuerange_markers",a.ro,a);b.subscribe("command_preroll_ready",a.qo,a);b.subscribe("command_show_dialog",a.mk,a);b.subscribe("command_clear_video_overlays",a.ik,a);b.subscribe("command_log",a.Ph,a);b.subscribe("command_navigate_to_url",a.lk,a);b.subscribe("publish_external_event",a.Ih,a);b.subscribe("module_menu_button_add",a.co,a);
b.subscribe("module_menu_button_remove",a.eo,a);b.subscribe("module_menu_item_add",a.fo,a);b.subscribe("module_menu_item_remove",a.ho,a);b.subscribe("module_menu_show",a.Fh,a);b.subscribe("command_log_timing",a.D.G,a.D)}function mr(a){a&&a.Id&&a.destroy()}f.Sa=function(a,b){this.publish.apply(this,arguments);this.Gc.apply(this,arguments)};f.$f=function(a,b){var c=pb(arguments);this.j.xb()&&this.C&&c.push(this.C.getPlayerType());this.publish.apply(this,c)};f.canPlayType=function(a){return!!Ot().canPlayType(a)};
f.S=function(){return this.j};f.getVideoData=function(){return this.C.getVideoData()};function jr(a){return a.o.getVideoData()}f.ig=function(){var a=nZ(this.j);qa(a,nJ(this.D));this.F&&qa(a,this.F.ah());a.fs=this.j.Za;a.volume=Math.round(Aq(this));a.mos=this.H.muted?1:0;return a};f.mk=function(a){this.k.yf(a)};function E7(a){a.publish("initializingmode");K7(a,2)}
function D7(a){if(W(a.getPlayerState(),128))return!1;a.publish("initializingmode");D2(a,a.o);K7(a,3);var b;(b=!a.j.B)||(r("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(F7(a),B7(a),S0(a.o,a.B));M0(a.o);if(W(a.getPlayerState(),128))return!1;N7(a,3);return a.wd=!0}function J7(a){return lr(a.j)&&!!aq()}function z7(a,b){return function(){var c=Array.prototype.slice.call(arguments);M(function(){a.apply(b||this,c)},0)}}
f.lk=function(a,b){b?s5(this,a):(window.ytspf||{}).enabled?spf.navigate(a):Ww(a)};f.Ph=function(a,b,c){var d=Mq(this);b.event=a;this.j.Za&&(b.fs=1);d.B&&(a=d.B,b.rt=a0(a.j).toFixed(3),qa(b,p0(a.j)),qa(b,r0(a)),delete b.fexp,b=qj(a.j.k.Ab+"player_204",b),Wf(b,c))};function Jq(a,b){if(!isNaN(b)&&a.B){var c=1,c=a.j.J?Kq:[1],c=1>b?G(c,function(a){return a>=b}):gb(c,function(a){return a<=b});a.da!=c&&(a.da=c,a.o==a.C&&hs(a.B,c),a.publish("onPlaybackRateChange",c))}}
function Lq(a,b){var c=Mq(a,b);return c&&c.getVideoData().k?c.getVideoData().k.video.quality:"unknown"}function PD(a,b){var c=Mq(a,b);return c?e1(c):a.getVideoData().V}function l7(a){return(a=Mq(a,void 0))?zt(R_(a.ja,a.j)):"unknown"}function Ar(a,b,c,d){if(a=Mq(a,c))b=Nq(b,d||b,!0),Oq(a,"m",b)}f.getCurrentTime=function(a){return(a=Mq(this,a))?a.getCurrentTime():0};function zq(a,b){var c=Mq(a,b);return c?c.Oc():0}
function Wq(a,b){var c=a.o.getDebugInfo(b);c.debug_playbackQuality=Lq(a);c.debug_date=(new Date).toString();delete c.uga;return $f(c)}function KF(a,b){var c=a.getVideoData(),d=!!c.ma||!!c.$g||!b;d&&a.B.setAttribute("mozStereoMode","1");FF()&&(a.B.setAttribute("mozStereoMode",d?"1":"0"),c=iI[d?c.la:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),Dd(document.documentElement,d),Ah(d,"3DModeEvent"))}f.getPlayerState=function(a){return(a=Mq(this,a||1))&&a.getPlayerState()};
f.mv=function(a){var b=a.target;switch(a.type){case "loadedmetadata":UY(this.K,"fvb");this.gb=M(x(this.k.Qf,this.k),16);break;case "loadstart":UY(this.K,"gv");break;case "progress":case "timeupdate":UY(this.K,"1pb"),2<=Mr(b.buffered)&&UY(this.K,"l2s")}};f.hv=function(a){if(this.hb){var b=this.ub.toString();this.ub++;this.oa[b]=a;a={request:pb(a.j[0]?a.j[0].message:null),sessionId:b,system:a.H.j,url:a.C};this.publish("onNewLicenseSession",a)}else a.start()};
f.Zu=function(a,b){this.$f("onLoadProgress",b)};f.fv=function(a,b){this.$f("onVideoProgress",b)};f.av=function(){this.ok()};f.ok=function(a,b){this.publish("progresssync",a,b)};
f.Su=function(a){var b;if(b=0<tv(a,2))this.A&&("embedded"==this.j.ca||this.j.Za)&&iF(this)?($q(this),b=!0):b=!1,b=!b;b&&(this.pauseVideo(),W(a.j,32)&&this.o.Hi(),this.j.isMobile&&Gq(this,!1));W(a.state,128)&&(b=a.state,Iq(this),b=b.j,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=If(b.messageKey)),this.publish("onError",ir[b.errorCode]||5),this.publish("onDetailedError",b));this.publish("applicationplayerstatechange",a);W(a.state,2)&&(a=this.getVideoData(),a.Va&&
!a.wb&&this.hg(["play_pause"]))};f.iv=function(a){!W(a.state,32)&&0>tv(a,16)&&(!W(a.state,8)||this.B.ended&&!W(a.state,2)||this.Cd());this.publish("presentingplayerstatechange",a);this.Gc("onStateChange",a);N7(this,ps(a.state))};function O7(a){mr(a.F);mr(a.G);a.Xa=!1;var b=[],c;for(c in a.O)Hq(a,c)&&b.push(c);a.O={};0<b.length&&a.publish("controlsenabled",b);a.Oh();a.wa={};a=a.K;b=a.k;b.A={};b.o={};a.o=!1}function G7(a,b){jJ(a.D);Jq(a,1);a.Sa("videoplayerreset",b)}
function H7(a,b,c,d){if(a.B){if("dataloaded"==b)if(eZ(c.S(),d.A),a.C==a.o){a.j.ma||Np("embedded"==a.j.ca);var e=J7(a),g;if(g=!e)g=jr(a).No&&!a.j.isMobile;if(g)e="YTP_DEVICE_FALLBACK",Sc||Vr("iemobile")||Vr("xbox")&&Vr("trident")||Vr("nintendo wiiu")||(e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),sv(a.o,"html5.unsupportedads",e,void 0);else if(g=jr(a),!(g.o||g.ge||g.fe||g.$||g.R)||e||F0(a.o)){NI(g);e&&K7(a,6);!a.F&&p4.Ea(a)&&(a.F=new p4(a),a.F&&M7(a,a.F));try{var h=a.F;h&&!h.Id&&h.Ea(a.kc)&&
h.create()}catch(k){Gf(k),a.o&&R0(a.o,"ad")}nr(a);I7(a)}else sv(a.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else I7(a);1==c.getPlayerType()&&(a.getVideoData().xk?(a.V=Vb(a.H),a.hg(["audio"]),e=a.B,e.hm=!0,e.muted=!0):(Hq(a,"audio")&&a.Gh(["audio"]),a.B.hm=!1,a.V&&(n7(a,a.V),a.V=null)),e=a.getVideoData(),e.Va&&!a.j.qk?sv(a.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0):e.Va&&!e.wb?a.hg(["seek"]):a.Gh(["seek"]),d.ia||d.Ba||d.B.focEnabled||d.B.rmktEnabled||a.j.xf)&&
(e=a.getVideoData(),h=1E3*e.lengthSeconds,P7(a,"part2viewed",1,h),P7(a,"engagedview",Math.max(1,1E3*e.de),h),P7(a,"videoplaytime25",.25*h,h),P7(a,"videoplaytime50",.5*h,h),P7(a,"videoplaytime75",.75*h,h),P7(a,"videoplaytime100",h,2147483647),P7(a,"conversionview",h,2147483647));a.Sa("videodatachange",b,d,c.getPlayerType())}}f.Pu=function(a){"newdata"==a&&O7(this)};f.Tu=function(a,b){var c=this.C.getVideoData();a==c&&this.Sa("onPlaybackAudioChange",PD(this).name,b)};
f.lv=function(a,b,c){"newdata"==a?G7(this,b):H7(this,a,b,c)};f.ev=function(a,b){var c=this.C.getVideoData();a==c&&this.publish("onPlaybackQualityChange",a.k.video.quality,b)};
function tr(a,b){if(b.playlistId){var c=t7();if(c&&0<=c.index){var d=[];E(c.videoIds,function(a){if(a=c.videoData?c.videoData[a]:void 0)a.video_id=a.id,a.author=a.wu,d.push(a)});C7(a,{videoList:d,loop:c.autoPlay,index:c.index,list:c.list,playlist_title:c.listTitle,playlist_description:c.listDescription,author:c.author,fetch:0});a.ja&&Q7(a,a.ja)}else C7(a,{videoList:[b.videoId],list:b.playlistId,fetch:0}),a.ja=null}}
function C7(a,b){if(a.A){a.A.unsubscribe("error",a.yr,a);qi(a.A);a.A=null;var c=Rq(a.D,"playlist");if(c){var d=a.D;if(!d.k||c.Hm(d.k))c.destroy(),lb(d.j,c)}}b&&(a.A=new VI(b),a.A.subscribe("error",a.yr,a),a.D&&(c=a.D,E([rF.j],c.xr,c)))}f.yr=function(){C7(this,null)};function P7(a,b,c,d){b in a.wa||(c=new qs(c,d,{id:b,priority:1}),c.Oa.subscribe("onEnter",a.fu,a),c.Oa.subscribe("onExit",a.fu,a),us(a.o.D,[c]),a.wa[b]=c)}
f.fu=function(a){var b=a.getId(),c=jr(this);if("part2viewed"==b)c.Zo&&Wf(c.Zo),c.Ba&&Wf(c.Ba);else if("conversionview"==b){var d=this.o;d.B&&t0(d.B)}else"engagedview"==b&&Wf(c.ia);c.ja&&(d=a.getId(),d=qj(c.ja,{label:d}),Wf(d));switch(b){case "videoplaytime25":c.Wo&&Wf(c.Wo);Wf(c.Fw);break;case "videoplaytime50":c.Xo&&Wf(c.Xo);Wf(c.Gw);break;case "videoplaytime75":c.Yo&&Wf(c.Yo);Wf(c.Hw);break;case "videoplaytime100":c.Vo&&Wf(c.Vo),Wf(c.Ew)}this.j.xf&&this.j.xf[a.getId()]&&(b=this.j.xf[a.getId()],
c=C(D(b))?!1:-1!=b.search(tf)||-1!=b.search(rf),Wf(b,void 0,c));this.o.D.wg(a)};function K7(a,b){b!=a.J&&(2==b&&(N7(a,-1),N7(a,5)),a.J=b,a.publish("appstatechange",b))}function N7(a,b){a.C&&2==a.C.getPlayerType()?a.Ba!=b&&(a.Ba=b,a.$f("onAdStateChange",b)):a.na!=b&&(a.na=b,a.$f("onStateChange",b))}function r5(a,b){a.j.experiments.G&&a.Ph("controlclicked",{controlClicked:b})}f.Te=function(a,b,c,d){b=0!=b;if(d=Mq(this,d))2==this.J&&D7(this),N0(d,a,b,c)};
f.kv=function(a,b){var c=a.getVideoData();if(1==this.J||2==this.J)c.startSeconds=b;2==this.J?D7(this):this.Sa("seekto",b)};f.Uu=function(){this.Sa("beginseeking")};f.Wu=function(){this.Sa("endseeking")};function Aq(a){return a.H.volume}f.setVolume=function(a){var b=this.H;b.volume=a;n7(this,b)};
function n7(a,b){a.H=b;b.volume=Fc(b.volume,0,100);if(a.j.fk&&!a.j.Dd){var c={};c.volume=isNaN(b.volume)?qq().volume:Fc(b.volume,0,100);c.muted=void 0==b.muted?qq().muted:b.muted;Wi("yt-player-volume",c,2592E3)}Hq(a,"audio")?a.V&&(a.V=Vb(b),a.Sa("onVolumeChange",b)):(L7(a),a.j.Dd||a.Sa("onVolumeChange",b))}function Bq(a){var b=a.H;b.muted=!0;n7(a,b)}function Cq(a){var b=a.H;b.muted=!1;5>b.volume&&(b.volume=5);n7(a,b)}
function Sq(a,b,c){b.list=b.list||null;b=new rr(b);jr(a).playlistId!=b.playlistId&&C7(a,null);"detailpage"==a.j.ca&&tr(a,b);return R7(a,b,c)}function sr(a,b){a.N&&a.N.getVideoData().videoId==b.videoId||(b.Fa=!0,a.N||(a.N=new z0(a.j,1,a.K,a.k),a.N.$=a.ma),B0(a.N,b,x(a.ig,a)),H0(a.N,!0))}
function R7(a,b,c){if(!vx("_start",a.K.j)){var d=a.K.j;wx("yt_sts","p",d);rx("_start",void 0,d);a.K.info("srt",0)}if(a.N&&a.N.getVideoData().videoId==b.videoId){d=a.N;a.N=null;b=d;c=a.o;var e=a.xa,g;for(g in e)c.unsubscribe(g,e[g],a);a.o.dispose();a.o=b;A7(a,b,a.xa);O7(a)}else{d=Mq(a,c);if(!d)return!1;N(a.gb);Iq(a,c);B0(d,b,x(a.ig,a))}if(!G0(d))return!1;if(d==a.o)return K7(a,1),D7(a);M0(d);return!0}function xq(a,b,c){c=Mq(a,c);b&&c==a.o&&(c.getVideoData().yd=!0)}
function Tq(a,b,c){b.list=b.list||null;S7(a,new rr(b),c)}function S7(a,b,c){var d=Mq(a,c);d&&(Iq(a,c),B0(d,b,x(a.ig,a)),G0(d)&&(eZ(d.S(),b.A),d==a.o&&(K7(a,1),E7(a))))}function UE(a,b,c,d,e){if(!b&&!d)throw Error("Playback source is invalid");b={video_id:b,list:d};a.j.Za||"detailpage"!=a.j.ca?(c=a.K,e=c.k,e.A={},e.o={},c.o=!1,Bx(a.K.j),px(),d?(a.R=!1,Zq(a,b,void 0,void 0,void 0)):Sq(a,b,1)):(d=new rr(b),d=a.j.getVideoUrl(d,{}),(c||{}).lact=XY(),r("yt.player.exports.navigate")(d,c,!0),a.lk(d,e))}
function Zq(a,b,c,d,e){if(ja(b)&&!fa(b)){c="playlist list listType index startSeconds suggestedQuality".split(" ");d={};for(e=0;e<c.length;e++){var g=c[e];b[g]&&(d[g]=b[g])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},w(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;C7(a,b);b=a.A;a=x(a.to,a);b.ce=a;b.Bd&&M(b.ce,0)}f.to=function(){var a=dr(this.A);if(this.getVideoData().kg||!this.R){var b=this.getVideoData().yd,a=R7(this,a);b&&xq(this,a)}else a&&S7(this,a)};
function iF(a){var b=t7();return!(!a.A||!bJ(a.A)||b&&!b.autoPlay)}function $q(a){if(a.A)"detailpage"!=a.j.ca||a.j.Za?a.A.Bd?bJ(a.A)&&R7(a,dJ(a.A),1):(dJ(a.A),a.R=!1):Q7(a,"yt.www.watch.lists.next");else if(1!=a.getVideoData().Ld&&Mq(a,1).getVideoData().N){var b=Mq(a,1).getVideoData().N[0],c=b.id||b.video_id||"",d=b.session_data?kj(b.session_data,"&"):null;UE(a,c,d,b.list||void 0)}}
function ar(a){if(a.A)if("detailpage"!=a.j.ca||a.j.Za)if(a.A.Bd){var b=a.A;(b.If||0<=b.Ua-1)&&R7(a,fJ(a.A),1)}else fJ(a.A),a.R=!1;else Q7(a,"yt.www.watch.lists.prev")}function Q7(a,b){var c=r(b);c?(c(),a.ja=null):a.ja=b}function br(a,b){a.A&&(a.A.Bd?R7(a,dr(a.A,b),1):a.R=!1,eJ(a.A,b))}function t7(){var a=r("yt.www.watch.lists.getState");return a?a():null}function er(a){return a.A&&a.A.o?a.A.o.toString():null}
function Xq(a){var b=jr(a),c=a.k.ob();a="//"+lZ(a.j)+"/embed/"+b.videoId;b.playlistId&&(a=Ee(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+xa(a)+'" frameborder="0" allowfullscreen></iframe>'}function Vq(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=zq(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return a.j.getVideoUrl(jr(a),null,c)}
function Yq(a,b,c,d,e,g){b={id:b};"chapter"==g?(b.style="ytp-chapter-marker",b.visible=!0):isNaN(e)||(b.style="ytp-ad-progress",b.visible=!0);c=new qs(1E3*c,1E3*d,b);c.Oa.subscribe("onEnter",a.dF,a);c.Oa.subscribe("onExit",a.eF,a);us(a.o.D,[c]);a.publish("cuerangesadded",[c]);return!0}f.dF=function(a){this.publish("onCueRangeEnter",a.getId())};f.eF=function(a){this.publish("onCueRangeExit",a.getId())};f.no=function(a,b){var c=Mq(this,b);c&&(us(c.D,a),this.publish("cuerangesadded",a))};
f.po=function(a,b){var c=Mq(this,b);c&&(c.D.wg.apply(c.D,a),this.publish("cuerangesremoved",a))};f.lo=function(a,b){var c=Mq(this,b);if(c){for(var c=c.D,d=[],e=c.j.j,g=e.length-1;0<=g;g--){var h=e[g];if(h.namespace==a){var k=c.k.indexOf(h);0<=k&&c.k.splice(k,1);var k=c.j.j,l=ub(k,h,Er);0<=l&&mb(k,l);d.push(h)}}c.qc();this.publish("cuerangesremoved",d)}};f.ro=function(a){this.publish("cuerangemarkersupdated",a)};f.qo=function(a,b){var c=Mq(this,b);c&&R0(c,a)};
f.Ru=function(){T7(this,VY(this.K));if(!this.Xa&&"detailpage"==this.j.ca){this.Xa=!0;var a=this.o;if(a.R&&a.R.j){var b={},c={};a.j.videoId&&(b.docid=a.j.videoId);a.j.playbackId&&(b.plid=a.j.playbackId);b.cpn=a.j.ya;b.ad_cpn=a.R.j;var d=z()-a.R.k;a.R.o?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 g in b)"_"!=g.charAt(0)&&(a[g]=b[g]);b=Cf("TIMING_INFO")||{};"e"in b&&
(a.e=b.e);"ei"in b&&(a.ei=b.ei);Ax(a)}}if(this.ua&&(b=this.o,b.B))b.B.onError("html5.reboot");this.ua=!1;this.j.experiments.D&&iF(this)&&(b=dr(this.A,cJ(this.A)))&&sr(this,b)};function T7(a,b){if(!isNaN(b)&&0<b&&a.o){var c=a.o;c.B&&0<b&&(c.B.A.o.aft=[b])}}f.jo=function(a){"remote"==a?(2==this.J&&D7(this),K7(this,6),mr(this.F)):this.$f("onApiChange")};f.ko=function(a){"remote"!=a||J7(this)||(this.Cd(),this.pauseVideo());this.$f("onApiChange")};
f.jz=function(){if(!Hq(this,"audio")){var a={volume:100*this.B.volume,muted:this.B.muted};this.H=Vb(a);this.Sa("onVolumeChange",a)}};function L7(a){var b=a.j.Dd?rr.j:a.getVideoData().Yp;a.B.setVolume(a.H.volume*b,a.H.muted)}f.Xu=function(){U7(this,Ch()?1:0)};
function U7(a,b){var c=!!b,d=!!a.Ja!=c;a.Ja=b;if(d){a.k.Cm(c);if("detailpage"==a.j.ca&&!c&&(d=jr(a),Cf("VIDEO_ID")!=d.videoId)){var e=a.getCurrentTime(),g={};g[d.videoId]=e;Wi("yt-player-restore-playhead",g,172800);a.pauseVideo()}rx("fsc",void 0,a.K.j);a.j.Za=c;a.k.Qf();a.Sa("fullscreentoggled",c);c={fullscreen:c,videoId:jr(a).videoId};er(a)&&(c.listId=er(a));a.publish("onFullscreenChange",c)}}f.jv=function(){u7(this)};f.cv=function(){2!=this.Ja&&U7(this,Ch()?1:0)};
f.ik=function(a){this.Sa("clearvideooverlays",!!a)};f.co=function(a,b){this.Sa("menu_button_add",a,b)};f.eo=function(a){this.Sa("menu_button_remove",a)};f.fo=function(a){this.Sa("menu_item_add",a)};f.ho=function(a){this.Sa("menu_item_remove",a)};f.Fh=function(a){this.Sa("menu_show",a)};f.nv=function(a){(a=Mq(this,a))&&a.B&&Y_(a.B.k)};f.Yu=function(a){this.Sa("liveviewshift",a)};
f.Ih=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(UY(this.K,"vr"),k1(this.C),T7(this,VY(this.K)));0==c&&e&&(this.o.R=e);var g=this.j;"leanback"==g.ca&&g.xb()&&(0==c?this.$=this.B:this.$=d,this.publish("onAdStateChange",c,e.video_id))}else this.publish.apply(this,arguments)};f.Gc=function(a,b){this.D.H.apply(this.D,arguments);this.F&&this.F.publish.apply(this.F,arguments);this.G&&this.G.publish.apply(this.G,arguments)};
f.Cd=function(a){(a=Mq(this,a))&&(2==this.J?D7(this):W(a.getPlayerState(),2)?this.Te(0):V0(a))};f.pauseVideo=function(a){(a=Mq(this,a))&&a.pauseVideo()};function Iq(a,b){var c=Mq(a,b);c&&1!=a.J&&2!=a.J&&(jJ(a.D),Q0(c),1==b&&mr(a.F))}function Dq(a,b){if(!Hq(a,"play_pause")){var c=a.U.play_pause?a.ia:null;c?c.$d("control_play"):a.Cd(b)}}function Eq(a,b){if(!Hq(a,"play_pause")){var c=a.U.play_pause?a.ia:null;c?c.$d("control_pause"):a.pauseVideo(b)}}
function m7(a){var b;if(b=!Hq(a,"play_pause"))(b=!a.j.Mc||2!=a.J)||(b=KE.hasTags(void 0));b&&((b=a.U.play_pause?a.ia:null)?b.$d("control_toggle_play_pause"):(b=Mq(a,void 0))&&(W(b.A,8)&&!W(b.A,2)?a.pauseVideo(void 0):a.Cd(void 0)))}function yq(a,b,c,d,e){if(!Hq(a,"seek")){var g=a.U.seek?a.ia:null;g?g.$d("control_seek",b):a.Te(b,c,d,e)}}
function Gq(a,b){if(a.j.Za!=b)if(Bh())if(b){var c=a.k.M(),d=mh(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=mh(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else U7(a,b?2:0)}function Yx(a){Gq(a,!a.j.Za)}function s5(a,b){Gq(a,!1);a.pauseVideo();Xw(b)}function G5(a){var b=a.getVideoData();"detailpage"==a.j.ca&&a.j.Za&&Cf("VIDEO_ID")==b.videoId?Gq(a,!1):s5(a,Vq(a,!0))}f.getAdState=function(){return this.F?this.F.getAdState():-1};
function u7(a){var b=a.k.cb();a.j.ee=b;if(a.B){b=!1;if(0!=a.B.readyState&&a.C){var c=new I(a.B.videoWidth,a.B.videoHeight),d=a.getVideoData();Jc(d.Bq,c)||(d.Bq=c,b=!0)}c=Y4(a.k);jg(a.j.Kr,c)||(a.j.Kr=c,b=!0);c=Y4(a.k);jg(a.j.jf,c)||(a.j.jf=c,b=!0);b&&(a.C&&Oq(a.C,"r"),a.publish("resize",a.k.ob()),a.Sa("onResize"))}}function Hq(a,b){return!(!a.O[b]||!a.O[b].length)}
f.hg=function(a,b){b=b||y7.k;var c=[];E(a,function(a){this.O[a]?0>this.O[a].indexOf(b)&&this.O[a].push(b):(this.O[a]=[b],c.push(a))},this);0<c.length&&this.publish("controlsdisabled",c)};f.Gh=function(a,b){b=b||y7.k;var c=[];E(a,function(a){if(Hq(this,a)){var e=this.O[a].indexOf(b);0<=e&&this.O[a].splice(e,1);0==this.O[a].length&&c.push(a)}},this);0<c.length&&this.publish("controlsenabled",c)};f.oo=function(a,b,c){this.Oh();this.ia=a;b&&E(b,function(a){this.U[a]=!0},this);c&&kJ(this.D,a,c)};
f.Oh=function(){this.ia=null;this.U={};lJ(this.D)};function fr(a,b,c,d){if(a.j.xb()){if(a.F&&b==a.F.ta)return a.F.Xf(c,d);if(a.G&&b==a.G.ta)return a.G.Xf(c,d)}c=b&&c?(a=Rq(a.D,b))?a.Xf(c,d):null:null;return c}function gr(a,b){if(!b){var c=mJ(a.D);a.j.xb()&&(a.F&&c.push(a.F.ta),a.G&&c.push(a.G.ta));return c}if(a.j.xb()){if(a.F&&b==a.F.ta)return a.F.Wf();if(a.G&&b==a.G.ta)return a.G.Wf()}return mJ(a.D,b)}
f.dv=function(){if(this.j.experiments.A&&!this.ua){this.ua=!0;var a=this.getVideoData(),b=Mq(this).getCurrentTime();Sq(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.Vu=function(){this.Sa("CONNECTION_ISSUE")};f.gv=function(a){this.Sa("heartbeatparams",a)};f.L=function(){Sp();this.o.dispose();this.N&&this.N.dispose();F7(this);this.Fa&&wh(this.Fa);wh(this.Wb);si(Lb(this.la),this.A);this.$=null;N(this.gb);y7.I.L.call(this)};function V7(){g6.call(this);this.j=[];this.o={}}B(V7,g6);ba(V7);f=V7.prototype;f.Zn="button";f.Nf=null;f.register=function(){i6(this,"click",this.lG);i6(this,"keydown",this.nG);i6(this,"keypress",this.oG);this.Nn.push(zi("page-scroll",this.mG,this))};f.lG=function(a){a&&!a.disabled&&(W7(this,a),this.click(a))};
f.nG=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=X7(this,a))){var d=function(a){var b="";a.tagName&&(b=a.tagName.toLowerCase());return"ul"==b||"table"==b},e;d(b)?e=b:e=Qd(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.xG:"table"==e&&(g=this.wG);g&&Y7(this,a,b,c,x(g,this))}}};f.mG=function(){var a=this.o;if(0!=Ib(a))for(var b in a){var c=a[b],d=$d(c.activeButtonNode||c.parentNode,h6(this));if(void 0==d||void 0==c)break;Z7(this,d,c,!0)}};
function Y7(a,b,c,d,e){var g=Lw(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=$7(a,c))?(b=Jd(d),"a"==b.tagName.toLowerCase()?window.location=b.href:Ah(b,"click")):h&&a8(a,b):g?27==d.keyCode?($7(a,c),a8(a,b)):e(b,c,d):(a=Xg(b,h6(a,"reverse"))?38:40,d.keyCode==a&&(Ah(b,"click"),d.preventDefault()))}f.oG=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=X7(this,a),Lw(a)&&c.preventDefault())};function $7(a,b){var c=h6(a,"menu-item-highlight"),d=pd(c,b);d&&Zg(d,c);return d}
function b8(a,b,c){O(c,h6(a,"menu-item-highlight"));var d=c.getAttribute("id");d||(d=h6(a,"item-id-"+ka(c)),c.setAttribute("id",d));b.setAttribute("aria-activedescendant",d)}f.wG=function(a,b,c){var d=$7(this,b);b=kh("table",b);var e=kh("tr",b),e=od("td",null,e).length;b=od("td",null,b);d=c8(d,b,e,c);-1!=d&&(b8(this,a,b[d]),c.preventDefault())};f.xG=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=$7(this,b);b=bb(od("li",null,b),Lw);d=c8(d,b,1,c);b8(this,a,b[d]);c.preventDefault()}};
function c8(a,b,c,d){var e=b.length;a=$a(b,a);if(-1==a)if(38==d.keyCode)a=e-c;else{if(37==d.keyCode||38==d.keyCode||40==d.keyCode)a=0}else 39==d.keyCode?(a%c==c-1&&(a-=c),a+=1):37==d.keyCode?(0==a%c&&(a+=c),--a):38==d.keyCode?(a<c&&(a+=e),a-=c):40==d.keyCode&&(a>=e-c&&(a-=e),a+=c);return a}function d8(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=h6(a,"menu-mask"),b.iframeMask=c);return c}
function Z7(a,b,c,d){var e=$d(b,h6(a,"group")),g=!!eh(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=Jg(b);if(Xg(b,h6(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}Xg(b,"flip")&&(Xg(b,h6(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;eh(b,"button-has-sibling-menu")?p=yg(e):eh(b,"button-menu-root-container")&&(p=e8(b));Pc&&!bd("8")&&(p=null);var t;p&&(t=Jg(p),t=new gg(-t.top,t.left,t.top,-t.left));p=new Gc(0,1);Xg(b,h6(a,"center-menu"))&&(p.x-=Math.round((Hg(c).width-Hg(b).width)/
2));d&&(p.y+=td(document).y);if(a=d8(a,b))b=Hg(c),a.style.width=b.width+"px",a.style.height=b.height+"px",k5(e,g,a,h,p,t),d&&(d=md(a))&&d.style&&("position"in Ow?a=Ow.position:(a=og("position",document.body.style),Ow.position=a),a&&(d.style[a]="fixed"));k5(e,g,c,h,p,t)}function e8(a){if(eh(a,"button-menu-root-container")){var b=eh(a,"button-menu-root-container");return $d(a,b)}return document.body}
f.cu=function(a){if(a){var b=X7(this,a);if(b){a.setAttribute("aria-pressed","true");a.setAttribute("aria-expanded","true");b.originalParentNode=b.parentNode;b.activeButtonNode=a;b.parentNode.removeChild(b);var c;eh(a,"button-has-sibling-menu")?c=a.parentNode:c=e8(a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=d8(this,a);d&&c.appendChild(d);(c=!!eh(a,"button-menu-fixed"))&&(this.o[hh(a).toString()]=b);Z7(this,a,b,c);Di("yt-uix-button-menu-before-show",a,b);Mw(b);this.k(a,"button-menu-action",
!0);O(a,h6(this,"active"));b=x(this.Mr,this,a,!1);c=x(this.Mr,this,a,!0);d=x(this.JB,this,a,void 0);this.Nf&&X7(this,this.Nf)==X7(this,a)||this.Nf&&a8(this,this.Nf);Ci("yt-uix-button-menu-show",a);wh(this.j);this.j=[P(document,"click",c),P(document,"contextmenu",b),P(window,"resize",d)];this.Nf=a}}};
function a8(a,b){if(b){var c=X7(a,b);if(c){a.Nf=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Nw(c);a.k(b,"button-menu-action",!1);var d=d8(a,b),e=hh(c).toString();delete a.o[e];M(function(){d&&d.parentNode&&d.parentNode.removeChild(d);c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}var e=$d(b,h6(a,"group")),g=[h6(a,"active")];
e&&g.push(h6(a,"group-active"));$g(b,g);Ci("yt-uix-button-menu-hide",b);wh(a.j);a.j.length=0}}f.JB=function(a,b){var c=X7(this,a);if(c){b&&(c.innerHTML=b);var d=!!eh(a,"button-menu-fixed");Z7(this,a,c,d)}};f.getContent=function(a){return pd(h6(this,"content"),a)};
f.Mr=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=$d(c,h6(this));if(d){var d=X7(this,d),e=X7(this,a);if(d==e)return}var d=$d(c,h6(this,"menu")),e=d==X7(this,a),g=Xg(c,h6(this,"menu-item")),h=Xg(c,h6(this,"menu-close"));if(!d||e&&(g||h))if(a8(this,a),d&&b&&eh(a,"button-menu-indicate-selected")){if(a=pd(h6(this,"content"),a))hd&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],Xd(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,
""),b=b.replace(/\u200B/g,""),hd||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),Pd(a,b);f8(this,d,c)}};function f8(a,b,c){var d=h6(a,"menu-item-selected");a=nd(d,b);E(a,function(a){Zg(a,d)});O(c.parentNode,d)}function X7(a,b){if(!b.widgetMenu){var c=eh(b,"button-menu-id"),c=c&&md(c),d=h6(a,"menu");c?Yg(c,[d,h6(a,"menu-external")]):c=pd(d,b);b.widgetMenu=c}return b.widgetMenu}
function W7(a,b){if(eh(b,"button-toggle")){var c=$d(b,h6(a,"group")),d=h6(a,"toggled"),e=Xg(b,d);if(c&&eh(c,"button-toggle-group")){var g=eh(c,"button-toggle-group"),c=nd(h6(a),c);E(c,function(a){a!=b||"optional"==g&&e?(Zg(a,d),a.removeAttribute("aria-pressed")):(O(b,d),a.setAttribute("aria-pressed","true"))})}else e?b.removeAttribute("aria-pressed"):b.setAttribute("aria-pressed","true"),bh(b,d)}}
f.click=function(a){if(X7(this,a)){var b=X7(this,a),c=$d(b.activeButtonNode||b.parentNode,h6(this));c&&c!=a?(a8(this,c),M(x(this.cu,this,a),1)):Lw(b)?a8(this,a):this.cu(a);a.focus()}this.k(a,"button-action")};var g8=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};q("yt.uix.widgets_",g8,void 0);function h8(a){a=a.getInstance();var b=h6(a);b in g8||(a.register(),a.Nn.push(zi("yt-uix-init-"+b,a.init,a)),a.Nn.push(zi("yt-uix-dispose-"+b,a.dispose,a)),g8[b]=a)};h8(V7);h8(k6);r("yt.tracking.share")||q("yt.tracking.share",Px,void 0);r("yt.net.ping")||q("yt.net.ping.send",Wf,void 0);r("yt.window.popup")||(q("yt.window.popup",Yw,void 0),q("yt.window.open",Xw,void 0));q("yt.player.Application.create",y7.create,void 0);var i8=r("ytcsi.tick"),j8=r("ytcsi.info");i8&&(i8("pe"),window.performance&&window.performance.now&&j8("h5jse",window.performance.now()));})();
