(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 t(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 v(){}function ba(a){a.getInstance=function(){return a.Jb?a.Jb:a.Jb=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 ea(a){return"array"==ca(a)}function fa(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function x(a){return"string"==typeof a}function ga(a){return"number"==typeof a}function ha(a){return"function"==ca(a)}function ia(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ja(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 y(a,b,c){y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?na:oa;return y.apply(null,arguments)}function pa(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 A(a,b){function c(){}c.prototype=b.prototype;a.K=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 y.apply(null,c)}return y(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))}A(ra,Error);ra.prototype.name="CustomError";var sa;function ta(a,b){return 0==a.lastIndexOf(b,0)}function ua(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function B(a){return/^[\s\xa0]*$/.test(a)}var va=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function wa(a){return encodeURIComponent(String(a))}function xa(a){return decodeURIComponent(a.replace(/\+/g," "))}
function ya(a){if(!za.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Aa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ba,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Da,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ea,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Fa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ga,"&#0;"));return a}var Aa=/&/g,Ba=/</g,Da=/>/g,Ea=/"/g,Fa=/'/g,Ga=/\x00/g,za=/[\x00&<>"']/;function Ha(a){return-1!=a.indexOf("&")?"document"in m?Ia(a):Ja(a):a}
function Ia(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Ka,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 Ja(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 Ka=/&([^;\s<&]+);?/g;function La(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a}function Ma(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())}
function Na(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function Oa(a,b){return Array(b+1).join(a)}function Pa(a){a=n(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return Oa("0",Math.max(0,2-b))+a}function C(a){return null==a?"":String(a)}function Qa(a){return Array.prototype.join.call(arguments,"")}
function Ra(a,b){for(var c=0,d=va(String(a)).split("."),e=va(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"),r=RegExp("(\\d*)(\\D*)","g");do{var u=p.exec(k)||["","",""],w=r.exec(l)||["","",""];if(0==u[0].length&&0==w[0].length)break;c=Sa(0==u[1].length?0:parseInt(u[1],10),0==w[1].length?0:parseInt(w[1],10))||Sa(0==u[2].length,0==w[2].length)||Sa(u[2],w[2])}while(0==c)}return c}function Sa(a,b){return a<b?-1:a>b?1:0}
function Ta(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b}var Ua=2147483648*Math.random()|0;function Va(){return"goog_"+Ua++}function Wa(a){var b=Number(a);return 0==b&&B(a)?NaN:b}function Xa(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Ya(a){var b=x(void 0)?Na(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}
function Za(a){isFinite(a)&&(a=String(a));return x(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN}function $a(a,b,c){a=a.split(b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d};function ab(){}function bb(a){return a};function cb(a){return a[a.length-1]}
var db=Array.prototype,eb=db.indexOf?function(a,b,c){return db.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(x(a))return x(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},fb=db.lastIndexOf?function(a,b,c){return db.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(x(a))return x(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},D=db.forEach?function(a,b,c){db.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=x(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},gb=db.filter?function(a,b,c){return db.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=x(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},E=db.map?function(a,b,c){return db.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=x(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,
g[h],h,a));return e},hb=db.reduce?function(a,b,c,d){d&&(b=y(b,d));return db.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;D(a,function(c,h){e=b.call(d,e,c,h,a)});return e},ib=db.some?function(a,b,c){return db.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=x(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},jb=db.every?function(a,b,c){return db.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=x(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 F(a,b,c){b=kb(a,b,c);return 0>b?null:x(a)?a.charAt(b):a[b]}function kb(a,b,c){for(var d=a.length,e=x(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 lb(a,b){var c=mb(a,b,void 0);return 0>c?null:x(a)?a.charAt(c):a[c]}function mb(a,b,c){for(var d=x(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 G(a,b){return 0<=eb(a,b)}function nb(a){return 0==a.length}
function ob(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function pb(a,b){G(a,b)||a.push(b)}function qb(a,b){var c=eb(a,b),d;(d=0<=c)&&rb(a,c);return d}function rb(a,b){db.splice.call(a,b,1)}function sb(a,b){var c=kb(a,b,void 0);0<=c&&rb(a,c)}function tb(a){return db.concat.apply(db,arguments)}function ub(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 vb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(fa(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 wb(a,b,c,d){db.splice.apply(a,xb(arguments,1))}function xb(a,b,c){return 2>=arguments.length?db.slice.call(a,b):db.slice.call(a,b,c)}
function yb(a,b,c){b=b||a;c=c||function(){return ia(h)?"o"+ja(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 zb(a,b,c){c=c||Ab;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 Bb(a,b){a.sort(b||Ab)}function Cb(a,b,c){var d=c||Ab;Bb(a,function(a,c){return d(b(a),b(c))})}function Db(a,b){Cb(a,function(a){return a[b]},void 0)}
function Eb(a,b,c){if(!fa(a)||!fa(b)||a.length!=b.length)return!1;var d=a.length;c=c||Fb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Ab(a,b){return a>b?1:a<b?-1:0}function Fb(a,b){return a===b}function Gb(a,b,c){c=zb(a,b,c);0>c&&wb(a,-(c+1),0,b)}function Hb(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b}
function Ib(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(ea(d))for(var e=0;e<d.length;e+=8192)for(var g=xb(d,e,e+8192),g=Ib.apply(null,g),h=0;h<g.length;h++)b.push(g[h]);else b.push(d)}return b};function Jb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Kb(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}function Lb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Mb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Nb(a){var b=0,c;for(c in a)b++;return b}function Ob(a,b){return Pb(a,b)}function Qb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Rb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}
function Sb(a,b){for(var c=fa(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],n(a));c++);return a}function Pb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function Tb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Ub(a,b){var c=Tb(a,b,void 0);return c&&a[c]}function Vb(a){for(var b in a)return!1;return!0}function Wb(a){for(var b in a)delete a[b]}function Xb(a,b){b in a&&delete a[b]}function Yb(a,b,c){return b in a?a[b]:c}
function Zb(a){var b={},c;for(c in a)b[c]=a[c];return b}function $b(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]=$b(a[c]);return b}return a}var ac="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function bc(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<ac.length;g++)c=ac[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function dc(a){var b=arguments.length;if(1==b&&ea(arguments[0]))return dc.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c}
function ec(a){var b=arguments.length;if(1==b&&ea(arguments[0]))return ec.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var fc=ec("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var gc=/<[^>]*>|&[^;]+;/g;function hc(a,b){return b?a.replace(gc,""):a}
var ic=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),jc=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),kc=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]"),lc=/^http:\/\/.*/,mc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,nc=
/\s+/,oc=/\d/;function pc(){this.j="";this.o=qc}pc.prototype.Ze=!0;pc.prototype.$d=function(){return this.j};pc.prototype.toString=function(){return"Const{"+this.j+"}"};function rc(a){return a instanceof pc&&a.constructor===pc&&a.o===qc?a.j:"type_error:Const"}function sc(){var a=new pc;a.j="HTML that is escaped and sanitized server-side and passed through yt.net.ajax";return a}var qc={};function tc(){this.j="";this.o=uc}tc.prototype.Ze=!0;var uc={};tc.prototype.$d=function(){return this.j};function vc(a){var b=new tc;b.j=a;return b}var wc=vc(""),xc=/^[-,."'%_!# a-zA-Z0-9]+$/;function yc(){this.j="";this.o=zc}yc.prototype.Ze=!0;yc.prototype.$d=function(){return this.j};yc.prototype.$l=!0;yc.prototype.Jf=function(){return 1};function Ac(a){return a instanceof yc&&a.constructor===yc&&a.o===zc?a.j:"type_error:SafeUrl"}var Bc=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i;function Cc(a){try{var b=encodeURI(a)}catch(c){return"about:invalid#zClosurez"}return b.replace(Dc,function(a){return Ec[a]})}
var Dc=/[()']|%5B|%5D|%25/g,Ec={"'":"%27","(":"%28",")":"%29","%5B":"[","%5D":"]","%25":"%"},zc={};function Fc(){this.j=Gc}Fc.prototype.Ze=!0;Fc.prototype.$d=function(){return""};Fc.prototype.$l=!0;Fc.prototype.Jf=function(){return 1};var Gc={};function Hc(){this.j="";this.A=Ic;this.o=null}Hc.prototype.$l=!0;Hc.prototype.Jf=function(){return this.o};Hc.prototype.Ze=!0;Hc.prototype.$d=function(){return this.j};function Jc(a){return a instanceof Hc&&a.constructor===Hc&&a.A===Ic?a.j:"type_error:SafeHtml"}var Kc=/^[a-zA-Z0-9-]+$/,Lc={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Mc={EMBED:!0,IFRAME:!0,LINK:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,TEMPLATE:!0};
function Nc(a){function b(a){if(ea(a))D(a,b);else{var g;a instanceof Hc?g=a:(g=null,a.$l&&(g=a.Jf()),a=ya(a.Ze?a.$d():String(a)),g=Oc(a,g));d+=Jc(g);g=g.Jf();0==c?c=g:0!=g&&c!=g&&(c=null)}}var c=0,d="";D(arguments,b);return Oc(d,c)}var Ic={};function Oc(a,b){var c=new Hc;c.j=a;c.o=b;return c}Oc("<!DOCTYPE html>",0);Oc("",0);function Pc(a,b,c){return Math.min(Math.max(a,b),c)};function Qc(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=Qc.prototype;f.clone=function(){return new Qc(this.x,this.y)};function Rc(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}function Sc(a,b){return new Qc(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=ga(b)?b:a;this.x*=a;this.y*=c;return this};function H(a,b){this.width=a;this.height=b}function Tc(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=H.prototype;f.clone=function(){return new H(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=ga(b)?b:a;this.width*=a;this.height*=c;return this};var Uc;a:{var Vc=m.navigator;if(Vc){var Wc=Vc.userAgent;if(Wc){Uc=Wc;break a}}Uc=""}function Xc(a){return-1!=Uc.indexOf(a)};function Yc(){return Xc("Opera")||Xc("OPR")}function Zc(){return Xc("Edge")||Xc("Trident")||Xc("MSIE")}function $c(){return(Xc("Chrome")||Xc("CriOS"))&&!Yc()&&!Zc()};function ad(){return Xc("Edge")};function bd(){return Xc("iPhone")&&!Xc("iPod")&&!Xc("iPad")};var cd=Yc(),dd=Zc(),ed=Xc("Gecko")&&!(Ma(Uc,"WebKit")&&!ad())&&!(Xc("Trident")||Xc("MSIE"))&&!ad(),fd=Ma(Uc,"WebKit")&&!ad(),gd=fd&&Xc("Mobile"),hd=Xc("Macintosh"),id=Xc("Windows"),jd=Xc("Linux")||Xc("CrOS"),kd=Xc("Android"),ld=bd(),md=Xc("iPad");function nd(){var a=Uc;if(ed)return/rv\:([^\);]+)(\)|;)/.exec(a);if(dd&&ad())return/Edge\/([\d\.]+)/.exec(a);if(dd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(fd)return/WebKit\/(\S+)/.exec(a)}
function od(){var a=m.document;return a?a.documentMode:void 0}var pd=function(){if(cd&&m.opera){var a=m.opera.version;return ha(a)?a():a}var a="",b=nd();b&&(a=b?b[1]:"");return dd&&!ad()&&(b=od(),b>parseFloat(a))?String(b):a}(),qd={};function sd(a){return qd[a]||(qd[a]=0<=Ra(pd,a))}function td(a){return dd&&(ad()||ud>=a)}var vd=m.document,wd=od(),ud=!vd||!dd||!wd&&ad()?void 0:wd||("CSS1Compat"==vd.compatMode?parseInt(pd,10):5);var xd=!dd||td(9),yd=!ed&&!dd||dd&&td(9)||ed&&sd("1.9.1"),zd=dd&&!sd("9"),Ad=dd||cd||fd;function Bd(a){return a?new Cd(Dd(a)):sa||(sa=new Cd)}function Ed(a){return x(a)?document.getElementById(a):a}function Fd(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Gd("*",a,b)}function Hd(a,b){var c=b||document,d=null;c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Gd("*",a,b)[0];return d||null}
function Gd(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&&G(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function Id(a,b){Jb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Jd?a.setAttribute(Jd[d],b):ta(d,"aria-")||ta(d,"data-")?a.setAttribute(d,b):a[d]=b})}var Jd={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 Kd(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new H(a.clientWidth,a.clientHeight)}function Ld(a){var b=Md(a);a=a.parentWindow||a.defaultView;return dd&&sd("10")&&a.pageYOffset!=b.scrollTop?new Qc(b.scrollLeft,b.scrollTop):new Qc(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Md(a){return fd||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}function Nd(a){return a?a.parentWindow||a.defaultView:window}
function I(a,b,c){return Od(document,arguments)}function Od(a,b){var c=b[0],d=b[1];if(!xd&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',ya(d.name),'"');if(d.type){c.push(' type="',ya(d.type),'"');var e={};bc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(x(d)?c.className=d:ea(d)?c.className=d.join(" "):Id(c,d));2<b.length&&Pd(a,c,b,2);return c}
function Pd(a,b,c,d){function e(c){c&&b.appendChild(x(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!fa(g)||ia(g)&&0<g.nodeType?e(g):D(Qd(g)?ub(g):g,e)}}function Rd(a){return document.createElement(a)}function Sd(a){return document.createTextNode(String(a))}function Td(a,b){a.appendChild(b)}function Ud(a,b){Pd(Dd(a),a,arguments,1)}function Vd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Wd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}
function Xd(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function Yd(a){return yd&&void 0!=a.children?a.children:gb(a.childNodes,function(a){return 1==a.nodeType})}function Zd(a){return void 0!=a.firstElementChild?a.firstElementChild:$d(a.firstChild)}function $d(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function ae(a){return ia(a)&&1==a.nodeType}
function be(a){var b;if(Ad&&!(dd&&sd("9")&&!sd("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ae(b)?b:null}function ce(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 Dd(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function de(a){return a.contentWindow||Nd(a.contentDocument||a.contentWindow.document)}function ee(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{Vd(a);var c=Dd(a);a.appendChild(c.createTextNode(String(b)))}}function fe(a,b){var c=[];return ge(a,b,c,!0)?c[0]:void 0}
function ge(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||ge(a,b,c,d))return!0;a=a.nextSibling}return!1}var he={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ie={IMG:" ",BR:"\n"};
function je(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!ke(a)||le(a)):ke(a)&&le(a))&&dd?(a=ha(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a}function ke(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified}function le(a){a=a.tabIndex;return ga(a)&&0<=a&&32768>a}
function me(a,b,c){if(!(a.nodeName in he))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 ie)b.push(ie[a.nodeName]);else for(a=a.firstChild;a;)me(a,b,c),a=a.nextSibling}function Qd(a){if(a&&"number"==typeof a.length){if(ia(a))return"function"==typeof a.item||"string"==typeof a.item;if(ha(a))return"function"==typeof a.item}return!1}
function ne(a,b){return b?oe(a,function(a){return!b||x(a.className)&&G(a.className.split(/\s+/),b)},!0,void 0):null}function oe(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 Cd(a){this.j=a||m.document||document}f=Cd.prototype;f.Q=function(a){return x(a)?this.j.getElementById(a):a};f.Jw=function(a,b,c){return Od(this.j,arguments)};f.createElement=function(a){return this.j.createElement(a)};
function pe(a){return"CSS1Compat"==a.j.compatMode}function qe(a){a=a.j;return a.parentWindow||a.defaultView}function re(a){return Ld(a.j)}f.appendChild=Td;f.append=Ud;f.contains=ce;var se="StopIteration"in m?m.StopIteration:Error("StopIteration");function te(){}te.prototype.next=function(){throw se;};te.prototype.bc=function(){return this};function ue(a){if(a instanceof te)return a;if("function"==typeof a.bc)return a.bc(!1);if(fa(a)){var b=0,c=new te;c.next=function(){for(;;){if(b>=a.length)throw se;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function ve(a,b,c){if(fa(a))try{D(a,b,c)}catch(d){if(d!==se)throw d;}else{a=ue(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==se)throw e;}}}function we(a){if(fa(a))return ub(a);a=ue(a);var b=[];ve(a,function(a){b.push(a)});return b};function xe(a,b){this.o={};this.j=[];this.re=this.ra=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 xe?(c=a.Na(),d=a.Qa()):(c=Rb(a),d=Qb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=xe.prototype;f.Wa=function(){return this.ra};f.Qa=function(){ye(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.o[this.j[b]]);return a};f.Na=function(){ye(this);return this.j.concat()};
function ze(a,b){return Ae(a.o,b)}f.Cf=function(a){for(var b=0;b<this.j.length;b++){var c=this.j[b];if(Ae(this.o,c)&&this.o[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.ra!=a.Wa())return!1;var c=b||Be;ye(this);for(var d,e=0;d=this.j[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function Be(a,b){return a===b}f.isEmpty=function(){return 0==this.ra};f.clear=function(){this.o={};this.re=this.ra=this.j.length=0};
f.remove=function(a){return Ae(this.o,a)?(delete this.o[a],this.ra--,this.re++,this.j.length>2*this.ra&&ye(this),!0):!1};function ye(a){if(a.ra!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Ae(a.o,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.ra!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],Ae(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}}f.get=function(a,b){return Ae(this.o,a)?this.o[a]:b};f.set=function(a,b){Ae(this.o,a)||(this.ra++,this.j.push(a),this.re++);this.o[a]=b};
f.forEach=function(a,b){for(var c=this.Na(),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 xe(this)};f.bc=function(a){ye(this);var b=0,c=this.j,d=this.o,e=this.re,g=this,h=new te;h.next=function(){for(;;){if(e!=g.re)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw se;var h=c[b++];return a?h:d[h]}};return h};function Ae(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Ce(a){return"function"==typeof a.Wa?a.Wa():fa(a)||x(a)?a.length:Nb(a)}function De(a){if("function"==typeof a.Qa)return a.Qa();if(x(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Qb(a)}function Ee(a){if("function"==typeof a.Na)return a.Na();if("function"!=typeof a.Qa){if(fa(a)||x(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Rb(a)}}
function Fe(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(fa(a)||x(a))D(a,b,c);else for(var d=Ee(a),e=De(a),g=e.length,h=0;h<g;h++)b.call(c,e[h],d&&d[h],a)}function Ge(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(fa(a)||x(a))return jb(a,b,c);for(var d=Ee(a),e=De(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};function Ie(a,b,c,d,e,g,h){var k="";a&&(k+=a+":");c&&(k+="//",b&&(k+=b+"@"),k+=c,d&&(k+=":"+d));e&&(k+=e);g&&(k+="?"+g);h&&(k+="#"+h);return k}var Je=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Ke(a){if(Le){Le=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Me(c))&&c!=b.hostname)throw Le=!0,Error();}}return a.match(Je)}var Le=fd;function Ne(a){return a?decodeURI(a):a}function Me(a){return Ne(Ke(a)[3]||null)}
function Oe(a,b){for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),g=null,h=null;0<=e?(g=c[d].substring(0,e),h=c[d].substring(e+1)):g=c[d];b(g,h?xa(h):"")}}function Pe(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 Qe(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Qe(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",wa(b))}
function Se(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Qe(b[c],b[c+1],a);return a}function Te(a,b){for(var c in b)Qe(c,b[c],a);return a}function Ue(a){a=Te([],a);a[0]="";return a.join("")}function Ve(a,b){return Pe(2==arguments.length?Se([a],arguments[1],0):Se([a],arguments,1))}function We(a,b){return Pe(Te([a],b))}
function Xe(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 Ye=/#|$/;function Ze(a,b){var c=a.search(Ye),d=Xe(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return xa(a.substr(d,e-d))}var $e=/[?&]($|#)/;
function af(a,b,c){for(var d=a.search(Ye),e=0,g,h=[];0<=(g=Xe(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($e,"$1"),"&",b];null!=c&&a.push("=",wa(c));return Pe(a)};function J(a,b){var c;a instanceof J?(this.Re=n(b)?b:a.Re,bf(this,a.Ob),this.kf=a.kf,cf(this,a.tb),df(this,a.Hd),ef(this,a.Hb),ff(this,a.j.clone()),this.Gf=a.Kf()):a&&(c=Ke(String(a)))?(this.Re=!!b,bf(this,c[1]||"",!0),this.kf=gf(c[2]||""),cf(this,c[3]||"",!0),df(this,c[4]),ef(this,c[5]||"",!0),ff(this,c[6]||"",!0),this.Gf=gf(c[7]||"")):(this.Re=!!b,this.j=new hf(null,0,this.Re))}f=J.prototype;f.Ob="";f.kf="";f.tb="";f.Hd=null;f.Hb="";f.Gf="";f.Re=!1;
f.toString=function(){var a=[],b=this.Ob;b&&a.push(jf(b,kf,!0),":");if(b=this.tb){a.push("//");var c=this.kf;c&&a.push(jf(c,kf,!0),"@");a.push(wa(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Hd;null!=b&&a.push(":",String(b))}if(b=this.Hb)this.tb&&"/"!=b.charAt(0)&&a.push("/"),a.push(jf(b,"/"==b.charAt(0)?lf:mf,!0));(b=this.j.toString())&&a.push("?",b);(b=this.Kf())&&a.push("#",jf(b,nf));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Ob;c?bf(b,a.Ob):c=!!a.kf;c?b.kf=a.kf:c=!!a.tb;c?cf(b,a.tb):c=null!=a.Hd;var d=a.Hb;if(c)df(b,a.Hd);else if(c=!!a.Hb){if("/"!=d.charAt(0))if(this.tb&&!this.Hb)d="/"+d;else{var e=b.Hb.lastIndexOf("/");-1!=e&&(d=b.Hb.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){for(var d=ta(e,"/"),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?ef(b,d):c=""!==a.j.toString();c?ff(b,gf(a.j.toString())):c=!!a.Gf;c&&(b.Gf=a.Kf());return b};f.clone=function(){return new J(this)};function bf(a,b,c){a.Ob=c?gf(b,!0):b;a.Ob&&(a.Ob=a.Ob.replace(/:$/,""))}function of(a){return a.tb}function cf(a,b,c){a.tb=c?gf(b,!0):b;return a}function df(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Hd=b}else a.Hd=null;return a}
function ef(a,b,c){a.Hb=c?gf(b,!0):b}function ff(a,b,c){b instanceof hf?(a.j=b,pf(a.j,a.Re)):(c||(b=jf(b,qf)),a.j=new hf(b,0,a.Re));return a}function rf(a){return a.j}f.dp=function(){return this.j.toString()};function K(a,b,c){a.j.set(b,c);return a}function sf(a,b,c){ea(c)||(c=[String(c)]);tf(a.j,b,c)}function uf(a,b){return a.j.get(b)}f.Kf=function(){return this.Gf};
function vf(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^z()).toString(36));return a}function wf(a){return a instanceof J?a.clone():new J(a,void 0)}function xf(a,b,c,d){var e=new J(null,void 0);a&&bf(e,a);b&&cf(e,b);c&&df(e,c);d&&ef(e,d);return e}function gf(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function jf(a,b,c){return x(a)?(a=encodeURI(a).replace(b,yf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}
function yf(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var kf=/[#\/\?@]/g,mf=/[\#\?:]/g,lf=/[\#\?]/g,qf=/[\#\?@]/g,nf=/#/g;function hf(a,b,c){this.j=a||null;this.o=!!c}function zf(a){a.mb||(a.mb=new xe,a.ra=0,a.j&&Oe(a.j,function(b,c){a.add(xa(b),c)}))}f=hf.prototype;f.mb=null;f.ra=null;f.Wa=function(){zf(this);return this.ra};f.add=function(a,b){zf(this);this.j=null;a=Af(this,a);var c=this.mb.get(a);c||this.mb.set(a,c=[]);c.push(b);this.ra++;return this};
f.remove=function(a){zf(this);a=Af(this,a);return ze(this.mb,a)?(this.j=null,this.ra-=this.mb.get(a).length,this.mb.remove(a)):!1};f.clear=function(){this.mb=this.j=null;this.ra=0};f.isEmpty=function(){zf(this);return 0==this.ra};function Bf(a,b){zf(a);b=Af(a,b);return ze(a.mb,b)}f.Cf=function(a){var b=this.Qa();return G(b,a)};f.Na=function(){zf(this);for(var a=this.mb.Qa(),b=this.mb.Na(),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.Qa=function(a){zf(this);var b=[];if(x(a))Bf(this,a)&&(b=tb(b,this.mb.get(Af(this,a))));else{a=this.mb.Qa();for(var c=0;c<a.length;c++)b=tb(b,a[c])}return b};f.set=function(a,b){zf(this);this.j=null;a=Af(this,a);Bf(this,a)&&(this.ra-=this.mb.get(a).length);this.mb.set(a,[b]);this.ra++;return this};f.get=function(a,b){var c=a?this.Qa(a):[];return 0<c.length?String(c[0]):b};function tf(a,b,c){a.remove(b);0<c.length&&(a.j=null,a.mb.set(Af(a,b),ub(c)),a.ra+=c.length)}
f.toString=function(){if(this.j)return this.j;if(!this.mb)return"";for(var a=[],b=this.mb.Na(),c=0;c<b.length;c++)for(var d=b[c],e=wa(d),d=this.Qa(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+wa(d[g]));a.push(h)}return this.j=a.join("&")};f.clone=function(){var a=new hf;a.j=this.j;this.mb&&(a.mb=this.mb.clone(),a.ra=this.ra);return a};function Af(a,b){var c=String(b);a.o&&(c=c.toLowerCase());return c}
function pf(a,b){b&&!a.o&&(zf(a),a.j=null,a.mb.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),tf(this,e,a))},a));a.o=b}f.extend=function(a){for(var b=0;b<arguments.length;b++)Fe(arguments[b],function(a,b){this.add(b,a)},this)};var Cf=/^https?:\/\/([-\w.]+\.youtube(education|-nocookie)?\.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\/|[A-Za-z0-9]+\.prod\.google\.com(:[0-9]+)?\/)/,Df=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|plus\.sandbox\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,
Ef=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,Ff=/^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]+)?([\/\?\#]|$)/,Gf=/^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(\/+|\?|#|$)/,
Hf=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,If=/^(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]+)?([\/\?\#]|$))/,
Jf=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Kf=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,Lf=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Mf=/^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]+)?([\/\?\#]|$)/,
Nf=/^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]+)?([\/\?\#]|$))/,
Of=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Pf=/^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|books\.googleusercontent\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Qf=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",Qf,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Rf=window.yt&&window.yt.msgs_||{};q("yt.msgs_",Rf,void 0);function Sf(a){Tf(Qf,arguments)}function Uf(a,b){return a in Qf?Qf[a]:b}function L(a,b){ha(a)&&(a=Vf(a));return window.setTimeout(a,b)}function Wf(a,b){ha(a)&&(a=Vf(a));return window.setInterval(a,b)}function M(a){window.clearTimeout(a)}function Xf(a){window.clearInterval(a)}
function Vf(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Yf(b),b;}}:a}function Yf(a,b){var c=t("yt.www.errors.log");c?c(a,b):(c=Uf("ERRORS")||[],c.push([a,b]),Sf("ERRORS",c))}function Zf(a){Tf(Rf,arguments)}function $f(a,b,c){var d=b||{};if(a=a in Rf?Rf[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}function Tf(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 ag=["2mdn.net","imasdk.googleapis.com","googleads.g.doubleclick.net"];function bg(a){return(a=a&&a.match(Cf))?a[0]:""}function cg(a){return!!a&&-1!=a.search(Mf)}function dg(a){var b=!!a&&-1!=a.search(Pf),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+ag.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Yf(a,"WARNING"));return b||c}function eg(a){return!!a&&-1!=a.search(If)}
function fg(a){return!!a&&-1!=a.search(Nf)}function gg(a){a=new J(a);bf(a,document.location.protocol);cf(a,document.location.hostname);document.location.port&&df(a,document.location.port);return a.toString()}function hg(a){a=new J(a);bf(a,document.location.protocol);return a.toString()};var ig={},jg=0,kg=t("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",kg,void 0);function lg(a,b,c){a&&(c?a&&(a=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Dd(a).body.appendChild(a)):mg(a,b))}function mg(a,b){var c=new Image,d=""+jg++;ig[d]=c;c.onload=c.onerror=function(){b&&ig[d]&&b();delete ig[d]};c.src=a;c=eval("null")};function ng(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 og(a){return eval("("+a+")")}function pg(a){return(new qg(void 0)).H(a)}function qg(a){this.j=a}
qg.prototype.H=function(a){var b=[];rg(this,a,b);return b.join("")};
function rg(a,b,c){switch(typeof b){case "string":sg(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(ea(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],rg(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),sg(g,c),
c.push(":"),rg(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 tg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},ug=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function sg(a,b){b.push('"',a.replace(ug,function(a){if(a in tg)return tg[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return tg[a]=e+b.toString(16)}),'"')};function vg(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=vg.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new vg(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof vg?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
f.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};f.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};f.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
f.scale=function(a,b){var c=ga(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function wg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=wg.prototype;f.clone=function(){return new wg(this.left,this.top,this.width,this.height)};function xg(a){return new vg(a.top,a.left+a.width,a.top+a.height,a.left)}function yg(a){return new wg(a.left,a.top,a.right-a.left,a.bottom-a.top)}function zg(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}
function Ag(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),g=Math.min(a.top+a.height,b.top+b.height);if(e<=g)return a.left=c,a.top=e,a.width=d-c,a.height=g-e,!0}return!1}f.contains=function(a){return a instanceof wg?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 Bg(a){return new H(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=ga(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Cg(a){Cg[" "](a);return a}Cg[" "]=v;function Dg(a,b){try{return Cg(a[b]),!0}catch(c){}return!1};function Eg(){return fd?"Webkit":ed?"Moz":dd?"ms":cd?"O":null};function Fg(a,b,c){if(x(b))(b=Gg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=Gg(c,d);g&&(c.style[g]=e)}}var Hg={};function Gg(a,b){var c=Hg[b];if(!c){var d=Xa(b),c=d;void 0===a.style[d]&&(d=Eg()+Ya(d),void 0!==a.style[d]&&(c=d));Hg[b]=c}return c}function Ig(a,b){var c=a.style[Xa(b)];return"undefined"!==typeof c?c:a.style[Gg(a,b)]||""}
function Jg(a,b){var c=Dd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Kg(a,b){return Jg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Lg(a,b,c){var d;b instanceof Qc?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Mg(d,!1);a.style.top=Mg(b,!1)}function Ng(a){return new Qc(a.offsetLeft,a.offsetTop)}
function Og(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}dd&&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 Pg(a){if(dd&&!td(8))return a.offsetParent;var b=Dd(a),c=Kg(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Kg(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 Qg(a){for(var b=new vg(0,Infinity,Infinity,0),c=Bd(a),d=c.j.body,e=c.j.documentElement,g=Md(c.j);a=Pg(a);)if(!(dd&&0==a.clientWidth||fd&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Kg(a,"overflow")){var h=Rg(a),k=new Qc(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=Kd(qe(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 Rg(a){var b=Dd(a),c=new Qc(0,0),d;d=b?Dd(b):document;d=!dd||td(9)||pe(Bd(d))?d.documentElement:d.body;if(a==d)return c;a=Og(a);b=re(Bd(b));c.x=a.left+b.x;c.y=a.top+b.y;return c}
function Sg(a,b){var c=new Qc(0,0),d=Nd(Dd(a)),e=a;do{var g=d==b?Rg(e):Tg(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 Tg(a){a=Og(a);return new Qc(a.left,a.top)}function Ug(a){if(1==a.nodeType)return Tg(a);var b=ha(a.F),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 Qc(c.clientX,c.clientY)}
function Vg(a,b,c){if(b instanceof H)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Wg(a,b);a.style.height=Mg(c,!0)}function Mg(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Wg(a,b){a.style.width=Mg(b,!0)}function Xg(a){return Yg(a)}
function Yg(a){var b=Zg;if("none"!=Kg(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 Zg(a){var b=a.offsetWidth,c=a.offsetHeight,d=fd&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new H(b,c):(a=Og(a),new H(a.right-a.left,a.bottom-a.top))}function $g(a){var b=Rg(a);a=Yg(a);return new wg(b.x,b.y,a.width,a.height)}
function ah(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 bh(a,b){a.style.display=b?"":"none"}function ch(a){return"rtl"==Kg(a,"direction")}function dh(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 eh(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?dh(a,c):0}var gh={thin:2,medium:4,thick:6};function hh(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 gh?gh[c]:dh(a,c)}
function ih(a){if(dd&&!td(9)){var b=hh(a,"borderLeft"),c=hh(a,"borderRight"),d=hh(a,"borderTop");a=hh(a,"borderBottom");return new vg(d,c,a,b)}b=Jg(a,"borderLeftWidth");c=Jg(a,"borderRightWidth");d=Jg(a,"borderTopWidth");a=Jg(a,"borderBottomWidth");return new vg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var jh=/[^\d]+$/,kh={cm:1,"in":1,mm:1,pc:1,pt:1},lh={em:1,ex:1};
function mh(a){var b=Kg(a,"fontSize"),c;c=(c=b.match(jh))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(dd){if(c in kh)return dh(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in lh)return a=a.parentNode,c=Kg(a,"fontSize"),dh(a,b==c?"1em":b)}c=I("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;Wd(c);return b};function nh(a){if(a.classList)return a.classList;a=a.className;return x(a)&&a.match(/\S+/g)||[]}function oh(a,b){return a.classList?a.classList.contains(b):G(nh(a),b)}function N(a,b){a.classList?a.classList.add(b):oh(a,b)||(a.className+=0<a.className.length?" "+b:b)}function ph(a,b){if(a.classList)D(b,function(b){N(a,b)});else{var c={};D(nh(a),function(a){c[a]=!0});D(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function qh(a,b){a.classList?a.classList.remove(b):oh(a,b)&&(a.className=gb(nh(a),function(a){return a!=b}).join(" "))}function rh(a,b){a.classList?D(b,function(b){qh(a,b)}):a.className=gb(nh(a),function(a){return!G(b,a)}).join(" ")}function O(a,b,c){c?N(a,b):qh(a,b)}function sh(a,b){var c=!oh(a,b);O(a,b,c)};var th=fd?"webkit":ed?"moz":dd?"ms":cd?"o":"";function uh(a){var b=a.__yt_uid_key;b||(b=vh(),a.__yt_uid_key=b);return b}var vh=t("yt.dom.getNextId_");if(!vh){vh=function(){return++wh};q("yt.dom.getNextId_",vh,void 0);var wh=0}function xh(a,b){var c=Gd(a,null,b);return c.length?c[0]:null}function yh(a,b){if(a in b)return b[a];var c=th+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function zh(a,b){var c;ib(a,function(a){c=yh(a,b);return!!c});return c};function Ah(a){if(a=a||window.event){for(var b in a)b in Bh||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Sc=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.o=a.pageY}}function Ch(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.o=a.clientY+b}}
function Dh(a){n(a.j)||Ch(a);return a.j}function Eh(a){n(a.o)||Ch(a);return a.o}f=Ah.prototype;f.Sc=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.Sc.returnValue=!1;this.Sc.preventDefault&&this.Sc.preventDefault()};
f.fh=function(){return!1===this.Sc.returnValue};f.stopPropagation=function(){this.Sc.cancelBubble=!0;this.Sc.stopPropagation&&this.Sc.stopPropagation()};f.stopImmediatePropagation=function(){this.Sc.cancelBubble=!0;this.Sc.stopImmediatePropagation&&this.Sc.stopImmediatePropagation()};var Bh={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Fh=t("yt.events.listeners_")||{};q("yt.events.listeners_",Fh,void 0);var Gh=t("yt.events.counter_")||{count:0};q("yt.events.counter_",Gh,void 0);function Hh(a,b,c,d){return Tb(Fh,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=Hh(a,b,c,d);if(e)return e;var e=++Gh.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new Ah(d);if(!oe(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Ah(b);b.currentTarget=a;return c.call(a,b)};h=Vf(h);Fh[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 Ih(a,b){var c;c=P(a,"playing",function(){Jh(c);b.apply(a,arguments)},void 0)}function Kh(a,b,c,d){return Lh(a,b,c,function(a){return oh(a,d)})}
function Lh(a,b,c,d){var e=a||document;return P(e,b,function(a){var b=oe(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Jh(a){a&&("string"==typeof a&&(a=[a]),D(a,function(a){if(a in Fh){var c=Fh[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 Fh[a]}}))}function Mh(a){for(var b in Fh)Fh[b][0]==a&&Jh(b)}
function Nh(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}function Oh(a){a=a||window.event;return!1===a.returnValue||a.fh&&a.fh()}function Ph(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 Qh(){return!!zh(["fullscreenEnabled","fullScreenEnabled"],document)}function Rh(){return zh(["fullscreenElement","fullScreenElement"],document)};function Sh(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||Zb(Th);this.assets=a.assets||{};this.attrs=a.attrs||Zb(Uh);this.params=a.params||Zb(Vh);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}}var Th={enablejsapi:1},Uh={},Vh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
Sh.prototype.clone=function(){var a=new Sh,b;for(b in this){var c=this[b];"object"==ca(c)?a[b]=Zb(c):a[b]=c}return a};var Wh=Xc("Firefox"),Xh=bd()||Xc("iPod"),Yh=Xc("iPad"),Zh=Xc("Android")&&!($c()||Xc("Firefox")||Yc()||Xc("Silk")),$h=$c(),ai=Xc("Safari")&&!($c()||Xc("Coast")||Yc()||Zc()||Xc("Silk")||Xc("Android"))&&!(bd()||Xc("iPad")||Xc("iPod"));var bi=z(),ci=null,di=Array(50),ei=-1,fi=!1;function gi(a){hi();ci.push(a);ii(ci)}function ji(a){var b=t("yt.mdx.remote.debug.handlers_");qb(b||[],a)}function ki(a,b){hi();var c=ci,d=li(a,String(b));nb(c)?mi(d):(ii(c),D(c,function(a){a(d)}))}function hi(){ci||(ci=t("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",ci,void 0))}function mi(a){var b=(ei+1)%50;ei=b;di[b]=a;fi||(fi=49==b)}
function ii(a){var b=di;if(b[0]){var c=ei,d=fi?c:-1;do{var d=(d+1)%50,e=b[d];D(a,function(a){a(e)})}while(d!=c);di=Array(50);ei=-1;fi=!1}}function li(a,b){var c=(z()-bi)/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 ni(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 oi(a,b){return!!b&&(a.id==b||a.uuid==b)}function pi(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 qi(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function ri(a){return new ni(a)}function si(a){return ea(a)?E(a,ri):[]}
function ti(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 ui(a){return ea(a)?"["+E(a,ti).join(",")+"]":"null"};function vi(a,b,c){a&&(a.dataset?a.dataset[wi(b)]=c:a.setAttribute("data-"+b,c))}function xi(a,b){return a?a.dataset?a.dataset[wi(b)]:a.getAttribute("data-"+b):null}var yi={};function wi(a){return yi[a]||(yi[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};function Q(){this.gb=this.gb;this.Ga=this.Ga}Q.prototype.gb=!1;Q.prototype.ma=function(){return this.gb};Q.prototype.dispose=function(){this.gb||(this.gb=!0,this.P())};function R(a,b){zi(a,pa(Ai,b))}function zi(a,b){a.gb?b.call(void 0):(a.Ga||(a.Ga=[]),a.Ga.push(n(void 0)?y(b,void 0):b))}Q.prototype.P=function(){if(this.Ga)for(;this.Ga.length;)this.Ga.shift()()};function Bi(a){return a&&"function"==typeof a.ma?a.ma():!1}function Ai(a){a&&"function"==typeof a.dispose&&a.dispose()}
function Ci(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?Ci.apply(null,d):Ai(d)}};function Di(){Q.call(this);this.j=[];this.tc={}}A(Di,Q);f=Di.prototype;f.gp=1;f.xj=0;f.subscribe=function(a,b,c){var d=this.tc[a];d||(d=this.tc[a]=[]);var e=this.gp;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.gp=e+3;d.push(e);return e};f.qa=function(a,b,c){if(a=this.tc[a]){var d=this.j;if(a=F(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Rb(a)}return!1};
f.Rb=function(a){if(0!=this.xj)return this.o||(this.o=[]),this.o.push(a),!1;var b=this.j[a];if(b){var c=this.tc[b];c&&qb(c,a);delete this.j[a];delete this.j[a+1];delete this.j[a+2]}return!!b};f.L=function(a,b){var c=this.tc[a];if(c){this.xj++;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.xj--;if(this.o&&0==this.xj)for(;c=this.o.pop();)this.Rb(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.tc[a];b&&(D(b,this.Rb,this),delete this.tc[a])}else this.j.length=0,this.tc={}};f.Wa=function(a){if(a){var b=this.tc[a];return b?b.length:0}a=0;for(b in this.tc)a+=this.Wa(b);return a};f.P=function(){Di.K.P.call(this);delete this.j;delete this.tc;delete this.o};var Ei=t("yt.pubsub.instance_")||new Di;Di.prototype.subscribe=Di.prototype.subscribe;Di.prototype.unsubscribeByKey=Di.prototype.Rb;Di.prototype.publish=Di.prototype.L;Di.prototype.clear=Di.prototype.clear;q("yt.pubsub.instance_",Ei,void 0);var Fi=t("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Fi,void 0);var Gi=t("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Gi,void 0);var Hi=t("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Hi,void 0);
var Ii=t("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Ii,void 0);function Ji(a,b,c){var d=Ki();if(d){var e=d.subscribe(a,function(){if(!Ii||Ii!=e){var d=arguments,h=function(){Fi[e]&&b.apply(c||window,d)};try{Hi[a]?h():L(h,0)}catch(k){Yf(k)}}},c);Fi[e]=!0;Gi[a]||(Gi[a]=[]);Gi[a].push(e);return e}return 0}function Li(a){var b=Ki();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),D(a,function(a){b.unsubscribeByKey(a);delete Fi[a]}))}
function Mi(a,b){var c=Ki();c&&c.publish.apply(c,arguments)}function Ni(a,b){Hi[a]=!0;var c=Ki();c&&c.publish.apply(c,arguments);Hi[a]=!1}function Ki(){return t("yt.pubsub.instance_")};function Oi(){};function Pi(){}A(Pi,Oi);Pi.prototype.Wa=function(){var a=0;ve(this.bc(!0),function(){a++});return a};Pi.prototype.clear=function(){var a=we(this.bc(!0)),b=this;D(a,function(a){b.remove(a)})};function Qi(a){this.j=a}A(Qi,Pi);f=Qi.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(!x(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.j.removeItem(a)};
f.Wa=function(){return this.j.length};f.bc=function(a){var b=0,c=this.j,d=new te;d.next=function(){if(b>=c.length)throw se;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!x(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 Ri(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}A(Ri,Qi);function Si(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}A(Si,Qi);function Ti(a){this.j=a}Ti.prototype.set=function(a,b){n(b)?this.j.set(a,pg(b)):this.j.remove(a)};Ti.prototype.get=function(a){var b;try{b=this.j.get(a)}catch(c){return}if(null!==b)try{return ng(b)}catch(d){throw"Storage: Invalid value was encountered";}};Ti.prototype.remove=function(a){this.j.remove(a)};function Ui(a){this.j=a}A(Ui,Ti);function Vi(a){this.data=a}function Wi(a){return!n(a)||a instanceof Vi?a:new Vi(a)}Ui.prototype.set=function(a,b){Ui.K.set.call(this,a,Wi(b))};Ui.prototype.o=function(a){a=Ui.K.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Ui.prototype.get=function(a){if(a=this.o(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function Xi(a){this.j=a}A(Xi,Ui);function Yi(a){var b=a.creation;a=a.expiration;return!!a&&a<z()||!!b&&b>z()}Xi.prototype.set=function(a,b,c){if(b=Wi(b)){if(c){if(c<z()){Xi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=z()}Xi.K.set.call(this,a,b)};Xi.prototype.o=function(a,b){var c=Xi.K.o.call(this,a);if(c)if(!b&&Yi(c))Xi.prototype.remove.call(this,a);else return c};function Zi(a){this.j=a}A(Zi,Xi);function $i(a,b){var c=[];ve(b,function(a){var b;try{b=Zi.prototype.o.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?Yi(b)&&c.push(a):c.push(a)},a);return c}function aj(a,b){var c=$i(a,b);D(c,function(a){Zi.prototype.remove.call(this,a)},a)}function bj(){var a=cj;aj(a,a.j.bc(!0))};function dj(a,b,c){var d=c&&0<c?c:0;c=d?z()+1E3*d:0;if((d=d?cj:ej)&&window.JSON){x(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function fj(a){if(!ej&&!cj||!window.JSON)return null;var b;try{b=ej.get(a)}catch(c){}if(!x(b))try{b=cj.get(a)}catch(d){}if(!x(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function gj(a){ej&&ej.remove(a);cj&&cj.remove(a)}var cj,hj=new Ri;cj=hj.isAvailable()?new Zi(hj):null;var ej,ij=new Si;ej=ij.isAvailable()?new Zi(ij):null;var jj=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo"];function kj(a,b){a==jj.length?b(null):lj(jj[a],function(c){c?(c=jj[a],dj("yt-remote-cast-last-extension",c),b(c)):kj(a+1,b)})}function mj(a){return"chrome-extension://"+a+"/cast_sender.js"}
function lj(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",mj(a),!0),c.send()}catch(d){b(!1)}}
function nj(a){window.__onGCastApiAvailable=a;oj(function(b){if(b){ki("bootstrap","Found cast extension: "+b);q("chrome.cast.extensionId",b,void 0);var c=document.createElement("script");c.src=mj(b);c.onerror=function(){pj();gj("yt-remote-cast-last-extension");a(!1,"Extension JS failed to load.")};(document.head||document.documentElement).appendChild(c)}else ki("bootstrap","No cast extension found"),a(!1,"No cast extension found")})}
function pj(){window.__onGCastApiAvailable&&delete window.__onGCastApiAvailable}function oj(a){var b=fj("yt-remote-cast-last-extension");b?a(b):kj(0,a)};var qj={SKA_SKIPPABLE_ADS:"ska",MI:"que",oI:"mus",dJ:"sus"};function rj(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 sj(a,b){rc(a);rc(a);return Oc(b,null)};function tj(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=xa(h[0]||""),h=xa(h[1]||"");k in d?ea(d[k])?vb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function uj(a,b){var c=[];Jb(a,function(a,b){var g=wa(b),h;ea(a)?h=a:h=[a];D(h,function(a){""==a?c.push(g):c.push(g+"="+wa(a))})});return c.join(b)}function vj(a){"?"==a.charAt(0)&&(a=a.substr(1));return tj(a,"&")}
function wj(a){a=a.split(",");return a=a.map(function(a){return vj(a)})}function xj(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),vj(1<a.length?a[1]:a[0])):{}}var yj=Me;function zj(a){a=Ke(a);return Ie(a[1],a[2],a[3],a[4])}function Aj(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=vj(d[1]||""),e;for(e in b)d[e]=b[e];return We(a,d)+c}function Bj(){var a;a||(a=document.location.href);a=Ke(a)[1]||null;return null!==a&&"https"==a};var Cj=null;"undefined"!=typeof XMLHttpRequest?Cj=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Cj=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Dj(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 Ej(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Vf(b)(l)}var l=Cj&&Cj();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=Fj(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 Fj(a,b){b=b||{};for(var c in Gj){var d=Uf(Gj[c]),e;if(e=d){e=a;var g=void 0;g=window.location.href;var h=Ke(e)[1]||null,k=yj(e);h&&k?(e=Ke(e),g=Ke(g),e=e[3]==g[3]&&e[1]==g[1]&&e[4]==g[4]):e=k?yj(g)==k&&(Number(Ke(g)[4]||null)||null)==(Number(Ke(e)[4]||null)||null):!0;e||(e=c,g=Uf("CORS_HEADER_WHITELIST")||{},e=(h=yj(a))?(g=g[h])?G(g,e):!1:!0)}e&&(b[c]=d)}return b}
function Hj(a,b){var c=Uf("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.nK&&(!yj(a)||yj(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Lb&&b.Lb[c])}
function Ij(a,b){var c=b.format||"JSON";b.sK&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=Uf("XSRF_FIELD_NAME"),e=Uf("XSRF_TOKEN"),g=b.mg;g&&(g[d]&&delete g[d],a=Aj(a,g));var h=b.vC||"",g=b.Lb;Hj(a,b)&&(g||(g={}),g[d]=e);g&&x(h)&&(d=vj(h),bc(d,g),h=Ue(d));var k=!1,l,p=Ej(a,function(a){if(!k){k=!0;l&&M(l);var d=Dj(a),e=null;if(d||400<=a.status&&500>a.status)e=Jj(c,a,b.mK);if(d)a:{switch(c){case "XML":d=0==parseInt(e&&
e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},g=b.context||m;d?b.qb&&b.qb.call(g,a,e):b.onError&&b.onError.call(g,a,e);b.Ac&&b.Ac.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.df&&0<b.timeout&&(l=L(function(){k||(k=!0,p.abort(),M(l),b.df.call(b.context||m,p))},b.timeout));return p}
function Jj(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=og(a));break;case "XML":if(b=(b=b.responseXML)?Kj(b):null)d={},D(b.getElementsByTagName("*"),function(a){d[a.tagName]=Lj(a)})}if(c)for(var e in d)if("html_content"==e||ua(e,"_html"))d[e]=sj(sc(),d[e]);return d}function Kj(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}
function Lj(a){var b="";D(a.childNodes,function(a){b+=a.nodeValue});return b}var Mj={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"},Nj={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 Oj(a,b,c,d){if(Uf("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=zj(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Mj.watch_actions_ajax]=1;Ij(e,{format:"RAW",method:"GET",mg:g,Ac:function(a){var b=vj(a.responseText);b[Nj.watch_actions_ajax]?c&&c():d&&d(a,b)}})}}var Gj={"X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Timestamp":"PAGE_BUILD_TIMESTAMP","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};function Pj(a){this.port=this.A="";this.j="/api/lounge";this.o=!0;a=a||document.location.href;var b=Number(Ke(a)[4]||null)||null||"";b&&(this.port=":"+b);this.A=Me(a)||"";a=Uc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ra(a,"10.0")&&(this.o=!1))}function Qj(a,b,c,d){var e=a.j;if(n(d)?d:a.o)e="https://"+a.A+a.port+a.j;return We(e+b,c||{})}
function Rj(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,qb:pa(a.C,d,!0),onError:pa(a.B,e),df:pa(a.D,e)};c&&(a.Lb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Ij(b,a)}Pj.prototype.C=function(a,b,c,d){b?a(d):a({text:c.responseText})};Pj.prototype.B=function(a,b){a(Error("Request error: "+b.status))};Pj.prototype.D=function(a){a(Error("request timed out"))};function Sj(a){a&&(this.id=a.id||"",this.name=a.name||"",this.j=a.activityId||"",this.status=a.status||"UNKNOWN")}Sj.prototype.id="";Sj.prototype.name="";Sj.prototype.j="";Sj.prototype.status="UNKNOWN";Sj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.j+",status:"+this.status+"}"};function Tj(){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 Uj(a){return E(a,function(a){return{key:a.id,name:a.name}})}function Vj(a){return E(a,function(a){return new Sj(a)})}function Wj(a,b){return F(a,function(a){return a.id==b})}function Xj(a,b){return F(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function Yj(a,b){return F(a,function(a){return oi(a,b)})};function U(){Q.call(this);this.T=new Di;R(this,this.T)}A(U,Q);U.prototype.subscribe=function(a,b,c){return this.ma()?0:this.T.subscribe(a,b,c)};U.prototype.qa=function(a,b,c){return this.ma()?!1:this.T.qa(a,b,c)};U.prototype.Rb=function(a){return this.ma()?!1:this.T.Rb(a)};U.prototype.L=function(a,b){return this.ma()?!1:this.T.L.apply(this.T,arguments)};function Zj(a){U.call(this);this.D=a;this.screens=[]}A(Zj,U);f=Zj.prototype;f.gc=function(){return this.screens};f.contains=function(a){return!!Xj(this.screens,a)};f.get=function(a){return a?Yj(this.screens,a):null};function ak(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 bk(a,b){var c=a.screens.length!=b.length;a.screens=gb(a.screens,function(a){return!!Xj(b,a)});for(var d=0,e=b.length;d<e;d++)c=ak(a,b[d])||c;return c}function ck(a,b){var c=a.screens.length;a.screens=gb(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});return a.screens.length<c}f.info=function(a){ki(this.D,a)};f.warn=function(a){ki(this.D,a)};function dk(a,b,c,d){U.call(this);this.F=a;this.D=b;this.B=c;this.C=d;this.A=0;this.j=null;this.o=NaN}A(dk,U);var ek=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=dk.prototype;f.start=function(){!this.j&&isNaN(this.o)&&this.Cs()};f.stop=function(){this.j&&(this.j.abort(),this.j=null);isNaN(this.o)||(M(this.o),this.o=NaN)};f.P=function(){this.stop();dk.K.P.call(this)};
f.Cs=function(){this.o=NaN;this.j=Ij(Qj(this.F,"/pairing/get_screen"),{method:"POST",Lb:{pairing_code:this.D},timeout:5E3,qb:y(this.vD,this),onError:y(this.uD,this),df:y(this.wD,this)})};f.vD=function(a,b){this.j=null;var c=b.screen||{};c.dialId=this.B;c.name=this.C;this.L("pairingComplete",new ni(c))};
f.uD=function(a){this.j=null;a.status&&404==a.status?this.A>=ek.length?this.L("pairingFailed",Error("DIAL polling timed out")):(a=ek[this.A],this.o=L(y(this.Cs,this),a),this.A++):this.L("pairingFailed",Error("Server error "+a.status))};f.wD=function(){this.j=null;this.L("pairingFailed",Error("Server not responding"))};function fk(a,b){this.$f=a;this.Ve=b+"::"}A(fk,Pi);f=fk.prototype;f.$f=null;f.Ve="";f.set=function(a,b){this.$f.set(this.Ve+a,b)};f.get=function(a){return this.$f.get(this.Ve+a)};f.remove=function(a){this.$f.remove(this.Ve+a)};f.bc=function(a){var b=this.$f.bc(!0),c=this,d=new te;d.next=function(){for(var d=b.next();d.substr(0,c.Ve.length)!=c.Ve;)d=b.next();return a?d.substr(c.Ve.length):c.$f.get(d)};return d};function gk(a){var b=new Ri;return b.isAvailable()?a?new fk(b,a):b:null};function hk(a){this.j=new xe;if(a){a=De(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function ik(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ja(a):b.substr(0,1)+a}f=hk.prototype;f.Wa=function(){return this.j.Wa()};f.add=function(a){this.j.set(ik(a),a)};f.removeAll=function(a){a=De(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.j.remove(ik(a))};f.clear=function(){this.j.clear()};f.isEmpty=function(){return this.j.isEmpty()};
f.contains=function(a){return ze(this.j,ik(a))};f.Qa=function(){return this.j.Qa()};f.clone=function(){return new hk(this)};f.equals=function(a){return this.Wa()==Ce(a)&&jk(this,a)};function jk(a,b){var c=Ce(b);if(a.Wa()>c)return!1;!(b instanceof hk)&&5<c&&(b=new hk(b));return Ge(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.Cf?c.Cf(a):fa(c)||x(c)?G(c,a):Pb(c,a)})}f.bc=function(){return this.j.bc(!1)};function kk(a){a&&(this.id=a.id||a.name,this.name=a.name,this.type=a.type||"REMOTE_CONTROL",this.hD=a.user||"",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new hk(gb((a.capabilities||"").split(","),pa(Ob,qj))))}kk.prototype.id="";kk.prototype.name="";f=kk.prototype;f.type="REMOTE_CONTROL";f.hD="";f.avatar="";f.theme="u";f.equals=function(a){return a?this.id==a.id:!1};function lk(a){this.j=a}var mk=/\s*;\s*/;f=lk.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(mk),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.Na=function(){return nk(this).keys};f.Qa=function(){return nk(this).values};f.isEmpty=function(){return!this.j.cookie};f.Wa=function(){return this.j.cookie?(this.j.cookie||"").split(mk).length:0};
f.Cf=function(a){for(var b=nk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=nk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function nk(a){a=(a.j.cookie||"").split(mk);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 ok=new lk(document);ok.o=3950;function pk(a,b,c){ok.set(""+a,b,c,"/","youtube.com")};var qk;function rk(){var a=sk(),b=tk();G(a,b);uk()&&Gb(a,b);a=vk(a);if(nb(a))try{a="remote_sid",ok.remove(""+a,"/","youtube.com")}catch(c){}else try{pk("remote_sid",a.join(","),-1)}catch(d){}}function sk(){var a=fj("yt-remote-connected-devices")||[];Bb(a);return a}function vk(a){if(nb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return E(a,function(a,b){return 0==b?a:a.substring(c.length)})}function wk(a){dj("yt-remote-connected-devices",a,86400)}
function tk(){if(xk)return xk;var a=fj("yt-remote-device-id");a||(a=Tj(),dj("yt-remote-device-id",a,31536E3));for(var b=sk(),c=1,d=a;G(b,d);)c++,d=a+"#"+c;return xk=d}function yk(){return fj("yt-remote-session-browser-channel")}function uk(){return fj("yt-remote-session-screen-id")}
function zk(a){5<a.length&&(a=a.slice(a.length-5));var b=E(Ak(),function(a){return a.loungeToken}),c=E(a,function(a){return a.loungeToken});jb(c,function(a){return!G(b,a)})&&Bk();dj("yt-remote-local-screens",a,31536E3)}function Ak(){return fj("yt-remote-local-screens")||[]}function Bk(){dj("yt-remote-lounge-token-expiration",!0,86400)}function Ck(a){dj("yt-remote-online-screens",a,60)}function Dk(){return fj("yt-remote-online-dial-devices")||[]}
function Ek(a,b){dj("yt-remote-session-browser-channel",a);dj("yt-remote-session-screen-id",b);var c=sk(),d=tk();G(c,d)||c.push(d);wk(c);rk()}function Fk(a){a||(gj("yt-remote-session-screen-id"),gj("yt-remote-session-video-id"));rk();a=sk();qb(a,tk());wk(a)}function Gk(){if(!qk){var a=gk();a&&(qk=new Ti(a))}return qk?!!qk.get("yt-remote-use-staging-server"):!1}var xk="";function Hk(a){Zj.call(this,"LocalScreenService");this.o=a;this.j=NaN;Ik(this);this.info("Initializing with "+ui(this.screens))}A(Hk,Zj);f=Hk.prototype;f.start=function(){Ik(this)&&this.L("screenChange");!fj("yt-remote-lounge-token-expiration")&&Jk(this);M(this.j);this.j=L(y(this.start,this),1E4)};f.add=function(a,b){Ik(this);ak(this,a);Kk(this,!1);this.L("screenChange");b(a);a.token||Jk(this)};f.remove=function(a,b){var c=Ik(this);ck(this,a)&&(Kk(this,!1),c=!0);b(a);c&&this.L("screenChange")};
f.ak=function(a,b,c,d){var e=Ik(this),g=this.get(a.id);g?(g.name!=b&&(g.name=b,Kk(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.L("screenChange")};f.P=function(){M(this.j);Hk.K.P.call(this)};function Jk(a){if(a.screens.length){var b=E(a.screens,function(a){return a.id}),c=Qj(a.o,"/pairing/get_lounge_token_batch");Rj(a.o,c,{screen_ids:b.join(",")},y(a.jx,a),y(a.ix,a))}}
f.jx=function(a){Ik(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)}Kk(this,!b);b&&this.warn("Missed "+b+" lounge tokens.")};f.ix=function(a){this.warn("Requesting lounge tokens failed: "+a)};function Ik(a){var b=si(Ak()),b=gb(b,function(a){return!a.uuid});return bk(a,b)}function Kk(a,b){zk(E(a.screens,qi));b&&Bk()};function Lk(a,b){U.call(this);this.C=b;for(var c=fj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.C(),g=0,h=e.length;g<h;++g){var k=e[g].id;d[k]=G(c,k)}this.j=d;this.D=a;this.A=this.B=NaN;this.o=null;Mk("Initialized with "+pg(this.j))}A(Lk,U);f=Lk.prototype;f.start=function(){var a=parseInt(fj("yt-remote-fast-check-period")||"0",10);(this.B=z()-144E5<a?0:a)?Nk(this):(this.B=z()+3E5,dj("yt-remote-fast-check-period",this.B),this.Mm())};f.isEmpty=function(){return Vb(this.j)};
f.update=function(){Mk("Updating availability on schedule.");var a=this.C(),b=Kb(this.j,function(b,d){return b&&!!Yj(a,d)},this);Ok(this,b)};function Pk(a,b,c){var d=Qj(a.D,"/pairing/get_screen_availability");Rj(a.D,d,{lounge_token:b.token},y(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),y(function(){c(!1)},a))}f.P=function(){M(this.A);this.A=NaN;this.o&&(this.o.abort(),this.o=null);Lk.K.P.call(this)};
function Ok(a,b){var c;a:if(Nb(b)!=Nb(a.j))c=!1;else{c=Rb(b);for(var d=0,e=c.length;d<e;++d)if(!a.j[c[d]]){c=!1;break a}c=!0}c||(Mk("Updated online screens: "+pg(a.j)),a.j=b,a.L("screenChange"));Qk(a)}function Nk(a){isNaN(a.A)||M(a.A);a.A=L(y(a.Mm,a),0<a.B&&a.B<z()?2E4:1E4)}
f.Mm=function(){M(this.A);this.A=NaN;this.o&&this.o.abort();var a=Rk(this);if(Nb(a)){var b=Qj(this.D,"/pairing/get_screen_availability"),c={lounge_token:Rb(a).join(",")};this.o=Rj(this.D,b,c,y(this.nB,this,a),y(this.mB,this))}else Ok(this,{}),Nk(this)};f.nB=function(a,b){this.o=null;var c=Rb(Rk(this));if(Eb(c,Rb(a))){for(var c=b.screens||[],d={},e=0,g=c.length;e<g;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Ok(this,d);Nk(this)}else this.Ya("Changing Screen set during request."),this.Mm()};
f.mB=function(a){this.Ya("Screen availability failed: "+a);this.o=null;Nk(this)};function Mk(a){ki("OnlineScreenService",a)}f.Ya=function(a){ki("OnlineScreenService",a)};function Rk(a){var b={};D(a.C(),function(a){a.token?b[a.token]=a.id:this.Ya("Requesting availability of screen w/o lounge token.")});return b}
function Qk(a){var b=Rb(Kb(a.j,function(a){return a}));Bb(b);b.length?dj("yt-remote-online-screen-ids",b.join(","),60):gj("yt-remote-online-screen-ids");a=gb(a.C(),function(a){return!!this.j[a.id]},a);Ck(E(a,qi))};function Sk(a){Zj.call(this,"ScreenService");this.C=a;this.j=this.o=null;this.A=[];this.B={};Tk(this)}A(Sk,Zj);f=Sk.prototype;f.start=function(){this.o.start();this.j.start();this.screens.length&&(this.L("screenChange"),this.j.isEmpty()||this.L("onlineScreenChange"))};f.add=function(a,b,c){this.o.add(a,b,c)};f.remove=function(a,b,c){this.o.remove(a,b,c);this.j.update()};f.ak=function(a,b,c,d){this.o.contains(a)?this.o.ak(a,b,c,d):(a="Updating name of unknown screen: "+a.name,this.warn(a),d(Error(a)))};
f.gc=function(a){return a?this.screens:tb(this.screens,gb(this.A,function(a){return!this.contains(a)},this))};f.Ds=function(){return gb(this.gc(!0),function(a){return!!this.j.j[a.id]},this)};
function Uk(a,b,c,d,e,g){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.B[b]);var h=a.gc();if(h=(c?Yj(h,c):null)||Yj(h,b)){h.uuid=b;var k=Vk(a,h);Pk(a.j,k,function(a){e(a?k:null)})}else c?Wk(a,c,y(function(a){var g=Vk(this,new ni({name:d,screenId:c,loungeToken:a,dialId:b||""}));Pk(this.j,g,function(a){e(a?g:null)})},a),g):e(null)}
f.Es=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var g=new dk(this.C,a,b,c);g.subscribe("pairingComplete",y(function(a){Ai(g);d(Vk(this,a))},this));g.subscribe("pairingFailed",function(a){Ai(g);e(a)});g.start();return y(g.stop,g)};function Xk(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.Fw=function(a,b){for(var c=2,d=b(a,c);Xk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
f.yD=function(a,b,c,d){Ij(Qj(this.C,"/pairing/get_screen"),{method:"POST",Lb:{pairing_code:a},timeout:5E3,qb:y(function(a,d){var h=new ni(d.screen||{});if(!h.name||Xk(this,h.name))h.name=this.Fw(h.name,b);c(Vk(this,h))},this),onError:y(function(a){d(Error("pairing request failed: "+a.status))},this),df:y(function(){d(Error("pairing request timed out."))},this)})};f.P=function(){Ai(this.o);Ai(this.j);Sk.K.P.call(this)};
function Wk(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Lb:{screen_ids:b},method:"POST",context:a,qb: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"))}};Ij(Qj(a.C,"/pairing/get_lounge_token_batch"),e)}
function Yk(a){a.screens=a.o.gc();var b=a.B,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+ui(a.screens))}f.Lx=function(){Yk(this);this.L("screenChange");this.j.update()};
function Tk(a){Zk(a);a.o=new Hk(a.C);a.o.subscribe("screenChange",y(a.Lx,a));Yk(a);a.A=si(fj("yt-remote-automatic-screen-cache")||[]);Zk(a);a.info("Initializing automatic screens: "+ui(a.A));a.j=new Lk(a.C,y(a.gc,a,!0));a.j.subscribe("screenChange",y(function(){this.L("onlineScreenChange")},a))}
function Vk(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=Yj(a.A,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.A.push(b),dj("yt-remote-automatic-screen-cache",E(a.A,qi)));Zk(a);a.B[b.uuid]=b.id;dj("yt-remote-device-id-map",a.B,31536E3);return b}function Zk(a){a.B=fj("yt-remote-device-id-map")||{}}Sk.prototype.dispose=Sk.prototype.dispose;function $k(a,b,c){U.call(this);this.N=c;this.H=a;this.o=b;this.A=null}A($k,U);function al(a,b){a.A=b;a.L("sessionScreen",a.A)}f=$k.prototype;f.Yb=function(a){this.ma()||(a&&this.warn(""+a),this.A=null,this.L("sessionScreen",null))};f.info=function(a){ki(this.N,a)};f.warn=function(a){ki(this.N,a)};f.Gs=function(){return null};
f.Um=function(a){var b=this.o;a?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,y(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),y(function(){this.warn("Failed to update receiver status for: "+b.friendlyName)},this))};f.P=function(){this.Um("");$k.K.P.call(this)};function bl(a,b){$k.call(this,a,b,"CastSession");this.j=null;this.C=0;this.B=null;this.F=y(this.zD,this);this.D=y(this.qC,this);this.C=L(y(function(){cl(this,null)},this),12E4)}A(bl,$k);f=bl.prototype;
f.Tm=function(a){if(this.j){if(this.j==a)return;this.warn("Overriding cast sesison with new session object");this.j.removeUpdateListener(this.F);this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.D)}this.j=a;this.j.addUpdateListener(this.F);this.j.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.D);this.B&&dl(this);el(this,"getMdxSessionStatus")};f.Xf=function(a){this.info("launchWithParams: "+pg(a));this.B=a;this.j&&dl(this)};
f.stop=function(){this.j?this.j.stop(y(function(){this.Yb()},this),y(function(){this.Yb(Error("Failed to stop receiver app."))},this)):this.Yb(Error("Stopping cast device witout session."))};f.Um=v;f.P=function(){this.info("disposeInternal");M(this.C);this.C=0;this.j&&(this.j.removeUpdateListener(this.F),this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.D));this.j=null;bl.K.P.call(this)};
function dl(a){var b=a.B.videoId||a.B.videoIds[a.B.index];b&&el(a,"flingVideo",{videoId:b,currentTime:a.B.currentTime||0});a.B=null}function el(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+pg(c));var d={};d.type=b;c&&(d.data=c);a.j?a.j.sendMessage("urn:x-cast:com.google.youtube.mdx",d,v,y(function(){this.warn("Failed to send message: "+b+".")},a)):a.warn("Sending yt message without session: "+pg(d))}
f.qC=function(a,b){if(!this.ma())if(b){var c=og(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+pg(c));switch(d){case "mdxSessionStatus":cl(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 cl(a,b){M(a.C);b?(a.info("onConnectedScreenId_: Received screenId: "+b),a.A&&a.A.id==b||Uk(a.H,a.o.label,b,a.o.friendlyName,y(function(a){a?al(this,a):this.Yb(Error("Unable to fetch screen."))},a),y(a.Yb,a))):a.Yb(Error("Waiting for session status timed out."))}f.Gs=function(){return this.j};f.zD=function(a){this.ma()||a||(this.warn("Cast session died."),this.Yb())};function fl(a,b){$k.call(this,a,b,"DialSession");this.C=this.G=null;this.I="";this.B=null;this.F=v;this.D=NaN;this.J=y(this.BD,this);this.j=v}A(fl,$k);f=fl.prototype;f.Tm=function(a){this.C=a;this.C.addUpdateListener(this.J)};f.Xf=function(a){this.B=a;this.F()};f.stop=function(){this.j();this.j=v;M(this.D);this.C?this.C.stop(y(this.Yb,this,null),y(this.Yb,this,"Failed to stop DIAL device.")):this.Yb()};
f.P=function(){this.j();this.j=v;M(this.D);this.C&&this.C.removeUpdateListener(this.J);this.C=null;fl.K.P.call(this)};function gl(a){a.j=a.H.Es(a.I,a.o.label,a.o.friendlyName,y(function(a){this.j=v;al(this,a)},a),y(function(a){this.j=v;this.Yb(a)},a))}f.BD=function(a){this.ma()||a||(this.warn("DIAL session died."),this.j(),this.j=v,this.Yb())};
function hl(a){var b={};b.pairingCode=a.I;if(a.B){var c=a.B.index||0,d=a.B.currentTime||0;b.v=a.B.videoId||a.B.videoIds[c];b.t=d}Gk()&&(b.env_useStageMdx=1);return Ue(b)}f.am=function(a){this.I=Tj();if(this.B){var b=new chrome.cast.DialLaunchResponse(!0,hl(this));a(b);gl(this)}else this.F=y(function(){M(this.D);this.F=v;this.D=NaN;var b=new chrome.cast.DialLaunchResponse(!0,hl(this));a(b);gl(this)},this),this.D=L(y(function(){this.F()},this),100)};
f.Py=function(a,b){Uk(this.H,this.G.receiver.label,a,this.o.friendlyName,y(function(a){a&&a.token?(al(this,a),b(new chrome.cast.DialLaunchResponse(!1))):this.am(b)},this),y(function(a){this.warn("Failed to get DIAL screen: "+a);this.am(b)},this))};function il(a,b){$k.call(this,a,b,"ManualSession");this.j=L(y(this.Xf,this,null),150)}A(il,$k);il.prototype.stop=function(){this.Yb()};il.prototype.Tm=v;il.prototype.Xf=function(){M(this.j);this.j=NaN;var a=Yj(this.H.gc(),this.o.label);a?al(this,a):this.Yb(Error("No such screen"))};il.prototype.P=function(){M(this.j);this.j=NaN;il.K.P.call(this)};function jl(a){U.call(this);this.o=a;this.j=null;this.C=!1;this.A=[];this.B=y(this.fB,this)}A(jl,U);f=jl.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,y(this.Vq,this),y(this.iB,this),d,e);c.customDialLaunchCallback=y(this.hA,this);chrome.cast.initialize(c,y(function(){this.ma()||(chrome.cast.addReceiverActionListener(this.B),
gi(kl),this.o.subscribe("onlineScreenChange",y(this.Fs,this)),this.A=ll(this),chrome.cast.setCustomReceivers(this.A,v,y(function(a){this.Ya("Failed to set initial custom receivers: "+pg(a))},this)),this.L("yt-remote-cast2-availability-change",ml(this)),b(!0))},this),function(a){this.Ya("Failed to initialize API: "+pg(a));b(!1)})};
f.KC=function(a,b){nl("Setting connected screen ID: "+a+" -> "+b);if(this.j){var c=this.j.A;if(!a||c&&c.id!=a)nl("Unsetting old screen status: "+this.j.o.friendlyName),Ai(this.j),this.j=null}if(a&&b){if(!this.j){c=Yj(this.o.gc(),a);if(!c){nl("setConnectedScreenStatus: Unknown screen.");return}var d=ol(this,c);d||(nl("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.A.push(d),chrome.cast.setCustomReceivers(this.A,
v,y(function(a){this.Ya("Failed to set initial custom receivers: "+pg(a))},this)));nl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);pl(this,new il(this.o,d),!0)}this.j.Um(b)}else nl("setConnectedScreenStatus: no screen.")};function ol(a,b){return b?F(a.A,function(a){return oi(b,a.label)},a):null}f.LC=function(a){this.ma()?this.Ya("Setting connection data on disposed cast v2"):this.j?this.j.Xf(a):this.Ya("Setting connection data without a session")};
f.stopSession=function(){this.ma()?this.Ya("Stopping session on disposed cast v2"):this.j?(this.j.stop(),Ai(this.j),this.j=null):nl("Stopping non-existing session")};f.requestSession=function(){chrome.cast.requestSession(y(this.Vq,this),y(this.rB,this))};f.P=function(){this.o.qa("onlineScreenChange",y(this.Fs,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.B);ji(kl);Ai(this.j);jl.K.P.call(this)};function nl(a){ki("Controller",a)}f.Ya=function(a){ki("Controller",a)};
function kl(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)}function ml(a){return a.C||!!a.A.length||!!a.j}function pl(a,b,c){Ai(a.j);(a.j=b)?(c?a.L("yt-remote-cast2-receiver-resumed",b.o):a.L("yt-remote-cast2-receiver-selected",b.o),b.subscribe("sessionScreen",y(a.Wq,a,b)),b.A?a.L("yt-remote-cast2-session-change",b.A):c&&a.j.Xf(null)):a.L("yt-remote-cast2-session-change",null)}
f.Wq=function(a,b){this.j==a&&(b||pl(this,null),this.L("yt-remote-cast2-session-change",b))};
f.fB=function(a,b){if(!this.ma())if(a)switch(nl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.o.label!=a.label)nl("onReceiverAction_: Stopping active receiver: "+this.j.o.friendlyName),this.j.stop();else{nl("onReceiverAction_: Casting to active receiver.");this.j.A&&this.L("yt-remote-cast2-session-change",this.j.A);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:pl(this,new il(this.o,a));break;case chrome.cast.ReceiverType.DIAL:pl(this,
new fl(this.o,a));break;case chrome.cast.ReceiverType.CAST:pl(this,new bl(this.o,a));break;default:this.Ya("Unknown receiver type: "+a.receiverType);return}break;case chrome.cast.ReceiverAction.STOP:this.j&&this.j.o.label==a.label?this.j.stop():this.Ya("Stopping receiver w/o session: "+a.friendlyName)}else this.Ya("onReceiverAction_ called without receiver.")};
f.hA=function(a){if(this.ma())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.Ya("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.j?this.j.o:null;if(!c||c.label!=b.label)return this.Ya("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.A)return nl("Reselecting dial screen."),
this.L("yt-remote-cast2-session-change",this.j.A),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.Ya('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);pl(this,new fl(this.o,b))}b=this.j;b.G=a;return b.G.appState==chrome.cast.DialAppState.RUNNING?new Promise(y(b.Py,b,(b.G.extraData||{}).screenId||null)):new Promise(y(b.am,b))};
f.Vq=function(a){if(!this.ma()){nl("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)nl("Got resumed cast session before resumed mdx connection."),pl(this,new bl(this.o,b),!0);else{this.Ya("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.j.o,d=Yj(this.o.gc(),c.label);d&&oi(d,b.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType==
chrome.cast.ReceiverType.CAST&&(nl("onSessionEstablished_: manual to cast session change "+b.friendlyName),Ai(this.j),this.j=new bl(this.o,b),this.j.subscribe("sessionScreen",y(this.Wq,this,this.j)),this.j.Xf(null));this.j.Tm(a)}}};f.AD=function(){return this.j?this.j.Gs():null};f.rB=function(a){this.ma()||(this.Ya("Failed to estabilish a session: "+pg(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&pl(this,null))};
f.iB=function(a){nl("Receiver availability updated: "+a);if(!this.ma()){var b=ml(this);this.C=a==chrome.cast.ReceiverAvailability.AVAILABLE;ml(this)!=b&&this.L("yt-remote-cast2-availability-change",ml(this))}};
function ll(a){var b=a.o.Ds(),c=a.j&&a.j.o;a=E(b,function(a){c&&oi(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,g=ol(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.Fs=function(){if(!this.ma()){var a=ml(this);this.A=ll(this);nl("Updating custom receivers: "+pg(this.A));chrome.cast.setCustomReceivers(this.A,v,y(function(){this.Ya("Failed to set custom receivers.")},this));var b=ml(this);b!=a&&this.L("yt-remote-cast2-availability-change",b)}};jl.prototype.setLaunchParams=jl.prototype.LC;jl.prototype.setConnectedScreenStatus=jl.prototype.KC;jl.prototype.stopSession=jl.prototype.stopSession;jl.prototype.getCastSession=jl.prototype.AD;
jl.prototype.requestSession=jl.prototype.requestSession;jl.prototype.init=jl.prototype.init;jl.prototype.dispose=jl.prototype.dispose;function ql(a,b,c){rl()?tl(b)&&(ul(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?vl(a,c):nj(function(b,e){b?vl(a,c):(wl("Failed to load cast API: "+e),xl(!1),ul(!1),gj("yt-remote-cast-available"),gj("yt-remote-cast-receiver"),yl(),c(!1))})):sl("Cannot initialize because not running Chrome")}function yl(){sl("dispose");pj();var a=zl();a&&a.dispose();Al=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);Bl(!1);Li(Cl);Cl.length=0}function Dl(){return!!fj("yt-remote-cast-installed")}
function El(){var a=fj("yt-remote-cast-receiver");return a?a.friendlyName:null}function Fl(){return Dl()?zl()?Al.getCastSession():(wl("getCastSelector: Cast is not initialized."),null):(wl("getCastSelector: Cast API is not installed!"),null)}
function Gl(){Dl()?zl()?Hl()?(sl("Requesting cast selector."),Al.requestSession()):(sl("Wait for cast API to be ready to request the session."),Cl.push(Ji("yt-remote-cast2-api-ready",Gl))):wl("requestCastSelector: Cast is not initialized."):wl("requestCastSelector: Cast API is not installed!")}function Il(a){Hl()?zl().setLaunchParams(a):wl("setLaunchParams called before ready.")}
function Jl(){var a=Kl();Hl()?zl().setConnectedScreenStatus(a,"YouTube TV"):wl("setConnectedScreenStatus called before ready.")}var Al=null;function rl(){var a;a=0<=Uc.search(/\ (CrMo|Chrome|CriOS)\//);return $h||a}function Ll(a,b){Al.init(a,b)}
function tl(a){var b=!1;if(!Al){var c=t("yt.mdx.remote.cloudview.instance_");c||(c=new jl(a),c.subscribe("yt-remote-cast2-availability-change",function(a){dj("yt-remote-cast-available",a);Mi("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){sl("onReceiverSelected: "+a.friendlyName);dj("yt-remote-cast-receiver",a);Mi("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){sl("onReceiverResumed: "+a.friendlyName);
dj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){sl("onSessionChange: "+ti(a));a||gj("yt-remote-cast-receiver");Mi("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);Al=c}sl("cloudview.createSingleton_: "+b);return b}function zl(){Al||(Al=t("yt.mdx.remote.cloudview.instance_"));return Al}
function vl(a,b){xl(!0);ul(!1);Ll(a,function(a){a?(Bl(!0),Mi("yt-remote-cast2-api-ready")):(wl("Failed to initialize cast API."),xl(!1),gj("yt-remote-cast-available"),gj("yt-remote-cast-receiver"),yl());b(a)})}function sl(a){ki("cloudview",a)}function wl(a){ki("cloudview",a)}function xl(a){sl("setCastInstalled_ "+a);dj("yt-remote-cast-installed",a)}function Hl(){return!!t("yt.mdx.remote.cloudview.apiReady_")}function Bl(a){sl("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)}
function ul(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)}var Cl=[];function Ml(a,b){this.action=a;this.params=b||null};function Nl(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Ol(a){ki("CAST",a)}function Pl(a){var b=Ql();b&&b.logMessage&&b.logMessage(a)}function Rl(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Sl.length;)Sl.shift()()}
function Tl(){if(!t("yt.mdx.remote.castv2_")&&!Ul&&(nb(Vl)&&vb(Vl,Dk()),Nl())){var a=Ql();a?(a.removeReceiverListener("YouTube",Wl),a.addReceiverListener("YouTube",Wl),Ol("API initialized in the other binary")):(a=new cast.Api,Xl(a),a.addReceiverListener("YouTube",Wl),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){L(function(){window.location.reload(!0)},1E3)}),gi(Pl),Ol("API initialized"));Ul=!0}}
function Yl(){var a=Ql();a&&(Ol("API disposed"),ji(Pl),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(v),a.removeReceiverListener("YouTube",Wl),Xl(null));Ul=!1;Sl=null;(a=Hh(window,"message",Rl,!1))&&Jh(a)}function Zl(a){var b=kb(Vl,function(b){return b.id==a.id});0<=b&&(Vl[b]={id:a.id,name:a.name,activityId:a.j,status:a.status})}
function Wl(a){a.length&&Ol("Updating receivers: "+pg(a));$l(a);Mi("yt-remote-cast-device-list-update");D(am(),function(a){bm(a.id)});D(a,function(a){if(a.isTabProjected){var c=cm(a.id);Ol("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");L(function(){Mi("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function dm(a,b){Ol("Updating "+a+" activity status: "+pg(b));var c=cm(a);c?(b.activityId&&(c.j=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.j=""),Zl(c),Mi("yt-remote-cast-device-status-update",c)):Ol("Device not found")}function am(){Tl();return Vj(Vl)}function $l(a){a=E(a,function(a){var c={id:a.id,name:Ha(a.name)};if(a=cm(a.id))c.activityId=a.j,c.status=a.status;return c});ob(Vl);vb(Vl,a)}
function cm(a){var b=am();return F(b,function(b){return b.id==a})||null}function bm(a){var b=cm(a),c=Ql();c&&b&&b.j&&c.getActivityStatus(b.j,function(b){"error"==b.status&&(b.status="stopped");dm(a,b)})}function em(a){Tl();var b=cm(a),c=Ql();c&&b&&b.j?(Ol("Stopping cast activity"),c.stopActivity(b.j,pa(dm,a))):Ol("Dropping cast activity stop")}function Ql(){return t("yt.mdx.remote.castapi.api_")}function Xl(a){q("yt.mdx.remote.castapi.api_",a,void 0)}
var Ul=!1,Sl=null,Vl=t("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Vl,void 0);function fm(){};function gm(){this.j=z()}new gm;gm.prototype.set=function(a){this.j=a};gm.prototype.reset=function(){this.set(z())};gm.prototype.get=function(){return this.j};function hm(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.o=!1;this.Er=!0}hm.prototype.stopPropagation=function(){this.o=!0};hm.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Er=!1};function im(a){a.stopPropagation()};var jm=!dd||td(9),km=dd&&!sd("9");!fd||sd("528");ed&&sd("1.9b")||dd&&sd("8")||cd&&sd("9.5")||fd&&sd("528");ed&&!sd("8")||dd&&sd("9");var lm="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function mm(a,b){hm.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.j=this.state=null;a&&this.init(a,b)}A(mm,hm);
mm.prototype.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d?ed&&(Dg(d,"nodeName")||(d=null)):"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:
0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.j=a;a.defaultPrevented&&this.preventDefault()};mm.prototype.stopPropagation=function(){mm.K.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
mm.prototype.preventDefault=function(){mm.K.preventDefault.call(this);var a=this.j;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,km)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};mm.prototype.F=function(){return this.j};var nm="closure_listenable_"+(1E6*Math.random()|0);function om(a){return!(!a||!a[nm])}var pm=0;function qm(a,b,c,d,e){this.cf=a;this.j=null;this.src=b;this.type=c;this.zf=!!d;this.Yc=e;this.key=++pm;this.gg=this.mi=!1}function rm(a){a.gg=!0;a.cf=null;a.j=null;a.src=null;a.Yc=null};function sm(a){this.src=a;this.j={};this.o=0}sm.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.j[g];a||(a=this.j[g]=[],this.o++);var h=tm(a,b,d,e);-1<h?(b=a[h],c||(b.mi=!1)):(b=new qm(b,this.src,g,!!d,e),b.mi=c,a.push(b));return b};sm.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.j))return!1;var e=this.j[a];b=tm(e,b,c,d);return-1<b?(rm(e[b]),rb(e,b),0==e.length&&(delete this.j[a],this.o--),!0):!1};
function um(a,b){var c=b.type;if(!(c in a.j))return!1;var d=qb(a.j[c],b);d&&(rm(b),0==a.j[c].length&&(delete a.j[c],a.o--));return d}sm.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,rm(d[e]);delete this.j[c];this.o--}return b};function vm(a,b,c,d,e){a=a.j[b.toString()];b=-1;a&&(b=tm(a,c,d,e));return-1<b?a[b]:null}
function tm(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.gg&&g.cf==b&&g.zf==!!c&&g.Yc==d)return e}return-1};var wm="closure_lm_"+(1E6*Math.random()|0),xm={},ym=0;function zm(a,b,c,d,e){if(ea(b)){for(var g=0;g<b.length;g++)zm(a,b[g],c,d,e);return null}c=Am(c);return om(a)?a.M(b,c,d,e):Bm(a,b,c,!1,d,e)}function Bm(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=Cm(a);k||(a[wm]=k=new sm(a));c=k.add(b,c,d,e,g);if(c.j)return c;d=Dm();c.j=d;d.src=a;d.cf=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(Em(b.toString()),d);ym++;return c}
function Dm(){var a=Fm,b=jm?function(c){return a.call(b.src,b.cf,c)}:function(c){c=a.call(b.src,b.cf,c);if(!c)return c};return b}function Gm(a,b,c,d,e){if(ea(b)){for(var g=0;g<b.length;g++)Gm(a,b[g],c,d,e);return null}c=Am(c);return om(a)?a.xd.add(String(b),c,!0,d,e):Bm(a,b,c,!0,d,e)}function Hm(a,b,c,d,e){if(ea(b))for(var g=0;g<b.length;g++)Hm(a,b[g],c,d,e);else c=Am(c),om(a)?a.Ka(b,c,d,e):a&&(a=Cm(a))&&(b=vm(a,b,c,!!d,e))&&Im(b)}
function Im(a){if(ga(a)||!a||a.gg)return!1;var b=a.src;if(om(b))return um(b.xd,a);var c=a.type,d=a.j;b.removeEventListener?b.removeEventListener(c,d,a.zf):b.detachEvent&&b.detachEvent(Em(c),d);ym--;(c=Cm(b))?(um(c,a),0==c.o&&(c.src=null,b[wm]=null)):rm(a);return!0}function Em(a){return a in xm?xm[a]:xm[a]="on"+a}function Jm(a,b,c,d){var e=!0;if(a=Cm(a))if(b=a.j[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.zf==c&&!g.gg&&(g=Km(g,d),e=e&&!1!==g)}return e}
function Km(a,b){var c=a.cf,d=a.Yc||a.src;a.mi&&Im(a);return c.call(d,b)}
function Fm(a,b){if(a.gg)return!0;if(!jm){var c=b||t("window.event"),d=new mm(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}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.o&&0<=k;k--){d.currentTarget=c[k];var l=Jm(c[k],g,!0,d),e=e&&l}for(k=0;!d.o&&k<c.length;k++)d.currentTarget=c[k],l=Jm(c[k],g,!1,d),e=e&&l}return e}return Km(a,new mm(b,this))}
function Cm(a){a=a[wm];return a instanceof sm?a:null}var Lm="__closure_events_fn_"+(1E9*Math.random()>>>0);function Am(a){if(ha(a))return a;a[Lm]||(a[Lm]=function(b){return a.handleEvent(b)});return a[Lm]};function V(){Q.call(this);this.xd=new sm(this);this.va=this;this.aa=null}A(V,Q);V.prototype[nm]=!0;f=V.prototype;f.Mj=function(a){this.aa=a};f.addEventListener=function(a,b,c,d){zm(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Hm(this,a,b,c,d)};
f.Y=function(a){var b,c=this.aa;if(c){b=[];for(var d=1;c;c=c.aa)b.push(c),++d}c=this.va;d=a.type||a;if(x(a))a=new hm(a,c);else if(a instanceof hm)a.target=a.target||c;else{var e=a;a=new hm(d,c);bc(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.o&&0<=h;h--)g=a.currentTarget=b[h],e=Mm(g,d,!0,a)&&e;a.o||(g=a.currentTarget=c,e=Mm(g,d,!0,a)&&e,a.o||(e=Mm(g,d,!1,a)&&e));if(b)for(h=0;!a.o&&h<b.length;h++)g=a.currentTarget=b[h],e=Mm(g,d,!1,a)&&e;return e};
f.P=function(){V.K.P.call(this);this.removeAllListeners();this.aa=null};f.M=function(a,b,c,d){return this.xd.add(String(a),b,!1,c,d)};f.Ka=function(a,b,c,d){return this.xd.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.xd?this.xd.removeAll(a):0};function Mm(a,b,c,d){b=a.xd.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.gg&&h.zf==c){var k=h.cf,l=h.Yc||h.src;h.mi&&um(a.xd,h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.Er};function Nm(a,b){this.o=new qg(a);this.j=b?og:ng}Nm.prototype.stringify=function(a){return this.o.H(a)};Nm.prototype.parse=function(a){return this.j(a)};function Om(a){this.o=0;this.A=a||100;this.j=[]}f=Om.prototype;f.add=function(a){var b=this.j[this.o];this.j[this.o]=a;this.o=(this.o+1)%this.A;return b};f.get=function(a){a=Pm(this,a);return this.j[a]};f.set=function(a,b){a=Pm(this,a);this.j[a]=b};f.Wa=function(){return this.j.length};f.isEmpty=function(){return 0==this.j.length};f.clear=function(){this.o=this.j.length=0};f.Qa=function(){for(var a=this.Wa(),b=this.Wa(),c=[],a=this.Wa()-a;a<b;a++)c.push(this.get(a));return c};
f.Na=function(){for(var a=[],b=this.Wa(),c=0;c<b;c++)a[c]=c;return a};f.Cf=function(a){for(var b=this.Wa(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Pm(a,b){if(b>=a.j.length)throw Error("Out of bounds exception");return a.j.length<a.A?b:(a.o+Number(b))%a.A};function Qm(a,b,c){this.C=c;this.A=a;this.B=b;this.o=0;this.j=null}Qm.prototype.get=function(){var a;0<this.o?(this.o--,a=this.j,this.j=a.next,a.next=null):a=this.A();return a};Qm.prototype.put=function(a){this.B(a);this.o<this.C&&(this.o++,a.next=this.j,this.j=a)};function Rm(a){m.setTimeout(function(){throw a;},0)}var Sm;
function Tm(){var a=m.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Xc("Presto")&&(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=y(function(a){if(("*"==d||a.origin==d)&&a.data==
c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!Zc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.xo;c.xo=null;a()}};return function(a){d.next={xo: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 Um(){this.o=this.j=null}var Wm=new Qm(function(){return new Vm},function(a){a.reset()},100);Um.prototype.add=function(a,b){var c=Wm.get();c.set(a,b);this.o?this.o.next=c:this.j=c;this.o=c};Um.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.o=null),a.next=null);return a};function Vm(){this.next=this.scope=this.j=null}Vm.prototype.set=function(a,b){this.j=a;this.scope=b;this.next=null};Vm.prototype.reset=function(){this.next=this.scope=this.j=null};function Xm(a,b){Ym||Zm();$m||(Ym(),$m=!0);an.add(a,b)}var Ym;function Zm(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Ym=function(){a.then(bn)}}else Ym=function(){var a=bn;!ha(m.setImmediate)||m.Window&&m.Window.prototype&&m.Window.prototype.setImmediate==m.setImmediate?(Sm||(Sm=Tm()),Sm(a)):m.setImmediate(a)}}var $m=!1,an=new Um;function bn(){for(var a=null;a=an.remove();){try{a.j.call(a.scope)}catch(b){Rm(b)}Wm.put(a)}$m=!1};function cn(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function dn(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function en(a,b){this.j=0;this.F=void 0;this.B=this.o=this.A=null;this.C=this.D=!1;if(a==fn)gn(this,2,b);else try{var c=this;a.call(b,function(a){gn(c,2,a)},function(a){gn(c,3,a)})}catch(d){gn(this,3,d)}}function hn(){this.next=this.context=this.o=this.A=this.j=null;this.B=!1}hn.prototype.reset=function(){this.context=this.o=this.A=this.j=null;this.B=!1};var jn=new Qm(function(){return new hn},function(a){a.reset()},100);function kn(a,b,c){var d=jn.get();d.A=a;d.o=b;d.context=c;return d}
function fn(){}en.prototype.then=function(a,b,c){return ln(this,ha(a)?a:null,ha(b)?b:null,c)};cn(en);en.prototype.cancel=function(a){0==this.j&&Xm(function(){var b=new mn(a);nn(this,b)},this)};function nn(a,b){if(0==a.j)if(a.A){var c=a.A;if(c.o){for(var d=0,e=null,g=null,h=c.o;h&&(h.B||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(g=h);e&&(0==c.j&&1==d?nn(c,b):(g?(d=g,d.next==c.B&&(c.B=d),d.next=d.next.next):on(c),pn(c,e,3,b)))}a.A=null}else gn(a,3,b)}
function qn(a,b){a.o||2!=a.j&&3!=a.j||rn(a);a.B?a.B.next=b:a.o=b;a.B=b}function ln(a,b,c,d){var e=kn(null,null,null);e.j=new en(function(a,h){e.A=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.o=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof mn?h(b):a(e)}catch(p){h(p)}}:h});e.j.A=a;qn(a,e);return e.j}en.prototype.G=function(a){this.j=0;gn(this,2,a)};en.prototype.H=function(a){this.j=0;gn(this,3,a)};
function gn(a,b,c){if(0==a.j){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(dn(c)){a.j=1;b=c;c=a.G;var d=a.H;b instanceof en?qn(b,kn(c||v,d||null,a)):b.then(c,d,a);return}if(ia(c))try{if(d=c.then,ha(d)){sn(a,c,d);return}}catch(e){b=3,c=e}}a.F=c;a.j=b;a.A=null;rn(a);3!=b||c instanceof mn||tn(a,c)}}function sn(a,b,c){function d(b){g||(g=!0,a.H(b))}function e(b){g||(g=!0,a.G(b))}a.j=1;var g=!1;try{c.call(b,e,d)}catch(h){d(h)}}function rn(a){a.D||(a.D=!0,Xm(a.I,a))}
function on(a){var b=null;a.o&&(b=a.o,a.o=b.next,b.next=null);a.o||(a.B=null);return b}en.prototype.I=function(){for(var a=null;a=on(this);)pn(this,a,this.j,this.F);this.D=!1};function pn(a,b,c,d){b.j&&(b.j.A=null);if(2==c)b.A.call(b.context,d);else if(null!=b.o){if(!b.B)for(;a&&a.C;a=a.A)a.C=!1;b.o.call(b.context,d)}jn.put(b)}function tn(a,b){a.C=!0;Xm(function(){a.C&&un.call(null,b)})}var un=Rm;function mn(a){ra.call(this,a)}A(mn,ra);mn.prototype.name="cancel";function vn(a,b){V.call(this);this.j=a||1;this.o=b||m;this.A=y(this.Gw,this);this.B=z()}A(vn,V);f=vn.prototype;f.enabled=!1;f.xc=null;function wn(a,b){a.j=b;a.xc&&a.enabled?(a.stop(),a.start()):a.xc&&a.stop()}f.Gw=function(){if(this.enabled){var a=z()-this.B;0<a&&a<.8*this.j?this.xc=this.o.setTimeout(this.A,this.j-a):(this.xc&&(this.o.clearTimeout(this.xc),this.xc=null),this.Y("tick"),this.enabled&&(this.xc=this.o.setTimeout(this.A,this.j),this.B=z()))}};
f.start=function(){this.enabled=!0;this.xc||(this.xc=this.o.setTimeout(this.A,this.j),this.B=z())};f.stop=function(){this.enabled=!1;this.xc&&(this.o.clearTimeout(this.xc),this.xc=null)};f.P=function(){vn.K.P.call(this);this.stop();delete this.o};function xn(a,b,c){if(ha(a))c&&(a=y(a,c));else if(a&&"function"==typeof a.handleEvent)a=y(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function yn(a){m.clearTimeout(a)};function zn(a,b,c){Q.call(this);this.B=a;this.A=b;this.o=c;this.j=y(this.CB,this)}A(zn,Q);f=zn.prototype;f.kg=!1;f.nh=0;f.Se=null;f.Oi=function(){this.Se||this.nh?this.kg=!0:An(this)};f.stop=function(){this.Se&&(yn(this.Se),this.Se=null,this.kg=!1)};f.pause=function(){this.nh++};f.resume=function(){this.nh--;this.nh||!this.kg||this.Se||(this.kg=!1,An(this))};f.P=function(){zn.K.P.call(this);this.stop()};f.CB=function(){this.Se=null;this.kg&&!this.nh&&(this.kg=!1,An(this))};
function An(a){a.Se=xn(a.j,a.A);a.B.call(a.o)};function Bn(a){Q.call(this);this.B=a;this.o={}}A(Bn,Q);var Cn=[];f=Bn.prototype;f.M=function(a,b,c,d){return Dn(this,a,b,c,d)};function En(a,b,c,d,e){Dn(a,b,c,d,!1,e)}function Dn(a,b,c,d,e,g){ea(c)||(c&&(Cn[0]=c.toString()),c=Cn);for(var h=0;h<c.length;h++){var k=zm(b,c[h],d||a.handleEvent,e||!1,g||a.B||a);if(!k)break;a.o[k.key]=k}return a}function Fn(a,b,c,d){Gn(a,b,c,d,void 0)}function Hn(a,b,c,d,e){Gn(a,b,c,d,!1,e)}
function Gn(a,b,c,d,e,g){if(ea(c))for(var h=0;h<c.length;h++)Gn(a,b,c[h],d,e,g);else(b=Gm(b,c,d||a.handleEvent,e,g||a.B||a))&&(a.o[b.key]=b)}f.Ka=function(a,b,c,d,e){if(ea(b))for(var g=0;g<b.length;g++)this.Ka(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.B||this,c=Am(c),d=!!d,b=om(a)?vm(a.xd,String(b),c,d,e):a?(a=Cm(a))?vm(a,b,c,d,e):null:null,b&&(Im(b),delete this.o[b.key]);return this};f.removeAll=function(){Jb(this.o,Im);this.o={}};f.P=function(){Bn.K.P.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function In(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 Jn(){}Jn.prototype.j=null;function Kn(a){var b;(b=a.j)||(b={},Ln(a)&&(b[0]=!0,b[1]=!0),b=a.j=b);return b};var Mn;function Nn(){}A(Nn,Jn);function On(a){return(a=Ln(a))?new ActiveXObject(a):new XMLHttpRequest}function Ln(a){if(!a.o&&"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.o=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.o}Mn=new Nn;function Pn(a,b,c,d,e){this.j=a;this.A=c;this.F=d;this.D=e||1;this.Cb=45E3;this.B=new Bn(this);this.o=new vn;wn(this.o,250)}f=Pn.prototype;f.Te=null;f.Oc=!1;f.og=null;f.tn=null;f.rh=null;f.Nf=null;f.Rd=null;f.ke=null;f.ef=null;f.zb=null;f.Eh=0;f.Qc=null;f.dk=null;f.Ue=null;f.Sg=-1;f.Nr=!0;f.Le=!1;f.Hl=0;f.zj=null;var Qn={},Rn={};f=Pn.prototype;f.setTimeout=function(a){this.Cb=a};function Sn(a,b,c){a.Nf=1;a.Rd=vf(b.clone());a.ef=c;a.C=!0;Tn(a,null)}
function Un(a,b,c,d,e){a.Nf=1;a.Rd=vf(b.clone());a.ef=null;a.C=c;e&&(a.Nr=!1);Tn(a,d)}function Tn(a,b){a.rh=z();Vn(a);a.ke=a.Rd.clone();sf(a.ke,"t",a.D);a.Eh=0;a.zb=a.j.kl(a.j.zh()?b:null);0<a.Hl&&(a.zj=new zn(y(a.ws,a,a.zb),a.Hl));a.B.M(a.zb,"readystatechange",a.zC);var c=a.Te?Zb(a.Te):{};a.ef?(a.dk="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.zb.send(a.ke,a.dk,a.ef,c)):(a.dk="GET",a.Nr&&!fd&&(c.Connection="close"),a.zb.send(a.ke,a.dk,null,c));a.j.Lc(1)}
f.zC=function(a){a=a.target;var b=this.zj;b&&3==Wn(a)?b.Oi():this.ws(a)};
f.ws=function(a){try{if(a==this.zb)a:{var b=Wn(this.zb),c=this.zb.o,d=this.zb.getStatus();if(dd&&!td(10)||fd&&!sd("420+")){if(4>b)break a}else if(3>b||3==b&&!cd&&!Xn(this.zb))break a;this.Le||4!=b||7==c||(8==c||0>=d?this.j.Lc(3):this.j.Lc(2));Yn(this);var e=this.zb.getStatus();this.Sg=e;var g=Xn(this.zb);(this.Oc=200==e)?(4==b&&Zn(this),this.C?($n(this,b,g),cd&&this.Oc&&3==b&&(this.B.M(this.o,"tick",this.uC),this.o.start())):ao(this,g),this.Oc&&!this.Le&&(4==b?this.j.sj(this):(this.Oc=!1,Vn(this)))):
(this.Ue=400==e&&0<g.indexOf("Unknown SID")?3:0,bo(),Zn(this),co(this))}}catch(h){this.zb&&Xn(this.zb)}finally{}};function $n(a,b,c){for(var d=!0;!a.Le&&a.Eh<c.length;){var e=eo(a,c);if(e==Rn){4==b&&(a.Ue=4,bo(),d=!1);break}else if(e==Qn){a.Ue=4;bo();d=!1;break}else ao(a,e)}4==b&&0==c.length&&(a.Ue=1,bo(),d=!1);a.Oc=a.Oc&&d;d||(Zn(a),co(a))}f.uC=function(){var a=Wn(this.zb),b=Xn(this.zb);this.Eh<b.length&&(Yn(this),$n(this,a,b),this.Oc&&4!=a&&Vn(this))};
function eo(a,b){var c=a.Eh,d=b.indexOf("\n",c);if(-1==d)return Rn;c=Number(b.substring(c,d));if(isNaN(c))return Qn;d+=1;if(d+c>b.length)return Rn;var e=b.substr(d,c);a.Eh=d+c;return e}
function fo(a,b){a.rh=z();Vn(a);var c=b?window.location.hostname:"";a.ke=a.Rd.clone();K(a.ke,"DOMAIN",c);K(a.ke,"t",a.D);try{a.Qc=new ActiveXObject("htmlfile")}catch(d){Zn(a);a.Ue=7;bo();co(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.Qc.open();a.Qc.write(e);a.Qc.close();a.Qc.parentWindow.m=y(a.MB,a);a.Qc.parentWindow.d=y(a.lr,a,!0);a.Qc.parentWindow.rpcClose=y(a.lr,a,!1);c=a.Qc.createElement("DIV");a.Qc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.ke+'"></iframe>';a.j.Lc(1)}f.MB=function(a){go(y(this.LB,this,a),0)};f.LB=function(a){this.Le||(Yn(this),ao(this,a),Vn(this))};f.lr=function(a){go(y(this.KB,this,a),0)};f.KB=function(a){this.Le||(Zn(this),this.Oc=a,this.j.sj(this),this.j.Lc(4))};f.cancel=function(){this.Le=!0;Zn(this)};function Vn(a){a.tn=z()+a.Cb;ho(a,a.Cb)}function ho(a,b){if(null!=a.og)throw Error("WatchDog timer not null");a.og=go(y(a.lC,a),b)}
function Yn(a){a.og&&(m.clearTimeout(a.og),a.og=null)}f.lC=function(){this.og=null;var a=z();0<=a-this.tn?(2!=this.Nf&&this.j.Lc(3),Zn(this),this.Ue=2,bo(),co(this)):ho(this,this.tn-a)};function co(a){a.j.ep()||a.Le||a.j.sj(a)}function Zn(a){Yn(a);Ai(a.zj);a.zj=null;a.o.stop();a.B.removeAll();if(a.zb){var b=a.zb;a.zb=null;b.abort();b.dispose()}a.Qc&&(a.Qc=null)}function ao(a,b){try{a.j.Uq(a,b),a.j.Lc(4)}catch(c){}};function io(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;jo(a,b,function(e){e?c(!0):m.setTimeout(function(){io(a,b,c,d,g)},g)})}}function jo(a,b,c){var d=new Image;d.onload=function(){try{ko(d),c(!0)}catch(a){}};d.onerror=function(){try{ko(d),c(!1)}catch(a){}};d.onabort=function(){try{ko(d),c(!1)}catch(a){}};d.ontimeout=function(){try{ko(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function ko(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function lo(a){this.j=a;this.o=new Nm(null,!0)}f=lo.prototype;f.El=null;f.kc=null;f.Aj=!1;f.fp=null;f.Ei=null;f.Fl=null;f.Gl=null;f.yc=null;f.yd=-1;f.Rg=null;f.Eg=null;f.connect=function(a){this.Gl=a;a=mo(this.j,null,this.Gl);bo();this.fp=z();var b=this.j.G;null!=b?(this.Rg=b[0],(this.Eg=b[1])?(this.yc=1,no(this)):(this.yc=2,oo(this))):(sf(a,"MODE","init"),this.kc=new Pn(this,0,void 0,void 0,void 0),this.kc.Te=this.El,Un(this.kc,a,!1,null,!0),this.yc=0)};
function no(a){var b=mo(a.j,a.Eg,"/mail/images/cleardot.gif");vf(b);io(b.toString(),5E3,y(a.Zv,a),3,2E3);a.Lc(1)}f.Zv=function(a){if(a)this.yc=2,oo(this);else{bo();var b=this.j;b.Hc=b.Sd.yd;po(b,9)}a&&this.Lc(2)};
function oo(a){var b=a.j.H;if(null!=b)bo(),b?(bo(),qo(a.j,a,!1)):(bo(),qo(a.j,a,!0));else if(a.kc=new Pn(a,0,void 0,void 0,void 0),a.kc.Te=a.El,b=a.j,b=mo(b,b.zh()?a.Rg:null,a.Gl),bo(),!dd||td(10))sf(b,"TYPE","xmlhttp"),Un(a.kc,b,!1,a.Rg,!1);else{sf(b,"TYPE","html");var c=a.kc;a=Boolean(a.Rg);c.Nf=3;c.Rd=vf(b.clone());fo(c,a)}}f.kl=function(a){return this.j.kl(a)};f.abort=function(){this.kc&&(this.kc.cancel(),this.kc=null);this.yd=-1};f.ep=function(){return!1};
f.Uq=function(a,b){this.yd=a.Sg;if(0==this.yc)if(b){try{var c=this.o.parse(b)}catch(d){c=this.j;c.Hc=this.yd;po(c,2);return}this.Rg=c[0];this.Eg=c[1]}else c=this.j,c.Hc=this.yd,po(c,2);else if(2==this.yc)if(this.Aj)bo(),this.Fl=z();else if("11111"==b){if(bo(),this.Aj=!0,this.Ei=z(),c=this.Ei-this.fp,!dd||td(10)||500>c)this.yd=200,this.kc.cancel(),bo(),qo(this.j,this,!0)}else bo(),this.Ei=this.Fl=z(),this.Aj=!1};
f.sj=function(){this.yd=this.kc.Sg;if(this.kc.Oc)0==this.yc?this.Eg?(this.yc=1,no(this)):(this.yc=2,oo(this)):2==this.yc&&(a=!1,(a=!dd||td(10)?this.Aj:200>this.Fl-this.Ei?!1:!0)?(bo(),qo(this.j,this,!0)):(bo(),qo(this.j,this,!1)));else{0==this.yc?bo():2==this.yc&&bo();var a=this.j;a.Hc=this.yd;po(a,2)}};f.zh=function(){return this.j.zh()};f.isActive=function(){return this.j.isActive()};f.Lc=function(a){this.j.Lc(a)};function ro(a){V.call(this);this.headers=new xe;this.N=a||null;this.A=!1;this.J=this.j=null;this.U=this.G="";this.o=0;this.D="";this.B=this.T=this.F=this.O=!1;this.C=0;this.H=null;this.W="";this.I=this.R=!1}A(ro,V);var so=/^https?$/i,to=["POST","PUT"];function uo(a,b){a.C=Math.max(0,b)}f=ro.prototype;
f.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.G+"; newUri="+a);b=b?b.toUpperCase():"GET";this.G=a;this.D="";this.o=0;this.U=b;this.O=!1;this.A=!0;this.j=this.N?On(this.N):On(Mn);this.J=this.N?Kn(this.N):Kn(Mn);this.j.onreadystatechange=y(this.Qq,this);try{fm(vo(this,"Opening Xhr")),this.T=!0,this.j.open(b,String(a),!0),this.T=!1}catch(e){fm(vo(this,"Error opening Xhr: "+e.message));wo(this,e);return}a=c||"";var g=this.headers.clone();
d&&Fe(d,function(a,b){g.set(b,a)});d=F(g.Na(),xo);c=m.FormData&&a instanceof m.FormData;!G(to,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.W&&(this.j.responseType=this.W);"withCredentials"in this.j&&(this.j.withCredentials=this.R);try{yo(this),0<this.C&&(this.I=zo(this.j),fm(vo(this,"Will abort after "+this.C+"ms if incomplete, xhr2 "+this.I)),this.I?(this.j.timeout=this.C,this.j.ontimeout=y(this.Cb,
this)):this.H=xn(this.Cb,this.C,this)),fm(vo(this,"Sending request")),this.F=!0,this.j.send(a),this.F=!1}catch(h){fm(vo(this,"Send error: "+h.message)),wo(this,h)}};function zo(a){return dd&&sd(9)&&ga(a.timeout)&&n(a.ontimeout)}function xo(a){return"content-type"==a.toLowerCase()}f.Cb=function(){"undefined"!=typeof aa&&this.j&&(this.D="Timed out after "+this.C+"ms, aborting",this.o=8,vo(this,this.D),this.Y("timeout"),this.abort(8))};
function wo(a,b){a.A=!1;a.j&&(a.B=!0,a.j.abort(),a.B=!1);a.D=b;a.o=5;Ao(a);Bo(a)}function Ao(a){a.O||(a.O=!0,a.Y("complete"),a.Y("error"))}f.abort=function(a){this.j&&this.A&&(vo(this,"Aborting"),this.A=!1,this.B=!0,this.j.abort(),this.B=!1,this.o=a||7,this.Y("complete"),this.Y("abort"),Bo(this))};f.P=function(){this.j&&(this.A&&(this.A=!1,this.B=!0,this.j.abort(),this.B=!1),Bo(this,!0));ro.K.P.call(this)};f.Qq=function(){this.ma()||(this.T||this.F||this.B?Co(this):this.eB())};f.eB=function(){Co(this)};
function Co(a){if(a.A&&"undefined"!=typeof aa)if(a.J[1]&&4==Wn(a)&&2==a.getStatus())vo(a,"Local request error detected and ignored");else if(a.F&&4==Wn(a))xn(a.Qq,0,a);else if(a.Y("readystatechange"),4==Wn(a)){vo(a,"Request complete");a.A=!1;try{var b=a.getStatus(),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var g=Ke(String(a.G))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!so.test(g?g.toLowerCase():"")}d=e}if(d)a.Y("complete"),a.Y("success");else{a.o=6;var k;try{k=2<Wn(a)?a.j.statusText:""}catch(l){k=""}a.D=k+" ["+a.getStatus()+"]";Ao(a)}}finally{Bo(a)}}}function Bo(a,b){if(a.j){yo(a);var c=a.j,d=a.J[0]?v:null;a.j=null;a.J=null;b||a.Y("ready");try{c.onreadystatechange=d}catch(e){}}}function yo(a){a.j&&a.I&&(a.j.ontimeout=null);ga(a.H)&&(yn(a.H),a.H=null)}f.isActive=function(){return!!this.j};function Wn(a){return a.j?a.j.readyState:0}
f.getStatus=function(){try{return 2<Wn(this)?this.j.status:-1}catch(a){return-1}};function Xn(a){try{return a.j?a.j.responseText:""}catch(b){return""}}function vo(a,b){return b+" ["+a.U+" "+a.G+" "+a.getStatus()+"]"};function Do(a,b,c){this.F=a||null;this.j=1;this.o=[];this.B=[];this.C=new Nm(null,!0);this.G=b||null;this.H=null!=c?c:null}function Eo(a,b){this.j=a;this.map=b;this.context=null}f=Do.prototype;f.Lg=null;f.Ub=null;f.sb=null;f.Dl=null;f.Gi=null;f.to=null;f.Pi=null;f.kh=0;f.nz=0;f.Ib=null;f.Xd=null;f.sd=null;f.Ne=null;f.Sd=null;f.ck=null;f.Vf=-1;f.Up=-1;f.Hc=-1;f.Mg=0;f.yf=0;f.Me=8;var Fo=new V;function Go(a){hm.call(this,"statevent",a)}A(Go,hm);
function Ho(a,b){hm.call(this,"timingevent",a);this.size=b}A(Ho,hm);function Io(a){hm.call(this,"serverreachability",a)}A(Io,hm);f=Do.prototype;f.connect=function(a,b,c,d,e){bo();this.Dl=b;this.Lg=c||{};d&&n(e)&&(this.Lg.OSID=d,this.Lg.OAID=e);this.Sd=new lo(this);this.Sd.El=null;this.Sd.o=this.C;this.Sd.connect(a)};
function Jo(a){Ko(a);if(3==a.j){var b=a.kh++,c=a.Gi.clone();K(c,"SID",a.A);K(c,"RID",b);K(c,"TYPE","terminate");Lo(a,c);b=new Pn(a,0,a.A,b,void 0);b.Nf=2;b.Rd=vf(c.clone());(new Image).src=b.Rd;b.rh=z();Vn(b)}Mo(a)}function Ko(a){a.Sd&&(a.Sd.abort(),a.Sd=null);a.sb&&(a.sb.cancel(),a.sb=null);a.sd&&(m.clearTimeout(a.sd),a.sd=null);No(a);a.Ub&&(a.Ub.cancel(),a.Ub=null);a.Xd&&(m.clearTimeout(a.Xd),a.Xd=null)}
function Oo(a,b){if(0==a.j)throw Error("Invalid operation: sending map when state is closed");a.o.push(new Eo(a.nz++,b));2!=a.j&&3!=a.j||Po(a)}f.ep=function(){return 0==this.j};function Po(a){a.Ub||a.Xd||(a.Xd=go(y(a.gr,a),0),a.Mg=0)}f.gr=function(a){this.Xd=null;Qo(this,a)};
function Qo(a,b){if(1==a.j){if(!b){a.kh=Math.floor(1E5*Math.random());var c=a.kh++,d=new Pn(a,0,"",c,void 0);d.Te=null;var e=Ro(a),g=a.Gi.clone();K(g,"RID",c);a.F&&K(g,"CVER",a.F);Lo(a,g);Sn(d,g,e);a.Ub=d;a.j=2}}else 3==a.j&&(b?So(a,b):0!=a.o.length&&(a.Ub||So(a)))}
function So(a,b){var c,d;b?6<a.Me?(a.o=a.B.concat(a.o),a.B.length=0,c=a.kh-1,d=Ro(a)):(c=b.F,d=b.ef):(c=a.kh++,d=Ro(a));var e=a.Gi.clone();K(e,"SID",a.A);K(e,"RID",c);K(e,"AID",a.Vf);Lo(a,e);c=new Pn(a,0,a.A,c,a.Mg+1);c.Te=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Ub=c;Sn(c,e,d)}function Lo(a,b){if(a.Ib){var c=a.Ib.Xo(a);c&&Jb(c,function(a,c){K(b,c,a)})}}
function Ro(a){var b=Math.min(a.o.length,1E3),c=["count="+b],d;6<a.Me&&0<b?(d=a.o[0].j,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var g=a.o[e].j,h=a.o[e].map,g=6>=a.Me?e:g-d;try{Fe(h,function(a,b){c.push("req"+g+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+g+"_type="+encodeURIComponent("_badmap"))}}a.B=a.B.concat(a.o.splice(0,b));return c.join("&")}function To(a){a.sb||a.sd||(a.D=1,a.sd=go(y(a.fr,a),0),a.yf=0)}
function Uo(a){if(a.sb||a.sd||3<=a.yf)return!1;a.D++;a.sd=go(y(a.fr,a),Vo(a,a.yf));a.yf++;return!0}f.fr=function(){this.sd=null;this.sb=new Pn(this,0,this.A,"rpc",this.D);this.sb.Te=null;this.sb.Hl=0;var a=this.to.clone();K(a,"RID","rpc");K(a,"SID",this.A);K(a,"CI",this.ck?"0":"1");K(a,"AID",this.Vf);Lo(this,a);if(!dd||td(10))K(a,"TYPE","xmlhttp"),Un(this.sb,a,!0,this.Pi,!1);else{K(a,"TYPE","html");var b=this.sb,c=Boolean(this.Pi);b.Nf=3;b.Rd=vf(a.clone());fo(b,c)}};
function qo(a,b,c){a.ck=c;a.Hc=b.yd;a.ow(1,0);a.Gi=mo(a,null,a.Dl);Po(a)}
f.Uq=function(a,b){if(0!=this.j&&(this.sb==a||this.Ub==a))if(this.Hc=a.Sg,this.Ub==a&&3==this.j)if(7<this.Me){var c;try{c=this.C.parse(b)}catch(d){c=null}if(ea(c)&&3==c.length)if(0==c[0])a:{if(!this.sd){if(this.sb)if(this.sb.rh+3E3<this.Ub.rh)No(this),this.sb.cancel(),this.sb=null;else break a;Uo(this);bo()}}else this.Up=c[1],0<this.Up-this.Vf&&37500>c[2]&&this.ck&&0==this.yf&&!this.Ne&&(this.Ne=go(y(this.Jz,this),6E3));else po(this,11)}else"y2f%"!=b&&po(this,11);else if(this.sb==a&&No(this),!B(b)){c=
this.C.parse(b);ea(c);for(var e=0;e<c.length;e++){var g=c[e];this.Vf=g[0];g=g[1];2==this.j?"c"==g[0]?(this.A=g[1],this.Pi=g[2],g=g[3],null!=g?this.Me=g:this.Me=6,this.j=3,this.Ib&&this.Ib.Bo(this),this.to=mo(this,this.zh()?this.Pi:null,this.Dl),To(this)):"stop"==g[0]&&po(this,7):3==this.j&&("stop"==g[0]?po(this,7):"noop"!=g[0]&&this.Ib&&this.Ib.Ao(this,g),this.yf=0)}}};f.Jz=function(){null!=this.Ne&&(this.Ne=null,this.sb.cancel(),this.sb=null,Uo(this),bo())};
function No(a){null!=a.Ne&&(m.clearTimeout(a.Ne),a.Ne=null)}
f.sj=function(a){var b;if(this.sb==a)No(this),this.sb=null,b=2;else if(this.Ub==a)this.Ub=null,b=1;else return;this.Hc=a.Sg;if(0!=this.j)if(a.Oc)1==b?(z(),Fo.Y(new Ho(Fo,a.ef?a.ef.length:0)),Po(this),this.B.length=0):To(this);else{var c=a.Ue,d;if(!(d=3==c||7==c||0==c&&0<this.Hc)){if(d=1==b)this.Ub||this.Xd||1==this.j||2<=this.Mg?d=!1:(this.Xd=go(y(this.gr,this,a),Vo(this,this.Mg)),this.Mg++,d=!0);d=!(d||2==b&&Uo(this))}if(d)switch(c){case 1:po(this,5);break;case 4:po(this,10);break;case 3:po(this,
6);break;case 7:po(this,12);break;default:po(this,2)}}};function Vo(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b}f.ow=function(a){if(!G(arguments,this.j))throw Error("Unexpected channel state: "+this.j);};function po(a,b){if(2==b||9==b){var c=null;a.Ib&&(c=null);var d=y(a.ZC,a);c||(c=new J("//www.google.com/images/cleardot.gif"),vf(c));jo(c.toString(),1E4,d)}else bo();Wo(a,b)}f.ZC=function(a){a?bo():(bo(),Wo(this,8))};
function Wo(a,b){a.j=0;a.Ib&&a.Ib.zo(a,b);Mo(a);Ko(a)}function Mo(a){a.j=0;a.Hc=-1;if(a.Ib)if(0==a.B.length&&0==a.o.length)a.Ib.Zk(a);else{var b=ub(a.B),c=ub(a.o);a.B.length=0;a.o.length=0;a.Ib.Zk(a,b,c)}}function mo(a,b,c){var d=wf(c);if(""!=d.tb)b&&cf(d,b+"."+d.tb),df(d,d.Hd);else var e=window.location,d=xf(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Lg&&Jb(a.Lg,function(a,b){K(d,b,a)});K(d,"VER",a.Me);Lo(a,d);return d}
f.kl=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new ro;a.R=!1;return a};f.isActive=function(){return!!this.Ib&&this.Ib.isActive(this)};function go(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Lc=function(){Fo.Y(new Io(Fo))};function bo(){Fo.Y(new Go(Fo))}f.zh=function(){return!(!dd||td(10))};function Xo(){}f=Xo.prototype;f.Bo=function(){};f.Ao=function(){};f.zo=function(){};f.Zk=function(){};
f.Xo=function(){return{}};f.isActive=function(){return!0};function Yo(a,b){vn.call(this);if(ha(a))b&&(a=y(a,b));else if(a&&ha(a.handleEvent))a=y(a.handleEvent,a);else throw Error("Invalid listener argument");this.F=a;zm(this,"tick",y(this.D,this));this.stop();wn(this,5E3+2E4*Math.random())}A(Yo,vn);Yo.prototype.C=0;Yo.prototype.D=function(){if(500<this.j){var a=this.j;24E4>2*a&&(a*=2);wn(this,a)}this.F()};Yo.prototype.start=function(){Yo.K.start.call(this);this.C=z()+this.j};Yo.prototype.stop=function(){this.C=0;Yo.K.stop.call(this)};function Zo(a,b){this.J=a;this.B=b;this.A=new Di;this.o=new Yo(this.tD,this);this.j=null;this.I=!1;this.D=null;this.H="";this.G=this.C=0;this.F=[]}A(Zo,Xo);f=Zo.prototype;f.subscribe=function(a,b,c){return this.A.subscribe(a,b,c)};f.qa=function(a,b,c){return this.A.qa(a,b,c)};f.Rb=function(a){return this.A.Rb(a)};f.L=function(a,b){return this.A.L.apply(this.A,arguments)};f.dispose=function(){this.I||(this.I=!0,this.A.clear(),$o(this),Ai(this.A))};f.ma=function(){return this.I};
function ap(a){return{firstTestResults:[""],secondTestResults:!a.j.ck,sessionId:a.j.A,arrayId:a.j.Vf}}f.connect=function(a,b,c){if(!this.j||2!=this.j.j){this.H="";this.o.stop();this.D=a||null;this.C=b||0;a=this.J+"/test";b=this.J+"/bind";var d=new Do("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.j;e&&(e.Ib=null);d.Ib=this;this.j=d;e?this.j.connect(a,b,this.B,e.A,e.Vf):c?this.j.connect(a,b,this.B,c.sessionId,c.arrayId):this.j.connect(a,b,this.B)}};
function $o(a,b){a.G=b||0;a.o.stop();a.j&&(3==a.j.j&&Qo(a.j),Jo(a.j));a.G=0}f.Bo=function(){var a=this.o;a.stop();wn(a,5E3+2E4*Math.random());this.D=null;this.C=0;if(this.F.length){a=this.F;this.F=[];for(var b=0,c=a.length;b<c;++b)Oo(this.j,a[b])}this.L("handlerOpened")};f.zo=function(a,b){var c=2==b&&401==this.j.Hc;if(4!=b&&!c){if(6==b||410==this.j.Hc)c=this.o,c.stop(),wn(c,500);this.o.start()}this.L("handlerError",b)};
f.Zk=function(a,b,c){if(!this.o.enabled)this.L("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.F.push(c[a].map)};f.Xo=function(){var a={v:2};this.H&&(a.gsessionid=this.H);0!=this.C&&(a.ui=""+this.C);0!=this.G&&(a.ui=""+this.G);this.D&&bc(a,this.D);return a};f.Ao=function(a,b){if("S"==b[0])this.H=b[1];else if("gracefulReconnect"==b[0]){var c=this.o;c.stop();wn(c,500);this.o.start();Jo(this.j)}else this.L("handlerMessage",new Ml(b[0],b[1]))};
function bp(a,b){(a.B.loungeIdToken=b)||a.o.stop()}f.tD=function(){this.o.stop();var a=this.j,b=0;a.sb&&b++;a.Ub&&b++;0!=b?this.o.start():this.connect(this.D,this.C)};function cp(){this.j=[];this.o=[]}function dp(a){nb(a.j)&&(a.j=a.o,a.j.reverse(),a.o=[])}function ep(a,b){a.o.push(b)}function fp(a){dp(a);return a.j.pop()}f=cp.prototype;f.Wa=function(){return this.j.length+this.o.length};f.isEmpty=function(){return nb(this.j)&&nb(this.o)};f.clear=function(){this.j=[];this.o=[]};f.contains=function(a){return G(this.j,a)||G(this.o,a)};f.remove=function(a){var b=fb(this.j,a);if(0>b)return qb(this.o,a);rb(this.j,b);return!0};
f.Qa=function(){for(var a=[],b=this.j.length-1;0<=b;--b)a.push(this.j[b]);for(var c=this.o.length,b=0;b<c;++b)a.push(this.o[b]);return a};function gp(a){this.reset(a)}function hp(a,b){if(a.o)throw Error(b+" is not allowed in V3.");}function ip(a){a.volume=-1;a.muted=!1;a.A=null;a.j=-1;a.B=null;a.C=0;a.D=z()}f=gp.prototype;f.reset=function(a){this.videoIds=[];this.o="";jp(this);a&&(this.videoIds=a.videoIds,this.index=a.index,this.o=a.listId,this.videoId=a.videoId,this.j=a.playerState,this.B=a.errorReason,this.volume=a.volume,this.muted=a.muted,this.A=a.trackData,this.C=a.playerTime,this.D=a.playerTimeAt)};
function jp(a){a.index=-1;a.videoId="";ip(a)}f.xb=function(){return 1==this.j};function kp(a){return a.o?a.videoId:a.videoIds[a.index]}function lp(a,b){a.C=b;a.D=z()}function mp(a){switch(a.j){case 1:return(z()-a.D)/1E3+a.C;case -1E3:return 0}return a.C}f.setVideoId=function(a){hp(this,"setVideoId");var b=this.index;this.index=eb(this.videoIds,a);b!=this.index&&ip(this);return-1!=b};function np(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&ip(a)}
function op(a,b,c){hp(a,"setPlaylist");c=c||kp(a);Eb(a.videoIds,b)&&c==kp(a)||(a.videoIds=ub(b),a.setVideoId(c))}f.add=function(a){hp(this,"add");return a&&!G(this.videoIds,a)?(this.videoIds.push(a),!0):!1};f.remove=function(a){hp(this,"remove");var b=kp(this);return qb(this.videoIds,a)?(this.index=eb(this.videoIds,b),!0):!1};
function pp(a){var b={};b.videoIds=ub(a.videoIds);b.index=a.index;b.listId=a.o;b.videoId=a.videoId;b.playerState=a.j;b.errorReason=a.B;b.volume=a.volume;b.muted=a.muted;b.trackData=$b(a.A);b.playerTime=a.C;b.playerTimeAt=a.D;return b}f.clone=function(){return new gp(pp(this))};function qp(a,b){U.call(this);this.o=0;this.B=a;this.F=[];this.D=new cp;this.C=NaN;this.A=this.j=null;this.I=y(this.Oz,this);this.G=y(this.lh,this);this.H=y(this.Nz,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Cn,this),rp(this))):c=3;0!=c&&(b?this.Cn(c):L(y(function(){this.Cn(c)},this),0));sp(this,Fl())}A(qp,U);function tp(a){return new gp(a.B.getPlayerContextData())}f=qp.prototype;
f.play=function(){1==this.o?(this.j?this.j.play(null,v,y(function(){this.Ya("Failed to play video with cast v2 channel.");up(this,"play")},this)):up(this,"play"),vp(this,1,mp(tp(this))),wp(this)):xp(this,this.play)};f.pause=function(){1==this.o?(this.j?this.j.pause(null,v,y(function(){this.Ya("Failed to pause video with cast v2 channel.");up(this,"pause")},this)):up(this,"pause"),vp(this,2,mp(tp(this))),wp(this)):xp(this,this.pause)};
f.Bs=function(a){if(1==this.o){if(this.j){var b=tp(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.xb()||3==b.j?chrome.cast.media.ResumeState.PLAYBACK_START:chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(c,v,y(function(){this.Ya("Failed to seek in video with cast v2 channel.");up(this,"seekTo",{newTime:a})},this))}else up(this,"seekTo",{newTime:a});vp(this,3,a);wp(this)}else xp(this,pa(this.Bs,a))};
f.stop=function(){if(1==this.o){this.j?this.j.stop(null,v,y(function(){this.Ya("Failed to stop video with cast v2 channel.");up(this,"stopVideo")},this)):up(this,"stopVideo");var a=tp(this);jp(a);yp(this,a);wp(this)}else xp(this,this.stop)};
f.setVolume=function(a,b){if(1==this.o){var c=tp(this);if(this.A){if(c.volume!=a){var d=Math.round(a)/100;this.A.setReceiverVolumeLevel(d,y(function(){zp("set receiver volume: "+d)},this),y(function(){this.Ya("failed to set receiver volume.")},this))}c.muted!=b&&this.A.setReceiverMuted(b,y(function(){zp("set receiver muted: "+b)},this),y(function(){this.Ya("failed to set receiver muted.")},this))}else{var e={volume:a,muted:b};-1!=c.volume&&(e.delta=a-c.volume);up(this,"setVolume",e)}c.muted=b;c.volume=
a;yp(this,c);wp(this)}else xp(this,pa(this.setVolume,a,b))};f.Xm=function(a,b){if(1==this.o){var c=tp(this);if(b){c.A={trackName:b.name,languageCode:b.languageCode,sourceLanguageCode:b.translationLanguage?b.translationLanguage.languageCode:"",languageName:b.languageName,format:b.format,kind:b.kind};var d={videoId:a,style:pg(b.style)};bc(d,c.A);up(this,"setSubtitlesTrack",d)}else d={videoId:a},up(this,"setSubtitlesTrack",d);yp(this,c)}else xp(this,pa(this.Xm,a,b))};
function Ap(a,b,c,d,e){var g=tp(a);d=d||0;var h={videoId:b,currentIndex:d,listId:e||g.o};np(g,b,d);n(c)&&(lp(g,c),h.currentTime=c);up(a,"setPlaylist",h);e||yp(a,g)}f.dispose=function(){if(3!=this.o){var a=this.o;this.o=3;this.L("proxyStateChange",a,this.o)}qp.K.dispose.call(this)};f.P=function(){M(this.C);this.C=NaN;Bp(this);this.B=null;this.D.clear();sp(this,null);qp.K.P.call(this)};
function rp(a){D(["remotePlayerChange","remoteQueueChange"],function(a){this.F.push(this.B.subscribe(a,pa(this.ZA,a),this))},a)}function Bp(a){D(a.F,function(a){this.B.unsubscribeByKey(a)},a);a.F.length=0}function xp(a,b){50>a.D.Wa()&&ep(a.D,b)}function vp(a,b,c){var d=tp(a);lp(d,c);-1E3!=d.j&&(d.j=b);yp(a,d)}function up(a,b,c){a.B.sendMessage(b,c)}function yp(a,b){Bp(a);a.B.setPlayerContextData(pp(b));rp(a)}
f.Cn=function(a){if((a!=this.o||2==a)&&3!=this.o&&0!=a){var b=this.o;this.o=a;this.L("proxyStateChange",b,a);if(1==a)for(;!this.D.isEmpty();)fp(this.D).apply(this);else 3==a&&this.dispose()}};function wp(a){M(a.C);a.C=L(y(function(){this.L("remotePlayerChange");this.C=NaN},a),2E3)}f.ZA=function(a){("remotePlayerChange"!=a||isNaN(this.C))&&this.L(a)};
function sp(a,b){a.A&&(a.A.removeUpdateListener(a.I),a.A.removeMediaListener(a.G),a.lh(null));a.A=b;a.A&&(zp("Setting cast session: "+a.A.sessionId),a.A.addUpdateListener(a.I),a.A.addMediaListener(a.G),a.A.media.length&&a.lh(a.A.media[0]))}
f.Oz=function(a){if(!a)this.lh(null),sp(this,null);else if(this.A.receiver.volume){a=this.A.receiver.volume;var b=tp(this);if(b.volume!=a.level||b.muted!=a.muted)zp("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,yp(this,b),wp(this)}};f.lh=function(a){zp("Cast media: "+!!a);this.j&&this.j.removeUpdateListener(this.H);if(this.j=a)this.j.addUpdateListener(this.H),Cp(this),wp(this)};
function Cp(a){var b=a.j.customData;if(a.j.media){var c=a.j.media,d=tp(a);c.contentId!=d.videoId&&zp("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.j=b.playerState;lp(d,a.j.getEstimatedTime());yp(a,d)}else zp("No cast media video. Ignoring state update.")}f.Nz=function(a){a?(Cp(this),wp(this)):this.lh(null)};function zp(a){ki("CP",a)}f.Ya=function(a){ki("CP",a)};function Dp(a,b,c){U.call(this);this.R=a;this.F=[];this.F.push(P(window,"beforeunload",y(this.Pw,this)));this.o=[];this.ja=new gp;3==c["mdx-version"]&&(this.ja.o="RQ"+b.token);this.G=b.id;this.j=Ep(this,c);this.j.subscribe("handlerOpened",this.Tz,this);this.j.subscribe("handlerClosed",this.Pz,this);this.j.subscribe("handlerError",this.Qz,this);this.ja.o?this.j.subscribe("handlerMessage",this.Rz,this):this.j.subscribe("handlerMessage",this.Sz,this);bp(this.j,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.ja.videoId;uk()&&dj("yt-remote-session-video-id",a)},this)}A(Dp,U);f=Dp.prototype;f.Fg=NaN;f.Km=!1;f.Bj=NaN;f.Gm=NaN;f.ti=NaN;f.Ti=NaN;
f.connect=function(a,b){if(b){if(this.ja.o){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.ja.o=c);this.ja.videoId=d;this.ja.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.ja.videoIds=[d];this.ja.index=0}this.ja.state=3;lp(this.ja,g);this.Ra("Connecting with setPlaylist and params: "+pg(h));this.j.connect({method:"setPlaylist",
params:pg(h)},a,yk())}else this.Ra("Connecting without params"),this.j.connect({},a,yk());Fp(this)};f.dispose=function(){this.ma()||(this.L("beforeDispose"),Gp(this,3));Dp.K.dispose.call(this)};f.P=function(){Hp(this);Ip(this);Jp(this);M(this.ti);this.ti=NaN;M(this.Ti);this.Ti=NaN;this.B=null;Jh(this.F);this.F.length=0;this.j.dispose();Dp.K.P.call(this);this.o=this.ja=this.j=null};f.Ra=function(a){ki("conn",a)};f.Pw=function(){this.A(2)};function Ep(a,b){return new Zo(Qj(a.R,"/bc",void 0,!1),b)}
function Gp(a,b){a.L("proxyStateChange",b)}function Fp(a){a.Fg=L(y(function(){this.Ra("Connecting timeout");this.A(1)},a),2E4)}function Hp(a){M(a.Fg);a.Fg=NaN}function Jp(a){M(a.Bj);a.Bj=NaN}function Kp(a){Ip(a);a.Gm=L(y(function(){Lp(this,"getNowPlaying")},a),2E4)}function Ip(a){M(a.Gm);a.Gm=NaN}function Mp(a){var b=a.j;return!!b.j&&3==b.j.j&&isNaN(a.Fg)}
f.Tz=function(){this.Ra("Channel opened");this.Km&&(this.Km=!1,Jp(this),this.Bj=L(y(function(){this.Ra("Timing out waiting for a screen.");this.A(1)},this),15E3));Ek(ap(this.j),this.G)};f.Pz=function(){this.Ra("Channel closed");isNaN(this.Fg)?Fk(!0):Fk();this.dispose()};f.Qz=function(a){Fk();isNaN(this.C())?(this.Ra("Channel error: "+a+" without reconnection"),this.dispose()):(this.Km=!0,this.Ra("Channel error: "+a+" with reconnection in "+this.C()+" ms"),Gp(this,2))};
function Np(a,b){b&&(Hp(a),Jp(a));b==Mp(a)?b&&(Gp(a,1),Lp(a,"getSubtitlesTrack")):b?(a.D()&&a.ja.reset(),Gp(a,1),Lp(a,"getNowPlaying"),Op(a)):a.A(1)}function Pp(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.ja.videoId&&(Vb(b.params)?a.ja.A=null:a.ja.A=b.params,a.L("remotePlayerChange"))}function Qp(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.ja.o=b.params.listId||a.ja.o;np(a.ja,c,d);a.L("remoteQueueChange")}
function Rp(a,b){b.params=b.params||{};Qp(a,b);Sp(a,b)}function Sp(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);lp(a.ja,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.ja.j&&(c=-1E3);a.ja.j=c;var d=null;-1E3==c&&(d=a.ja.B||"unknown",n(b.params.currentError)&&(d=ng(b.params.currentError).reason||d));a.ja.B=d;1==a.ja.j?Kp(a):Ip(a);a.L("remotePlayerChange")}
function Tp(a,b){var c="true"==b.params.muted;a.ja.volume=parseInt(b.params.volume,10);a.ja.muted=c;a.L("remotePlayerChange")}
f.Rz=function(a){a.params?this.Ra("Received: action="+a.action+", params="+pg(a.params)):this.Ra("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=ng(a.params.devices);this.o=E(a,function(a){return new kk(a)});a=!!F(this.o,function(a){return"LOUNGE_SCREEN"==a.type});Np(this,a);break;case "loungeScreenConnected":Np(this,!0);break;case "loungeScreenDisconnected":sb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});Np(this,!1);break;case "remoteConnected":var b=new kk(ng(a.params.device));
F(this.o,function(a){return a.equals(b)})||pb(this.o,b);break;case "remoteDisconnected":b=new kk(ng(a.params.device));sb(this.o,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":Qp(this,a);break;case "nowPlaying":Rp(this,a);break;case "onStateChange":Sp(this,a);break;case "onVolumeChanged":Tp(this,a);break;case "onSubtitlesTrackChanged":Pp(this,a);break;default:this.Ra("Unrecognized action: "+a.action)}};
f.Sz=function(a){a.params?this.Ra("Received: action="+a.action+", params="+pg(a.params)):this.Ra("Received: action="+a.action);Up(this,a);Vp(this,a);if(Mp(this)){var b=this.ja.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=ng(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==kp(this.ja)&&
(delete a.params.videoId,Vb(a.params)?this.ja.A=null:this.ja.A=a.params,this.L("remotePlayerChange"));else if(kp(this.ja)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=kp(this.ja)):this.ja.setVideoId(""),e&&(e=e.split(","),op(this.ja,e,d))):op(this.ja,[]),this.ja.add(d)&&Lp(this,"getPlaylist"),d&&this.ja.setVideoId(d),b.index==this.ja.index&&Eb(b.videoIds,this.ja.videoIds)||this.L("remoteQueueChange"),
n(g)&&(b=parseInt(g,10),b=isNaN(b)?-1:b,-1==b&&-1E3==this.ja.j&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.ja.j,this.ja.j=b,d=null,-1E3==b&&(d=this.ja.B||"unknown",p&&(d=p.reason||d)),c=c||this.ja.B!=d,this.ja.B=d,1==this.ja.j?Kp(this):Ip(this)),"onError"!=a.action||-1!=this.ja.j&&-1E3!=this.ja.j||(a=ng(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==kp(this.ja)&&(this.ja.j=-1E3,this.ja.B=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),lp(this.ja,isNaN(b)?0:b),c=!0),
n(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||this.ja.volume!=b,this.ja.volume=b),n(l)&&(l="true"==l,c=c||this.ja.muted!=l,this.ja.muted=l)),c&&this.L("remotePlayerChange")}};
function Up(a,b){switch(b.action){case "loungeStatus":var c=ng(b.params.devices);a.o=E(c,function(a){return new kk(a)});break;case "loungeScreenDisconnected":sb(a.o,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new kk(ng(b.params.device));F(a.o,function(a){return a.equals(d)})||pb(a.o,d);break;case "remoteDisconnected":d=new kk(ng(b.params.device)),sb(a.o,function(a){return a.equals(d)})}}
function Vp(a,b){var c=!1;if("loungeStatus"==b.action)c=!!F(a.o,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;if(!isNaN(a.Bj))if(c)Jp(a);else return;c==Mp(a)?c&&Gp(a,1):c?(Hp(a),a.D()&&a.ja.reset(),Gp(a,1),Lp(a,"getNowPlaying"),Op(a)):a.A(1)}f.CC=function(){if(this.B){var a=this.B;this.B=null;this.ja.videoId!=a&&Lp(this,"getNowPlaying")}};Dp.prototype.subscribe=Dp.prototype.subscribe;
Dp.prototype.unsubscribeByKey=Dp.prototype.Rb;Dp.prototype.J=function(){var a=3;this.ma()||(a=0,isNaN(this.C())?Mp(this)&&(a=1):a=2);return a};Dp.prototype.getProxyState=Dp.prototype.J;Dp.prototype.A=function(a){this.Ra("Disconnecting with "+a);Hp(this);this.L("beforeDisconnect",a);1==a&&Fk();$o(this.j,a);this.dispose()};Dp.prototype.disconnect=Dp.prototype.A;Dp.prototype.I=function(){var a=this.ja;this.B&&(a=this.ja.clone(),np(a,this.B,a.index));return pp(a)};Dp.prototype.getPlayerContextData=Dp.prototype.I;
Dp.prototype.O=function(a){var b=new gp(a);b.videoId&&b.videoId!=this.ja.videoId&&(this.B=b.videoId,M(this.ti),this.ti=L(y(this.CC,this),5E3));var c=[];this.ja.o==b.o&&this.ja.videoId==b.videoId&&this.ja.index==b.index&&Eb(this.ja.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ja.j==b.j&&this.ja.volume==b.volume&&this.ja.muted==b.muted&&mp(this.ja)==mp(b)&&pg(this.ja.A)==pg(b.A)||c.push("remotePlayerChange");this.ja.reset(a);D(c,function(a){this.L(a)},this)};
Dp.prototype.setPlayerContextData=Dp.prototype.O;Dp.prototype.H=function(){return this.j.B.loungeIdToken};Dp.prototype.getLoungeToken=Dp.prototype.H;Dp.prototype.D=function(){var a=this.j.B.id,b=F(this.o,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};Dp.prototype.getOtherConnectedRemoteId=Dp.prototype.D;Dp.prototype.C=function(){var a=this.j;return a.o.enabled?a.o.C-z():NaN};Dp.prototype.getReconnectTimeout=Dp.prototype.C;
Dp.prototype.U=function(){if(!isNaN(this.C())){var a=this.j.o;a.enabled&&(a.stop(),a.start(),a.D())}};Dp.prototype.reconnect=Dp.prototype.U;function Op(a){M(a.Ti);a.Ti=L(y(a.A,a,1),864E5)}function Lp(a,b,c){c?a.Ra("Sending: action="+b+", params="+pg(c)):a.Ra("Sending: action="+b);a=a.j;b={_sc:b};c&&bc(b,c);a.o.enabled||2==(a.j?a.j.j:0)?a.F.push(b):a.j&&3==a.j.j&&Oo(a.j,b)}Dp.prototype.N=function(a,b){Lp(this,a,b);Op(this)};Dp.prototype.sendMessage=Dp.prototype.N;var Wp=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];function Xp(a,b){var c=Yp(a);return gb(b,function(a){return a.uuid?(a=Wj(this.A,a.uuid),!!a&&"RUNNING"==a.status):!!Xj(c,a)},a)}
function Zp(a,b,c){var d=$p,e="";M(d.o);d.o=NaN;d.B="";if(Wj(d.A,a)){if(!e){var g=e=Tj();Tl();var h=cm(a),k=Ql();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",Zl(h),Mi("yt-remote-cast-device-status-update",
h));Ol("Sending a cast launch request with params: "+l.parameters);k.launch(l,pa(dm,a))}else Ol("No cast API or no cast device. Dropping cast launch.")}d.B=e;d.o=L(y(d.H,d,a,0,e),Wp[0])}else d.Ra("No DIAL device with id: "+a)}function aq(a,b){var c=Yj(Yp(a),b);a.Ra("Found screen: "+ti(c)+" with key: "+b);return c}function bq(a){var b=$p,c=Yj(b.j,a);b.Ra("Found online screen: "+ti(c)+" with key: "+a);return c}
function cq(a){var b=$p,c=Wj(b.A,a);if(!c){var d=Yj(b.D,a);d&&(c=Wj(b.A,d.uuid))}b.Ra("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function Yp(a){return tb(a.C,gb(a.D,function(a){return!Xj(this.C,a)},a))};function dq(a){Zj.call(this,"ScreenServiceProxy");this.Jb=a;this.j=[];this.j.push(this.Jb.$_s("screenChange",y(this.xD,this)));this.j.push(this.Jb.$_s("onlineScreenChange",y(this.UA,this)))}A(dq,Zj);f=dq.prototype;f.gc=function(a){return this.Jb.$_gs(a)};f.contains=function(a){return!!this.Jb.$_c(a)};f.get=function(a){return this.Jb.$_g(a)};f.start=function(){this.Jb.$_st()};f.add=function(a,b,c){this.Jb.$_a(a,b,c)};f.remove=function(a,b,c){this.Jb.$_r(a,b,c)};
f.ak=function(a,b,c,d){this.Jb.$_un(a,b,c,d)};f.P=function(){for(var a=0,b=this.j.length;a<b;++a)this.Jb.$_ubk(this.j[a]);this.j.length=0;this.Jb=null;dq.K.P.call(this)};f.xD=function(){this.L("screenChange")};f.UA=function(){this.L("onlineScreenChange")};Sk.prototype.$_st=Sk.prototype.start;Sk.prototype.$_gspc=Sk.prototype.yD;Sk.prototype.$_gsppc=Sk.prototype.Es;Sk.prototype.$_c=Sk.prototype.contains;Sk.prototype.$_g=Sk.prototype.get;Sk.prototype.$_a=Sk.prototype.add;Sk.prototype.$_un=Sk.prototype.ak;
Sk.prototype.$_r=Sk.prototype.remove;Sk.prototype.$_gs=Sk.prototype.gc;Sk.prototype.$_gos=Sk.prototype.Ds;Sk.prototype.$_s=Sk.prototype.subscribe;Sk.prototype.$_ubk=Sk.prototype.Rb;function eq(a){q("yt.mdx.remote.castv2_",!0,void 0);cj&&bj();rk();fq||(fq=new Pj,Gk()&&(fq.j="/api/loungedev"));gq||(gq=t("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",gq,void 0));hq();var b=iq();if(!b){var c=new Sk(fq);q("yt.mdx.remote.screenService_",c,void 0);b=iq();ql(a,c,function(a){a?Kl()&&Jl():c.subscribe("onlineScreenChange",function(){Mi("yt-remote-receiver-availability-change")})})}}
function jq(){Li(kq);kq.length=0;Ai(lq);lq=null;gq&&(D(gq,function(a){a(null)}),gq.length=0,gq=null,q("yt.mdx.remote.deferredProxies_",null,void 0));$p&&(Ai($p),$p=null);fq=null;Yl()}function mq(){if(nq()&&Dl()){var a=[];if(fj("yt-remote-cast-available")||t("yt.mdx.remote.cloudview.castButtonShown_")||oq())a.push({key:"cast-selector-receiver",name:pq()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return t("yt.mdx.remote.cloudview.initializing_")?[]:qq()}
function qq(){var a=[],a=rq()?iq().Jb.$_gos():si(fj("yt-remote-online-screens")||[]),b=sq();b&&oq()&&(Xj(a,b)||a.push(b));rq()||(b=Vj(Dk()),b=gb(b,function(b){return!Yj(a,b.id)}),a=tb(a,b));return Uj(a)}function tq(){if(nq()&&Dl()){var a=El();return a?{key:"cast-selector-receiver",name:a}:null}return uq()}function uq(){var a=qq(),b=vq(),c=sq();c||(c=wq());return F(a,function(a){return c&&oi(c,a.key)||b&&(a=cq(a.key))&&a.id==b?!0:!1})}
function pq(){if(nq()&&Dl())return El();var a=sq();return a?a.name:null}function sq(){var a=Kl();if(!a)return null;if(!$p){var b=iq().gc();return Yj(b,a)}return aq($p,a)}function xq(a,b){yq("Connecting to: "+pg(a));if("cast-selector-receiver"==a.key)zq(b||null),Il(b||null);else{Aq();zq(b||null);var c=null;$p?c=bq(a.key):(c=iq().gc(),c=Yj(c,a.key));if(c)Bq(c);else{if($p&&(c=cq(a.key))){Cq(c);return}L(function(){Dq(null)},0)}}}
function Aq(){if($p){var a=$p;M(a.o);a.o=NaN;a.B=""}a:{if(a=oq())if(a=a.getOtherConnectedRemoteId()){yq("Do not stop DIAL due to "+a);Eq("");break a}(a=vq())?(yq("Stopping DIAL: "+a),em(a),Eq("")):(a=sq())&&a.uuid&&(yq("Stopping DIAL: "+a.uuid),em(a.uuid))}Hl()?zl().stopSession():wl("stopSession called before API ready.");(a=oq())?a.disconnect(1):(Ni("yt-remote-before-disconnect",1),Ni("yt-remote-connection-change",!1));Dq(null)}
function Fq(){var a=Gq(),a=a?a.currentTime:0,b=Hq();0==a&&b&&(a=mp(tp(b)));return a}function Hq(){var a=oq();return a&&3!=a.getProxyState()?new qp(a,void 0):null}function yq(a){ki("remote",a)}function nq(){return!!t("yt.mdx.remote.castv2_")}function rq(){return t("yt.mdx.remote.screenService_")}function iq(){if(!lq){var a=rq();lq=a?new dq(a):null}return lq}function Kl(){return t("yt.mdx.remote.currentScreenId_")}
function Iq(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if($p){var b=$p;b.G=z()+3E5;if(b.F=a){var c=aq(b,a);if(c&&!Xj(b.j,c)){a=ub(b.j);a.push(c);var c=Xp(b,a),d=!Eb(b.j,c,pi);nb(a)||Ck(E(c,qi));d&&(b.Ra("Updating online screens: "+ui(b.j)+" -> "+ui(c)),b.j=c,b.L("onlineReceiverChange"))}}}}function vq(){return t("yt.mdx.remote.currentDialId_")}function Eq(a){q("yt.mdx.remote.currentDialId_",a,void 0)}function Gq(){return t("yt.mdx.remote.connectData_")}
function zq(a){q("yt.mdx.remote.connectData_",a,void 0)}function oq(){return t("yt.mdx.remote.connection_")}function Dq(a){var b=oq();zq(null);a?ab(!oq()):(Iq(""),Eq(""));q("yt.mdx.remote.connection_",a,void 0);gq&&(D(gq,function(b){b(a)}),gq.length=0);b&&!a?Ni("yt-remote-connection-change",!1):!b&&a&&Mi("yt-remote-connection-change",!0)}function wq(){var a=uk();if(!a)return null;if(rq()){var b=iq().gc();return Yj(b,a)}return $p?aq($p,a):null}
function Bq(a){ab(!Kl());Iq(a.id);a=new Dp(fq,a,Jq());a.connect(1,Gq());a.subscribe("beforeDisconnect",function(a){Ni("yt-remote-before-disconnect",a)});a.subscribe("beforeDispose",function(){oq()&&(oq(),Dq(null))});Dq(a)}function Cq(a){vq();yq("Connecting to: "+(a?a.toString():"null"));Eq(a.id);var b=Gq();b?Zp(a.id,b.videoIds[b.index],b.currentTime):Zp(a.id)}var fq=null,gq=null,lq=null,$p=null;
function hq(){var a=Jq();if(Vb(a)){var a=tk(),b=fj("yt-remote-session-name")||"",c=fj("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 Jq(){return t("yt.mdx.remote.channelParams_")||{}}var kq=[];function Kq(a,b){this.start=a;this.end=b}function Lq(a,b){return a.start!=b.start?a.start-b.start:a.end!=b.end?a.end-b.end:ja(a)-ja(b)}Kq.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)};Kq.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function Mq(a,b,c){Kq.call(this,a,b);a=c||{};this.Ea=a.id||"";void 0!=a.priority&&(this.dg=a.priority);this.Oh=a.namespace||"";this.bb=new Di;this.tooltip=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.visible=a.visible)}A(Mq,Kq);function Nq(a){return{start:a.start,end:a.end,id:a.Ea,priority:a.dg,namespace:a.Oh,tooltip:a.tooltip,style:"ytp-chapter-marker"==a.style?"chapter":"ad",visible:a.visible}}f=Mq.prototype;f.Ea="";f.dg=7;f.jo=!0;f.visible=!1;f.style="ytp-ad-progress";f.bb=null;
f.Oh="";f.getId=function(){return this.Ea};function Oq(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}function Pq(a,b){return a.start==b.start?a.dg==b.dg?0:a.dg<b.dg?-1:1:a.start<b.start?-1:1}f.toString=function(){return Mq.K.toString.call(this)};function Qq(){this.j=[]}function Rq(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 Sq(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 Tq(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(Ab);return c[0]};function Uq(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 Vq(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 Wq(a,b){var c=Vq(a,b);return 0<=c?a.end(c):NaN}function Xq(a){return a&&a.length?a.end(a.length-1):NaN}function Yq(a,b){var c=Wq(a,b);return 0<=c?c-b:0};var Zq,$q;var ar=Uc,br=ar.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!br||2>br.length)Zq=void 0;else{var cr=ar.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Zq=cr&&6==cr.length?Number(cr[5].replace("_",".")):0}($q=0<=Zq)&&0<=Uc.search("Safari")&&Uc.search("Version");var dr=Xh||Yh;function er(){return fr("(ps3; leanback shell)")}function gr(){return fr("safari/")&&fr(" version/8")}function hr(){return $h&&fr("crkey")}function fr(a){var b=Uc;return b?0<=b.toLowerCase().indexOf(a):!1};function ir(){}var jr=$q&&4>Zq?.1:0,kr=new ir;ir.prototype.j=null;var lr=ir.prototype.o=!1;function mr(a,b){var c="";b&&(nr(a,b),c=or(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.j||a.load())}function pr(a,b){0<a.readyState&&(a.currentTime=Math.max(jr,b))}f=ir.prototype;f.getCurrentTime=function(){return this.currentTime||0};function qr(a){return 0<Xq(a.buffered)&&a.duration?Wq(a.buffered,a.currentTime):0}function rr(a){var b=a.duration||0;return Infinity==b?1:b?qr(a)/b:0}
function sr(a){return a.paused||a.ended}function tr(a){a.ended&&pr(a,0);!a.hasAttribute("src")&&a.j&&(a.src=or(a.j),a.j.j||a.load());a.play();$q&&7<=Zq&&Ih(a,y(function(){L(y(this.Wo,this,this.currentTime,0),500)},a))}f.Wo=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),L(y(this.Wo,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function ur(a){if(lr?a.src:a.currentSrc)dr&&pr(a,0),a.removeAttribute("src"),a.load(),a.j&&a.j.j&&(lr?nr(a,null):a.j=null)}
function vr(a){ur(a);lr||nr(a,null)}f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function wr(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.$v=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.bw=function(){this.o&&!this.muted&&(this.muted=!0)};
ir.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:Uq(this.played),vbu:Uq(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 nr(a,b){a.j&&a.j.equals(b)||(a.j&&a.j.dispose(),a.j=b)};function xr(a,b){this.o=a||64;this.j=b||null}
function yr(a,b,c){if(W(a,128))return a;var d=a.o,e=a.j,g=b.target;switch(b.type){case "ended":if(0>=g.networkState||!g.src)break;d=14;e=null;break;case "pause":W(a,256)?(d^=256)||(d=64):W(a,32)||W(a,2)||(d=4,W(a,1)&&W(a,8)&&(d|=1),e=null);break;case "playing":d=8;e=null;break;case "abort":if(64==d)break;case "error":a:if((b=g.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 a}b={errorCode:b}}else b=null;b&&(e=b,d|=128);break;case "progress":W(a,8)&&zr(c,g)&&(d|=1);break;case "seeked":d&=-17;break;case "seeking":d|=16;0>=Yq(g.buffered,g.currentTime)&&(d|=1);d&=-3;break;case "waiting":W(a,2)||(d|=1);break;case "timeupdate":W(a,16)||(d=zr(c,g)?d|1:d&-2);1<g.readyState&&0<g.currentTime&&(d&=-65);break;default:return a}return Ar(a,d,e)}function zr(a,b){if(!a)return!1;var c=Yq(b.buffered,b.currentTime);return Br(a,b.currentTime,z(),c)}
function Ar(a,b,c){return b==a.o&&c==a.j||b&128&&!c||b&2&&b&16?a:new xr(b,c)}function Cr(a,b){return Ar(a,a.o|b)}function Dr(a,b){return Ar(a,a.o&~b)}function W(a,b){return!!(a.o&b)}xr.prototype.xb=function(){return W(this,8)&&!W(this,64)&&!W(this,2)};function Er(a){return W(a,8)&&!W(a,2)}function Fr(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 Gr(a,b,c,d){U.call(this);this.G=a;this.F=b;this.D=c;this.H=d;this.B=new vn(250);zm(this.B,"tick",this.oc,!1,this);R(this,this.B);this.o=[];this.j=new Qq}A(Gr,U);f=Gr.prototype;f.fj=!1;f.pe=!1;f.hh=!1;f.Ri=!1;f.jh=null;function Hr(a,b){a.oc();var c=a.j;if(1<b.length&&b.length>c.j.length)c.j=c.j.concat(b),c.j.sort(Lq);else for(var d=0;d<b.length;d++){var e=b[d];!c.j.length||0<Lq(e,c.j[c.j.length-1])?c.j.push(e):Gb(c.j,e,Lq)}a.oc()}
f.Ih=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.o.indexOf(c);0<=d&&this.o.splice(d,1);d=this.j.j;c=zb(d,c,Lq);0<=c&&rb(d,c)}}this.oc()};f.lg=function(){this.A=Ir(this);this.pe=!0;this.oc()};f.reset=function(){this.pe=this.fj=!1;Jr(this);this.j.j=[];this.o=[];this.oc();this.C=null};function Kr(a,b){var c=[];if(!b.length)return c;b.sort(Pq);for(var d=0;d<b.length;d++){var e=b[d];-1==a.o.indexOf(e)&&(a.o.push(e),c.push(["onEnter",e]))}return c}
function Lr(a,b){var c=[];if(!b.length)return c;b.sort(Pq);for(var d=0;d<b.length;d++){var e=b[d],g=a.o.indexOf(e);0>g||(a.o.splice(g,1),c.push(["onExit",e]))}return c}
f.oc=function(){this.Ri=!0;if(!this.hh)for(var a=3;this.Ri&&a;){this.Ri=!1;this.hh=!0;if(this.pe&&!this.fj){Jr(this);for(var b=Ir(this),c=[],d=[],e=0;e<this.o.length;e++){var g=this.o[e];g.jo&&!g.contains(b)&&d.push(g)}c=c.concat(Lr(this,d));d=Rq(this.j,b);e=this.D();!W(e,48)&&b>this.A&&(d=d.concat(Sq(this.j,this.A,b)));c=c.concat(Kr(this,d));this.A=b;!this.fj&&this.C&&(c.unshift(["onLockBlockExit",this.C]),this.C=null,W(e,2)&&(this.A=2147483647));this.H()&&(b=Tq(this.j,this.A),null!=b&&(b=(b-this.A)/
this.F(),this.jh=xn(y(this.oc,this),b)));Mr(this,c)}this.hh=!1;a--}};function Mr(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];"onLockBlockExit"==d[0]||"onLockBlockEnter"==d[0]?a.L.apply(a,d):e.bb.L.apply(e.bb,d)}}function Jr(a){null!=a.jh&&(yn(a.jh),a.jh=null)}function Ir(a){return W(a.D(),2)?2147483647:1E3*a.G()}f.P=function(){Hm(this.B,"tick",this.oc,!1,this);Jr(this);this.C=this.j=this.o=null;Gr.K.P.call(this)};function Nr(a){U.call(this);this.j=a;this.Zm&&(a=gk("yt-html5-player-modules::"+this.Zm))&&(this.ba=new Ti(a))}A(Nr,U);f=Nr.prototype;f.za="";f.Dc="";f.ve=!1;f.loaded=!1;f.ki=!1;f.Zb=null;function Or(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.Oh=a.za;d.bb.subscribe("onEnter",a.Mc,a);d.bb.subscribe("onExit",a.ed,a)}a.L("command_add_cuerange",b,a.j.getPlayerType())}function Pr(a,b){a.L("command_remove_cuerange",b,a.j.getPlayerType())}
function Qr(a){a.L("command_remove_cuerange_all",a.za,a.j.getPlayerType())}function Rr(a){a.L("command_preroll_ready",a.za,a.j.getPlayerType())}function Sr(a,b){N(b,a.za);a.j.S.A.sa.appendChild(b)}function Tr(a,b){a.L("command_show_dialog",b)}f.Vg=function(){Tr(this)};f.Pa=function(){this.ve||(this.Ja(this.j),N(this.j.Oa(),this.za+"-created"),this.ve=!0)};f.destroy=function(){this.loaded&&this.unload();qh(this.j.Oa(),this.za+"-created");this.ve=!1;this.L("destroyed",this.za)};
f.load=function(){this.loaded=!0;N(this.j.Oa(),this.za+"-loaded");this.L("loaded",this.za)};f.unload=function(){this.loaded=!1;qh(this.j.Oa(),this.za+"-loaded");this.L("unloaded",this.za)};f.Mc=function(){};f.ed=function(){};f.ge=function(){};function Ur(a,b){a.L("command_navigate_to_url",b,void 0)}f.log=function(a){this.L("command_log",this.Dc,a)};function Vr(a,b,c){var d={},e;for(e in b)d[a.za+"_"+e]=b[e];b={};for(var g in c)b[a.za+"_"+g]=c[g];a.L("command_log_timing",d,b)}f.Ph=function(){return null};
function Wr(a,b){if(!a.ba)return null;var c;try{c=a.ba.get(b)}catch(d){a.ba&&a.ba.remove(b)}return c}function Xr(a,b,c){if(a.ba)try{a.ba.set(b,c)}catch(d){}}function Yr(a,b){a.L("command_disable_controls",b,a.za)}function Zr(a,b){a.L("command_enable_controls",b,a.za)}function $r(a){a.L("command_stop_redirect_controls")}function as(a){a.L("command_play",!1,a.j.getPlayerType())}f.pauseVideo=function(){this.L("command_pause",!1,this.j.getPlayerType())};
function bs(a,b){a.L("command_redirected_show_is_playing",b)}f.bk=function(a,b){this.L("command_progress",a,b)};function cs(a){return a.j.S.A.B}function ds(a,b,c){a.L("module_menu_button_add",b,c)}function es(a,b){a.L("module_menu_button_remove",b)}function fs(a,b){a.L("module_menu_item_add",b)}function gs(a,b){a.L("module_menu_item_remove",b)}function hs(a){a.L("module_menu_show")}f.sg=function(){};f.tg=function(){return[]};f.Ja=function(){return!1};f.$m=function(){return!0};
f.Dj=function(a,b){this.Zb&&this.Zb.ge&&this.Zb.ge.apply(this.Zb,arguments)};f.qj=function(){};function is(a){Q.call(this);this.j={};this.A={};this.B={};this.o=js(this,a)}A(is,Q);function js(a,b,c){var d=0,e=Rd(b[d++]);if(x(b[d])||ea(b[d])||null===b[d]){var g=b[d++];ea(g)&&(g=g.join(" "));if(g=ks(a,e,"className",g))ls(a,e,"className",g),ms(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ea(h))js(a,h,e);else if(ia(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&ls(g,k,l,ks(g,k,l,h[l]))}else x(h)&&(g=ks(a,e,"child",h),null!=g&&e.appendChild(Sd(g)))}c&&c.appendChild(e);return e}f=is.prototype;f.Q=function(){return this.o};
function ms(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)ms(a,d[b],c);else a.j[b]=c}f.ea=function(a,b){n(b)?a.insertBefore(this.o,a.childNodes[b]||null):a.appendChild(this.o)};f.detach=function(){Wd(this.o)};function ks(a,b,c,d){return x(d)&&"{{"==d.substr(0,2)?(a.A[d]=[b,c],null):d}f.update=function(a){for(var b in a)ns(this,b,a[b])};function ns(a,b,c){if(c!=a.B[b]){var d=a.A["{{"+b+"}}"];d&&(a.B[b]=c,ls(a,d[0],d[1],c))}}function os(a){return ea(a)&&x(a[0])}
function ls(a,b,c,d){if("child"==c){Vd(b);if(!ea(d)||os(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ga(g)||x(g)||ia(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?os(g)?c.push(js(a,g)):g.Q?c.push(g.Q()):c.push(Sd(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.P=function(){this.j={};this.A={};this.B={};this.detach();delete this.o;is.K.P.call(this)};function ps(a,b){a&&(a.style.display=b)}function qs(a,b){var c=yh("requestAnimationFrame",window);return L(function(){c?c.call(window,a):a()},b||0)};function X(a){Q.call(this);this.template=new is(a);R(this,this.template);this.element=this.template.Q();this.ba="block";this.D=!0;this.nb=[]}A(X,Q);f=X.prototype;f.Q=function(){return this.element};f.ea=function(a,b){this.template.ea(a,b)};f.detach=function(){this.template.detach()};f.Ba=function(a,b){ns(this.template,b||"content",a)};f.ua=function(){ps(this.element,this.ba);this.D=!0;this.element.removeAttribute("aria-hidden")};
f.$=function(){ps(this.element,"none");this.D=!1;this.element.setAttribute("aria-hidden","true")};function rs(a,b){a.element.setAttribute("role",b)}f.ib=function(a){this.element.setAttribute("aria-label",a)};f.ac=function(a){Ph(this.element,a)};f.M=function(a,b,c){return ss(this,this.element,a,b,c)};function ss(a,b,c,d,e,g){b=P(b,c,y(d,e||a),g);a.nb.push(b);return b}f.Ka=function(a){Jh(a)};f.P=function(){this.Ka(this.nb);delete this.element;X.K.P.call(this)};function ts(a){X.call(this,a);this.W=new U;R(this,this.W)}A(ts,X);ts.prototype.subscribe=function(a,b,c){return this.W.subscribe(a,b,c)};ts.prototype.qa=function(a,b,c){return this.W.qa(a,b,c)};ts.prototype.Rb=function(a){return this.W.Rb(a)};ts.prototype.L=function(a,b){return this.W.L.apply(this.W,arguments)};function us(a,b,c){ts.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.j=a;this.bb=b;this.F=!1}A(us,ts);us.prototype.Qh=function(){this.F=!0};us.prototype.destroy=function(){this.F=!1};us.prototype.Bg=function(){return!1};function vs(){X.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}],["div","ytp-channel-curtain"]])}A(vs,X);function ws(){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"]]])}A(ws,X);function xs(a,b,c){Q.call(this);this.j=a;this.B=b||0;this.o=c;this.A=y(this.Hw,this)}A(xs,Q);f=xs.prototype;f.Ea=0;f.P=function(){xs.K.P.call(this);this.stop();delete this.j;delete this.o};f.start=function(a){this.stop();this.Ea=xn(this.A,n(a)?a:this.B)};f.stop=function(){this.isActive()&&yn(this.Ea);this.Ea=0};f.isActive=function(){return 0!=this.Ea};f.Hw=function(){this.Ea=0;this.j&&this.j.call(this.o)};function ys(a,b){ea(b)||(b=[b]);var c=E(b,function(a){return x(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.Io+"s"});zs(a,c.join(","))}
var As=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(dd)return sd("10.0");var a=document.createElement("DIV"),b=fd?"-webkit":ed?"-moz":dd?"-ms":cd?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Kc.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Mc)throw Error("Tag name <div> is not allowed for SafeHtml.");var c=null,d="<div";if(b)for(var e in b){if(!Kc.test(e))throw Error('Invalid attribute name "'+
e+'".');var g=b[e];if(null!=g){var h;h=e;if(g instanceof pc)g=rc(g);else if("style"==h.toLowerCase()){if(!ia(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof tc)){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];if(null!=p){if(p instanceof pc)p=rc(p);else if(xc.test(p)){for(var r=!0,u=!0,w=0;w<p.length;w++){var S=p.charAt(w);"'"==S&&
u?r=!r:'"'==S&&r&&(u=!u)}r&&u||(p="zClosurez")}else p="zClosurez";k+=l+":"+p+";"}}g=k?vc(k):wc}g=g instanceof tc&&g.constructor===tc&&g.o===uc?g.j:"type_error:SafeStyle"}else{if(/^on/i.test(h))throw Error('Attribute "'+h+'" requires goog.string.Const value, "'+g+'" given.');if(h.toLowerCase()in Lc)if(g instanceof Fc)g=g instanceof Fc&&g.constructor===Fc&&g.j===Gc?"":"type_error:TrustedResourceUrl";else if(g instanceof yc)g=Ac(g);else throw Error('Attribute "'+h+'" on tag "div" requires goog.html.SafeUrl or goog.string.Const value, "'+
g+'" given.');}g.Ze&&(g=g.$d());h=h+'="'+ya(String(g))+'"';d=d+(" "+h)}}e=void 0;null!=e?ea(e)||(e=[e]):e=[];!0===fc.div?d+=">":(c=Nc(e),d+=">"+Jc(c)+"</div>",c=c.Jf());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Oc(d,c);a.innerHTML=Jc(b);return""!=Ig(a.firstChild,"transition")});function zs(a,b){Fg(a,"transition",b)};function Bs(a,b){(a=Ed(a))&&a.style&&(bh(a,b),O(a,"hid",!b))}function Cs(a){return(a=Ed(a))?!("none"==a.style.display||oh(a,"hid")):!1}function Ds(a){D(arguments,function(a){Bs(a,!0)})}function Es(a){D(arguments,function(a){Bs(a,!1)})};function Fs(a,b,c,d){Q.call(this);this.o=a;d||(Gs(this,!0),a.$());this.F=c?0:b;this.D=!!c;this.j=null;this.B=!1;this.A=new xs(this.C,0,this);R(this,this.A)}A(Fs,Q);Fs.prototype.$=function(){3!=this.j&&(1==this.j||2==this.j?(this.o.$(),this.j=null,this.A.stop()):this.o.D&&(Gs(this,!0),this.j=3,this.D?this.C():this.A.start(this.F)))};
Fs.prototype.C=function(){switch(this.j){case 1:if(this.o.ua(),this.j=2,!this.D){this.A.start(10);break}case 2:Gs(this,this.B);this.B?(this.j=3,this.A.start(this.F)):this.j=null;break;case 3:this.o.$();Gs(this,!1);this.j=4;this.A.start(0);break;case 4:this.j=null}};function Gs(a,b){var c=a.o.Q();b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")}Fs.prototype.stop=function(){for(;null!=this.j&&4!=this.j;)this.A.stop(),this.C()};
Fs.prototype.P=function(){this.o.ma()||this.o.Q().removeAttribute("aria-hidden");Fs.K.P.call(this)};function Hs(a,b){us.call(this,a,b,"subscribecard-endscreen");this.A=new vs;R(this,this.A);this.o=new ws;R(this,this.o);this.$()}A(Hs,us);Hs.prototype.Qh=function(){Hs.K.Qh.call(this);Vd(this.Q());this.A.ea(this.Q());this.o.ea(this.Q());var a=this.j.getVideoData().videoId,b=this.B,c=this.j.V().rb,d=this.j.V().pageId;a&&(a={video_id:a,html5:1,page_subscribe:1},c&&(a.authuser=c),d&&(a.pageid=d),Ij("/get_video_metadata",{method:"GET",onError:v,qb:b,mg:a,context:this}))};
Hs.prototype.B=function(a,b){if(this.F){var c=b.user_info,d=this.j.getVideoData();d&&(d.tK=c.external_id);d=c.channel_banner_url;eg(d)||(d="");var e=c.channel_logo_url||c.image_url;eg(e)||(e="");ns(this.A.template,"banner",d);ns(this.o.template,"image",e);ns(this.o.template,"author",c.channel_title||c.username);c=c.subscription_button_html;this.o.template.j["html5-subscribe-button-container"].innerHTML=c?c:""}};Hs.prototype.ua=function(){Hs.K.ua.call(this)};Hs.prototype.$=function(){Hs.K.$.call(this)};var Is={mJ:"html5-stop-propagation",tI:"ytp-no-controls",UH:"html5-live-dvr-disabled",VH:"html5-live-dvr-engaged",WH:"html5-live-playback",PH:"ytp-iv-drawer-enabled",QH:"ytp-iv-drawer-open",gI:"html5-mobile",jI:"modest-branding",pI:"html5-native-controls",rJ:"html5-tablet",qJ:"html5-tablet-body",bI:"html5-main-video",PJ:"html5-video-container",QJ:"html5-video-content",RJ:"html5-video-controls",SJ:"ytp-fallback",TJ:"ytp-fallback-content",VJ:"html5-video-loader",bK:"html5-watermark",OG:"html5-branded-watermark",
bH:"html5-context-menu",wu:"html5-context-menu-copy-debug-info",xu:"html5-context-menu-copy-embed-html",yu:"html5-context-menu-copy-video-url",zu:"html5-context-menu-copy-video-url-at-current-time",Au:"html5-context-menu-link",Bu:"html5-context-menu-report-playback-issue",Cu:"html5-context-menu-show-video-info",cH:"html5-show-video-info-template",hI:"html5-modal-panel",HH:"ideal-aspect",uH:"autohide-controls",wH:"autohide-controls-aspect",vH:"autohide-controls-fullscreen",eI:"autominimize-progress-bar",
fI:"autominimize-progress-bar-non-aspect",xH:"hide-info-bar",yH:"html5-hide-share",zH:"html5-hide-volume",xJ:"ytp-tiny-mode",YJ:"video-thumbnail",FI:"ytp-dialog",FG:"html5-async-progress",GG:"html5-async-success",EG:"html5-async-error",YG:"html5-center-overlay",WI:"ytp-scalable-icon-shrink",VI:"ytp-scalable-icon-grow",EH:"house-brand",aJ:"sentiment-like",$I:"sentiment-dislike"};function Js(a){var b;b=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",$f("YTP_AD_INTERRUPT_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",$f("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,b);this.ca=a}A(Js,X);Js.prototype.A=null;Js.prototype.o=null;Js.prototype.j=null;
function Ks(a){a.A||(a.A=a.template.j["ad-container"],a.ca.V().C&&N(a.A,"ad-container-single-media-element-annotations"));return a.A}function Ls(a){a.j&&(a.ca.V().C?(qh(a.j,"ad-video"),Ms(a.ca.S,a.j),a.j=null):(Wd(a.j),vr(a.j)))}
function Ns(a){if(!a.o){if(a.ca.V().gd){var b=Rd("button");N(b,"video-click-tracking");Ud(b,$f("YTP_VISIT_ADVERTISERS_SITE"));var c=Rd("div");N(c,"video-click-tracking-container");c.appendChild(b);Ks(a).appendChild(c)}else b=Rd("div"),ph(b,["video-click-tracking","ad-video"]),Ks(a).appendChild(b);a.o=b}return a.o}Js.prototype.P=function(){Js.K.P.call(this);this.j&&(Ms(this.ca.S,this.j),this.j=null);Ls(this);Vd(Ks(this));Vd(Ns(this));this.o=this.A=null;delete this.ca};
function Os(a){if(!a.j){var b;b=a.ca.S;if(b.j.C){var c=Ng(b.C),d=Yg(b.C);b.ga=new wg(c.x,c.y,d.width,d.height);Ps(b.D);wr(b.C,1);vr(b.C);b=b.C}else b=Qs.getTag(void 0);a.j=b;ph(a.j,["video-stream","ad-video"])}return a.j};function Rs(a,b,c,d){X.call(this,["div",{className:"ytp-button","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.ba="inline-block";this.I=a;this.N=this.o=this.F=null;this.C=!1;this.M("click",this.GF);this.M("keypress",this.HF);this.I.yg(this.element,y(this.Ew,this));rs(this,"button");b&&Ss(this,b);c&&this.ib(c);d&&(this.o=d)}A(Rs,X);function Ss(a,b){b&&""!=b&&(a.F&&qh(a.element,a.F),a.F=b,N(a.element,b))}function Ts(a,b){a.N=b;ns(a.template,"tabindex",b)}f=Rs.prototype;
f.Ew=function(){return this.C?null:this.o?this.o:null};function Us(a){a.C=!1;a.template.update({disabled:null,tabindex:a.N});qh(a.element,"ytp-disabled")}f.disable=function(){this.C=!0;this.template.update({disabled:"true",tabindex:null});N(this.element,"ytp-disabled")};f.GF=function(a){this.C&&(a.stopImmediatePropagation(),a.preventDefault())};f.HF=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.ac("click")};f.P=function(){this.I.Lm(this.element);this.I=null;Rs.K.P.call(this)};function Vs(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.C=null}A(Vs,X);Vs.prototype.F=function(a,b){M(this.j);this.context&&(this.j=qs(y(this.F,this,a,b),b),a.call(this,new Date-this.C))};Vs.prototype.P=function(){M(this.j);this.context=null;Vs.K.P.call(this)};function Ws(a,b){Vs.call(this,2*(a+2),2*(a+2));this.G=a;this.o=b;this.B=this.width/2;this.A=this.height/2}A(Ws,Vs);var Xs=3*Math.PI/2,Ys=2*Math.PI;function Zs(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 $s(a){return Math.round(1E3*a)/10}function at(a){return(!ga(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};var ct=16/9,dt=4/3,et=[.25,.5,1,1.25,1.5,2];function ft(a,b){return window.location.protocol+"//i1.ytimg.com/vi/"+escape(a)+"/"+(b||"hqdefault.jpg")};function gt(a){ts.call(this,a);this.videoId=null}A(gt,ts);
gt.prototype.zg=function(a,b){this.videoId=a?a.id||a.video_id:"";O(this.element,"ytp-suggestion-set",!!this.videoId);var c=Zb(a);c.playlist_length=c.playlist_length||0;c.title=c.title||c.playlist_title;c.author=c.author||c.playlist_author;c.watch=$f("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title});c.duration=a.length_seconds?Zs(a.length_seconds):"";c.episodic_title=c.title;c.episodic_index=parseInt(c.index,10)+1;c.episodic_length=c.playlist_length;this.template.update(c);if(c=a?a.id||a.video_id:""){var d,
e=a.list?a.playlist_iurlhq:a.iurlhq_webp||a.iurlhq,g=a.list?a.playlist_iurlmq:a.iurlmq_webp||a.iurlmq;b&&e?d=e:!b&&g?d=g:d=ft(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:c,b?"hqdefault.jpg":"mqdefault.jpg");ns(this.template,"background","background-image: url("+d+")");ns(this.template,"image",d)}};function ht(a,b){var c;c=["span","videowall-still-info",["span","ytp-endscreen-upnext-content",["span","ytp-endscreen-upnext-header",$f("YTP_PLAYLIST_UP_NEXT")],["span","ytp-endscreen-upnext-title","{{title}}"],["span","ytp-endscreen-upnext-author","{{author}}"],["span","ytp-endscreen-upnext-cancel"],["span","ytp-endscreen-upnext-paused",$f("YTP_AUTOPLAY_PAUSED_2")]]];var d=["a","ytp-endscreen-upnext",{tabIndex:5E3,href:"{{linkurl}}","aria-label":"{{watch}}"}];d.push(["div","videowall-still-image",
{style:"{{background}}"}]);d.push(["div","videowall-still-info-bg"]);d.push(c);gt.call(this,d);this.ca=a;this.F=b;this.F.subscribe("onKeyDown",y(this.cF,this));c=new Rs(a.S.A.B);R(this,c);c.M("click",this.xq,this);c.ib($f("YTP_AUTOPLAY_CANCEL"));c.ea(this.template.j["ytp-endscreen-upnext-cancel"]);Ss(c,"ytp-endscreen-upnext-cancel-button");Ts(c,5100);c.Ba($f("YTP_CANCEL"));c=new Rs(a.S.A.B);R(this,c);c.M("click",this.xq,this);c.ea(this.template.j["videowall-still-info"]);Ss(c,"ytp-endscreen-upnext-close");
this.o=new Ws(44,48);R(this,this.o);N(this.o.Q(),"ytp-endscreen-upnext-canvas");this.o.ea(this.element);this.j=null;this.A=0;this.B=this.C=this.G=null}A(ht,gt);f=ht.prototype;f.zg=function(a,b){ht.K.zg.call(this,a,b);this.G=a.session_data?tj(a.session_data,"&"):null;this.C=a.endscreen_autoplay_session_data?tj(a.endscreen_autoplay_session_data,"&"):null;this.B=a.list;ns(this.template,"linkurl",this.ca.V().getVideoUrl(this.videoId,this.B))};
function it(a){a.j||(Mi("a11y-announce",a.template.j["ytp-endscreen-upnext-header"].innerHTML+" "+a.template.j["ytp-endscreen-upnext-title"].innerHTML),a.A=z(),a.j=new xs(a.Rn,50,a),a.Rn());qh(a.element,"ytp-endscreen-upnext-autoplay-paused")}
f.Rn=function(){var a=Math.min(z()-this.A,1E4),b=this.o,c=a/1E4;b.context.clearRect(0,0,b.width,b.height);b.context.beginPath();b.context.arc(b.B,b.A,b.G+2,0,Ys);b.context.fillStyle="rgba(0, 0, 0, 0.6)";b.context.fill();var d=Math.sqrt(3)/2*b.o;b.context.save();b.context.fillStyle="#fff";b.context.translate(b.B-b.o/3,b.A);b.context.beginPath();b.context.lineTo(0,d/2);b.context.lineTo(b.o/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.B,b.A,b.G,Xs,c*Ys+Xs,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();1E4<=a?this.select(!0):this.j&&this.j.start()};function jt(a){kt(a);a.A=z();a.Rn();N(a.element,"ytp-endscreen-upnext-autoplay-paused")}function kt(a){a.j&&(a.j.dispose(),a.j=null)}f.select=function(a){kt(this);lt(this.ca.S,this.videoId,a?this.C:this.G,this.B||void 0,void 0)};f.xq=function(a){Nh(a);this.ca.V().experiments.A&&this.F.log({cancelButtonClick:"1"});mt(this.ca.S,!0)};
f.cF=function(a){var b=a||window.event;27==(b.keyCode?b.keyCode:b.which)&&(Nh(a),mt(this.ca.S,!0))};f.P=function(){kt(this);ht.K.P.call(this)};function nt(a,b){this.type=a||"";this.id=b||""}function ot(a){return new nt(a.substr(0,2),a.substr(2))}nt.prototype.toString=function(){return this.type+this.id};function pt(a){gt.call(this,["a","videowall-still",{tabIndex:5E3,href:"{{linkurl}}","aria-label":"{{watch}}"},["div","videowall-still-image",{style:"{{background}}"}],["span","videowall-still-featured-label",$f("YTP_FEATURED")],["span","videowall-still-info",["span","videowall-still-info-bg",["span","videowall-still-info-content",["span","videowall-still-info-title","{{title}}"],["span","videowall-still-info-author","{{author}}"],["span","videowall-still-info-duration","{{duration}}"]]]],["div",["videowall-still-listlabel-episodic",
"videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",$f("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"],$f("YTP_PLAYLIST"),
["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix","videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],$f("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.ca=a;this.o={};this.j=null;this.M("click",this.A);this.M("keypress",this.B)}A(pt,gt);
pt.prototype.zg=function(a,b){pt.K.zg.call(this,a,b);this.o=a.session_data?tj(a.session_data,"&"):null;this.j=a.list;ns(this.template,"linkurl",this.ca.V().getVideoUrl(this.videoId,this.j));var c=!1,d=!1,e=!1;"1"==a.is_episodic?d=!0:this.j&&"RD"==ot(this.j).type?e=!0:this.j&&(c=!0);O(this.element,"videowall-still-featured",!!a.featured);O(this.element,"videowall-still-list",c);O(this.element,"videowall-still-episodic",d);O(this.element,"videowall-still-mix",e)};
pt.prototype.select=function(){lt(this.ca.S,this.videoId,this.o,this.j||void 0,void 0)};pt.prototype.A=function(a){!Oh(a)&&at(a)&&(this.select(),Nh(a))};pt.prototype.B=function(a){switch(a.keyCode){case 13:case 32:Oh(a)||(this.select(),Nh(a))}};function qt(a,b,c){us.call(this,a,b,"videowall-endscreen");this.T=c;this.C=[];this.B=this.o=null;this.G=!1;this.I=new xs(pa(N,this.element,"ytp-animate-tiles"),0);R(this,this.I);this.H=new is(["div","ytp-endscreen-content"]);R(this,this.H);this.H.ea(this.element);this.A=new ht(a,c);R(this,this.H);this.A.ea(this.Q());this.$()}A(qt,us);qt.D=96;qt.C=54;qt.o=1;qt.j=2;f=qt.prototype;
f.Qh=function(){qt.K.Qh.call(this);var a=this.j.getVideoData();a&&(this.o=a.U);this.ug();this.bb.subscribe("onResize",this.ug,this);this.bb.subscribe("videodatachange",this.N,this);this.bb.subscribe("autonavchange",this.J,this);this.bb.subscribe("autonavcancel",this.O,this)};f.destroy=function(){this.bb.qa("onResize",this.ug,this);this.bb.qa("videodatachange",this.N,this);Ci(this.C);this.o=[];this.C=[];qt.K.destroy.call(this)};f.Bg=function(){return 1!=this.j.getVideoData().Cg};
f.ua=function(){qt.K.ua.call(this);this.I.start();(this.G||this.B&&this.B!=this.j.getVideoData().clientPlaybackNonce)&&mt(this.j.S,!1);var a=!this.B&&this.Bg()&&rt(this.j.V());rt(this.j.V())&&this.j.V().experiments.A&&this.T.log({cancelButtonShow:a?"1":"0",state:this.Bg()?"enabled":"disabled"});a?2==this.j.getVideoData().Cg?it(this.A):3==this.j.getVideoData().Cg&&jt(this.A):mt(this.j.S,!0)};f.$=function(){qt.K.$.call(this);jt(this.A)};
f.ug=function(){if(this.o&&this.o.length){var a=this.element,b;a:{if(oh(this.j.Oa(),"ad-showing")&&(b=Hd("ad-container"))){b=Yg(b).height+20;break a}b=0}Fg(a,"marginBottom",b+"px");var c=Yg(this.element),d=qt.D,e=qt.C,g=c.width/c.height,h=d/e;b=a=0;for(var k=Math.max(c.width/d,2),l=Math.max(c.height/e,2),p=this.o.length,r=Math.pow(qt.j,2),u=p*r,w=st(this,0,l,k),S=st(this,1,l,k),u=u+(Math.pow(w,2)-r),u=u+(Math.pow(S,2)-r);0<u&&(a<k||b<l);){var T=a/qt.j,ka=b/qt.j,Ca=a<=k-qt.j&&u>=ka*r,He=b<=l-qt.j&&
u>=T*r;if(T/ka*h>g&&He)u-=T*r,b+=qt.j;else if(Ca)u-=ka*r,a+=qt.j;else if(He)u-=T*r,b+=qt.j;else break}h=!1;k=qt.j+w;u>=3*r&&6>=p*r-u&&(b>=k||a>=k)&&S<=qt.j&&(h=!0);d*=a;e*=b;p=1;p=d/e<g?c.height/e:c.width/d;p=Math.min(p,qt.B);d*=p;e*=p;d*=Pc(c.width/d||1,1,qt.A);e*=Pc(c.height/e||1,1,qt.A);d=Math.floor(Math.min(c.width,d));e=Math.floor(Math.min(c.height,e));c=this.H.Q();Vg(c,d,e);Fg(c,{marginLeft:d/-2+"px",marginTop:e/-2+"px"});this.A.zg(this.o[0],!0);O(this.Q(),"ytp-endscreen-takeover",rt(this.j.V())&&
this.Bg()&&!this.B);g=d+qt.o;p=e+qt.o;e=0;r=!1;for(u=0;u<a;u++)for(k=0;k<b;k++)T=S>qt.j&&1<=e&&!r?e+1:e,l=0,h&&u>=a-qt.j&&k>=b-qt.j?l=1:0==k%qt.j&&0==u%qt.j&&(k<w&&u<w?0==k&&0==u&&(l=w):S>qt.j&&k>=b-S&&u>=a-S?k==b-S&&u==a-S&&(r=!0,T=1,l=S):l=qt.j),0!=l&&(d=this.C[e],d||(d=new pt(this.j),this.C[e]=d,ka=d.Q(),c.appendChild(ka)),d.zg(this.o[T],2<l),T=Math.floor(p*k/b),ka=Math.floor(g*u/a),Ca=Math.floor(p*(k+l)/b)-T-qt.o,He=Math.floor(g*(u+l)/a)-ka-qt.o,Lg(d.Q(),ka,T),Vg(d.Q(),He,Ca),Fg(d.Q(),"transitionDelay",
(k+u)/50+"s"),O(d.Q(),"videowall-still-mini",1==l),e++);for(a=this.C.length-1;a>=e;a--)d=this.C[a],Wd(d.Q()),Ai(d);this.C.length=e}};qt.B=1.42;qt.A=1.21;qt.prototype.N=function(){var a=this.j.getVideoData().U;this.o!=a&&(this.o=a,this.ug())};qt.prototype.J=function(a){1==a?(this.G=!1,this.B=this.j.getVideoData().clientPlaybackNonce,kt(this.A),this.D&&this.ug()):(this.G=!0,this.D&&rt(this.j.V())&&this.Bg()&&!this.B&&(2==a?it(this.A):3==a&&jt(this.A)))};
qt.prototype.O=function(a){a?this.J(1):(this.B=null,this.G=!1,this.ug())};function st(a,b,c,d){return 0==b&&c>=3*qt.j&&d>=3*qt.j&&a.o.length&&1==a.o[0].episodic?2*qt.j:qt.j};function tt(a){Nr.call(this,a);Zf({});this.za="endscreen";this.Dc="end";this.o=null;var b=a.V();ut(a)?this.o=new qt(this.j,this.T,this):b.W?this.o=new Hs(this.j,this.T):this.o=new us(this.j,this.T);this.o.ea(this.j.Oa())}A(tt,Nr);function vt(a){return wt(a.V())&&1==a.Mf()}function ut(a){a=a.V();return a.ya&&!a.W}f=tt.prototype;f.Ja=function(a){return vt(a)};f.Pa=function(){tt.K.Pa.call(this);xt(this);this.j.getVideoData().subscribe("dataupdated",this.mr,this)};
f.destroy=function(){this.j.getVideoData().qa("dataupdated",this.mr,this);Qr(this);this.o.F&&this.o.destroy();tt.K.destroy.call(this)};f.load=function(){tt.K.load.call(this);this.o.ua();this.j.V().W&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};f.unload=function(){tt.K.unload.call(this);this.o.$()};
f.Mc=function(a){tt.K.Mc.call(this,a);var b=this.j.getVideoData(),c=!ut(this.j)||!(!b.U||!b.U.length);this.j.V();var b=zt(b,"ypc_module"),d=At(this.j.S);!c||b||d||(this.o.F||this.o.Qh(),"load"==a.getId()&&this.load())};f.ed=function(a){"load"==a.getId()&&this.loaded&&this.unload();tt.K.ed.call(this,a)};f.mr=function(){Qr(this);xt(this)};
function xt(a){var b=Math.max(1E3*(a.j.getVideoData().lengthSeconds-10),0),b=new Mq(b,2147483647,{id:"preload"}),c=new Mq(2147483647,2147483647,{id:"load",priority:6});Or(a,[b,c])}function Bt(a){return vt(a)?new tt(a):null};var Ct,Dt;var Et=Uc,Et=Et.toLowerCase();if(-1!=Et.indexOf("android")){var Ft=Et.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Ft)Ct=Number(Ft[1]);else{var Gt={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},Ht=Et.match("("+Rb(Gt).join("|")+")");Ct=Ht?Gt[Ht[0]]:0}}else Ct=void 0;Dt=0<=Ct;var It,Jt;function Kt(){var a=t("yt.player.utils.videoElement_");a||(a=document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a}function Lt(){if(2.2==Ct)return!0;var a=Kt();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 Mt(){var a=Uc,b;if(b=Lt())a:{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 a}b=!1}if(b)a:{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");
Ud(document.documentElement,c);c=Ed("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break a}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function Nt(a){this.Bn=a||window;this.pg=[]}f=Nt.prototype;f.Bn=null;f.pg=null;f.M=function(a,b,c,d){c=y(c,d||this.Bn);a=P(a,b,c);this.pg.push(a);return a};function Ot(a,b,c,d,e,g){d=y(d,g||a.Bn);b=Kh(b,c,d,e);a.pg.push(b)}f.Ka=function(a){Jh(a);qb(this.pg,a)};f.removeAll=function(){Jh(this.pg);this.pg=[]};function Pt(a,b,c){X.call(this,["div","ytp-drop-down","{{content}}"]);this.A=!1;this.C=0;this.H=this.G=null;this.B=new Nt(this);this.o=new X(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);R(this,this.o);rs(this.o,"listbox");this.j=new Rs(a,"ytp-drop-down-label");R(this,this.j);this.j.M("click",this.TF,this);this.F=new X(["div","ytp-drop-down-label-content","{{content}}"]);R(this,this.F);this.j.Ba([this.F,["div","ytp-drop-down-arrow"]]);this.Ba([this.o,this.j]);n(b)&&this.xe(b);n(c)&&this.H!=
c&&(this.o.Ba(c),this.H=c,Qt(this));Qt(this)}A(Pt,X);f=Pt.prototype;f.xe=function(a){this.G!=a&&(this.F.Ba(a),this.G=a,Qt(this))};f.we=function(){this.A=!1;Qt(this)};f.SF=function(a){a.target&&(ce(this.o.Q(),a.target)||ce(this.j.Q(),a.target))||this.we()};f.TF=function(){this.A=!this.A;Qt(this);this.A&&this.o.Q().focus()};function Rt(a,b){b>a.C&&(a.C=b,a.element.style.minWidth=a.C+"px")}f.focus=function(){this.j.Q().focus()};
function Qt(a){a.A?(a.o.ua(),a.B.M(window,"blur",a.we),a.B.M(document,"click",a.SF)):(a.o.$(),a.B.removeAll());var b=Xg(a.j.Q());a.o.Q().style.bottom=b.height-1+"px";Rt(a,b.width)};function St(a,b){Rs.call(this,a,"ytp-drop-down-menu-button");rs(this,"option");this.j=new X(["div","ytp-drop-down-menu-button-check"]);R(this,this.j);this.A=!!b}A(St,Rs);St.prototype.Ba=function(a){St.K.Ba.call(this,[this.j,a])};St.prototype.Ia=function(a){O(this.element,"ytp-drop-down-menu-button-selected",a);this.A||O(this.element,"ytp-drop-down-menu-button-checked",a);this.element.setAttribute("aria-checked",a)};function Tt(a,b){O(a.element,"ytp-drop-down-menu-button-checked",b)};function Ut(a,b,c,d){X.call(this,["div","ytp-drop-down-menu-content",{tabindex:"{{tabindex}}"},"{{content}}"]);this.H=a;this.C=!!d;this.A={};this.B=[];this.j=this.o=null;this.F=b;this.G=c}A(Ut,X);function Vt(a,b){Eb(a.B,b)||(Jb(a.A,function(a){a.detach()}),a.B=[],b&&D(b,function(a){this.B.push(a);var b=Wt(this,a);this.C&&Tt(b,a==this.j);b.Ia(a==this.o);b.ea(this.element)},a))}Ut.prototype.Ia=function(a){null!=this.o&&Wt(this,this.o).Ia(!1);null!=a&&Wt(this,a).Ia(!0);this.o=a;this.C||(this.j=a)};
function Xt(a,b){var c=Wt(a,"translate");b?c.disable():Us(c)}function Yt(a,b){Jb(a.A,function(a){Ts(a,b)})}function Wt(a,b){var c=a.A[b.toString()];if(c)return c.Ba(a.F(b)),c;c=new St(a.H,a.C);R(a,c);a.A[b.toString()]=c;c.Ba(a.F(b));c.M("click",y(a.G,a,b));return c};function Zt(){Q.call(this);this.element=this.label=null;this.priority=0;this.B=this.C=!1;this.A=null}A(Zt,Q);Zt.prototype.M=function(a,b,c){return this.element.M(a,b,c||this)};Zt.prototype.Ka=function(a){this.element.Ka(a)};function $t(a){Zt.call(this);this.j=2;this.label=Y("YTP_THREED_SHORT");this.menu=new Ut(a,y(this.o,this),y(this.D,this));R(this,this.menu);this.element=new Pt(a,Y("YTP_WEBGL_ANAGLYPH"),this.menu);R(this,this.element);Rt(this.element,100);Vt(this.menu,[0,1,2]);a=2100;Yt(this.menu,a++);a=a++;Ts(this.element.j,a);au(this,this.j);this.priority=1;this.B=!0}A($t,Zt);function au(a,b){a.j=b;a.menu.Ia(b);a.element.xe(a.o(b))}
$t.prototype.o=function(a){switch(a){case 0:return Y("YTP_OFF");case 1:return Y("YTP_WEBGL_3D_2D");case 2:return Y("YTP_WEBGL_3D_ANAGLYPH")}return"."};$t.prototype.D=function(a){this.element.we();au(this,a);this.element.ac("change")};function bu(a,b,c){this.C=null;this.B=-1;this.A=a.getVideoData().sa;0!=this.A||"LR"!=a.getVideoData().Gc("yt3d:enable")&&"true"!=a.getVideoData().Gc("yt3d:enable")||(this.A=1);this.j=new $t(a.S.A.B);this.j.M("change",this.hF,this);this.j.M("change",c,this);this.o=null;this.D=!0;fs(b,this.j);R(b,this.j)}function cu(a){if(Mt())return!1;a=a.getVideoData();var b;(b=1==a.sa||2==a.sa)||(b=a.Gc["3D"])||(a=a.Gc("yt3d:enable"),b="true"==a||"LR"==a||"RL"==a);return b?!0:!1}f=bu.prototype;f.Ni=function(){return"attribute vec3 aVertPos;attribute vec2 aTexCrd;varying vec2 vTexCrd;void main(void) {  vTexCrd = aTexCrd;  gl_Position = vec4(aVertPos, 1.0);}"};
f.Ji=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.oj=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.B=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.B);this.o=a.getUniformLocation(b,"mode");a.uniform1i(this.o,this.j.j);var c=1==this.A;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.mj=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.jj=4;this.C=b};f.nj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.C);a.vertexAttribPointer(this.B,this.C.j,a.FLOAT,!1,0,0)};f.vk=function(){};f.uk=function(){};f.tk=function(){};f.wk=function(){};
f.Ai=function(a,b){this.D&&a.uniform1i(this.o,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.wj=function(){return!0};f.Fj=function(){return!1};f.hF=function(){this.D=!0};f.destroy=function(a){gs(a,this.j)};function du(){this.j=new Float32Array(16);this.A=new Float32Array(16);this.o=new Float32Array(16);this.identity()}du.prototype.identity=function(){this.j.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};du.prototype.get=function(){return this.j};
function eu(a,b){for(var c=0;16>c;c+=4)a.o[c+0]=a.j[c+0]*b[0]+a.j[c+1]*b[4]+a.j[c+2]*b[8]+a.j[c+3]*b[12],a.o[c+1]=a.j[c+0]*b[1]+a.j[c+1]*b[5]+a.j[c+2]*b[9]+a.j[c+3]*b[13],a.o[c+2]=a.j[c+0]*b[2]+a.j[c+1]*b[6]+a.j[c+2]*b[10]+a.j[c+3]*b[14],a.o[c+3]=a.j[c+0]*b[3]+a.j[c+1]*b[7]+a.j[c+2]*b[11]+a.j[c+3]*b[15];c=a.j;a.j=a.o;a.o=c};function fu(a){this.T=a;this.F=new du;this.I=this.H=this.N=this.J=this.O=null;this.j=.872;this.D=!0;this.C=3.14;this.G=this.B=this.A=0;this.o=null}function gu(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=fu.prototype;f.Ni=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};f.Ji=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nvoid main() {  vec3 ray = vec3(sin(pos.x * uFOVx), sin(pos.y * uFOVy),                  -cos(pos.x * uFOVx));  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.oj=function(a,b,c){this.O=a.getUniformLocation(b,"uVMat");this.H=a.getUniformLocation(b,"uFOVx");this.I=a.getUniformLocation(b,"uFOVy");this.N=a.getUniformLocation(b,"uSplr");a.uniform1i(this.N,0);this.o=new X(["span","webgl-pan-button"]);this.o.ea(c);this.o.M("mousedown",this.VA.bind(this));this.o.M("mouseup",this.WA.bind(this));this.o.M("click",this.Mq.bind(this));this.o.M("dblclick",this.Mq.bind(this))};
f.mj=function(a){this.J=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.J);a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,1,2,3]),a.STATIC_DRAW)};f.nj=function(){};f.Mq=function(a){a.stopPropagation()};f.VA=function(a){a.offsetX>a.offsetY?this.o.Q().offsetWidth-a.offsetX>a.offsetY?hu(this,1):hu(this,4):this.o.Q().offsetHeight-a.offsetY<a.offsetX?hu(this,2):hu(this,3);this.T()};f.WA=function(){this.B=0};var iu={65:3,97:3,68:4,100:4,87:1,119:1,83:2,115:2,187:5,107:5,109:6,189:6};
f=fu.prototype;f.uk=function(a){a=iu[a.keyCode];void 0!=a&&hu(this,a)};function hu(a,b){0==a.B&&(a.G=Date.now());a.B=b}f.vk=function(){this.B=0};f.tk=function(a,b){this.C+=3.1415*a*this.j;this.A+=3.1415*b*this.j;this.D=!0};f.wk=function(){this.D=!0};
f.Ai=function(a,b,c,d){if(0!=this.B){c=Date.now();var e=.003*this.j*(c-this.G);switch(this.B){case 3:this.C+=e;break;case 4:this.C-=e;break;case 1:this.A+=e;break;case 2:this.A-=e;break;case 6:this.j+=e;this.j=Math.min(this.j,1.05);break;case 5:this.j-=e,this.j=Math.max(this.j,.32)}this.G=c;this.D=!0}if(this.D){a.o>a.j?(a.uniform1f(this.H,this.j),a.uniform1f(this.I,this.j*a.j/a.o)):(a.uniform1f(this.I,this.j),a.uniform1f(this.H,this.j*a.o/a.j));this.A=Pc(this.A,-1.57075,1.57075);this.F.identity();
c=this.F;var g=this.A,e=Math.sin(g),g=Math.cos(g);c.A.set([1,0,0,0,0,g,e,0,0,-e,g,0,0,0,0,1]);eu(c,c.A);c=this.F;g=this.C;e=Math.sin(g);g=Math.cos(g);c.A.set([g,0,-e,0,0,1,0,0,e,0,g,0,0,0,0,1]);eu(c,c.A);a.uniformMatrix4fv(this.O,!1,this.F.get());this.D=!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.J);a.drawElements(a.TRIANGLES,
6,a.UNSIGNED_SHORT,0)};f.wj=function(){return!1};f.Fj=function(){return 0!=this.B};f.destroy=function(){this.o&&this.o.dispose()};function ju(){this.o=null;this.j=-1}f=ju.prototype;f.Ni=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.Ji=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}"};
f.oj=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.mj=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.jj=4;this.o=b};f.nj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.o);a.vertexAttribPointer(this.j,this.o.j,a.FLOAT,!1,0,0)};f.vk=function(){};f.uk=function(){};f.tk=function(){};f.wk=function(){};
f.Ai=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.wj=function(){return!0};f.Fj=function(){return!1};f.destroy=function(){};function ku(){this.B=null;this.A=-1;this.j=43758.5453;this.o=null}f=ku.prototype;f.Ni=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.Ji=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.oj=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.o=a.getUniformLocation(b,"seed");a.uniform1f(this.o,this.j);this.A=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.A)};f.mj=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.jj=4;this.B=b};f.nj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.B);a.vertexAttribPointer(this.A,this.B.j,a.FLOAT,!1,0,0)};f.vk=function(){};
f.uk=function(){};f.tk=function(){};f.wk=function(){};f.Ai=function(a,b){this.j+=1;a.uniform1f(this.o,this.j);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};f.wj=function(){return!0};f.Fj=function(){return!1};f.destroy=function(){};function lu(a,b,c,d){this.I=c;this.A=a.S.A.o;this.H=10;this.C=!0;this.X=this.T=this.R=this.B=this.o=null;this.F=b;this.j=null;this.Ga=a;this.O=d;this.G=this.D=-1;this.N=!1;this.W=new wg(0,0,0,0);this.J=!1}
function mu(a){a.o=document.createElement("canvas");if(!a.o)return 1;a.I.appendChild(a.o);try{a.B=a.o.getContext("webgl")}catch(b){return 2}if(null==a.B)return 3;var c=nu(a);if(0!=c)return c;a.o.addEventListener("click",a.dF.bind(a),!0);a.o.addEventListener("mousedown",a.eF.bind(a));a.o.addEventListener("mousemove",a.fF.bind(a));a.o.addEventListener("mouseup",a.gF.bind(a));var c=a.B,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.T=d;a.j.mj(c);c=a.B;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.R=d;c=a.B;c.clearColor(0,0,0,1);c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT);c.bindBuffer(c.ARRAY_BUFFER,a.T);c.vertexAttribPointer(a.U,3,c.FLOAT,!1,0,0);
c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,a.R);a.j.nj(c);a.zm();a.A.crossOrigin="use-credentials";return 0}
function nu(a){var b=a.B,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.j.Ni());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.j.Ji());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.U=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.U);a.X=e;a.j.oj(b,a.X,a.I);return 0}f=lu.prototype;f.zm=function(){this.J=!1;this.B&&(this.A.videoWidth||this.A.videoHeight)&&(ou(this),this.j.Ai(this.B,this.A,this.T,this.R));(this.C||this.j&&this.j.Fj())&&this.je()};
function ou(a){if(0==a.H&&null!=a.A.offsetParent){var b,c,d,e;a.j.wj()?(b=a.A.offsetWidth,c=a.A.offsetHeight,e=d=0):(b=a.A.offsetParent.offsetWidth,c=a.A.offsetParent.offsetHeight,d=-a.A.offsetTop,e=-a.A.offsetLeft);var g=new wg(e,d,b,c);zg(a.W,g)||(a.I.style.left=e+"px",a.I.style.top=d+"px",a.o.width=b,a.o.height=c,a.B.o=b,a.B.j=c,a.B.viewport(0,0,b,c),a.j.wk(),a.W=g)}}f.dF=function(a){this.N&&(a.stopPropagation(),this.N=!1)};f.eF=function(a){this.D=a.x;this.G=a.y};
f.fF=function(a){-1!=this.D&&this.j&&(this.j.tk((a.x-this.D)/this.o.width,(a.y-this.G)/this.o.height),this.D=a.x,this.G=a.y,this.N=!0,this.C||this.je())};f.gF=function(){this.G=this.D=-1};f.sB=function(){this.C||this.je();hs(this.O)};function pu(a){a.o&&(Wd(a.o),a.o=null);a.B=null;a.C=!1;a.j&&a.j.destroy(a.O);a.j=null;a.A.removeAttribute("crossorigin");a.A.hidden=!1;a.H=10}f.je=function(){this.J||(requestAnimationFrame(this.zm.bind(this)),this.J=!0)};function qu(a){Nr.call(this,a);this.ki=!0;this.za="webgl";this.subscribe("onResize",this.ZE,this);this.subscribe("onKeyPress",this.XE,this);this.subscribe("onKeyDown",this.WE,this);this.subscribe("onKeyUp",this.YE,this);this.subscribe("onStateChange",this.rj,this);this.C=new X(["div","webgl"]);Sr(this,this.C.Q());this.B=a;a=window.localStorage["yt-html5-player-module-webgl-shadertype"];if(void 0==a||null==a)if(a="",cu(this.B))a="Anaglyph3D";else{var b=this.B.getVideoData();gu(b)?a="Spherical":this.B.V().experiments.D&&
(a="NoOp")}this.o=new lu(this.B,a.toString(),this.C.Q(),this);this.A=!1}A(qu,Nr);qu.j=function(a){return qu.Ja(a)?new qu(a):null};qu.prototype.Ja=function(){return qu.Ja(this.j)};qu.Ja=function(a){var b;(b=cu(a)&&a.V().experiments.sa)||(b=a.getVideoData(),b=gu(b));return b||a.V().experiments.D?!0:!1};f=qu.prototype;f.ZE=function(){if(this.A){var a=this.o;ou(a);a.C||requestAnimationFrame(a.zm.bind(a))}};f.XE=function(){if(this.A){var a=this.o;a.j&&(a.C||a.je())}};
f.YE=function(a){if(this.A){var b=this.o;b.j&&(b.j.vk(a),b.C||b.je())}};f.WE=function(a){if(this.A){var b=this.o;b.j&&(b.j.uk(a),b.C||b.je())}};f.rj=function(a){if(this.A){var b=this.o,c=b.C;b.C=W(a.state,8);b.C&&!c&&b.je()}};f.P=function(){qu.K.P.call(this)};
f.Pa=function(){var a=this.o;a.j=null;null!=a.F&&("Anaglyph3D"==a.F?a.j=new bu(a.Ga,a.O,a.sB.bind(a)):"Spherical"==a.F?a.j=new fu(a.je.bind(a)):"WhiteNoise"==a.F?a.j=new ku:"NoOp"==a.F&&(a.j=new ju));a.j&&(a.H=mu(a),0==a.H?a.A.hidden=!0:(a.Ga.S.o.nk(new ru("html5.missingapi.webgl",!1)),pu(a)));this.A=null!=this.o.j;qu.K.Pa.call(this)};f.destroy=function(){pu(this.o);this.A=!1;qu.K.destroy.call(this)};function su(){var a={volume:100,muted:!1},b=fj("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Pc(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a}function tu(a){dj("yt-player-bandwidth",a,2592E3)};function uu(a,b,c){x(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 vu(a)}function vu(a,b,c){if(ia(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}};function ru(a,b,c){this.errorCode=a;this.j=b;this.details=c||""};function wu(a,b){Q.call(this);this.S=a;this.ue=null;this.eg={};this.bh={};this.A={};this.o={};this.j=null;this.playerType=b;Z(this,"cueVideoById",this.VD);Z(this,"loadVideoById",this.In);Z(this,"cueVideoByUrl",this.WD);Z(this,"loadVideoByUrl",this.kE);Z(this,"playVideo",this.Jn);Z(this,"pauseVideo",this.pauseVideo);Z(this,"stopVideo",this.Ys);Z(this,"clearVideo",this.TD);Z(this,"getVideoBytesLoaded",this.eE);Z(this,"getVideoBytesTotal",this.fE);Z(this,"getVideoLoadedFraction",this.Hn);Z(this,"getVideoStartBytes",
this.hE);Z(this,"cuePlaylist",this.UD);Z(this,"loadPlaylist",this.Us);Z(this,"nextVideo",this.Ws);Z(this,"previousVideo",this.Xs);Z(this,"playVideoAt",this.Kn);Z(this,"setShuffle",this.tE);Z(this,"setLoop",this.qE);Z(this,"getPlaylist",this.Nd);Z(this,"getPlaylistIndex",this.Qs);Z(this,"getPlaylistId",this.Ps);Z(this,"loadModule",this.Ts);Z(this,"unloadModule",this.wE);Z(this,"setOption",this.Ln);Z(this,"getOption",this.pk);Z(this,"getOptions",this.aE);Z(this,"mute",this.Vs);Z(this,"unMute",this.Zs);
Z(this,"isMuted",this.Ss);Z(this,"setVolume",this.setVolume);Z(this,"getVolume",this.Rs);Z(this,"seekTo",this.Kh);Z(this,"getPlayerState",this.getPlayerState);Z(this,"getPlaybackRate",this.cE);Z(this,"setPlaybackRate",this.sE);Z(this,"getAvailablePlaybackRates",this.YD);Z(this,"getPlaybackQuality",this.bE);Z(this,"setPlaybackQuality",this.Mn);Z(this,"getAvailableQualityLevels",this.ZD);Z(this,"getCurrentTime",this.getCurrentTime);Z(this,"getDuration",this.Jh);Z(this,"addEventListener",this.addEventListener);
Z(this,"removeEventListener",this.removeEventListener);Z(this,"getVideoUrl",this.getVideoUrl);Z(this,"getDebugText",this.Os);Z(this,"getVideoEmbedCode",this.gE);Z(this,"getVideoData",this.getVideoData);Z(this,"addCueRange",this.Ns);Z(this,"removeCueRange",this.mE);Z(this,"setSize",this.uE);Z(this,"getApiInterface",this.XD);Z(this,"destroy",this.destroy);Z(this,"showVideoInfo",this.vE);Z(this,"hideVideoInfo",this.iE);Z(this,"onExternalMouseMove",this.lE);xu(this,"apiProxyReady",this.RD);xu(this,"getInternalApiInterface",
this.$D);xu(this,"getAdState",this.getAdState);xu(this,"isNotServable",this.jE);xu(this,"getUpdatedConfigurationData",this.dE);xu(this,"updateRemoteReceivers",this.xE);xu(this,"sendAbandonmentPing",this.nE);xu(this,"setAutonav",this.oE);xu(this,"setAutonavState",this.pE);xu(this,"setMinimized",this.rE);xu(this,"channelSubscribed",v);xu(this,"channelUnsubscribed",v)}A(wu,Q);function Z(a,b,c){a.eg[b]=y(c,a)}function xu(a,b,c){a.bh[b]=y(c,a)}f=wu.prototype;f.XD=function(){return Rb(this.eg)};f.$D=function(){return Rb(this.bh)};
f.Q=function(){return this.ue};f.addEventListener=function(a,b){if(x(b)){var c=function(){t(b).apply(window,arguments)};this.A[b]=c;this.S.subscribe(a,c)}else this.S.subscribe(a,b)};f.qw=function(a,b){var c=x(b)?a+b:a+ja(b);if(!this.o[c]){var d;x(b)?d=function(){t(b).apply(window,arguments)}:d=b;var e=y(function(a){d({target:this.j,data:a})},this);this.o[c]=e;this.addEventListener(a,e)}};f.removeEventListener=function(a,b){if(x(b)){var c=this.A[b];Xb(this.A,b);this.S.qa(a,c)}else this.S.qa(a,b)};
f.rw=function(a,b){var c=x(b)?a+b:a+ja(b),d=this.o[c];d&&(this.removeEventListener(a,d),Xb(this.o,c))};f.getPlayerState=function(){return yu(this.S)};f.Kh=function(a,b){zu(this.S,!0,this.playerType);Au(this.S,a,b,void 0,this.playerType)};f.getCurrentTime=function(){return this.S.getCurrentTime(this.playerType)};f.Jh=function(){return Bu(this.S,1)};f.Rs=function(){return Cu(this.S)};f.setVolume=function(a){this.S.setVolume(a)};f.Ss=function(){return this.S.I.muted};f.Vs=function(){Du(this.S)};
f.Zs=function(){Eu(this.S)};f.Jn=function(){zu(this.S,!0,this.playerType);Fu(this.S,this.playerType)};f.pauseVideo=function(){Gu(this.S,this.playerType)};f.Ys=function(){var a=this.S,b=this.playerType;Hu(a.j)&&Iu(a,!1);Ju(a,"play_pause")||Ku(a,b)};f.TD=function(){};f.cE=function(){return this.S.Z};f.sE=function(a){Lu(this.S,a)};f.YD=function(){return Mu(this.S)};f.bE=function(){return Nu(this.S,this.playerType)};
f.Mn=function(a){var b=this.S,c=b.ta(this.playerType);c&&!b.j.isMobile&&(a=Ou(a,a,!0),Pu(c,"p",a))};f.ZD=function(){var a=this.S.ta(this.playerType);return a?Qu(a):[]};f.eE=function(){return this.Hn()};f.fE=function(){return 1};f.Hn=function(){return rr(this.S.la)};f.hE=function(){return 0};f.uE=function(){this.S.A.qi()};f.oE=function(a){var b=this.S;a=a?2:1;b.getVideoData().Cg=a;b.Ta("autonavchange",a)};f.pE=function(a){var b=this.S;b.getVideoData().Cg=a;b.Ta("autonavchange",a)};
f.rE=function(a){this.S.j.Sp=a};f.Ts=function(a){this.S.F.isAvailable(a)&&(a=Ru(this.S.F,a))&&!a.loaded&&a.load()};f.wE=function(a){this.S.F.isAvailable(a)&&(a=Ru(this.S.F,a))&&a.loaded&&a.unload()};f.In=function(a,b,c){a=Su(this.S,vu(a,b,c),this.playerType);zu(this.S,a,this.playerType)};f.VD=function(a,b,c){var d=this.playerType;Tu(this.S,new Uu(vu(a,b,c)),d)};
f.kE=function(a,b,c){a=uu(a,b,c);b=Su(this.S,a,this.playerType);zu(this.S,b,this.playerType);b=this.S;(a=rf(new J(a.mediaContentUrl)))&&Vu(b.j,a)};f.WD=function(a,b,c){a=uu(a,b,c);b=this.playerType;Tu(this.S,new Uu(a),b);b=this.S;(a=rf(new J(a.mediaContentUrl)))&&Vu(b.j,a)};f.getVideoUrl=function(){return this.S.V().getVideoUrl(bb(Wu(this.S).videoId),Xu(this.S)||void 0,Yu(this))};function Yu(a){var b=a.S.getCurrentTime(1);a=Bu(a.S,1);return 10<b&&10<a-b?Math.floor(b):void 0}f.Os=function(){return Zu(this.S)};
f.gE=function(){return $u(this.S)};f.Ns=function(a,b,c){return av(this.S,a,b,c)};f.mE=function(a){a:{for(var b=this.S,c=b.o.F.j.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){e.bb.clear();b.o.F.Ih(e);bv(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};f.Us=function(a,b,c,d){var e=this.S;e.U=!1;cv(e,a,b,c,d);zu(this.S,!0,this.playerType)};f.UD=function(a,b,c,d){var e=this.S;e.U=!0;cv(e,a,b,c,d)};f.Ws=function(){dv(this.S);zu(this.S,!0,this.playerType)};
f.Xs=function(){ev(this.S);zu(this.S,!0,this.playerType)};f.Kn=function(a){fv(this.S,a);zu(this.S,!0,this.playerType)};f.tE=function(a){var b=this.S;b.B&&gv(b.B,a)};f.qE=function(a){var b=this.S;b.B&&(b.B.qf=a)};f.Nd=function(){var a=this.S.B;if(!a)return null;for(var b=[],c=0;c<a.Kc;c++){var d=hv(a,c);d&&b.push(d.videoId)}return b};f.Qs=function(){var a;a=this.S;a=a.B?a.B.Va:null;return null==a?-1:a};f.Ps=function(){return Xu(this.S)};f.Ln=function(a,b,c){return iv(this.S,a,b,c)};
f.pk=function(a,b,c){return iv(this.S,a,b,c)};f.aE=function(a){return jv(this.S,a)};f.getVideoData=function(){var a=this.S.ta(this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.Ps();b&&(a.list=b);return a};f.vE=function(){this.S.A.T.ua()};f.iE=function(){this.S.A.T.$()};f.getAdState=function(){return this.S.getAdState()};
f.jE=function(a){var b=this.S;a!=b.X.args.video_id?a=!1:(a=(a=b.o)?a.getPlayerState():null,a=!(!a||!W(a,128)||5!=kv[a.j.errorCode]));return a};f.dE=function(){var a=this.S,b=a.X.clone(),c=b.args,a=Wu(a),d=Zb(a.B);!a.Sa&&0<a.startSeconds&&(d.start=a.startSeconds);qa(c,d);return b};f.xE=function(a,b){var c=this.S;c.G&&lv(c.G,a,b);mv(c.j)&&6!=c.J&&(c.j.Gg=!nb(a),c.j.Gg?(1!=c.J&&3!=c.J||!b||nv(c.H),a.length&&1!=c.J&&ov(c)):nv(c.G))};f.destroy=function(){this.S.dispose()};
f.nE=function(){var a=this.S.ta();a&&!W(a.getPlayerState(),128)&&(pv(a),qv(a))};f.lE=function(){this.S.A.Qt()};f.RD=function(){var a=this.S;a.j.experiments.J&&a.L("onMouseMoveCapture")};f.P=function(){if(this.ue){for(var a in this.eg)this.ue[a]=null;for(a in this.bh)this.ue[a]=null;this.ue=null}this.A=this.o=null;wu.K.P.call(this)};function rv(a,b){wu.call(this,a,b);Z(this,"addInfoCardXml",this.yE);Z(this,"cueVideoByPlayerVars",this.zE);Z(this,"loadVideoByPlayerVars",this.$s);Z(this,"preloadVideoByPlayerVars",this.GE);Z(this,"seekBy",this.bt);Z(this,"enableLicenseIntercept",this.AE);Z(this,"updatePlaylist",this.ME);Z(this,"resumeLicenseSession",this.HE);Z(this,"updateLastActiveTime",this.LE);Z(this,"updateVideoData",this.NE);Z(this,"getStoryboardFormat",this.EE);Z(this,"getProgressState",this.Lh);Z(this,"getHousebrandProperties",
this.CE);Z(this,"setPlaybackQualityRange",this.KE);Z(this,"getCurrentPlaylistSequence",this.Bw);Z(this,"canPlayType",this.canPlayType);Z(this,"sendVideoStatsEngageEvent",this.IE);Z(this,"handleGlobalKeyDown",this.FE);Z(this,"getAudioTrack",this.qk);Z(this,"setAudioTrack",this.JE);Z(this,"getAvailableAudioTracks",this.BE);Z(this,"getMaxPlaybackQuality",this.DE)}A(rv,wu);f=rv.prototype;f.Ns=function(a,b,c,d,e){return av(this.S,a,b,c,d,e)};f.yE=function(a,b){var c=this.S;c.j.aa=a;c.j.md=b};
f.zE=function(a){var b=this.playerType;Tu(this.S,new Uu(a),b)};f.getPlayerState=function(a){return yu(this.S,a)};f.$s=function(a){Su(this.S,a,this.playerType)};f.GE=function(a){var b=this.S,c=this.playerType;c&&1!=c||b.O&&b.O.getVideoData().videoId==a.videoId||(a=new Uu(a),sv(b,a))};f.Jn=function(){Fu(this.S,this.playerType)};f.Kh=function(a,b){Au(this.S,a,b,void 0,this.playerType)};f.Us=function(a,b,c,d){var e=this.S;e.U=!1;cv(e,a,b,c,d)};f.Ws=function(){dv(this.S)};f.Xs=function(){ev(this.S)};
f.Kn=function(a){fv(this.S,a)};f.bt=function(a,b,c){var d=this.S,e=this.playerType;Au(d,d.getCurrentTime()+a,b,c,e)};f.AE=function(){var a=this.S;a.hb||(a.hb=!0,a.ya={})};f.ME=function(){var a=this.S;tv(a);a.Ta("onPlaylistUpdate")};f.HE=function(a,b){var c=this.S,d=c.ya[a];d&&(uv(d,b),d.start(),delete c.ya[a])};f.LE=function(){vv()};f.NE=function(a){var b=this.S.ta(this.playerType||1);b&&(b=b.j,wv(b,a),b.L("dataupdated"))};f.EE=function(){var a=this.S.getVideoData();return a.B.storyboard_spec||a.B.live_storyboard_spec};
f.CE=function(){var a=this.S.V();return{Pb:a.Pb,Kb:a.Kb(),yh:a.yh}};f.getVideoData=function(){var a=rv.K.getVideoData.call(this),b=this.S.ta(this.playerType),b=b?b.getVideoData():{};a.cpn=b.clientPlaybackNonce;a.isLive=b.Sa;return a};f.getCurrentTime=function(a){return a?this.S.getCurrentTime(a):rv.K.getCurrentTime.call(this)};f.Jh=function(a){return a?Bu(this.S,a):rv.K.Jh.call(this)};
f.Lh=function(){var a=this.S.getVideoData(),b=!a.Sa||a.Ab,c=a.clipEnd,a=a.clipStart,d=this.getCurrentTime(),e=this.Jh(),g=this.S.ta(void 0);if(g)var h=qr(g.o),g=isNaN(h)?g.getCurrentTime():h;else g=0;return{allowSeeking:b,clipEnd:c,clipStart:a,current:d,displayedStart:-1,duration:e,loaded:g,seekableEnd:xv(this.S.ta()),seekableStart:yv(this.S.ta().j)}};f.Hn=function(a){var b=this.S;return(b.D&&2==b.D.getPlayerType())==(2==a)?rr(b.la):0};f.canPlayType=function(a){return this.S.canPlayType(a)};
f.KE=function(a,b){zv(this.S,a,this.playerType,b)};f.Bw=function(){var a;var b=this.S.getVideoData();a=this.S.getCurrentTime();if(b.o&&b.Sa){var c=b.o.j[b.j.id];c&&c.index?(b=c.index.Pg(a),c=c.index.nf(b),a={sequence:b,elapsed:a-c}):a=null}else a=null;return a};f.IE=function(a){var b=this.S,c=b.ta(this.playerType);c&&b.j.ob.contains(a.toString())&&c.B&&(b=Av(c.B,"engage"),b.G=a,b.send())};f.FE=function(a,b){this.S.A.Bk(a,b)};f.qk=function(){return Bv(this.S,this.playerType)};
f.JE=function(a){var b=this.S.ta(this.playerType);b&&Cv(b,a)};f.BE=function(){return Dv(this.S.ta(this.playerType))};f.DE=function(){var a=this.S.ta(this.playerType);return a&&a.getVideoData().j?Ev(Fv(a.da,a.j)):"unknown"};function Gv(a,b){rv.call(this,a,b)}A(Gv,rv);f=Gv.prototype;f.getPlayerType=function(){return this.playerType};f.In=function(a,b,c){Su(this.S,vu(a,b,c),this.playerType)};function Hv(a,b){a.S.A.A.appendChild(b)}f.Oa=function(){return this.S.A.Q()};f.Mf=function(){return this.S.Mf()};f.V=function(){return this.S.V()};f.Nd=function(){return this.S.B};f.getVideoData=function(){var a=this.S.ta(this.playerType);return a&&a.getVideoData()};f.gh=function(){return this.S.V().cb};
f.addEventListener=function(a,b,c){this.S.subscribe(a,b,c)};f.removeEventListener=function(a,b,c){this.S.qa(a,b,c)};f.Mn=function(a){zv(this.S,a,this.playerType)};f.Os=function(a){return Zu(this.S,a)};f.getVideoUrl=function(a,b){return this.S.V().getVideoUrl(bb(Wu(this.S).videoId),Xu(this.S)||void 0,a?void 0:Yu(this),b)};var Iv={DG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",HG:"ERROR_AUTHENTICATION_EXPIRED",IG:"ERROR_AUTHENTICATION_MALFORMED",JG:"ERROR_AUTHENTICATION_MISSING",KG:"ERROR_BAD_REQUEST",RG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",ZG:"ERROR_CGI_PARAMS_MALFORMED",$G:"ERROR_CGI_PARAMS_MISSING",gH:"YTP_DEVICE_FALLBACK",lH:"YTP_ERROR_LICENSE",nH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",oH:"YTP_ERROR_GEO_FAILURE",FH:"YTP_ERROR_GENERIC",GH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",NH:"YTP_ERROR_INVALID_DRM_MESSAGE",
SH:"LEARN_MORE",sI:"YTP_ERROR_NOT_SIGNED_IN",KI:"YTP_ERROR_PURCHASE_NOT_FOUND",LI:"YTP_ERROR_PURCHASE_REFUNDED",QI:"YTP_ERROR_RENTAL_EXPIRED",TG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",UG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",WG:"YTP_ERROR_CAST_TOKEN_FAILED",VG:"YTP_ERROR_CAST_TOKEN_EXPIRED",XG:"YTP_ERROR_CAST_TOKEN_MALFORMED",bJ:"YTP_ERROR_SERVER_ERROR",lJ:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",nJ:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",oJ:"YTP_ERROR_STREAMING_NOT_ALLOWED",pJ:"YTP_ERROR_STREAMING_UNAVAILABLE",
TI:"YTP_ERROR_RETRYABLE_ERROR",CJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",BJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",JJ:"YTP_ERROR_UNSUPPORTED_DEVICE",KJ:"YTP_ERROR_UNUSUAL_ACTIVITY",UJ:"YTP_ERROR_VIDEO_FORBIDDEN",WJ:"YTP_ERROR_VIDEO_NOT_FOUND"},Jv={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 Kv(a){return(a=Jv[a.toString()])?a:"YTP_ERROR_LICENSE"};var Lv={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 Mv(a,b,c){this.o=a;this.j=b;this.A=c}var Nv={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},Ov=["widevine","playready"];function Pv(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}function Qv(a,b,c,d){return!(0!=b.indexOf("audio/mp4")||"widevine"!=c||!a.canPlayType(b)||!a.canPlayType('video/mp4; codecs="avc1"',d))}
function Rv(a,b,c){var d,e=Pv();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<Ov.length;g++){var h=Ov[g];if(c[h])for(var k=Nv[h],l=0;l<k.length;l++){var p=k[l];if(d(b,p)||Qv(a,b,h,p))return new Mv(h,p,c[h])}}return null};function Sv(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.cj=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1}Sv.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.cj+"_"+this.id+"_"+this.isDefault};function Tv(a){a=a||{};this.I=a.formats||"";this.C=a.format||1;if(1==this.C)for(var b=this.I.split(","),c=0;c<b.length;c++){var d=parseInt(b[c],10);isNaN(d)||(this.C=Math.max(d,this.C))}this.j=a.languageCode||"";this.D=a.languageName;this.A=a.kind||"";this.B=a.name;this.Ea=a.id;this.J=a.is_servable;this.isDefault=a.is_default;this.G=a.is_translateable;this.H=a.url||null;this.F=a.vss_id||"";this.o=null;a.translationLanguage&&(this.o=new Sv(a.translationLanguage))}
function Uv(a){var b={format:a.C,languageCode:a.j,languageName:a.D,displayName:Vv(a),kind:a.A,name:a.B,id:a.Ea,is_servable:a.J,is_default:a.isDefault,is_translateable:a.G};a.o&&(a=a.o,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.cj,id:a.id,is_default:a.isDefault});return b}
function Vv(a){var b=a.D||"",c=[b];"asr"==a.A&&-1==b.indexOf("(")&&c.push(" (",$f("YTP_ASR_SETTINGS_LABEL"),")");a.B&&c.push(" - ",a.B);a.o&&c.push(" >> ",a.o.languageName);return c.join("")}Tv.prototype.toString=function(){return this.j+": "+Vv(this)+" - "+this.F};function Wv(a,b){var c=new Tv;c.j=a.j;c.D=a.D;c.B=a.B;c.A=a.A;c.isDefault=!1;c.G=a.G;c.F=a.F;c.H=a.H;c.o=b;return c}Tv.prototype.equals=function(a){return a?this.toString()==a.toString():!1};function Xv(a,b){this.id=a;this.bd=b;this.captionTracks=[];this.Fi=this.ml=null;this.vo=0}Xv.prototype.toString=function(){return this.bd.name};var Yv={ou:"auto",wJ:"tiny",TH:"light",SMALL:"small",nv:"medium",LARGE:"large",tH:"hd720",pH:"hd1080",qH:"hd1440",rH:"hd2160",sH:"hd2880",DH:"highres",UNKNOWN:"unknown"},Zv={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},$v="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");function aw(a,b,c){this.o=a||0;this.j=b||0;this.A=c}aw.prototype.equals=function(a){return this.o==a.o&&this.j==a.j&&this.A==a.A};function Ou(a,b,c){return new aw(Zv[a]||0,Zv[b]||0,c)}var bw=Ou("auto","large",!1),cw=Ou("auto","auto",!1);function dw(a){var b=Zv.auto;return a.o==b&&a.j==b}function ew(a){return a.A&&!!a.o&&a.o==a.j}
function fw(a,b){if(b.A&&dw(b))return cw;if(b.A||dw(a))return b;if(a.A||dw(b))return a;var c=a.o&&b.o?Math.max(a.o,b.o):a.o||b.o,d=a.j&&b.j?Math.min(a.j,b.j):a.j||b.j,c=Math.min(c,d);return c==a.o&&d==a.j?a:new aw(c,d,!1)}function Ev(a){var b=a.j||a.o;return Ub(Yv,function(a){return Zv[a]==b})||"auto"}aw.prototype.B=function(a){if(!a.video)return!1;a=Zv[a.video.quality];return this.o<=a&&(!this.j||this.j>=a)};function gw(a,b){this.o=a;this.j=b||null;this.audioTracks=[];if(this.j){var c={};D(this.j,y(function(a){if(a.bd&&!c[a.id]){var b=new Xv(a.id,a.bd);c[a.id]=b;this.audioTracks.push(b)}},this))}}function hw(a,b){var c=b||cw,c=gb(a.o,y(c.B,c)),c=E(c,function(a){return a.video.quality});yb(c);return c}function iw(a){var b={};E(a.o,function(a){b[a.video.quality]=a.video.fps});return b};function jw(a){return(a=a.exec(Uc))?a[1]:""}var kw=function(){if(Wh)return jw(/Firefox\/([0-9.]+)/);if(dd||cd)return pd;if($h)return jw(/Chrome\/([0-9.]+)/);if(ai&&!(bd()||Xc("iPad")||Xc("iPod")))return jw(/Version\/([0-9.]+)/);if(Xh||Yh){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Uc))return a[1]+"."+a[2]}else if(Zh)return(a=jw(/Android\s+([0-9.]+)/))?a:jw(/Version\/([0-9.]+)/);return""}();function lw(a,b){this.B=a;this.j=!!b;this.A=!1;this.o={}}lw.prototype.dispose=function(){if(!this.A){if(this.j)try{URL.revokeObjectURL(this.B)}catch(a){}this.A=!0}};lw.prototype.ma=function(){return this.A};function or(a){return a.j?a.B:We(a.B,a.o)}lw.prototype.equals=function(a){return null!=a&&or(a)==or(this)};function mw(a,b){this.o=a;this.A=b;this.B=0;Object.defineProperty(this,"timestampOffset",{get:this.kD,set:this.oD});Object.defineProperty(this,"buffered",{get:this.iD})}f=mw.prototype;f.append=function(a){this.o.webkitSourceAppend(this.A,a)};f.abort=function(){this.o.webkitSourceAbort(this.A)};f.iD=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new nw:this.o.webkitSourceBuffered(this.A)};f.kD=function(){return this.B};
f.oD=function(a){this.B=a;this.o.webkitSourceTimestampOffset(this.A,a)};function nw(){this.length=0};function ow(a){this.activeSourceBuffers=this.sourceBuffers=[];this.j=a;this.o=NaN;this.A=0;Object.defineProperty(this,"duration",{get:this.jD,set:this.nD});Object.defineProperty(this,"readyState",{get:this.lD});this.j.addEventListener("webkitsourceclose",y(this.mD,this),!0)}f=ow.prototype;f.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};f.rG=function(){return this.j.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.A++).toString();this.j.webkitSourceAddId(b,a);a=new mw(this.j,b);this.sourceBuffers.push(a);return a};f.lD=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.mD=function(){ob(this.sourceBuffers)};
f.jD=function(){return this.o};f.nD=function(a){this.o=a;this.j.webkitSourceSetDuration&&this.j.webkitSourceSetDuration(a)};function pw(a){this.B=[];this.I=a||null}function qw(a,b,c,d){for(var e=0;e<c.length;e++)a.M(b,c[e],d)}pw.prototype.M=function(a,b,c){c=y(c,this.I||this);a.addEventListener(b,c,!1);this.B.push(a,b,c)};pw.prototype.removeAll=function(){if(this.B)for(;this.B.length;){var a=this.B.shift(),b=this.B.shift(),c=this.B.shift();a.removeEventListener&&a.removeEventListener(b,c)}};pw.prototype.ma=function(){return null===this.B};pw.prototype.dispose=function(){this.removeAll();this.B=null};function rw(a,b,c,d){pw.call(this);this.o=this.j=null;this.C=b;this.A=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new ow(a);this.D=this.F=null;qw(this,this.A,["sourceopen","webkitsourceopen"],pa(this.H,d,c));qw(this,this.A,["sourceclose","webkitsourceclose"],this.G)}A(rw,pw);function sw(a,b){a.D=b}function tw(a){if(!a.F){var b;b=a.A;b=b.rG?b.j.webkitMediaSourceURL:window.URL.createObjectURL(b);a.F=new lw(b,!0)}return a.F}
rw.prototype.ig=function(a){uw(this)?this.A.duration=a:this.C=a};function uw(a){return"open"==a.A.readyState}function vw(a){return"closed"==a.A.readyState}function ww(a){return a.j.updating||a.o.updating}function xw(a){return a.j?!!a.j.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}rw.prototype.H=function(a,b){isNaN(this.C)||(this.A.duration=this.C,this.C=NaN,this.j=this.A.addSourceBuffer(a),this.o=this.A.addSourceBuffer(b),this.D&&(this.D(this),this.D=null))};
rw.prototype.G=function(){this.dispose()};function yw(a){if(/opus/.test(a)&&($h&&!(0<=Ra(kw,"38"))||hr()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!fr("(ps4; leanback shell)"))return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!Kt().canPlayType(a)};function zw(a){this.Tb=a}var Aw="9h8(H*".split(""),Bw="h98H(*".split(""),Cw="oMavAV".split("");zw.prototype.j=function(){return null};zw.prototype.zl=function(){return this.Tb.video.quality};var Dw={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Ew={"application/x-mpegURL":"maybe"},Fw={"application/x-mpegURL":"maybe"};
function Gw(a,b){if(!Lt())return[];var c=Hw(a,b);a=!c.length&&b?Hw(a,!1):c;for(var d={},c=Kt(),e=0;e<a.length;e++){var g=a[e];if(Iw(c,g.Tb.mimeType)&&!Jw(g)){var h=g.zl();d[h]&&2!=d[h].Tb.j||(d[h]=g)}}var k=[];d.auto&&k.push(d.auto);D($v,function(a){(g=d[a])&&k.push(g)});return k}function Iw(a,b){var c;if(!(c=a.canPlayType(b))){var d;dr?d=Fw[b]:2.2==Ct?d=Dw[b]:fr("android")&&fr("chrome")&&(d=Ew[b]);c=d||""}return c}function Jw(a){return Kw(a.Tb)in Lw||er()&&"5"==Kw(a.Tb)}
function Mw(){var a=fr("android")&&fr("chrome")&&!(0<=Ra(kw,29)),b=fr("google tv")&&fr("chrome")&&!(0<=Ra(kw,30));return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var Lw={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function Hw(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];ed&&0!=e.Tb.video.j&&1==e.Tb.j||0!=e.Tb.video.j==b&&c.push(e)}return c}
function Nw(a,b){if(!b.j)return a[0];for(var c=0;c<a.length;c++){var d=a[c].Tb,e=Zv[d.video.quality];if((!b.A||"auto"!=d.video.quality)&&e<=b.j)return a[c]}return a[a.length-1]}
function Ow(a,b){function c(a){return!!d[a]}var d={},e,g;for(g in a.j){var h=a.j[g];if(yw(h.info.mimeType)){if(h.info.B){e||(e=Kt());if(!Rv(e,h.info.mimeType,h.info.B))continue;if(!(261!=Kw(h.info)||(!er()||b&&b.gb)&&e.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))continue}d[h.info.A]=d[h.info.A]||[];d[h.info.A].push(h.info)}}e=Aw;if(fr("cros armv7")||fr("windows nt 5.1"))e=Bw;g=F(e,c);e=F(Cw,c);if(!g||!e)return null;if("9"==g&&d.h){var h=function(a,b){return Math.max(a,b.video.height)},
k=hb(d["9"],h,0);hb(d.h,h,0)>1.5*k&&(g="h")}g=d[g];e=d[e];Bb(g,function(a,b){return b.video.width-a.video.width||b.Aa-a.Aa});Bb(e,function(a,b){return b.Aa-a.Aa});return new gw(g,e)};var Pw={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 Qw(a,b){this.C=[];this.N=a;this.J=b||null;this.B=this.j=!1;this.A=void 0;this.H=this.O=this.F=!1;this.D=0;this.o=null;this.G=0}Qw.prototype.cancel=function(a){if(this.j)this.A instanceof Qw&&this.A.cancel();else{if(this.o){var b=this.o;delete this.o;a?b.cancel(a):(b.G--,0>=b.G&&b.cancel())}this.N?this.N.call(this.J,this):this.H=!0;this.j||Rw(this,new Sw)}};Qw.prototype.I=function(a,b){this.F=!1;Tw(this,a,b)};function Tw(a,b,c){a.j=!0;a.A=c;a.B=!b;Uw(a)}
function Vw(a){if(a.j){if(!a.H)throw new Ww;a.H=!1}}function Rw(a,b){Vw(a);Tw(a,!1,b)}function Xw(a,b,c){Yw(a,b,null,c)}function Yw(a,b,c,d){a.C.push([b,c,d]);a.j&&Uw(a)}Qw.prototype.then=function(a,b,c){var d,e,g=new en(function(a,b){d=a;e=b});Yw(this,d,function(a){a instanceof Sw?g.cancel():e(a)});return g.then(a,b,c)};cn(Qw);function Zw(a){return ib(a.C,function(a){return ha(a[1])})}
function Uw(a){if(a.D&&a.j&&Zw(a)){var b=a.D,c=$w[b];c&&(m.clearTimeout(c.Ea),delete $w[b]);a.D=0}a.o&&(a.o.G--,delete a.o);for(var b=a.A,d=c=!1;a.C.length&&!a.F;){var e=a.C.shift(),g=e[0],h=e[1],e=e[2];if(g=a.B?h:g)try{var k=g.call(e||a.J,b);n(k)&&(a.B=a.B&&(k==b||k instanceof Error),a.A=b=k);dn(b)&&(d=!0,a.F=!0)}catch(l){b=l,a.B=!0,Zw(a)||(c=!0)}}a.A=b;d&&(k=y(a.I,a,!0),d=y(a.I,a,!1),b instanceof Qw?(Yw(b,k,d),b.O=!0):b.then(k,d));c&&(b=new ax(b),$w[b.Ea]=b,a.D=b.Ea)}
function Ww(){ra.call(this)}A(Ww,ra);Ww.prototype.message="Deferred has already fired";Ww.prototype.name="AlreadyCalledError";function Sw(){ra.call(this)}A(Sw,ra);Sw.prototype.message="Deferred was canceled";Sw.prototype.name="CanceledError";function ax(a){this.Ea=m.setTimeout(y(this.o,this),0);this.j=a}ax.prototype.o=function(){delete $w[this.Ea];throw this.j;};var $w={};function bx(a,b){var c=b||{},d=c.document||document,e=Rd("SCRIPT"),g={Jr:e,Cb:void 0},h=new Qw(cx,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){dx(e,!0);Rw(h,new ex(1,"Timeout reached for loading script "+a))},l),g.Cb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(dx(e,c.cw||!1,k),Vw(h),Tw(h,!0,null))};e.onerror=function(){dx(e,!0,k);Rw(h,new ex(0,"Error while loading script "+a))};Id(e,{type:"text/javascript",
charset:"UTF-8",src:a});fx(d).appendChild(e);return h}function fx(a){var b=a.getElementsByTagName("HEAD");return!b||nb(b)?a.documentElement:b[0]}function cx(){if(this&&this.Jr){var a=this.Jr;a&&"SCRIPT"==a.tagName&&dx(a,!0,this.Cb)}}function dx(a,b,c){null!=c&&m.clearTimeout(c);a.onload=v;a.onerror=v;a.onreadystatechange=v;b&&window.setTimeout(function(){Wd(a)},0)}function ex(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ra.call(this,c);this.code=a}A(ex,ra);function gx(a,b){this.o=new J(a);this.j=b?b:"callback";this.Cb=5E3}var hx=0;gx.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(hx++).toString(36)+z().toString(36);m._callbacks_||(m._callbacks_={});var e=this.o.clone();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||sf(e,g,a[g]);b&&(m._callbacks_[d]=ix(d,b),sf(e,this.j,"_callbacks_."+d));b=bx(e.toString(),{timeout:this.Cb,cw:!0});Yw(b,null,jx(d,a,c),void 0);return{Ea:d,Ho:b}};
gx.prototype.cancel=function(a){a&&(a.Ho&&a.Ho.cancel(),a.Ea&&kx(a.Ea,!1))};function jx(a,b,c){return function(){kx(a,!1);c&&c(b)}}function ix(a,b){return function(c){kx(a,!0);b.apply(void 0,arguments)}}function kx(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=v)};function lx(a,b){U.call(this);this.B=b+"feeds/api/users/live/broadcasts/"+a+"/states?v=2&alt=json-in-script";this.j=new vn(15E3+Math.floor(3E4*Math.random()));zm(this.j,"tick",y(this.o,this));this.o();this.j.start()}A(lx,U);lx.prototype.P=function(){this.j.dispose();lx.K.P.call(this)};lx.prototype.o=function(){(new gx(this.B)).send(null,y(this.A,this),y(this.C,this))};lx.prototype.A=function(a){this.L("payload",a);wn(this.j,15E3+Math.floor(3E4*Math.random()))};
lx.prototype.C=function(){this.L("error");var a=this.j.j;192E4>a&&wn(this.j,2*a)};function mx(){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.o=0;this.j=null}A(mx,X);
mx.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.A())};function nx(a){var b=Math.floor(z()/1E3);return b>a?$f("YTP_FRESCA_STARTING_SOON_MESSAGE"):Zs(a-b)}
mx.prototype.A=function(){var a;a=this.j;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;O(this.element,"ytp-fresca-show-countdown",a);a&&(this.template.update({countdown:nx(this.j.startTime)}),M(this.o),this.o=L(y(this.A,this),1E3))};mx.prototype.P=function(){M(this.o);mx.K.P.call(this)};function ox(a){this.messageText=[];this.j=!1;a&&px(this,a)}ox.prototype.state=-1;function qx(a){return{imageUrl:a.imageUrl,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function px(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=Pw[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=E(d,function(a){return a.$t}));if(c=c.entry)a.j=0<=kb(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}ox.prototype.getMessage=function(){return this.messageText.length?this.messageText:rx(this)};
function rx(a){switch(a.state){case 6:return a.j?[]:[$f("YTP_FRESCA_STAND_BY_MESSAGE"),$f("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[$f("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[$f("YTP_FRESCA_EVENT_OVER_MESSAGE"),$f("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[$f("YTP_FRESCA_STAND_BY_MESSAGE")]}};function sx(a){Nr.call(this,a);Zf({YTP_FRESCA_STARTING_SOON_MESSAGE:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f...",YTP_FRESCA_EVENT_OVER_MESSAGE:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430.",YTP_FRESCA_COMPLETE_MESSAGE:"\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u043c \u0437\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440!",
YTP_FRESCA_STAND_BY_MESSAGE:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435.",YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE:"\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0443 \u043d\u0430\u0441 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b."})}A(sx,Nr);f=sx.prototype;f.za="fresca";f.Dc="fresca";
f.vj=!1;f.vh=!1;f.Ja=function(){return zt(this.j.getVideoData(),"fresca_module")};
f.Pa=function(a){sx.K.Pa.call(this);Iw(Kt(),"application/x-mpegURL")||Mw()?(this.vj=this.vh=!1,Yr(this,["play_pause","seek"]),this.A=new mx,Hv(this.j,this.A.Q()),this.B=a||new lx(this.j.getVideoData().videoId,this.j.V().Ce),this.B.subscribe("payload",this.hB,this),this.B.subscribe("error",this.gB,this),this.subscribe("onStateChange",this.jt,this)):tx(this.j.S.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
f.destroy=function(){this.qa("onStateChange",this.jt,this);Ci(this.B,this.A);sx.K.destroy.call(this)};f.jt=function(a){this.o&&(this.vj=W(a.state,2),(ux(a,16)||this.vj)&&vx(this,this.o))};f.gB=function(){this.vh||(wx(this,new ox),vx(this,this.o))};f.hB=function(a){wx(this,new ox(a));a=this.j.getVideoData();6!=this.o.state||a.aa||a.O?vx(this,this.o):this.j.In(a.videoId)};
function vx(a,b){var c=6>b.state;!c&&a.j.S.o.oa&&(b.imageUrl||b.messageText.length)&&(c=!0);a.vj&&!a.j.V().ya&&(c=!0);b.j||(c=!0);if(!a.vh)switch(b.state){case 6:b.j&&(a.vh=!0,Zr(a,["play_pause","seek"]),Rr(a));break;case 8:case 7:c=a.vh=!0}c&&a.A.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function xx(a){return zt(a.getVideoData(),"fresca_module")?new sx(a):null}function wx(a,b){a.o!=b&&(a.o=b,a.j.V().Kb()&&a.L("publish_external_event","onFrescaStateChange",qx(a.o)))};function yx(a,b){V.call(this);this.j=a;var c=ae(this.j)?this.j:this.j?this.j.body:null;c&&ch(c);this.o=zm(this.j,ed?"DOMMouseScroll":"mousewheel",this,b)}A(yx,V);
yx.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.j;if("mousewheel"==a.type){c=1;if(dd||fd&&(id||sd("532.0")))c=40;d=zx(-a.wheelDelta,c);n(a.wheelDeltaX)?(b=zx(-a.wheelDeltaX,c),c=zx(-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;ga(this.A)&&Pc(b,-this.A,this.A);ga(this.B)&&Pc(c,-this.B,this.B);b=new Ax(d,a);this.Y(b)};function zx(a,b){return fd&&(hd||jd)&&0!=a%b?a:a/b}
yx.prototype.P=function(){yx.K.P.call(this);Im(this.o);this.o=null};function Ax(a,b){mm.call(this,b);this.type="mousewheel";this.detail=a}A(Ax,mm);var Bx={},Cx=null;function Dx(a){a=ja(a);delete Bx[a];Vb(Bx)&&Cx&&Cx.stop()}function Ex(){Cx||(Cx=new xs(function(){Fx()},20));var a=Cx;a.isActive()||a.start()}function Fx(){var a=z();Jb(Bx,function(b){Gx(b,a)});Vb(Bx)||Ex()};function Hx(){V.call(this);this.j=0;this.endTime=this.startTime=null}A(Hx,V);f=Hx.prototype;f.xb=function(){return 1==this.j};f.kj=function(){this.wc("begin")};f.mh=function(){this.wc("end")};f.Ac=function(){this.wc("finish")};f.wc=function(a){this.Y(a)};function Ix(a,b,c,d){Hx.call(this);if(!ea(a)||!ea(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.B=a;this.H=b;this.duration=c;this.F=d;this.A=[];this.o=this.G=0;this.D=null}A(Ix,Hx);f=Ix.prototype;
f.play=function(a){if(a||0==this.j)this.o=0,this.A=this.B;else if(this.xb())return!1;Dx(this);this.startTime=a=z();-1==this.j&&(this.startTime-=this.duration*this.o);this.endTime=this.startTime+this.duration;this.D=this.startTime;this.o||this.kj();this.wc("play");-1==this.j&&this.wc("resume");this.j=1;var b=ja(this);b in Bx||(Bx[b]=this);Ex();Gx(this,a);return!0};f.stop=function(a){Dx(this);this.j=0;a&&(this.o=1);Jx(this,this.o);this.wc("stop");this.mh()};
f.pause=function(){this.xb()&&(Dx(this),this.j=-1,this.wc("pause"))};f.P=function(){0==this.j||this.stop(!1);this.wc("destroy");Ix.K.P.call(this)};f.destroy=function(){this.dispose()};function Gx(a,b){a.o=(b-a.startTime)/(a.endTime-a.startTime);1<=a.o&&(a.o=1);a.G=1E3/(b-a.D);a.D=b;Jx(a,a.o);1==a.o?(a.j=0,Dx(a),a.Ac(),a.mh()):a.xb()&&a.ym()}function Jx(a,b){ha(a.F)&&(b=a.F(b));a.A=Array(a.B.length);for(var c=0;c<a.B.length;c++)a.A[c]=(a.H[c]-a.B[c])*b+a.B[c]}f.ym=function(){this.wc("animate")};
f.wc=function(a){this.Y(new Kx(a,this))};function Kx(a,b){hm.call(this,a);this.x=b.A[0];this.y=b.A[1];this.duration=b.duration;this.fps=b.G;this.state=b.j}A(Kx,hm);function Lx(a){return Math.pow(a,3)}function Mx(a){return 3*a*a-2*a*a*a};function Nx(a){return ea(a)&&a.length?a[0]:a}function Ox(a){var b=/.+/;return x(a)&&null!=b&&null!=a&&a.match(b)?a:""}function Px(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 Qx(a){return x(a)?a:""}function Rx(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function Sx(a,b){return"true"==a||"false"==a?"true"==a:b}function Tx(a,b){return x(a)?parseFloat(a):b}
function Ux(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Pc(a,c,d);if(a>=c&&a<=d)return a}return g}function Vx(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;D(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function Wx(a,b){if(null==a)return null;if(fa(a)){var c=[];D(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function Xx(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new vg(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 Yx(a){function b(a){return gb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function Zx(a,b,c){this.value=a;this.target=b;this.showLinkIcon=c}var $x={fH:"current",rI:"new"};function ay(a){if(!a)return null;var b=Qx(a.value);if(!b||null==xj(b))return null;var c=Rx(a.target,$x,"current");return null==c?null:new Zx(b,c,Sx(a.show_link_icon,!0))};function by(a){if(!a)return!1;var b=cy(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function dy(a){if(!a)return!1;a=cy(a);return"com"==a[0]&&"google"==a[1]&&"plus"==a[2]}function cy(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function ey(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=!by(c))||(d=Ne(Ke(c)[5]||null)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=xj(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=vj(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 fy(a,b,c,d){a=a.value?a.value:null;if(!a)return null;if(by(a)){var e={feature:"iv",src_vid:c,annotation_id:b},g=xj(a);Jb(e,function(a,b){b in g&&Xb(e,b)});return Aj(a,e)}return dy(a)&&d?gy(a,pa(hy,d.pageId,d.rb)):a}function gy(a,b){var c=new J(a);ef(c,b(c.Hb));return c.toString()}function hy(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 iy(a,b){return b?b:by(a)?"current":"new"};function jy(a,b){this.A=a;this.o=b;this.j={}}function ky(a,b,c,d){if(b){var e=ly(a,b);a.j[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;bc(e,c||{});b=ub(d||[]);30==e["a-type"]&&(c=my(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);ny(a,e,b)}}function oy(a,b,c,d,e){if(b){var g=ly(a,b);g["iv-event"]=3;g["i-time"]=a.j[b]||"";bc(g,d||{});b=ub(e||[]);30==g["a-type"]&&(d=my(a,g["a-id"],"cta_annotation_clicked"))&&b.push(d);ny(a,g,b,c)}}
function py(a,b){if(b){var c=ly(a,b);c["iv-event"]=4;c["i-time"]=a.j[b]||"";bc(c,{});var d=ub([]);if(30==c["a-type"]){var e=my(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}ny(a,c,d)}}function my(a,b,c){a=a.o.getVideoData();if(a.Jd){if((c=a.Jd[c])&&-1!=c.search(Kf))return a=wa("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.oa)return Aj(a.oa,{label:c,value:"a_id="+b});return""}
function ny(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)}D(c||[],function(a){e++;lg(a,g)});a.Ra(b,g)}function ly(a,b){var c={};if(b){var d=new hf(b);D(d.Na(),function(a){c[a]=escape(d.get(a,""))})}c["p-time"]=a.o.getCurrentTime().toFixed(2);c.ps=a.o.V().j;return c}function qy(a,b,c){var d=ly(a);d["iv-event"]=b;d["a-id"]="card:drawer";d["a-type"]=51;ny(a,d,c)}
function ry(a,b,c,d,e){c&&(c=ly(a,c),c["iv-event"]=b,bc(c,d||{}),ny(a,c,e))}jy.prototype.Ra=function(a,b){this.A.L("command_log","iv",a,b)};function sy(a,b){var c=Me(a);if(c==Me(window.location.href)||!c&&ta(a,"/")){var c=Ke(a),c=Ie(null,null,null,null,c[5],c[6],c[7]),d=c.indexOf("#");if(c=0>d?c:c.substr(0,d))c=Uf("SMALLER_SESSION_TEMPDATA_NAME")?"ST-"+Ta(c).toString(36):"s_tempdata-"+Ta(c),d=b?Ue(b):"",pk(c,d,5)}};function ty(a){var b=window.location;a=We(a,{})+"";if(!(a instanceof yc||a instanceof yc)){a=a.Ze?a.$d():String(a);a=Bc.test(a)?Cc(a):"about:invalid#zClosurez";var c=new yc;c.j=a;a=c}b.href=Ac(a)}function uy(a){var b=void 0,c=Uf("EVENT_ID");c&&(b||(b={}),b.ei||(b.ei=c));b&&sy(a,b)}function vy(a,b,c){c&&sy(a,c);return window.open(a,b||a)}
function wy(a,b){var c=b||{};c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d=c;d||(d={});var c=window,e="undefined"!=typeof a.href?a.href:String(a),g=d.target||a.target,h=[],k;for(k in d)switch(k){case "width":case "height":case "top":case "left":h.push(k+"="+d[k]);break;case "target":case "noreferrer":break;default:h.push(k+"="+(d[k]?1:0))}k=h.join(",");if((bd()||Xc("iPad")||Xc("iPod"))&&c.navigator&&c.navigator.standalone&&g&&"_self"!=g)k=c.document.createElement("A"),
k.setAttribute("href",e),k.setAttribute("target",g),d.noreferrer&&k.setAttribute("rel","noreferrer"),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),k.dispatchEvent(e),c={};else if(d.noreferrer){if(c=c.open("",g,k))dd&&-1!=e.indexOf(";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=ya(e),c.document.write('<META HTTP-EQUIV="refresh" content="0; url='+e+'">'),c.document.close()}else c=c.open(e,g,k);if(!c)return null;c.opener||(c.opener=window);c.focus();return c};function xy(a,b){this.N=a;this.context=b;this.rn=!1;this.F=0}function yy(a,b,c,d,e,g){b=new Mq(b,c,{id:d});b.Oh="iv-module";e&&b.bb.subscribe("onEnter",e,a);g&&b.bb.subscribe("onExit",g,a);a.context.bb.L("command_add_cuerange",[b],a.context.o.getPlayerType())}f=xy.prototype;f.Nj=function(){this.context.bb.subscribe("onResize",this.Xk,this)};f.Q=function(){return this.N};
f.Oj=function(a,b,c,d,e){Ot(this.context.j,a,"click",pa(this.bf,a,b,c,d,e||[]),"iv-click-target",this);Ot(this.context.j,a,"touchend",pa(this.bf,a,b,c,d,e||[]),"iv-click-target",this);Ot(this.context.j,a,"touchstart",pa(function(){this.rn=!1}),"iv-click-target",this);Ot(this.context.j,a,"touchmove",pa(function(){this.rn=!0}),"iv-click-target",this)};
f.bf=function(a,b,c,d,e,g){if(this.rn)return!0;g.stopPropagation();g.preventDefault();(a=fy(b,c,this.context.A.videoId))&&zy(this,a,iy(a,b.target),d,e);return!1};function Ay(a){return z()-a.F}f.Rh=function(){this.F=z()};f.$=function(){};f.destroy=function(){Wd(this.Q())};f.Xk=function(){};function zy(a,b,c,d,e){var g=y(function(){this.context.o.pauseVideo();uy(b);vy(b,"current"==c?"_top":void 0)},a);"new"==c&&(g(),g=null);var h={};h.interval=Ay(a);oy(a.context.logger,d,g,h,e)};function By(){return!!t("yt.scheduler.instance")}function Cy(a,b){void 0===b&&(b=NaN);var c=t("yt.scheduler.instance.addJob");return c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?(a(),NaN):L(a,b||0)}function Dy(a,b){return Cy(a,b)}function Ey(a){var b=t("yt.scheduler.instance.cancelJob");b?b(a):M(a)}function Fy(){var a=t("yt.scheduler.instance.start");a&&(M(Gy),a())}var Gy=0;function Hy(){var a=t("yt.scheduler.instance.pause");a&&(a(),M(Gy),Gy=L(Fy,800))};function Iy(a,b){this.version=a;this.args=b}function Jy(a){if(!a.re){var b={};a.call(b);a.re=b.version}return a.re}
function Ky(a,b){function c(){a.apply(this,b.args)}if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=Jy(a)}catch(e){}if(!d||b.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");c.prototype=a.prototype;try{return new c}catch(g){throw g.message="yt.pubsub2.Data.deserialize(): "+g.message,g;}}Iy.prototype.H=function(){return{version:this.version,args:this.args}};
function Ly(a,b){this.o=a;this.j=b}Ly.prototype.toString=function(){return this.o};var My=t("yt.pubsub2.instance_")||new Di;Di.prototype.subscribe=Di.prototype.subscribe;Di.prototype.unsubscribeByKey=Di.prototype.Rb;Di.prototype.publish=Di.prototype.L;Di.prototype.clear=Di.prototype.clear;q("yt.pubsub2.instance_",My,void 0);var Ny=t("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",Ny,void 0);var Oy=t("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Oy,void 0);var Py=t("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Py,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);
function Qy(a,b){var c=Ry,d=Sy();if(!d)return 0;var e=d.subscribe(c.toString(),function(d,h){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var k=function(){if(Ny[e])try{if(h&&c instanceof Ly&&c!=d)try{h=Ky(c.j,h)}catch(k){throw k.message="yt.pubsub2 cross-binary conversion error for "+c.toString()+": "+k.message,k;}a.call(b||window,h)}catch(p){Yf(p)}};Py[c.toString()]?By()?Cy(k,void 0):L(k,0):k()}});Ny[e]=!0;Oy[c.toString()]||(Oy[c.toString()]=[]);Oy[c.toString()].push(e);return e}
function Ty(a,b){var c=Qy(function(d){a.apply(b,arguments);Uy(c)},b);return c}function Uy(a){var b=Sy();b&&(ga(a)&&(a=[a]),D(a,function(a){b.unsubscribeByKey(a);delete Ny[a]}))}function Sy(){return t("yt.pubsub2.instance_")};var Vy={},Wy="ontouchstart"in document;function Xy(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return oe(c,function(a){return oh(a,b)},!0,d)}
function Yy(a){var b="mouseover"==a.type&&"mouseenter"in Vy||"mouseout"==a.type&&"mouseleave"in Vy,c=a.type in Vy||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=Vy[b],d;for(d in c.tc){var e=Xy(b,d,a.target);e&&!oe(a.relatedTarget,function(a){return a==e},!0)&&c.L(d,e,b,a)}}if(b=Vy[a.type])for(d in b.tc)(e=Xy(a.type,d,a.target))&&b.L(d,e,a.type,a)}}P(document,"blur",Yy,!0);P(document,"change",Yy,!0);P(document,"click",Yy);P(document,"focus",Yy,!0);
P(document,"mouseover",Yy);P(document,"mouseout",Yy);P(document,"mousedown",Yy);P(document,"keydown",Yy);P(document,"keyup",Yy);P(document,"keypress",Yy);P(document,"cut",Yy);P(document,"paste",Yy);Wy&&(P(document,"touchstart",Yy),P(document,"touchend",Yy),P(document,"touchcancel",Yy));function Zy(){this.B={};this.Jm=[]}function $y(a,b){return"yt-uix"+(a.wi?"-"+a.wi:"")+(b?"-"+b:"")}Zy.prototype.init=v;Zy.prototype.dispose=v;function az(a,b,c){var d=$y(a,void 0),e=y(c,a);b in Vy||(Vy[b]=new Di);Vy[b].subscribe(d,e);a.B[c]=e}Zy.prototype.o=function(a,b,c){var d=xi(a,b);if(d&&(d=t(d))){var e=xb(arguments,2);wb(e,0,0,a);d.apply(null,e)}};function bz(a,b){vi(a,"tooltip-text",b)}Zy.prototype.removeData=function(a,b){a&&(a.dataset?delete a.dataset[wi(b)]:a.removeAttribute("data-"+b))};function cz(){Zy.call(this);this.j={}}A(cz,Zy);ba(cz);f=cz.prototype;f.wi="scroller";f.register=function(){az(this,"mouseenter",this.lz);az(this,"mouseleave",this.kq)};f.dispose=function(){for(var a in this.j)this.kq(this.j[a]);this.j={}};f.lz=function(a){var b=P(a,"mousewheel",y(this.rx,this,a));vi(a,"scroller-mousewheel-listener",b);b=P(a,"scroll",y(this.Mx,this,a));vi(a,"scroller-scroll-listener",b);a&&(b=ja(a).toString(),this.j[b]=a)};
f.kq=function(a){var b=xi(a,"scroller-mousewheel-listener")||"";vi(a,"scroller-mousewheel-listener","");var c=xi(a,"scroller-scroll-listener")||"";vi(a,"scroller-scroll-listener","");Jh(b);Jh(c);vi(a,"scroller-scroll-listener","");a&&(a=ja(a).toString(),delete this.j[a])};f.rx=function(a,b){b.preventDefault();b.wheelDeltaY&&(a.scrollTop=a.scrollTop+b.wheelDeltaY);Mi("yt-dom-content-change",a)};f.Mx=function(a){this.o(a,"scroll-action")};var dz=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};q("yt.uix.widgets_",dz,void 0);function ez(a){a=a.getInstance();var b=$y(a);b in dz||(a.register(),a.Jm.push(Ji("yt-uix-init-"+b,a.init,a)),a.Jm.push(Ji("yt-uix-dispose-"+b,a.dispose,a)),dz[b]=a)};function fz(a,b,c){this.id=a;this.type=b.card_type;this.teaserText=b.teaser_text||b.title;this.teaserDurationMs=b.teaser_duration_ms||5E3;this.startMs=b.start_ms;this.endMs=b.end_ms;this.ub=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.j={Oy:a.impression,click:a.click,close:a.close,YC:a.teaser_impression,gn:a.teaser_click}};function gz(a,b,c){fz.call(this,a,b,c);this.channelId=b.channel_id;this.A=b.custom_message;this.B=b.image_url;this.title=b.title;this.o=b.meta_info;this.url=ay({target:b.target||"new",value:b.url})}A(gz,fz);function hz(a,b,c){this.j=a;this.C=b;this.o=c}function iz(a,b){var c=jz(a,b.url,b.id),c=["article","iv-card-channel",["div",["iv-card-content","iv-click-target"],b.A?["p","",["a",{href:c},b.A]]:"",["div","iv-card-channel-content",{style:"background-image: url("+b.B+");"},["h2","",["a","g-hovercard",{href:c,"data-ytid":b.channelId},b.title]],kz(b)]]],c=new X(c),d=c.Q();lz(a,d,b);return c}
function mz(a,b){var c=jz(a,b.url,b.id),c=["article","iv-card-playlist",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.A+");"},["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",$f("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],kz(b)]],c=new X(c),d=c.Q();lz(a,d,b);return c}
function nz(a,b){var c=["ul","yt-uix-form-list-option"];vb(c,E(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",
$f("YTP_DRAWER_POLL_SUBMIT")]]]]],c=new X(c),d=c.Q();Ot(a.j.j,d,"click",pa(a.A,b),"yt-uix-button",a);return c}function oz(a,b){var c=jz(a,b.url,b.id),c=pz(b,c),c=new X(c),d=c.Q();lz(a,d,b);return c}function qz(a,b){var c=jz(a,b.url,b.id),c=pz(b,c),c=new X(c),d=c.Q();Ot(a.j.j,d,"click",pa(a.B,b),"iv-click-target",a);return c}
function rz(a,b){var c=jz(a,b.url,b.id),d="background-image: url("+b.B+");",e=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",g=b.A?["span",["yt-badge","yt-badge-live"],$f("YTP_LIVE_NOW")]:"",c=["article","iv-card-video",["div",["iv-card-image","iv-click-target"],{style:d},e],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],kz(b),g]],c=new X(c),d=c.Q();lz(a,d,b);return c}
function kz(a){if(!a.o||0==a.o.length)return"";var b=["ul","iv-card-meta-info"];D(a.o,function(a){b.push(["li","",a])});return b}
function pz(a,b){var c=a.displayDomain?["a",{href:b},a.displayDomain]:"",d=["iv-card-action"],e={};a.o&&(d.push("iv-card-action-icon"),e.style="background-image: url("+a.o+");");var g=["a",{href:b},["span","",a.D]];a.showLinkIcon&&(g.push("\u00a0"),g.push(["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],["div",d,e,g]]]}
hz.prototype.A=function(a,b){b.stopPropagation();b.preventDefault();var c=a.id,d;a:{var e=b.currentTarget.form.elements.radio;if(e){if(e.type){d=rj(e);break a}for(d=0;d<e.length;d++){var g=rj(e[d]);if(g){d=g;break a}}}d=null}e=this.j.A.ii;c={mg:{action_poll_vote:1},Lb:{poll_id:c,index:d},method:"POST"};c.Lb||(c.Lb={});Ij(e,c)};
hz.prototype.B=function(a,b){b.stopPropagation();b.preventDefault();var c=t("yt.www.ypc.bootstrap.api.loadOffers");c?(this.j.o.pauseVideo(),this.j.o.gh()&&sz(this.j.o.S),oy(this.j.logger,a.ub,a.j.click),c(a.C,a.B,a.A)):this.o(b.target,a.url,a.id,a.ub,a.j.click,b)};function jz(a,b,c){return b?fy(b,c,a.j.A.videoId,a.j.fa):null}function lz(a,b,c){a.C(b,c.url,c.id,c.ub,c.j.click)};function tz(a,b,c){fz.call(this,a,b,c);this.A=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.title=b.title;this.o=b.meta_info;this.url=ay({target:b.target||"new",value:b.url})}A(tz,fz);function uz(a,b,c){fz.call(this,a,b,c);this.imageUrl=b.image_url;this.title=b.title;this.options=b.options}A(uz,fz);function vz(a,b,c){fz.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.D=b.custom_message;this.url=ay({target:b.target||"new",value:b.url})}A(vz,fz);function wz(a,b,c){vz.call(this,a,b,c);this.C=b.ypc_item_type;this.B=b.ypc_item_id;this.A=b.ypc_flow_type}A(wz,vz);function xz(a,b,c){fz.call(this,a,b,c);this.B=b.image_url;this.videoDuration=b.video_duration||null;this.title=b.title;this.o=b.meta_info;this.A=!!b.is_live_now;this.url=ay({target:b.target||"new",value:b.url})}A(xz,fz);function yz(a,b){xy.call(this,a,b);this.pm=this.j=this.H=this.J=!1;this.Vk=new xs(v,b.fa.gd?4E3:3E3);this.C=new hz(b,y(this.Oj,this),y(this.bf,this));var c=["div","iv-drawer",["div","iv-drawer-header",$f("YTP_DRAWER_HEADER_TEXT"),["button","iv-drawer-close-button"]],["div",["iv-drawer-content","yt-uix-scroller"]]];this.G=(new X(c)).Q();this.Wd=Hd("iv-drawer-content",this.G);c=["div","iv-drawer-teaser",["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:$f("YTP_DRAWER_HEADER_TEXT")},
["span"]]];this.A=(new X(c)).Q();this.D=Hd("iv-drawer-teaser-text",this.A);this.Pc=null;this.B=[];this.I=this.o=null;b.fa.experiments.Qy&&yy(this,1E3*b.A.lengthSeconds-5E3,2147483647,"",pa(this.sr,null))}A(yz,xy);var zz={associated:vz,channel:gz,collaborator:gz,fundraising:vz,merch:vz,playlist:tz,poll:uz,product:vz,tip:wz,video:xz};function Az(a){a=a.Q();a=ne(a,"ytp-iv-player-content");if(!a)return!1;a=Yg(a);return 177<a.width&&177<a.height}
function Bz(a){var b=["html5-stop-propagation","iv-drawer-manager"];a.context.fa.experiments.Ry&&b.push("iv-drawer-teaser-style-exp");ph(a.Q(),b);a.Q().appendChild(a.A);a.Q().appendChild(a.G);b=Hd("iv-drawer-close-button",a.G);a.context.j.M(b,"click",a.Mo,a);a.context.j.M(b,"touchend",a.Mo,a);b=new yx(a.Wd);zm(b,"mousewheel",function(){this.Vk.start()},!1,a);a.context.j.M(a.Wd,"touchend",function(){this.Vk.start()},a);a.context.j.M(a.Wd,"scroll",a.kA,a);ez(cz);a.context.j.M(a.A,"click",a.XC,a);a.context.j.M(a.A,
"mouseover",function(){this.Pc&&this.Pc.stop()},a);a.context.j.M(a.A,"mouseout",function(){this.Pc&&this.Pc.start()},a);a.context.bb.subscribe("onHideControls",function(){this.pm=!0},a);a.context.bb.subscribe("onShowControls",function(){this.pm=!1},a)}f=yz.prototype;
f.add=function(a){this.J||(Bz(this),this.J=!0);var b,c;switch(a.type){case "associated":case "fundraising":case "merch":case "product":b=oz(this.C,a);break;case "tip":b=qz(this.C,a);break;case "video":b=rz(this.C,a);break;case "playlist":b=mz(this.C,a);break;case "collaborator":case "channel":b=iz(this.C,a);break;case "poll":b=nz(this.C,a)}if(b){c=b.Q();c={ud:a,Xv:c,Yp:!1,Zp:!1};var d=zb(this.B,c,function(a,b){return a.ud.startMs-b.ud.startMs});0>d&&(d=-(d+1));wb(this.B,d,0,c);b.ea(this.Wd,d);this.Xk();
b=1E3*this.context.o.getCurrentTime();5E3>b&&b>a.startMs&&this.Qr(c);yy(this,a.startMs,a.startMs+1,a.id,pa(this.Qr,c))}};f.op=function(){this.Pc&&(qh(this.A,"iv-drawer-teaser-active"),L(y(function(){this.Pc=null},this),330))};f.sr=function(a){a&&a.stopPropagation();this.j||(this.op(),N(this.Q(),"iv-drawer-open"),this.j=!0,N(this.context.o.Oa(),"ytp-iv-drawer-open"),this.F=z(),qy(this.context.logger,7),D(this.B,function(a){a.Zp||(a.Zp=!0,ky(this.context.logger,a.ud.ub,Cz(this,!0),a.ud.j.Oy))},this))};
f.kA=function(){O(this.Q(),"iv-drawer-scrolled",0<this.Wd.scrollTop)};f.Mo=function(){this.j&&(qy(this.context.logger,4,Dz(this).j.close),this.j&&(qh(this.Q(),"iv-drawer-open"),this.j=!1,qh(this.context.o.Oa(),"ytp-iv-drawer-open"),qy(this.context.logger,10)))};f.XC=function(a){if(!this.j){var b=Cz(this),c=Dz(this);this.o?this.Pc?ry(this.context.logger,9,c.ub,b,c.j.gn):ry(this.context.logger,12,c.ub,b,c.j.gn):qy(this.context.logger,12,c.j.gn);this.sr(a)}};
f.Qr=function(a){if(!this.Pc){this.o!=a&&(this.o=a,ee(this.D,a.ud.teaserText));var b;if(b=Cs(this.Q()))2==this.context.o.Mf()?b=1==(isNaN(void 0)?this.context.o.getAdState():void 0):(b=isNaN(void 0)?this.context.o.getPlayerState():void 0,b=1==b||0==b&&0===this.context.o.getCurrentTime());if(b&&!this.Pc&&!this.j&&this.o){N(this.A,"iv-drawer-teaser-active");b=this.o.ud;this.Pc=new xs(this.op,580+b.teaserDurationMs,this);this.Pc.start();var c=Cz(this);ry(this.context.logger,8,b.ub,c,b.j.YC);this.context.fa.experiments.dm&&
(this.I=mh(this.D))}(!this.j||!this.Vk.isActive()&&this.pm)&&Ez(this,a)}};function Ez(a,b){var c=new Ix([0,a.Wd.scrollTop],[0,b.Xv.offsetTop],600,Mx);a.context.j.M(c,"animate",function(a){this.Wd.scrollTop=a.y},a);a.context.j.M(c,"finish",function(a){this.Wd.scrollTop=a.y},a);c.play()}
f.Xk=function(){var a=Az(this)&&!!this.B.length;Bs(this.Q(),a);O(this.context.o.Oa(),"ytp-iv-drawer-enabled",a);a&&(this.H||(qy(this.context.logger,11),this.H=!0),D(this.B,function(a){a.Yp||(a.Yp=!0,ry(this.context.logger,11,a.ud.ub))},this));this.context.fa.experiments.dm&&Fz(this)};function Dz(a){return a.o&&a.o.ud||a.B[0]&&a.B[0].ud}
function Fz(a){var b=a.context.fa.fk;if(b){var c=360*ct,b=Pc(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!==mh(a.D)&&Fg(a.D,"font-size",c+"px")}}function Cz(a,b){var c;if(a.context.fa.experiments.dm){c={};var d=b?a.I:mh(a.D);d&&(c["a-fs"]=d)}return c}f.bf=function(a,b,c,d,e,g){var h=Cz(this,!0);h&&"a-fs"in h&&(d+="&a-fs="+h["a-fs"]);return yz.K.bf.call(this,a,b,c,d,e,g)};var Gz=/#(.)(.)(.)/;function Hz(a){if(!Iz.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Gz,"#$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 Iz=/^#(?:[0-9a-f]{3}){1,2}$/i;function Jz(a,b,c,d,e){Ix.call(this,b,c,d,e);this.element=a}A(Jz,Ix);Jz.prototype.C=v;Jz.prototype.ym=function(){this.C();Jz.K.ym.call(this)};Jz.prototype.mh=function(){this.C();Jz.K.mh.call(this)};Jz.prototype.kj=function(){this.C();Jz.K.kj.call(this)};function Kz(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Jz.apply(this,arguments)}A(Kz,Jz);
Kz.prototype.C=function(){this.element.style.left=Math.round(this.A[0])+"px";this.element.style.top=Math.round(this.A[1])+"px"};function Lz(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Jz.apply(this,arguments)}A(Lz,Jz);Lz.prototype.C=function(){this.element.style.width=Math.round(this.A[0])+"px";this.element.style.height=Math.round(this.A[1])+"px"};function Mz(a,b,c){xy.call(this,a,b);this.annotation=c;this.isActive=!1}A(Mz,xy);Mz.prototype.Nj=function(){Mz.K.Nj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&yy(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.Rh,this.$)};function Nz(a,b,c){Mz.call(this,a,b,c);this.j=null;this.A=!1;this.Si=null;this.Dd=!1;this.o=0}A(Nz,Mz);
function Oz(a){N(a.Q(),"iv-branding");a.context.fa.experiments.fm||N(a.Q(),"iv-branding-legacy");var b=a.annotation.data;a.o=b.image_width;a.j=I("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=I("div","branding-img-container",a.j);a.Q().appendChild(c);var d=I("div","iv-branding-context-name");ee(d,b.channel_name);var e=I("div","iv-branding-context-subscribe");a.annotation.A?e.innerHTML=a.annotation.A:b.num_subscribers&&
ee(e,b.num_subscribers);c=I("div","iv-branding-context-subscribe-caret");d=I("div",["branding-context-container-inner","iv-view-target"],c,d,e);e=I("div","branding-context-container-outer",d);Fg(e,"right",a.o+"px");a.Q().appendChild(e);a.Oj(a.Q(),Pz(a.annotation),a.annotation.id,a.annotation.ub);a.Si=new xs(pa(function(a){var b=Yg(a.parentElement);(new Lz(a.parentElement,[b.width,b.height],[0,0],200,Lx)).play();this.Dd=!1},d),500,a);Ot(a.context.j,a.Q(),"mouseover",pa(function(a,b,c){this.Si.stop();
if(!this.Dd){var d=Yg(a);Wg(a,d.width);c=Math.min(d.height,c);var e=Math.round(10);c=this.context.fa.experiments.fm?d.height-Math.max(c/2+e,20):Math.max(c/2-e,0);Lg(b,d.width,c);this.Dd=!0;b=9;d=Yg(a);c=Yg(a.parentElement);(new Lz(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,Lx)).play()}},d,c,b.image_height),"iv-view-target",a);Ot(a.context.j,a.Q(),"mouseout",y(a.Si.start,a.Si),"iv-view-target",a)}
Nz.prototype.Rh=function(){if(!this.isActive){Nz.K.Rh.call(this);this.A||(Oz(this),this.A=!0);ky(this.context.logger,this.annotation.ub);Ds(this.Q());this.isActive=!0;var a=this.j,b,c=$g(a).width,d=ga(void 0)?void 0:c;b=b||0;Lg(a,d);b=new Kz(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,Lx);zm(b,"begin",pa(Ds,a));b.play()}};Nz.prototype.$=function(){this.isActive&&(Es(this.Q()),this.isActive=!1)};function Qz(a,b,c,d,e,g){this.j=a;this.fa=b;this.A=c;this.logger=d;this.o=e;this.bb=g};function Rz(a){this.value=a};function Sz(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var Tz={CLOSE:"close",xI:"openUrl",PAUSE:"pause",Bv:"subscribe"},Uz={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",UI:"rollOut",wv:"rollOver",yv:"shown"};function Vz(a){if(!a)return null;var b=Rx(a.type,Tz),c=Rx(a.trigger,Uz),d=ay(Nx(a.url));Nx(a.subscribeData);(a=Nx(a.duration))?(a=Vx(a.value),a=new Rz(a)):a=null;return b?new Sz(b,c,d,a):null};function Wz(a,b,c,d,e,g,h,k,l,p,r,u,w,S){this.C=a;this.B=b;this.D=c;this.F=d;this.o=e;this.J=g;this.A=h;this.I=k;this.textSize=l;this.G=p;this.H=r;this.effects=u;this.j=w;this.N=S}
function Xz(a){if(!a)return null;var b=Px(a.fgColor,"#1A1A1A"),c=Px(a.bgColor,"#FFF"),d=Px(a.borderColor,"#000"),e=Ux(a.borderWidth,10,0,5,!1,0),g=Ux(a.bgAlpha,10,0,1,!1,.8);Ux(a.borderAlpha,10,0,1,!1,.2);Ux(a.gloss,16,0,255,!1,0);var h=Px(a.highlightFontColor,"#F2F2F2"),k=Ux(a.highlightWidth,10,0,5,!1,3),l=Qx(a.textAlign),p=Ux(a.textSize,10,3.3,30.1,!0,3.6107),r=Qx(a.fontWeight),u=Xx(a.padding),w=Yx(a.effects),S=Ux(a.cornerRadius,10,0,10,!0,0);var T=Nx(a.gradient);if(T){a=Ux(T.x1,10,0,100,!0,0);
var ka=Ux(T.y1,10,0,100,!0,0),Ca=Ux(T.x2,10,0,100,!0,100),He=Ux(T.y2,10,0,100,!0,100),fh=Px(T.color1,"#FFF"),bt=Px(T.color2,"#000"),tA=Ux(T.opacity1,10,0,100,!0,100),T=Ux(T.opacity2,10,0,100,!0,0);a=new Yz(a,ka,Ca,He,fh,bt,tA,T)}else a=null;return new Wz(b,c,d,e,g,h,k,l,p,r,u,w,S,a)}function Yz(a,b,c,d,e,g,h,k){this.C=a;this.F=b;this.D=c;this.G=d;this.j=e;this.o=g;this.A=h;this.B=k};function Zz(a,b){this.j=a;this.videoId=b};var $z={fK:"xx",gK:"xy",jK:"yx",kK:"yy"};function aA(a,b,c){var d=a.G,e=a.H,g=a.j?a.j:"xy",h=bA(c,a.C,g);a=cA(c,a.A,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new wg(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 bA(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function cA(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function dA(a,b,c,d,e,g,h,k,l,p,r){this.x=a;this.y=b;this.D=c;this.B=d;this.o=e;this.F=g;this.G=h;this.H=k;this.C=l;this.A=p;this.j=r}function eA(a,b){if(!a)return null;var c=Tx(a.x,0),d=Tx(a.y,0),e=Tx(a.w,0),g=Tx(a.h,0),h=Vx(a.t),k=Tx(a.scaleSlope,1);return b(c,d,e,g,h,Tx(a.d,0),Tx(a.px,0),Tx(a.py,0),Tx(a.scaleSlopeX,k),Tx(a.scaleSlopeY,k),Rx(a.scaleDimension,$z,"xy"))}
function fA(a,b,c){c=c?fA(c,b):null;a=aA(a,new wg(a.x,a.y,a.D,a.B),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=Pc(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Pc(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function gA(a){return a?eA(a,function(a,c,d,e,g,h,k,l,p,r,u){return new dA(a,c,d,e,g,h,k,l,p,r,u)}):null};function hA(a,b,c,d,e,g,h,k,l,p,r,u,w){dA.call(this,a,b,c,d,e,k,l,p,r,u,w);this.I=g;this.J=h}A(hA,dA);function iA(a){if(!a)return null;var b=Tx(a.sx,0),c=Tx(a.sy,0);return eA(a,function(a,e,g,h,k,l,p,r,u,w,S){return new hA(a,e,g,h,k,b,c,l,p,r,u,w,S)})};function jA(a,b,c,d){this.type=a;this.o=b;this.j=c;this.A=d}var kA={nu:"anchored",NI:"rect",cJ:"shapeless"};function lA(a){if(!a)return null;var b=Rx(a.type,kA,"rect"),c=Wx(a.rectRegion,gA),d=Wx(a.anchoredRegion,iA);a=Wx(a.shapelessRegion,gA);return new jA(b,c,d,a)}function mA(a){return a.o&&a.o.length?a.o[0]:a.j&&a.j.length?a.j[0]:a.A&&a.A.length?a.A[0]:null};function nA(a,b){this.o=a;this.j=b};function oA(a,b){this.state=a;this.j=b}var pA={CLOSED:"closed",BI:"playerControlShow",wv:"rollOver",yv:"shown"};function qA(a){if(!a)return null;var b=Rx(a.state,pA);a=Ox(a.ref);return b?new oA(b,a):null};function rA(a,b,c,d){this.j=a||[];this.A=b||[];this.B=c;this.o=d;this.value=!1}function sA(a){if(!a)return null;var b=Wx(a.condition,qA),c=Wx(a.notCondition,qA),d=Sx(a.show_delay,!1);a=Sx(a.hide_delay,!1);return b||c?new rA(b,c,d,a):null}function uA(a,b,c){D(a.j,pa(b,!1),c);D(a.A,pa(b,!0),c)};function vA(a,b,c,d,e,g,h,k,l,p,r,u,w,S,T,ka){this.id=a;this.author=b;this.type=c;this.style=d;this.D=e;this.o=g;this.C=h||[];this.G=k||[];this.j=l;this.H=p;this.B=r;this.F=u;this.A=S;this.data=T;this.ub=ka}
var wA={nu:"anchored",BRANDING:"branding",CHANNEL:"channel",eH:"cta",CH:"highlightText",RH:"label",DI:"playlist",EI:"popup",iJ:"speech",Bv:"subscribe",yJ:"title",VIDEO:"video",aK:"vote",dK:"website"},xA={BRANDING:"branding",SG:"card",BH:"highlight",IMAGE:"image",MARKER:"marker",PAUSE:"pause",JI:"promotion",TEXT:"text",eK:"widget"},yA={XJ:"video_relative",CI:"player_relative"};
function zA(a){if(!a)return null;var b=Ox(a.id),c=Ox(a.author),d=Rx(a.type,xA),e=Rx(a.style,wA),g=Qx(Nx(a.TEXT)),h=Qx(a.data),h=0!=h.length?ng(h):{},k;var l=Nx(a.segment);l?(Ox(l.timeRelative),k=Ox(l.spaceRelative),k=(l=Wx(l.movingRegion,lA))?new nA(k,l):null):k=null;var l=Wx(a.action,Vz),p=Wx(a.trigger,sA),r=Xz(Nx(a.appearance));r||(r=Xz({}));var u=Rx(a.coordinate_system,yA,"video_relative"),w;w=(w=Nx(a.image_source))?new Zz(Qx(w.standard_url),Qx(w.video_id)):null;var S=Sx(a.closeable,!0),T=Qx(a.html_blob);
a=Qx(a.log_data);return b&&d?new vA(b,c,d,e,g,k,l,p,r,u,w,S,0,T,h,a):null}function Pz(a){return(a=AA(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}vA.prototype.showLinkIcon=function(){return BA(this,function(a){return null!=a.url&&a.url.showLinkIcon})};function CA(a){return BA(a,function(a){return"click"==a.trigger})}function BA(a,b){return ib(a.C,b,void 0)}function DA(a,b,c){D(a.C,b,c)}function AA(a,b){return F(a.C,b,void 0)}function EA(a,b,c){D(a.G,b,c)}
function FA(a,b){E(a.G,b,void 0)}function GA(a){return(a=HA(a))?mA(a):null}function HA(a){a.o?(a=a.o,a=a.j.length?a.j[0]:null):a=null;return a}function IA(a,b){var c=GA(a);return c&&b?cA(b,c.A,c.j?c.j:"xy"):1};function JA(a,b,c){Mz.call(this,a,b,c);this.B=this.o=this.C=!1;this.A=5E3;this.j=null;this.Df=I("div","iv-promo-contents")}A(JA,Mz);
function KA(a){var b=a.annotation.data;a.A=b.collapse_delay_ms||a.A;var c=["iv-promo","iv-promo-inactive"],d;if(b.image_url){d=I("div","iv-promo-img");var e=I("img",{src:b.image_url,"class":"iv-click-target"});d.appendChild(e);b.video_duration&&!b.is_live?(e=I("span",["iv-promo-video-duration","iv-click-target"],b.video_duration),d.appendChild(e)):b.playlist_length&&(e=I("span",["iv-promo-playlist-length","iv-click-target"],b.playlist_length.toString()),d.appendChild(e))}var e=I("div","iv-promo-txt"),
g,h,k;switch(a.annotation.style){case "cta":case "website":g=I("p","iv-click-target",I("strong",null,b.text_line_1));h=I("p",["iv-promo-link","iv-click-target"],b.text_line_2);N(e,"iv-click-target");break;case "playlist":case "video":g=I("p","iv-click-target",b.text_line_1);h=I("p","iv-click-target",I("strong",null,b.text_line_2));b.is_live&&(g=h,h=I("span",["yt-badge","iv-promo-badge-live","iv-click-target"],$f("YTP_LIVE_NOW")));N(e,"iv-click-target");c.push("iv-promo-video");break;case "vote":g=
I("p",null,I("strong",null,b.text_line_1));h=I("p",null,b.text_line_2);k=I("div","iv-promo-button-container");var l=I("button","iv-promo-button",I("span","iv-promo-button-content",b.button_text));a.context.j.M(l,"click",function(a){a.stopPropagation();oy(this.context.logger,this.annotation.ub,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;a=Hd("iv-promo-txt",this.Df);var d=Hd("iv-promo-button-container",this.Df),e=I("div",["iv-promo-txt","iv-click-target"]),g=I("p","iv-click-target",
I("strong",null,c.text_line_3)),c=I("p","iv-click-target",c.text_line_4);Ud(e,g,c);Wd(d);Xd(e,a);qh(this.Q(),"iv-promo-with-button");this.Oj(this.Df,Pz(this.annotation),this.annotation.id,this.annotation.ub)},a);k.appendChild(l);c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.Df.appendChild(e);k&&a.Df.appendChild(k);g=I("div","iv-promo-actions");h=I("div","iv-promo-expand");g.appendChild(h);a.context.j.M(a.Q(),"mouseover",a.ux,a);a.context.j.M(a.Q(),"touchend",pa(a.ip,5E3),
a);a.context.j.M(a.Q(),"mouseout",a.tx,a);h=I("div","iv-promo-close");g.appendChild(h);LA(a,y(function(){this.$()},a),h);ph(a.Q(),c);d&&Td(a.Q(),d);Td(a.Q(),a.Df);Td(a.Q(),g);a.Oj(a.Q(),Pz(a.annotation),a.annotation.id,a.annotation.ub)}f=JA.prototype;
f.Rh=function(){this.isActive||(JA.K.Rh.call(this),this.C||(KA(this),this.C=!0),Ds(this.Q()),this.annotation&&this.annotation.ub&&ky(this.context.logger,this.annotation.ub),qh(this.Q(),"iv-promo-inactive"),this.isActive=!0,this.j&&(yn(this.j),this.j=null),MA(this),NA(this,this.A))};f.$=function(){this.isActive&&(N(this.Q(),"iv-promo-inactive"),this.isActive=!1)};f.bf=function(a,b,c,d,e,g){return this.o?!0:JA.K.bf.call(this,a,b,c,d,e,g)};f.ip=function(a,b){b.stopPropagation();MA(this);NA(this,a)};
f.ux=function(a){this.B=!0;this.ip(500,a)};f.tx=function(){this.B=!1;OA(this)};function OA(a){a.o||a.B||a.j||(N(a.Q(),"iv-promo-collapsed"),a.o=!0)}function MA(a){a.o&&(qh(a.Q(),"iv-promo-collapsed"),a.o=!1)}function NA(a,b){a.j||(a.j=xn(function(){this.j&&(yn(this.j),this.j=null);OA(this)},b,a))}function LA(a,b,c){function d(a){py(this.context.logger,this.annotation.ub);b(a);a.stopPropagation()}a.context.j.M(c,"click",y(d,a));a.context.j.M(c,"touchend",y(d,a))};var PA={XH:1,YH:2,ZH:3};function QA(a,b,c){this.j={};this.o=!1;this.C="ivTrigger:"+a;this.A=c;uA(b,function(a,b){var c=RA(b.state,b.j);this.A.subscribe(c,y(this.B,this,c,a));this.j[c]=a},this)}QA.prototype.B=function(a,b,c,d){this.j[a]=b?!c:c;a=Mb(this.j,function(a){return a});this.o!=a&&(this.o=a,this.A.L(this.C,a,d))};function RA(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function SA(a,b,c){this.A=a;this.annotation=b;this.j=c;this.o=null;this.C=this.isVisible=!1;TA(b,a)}function TA(a,b){FA(a,function(c){return new QA(a.id,c,b)})}SA.prototype.$=function(){this.isVisible=!1;this.A.qa("onResize",this.B,this);this.j&&this.j.$()};SA.prototype.destroy=function(){this.A.qa("onResize",this.B,this);if(this.j){var a=this.j;a.G.removeAll();a.o&&Wd(a.o);a.A&&a.A.Q()&&Wd(a.A.Q())}UA(this)};function UA(a){a.o&&(a.o.stop(),a.o=null)}SA.prototype.B=function(){this.j&&VA(this.j)};function WA(){};function XA(a,b,c,d,e,g,h,k){this.C=a;this.F=b;this.D=c;this.G=d;this.j=e;this.o=g;this.A=n(h)?h:null;this.B=n(k)?k:null}A(XA,WA);function YA(){this.pa=[];this.ra=[];this.rd=[]}YA.prototype.Af=null;YA.prototype.Xc=null;YA.prototype.Qj=!0;var ZA=[2,2,6,6,0];f=YA.prototype;f.clear=function(){this.pa.length=0;this.ra.length=0;this.rd.length=0;delete this.Af;delete this.Xc;delete this.Qj;return this};function $A(a,b,c){0==cb(a.pa)?a.rd.length-=2:(a.pa.push(0),a.ra.push(1));a.rd.push(b,c);a.Xc=a.Af=[b,c]}
f.kb=function(a){var b=cb(this.pa);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.pa.push(1),this.ra.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.rd.push(c,d)}this.ra[this.ra.length-1]+=b/2;this.Xc=[c,d]};f.close=function(){var a=cb(this.pa);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.pa.push(4),this.ra.push(1),this.Xc=this.Af);return this};
function aB(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.pa.push(3);a.ra.push(1);a.rd.push(b,c,d,e,g,h);a.Qj=!1;a.Xc=[g,h]}function bB(a,b){for(var c=a.rd,d=0,e=0,g=a.pa.length;e<g;e++){var h=a.pa[e],k=ZA[h]*a.ra[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.pa=this.pa.concat();a.ra=this.ra.concat();a.rd=this.rd.concat();a.Af=this.Af&&this.Af.concat();a.Xc=this.Xc&&this.Xc.concat();a.Qj=this.Qj;return a};f.isEmpty=function(){return 0==this.pa.length};function cB(a,b){this.H=a;this.I=null==b?1:b}A(cB,WA);function dB(a,b){this.j=a;this.o=b};function eB(){}ba(eB);eB.prototype.j=0;function fB(a){V.call(this);this.N=a||Bd();this.Ea=null;this.$e=!1;this.j=null;this.C=void 0;this.D=this.G=this.H=null}A(fB,V);f=fB.prototype;f.jy=eB.getInstance();f.getId=function(){return this.Ea||(this.Ea=":"+(this.jy.j++).toString(36))};f.Q=function(){return this.j};f.Mj=function(a){if(this.H&&this.H!=a)throw Error("Method not supported");fB.K.Mj.call(this,a)};f.hp=function(){this.j=this.N.createElement("DIV")};
f.Kg=function(){gB(this,function(a){a.$e&&a.Kg()});this.C&&this.C.removeAll();this.$e=!1};f.P=function(){this.$e&&this.Kg();this.C&&(this.C.dispose(),delete this.C);gB(this,function(a){a.dispose()});this.j&&Wd(this.j);this.H=this.j=this.D=this.G=null;fB.K.P.call(this)};f.Qe=function(){return this.j};function gB(a,b){a.G&&D(a.G,b,void 0)}
f.removeChild=function(a,b){if(a){var c=x(a)?a:a.getId();a=this.D&&c?Yb(this.D,c)||null:null;if(c&&a){Xb(this.D,c);qb(this.G,a);b&&(a.Kg(),a.j&&Wd(a.j));c=a;if(null==c)throw Error("Unable to set parent component");c.H=null;fB.K.Mj.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function hB(a,b,c,d,e){fB.call(this,e);this.width=a;this.height=b;this.B=c||null;this.I=d||null}A(hB,fB);hB.prototype.A=null;hB.prototype.Og=function(){return this.$e?Xg(this.Q()):ga(this.width)&&ga(this.height)?new H(this.width,this.height):null};function iB(a){var b=a.Og();return b?b.width/(a.B?new H(a.B,a.I):a.Og()).width:0}hB.prototype.resume=function(){};function jB(a,b){V.call(this);this.Qg=a;this.Cl=b;this[nm]=!1}A(jB,V);f=jB.prototype;f.Cl=null;f.Qg=null;f.Q=function(){return this.Qg};f.addEventListener=function(a,b,c,d){zm(this.Qg,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Hm(this.Qg,a,b,c,d)};f.P=function(){jB.K.P.call(this);var a=this.Qg;if(a)if(om(a))a.removeAllListeners(void 0);else if(a=Cm(a)){var b=0,c;for(c in a.j)for(var d=a.j[c].concat(),e=0;e<d.length;++e)Im(d[e])&&++b}};function kB(a,b,c,d){jB.call(this,a,b);a=this.Cl;b=this.Q();c?(b.setAttribute("stroke",c.o),b.setAttribute("stroke-opacity",1),c=c.j,x(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/iB(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.Cl;a=this.Q();if(d instanceof cB)a.setAttribute("fill",d.H),a.setAttribute("fill-opacity",d.I);else if(d instanceof XA){b="lg-"+d.C+"-"+d.F+"-"+d.D+"-"+d.G+"-"+d.j+"-"+d.o;var e=lB(c,b);if(!e){var e=mB(c,"linearGradient",
{x1:d.C,y1:d.F,x2:d.D,y2:d.G,gradientUnits:"userSpaceOnUse"}),g="stop-color:"+d.j;ga(d.A)&&(g+=";stop-opacity:"+d.A);g=mB(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.o;ga(d.B)&&(g+=";stop-opacity:"+d.B);d=mB(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=nB(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}A(kB,jB);function oB(a,b){jB.call(this,a,b)}A(oB,jB);function pB(a,b){jB.call(this,a,b)}A(pB,jB);function qB(a,b,c,d){kB.call(this,a,b,c,d)}A(qB,kB);function rB(a,b){jB.call(this,a,b)}A(rB,oB);rB.prototype.clear=function(){Vd(this.Q())};function sB(a,b,c,d){kB.call(this,a,b,c,d)}A(sB,qB);function tB(a,b){jB.call(this,a,b)}A(tB,pB);function uB(a,b,c,d,e){hB.call(this,a,b,c,d,e);this.o={};this.O=fd&&!sd(526);this.J=new Bn(this)}var vB;A(uB,hB);var yB=0;function mB(a,b,c){a=a.N.j.createElementNS("http://www.w3.org/2000/svg",b);if(c)for(var d in c)a.setAttribute(d,c[d]);return a}f=uB.prototype;
f.hp=function(){var a=mB(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=mB(this,"g");this.F=mB(this,"defs");this.A=new rB(b,this);a.appendChild(this.F);a.appendChild(b);this.j=a;this.B&&(this.Q().setAttribute("preserveAspectRatio","none"),this.O?this.ks():this.Q().setAttribute("viewBox","0 0 "+(this.B?this.B+" "+this.I:"")))};
f.ks=function(){if(this.$e){var a=this.Og();if(0==a.width)this.Q().style.visibility="hidden";else{this.Q().style.visibility="";var b=a.width/this.B,a=a.height/this.I;this.A.Q().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.Og=function(){if(!ed)return this.$e?Xg(this.Q()):uB.K.Og.call(this);var a=this.width,b=this.height,c=x(a)&&-1!=a.indexOf("%"),d=x(b)&&-1!=b.indexOf("%");if(!this.$e&&(c||d))return null;var e,g;c&&(e=this.Q().parentNode,g=Yg(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.Q().parentNode,g=g||Yg(e),b=parseFloat(b)*g.height/100);return new H(a,b)};f.clear=function(){this.A.clear();Vd(this.F);this.o={}};function zB(a,b,c,d){b=mB(a,"path",{d:AB(b)});c=new sB(b,a,c,d);a.A.Q().appendChild(c.Q())}
function AB(a){var b=[];bB(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 nB(a,b,c){if(b in a.o)return a.o[b];var d="_svgdef_"+yB++;c.setAttribute("id",d);a.o[b]=d;a.F.appendChild(c);return d}
function lB(a,b){return b in a.o?a.o[b]:null}f.Kg=function(){uB.K.Kg.call(this);this.O&&this.J.Ka(BB(),"tick",this.ks)};f.P=function(){delete this.o;delete this.F;delete this.A;this.J.dispose();delete this.J;uB.K.P.call(this)};function BB(){vB||(vB=new vn(400),vB.start());return vB};function CB(a,b,c){this.j=a;this.o=0;this.F=b;this.G=c||70;this.A=!1}CB.prototype.start=function(a){this.D=z();this.o=a;this.C=this.D+this.o;this.A=!0;Ds(this.j);Xf(this.B);this.B=Wf(y(this.H,this),this.G)};CB.prototype.stop=function(){this.A=!1;Es(this.j);this.B&&Xf(this.B)};
CB.prototype.H=function(){if(this.A){var a=z(),b;b=0==this.o||a>=this.C?0:1-(a-this.D)/this.o;var c=Hd("countdowntimer-diminishing-pieslice",this.j),d=xh("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 YA,g=d/2-5;$A(e,d/2,d/2);e.kb(d/2,5);aB(e,g,g,-90,360*-b);e.kb(d/2,d/2);e.close();c.setAttribute("d",AB(e));a>=this.C&&(this.stop(),this.F&&this.F())}};function DB(a,b,c){X.call(this,["div","ytp-segmented-control"]);this.A=a;this.o=-1;this.j=[];if(null!=b)for(Ci(this.j),this.j=[],a=0;a<b.length;a++){var d=new Rs(this.A);rs(d,"radio");this.j.push(d);c?d.Ba(["div",b[a]]):d.Ba(b[a]);0!=a&&N(d.Q(),"ytp-segmented-control-other");EB(this,d,a==this.o);d.M("click",pa(this.oB,a),this);d.ea(this.element)}rs(this,"radiogroup")}A(DB,X);f=DB.prototype;f.SELECTED="ytp-segmented-control-selected";
f.ea=function(a,b){DB.K.ea.call(this,a,b);for(var c=0,d=0;d<this.j.length;d++)c=Math.max(c,Xg(this.j[d].Q()).width);if(c)for(d=0;d<this.j.length;d++)Wg(this.j[d].Q(),c)};f.Ia=function(a){this.o=a;for(var b=0;b<this.j.length;b++)EB(this,this.j[b],b==a)};function FB(a,b){for(var c=0;c<a.j.length;c++)Ts(a.j[c],b)}
function EB(a,b,c){b=b.Q();c?(a=a.SELECTED,qh(b,"ytp-segmented-control-deselected"),N(b,a),b.setAttribute("aria-checked",!0)):(qh(b,a.SELECTED),N(b,"ytp-segmented-control-deselected"),b.setAttribute("aria-checked",!1))}f.oB=function(a){a!=this.o&&(this.Ia(a),this.ac("change"))};f.P=function(){Ci(this.j);this.j=[];DB.K.P.call(this)};function GB(a){Zt.call(this);this.label=Y("YTP_ANNOTATIONS");this.element=new DB(a,[Y("YTP_OFF"),Y("YTP_ON")]);R(this,this.element);this.element.ib(this.label);FB(this.element,2200);this.priority=3;this.Ia(0)}A(GB,Zt);GB.prototype.Ia=function(a){this.element.Ia(a)};function HB(a,b){this.start=a<b?a:b;this.end=a<b?b:a}HB.prototype.clone=function(){return new HB(this.start,this.end)};function IB(){this.j=!1;this.C=this.A=null}function JB(a,b,c){a.A?(Vg(a.A.Q(),b,c),a.A.clear()):(b=new uB(b,c,void 0,void 0,void 0),a.A=b,a.A.hp(),a.C=I("div"),b=a.A.Q(),a.C.appendChild(b));return a.A}IB.prototype.Q=function(){return this.C};IB.prototype.o=function(){};function KB(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Jb(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function LB(a,b){var c;c=":"+(eB.getInstance().j++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function MB(a,b){var c=LB(a,KB("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=LB(a,KB("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},KB("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=LB(a,KB("feComposite",{"in":c,in2:b,operator:"in"}));return LB(a,KB("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function NB(a,b){var c=LB(a,KB("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=LB(a,KB("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=LB(a,KB("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=LB(a,KB("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=LB(a,KB("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=LB(a,KB("feComposite",{operator:"out","in":c,in2:d}));return LB(a,KB("feComposite",{operator:"over","in":b,in2:c}))}
function OB(a,b){return b}function PB(a){var b=KB("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";D(a,function(a){a:{switch(a){case "bevel":a=MB;break a;case "dropshadow":a=NB;break a}a=OB}c=a(b,c)});return b}function QB(a){a=gb(a,function(a){return a in RB});Bb(a,function(a,c){return RB[a]-RB[c]});return a}function SB(a){return F(a,function(a){return"dropshadow"==a})?new vg(0,7,7,0):new vg(0,0,0,0)}var RB={bevel:1,dropshadow:2};function TB(a,b,c,d,e){b=UB(b,c,d?d.j/2+1:0);zB(a,b,d,e)}function UB(a,b,c){var d=new YA;$A(d,a.left+b+c,a.top+c);d.kb(a.left+a.width-b-c,a.top+c);aB(d,b,b,-90,90);d.kb(a.left+a.width-c,a.top+a.height-b-c);aB(d,b,b,0,90);d.kb(a.left+b+c,a.top+a.height-c);aB(d,b,b,90,90);d.kb(a.left+c,a.top+b+c);aB(d,b,b,180,90);d.close();return d}function VB(a,b,c,d){var e=a.N;e?a=new XA(e.C*b/100,e.F*c/100,e.D*b/100,e.G*c/100,e.j,e.o,e.A,e.B):(b=WB(d,a.o),a=new cB(a.B,b));return a}
function WB(a,b){return a?Math.max(b,.9):b}function XB(a,b){var c=xg(a),d=SB(b);ia(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=void 0,c.bottom+=void 0,c.left-=NaN);return yg(c)}function YB(a,b,c){if(c.length&&(b=Gd("g",void 0,b),b.length)){var d=QB(c);if(d){c="effects:"+(d?d.join("|"):"");var e=lB(a,c);e?a=e:(d=PB(d),a=0<d.childNodes.length?nB(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function ZB(){IB.call(this);this.B=0}A(ZB,IB);
ZB.prototype.o=function(a,b,c){var d=a.j,e=d.F,g=this.j&&CA(a),e=(e+=g?1:0)?new dB(e,g?d.C:d.D):null;if(g=GA(a)){var h=fA(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=HA(a))&&a.j?a.j:null)&&a.length?a[0]:null){var l;c=c?fA(c,b):null;a=aA(k,new wg(k.I,k.J,k.D,k.B),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);l=new Qc(a.left,a.top);c=h.clone();a=new wg(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=XB(c,d.effects);a=JB(this,c.width,c.height);var g=VB(d,c.width,c.height,this.j),h=new wg(h.left-c.left,h.top-c.top,h.width,h.height),r=new Qc(l.x-c.left,l.y-c.top);this.B=17*cA(b,k.A,k.j?k.j:"xy");b=d.j;k=e?e.j/2:0;l=$B(h,r);var p=this.D(h,b,r,l),u=r.x,r=r.y,w=h.width,S=h.height,T=h.left,h=h.top,ka=new YA;$A(ka,T+b+k,h+k);"t"==l&&(ka.kb(p.start,h+k),ka.kb(u,r),ka.kb(p.end,h+k));ka.kb(T+w-b-k,h+k);aB(ka,b,b,-90,90);"r"==l&&(ka.kb(T+
w-k,p.start),ka.kb(u,r),ka.kb(T+w-k,p.end));ka.kb(T+w-k,h+S-b-k);aB(ka,b,b,0,90);"b"==l&&(ka.kb(p.end,h+S-k),ka.kb(u,r),ka.kb(p.start,h+S-k));ka.kb(T+b+k,h+S-k);aB(ka,b,b,90,90);"l"==l&&(ka.kb(T+k,p.end),ka.kb(u,r),ka.kb(T+k,p.start));ka.kb(T+k,h+b+k);aB(ka,b,b,180,90);ka.close();zB(a,ka,e,g);if(e=this.Q())N(e,"annotation-shape"),N(e,"annotation-speech-shape"),Lg(e,c.left,c.top),Vg(e,c.width,c.height),YB(a,e,d.effects)}}}};
function $B(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"}ZB.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=Pc(c-a/2,d+b,d+e-a-b);return new HB(c,c+a)}return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new HB(0,0)};function aC(){IB.call(this)}A(aC,IB);aC.prototype.o=function(a,b,c){var d=GA(a);d&&(b=fA(d,b,c),0>=b.width||0>=b.height||(a=a.j,c=XB(b,a.effects),d=JB(this,c.width,c.height),TB(d,new wg(0,0,b.width,b.height),a.j,new dB(!a.A&&this.j?1:a.A,a.B),new cB("#000",0)),b=this.Q(),N(b,"annotation-shape"),ah(b,WB(this.j,a.o)),Lg(b,c.left,c.top),Vg(b,c.width,c.height)))};function bC(a,b,c){IB.call(this);this.B=a||0;this.F=b||0;this.D=c||!1}A(bC,IB);function cC(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 wg(e,g,c,d)}
bC.prototype.o=function(a,b,c){var d=fA(GA(a),b,c);if(!(0>=d.width||0>=d.height)){var e=cC(d,this.F);e.left+=d.left;e.top+=d.top;b=a.j;c=XB(e,b.effects);var g=JB(this,c.width,c.height),h=new cB("#000",0),e=cC(e,this.B);a=a.B?a.B.j?a.B.j:a.B.videoId?ft(a.B.videoId,"hqdefault.jpg"):"":"";e=mB(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 tB(e,g);g.A.Q().appendChild(e.Q());
if(a=this.Q()){var k=WB(this.j,b.o);ah(a,k);if(this.D&&0<b.A){var k=new dB(b.A,b.B),d=new wg(0,0,d.width,d.height),l;l=UB(d,b.j,k.j/2+1);var p=lB(g,"mask");if(p)l=p;else{var p=document.createElementNS("http://www.w3.org/2000/svg","mask"),r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",AB(l));r.setAttribute("fill","#FFF");p.appendChild(r);l=nB(g,"mask",p)}e=e.Q();l&&e.setAttribute("mask","url(#"+l+")");TB(g,d,b.j,k,h)}N(a,"annotation-shape");N(a,"annotation-image-shape");
Lg(a,c.left,c.top);Vg(a,c.width,c.height);YB(g,a,b.effects)}}};function dC(){IB.call(this)}A(dC,IB);dC.prototype.o=function(a,b,c){var d=GA(a);if(d){var e=fA(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.j;c=XB(e,b.effects);var d=JB(this,c.width,c.height),g=b.F;a=this.j&&CA(a);a=(g+=a?1:0)?new dB(g,a?b.C:b.D):null;g=new wg(0,0,e.width,e.height);e=VB(b,e.width,e.height,this.j);TB(d,g,b.j,a,e);if(a=this.Q())N(a,"annotation-shape"),N(a,"annotation-popup-shape"),Lg(a,c.left,c.top),Vg(a,c.width,c.height),YB(d,a,b.effects)}}};function eC(){ZB.call(this)}A(eC,ZB);eC.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=c<=d+e/2?Math.max(d+e/4-a/2,d+b):Math.min(d+3*e/4-a/2,d+e-a-b);return new HB(c,c+a)}return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new HB(0,0)};function fC(a,b,c,d,e){this.j=a;this.I=b;this.F=c;this.N=d;this.J=e;this.G=new Nt(this);this.H=this.A=this.C=this.B=this.D=this.o=null}function gC(a,b){var c=y(function(a,c,g){c=g?hC(this,c,y(g,this)):hC(this,c);this.G.M(b,a,c)},a);c("mouseover","d",a.T);c("mouseout","c",a.O);c("click","a");c("touchend","a")}
function iC(a){if(a.j.F){var b;BA(a.j,function(a){return"close"==a.type})?b=a.o:(a.C=I("div",["annotation-close-button","hid"]),vi(a.C,"annotation_id",a.j.id),a.o.appendChild(a.C),b=a.C);var c=function(a){a.stopPropagation()};a.G.M(b,"click",hC(a,"b",c));a.G.M(b,"touchend",hC(a,"b",c))}}
function hC(a,b,c){return y(function(a){if(this.J)c&&c(a);else if(a.target instanceof Element){var e=a.target;Es(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(ne(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{Ds(e)}}e=$g(a.target);a=new Qc(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.N.L(b,this.j)},a)}fC.prototype.T=function(){this.C&&Ds(this.C);this.B&&ah(this.B,1);var a=jC(this);this.A&&(this.A.j=!0,ah(this.o,kC(this)?1:0),a&&this.A.o(this.j,a,lC(this)))};fC.prototype.O=function(){this.C&&Es(this.C);this.B&&ah(this.B,0);var a=jC(this);this.A&&(this.A.j=!1,ah(this.o,kC(this)?1:0),a&&this.A.o(this.j,a,lC(this)))};function lC(a){return a.H?GA(a.H):null}
function VA(a){if(a.o||a.A){var b=GA(a.j);if(b){var c=jC(a),d=lC(a);if(a.o&&c){b=fA(b,c,d);Vg(a.o,b.width,b.height);Lg(a.o,b.left,b.top);var e=a.F.Yj;if(e){var g;g=(g=GA(a.j))&&e?bA(e,g.C,g.j?g.j:"xy"):1;var e=IA(a.j,e),h;h=a.j.j;h.H?h=h.H:(h="speech"==a.j.style?1.6:.8,h=new vg(h,h,h,h));h=new vg(360*h.top*e/100,640*h.right*g/100,360*h.bottom*e/100,640*h.left*g/100);a.B&&(h.right+=1.5*c.height/100);a.o.style.padding=h.top+"px "+h.right+"px "+h.bottom+"px "+h.left+"px";"label"==a.j.style&&a.D&&(a.D.style.padding=
a.o.style.padding);a.B&&(g=g/e*c.height*4.2/100,g=new H(g,g),Vg(a.B,g),"highlight"==a.j.type||"label"==a.j.style?(e=1.5*c.height/100,g=new Qc(b.width-g.width-e,b.height-g.height-e)):g=new Qc(b.width-g.width-3*c.height/100,(b.height-g.height)/2),Lg(a.B,g));a.C&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Lg(a.C,g&&e?new Qc(b.width-9,-9):g?new Qc(b.width-9,45<b.height?9:b.height-9):e?new Qc(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new Qc(45<b.width?b.width-9-18:-9,
b.height-9):new Qc(-9,45<b.height?9:b.height-9)))}}a.A&&c&&a.A.o(a.j,c,d);if(a.o){c=a.o;d=a.j.j;c.style.color="highlightText"==a.j.style?d.J:d.C;c.style.fontSize=360*d.textSize*IA(a.j,a.F.Yj)/100+"px";b=a.j.style;c.style.textAlign=d.I?d.I:"title"==b||"highlightText"==b?"center":"left";d.G&&(c.style.fontWeight=d.G);a=a.o;c=a.style.overflow;d=Hd("annotation-link-icon",a);b=Cs(d);g=Hd("annotation-close-button",a);e=Cs(g);d&&b&&Es(d);g&&e&&Es(g);var k=h="",l=Hd("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=mh(a),r=p,u=5,w=Math.floor(p/2);w;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(u=r,r=Math.min(r+w,p)):r=Math.max(r-w,u),w=Math.floor(w/2),a.style.fontSize=r+"px";r!=u&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=u+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=
k);g&&e&&Ds(g);d&&b&&Ds(d)}}}}fC.prototype.$=function(){Es(this.o);this.A&&Es(this.A.Q())};function kC(a){return"label"!=a.j.style||a.A.j}function jC(a){var b=a.F.Yj;return b?"player_relative"==a.j.H?(a=a.F.fk)?new wg(-b.left,-b.top,a.width,a.height):null:new wg(0,0,b.width,b.height):null};function mC(a){Nr.call(this,a);this.ki=!0;this.za="iv-module";this.Dc="iv";this.J=!1;this.U=!0;this.F=!1;this.R=0;this.o={};this.I={};this.D=new jy(this.T,a);a=nC;this.B=new GB(cs(this));R(this,this.B);this.B.M("change",this.QE,this);this.subscribe("onHideControls",this.xA,this);this.subscribe("onShowControls",this.uB,this);this.subscribe("onStateChange",this.aB,this);this.subscribe("d",this.SE,this);this.subscribe("c",this.RE,this);this.subscribe("a",this.xz,this);this.subscribe("b",this.Uz,this);
var b=new is(["div",[a.Du,"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.Q();this.O=I("DIV",[a.ev,"html5-stop-propagation"]);this.W=I("DIV",a.Iu);this.C=null;Sr(this,I("DIV",a.pu,this.O,this.W));Sr(this,b);this.H=new CB(b,y(this.ql,this));this.G=this.A=null;this.N=[]}A(mC,Nr);mC.C="AnnotationsModule";
var nC={pu:"video-annotations",Du:"countdowntimer",Iu:"video-custom-annotations",ev:"video-legacy-annotations"};mC.B=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};mC.A=function(a){return"card"==a.type};mC.o=function(a){return mC.Ja(a)?new mC(a):null};mC.Ja=function(a){var b=a.V();return"leanback"==b.ka?!1:b.aa?!0:zt(a.getVideoData(),"iv3_module")};mC.j=function(){return I("div",["annotation","annotation-type-custom","hid"])};f=mC.prototype;f.Ja=function(){return mC.Ja(this.j)};
f.Pa=function(){mC.K.Pa.call(this);this.C=new X(["div",["ytp-player-content","ytp-iv-player-content"]]);this.C.ea(this.j.Oa());fs(this,this.B);var a=this.j.V();(1==(a.Pd||this.j.getVideoData().wa)||a.aa)&&this.load()};f.destroy=function(){qh(this.j.Oa(),"ytp-iv-drawer-open");this.C.detach();this.C.dispose();gs(this,this.B);mC.K.destroy.call(this)};f.QE=function(){var a=1==this.B.element.o;this.F&&!a?(this.unload(),this.log({toggle:0})):!this.F&&a&&(this.load(),this.log({toggle:1}))};
f.aB=function(a){this.U=W(a.state,8);0>ux(a,4)&&this.H.stop()};f.load=function(){mC.K.load.call(this);this.R++;var a=this.j.getVideoData(),b=y(this.rA,this,a.videoId,this.R);By()&&(b=oC(this,b));var b={format:"XML",method:"GET",Ac:b},c=this.j.V(),d=c.aa,e=c.md;if(d||e)b.method="POST",b.Lb={},d&&(b.Lb.ic_xml=d,c.aa=""),e&&(b.Lb.ic_track=e,c.md="");!a.ii||a.no&&!d||(this.F=!0,Ij(a.ii,b));this.B.Ia(1)};
f.unload=function(){this.B.Ia(0);this.D.Ra({"iv-event":1});this.ql();Qr(this);Jb(this.o,function(a){a.destroy()});Jb(this.I,function(a){a.destroy()});this.G=null;this.A&&(this.A.destroy(),this.A=null);this.F=!1;this.o={};this.I={};mC.K.unload.call(this)};
function pC(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(pC(a,e))}return c}
f.rA=function(a,b,c){if(this.loaded&&this.R==b&&this.j.getVideoData().videoId==a&&(a=c.responseXML?c.responseXML.getElementsByTagName("annotations"):null,Dj(c)&&a)){qC(this,a[0]);N(this.j.Oa(),this.za+"-loaded");c=[];for(var d in this.o){a=this.o[d].annotation;if(a.o)if(b=a.o,b.j.length)if(b=b.j[0].o||b.j[0].j||b.j[0].A,!b||2>b.length)b=null;else{var e=b.length-1;b=0>=b[0].o&&0>=b[e].o?null:{start:b[0].o,end:b[e].o}}else b=null;else b=null;if(e=b)if(b=1E3*e.start,e=1E3*e.end,0==b&&(b++,e++),b==e&&
e++,!(e<b)){var g={id:d};"marker"==a.type&&(g.style="ytp-chapter-marker",g.tooltip=a.D,g.visible=!0);a=new Mq(b,e,g);c.push(a)}}Or(this,c)}};function rC(a,b){var c=sC(a,b);if(!c&&"marker"!=b.type)return null;EA(b,function(a){a=y(this.NB,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new SA(a.T,b,c)}
function tC(a,b){var c=a.C.Q(),d=mC.j(),e=null;switch(b.type){case "branding":var g=a.j.V();if(g.experiments.fm&&g.Od)break;c.appendChild(d);e=new Nz(d,uC(a),b);break;case "promotion":c.appendChild(d),e=new JA(d,uC(a),b)}e&&e.Nj();return e}function vC(a,b){if(!a.A){var c=new X(["div","hid"]);a.A=new yz(c.Q(),uC(a));c.ea(a.C.Q());a.A.Nj()}(c=b&&b.data&&b.data.card_type)&&zz[c]&&a.A.add(new zz[c](b.id,b.data,b.ub))}
function uC(a){a.G||(a.G=new Qz(new Nt(a),a.j.V(),a.j.getVideoData(),a.D,a.j,a.T));return a.G}function qC(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=pC(a,c[d]),g=null;try{g=zA(e)}catch(h){}g&&(mC.B(g)?(e=tC(a,g))&&(a.I[g.id]=e):mC.A(g)?vC(a,g):(e=rC(a,g))&&(a.o[g.id]=e))}Jb(a.o,function(a){var b=a.annotation;b.o&&b.o.o&&(b=this.o[b.o.o])&&(a.j.H=b.annotation)},a)}
f.Mc=function(a){mC.K.Mc.call(this,a);a=a.getId();var b=this.o[a];b&&!b.C&&(b=b.annotation,"pause"==b.type?wC(this,b):(xC(this,a),ky(this.D,b.ub)))};f.ed=function(a){mC.K.ed.call(this,a);yC(this,a.getId())};function wC(a,b){if(a.U){var c=AA(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.J=!0,a.L("command_pause"),a.H.start(1E3*c.duration.value))}}function zC(a,b,c,d){d?xC(a,b,c):yC(a,b,c)}
function yC(a,b,c){if(b=a.o[b])UA(b),c&&c.o?(a=y(a.np,a,b),b.o=new xs(a,2E3),b.o.start()):a.np(b)}f.np=function(a){a&&(a.$(),AC(this,"shown",!1,a.annotation.id),this.Ci(a.annotation,"hidden"))};function xC(a,b,c){if(b=a.o[b])UA(b),c&&c.B?(a=y(a.Yr,a,b),b.o=new xs(a,2E3),b.o.start()):a.Yr(b)}
f.Yr=function(a){if(a){a.isVisible=!0;if(a.j){var b=a.j,c=b.j.j,c=(c&&0==c.o||"title"==b.j.style||"highlightText"==b.j.style||"pause"==b.j.type?!1:!0)&&!b.A,d=!b.o,e="widget"==b.j.type;if(c){var g=jC(b);if(g){var h=null;"highlight"==b.j.type||"label"==b.j.style?h=new aC:"popup"==b.j.style?h=new dC:"anchored"==b.j.style?h=new ZB:"speech"==b.j.style?h=new eC:"image"==b.j.type&&("video"==b.j.style?h=new bC(dt,ct,!0):"channel"==b.j.style&&(h=new bC));h&&(h.o(b.j,g,lC(b)),b.A=h,g=h.Q())&&(Es(g),N(g,"annotation-type-"+
b.j.type.toLowerCase()),b.I(g))}}if(d){g=["annotation","hid"];"highlightText"!=b.j.style||g.push("annotation-no-mouse");g.push("annotation-type-"+b.j.type.toLowerCase());b.o=I("div",g);b.j.D&&(b.D=I("div","inner-text"),"label"==b.j.style&&(N(b.D,"label-text"),b.D.style.backgroundColor=b.j.j.B),ee(b.D,b.j.D),b.o.appendChild(b.D));vi(b.o,"annotation_id",b.j.id);b.I(b.o);gC(b,b.o);if(CA(b.j)&&"image"!=b.j.type&&b.j.showLinkIcon()){if(g=Pz(b.j))b.o.title=g.value?g.value:null;b.B=I("span","annotation-link-icon");
b.o.appendChild(b.B)}iC(b);CA(b.j)||(b.o.style.cursor="default")}e&&("subscribe"==b.j.style?Hd("yt-uix-subscription-button",b.o)||(b.o.innerHTML=b.j.A):b.j.A&&(b.o.innerHTML=b.j.A));if(c||d){a:{c=b.j.o.j;if(c.length&&(c=mA(c[0]))){c=c.F;break a}c=0}b.o&&(b.o.style.zIndex=c);b.A&&b.A.Q()&&(b.A.Q().style.zIndex=c)}Ds(b.o);ah(b.o,kC(b)?1:0);VA(b);b.A&&Ds(b.A.Q())}a.A.subscribe("onResize",a.B,a);AC(this,"shown",!0,a.annotation.id);this.Ci(a.annotation,"shown")}};
f.NB=function(a,b,c){var d=this.o[a];if(d&&b.value!=c){b.value=c;var e=!1;EA(d.annotation,function(a){e|=a.value});zC(this,a,b,e)}};f.xz=function(a){if(a&&a.id){var b=Pz(a);if(b){var c=b.value?b.value:null;if(c){var d=y(this.Ci,this,a,"click"),e=this.j.getVideoData();if("new"==iy(c,b.target)||-1!=ey(b,e.videoId))d(),d=null;oy(this.D,a.ub,d)}}}};
f.Ci=function(a,b){DA(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.j.getVideoData(),e=ey(c.url,d.videoId);if(-1!=e)this.L("command_seek",e),this.ql();else if(d=fy(c.url,a.id,d.videoId,this.j.V()))this.pauseVideo(),c=iy(d,c.url.target),uy(d),vy(d,"current"==c?"_top":void 0)}},this)};f.xA=function(){AC(this,"playerControlShow",!1)};f.uB=function(){AC(this,"playerControlShow",!0)};f.SE=function(a){AC(this,"rollOver",!0,a.id)};f.RE=function(a){AC(this,"rollOver",!1,a.id)};
f.Uz=function(a){if(a||a.id)this.o[a.id].C=!0,yC(this,a.id),a&&(py(this.D,a.ub),this.Ci(a,"close")),AC(this,"closed",!0,a.id)};f.ql=function(){this.H.stop();this.J&&(this.J=!1,this.L("command_play"))};function sC(a,b){if(BC(b)){var c=b.F||BA(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new fC(b,y(a.O.appendChild,a.O),a.j.V(),a.T,c)}return null}
function BC(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in wA)if(a.style==wA[b])return!0;return!1}function AC(a,b,c,d){a.L(RA(b,d),c,d)}function oC(a,b){return y(function(){if(!this.ma()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=pa.apply(window,a);this.N.push(Cy(b,void 0))}},a)}f.P=function(){for(var a=this.N,b=0,c=a.length;b<c;b++)Ey(a[b]);this.N.length=0;mC.K.P.call(this)};var CC=/^#(?:[0-9a-f]{3}){1,2}$/i,DC="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),EC=["none","raised","depressed","uniform","dropShadow"],FC=["sub","inherit","super"],GC={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0},HC=["left","right","center"],IC={anchorPoint:7,bold:!1,colCount:32,color:"#fff",heightPercentage:100,isVisible:!0,italic:!1,leftPercentage:50,
offset:1,rowCount:15,textAlign:2,textPrintDirection:0,topPercentage:100,underline:!1,widthPercentage:80},JC={id:0,priority:0,colCount:100},KC={id:98},LC={id:99,priority:1,anchorPoint:0,leftPercentage:5,topPercentage:5,rowCount:2,textAlign:0},MC=["en_CA","en_US","es_MX","fr_CA"];var NC=[{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"}],OC=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],PC=[{option:.25,text:"25%"},{option:.5,
text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],QC=[{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:NC},
{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:NC},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:OC},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:NC},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:OC},{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:PC}];var RC;function SC(a,b){ea(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;RC||(RC={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=RC;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function TC(a,b,c,d,e){Rs.call(this,a,b,c,c);this.J=b;this.defaultTooltip=this.O=c;this.B=d||null;this.G=e||null;this.H=e||null;this.j=!1}A(TC,Rs);TC.prototype.update=function(){Ss(this,this.j&&this.B?this.B:this.J);this.ib(this.j&&this.G?this.G:this.O);this.o=this.j&&this.H?this.H:this.defaultTooltip;O(this.element,"ytp-button-pressed",this.j)};function UC(a){a.j=!0;SC(a.element,!0);a.update()}function VC(a){a.j=!1;SC(a.element,!1);a.update()}function WC(a,b){a.J=b;a.update()}
TC.prototype.P=function(){this.H=this.G=this.B=null;TC.K.P.call(this)};function XC(a){TC.call(this,a,"ytp-subtitles-button",Y("YTP_SUBTITLES"),"ytp-subtitles-button-active");Ts(this,6500);this.element.setAttribute("aria-haspopup",!0);this.element.id="subtitles_button"}A(XC,TC);function YC(a){X.call(this,a)}A(YC,X);YC.prototype.Tt=function(){};YC.prototype.focus=function(){};function ZC(a,b,c,d){X.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Y(b.message):""),e=[new is(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new is(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.Q().style.background=b.option.toString(),e.unshift(d));c?e.unshift(new is(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new is(["div","ytp-subtitles-settings-dialog-list-check"]));this.j=new Rs(a);R(this,this.j);
this.j.Ba(e);this.Ba(this.j)}A(ZC,X);function $C(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.B=a;this.o=null;var b=Y("YTP_DONE"),c=new Rs(a,"ytp-dialog-button",b);R(this,c);c.Ba(b);c.M("click",pa(this.ac,"cancel"),this);Ts(c,1400);b=Y("YTP_RESET");a=new Rs(a,"ytp-dialog-button",b);R(this,a);
a.Ba(b);N(a.Q(),"ytp-dialog-button-left");a.M("click",pa(this.ac,"select"),this);Ts(a,1300);this.A={};this.j={};this.template.update({top:aD(this,QC),buttons:[a,c]})}A($C,YC);
function aD(a,b,c){var d=new X(["ul","ytp-subtitles-settings-dialog-list"]),e,g=!1;n(c)?(a.j={},e=a.j):(a.A={},e=a.A,g=!0);for(var h=0;h<b.length;h++){var k=b[h],l=new ZC(a.B,k,g,b==NC);g?(l.M("click",y(a.Zr,a,k.options,k.option)),Ts(l.j,1100)):c&&(l.M("click",y(a.MC,a,c,k.option)),Ts(l.j,1200));e[k.option]=l;l.ea(d.Q())}return d}f=$C.prototype;f.Zr=function(a,b){this.template.update({sub:aD(this,a,b)});bD(this,this.A,b);bD(this,this.j,this.o[b]);cD(this.template.j["ytp-subtitles-settings-dialog-sub-level"])};
function cD(a){(a=Hd("ytp-subtitles-settings-dialog-list-selected",a))&&a.focus()}f.focus=function(){cD(this.template.j["ytp-subtitles-settings-dialog-top-level"])};function bD(a,b,c){Jb(b,function(a,b){var g=b==c;O(a.j.Q(),"ytp-subtitles-settings-dialog-list-selected",g)},a)}function dD(a,b){a.o=b;var c=QC[0];c&&c.options&&a.Zr(c.options,c.option)}f.MC=function(a,b){this.o&&(this.o[a]=b,this.ac("change"));bD(this,this.j,b);this.focus()};
f.Tt=function(){var a=this.B.vb(),b=2*Math.floor(Math.min(560,Math.max(230,.65*a.width))/2);this.Q().style.width=b+"px";this.template.j["ytp-dialog-body"].style.height=a.height-140+"px"};f.P=function(){this.A=[];this.j=[];$C.K.P.call(this)};function eD(a,b,c,d,e,g){Zt.call(this);this.N=b;this.O=c;this.J=d;this.T=e;this.I=g;this.o={};this.o.off=Y("YTP_LANGUAGE_OFF");this.o.translate=Y("YTP_TRANSLATE_MENU_ITEM");this.o.contribute=Y("YTP_CONTRIBUTE_MENU_ITEM");this.label=Y("YTP_SUBTITLES");this.j=new Ut(a,y(this.G,this),y(this.R,this));R(this,this.j);this.element=new Pt(a,void 0,this.j);R(this,this.element);Rt(this.element,150);this.element.ib(this.label);this.priority=1;this.C=!0;this.F=this.D=!1;fD(this,[]);this.off()}A(eD,Zt);
eD.prototype.H=function(){this.J()};function fD(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]=Vv(e));c.push(g)}c.push("translate");a.F&&c.push("contribute");Vt(a.j,c);Xt(a.j,!a.D);c=Wt(a.j,"translate");O(c.element,"ytp-drop-down-menu-button-separated",!1);O(c.element,"ytp-drop-down-menu-button-separated-above",!0);c=2500;Yt(a.j,c++);c=c++;Ts(a.element.j,c)}function gD(a,b){a.o[b]&&(a.j.Ia(b),a.element.xe(a.G(b)))}eD.prototype.off=function(){gD(this,"off")};
eD.prototype.G=function(a){return this.o[a]};eD.prototype.R=function(a){this.element.we();"off"==a?this.N():"translate"==a?this.T():"contribute"==a?this.I():this.O(a,!0)};function hD(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y("YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);var c=Y("YTP_DISMISS"),b=new Rs(a,"ytp-dialog-button",c);R(this,b);b.Ba(c);b.M("click",pa(this.ac,"change"),this);Ts(b,1400);var c=Y("YTP_CANCEL"),d=new Rs(a,"ytp-dialog-button",c);R(this,d);d.Ba(c);d.M("click",pa(this.ac,"cancel"),this);Ts(d,1500);this.o=new Ut(a,y(this.A,this),
y(this.C,this),!0);R(this,this.o);this.o.element.style.maxHeight="100px";this.j=new Pt(a,void 0,this.o);R(this,this.j);Rt(this.j,200);this.j.ib(Y("YTP_TRANSLATE_DIALOG_TITLE"));this.B=null;this.template.update({content:this.j,buttons:[b,d]})}A(hD,YC);hD.prototype.Ia=function(a){this.B=a;this.j.xe(a?this.A(a):null)};hD.prototype.C=function(a){this.j.we();this.Ia(a)};hD.prototype.A=function(a){return a.cj?a.languageName+" -- "+a.cj:a.languageName};hD.prototype.focus=function(){this.j.focus()};function iD(a){TC.call(this,a,"ytp-settings-button",Y("YTP_SETTINGS"),"ytp-settings-button-active");Ts(this,6600);this.element.setAttribute("aria-haspopup",!0);this.element.id="settings_button";this.A=new X(["div","{{content}}"]);R(this,this.A);this.Ba(this.A);jD(this,"")}A(iD,TC);
function jD(a,b){"highres"==b?a.A.Ba("ytp-settings-8k-quality-badge"):"hd2880"==b?a.A.Ba("ytp-settings-5k-quality-badge"):"hd2160"==b?a.A.Ba("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.A.Ba("ytp-settings-hd-quality-badge"):a.A.Ba("")};function kD(a,b){this.id=a;this.Fa={};qa(this.Fa,IC);b?qa(this.Fa,b):qa(this.Fa,JC);var c="caption-window";0==this.id&&(c+=" standard-caption-window");this.Ma=I("div",{id:"caption-window-"+this.id,"class":c});this.Wb=I("span",{"class":"captions-text",style:"visibility: hidden"});this.Wb.innerHTML="C";this.Ua=I("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.Dh=I("div",{"class":"caption-window-transform"});this.Dh.appendChild(this.Ua);this.Ma.appendChild(this.Dh);this.j=
1}kD.prototype.id=0;f=kD.prototype;f.Ig="";f.Fc=null;f.Ma=null;f.Dh=null;f.Ua=null;f.Wb=null;f.type=0;
f.Id=function(a,b){a&&qa(this.Fa,a);var c=this.Fa.charEdgeStyle,d=this.Fa.textOpacity,e="";if(0!=c){var g="rgba(34, 34, 34, "+d+")",h="rgba(204, 204, 204, "+d+")";this.Fa.charEdgeColor&&(h=g=this.Fa.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.Fa.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=Hz(this.Fa.color),h=Hz(this.Fa.background),k="rgba("+k[0]+","+k[1]+","+k[2]+","+d+")",d=this.Fa.offset||1;Fg(this.Ua,{color:k,fill:k,"background-color":"rgba("+h[0]+","+h[1]+","+h[2]+","+this.Fa.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":g,"font-weight":this.Fa.bold?"bold":"","font-style":this.Fa.italic?"italic":"","text-decoration":this.Fa.underline?
"underline":"","vertical-align":FC[d]});b&&(this.j=b.height/360);e=Hz(this.Fa.windowColor);c=this.Fa.windowOpacity;g=this.Fa.fontSizeIncrement||0;1!=d&&(g*=.8);Fg(this.Dh,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*g)*this.j)+"px"})};f.Li=function(){var a;this.Wb.style.fontFamily=this.Ua.style.fontFamily;this.Ma.appendChild(this.Wb);a=this.Wb.offsetHeight;this.Ma.removeChild(this.Wb);return a};
f.ie=function(){this.Ua&&(0!=this.id&&98!=this.id&&(Wg(this.Ma,"100%"),Wg(this.Ma,this.Ua.offsetWidth+1)),lD(this),Bs(this.Ma,this.Fa.isVisible))};function lD(a){Lg(a.Ma,a.Fa.leftPercentage+"%",a.Fa.topPercentage+"%");for(var b=0;8>=b;b++)qh(a.Ma,"anchor-point-"+b);N(a.Ma,"anchor-point-"+a.Fa.anchorPoint)}f.Tr=function(a){var b=[];D(a,function(a){a.A?b[b.length-1]+=a.j:b.push(a.j)});if(a.length){var c=a[a.length-1].B;c&&this.Id(mD(c))}this.ne(b.join("\n"));this.Fc=a};
f.ne=function(a){this.Ig=a=nD(a);this.Ua.innerHTML=this.Ig;this.Ma.style.textAlign=HC[this.Fa.textAlign];1==this.Fa.textPrintDirection?this.Ua.setAttribute("dir","rtl"):this.Ua.removeAttribute("dir");this.ie()};f.toString=function(){var a="Caption window ("+this.id+"): "+this.Ig,b;for(b in this.Fa)a+=b+" "+this.Fa[b]+" | ";return a};function nD(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.si=function(){this.Fc=[];this.ne("")};function oD(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=pD();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function qD(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 rD(a,b){if("undefined"!=typeof a.selectSingleNode){var c=Dd(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(document.implementation.hasFeature("XPath","3.0")){var c=Dd(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null}
function sD(a){if("undefined"!=typeof a.selectNodes){var b=Dd(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=Dd(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 pD(){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 tD(){this.o=[];this.j=[]};function uD(a,b,c,d,e,g,h){Mq.call(this,a,a+b,{priority:c});this.o=d;this.j=e;this.A=g||!1;this.B=h||null}A(uD,Mq);uD.prototype.toString=function(){return uD.K.toString.call(this)};
function vD(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=a.getAttribute("t"),c=c?parseInt(c,10):1E3*parseFloat(a.getAttribute("start")||0),d=a.getAttribute("d"),d=d?parseFloat(d):1E3*parseFloat(a.getAttribute("dur")||0),e=parseInt(a.getAttribute("w"),10)||0;a=!!a.getAttribute("append");return new uD(c,d,a?6:5,e,b,a)}function wD(a,b,c,d,e,g,h){Mq.call(this,a,a+b,{priority:c});this.id=d;this.params=e||{};this.A=g||null;this.B=h||null;this.j="";this.o=!1;xD(this)}A(wD,Mq);wD.prototype.C=!1;
function yD(a){return a.params.modeHint?a.params.modeHint:a.params.textScrollDirection?2:a.o?1:0}function zD(){return new wD(0,2147483647,0,0,JC)}function xD(a){a.A&&qa(a.params,mD(a.A));a.B&&qa(a.params,mD(a.B))};function AD(a){tD.call(this);this.j.push(zD());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=vD(a[b]);this.o.push(d)}}A(AD,tD);function BD(a){tD.call(this);this.A={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=parseInt(b.getAttribute("id"),10);a:{var d=b,e=this.A[c];if(d.getAttribute("t")||d.getAttribute("start")){b=d.getAttribute("start")?1E3*parseFloat(d.getAttribute("start")):parseInt(d.getAttribute("t"),10);e&&(e.end>=b?e.end=b:e=null);switch(d.getAttribute("op")){case "kill":b=null;break a;case "define":e=null}e?e.C=!0:e=zD();var g={};qa(g,e?e.params:JC);d.getAttribute("id")&&(g.id=d.getAttribute("id"));
d.getAttribute("op")&&(g.operation=d.getAttribute("op"));d.getAttribute("rc")&&(g.rowCount=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(g.colCount=parseInt(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=parseInt(d.getAttribute("ap"),10),g.anchorPoint=0>e||8<e?7:e);d.getAttribute("ah")&&(g.leftPercentage=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(g.topPercentage=parseInt(d.getAttribute("av"),10));d.getAttribute("id")&&(g.id=parseInt(d.getAttribute("id"),10)||0);d.getAttribute("vs")&&
(g.isVisible=Boolean(d.getAttribute("vs")));d.getAttribute("ju")&&(g.textAlign=parseInt(d.getAttribute("ju"),10));d.getAttribute("pd")&&(g.textPrintDirection=1,0==parseInt(d.getAttribute("pd"),10)&&(g.textPrintDirection=0));d.getAttribute("bc")&&(g.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(g.backgroundOpacity=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(g.color=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(g.textScrollDirection=parseInt(d.getAttribute("sd"),
10));e=parseInt(d.getAttribute("d"),10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d=parseInt(d.getAttribute("id"),10)||0;b=new wD(b,e,0,d,g)}else b=null}this.A[c]=b;this.j.push(b);break;case "text":c=vD(a),this.o.push(c),b=c.o,this.A[b]&&(b=this.A[b],c=c.j,""!=b.j&&(b.o=!0),b.j+=c)}a=a.nextSibling}0==this.j.length&&this.j.push(zD())}A(BD,tD);function CD(a){this.parent=a||null;this.j={}}function DD(a,b,c){var d=a.j[b];if(void 0!=d)return d;if(a.parent&&(void 0==c||c))return DD(a.parent,b)}function ED(a,b,c){void 0!=c&&(a.j[b]=c)}function FD(a,b,c){void 0!=c&&(a.j[b]=c)}function mD(a){var b=a.parent?mD(a.parent):{};qa(b,a.j);return b};function GD(a){tD.call(this);var b={uj:{},un:{},vn:{}},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=HD(e,"p"),k=void 0;h&&g.uj[h]&&(k=g.uj[h]);g=new CD(k);ED(g,"id",HD(e,"id"));h=ID(e,"b");void 0!=h&&(g.j.bold=h);h=ID(e,"i");void 0!=h&&(g.j.italic=h);h=ID(e,"u");void 0!=h&&(g.j.underline=h);ED(g,"charEdgeStyle",JD(e,"et"));ED(g,"offset",
JD(e,"of"));ED(g,"textType",JD(e,"tt"));FD(g,"background",KD(e,"bc"));FD(g,"charEdgeColor",KD(e,"ec"));FD(g,"color",KD(e,"fc"));h=JD(e,"fs");void 0!=h&&0!=h&&ED(g,"fontFamily",h);h=HD(e,"sz");void 0!=h&&ED(g,"fontSizeIncrement",h/100-1);h=HD(e,"bo");void 0!=h&&ED(g,"backgroundOpacity",h/255);e=HD(e,"fo");void 0!=e&&ED(g,"textOpacity",e/255);e=DD(g,"id",!1);b.uj[e]=g;break;case "ws":g=LD(b,e);e=DD(g,"id",!1);b.vn[e]=g;break;case "wp":g=MD(b,e),e=DD(g,"id",!1),b.un[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=ND(b,g);if(g=c[k.id])g.end=k.start;c[k.id]=k;this.j.push(k);break;case "p":var h=b,l=g,k=HD(l,"t")||0,p=HD(l,"d")||0,r=l.textContent||"",u=HD(l,"w")||0,w=!!ID(l,"a"),S=w?6:5,l=HD(l,"p"),h=new uD(k,p,S,u,r,w,l?h.uj[l]:null),k=c[h.o];k||(k=ND(b,g),k.id=a--,h.o=k.id,this.j.push(k));g=k;k=h.j;""!=g.j&&(g.o=!0);g.j+=k;this.o.push(h)}}A(GD,tD);function HD(a,b){var c=a.getAttribute(b);if(null!=c)return parseFloat(c)}
function ID(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c}function JD(a,b){var c=HD(a,b);if(void 0!=c)return c}function KD(a,b){var c=a.getAttribute(b);if(null!=c)return CC.test(c),c}
function LD(a,b){var c=HD(b,"ws"),d;c&&a.vn[c]&&(d=a.vn[c]);c=new CD(d);ED(c,"id",HD(b,"id"));ED(c,"modeHint",JD(b,"mh"));ED(c,"textAlign",HD(b,"ju"));ED(c,"textPrintDirection",JD(b,"pd"));ED(c,"textScrollDirection",JD(b,"sd"));ED(c,"windowBorderType",JD(b,"et"));FD(c,"windowBorderColor",KD(b,"wbc"));FD(c,"windowColor",KD(b,"wfc"));d=HD(b,"wfo");void 0!=d&&ED(c,"windowOpacity",d/255);return c}
function MD(a,b){var c=HD(b,"wp"),d;c&&a.un[c]&&(d=a.un[c]);c=new CD(d);ED(c,"anchorPoint",JD(b,"ap"));ED(c,"colCount",HD(b,"cc"));ED(c,"id",HD(b,"id"));ED(c,"leftPercentage",HD(b,"ah"));ED(c,"rowCount",HD(b,"rc"));ED(c,"topPercentage",HD(b,"av"));return c}function ND(a,b){var c=HD(b,"id")||0,d;d=HD(b,"t");var e=HD(b,"d")||2147483647,g=MD(a,b),h=LD(a,b);return new wD(d,e,0,c,null,g,h)};function OD(a,b){tD.call(this);this.j.push(zD());for(var c=a.split(PD),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(QD))e=null;else{var h=e.split(RD),k=0,l=h[k++].match(SD);l||(l=h[k++].match(SD));l?(e=TD(l[1],g)||0,g=TD(l[3],g)||0,h=h.slice(k).join("\n"),e=new uD(e,g-e,5,0,h)):e=null}e&&this.o.push(e)}}A(OD,tD);var QD=/NOTE/,PD=/(?:\r\n|\r|\n){2,}/,RD=/\r\n|\r|\n/,SD=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function TD(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 UD(a,b){this.j=[];this.o=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new OD(a,b||0):(c=oD(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new GD(c):new BD(c):new AD(c):null:null;c&&(this.o=c.j,this.j=c.o)};function VD(){this.A=[];this.j=[];this.o=-1}function WD(a,b){return b?a.j.concat(a.A):a.j}function XD(a,b){switch(b.A){case "asr":return YD(b,a.A);default:if(b.isDefault||0>a.o)a.o=a.j.length;return YD(b,a.j)}}function YD(a,b){return F(b,y(a.equals,a))?!1:(b.push(a),!0)}function ZD(a,b){var c=kb(a.j,y(b.equals,b));-1!=c&&(a.o=c)};function $D(a){this.Mp=!!a;this.o=new VD;this.B=[]}A($D,Q);function aE(a,b){return F(WD(a.o,!0),function(a){return a.toString()==b})}f=$D.prototype;f.xl=function(a){var b=this.o.o,c=WD(this.o,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};f.Yd=function(){return null};f.seek=function(){};f.mn=function(){};f.P=function(){$D.K.P.call(this);this.mn()};function bE(a){$D.call(this,a.oi);this.A=null;this.C=void 0;this.B=a.Md}A(bE,$D);f=bE.prototype;f.Go=function(){for(var a=[],b=WD(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:Vv(d),srclang:d.j,src:cE(this,d)};d==this.xl()&&(e["default"]=1);a.push(I("track",e))}return a};
f.rm=function(a,b){var c=cE(this,a),d=y(function(c){this.j=null;c=new UD(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=Ij(c,{format:"RAW",qb:d,withCredentials:!0});this.A&&this.A.Fi!=a&&(this.A.ml=a)};f.sm=function(a,b,c,d){this.C=c;if(this.A=d||null)for(b=0;b<this.A.captionTracks.length;b++)XD(this.o,this.A.captionTracks[b]);a()};function cE(a,b){var c=b.H,d={};if(a.C||b.C)d.fmt=a.C||"srv"+b.C;b.o&&(d.tlang=b.o.languageCode);return Aj(c,d)}f.Yd=function(){return this.A?this.A.Fi:null};
f.xl=function(){return this.A?this.A.ml:null};f.P=function(){this.j&&this.j.abort();bE.K.P.call(this)};function dE(){this.H=1;this.B=20971520;this.A=8388608;this.G=NaN;this.j=5242880;this.Aa=NaN;this.J=2;this.R=25;this.F=2097152;this.D=!1;this.C=1800;this.o=Zv.auto;this.T=!0;this.liveChunkReadahead=3;this.O=fr("xboxone");this.I=0;this.Ga=this.U=this.X=this.W=this.N=!1};function eE(){this.pa=[]}eE.prototype.contains=function(a){a=zb(this.pa,a);return 0<=a||0>a&&1==(-a-1)%2};eE.prototype.length=function(){return this.pa.length/2};function fE(a,b){Q.call(this);this.ca=b;this.F=new eE;this.B=!0;this.G=this.j=this.C=this.D=this.o=null;this.A=0}A(fE,Q);fE.prototype.P=function(){Xf(this.A);this.A=0;this.B=!0;this.j&&this.j.abort()};fE.prototype.resume=function(){this.B=!1;Xf(this.A);this.seek(this.ca.getCurrentTime());gE(this)};fE.prototype.seek=function(a){this.o=cb(this.G.Mi(a).j)};function hE(a,b){a.D=b}
function iE(a){var b;if(b=!a.B&&null!==a.o)b=a.o,b=b.j.Nh(b);return b&&!a.j&&!(a.o&&30<a.o.startTime-a.ca.getCurrentTime())}
function jE(a){var b;b=a.o;b=kE(b.j,b);if(!a.F.contains(b.j[0].B)){var c=lE(mE(b));a.j=Ij(c,{format:"RAW",Ac:y(a.H,a),withCredentials:!0});a.C=b;var c=a.F,d=a.C.j[0].B,e=zb(c.pa,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.pa[e-1]&&e<c.pa.length&&1==c.pa[e]-d?(rb(c.pa,e),rb(c.pa,e-1)):0<e&&1==d-c.pa[e-1]?c.pa[e-1]=d:e<c.pa.length&&1==c.pa[e]-d?c.pa[e]=d:(wb(c.pa,e,0,d),wb(c.pa,e+1,0,d)))}a.o=cb(b.j)}
fE.prototype.H=function(a){null==a.responseText||400<=a.status||this.B||null===this.D||(a=new UD(a.responseText,1E3*this.C.j[0].startTime),this.D(a));this.j=this.C=null};function gE(a){a.A=Wf(y(function(){iE(this)&&jE(this)},a),1E3);iE(a)&&jE(a)};function nE(a,b){$D.call(this);this.A=a;this.j=new fE(new dE,b)}A(nE,$D);f=nE.prototype;f.rm=function(a,b){hE(this.j,function(c){b(c,a)});this.j.G=this.A.j[a.j];this.j.resume()};f.sm=function(a){XD(this.o,new Tv({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.mn=function(){var a=this.j;Xf(a.A);a.A=0;a.B=!0};f.P=function(){this.j.dispose();nE.K.P.call(this)};function oE(a,b){kD.call(this,a,b);this.Ua.style.display="block";this.Ua.style.padding="0";this.sc=[];var c=this.Ua;qh(c,"captions-text");N(c,"caption-painton-text-rows")}A(oE,kD);f=oE.prototype;f.type=1;f.ut="";f.hn="";f.Ah=!1;f.Vb=null;f.sc=null;f.Li=function(){return this.sc[0]?this.sc[0].offsetHeight:0};function pE(a){return a.sc.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.ie=function(){0!=this.id&&(Wg(this.Ma,"100%"),Wg(this.Ma,this.Ah?pE(this):this.Vb.width));var a=Math.round(this.Fa.rowCount*this.Li());this.Ma.style.maxHeight=a+"px";lD(this);Bs(this.Ma,this.Fa.isVisible)};
f.ne=function(a){this.si();a=nD(a);this.Ah||(this.Ig=a);a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=I("div",{"class":"caption-row-holder"}),e=I("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.hn;d.appendChild(e);e.innerHTML=a[b];this.Ah||(this.Ua.style.height=this.Vb.height+"px",this.Ua.style.width=this.Vb.width+"px",d.style.position="absolute",d.style.top=this.Vb.Ir[b]+"px",d.style.left=this.Vb.Hr[b]+"px");this.Ua.appendChild(d);this.sc.push(e)}this.ie()};
f.si=function(){for(var a=0,b=this.sc.length;a<b;a++){var c=ne(this.sc[a],"caption-row-holder");Wd(c)}this.sc=[]};f.Id=function(a,b){oE.K.Id.call(this,a,b);this.hn=this.Ua.style.backgroundColor;this.Ua.style.backgroundColor="";for(var c=0,d=this.sc.length;c<d;c++)this.sc[c].style.backgroundColor=this.hn};function qE(a,b){kD.call(this,a,b);this.Fc=[];this.Vd=[];this.Sb=[];this.hg=new vn(433);this.hg.stop();P(this.hg,"tick",y(this.lB,this))}A(qE,kD);f=qE.prototype;f.type=2;f.ez=32;f.Sb=null;f.Ud=0;f.Vd=null;f.hg=null;f.ie=function(){Wg(this.Ma,"100%");var a=this.Ma.offsetWidth,a=Math.min(rE(this),a);Wg(this.Ma,a+"px");Wg(this.Dh,"100%");this.Ua.style.whiteSpace="nowrap";lD(this);Bs(this.Ma,this.Fa.isVisible)};
f.Tr=function(a){var b=a.length;if(0>=b)this.si();else{for(var c=0;c<b&&0<=this.Fc.indexOf(a[c]);)c++;this.Fc=this.Fc.concat(a.slice(c));sE(this)}};f.si=function(){this.Fc=[];this.Sb=[];this.Ud=0;this.Sb=[];this.Vd=[];tE(this)};
function sE(a){if(!uE(a))if(a.Ud>=a.Fc.length)tE(a);else{var b=a.Sb.length-1;0>b&&(a.Vd.push(0),a.Ud=0,a.Sb.push(""),b=0);for(var c=a.Fc.length,d=a.Ud;d<c;d++){var e=a.Fc[d];if("\n"==e.j){a.Ud++;a.Vd[b]++;break}if(e.A||0==a.Sb[b].length)a.Sb[b]+=e.j,a.Ud++,a.Vd[b]++;else break}tE(a);d<c&&!uE(a)&&(b=a.Li(),N(a.Ua,"caption-rollup"),a.Ma.style.overflow="hidden",a.Ua.style.top=-b+"px",a.hg.start())}}function uE(a){return a.hg.enabled||oh(a.Ua,"caption-rollup")}
f.lB=function(){this.Ma.style.overflow="visible";this.Ua.style.top=0;this.hg.stop();qh(this.Ua,"caption-rollup");this.Sb.push("");this.Vd.push(0);sE(this)};function tE(a){if(!uE(a)){for(;a.Sb.length<a.Fa.rowCount;)a.Sb.unshift(""),a.Vd.unshift(0);for(;a.Sb.length>a.Fa.rowCount;){a.Sb.shift();var b=a.Vd.shift();0<b&&(a.Ud-=b,a.Fc.splice(0,b))}a.ne(a.Sb.join("\n"))}}
function rE(a){a.Wb.style.fontFamily=a.Ua.style.fontFamily;a.Wb.style.fontSize=a.Ua.style.fontSize;a.Ua.appendChild(a.Wb);a.Wb.innerHTML="\u2014";var b=a.Wb.offsetWidth;a.Wb.innerHTML="&nbsp;";b=2*a.Wb.offsetWidth+b*a.ez;a.Ua.removeChild(a.Wb);return b};function vE(a,b,c,d){$D.call(this,d);c||(c=xj(a).hl||"",c=c.split("_").join("-"));this.A=Aj(a,{hl:c});this.C=b;this.D={};this.j=null}A(vE,$D);vE.prototype.Go=function(){for(var a=[],b=WD(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e=wE(this,d),e={kind:"subtitles",label:d.B,srclang:d.j,src:e};d.isDefault&&(e["default"]=1);a.push(I("track",e))}return a};
vE.prototype.rm=function(a,b){var c=wE(this,a),d=y(function(c){this.j=null;c=new UD(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=Ij(c,{format:"RAW",qb:d,withCredentials:!0});ZD(this.o,a)};
vE.prototype.sm=function(a,b,c){var d=this.A;b={type:"list",tlangs:1,v:this.C,fmts:Number(b||!1),vssids:1};this.Mp&&(b.asrs=1);d=Aj(d,b);b=y(function(b){this.j=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.o,h=b.getElementsByTagName("track"),k=h.length,l=0;l<k;l++){var p=h[l].getAttribute("formats"),r=c,u=h[l].getAttribute("lang_code"),w=h[l].getAttribute("lang_translated"),S=h[l].getAttribute("name"),T=h[l].getAttribute("kind"),ka=h[l].getAttribute("id"),Ca="true"==h[l].getAttribute("lang_default"),
He="true"==h[l].getAttribute("cantran"),fh=h[l].getAttribute("vss_id"),p=new Tv({formats:p,format:r,languageCode:u,languageName:w,name:S,kind:T,id:ka,is_servable:!0,is_default:Ca,is_translateable:He,vss_id:fh});XD(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"),r=b[h].getAttribute("id"),u="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:p,
id:r,is_default:u},this.D[k.languageCode]=k.languageName,this.B.push(new Sv(k))}a()},this);this.j&&this.j.abort();this.j=Ij(d,{format:"RAW",qb:b,withCredentials:!0})};function wE(a,b){var c=a.A,d={v:a.C,type:"track",lang:b.j,name:b.B,kind:b.A,fmt:b.C};b.o&&(d.tlang=b.o.languageCode);return c=Aj(c,d)}vE.prototype.P=function(){this.j&&this.j.abort();vE.K.P.call(this)};function xE(a){Nr.call(this,a);Zf({YTP_TRANSLATE_MENU_ITEM:"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_CONTRIBUTE_MENU_ITEM:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_TRANSLATE_DIALOG_TITLE:"\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a...",YTP_ASR_SETTINGS_LABEL:"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0438\u0442\u0440\u044b",
YTP_LANGUAGE_OFF:"\u0412\u044b\u043a\u043b.",YTP_FONT_FAMILY:"\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u0432",YTP_FONT_SIZE:"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",YTP_FONT_COLOR:"\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",YTP_FONT_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0448\u0440\u0438\u0444\u0442\u0430",YTP_BACKGROUND_COLOR:"\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430",
YTP_BACKGROUND_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d\u0430",YTP_WINDOW_COLOR:"\u0426\u0432\u0435\u0442 \u043e\u043a\u043d\u0430",YTP_WINDOW_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u043d\u0430",YTP_COLOR_WHITE:"\u0411\u0435\u043b\u044b\u0439",YTP_COLOR_YELLOW:"\u0416\u0435\u043b\u0442\u044b\u0439",YTP_COLOR_GREEN:"\u0417\u0435\u043b\u0435\u043d\u044b\u0439",YTP_COLOR_CYAN:"\u0413\u043e\u043b\u0443\u0431\u043e\u0439",
YTP_COLOR_BLUE:"\u0421\u0438\u043d\u0438\u0439",YTP_COLOR_MAGENTA:"\u041f\u0443\u0440\u043f\u0443\u0440\u043d\u044b\u0439",YTP_COLOR_RED:"\u041a\u0440\u0430\u0441\u043d\u044b\u0439",YTP_COLOR_BLACK:"\u0427\u0435\u0440\u043d\u044b\u0439",YTP_FONT_FAMILY_MONO_SERIF:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438",YTP_FONT_FAMILY_PROP_SERIF:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438",
YTP_FONT_FAMILY_MONO_SANS:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a",YTP_FONT_FAMILY_PROP_SANS:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a",YTP_FONT_FAMILY_CASUAL:"\u041e\u0431\u044b\u0447\u043d\u044b\u0439",YTP_FONT_FAMILY_CURSIVE:"\u041a\u0443\u0440\u0441\u0438\u0432",YTP_FONT_FAMILY_SMALL_CAPS:"\u041c\u0430\u043b\u044b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u044b\u0435",
YTP_CHAR_EDGE_STYLE:"\u0421\u0442\u0438\u043b\u044c \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432",YTP_EDGE_STYLE_NONE:"\u0411\u0435\u0437 \u043a\u043e\u043d\u0442\u0443\u0440\u0430",YTP_EDGE_STYLE_RAISED:"\u041f\u0440\u0438\u043f\u043e\u0434\u043d\u044f\u0442\u044b\u0439",YTP_EDGE_STYLE_DEPRESSED:"\u0423\u0442\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439",YTP_EDGE_STYLE_OUTLINE:"\u0413\u0440\u0430\u043d\u0438\u0446\u044b",YTP_EDGE_STYLE_DROP_SHADOW:"\u0421 \u0442\u0435\u043d\u044c\u044e",
YTP_CLICK_FOR_SETTINGS:"\u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u0437\u043d\u0430\u0447\u043e\u043a $GEAR_ICON"});this.ki=!0;this.la=this.U=this.wa=!1;this.Ha=new Nt(this);this.G=a.V();this.C=null;this.O=a.S.A;this.o={};this.na=this.ga=null;this.da=[];this.N={};this.Z={};this.sa=this.Ca=this.H=this.ya=!1;this.X=new kD(99,LC);this.B=this.A=this.F=null;this.Da=!1;this.I=this.J=0;this.W=new XC(cs(this));R(this,
this.W);this.W.M("click",this.gz,this);this.oa=this.za+"-mdx";this.va=new iD(cs(this));R(this,this.va);N(this.va.Q(),"ytp-mdx-settings-button");this.va.M("click",this.TE,this);this.D=new eD(cs(this),y(this.wm,this),y(this.Xp,this),y(this.RC,this),y(this.SC,this),y(this.mz,this));this.R=new $C(cs(this));R(this,this.R);this.R.M("change",y(this.qe,this,!0));this.R.M("cancel",this.fy,this);this.R.M("select",this.Xq,this);this.aa=new hD(cs(this));R(this,this.aa);this.aa.M("change",this.JB,this);this.aa.M("cancel",
this.Vg,this);this.subscribe("onResize",y(this.Bq,this));this.subscribe("onBackgroundChange",y(this.FC,this));this.subscribe("onTextOpacityChange",y(this.GC,this));this.subscribe("onWindowOpacityChange",y(this.HC,this));this.subscribe("onFontSizeIncrease",y(this.tA,this));this.subscribe("onFontSizeDecrease",y(this.sA,this));this.subscribe("onCaptionsToggle",y(this.DB,this));this.subscribe("onPlaybackAudioChange",y(this.Gz,this));this.subscribe("onCaptionsDisplaySettings",y(this.Om,this))}A(xE,Nr);
f=xE.prototype;f.za="captions";f.Dc="cc";f.Zm="subtitlesModuleData";function yE(a){return"3"!=a.G.o?!1:!!a.O.o.textTracks}function zE(a,b,c,d,e){x(a.o[b])&&(a.o[c]=d.indexOf(a.o[b]),-1==a.o[c]&&(a.o[c]=e),delete a.o[b])}
f.Pa=function(){xE.K.Pa.call(this);this.C=this.j.getVideoData();-1==MC.indexOf(this.G.la)&&N(this.j.Oa(),"cc-international");this.o=Zb(GC);qa(this.o,Wr(this,"display-settings"));zE(this,"fontFamilyOption","fontFamily",DC,4);zE(this,"charEdgeStyle","charEdgeStyle",EC,3);dD(this.R,this.o);this.na=new X(["div",["ytp-player-content","ytp-subtitles-player-content"]]);this.na.ea(this.j.Oa());this.ga=this.na.Q();yE(this)||(ds(this,this.za,this.W),AE(this));(this.C.captionTracks.length&&this.j.qk().Fi||BE(this,
!0))&&this.load()};f.destroy=function(){this.na.detach();this.na.dispose();this.ga=null;gs(this,this.D);es(this,this.za);xE.K.destroy.call(this)};function BE(a,b){if(b&&a.C.captionTracks.length){var c=a.j.qk().vo;if(2==c||3==c)return!0}if(1==a.G.ba||1==a.C.wf||"alwayson"==a.C.Gc("yt:cc")||yE(a))return!0;c=Wr(a,"module-enabled");return null!=c?!!c:"on"==a.C.Gc("yt:cc")}function CE(a){a.B&&a.B==a.A.Yd()&&DE(a);a.A.sm(y(a.kr,a),!0,yE(a)?"vtt":void 0,a.j.qk())}
f.load=function(){this.sa="alwayson"==this.C.Gc("yt:cc");this.Ca="1"==this.C.B.cc_auto_caps||"1"==this.G.H.cc_auto_caps;this.D.F=this.C.Da;xE.K.load.call(this);this.wa=!0;if(this.C.Sa)this.A=new nE(this.C.o,this.j),this.subscribe("seekto",this.qt,this);else{var a=this.C.vf||this.G.Xa||this.C.Gc("yt:cc_default_lang")||this.G.la,a=a&&a.split("_").join("-");this.C.captionTracks.length?this.A=new bE(this.C):this.A=new vE(this.C.pi,this.C.videoId,a,this.C.oi)}CE(this)};f.TE=function(){this.loaded||this.load()};
f.unload=function(){this.Zb&&(es(this,this.oa),this.D.A=null,EE(this,!1),this.Dj("control_subtitles_set_track"));if(yE(this)){var a;a=Gd("track",void 0,void 0);for(var b=0;b<a.length;b++)Wd(a[b])}else FE(this,!1),DE(this),this.qa("seekto",this.qt,this),this.A.dispose(),this.A=null,this.Vg();this.H=this.la=this.U=this.wa=!1;xE.K.unload.call(this)};f.Ra=function(){};
f.kr=function(){this.wa=!1;if(yE(this))for(var a=this.O.o,b=this.A.Go(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(a=this.aa,b=this.A.B,Vt(a.o,b),Yt(a.o,1E3),ns(a.o.template,"tabindex",1E3),Ts(a.j.j,1001),b.length?a.Ia(b[0]):a.Ia(null),c=this.H||BE(this,!this.la),b=WD(this.A.o,!0),0<b.length){this.Ra("Caption track list loaded, found "+b.length+" tracks.");this.la=!0;fD(this.D,b);a=this.B&&-1!=b.indexOf(this.B);if(c&&!a)if(c=this.A.xl(),!c&&this.H&&(c=b[0]),c)this.ya=!0,GE(this,c),a=!0;else if(this.U||
HE(this),b=this.A.o.A,b.length&&(b=b[0].toString(),this.H||this.Ca))this.Xp(b),a=!0;this.L("publish_external_event","onCaptionsTrackListChanged");a||IE(this)}else this.A.Yd()?IE(this):(this.Ra("No captions found."),a=this.j,(b=Ru(a.S.F,this.za))&&JE(a.S.F,b))};function HE(a){a.U=!0;yE(a)||(a.qe(),a.Bq())}
f.IB=function(a,b){this.ya&&(this.ya=!1,this.L("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.B||!b.equals(this.B))){DE(this);this.B=b;this.Da=mc.test(b.j);var c={trackName:b.B,trackKind:b.A};b.o?(c.trackLangCode=b.o.languageCode,c.fromLangCode=b.j):c.trackLangCode=b.j;this.log(c);if(b!=this.A.Yd()){this.H&&(c=Vv(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=$f("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.ga.appendChild(this.X.Ma),this.X.ne(c),this.X.Id(this.o,this.O.wb()),this.X.ie(),this.I||(this.I=L(y(this.zr,this),2E3)));this.L("publish_external_event","captionschanged",Uv(b));UC(this.W);var c=this.D,d=!this.sa&&0<this.A.B.length;c.D=d;Xt(c.j,!d);gD(this.D,b.toString());Xr(this,"module-enabled",!0);this.L("vss_segment")}}this.U||HE(this);Or(this,a.o.concat(a.j))};function IE(a){a.A.Yd()&&GE(a,a.A.Yd())}f.Mc=function(a){this.da.push(a);this.J||(this.J=L(y(this.Zj,this),0))};
f.ed=function(a){qb(this.da,a);this.J||(this.J=L(y(this.Zj,this),0))};
f.xC=function(a){if(this.B)if(a instanceof wD){var b=this.N[a.id];qa(a.params,this.o);xD(a);b&&b.type!=yD(a)&&(Wd(b.Ma),delete this.N[a.id],b=null);if(!b){var b=this.N,c=a.id,d;a:{d=a.id;var e=a.params;switch(yD(a)){case 1:d=new oE(d,e);break a;case 2:d=new qE(d,e);break a;default:d=new kD(d,e)}}b=b[c]=d;c=b.Ma;O(c,"captions-asr","asr"==this.B.A);null!=a.params.textPrintDirection&&(a.params.textPrintDirection=this.Da?1:0);this.ga.appendChild(c)}b.Id(a.params,this.O.wb());if(1==yD(a)){b.ut=a.j;b.Vb=
{};b.Ah=!0;b.ne(b.ut);b.Vb.Gr=b.sc.length;b.Vb.width=b.Ma.offsetWidth;b.Vb.height=b.Ma.offsetHeight;b.Vb.Hr=[];b.Vb.Ir=[];for(a=0;a<b.Vb.Gr;a++)b.Vb.Ir.push(b.sc[a].offsetTop),b.Vb.Hr.push(b.sc[a].offsetLeft);b.Ah=!1;b.ne(b.Ig)}}else b=a.o,this.Z[b]||(this.Z[b]=[]),this.Z[b].push(a)};f.Bq=function(){this.U&&(this.qe(),Jb(this.N,function(a){a.ie()},this))};
function KE(a){var b=[];Jb(a.N,function(a){a instanceof oE&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Fa.ln-a.Fa.ln});var c=LE(a.O).height,d=b[0].Fa.ln;D(b,function(a){a.Fa.ln=d;var b=Math.round(a.Fa.Gr*a.Li());d-=Math.round(b/c*100);a.ie()},a)}}f.zr=function(){this.I=0;Wd(this.X.Ma)};
f.Zj=function(){this.J=0;this.U&&(Wb(this.Z),this.da.sort(Pq),D(this.da,this.xC,this),Jb(this.N,function(a,b){this.Z[b]?a.Tr(this.Z[b]):(Wd(a.Ma),delete this.N[b])},this),KE(this),this.F&&this.F.ie(),this.Ra("Refreshing caption display..."))};function ME(a,b,c){if(c&&c.length){for(var d=a.o[b],e=0,g=0;g<c.length;g++)if(d==c[g].option){e=(g+1)%c.length;break}a.o[b]=c[e].option;a.qe()}}f.FC=function(){ME(this,"backgroundOpacity",OC)};f.GC=function(){ME(this,"textOpacity",PC)};
f.HC=function(){ME(this,"windowOpacity",OC)};f.sA=function(){NE(this,-1)};f.tA=function(){NE(this,1)};function NE(a,b){var c=a.o.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.o.fontSizeIncrement=c;a.qe()}function DE(a){if(a.B){a.B=null;Qr(a);a.da=[];a.B=null;a.Zj();VC(a.W);a.D.off();var b=a.D;b.D=!1;Xt(b.j,!0);a.A.mn()}}
function GE(a,b,c){!b||a.B&&b.equals(a.B)||(null!=c&&(a.H=c),a.Zb?(a.B=b,EE(a,!0),a.Dj("control_subtitles_set_track",Uv(b)),a.U||HE(a)):(a.A.rm(b,y(a.IB,a)),a.wa=!0,gD(a.D,b.toString())))}f.Xp=function(a,b){var c=aE(this.A,a);GE(this,c,b);hs(this)};f.SC=function(){this.sa||(Tr(this,this.aa),hs(this))};f.JB=function(){if(!this.sa){this.Vg();var a=this.aa.B;if(a){a=Wv(this.B,a);if(XD(this.A.o,a)){var b=a.toString();fD(this.D,WD(this.A.o,!0));gD(this.D,b)}GE(this,a,!0)}}};
f.fy=function(){this.Vg();this.Zb&&this.B&&this.Dj("control_subtitles_set_track",Uv(this.B))};f.Xq=function(){delete this.o;this.o=Zb(GC);dD(this.R,this.o);this.Om();this.qe()};f.Om=function(){Xr(this,"display-settings",this.o)};f.qe=function(a){var b=this.O.wb();Jb(this.N,function(a){a.Id(this.o,b)},this);this.F&&this.F.Id(this.o,b);this.X.Id(this.o,b);this.Zj();n(a)&&!a||this.Om()};f.gz=function(){this.H=!0;OE(this)};function OE(a){a.loaded?a.B&&a.B!=a.A.Yd()?a.wm():a.kr():a.load()}
f.wm=function(){this.loaded&&(this.I&&(M(this.I),this.zr()),Xr(this,"module-enabled",!1),this.L("vss_segment"),DE(this),hs(this),this.H=!1,this.Zb?(EE(this,!1),this.Dj("control_subtitles_set_track")):this.L("publish_external_event","captionschanged",{}),IE(this))};f.RC=function(){Tr(this,this.R);hs(this)};f.mz=function(){Ur(this,this.G.A+"timedtext_video?v="+this.C.videoId);hs(this)};function PE(a){return xE.prototype.Ja(a)?new xE(a):null}
f.sg=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.o.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.qe()),this.o.fontSizeIncrement;case "reload":b&&CE(this);break;case "stickyLoading":this.G.Kb()&&Xr(this,"module-enabled",!!b);break;case "track":if(b){if(!ia(b))break;if(Vb(b)){this.wm();break}for(var c,d=WD(this.A.o,!0),e=0;e<d.length;e++){var g=d[e];g.j!=b.languageCode||c&&g.D!=b.languageName||(c=b.translationLanguage?Wv(g,b.translationLanguage):g)}c&&(GE(this,c,!0),gD(this.D,
c.toString()))}else return this.B&&this.B!=this.A.Yd()?Uv(this.B):{};return"";case "tracklist":return this.la?E(WD(this.A.o,b&&b.includeAsr),function(a){return Uv(a)}):[];case "translationLanguages":return this.la?this.A.B:[];case "displaySettings":return b&&ia(b)&&QE(this,b),c=Zb(this.o),c.fontFamilyOption=DC[c.fontFamily],c.charEdgeStyle=EC[c.charEdgeStyle],c;case "sampleSubtitles":FE(this,!!b)}};
function FE(a,b){if(b&&!a.F){a.F=new kD(98,KC);a.ga.appendChild(a.F.Ma);var c=a.F,d=$f("YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.ne(d));a.F.Id(a.o,a.O.wb())}else!b&&a.F&&(Wd(a.F.Ma),a.F=null)}f.tg=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.G.Kb()&&a.push("stickyLoading");return a};f.fl=function(a,b){return a&&x(a)&&CC.test(a)?a:b};
f.um=function(a,b){return ga(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.Yv=function(a,b){if(a&&x(a)){var c=EC.indexOf(a);return-1!=c?c:b}return b};f.xw=function(a,b){if(a&&x(a)){var c=DC.indexOf(a);return-1!=c?c:b}return b};f.yw=function(a,b){return ga(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var RE=null;
function QE(a,b){if(b)if(Yb(b,"reset"))a.Xq();else{if(!RE){var c={};c.color=a.fl;c.textOpacity=a.um;c.background=a.fl;c.backgroundOpacity=a.um;c.windowColor=a.fl;c.windowOpacity=a.um;c.charEdgeStyle=a.Yv;c.fontFamilyOption=a.xw;c.fontSizeIncrement=a.yw;RE=c}var c=RE,d;for(d in c)switch(d){case "fontFamilyOption":a.o.fontFamily=c[d](b[d],a.o.fontFamily);break;default:a.o[d]=c[d](b[d],a.o[d])}a.qe(SE(a.G))}}f=xE.prototype;
f.Ja=function(a){if("lb3"==a.V().j)return!1;a=a.getVideoData();var b;if(b=a.Sa)b=a.o,b=!(!b||null==b.j.en);return!!(a.pi||a.captionTracks.length||b)};function AE(a){gs(a,a.D);a.Zb?(a.D.A=a.oa,ds(a,a.oa,a.va)):(a.D.A=null,es(a,a.oa));fs(a,a.D)}f.qj=function(a){AE(this);a?DE(this):this.loaded&&(this.unload(),this.load())};function EE(a,b){var c={};a.B&&(c=Uv(a.B));a.L("publish_external_event","captionschanged",c);b?(UC(a.W),gD(a.D,a.B.toString())):(VC(a.W),a.D.off())}f.qt=function(){this.A.seek(this.j.getCurrentTime())};
f.Ph=function(){var a=this.B;return a?{cc:a.F}:null};f.DB=function(){this.H=!0;OE(this)};f.Gz=function(){this.C.captionTracks.length&&CE(this)};f.P=function(){this.Ha.removeAll();this.J&&(M(this.J),this.J=0);this.I&&(Xf(this.I),this.I=0);xE.K.P.call(this)};function TE(){if(void 0==It&&(It=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new Uint8Array(1);window.crypto.getRandomValues(a);It=!0}catch(b){}var c;if(It){c=Array(16);a=new Uint8Array(16);window.crypto.getRandomValues(a);for(var d=0;d<c.length;d++)c[d]=a[d]}else{a=Array(16);for(d=0;16>d;d++){for(var e=z(),g=0;g<e%23;g++)a[d]=Math.random();a[d]=Math.floor(256*Math.random())}try{for(c=window.localStorage["yt-player-bandwidth"],d=1,e=0;e<c.length;e++)a[d%16]=a[d%16]^a[(d-1)%16]/4^c.charCodeAt(e),
d++}catch(h){}c=a}return c}function UE(){for(var a=TE(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function VE(){return E(TE(),function(a){return(a&15).toString(16)}).join("")};function WE(a){Nr.call(this,a);this.za="ypc_license_checker";this.Dc="ypc_license";this.D=!1;this.C=0;this.B=!1;this.o=NaN;this.F=VE();this.A=null}A(WE,Nr);
var XE={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 YE(a){return zt(a.getVideoData(),"ypc_license_checker_module")}f=WE.prototype;f.Ja=function(){return YE(this.j)};f.Pa=function(){WE.K.Pa.call(this);var a=new Mq(1E3,2147483646,{priority:0});Or(this,[a]);this.subscribe("heartbeatparams",this.$E,this);this.subscribe("onStateChange",this.aF,this)};function ZE(a){return YE(a)?new WE(a):null}f.destroy=function(){$E(this);WE.K.destroy.call(this)};f.Mc=function(){this.D=!0;aF(this,2E3)};f.$E=function(a){this.A=a;aF(this,2E3)};
f.aF=function(a){W(a.state,2)||W(a.state,64)?$E(this):(W(a.state,1)||W(a.state,8))&&aF(this,2E3)};function bF(a){var b=a.j.getVideoData();return cF(b)?!!a.A:!!b.heartbeatToken||!!b.hb}function aF(a,b){if(!a.o&&a.D&&bF(a)&&(cF(a.j.getVideoData())||!SE(a.j.V()))){var c=b;void 0==c&&(c=a.B?(c=a.j.getVideoData().ld)?c:a.A?1E3*a.A.interval:6E4:1E3);a.o=L(y(a.IC,a),c)}}
f.IC=function(){var a,b,c;c=this.j.V().A;var d=this.j.getVideoData();bF(this)?(cF(d)?(b="GET",a={},c=We(this.A.url,{request_id:VE()}),d.G&&(c=We(c,{vvt:d.G})),d.C&&(c=We(c,{access_token:d.C}))):d.heartbeatToken?(b="GET",a={},c=We(c+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken}),d.G&&(c=We(c,{vvt:d.G})),d.C&&(c=We(c,{access_token:d.C}))):(b="POST",a={video_id:d.videoId,player_id:this.F,request_id:VE(),purchase_id:d.purchaseId,version:"4",player_time_seconds:this.j.getCurrentTime().toString(),
gid:d.Ie,ypc_token:d.hb},d.G&&(a.vvt=d.G),d.C&&(a.access_token=d.C),c+="ypc_license_server"),c=We(c,{cpn:d.clientPlaybackNonce}),Ij(c,{format:"RAW",method:b,Lb:a,timeout:3E4,qb:y(this.az,this),onError:y(this.$y,this),df:y(this.bz,this),withCredentials:!0})):$E(this)};
f.az=function(a){if(this.o){a=a.responseText;var b;a:if(b=a,this.j.getVideoData().heartbeatToken)b=ng(b),b="ok"==b.status?0:"stop"==b.status?1:-1;else{var c=b.match(dF);if(c){if("0"!=c[1]){b=1;break a}b=c[3]}b=b in XE?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?eF(this,"decode"):(this.C=0,this.o=NaN,1==b?(this.B=!1,b="YTP_ERROR_LICENSE",this.j.getVideoData().heartbeatToken?a=ng(a).reason||$f(b):((c=a.match(dF))?(a=parseInt(c[1],10))&&(b=Kv(a)):a in XE&&(b=XE[a]),a=$f(b)),tx(this.j.S.o,"heartbeat",
a,void 0)):(this.B=!0,aF(this)))}};f.$y=function(a){eF(this,"net-"+a.status)};f.bz=function(){eF(this,"timeout")};function eF(a,b){if(a.o){a.log({errorType:b});a.o=NaN;var c=++a.C,d=a.j.getVideoData().md;c>(d?d:a.A?a.A.j:5)?(c=$f("YTP_ERROR_LICENSE"),tx(a.j.S.o,"heartbeat",c,void 0)):aF(a)}}var dF=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function $E(a){a.C=0;a.o&&(M(a.o),a.o=NaN);a.B=!1};function fF(){X.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}A(fF,X);fF.prototype.Lj=function(a){ns(this.template,"index",a+1)};function gF(a){TC.call(this,a,"ytp-button-expand",Y("YTP_ST_EXPAND"),"ytp-button-collapse",Y("YTP_ST_COLLAPSE"));Ts(this,3050);this.element.setAttribute("aria-haspopup",!0);this.Ba([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Y("YTP_PLAYLIST")]])}A(gF,TC);function hF(a){X.call(this,["div","ytp-playlist-tray-controller"]);this.j=new gF(a);this.j.ea(this.template.Q());R(this,this.j);this.o=new fF;this.o.ea(this.template.Q());R(this,this.o)}A(hF,X);function iF(a,b){var c=a.Zd("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.M("keypress",this.o)}A(iF,X);
iF.prototype.Lj=function(a){a=this.j==a;O(this.element,"ytp-playlist-tray-item-current",a);this.element.setAttribute("aria-checked",a)};iF.prototype.o=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.ac("click")};function jF(){ts.call(this,["div","ytp-playlist-tray-tray",{role:"menu"}]);this.j=null;this.o=[]}A(jF,ts);function kF(a,b){a.j&&a.j.qa("shuffle",a.A,a);a.j=b;a.j.subscribe("shuffle",a.A,a);a.A()}jF.prototype.A=function(){Ci(this.o);this.o=[];Vd(this.element);for(var a=0;a<=this.j.Kc-1;++a){var b=hv(this.j,a);b&&(b=new iF(b,a),b.Lj(this.j.Va),this.o.push(b),b.M("click",y(this.B,this,a)),b.ea(this.element))}};jF.prototype.B=function(a){this.L("playvideoat",a)};
jF.prototype.P=function(){Ci(this.o);this.o=[];Vd(this.element);jF.K.P.call(this)};function lF(a){Nr.call(this,a);var b=a.Oa();this.G=a.S.A.B;this.D=!1;this.A=this.B=null;this.F=Hd("ytp-button-playlist",b);P(this.F,"click",y(this.Hq,this));this.o=this.C=null}A(lF,Nr);f=lF.prototype;f.za="playlist";
f.Pa=function(){lF.K.Pa.call(this);mF(this,this.j.Nd());this.C=new is(["div",["ytp-playlist-tray-container","ytp-player-content"]]);this.C.ea(this.j.Oa());this.A=new jF;this.A.subscribe("playvideoat",this.pr,this);this.A.ea(this.C.Q(),0);this.o=new hF(this.G);this.o.ea(Hd("html5-title",void 0),0);this.o.j.M("click",this.Hq,this);this.subscribe("fullscreentoggled",this.kt,this);this.subscribe("videodatachange",this.lt,this);this.subscribe("clearvideooverlays",this.hs,this);this.$j()};
f.$j=function(){var a=this.j.Qs(),b=this.o.o;null!=a?b.ua():b.$();this.o.o.Lj(a);a=this.j.Nd();ns(this.o.o.template,"length",a.Kc)};f.destroy=function(){lF.K.destroy.call(this);mF(this,null);this.qa("fullscreentoggled",this.kt,this);this.qa("videodatachange",this.lt,this);this.qa("clearvideooverlays",this.hs,this);Wd(this.C.Q());this.A.dispose();this.A=null;this.C.dispose();this.C=null;Wd(this.o.Q());this.o.dispose();this.o=null};
f.load=function(){this.L("command_clear_video_overlays",!0);lF.K.load.call(this);this.D||(kF(this.A,this.B),this.D=!0);for(var a=this.A,b=0;b<a.o.length;b++)a.o[b].Lj(a.j.Va);UC(this.o.j)};f.unload=function(){lF.K.unload.call(this);this.D=!1;VC(this.o.j)};f.hs=function(){this.loaded&&this.unload()};f.pr=function(a){this.j.Kn(a);this.L("command_clear_video_overlays",!1)};f.Hq=function(){this.loaded?this.L("command_clear_video_overlays",!1):this.load()};
f.kt=function(a){var b=this.j.V().ka;this.loaded&&!a&&"detailpage"==b&&this.L("command_clear_video_overlays",!1)};f.lt=function(){mF(this,this.j.Nd());this.D&&kF(this.A,this.B);this.$j()};function mF(a,b){a.B&&a.B.qa("shuffle",a.$j,a);a.B=b;a.B&&a.B.subscribe("shuffle",a.$j,a)}lF.Ja=function(a){return!!a.Nd()&&!0};lF.prototype.Ja=function(a){return lF.Ja(a)};lF.prototype.$m=function(a){return!lF.Ja(a)};lF.j=function(a){return lF.Ja(a)?new lF(a):null};
lF.prototype.P=function(){this.A.qa("playvideoat",this.pr,this);Mh(this.F);lF.K.P.call(this)};function nF(a){lg("/gen_204?"+a,void 0)}function oF(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=We("/sharing_services",a);lg(h)};function pF(a,b){Q.call(this);this.j=a;this.o=!!b}A(pF,Q);function qF(a,b,c){if(c)if(a.o)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.j&&(d=rF(a.j));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Ij(d,{format:"JSON",method:"GET",context:a,timeout:600,qb:function(a,d){c(d);sF("success",{v:b})},onError:function(){sF("error",{v:b});c({})},df:function(){sF("timeout",{v:b});tF("__notfound__");c({})}})):c({})}}
function sF(a,b){var c={a:"spacecast",module:"cache",request:"meta",status:a};bc(c,b);nF(Ue(c))}pF.prototype.P=function(){this.j=null;pF.K.P.call(this)};function uF(a){Q.call(this);(this.j=a)&&tF("//"+a)}A(uF,Q);function rF(a){var b;(b=(b=fj("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.j?"//"+a.j:null;return b}uF.prototype.reset=function(){gj("yt-spacecast-uri")};function tF(a){var b=fj("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;dj("yt-spacecast-uri",b)};function vF(){Q.call(this);this.o=this.j=null}A(vF,Q);ba(vF);vF.prototype.init=function(a){this.j||(this.j=new uF(a||null),this.o=new pF(this.j))};vF.prototype.P=function(){this.o&&(this.o.dispose(),this.o=null);this.j&&(this.j.dispose(),this.j=null);vF.K.P.call(this);delete vF.Jb};function wF(a){Nr.call(this,a);this.Dc=this.za="spacecast";this.o=null}A(wF,Nr);f=wF.prototype;f.Ja=function(){return!!this.j.getVideoData().nb};function xF(a){return a.getVideoData().nb?new wF(a):null}f.Pa=function(){wF.K.Pa.call(this);var a=this.j.getVideoData().nb,b=vF.getInstance();b&&b.init(a);this.o=b;this.load()};f.destroy=function(){wF.K.destroy.call(this);this.o=null};
f.load=function(){wF.K.load.call(this);var a=this.j.getVideoData().videoId,b=this.o.o,c=z(),c=y(this.Tx,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),sF("prefetch",{v:a})):qF(b,a,c)};f.Tx=function(a,b,c){if(this.o){b=z()-b;var d=0;if(c){var e=c.id;c=c.fmt_list;if(e&&c){var g={};D(c,function(a){a.itag&&(g[a.itag.toString()]=!0)});if(c=yF(this,rF(this.o.j),e,g))d=this.j.getVideoData(),d.ba=c,zF(d),this.j.Mn("auto"),d=1}}Rr(this);nF(Ue({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))}};
function yF(a,b,c,d){if(!b)return null;a=a.j.getVideoData();a=wj(a.jf);a=gb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=yj(b)||"",g=Number(Ke(b)[4]||null)||null;return E(a,function(a){var b=K(K(df(cf(wf(a.url),e),g),"orig_host",zj(a.url)),"scid",c);a.url=b.toString();return Ue(a)}).join(",")};function AF(a){Zt.call(this);this.label=Y("YTP_THREED_SHORT");this.element=new DB(a,[Y("YTP_OFF"),Y("YTP_ON")]);R(this,this.element);this.element.ib(this.label);FB(this.element,2100);this.priority=10;this.C=!0;this.Ia(0)}A(AF,Zt);AF.prototype.H=function(){this.element.ac("select")};AF.prototype.Ia=function(a){this.element.Ia(a)};function BF(a){X.call(this,["span"]);this.element.innerHTML=a}A(BF,X);function CF(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y("YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Y("YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.j=new Rs(a,"ytp-dialog-button",b);R(this,this.j);this.j.Ba(b);b=Y("YTP_CLOSE");this.o=new Rs(a,"ytp-dialog-button",b);this.o.Ba(b);R(this,this.o);this.template.update({content:new BF(Y("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.o]})}A(CF,YC);function DF(a){Nr.call(this,a);Zf({YTP_THREED_HTML5_WARNING_DIALOG_TITLE:"\u0410\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f HTML5 3D \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043e",YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE:"\u041f\u0440\u043e\u0447\u0442\u0438\u0442\u0435 \u0441\u043f\u0440\u0430\u0432\u043a\u0443 \u043e $BEGIN_LINK\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 3D-\u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e HTML5$END_LINK \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043c\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 3D.",
YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 3D-\u0432\u0438\u0434\u0435\u043e"});this.o=new AF(cs(this));R(this,this.o);this.o.Ia(1);this.o.M("change",this.UE,this);this.o.M("select",this.VE,this);this.A=new CF(cs(this));R(this,this.A);this.A.j.M("click",this.yo,this);this.A.o.M("click",this.Vg,this)}A(DF,Nr);f=DF.prototype;f.Zm="threeDModuleData";f.za="threed";
f.Dc="threed";f.Pa=function(){EF(this.j.S,void 0);fs(this,this.o);DF.K.Pa.call(this)};f.destroy=function(){gs(this,this.o);EF(this.j.S,!0);DF.K.destroy.call(this)};function FF(a){return DF.prototype.Ja(a)?new DF(a):null}f.Ja=function(a){a=a.getVideoData();return Mt()?!!a.va||!!a.cs:!1};function GF(a,b){if(a.j.getVideoData().Bh!=b)if(Tr(a),Mt()){var c=a.j.S,d=c.ta();d.j.A&&d.j.A.j||(d.j.Bh=!d.j.Bh,zF(d.j),Pu(d,"r"));EF(c)}else b&&(Tr(a,a.A),a.o.Ia(0),hs(a))}
f.yo=function(){Ur(this,"/select_3d_mode?video_id="+this.j.getVideoData().videoId)};f.UE=function(){1==this.o.element.o?GF(this,!0):GF(this,!1)};f.VE=function(){hs(this);this.yo()};function HF(a){Nr.call(this,a);Zf({YTP_YPC_START_RENTAL_HEADER:"\u041d\u0430\u0447\u0430\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0435\u043e, \u0432\u0437\u044f\u0442\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u043e\u043a\u0430\u0442?",YTP_YPC_START_RENTAL_BUTTON:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u0440\u043e\u043a \u043f\u0440\u043e\u043a\u0430\u0442\u0430"});this.A=this.o=null}A(HF,Nr);f=HF.prototype;
f.za="ypc_clickwrap";f.Dc="ypc-clickwrap";f.Ja=function(){return zt(this.j.getVideoData(),"ypc_clickwrap_module")};function IF(a){return zt(a.getVideoData(),"ypc_clickwrap_module")?new HF(a):null}f.Pa=function(){HF.K.Pa.call(this);this.load()};
f.load=function(){HF.K.load.call(this);this.o=new is(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",$f("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.j.getVideoData().B.ypc_clickwrap_message],["button","ytp-ypc-clickwrap-confirm",$f("YTP_YPC_START_RENTAL_BUTTON")]]);this.o.ea(this.j.Oa());R(this,this.o);this.A=this.o.j["ytp-ypc-clickwrap-confirm"];P(this.A,"click",y(this.Xz,this))};
f.unload=function(){HF.K.unload.call(this);Mh(this.A);this.o.detach();this.o.dispose();this.o=null};f.Xz=function(){Rr(this);this.destroy()};var JF={sJ:function(a){a.reverse()},Iw:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},js:function(a,b){a.splice(0,b)}};function KF(a){a=a.split("");JF.Iw(a,19);JF.Iw(a,35);JF.sJ(a,23);JF.js(a,2);JF.sJ(a,44);JF.js(a,1);JF.Iw(a,64);JF.js(a,2);JF.Iw(a,53);return a.join("")};function LF(){};function MF(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.Aa=h||0;this.o=c||null;this.video=d||null;this.bd=e||null;this.B=g||null;this.A=Lv[Kw(this)]||""}function Kw(a){return a.id.split(";",1)[0]}function NF(a){return!(a.o&&a.video)}function OF(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function PF(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function QF(a,b,c){this.name=a;this.id=b;this.isDefault=c}QF.prototype.toString=function(){return this.name};function RF(a,b,c,d,e,g){this.width=a;this.height=b;if(!g)a:{g=Math.max(a,b);a=Math.min(a,b);for(b=0;b<$v.length;b++){var h=$v[b],k=Zv[h];if(g>=Math.floor(16*k/9)||a>=k){g=h;break a}}g="tiny"}this.quality=g;this.fps=c||0;this.j=e||0;this.projectionType=d||0};function SF(a){this.o=a;this.C=this.B=this.D="";this.j={};this.A=""}SF.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.A="")};SF.prototype.get=function(a){TF(this);return this.j[a]||null};function UF(a){a.A||(a.A=VF(a));return a.A}function WF(a){TF(a);return a.C}function XF(a){TF(a);return Lb(a.j,function(a){return null!==a})}
function TF(a){if(a.o){if(!cg(a.o))throw Error("Untrusted URL: "+a.o);var b=wf(a.o);a.D=b.Ob;a.C=b.tb+(null!=b.Hd?":"+b.Hd:"");var c=b.Hb;if(0==c.indexOf("/videoplayback"))a.B="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.B=c.substr(0,d),c=c.substr(d+1)):(a.B=c,c="")}d=a.j;a.j=YF(c);qa(a.j,ZF(b.dp()));qa(a.j,d);a.o="";a.A=""}}
function VF(a){TF(a);var b=a.D+(a.D?"://":"//")+a.C+a.B;if(XF(a)){var c=[];Jb(a.j,function(a,b){null!==a&&c.push(b+"="+a)});a=c.join("&");b+="?"+a}return b}function YF(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 ZF(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 $F(a,b){this.start=a;this.end=b;this.length=b-a+1}function aG(a){a=a.split("-");return 2==a.length&&(a=new $F(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function bG(a,b){return new $F(a,a+b-1)}$F.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function cG(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 dG(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 eG(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.j=a;this.sourceURL=d;this.startTime=b;this.ia=e||null};function fG(){this.pa=[]}f=fG.prototype;f.Mh=function(a){return(a=gG(this,a))?a.duration:0};f.yl=function(a){return this.Mh(a)};f.Ng=function(){return this.pa[0].j};f.Nb=function(){return this.pa[this.pa.length-1].j};f.rg=function(){var a=this.pa[this.pa.length-1];return a?a.endTime:NaN};f.ct=function(){return this.pa[0].startTime};f.ap=function(){return this.pa.length};f.rk=function(){return 0};f.Pg=function(a){return(a=hG(this,a))?a.j:-1};f.bp=function(a){return gG(this,a).sourceURL};
f.nf=function(a){return(a=gG(this,a))?a.startTime:0};f.Nn=function(){return 0<this.pa.length};function gG(a,b){var c=zb(a.pa,new eG(b,0,0,""),function(a,b){return a.j-b.j});return 0<=c?a.pa[c]:null}function hG(a,b){var c=zb(a.pa,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.pa[c]:a.pa[Math.max(0,-c-2)]}
f.append=function(a){if(0!=a.length)if(a=ub(a),0==this.pa.length)this.pa=a;else{var b=this.pa.length?cb(this.pa).endTime:0,c=a[0].j-this.Nb();1<c&&ob(this.pa);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.pa.push(a[c])}}};function iG(a,b){var c=kb(a.pa,function(a){return a.j>=b},a);0<c&&a.pa.splice(0,c)};function jG(a){this.j=a;this.o={};this.A=""}jG.prototype.set=function(a,b){this.j.get(a);this.o[a]=b;this.A=""};jG.prototype.get=function(a){return this.o[a]||this.j.get(a)};function kG(a,b){var c=b.indexOf("?");if(0<c){var d=ZF(b.substr(c+1));Jb(d,function(a,b){this.set(b,a)},a);b=b.substr(0,c)}d=YF(b);Jb(d,function(a,b){this.set(b,a)},a)}function lE(a){a.A||(a.A=lG(a));return a.A}
function lG(a){var b=UF(a.j),c=[];Jb(a.o,function(a,b){c.push(b+"="+a)});if(!c.length)return b;var d=c.join("&");a=XF(a.j)?"&":"?";return b+a+d}function mG(a,b){var c=new SF(b);Jb(a.o,function(a,b){c.set(b,null)});return c};function nG(a){this.j=a;this.o=0;this.A=-1}var oG=0;function pG(a,b){this.index=null;this.info=b;this.j=null;this.C=this.A=!1;this.D=new nG(a)}pG.prototype.im=function(){return!1};pG.prototype.ad=function(){return!1};pG.prototype.Dr=function(a){return[a]};pG.prototype.Hj=function(a){return[a]};function qG(a,b,c,d,e,g,h,k,l){this.j=b;this.ia=c;this.type=a;this.B=0<=d?d:-1;this.startTime=e||0;this.duration=g||0;this.A=h||0;this.o=0<=k?k:this.ia?this.ia.length:NaN;this.G=!!l;this.ia?(this.D=this.A+this.o==this.ia.length,this.C=this.startTime+this.duration*this.A/this.ia.length,this.H=this.duration*this.o/this.ia.length):(this.D=0!=this.o,this.C=this.startTime,this.H=this.duration);this.F=this.C+this.H}function rG(a){return 1==a.type||2==a.type}
function sG(a,b){return a.j==b.j&&a.ia.start+a.A+a.o==b.ia.start+b.A}function tG(a){ab(1==a.length||jb(a,function(a){return!!a.ia}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new $F(a[0].ia.start+a[0].A,b.ia.start+b.A+b.o-1)}function uG(a){var b="";Jb(vG(a),function(a,d){b+=d+"="+a+","});return b.slice(0,-1)}function vG(a){var b={};b.itag=a.j.info.id;b.seg=a.B;a.ia&&(b.range=""+(a.ia.start+a.A)+"-"+(a.ia.start+a.A+a.o-1));b.time=""+a.C.toFixed(1)+","+(a.C+a.H).toFixed(1);return b};function wG(a,b){this.o=a[0].j.D;this.A=b||"";this.j=a;this.ia=this.j[0].ia&&0<this.j[0].o?tG(this.j):null}function mE(a){var b;/http[s]?:\/\//.test(a.A)?b=new jG(new SF(a.A)):(b=new jG(a.o.j),a.A&&kG(b,a.A));a.ia&&b.set("range",a.ia.toString());return b}function xG(a){if(a.ia)return a.ia.length;a=a.j[0];return Math.round(a.H*a.j.info.Aa)};function yG(a,b,c,d,e){pG.call(this,a,b);this.index=e||new fG;this.B=d||null;this.F=c;this.o=!0}A(yG,pG);f=yG.prototype;f.ni=function(){return!1};f.$o=function(){var a=new qG(1,this,this.B);return[new wG([a],this.F)]};function kE(a,b){a.Nh(b);return zG(a,b.D?b.B+1:b.B,!1)}f.Mi=function(a,b){var c=this.index.Pg(a);b&&(c=Math.min(this.index.Nb(),c+1));return zG(this,c,!0)};f.jp=function(a){this.j=new Uint8Array(AG(a).buffer)};f.im=function(){return!1};f.ad=function(){return null!==this.j&&this.index.Nn()};
f.Nh=function(a){return 0==a.o?!0:this.index.Nb()>a.B&&this.index.Ng()<=a.B+1};f.update=function(a,b,c){this.index.append(a);iG(this.index,c);this.o=b};function zG(a,b,c){var d=a.index.bp(b),e=a.index.nf(b),g=a.index.Mh(b);c?g=c=0:c=0<a.info.Aa?a.info.Aa*g:1E3;a=new qG(3,a,null,b,e,g,0,c,b==a.index.Nb()&&!a.o&&0<c);return new wG([a],d)};function BG(a,b){this.oe=a;this.context=b};function CG(a,b,c){this.o=a;this.oe=b;this.j=c}function DG(){this.j=[];this.o=null;this.B=0;this.A=[]}
DG.prototype.update=function(a){var b=void 0;this.o&&(b=this.o);var c=b,b=+cG(a,"timescale")||1,d=+cG(a,"startNumber")||0,e=0,g=1;c&&(e=c.oe+c.j,g=d-c.o);c=new DG;g=0<g?0:-g+1;c.B=g;for(a=a.getElementsByTagName("S");g<a.length;g++){var h=a[g],k=+h.getAttribute("d")/b,l=new CG(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.A.push(new BG(+k/b+l.oe,h))}c.j.length&&(c.o=cb(c.j));this.B=
c.B;this.o=c.o||this.o;this.j=c.j;vb(this.A,c.A)};function EG(a){var b=a.A;a.A=[];return b};function FG(){this.B=[];this.C=!1;this.j=null;this.o={};this.A={}}function GG(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 DG:"AdaptationSet"==e.nodeName?a.o[e.attributes.mimeType.value]=new DG:"Representation"==e.nodeName&&(a.A[e.attributes.id.value]=new DG)}a.C=!0}
function HG(a,b){a.C||GG(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.o[g.attributes.mimeType.value]:"Representation"==g.nodeName&&(h=a.A[g.attributes.id.value]);if(null==h)return;h.update(d[e]);vb(c,EG(h))}Cb(c,function(a){return a.oe});vb(a.B,c)}function IG(a){a.j&&(a.j.j=[]);Jb(a.o,function(a){a.j=[]});Jb(a.A,function(a){a.j=[]})};function JG(a,b){var c=KG(a,0,1836019558);if(!c)return null;var d=KG(a,c.offset+8,1835427940),e=KG(a,c.offset+8,1953653094);if(!d||!e)return null;var g=KG(a,e.offset+8,1952868452),h=KG(a,e.offset+8,1953658222),k=KG(a,e.offset+8,1952867444);if(!g||!h||!k)return null;var l=KG(a,e.offset+8,1935763823),e=KG(a,e.offset+8,1935763834);if(l){var p=LG(l),r=LG(l);if(0!=p||1!=r)return null;p=LG(l)}for(var u=LG(g),w=LG(g),S=u&2,T=u&1?MG(g):0,ka=S?LG(g):0,Ca=u&8?LG(g):0,r=u&16?LG(g):0,He=u&32?LG(g):0,u=LG(h),
fh=u&1,bt=u&4,tA=u&256,g=u&512,h2=u&1024,i2=u&2048,u=LG(h),j2=fh?LG(h):0,k2=bt?LG(h):0,fh=[],TN=[],wB=[],xB=[],UN=0,Re=0,cc=0;cc<u;cc++){var l2=tA?LG(h):Ca;g&&fh.push(LG(h));var rd=He;bt&&0==cc?rd=k2:h2&&(rd=LG(h));TN.push(rd);rd=i2?LG(h):0;0==cc&&(UN=rd);wB.push(Re+rd);xB.push(cc);Re+=l2}Bb(xB,function(a,b){return wB[a]-wB[b]});h=[];for(cc=0;cc<u;cc++)h[xB[cc]]=cc;Re=S?4:0;cc=16*u;rd=68+Re+k.size+cc+(l?l.size:0)+(e?e.size:0);c=rd-c.size;Ca=new NG(rd);OG(Ca,rd);OG(Ca,1836019558);PG(Ca,d);OG(Ca,rd-
24);OG(Ca,1953653094);OG(Ca,16+Re);OG(Ca,1952868452);OG(Ca,131072|(S?2:0));OG(Ca,w);S&&OG(Ca,ka);PG(Ca,k);OG(Ca,20+cc);OG(Ca,1953658222);OG(Ca,16781057);OG(Ca,u);OG(Ca,T+j2+c);for(cc=Re=0;cc<u;cc++)k=h[cc],d=Math.round(b*k/u),k=Math.round(b*(k+1)/u)-d,rd=d-Re+UN,OG(Ca,k),OG(Ca,g?fh[cc]:r),OG(Ca,TN[cc]),OG(Ca,rd),Re+=k;l&&(OG(Ca,l.size),OG(Ca,1935763823),OG(Ca,0),OG(Ca,1),OG(Ca,p+c));e&&PG(Ca,e);return Ca.data.buffer}
function QG(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);for(var b=0;RG(a,b);){var c=SG(a,b);if(1836476516==c.type)return TG(c);b=UG(c.type)?b+8:b+c.size}return NaN}function KG(a,b,c){for(;RG(a,b);){var d=SG(a,b);if(d.type==c)return d;b+=d.size}return null}function SG(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new VG(a,b,c,d)}function TG(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)}function WG(a){return a.data.getUint32(a.offset+16)}
function XG(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}function RG(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 UG(a){return 1836019558==a||1836019574==a||1953653094==a}function VG(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.j=8}function LG(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}
function MG(a){var b=XG(a.data,a.offset+a.j);a.j+=8;return b}VG.prototype.skip=function(a){this.j+=a};function NG(a){this.data=new DataView(new ArrayBuffer(a));this.j=0}function OG(a,b){a.data.setInt32(a.j,b);a.j+=4}function PG(a,b){for(var c=0;c+4<=b.size;)OG(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 YG(a,b,c,d){this.info=a;this.buffer=b;this.ia=c;this.j=d}function AG(a){return a.ia?new DataView(a.buffer,a.ia.start,a.ia.length):new DataView(a.buffer)}
function ZG(a,b){if(a.info.o!=a.ia.length)return!1;if(1==a.info.j.info.j){if(8>a.info.o||4==a.info.type)return!0;var c=AG(a),d=c.getUint32(0,!1),c=c.getUint32(4,!1);if(2==a.info.type)return d==a.info.o&&1936286840==c;if(3==a.info.type&&0==a.info.A)return 1836019558==c||1936286840==c||1937013104==c||1718909296==c}else if(2==a.info.j.info.j&&b){if(4>a.info.o||4==a.info.type)return!0;c=AG(a);d=c.getUint32(0,!1);if(3==a.info.type&&0==a.info.A)return 524531317==d}return!0}
function $G(a){var b;a:{for(var c=0,d=new DataView(a.buffer);RG(d,c);){b=SG(d,c);if(1936286840==b.type){c=WG(b);d=b.data.getUint8(b.offset+8);b.data.getUint16(b.offset+(0==d?30:38));b=b.data.getUint32(b.offset+(0==d?36:42))/c;break a}c=UG(b.type)?c+8:c+b.size}b=NaN}if(!(0<=b)){c=a.info.j.j;d=0;b=new DataView(a.buffer);for(var e,g;RG(b,d);){var h=SG(b,d);1936286840==h.type?e=WG(h):1836476516==h.type?e=TG(h):1836019558==h.type&&(g=h);d=UG(h.type)?d+8:d+h.size}!e&&c&&(e=QG(c));if(g&&e){g=KG(b,g.offset+
8,1953653094);c=KG(b,g.offset+8,1952868452);g=KG(b,g.offset+8,1953658222);b=LG(c);LG(c);b&2&&LG(c);b=b&8?LG(c):0;var k=LG(g),l=k&1,c=k&4,d=k&256,h=k&512,p=k&1024,k=k&2048,r=g.data.getUint32(g.offset+g.j);g.j+=4;l&&LG(g);c&&LG(g);for(var u=l=0;u<r;u++){var w=d?LG(g):b;h&&LG(g);c&&0==u||!p||LG(g);k&&LG(g);l+=w}b=l/e}else b=NaN}return b||a.info.H};function aH(){this.ra=0;this.j=new Float64Array(128);this.o=new Float64Array(128);this.B=1;this.A=!1}f=aH.prototype;f.rk=function(a){return this.j[a]};f.nf=function(a){return this.o[a]/this.B};f.Mh=function(a){a=this.yl(a);return 0<=a?a/this.B:-1};f.yl=function(a){return a+1<this.ra||this.A?this.o[a+1]-this.o[a]:-1};f.Ng=function(){return 0};f.Nb=function(){return this.ra-1};f.rg=function(){return this.A?this.o[this.ra]/this.B:NaN};f.ct=function(){return 0};f.ap=function(){return this.ra};f.bp=function(){return""};
f.Pg=function(a){a=zb(this.o.subarray(0,this.ra),a*this.B);return 0<=a?a:Math.max(0,-a-2)};f.Nn=function(){return 0<=this.Nb()};function bH(a){if(a.j.length<a.ra+1){var b=2*a.j.length,b=b+2,c=a.j;a.j=new Float64Array(b+1);var d=a.o;a.o=new Float64Array(b+1);for(b=0;b<a.ra+1;b++)a.j[b]=c[b],a.o[b]=d[b]}}function cH(a,b){this.o=a;this.j=0;this.A=b||0}function dH(a){for(var b=eH(a,!1);236==b;)fH(a),b=eH(a,!1);return b}
function gH(a){var b=eH(a,!0),c=a.o.byteOffset+a.j,d=Math.min(b,a.o.buffer.byteLength-c),c=new DataView(a.o.buffer,c,d),c=new cH(c,a.A+a.j);a.j+=b;return c}function hH(a){for(var b=eH(a,!0),c=iH(a),d=1;d<b;d++)c=256*c+iH(a);return c}function fH(a){var b=eH(a,!0);a.j+=b}function eH(a,b){var c=iH(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+iH(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+iH(a),e*=128;return b?c-e:c}function iH(a){return a.o.getUint8(a.j++)};function jH(a,b,c,d,e,g){pG.call(this,a,b);this.initRange=c;this.indexRange=d;this.B=null;this.index=new aH;this.o=e;this.lastModified=g}A(jH,pG);f=jH.prototype;f.ad=function(){return!(!this.j||!this.index.Nn())};
f.$o=function(a){var b=new qG(1,this,this.initRange),c=new qG(2,this,this.indexRange),d=[],e=[b];sG(b,c)?e.push(c):(d.push(new wG([c])),a=0);isNaN(this.o)?a=0:a>this.o&&(a=this.o);b=e[e.length-1];c=b.ia.end-e[0].ia.start+1;a>c&&(a=bG(b.ia.end+1,a-c),e.push(new qG(4,this,a)));d.push(new wG(e));return d};
f.jp=function(a){if(1==a.info.type){if(this.j)return;this.j=new Uint8Array(a.buffer,a.ia.start,a.ia.length)}else if(2==a.info.type){if(this.B||0<=this.index.Nb())return;if(1==this.info.j){var b=this.index,c=AG(a),d=a.info.ia.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.B=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.o[0]=g;b.A=!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.ra++;bH(g);g.j[g.ra]=g.j[g.ra-1]+k;g.o[g.ra]=g.o[g.ra-1]+h}}else this.B=AG(a)}if(2==this.info.j&&this.j&&this.B){a=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength);b=this.index;h=this.B;c="o"==this.info.A?this.indexRange.end:void 0;a=new cH(a);if(440786851==dH(a)&&(fH(a),408125543==dH(a))){e=a;g=e.j;d=eH(e,!0);e.j=g;a=gH(a);for(var e=a.A+a.j,l=dH(a);357149030!=l;)fH(a),
l=dH(a);a=gH(a);for(var k=1E6,p=1E9,g=0;!(a.j>=a.o.byteLength);)if(l=dH(a),2807729==l)k=hH(a);else if(2807730==l)p=hH(a);else if(17545==l){var g=a,l=eH(g,!0),r=0;4==l?r=g.o.getFloat32(g.j):8==l&&(r=g.o.getFloat64(g.j));g.j+=l;g=r}else fH(a);b.B=p/k;a=new cH(h);if(475249515==dH(a)){a=gH(a);h=!0;for(k=!1;!(a.j>=a.o.byteLength);)if(l=dH(a),187==l){p=gH(a);l=e;if(179!=dH(p))r=null;else if(r=hH(p),183!=dH(p))r=null;else{for(var p=gH(p),u=l;!(p.j>=p.o.byteLength);)241==dH(p)?u=hH(p)+l:fH(p);r=[u,r]}h&&
c==r[0]&&(k=!0);h=!1;k&&(r[0]+=1);p=b;l=r[0];r=r[1];bH(p);p.j[p.ra]=l;p.o[p.ra]=r;p.ra++}else fH(a);c=d+e;a=g;bH(b);b.A=!0;b.o[b.ra]=a;b.j[b.ra]=c}}this.B=null}};function kH(a,b,c,d){for(var e=[];b<=a.index.Nb();b++){var g;g=a.index;var h=b;g=bG(g.rk(h),h+1<g.ra||g.A?g.j[h+1]-g.j[h]:-1);var h=a.index.nf(b),k=a.index.Mh(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new qG(3,a,g,b,h,k,l,p,b==a.index.Nb()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new wG(e)}
f.Dr=function(a){for(var b=this.Hj(a.info),c=[],d=a.j,e=0;e<b.length;e++){var g=bG(b[e].ia.start+b[e].A-a.info.ia.start+a.ia.start,b[e].o);c.push(new YG(b[e],a.buffer,g,d));d=!1}return c};f.Hj=function(a){for(var b=0;b<this.index.Nb()&&a.ia.start>=this.index.rk(b+1);)b++;return kH(this,b,a.ia.start,a.ia.length).j};f.Nh=function(a){return this.ad()?!0:isNaN(this.o)?!1:a.ia.end+1<this.o};
function lH(a,b,c){a.Nh(b);if(!a.ad())return c=bG(b.ia.end+1,c),c.end+1>a.o&&(c=new $F(c.start,a.o-1)),a=[new qG(4,b.j,c)],new wG(a);4==b.type&&(b=a.Hj(b),b=b[b.length-1]);var d=0,e=b.ia.start+b.A+b.o;3==b.type&&(d=b.B,e==b.ia.end+1&&(d+=1));return kH(a,d,e,c)}f.Mi=function(a,b){var c=this.index.Pg(a);b&&(c=Math.min(this.index.Nb(),c+1));return kH(this,c,this.index.rk(c),0)};f.im=function(){var a;if(a=this.ad()&&!isNaN(this.o))a=this.index,a=(a.A?a.j[a.ra]:-1)!=this.o;return a};f.ni=function(){return!0};function mH(a,b){U.call(this);this.O=!!b;this.G=this.duration=0;this.isLive=this.C=!1;this.I=z();this.D=Infinity;this.j={};this.J=a||"";this.N=this.H=0;this.F=!1;this.o=this.B=0;this.A=null}A(mH,U);mH.prototype.getErrorCode=function(){return 3>this.o?"manifest.net":"manifest.net.retryexhausted"};function nH(a){return Lb(a.j,function(a){return!!a.info.B},a)}var oH=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function pH(a,b){var c=new mH;D(a,function(a){var e=a.type,g=a.itag,h=null;PF(e)&&(h=a.size.split("x"),h=new RF(+h[0],+h[1],+a.fps,+a.projection_type));var k=null,l=null;OF(e)&&(k=new LF,a.name&&(l=new QF(a.name,a.audio_track_id,"1"==a.isDefault)));a.xtags&&(g=a.itag+";"+a.xtags);var p=parseInt(a.bitrate,10)/8,r=null;b&&a.drm_families&&(r={},D(a.drm_families.split(","),function(a){r[a]=b[a]}));e=new MF(g,e,k,h,l,r,p);h=aG(a.init);k=aG(a.index);l=qH(a.url,e,a.s);p=parseInt(a.clen,10);a=parseInt(a.lmt,
10);l&&(c.j[g]=new jH(l,e,h,k,p,a))});return c}function rH(a){if(!a)return 0;var b=oH.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function qH(a,b,c){a=new SF(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",KF(c));return a}var sH={commentary:1,alternate:2,dub:3,main:4};
function tH(a){var b=cG(a,"id"),b=b.replace(":",";");"captions"==b&&(b=cG(a,"lang"));var c=cG(a,"mimeType"),d=cG(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(cG(a,"bandwidth"),10)/8,e=null;PF(c)&&(e=new RF(parseInt(cG(a,"width"),10),parseInt(cG(a,"height"),10),parseInt(cG(a,"frameRate"),10)));var g=null,h=null;if(OF(c)){g=new LF;var h=cG(a,"lang")||"",k=dG(a,"Role");if(k){var k=cG(k,"value")||"",l;if(l=h)l=k in sH;h=l?new QF(cG(a,"yt:langName")||h+" - "+k,h+"."+sH[k],"main"==k):null}else h=null}k=
null;if(a=dG(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 MF(b,c,g,e,h,k,d)}function uH(a,b,c,d){a.B=1;b=b||a.J;c={format:"RAW",method:"GET",Ac:y(a.R,a,c,d||null)};a.O&&(c.timeout=15E3);Ij(b,c)}
mH.prototype.R=function(a,b,c){this.N=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.D=1E3*rH(cG(c,"minimumUpdatePeriod"))||Infinity;this.isLive=Infinity>this.D;this.C=!0;this.G=parseInt(cG(c,"yt:earliestMediaSequence"),10);this.A||(this.A=new FG);HG(this.A,c);this.L("refresh");for(c=0;c<b.length;c++){var d=tH(b[c]);
if(!this.j[d.id]){var e=qH(dG(b[c],"BaseURL").textContent,d),g=dG(b[c],"Initialization"),h=cG(g,"sourceURL"),g=aG(cG(g,"range"));this.j[d.id]=new yG(e,d,h,null===g?void 0:g)}for(var d=this.j[d.id],e=this.A,h=d,g=$a(h.info.mimeType,";",1)[0],h=e.A[h.info.id]||e.o[g]||e.j||null,e=xb(dG(b[c],"SegmentList").getElementsByTagName("SegmentURL"),h.B),h=h.j,g=[],k=0;k<e.length;k++)g.push(vH(e[k],h[k]));d.update(g,this.isLive,this.G)}IG(this.A)}else b:for(this.duration=rH(cG(c,"mediaPresentationDuration")),
c=0;c<b.length;c++){g=b[c];d=tH(g);h=dG(g,"BaseURL");e=qH(h.textContent,d);k=dG(g,"SegmentBase");g=aG(k.attributes.indexRange.value);k=aG(k.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),10);d=new jH(e,d,k,g,h,NaN);if(!d)break b;this.j[d.info.id]=d}this.I=z();this.B=2;this.F=!1;this.o=0;a&&a(this);this.L("loaded")}else this.B=3,this.F?this.o+=1:this.F=!0,b&&b(c),this.L("load_error")};
function vH(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");null!=e&&(0<=parseInt(e.split("-")[1],10)?d=aG(e):c=c+"?range="+e);return new eG(b.o,b.oe,b.j,c,d)}function wH(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.rg();return NaN}function xH(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.ct();return 0}function yH(a,b){Jb(a.j,function(a){Jb(b,function(b,e){a.D.j.set(e,b)})})};function zH(a,b,c,d){this.A={};this.N=a;this.I=b;a=c.split("#");this.G=parseInt(a[0],10);this.F=parseInt(a[1],10);this.o=parseInt(a[2],10);this.Gb=parseInt(a[3],10);this.rows=parseInt(a[4],10);this.C=parseInt(a[5],10);this.B=a[6];this.D=a[7];this.J=d}f=zH.prototype;f.getHeight=function(){return this.F};f.Ki=function(){return this.o};f.isDefault=function(){return-1!=this.B.indexOf("default")};
function AH(a,b){var c=a.I,c=c.replace("$N",a.B),c=c.replace("$L",a.N.toString()),c=c.replace("$M",b.toString());a.D&&(c=We(c,{sigh:a.D}));return hg(c)}function BH(a,b){var c=Math.floor(b/(a.Gb*a.rows)),d=a.Gb*a.rows,e=b%d,g=e%a.Gb,e=Math.floor(e/a.Gb),h=a.rows,k=a.Qn()+1-d*c;k<d&&(h=Math.ceil(k/a.Gb));return{url:AH(a,c),gw:g,Gb:a.Gb,row:e,rows:h,jq:a.G*a.Gb,hq:a.F*h}}f.sk=function(a){var b=this.Ki()-1;a=0==this.C?Math.round(a*this.o/this.J):Math.round(1E3*a/this.C);return Pc(a,0,b)};
f.Qn=function(){return this.o-1};f.gt=function(){return this.o?0:-1};f.ht=function(){};function CH(a,b){this.j=this.o(a,b);this.A={};1<this.j.length&&this.j[0].isDefault()&&this.j.splice(0,1)}CH.prototype.o=function(a,b){for(var c=[],d=a.split("|"),e=d[0],g=1;g<d.length;g++){var h=this.B(g-1,e,d[g],b);180>h.getHeight()&&c.push(h)}return c};CH.prototype.B=function(a,b,c,d){return new zH(a,b,c,d)};function DH(a,b){var c=a.A[b];if(c)return c;for(var c=a.j.length,d=0;d<c;d++)if(a.j[d].G>=b)return a.A[b]=d;a.A[b]=c-1;return c-1}CH.prototype.C=function(){};function EH(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");zH.call(this,a,b,c,0);this.j=null;this.H=d?3:0}A(EH,zH);f=EH.prototype;f.Ki=function(){return this.j?this.j.ap():-1};f.sk=function(a){var b=this.rows*this.Gb*this.H,c=-1,d=-1,e=this.j;e&&(c=e.Nb(),d=e.Pg(a));return d>c-b?-1:d};f.Qn=function(){return this.j?this.j.Nb():-1};f.gt=function(){return this.j?this.j.Ng():-1};f.ht=function(a){this.j=a?a.index:null};function FH(a,b){this.D=b;CH.call(this,a,0)}A(FH,CH);FH.prototype.o=function(a,b){return FH.K.o.call(this,"$N|"+a,b)};FH.prototype.B=function(a,b,c){return new EH(a,b,c,this.D.isLive)};FH.prototype.C=function(a){for(var b=0;b<this.j.length;b++)this.j[b].ht(a)};var GH={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};function HH(a,b){return void 0==b?a:"1"==b?!0:!1}function IH(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function JH(a,b){return void 0==b?a:Number(b)}function KH(a,b){return void 0==b?a:b.toString()}var LH=/^([0-9\.]+)\:([0-9\.]+)$/;function MH(a){if(a&&(a=a.match(LH))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function NH(a,b){var c=Zv.auto,d=Zv[b];return d>Zv.medium?new aw(d,c,!1):d>=c?new aw(c,d,!1):a};function OH(a){Iy.call(this,1,arguments);this.j=a}A(OH,Iy);var Ry=new Ly("timing-sent",OH);var PH=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},QH=y(PH.clearResourceTimings||PH.webkitClearResourceTimings||PH.mozClearResourceTimings||PH.msClearResourceTimings||PH.oClearResourceTimings||v,PH),RH=PH.mark?function(a){PH.mark(a)}:v;
function SH(a,b,c){TH(c)[a]=b||z();b||RH(a);if(Uf("CSI_LOG_ON_TICK")&&(b=Uf("TIMING_ACTION"),a=TH(c),b&&a._start&&UH(c))){b=!0;var d=Uf("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)&&VH(c)}}function WH(a,b){var c=TH(b);return a in c}function XH(a,b,c){YH(c).info[a]=b}function ZH(a){$H(a);QH();q("yt.timing.pingSent_",!1,void 0)}
function UH(a){a=TH(a);if(a.aft)return a.aft;for(var b=Uf("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return NaN}function aI(a){return Math.round(PH.timing.navigationStart+a)}
function bI(a){var b=window.location.protocol,c=PH.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=aI(d.startTime),a.wfce=aI(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=aI(c.startTime),a.wffe=aI(c.responseEnd))}
function VH(a){var b=TH(a),c=YH(a).span,d=YH(a).info,e=t("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))cI(e),ZH(a)}else{e={v:2,s:Uf("CSI_SERVICE_NAME","youtube"),action:Uf("TIMING_ACTION")};if(PH.now&&PH.timing){var g=PH.timing.navigationStart+PH.now(),g=Math.round(z()-g);d.yt_hrd=g}var g=Uf("TIMING_INFO")||{},h;for(h in g)d[h]=g[h];h=d.srt;delete d.srt;var k;h||0===h||(k=PH.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+
t("ytplayer.config.assets.js"),(g=PH.getEntriesByName?PH.getEntriesByName(g)[0]:null)?d.h5jse=Math.round(d.h5jse-g.responseEnd):delete d.h5jse);b.aft=UH(a);g=b._start;if("cold"==d.yt_lt){k||(k=PH.timing||{});var l;a:if(l=k,l.msFirstPaint)l=Math.max(0,l.msFirstPaint);else{var p=window.chrome;if(p&&(p=p.loadTimes,ha(p))){var p=p(),r=1E3*Math.min(p.requestTime||Infinity,p.startLoadTime||Infinity),r=Infinity===r?0:l.navigationStart-r;l=Math.max(0,Math.round(1E3*p.firstPaintTime+r)||0);break a}l=0}0<l&&
l>g&&(b.fpt=l);l=YH(a).span;p=k.redirectEnd-k.redirectStart;0<p&&(l.rtime_=p);p=k.domainLookupEnd-k.domainLookupStart;0<p&&(l.dns_=p);p=k.connectEnd-k.connectStart;0<p&&(l.tcp_=p);p=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart>=k.navigationStart&&0<p&&(l.stcp_=p);p=k.responseStart-k.requestStart;0<p&&(l.req_=p);p=k.responseEnd-k.responseStart;0<p&&(l.rcv_=p);Uf("EXP_WEBFONT_ENABLED")&&PH.getEntriesByType&&bI(b)}d.p=Uf("CLIENT_PROTOCOL")||"unknown";d.t=Uf("CLIENT_TRANSPORT")||"unknown";
for(var u in d)"_"!=u.charAt(0)&&(e[u]=d[u]);Uf("CSI_MORE")&&(b.ps=z());d={};u=[];for(var w in b)"_"!=w.charAt(0)&&(l=Math.max(Math.round(b[w]-g),0),d[w]=l,u.push(w+"."+l));e.rt=u.join(",");b={};w=[];for(var S in c)"_"!=S.charAt(0)&&(b[S]=c[S],w.push(S+"."+c[S]));e.it=w.join(",");(c=t("ytdebug.logTiming"))&&c(e,d,b);ZH(a);Uf("EXP_DEFER_CSI_PING")?(dI(),q("yt.timing.deferredPingArgs_",e,void 0),a=L(dI,0),q("yt.timing.deferredPingTimer_",a,void 0)):cI(e);a=new OH(d.aft+(h||0));c=Ry;(e=Sy())&&e.publish.call(e,
c.toString(),c,a)}}function cI(a){Uf("EXP_DEFER_CSI_PING")&&(M(t("yt.timing.deferredPingTimer_")),q("yt.timing.deferredPingArgs_",null,void 0));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];lg(b+"?"+c.substring(1));q("yt.timing.pingSent_",!0,void 0)}function dI(a){if(Uf("EXP_DEFER_CSI_PING")){var b=t("yt.timing.deferredPingArgs_");b&&(a&&(b.yt_fss=a),cI(b))}}function TH(a){return YH(a).tick}
function YH(a){return t("ytcsi."+(a||"")+"data_")||$H(a)}function $H(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};var eI={LIKE:0,DISLIKE:1,INDIFFERENT:2};function fI(a,b,c){c=c||{};Oj(c.rb,c.pageId,y(gI,m,a,b,c),c.onError)}
function gI(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.rb&&(d.authuser=c.rb);c.pageId&&(d.pageid=c.pageId);a={screen:Ue({h:screen.height,w:screen.width,d:screen.colorDepth})};c.WC&&(a.station_id=c.WC);Ij("/watch_actions_ajax",{format:"XML",method:"POST",mg:d,Lb:a,qb:c.qb,onError:c.onError,Ac:c.Ac})};function hI(a,b){this.o=a;this.j=b;this.A=0}function iI(a){for(var b=[],c=[],d=0,e=a.j.length;d<e;++d){var g=a.j[d];g.bitrate<=a.A?b.push(g):c.push(g)}b.sort(function(a,b){return b.bitrate-a.bitrate});c.sort(function(a,b){return a.bitrate-b.bitrate});a.j=b.concat(c)};function jI(a,b,c,d,e,g,h,k){this.itag=a;this.url=b;this.Do=c;this.width=d;this.height=e;this.bitrate=h;this.fps=g;this.audioItag=k||null};function kI(a,b){this.Tb=a;this.A=b;this.o=null}A(kI,zw);function lI(a,b,c,d,e,g,h,k){var l=new LF;d=new RF(d,e,g,null,0,h);c=new MF(c,"application/x-mpegURL",l,d);a=new hI(a,b);a.A=k?k:1369843;return new kI(c,a)}
kI.prototype.j=function(){if(!this.o||this.o.ma()){var a;a=this.A;iI(a);for(var b=["#EXTM3U"],c={},d=0,e=a.o.length;d<e;++d){var g=a.o[d];c[g.itag]=g;b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="'+g.itag.toString()+'",URI="'+g.url+'"')}d=0;for(e=a.j.length;d<e;++d){var h=a.j[d],g=c[h.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+g.bitrate)+',CODECS="'+(h.Do+","+g.Do)+'",RESOLUTION='+(h.width+"x"+h.height)+',AUDIO="'+g.itag.toString()+'",CLOSED-CAPTIONS=NONE');
b.push(h.url)}a=b.join("\n");this.o=new lw("data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a))}return this.o};function mI(a,b){this.Tb=a;this.o=b}A(mI,zw);function nI(a,b,c,d,e){var g=new LF;c in Zv||(c="small");var h=Zv[c],k=Math.round(16*h/9);c=new RF(k,h,0,null,e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new mI(new MF(d,b,g,c),a)}function oI(a){var b=[];D(a,function(a){a.url&&b.push(nI(a.url,a.type,"medium","0"))});return b}
function pI(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||KF(e.s);e.url=Aj(e.url,{signature:g})}e.url&&c.push(nI(e.url,e.type,e.quality,e.itag,e.stereo3d))}return Gw(c,!!b)}mI.prototype.j=function(){return new lw(this.o)};function qI(a,b){this.j=a;this.o=b}qI.prototype.getValue=function(){return this.o};qI.prototype.clone=function(){return new qI(this.j,this.o)};function rI(a){this.j=[];if(a)a:{var b,c;if(a instanceof rI){if(b=a.Na(),c=a.Qa(),0>=a.Wa()){a=this.j;for(var d=0;d<b.length;d++)a.push(new qI(b[d],c[d]));break a}}else b=Rb(a),c=Qb(a);for(d=0;d<b.length;d++)sI(this,b[d],c[d])}}function sI(a,b,c){var d=a.j;d.push(new qI(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=rI.prototype;
f.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)ob(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.getValue()}};f.Qa=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};f.Na=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};f.Cf=function(a){return ib(this.j,function(b){return b.getValue()==a})};
f.clone=function(){return new rI(this)};f.Wa=function(){return this.j.length};f.isEmpty=function(){return nb(this.j)};f.clear=function(){ob(this.j)};function tI(){rI.call(this)}A(tI,rI);function uI(a,b){U.call(this);this.j=a;this.A=new tI;this.C={};this.B=b||""}A(uI,U);uI.prototype.o=!1;function vI(a,b,c){var d;for(c=DH(a.j,c);0<=c;){d=a.j.j[c];if(d=d.A[Math.floor(b/(d.Gb*d.rows))]?BH(d,b):null)return d;c--}return BH(a.j.j[0],b)}function wI(a,b,c){c=DH(a.j,c);for(var d,e;0<=c;c--)if(d=a.j.j[c],e=Math.floor(b/(d.Gb*d.rows)),!d.A[e]){d=a;var g=c,h=g+"-"+e;d.C[h]||(d.C[h]=!0,sI(d.A,g,{Wp:g,iq:e}))}xI(a)}
function xI(a){if(!a.o)if(a.A.isEmpty())a.o=!1;else{a.o=!0;var b=a.A.remove(),c=new Image;a.B&&(c.crossOrigin=a.B);c.src=AH(a.j.j[b.Wp],b.iq);c.onload=y(a.D,a,b.Wp,b.iq)}}uI.prototype.D=function(a,b){this.o=!1;var c=this.j.j[a];c.A[b]=!0;xI(this);var d,e=c.Gb*c.rows;d=b*e;c=Math.min(d+e-1,c.Ki()-1);d=[d,c];this.L("l",d[0],d[1])};function Uu(a){U.call(this);this.Ge=new H(0,0);this.$a=this.la=!1;this.kd="";this.jd=this.ya=!1;this.Qb={};this.captionTracks=[];this.Ca=[];this.Ld=0;this.Md=[];this.Da=!1;this.X=new Xv("und",new QF("Default","und",!0));this.La=0;this.Ee=new xs(this.Or,5E3,this);R(this,this.Ee);this.ob=!1;this.I=[];this.B={};this.keywords={};this.D={};yI(this,a)}A(Uu,U);Uu.G=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Uu.o=1;Uu.C=-21;Uu.D=18E3;Uu.A="ypc_buy_url ypc_full_video_message ypc_item_thumbnail ypc_item_title ypc_item_url ypc_module ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_offer_type ypc_preview ypc_signin_message ypc_vid".split(" ");
Uu.F="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs sentiment subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");Uu.j={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};
Uu.B=["www.youtube.com","manifest.googlevideo.com"];f=Uu.prototype;f.adModule=!1;f.adaptiveFormats="";f.Ms=null;f.allowEmbed=!0;f.Ab=!1;f.ii="";f.no=!1;f.Tk=!1;f.qo=Uu.o;f.lk=null;f.us=null;f.author="";f.jk=0;f.oi=!1;f.Jo=!1;f.pi="";f.clientPlaybackNonce="";f.contentCheckOk=!1;f.mf=0;f.pl=!1;f.Bi=!1;f.nl=!1;f.Ef=0;f.Zf=!1;f.mp=!1;f.kk=0;f.bm=0;f.Np=!1;f.eh=!1;f.Pp=!0;f.aj=!1;f.hm=!1;f.jm=!1;f.Sa=!1;f.km=!1;f.te=!1;f.Tp=!1;f.nm=!1;f.Zy=0;f.lengthSeconds=0;f.Fn=0;f.ur=!1;f.racyCheckOk=!1;f.Cg=1;
f.Sm=cw;f.Rr=0;f.an=!1;f.startSeconds=0;f.Sj=null;f.Rm=2;f.Tj=cw;f.cs=!1;f.Bh=!1;f.hf=null;f.title="";f.jf="";f.hlsFormats="";f.gk=null;f.qn="vvt";f.Cr=!1;f.Wr=!1;f.clipStart=0;f.clipEnd=Infinity;
function wv(a,b){var c=b||{};c.iv_invideo_url&&(a.ii=gg(c.iv_invideo_url));c.iv_ads_only&&(a.no="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.Jd=c.cta_conversion_urls);a.author=KH(a.author,c.author);a.oi=HH(a.oi,c.cc_asr);var d=c.ttsurl;d&&-1!=d.search(Df)?a.pi=d:d&&(d=gg(d))&&-1!=d.search(Df)&&(a.pi=d);c.caption_tracks&&c.caption_audio_tracks&&(zI(a,c.caption_tracks),a.Ca=wj(c.caption_audio_tracks),c.default_audio_track_index&&(a.Ld=parseInt(c.default_audio_track_index,10)||0),c.caption_translation_languages&&
AI(a,c.caption_translation_languages));a.Da=HH(a.Da,c.cc_contribute);a.clientPlaybackNonce=KH(a.clientPlaybackNonce,c.cpn);a.subscribed=KH(a.subscribed,c.subscribed);a.Rm=IH(a.Rm,c.sentiment,eI);a.title=KH(a.title,c.title);a.da=KH(a.da,c.ypc_preview);a.fb=KH(a.fb,c.ypc_origin);a.ur=HH(a.ur,c.paygated);a.Cr=HH(a.Cr,c.requires_purchase);c.keywords&&(a.keywords=BI(c.keywords));c.rvs&&(a.U=wj(c.rvs));a.contentCheckOk=HH(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=HH(a.racyCheckOk,"1"==c.rco);a.C=KH(a.C,
c.oauth_token);a.ob=HH(a.ob,c.darude);D(Uu.F,function(a){a in c&&(this.B[a]=c[a])},a)}
function yI(a,b){var c=b||{};a.Ab="1"!=c.hlsdvr||ai||Yh&&5>Zq?!1:!0;a.Rc=c.ad_query_id;a.Ik=c.agcid;a.Tk="1"==c.infringe||"1"==c.muted;a.Kd=c.authkey;a.rb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||UE());a.ay=z();a.Jk=c.t;a.pl=HH(a.pl,c.cenchd);a.Bi=HH(a.Bi,c.enable_cardio);a.nl=HH(a.nl,c.enable_cardio_before_playback);a.Ef=JH(a.Ef,c.end||c.endSeconds);a.Ha=KH(a.Ha,c.itct);a.Pp="1"!=c.no_get_video_log;a.aj="1"==c.tmi;a.hm=HH(a.hm,c.noiba);a.jm="1"==c.livemonitor;a.Sa="1"==c.live_playback;
a.km=HH(a.km,c.mdx);a.nm=HH(a.nm,c.utpsa);for(var d in Uu.j){var e=c[d+"_webp"]||c[d];eg(e)&&(a.Qb[Uu.j[d]]=e)}a.G=KH(a.G,c.vvt);a.Lv=c.osig;a.ze=c.ptchn;a.Ae=c.oid;a.J=c.ptk;a.Be=c.pltype;a.playbackId=c.plid;a.H=c.eventid;a.ic=c.osid;a.Vy=c.vm;a.hy=c.of;a.playlistId=KH(a.playlistId,c.list);a.Ce=c.pyv_view_beacon_url;a.Mv=c.pyv_quartile25_beacon_url;a.Uv=c.pyv_quartile50_beacon_url;a.tw=c.pyv_quartile75_beacon_url;a.fu=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.di=c.sdetail;!a.ab&&c.session_data&&(a.ab=tj(c.session_data,"&").feature);a.nd=1==JH(a.nd?1:0,c.is_fling);a.jc=KH(a.jc,c.ctrl);a.mc=KH(a.mc,c.ytr);a.Od=c.ytrcc;a.Wr="1"==c.skip_kansas_logging;a.qc=KH(a.qc,c.cl);a.Sm=NH(a.Sm,c.vq);a.Tj=NH(a.Tj,c.suggestedQuality);a.sa=c.approx_threed_layout||0;a.cs="1"==c.threed_converted;a.startSeconds=JH(a.startSeconds,c.start||c.startSeconds);a.fi=HH(a.fi,c.ssrt);a.videoId=
c.docid||c.video_id||c.videoId||a.videoId;a.He=KH(a.He,c.vss_credentials_token);a.qn=KH(a.qn,c.vss_credentials_token_type);CI(a,c.watermark);a.Ie=KH(a.Ie,c.ypc_gid);a.hb=KH(a.hb,c.ypc_license_session_token);a.heartbeatToken=KH(a.heartbeatToken,c.heartbeat_token);a.ld=JH(a.ld,c.heartbeat_interval);a.md=JH(a.md,c.heartbeat_retries);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.I.push("ad")):"1"!=c.supported_without_ads&&(a.mp=!0);c.adaptive_fmts&&(a.adaptiveFormats=
c.adaptive_fmts);void 0!=c.atc&&(a.ga=c.atc);c.license_info&&(a.Ms=DI(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.autonav&&(a.Np="1"==c.autonav);c.autoplay&&(a.eh="1"==c.autoplay);c.iv_load_policy&&(a.wa=IH(a.wa,c.iv_load_policy,PA));c.cc_lang_pref&&(a.vf=KH(c.cc_lang_pref,a.vf));c.cc_load_policy&&(a.wf=IH(a.wf,c.cc_load_policy,PA));"0"==c.dash&&(a.Jo=!0);c.dashmpd&&(a.O=We(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O))&&(e=KF(e[1]),a.O=a.O.replace(d,
"/signature/"+e));c.delay&&(a.mf=Wa(c.delay));void 0!=c.end&&(a.clipEnd=c.end);c.fresca_preroll&&a.I.push("fresca");c.idpj&&(a.kk=Wa(c.idpj));c.ismb&&(a.bm=Wa(c.ismb));c.url_encoded_fmt_stream_map&&(a.jf=c.url_encoded_fmt_stream_map);c.hls_formats&&(a.hlsFormats=c.hls_formats);c.hlsvp&&(a.aa=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Wa(c.length_seconds));!a.lengthSeconds&&a.Sa&&(a.lengthSeconds=a.Ab?3600:Infinity);c.ldpj&&(a.Fn=Wa(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.qo=EI(a));
c.partnerid&&(a.W=Wa(c.partnerid));c.probe_url&&(a.probeUrl=hg(We(c.probe_url,{cpn:a.clientPlaybackNonce})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(Kf)&&(a.na=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(Kf)&&(a.oa=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Xa=d.quartile_0_url,a.Pd=d.quartile_25_url,a.Qd=d.quartile_50_url,a.ye=d.quartile_75_url,a.od=d.quartile_100_url);c.spacecast_address&&(a.I.push("spacecast"),a.nb=c.spacecast_address);
void 0==c.start||"1"==c.resume||a.Sa||(a.clipStart=c.start);c.threed_module&&!c.threed_converted&&(a.va=c.threed_module,a.Aw=6);c.two_stage_token&&(a.lk=c.two_stage_token);c.url_encoded_third_party_media&&(a.hf=wj(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.us=c.watch_ajax_token);c.ypc_module&&a.I.push("ypc");c.ypc_clickwrap_module&&a.I.push("ypc_clickwrap");a.Fe=KH(a.Fe,c.ucid);D("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.D[a]=c[a])},a);a.D.focEnabled=
HH(a.D.focEnabled,c.focEnabled);a.D.rmktEnabled=HH(a.D.rmktEnabled,c.rmktEnabled);a.B=c;wv(a,c);FI(a)}function GI(a){return!(!a.A||!a.A.o.length)}function FI(a){(a.Sa||a.jm)&&"1"==a.B.as3fb||!Mw()||a.Jo||(a.adaptiveFormats?a.o=pH(HI(a,a.adaptiveFormats),a.Ms):a.O&&(a.Zf=!0,a.la=!0))}f.eA=function(a){this.ma()||(this.o=a,this.o.subscribe("refresh",this.Aq,this),SH("mrc"),this.o&&(this.lengthSeconds=this.o.duration||wH(this.o)||this.lengthSeconds),this.Gn())};
f.Aq=function(){this.o.isLive||this.o.qa("refresh",this.Aq,this);var a=xb(this.o.A.B,this.La);0<a.length&&(this.L("cuepointupdated",a),this.La+=a.length)};f.Gn=function(){this.ma()||(this.Zf=!1,this.ya&&!II(this)?this.L("dataloaderror",new ru("fmt.noneavailable",!0)):this.L("dataloaded",this.B))};
function zF(a,b){if(!a.ma()){a.A=null;a.R=null;a.N=null;if(a.ba){var c=HI(a,a.ba);a.N=pI(c,!1);a.A=new gw(E(a.N,function(a){return a.Tb}))}!a.A&&a.o&&(a.A=Ow(a.o,b));a.A||(a.N=JI(a),a.N.length&&(a.A=new gw(E(a.N,function(a){return a.Tb}))));KI(a);a.Rr=Math.min(.8*a.lengthSeconds,180)}}
function JI(a){if(a.hlsFormats){var b=HI(a,a.hlsFormats),c;c=a.bm;if(dr){for(var d={},e=0,g=b.length;e<g;++e){var h;h=b[e];var k=h.type.match(/codecs="([^"]*)"/);h=new jI(h.itag,h.url,k?k[1]:"",+h.width,+h.height,+h.fps,+h.bitrate,h.audioItag?+h.audioItag:void 0);d[h.itag]=h}if(d){var b=[],e=[],g=[],l;for(l in d)if(h=d[Number(l)],h.width){if(k=d[h.audioItag])b.push(h),g.push(lI([k],[h],h.itag,h.width,h.height,h.fps))}else e.push(h);g.push(lI(e,b,"93",0,0,0,"auto",c));c=Gw(g,!1)}else c=[]}else c=[];
if(c.length)return c}if(a.hf&&a.Tp)return a=oI(a.hf),Gw(a,!1);c=!!a.va||a.Bh;d=HI(a,a.jf);a.aa&&(l=a.aa,b=a.bm,a={cpn:a.clientPlaybackNonce},-1==l.indexOf("/ibw/")&&(a.ibw=b?String(b):"1369843"),a={url:We(l,a),type:"application/x-mpegURL",quality:"auto",itag:"93"},d.push(a));return pI(d,c)}function cF(a){return a.j&&a.j.B||null}f.Gc=function(a){return x(this.keywords[a])?this.keywords[a]:null};
function LI(a){a.gk||(a.B.storyboard_spec?a.gk=new CH(a.B.storyboard_spec,Wa(a.B.length_seconds)):a.B.live_storyboard_spec&&a.o&&(a.gk=new FH(a.B.live_storyboard_spec,a.o)));return a.gk}function MI(a){var b=LI(a);!a.Sj&&b&&(a.Sj=new uI(b),R(a,a.Sj));return a.Sj}function yv(a){return a.o&&!isNaN(xH(a.o))?xH(a.o):0}function NI(a){return!a.ma()&&!(!a.videoId&&!a.hf)}
function II(a){var b=G(a.I,"ypc");a.De&&a.da&&(b=!1);return NI(a)&&!a.Zf&&!a.la&&(!!(a.o||a.jf||a.hf||a.ba||a.aa)||G(a.I,"fresca")||b)}function OI(a,b,c){a.ma()||(a.kd=b,a.ya=!!c,a.Zf=!0,a.Or())}f.Or=function(){Ij(this.kd,{format:"RAW",method:"GET",context:this,qb:this.vA,onError:this.Cq});SH("vir")};
f.Zd=function(a){if(30==this.W)return(a=this.Qb["default.jpg"])?a:this.videoId?We("//docs.google.com/vt",{id:this.videoId,authuser:this.rb,authkey:this.Kd}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Qb[a];return b||"sddefault.jpg"==a||"maxresdefault.jpg"==a?b:ft(this.videoId,a)};
f.vA=function(a){if(!this.ma()){var b=a.responseText;if(b){this.Zf=!1;var c=vj(b);"fail"==c.status?this.L("onStatusFail",c):(SH("virc"),this.De&&D(Uu.A,function(a){a in this.B&&(c[a]=this.B[a])},this),yI(this,c),this.Gn())}else this.Cq(a)}};f.Cq=function(a){if(!this.ma()){var b="manifest.net",c=!0,d="rc."+a.status;this.ya&&(this.jd?b="manifest.net.retryexhausted":(this.jd=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Ee.start()));this.L("dataloaderror",new ru(b,c,d))}};
function EI(a){return a.perceptualLoudnessDb?(a=Math.min(Uu.C-a.perceptualLoudnessDb,0),Math.pow(10,a/20)):Uu.o}function HI(a,b){var c=wj(b);D(c,function(a){a.url&&(a.url=We(a.url,{cpn:this.clientPlaybackNonce}))},a);return c}function BI(a){var b={};D(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}function CI(a,b){if(b){var c=b.split(",");2<=c.length&&(a.Z=c[1],eg(a.Z)&&-1==a.Z.search(Uu.G)||(a.Z=""))}}
function DI(a){a=wj(a);var b={};D(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}function zI(a,b){for(var c=wj(b),d=0;d<c.length;d++){var e=c[d],g=e.u;g&&-1!=g.search(Df)&&(g={is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:g,vss_id:e.v,kind:e.k},"asr"!=e.k&&(g.format=2),a.captionTracks.push(new Tv(g)))}}function AI(a,b){for(var c=wj(b),d=0;d<c.length;d++){var e=c[d];a.Md.push(new Sv({languageCode:e.lc,languageName:e.n}))}}
function KI(a){for(var b=a.A?a.A.audioTracks:[],b=b.concat(a.X),c=0;c<a.Ca.length;c++)for(var d=a.Ca[c],e=0;e<b.length;e++){var g=b[e],h=g.bd.id==d.aid;if(g==a.X&&c==a.Ld||h){if(d.i)for(var h=d.i.split(","),k=0;k<h.length;k++)g.captionTracks[k]=a.captionTracks[parseInt(h[k],10)];d.d&&(g.ml=a.captionTracks[parseInt(d.d,10)]);d.f&&(g.Fi=a.captionTracks[parseInt(d.f,10)]);g.vo=parseInt(d.v,10)}}}function zt(a,b){return!!a.B[b]}function PI(a){return a.Sa&&!a.Ab}function QI(a){return a.Sa&&a.Ab};function RI(a){a=a.B;this.A=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.C=a.ypc_offer_headline;this.B=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.j=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;eg(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.o=a.ypc_item_url;this.videoId=a.ypc_vid};function SI(){ts.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"];ss(this,this.template.j["ytp-drawer-close-button"],"click",this.o);ss(this,a,"click",this.ua);this.j=new xs(pa(qh,this.element,"ytp-drawer-closed"),0);R(this,this.j);this.Ba(null);this.$()}A(SI,ts);SI.prototype.o=function(){this.$();this.L("close-clicked")};
SI.prototype.$=function(){this.j.stop();N(this.element,"ytp-drawer-closed")};SI.prototype.Ba=function(a){a?(SI.K.Ba.call(this,a),ps(this.element,"block")):ps(this.element,"none")};SI.prototype.ua=function(){this.j.start()};function TI(a,b){U.call(this);this.j=new SI;this.j.subscribe("close-clicked",this.D,this);R(this,this.j);this.o=document.createElement("div");N(this.o,"html5-ypc-endscreen");this.B=document.createElement("div");N(this.B,"html5-ypc-overlay");this.A=new is(["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",
{tabindex:5200},"{{button_label}}"]]);R(this,this.A);this.C=this.A.j["html5-ypc-purchase"];P(this.C,"click",y(this.F,this));ee(this.B,b.B);var c=b.title;b.o&&(c=["a",{href:b.o,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.A.update({heading:b.C,title:c,thumbnail_element:d,description:b.description,button_label:b.A});this.ea(a)}A(TI,U);TI.prototype.P=function(){TI.K.P.call(this);this.C&&Mh(this.C);Wd(this.o);Wd(this.B)};
TI.prototype.ea=function(a){this.j.ea(a);this.j.Ba(this.A.Q());a.appendChild(this.o)};function UI(a){var b=a.A.Q();a.o.appendChild(b);a.j.Ba(null);ps(a.o,"block")}TI.prototype.D=function(){this.L("ypcModuleCloseClicked")};TI.prototype.F=function(){this.L("ypcContentRequest")};function VI(a){Nr.call(this,a);this.A=this.o=null;this.C=NaN;this.B=null}A(VI,Nr);f=VI.prototype;f.za="ypc";f.Dc="ypc";f.Ja=function(){return zt(this.j.getVideoData(),"ypc_module")};function WI(a){return zt(a.getVideoData(),"ypc_module")?new VI(a):null}f.Pa=function(){VI.K.Pa.call(this);this.o=new RI(this.j.getVideoData());L(y(this.bF,this),0);this.B=new X(["div",["ytp-player-content","ytp-ypc-player-content"]]);this.B.ea(this.j.Oa())};
f.destroy=function(){VI.K.destroy.call(this);this.o=null;this.B.detach();this.B.dispose();this.B=null};f.bF=function(){this.ve&&!this.loaded&&this.load()};
f.load=function(){VI.K.load.call(this);var a=this.j.V(),b=this.j.getVideoData();if(this.o.videoId&&!b.da){var c={video_id:this.o.videoId,ypc_origin:b.videoId,ypc_preview:"1"};if(a.experiments.j)for(var d=Uu.A,e=0;e<d.length;e++){var g=d[e];b.B.hasOwnProperty(g)&&(c[g]=b.B[g])}this.j.$s(c)}else this.A=new TI(this.B.Q(),this.o),this.A.subscribe("ypcContentRequest",this.$z,this),this.A.subscribe("ypcModuleCloseClicked",this.OA,this),this.o.videoId&&Td(this.B.Q(),this.A.B),wt(a)&&(c=new Mq(2147483647,
2147483647,{priority:2}),Or(this,[c])),this.A.j.ua(),M(this.C),this.C=L(y(function(){a.experiments.O||this.A.j.$()},this),1E4),this.o.videoId?b.da&&Rr(this):UI(this.A)};f.unload=function(){Qr(this);Ci(this.A);this.A=null;VI.K.unload.call(this)};f.Mc=function(a){VI.K.Mc.call(this,a);UI(this.A)};f.ed=function(a){VI.K.ed.call(this,a);a=this.A;ps(a.o,"none");a.j.Ba(a.A.Q())};
f.$z=function(){if(this.o.j)"embedded"==this.j.V().ka?vy(this.o.j):ty(this.o.j);else if(this.o.offerId){var a=t("yt.www.watch.player.handleEndPreview");a&&(this.j.gh()&&sz(this.j.S),a(this.o.offerId))}};f.OA=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};function XI(a){this.B=Math.exp(Math.log(.5)/a);this.j=this.A=0}XI.prototype.o=function(a,b){var c=Math.pow(this.B,a);this.j=b*(1-c)+c*this.j;this.A+=a};XI.prototype.C=function(){return this.j/(1-Math.pow(this.B,this.A))};function YI(a){this.o=window.Float32Array?new Float32Array(a):Array(a);this.j=a-1}YI.prototype.add=function(a){this.j=(this.j+1)%this.o.length;this.o[this.j]=a};YI.prototype.forEach=function(a){for(var b=this.j+1;b<this.o.length;b++)a(this.o[b]||0);for(b=0;b<=this.j;b++)a(this.o[b]||0)};function ZI(a,b,c){this.H=0;this.F=a;this.B=b||.5;this.D=c||0;this.G="index";this.j=0;this.A=[]}ZI.prototype.o=function(a,b){$I(this,"index");this.A.push({index:this.H++,weight:a,value:b});this.j+=a;for($I(this,"index");this.j>this.F;){var c=this.j-this.F,d=this.A[0];d.weight<=c?(this.j-=d.weight,this.A.shift()):(this.j-=c,d.weight-=c)}};function aJ(a,b){$I(a,"value");var c=b*a.j,d=0,e=NaN;a.A.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}
ZI.prototype.C=function(){return this.D?(aJ(this,this.B-this.D)+aJ(this,this.B)+aJ(this,this.B+this.D))/3:aJ(this,this.B)};function $I(a,b){a.G!=b&&(a.G=b,Db(a.A,b))};function bJ(){this.j={}}function cJ(a,b){var c=a.j[b]||{pe:0,done:0,es:0,So:0};return a.j[b]=c};function dJ(a){this.J=a;this.j=new bJ;this.A=this.D=this.F=0;this.H=new YI(100);this.G=0;this.I=z();this.C=new ZI(16,.6);this.B=new XI(4);this.J.o?this.o=new XI(17):this.o=new ZI(17,.5,.1);a=fj("yt-player-bandwidth")||{};this.o.o(this.J.j,0<a.byterate?a.byterate:13E4);0<a.delay&&this.C.o(1,Math.min(+a.delay,2));0<a.tailDelay&&this.B.o(1,+a.tailDelay);this.A=z()}function eJ(a,b,c){b=Math.max(b,.05);a.o.o(b,c/b);fJ(a)}function gJ(a,b,c){isNaN(c)||(a.D+=c);isNaN(b)||(a.F+=b/1E3);fJ(a)}
function hJ(a){a=a.C.C();a=isNaN(a)?.5:a;return a=Math.min(a,5)}function iJ(a){return a.B.C()||0}function jJ(a){a=a.o.C();return 0<a?a:1}function kJ(a){var b={};b.delay=hJ(a);b.tailDelay=iJ(a);b.byterate=jJ(a);return b}function lJ(a){3E4<z()-a.A&&(tu(kJ(a)),a.A=z())}function fJ(a){var b=z();a.I=b;500<b-a.G&&(a.H.add(1/(1/jJ(a)+iJ(a))),a.G=b)}function mJ(a){return 4E3<=z()-a.I};function nJ(){this.j=.5;this.o=!1};function oJ(a){U.call(this);this.views=0;this.j=[];this.o=[];this.Va=Math.max(0,a.index||0);this.qf=!!a.loop;this.startSeconds=a.startSeconds||0;this.mq="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||"";this.C={};a.video_id&&(this.j[this.Va]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);this.B=0;if(a.list)switch(a.listType){case "user_uploads":pJ(this,a.list);break;case "user_favorites":qJ(this,
a.list);break;case "search":rJ(this,a.list);break;default:a.playlist_length&&(this.Kc=a.playlist_length),this.A=ot(a.list),0!=a.fetch&&sJ(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Va&&(this.j=[]);D(b,function(a){a&&this.j.push({video_id:a})},this);this.Kc=this.j.length;b=E(this.j,function(a){return a.video_id});tJ(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.pf=!0}gv(this,!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);
for(var c in Uu.j)b="playlist_"+c,b=a[b+"_webp"]||a[b],eg(b)&&(this.C[Uu.j[c]]=b)}A(oJ,U);function uJ(a){return!!(a.playlist||a.list||a.api)}f=oJ.prototype;f.qf=!1;f.startSeconds=0;f.$r=!1;f.Va=0;f.title="";f.Kc=0;f.mq=!1;f.pf=!1;f.ih=!1;f.ff=null;f.hasNext=function(){return this.qf||this.Va+1<this.Kc};function vJ(a){var b=a.Va+1;b>=a.Kc&&(b=a.qf?0:-1);return b}function wJ(a){var b=vJ(a);if(-1==b)return null;xJ(a,b);return hv(a,b)}
function yJ(a){var b;b=a.Va-1;0>b&&(b=a.qf?a.Kc-1:-1);if(-1==b)return null;xJ(a,b);return hv(a,a.Va)}function hv(a,b){var c=void 0!=b?b:a.Va,c=a.j&&c in a.j?a.j[a.o[c]]:null,d=null;c&&(d=new Uu(c),d.startSeconds=a.startSeconds||d.clipStart||0,a.A&&(d.playlistId=a.A.toString()));return d}
function gv(a,b){a.$r=b;var c=a.o&&null!=a.o[a.Va]?a.o[a.Va]:a.Va;a.o=[];for(var d=0;d<a.j.length;d++)a.o.push(d);a.Va=c;a.B++;if(a.$r){c=a.o[a.Va];for(d=1;d<a.o.length;d++){var e=Math.floor(Math.random()*(d+1)),g=a.o[d];a.o[d]=a.o[e];a.o[e]=g}for(d=0;d<a.o.length;d++)a.o[d]==c&&(a.Va=d);a.B++}a.L("shuffle")}f.Zd=function(a){return this.C[a||"hqdefault.jpg"]};function xJ(a,b){a.Va=Pc(b,0,a.Kc-1);a.startSeconds=0}
function pJ(a,b){a.ih||(a.A=new nt("UU","PLAYER_"+b),tJ(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}function qJ(a,b){a.ih||(a.A=new nt("FL","PLAYER_"+b),tJ(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function rJ(a,b){if(!a.ih){a.A=new nt("SR",b);var c={search_query:b};a.mq&&(c.mob="1");tJ(a,"/search_ajax?style=json&embeddable=1",c)}}
function sJ(a){if(!a.ih){var b={list:a.A},c=hv(a);c&&c.videoId&&(b.v=c.videoId);tJ(a,"/list_ajax?style=json&action_get_list=1",b)}}function tJ(a,b,c){Ij(We(b,c),{format:"JSON",qb:function(a,b){zJ(this,b)},onError:function(){this.L("error")},context:a})}
function zJ(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;b.loop&&(a.qf=b.loop);var c=hv(a);a.j=[];D(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.j.push(a))},a);a.Kc=a.j.length;b.index?a.Va=b.index:AJ(a,c);gv(a,!1);a.ih=!1;a.pf=!0;a.B++;a.ff&&a.ff()}}function AJ(a,b){if(b){var c=b.videoId;if(!a.j[a.Va]||a.j[a.Va].video_id!=c)for(var d=0;d<a.j.length;d++)if(a.j[d].video_id==c){a.Va=d;break}}}
f.P=function(){this.ff=null;Ci(this.j);oJ.K.P.call(this)};function BJ(){Q.call(this);this.j=[];this.D={};this.A={};this.B={};this.o=this.F=null;this.C=[];this.G=null}A(BJ,Q);BJ.prototype.Fo=function(a){if(this.o){var b;var c=ja(a);b=this.D[c];if(!b)if(this.o){if(b=a(this.o)){a=this.D[c]=b;for(var d in this.F)a.subscribe(d,this.F[d]);a.subscribe("command_log_timing",this.H,this);R(this,b)}}else b=null;b&&b.Ja(this.o)&&!G(this.j,b)&&(b.Pa(),this.j.push(b),G(this.C,b.za)&&(b.Zb=this.G,b.qj(!!b.Zb)))}};
function CJ(a){a.j=gb(a.j,function(a){if(!this.o||a.$m(this.o)){try{a.destroy()}catch(c){Yf(c)}return!1}return!0},a)}function JE(a,b){if(!a.o||b.$m(a.o))qb(a.j,b),b.destroy()}function DJ(a,b,c){EJ(a);a.G=b;a.C=ub(c);D(a.j,function(a){0<=eb(c,a.za)&&(a.Zb=b,a.qj(!!a.Zb))})}function EJ(a){D(a.C,function(a){if(a=Ru(this,a))a.Zb=null,a.qj(!1)},a);a.G=null;a.C=[]}function FJ(a,b){if(!b)return E(a.j,function(a){return a.za});var c=Ru(a,b);return c?c.tg():[]}
function Ru(a,b){return F(a.j,function(a){return a.za==b})}BJ.prototype.I=function(a,b){D(this.j,function(c){c.L(a,b)})};function GJ(a){var b={};D(a.j,function(a){qa(b,a.Ph())});return b}BJ.prototype.H=function(a,b){qa(this.B,a||null);qa(this.A,b||null)};BJ.prototype.isAvailable=function(a){a=Ru(this,a);return!(!a||!a.ki)};function HJ(a,b,c){this.C=b;this.j=c;this.B=a;this.o=!0}HJ.prototype.getMessage=function(){return this.C};HJ.prototype.getErrorCode=function(){return this.j};HJ.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.A?" Caused by: "+this.A:"")};function IJ(a,b){hm.call(this,"adError");this.A=a;this.B=b?b:null}A(IJ,hm);var JJ="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 measurable_impression viewable_impression".split(" "),KJ="acceptinvitation click collapse creativeview expand progress close".split(" ");function LJ(a,b,c){hm.call(this,a);this.B=b;this.A=null!=c?c:null}A(LJ,hm);LJ.prototype.getAd=function(){return this.B};
var MJ={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",OJ:"videoClicked",kH:"engagedview",mH:"expandedChanged",STARTED:"start",co:"impression",cI:"measurable_impression",ho:"viewable_impression",PAUSED:"pause",SI:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",Av:"skipshown",gJ:"skippableStateChanged",
vG:"adMetadata",uG:"adBreakReady",$H:"log",VOLUME_CHANGED:"volumeChange",$J:"mute",aH:"companionBackfill",iK:"youTubeVideoMetadata",hK:"youTubeChannelMetadata",MJ:"urlNavigationRequested"};var NJ=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"],OJ=/\bocr\b/,PJ=0,QJ={};function RJ(a){return B(C(a))?!1:(new J(a)).Kf().match(OJ)?!0:null!=F(NJ,function(b){return null!=a.match(b)})}
function SJ(a){if(a){var b=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"});a=Dd(b).body;var c,d=xn(function(){Im(c);Wd(b)},15E3);c=Gm(b,["load","error"],function(){xn(function(){yn(d);Wd(b)},5E3)});a.appendChild(b)}}function TJ(a){if(a){var b=new Image,c=""+PJ++;QJ[c]=b;b.onload=b.onerror=function(){delete QJ[c]};b.src=a}};function UJ(a,b){return a.replace(/(\[|%5B)([a-zA-Z0-9_]+)(\]|%5D)/g,function(a,d,e){try{var g=Yb(b,e),g=g.toString();if(!B(C(g)))return encodeURIComponent(g).replace(/%2C/g,",")}catch(h){}return a})};var VJ=["ADSENSE","ADSENSE/ADX"],WJ=["DART","DART_DFA","DART_DFP"],XJ=["FREEWHEEL"],YJ=["GDFP"],ZJ={"application/flash":"Flash","application/shockwave-flash":"Flash","application/x-shockwave-flash":"Flash","image/jpeg":"Image","image/jpg":"Image","image/png":"Image","image/gif":"Image",text:"Text"},$J={lI:"video/mp4",nI:"video/mpeg",aI:"application/x-mpegURL",vI:"video/ogg",tJ:"video/3gpp",cK:"video/webm",kI:"audio/mpeg",mI:"audio/mp4"};var aK=["google-developers.appspot.com","devsite.googleplex.com"],bK=["*.googlesyndication.com"],cK=["*.youtu.be","*.youtube.com"],dK="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(" "),
eK=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function fK(a,b){try{var c=of(new J(b)),c=c.replace(/^www./i,"");return ib(a,function(a){return gK(a,c)})}catch(d){return!1}}function gK(a,b){if(B(C(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 hK(a){var b;if(b="https:"==window.location.protocol)b=(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+dK.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);return b?(a=new J(a),bf(a,"https"),a.toString()):a};function iK(a){window.open(hK(a),"_blank")}function jK(a,b,c){null!=a?(K(a,"label",b),null!=c&&K(a,"value",c.join(";")),a=a.toString()):a="";kK(a)}function kK(a,b,c,d,e){null!=a&&null!=b&&(a=UJ(a,b));try{if(null!=c)if(b=a,B(C(c)))a=b;else{var g=new J(b);Bf(g.j,"label")?(K(g,"acvw",c),a=g.toString().replace(/%2C/g,",")):a=b}null!=e&&(a=lK(a,e))}catch(h){}a=hK(a);null!=d&&d?SJ(a):a&&(RJ(a)?SJ(a):TJ(a))}function mK(a,b){null!=a&&D(a,function(a){kK(a,b)})}
function lK(a,b,c){if(B(C(b)))return a;var d=new J(a);return c||Bf(d.j,"label")?(K(d,"ged",b),d.toString()):a};function nK(a,b){this.message=a;this.errorCode=b}nK.prototype.getErrorCode=function(){return this.errorCode};nK.prototype.getMessage=function(){return this.message};
var oK=new nK("Unable to request ads from server. Cause: {0}.",1005),pK=new nK("Unable to request ads from server due to network error.",1012),qK=new nK("Cannot parse the {0} value for the adslist response: {1}.",900),rK=new nK("Invalid usage of the API. Cause: {0}",900),sK=new nK("Unable to display one or more required companions.",602),tK=new nK("There was a problem requesting ads from the server.",1005),uK=new nK("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),
vK=new nK("The provided ad type: {0} is not supported.",1005),wK=new nK("The provided {0} information: {1} is invalid.",1101),xK=new nK("The response does not contain any valid ads.",1009),yK=new nK("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),zK=new nK("The ad playlist response was malformed or empty.",1010),AK=new nK("The ad response was not understood and cannot be parsed.",1010),BK=new nK("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",
900),CK=new nK("The ad response contains unexpected element. Cause {0}.",1010),DK=new nK("No assets were found in the VAST ad response.",200),EK=new nK("Duplicate node in <{0}>: {1}",101),FK=new nK("The VAST response document is empty.",1009),GK=new nK("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),HK=new nK("Ad request reached a timeout.",301),IK=new nK("VAST response was malformed and could not be parsed.",100),JK=new nK("VAST media file loading reached a timeout of {0} seconds.",
402),KK=new nK("Ad request could not be completed due to a network error.",301),LK=new nK("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),MK=new nK("The maximum number of VAST wrappers ({0}) has been reached.",302),NK=new nK("VAST media file duration differs from the VAST response duration by {0} seconds.",202),OK=new nK("Video player received an ad with unexpected or incompatible linearity",201),PK=new nK("Unknown node in <{0}>: {1}",
101),QK=new nK("Invalid VAST resource type: {0}",101),RK=new nK("Invalid VAST version",102),SK=new nK("No additional VAST wrappers allowed.",300),TK=new nK("No Ads VAST response after one or more Wrappers",303),UK=new nK("There was an error playing the video ad.",400),VK=new nK("VMAP unsupported node in <{0}>: {1}",1010),WK=new nK("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);
function XK(a,b,c){return YK("adLoadError",a,b||null,xb(arguments,2))}function ZK(a,b,c){return YK("adPlayError",a,b||null,xb(arguments,2))}function $K(a,b,c,d,e){var g=a.apply(null,tb([c,d],xb(arguments,3)));b.Y(new LJ("log",null,g))}function YK(a,b,c,d){if(c instanceof HJ)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 HJ(a,b,e);a.A=c;return a}
function aL(a,b,c,d){var e=ZK.apply(null,tb([b,c],xb(arguments,3)));a.Y(new IJ(e))};function bL(a){this.j=a}function cL(){var a=dL();return eL(a,"disableExperiments")}function eL(a,b){if(b in a.j){var c=a.j[b];if("boolean"==typeof c)return c}return!1};function fL(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};function gL(){this.o="always";this.j=!1;this.B=!0;this.D=!1;this.C=null}function hL(){return iL.D}gL.prototype.getPlayerType=function(){return""};function dL(){var a=iL;if(null==a.C){var b={},c=rf(new J(Nd().location.href));if(Bf(c,"tcnfp"))try{b=ng(c.get("tcnfp"))}catch(d){}a.C=new bL(b)}return a.C}var iL=new gL;var jL={},kL="",lL=/OS (\S+) like/,mL=/Android (\S+);/;function nL(){return kd||Ma(Uc,"Mobile")}function oL(){return ld&&!md||Ma(Uc,"iPod")}function pL(){return oL()||md}function qL(a,b){if(null==jL[b]){var c;B(kL)&&(c=a.exec(Uc))&&(kL=c[1]);(c=kL)?(c=c.replace(/_/g,"."),jL[b]=0<=Ra(c,b)):jL[b]=!1}return jL[b]}
function rL(){var a=Uc;return a?Ma(a,"AppleTV")||Ma(a,"GoogleTV")||Ma(a,"HbbTV")||Ma(a,"NetCast.TV")||Ma(a,"Opera TV")||Ma(a,"POV_TV")||Ma(a,"SMART-TV")||Ma(a,"SmartTV")||kd&&Ma(a,"AFT"):!1}function sL(){return Ma(Uc,"PlayStation")}function tL(){return oL()||kd&&(!kd||!qL(mL,4))||!hL()&&(Ma(Uc,"CrKey")||sL()||Ma(Uc,"Roku")||rL()||Ma(Uc,"Xbox"))?!1:!0};function uL(){this.j=.05>Math.random();this.o=Math.floor(4503599627370496*Math.random())}ba(uL);function vL(a,b,c,d){if(a.j||d){c=c||{};c.lid=b;c=wL(a,c);var e=new J("http://pagead2.googlesyndication.com/pagead/gen_204");Jb(c,function(a,b){K(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=xL();bf(e,a.Ob);kK(e.toString())}}function wL(a,b){b.id="";var c=xL();b.c=a.o;b.domain=c.tb;return b}function xL(){var a=Nd(),b=document;return new J(a.parent==a?a.location.href:b.referrer)};function yL(){}f=yL.prototype;f.Qv=!1;f.lo=!1;f.ro=!0;f.baseYouTubeUrl=null;f.bitrate=-1;f.contentId=null;f.kw=!1;f.Ol=!1;f.mimeTypes=null;f.surveyCreativeData=null;f.fD=!0;f.os=!1;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.gD=!0;f.mo=!1;f.lw=!1;f.Hm=0;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.nn=!1;f.loadVideoTimeout=15E3;f.so=!0;window.console&&"function"===typeof window.console.log&&y(window.console.log,window.console);function zL(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=z()-window.performance.timing[a],Math.round(a/1E3)):null}function AL(){this.domLoading=zL("domLoading");this.domComplete=zL("domComplete");this.unloadEventStart=zL("unloadEventStart")}AL.prototype.toString=function(){function a(a){a=Yb(c,a);null!=a?b.push(""+a):b.push("u")}var b=[],c=this;a("domLoading");a("domComplete");a("unloadEventStart");return b.join(".")};
function BL(a){var b={},c=new AL,d=null;null!=c.domLoading&&(d=c.domLoading);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b};function CL(a){for(var b=[],c=a=Nd(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};var DL=null;function EL(){this.j={};this.o=0}function FL(a,b){this.B=a;this.A=!0;this.j=b}FL.prototype.getValue=function(){return this.j};FL.prototype.H=function(){return this.A?this.o():""};FL.prototype.o=function(){return String(this.j)};function GL(a,b){FL.call(this,a,b);this.j=!!b}A(GL,FL);GL.prototype.o=function(){return this.j?"1":"0"};function HL(a){FL.call(this,"sv",a);this.j=null==a?"1":"2"}A(HL,FL);HL.prototype.o=function(){return String(this.j)};function IL(a,b){FL.call(this,a,b)}
A(IL,FL);IL.prototype.o=function(){return this.j?Math.round(this.j.top)+"."+Math.round(this.j.left)+"."+(Math.round(this.j.top)+Math.round(this.j.height))+"."+(Math.round(this.j.left)+Math.round(this.j.width)):""};function JL(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");var b=Number(a[0]),c=Number(a[1]);return new IL("",new wg(c,b,Number(a[3])-c,Number(a[2])-b))}return new IL("",new wg(0,0,0,0))}function KL(){DL||(DL=new EL);return DL}
EL.prototype.setItem=function(a){this.j[a.B]=a};EL.prototype.getItem=function(a){return Yb(this.j,a,null)};EL.prototype.H=function(){var a=[],b;for(b in this.j){var c=this.j[b].H();c&&a.push(b+c)}return a.join("_")};function LL(a){var b=new wg(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new wg(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++)if(!Ag(b,a[d]))return c;return b}function ML(a,b){var c=a.getBoundingClientRect(),d=Sg(a,b);return new wg(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))}
function NL(a,b,c){if(b&&c){var d;a:{d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var g=Math.max(b.top,c.top),h=Math.min(b.top+b.height,c.top+c.height);if(g<=h){d=new wg(d,g,e-d,h-g);break a}}d=null}e=d?d.height*d.width:0;g=d?b.height*b.width:0;d=d&&g?Math.round(e/g*100):0;a.setItem(new FL("vp",d));d&&0<d?(e=xg(b),g=xg(c),e=e.top>=g.top&&e.top<g.bottom):e=!1;a.setItem(new GL("ct",e));d&&0<d?(e=xg(b),g=xg(c),e=e.bottom<=g.bottom&&e.bottom>g.top):e=!1;a.setItem(new GL("vb",
e));d&&0<d?(e=xg(b),g=xg(c),e=e.left>=g.left&&e.left<g.right):e=!1;a.setItem(new GL("vl",e));d&&0<d?(b=xg(b),c=xg(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new GL("vr",c))}};function OL(a){this.j=dc.apply(null,arguments);return this}OL.prototype.set=function(a,b){this.j[a]=b};function PL(a,b){var c=Yb(a.j,"eb",0);a.j.eb=c|b}OL.prototype.get=function(a){return Yb(this.j,a,null)};OL.prototype.extend=function(a){bc(this.j,a)};OL.prototype.H=function(){var a=[],b;for(b in this.j)a.push(b+this.j[b]);return a.join("_")};var QL=null,RL=null;function SL(a,b){var c=0;Sb(Nd(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=KL();d.j={};var g=new GL("ef",!0);g.A=!1;d.setItem(g);g=Nd().document;g=g.webkitVisibilityState||g.mozVisibilityState||g.visibilityState||g.msVisibilityState||"";g="hidden"!=g.toLowerCase().substring(g.length-6)?!0:!1;d.setItem(new GL("tv",g));var h;try{var k;var l=Nd().top;try{k=!!l.location.href||""===l.location.href}catch(p){k=!1}if(k){var r=CL(e);h=r&&0!=r.length?"1":"0"}else h="2"}catch(u){h=
"2"}d.setItem(new FL("is",h));if(g){r=k=Nd().top;"2"==h&&(r=Nd());l=ML(e,r);d.setItem(new IL("er",l));var w;try{w=r.document&&!r.document.body?null:Kd(r||window)}catch(S){w=null}d.setItem(new HL(w));w?(r=re(Bd(r.document)),d.setItem(new GL("sp",!!r)),w=r?new wg(r.x,r.y,w.width,w.height):null):w=null;d.setItem(new IL("vi",w));if(w&&"1"==h){h=CL(e);e=[];for(r=0;r<h.length;r++)(g=ML(h[r],k))&&e.push(g);e.push(w);w=LL(e)}NL(d,l,w)}d.o&&(h=Math.round(z()/1E3)-d.o,d.setItem(new FL("ts",h)));d.o=Math.round(z()/
1E3)}else d=KL(),d.j={},d.o=Math.round(z()/1E3),d.setItem(new GL("ef",!1));this.A=d;this.j=new OL("ta",c,"ve",2);c&&PL(this.j,1);Sb(Nd(),"ima","video","client","crossdomainTag")&&PL(this.j,4);Sb(Nd(),"ima","video","client","sdkTag")&&PL(this.j,8);Sb(Nd(),"ima","video","client","jsTag")&&PL(this.j,2);b&&Yb(b,"fullscreen",!1)&&PL(this.j,16);this.o=d=null;if(c&&(c=Sb(Nd(),"ima","video","client"),c.getEData)){this.o=c.getEData();if(c=Sb(Nd(),"ima","video","client","getLastSnapshotFromTop"))if(h=c())this.o.extendWithDataFromTopIframe(h.buckets,
h.tt,h.pd),c=this.A,d=h.er,h=h.vi,d&&h&&(d=JL(d).getValue(),h=JL(h).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new IL("er",e))),c.getItem("vi")&&(w=c.getItem("vi").getValue(),w.top+=d.top,w.left+=d.left,k=[],k.push(w),k.push(d),k.push(h),d=LL(k),NL(c,e,d),c.setItem(new IL("vi",h))));d=this.o.getTimeSinceTagLoadSeconds()}this.j.extend(BL(d))}
SL.prototype.H=function(){var a=[],b=this.j.H();b&&a.push(b);this.o&&(b=this.o.serialize())&&a.push(b);(b=this.A.H())&&a.push(b);return a.join("_")};function TL(a,b){try{return(new SL(a,b)).H()}catch(c){return"tle;"+La(c.name,12)+";"+La(c.message,40)}};var UL={START:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",RESUME:"resume",SKIPPED:"skip",ho:"viewable_impression",MUTE:"mute",UNMUTE:"unmute",FULLSCREEN:"fullscreen",EXIT_FULLSCREEN:"exitfullscreen"},VL={UNKNOWN:-1,START:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,RESUME:7,SKIPPED:8,ho:9,MUTE:10,UNMUTE:11,FULLSCREEN:12,EXIT_FULLSCREEN:13};function WL(a){try{return!!a&&null!=a.location.href&&Dg(a,"foo")}catch(b){return!1}}function XL(a,b){if(!(1E-4>Math.random())){var c=Math.random();if(c<b){try{var d=new Uint16Array(1);window.crypto.getRandomValues(d);c=d[0]/65536}catch(e){c=Math.random()}return a[Math.floor(c*a.length)]}}return null}var YL=/https?:\/\/[^\/]+/;var ZL=document,$L=window;function aM(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 bM(a){$L.google_image_requests||($L.google_image_requests=[]);var b=$L.document.createElement("img");b.src=a;$L.google_image_requests.push(b)};function cM(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(null,a[c],c,a)}function dM(a){return"function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a)};var eM=!0,fM={};function gM(a,b,c,d){var e=hM,g,h=eM;try{g=b()}catch(k){try{var l=aM(k);b="";k.fileName&&(b=k.fileName);var p=-1;k.lineNumber&&(p=k.lineNumber);h=e(a,l,b,p,c)}catch(r){try{var u=aM(r);a="";r.fileName&&(a=r.fileName);c=-1;r.lineNumber&&(c=r.lineNumber);hM("pAR",u,a,c,void 0,void 0)}catch(w){iM({context:"mRE",msg:w.toString()+"\n"+(w.stack||"")},void 0)}}if(!h)throw k;}finally{if(d)try{d()}catch(S){}}return g}
function hM(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=ZL.URL.substring(0,512);h.ref=ZL.referrer.substring(0,512);jM(h);iM(h,g);return eM}function iM(a,b){try{if(Math.random()<(b||.01)){var c="/pagead/gen_204?id=jserror"+kM(a),d="http"+("http:"==$L.location.protocol?"":"s")+"://pagead2.googlesyndication.com"+c,d=d.substring(0,2E3);bM(d)}}catch(e){}}function jM(a){var b=a||{};cM(fM,function(a,d){b[d]=$L[a]})}
function lM(a,b,c,d,e){return function(){var g=arguments;return gM(a,function(){return b.apply(c,g)},d,e)}}function mM(a,b){return lM(a,b,void 0,void 0,void 0)}function kM(a){var b="";cM(a,function(a,d){if(0===a||a)b+="&"+d+"="+dM(a)});return b};function nM(){for(var a=$L,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,WL(a)&&(b=a);return b};var oM={LJ:"ud=1",Fv:"ts=1",XI:"sc=1"};var pM=!1,qM="";function rM(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var sM=navigator.plugins["Shockwave Flash"];sM&&(pM=!0,sM.description&&(qM=rM(sM.description)));navigator.plugins["Shockwave Flash 2.0"]&&(pM=!0,qM="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var tM=navigator.mimeTypes["application/x-shockwave-flash"];(pM=tM&&tM.enabledPlugin)&&(qM=rM(tM.enabledPlugin.description))}else try{var uM=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),pM=!0,qM=rM(uM.GetVariable("$version"))}catch(vM){try{uM=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),pM=!0,qM="6.0.21"}catch(wM){try{uM=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),pM=!0,qM=rM(uM.GetVariable("$version"))}catch(xM){}}}var yM=pM,zM=qM;if(ZL&&ZL.URL)var AM=ZL.URL,eM=!(AM&&(0<AM.indexOf("?google_debug")||0<AM.indexOf("&google_debug")));function BM(a,b,c,d){c=lM(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 CM(a,b){var c=a||$L;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new H(-1,-1):b?new H(c.innerWidth,c.innerHeight):Kd(c||window)}catch(d){return new H(-12245933,-12245933)}}var DM=0;
function EM(){var a=FM,b=0<=GM?HM()-GM:-1,c=IM?HM()-JM:-1,d=0<=KM?HM()-KM:-1,e;if(79463068==a)return 500;if(947190538==a)a=[4E3],e=[250,1E3];else if(947190541==a)a=[4E3],e=[100,1E3];else{if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];e=[250,500,1E3]}var 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 LM=(new Date).getTime(),GM=-1,IM=!1,JM=-1,KM=-1;
function HM(){return(new Date).getTime()-LM}function MM(a){var b=[];Jb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(ea(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});return b.join("&")}function NM(){var a=I("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a}
function OM(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Ig(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=Dd(b))){var c,d;try{if(c=Nd(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return OM(d)}return!1};function PM(a,b){this.H=a||3E3;this.G=b||3E3;this.o="u";this.C=null;this.j=[];this.D=!1;this.A=-1;this.B=0}function QM(a,b,c){this.snapshot=a;this.o=b;this.j=c}
function RM(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ra(zM,"11")&&c)||dd&&9>pd||0<a.j.length)return!1;try{var d=b.getBoundingClientRect()}catch(e){return!1}var g="DIV"==b.tagName,h=Dd(b),k=[];if(g){var l=NM(),d=SM(d);D(d,function(a,b){var d=new TM("e",h,c,String(b));this.j.push(d);k.push(y(d.G,d,l,a))},a);b.insertBefore(l,b.childNodes[0]||null)}else d=UM(a,d),D(d,function(a,d){var e=new TM("e",h,c,String(d));this.j.push(e);k.push(y(e.F,e,b,a))},a);var p=!0;D(k,function(a){p=p&&a()});p?(a.o="l",
a.C=b,a.D=!g):(D(a.j,function(a){a.remove()}),a.j=[]);return p}function SM(a){return[new Qc(Math.floor((a.right-a.left)/2),Math.floor((a.bottom-a.top)/2))]}function UM(a,b){var c;try{c=b||a.C.getBoundingClientRect()}catch(d){c=new vg(0,0,0,0)}var e=SM(c);D(e,function(a){a.x+=c.left;a.y+=c.top});return e}function VM(a){if(a.C&&a.D){var b=UM(a);D(b,function(a,b){this.j[b]&&WM(this.j[b],a)},a)}}function XM(a){D(a.j,function(a){a.remove()});a.j=[];a.o="d"}
function YM(a){var b=(new Date).getTime(),c=a.F?b-a.F:0,d=-1;4==a.j.length?(d=E(a.j,function(a){return ZM(a,b)}),d=$M(d)):1==a.j.length&&(d=[-1,0,1,2,3,5][ZM(a.j[0],b)+1]);a.B=d==a.A?a.B+c:0;c=new QM(d,a.A,c);a.A=d;a.F=b;aN(a,d);VM(a);return c}function $M(a){var b=Hb(Nb(bN));D(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 aN(a,b){0==b&&cN(a)?a.o="n":a.o="dlfcrrrr".split("")[b+1]}PM.prototype.getStatus=function(){return this.o};
function cN(a){return"n"==a.o?!0:"l"==a.o&&a.B>=a.G}
function TM(a,b,c,d){this.module=null;this.B=a;this.Ea="e"==a?String(c)+"~"+String(d):"";this.j=[];this.o=-1;this.C=0;this.A=Hb(Nb(dN));this.H=Hb(Nb(bN));"e"==this.B&&(eN[this.Ea]=y(this.D,this));dd?(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="'+fN(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=gN(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a}var bN={IJ:-1,LOADING:0,Xu:1,Eu:2,OH:3,VISIBLE:4},dN={LOADING:0,Xu:1,Eu:2,AJ:3,uI:4,FJ:5,GJ:6,EJ:7,wI:8,zJ:9},eN={};
function gN(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}var d=fN(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 fN(a,b){var c="//www.gstatic.com/osd/hbt.swf";"e"==a.B&&(c=Ve("//www.gstatic.com/osd/hbe.swf","id",a.Ea));b&&(c=Ve(c,"delay","1"));return c}
TM.prototype.G=function(a,b){if(!this.module)return!1;this.module.style.position="absolute";WM(this,b);var c=!0;try{a.appendChild(this.module)}catch(d){c=!1}return c};TM.prototype.F=function(a,b){if(!this.module||!a.parentNode)return!1;this.module.style.position="fixed";WM(this,b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.module,a.nextSibling)}catch(d){c=!1}return c};function WM(a,b){a.module&&!Rc(b,Ng(a.module))&&Lg(a.module,b)}
TM.prototype.remove=function(){if(this.module)try{Wd(this.module)}catch(a){}this.module=null};TM.prototype.D=function(a){this.o=a?3:4};
function ZM(a,b){if("e"==a.B){var c=null;try{c=a.module.it()}catch(d){}null===c?(c=0,0<a.o&&(c=2)):c=c?3:4;++a.H[c+1];a.o=c}else{var e=Number(b),g=null;try{g=a.module.fc()}catch(h){}hN(a,g,e);c=a.j[a.j.length-1];if(null===g){if(g=e=0,0<a.o||ga(c.Wj))g=e=2}else null===c.Wj||c.jn>=e?(e=10<=g?4:0,g=0):g>c.Wj?(c=(g-c.Wj)/(e-c.jn)*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.C&&6==c&&(c=7),g=c):g=e=1;6==a.C&&(--a.A[6],4==g||8==g?++a.A[5]:++a.A[7]);++a.A[g];a.o=e;a.C=g}return a.o}
function hN(a,b,c){var d=c-1E3,e=a.j.length;D(a.j,function(a,b){a.jn<=d&&(e=Math.min(e,b+1))});var g=a.j.length-e;0<g&&a.j.splice(e,g);a.j.unshift({Wj:b,jn:c})}q("gteh",lM("osd_or_lidar::gteh_ex",function(a,b){var c=eN[a];ha(c)&&c(b)}),void 0);function iN(a,b,c,d,e,g){this.j=jN.clone();this.D=this.X=0;this.jd=this.kd=this.na=-1;this.U=[0,0,0,0,0];this.R=[0,0,0,0,0];this.I=[0,0,0,0,0];this.ya=0;this.Md=[0,0,0,0,0];this.Ld=[0,0,0,0,0];this.la=[0,0,0,0,0];this.ic=this.Z=0;this.J={};this.va=[0,0,0,0,0];this.T=d;this.aa=this.ga=-1;this.C=e;this.Xa=function(){};this.Fe=function(){};this.N=this.element=c;this.ye=0;this.vf=-1;this.o="";this.Pd=c?String(c._avi_||""):"";this.G={};this.G.le=0;this.G.nt=2;this.G.Fr=3;this.B=this.jc=null;this.Da=!1;
this.O=this.Be=this.Qd=null;this.Ca=0;this.wa=!1;this.da=null;this.ze=this.Ha=this.qc=!1;this.wf=.01>Math.random();this.Ee=null;this.md=void 0;this.Ge=!1;this.nb=[];this.sa=void 0;this.od=this.ab=!1;this.F=void 0;this.ld=0;this.oa=-1;this.Kd=this.ba=0;this.La=void 0;this.fb=-1;this.Jd=void 0;this.Qb=this.hb=this.gb=this.Ga=0;this.ob=!1;this.A=0;this.Rc=this.W=this.Ae=this.Ce=this.nd=!1;this.De=0;this.Ie=!1;this.Od=c&&c._tos_?!0:!1;this.$a=0;this.mc=3==this.C?XL([1,2,3,4],.02)||0:0;kN(this,c&&c._avm_);
lN(this,a,g)}var jN=new vg(0,0,0,0);function kN(a,b){if(x(b)&&0!=b.length)for(var c=b.split("&"),d=0;d<c.length;d++)c[d]==oM.Fv&&(a.Od=!0)}
function mN(a,b,c,d,e){if(!(0>a.T)){var g=$L.innerWidth,h=$L.innerHeight,k=new vg(Math.round($L.mozInnerScreenY),Math.round($L.mozInnerScreenX+g),Math.round($L.mozInnerScreenY+h),Math.round($L.mozInnerScreenX));c=new vg($L.screenY+d,$L.screenX+c.width,$L.screenY+c.height,$L.screenX);e||(d=new vg(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.X=g*h);nN(a,k,c,b,e,!0)}}
function oN(a,b,c){var d=pN(a,$L&&$L.document);if(d){c||lN(a,$L,!0);var e=Math.floor((a.j.left+a.j.right)/2),g=Math.floor((a.j.top+a.j.bottom)/2),h=Ld(document),d=d(e-h.x,g-h.y)?.5:0;nN(a,a.j,d,b,c,!0)}}function pN(a,b){qN(a);if(!a.jc){var c=[];D(Rb(a.G),function(a){c[this.G[a]+1]=a},a);var d=c.join(""),d=b&&b[d];a.jc=d&&y(d,b)}return a.jc}function qN(a){a.G.e=-1;a.G.i=6;a.G.n=7;a.G.t=8}
iN.prototype.update=function(a,b,c,d,e){if(0>this.T)return null;c||lN(this,d,e);Boolean(null)&&c&&(d.clearInterval(this.Qd),this.Qd=null);Boolean(null)&&c&&(d.clearInterval(this.Be),this.Be=null);null!=this.da&&(c?(d.clearInterval(this.O),this.O=null,this.wa=!1):this.qc&&!this.O&&(this.O=d.setInterval(mM("osd_or_lidar::adblock::iem_int",y(this.He,this,d,1E3)),1E3),this.He(d)));return nN(this,this.j,b,a,c,!1)};
function nN(a,b,c,d,e,g){var h,k=d-a.T||1;if(!h){var l={};if("as"==a.F&&ha(a.element.getVideoMetadata))try{l=a.element.getVideoMetadata(a.o)}catch(p){a.nd=!0}if("h"==a.F&&(h=t("ima.common.getVideoMetadata"),ha(h)))try{l=h(a.o)}catch(r){a.nd=!0}h=l.currentTime;n(h)?l.currentTime=Math.floor(1E3*h):a.Ae=!0;h=l.duration;n(h)&&(l.duration=Math.floor(1E3*h));n(l.volume)||(l.volume=rN(a));h=l}a.fb=h.duration||a.fb;a.Jd=h.isVpaid||a.Jd;l=h.volume;h=n(h.currentTime)?h.currentTime:a.Ga+k;h<a.Ga&&(h=a.Ga,a.Ce=
!0);var u=h-a.Ga,w=null;ga(c)?b=sN(a,c):(w=c,b=sN(a,b,w));a.sa||tN(a,b,k,a.ga,g,e,w,l,u);a.ga=e?-1:b;a.T=d;a.Ga=h;-1!=b&&(0>a.na&&(a.na=d),a.jd=d);-1==a.kd&&1E3<=Math.max(a.I[2],a.R[2])&&(a.kd=d);a.Xa(a,w||jN);return a.D}
function sN(a,b,c){if(a.Rc)return a.D=0,uN(a.D);if(a.W&&7==a.C)return a.D=1,uN(a.D);var d=null;if(ga(b))a.D=b;else{c=new vg(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.X||c.top>=c.bottom||c.left>=c.right)return a.D=0,-1;var d=c.clone(),e=-b.left;b=-b.top;e instanceof Qc?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,ga(b)&&(d.top+=b,d.bottom+=b));d=(c.bottom-c.top)*(c.right-c.left);a.D=d/a.X}return uN(a.D)}
function uN(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 tN(a,b,c,d,e,g,h,k,l){e=e&&-1!=d&&2>=d;var p=-1==d||-1==b?-1:Math.max(d,b);d=e?p:d;l=l||0;-1!=d&&(a.U[d]+=c,a.Md[d]+=l,2>=d&&(a.ya+=c,a.Z+=l));(h=h||null)?(-1!=d&&2>=d&&-1!=a.aa&&(a.va[a.aa]+=c),h=100*a.X/((h.bottom-h.top)*(h.right-h.left)),a.aa=20<=h?0:10<=h?1:5<=h?2:2.5<=h?3:4):a.aa=-1;if(7==a.C){h=-1!=d&&2>=d;e=n(k)&&.1<=k&&.1<=a.La;e&&0==d||(a.ob=!1);a.gb+=c;e&&(a.hb+=c,h?a.Qb+=c:a.ba+=c);a.ba>a.Kd&&(a.Kd=a.ba);if(h||!n(k)||.1>k)a.ba=0;k=n(k)?Number(k)?vN(k,3):0:k;a.La=k}for(k=d;0<=k&&
4>=k;k++)a.I[k]+=c,a.la[k]+=l,a.I[k]>a.R[k]&&(a.R[k]=a.I[k]),a.la[k]>=a.Ld[k]&&(a.Ld[k]=a.la[k]);for(k=0;k<a.I.length;++k)if(k<b||g||-1==b)a.I[k]=0,a.la[k]=0}function wN(a,b,c){if(!Boolean(Boolean(a.N&&!!c&&!ai)&&!ai))return a.Da=!0,!1;var d=new PM;(c=RM(d,a.N,c))?(a.Fe=b,a.B=d):a.Da=!0;return c}
iN.prototype.He=function(a,b){var c=pN(this,a&&a.document);if(c){lN(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=Ld(document),c=Boolean(c(d-g.x,e-g.y)),d=b||0;c?(this.Ca+=this.wa?d:0,this.wa=!0):(this.Ca=0,this.wa=!1);1E3<=this.Ca&&(a.clearInterval(this.O),this.O=null,this.qc=!1,this.da="v");lN(this,a,!1)}else a.clearInterval(this.O),this.O=null,this.qc=!1,this.da="i"};
iN.prototype.H=function(){var a=this.j,a=["p:",a.top,a.left,a.bottom,a.right];a.push("tos:",this.U.join(","));a.push("mtos:",this.R.join(","));a.push("rs:",this.C);5!==this.C&&6!==this.C&&(a.push("zoom:",this.va.join(",")),a.push("ht:",this.ye));0<=this.na&&a.push("tfs:",this.na,"tls:",this.jd);a.push("vt:",this.kd);7==this.C&&a.push("qid:",this.o);this.Pd&&a.push("avi:",this.Pd);this.da&&a.push("iemv:",this.da);this.B?a.push("swf:",this.B.getStatus()):this.Da&&a.push("swf:","-");null!=this.md&&a.push("vl:"+
this.md);return a.join(",")};
function lN(a,b,c){a.$a++;b=c?b:b.top;try{var d=jN.clone(),e=new Qc(0,0);if(a.N){if(c||1!=a.C||!OM(a.N))d=a.N.getBoundingClientRect();if(c||!b.frameElement)e=Sg(a.N,b)}var g=e.x,h=e.y,k=d.right-d.left,l=d.bottom-d.top;a.j=new vg(Math.round(h),Math.round(g+k),Math.round(h+l),Math.round(g))}catch(p){a.j=jN.clone()}finally{a.G.Po=5,a.G.me=1,a.G.om=4}a.X=(a.j.bottom-a.j.top)*(a.j.right-a.j.left);2!=a.C&&3!=a.C&&6!=a.C||0!=a.X?(a.ze=!1,a.Ee=null):3==a.C&&(2==a.mc&&2>=a.$a||3==a.mc&&4>=a.$a||4==a.mc&&8>=
a.$a)||(a.ze=!0,a.N&&a.N.parentElement&&a.wf&&(c=a.N.parentElement.getBoundingClientRect(),a.Ee=new vg(c.top,c.right,c.bottom,c.left)))}function xN(a){return 2E3<=Math.max(a.I[2],a.R[2])}function yN(a,b){var c=a.ld;IM||a.sa||-1==a.oa||(c+=b-a.oa);return c}function rN(a){if("as"==a.F&&ha(a.element.sdkVolume))try{return Number(a.element.sdkVolume())}catch(b){return-1}if("h"==a.F){var c=t("ima.common.sdkVolume");if(ha(c))try{return Number(c(a.o))}catch(d){return-1}}}
function zN(a,b){vb(a.nb,Hb(b-a.nb.length+1));a.nb[b]=(100*a.D|0)/100}
function AN(a,b){if(a.Ha)return{"if":0};var c=a.j.clone();c.round();var d=E(a.nb,function(a){return 100*a|0}),c={"if":BN?1:void 0,sdk:a.F?a.F:void 0,p:[c.top,c.left,c.bottom,c.right],tos:a.U,mtos:a.R,ps:void 0,pt:d,vht:yN(a,HM()),mut:a.Kd,a:a.La,ns:a.De};7==a.C&&(c.vme=a.nd?1:0,c.nmtd=a.Ce?1:0,c.mmct=a.Ae?1:0,c.vpaid=a.Jd,c.dur=a.fb,c.vmtime=a.Ga,c.vmtos=a.Md,c.vmmtos=a.Ld);CN(a,b)&&xN(a)&&7==a.C&&(c.dtos=a.ya,c.vmdtos=a.Z,a.ic++,c.dtoss=a.ic,a.ya=0,a.Z=0);!xN(a)&&2E3<=a.Z&&(c.vmdtos=a.Z);DN(a,c);
EN&&(c.ps=[EN.width,EN.height]);a.ab&&(c.ven="1");a.A&&(c.vds=a.A);FN()?c.c=(100*a.D|0)/100:c.tth=HM()-DM;return c}function DN(a,b){b.avss=a.ob;if(0==a.gb)b.ar=0,b.vr=0,b.avr=0;else{var c=a.U[0]+a.U[1]+a.U[2];b.ar=vN(a.hb/a.gb,2);b.vr=vN(c/a.gb,2);b.avr=vN(a.Qb/a.gb,2)}}function vN(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c}function CN(a,b){var c=a.J[b];return n(c)&&(a.J[b]=!0,!c)?!0:!1};function GN(){return!HN()&&(Xc("iPod")||Xc("iPhone")||Xc("Android")||Xc("IEMobile"))}function HN(){return Xc("iPad")||Xc("Android")&&!Xc("Mobile")||Xc("Silk")};var IN=null,JN=null,KN=null,LN=null,MN=!1,FM=void 0,NN=!1;
function ON(){if(!MN){MN=!0;if(!IN){var a=XL([1,2],.01)||0;if(0==a||1==a)IN=BM($L,"scroll",PN,"osd_or_lidar::scroll");else{var b=m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||m.msRequestAnimationFrame;if(b)var c=lM("osd_or_lidar::throttled_scroll_raf_callback",PN),a=function(){b(function(){$L.setTimeout(c,0)})};else a=PN;JN=new zn(lM("osd_or_lidar::throttled_scroll_timeout",a),100);a=y(JN.Oi,JN);IN=BM($L,"scroll",a,"osd_or_lidar::throttled_scroll")}}KN=
KN||BM($L,"resize",QN,"osd_or_lidar::resize");RN();SN()}}function QN(){VN(!1);PN()}function PN(){WN(XN,!1)}
function YN(){var a;ZN&&($N=CM($L,ZN));a=$N;var b=aO,c=bO;if(cO){a=b;VN(!1);var d=dO,e=d.height-a;0>=e&&(e=d.height,a=0);$N=new H(d.width,e);e=new eO;e.D=!0;e.B=$N;e.A=d;e.o=a;return e}if(c)return a=new eO,a.C=!0,a;if(fO)return a=new eO,a.F=!0,a;if(gO)return a=new eO,a.H=!0,a;a:{b=new eO;b.B=a;b.j=!1;if(null!=a&&-1!=a.width&&-1!=a.height&&-12245933!=a.width&&-12245933!=a.height){try{var c=ZN,g=$L||$L,g=g.top,e=a||CM(g,c),h=re(Bd(g.document)),d=-1==e.width||-12245933==e.width?new vg(e.width,e.width,
e.width,e.width):new vg(h.y,h.x+e.width,h.y+e.height,h.x)}catch(k){a=b;break a}b.G=d;b.j=!0}a=b}return a}
function WN(a,b){var c;if(!hO)if(window.clearTimeout(iO),iO=null,0==a.length)b||jO();else{var d=YN();try{var e=HM();if(d.D)for(c=0;c<a.length;c++)mN(a[c],e,d.A,d.o,b);else if(d.C)for(c=0;c<a.length;c++)oN(a[c],e,b);else if(gO)D(a,function(){});else if(d.F)D(a,function(a){if(b){if(a.B){var c=a.B;3<=c.A&&(c.A=3);a.ga=-1}}else if(a.B&&"d"!=a.B.getStatus()){var c=YM(a.B),d=[-1,-1,-1,-1,-1,4,2,0],e=d[c.snapshot+1];tN(a,e,c.j,d[c.o+1],!0,!1);a.ga=e;a.Xa(a,jN);1E3<=Math.max(a.I[2],a.R[2])&&7!=a.C&&!a.Od&&
a.B&&XM(a.B);(c=2==c.snapshot||cN(a.B))||(c=a.B,c="f"==c.o&&c.B>=c.H);c&&(a.Fe(a),a.Od=!1,a.B&&XM(a.B))}});else if(d.j)for(c=0;c<a.length;c++)a[c].update(e,d.G,b,$L,BN);++kO}finally{b?D(a,function(a){a.D=0}):jO()}}}function RN(){var a=SN,b;ZL.mozVisibilityState?b="mozvisibilitychange":ZL.webkitVisibilityState?b="webkitvisibilitychange":ZL.visibilityState&&(b="visibilitychange");b&&(LN=LN||BM(ZL,b,a,"osd_or_lidar::visibility"))}
function SN(){var a=FN();if(a){if(!IM){var b=HM();JM=b;D(XN,function(a){a.ld=yN(a,b)})}IM=!0;VN(!0)}else b=HM(),IM=!1,DM=b,D(XN,function(a){0<=a.T&&(a.oa=b)});WN(XN,!a)}function FN(){if(lO())return!0;var a;a=$L.document;a={visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0;return 1==a||0==a}function jO(){$L&&(iO=$L.setTimeout(mM("osd_or_lidar::psamp_to",function(){WN(XN,!1)}),EM()))}
function mO(a){return null!=F(XN,function(b){return b.element==a})}var XN=[],hO=!1,$N=null,dO=null,EN=null,iO=null,BN=!WL($L.top),aO=0,cO=!1,bO=!1,fO=!1,gO=!1,ZN=HN()||GN(),kO=0;function nO(){var a=$L.document;return a.body&&a.body.getBoundingClientRect?!0:!1}
function VN(a){$N=CM($L,ZN);if(!a){dO=$L.outerWidth?new H($L.outerWidth,$L.outerHeight):new H(-12245933,-12245933);a=$L;a.top!=a&&(a=a.top);var b=0,c=0,d=$N;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,r=h.offsetWidth;h.clientHeight!=p&&(k=g.scrollHeight,l=g.scrollWidth,p=g.offsetHeight,
r=g.offsetWidth);k>d.height?k>p?(b=k,c=l):(b=p,c=r):k<p?(b=k,c=l):(b=p,c=r)}EN=new H(c,b)}catch(u){EN=new H(-12245933,-12245933)}}}function oO(){var a=pO,b=!1;D(XN,function(c,d){if(1>Math.random()){var e=wN(c,a,String(d));b=b||e}});(fO=b)&&D(XN,function(b){Boolean(b.B)||a(b)});return b}function qO(a){D(a,function(a){mO(a.element)||XN.push(a)})}function lO(){return ib(XN,function(a){return a.W})}function eO(){this.A=this.B=null;this.o=0;this.G=null;this.j=this.H=this.F=this.C=this.D=!1};function rO(a,b){this.j=a;this.o=b}function sO(a){this.url=a;this.Rp=!1;this.depth=ga(void 0)?void 0:null}function tO(){var a=m,b=[],c=null,d=null;do{var e=a;WL(e)?(c=e.location.href,d=e.document.referrer||null):(c=d,d=null);b.push(new sO(c));try{a=e.parent}catch(g){a=null}}while(a&&e!=a);e=0;for(a=b.length-1;e<=a;++e)b[e].depth=a-e;e=m;if((a=e.location.ancestorOrigins)&&a.length==b.length-1)for(e=1;e<b.length;++e)c=b[e],c.url||(c.url=a[e-1],c.Rp=!0);return b};function uO(a,b,c){b=b||",|";"string"==typeof b&&(b=b.split(""));c=c||0;if(!(a instanceof Array)||c>=b.length)return encodeURIComponent(""+a);for(var d=[],e=0;e<a.length;e++)d.push(uO(a[e],b,c+1));return d.join(b[c])};function vO(){var a=tO(),b=a.length-1,c,a=a?a:tO();c=a.length-1;for(var d=null,e=c;0<=e;--e){var g=a[e];if(g.url&&!g.Rp){d=g;break}}e=null;g=a.length&&a[c].url;d&&0==d.depth||!g||(e=a[c]);c=new rO(d,e);a=c.j;d=c.o;c=[];d?(a&&c.push(wO(b,[d.url,2],0,[a.url,0],a.depth)),c.push(wO(b,[d.url,2],0))):a&&a.url&&(c.push(wO(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=YL.exec(a.url))&&d[0]||"")&&c.push(wO(b,[d,1],a.depth)));c.push(wO(b));return c}
function wO(a,b,c,d,e){a=[a];if(n(b)&&n(c)){for(var g=0;g<c;g++)a.push("");a.push(b)}if(n(d)&&n(e)){b=e-a.length+1;for(g=0;g<b;g++)a.push("");a.push(d)}return a}function xO(){var a=vO();return E(a,function(a){return uO(a)})};var yO=null,zO="",AO=!1;function BO(){var a=yO||$L;if(!a)return"";var b=a.document,c=[];c.push("url="+dM(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+dM(b.referrer.substring(0,512)));b=a.location&&a.location.ancestorOrigins;if(BN&&b&&0<b.length){for(var d=[],a=b.length,e=a-1;0<=e;--e)d.push(dM(b[e]));b=d.join(",");b=b.substring(0,512);c.push("anc="+b);c.push("adep="+a)}return c.join("&")};var CO=!1,DO=!1,EO=!1;function FO(){CO=!0;try{GM=HM(),.01>Math.random()&&(EO=!0),yO=nM(),VN(!1),nO()?(window.setTimeout(function(){},1),BN?GO():ON()):AO=!0}catch(a){throw XN=[],a;}}
function GO(){var a;if(ed&&ga($L.screenX)&&ga($L.mozInnerScreenX)&&ga($L.outerWidth)&&1>Math.random()){var b=$L.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&&(aO=a,cO=!0);a=!0}else a=!1;a?ON():(a=dd&&sd(8)&&1>Math.random()?bO=!0:!1,a?ON():oO()?(ON(),DO=!0):(window.clearTimeout(iO),iO=null,zO="i",hO=!0))}function pO(a){if(a){if(!a.Ge){var b=[];b.push("v=278v");b.push("r=fp");b.push("efm="+(DO?1:0));b.push(Ue(AN(a,"start")));b.push(BO());b="&"+b.join("&");bM(("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3));a.Ge=!0}a.Ha=!0}}
function HO(a,b,c){var d={};bc(d,{opt_videoAdElement:void 0,opt_VideoAdLength:void 0,opt_fullscreen:void 0,opt_nativeMobile:!1},c||{});var e=a.toLowerCase();if(c=Tb(UL,function(a){return a==e})){a={v:"278v"};a.e=VL[c];if(d.opt_bounds)return a.msg="ol",MM(a);if(AO)return a.msg="ue",MM(a);b=IO(b,d);a.nas=XN.length;if(!b)return a.msg="nf",MM(a);CO||FO();"i"==zO&&(b.Ha=!0);EO&&JO(b);c=d.opt_fullscreen;n(c)&&(b.W=Boolean(c));c={};c.start=KO;c.firstquartile=LO;c.midpoint=MO;c.thirdquartile=NO;c.complete=
OO;c.metric=PO;c.pause=QO;c.resume=RO;c.skip=SO;c.viewable_impression=TO;c.mute=UO;c.unmute=VO;c.fullscreen=WO;c.exitfullscreen=XO;if(c=c[e]){d=c(b,d);if(!n(d)||x(d))return d;bc(a,d);return MM(a)}}}function YO(a,b){if(NN!=a){NN=a;var c=ib(XN,function(a){return a.Ie});D(XN,function(d){a||c||(d.T=b);d.Rc=a;d.Ie=!1})}}
function KO(a,b){"i"!=zO&&(hO=!1);!DO||Boolean(a.B)||a.Da||wN(a,pO,String(eb(XN,a)));a.J={};a.J.firstquartile=!1;a.J.midpoint=!1;a.J.thirdquartile=!1;a.J.complete=!1;a.J.pause=!1;a.J.skip=!1;a.J.viewable_impression=!1;a.ic=0;a.De++;b&&b.opt_VideoAdLength&&(a.md=b.opt_VideoAdLength);var c=n(b)?b.opt_nativeTime:void 0;KM=c=ga(c)?c:HM();a.U=[0,0,0,0,0];a.R=[0,0,0,0,0];a.I=[0,0,0,0,0];a.va=[0,0,0,0,0];a.T=-1;a.na=-1;a.jd=-1;a.ye=0;a.vf=-1;a.ga=-1;a.aa=-1;a.D=0;a.T=c;var d=!1;FN()||(d=!0,a.oa=c);WN([a],
d);zN(a,0);1<=(100*a.D|0)/100&&.1<=a.La&&(a.ob=!0);return AN(a,"start")}function LO(a){zN(a,1);WN([a],!FN());return AN(a,"firstquartile")}function MO(a){zN(a,2);WN([a],!FN());return AN(a,"midpoint")}function NO(a){zN(a,3);WN([a],!FN());return AN(a,"thirdquartile")}function OO(a){zN(a,4);WN([a],!FN());var b=AN(a,"complete");a.W=!1;ZO(a.o);return b}function QO(a){a.ld=yN(a,HM());var b=!FN();WN([a],b);a.sa=!0;return AN(a,"pause")}
function RO(a){var b=FN();a.sa&&!b&&(a.oa=HM());WN([a],!b);a.sa=!1;return AN(a,"resume")}function PO(a){a=AN(a,"metric");a.hvem="1";return a}function TO(a){a=AN(a,"viewable_impression");a.hvvi="1";return a}function SO(a){var b=!FN();WN([a],b);b=AN(a,"skip");a.W=!1;ZO(a.o);return b}function UO(a){WN([a],!FN());return AN(a,"mute")}function VO(a){WN([a],!FN());return AN(a,"unmute")}function WO(a){a.W=!0;WN([a],!FN());return AN(a,"fullscreen")}
function XO(a){a.W=!1;WN([a],!FN());return AN(a,"exitfullscreen")}function ZO(a){if(x(a)){var b=kb(XN,function(b){return b.o==a});0<=b&&rb(XN,b)}}function IO(a,b){if(b.opt_nativeMobile)return $O(a,b);if(b.opt_videoAdElement)return aP(a,b.opt_videoAdElement);var c=bP(a);return c?c:c=F(XN,function(b){return b.o==a})}function $O(a,b){var c=F(XN,function(b){return b.o==a});c||(c=new iN(window,0,null,b.opt_nativeTime,7,!1),c.F="n",c.Xa=cP,qO([c]),c.o=a,c.Rc=NN);return c}
function aP(a,b){var c=F(XN,function(a){return a.element==b});null!==c&&c.o!=a&&(ZO(c.o),c=null);c||(c=dP(b),c.o=a,c.F="h");return c}function bP(a){var b=F(XN,function(b){return b.element?eP(b.element)==a:!1});null!==b&&b.o!=a&&(ZO(b.o),b=null);if(b)return b;b=fP();b=F(b,function(b){return eP(b)==a});if(!b)return null;b=dP(b);b.F="as";gP(b);return b}function gP(a){var b=eP(a.element);x(b)&&(a.o=b)}
function fP(){var a=$L.document,b=Ib(E(["embed","object"],function(b){return ub(a.getElementsByTagName(b))}));return b=gb(b,function(a){if(!a||!ae(a))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a.metricID&&ha(a.metricID)?!0:!1})}function eP(a){if(!a||!a.metricID||!ha(a.metricID))return null;var b;try{b=a.metricID()}catch(c){return null}return b.queryID}function dP(a){a=new iN($L,0,a,HM(),7,BN);a.Xa=cP;FM=79463069;qO([a]);ON();return a}
function cP(a){if(!xN(a)||a.ab)a.A=3;else{var b="as"==a.F,c="h"==a.F,d="n"==a.F,e=t("ima.common.triggerViewEvent"),g={e:9,hmu:"1"};try{var h=MM(g);c||d?ha(e)?(e(a.o,h),a.ab=!0):a.A=4:b?a.element&&a.element.triggerViewEvent?(a.element.triggerViewEvent(h),a.ab=!0):a.A=1:a.A=5}catch(k){a.A=a.A||2}}}
function JO(a){if(a.od||a.Ha)a.A=a.A||13;else{var b="as"==a.F,c="h"==a.F;try{if(c){var d=t("ima.common.triggerMeasurableEvent");ha(d)?(d(a.o),a.od=!0):a.A=a.A||14}else b?a.element&&a.element.triggerMeasurableEvent?(a.element.triggerMeasurableEvent(),a.od=!0):a.A=a.A||11:a.A=a.A||15}catch(e){a.A=a.A||12}}}q("Goog_AdSense_Lidar_sendVastMessage",lM("lidar::handlevast_ex",HO),void 0);q("Goog_AdSense_Lidar_getUrlSignalsList",lM("lidar::geturlsignalslist_ex",function(){return pg(xO())}),void 0);function hP(){V.call(this);this.j=null;this.B=new Bn(this);R(this,this.B);this.C=null;this.G=new xe;this.F=new xe;this.A=null;this.o=!1}A(hP,V);var iP=null;function jP(){null!=iP||(iP=new hP);return iP}function kP(a){var b=jP();a=b.G.get(a)||b.C;return null!=a?a():{}}hP.prototype.destroy=function(){this.B.Ka(this.j,"activityMonitor",this.D);this.o=!1};
hP.prototype.init=function(a){if(!this.o){(this.j=a||null)&&this.B.M(this.j,"activityMonitor",this.D);if(iL.B&&!(window.ima&&window.ima.video&&window.ima.video.client&&window.ima.video.client.tagged)){q("ima.video.client.sdkTag",!0,void 0);a=document.createElement("script");a.src=document.location.protocol+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}this.o=!0}};
function lP(a){if(null==a)return!1;if(oL()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=mP(a);return 0>=b-a.width&&42>=c-a.height}function mP(a){return ha(a.getBoundingClientRect)&&ce(Dd(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}}function nP(a,b){a.A=b}
function oP(a,b,c,d,e){if(a.o){e=e||{};if(d=d?a.F.get(d):iL.A)null!=e.opt_fullscreen||(e.opt_fullscreen=lP(d)),null!=e.opt_videoAdElement||(e.opt_videoAdElement=d);null==e.opt_bounds&&a.A&&(e.opt_bounds=mP(a.A));return HO(b,c,e)||""}return""}
hP.prototype.D=function(a){var b=a.Ed,c=b.queryId,d={};d.eventId=b.eventId;switch(a.zc){case "getViewability":d.viewabilityString=oP(this,"metric",c)||"";this.j.send("activityMonitor","viewability",d);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var g={};g.opt_fullscreen=b.isFullscreen;b.isOverlay&&(g.opt_bounds=b.overlayBounds);var h=null;"isFullscreen"in b&&(h=b.isFullscreen);d.viewabilityString=oP(this,e,c,a,g);d.engagementString=pP(this,a,h);this.j.send("activityMonitor","viewability",
d);break;case "fetchAdTagUrl":c={},c.eventId=b.eventId,a=b.osdId,h=null,"isFullscreen"in b&&(h=b.isFullscreen),c.engagementString=pP(this,a,h),this.j.send("activityMonitor","engagement",c)}};function pP(a,b,c){if(!iL.B)return"";var d=b?a.F.get(b):iL.A;a={};null!=c&&(a.fullscreen=c);return TL(function(){return d},a)}q("ima.common.getVideoMetadata",kP,void 0);q("ima.common.sdkVolume",function(a){a=kP(a).volume;return null!=a?a:-1},void 0);
q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=jP().j;d?d.send("activityMonitor","viewableImpression",c):jP().Y(new LJ("viewable_impression",null,c))},void 0);q("ima.common.triggerMeasurableEvent",function(a){var b={};b.queryId=a;(a=jP().j)?a.send("activityMonitor","measurableImpression",b):jP().Y(new LJ("measurable_impression",null,b))},void 0);function qP(a,b,c){if(nb(a))return null;a=gb(a,function(a){var b=a.B;return"application/x-mpegurl"==C(a.j).toLowerCase()||"progressive"==b});nb(c)||(c=E(c,function(a){return a.toLowerCase()}),a=gb(a,function(a){return G(c,C(a.j).toLowerCase())}));if(!ga(b)||0>=b)b=GN()?500:1E3;return rP(a,b)}function rP(a,b){return sP(a,b)||tP(a,b)||uP(a,b)}function sP(a,b){var c=null;D(a,function(a){var e=a.ee,g=a.de;e>b||g<b||!(null==c||c.ee>e)||(c=a)});return c}
function tP(a,b){var c=null;D(a,function(a){var e=a.ee,g=a.de;g>b||(null==c||c.de<g?c=a:null!=c&&c.de==g&&c.ee>e&&(c=a))});return c}function uP(a,b){var c=null;D(a,function(a){var e=a.ee,g=a.de;if(!(e<b))if(null!=c&&c.ee==e&&c.de<g)c=a;else if(null==c||c.ee>e)c=a});return c};function vP(){V.call(this);this.D=this.G=this.I=this.F=!1;this.o=0;this.B=[];this.J=!1;this.A=0;this.C=new Bn(this);this.H={}}A(vP,V);function wP(a,b){null==b||a.F||(a.j=b,xP(a),a.F=!0)}function yP(a){null!=a.j&&a.F&&(zP(a),a.F=!1,a.G=!1,a.D=!1,a.o=0,a.B=[],a.J=!1)}
function xP(a){zP(a);!(a.j instanceof V)&&"ontouchstart"in document.documentElement&&pL()?(a.H={touchstart:y(a.HB,a),touchmove:y(a.GB,a),touchend:y(a.FB,a)},Jb(a.H,function(a,c){this.j.addEventListener(c,a,!1)},a)):a.C.M(a.j,"click",a.up)}function zP(a){a.C.Ka(a.j,"click",a.up);Jb(a.H,function(a,c){this.j.removeEventListener(c,a,!1)},a);a.H={}}f=vP.prototype;
f.HB=function(a){this.G=!0;this.o=a.touches.length;this.A&&(window.clearTimeout(this.A),this.A=0,this.I=!0);this.J=AP(this,a.touches)||1!=a.touches.length;BP(this,a.touches)};f.GB=function(a){this.o=a.touches.length;this.D=!0};f.FB=function(a){!this.G||1!=this.o||this.D||this.I||this.J||!AP(this,a.changedTouches)||(this.A=window.setTimeout(y(this.Ko,this),300));this.o=a.touches.length;0==this.o&&(this.D=this.G=!1,this.B=[]);this.I=!1};f.up=function(){this.Ko()};
function BP(a,b){a.B=[];D(b,function(a){pb(this.B,a.identifier)},a)}function AP(a,b){return ib(b,function(a){return G(this.B,a.identifier)},a)}f.Ko=function(){this.A=0;this.Y(new hm("click"))};f.P=function(){yP(this);this.C.dispose();this.C=null;vP.K.P.call(this)};function CP(a){null!=a?fK(bK,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&fK(cK,a)?DP(a):null:a=null;return a}function EP(a,b,c){if(null==a)return null;c=new J((null!=c?c:"//www.youtube.com/")+"watch");var d=c.j;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");ff(c,d);return c.toString()}
function DP(a){if(B(C(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=rf(new J(a));return Bf(a,"v")?a.get("v").toString():Bf(a,"video_id")?a.get("video_id").toString():null};function FP(a,b,c,d,e,g,h,k,l,p){this.B=a;this.j=b;this.F=c;isNaN(d)&&isNaN(e)&&isNaN(g)?g=e=0:isNaN(e)&&!isNaN(g)?e=g:!isNaN(e)&&isNaN(g)?g=e:!isNaN(d)&&isNaN(e)&&isNaN(g)&&(e=g=d);this.ee=e;this.de=g;this.D=h;this.C=k;this.o=l;this.A=p}FP.prototype.getHeight=function(){return this.C};function GP(){V.call(this)}A(GP,V);var HP={LG:"beginFullscreen",CLICK:"click",hH:"end",jH:"endFullscreen",ERROR:"error",LOADED:"loaded",dI:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",SKIP:"skip",Av:"skipShown",START:"start",vJ:"timeUpdate",uJ:"timedMetadata",ZJ:"volumeChange"};GP.prototype.Pr=v;GP.prototype.Ap=v;GP.prototype.If=function(){return null};function IP(a){V.call(this);this.j=a;this.U=new Om(4);this.B=0;this.R=this.I=this.A=this.G=this.H=!1;this.O=this.Zc();this.N=this.ce();this.W=15E3;this.T=!1}A(IP,GP);f=IP.prototype;
f.Mr=function(a,b,c,d){if(d&&(d=F(a,function(a){return!da(CP(a.o))}),null!==d))return d;a=gb(a,function(a){var b=a.j;B(C(a.o))||"progressive"!=a.B&&"application/x-mpegurl"!=C(b).toLowerCase()?a=!1:(b=C(b).toLowerCase(),a=B(b)||kd&&qL(mL,2.3)&&-1!=b.indexOf("application/ogg")?!1:kd&&(-1!=b.indexOf("video/mp4")||-1!=b.indexOf("video/3gpp"))||pL()&&(-1!=b.indexOf("application/x-mpegurl")||-1!=b.indexOf("application/vnd.apple.mpegurl"))?!0:!B(this.j.canPlayType(b)));return a},this);return qP(a,b,c)};
f.Al=function(){return gb(Qb($J),function(a){return!B(this.j.canPlayType(a))},this)};f.Wm=function(a){this.W=0<a.Cb?a.Cb:15E3};f.load=function(a){JP(this);this.j.src=a;this.j.load();KP(this)};f.getVideoUrl=function(){return this.j.src};f.setVolume=function(a){this.j.volume=a};f.Bd=function(){return this.j.volume};f.play=function(){this.T=!1;xn(this.j.play,0,this.j);this.I=!0;KP(this)};f.pause=function(){this.T=!0;this.j.pause()};
f.ah=function(){return this.j.paused?pL()||$h?this.j.currentTime<this.j.duration:!0:!1};f.$g=function(){return this.j.muted};f.rl=function(){oL()&&this.j.webkitDisplayingFullscreen&&this.j.webkitExitFullscreen()};f.ce=function(){return lP(this.j)};f.Hg=function(a){var b;a:{for(b=this.U.Qa();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};f.Pf=function(a){this.j.currentTime=a};f.getCurrentTime=function(){return this.j.currentTime};f.Yo=function(){return LP(this)};
f.Ic=function(){return isNaN(this.j.duration)?-1:this.j.duration};f.af=function(){return this.j.ended};f.Zc=function(){return new H(this.j.offsetWidth,this.j.offsetHeight)};f.Cp=function(){return this.j.seeking};f.P=function(){this.Qf();this.j=null;IP.K.P.call(this)};f.Bp=function(){return this.j.error};
f.Yi=function(){this.Qf();this.o=new Bn(this);this.o.M(this.j,"canplay",this.Mz);this.o.M(this.j,"ended",this.vy);this.o.M(this.j,"webkitbeginfullscreen",this.Rl);this.o.M(this.j,"webkitendfullscreen",this.Ep);this.o.M(this.j,"pause",this.xy);this.o.M(this.j,"playing",this.bB);this.o.M(this.j,"timeupdate",this.BB);this.o.M(this.j,"volumechange",this.yy);this.o.M(this.j,"error",this.Dp);this.o.M(this.j,Zh?"loadeddata":"canplaythrough",this.HA);this.D=new vP;this.o.M(this.D,"click",this.uy);wP(this.D,
this.j);this.F=new vn(1E3);this.o.M(this.F,"tick",this.wy);this.F.start()};f.Qf=function(){null!=this.D&&(yP(this.D),this.D=null);null!=this.F&&this.F.dispose();null!=this.o&&(this.o.dispose(),this.o=null);JP(this)};function JP(a){a.G=!1;a.A=!1;a.I=!1;a.H=!1;a.B=0;a.R=!1;a.U.clear();MP(a);Ai(a.C)}function NP(a){a.A||(a.A=!0,MP(a),a.Y("start"),tL()||!kd||kd&&qL(mL,3)||oL()&&(!pL()||!qL(lL,4))||a.Rl())}
f.Mz=function(){var a;if(a=ai)a=Uc,a=!(a&&(Ma(a,"SMART-TV")||Ma(a,"SmartTV")));a&&!this.R&&(this.Pf(.001),this.R=!0)};f.HA=function(){this.G||(this.G=!0,this.I||MP(this),this.Y("loaded"))};f.bB=function(){this.Y("play");pL()||Zh||NP(this)};
f.BB=function(){if(!this.A&&(pL()||Zh)){if(0>=this.getCurrentTime())return;if(Zh&&this.af()&&1==this.Ic()){this.Dp();return}NP(this)}if(pL()){if(1.5<this.getCurrentTime()-this.B){this.H=!0;this.Pf(this.B);return}this.H=!1;this.getCurrentTime()>this.B&&(this.B=this.getCurrentTime())}this.U.add(this.j.currentTime);this.Y("timeUpdate")};f.yy=function(){this.Y("volumeChange")};
f.xy=function(){var a;this.A&&pL()&&!this.T&&2>LP(this)-this.j.currentTime?(this.C=new vn(250),this.o.M(this.C,"tick",this.Hz),this.C.start(),a=!0):a=!1;a||this.Y("pause")};f.vy=function(){var a=!0;pL()&&(a=this.B>=this.j.duration-1.5);!this.H&&a&&this.Y("end")};f.Rl=function(){this.Y("beginFullscreen")};f.Ep=function(){this.Y("endFullscreen")};f.Dp=function(){MP(this);this.Y("error")};f.uy=function(){this.Y("click")};
f.wy=function(){var a=this.Zc(),b=this.ce();if(a.width!=this.O.width||a.height!=this.O.height)!this.N&&b?this.Rl():this.N&&!b&&this.Ep(),this.O=a,this.N=b};f.aw=function(){if(!this.A||!this.I&&!this.G){try{vL(uL.getInstance(),16)}catch(a){}JP(this);this.Y("mediaLoadTimeout")}};f.Hz=function(){if(this.af()||!this.ah())Ai(this.C);else{var a=this.j.duration-this.j.currentTime,b=LP(this)-this.j.currentTime;0<b&&(2<=b||2>a)&&(Ai(this.C),this.play())}};
function LP(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 KP(a){a.J||(a.J=xn(a.aw,a.W,a))}function MP(a){a.J&&(yn(a.J),a.J=null)};function OP(){V.call(this);this.j=new PP;this.o=new Bn(this);var a=dL();if(a){a:{if("videoElementMockDuration"in a.j&&(a=a.j.videoElementMockDuration,ga(a)))break a;a=NaN}this.duration=a}}A(OP,V);function QP(){var a=["video/mp4"],b=["video/ogg"],c=new OP;c.canPlayType=function(c){return G(a,c)?"probably":G(b,c)?"maybe":""};c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c}function RP(a){this.startTime=0;this.endTime=a}function PP(){this.length=0;this.j=[]}PP.prototype.start=function(a){return this.j[a].startTime};
PP.prototype.end=function(a){return this.j[a].endTime};f=OP.prototype;f.readyState=0;f.currentTime=0;f.duration=NaN;f.Sf=!0;f.Jp=!1;f.autoplay=!1;f.volume=1;f.muted=!1;f.src="";f.Ey=1;f.playbackRate=0;f.fd=null;f.ej=0;f.tC=4;f.Dg=null;f.Uj=null;
f.play=function(){this.Jp&&(this.currentTime=0,this.Y("timeupdate"));this.Sf&&(this.Sf=!1,this.Y("play"),this.readyState=this.tC,2>=this.readyState?this.Y("waiting"):this.Y("playing"));if(null===this.fd||this.fd.ma())this.fd=new vn(10),this.fd.M("tick",y(this.ds,this));this.ej=z();this.fd.start();this.autoplay=!1};f.pause=function(){this.autoplay=!1;this.Sf||(this.fd.stop(),this.Sf=!0,this.Y("timeupdate"),this.Y("pause"))};
f.load=function(){this.readyState=0;this.Sf=!0;this.Y("loadstart");this.setProperty("duration",isNaN(this.duration)?10+20*Math.random():this.duration);var a=this.j;a.j.push(new RP(this.duration));a.length=a.j.length;this.Y("loadedmetadata");0<this.currentTime&&this.Y("timeupdate");this.Y("loadeddata");this.Y("canplay");this.Y("canplaythrough");this.Y("progress");this.playbackRate=this.Ey};
f.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.Y("seeking");this.currentTime=c;this.Y("seeked");this.ds();break;case "duration":this.duration=Number(b);this.Y("durationchange");break;case "volume":this.volume=Number(b),this.Y("volumechange")}};f.ds=function(){var a=z()-this.ej,b=this.currentTime+a/1E3;this.ej+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.Y("timeupdate");this.currentTime==this.duration&&(this.Jp=this.Sf=!0,this.fd.stop(),this.Y("ended"))};
f.P=function(){this.fd&&!this.fd.ma()&&this.fd.dispose()};f.WB=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.Uj&&(this.Uj.innerText=b);c&&this.Dg&&(this.Dg.style.backgroundColor=c)};dd&&sd(8);function SP(){};var TP={},UP={},VP={};function WP(){throw Error("Do not instantiate directly");}WP.prototype.Td=null;WP.prototype.getContent=function(){return this.content};WP.prototype.toString=function(){return this.content};function XP(a,b){var c=Bd().createElement("DIV"),d=YP(a(b||ZP,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function YP(a){if(!ia(a))return String(a);if(a instanceof WP){if(a.Wc===TP)return a.getContent();if(a.Wc===VP)return ya(a.getContent())}return"zSoyz"}var ZP={};function $P(a){if(null!=a)switch(a.Td){case 1:return 1;case -1:return-1;case 0:return 0}return null}function aQ(){WP.call(this)}A(aQ,WP);aQ.prototype.Wc=TP;function bQ(a){return null!=a&&a.Wc===TP?a:a instanceof Hc?cQ(Jc(a),a.Jf()):cQ(ya(String(String(a))),$P(a))}function dQ(){WP.call(this)}A(dQ,WP);dQ.prototype.Wc={};dQ.prototype.Td=1;function eQ(){WP.call(this)}A(eQ,WP);eQ.prototype.Wc=UP;eQ.prototype.Td=1;function fQ(){WP.call(this)}A(fQ,WP);fQ.prototype.Wc={};fQ.prototype.Td=1;
function gQ(){WP.call(this)}A(gQ,WP);gQ.prototype.Wc={};gQ.prototype.Td=1;function hQ(a,b){this.content=String(a);this.Td=null!=b?b:null}A(hQ,WP);hQ.prototype.Wc=VP;function iQ(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}}var cQ=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.Td=d);return e}}(aQ);iQ(dQ);iQ(eQ);var jQ=iQ(fQ);iQ(gQ);var kQ={},lQ={};
function mQ(a,b,c){var d="key_"+a+":"+b,e=kQ[d];if(void 0===e||0>e)kQ[d]=0,lQ[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');}function nQ(a,b){var c=lQ["key_"+a+":"+b];c||""==b||(c=lQ["key_"+a+":"]);return c?c:oQ;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');}function oQ(){return""}
(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.Td=d);return e}})(aQ);function pQ(a){return bQ(a)}var qQ=/['()]/g;function rQ(a){return"%"+a.charCodeAt(0).toString(16)}function sQ(a){if(null!=a&&a.Wc===UP)return String(a).replace(tQ,uQ);if(a instanceof yc)return a=Ac(a),String(a).replace(tQ,uQ);a=wa(String(a));qQ.lastIndex=0;return qQ.test(a)?a.replace(qQ,rQ):a}var vQ={};
function wQ(a){vQ[1]||(vQ[1]=new SP);var b=$P(a);if(null==b){var c=b=0,d=!1;a=hc(a+"",null!=a&&a.Wc===TP).split(nc);for(var e=0;e<a.length;e++){var g=a[e];kc.test(hc(g,void 0))?(b++,c++):lc.test(g)?d=!0:jc.test(hc(g,void 0))?c++:oc.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return jQ(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var xQ={"\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 uQ(a){return xQ[a]}var tQ=/[\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 yQ(a){return""+nQ("a",a.Di)(a)}
mQ("a","",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+bQ(a.Yf)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+bQ(a.Yf)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+pQ(wQ(a.Uc))+
">"+bQ(a.Uc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+pQ(wQ(a.xf))+">"+bQ(a.xf)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
mQ("a","redesign2014q4",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTopButtons"><div class="videoAdUiTopButton videoAdUiTopButtonInfo"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+bQ(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
bQ(a.vK)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+bQ(a.wK)+'</div></div></div></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiBottomBarText"><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+pQ(wQ(a.Uc))+">"+bQ(a.Uc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+
pQ(wQ(a.xf))+">"+bQ(a.xf)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
function zQ(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+pQ(wQ(a.Uc))+">"+bQ(a.Uc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'}
function AQ(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+pQ(wQ(a.Uc))+">"+bQ(a.Uc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+bQ(a.Yf)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'}
function BQ(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'}function CQ(){return"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"}function DQ(a){return""+nQ("b",a.Di)(a)}
mQ("b","",function(a){a=a||{};var b="";a="\u0420\u0435\u043a\u043b\u0430\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 "+(bQ(a.wn)+"\u00a0\u0441.");return b+a});
mQ("b","redesign2014q4",function(a){a=a||{};var b="";a="\u0420\u0435\u043a\u043b\u0430\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 "+bQ(a.wn);return b+a});function EQ(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton">'+bQ(a.VC)+'<div class="videoAdUiSkipIcon"></div></button></div>'}
function FQ(a){var b="";a=2<=a.Xj&&1<=a.gi?"\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 "+(bQ(a.gi)+(" \u0438\u0437 "+(bQ(a.Xj)+(" "+bQ(a.Vj))))):"\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c "+bQ(a.Vj);return b+=a};function GQ(a,b,c){if(null==a||!ce(Dd(a),a))throw ZK(wK,null,"containerElement","element");this.C=a;this.o=this.j=null;this.B=b;this.D=c;this.A=null;this.j=I("div",{style:"display:none;"});a=dL();eL(a,"useVideoElementMock")?(a=QP(),b=I("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),qa(b,a),a.Dg=I("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.Uj=I("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.Dg.appendChild(a.Uj),b.appendChild(a.Dg),a.o.M(a,["loadeddata","playing","pause","ended"],a.WB),a=b):a=I("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430"});a.setAttribute("webkit-playsinline",!0);this.o=a;this.C.appendChild(this.j);this.j.appendChild(this.o);this.B&&(a=I("div",{id:this.B,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.j.appendChild(a));this.D&&(this.A=I("div",
{style:"position:absolute;width:100%;height:100%;"}),this.j.appendChild(this.A))}A(GQ,Q);GQ.prototype.initialize=function(){nL()&&this.o.load()};GQ.prototype.P=function(){Wd(this.j);GQ.K.P.call(this)};GQ.prototype.$=function(){HQ(this.j,!1)};function HQ(a,b){null!=a&&(a.style.display=b?"block":"none")};function IQ(a){V.call(this);this.I="ima-chromeless-video";var b=null;null!=a&&(x(a)?this.I=a:b=a);this.J=new Bn(this);this.C=null;this.A=!1;this.X=this.Zc();this.W=this.ce();this.F=-1;this.T=!1;this.D=-1;this.o=this.O=this.G=null;this.U="";this.j=!1;this.ba=null!=b;this.H=this.R=this.ca=null;this.B=void 0;this.Z=null;null!=b?(this.j=!0,this.ca=b,this.B=2):(a=y(this.iw,this),JQ?a():(KQ.push(a),a=Rd("script"),a.src="https://www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,
b)))}A(IQ,GP);var LQ=["video/mp4","video/webm"],MQ={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},KQ=[],JQ=!1;f=IQ.prototype;f.Mr=function(a,b,c){var d=F(a,function(a){return!da(CP(a.o))});if(null!==d)return d;a=gb(a,function(a){a=C(a.j);return this.j?this.ca.canPlayType(a):G(LQ,a)},this);nb(c)||(d=qP(a,b,c));return null!=d?d:qP(a,b,[])};f.Wm=function(a){this.o=a};f.load=function(a,b){null!==a&&(this.U=a,this.j?NQ(this,a,b):(this.G=a,this.O=b))};f.getVideoUrl=function(){return this.U};
f.setVolume=function(a){this.ba?this.Y("volumeChange"):this.j?(a=Pc(100*a,0,100),this.ca.setVolume(a),this.D=-1,this.Y("volumeChange")):this.D=a};f.Bd=function(){return this.j?this.ca.getVolume()/100:this.D};f.play=function(){if(!B(C(this.U))){if(!this.A){OQ(this);var a=15E3;null!=this.o&&0<this.o.Cb&&(a=this.o.Cb);this.da=xn(this.XA,a,this)}this.j?(this.T=!1,!this.A&&this.o&&this.o.j?this.ca.loadVideoByPlayerVars(this.Z):this.ca.playVideo()):this.T=!0}};f.pause=function(){this.j&&this.A&&this.ca.pauseVideo()};
f.ah=function(){return this.j?2==this.ca.getPlayerState(this.B):!1};f.$g=function(){return this.j?this.ca.isMuted():0==this.Bd()};f.rl=function(){};f.ce=function(){var a=iL.j?iL.A:document.getElementById(this.I);return a?lP(a):!1};f.Hg=function(a){return this.j?this.ca.getCurrentTime(this.B)>=a:!1};f.Pf=function(a){this.j?this.ca.seekTo(a,!1):this.F=a};f.getCurrentTime=function(){return this.j?this.ca.getCurrentTime(this.B):-1};
f.Yo=function(){return this.j&&this.A?this.ca.getVideoLoadedFraction(this.B)*this.ca.getDuration(this.B):0};f.Ic=function(){return this.j&&this.A?this.ca.getDuration(this.B):-1};f.Bp=function(){return null};f.Al=function(){return Qb($J)};f.af=function(){return this.j?0==this.ca.getPlayerState(this.B):!1};f.Zc=function(){var a=iL.j?iL.A:document.getElementById(this.I);return a?new H(a.offsetWidth,a.offsetHeight):new H(0,0)};f.Cp=function(){return!1};
f.Cy=function(){var a=this.Zc(),b=this.ce();if(a.width!=this.X.width||a.height!=this.X.height)!this.W&&b?this.Y("beginFullscreen"):this.W&&!b&&this.Y("endFullscreen"),this.X=a,this.W=b};f.Yi=function(){this.R=y(this.Nq,this);this.H=y(this.Sl,this);this.ba&&(this.ca.addEventListener("onAdStateChange",this.H),this.ca.addEventListener("onReady",this.R),this.ca.addEventListener("onStateChange",this.H));this.N=new vn(1E3);this.J.M(this.N,"tick",this.Cy);this.N.start()};
f.Qf=function(){this.ba&&(this.ca.removeEventListener("onAdStateChange",this.H),this.ca.removeEventListener("onReady",this.R),this.ca.removeEventListener("onStateChange",this.H));null!=this.N&&this.N.dispose()};f.iw=function(){var a=this.I,b={playerVars:Zb(MQ),events:{onError:y(this.$A,this),onReady:y(this.Nq,this),onAdStateChange:y(this.Sl,this),onStateChange:y(this.Sl,this)}},c=t("YT");this.ca=null!=c&&null!=c.Player?new c.Player(a,b):null};
function NQ(a,b,c){var d={};if(null!=a.o){var e=a.o.A;null!=e&&(d.agcid=e);e=a.o.D;null!=e&&(d.adformat=e);e=a.o.o;null!=e&&(d.ad_query_id=e);(e=a.o.B)&&(d.cta_conversion_urls=e);d.iv_load_policy=hL()&&a.o.F?1:3;a.o.C&&(d.noiba=1);a.o.G&&(d.utpsa=1)}e=CP(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.A=!1;a.o&&a.o.j?(a.Z=d,a.ca.preloadVideoByPlayerVars(a.Z)):a.ca.cueVideoByPlayerVars(d);a.Y("loaded")}f.$A=function(){this.Y("error")};
f.Nq=function(){this.j=!0;-1!=this.D&&(this.setVolume(this.D),this.D=-1);null!=this.G&&(NQ(this,this.G,this.O),this.O=this.G=null);-1!=this.F&&(this.Pf(this.F),this.F=-1);this.T&&this.play()};f.Sl=function(a){switch(a.data){case 0:this.A?this.Y("end"):this.Y("error");break;case 1:this.A||(OQ(this),this.A=!0,this.Y("start"));this.Y("play");PQ(this);this.C=new vn(100);this.J.M(this.C,"tick",this.zq);this.C.start();break;case 2:this.Y("pause"),PQ(this)}};
function PQ(a){a.J.Ka(a.C,"tick",a.zq);null!=a.C&&(a.C.stop(),a.C=null)}function OQ(a){null!=a.da&&yn(a.da)}f.zq=function(){this.Y("timeUpdate")};f.XA=function(){this.Y("mediaLoadTimeout")};f.Ap=function(a,b){this.j&&this.ca.addInfoCardXml(a,b)};f.If=function(){if(!this.j)return null;var a=this.ca.getVideoData();return a?a.cpn:null};f.Pr=function(a){this.j&&CP(this.getVideoUrl())&&this.ca.sendVideoStatsEngageEvent(a)};
f.P=function(){PQ(this);OQ(this);this.Qf();this.j=!1;this.J.dispose();this.F=-1;this.O=null;this.T=!1;this.G=null;this.D=-1;this.R=this.ca=this.o=null;this.A=!1;this.U="";IQ.K.P.call(this)};q("onYouTubeIframeAPIReady",function(){JQ=!0;D(KQ,function(a){a()});ob(KQ)},window);function QQ(a){V.call(this);this.j=a||Va();this.o=[]}A(QQ,V);QQ.prototype.A=!1;QQ.prototype.connect=function(){for(this.A=!0;!nb(this.o);){var a=this.o.shift();RQ(this,a.name,a.type,a.data)}};QQ.prototype.send=function(a,b,c){this.A?RQ(this,a,b,c):this.o.push({name:a,type:b,data:c})};function SQ(a,b,c,d,e){hm.call(this,a);this.zc=b;this.Ed=c;this.tp=d;this.B=e}A(SQ,hm);SQ.prototype.getOrigin=function(){return this.B};SQ.prototype.toString=function(){return""};function TQ(a,b){QQ.call(this,b);this.B=a;this.Nc=null;this.C=new Bn(this);this.logger=null;this.C.M(Nd(),"message",this.receive)}A(TQ,QQ);function UQ(a){if(null==a||!x(a)||!ta(a,"ima://"))return null;a=a.substr(6);try{return ng(a)}catch(b){return null}}function RQ(a,b,c,d){null!=a.Nc&&null!=a.Nc.postMessage&&a.Nc.postMessage(VQ(a,b,c,d),"*");null!=a.Nc&&null==a.Nc.postMessage&&vL(uL.getInstance(),11)}TQ.prototype.P=function(){this.C.dispose();TQ.K.P.call(this)};
TQ.prototype.receive=function(a){a=a.j;var b=UQ(a.data);if(null!=b){if(null==this.Nc)this.Nc=a.source;else if(this.Nc!=a.source)return;var c=b.channel;null!=c&&c==this.B&&(c=b.sid,null!=c&&("*"!=this.j&&c!=this.j||this.Y(new SQ(b.name,b.type,b.data||{},b.sid,a.origin))))}};function VQ(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.j;e.channel=a.B;return"ima://"+pg(e)};function WQ(a,b){V.call(this);this.B=a;this.A=b;this.j={};this.o=new Bn(this);this.o.M(Nd(),"message",this.C)}A(WQ,V);WQ.prototype.send=function(a){var b=a.A;this.j.hasOwnProperty(b)&&this.j[b].send(a.type,a.zc,a.Ed)};function XQ(a,b,c,d){a.j.hasOwnProperty(b)||(c=new TQ(b,c),a.o.M(c,a.B,function(a){a=new YQ(a.type,a.zc,a.Ed,a.tp,a.getOrigin(),b);this.Y(a)}),c.Nc=d,c.connect(),a.j[b]=c)}WQ.prototype.P=function(){this.o.dispose();for(var a in this.j)Ai(this.j[a]);WQ.K.P.call(this)};
WQ.prototype.C=function(a){a=a.j;var b=UQ(a.data);if(null!=b){var c=b.channel;if(this.A&&!this.j.hasOwnProperty(c)){var d=b.sid;XQ(this,c,d,a.source);this.Y(new YQ(b.name,b.type,b.data||{},d,a.origin,c))}}};function YQ(a,b,c,d,e,g){SQ.call(this,a,b,c,d,e);this.A=g}A(YQ,SQ);function ZQ(){var a=t("google.ima.gptProxyInstance",Nd());if(null!=a)return a;Bn.call(this);this.A=new WQ("gpt",!0);R(this,this.A);this.M(this.A,"gpt",this.D);this.j=null;$Q()||Nd().top===Nd()||(this.j=new WQ("gpt",!1),R(this,this.j),this.M(this.j,"gpt",this.C))}A(ZQ,Bn);function $Q(){return!!t("googletag.cmd",Nd())}function aR(){var a=t("googletag.console",Nd());return null!=a?a:null}
ZQ.prototype.D=function(a){var b=a.getOrigin(),c=Ke("//imasdk.googleapis.com"),b=Ke(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.j)XQ(this.j,a.A,a.tp,Nd().parent),null!=this.j&&this.j.send(a);else if(c=a.Ed,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.zc,"isGptPresent"==c?d=$Q():"isConsolePresent"==c&&(d=null!=aR());else if($Q())if("pubads"==b||"companionAds"==b){d=a.zc;var e,g=Nd().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.zc,e=aR(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.zc;d=Nd();if(G(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}n(d)&&(a.Ed.returnValue=d,this.A.send(a))}};ZQ.prototype.C=function(a){this.A.send(a)};function bR(a,b,c,d,e,g,h,k,l){this.D=a;this.o=l;this.A=b;this.B=c;this.C=h;this.F=d;this.G=e;this.Cb=g;this.j=k};function cR(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,r,u){if("%"==p)return"%";var w=c.shift();if("undefined"==typeof w)throw Error("[goog.string.format] Not enough arguments");arguments[0]=w;return dR[p].apply(null,arguments)})}
var dR={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Oa(" ",c-a.length):Oa(" ",c-a.length)+a},f:function(a,b,c,d,e){d=a.toString();isNaN(e)||""==e||(d=parseFloat(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+Oa(" ",a):g+Oa(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,
d,e,g,h,k){return dR.f(parseInt(a,10),b,c,d,0,g,h,k)}};dR.i=dR.d;dR.u=dR.d;function eR(a,b){V.call(this);this.B=new Bn(this);this.G=!1;this.H=Va();this.D=new xe;var c=this.H,d=("https:"==document.location.protocol?"https:":"http:")+cR("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en"),e;a:{var g=window;try{do{try{if(0==g.location.href.indexOf(d)||0==g.document.referrer.indexOf(d)){e=!0;break a}}catch(h){}g=g.parent}while(g!=g.top)}catch(k){}e=!1}e&&(d+="?f="+c);c=I("iframe",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});Fn(this.B,
c,"load",this.zw);a.appendChild(c);this.o=c;c=this.D.get("*");null==c&&(c=new TQ(this.H,"*"),this.G&&(c.Nc=de(this.o),c.connect()),this.D.set("*",c));this.C=c;this.F=b;this.j=this.F.A;this.A=null;this.B.M(this.C,"mouse",this.qx);this.B.M(this.C,"touch",this.Qx);null!=this.j&&(this.B.M(this.C,"displayContainer",this.bx),this.B.M(this.C,"videoDisplay",this.Nx),this.B.M(this.j,Qb(HP),this.VB));c=Nd();d=t("google.ima.gptProxyInstance",c);null==d&&(d=new ZQ,q("google.ima.gptProxyInstance",d,c))}A(eR,V);
f=eR.prototype;f.P=function(){this.B.dispose();null!==this.A&&(this.A.dispose(),this.A=null);ve(this.D.bc(!1),function(a){a.dispose()});this.D.clear();Wd(this.o);eR.K.P.call(this)};f.qx=function(a){var b=a.Ed,c=Rg(this.o),d=document.createEvent("MouseEvent");d.initMouseEvent(a.zc,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,null);if(!ai||pL()||0==document.webkitIsFullScreen)this.o.blur(),window.focus();this.o.dispatchEvent(d)};
function fR(a,b){var c=Rg(a.o),d=E(b,function(a){return document.createTouch(window,this.o,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
f.Qx=function(a){var b=a.Ed,c=Rg(this.o),d=document.createEvent("TouchEvent");d.initTouchEvent(a.zc,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,fR(this,b.touches),fR(this,b.targetTouches),fR(this,b.changedTouches),b.scale,b.rotation);this.o.dispatchEvent(d)};
f.Nx=function(a){if(null!=this.j){var b=a.Ed;switch(a.zc){case "startTracking":this.j.Yi();break;case "stopTracking":this.j.Qf();break;case "exitFullscreen":this.j.rl();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.Pf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.j.Wm(new bR(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId))}}};
f.VB=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "loaded":a="loaded";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.j.af();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.Ic();break;case "volumeChange":a="volumeChange";b.volume=this.j.Bd();break;default:return}this.C.send("videoDisplay",a,b)};f.bx=function(a){switch(a.zc){case "showVideo":null!=this.A?yP(this.A):(this.A=new vP,this.B.M(this.A,"click",this.RB));wP(this.A,gR(this.F));a=this.F;null!=a.j&&HQ(a.j.j,!0);break;case "hide":null!==this.A&&(this.A.dispose(),this.A=null),this.F.$()}};f.RB=function(){this.C.send("displayContainer","videoClick")};
f.zw=function(){ve(this.D.bc(!1),function(a){a.Nc=de(this.o);a.connect()},this);this.G=!0};function hR(a,b,c,d){if(null==a||!ce(Dd(a),a))throw ZK(wK,null,"containerElement","element");this.B=a;var e=null!=b||null!=d,g=e,h=!1;iL.j||(pL()||kd||Ma(Uc,"CrKey")||sL()||Ma(Uc,"Roku")||rL()||Ma(Uc,"Xbox"))&&e||(nL()||Ma(Uc,"CrKey")||sL()||Ma(Uc,"Roku")||rL()||Ma(Uc,"Xbox")||(h=!0),g=!1);this.D=g;this.G=h||g&&null!=d;iL.j?a=null:(e=I("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.o=a;this.j=this.D||!this.o||iL.j||!nL()?null:new GQ(this.o,null,!0);a=null;this.D?b?a=new IP(b):
d&&(a=new IQ(d)):this.j&&(a=new IP(this.j.o));this.C=(this.A=a)?c||null:null;this.H=null!=this.C;vL(uL.getInstance(),8,{enabled:this.D,yt:null!=d,customClick:null!=this.C});null===this.o&&(b=this.B,iL.A=b);this.F=null==this.o||iL.j?null:new eR(this.o,this)}hR.prototype.initialize=function(){null!=this.j&&this.j.initialize()};hR.prototype.destroy=function(){Ai(this.j);Ai(this.F);Ai(this.A);Wd(this.o)};hR.prototype.$=function(){null!=this.j&&this.j.$()};
function gR(a){return a.H&&a.C?a.C:null!=a.j?a.j.A:null};function iR(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();a:{if(g&&g.nodeName&&g.parentElement){c=g.nodeName.toString().toLowerCase();d=g.parentElement.childNodes;for(var k=e=0;k<d.length;++k){var l=d[k];if(l.nodeName&&l.nodeName.toString().toLowerCase()==c){if(g==l){c="."+e;break a}++e}}}c=""}}h.push(b,c);if(null!=a)h.push(Ze(a,"ad_type")||""),h.push(Ze(a,"videoad_start_delay")||
""),h.push(Ze(a,"sz")||""),h.push(Ze(a,"vpos")||""),h.push(Ze(a,"mridx")||""),h.push(Ze(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 jR(){V.call(this);this.currentTime=0}A(jR,V);function kR(a){jR.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw ZK(wK,null,"content","currentTime");this.o=a;this.j=new vn(250);this.A=new Bn(this);En(this.A,this.j,"tick",this.B,this)}A(kR,jR);kR.prototype.start=function(){this.j.start()};kR.prototype.stop=function(){this.j.stop()};kR.prototype.P=function(){kR.K.P.call(this);this.A.dispose();this.j.dispose()};
kR.prototype.B=function(){if("currentTime"in this.o&&!isNaN(this.o.currentTime)){var a=this.currentTime;this.currentTime=this.o.currentTime;a!=this.currentTime&&this.Y(new hm("currentTimeUpdate"))}else this.Y(new hm("contentWrapperError")),this.stop()};function lR(){this.reset()}lR.prototype.reset=function(){this.j=0;this.o=null};var mR;
mR={C:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],B:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],F:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),T:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),D:"\u044f\u043d\u0432\u0430\u0440\u044f \u0444\u0435\u0432\u0440\u0430\u043b\u044f \u043c\u0430\u0440\u0442\u0430 \u0430\u043f\u0440\u0435\u043b\u044f \u043c\u0430\u044f \u0438\u044e\u043d\u044f \u0438\u044e\u043b\u044f \u0430\u0432\u0433\u0443\u0441\u0442\u0430 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f \u043e\u043a\u0442\u044f\u0431\u0440\u044f \u043d\u043e\u044f\u0431\u0440\u044f \u0434\u0435\u043a\u0430\u0431\u0440\u044f".split(" "),O:"\u044f\u043d\u0432\u0430\u0440\u044c \u0444\u0435\u0432\u0440\u0430\u043b\u044c \u043c\u0430\u0440\u0442 \u0430\u043f\u0440\u0435\u043b\u044c \u043c\u0430\u0439 \u0438\u044e\u043d\u044c \u0438\u044e\u043b\u044c \u0430\u0432\u0433\u0443\u0441\u0442 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c \u043e\u043a\u0442\u044f\u0431\u0440\u044c \u043d\u043e\u044f\u0431\u0440\u044c \u0434\u0435\u043a\u0430\u0431\u0440\u044c".split(" "),
I:"\u044f\u043d\u0432. \u0444\u0435\u0432\u0440. \u043c\u0430\u0440\u0442\u0430 \u0430\u043f\u0440. \u043c\u0430\u044f \u0438\u044e\u043d\u044f \u0438\u044e\u043b\u044f \u0430\u0432\u0433. \u0441\u0435\u043d\u0442. \u043e\u043a\u0442. \u043d\u043e\u044f\u0431. \u0434\u0435\u043a.".split(" "),U:"\u044f\u043d\u0432. \u0444\u0435\u0432\u0440. \u043c\u0430\u0440\u0442 \u0430\u043f\u0440. \u043c\u0430\u0439 \u0438\u044e\u043d\u044c \u0438\u044e\u043b\u044c \u0430\u0432\u0433. \u0441\u0435\u043d\u0442. \u043e\u043a\u0442. \u043d\u043e\u044f\u0431. \u0434\u0435\u043a.".split(" "),
aa:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u0432\u0442\u043e\u0440\u043d\u0438\u043a \u0441\u0440\u0435\u0434\u0430 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 \u043f\u044f\u0442\u043d\u0438\u0446\u0430 \u0441\u0443\u0431\u0431\u043e\u0442\u0430".split(" "),X:"\u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u041f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u0412\u0442\u043e\u0440\u043d\u0438\u043a \u0421\u0440\u0435\u0434\u0430 \u0427\u0435\u0442\u0432\u0435\u0440\u0433 \u041f\u044f\u0442\u043d\u0438\u0446\u0430 \u0421\u0443\u0431\u0431\u043e\u0442\u0430".split(" "),
N:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),W:"\u0412\u0441 \u041f\u043d \u0412\u0442 \u0421\u0440 \u0427\u0442 \u041f\u0442 \u0421\u0431".split(" "),G:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),R:"\u0412\u041f\u0412\u0421\u0427\u041f\u0421".split(""),J:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],H:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b",
"2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"],j:["AM","PM"],o:["EEEE, d MMMM y '\u0433'.","d MMMM y '\u0433'.","d MMM y '\u0433'.","dd.MM.yy"],Ga:["H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm"],A:["{1}, {0}","{1}, {0}","{1}, {0}","{1}, {0}"],Tu:0,Z:[5,6],Uu:6};function nR(a,b,c,d,e,g){x(a)?(this.A="y"==a?b:0,this.o="m"==a?b:0,this.j="d"==a?b:0,this.B="h"==a?b:0,this.C="n"==a?b:0,this.D="s"==a?b:0):(this.A=a||0,this.o=b||0,this.j=c||0,this.B=d||0,this.C=e||0,this.D=g||0)}nR.prototype.equals=function(a){return a.A==this.A&&a.o==this.o&&a.j==this.j&&a.B==this.B&&a.C==this.C&&a.D==this.D};nR.prototype.clone=function(){return new nR(this.A,this.o,this.j,this.B,this.C,this.D)};
nR.prototype.add=function(a){this.A+=a.A;this.o+=a.o;this.j+=a.j;this.B+=a.B;this.C+=a.C;this.D+=a.D};function oR(a,b,c){ga(a)?(this.date=pR(a,b||0,c||1),qR(this,c||1)):ia(a)?(this.date=pR(a.getFullYear(),a.getMonth(),a.getDate()),qR(this,a.getDate())):(this.date=new Date(z()),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0))}function pR(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=oR.prototype;f.Uo=mR.Tu;
f.Vo=mR.Uu;f.clone=function(){var a=new oR(this.date);a.Uo=this.Uo;a.Vo=this.Vo;return a};f.getFullYear=function(){return this.date.getFullYear()};f.getMonth=function(){return this.date.getMonth()};f.getDate=function(){return this.date.getDate()};f.getTime=function(){return this.date.getTime()};f.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
f.add=function(a){if(a.A||a.o){var b=this.getMonth()+a.o+12*a.A,c=this.getFullYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d;a:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:d=30;break a}d=31}d=Math.min(d,this.getDate());this.date.setDate(1);this.date.setFullYear(c);this.date.setMonth(b);this.date.setDate(d)}a.j&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.j),this.date.setDate(1),this.date.setFullYear(a.getFullYear()),
this.date.setMonth(a.getMonth()),this.date.setDate(a.getDate()),qR(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(),Pa(this.getMonth()+1),Pa(this.getDate())].join("")+""};function qR(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.date.valueOf()};function rR(){this.o=this.j=null}rR.prototype.reset=function(){this.o=this.j=null};function sR(){this.j=tR();this.H=-1;this.N=this.O=this.A=this.G=this.B=null;this.D=tR();this.o=null;this.R=this.I=this.J="";this.F=this.T=this.C=null}function tR(){return Math.floor(4503599627370496*Math.random())}var uR=new sR;sR.prototype.clear=function(){this.j=tR();this.A=this.G=this.B=null;this.D=tR();this.o=null;this.R=this.I=this.J="";this.F=this.T=this.C=null};function vR(a){if(iL.j)return"h.3.0.0";var b="h."+a.R;null!=a.C&&(b+="/n."+a.C,null!=a.B&&(b+="/"+a.B));return b};function wR(a,b){this.D=a;this.C=E(b,function(a){return a.clone()});this.B="";this.j=this.A=0;this.o=!0}function xR(a){a.B="";a.A=0;a.j=0;a.o=!0}wR.prototype.getContent=function(){return this.B};wR.prototype.clone=function(){var a=new wR(this.D,this.C),b=this.A,c=this.j,d=this.o;a.B=this.B;a.A=b;a.j=c;a.o=d;return a};function yR(){V.call(this);this.B=!1;this.impressionUrls=[]}A(yR,V);function zR(a){hm.call(this,a)}A(zR,hm);function AR(){yR.call(this);this.G=[];this.C=!1;this.A="not_loaded";this.o=null;this.D=0;this.j=null;this.H=new Cd}A(AR,yR);ba(AR);function BR(a){var b=["googletag","googletag.cmd"];return F(a,function(a){return jb(b,function(b){return!da(t(b,a))})})||null}f=AR.prototype;f.P=function(){this.o&&this.o.dispose()};f.initialize=function(){if(!this.B){var a;var b=qe(new Cd);try{t("googletag"),BR([b,b.top]),a=!0}catch(c){a=!1}a?CR(this):(this.B=!0,this.A="not_available")}};
function DR(a){return a.B?E(a.G,function(a){return a.clone()}):[]}function ER(a){a=DR(a);return null!=a?E(a,function(a){return a.C}):void 0}function FR(a,b,c){var d=0,e=0;null!=b&&(b=new J(b.adTagUrl),d=Number(uf(b,"pod")||0),e=Number(uf(b,"ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(uR.j,d,e,c)}catch(g){}}function GR(a,b){var c=HR(a);if(null!==c){FR(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}f.setVideoContent=function(a,b){var c=IR(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};
function JR(a,b){a.F=b;a.setVideoContent("","");var c=HR(a);FR(c,null,!1)}function HR(a){null==a.j&&KR(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.companionAds?a.j.googletag.companionAds():null}function IR(a){null==a.j&&KR(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.pubads?a.j.googletag.pubads():null}f.Pq=function(){0<this.D&&z()>=this.D?(this.B=!0,LR(this),MR(this)):CR(this)};function LR(a){a.o&&(a.o.stop(),a.o.Ka("tick",a.Pq,!1,a),a.o.dispose(),a.o=null)}
function CR(a){var b;if(b=!a.C)KR(a),b=null!=a.j&&null!=a.j.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.j)a.C=!0,c=[];else{var d=a.j.googleGetCompanionAdSlots();c=E(d,a.JC,a)}}catch(e){a.C=!0,c=[]}a.G=c;a.C=!0}if("retrieved"!=a.A&&"not_available"!=a.A&&!da(HR(a))){var g;b=HR(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.A=g;break;default:g=Number(g),isNaN(g)?a.A="not_available":
(a.F=g,a.A="retrieved")}}a.C&&"retrieved"==a.A?(a.B=!0,LR(a),a.Y(new zR("companions_success"))):a.C&&"not_available"==a.A?(a.B=!0,LR(a),MR(a)):a.o||(a.D=z()+5E3,a.o=new vn(100),a.o.M("tick",a.Pq,!1,a),a.o.start())}function KR(a){var b=qe(a.H);try{a.j=BR([b,b.top])}catch(c){a.j=null}}function MR(a){a.Y(new zR("companion_initialization_failed"))}f.JC=function(a){var b=E(a.adSizes,function(a){return new H(a.adWidth,a.adHeight)});return new wR(a.slotId,b)};
f.Ov=function(a){var b={};b.slotId=a.D;b.adContent=a.getContent();b.adWidth=a.A;b.adHeight=a.j;b.friendlyIframeRendering=a.o;return b};f.sendImpressionUrls=function(a){mK(this.impressionUrls,a)};function NR(a){hm.call(this,a)}A(NR,hm);function OR(){V.call(this);this.A=[]}A(OR,V);OR.prototype.po=function(){return!0};function PR(){return new QR("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new xe)}OR.prototype.Pe=function(){return null};function RR(a){OR.call(this);this.j=a;this.D=null;this.F=!1;this.o=null;this.C=new Bn;En(this.C,this.j,["companions_success","companion_initialization_failed"],this.pB,this);En(this.C,this.j,"companion_display_error",this.Vz,this);this.j.B?this.F=!0:this.j.initialize()}A(RR,OR);f=RR.prototype;f.destroy=function(){null!=this.C&&this.C.dispose();this.o=null};function SR(a,b){a.o=b;a.B=!0;a.F?TR(a):(a.B=UR(VR(b),[]),a.B||(a.o=null))}
function TR(a){var b=a.o;a.o=null;if(null!=a.j)if(nb(a.A))WR(a);else if(null!=b){var c=XR(a,b),d=a.j;try{d.j.googleSetCompanionAdContents(E(a.A,d.Ov,d)),d.sendImpressionUrls()}catch(e){d.Y(new zR("companion_display_error"))}if(0<c.length&&b.ga&&(d=a.j,0!=c.length&&"GDFP"==YR(b,!0))){a=[];for(var g=0;g<c.length;g++)a.push(c[g].D);b=b.A;c=HR(d);if(null!==c){FR(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else WR(a)}function WR(a){a.Y(new NR("companion_display_error"))}f.po=function(){return this.B};
f.pB=function(){null!=this.D&&(this.D.stop(),this.D.dispose(),this.D=null);if(null!=this.j){var a=DR(this.j);null!=a&&(this.A=a)}this.F=!0;null!=this.o&&TR(this);this.Y(new hm("initialized"))};f.Vz=function(){WR(this)};
function XR(a,b){var c=[],d=[];D(a.A,function(a){xR(a);ib(a.C,function(d){a:{var e=ZR(b);d=$R(new aS(new H(d.width,d.height)),e);if(!nb(d)&&(d=bS(d,c),null!=d)){e=d.A;if(null!=e&&0!=a.D.indexOf(e)){d=!1;break a}c.push(d);var e=d.getContent(),l=d.j.Cd(),p=d.getHeight();d="IFrame"!=d.j.W;a.B=e;a.A=l;a.j=p;a.o=d;d=!0;break a}d=!1}return d},this)||d.push(a)},a);var e=VR(b);a.B=UR(e,c);a.B||D(a.A,function(a){xR(a)},a);return d}
function UR(a,b){if(null==a)return!0;var c=a.j;return"all"==a.o?cS(c,b):"any"==a.o?dS(c,b):!0}function VR(a){return null==a||null==a.j||isNaN(a.j.j)?null:F(eS(a,!0),function(a){a=a.j;return nb(a)?!1:isNaN(a[0].j.j)?!1:a[0].j.j==fS(a[0])})}function cS(a,b){return jb(a,function(a){return G(b,a)})}function dS(a,b){return ib(a,function(a){return G(b,a)})}function bS(a,b){return F(a,function(a){return!G(b,a)})}f.Pe=function(){return this.j};function gS(a){hm.call(this,a);this.D=[];this.C={};this.A=null;this.B=!0}A(gS,hm);function hS(){this.o=new xe;this.j=.01>Math.random()&&!hL();this.B=0;this.A="0"}ba(hS);var iS=/iu\=\/(\d+)\//;hS.prototype.start=function(a){this.j&&this.o.set(a,z())};hS.prototype.end=function(a,b){if(this.j&&ze(this.o,a)){var c=z()-this.o.get(a),d=jS(this,a,c,b);kK(d);this.o.remove(a);this.B+=c}};function jS(a,b,c,d){d=d||{};var e=new J("https://csi.gstatic.com/csi?v=2&s=ima_sdk&action=html5");d.it=b+"."+c;d.sdkv=vR(uR);Jb(d,function(a,b){K(e,b,a)},a);return e.toString()}
function kS(a,b){if(null!=b){var c=xa(b),c=iS.exec(c);a.A=c&&2==c.length?c[1]:"0"}else a.A="0"};function lS(a,b,c){this.D=b;this.B=c;this.C=null;this.o=new Bn(this);this.I=a;this.A=this.j=null;this.F=!1}lS.prototype.start=function(a,b){this.C=a;this.H=b;mS(this);this.D.F?this.G():Hn(this.o,this.D,"initialized",this.G,this)};lS.prototype.G=function(){var a=this.D.Pe(),b;b=a.B?"retrieved"!=a.A?void 0:a.F:void 0;a=ER(a);null!=b&&(this.B.D=b);null!=a&&(this.B.F=a);nS(this)};
function nS(a){if(null===a.C)oS(a);else{var b=new J(a.C.adTagUrl),c=C(uf(b,"vid")),b=C(uf(b,"cmsid")),d=a.B.J,e=a.B.I;a.B.J=c;a.B.I=b;if(B(C(c))||B(C(b)))oS(a);else if(c==d&&b==e)oS(a);else{var g=a.D.Pe();g.setVideoContent(c,b);GR(g,a.C);a.A=new vn(100);En(a.o,a.A,"tick",function(){var a;a:{var b=IR(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&oS(this)},a);a.A.start()}}}
function mS(a){a.j=new vn;Hn(a.o,a.j,"tick",function(){oS(this)},a);wn(a.j,a.I);a.j.start()}function oS(a){null!=a.o&&(a.o.dispose(),a.o=null);null!=a.j&&(a.j.stop(),a.j=null);null!=a.A&&(a.A.stop(),a.A=null);a.F=!0;null===a.H||a.H()};function pS(){V.call(this);this.j=new xe;this.o=null;this.D=new Bn(this);R(this,this.D);this.C="";this.A=null}A(pS,V);var qS=null;function rS(){null!=qS||(qS=new pS);return qS}function sS(a,b){a.A=b}function tS(a,b){if(a.o){var c=a.j,d=window.setTimeout(function(){b("");D(c.Na(),function(a){c.get(a)===b&&c.remove(a)})},200);a.j.set(d,b);var e={};a.B&&(e.isFullscreen=a.B.ce());e.osdId=a.C;e.eventId=d;a.o.send("activityMonitor","fetchAdTagUrl",e)}else b("")}
function uS(a,b,c,d){if(a.o){var e=a.j,g=window.setTimeout(function(){d("");D(e.Na(),function(a){e.get(a)===d&&e.remove(a)})},200);a.j.set(g,d);var h={};a.B&&(h.isFullscreen=a.B.ce());a.C&&(h.osdId=a.C);h.queryId=c;h.eventId=g;h.vastEvent=b;h.isOverlay=null!=a.A;a.A&&(h.overlayBounds=mP(a.A));a.o.send("activityMonitor","reportVastEvent",h)}else d("")}pS.prototype.destroy=function(){this.D.Ka(this.o,"activityMonitor",this.F);this.o=null};
pS.prototype.F=function(a){var b=a.Ed,c=b.engagementString;switch(a.zc){case "appStateChanged":YO(b.appState,b.nativeTime);break;case "measurableImpression":c={};c.queryId=b.queryId;rS().Y(new LJ("measurable_impression",null,c));break;case "viewableImpression":c=b.viewabilityString;a={};a.queryId=b.queryId;a.viewabilityString=c;rS().Y(new LJ("viewable_impression",null,a));break;case "viewability":a=b.eventId;window.clearTimeout(a);var d=this.j.get(a);d&&(this.j.remove(a),d(b.viewabilityString,c));
break;case "engagement":if(a=b.eventId,window.clearTimeout(a),d=this.j.get(a))this.j.remove(a),d(c)}};q("ima.bridge.getNativeViewability",function(a,b){rS();b({})},void 0);function vS(){};function wS(a){return XK(PK,null,a.parentNode.nodeName,a.nodeName)}function xS(a){return XK(EK,null,a.parentNode.nodeName,a.nodeName)}function yS(a,b){return null!=a?gb(Yd(a),function(a){return a.nodeName==b}):[]}function zS(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function AS(a,b){if(null==a)return null;var c="";D(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=va(c);return b?Ha(c):c}
function BS(a,b,c,d){null!=a&&D(Yd(a),function(a){if(a.nodeName==b)c.call(d,a);else throw wS(a);})}function CS(a){return B(C(a))?NaN:Wa(C(a))}function DS(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new nR(0,0,0,Wa(c[0]),Wa(c[1]),Wa(c[2])),60*(60*(24*c.j+c.B)+c.C)+c.D}return null!=b?b:-1}function ES(a,b){if(!B(C(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};function FS(a,b,c){this.o=a;this.j=c;this.A=b};function GS(a){this.A=a};function HS(a){this.A=a;this.o=this.j=!1}A(HS,GS);function IS(a,b,c){this.j=a;this.o=b;this.A=c};function JS(){this.j=new xe}function KS(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];ze(a.j,c)&&(d=a.j.get(c,[]));D(b,function(a){null!=a&&pb(d,a)});a.j.set(c,d)};function LS(a,b){this.j=a;this.o=b}A(LS,vS);LS.prototype.A=function(){return new FS(this.j,null,MS(this))};
function MS(a){var b=new JS;D(Yd(Zd(a.j)),function(a){switch(a.nodeName){case "Preroll":a=NS(this,a);KS(b,a,0);break;case "Midroll":var d=zS(a,"timeOffset"),e=DS(d);if(-1==e)throw XK(qK,null,"timeOffset",C(d));a=NS(this,a);KS(b,a,e);break;case "Postroll":a=NS(this,a);KS(b,a,-1);break;default:throw XK(AK,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.j.Na().length)throw XK(zK);return b}
function NS(a,b){var c=[];D(Yd(b),function(a){switch(a.nodeName){case "Ad":var b=C(AS(a));if(!B(b)){a=zS(a,"bumper");var g=this.o.clone();g.adTagUrl=b;b=new HS(g);b.j=null!=a;b.o="always"==a;pb(c,b)}break;default:throw XK(AK,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function OS(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 PS(a){var b={};D(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=va(d[0]),d=va(d[1]),0<a.length&&(b[a]=d))});return b}function QS(a,b){if(a[b])return RS(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return RS(a[d]);return!1}
function RS(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};var SS=["ai","sigh"];function TS(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?-1!=a.indexOf("/pagead/adview")?US(a)?0:2:-1!=a.indexOf("/pagead/conversion")?US(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+vR(uR);var d=a.indexOf("&adurl=");c=-1!=d?Qa(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c}function US(a){return jb(SS,function(b){var c=a||"";return 0<=Xe(c,0,b,c.search(Ye))})};function VS(a,b){this.j=a;this.o=b}function WS(a){return a.o?-1:a.j}function XS(a,b){a.o&&(a.o=!1,a.j=a.j*b/100)};function YS(){this.j=new xe}function ZS(a,b){this.A=a;this.j=b}function $S(a,b){ZS.call(this,"progress",a);this.o=b}A($S,ZS);function aT(a,b){D(b,function(a){var b=a.A.toLowerCase(),e=bT(this,b);e.push(a);this.j.set(b,e)},a)}function cT(a,b,c,d){b=b.toLowerCase();var e=bT(a,b);null!=d?(d=new $S(c,d),null!=d?e.push(d):e.push(new ZS(b,c))):e.push(new ZS(b,c));a.j.set(b,e)}function bT(a,b){return null!=b?a.j.get(b.toLowerCase())||[]:[]}
function dT(a,b){var c=bT(a,"progress");D(c,function(a){XS(a.o,b)});Bb(c,function(a,b){return WS(a.o)-WS(b.o)})}YS.prototype.isEmpty=function(){return this.j.isEmpty()};function eT(a,b){return E(bT(a,b)||[],function(a){return a.j})};function fT(a,b){var c=new YS;BS(a,"Tracking",function(a){var e=zS(a,"event"),g=TS(AS(a),b);gT(g)&&null!=e&&("progress"==e?(a=zS(a,"offset"),a=hT(a),null!=a&&cT(c,e,g,a)):cT(c,e,g))});return c}function iT(a){if(B(C(a)))return null;a=new J(a);if("thismessage"!=a.Ob||"extensions"!=a.tb)return null;a=a.Hb;if(!ta(a,"/"))return null;a=a.substr(1);return B(C(a))?null:a}
function hT(a){if(B(C(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new VS(a,!0))):(a=DS(a),0<=a&&(b=new VS(a,!1)));return b}function gT(a){var b=!0;if(B(C(a)))b=!1;else try{new J(a)}catch(c){b=!1}return b};function jT(a,b){this.j=null!=a?a:new YS;this.F=null!=b?b:[]}function kT(a,b){var c=b.j;D(c.Na(),function(a){aT(this.j,c.get(a))},a)}function lT(a,b){var c=eT(a.j,b);return null!=c?c:[]};function mT(){this.j="Ads by Google";this.o="http://www.google.com/adsense/support";this.A=0};function nT(a,b,c,d,e,g,h,k,l,p){jT.call(this,l,p);this.B=a;this.C=b;this.A=c;this.G=h;this.D=g;this.o=e}A(nT,jT);function oT(){}oT.prototype.parse=function(a){var b;BS(a,"config",function(a){null!=b||(b=pT(this,a))},this);return b};function pT(a,b){var c;D(Yd(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new mT:null;break;case "params":null!=c&&qT(this,c,a)}},a);return c}function qT(a,b,c){D(Yd(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.o=c;break;case "attribution_text":b.j=c;break;case "signals":b.A=parseInt(c,10)}},a)};function rT(){}
rT.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k,l=!1;D(Yd(a),function(a){switch(a.nodeName){case "AttributionText":c=AS(a);break;case "AttributionUrl":d=AS(a);break;case "ConversionUrl":g=AS(a);break;case "CustomTracking":null!=Yd(a)&&(e=fT(a));break;case "CheckedEvents":a=Yd(a);b=E(a,function(a){return zS(a,"id")});null!=b||(b=[]);break;case "PreviousAdInformation":AS(a);break;case "VisibleUrl":h=AS(a);break;case "UI":k=(new oT).parse(a);break;case "ShowYouTubeAnnotations":var r=AS(a);
l=ES(C(r),!1);case "QueryId":AS(a)}},this);null!=k||(k=new mT);return new nT(c,d,g,0,h,k,l,0,e,b)};function sT(a,b){jT.call(this,b);this.o=a}A(sT,jT);function tT(){}tT.prototype.parse=function(a){if(null==a)return null;var b;D(Yd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Yd(a)&&(b=fT(a))}});a=null;null!=b&&0<bT(b,"skip").length&&(a="Generic");return new sT(a,b)};function uT(){}uT.prototype.parse=function(a){if(null==a)return null;var b,c;D(Yd(a),function(a){switch(a.nodeName){case "SkippableAdType":b=AS(a);break;case "CustomTracking":null!=Yd(a)&&(c=fT(a))}});return new sT(b,c)};function vT(){}vT.prototype.parse=function(a){if(null==a)return null;var b;D(Yd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Yd(a)&&(b=fT(a))}},this);return new jT(b)};function wT(a){jT.call(this);this.o=a}A(wT,jT);function xT(){}xT.prototype.parse=function(a){a=qD(a);return B(C(a))?null:new wT(a)};function yT(a){jT.call(this);this.o=a}A(yT,jT);function zT(){jT.call(this)}A(zT,jT);function AT(){}AT.prototype.j={Dv:"TEMPLATE_PARAMETERS",Ev:"TEMPLATE_URL"};AT.prototype.parse=function(a){if(null==a)return null;D(Yd(a),function(a){switch(a.nodeName){case this.j.Dv:BT(this,a)}},this);return new zT};function BT(a,b){D(Yd(b),function(a){a.nodeName==this.j.Ev&&AS(a)},a)};function CT(a,b,c,d){jT.call(this);this.A=a;this.B=b;this.C=c;this.o=d}A(CT,jT);function DT(){}DT.prototype.j={fv:"Line1",gv:"Line2",hv:"Line3",dv:"ImageUrl"};DT.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;D(Yd(a),function(a){switch(a.nodeName){case this.j.fv:b=AS(a,!0);break;case this.j.gv:c=AS(a,!0);break;case this.j.hv:d=AS(a,!0);break;case this.j.dv:e=AS(a)}},this);return new CT(b,c,d,e)};function ET(a){jT.call(this);this.o=a}A(ET,jT);function FT(){}FT.prototype.parse=function(a){if(null==a)return null;var b;D(Yd(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),B(C(a))||(b=a)}},this);return new ET(b)};function GT(a){jT.call(this);this.o=a}A(GT,jT);function HT(){}HT.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Wa(a):NaN;a=isNaN(a)?-1:a;return new GT(a)};function IT(){jT.call(this)}A(IT,jT);function JT(){}JT.prototype.parse=function(a){return null!=a?new IT:null};function KT(a){jT.call(this);this.o=isNaN(a)?-1:a}A(KT,jT);function LT(){}LT.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Wa(a):NaN;return new KT(a)};function MT(a,b,c,d){this.Ea=a;this.j=Pc(c||0,0,1);this.o=null!=d?d:!0}MT.prototype.getId=function(){return this.Ea};function NT(a){this.Ea=a;this.o=new xe;this.j=null}function OT(a){var b=Math.random(),c=0,d=a.o.Qa();D(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 PT(){this.j=new xe;QT(this,41351090);QT(this,41351091);QT(this,41351040);QT(this,41351041);QT(this,41351042);QT(this,41351043);RT(this)}var ST=null;function TT(){ST||(ST=new PT);return ST}function QT(a,b){if(!(B(C("GvnExternalLayer"))||isNaN(b)||0>=b)){var c=new MT(b,0,.01);UT(a,"GvnExternalLayer").o.set(c.getId(),c)}}function RT(a){cL()||D(a.j.Qa(),function(a){OT(a)},a)}
function VT(a,b,c){D(b,function(a){var b=Number(a),g="forcedLayer"+a;isNaN(b)||0>=b||B(C(g))||(a=null!=c?c:!0,g=UT(this,g),b=new MT(b,0,0,a),g.j=b)},a)}function WT(a){var b=TT();return ib(b.j.Qa(),function(b){return!!b.j&&b.j.getId()==a})}function XT(a){var b=[];D(a.j.Qa(),function(a){(a=a.j)&&a.o&&b.push(a.getId())});return b.sort().join(",")}function UT(a,b){var c=a.j.get(b);null==c&&(c=new NT(b),a.j.set(b,c));return c};function ZT(a){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.o=b.title,this.j=Sb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}}ZT.prototype.videoCount=0;function $T(a){if(a&&a.items&&a.items.length){a=a.items[0];this.videoId=a.id;var b=a.snippet;a.snippet&&(this.channelId=b.channelId,this.title=b.title);if(a=a.status)this.j="unlisted"!=a.privacyStatus}}$T.prototype.j=!0;function aU(){}var bU={IMAGE:"Image",Vu:"Flash",ALL:"All"},cU={HTML:"Html",IFRAME:"IFrame",STATIC:"Static",ALL:"All"},dU={IH:"IgnoreSize",YI:"SelectExactMatch",ZI:"SelectNearMatch"};function aS(a){if(null==a||0>=a.width||0>=a.height)throw ZK(wK,null,"ad slot size",a.toString());this.o=a;this.j=new aU;this.C=eU(cU,this.j.A)?this.j.A:"All";this.B=eU(bU,this.j.creativeType)?this.j.creativeType:"All";this.F=eU(dU,this.j.B)?this.j.B:"SelectExactMatch";this.A=null!=this.j.o?this.j.o:[];this.D=ga(this.j.j)&&0<this.j.j&&100>=this.j.j?this.j.j:90}
function $R(a,b){var c=[];D(b,function(a){!B(C(a.j.B))&&(isNaN(a.j.j)||isNaN(fS(a))||fS(a)==a.j.j)&&fU(this,a)?c.push(a):(a=gU(this,a),null!=a&&!B(C(a.j.B))&&c.push(a))},a);return c}
function fU(a,b){var c;if(c="Flash"!=b.getContentType()||yM){if(c="All"==a.C||a.C==b.j.W)c=b.getContentType(),c=null!=c?"All"==a.B||a.B==c:!0;c&&(c=b.A,c=nb(a.A)?!0:null!=c?0<=eb(a.A,c):!1)}c?(c=b.j.Jc(),c="IgnoreSize"==a.F||Tc(a.o,c)?!0:"SelectNearMatch"==a.F&&(c.width>a.o.width||c.height>a.o.height||c.width<a.D/100*a.o.width||c.height<a.D/100*a.o.height?!1:!0)):c=!1;return c}function gU(a,b){var c=b.o;return null!=c?F(c,function(a){return fU(this,a)},a):null}
function eU(a,b){return null!=b&&Pb(a,b)};function hU(a){J.call(this,a);this.o=new xe;a=this.Hb;var b=a.indexOf(";"),c=null;0<=b?(ef(this,a.substring(0,b)),c=a.substring(b+1)):ef(this,a);iU(this,c)}A(hU,J);hU.prototype.toString=function(){return jU(this,hU.K.toString.call(this))};hU.prototype.dp=function(){return""};hU.prototype.Kf=function(){return""};
function iU(a,b){B(C(b))||D(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=xa(a.substring(0,b));a=xa(a.substring(b+1));b=this.o.get(e);null!=b?G(b,a)||b.push(a):b=[C(a)];this.o.set(e,b)}},a)}function kU(a){if(B(C("ord")))return null;a=a.o.get("ord");return null!=a?a:null}function lU(a,b,c){B(C(b))||(c=E(c,C),a.o.set(b,c))}function jU(a,b){var c=[C(b)];vb(c,mU(a));return c.join(";")}
function mU(a){var b=kU(a);null!=b?B(C("ord"))||a.o.remove("ord"):b=[C(z())];var c=[];D(a.o.Na(),function(a){D(this.o.get(a),function(b){vb(c,a+"="+b)})},a);vb(c,"ord="+b[0]);lU(a,"ord",b);return c}hU.prototype.clone=function(){return new hU(this.toString())};function nU(a){a=a.adTagUrl;if(null==a)return!1;a=new J(a);var b=a.Hb;return ua(a.tb,"googleads.g.doubleclick.net")&&oU("/pagead/ads",b)}function pU(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==of(new J(a)):!1}function qU(a){a=a.adTagUrl;if(null==a)return!1;var b=new hU(a);a=b.tb;b=jU(b,b.Hb);return!ua(a,".g.doubleclick.net")&&ua(a,"doubleclick.net")&&oU("/(ad|pfad)[x|i|j]?/",b)}
function rU(a){a=a.adTagUrl;if(null==a)return!1;a=new J(a);var b=a.Hb;return ua(a.tb,"doubleclick.net")&&oU("/gampad/ads",b)}function oU(a,b){return B(C(b))?!1:(new RegExp(a)).test(b)};function sU(){this.o=this.B=1;this.j=this.A=0;this.C=1};function tU(){this.I={};this.Ga="";this.Tf=new YS}tU.prototype.Yl=function(){return null};function uU(a,b,c){a.Ga=b;a.I=c}tU.prototype.wh=function(a){this.gb=a};tU.prototype.getAd=function(){return this.gb};function vU(a,b){var c=[],d=a.N();D(d,function(a){a=bT(a.Tf,b)||[];c=tb(a,c)},a);return c}tU.prototype.N=function(){for(var a=[this],b=this.gb.o;b;){var c=wU(this,b)||wU(this,b,!0);null!=c&&a.push(c);b=b.o}return a};
function wU(a,b,c){var d=c||!1;return F(b.B,function(a){var b=a.j==this.j;return a instanceof this.constructor&&(d||b)},a)};function xU(a,b,c,d,e,g){tU.call(this);this.ba=a;this.A=b;this.o=c;this.H=ub(d);this.la=this.ga=null;this.B=e;this.da=ub(g);yb(this.da,null,function(a){return a.H})}A(xU,tU);xU.prototype.$c=function(){return this.A};function yU(a){var b=new xe,c=a.N();D(c,function(a){if(a instanceof xU){var c=a.o;D(c.Na(),function(a){b.set(a,tb(c.get(a),b.get(a)||[]))},this)}},a);return b}
xU.prototype.getMediaUrl=function(a){var b="";ib(this.H,function(c){var d=c.o;return!B(C(a))&&a!=c.j||null==d||B(C(d))?!1:(b=d,!0)},this);return b};xU.prototype.setMediaUrl=function(a){this.la=a};xU.prototype.Yl=function(){var a=F(this.H,function(a){return!B(C(a.j))&&-1!=a.j.indexOf("javascript")&&("VPAID"==a.A||"surveys"==a.A)});return null!=a?a.o:null};function zU(a,b,c){Q.call(this);this.o=a;this.A=b;this.B=c;this.D=0;this.j=new Bn(this);AU(this)}A(zU,Q);function AU(a){a.B.forEach(function(a,c){this.j.M(c,"mousedown",this.F);this.j.M(c,"mouseup",this.H)},a);a.j.M(a.A,"mouseover",a.G)}zU.prototype.F=function(){this.C=z()};
zU.prototype.H=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.o&1&&c.push("nm="+this.D);this.o&2&&c.push("nb="+this.B.get(b));if(this.o&8){var d=Rg(this.A);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.o&16&&null!=this.C&&c.push("clkt="+(z()-this.C));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};zU.prototype.G=function(){this.D++};zU.prototype.P=function(){zU.K.P.call(this);this.j.dispose()};function BU(a,b,c,d,e){tU.call(this);B(C(a))&&(a=Va()+"_ima");this.Ea=C(a);this.sa=b;this.W=c;this.U=d;this.B=e;this.aa=[];null!=this.U?this.Z=ZJ[this.U]||"Other":this.Z=null}A(BU,tU);f=BU.prototype;f.getContent=function(){var a;a=this.Qe();if("outerHTML"in a)a=a.outerHTML;else{var b=Dd(a).createElement("DIV");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.Z};f.Jc=function(){return this.sa};f.Cd=function(){return this.Jc().width};f.getHeight=function(){return this.Jc().height};
f.Yl=function(){return"VPAID"==this.G?this.B:null};f.$c=function(){return this.O};function CU(a,b,c,d,e){BU.call(this,a,b,c,d,e);this.na=-2;this.A=null;this.T=this.J=v;this.R=[];this.oa=!0;this.X=[];this.F=!1}A(CU,BU);function DU(a,b){a.A=b;null!=a.o&&null!=b&&(EU(a,a.J),FU(a,a.T))}function EU(a,b){null!=a.A&&null!=a.o&&D(a.R,function(a){this.A.Ka(a,"click",this.J);B(C(this.$c()))||this.A.M(a,"click",b)},a);a.J=b}function FU(a,b){null!=a.A&&null!=a.o&&(a.A.Ka(a.o,"creativeview",a.T),a.A.M(a.o,"creativeview",b));a.T=b}function GU(a){D(a.X,function(a){Wd(Ed(a))},a);a.X=[]}
CU.prototype.C=function(a){null==this.A||B(C(this.$c()))||(this.A.M(a,"click",this.J),this.R.push(a))};CU.prototype.Qe=function(){null==this.o&&(this.o=this.Bf(),Ud(this.o,HU(this)));null!=this.A&&this.A.M(this.o,"creativeview",this.T);return this.o};function IU(a,b){var c=a.Ea,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.Cd()+"px");B(C(c))||(d.id=c);return I("div",d,b)}CU.prototype.Zo=function(){return 2};
function HU(a){if(!a.oa)return null;var b=vU(a,"start");vb(b,vU(a,"creativeview"));if(null!=b&&!nb(b)){var c=[];D(b,function(a){if(!B(C(a))){var b;b=Bd();var g;g=x(void 0)?vc(void 0).$d():"";b=b.Jw("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+g,src:'javascript:""'});Fg(b,{display:"block",height:"0px",width:"0px"});g="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",hK(a.j));b.setAttribute("id",g);this.X.push(g);pb(c,
b)}},a);return c}return null}function JU(a,b){if(null!=a.o){var c=new xe;D(a.R,function(a){c.set(a,this.Zo(a))},a);new zU(b,a.o,c)}}function KU(a){var b=[],c=a.N();D(c,function(a){b=tb(b,a.aa)},a);return b}CU.prototype.N=function(){var a=[this],b;for(b=this.getAd().o;b;){var c=this.F?wU(this,b)||wU(this,b,!0):LU(this,b)||LU(this,b,!0);null!=c&&a.push(c);b=b.o}return a};function LU(a,b,c){var d=c||!1;return F(b.B,function(a){var b=a.j==this.j;return this instanceof a.constructor&&(d||b)},a)};function QR(a,b,c,d,e,g,h,k,l,p,r,u,w,S,T,ka){V.call(this);this.Z=a;this.R=b;this.T=c;this.Da=d;this.W=new Bn(this);MU(this);this.na=isNaN(h)||""==h||0==h?-1:h;this.U=k?ub(k):[];this.F=l?ub(l):[];this.B=p?ub(p):[];this.ba=r?ub(r):[];this.D=[];D(this.ba,function(a){vb(this.D,ub(a.j))},this);this.ga=!0;this.o=this.j=null;this.G=new xe(u);this.H=null!=ka;this.ya=(this.I=null!=w)?S||!1:!1;this.Ca=this.Uy?T||!1:!1;this.Ha=C(w);this.La=C(ka);this.wa=this.A=null;this.C=new sU;this.da=new H(0,0);this.X=String(Math.floor(1E9*
Math.random()));this.J=this.O=this.N=null;this.sa=z();this.oa=this.la=0;D(tb(this.B,this.D),function(a){a.wh(this)},this);hL()&&NU(this)&&(this.D=gb(this.D,function(a){return 60>=a.getHeight()}))}A(QR,V);function OU(a){var b;b=PU(a);b=QS(b,"hideMaster")||QS(b,"blockAllAds")?"3":NU(a)?QU(a)?RU(a)?"2_1":"2_2":"2":"1";return(SU(a,WJ)||SU(a,YJ)?1:SU(a,VJ)?2:0)+"_"+b}function TU(a){return null!=a.R?a.R:""}function YR(a,b){return b?UU(a)[0]:a.T}function VU(a){return null!=a.o?tb(VU(a.o),a.U):a.U}
function WU(a){return null!=a.o?tb(WU(a.o),a.F):a.F}f=QR.prototype;f.getContentType=function(){var a=this.j,b="";if(null===a)return b;if(a instanceof xU)a=a.ga,null===a||(b=C(a.j));else if(a instanceof CU)switch(a.W){case "IFrame":case "Html":case "Static":b=C(a.U)}return b};function ZR(a){return null!=a.o?tb(a.D,ZR(a.o)):a.D}function PU(a){return null!=a.j?a.j.I:{}}function XU(a){var b={};D(a.B,function(a){a=a.I;for(var d in a)b[d]=a[d]});return b}function YU(a){return null!=a.j?a.j.Ga:""}
f.getExtension=function(a){return this.G.get(a)};function ZU(a,b){a.j=b;a.da=null!=a.j&&a.j instanceof CU?a.j.Jc():new H(0,0)}function $U(a){return a.j}f.kx=function(a){a.A.queryId==this.X&&this.Y(new LJ("measurable_impression",this,a.A))};f.Ux=function(a){a.A.queryId==this.X&&this.Y(new LJ("viewable_impression",this,a.A))};function aV(a){return null!=a.Z?a.Z:""}function bV(a){if(null==a.o)return[];var b=[aV(a.o)];vb(b,bV(a.o));return b}
function cV(a){var b=bV(a).reverse();b.push(aV(a));return b}function dV(a){if(null==a.o)return[];var b=[TU(a.o)];vb(b,dV(a.o));return b}function eV(a){if(!hL())return null;a=a.getExtension("viral");return null!=a?a.o:null}function fV(a){var b=dV(a).reverse();b.push(TU(a));return b}function UU(a){if(null==a.o)return[a.T];var b=UU(a.o);b.push(a.T);return b}function gV(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.o?a.o:-1}
function hV(a){if(-1!=a.na)return a.na;a=a.getExtension("pod");return null!=a&&-1!=a.o?a.o:-1}function eS(a,b){return b||null==a.o?a.ba:tb(a.ba,eS(a.o))}function iV(a,b){return ib(a.B,function(a){return a instanceof xU&&"linear"==b||a instanceof CU&&"nonlinear"==b?!0:!1})}function NU(a){return jV(a)?"video"==a.Da:iV(a,"linear")}function QU(a){return null!=kV(a)}function lV(a,b){var c=kV(a);if(!c)return null;XS(c,b);return WS(c)}
function kV(a){var b=new VS(5,!1),c=mV(a);if("implicit"==c)return b;var d=a.j,e=null;null!=d&&d instanceof xU&&(e=d.B);null!=e||"explicit"!=c||(e=b);return null!=e&&hL()?isNaN(a.A.A)?b:new VS(a.A.A,!1):e}function mV(a){if(null!=F(a.G.Qa(),function(a){return!nb(lT(a,"skip"))}))return"implicit";var b=a.G.get("DFP");if(b instanceof sT)switch(b.o){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.j;return hL()&&null!=a&&(a=a.Tf,null!=a&&!nb(bT(a,"skip")))?"explicit":"none"}
function nV(a){return null!=a.A&&(nU(a.A)||rU(a.A)||qU(a.A))}function RU(a){if(null==a.R||null==a.A)return!1;var b;(b=nV(a)||!1)&&!(b=jV(a)&&!oV(a,["ADSENSE/ADX"]))&&(oV(a,YJ)?(b=a.G.get("DFP"),b=null!=b?"InstreamSelect"==b.o:!1):b=!1);if(b||a.o&&a.o.H&&nV(a.o))return!0;a=SU(a,["ADSENSE/ADX"])||a.o&&SU(a,VJ);return hL()&&!a}f.Uy=function(){return this.I};function pV(a){return null===a.j?null:a.j.$c()}function qV(a){return null==a.j||a.j instanceof CU?-1:a.j.ba}
function rV(a){return null===a.j?null:a.j.Yl()}function jV(a){return oV(a,VJ)}function sV(a){var b=rV(a);return oV(a,["402"])||x(b)&&!da(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))}f.getHeight=function(){return this.da.height};function tV(a){return a.N}f.toString=function(){return"Ad: "+this.Z};function oV(a,b){return null!=a.R?G(b,a.T):!1}function SU(a,b){for(var c=UU(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(G(b,c[d]))return!0;break}return!1}
function MU(a){var b=iL.j?jP():rS();a.W.M(b,"measurable_impression",a.kx);a.W.M(b,"viewable_impression",a.Ux)}function uV(a){var b=sV(a)&&hL();return null!=rV(a)&&b}f.P=function(){null!=this.W&&this.W.dispose();QR.K.P.call(this)};function vV(a,b){this.j=a;this.o=b};function wV(a,b,c){this.j=a;this.o=b;this.A=c}wV.prototype.getContent=function(){return this.j.getContent()};wV.prototype.getContentType=function(){return this.j.getContentType()};wV.prototype.getHeight=function(){return this.j.getHeight()};function fS(a){a=$U(a.j.getAd());return null!=a?a.j:NaN}wV.prototype.wh=function(a){this.j.wh(a);D(this.o,function(b){b.wh(a)},this)};function xV(a,b,c){this.o=a;this.j=b;this.A=c}xV.prototype.getContentType=function(){return null!=this.j?ZJ[this.j]||"Other":null};function yV(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+bQ(a.wd)+'"><img src="'+bQ(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+bQ(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+bQ(a.wd)+'" target="_blank" dir='+bQ(a.dir)+">"+bQ(a.title)+'</a><div class="text-description" dir='+bQ(a.dir)+">"+bQ(a.text)+"</div>"+(a.qs?'<a target="_blank" href="'+
bQ(a.wd)+'" class="text-ad-channel">'+bQ(a.qs)+"</a>":"")+"</div></div>"}
function zV(a){return'<div class="flash-container '+(a.zf?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+bQ(a.wd)+'"></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="'+bQ(a.width)+'" height="'+bQ(a.height)+'"><param name="movie" value="'+bQ(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+sQ(a.wd)+
'"><embed width="'+bQ(a.width)+'" height="'+bQ(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+bQ(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+sQ(a.wd)+'"></object></div>'}function AV(a){return'<div class="image-container" id="'+bQ(a.id)+'" style="width:'+bQ(a.width)+";height:"+bQ(a.height)+'"><a target="_blank" href="'+bQ(a.wd)+'"><img src="'+bQ(a.url)+'" border="0"></a></div>'};function BV(a,b,c,d){CU.call(this,a,b,"Static",c,d);this.wo=!1}A(BV,CU);BV.prototype.Bf=function(){var a=this.G,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:hK(C(this.B)),width:this.Cd(),height:this.getHeight(),wd:this.$c(),zf:this.wo||!a},a=XP(zV,a);a.style.width=this.Cd()+"px";a.style.height=this.getHeight()+"px";a.id=this.Ea;D(a.getElementsByTagName("object"),this.C,this);D(a.getElementsByTagName("a"),this.C,this);return a};function CV(a,b,c,d){CU.call(this,a,b,"Html",c,d)}A(CV,CU);CV.prototype.Bf=function(){var a=I("div");a.innerHTML=this.B;this.C(a);return IU(this,a)};function DV(a,b,c,d){CU.call(this,a,b,"Static",c,d)}A(DV,CU);DV.prototype.getContent=function(){var a=DV.K.getContent.call(this);this.F&&(a=a.replace('<img src=""','<img src="'+hK(C(this.B))+'"'));return a};DV.prototype.Bf=function(){var a="";this.F||(a=hK(C(this.B)));a={id:this.Ea,url:a,wd:this.$c(),width:this.Cd()+"px",height:this.getHeight()+"px"};a=XP(AV,a);D(a.getElementsByTagName("a"),this.C,this);return a};function EV(a,b){CU.call(this,a,b,"Static","text","")}A(EV,CU);f=EV.prototype;f.Jc=function(){return new H(this.Cd(),this.getHeight())};f.getHeight=function(){return 63};f.Cd=function(){return null!=this.D?$g(this.D).width:0};f.Zo=function(a){return oh(a,"text-image")?9:oh(a,"text-ad-channel")?1:0};
f.Bf=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.A,e="rtl";null!=d&&(e=ic.test(hc(d,void 0))?"rtl":"ltr");d={title:d,text:c.B+" "+c.C,dir:e,wd:this.$c()};if(c=c.o)d.image=hK(c),a=F(a.B,function(a){return a instanceof xU}),null!=a&&(d.duration=OS(a.ba));b.o&&(d.qs=b.o);this.D=XP(yV,d);D(this.D.getElementsByTagName("a"),this.C,this);this.D.id=this.Ea;this.D.style.height=this.getHeight()+"px";return this.D};function FV(a,b,c,d,e){CU.call(this,a,b,c,d,e)}A(FV,CU);FV.prototype.Bf=function(){var a=C(this.B);B(C(this.$c()))||(a=new J(a),K(a,"clickTAG",wa(this.$c())),a=a.toString());var b=I("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.Cd());b.setAttribute("src",hK(a));this.C(b);return IU(this,b)};function GV(a,b,c){if(nb(c))return new CU(a,b,"",null,"");var d=HV(c);c=d.o;var e=d.j,d=d.A;switch(c){case "Html":return new CV(a,b,e,d);case "Static":switch(ZJ[e]){case "Image":return new DV(a,b,e,d);case "Flash":return new BV(a,b,e,d);case "Text":return new EV(a,b)}}return new FV(a,b,c,e,d)}
function HV(a){var b=F(a,function(a){return"Static"==a.o&&"Flash"==ZJ[a.j]}),c=F(a,function(a){return"IFrame"==a.o}),d=F(a,function(a){return"Html"==a.o}),e=F(a,function(a){return"Static"==a.o&&"Image"==ZJ[a.j]}),g=F(a,function(a){return"Static"==a.o&&"Text"==ZJ[a.j]});return yM&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function IV(a,b,c,d,e){var g=HV(e),h=GV(a.id,a.size,[g]);h.F=!0;h.G=a.apiFramework;h.O=b;h.j=c;d&&(h.Tf=d);qb(e,g);var k=[];D(e,function(e){e=GV(a.id,a.size,[e]);e.F=!0;e.G=a.apiFramework;e.O=b;e.j=c;d&&(e.Tf=d);k.push(new wV(e,[],a.adSlotId))});return new wV(h,k,a.adSlotId)};function JV(a,b,c,d,e,g,h){this.A=a;this.H=b;this.C=c;this.D=d;this.o=e;this.F=g;this.G=h;this.j=this.A.Bf()}JV.prototype.Qe=function(){return this.j};
JV.prototype.display=function(a){this.B=a;this.B.appendChild(this.j);a=this.j;var b=Yg(this.B),b="left"==this.C?"0px":"right"==this.C?b.width-this.A.Jc().width+"px":this.C+"px",c;c=Yg(this.B);c="bottom"==this.D?"0px":"top"==this.D?c.height-this.A.Jc().height+"px":c.height-this.A.Jc().height-Za(this.D)+"px";Fg(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});bh(this.j,!1)};
JV.prototype.update=function(a,b){var c=null!=this.F?WS(this.F):0;this.o=0<=this.o?this.o:b;c<=a&&c+this.o>=a?KV(this):bh(this.j,!1)};function KV(a){"none"==a.j.style.display&&(bh(a.j,!0),D(a.G,function(a){kK(a)}))};function LV(a,b,c,d,e,g,h,k,l,p){b=GV("icon"+a,b,p);b.G=h;b.O=k.iconClickThrough;return new JV(b,a,c,d,e,g,l)};function MV(a){this.B=a;this.logger=null}A(MV,vS);
MV.prototype.j={gu:"Ad",Dk:"AdParameters",iu:"AdSystem",ju:"AdTitle",tG:"Advertiser",mu:"AltText",ru:"ClickThrough",su:"ClickTracking",tu:"Companion",COMPANION_ADS:"CompanionAds",uu:"CompanionClickThrough",vu:"CompanionClickTracking",Fu:"Creative",dH:"CreativeExtensions",Gu:"Creatives",Ju:"CustomClick",Mu:"Description",Ek:"Duration",ERROR:"Error",Qu:"Extension",Ru:"Extensions",$h:"HTMLResource",Yu:"Icon",Zu:"Icons",$u:"IconClicks",av:"IconClickThrough",bv:"IconClickTracking",cv:"IconViewTracking",
bi:"IFrameResource",co:"Impression",INLINE:"InLine",LINEAR:"Linear",lv:"MediaFile",mv:"MediaFiles",qv:"NonLinear",NON_LINEAR_ADS:"NonLinearAds",rv:"NonLinearClickThrough",sv:"NonLinearClickTracking",II:"Pricing",ci:"StaticResource",Cv:"Survey",DJ:"Tracking",Gk:"TrackingEvents",NJ:"VAST",Gv:"VASTAdTagURI",Hv:"VideoClicks",WRAPPER:"Wrapper"};
MV.prototype.o={hu:"adSlotID",lu:"allowMultipleAds",Zh:"apiFramework",qu:"bitrate",Hu:"creativeType",Lu:"delivery",Ek:"duration",EVENT:"event",Wu:"followAdditionalWrappers",Ou:"expandedHeight",Pu:"expandedWidth",Fk:"height",ai:"id",iv:"maintainAspectRatio",kv:"maxBitrate",ov:"minBitrate",pv:"minSuggestedDuration",tv:"offset",uv:"program",vv:"required",xv:"scalable",eo:"sequence",zv:"skipoffset",fo:"type",VERSION:"version",Iv:"codec",Hk:"width",Jv:"xPosition",Kv:"yPosition"};
function NV(a){if(null==a)return!1;a=Zd(a);return null!=a&&"VAST"==a.nodeName}function OV(a){if(null==a)return 0;a=parseInt(a.getAttribute("version"),10);return ga(a)&&!isNaN(a)?a:0}function PV(a){var b=[],c=Zd(a.B),d=OV(c);BS(c,a.j.gu,function(a){var c;c=QV(a);if(null==c)throw wS(a);var h=a.getAttribute(this.o.ai);a=Number(a.getAttribute(this.o.eo));c=RV(this,c,h||null,a||0);null!=c&&(c.oa=d,b.push(c))},a);return b}MV.prototype.A=function(){return new FS(this.B,PV(this),null)};
function QV(a){var b=null;D(Yd(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw wS(a);}});return b}
function RV(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],r=new xe,u,w=b.nodeName==a.j.WRAPPER,S=w,T=w,ka;D(Yd(b),function(a){switch(a.nodeName){case this.j.Gv:if(w){if(null!=u)throw xS(a);u=AS(a);ka=iT(u);S=ES(b.getAttribute(this.o.lu),S);T=ES(b.getAttribute(this.o.Wu),T)}else throw wS(a);break;case this.j.iu:e=AS(a);break;case this.j.ju:g=AS(a);break;case this.j.Mu:AS(a);break;case this.j.Cv:AS(a);break;case this.j.co:a=AS(a);gT(a)&&h.push(TS(a));break;case this.j.ERROR:a=AS(a);k.push(TS(a));break;case this.j.Gu:a=
SV(this,a);l=a.creatives;p=a.hw;break;case this.j.Ru:r=TV(this,a,ka)}},a);return new QR(C(c),e,UV(e),g,0,0,d,k,h,l,p,r,u,S,T,VV(r))}function VV(a){var b=null;a=a.get("AdSense");null!=a&&(a=lT(a,"vast2tracking"),null!=a&&!nb(a)&&(b=a[0]));return b}function UV(a){if(B(C(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 WV(a){if(B(C(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function TV(a,b,c){var d=new xe;try{var e=yS(b,a.j.Qu);D(e,function(a){var b=a.getAttribute(this.o.fo);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new JT).parse(a);break;case "pod":a=(new HT).parse(a);break;case "waterfall":a=(new LT).parse(a);break;case "dart":a=(new tT).parse(a);break;case "dfp":b="DFP";a=(new uT).parse(a);break;case "adsense":b="AdSense";a=(new rT).parse(a);break;case "textad":b="TextAd";a=(new DT).parse(a);break;case "templatead":b="TemplateAd";a=(new AT).parse(a);break;
case "infocards":var b="InfoCards",e=new xT;a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new xT;a=e.parse(a);break;case c:b="LocalRedirect";null!=a?(e=null,a=yS(a,"AdXml"),1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+qD(Zd(a[0]))),a=new yT(e)):a=null;break;case "viral":b="viral";a=(new FT).parse(a);break;default:e=new vT,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(kT(e,a.j),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function SV(a,b){var c=[],d=[];BS(b,a.j.Fu,function(a){var b=a.getAttribute(this.o.eo),h;B(C(b))||(h=parseFloat(b));a.getAttribute(this.o.ai);var k=!1;D(Yd(a),function(a){switch(a.nodeName){case this.j.LINEAR:if(k)throw xS(a);a=XV(this,a,isNaN(h)?0:h);vb(c,a);k=!0;break;case this.j.COMPANION_ADS:if(k)throw xS(a);a=YV(this,a,isNaN(h)?void 0:h);vb(d,a);k=!0;break;case this.j.NON_LINEAR_ADS:if(k)throw xS(a);a=ZV(this,a,isNaN(h)?0:h);vb(c,a);k=!0}},this)},a);return{creatives:c,hw:d}}
function ZV(a,b,c){var d=[],e=new YS;D(Yd(b),function(a){switch(a.nodeName){case this.j.qv:a=$V(this,a,c);null!=a&&d.push(a);break;case this.j.Gk:e=fT(a);break;default:throw wS(a);}},a);0!=d.length||e.isEmpty()||(a=new CU(null,new H(-1,-1),"",null,""),a.j=c,d.push(a));D(d,function(a){e&&(a.Tf=e)});return d}
function aW(a,b){var c={};c.id=b.getAttribute(a.o.ai);c.adSlotId=b.getAttribute(a.o.hu);c.apiFramework=b.getAttribute(a.o.Zh);var d=Wa(b.getAttribute(a.o.Hk)),e=Wa(b.getAttribute(a.o.Fk));c.size=new H(d,e);d=b.getAttribute(a.o.Pu);e=b.getAttribute(a.o.Ou);B(C(d))||B(C(e))||(c.oK=new H(Wa(d),Wa(e)));return c}
function $V(a,b,c){var d=aW(a,b);b.getAttribute(a.o.Zh);b.getAttribute(a.o.xv);b.getAttribute(a.o.iv);var e=b.getAttribute(a.o.pv),e=DS(e,-1),g=[];new xe;var h={},k="",l,p=[];D(Yd(b),function(a){switch(a.nodeName){case this.j.sv:p.push(AS(a));break;case this.j.rv:l=AS(a);break;case this.j.Dk:h=bW(a);k=C(AS(a));break;case this.j.bi:case this.j.ci:case this.j.$h:a=cW(this,a);null!=a&&g.push(a);break;default:throw wS(a);}},a);a=GV(d.id,d.size,g);uU(a,k,h);a.G=d.apiFramework;a.O=l;a.aa=p;a.na=e;a.j=c;
return a}function cW(a,b){var c=zS(b,a.o.Hu);if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.j.ci:d="Static";break a;case a.j.bi:d="IFrame";break a;case a.j.$h:d="Html";break a;default:throw XK(QK,null,d);}var e=AS(b);null!=e||(e="");return new xV(d,c,e)}function YV(a,b,c){var d=[],e=WV(zS(b,a.o.vv));BS(b,a.j.tu,function(a){a=dW(this,a,c);null!=a&&d.push(a)},a);return new vV(d,e)}
function dW(a,b,c){var d=aW(a,b),e=[],g=new YS,h;D(Yd(b),function(a){switch(a.nodeName){case this.j.vu:break;case this.j.Gk:g=fT(a,!0);break;case this.j.uu:h=AS(a);break;case this.j.mu:AS(a);break;case this.j.Dk:AS(a);break;case this.j.bi:case this.j.ci:case this.j.$h:a=cW(this,a);null!=a&&e.push(a);break;default:throw wS(a);}},a);return nb(e)?null:IV(d,h,c,g,e)}
function XV(a,b,c){var d=new YS,e={},g="",h=[],k,l=new xe,p=[],r=[],u,w=hT(zS(b,a.o.zv));D(Yd(b),function(a){switch(a.nodeName){case this.j.Zu:r=eW(this,a);break;case this.j.Dk:e=bW(a);g=C(AS(a));break;case this.j.Ek:u=DS(AS(a),0);break;case this.j.Gk:d=fT(a);break;case this.j.mv:p=fW(this,a);break;case this.j.Hv:a=gW(this,a);l=a.customClicks;k=a.clickThrough;h=a.clickTrackingUrls;break;default:throw wS(a);}},a);D(h,function(a){cT(d,"click",a)});a=new xU(u,k,l,p,w,r);uU(a,g,e);a.j=c;d&&(a.Tf=d);return a}
function gW(a,b){var c,d=[],e=new xe;D(Yd(b),function(a){switch(a.nodeName){case this.j.ru:c=AS(a);break;case this.j.su:a=AS(a);d.push(a);break;case this.j.Ju:var b=zS(a,this.o.ai);null!=b||(b="");var k=e.get(b,[]);k.push(AS(a));e.set(b,k);break;default:throw wS(a);}},a);return{clickThrough:c,clickTrackingUrls:d,customClicks:e}}
function fW(a,b){var c=[];BS(b,a.j.lv,function(a){var b=zS(a,this.o.Lu),g=zS(a,this.o.fo),h=zS(a,this.o.Iv),k=Wa(a.getAttribute(this.o.Hk)),l=Wa(a.getAttribute(this.o.Fk)),p=a.getAttribute(this.o.Zh),r=AS(a),u=CS(a.getAttribute(this.o.qu)),w=CS(a.getAttribute(this.o.ov));a=CS(a.getAttribute(this.o.kv));c.push(new FP(b,g,h,u,w,a,k,l,r,p))},a);return c}function eW(a,b){var c=[];BS(b,a.j.Yu,function(a){a=hW(this,a);null!=a&&c.push(a)},a);return c}
function hW(a,b){var c=b.getAttribute(a.o.uv),d=zS(b,a.o.Jv),e=zS(b,a.o.Kv),g=Wa(b.getAttribute(a.o.Hk)),h=Wa(b.getAttribute(a.o.Fk)),g=new H(g,h),h=b.getAttribute(a.o.Zh),k=hT(zS(b,a.o.tv)),l=b.getAttribute(a.o.Ek),l=DS(l,-1),p=[],r=[],u;D(Yd(b),function(a){switch(a.nodeName){case this.j.cv:r.push(AS(a));break;case this.j.$u:u=iW(this,a);break;case this.j.bi:case this.j.ci:case this.j.$h:a=cW(this,a);null!=a&&p.push(a);break;default:throw wS(a);}},a);return nb(p)?null:LV(c,g,d,e,l,k,h,u,r,p)}
function iW(a,b){var c=[],d;D(Yd(b),function(a){switch(a.nodeName){case this.j.av:d=AS(a);break;case this.j.bv:c.push(AS(a));break;default:throw wS(a);}},a);return{iconClickThrough:d,rK:c}}function bW(a){a=AS(a);return null!=a?PS(a):{}};function jW(a,b){this.o=a;this.j=b}A(jW,vS);jW.prototype.A=function(){return new FS(this.o,null,kW(this))};function lW(a){var b=sD(a);return nb(b)?[zS(a,"timeOffset")]:E(b,function(a){return zS(a,"timeOffset")})}
function kW(a){var b=new JS;D(Yd(Zd(a.o)),function(a){if("vmap:AdBreak"==a.nodeName){var d=mW(this,a);a=lW(a);D(a,function(a,c){var h=DS(a);0<c&&(d=nW(this,d));if("start"==a||0==h)KS(b,d,0);else if("end"==a)KS(b,d,-1);else{if(-1==h)throw XK(qK,null,"timeOffset",C(a));KS(b,d,h)}},this)}},a);if(0==b.j.Na().length)throw XK(xK);return b}function nW(a,b){return E(b,function(a){var b=new HS(a.A.clone());b.j=a.j;b.o=a.o;return b},a)}
function oW(a){a=zS(a,"timeOffset");var b=DS(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b}function pW(a){return(a=F(Yd(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?F(Yd(a),function(a){return"VAST"==a.nodeName}):null}
function mW(a,b){var c=[],d="",e=null,g=!1,h=!1;D(Yd(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e&&((e=rD(a,"vmap:VASTData/VAST")||rD(a,"vmap:VASTAdData/VAST"))||(e=pW(a)),!e)){var b=yS(a,"vmap:AdTagURI"),c="";b.length&&(c=C(AS(b[0])));if(B(c))throw XK(VK,null,a.parentNode.nodeName,a.nodeName);d=c}break;case "vmap:Extensions":a=yS(a,"vmap:Extension"),a=qW(this,a),null!=a&&(g=!0,a=zS(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=rW(a,e):B(d)||(k=sW(a,d));k&&(hL()&&
(k.Fh=oW(b)),k=new HS(k),k.j=g,k.o=g&&!h,pb(c,k));return c}function qW(a,b){return F(b,function(a){return"bumper"==zS(a,"type")},a)}function sW(a,b){var c=a.j.clone();B(c.j)||(c.j="");c.adTagUrl=b;return c}function rW(a,b){var c=a.j.clone();c.j=qD(b);c.adTagUrl="";return c};function tW(a,b){if(null!=a){var c;null!=a?(c=Zd(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return hS.getInstance().j=!1,new LS(a,b);null!=a?(c=Zd(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return hS.getInstance().j=!1,new jW(a,b);if(NV(a)){if(!NV(a))throw XK(AK);c=Zd(a);var d=OV(c);if(1>d||3<d)throw XK(RK);c=yS(c,"Ad");if(nb(c))throw XK(FK);c=QV(c[0]);if(null==c)throw XK(IK);if(1!=yS(c,"AdSystem").length)throw XK(IK);return new MV(a)}}return null};function uW(){}f=uW.prototype;f.clone=function(){var a=new uW;"auto"==this.lf?a.lf="auto":"click"==this.lf&&(a.lf="click");a.adTagUrl=this.adTagUrl;a.Je=Zb(this.Je);a.j=this.j;a.uc=Zb(this.uc);a.A=this.A;a.qp=this.qp;a.sp=this.sp;a.location=this.location;a.referrer=this.referrer;a.D=this.D;a.language=this.language;a.Xe=this.Xe;a.be=this.be;a.Xb=this.Xb;a.hc=this.hc;a.Bc=this.Bc;a.Wg=this.Wg;a.Ch=this.Ch;a.cn=this.cn;a.o=this.o;a.B=this.B;a.Fh=this.Fh;a.Ui=this.Ui;this.C&&(a.C=ub(this.C));return a};
f.Je=null;f.uc=null;f.lf="unknown";f.qp=!1;f.sp=!1;f.Xe=0;f.be=0;f.Xb=0;f.hc=0;f.Bc=null;f.Wg=!1;f.Ch=!1;f.cn=!0;f.Fh=0;f.No=!0;f.Ui=null;function vW(a,b){this.o=a;this.A=b;var c=a.C;hL()&&c&&VT(TT(),c,!1)}function wW(a,b){"auto"!=a.o.lf&&"click"!=a.o.lf||b.set("vpa",a.o.lf)}function xW(a){B(iL.getPlayerType())||(a.set("mpt",iL.getPlayerType()),B("")||a.set("mpv",""))}function yW(a,b){var c=a.A.C;null!=c&&b.set("js","ima-"+c)}function zW(a,b){b.set("osd",2);-1!=a.A.H&&b.set("frm",a.A.H)}vW.prototype.G=function(){return this.B(this.C()).toString()};function AW(a){return iL.j?"h.3.0.0":null!=a.A?vR(a.A):null}
vW.prototype.D=function(){var a;a=1;tL()&&(a+=4);return a};function BW(){this.j=["video"]}var CW={HJ:"ultrahigh",AH:"high",nv:"medium"},DW={wG:1E3,xG:1001,yG:1002,zG:1003,AG:1004,BG:1005,CG:1006},EW={jv:1,Su:2},FW={CONTENT:"content",eJ:"site",fJ:"site_content"};f=BW.prototype;f.hi="high";f.Tl=!1;f.Kk=1;f.Lk=null;f.adType="video";f.adBlock=1;f.Ul=null;f.Qk=!0;f.Rk=null;f.jl=null;f.Jg=null;f.experimentIds=null;f.gender=null;f.host=null;f.hostTierId=null;f.Vl=!1;f.language=null;f.Gp=null;f.Fp=null;f.Zi=1E5;f.gj=null;f.Ip=null;f.Hp=null;f.tm=0;f.Rf=null;
f.yj=null;f.Jj=null;f.fn=null;f.tagForChildDirectedTreatment=-1;f.url=null;f.$i=null;f.Wl=null;f.Xl=null;f.An=null;f.xn=null;f.yn=null;f.zn=null;f.Uk=null;var GW=(new Date).getTime();var HW=[202,1009],IW=["CONTENT_V","CPN","DISALLOW","LACT"];function JW(a,b,c){var d={};a=new KW(a,n(b)?b:null,n(c)?c:null);LW(d,a);b=a.error;d.ERRORCODE=1E3>b.j?b.j:900;MW(d,a);NW(d,a);OW(d,a);b=a.error.getErrorCode();d.ERROR_MSG=a.error.getMessage();d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=eb(HW,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d}
function PW(a,b){var c={},d=new KW(null,a,n(b)?b:null);LW(c,d);MW(c,d);NW(c,d);OW(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.j){var e=d.j.A;null!=e&&null!=e.Je&&null!=e.Je.video_start_delay?(e=e.Je.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.C,c.BREAK_TYPE=0==e.A?"1":-1==e.A?"3":"2",c.SLOT_POS=e.o-1,0<e.j&&(c.MIDROLL_POS=Math.round(1E3*e.j)))}QW(c,d);RW(c,d);d=a.sa;for(e=a;null!=e;)d=e.la+","+d,e=e.o;c.RWT=d;return c}
function KW(a,b,c){this.error=a;this.j=b;this.display=c}function SW(a,b){null!=b&&(a.VIEWABILITY=b);return a}function LW(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 RW(a,b){a.AD_CPN={toString:function(){return b.display.If()}};a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}};var c=b.j.C;0<c.j&&(a.MIDROLL_POS=Math.round(1E3*c.j));a.MT={toString:function(){if(NU(b.j)){var a=b.j.C;return 0<a.j?Math.round(1E3*a.j).toString():"0"}return b.display?Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString():"0"}};a.P_W={toString:function(){return null!=b.display&&null!=b.display.Zc()?b.display.Zc().width.toString():
""}};a.P_H={toString:function(){return null!=b.display&&null!=b.display.Zc()?b.display.Zc().height.toString():""}}}function MW(a,b){a.SDKV=iL.j?"h.3.0.0":"h.0.0.0";a.EL="adunit";a.CONN="0";null!=b.j&&(a.VIEWABILITY={toString:function(){var a;iL.j?(a=jP(),a=oP(a,"metric",b.j.X)):(rS(),a="");return a}});a.VIS="0";a.WT={toString:function(){return Date.now()}}}function NW(a,b){if(null!=b.j&&null!=b.j.A&&null!=b.j.A.uc&&hL()){var c=b.j.A.uc;D(IW,function(b){b in c&&(a[b]=c[b])})}}
function OW(a,b){if(null!=b.j){a.AD_ID=cV(b.j);a.AD_SYS=fV(b.j);a.AD_V={toString:function(){if(null!=b.display){var a=CP(b.display.getVideoUrl());if(null!=a)return a}return"0"}};a.FORMAT_NAMESPACE="0";a.FORMAT_TYPE="0";a.FORMAT_SUBTYPE="0";var c=[];try{c=OU(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 QW(a,b){null!=b.j&&(a.AD_LEN={toString:function(){var a=qV(b.j);return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.display?Math.round(100*b.display.Bd()).toString():""}})};var TW={Vu:"flash",IMAGE:"image",hJ:"skippablevideo",jJ:"standardvideo",kJ:"staticimage",TEXT:"text",VIDEO:"video"},UW=["flash","image","staticimage"],VW=[new H(200,200),new H(250,250),new H(300,250),new H(336,280),new H(450,50),new H(468,60),new H(480,70),new H(728,90)];function WW(a,b){var c=null!=b.be?b.be:0,d=null!=b.hc?b.hc:0;a.set("sz",Math.max(null!=b.Xe?b.Xb:0,null!=b.Xb?b.Xb:0)+"x"+Math.max(c,d))}
function XW(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",GW)}
function YW(a){if(a.uc&&a.uc.LACT){var b=a.uc.LACT.toString();if(b)return Za(b)}return a.D}function ZW(a,b,c){var d=new xe;d.set("ad_type",b.adType);yM&&d.set("flash",zM);WW(d,a);$W(b)&&(d.set("ea","0"),null!=a.Xb&&null!=a.hc&&d.set("image_size",aX(b,a.Xb,a.hc)));bX(d,c);d.set("lact",YW(a));d.set("videoad_start_delay",a.Fh);XW(d);cX(a,d,!0);return d}function cX(a,b,c){B(C(a.referrer))||(a=a.referrer,c&&(a=wa(a)),dX("ref",a,b))}
function eX(a,b){var c=null!=b?b.split("_"):a;D(c,function(a){if(!Pb(TW,a))throw XK(wK,null,"ad_type",String(b));});if(!tL()){var d=[];D(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw XK(vK,null,"skippablevideo");return d}return c}function fX(a,b){return null!=b?b.split(/[+, ]/):a}function aX(a,b,c){a.A&&(c=Math.min(c,90));var d=[];D(VW,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}
function gX(a,b){return null==b||isNaN(b)?a:Number(b)}function hX(a,b){return null!=b?String(b):null!=a?a:null}function iX(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 jX(a,b,c){return null!=b&&Pb(c,b)?b:a}function $W(a){return ib(UW,function(b){return G(a.j,b)})}
function bX(a,b){yM?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.A;null!=c&&0<c.length&&(c=c[0].C,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}function dX(a,b,c){null!=b&&c.set(a,b)};function kX(a,b,c){vW.call(this,a,b);b=new BW;a=rf(new J(a.adTagUrl));b.Ul=jX(b.Ul,a.get("cust_age"),DW);b.hi=jX(b.hi,a.get("adsafe"),CW);b.j=eX(b.j,a.get("ad_type"));b.adType=b.j.join("_");b.Kk=gX(b.Kk,a.get("videoad_start_delay"));b.Lk=hX(b.Lk,a.get("slotname"));b.Tl=iX(b.Tl,a.get("adtest"));b.Qk=iX(b.Qk,a.get("scs"));b.Rk=hX(b.Rk,a.get("alternate_ad_url"));b.channels=fX(b.channels,a.get("channel"));b.jl=gX(b.jl,a.get("cpm"));b.Jg=hX(b.Jg,a.get("description_url"));b.experimentIds=hX(b.experimentIds,
a.get("eid"));b.gender=jX(b.gender,a.get("cust_gender"),EW);b.A=iX(b.A,a.get("overlay"));b.host=hX(b.host,a.get("host"));b.o=fX(b.o,a.get("h_ch"));b.hostTierId=gX(b.hostTierId,a.get("ht_id"));b.Vl=iX(b.Vl,a.get("lsv"));var d;null!=this.o.language?d=this.o.language:(d=m.navigator||null,d=fL(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=hX(e,d);var g;null!=d&&!B(C(d))&&(g=fL(d));b.language=hX(b.language,g);b.Gp=gX(b.Gp,a.get("linearAdSlotWidth"));
b.Fp=gX(b.Fp,a.get("linearAdSlotHeight"));b.Zi=gX(b.Zi,a.get("max_ad_duration"));b.tm=gX(b.tm,a.get("min_ad_duration"));b.gj=gX(b.gj,a.get("sdmax"));b.Ip=gX(b.Ip,a.get("nonLinearAdSlotWidth"));b.Hp=gX(b.Hp,a.get("nonLinearAdSlotHeight"));b.Rf=hX(b.Rf,a.get("client"));b.yj=hX(b.yj,a.get("t_pyv"));b.Jj=gX(b.Jj,a.get("sdki"));b.tagForChildDirectedTreatment=gX(b.tagForChildDirectedTreatment,a.get("tfcd"));b.fn=jX(b.fn,a.get("targeting"),FW);b.$i=gX(b.$i,a.get("video_format"));b.Wl=gX(b.Wl,a.get("video_cpm"));
b.Xl=hX(b.Xl,a.get("loeid"));b.An=hX(b.An,a.get("yt_pt"));b.xn=hX(b.xn,a.get("ytdevice"));b.yn=hX(b.yn,a.get("ytdevicever"));b.zn=hX(b.zn,a.get("dbp"));b.B=hX(b.B,a.get("ms"));b.adBlock=gX(b.adBlock,a.get("adBlock"));b.url=hX(b.url,a.get("url"));b.Uk=hX(b.Uk,a.get("avo"));this.j=b;this.H=c;B(C(this.j.experimentIds))||(c=this.j.experimentIds.split(","),VT(TT(),c))}A(kX,vW);var lX=["skippablevideo","standardvideo","video"];kX.prototype.F={ku:"allow",Nu:"exclude",RI:"require"};
kX.prototype.D=function(){var a=kX.K.D.call(this);this.j.Jj&&(a+=this.j.Jj&2);return a};kX.prototype.B=function(a){var b=new J("//googleads.g.doubleclick.net/pagead/ads"),c=a.Na();D(c,function(c){K(b,c,a.get(c))});return b};
kX.prototype.C=function(){var a=new xe;a.set("sdkv",AW(this));a.set("sdki",this.D().toString(16));a.set("video_product_type",null!=this.j.Rf?hL()?5:ta(this.j.Rf,"ca-games-")?4:ta(this.j.Rf,"ca-video-")?0:-1:-1);a.set("correlator",this.A.j);a.set("client",this.j.Rf);hL()&&!B(C(this.j.url))?a.set("url",this.j.url):a.set("url",this.o.location?this.o.location:this.o.referrer);null!=this.o.Bc&&a.set("adk",this.o.Bc);a.set("num_ads",mX(this));a.set("channel",nX(this));a.set("ad_type",this.j.adType);a.set("output",
"xml_vast3");this.j.Tl&&a.set("adtest","on");yM&&a.set("flash",zM);dX("alternate_ad_url",this.j.Rk,a);dX("cpm",this.j.jl,a);WW(a,this.o);hL()||Pb(CW,this.j.hi)&&a.set("adsafe",this.j.hi);this.j.host&&(a.set("host",this.j.host),dX("ht_id",this.j.hostTierId,a),null!=this.j.o&&dX("h_ch",this.j.o.join("+"),a));dX("hl",this.j.language,a);dX("cust_age",this.j.Ul,a);dX("cust_gender",this.j.gender,a);-1!=this.j.tagForChildDirectedTreatment&&dX("tfcd",this.j.tagForChildDirectedTreatment,a);dX("slotname",this.j.Lk,
a);var b=XT(TT());B(C(b))||a.set("eid",b);XW(a);b=this.j.Jg;if(null!=b){var c;c=this.A;null==c.A&&(c.A=new lR);c=c.A;var d;null!=b&&c.o!=b?(c.j=1,c.o=b):c.j=null!=b?c.j+1:1;d=c.j;1!=d&&a.set("ad_block",d);d=this.A;null==d.N&&(d.N=new rR);d=d.N;var e=b!=this.A.O;(c=0==c.j%100||e)||(c=36E5<(null===d.j?0:(new oR).getTime()-d.j));c&&d.reset();this.A.O=b;b=d.o;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");b=this.j.Kk;a.set("videoad_start_delay",null!=b?b:1);yW(this,a);zW(this,a);wW(this,
a);$W(this.j)&&(a.set("ea","0"),null!=this.o.Xb&&null!=this.o.hc&&a.set("image_size",aX(this.j,this.o.Xb,this.o.hc)));oX(this)&&a.set("video_format",null!=this.j.$i&&hL()?this.j.$i:$h&&0<=Ra(kw,6)||Wh&&0<=Ra(kw,4)||kd&&qL(mL,2.3)?43:18);b=null!=this.j.yj?this.j.yj:G(this.j.adType.split("_"),"text")?this.F.ku:this.F.Nu;a.set("t_pyv",b);dX("min_ad_duration",this.j.tm,a);0<this.j.Zi&&a.set("max_ad_duration",pX(this.j.Zi,mX(this)));0<this.j.gj&&a.set("sdmax",pX(this.j.gj,mX(this)));bX(a,this.H);hL()&&
(b=CP(this.j.Jg),null!=b&&a.set("video_doc_id","yt_"+b));dX("description_url",this.j.Jg,a);hL()&&(dX("lact",YW(this.o),a),dX("loeid",this.j.Xl,a),dX("lsv",this.j.Vl,a),this.j.Qk||dX("scs","false",a),dX("targeting",this.j.fn,a),dX("video_cpm",this.j.Wl,a),dX("yt_pt",this.j.An,a),dX("ytdevice",this.j.xn,a),dX("ytdevicever",this.j.yn,a),dX("dbp",this.j.zn,a),dX("avo",this.j.Uk,a));dX("ms",this.j.B,a);xW(a);cX(this.o,a,!1);null!=this.o.Je&&dX("loc",this.o.Je.page_location,a);return a};
function oX(a){return ib(lX,function(a){return G(this.j.j,a)},a)}function mX(a){return hL()?1:G(a.j.adType.split("_"),"text")?3:1}function nX(a){a=a.j.channels?a.j.channels:[];yb(a);a=xb(a,0,30);return a.join("+")}function pX(a,b){return Math.round(1.1*(a||0)+0*b)};function qX(a,b){vW.call(this,a,b)}A(qX,vW);qX.prototype.B=function(a){var b=new J(this.o.adTagUrl);D(a.Na(),function(c){B(a.get(c))?b.j.remove(c):K(b,c,a.get(c))});return b};qX.prototype.C=function(){var a=new xe;a.set("sdkv",AW(this));zW(this,a);wW(this,a);xW(a);null!=this.o.Bc&&a.set("adk",this.o.Bc);return a};function rX(a,b){vW.call(this,a,b)}A(rX,vW);rX.prototype.C=function(){return null};
rX.prototype.B=function(){var a=new hU(this.o.adTagUrl),b=AW(this);b&&lU(a,"dc_sdkv",[b]);(b=this.D().toString(16))&&lU(a,"dc_sdki",[b]);(b=this.A.G)&&lU(a,"dc_submodel",[b]);null!=this.o.Bc&&lU(a,"dc_adk",[this.o.Bc]);b=new xe;yW(this,b);zW(this,b);wW(this,b);xW(b);ze(b,"js")&&lU(a,"dc_js",[b.get("js")]);ze(b,"msid")&&lU(a,"dc_msid",[b.get("msid")]);ze(b,"frm")&&lU(a,"dc_frm",[b.get("frm")]);ze(b,"osd")&&lU(a,"dc_osd",[b.get("osd")]);lU(a,"dcmt",["text/xml"]);ze(b,"vpa")&&lU(a,"vpa",[b.get("vpa")]);
ze(b,"mpt")&&lU(a,"mpt",[b.get("mpt")]);ze(b,"mpv")&&lU(a,"mpv",[b.get("mpv")]);return a};function sX(a){vW.call(this,a,null)}A(sX,vW);sX.prototype.B=function(a){return new J(a.get("adTagUrl"))};sX.prototype.G=function(){return C(this.C().get("adTagUrl"))};sX.prototype.C=function(){var a=new xe;a.set("adTagUrl",this.o.adTagUrl);a.set("adsResponse",this.o.j);return a};function tX(a){vW.call(this,a,null)}A(tX,vW);tX.prototype.B=function(a){return new J(a.get("adTagUrl"))};tX.prototype.C=function(){var a=new xe;a.set("adTagUrl",this.o.adTagUrl);a.set("adsResponse",this.o.j);return a};function uX(a,b){vW.call(this,a,b)}A(uX,vW);uX.prototype.B=function(a){var b=new J(this.o.adTagUrl);D(a.Na(),function(c){B(a.get(c))?b.j.remove(c):K(b,c,a.get(c))});return b};
uX.prototype.C=function(){var a=new xe;a.set("sdkv",AW(this));a.set("sdki",this.D().toString(16));a.set("correlator",this.A.D);a.set("scor",this.A.j);null!=this.o.Bc&&a.set("adk",this.o.Bc);yW(this,a);zW(this,a);wW(this,a);xW(a);var b=this.A.o;null!=b&&(this.A.o=null,a.set("fbidx",b));b=this.A.T;null!=b&&a.set("ppid",b);var b="null",c=this.A.B;null!=c?b=c:vX(this.o.location)?b=this.o.location:vX(this.o.referrer)&&(b=this.o.referrer);a.set("url",b);b=this.A.G;null!=b&&a.set("submodel",b);b=this.A.F;
null!=b&&(b=wX(b),a.set("ciu_szs",b));a.set("impl","");return a};function vX(a){if(B(C(a)))return!1;a=new J(a);if(!a.Ob||"http"!=a.Ob&&"https"!=a.Ob)return!1;a=a.tb;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0}function wX(a){var b=[];D(a,function(a){0<a.length&&b.push(E(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function xX(a,b,c){vW.call(this,a,b);this.H=B(C(a.o));a=new BW;a.j=eX(a.j,this.o.o);a.adType=a.j.join("_");a.experimentIds=hX(a.experimentIds,this.o.B);this.j=a;this.F=c;B(C(this.j.experimentIds))||(c=this.j.experimentIds.split(","),VT(TT(),c))}A(xX,uX);xX.prototype.B=function(a){a=xX.K.B.call(this,a);this.H||yX(this,a);return a};function zX(a){var b=ZW(a.o,a.j,a.F);b.set("sdkv",AW(a));b.set("sdki",a.D().toString(16));return b}
function yX(a,b){var c=zX(a),d=E(c.Na(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});K(b,"afvparams",d.join("&"))};function AX(a,b,c){vW.call(this,a,b);this.H=B(C(a.o));a=new BW;a.j=eX(a.j,this.o.o);a.adType=a.j.join("_");a.experimentIds=hX(a.experimentIds,this.o.B);this.j=a;this.F=c;B(C(this.j.experimentIds))||(c=this.j.experimentIds.split(","),VT(TT(),c))}A(AX,rX);AX.prototype.B=function(a){a=AX.K.B.call(this,a);this.H||BX(this,a);return a};function CX(a){var b=ZW(a.o,a.j,a.F);b.set("sdkv",AW(a));b.set("sdki",a.D().toString(16));return b}
function BX(a,b){var c=CX(a),d=E(c.Na(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});lU(b,"afvparams",[wa(d.join("&"))])};function DX(a){vW.call(this,a,null)}A(DX,vW);var EX=["CPN","MT","LACT"];DX.prototype.B=function(){return new J(UJ(this.o.adTagUrl,FX(this)))};DX.prototype.C=function(){return new xe};function FX(a){if(null==a.o||null==a.o.uc)return{};var b={},c=a.o.uc;D(EX,function(a){a in c&&(b[a]=c[a])});return b};function GX(a,b){var c;if(!qU(a)&&!rU(a)||B(C(a.o))||null==a.adTagUrl||-1==a.adTagUrl.search("afvbase="))if(qU(a))c=new rX(a,uR);else if(nU(a))c=new kX(a,uR,b);else if(rU(a))c=new uX(a,uR);else if(pU(a))c=new qX(a,uR);else if(c=a.adTagUrl,null!=c?(c=of(new J(c)),c=ua(c,".fwmrm.net")):c=!1,c)c=new sX(a);else{c=a.adTagUrl;if(null!=c){c=new J(c);var d=c.Hb;c=ua(c.tb,"youtube.com")&&oU("/get_midroll_info",d)}else c=!1;c=c?new DX(a):new tX(a)}else c=qU(a)?new AX(a,uR,b):new xX(a,uR,b);return c};function HX(a){a=gb(a,function(a){return 0<hV(a)});Bb(a,function(a,c){return hV(a)-hV(c)});return a}function IX(a){return gb(a,function(a){return-1==hV(a)})};function JX(a){this.j=a};function KX(){this.j=0}function LX(a,b,c,d,e,g){var h=y(function(a){d(a,Error(In(a)))},a),k=y(function(a){6==a?MX(this,b,!1,c,h,e,g):h(a)},a);MX(a,b,!0,c,k,e,g)}
function MX(a,b,c,d,e,g,h){var k=new ro;k.R=c;uo(k,NX(g));var l=new Bn,p=y(function(){l.dispose();k.dispose()},a);c=y(function(){e(k.o);p()},a);Hn(l,k,"success",function(){var a;try{a=k.j?k.j.responseXML:null}catch(b){a=null}if(null==a){var c=Xn(k);try{a=oD(c)}catch(e){a:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=pD())){a.appendChild(a.createNode(1,"parsererror",""));
break a}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);Hn(l,k,["error","timeout"],c,a);var r;"POST"==h&&(b=new J(b),r=b.j.toString(),ff(b,""),b=b.toString());a.j=z();k.send(hK(b),h,r)};function OX(a,b,c){var d=null,e=c+b;D(a.B,function(g){if(QS(g.I,"rm")&&!oV(a,XJ)){var h=PW(a);mK(a.F,h);(h=a.A)&&h.adTagUrl&&-1!=h.adTagUrl.indexOf(";afc=1")&&(d=g)}else{if(h=g instanceof CU)0==c&&0==b||g instanceof EV?h=!0:(h=g.Jc(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-g.Jc().height+b-g.Jc().width,"Flash"!=g.getContentType()||yM))if(null==d)d=g,e=h;else if(h==e&&g.j<d.j||h<e)d=g,e=h}});ZU(a,d)}
function PX(a){var b=null;D(a.B,function(a){a instanceof xU&&(null===b||a.j<b.j)&&(b=a)});ZU(a,b)};function QX(a,b,c,d){this.B=a;this.H=b;this.ads=0<this.B.length?this.B:this.H;this.D=c;this.C=this.J=!0;this.o=-1;this.j=null;this.F=0;this.O=d;this.logger=null}QX.prototype.zd=function(){return null!=this.j&&this.j.zd()?!0:0<this.ads.length&&this.o<this.ads.length-1};function RX(a,b,c){null!=a.j?SX(a,b,c):a.zd()?TX(a,b,y(function(a){this.zd()&&301!=a.getErrorCode()?RX(this,b,c):c(a)},a)):c(new HJ("adLoadError","The ad source contains no more ads.",1005))}
QX.prototype.I=function(a,b){return this.C?0<a.length?a:b:xb(b,0,1)};QX.prototype.A=function(a,b,c){var d;if(!(d=null!=a.j)){var e=this.D;d=e.Xb||0;e=e.hc||0;jV(a)&&!a.I?iV(a,"nonlinear")?OX(a,d,e):PX(a):iV(a,"linear")?PX(a):iV(a,"nonlinear")&&OX(a,d,e);d=null!=a.j}d?(this.F++,b(a)):(b=nb(a.B)?XK(IK):NU(a)?XK(DK):XK(LK),d=JW(b,a),QS(XU(a),"rm")?b.o=!1:mK(a.U,d),c(b))};
QX.prototype.G=function(a,b,c){var d=this.D.clone();d.j="";d.adTagUrl=a.Ha;d.Bc=iR(d.adTagUrl,d.Xe,d.be,d.Xb,d.hc,d.Ui);UX(this,a,d,b,c)};function VX(a,b,c,d){var e=a.D.clone();e.j="";e.adTagUrl=b.La;UX(a,b,e,c,d)}
function UX(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.o,null!=g&&(c.j=g));WX(a.O,c,y(function(a){if(a instanceof QX){var c=this.C&&b.ya,g=b.Ca,p;for(p in a.ads)a.ads[p].o=b;a.C=c;a.ads=a.I(a.B,a.H);a.o=-1;a.J=g;d(a)}else a instanceof JX?e(new HJ("adLoadError","Ad source cannot contain playlist response.",2)):e(new HJ("adLoadError","Unknown ad source.",2))},a),e)}function XX(a){var b=0;for(a=a.o;null!=a;)a=a.o,b++;return b}
function SX(a,b,c){a.j.zd()?RX(a.j,y(function(a){this.A(a,b,y(function(a){this.zd()?RX(this,b,c):c(a)},this))},a),y(function(a){YX(this.ads[this.o],a);this.j=null;301==a.getErrorCode()?c(a):this.zd()?RX(this,b,c):c(a)},a)):(0==a.j.F&&YX(a.ads[a.o],XK(TK)),a.j=null,RX(a,b,c))}function YX(a,b){if(b.o){1012==b.getErrorCode()&&(b=XK(KK));var c=JW(b,a);mK(a.U,c)}}
function TX(a,b,c){a.o++;var d=a.ads[a.o];d.I||d.H?d.H?VX(a,d,y(function(a){this.j=a;RX(this,b,c)},a),y(function(a){a=ZX(a);YX(d,a);c(a)},a)):4<=XX(d)?(a=XK(MK,null,"4"),YX(d,a),c(a)):a.J?a.G(d,y(function(a){this.j=a;RX(this,b,c)},a),y(function(a){a=ZX(a);YX(d,a);c(a)},a)):c(XK(SK)):a.A(d,b,c)}function ZX(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=XK(TK)}return a};function $X(a,b,c,d){QX.call(this,[],a,b,c);this.N=d}A($X,QX);$X.prototype.zd=function(){return null!=this.j&&this.j.zd()?!0:0<this.ads.length&&this.o<this.ads.length-1&&0==this.F};$X.prototype.I=function(a,b){return b};$X.prototype.A=function(a,b,c){var d=-1,d=null==this.j?gV(a):gV(this.ads[this.o]);this.N.o=d;$X.K.A.call(this,a,b,c)};$X.prototype.G=function(a,b,c){this.N.o=-1;$X.K.G.call(this,a,b,c)};function aY(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.j=d;this.Cb=e}function WX(a,b,c,d){B(C(b.j))?rU(b)&&null!=a.j&&!a.j.F?a.j.start(b,y(function(){bY(this,b,c,d)},a)):bY(a,b,c,d):cY(a,b,c,d)}function cY(a,b,c,d){var e;try{e=oD(b.j)}catch(g){d(XK(AK,g));return}null!=e?dY(a,e,b,c,d):d(XK(AK))}function bY(a,b,c,d){var e;if(e=null!=b.adTagUrl){a:{try{xa(b.adTagUrl)}catch(g){e=!1;break a}e=!0}e=!e}e?d(XK(uK,null,b.adTagUrl)):iL.B?tS(rS(),y(a.o,a,b,c,d)):a.o(b,c,d)}
aY.prototype.o=function(a,b,c,d){var e=GX(a,this.B).G(),e=lK(e,d,!0);d=a.Ch&&fK(eK,e)?"POST":"GET";LX(this.A,e,y(function(d){dY(this,d,a,b,c)},this),y(function(b,d){var e;e=8==b?XK(HK):5==b||6==b?XK(pK):XK(tK,d);c(e);e="third_party";nU(a)?e="adsense":qU(a)?e="dart":rU(a)&&(e="xfp");e={rt:e,ec:b};vL(uL.getInstance(),18,e,!0)},this),this.Cb,d);eY(a)};function eY(a){var b="third_party";nU(a)?b="adsense":qU(a)?b="dart":rU(a)?b="xfp":pU(a)&&(b="dbm");a={rt:b};vL(uL.getInstance(),17,a,!0)}
function dY(a,b,c,d,e){var g;try{var h=tW(b,c);if(!h)throw XK(AK);g=h.A();fY(a,g,c,d)}catch(k){k instanceof HJ?e(k):e(XK(BK,k))}}function fY(a,b,c,d){var e=b.j;if(null!=e)d(new JX(e));else{var g=b.A;if(null==g)throw XK(FK);D(g,function(a){a.A=c;a.la=this.A.j;hL()&&(a.wa=b.o)},a);e=HX(g);g=IX(g);0<g.length&&0<=gV(g[0])?d(new $X(g,c,a,a.C)):d(new QX(e,g,c,a))}};function gY(a){this.j=a+z()}gY.prototype.reset=function(a){this.j=a+z()};function NX(a){var b=z();a=a.j-b;return 0<a?a:0};function hY(a,b){this.j=a;this.o=b;iL.j&&jP().init();var c;a:{try{c=window.top.location.href}catch(d){c=2;break a}c=null!=c?c==window.document.location.href?0:1:2}uR.H=c}function iY(a,b,c,d){var e=null;null!=a.j&&(e=new lS(1E3,a.j,a.o));WX(new aY(a.o,new KX,a.j,e,new gY(8E3)),b,y(function(a){a instanceof JX?c(a):jY(this,a,c,d)},a),d)}
function jY(a,b,c,d){var e=[],g=y(function(a,b){a.zd()?RX(a,y(function(b){e.push(b);g(a,null)},this),y(function(b){301==b.getErrorCode()?d(XK(HK)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=XK(xK)),1012==b.getErrorCode()&&(b=XK(KK)),d(b))},a);g(b,null)};function kY(a){this.o=a;this.j=new cp}function lY(a,b,c,d){var e=y(function(a){c(a);fp(this.j);mY(this)},a),g=y(function(a){d(a);fp(this.j);mY(this)},a);ep(a.j,y(function(){iY(this.o,b,e,g)},a));mY(a)}function mY(a){1==a.j.Wa()?(a=a.j,dp(a),a=cb(a.j),null!=a&&a()):a.j.Wa()};function nY(a,b,c){V.call(this);this.B=new kY(new hY(b,c));this.C=a;this.o=b;this.j=!0;this.A=c}A(nY,V);function oY(a,b,c){if(a.j){var d=null!=c?c:{};hS.getInstance().end("rtr");kS(hS.getInstance(),b.adTagUrl);hS.getInstance().start("vl");lY(a.B,b,y(function(a){pY(this,a,d)},a),y(function(a){qY(this,a,d)},a))}}function rY(a,b,c){if(!a.j){var d=null!=c?c:{};lY(a.B,b,y(function(a){pY(this,a,d)},a),y(function(a){qY(this,a,d)},a))}}
function pY(a,b,c){if(a.j)b instanceof JX?(b=new sY(b.j,a),b.D=a.o,a.Y(new tY(b,c))):(b=uY(b),b.D=a.o,null!=b?(a.Y(new tY(b,c)),hS.getInstance().end("vl")):qY(a,XK(DK,null),c));else if(b instanceof JX)qY(a,XK(oK,null,"Unsupported ad format."),c);else{var d=new gS("adsLoaderSdkAdLoaded");d.D=b;d.C=c;a.Y(d)}}function qY(a,b,c){a.j?("always"==iL.o&&null!=a.o&&SR(a.o,PR()),a.Y(new IJ(b,c))):(c=new gS("adsLoaderSdkAdError"),c.A=b,a.Y(c))};var vY={NORMAL:"normal",FULLSCREEN:"fullscreen"};function wY(){return'<div class="close-padding"><div class="close-button"></div></div>'}function xY(){return'<div class="recall-button"></div>'}function yY(a){return'<a target="_blank" href="'+bQ(a.url)+'" class="attribution-button">'+bQ(a.text)+"</a>"};function zY(a,b){this.H=a;this.j=I("div",{"class":"controls"});this.T=b||v;this.Yc=new Bn(this)}A(zY,Q);f=zY.prototype;f.Dd=!1;f.pp=1E3;f.fq=30;f.gq=45E3;f.xr=15E3;f.ts=!1;function AY(a){var b=I("div",{"class":"container"});ys(b,"opacity 0.4s");a.Yc.M(b,"mouseover",a.gy);a.Yc.M(b,"mouseout",a.dD);b.appendChild(a.j);return b}f.il=function(){var a=AY(this);this.j.appendChild(this.H);this.display(this.H);this.play();return a};f.Q=function(){null==this.J&&(this.J=this.il());return this.J};
f.play=function(){null==this.o&&(this.o=xn(function(){this.Dd||(this.$(),this.ts=!0);this.o=null},this.ts?this.xr:this.gq,this))};f.stop=function(){null!=this.o&&(yn(this.o),this.o=null)};f.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};function BY(a){ah(a.Q(),1);null!=a.A&&(yn(a.A),a.A=null)}f.$=function(){ah(this.Q(),this.fq/100);null==this.A&&(this.A=xn(function(){this.T();this.A=null},400,this))};
f.gy=function(){BY(this);this.Dd=!0;this.D=xn(function(){this.Dd&&this.stop();this.D=null},this.pp,this)};f.dD=function(){null!=this.D&&(yn(this.D),this.D=null);this.Dd&&this.play();this.Dd=!1};f.P=function(){zY.K.P.call(this);this.stop();Ai(this.Yc)};function CY(a,b){this.I=a;this.O=new xe;this.N=15E3;this.F=I("span");zY.call(this,a[0],b);this.j.appendChild(this.F)}A(CY,zY);
CY.prototype.il=function(){var a=AY(this);N(a,"container-rotator");this.G=I("div");this.j.appendChild(this.G);D(this.I,function(a,c){N(a,"container-highlight");var d=63/this.I.length*(c+.5)-5,e=I("div",{id:Va(),"class":"container-selector"});e.style.top=d+"px";this.Yc.M(e,"click",function(a){DY(this,a.target)});this.O.set(e.id,a);this.F.appendChild(e)},this);DY(this,Zd(this.F));this.play();return a};
CY.prototype.play=function(){null==this.B&&(this.B=new vn(this.N),this.Yc.M(this.B,"tick",this.R));CY.K.play.call(this);this.B.start()};CY.prototype.stop=function(){null!=this.B&&this.B.stop();CY.K.stop.call(this)};CY.prototype.R=function(){var a=this.C;DY(this,(void 0!=a.nextElementSibling?a.nextElementSibling:$d(a.nextSibling))||Zd(this.C.parentNode))};function DY(a,b){a.C&&qh(a.C,"container-active");N(b,"container-active");var c=a.O.get(b.id);Xd(c,a.G);a.C=b;a.G=c;a.display(c)};function EY(a,b){zY.call(this,a[0],b);this.B=a;N(this.j,"container-stack")}A(EY,zY);EY.prototype.$=v;EY.prototype.il=function(){var a=AY(this);D(this.B,function(a){N(a,"container-highlight");this.j.appendChild(a);this.display(a)},this);this.play();return a};function FY(){Q.call(this);this.F="";this.o=new YS;this.A=new xe;this.B=[];this.G=!1;this.j={};this.D=-1;this.C=[]}A(FY,Q);function GY(a,b){if(iL.j){var c=oP(jP(),b.type,a.F);a.H(b.type,c)}else uS(rS(),b.type,a.F,y(a.H,a,b.type))}
FY.prototype.H=function(a,b,c){null!=b&&SW(this.j,b);if("impression"==a&&!this.G&&null!=this.B&&0<this.B.length){var d=G(this.C,"impression");HY(this,this.B,"",d);this.G=!0}a:switch(a){case "click":d=!0;break a;case "complete":d=!ze(this.A,a)&&!ze(this.A,"skip");break a;default:d=!ze(this.A,a)}if(d){var d=G(this.C,a),e=eT(this.o,a);0<e.length&&(HY(this,e,b,d,c),this.A.set(a,!0))}SW(this.j,"")};function IY(a,b){null!=b&&D(b,function(a){G(this.C,a)||this.C.push(a)},a)}
function HY(a,b,c,d,e){D(b,function(a){kK(a,this.j,c,d,e)},a)};function JY(a){V.call(this);this.ads=a;this.H=null;this.N="normal";this.B=this.volume=null;this.o=new yL;this.ga=!1;this.content={};this.C=new FY;this.R=!1;D(a,function(){});D(a,function(b,c){var d=b.C;d.B=a.length;var e=c+1;d.o=e;d.C=e})}A(JY,V);function KY(a){if(LY(a)){if(QU(a.H)&&!tL())throw ZK(vK,null,"skippablevideo");return a.H}throw ZK(rK,null,"An ad has not been selected.");}function LY(a){return null!==a.H}f=JY.prototype;
f.uh=function(){var a=eb(this.ads,this.H);-1!=a&&++a<this.ads.length?this.H=this.ads[a]:this.H=null};f.Lr=function(){if(!LY(this)){if(nb(this.ads))throw ZK(DK);this.H=this.ads[0];if(null==this.H.j)throw XK(DK);}};f.xa=function(a){LY(this)?this.Y(new LJ(a,KY(this))):this.Y(new LJ(a,null))};function MY(a){null==a.G&&(a.G=new Bn(a));return a.G}function NY(a,b){if(null!=a.D&&(Fn(MY(a),a.D,"companion_display_error",function(){}),SR(a.D,b),!a.D.po()))throw ZK(sK);}
f.destroy=function(){iL.j&&(jP().C=null);this.dispose()};f.P=function(){LY(this)&&(ZU(this.H,null),this.H=null);Ai(this.G);this.G=null;Ai(this.D);this.D=null;this.R=!1;JY.K.P.call(this)};f.Ye=function(){return[]};f.getCurrentAd=function(){return this.ads[0]};f.init=function(a){OY(this);this.Xi(a);this.ga=!0;this.pj()};f.pj=function(){this.xa("loaded")};f.sendImpressionUrls=function(a){LY(this)&&hL()&&mK(WU(KY(this)),a)};f.Qm=function(){};
f.Vc=function(a,b,c){if(!this.R){if(null==a)throw ZK(wK,null,"displayContainer");if(null!=c){var d=new hk(Rb(this.o));if(!Ge(Rb(c),d.contains,d))throw ZK(wK,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.o;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.mimeTypes&&(c.mimeTypes=[]);PY(c.mimeTypes);ga(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);bc(d,c)}this.content=b;this.B=a;this.Lr();iL.j&&(a=jP(),b=y(this.ny,this),a.C=b);this.R=!0}};
f.fg=function(a){a=QS(PU(a),"rm")?a.F:WU(a);D(a,function(a){pb(this.C.B,a)},this)};f.gf=function(a,b){D(b,function(b){b=vU(a,b);aT(this.C.o,b)},this)};f.Ej=function(a){if(a instanceof xU){var b=yU(a);D(b.Na(),function(a){var d=b.get(a);D(d,function(b){cT(this.C.o,a,b)},this)},this)}};function QY(a,b){GY(a.C,new hm(b))}f.dc=function(a){GY(this.C,new hm(a));this.xa(a)};f.getCurrentTime=function(){return-1};f.Yg=function(){return-1};f.getRemainingTime=function(){return-1};f.Zg=v;f.pause=function(){};
f.resume=function(){};f.skip=function(){};f.start=function(){OY(this);if(!this.ga)throw XK(rK,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.xp=function(){return null!=this.volume?this.volume:0};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&aL(this,wK,null,"volume",String(a));this.volume=a};f.Xi=function(a){if(!Pb(vY,a))throw ZK(wK,null,"view mode",a);this.N=a};f.setMediaUrl=function(){};
function OY(a){if(!a.R)throw ZK(rK,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};f.yp=function(){return null};f.If=function(){return null};f.ny=function(){var a=this.getCurrentTime(),b=this.Yg(),c=this.getCurrentAd();return{currentTime:a,duration:b,isVpaid:null!=c?uV(this.getCurrentAd()):!1,volume:this.xp()}};
function PY(a){if(!ea(a))throw ZK(rK,null,"adsRenderingSettings.mimeTypes should be an array");var b=tb(Qb($J),Qb(ZJ));D(a,function(a){if(!G(b,a))throw ZK(rK,null,"Invalid or unsuppoted mime type "+a);})};function RY(a){JY.call(this,a);this.A=null;this.X=I("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.O=!1;this.T=[]}A(RY,JY);f=RY.prototype;f.start=function(){RY.K.start.call(this);this.B.Pj();this.A=this.B.Lf();if(null!=this.A){Vd(this.A);var a=this.Wk();iL.j?nP(jP(),a):sS(rS(),a);this.A.appendChild(a);SY(this);D(this.T,function(a){a()});ob(this.T);this.O=!0;this.xa("start")}};f.Zg=function(){RY.K.Zg.call(this);SY(this)};
f.P=function(){Ai(this.j);this.B=this.j=null;this.O=!1;iL.j?jP().A=null:rS().A=null;null!=this.A&&(Vd(this.A),this.A=null);RY.K.P.call(this)};function TY(a,b){var c=KU(b);D(c,function(a){cT(this.C.o,"click",a)},a)}
f.Wk=function(){var a=$U(KY(this));if(null==a)throw a=ZK(DK),UY(this,a),a;DU(a,MY(this));EU(a,this.Rw);try{NY(this,KY(this))}catch(b){throw UY(this,b),b;}var c=KY(this),d=PW(c);this.C.j=d;c.j&&(this.fg(c),(c=c.j)&&this.gf(c,KJ));TY(this,a);this.O?this.dc("impression"):this.T.push(y(this.dc,this,"impression"));return VY(this,[a.Qe()])};f.zp=function(a,b){return new zY(a[0],b)};
function VY(a,b){null!=a.j&&a.j.stop();a.j=a.zp(b,y(a.Ro,a));var c=a.j.Q();if(iL.j){var d=I("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/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAC3SURBVBjTddAxbsJAEADAuZOVKn0kWkeIJh+IXOQJlt+Sp/COyE+gQBFPoHBaZFDkiuqKQMHhBAVvtXuju93b8KI+vboXn9oQlqfSVHwpSizu4lYpXotO9y+juB6twfOfbOToANb6fPNg7iIoNLm84FyTn42QDBqz3G+mMUi/TLKxy7yzyThyZwUewWqcPXMPFt7zDvrbj1WIat9qH35Ut0zlwSBJ3sbOFHtPthM734ttOE7gURvO57AyavXUXEcAAAAASUVORK5CYII=);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAAmJLR0QA/4ePzL8AAADdSURBVAjXAdIALf8A27rb69t02wQAANsF23jb7Nu1AAAB2/UACvr9wqMgcyRgAIQACfb7L44DbgH7QAYDFCr7QQ5RAQ77/aLixgABAACbpzFSDwYAAAAA8fml44/dAKAAAAAAAMDP2//b/9v/pOsArQBVAAACAADbcRsXAAAAAAAAJQ1/CwCrAAAD23YAgwAR9fnQ8BAFDwYoIDQhsbEB2/QAC/v9nOCj2XUJTT8EAvb7L1sCAM33/KLhlN3robNUya74/Nr0AF0BAAAAkQAjAKcAqQD8AAQAWgBXANbCiVTrFOn0bgAAAABJRU5ErkJggg==);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAACzSURBVBjTddAtzsJAEADQt1CN/xRBIIFwge8AeAzpabgIHiQCT3qD4hCEQIIkBNtQzLY0gY7YzOzb3wlT8/Lfr9jbhLAqh9riKGQlg594QqcqcvlXRlJN7cCokdUcXMHOxQFcjakO70rj6kPcmep+uPCQ6sf7+lIPxYcpZM6Rz7KINee2oAe29dsjX8DE0qRR1x+bIVi4W3gpzSI3upagiGPVteTmz6ml5zeddXi24NM6vAFhCzSMfomhxwAAAABJRU5ErkJggg==)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAAmJLR0QA/4ePzL8AAAC6SURBVAjXJci9SsNQAIDRT6i4d3Lvw/gEVfEtFBHBVaGDi+CsOBUpgpQWYgd/Fh2ddLEFJwejEdoa7k1SP4ec8eDI1F0b4LL7fjkE/NVQXZ+/NN0x11lBBw/iQn/i+PHvW2PVmdAHBt0sqmoWDt9I2ATg/bnOu5Qr2gC47Uedn+E0qWvPXKfhPp0WGsrkDHCusToarw4vbouFzgra+DAvjycrN6yvNUe9vHzK6C8BJ7TocklFgy02eP0Hcq6CI3X8aBcAAAAASUVORK5CYII=);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,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAMAAAD3JJ6EAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA5FBMVEWlh1//4V9iABzh6//T1/82GAAzKABGKABGKAD/4bn1///3+v/z9//m7//L3P8AAw1GGABUNgD/+v/5/f/h6/8ACyEACx++1//d7P8tc/87KAD+/f/2+v8ATL0DAAAABhcAA18WAAIwh//Z6P8ADSIACzYDAAcEAALP5P/5+//v9v+avP8cCAAUCgASCgD/4eb19//8/P/y9v8ASacAMWzZ6f/U5v8PACM0AAX/+fv6+//K2f8ABg8AAAUFAAkAAxW20//f7f8AD1DV1/8APKoCAAcLAAhLAAUSAAkAFDsHBAD///8jMQ5iAAAAS3RSTlMAAwQaFhANEBMDBkVwaTYPEBMoc1ExOEZbDRg2cRZAJAgeGGEdBiYxHnNuGBgzOwYQXm4ZJ2NGEQsrdDg5MxUfPWQREBE3GgYVJDh1ZWACAAAAAWJLR0RLaQuFUAAAAGBJREFUCNdjYGRgYGJmYWVj52DgZOTi5uHl4xcQZOAUEhYRFROXkJRikJaRlZNXUFRSVmFQVVPX0NTS1tHVY9A3MDQyNjE1M7dgsLSytrG1s3dwdGJwdnF1Y+B09/D0AgBBxArrcQfhygAAAABJRU5ErkJggg==) 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,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAsSURBVAjXY/jPAIG/0mAsuMCv/zBBhMB/mCCyAFQQVeD/r/+/0hh//WdAAwBqlUHXRz8MQAAAAABJRU5ErkJggg==) 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/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAABLSURBVAjXFYtZEcBACENxgIRKQAISVgoSkLASKgUJSEACEtI0PznmRQCM+9AESI3Qy9hmBdTjK8Weib1LoIxqAhua3CUh7/nf6DMfPd0v3Khdg6cAAAAASUVORK5CYII=) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAsSURBVAjXY/jPAIG/0mAsuMCv/zBBhMB/mCCyAFQQVeD/r/+/0hh//WdAAwBqlUHXRz8MQAAAAABJRU5ErkJggg==) 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-tap-highlight-color:rgba(0,0,0,0);-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}.videoAdUiRedesign .videoAdUi{cursor:default;text-shadow:0 0 4px rgba(0,0,0,0.75)}.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}.videoAdUiRedesign .videoAdUiTopBar{opacity:1;padding:14px 12px 10px;position:absolute}.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}.videoAdUiRedesign .videoAdUiTopBarWithGradients{background-image:none;box-shadow:inset 0 120px 90px -90px rgba(0,0,0,0.65);height:110px}.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}.videoAdUiRedesign .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:1}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiRedesign .videoAdUiTopBarNoFade{opacity:1!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;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiRedesign .videoAdUiBottomBar{background-image:none;box-shadow:inset 0 -120px 90px -90px rgba(0,0,0,0.65);height:110px;opacity:1;padding:0 12px}.videoAdUiRedesign .videoAdUiBottomBarText{bottom:0;font:normal 12px arial,sans-serif;left:7px;line-height:30px;position:absolute}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.videoAdUiRedesign .videoAdUiProgressBar{background-color:#888}.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%}.videoAdUiRedesign .videoAdUiProgress{background:#edcb3c;border-right:none;opacity:1}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiRedesign .videoAdUiAuthorIcon{height:40px;left:12px;margin:0;position:absolute;top:10px}.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}.videoAdUiRedesign .videoAdUiAuthorName{color:rgba(255,255,255,0.75);display:block;margin:0;padding:6px 0;position:absolute;top:30px;left:22px;right:48px}.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiTitle,.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiAuthorName,.videoAdUiRedesign.videoAdUiHasWatchLater .videoAdUiTitle,.videoAdUiRedesign.videoAdUiHasWatchLater .videoAdUiAuthorName{right:90px}.videoAdUiRedesign.ytp-iv-drawer-enabled.videoAdUiHasWatchLater .videoAdUiTitle,.videoAdUiRedesign.ytp-iv-drawer-enabled.videoAdUiHasWatchLater .videoAdUiAuthorName{right:132px}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;cursor:pointer;font:normal 13px arial,sans-serif;margin-bottom:5px;opacity:.9;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreText-gvn{display:inline-block;float:right;padding:5px;padding-right:10px}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKBAMAAAB/HNKOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEUAAAD/0AD/0AD/0QD/0gD/zwD/0AD/0AD/1QD/zwD///+x1gNuAAAACnRSTlMAcuWrVY9HyCpk8FcvuAAAAAFiS0dECmjQ9FYAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA5SURBVAjXFcm5DQAgEMRA84oWyE5LQE4FiB7ovxUOB5MYCBpAlljiCIP7LftgdfqzoOS2HvnXlccDfz8EBUmGo6EAAAAASUVORK5CYII=);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%}.videoAdUiRedesign .videoAdUiTitle{color:rgba(255,255,255,0.75);font:normal 17px arial,sans-serif;max-width:none;margin:0;padding-top:14px;position:absolute;top:0;left:22px;right:48px}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.rtl .videoAdUiTitleWithAuthorIcon{margin-left:auto;margin-right:60px}.videoAdUiRedesign .videoAdUiTitleWithAuthorIcon,.videoAdUiRedesign .videoAdUiAuthorNameWithAuthorIcon{margin-left:0;margin-right:0;left:62px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.videoAdUiRedesign .videoAdUiAuthorName:hover,.videoAdUiRedesign .videoAdUiTitle:hover{color:#fff}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttributionContainer{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;left:0;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiRedesign .videoAdUiAttributionContainer{font:normal 12px arial,sans-serif;line-height:30px;margin-top:6px;padding:0;padding-right:0;position:static;text-shadow:inherit}.videoAdUiAttributionContainer-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiAttribution{display:inline-block;opacity:.9;text-align:initial}.rtl .videoAdUiAttribution,.rtl .videoAdUiAdInfoPopupText,.rtl .videoAdUiAdvertiserLink{direction:rtl}.videoAdUiRedesign .videoAdUiAttribution,.videoAdUiRedesign .videoAdUiAttributionIcon{opacity:.75}.ltr .videoAdUiRedesign .videoAdUiAttribution{margin-left:5px}.videoAdUiAttributionContainer-gvn .videoAdUiAttribution{opacity:1}.videoAdUiAttributionIconContainer{display:inline-block;position:relative}.videoAdUiAttributionIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAABGdBTUEAALGPC/xhBQAAAAJiS0dEAP+Hj8y/AAAAiElEQVQI1z2OsQ2CQAAAz49DUNuwgDwbGBM7SNjBjuguJmyAFnS2xoJWG61IDDrJ2aDXXa45RFza+vDp0SgyEyq2nHkRWLDhwAkze3NxcBBzeyN21iIWFiLWdvgxFbGxETH1PQcCACv+BG6ThimuuWO0N4qlpZMhVl7cm5i482oliJjZOjr+5r8EnGSNEk6hxAAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAASUVORK5CYII=);height:10px;margin:10px 10px 0;position:relative;width:10px}.videoAdUiAdInfoPopup{background:white;border:1px solid black;box-sizing:border-box;color:black;display:none;font-size:12px;left:-15px;line-height:normal;padding:7px;position:absolute;text-shadow:none;bottom:20px;width:211px}.videoAdUiRedesign .videoAdUiAdInfoPopup{left:-20px;bottom:30px}.videoAdUiAttributionIconContainer:hover .videoAdUiAdInfoPopup{display:inline-block}.videoAdUiAdInfoPopupCallout{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid white;box-sizing:border-box;display:inline-block;height:0;left:24px;overflow:visible;position:absolute;text-align:center;top:100%;width:0}.videoAdUiRedesign .videoAdUiAttributionIcon{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAABGdBTUEAALGPC/xhBQAAAAJiS0dEAP+Hj8y/AAAAiElEQVQI1z2OsQ2CQAAAz49DUNuwgDwbGBM7SNjBjuguJmyAFnS2xoJWG61IDDrJ2aDXXa45RFza+vDp0SgyEyq2nHkRWLDhwAkze3NxcBBzeyN21iIWFiLWdvgxFbGxETH1PQcCACv+BG6ThimuuWO0N4qlpZMhVl7cm5i482oliJjZOjr+5r8EnGSNEk6hxAAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAASUVORK5CYII=);display:inline-block;height:10px;margin:0 5px;opacity:.75;width:10px}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink{color:rgba(255,255,255,0.75);display:inline-block;margin:0 5px;cursor:pointer;text-decoration:none}.videoAdUiRedesign .videoAdUiVisitAdvertiserLinkText{display:inline-block;margin:-5px 0;padding:5px;text-decoration:inherit}.videoAdUiRedesign .videoAdUiVisitAdvertiserIcon{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAABXSURBVAjXVY6xDYAwEMT8iBaJDWAWhFDYfwCo6MgKpiEh+JuXdYVDKvXtPkcQJDJg4XQ2ebspKu8ls6u0cje7OrVy9HIRD5FvOUiZhBK0WfFPqvRtdOEBg3RMtKey4oQAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAAAElFTkSuQmCC);display:inline-block;height:10px;opacity:.75;width:10px}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink:hover{color:rgba(255,255,255,1.0);text-decoration:underline}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink:hover .videoAdUiVisitAdvertiserIcon{opacity:1}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.rtl .videoAdUiShare{float:left}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiRedesign .videoAdUiTopButtons{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif}.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiTopButtons{position:relative;right:34px}.videoAdUiRedesign .videoAdUiTopButton{background-position:center;background-repeat:no-repeat;border-left:5px solid transparent;border-right:5px solid transparent;border-top:14px solid transparent;display:inline-block;margin:-14px 0 0;height:24px;opacity:.75;text-align:center;width:24px}.videoAdUiRedesign .videoAdUiTopButton:hover{cursor:pointer;opacity:1}.videoAdUiRedesign .videoAdUiTopButtonShare{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAQAAACY0sZTAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAACqSURBVDjL7ZJBEcIwEEU3GEgdREIlBAeVgITUQSSAk0oAB5VQHJQqeBwomcAMZHNghkPfKZvJn5+/80U2/g0cHlcnGQCYsHqJ50nI73dfJFb6NDRalyn5zIVUOFosRwBGOgKxkGgN/iDWBh9pP797XcQ+nW5y1a7YMWfhO63MEgl4zgAM2KpGcMhc9Y3Arn41jTCLXNLQKJ2yxbw1wpS+KL2InMyidtr4BXdaZZpobfXi6QAAAABJRU5ErkJggg==)}.videoAdUiRedesign .videoAdUiTopButton:hover .videoAdUiTopButtonCallout{display:inline-block}.videoAdUiRedesign .videoAdUiTopButtonCallout{border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #444;box-sizing:border-box;display:none;height:0;overflow:visible;position:relative;text-align:center;top:100%;width:0}.videoAdUiRedesign .videoAdUiTopButtonTooltip{background:#444;border-radius:3px;box-sizing:border-box;color:white;display:inline-block;font-size:11px;padding:8px;position:relative;top:5px;width:50px}.ltr .videoAdUiRedesign .videoAdUiTopButtonTooltip{left:-25px}.rtl .videoAdUiRedesign .videoAdUiTopButtonTooltip{right:-25px}.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}.videoAdUiRedesign .videoAdUiPreSkipContainer,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiPreSkipContainer{background:rgba(0,0,0,0.4);bottom:30px;height:52px;padding:0;vertical-align:middle}.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}.videoAdUiRedesign .videoAdUiSkipContainer,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiSkipContainer{bottom:30px;padding:0}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiRedesign .videoAdUiPreSkipButton,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiPreSkipButton{background:transparent;display:inline-block;font-size:12px;min-height:52px;min-width:0;padding:0;text-align:center}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiRedesign .videoAdUiPreSkipText{color:inherit;font:normal 12px arial,helvetica,sans-serif;width:auto;max-width:105px}.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}.videoAdUiRedesign .videoAdUiPreSkipThumbnailImage{max-width:92px;max-height:52px}.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}.videoAdUiRedesign .videoAdUiSkipButton,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiSkipButton{background:rgba(0,0,0,0.7);line-height:45px;min-width:164px;padding:0}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUiRedesign .videoAdUiSkipButton:hover{background:rgba(0,0,0,0.9)}.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,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAAAAABjvpF0AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAnRSTlMAAHaTzTgAAAACYktHRAD/h4/MvwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAEFJREFUGNNjYKARmC+PYP//D2cghJEEEcIogjBhNEGIMIYgSBiL4P14DMH78RjaQUJoghAhFEGYEJIgQghJkB4AAG9cX5X8X+CRAAAAAElFTkSuQmCC);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}.rtl .videoAdUiSkipIcon{margin:0 0 0 2px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiRedesign .videoAdUiTitle{font-size:17px}.videoAdUiAttribution{font-size:13px}.videoAdUiRedesign .videoAdUiAttribution{font-size:12px}.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)}O(c,
"autoalign",a.o.ro);O(c,"viewmode-fullscreen","fullscreen"==a.N);c.appendChild(a.X);MY(a).M(c,"click",im);(LY(a)&&jV(KY(a))||a.o.useStyledNonLinearAds)&&a.Sk(a.j.j);return c}f.Sk=function(a){var b=MY(this);this.W=XP(xY);b.M(this.W,"click",this.Jx);var c=XP(wY);b.M(c,"click",this.Jl);a.appendChild(c)};function SY(a){if(null!=a.j){var b=Yg(a.B.Lf()),c=Yg(Zd(a.j.j));if(c.width>b.width||c.height>b.height)throw b=ZK(yK,null),UY(a,b),a.stop(),b;}}function UY(a,b){var c=JW(b,KY(a)),d=VU(KY(a));mK(d,c)}
f.Rw=function(a){this.dc("click");im(a)};f.Jl=function(){this.Ro();this.xa("userClose");QY(this,"close")};f.Ro=function(){this.j.stop();var a=$U(KY(this));null!=a&&GU(a);Xd(this.W,this.j.j)};f.Jx=function(a){im(a);BY(this.j);this.j.play();Xd(this.j.j,this.W);xn(function(){bh(this.X,!1)},500,this);bh(this.X,!0)};function WY(a){RY.call(this,a);this.J=!1;this.F=this.Z=null;nb(a)||null==a[0].A||(this.Z=a[0].A,uf(new J(this.Z.adTagUrl),"channel"))}A(WY,RY);f=WY.prototype;f.zp=function(a,b){if(this.J||null==b)b=v;var c;hL()&&this.J?c=new zY(a[0],b):"fullscreen"==this.N?c=new EY(a):1<a.length?(c=new CY(a),c.N=15E3):c=new zY(a[0],b);c.pp=100;this.J&&(c.fq=30);c.gq=45E3;c.xr=6E3;O(c.j,"scalable",this.J);O(c.Q(),"yt-text-overlay",hL()&&this.J);return c};
f.EC=function(a){var b=a.j;null!=b?(null==this.U&&(this.U=a.getExtension("AdSense").D),FU(b,pa(this.my,a,b)),EU(b,pa(this.Sw,a,b)),b.oa=!1,"Text"==b.getContentType()&&(this.J=!0),this.F.push(b)):(b=XK(DK),b=JW(b,a),mK(VU(a),b))};f.Vc=function(a,b,c){WY.K.Vc.call(this,a,b,c);this.o.ro=!0;null!=this.ads[0]&&0<ZR(this.ads[0]).length?NY(this,this.ads[0]):hL()&&this.xa("companionBackfill")};
f.Wk=function(){null==this.F&&(this.F=[],D(this.ads,this.EC,this));if(0==this.F.length)throw ZK(DK);var a=[];D(this.F,function(b){DU(b,MY(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.wo=!0);a.push(b.Qe());JU(b,this.U.A)},this);if(0==a.length)throw ZK(DK);return VY(this,a)};f.Jl=function(a){WY.K.Jl.call(this,a);D(this.F,function(a){var c=PW(a.getAd());this.C.j=c;this.gf(a,["close"]);QY(this,"close");this.C=new FY},this)};
f.Sk=function(a){WY.K.Sk.call(this,a);var b=this.ads[0].getExtension("AdSense"),c=b.B,b=b.C,c=XP(yY,{text:null!=c?c:this.U.j,url:null!=b?b:this.U.o});a.appendChild(c)};f.my=function(a,b){this.O?this.Ar(a,b):this.T.push(y(this.Ar,this,a,b));FU(b,v)};f.Ar=function(a,b){var c=PW(a);this.C.j=c;this.fg(a);this.gf(b,["creativeview"]);QY(this,"impression");QY(this,"creativeview");this.C=new FY};
f.Sw=function(a,b,c){c=Ug(c);a=a.getExtension("AdSense");a=new J(a.A);var d=b.Cd();isNaN(d)&&(d=Xg(b.Qe()).width);var e=b.getHeight();isNaN(e)&&(e=Xg(b.Qe()).height);b=TT();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.N,"sdkv=h.0.0.0","eids="+XT(b)];jK(a,"elementclick",b);D(this.F,function(a){var b=PW(a.getAd());this.C.j=b;TY(this,a);QY(this,"click");this.C=new FY},this);this.xa("click")};
f.Xi=function(a){this.N!=a&&(WY.K.Xi.call(this,a),null!=this.A&&(Vd(this.A),a=this.Wk(),this.A.appendChild(a)),this.xa("expandedChanged"))};function XY(a){LJ.call(this,"adMetadata",a)}A(XY,LJ);function YY(a,b,c){var d=v,e=new J("https://www.googleapis.com/youtube/v3/videos");K(e,"id",a);K(e,"part","snippet,status");K(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=y(b,c),d=y(d,c));ZY(new ro,e,b,d)}
function $Y(a,b,c){var d=v,e=new J("https://www.googleapis.com/youtube/v3/channels");K(e,"id",a);K(e,"part","snippet,statistics");K(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount");null!=c&&(b=y(b,c),d=y(d,c));ZY(new ro,e,b,d)}
function ZY(a,b,c,d){K(b,"key","AIzaSyDykhSj35yFHOiDglTp-ZuD9HCUQf62oS0");uo(a,2E3);var e=new Bn(a);Fn(e,a,"success",function(a){a=a.target;var b;b=a.j?ng(a.j.responseText):void 0;c(b||{});e.dispose();a.dispose()});Fn(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.o&&(b=Error(In(a.o)));d(b);e.dispose();a.dispose()});a.send(b)};function aZ(a,b,c,d,e){Hx.call(this);this.o=a;this.C=b;this.D=c;this.A=d;this.F=ea(e)?e:[e]}A(aZ,Hx);f=aZ.prototype;f.play=function(){if(this.xb())return!1;this.kj();this.wc("play");this.startTime=z();this.j=1;if(As())return Fg(this.o,this.D),this.B=xn(this.Kw,void 0,this),!0;this.bn(!1);return!1};f.Kw=function(){Yg(this.o);ys(this.o,this.F);Fg(this.o,this.A);this.B=xn(y(this.bn,this,!1),1E3*this.C)};f.stop=function(){this.xb()&&this.bn(!0)};
f.bn=function(a){zs(this.o,"");yn(this.B);Fg(this.o,this.A);this.endTime=z();this.j=0;a?this.wc("stop"):this.Ac();this.mh()};f.P=function(){this.stop();aZ.K.P.call(this)};f.pause=function(){};function bZ(a,b,c,d){return new aZ(a,.5,{opacity:c},{opacity:d},{property:"opacity",duration:.5,timing:b,Io:0})};function cZ(a,b){V.call(this);this.A=a;this.O=0;this.H=!1;this.o=1;this.j=this.X=this.J=this.R=this.B=null;this.C=new Bn(this);this.U=!1;this.ba=this.Z=this.T=0;this.D=this.G=this.F=null;this.N=!1;this.I=new vP;this.W="";this.A.G&&(this.C.M(b,"touchstart",this.By),this.C.M(b,"touchmove",this.Ay),this.C.M(b,"touchend",this.zy));this.B=XP(BQ);this.R=Hd("videoAdUiPreSkipButton",this.B);this.J=Hd("videoAdUiPreSkipText",this.R);this.X=Hd("videoAdUiPreSkipThumbnail",this.R);ee(this.J,DQ({wn:dZ(this)}));
var c=this.A.Ga,c=(B(C(c))?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.A.showContentThumbnail&&!B(C(c))){var d=Rd("img");d.setAttribute("src",c);N(d,"videoAdUiPreSkipThumbnailImage");this.X.appendChild(d)}else N(this.J,"videoAdUiPreSkipTextOnly");this.A.G?c="\u00ab Swipe to Skip":(c="\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u00bb",d=new RegExp(Na("\u00bb"),""),c=c.replace(d,""),c=va(c));this.j=XP(EQ,{VC:c});bh(this.B,!1);
b.appendChild(this.B);bh(this.j,!1);ah(this.j,0);b.appendChild(this.j);this.C.M(this.I,"click",this.TC);wP(this.I,this.j)}A(cZ,V);f=cZ.prototype;f.P=function(){null!=this.F&&(this.F.dispose(),this.F=null);null!=this.G&&(this.G.dispose(),this.G=null);eZ(this);null!=this.B&&(Wd(this.B),this.B=null);null!=this.j&&(Wd(this.j),this.j=null);this.I.dispose();this.I=null;this.C.dispose();this.C=null;this.N=!1;cZ.K.P.call(this)};
f.update=function(a,b){this.O=b;if(!(0>=this.O||null==this.A.skipOffset||0>WS(this.A.skipOffset))){var c=WS(this.A.skipOffset);c>=this.O||3==this.o||(0>a?this.o=1:a<=c?(2!=this.o&&(fZ(this,0),bZ(this.B,"ease-out",0,1).play(),bh(this.B,!0)),this.o=2):(3!=this.o&&(bh(this.j,!0),this.G=new aZ(this.B,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",Io:0}),this.F=bZ(this.j,"ease-out",0,1),this.G.play(),this.F.play(),this.C.M(be(this.j),
"mouseover",this.BC),this.C.M(be(this.j),"mouseout",this.Sr),this.Sr()),this.o=3,this.Y("skipshown")))}2==this.o&&fZ(this,a)};f.skip=function(){return null==this.A.skipOffset||3!=this.o||this.H?!1:(this.H=!0,this.Y("PUBLISHER_INVOKED_SKIP"),!0)};f.By=function(a){var b=a.j;3==this.o&&1==b.touches.length&&(this.U=!0,this.ba=b.touches[0].pageX,a.preventDefault())};
f.Ay=function(a){var b=a.j;3==this.o&&1==b.touches.length&&this.U&&(b=b.touches[0].pageX,this.T=this.Z-b,this.Z=b,b=this.ba-b,0<b&&(this.j.style.right=b+"px"),a.preventDefault())};f.zy=function(){this.U=!1;if(3==this.o){var a=Xg(be(this.j));if(parseInt(this.j.style.right,10)+4*this.T>.25*a.width&&0<this.T){bh(this.j,!1);this.H=!0;this.Y("skip");return}}this.j.style.right=0};function dZ(a){return null!=a.A.skipOffset&&-1!=WS(a.A.skipOffset)?WS(a.A.skipOffset):-1}
function fZ(a,b){var c=dZ(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+OS(c));c=DQ({wn:d,Di:a.W});ee(a.J,c)}}f.TC=function(a){hL()||a.stopPropagation();3!=this.o||this.H||(this.H=!0,this.Y("skip"))};f.Sr=function(){null==this.D&&(this.D=xn(function(){this.N=!0;bZ(this.j,"ease-in",1,.5).play();this.D=null},this.N?5E3:15E3,this))};f.BC=function(){ah(this.j,1);eZ(this)};function eZ(a){null!=a.D&&(yn(a.D),a.D=null)};function gZ(a,b,c){V.call(this);this.j=a;this.O=!1;this.oa=c;this.Z=this.U=this.R=this.C=this.I=this.J=this.G=this.X=this.W=this.o=null;this.la=!1;this.na=this.ba=this.da=this.H=this.B=this.F=this.ga=this.T=this.N=this.D=null;this.A=new Bn(this);this.sa=[];this.O=!this.j.B&&(WT(956001)||WT(956002));a={Uc:this.j.Uc,Yf:this.j.Yf,xf:this.j.xf,Di:this.O?"redesign2014q4":""};this.o=XP(this.j.F,a);this.A.M(this.o,"touchmove",this.ty);this.T=Hd("videoAdUiProgress",this.o);this.ga=Hd("videoAdUiBuffer",this.o);
this.W=Hd("videoAdUiAttributionContainer",this.o);this.X=Hd("videoAdUiAttribution",this.o);this.G=Hd("videoAdUiVisitAdvertiserLinkText",this.o);this.J=Hd("videoAdUiVisitAdvertiserIcon",this.o);this.I=Hd("videoAdUiAuthorIcon",this.o);this.C=Hd("videoAdUiAuthorName",this.o);this.R=Hd("videoAdUiLearnMore",this.o);this.U=Hd("videoAdUiLearnMoreText",this.o);this.O?(this.H=Hd("videoAdUiTopButtonShare",this.o),this.da=Hd("videoAdUiTopButtonShareTooltip",this.o),this.ba=Hd("videoAdUiTopButtonInfo",this.o),
this.na=Hd("videoAdUiTopButtonWatchLater",this.o)):this.H=Hd("videoAdUiShare",this.o);this.D=Hd("videoAdUiTitle",this.o);this.N=Hd("videoAdUiTopBar",this.o);this.Z=Hd("videoAdUiBottomBar",this.o);null!=this.I&&this.A.M(this.I,"click",this.Sv);null!=this.C&&this.A.M(this.C,"click",this.Tv);null!=this.R&&this.A.M(this.R,"click",this.Vp);null!=this.U&&this.A.M(this.U,"click",this.Vp);null!=this.H&&this.A.M(this.H,"click",this.OC);null!=this.D&&this.A.M(this.D,"click",this.aD);null!=this.N&&this.A.M(this.o,
"mouseover",this.NC);null!=this.G&&this.A.M(this.G,"click",this.ek);null!=this.J&&this.A.M(this.J,"click",this.ek);null!=this.j.skipOffset&&(this.B=new cZ(this.j,this.o),this.B.Mj(this),this.B.W=a.Di);400>=(parseInt(Jg(b,"width"),10)||b.width)&&N(this.o,"videoAdUi-mobile");this.j.B&&(N(this.o,"blazer"),window.settings&&window.settings.isTablet?N(this.o,"tablet"):N(this.o,"phone"));this.j.G&&N(this.o,"videoAdUi-swipeable");this.O&&N(ne(b,"html5-video-player"),"videoAdUiRedesign");bh(this.o,!1);b.appendChild(this.o);
this.j.A||this.O||!this.j.H||(this.F=I("div",{style:"width:100%;height:100%"}),this.o.appendChild(this.F));hZ(this)}A(gZ,V);f=gZ.prototype;f.skip=function(){var a;if(a=null!=this.B)a=this.B,a=null!=a.A.skipOffset&&3==a.o;return a?this.B.skip():!1};f.P=function(){null!=this.o&&(Wd(this.o),this.o=null);null!=this.B&&(this.B.dispose(),this.B=null);this.F=null;this.A.dispose();this.A=null;this.la=!1;gZ.K.P.call(this)};
f.update=function(a,b,c,d,e){this.la=!0;null!=this.o&&(null!=this.X&&iZ(this,a,c,d,e),null!=this.T&&Wg(this.T,a/c*100+"%"),null!=this.ga&&Wg(this.ga,b/c*100+"%"),0<c&&null!=this.j.skipOffset&&null!=this.B&&(XS(this.j.skipOffset,c),this.B.update(a,c)),this.j.D&&0<c&&5>c-a&&N(this.N,"videoAdUiTopBarNoFade"),D(this.sa,function(b){b.update(a,c)},this))};function jZ(a,b){a.sa=b;D(b,function(a){a.display(this.o)},a)}
function kZ(a){null!=a.G&&(bh(a.G,!0),ee(a.G,a.j.visitAdvertiserText));null!=a.J&&bh(a.J,!0)}
function hZ(a){var b=a.j.O&&(a.oa>a.j.W||0==a.oa),c=b&&a.j.R,d=b&&a.j.U,e=b&&a.j.o,g=b&&a.j.N,b=b&&a.j.D,h=a.j.J&&a.j.j,k="0px";null!=a.D&&(bh(a.D,b),null!=a.I&&bh(a.I,c),null!=a.C&&bh(a.C,d),null!=a.R&&bh(a.R,e),null!=a.H&&(bh(a.H,g),g&&a.Y("videoShareShown")),null!=a.ba&&bh(a.ba,!1),null!=a.na&&bh(a.na,!1),null!=a.N&&bh(a.N,b||c||d||e));null!=a.W&&lZ(a);null!=a.T&&(bh(a.T,h),h&&(k=Jg(a.T,"height")));null!=a.Z&&Fg(a.Z,"bottom",k);null!=a.U&&bh(a.U,a.j.A)}
function iZ(a,b,c,d,e){var g=FQ({Vj:"",gi:0,Xj:0});a.j.j&&a.j.I&&(b=OS(c-b),g=FQ({Vj:a.j.B?" \u2022 "+b:a.O?" \u00b7 "+b:": ("+b+")",gi:d,Xj:e}));ee(a.X,g);lZ(a)}function lZ(a){bh(a.W,a.j.C&&(!a.j.j||a.la))}f.Sv=function(){this.Y("videoAuthorIconClicked")};f.Tv=function(){this.Y("videoAuthorClicked")};f.Vp=function(){this.Y("videoLearnMoreClicked")};f.OC=function(){this.Y("videoShareClicked")};f.aD=function(){this.Y("videoTitleClicked")};f.ty=function(a){a.preventDefault()};f.ek=function(){this.Y("click")};
f.NC=function(){N(this.N,"videoAdUiTopBarTransitions")};function mZ(){this.Uc=FQ({Vj:"",gi:0,Xj:0});var a="",b="\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435... "+bQ("");this.Yf=a+b;this.visitAdvertiserText="Visit Advertiser's Site";var b=cQ('<a href="https://www.google.com/settings/ads/onweb">'),c=cQ("</a>"),a="",b="\u041f\u043e\u0441\u0435\u0442\u0438\u0442\u0435 "+(bQ(b)+("\u0440\u0430\u0437\u0434\u0435\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 Google"+(bQ(c)+", \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u0442\u0430\u0440\u0433\u0435\u0442\u0438\u043d\u0433\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u044b.")));
this.xf=cQ(a+b);this.skipOffset=null;this.W=6E3;this.I=this.j=this.H=this.C=!0;this.N=this.J=this.o=!1;this.O=!0;this.D=this.U=this.R=this.T=this.A=!1;this.F=null;this.G=lm&&WT(0);this.showContentThumbnail=!0;this.B=!1}function nZ(a,b,c,d){var e=new mZ;e.A=a;e.X=b;e.skipOffset=c;e.Ga=null!=d?d.contentId:null;e.H=d.fD;e.F=yQ;e.Z=EP(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e};function oZ(a){hm.call(this,a)}A(oZ,hm);function pZ(a){V.call(this);this.C=a;this.I=new xe;this.G=-1;this.J=!1}A(pZ,V);function qZ(a){this.o=!1;this.j=a.$g();this.volume=a.Bd()}qZ.prototype.muted=function(a,b){return!this.j&&a||0<this.volume&&0==b};f=pZ.prototype;f.P=function(){rZ(this);pZ.K.P.call(this)};function rZ(a){null!=a.o&&a.o.dispose();null!=a.j&&a.j.Qf();null!=a.D&&a.D.dispose();a.D=null;null!=a.F&&a.F.dispose();a.F=null;a.I.clear();a.G=-1;a.J=!1}
function sZ(a,b,c){if(!c||null==a.I.get(b)){a.I.set(b,!0);a:{if(a.A&&a.A.j.o){if("click"==b)break a;"videoLearnMoreClicked"==b&&GY(a.C,new hm("click"))}c="click"==b||"videoLearnMoreClicked"==b?3:null;null!=c&&null!=a.j&&a.j.Pr(c);GY(a.C,new hm(b))}a.Y(b)}}f.LA=function(){sZ(this,"measurable_impression",!1)};f.gC=function(a){a=a.A;a=SW(this.C.j,null!=a?a.viewabilityString:null);this.C.j=a;sZ(this,"viewable_impression",!1)};
f.My=function(){var a=this.j.Ic();if(-1!=a){this.j.Hg(.25*a)&&sZ(this,"firstquartile",!0);this.j.Hg(.5*a)&&sZ(this,"midpoint",!0);this.j.Hg(.75*a)&&sZ(this,"thirdquartile",!0);var b=this.C,c=this.j.getCurrentTime();0>b.D&&(dT(b.o,a),b.D=0);for(var a=bT(b.o,"progress"),d=b.D;d<a.length;d++){var e=a[d];if(WS(e.o)>c)break;b.D=d+1;kK(e.j,b.j)}}tZ(this)};function tZ(a){0>a.G||a.J||!a.j.Hg(a.G)&&!a.j.af()||(a.J=!0,sZ(a,"engagedview",!0),a.Y(new oZ("viewCount")))}
f.Ly=function(){sZ(this,"impression",!0);sZ(this,"creativeview",!0);null!=this.H||null!=this.A||this.o.M(this.j,"click",this.Zl);null!=this.H&&(this.D=new vP,this.o.M(this.D,"click",this.Zl,!1),wP(this.D,this.H));null!=this.A&&(this.F=new vP,this.o.M(this.F,"click",this.Zl,!1),wP(this.F,this.A));sZ(this,"start",!0);(this.j.$g()||0==this.j.Bd())&&sZ(this,"mute",!1)};
f.Ny=function(){var a=this.j.$g(),b=this.j.Bd(),c=this.B;c.j&&!a||!a&&0==c.volume&&0<b?sZ(this,"unmute",!1):this.B.muted(a,b)&&sZ(this,"mute",!1);this.B.j=a;this.B.volume=b};f.Jy=function(){this.j.af()?(tZ(this),sZ(this,"complete",!0)):this.j.ah()&&!this.j.Cp()&&(this.B.o=!0,sZ(this,"pause",!1))};f.Ky=function(){this.B.o&&(this.B.o=!1,sZ(this,"resume",!1))};f.Fy=function(){tZ(this);sZ(this,"complete",!0)};f.Zl=function(){sZ(this,"click",!1)};f.Gy=function(){sZ(this,"error",!1)};
f.Iy=function(){sZ(this,"mediaLoadTimeout",!1)};f.dr=function(){sZ(this,"skipshown",!0)};f.QB=function(){sZ(this,"videoAuthorIconClicked",!1)};f.PB=function(){sZ(this,"videoAuthorClicked",!1)};f.SB=function(){sZ(this,"videoClicked",!1)};f.YB=function(){sZ(this,"videoLearnMoreClicked",!1)};f.cC=function(){sZ(this,"videoShareClicked",!1)};f.dC=function(){sZ(this,"videoShareShown",!0)};f.fC=function(){sZ(this,"videoTitleClicked",!1)};f.Kp=function(){sZ(this,"skip",!0)};
f.cB=function(){sZ(this,"skip",!0)};f.Hy=function(){sZ(this,"fullscreen",!1)};f.qA=function(){sZ(this,"exitfullscreen",!1)};function uZ(a){JY.call(this,a);this.A=null;this.F=new pZ(this.C);this.U=this.Z=this.X=this.W=this.O=!1;this.T=1;this.J=null;this.ba=!nL()&&(WT(956001)||WT(956002))}A(uZ,JY);f=uZ.prototype;f.P=function(){vZ(this);var a=!1;null!=this.B&&(a=this.B.Pl(),this.B.$(),this.B=null);this.O&&(this.O=!1,this.j.ah()||this.j.af()||this.j.pause(),pL()&&!a&&(this.j.Pf(.001),this.j.load("","")),oL()&&this.j.ce()&&!a&&this.j.rl(),this.xa("contentResumeRequested"),this.xa("allAdsCompleted"));uZ.K.P.call(this)};
function vZ(a){Ai(a.A);a.A=null;Ai(a.F);Ai(a.C);Ai(a.H);a.W=!1;a.U=!1}function wZ(a){a.uh();LY(a)?a.start():a.stop()}f.uh=function(){vZ(this);uZ.K.uh.call(this);LY(this)&&(this.C=new FY,this.F=new pZ(this.C))};
f.cz=function(a,b,c){if(!this.W){this.W=!0;var d=CP(b);if(this.o.useVideoAdUi){var e=a.getExtension("AdSense"),g=this.o.Ol&&(this.ba||(null===b?!1:"modules"==(new J(b)).Kf().toLowerCase())||null!=e&&e.G),h=!0,k=!0;if(WT(909720)||QU(a)&&30<qV(a)&&WT(909721))k=h=!1;e=-1!=qV(a)&&0!=qV(a)&&7>=qV(a)?null:kV(a);if(hL()){var l=this.o,p=B(C(pV(a)))?!1:this.o.os;SU(a,VJ);d=nZ(g,d,e,l);d.o=p;d.J=k;d.I=h;d.B=l.nn;d.N=l.useShareButton;d.T=l.gD;d.W=0;l.nn&&(d.Yf="\u0421\u0430\u0439\u0442 \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0434\u0430\u0442\u0435\u043b\u044f")}else SU(a,
VJ)||!B(C(a.N))?(l=g,p=this.o,!B(C(d))&&null!==e&&0<WS(e)&&WT(41351090)&&(l=!0),d=nZ(l,d,e,p),d.F=l?AQ:zQ):(d=nZ(g,d,e,this.o),d.O=!1,d.C=!1,d.j=!1);e=this.B.Bl();null===e?e=document.body:(Vd(e),l=I("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/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAC3SURBVBjTddAxbsJAEADAuZOVKn0kWkeIJh+IXOQJlt+Sp/COyE+gQBFPoHBaZFDkiuqKQMHhBAVvtXuju93b8KI+vboXn9oQlqfSVHwpSizu4lYpXotO9y+juB6twfOfbOToANb6fPNg7iIoNLm84FyTn42QDBqz3G+mMUi/TLKxy7yzyThyZwUewWqcPXMPFt7zDvrbj1WIat9qH35Ut0zlwSBJ3sbOFHtPthM734ttOE7gURvO57AyavXUXEcAAAAASUVORK5CYII=);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAAmJLR0QA/4ePzL8AAADdSURBVAjXAdIALf8A27rb69t02wQAANsF23jb7Nu1AAAB2/UACvr9wqMgcyRgAIQACfb7L44DbgH7QAYDFCr7QQ5RAQ77/aLixgABAACbpzFSDwYAAAAA8fml44/dAKAAAAAAAMDP2//b/9v/pOsArQBVAAACAADbcRsXAAAAAAAAJQ1/CwCrAAAD23YAgwAR9fnQ8BAFDwYoIDQhsbEB2/QAC/v9nOCj2XUJTT8EAvb7L1sCAM33/KLhlN3robNUya74/Nr0AF0BAAAAkQAjAKcAqQD8AAQAWgBXANbCiVTrFOn0bgAAAABJRU5ErkJggg==);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAACzSURBVBjTddAtzsJAEADQt1CN/xRBIIFwge8AeAzpabgIHiQCT3qD4hCEQIIkBNtQzLY0gY7YzOzb3wlT8/Lfr9jbhLAqh9riKGQlg594QqcqcvlXRlJN7cCokdUcXMHOxQFcjakO70rj6kPcmep+uPCQ6sf7+lIPxYcpZM6Rz7KINee2oAe29dsjX8DE0qRR1x+bIVi4W3gpzSI3upagiGPVteTmz6ml5zeddXi24NM6vAFhCzSMfomhxwAAAABJRU5ErkJggg==)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAAmJLR0QA/4ePzL8AAAC6SURBVAjXJci9SsNQAIDRT6i4d3Lvw/gEVfEtFBHBVaGDi+CsOBUpgpQWYgd/Fh2ddLEFJwejEdoa7k1SP4ec8eDI1F0b4LL7fjkE/NVQXZ+/NN0x11lBBw/iQn/i+PHvW2PVmdAHBt0sqmoWDt9I2ATg/bnOu5Qr2gC47Uedn+E0qWvPXKfhPp0WGsrkDHCusToarw4vbouFzgra+DAvjycrN6yvNUe9vHzK6C8BJ7TocklFgy02eP0Hcq6CI3X8aBcAAAAASUVORK5CYII=);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,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAMAAAD3JJ6EAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA5FBMVEWlh1//4V9iABzh6//T1/82GAAzKABGKABGKAD/4bn1///3+v/z9//m7//L3P8AAw1GGABUNgD/+v/5/f/h6/8ACyEACx++1//d7P8tc/87KAD+/f/2+v8ATL0DAAAABhcAA18WAAIwh//Z6P8ADSIACzYDAAcEAALP5P/5+//v9v+avP8cCAAUCgASCgD/4eb19//8/P/y9v8ASacAMWzZ6f/U5v8PACM0AAX/+fv6+//K2f8ABg8AAAUFAAkAAxW20//f7f8AD1DV1/8APKoCAAcLAAhLAAUSAAkAFDsHBAD///8jMQ5iAAAAS3RSTlMAAwQaFhANEBMDBkVwaTYPEBMoc1ExOEZbDRg2cRZAJAgeGGEdBiYxHnNuGBgzOwYQXm4ZJ2NGEQsrdDg5MxUfPWQREBE3GgYVJDh1ZWACAAAAAWJLR0RLaQuFUAAAAGBJREFUCNdjYGRgYGJmYWVj52DgZOTi5uHl4xcQZOAUEhYRFROXkJRikJaRlZNXUFRSVmFQVVPX0NTS1tHVY9A3MDQyNjE1M7dgsLSytrG1s3dwdGJwdnF1Y+B09/D0AgBBxArrcQfhygAAAABJRU5ErkJggg==) 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,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAsSURBVAjXY/jPAIG/0mAsuMCv/zBBhMB/mCCyAFQQVeD/r/+/0hh//WdAAwBqlUHXRz8MQAAAAABJRU5ErkJggg==) 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/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAABLSURBVAjXFYtZEcBACENxgIRKQAISVgoSkLASKgUJSEACEtI0PznmRQCM+9AESI3Qy9hmBdTjK8Weib1LoIxqAhua3CUh7/nf6DMfPd0v3Khdg6cAAAAASUVORK5CYII=) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAsSURBVAjXY/jPAIG/0mAsuMCv/zBBhMB/mCCyAFQQVeD/r/+/0hh//WdAAwBqlUHXRz8MQAAAAABJRU5ErkJggg==) 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-tap-highlight-color:rgba(0,0,0,0);-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}.videoAdUiRedesign .videoAdUi{cursor:default;text-shadow:0 0 4px rgba(0,0,0,0.75)}.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}.videoAdUiRedesign .videoAdUiTopBar{opacity:1;padding:14px 12px 10px;position:absolute}.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}.videoAdUiRedesign .videoAdUiTopBarWithGradients{background-image:none;box-shadow:inset 0 120px 90px -90px rgba(0,0,0,0.65);height:110px}.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}.videoAdUiRedesign .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:1}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiRedesign .videoAdUiTopBarNoFade{opacity:1!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;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiRedesign .videoAdUiBottomBar{background-image:none;box-shadow:inset 0 -120px 90px -90px rgba(0,0,0,0.65);height:110px;opacity:1;padding:0 12px}.videoAdUiRedesign .videoAdUiBottomBarText{bottom:0;font:normal 12px arial,sans-serif;left:7px;line-height:30px;position:absolute}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.videoAdUiRedesign .videoAdUiProgressBar{background-color:#888}.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%}.videoAdUiRedesign .videoAdUiProgress{background:#edcb3c;border-right:none;opacity:1}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiRedesign .videoAdUiAuthorIcon{height:40px;left:12px;margin:0;position:absolute;top:10px}.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}.videoAdUiRedesign .videoAdUiAuthorName{color:rgba(255,255,255,0.75);display:block;margin:0;padding:6px 0;position:absolute;top:30px;left:22px;right:48px}.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiTitle,.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiAuthorName,.videoAdUiRedesign.videoAdUiHasWatchLater .videoAdUiTitle,.videoAdUiRedesign.videoAdUiHasWatchLater .videoAdUiAuthorName{right:90px}.videoAdUiRedesign.ytp-iv-drawer-enabled.videoAdUiHasWatchLater .videoAdUiTitle,.videoAdUiRedesign.ytp-iv-drawer-enabled.videoAdUiHasWatchLater .videoAdUiAuthorName{right:132px}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;cursor:pointer;font:normal 13px arial,sans-serif;margin-bottom:5px;opacity:.9;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreText-gvn{display:inline-block;float:right;padding:5px;padding-right:10px}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKBAMAAAB/HNKOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEUAAAD/0AD/0AD/0QD/0gD/zwD/0AD/0AD/1QD/zwD///+x1gNuAAAACnRSTlMAcuWrVY9HyCpk8FcvuAAAAAFiS0dECmjQ9FYAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA5SURBVAjXFcm5DQAgEMRA84oWyE5LQE4FiB7ovxUOB5MYCBpAlljiCIP7LftgdfqzoOS2HvnXlccDfz8EBUmGo6EAAAAASUVORK5CYII=);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%}.videoAdUiRedesign .videoAdUiTitle{color:rgba(255,255,255,0.75);font:normal 17px arial,sans-serif;max-width:none;margin:0;padding-top:14px;position:absolute;top:0;left:22px;right:48px}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.rtl .videoAdUiTitleWithAuthorIcon{margin-left:auto;margin-right:60px}.videoAdUiRedesign .videoAdUiTitleWithAuthorIcon,.videoAdUiRedesign .videoAdUiAuthorNameWithAuthorIcon{margin-left:0;margin-right:0;left:62px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.videoAdUiRedesign .videoAdUiAuthorName:hover,.videoAdUiRedesign .videoAdUiTitle:hover{color:#fff}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttributionContainer{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;left:0;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiRedesign .videoAdUiAttributionContainer{font:normal 12px arial,sans-serif;line-height:30px;margin-top:6px;padding:0;padding-right:0;position:static;text-shadow:inherit}.videoAdUiAttributionContainer-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiAttribution{display:inline-block;opacity:.9;text-align:initial}.rtl .videoAdUiAttribution,.rtl .videoAdUiAdInfoPopupText,.rtl .videoAdUiAdvertiserLink{direction:rtl}.videoAdUiRedesign .videoAdUiAttribution,.videoAdUiRedesign .videoAdUiAttributionIcon{opacity:.75}.ltr .videoAdUiRedesign .videoAdUiAttribution{margin-left:5px}.videoAdUiAttributionContainer-gvn .videoAdUiAttribution{opacity:1}.videoAdUiAttributionIconContainer{display:inline-block;position:relative}.videoAdUiAttributionIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAABGdBTUEAALGPC/xhBQAAAAJiS0dEAP+Hj8y/AAAAiElEQVQI1z2OsQ2CQAAAz49DUNuwgDwbGBM7SNjBjuguJmyAFnS2xoJWG61IDDrJ2aDXXa45RFza+vDp0SgyEyq2nHkRWLDhwAkze3NxcBBzeyN21iIWFiLWdvgxFbGxETH1PQcCACv+BG6ThimuuWO0N4qlpZMhVl7cm5i482oliJjZOjr+5r8EnGSNEk6hxAAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAASUVORK5CYII=);height:10px;margin:10px 10px 0;position:relative;width:10px}.videoAdUiAdInfoPopup{background:white;border:1px solid black;box-sizing:border-box;color:black;display:none;font-size:12px;left:-15px;line-height:normal;padding:7px;position:absolute;text-shadow:none;bottom:20px;width:211px}.videoAdUiRedesign .videoAdUiAdInfoPopup{left:-20px;bottom:30px}.videoAdUiAttributionIconContainer:hover .videoAdUiAdInfoPopup{display:inline-block}.videoAdUiAdInfoPopupCallout{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid white;box-sizing:border-box;display:inline-block;height:0;left:24px;overflow:visible;position:absolute;text-align:center;top:100%;width:0}.videoAdUiRedesign .videoAdUiAttributionIcon{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAABGdBTUEAALGPC/xhBQAAAAJiS0dEAP+Hj8y/AAAAiElEQVQI1z2OsQ2CQAAAz49DUNuwgDwbGBM7SNjBjuguJmyAFnS2xoJWG61IDDrJ2aDXXa45RFza+vDp0SgyEyq2nHkRWLDhwAkze3NxcBBzeyN21iIWFiLWdvgxFbGxETH1PQcCACv+BG6ThimuuWO0N4qlpZMhVl7cm5i482oliJjZOjr+5r8EnGSNEk6hxAAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAASUVORK5CYII=);display:inline-block;height:10px;margin:0 5px;opacity:.75;width:10px}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink{color:rgba(255,255,255,0.75);display:inline-block;margin:0 5px;cursor:pointer;text-decoration:none}.videoAdUiRedesign .videoAdUiVisitAdvertiserLinkText{display:inline-block;margin:-5px 0;padding:5px;text-decoration:inherit}.videoAdUiRedesign .videoAdUiVisitAdvertiserIcon{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAABXSURBVAjXVY6xDYAwEMT8iBaJDWAWhFDYfwCo6MgKpiEh+JuXdYVDKvXtPkcQJDJg4XQ2ebspKu8ls6u0cje7OrVy9HIRD5FvOUiZhBK0WfFPqvRtdOEBg3RMtKey4oQAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAAAElFTkSuQmCC);display:inline-block;height:10px;opacity:.75;width:10px}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink:hover{color:rgba(255,255,255,1.0);text-decoration:underline}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink:hover .videoAdUiVisitAdvertiserIcon{opacity:1}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.rtl .videoAdUiShare{float:left}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiRedesign .videoAdUiTopButtons{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif}.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiTopButtons{position:relative;right:34px}.videoAdUiRedesign .videoAdUiTopButton{background-position:center;background-repeat:no-repeat;border-left:5px solid transparent;border-right:5px solid transparent;border-top:14px solid transparent;display:inline-block;margin:-14px 0 0;height:24px;opacity:.75;text-align:center;width:24px}.videoAdUiRedesign .videoAdUiTopButton:hover{cursor:pointer;opacity:1}.videoAdUiRedesign .videoAdUiTopButtonShare{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAQAAACY0sZTAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAACqSURBVDjL7ZJBEcIwEEU3GEgdREIlBAeVgITUQSSAk0oAB5VQHJQqeBwomcAMZHNghkPfKZvJn5+/80U2/g0cHlcnGQCYsHqJ50nI73dfJFb6NDRalyn5zIVUOFosRwBGOgKxkGgN/iDWBh9pP797XcQ+nW5y1a7YMWfhO63MEgl4zgAM2KpGcMhc9Y3Arn41jTCLXNLQKJ2yxbw1wpS+KL2InMyidtr4BXdaZZpobfXi6QAAAABJRU5ErkJggg==)}.videoAdUiRedesign .videoAdUiTopButton:hover .videoAdUiTopButtonCallout{display:inline-block}.videoAdUiRedesign .videoAdUiTopButtonCallout{border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #444;box-sizing:border-box;display:none;height:0;overflow:visible;position:relative;text-align:center;top:100%;width:0}.videoAdUiRedesign .videoAdUiTopButtonTooltip{background:#444;border-radius:3px;box-sizing:border-box;color:white;display:inline-block;font-size:11px;padding:8px;position:relative;top:5px;width:50px}.ltr .videoAdUiRedesign .videoAdUiTopButtonTooltip{left:-25px}.rtl .videoAdUiRedesign .videoAdUiTopButtonTooltip{right:-25px}.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}.videoAdUiRedesign .videoAdUiPreSkipContainer,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiPreSkipContainer{background:rgba(0,0,0,0.4);bottom:30px;height:52px;padding:0;vertical-align:middle}.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}.videoAdUiRedesign .videoAdUiSkipContainer,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiSkipContainer{bottom:30px;padding:0}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiRedesign .videoAdUiPreSkipButton,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiPreSkipButton{background:transparent;display:inline-block;font-size:12px;min-height:52px;min-width:0;padding:0;text-align:center}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiRedesign .videoAdUiPreSkipText{color:inherit;font:normal 12px arial,helvetica,sans-serif;width:auto;max-width:105px}.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}.videoAdUiRedesign .videoAdUiPreSkipThumbnailImage{max-width:92px;max-height:52px}.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}.videoAdUiRedesign .videoAdUiSkipButton,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiSkipButton{background:rgba(0,0,0,0.7);line-height:45px;min-width:164px;padding:0}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUiRedesign .videoAdUiSkipButton:hover{background:rgba(0,0,0,0.9)}.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,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAAAAABjvpF0AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAnRSTlMAAHaTzTgAAAACYktHRAD/h4/MvwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAEFJREFUGNNjYKARmC+PYP//D2cghJEEEcIogjBhNEGIMIYgSBiL4P14DMH78RjaQUJoghAhFEGYEJIgQghJkB4AAG9cX5X8X+CRAAAAAElFTkSuQmCC);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}.rtl .videoAdUiSkipIcon{margin:0 0 0 2px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiRedesign .videoAdUiTitle{font-size:17px}.videoAdUiAttribution{font-size:13px}.videoAdUiRedesign .videoAdUiAttribution{font-size:12px}.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(l));l=1E3*qV(KY(this));this.A=new gZ(d,e,l);e=d.X;null!=e&&(KY(this).N=e,d.T&&xZ(this,e));this.ba&&(l=a.getExtension("AdSense"),null!=l?(e=this.A,l=C(l.o),null!=e.G&&(bh(e.G,!0),l=C(l).replace(/^www\./i,""),B(l)?kZ(e):ee(e.G,l)),null!=e.J&&bh(e.J,!0)):kZ(this.A));e=[];d.C&&e.push("adAttribution");d.j&&e.push("countdown")}else d&&this.o.mo&&(KY(this).N=d,xZ(this,d));d=this.F;e=this.j;l=this.B.wl();p=this.A;rZ(d);d.C.F=a.X;d.j=e;d.A=p||null;d.j.Yi();d.B=new qZ(d.j);d.H=l||null;d.o=new Bn(d);
d.o.M(a,"measurable_impression",d.LA);d.o.M(a,"viewable_impression",d.gC);d.o.M(d.j,"timeUpdate",d.My);d.o.M(d.j,"volumeChange",d.Ny);d.o.M(d.j,"pause",d.Jy);d.o.M(d.j,"play",d.Ky);d.o.M(d.j,"end",d.Fy);d.o.M(d.j,"beginFullscreen",d.Hy);d.o.M(d.j,"endFullscreen",d.qA);d.o.M(d.j,"skip",d.Kp);d.o.M(d.j,"skipShown",d.dr);d.o.M(d.j,"start",d.Ly);d.o.M(d.j,"error",d.Gy);d.o.M(d.j,"mediaLoadTimeout",d.Iy);null!=d.A&&(d.o.M(d.A,"videoAuthorIconClicked",d.QB),d.o.M(d.A,"videoAuthorClicked",d.PB),d.o.M(d.A,
"videoClicked",d.SB),d.o.M(d.A,"videoLearnMoreClicked",d.YB),d.o.M(d.A,"videoTitleClicked",d.fC),d.o.M(d.A,"videoShareClicked",d.cC),d.o.M(d.A,"videoShareShown",d.dC),d.o.M(d.A,"skipshown",d.dr),d.o.M(d.A,"skip",d.Kp),d.o.M(d.A,"PUBLISHER_INVOKED_SKIP",d.cB));MY(this).M(this.F,"engagedview",this.Fd);MY(this).M(this.F,"videoAuthorIconClicked",this.Fd);MY(this).M(this.F,"videoAuthorClicked",this.Fd);MY(this).M(this.F,"videoClicked",this.Fd);MY(this).M(this.F,"videoLearnMoreClicked",this.Fd);MY(this).M(this.F,
"videoShareClicked",this.Fd);MY(this).M(this.F,"videoShareShown",this.Fd);MY(this).M(this.F,"videoTitleClicked",this.Fd);MY(this).M(this.j,"loaded",this.ZB);MY(this).M(this.j,"timeUpdate",this.eC);MY(this).M(this.j,"volumeChange",this.ry);this.fg(a);d=PW(a,this.j);this.C.j=d;d=a.j;null!=d&&d instanceof xU&&(this.gf(d,JJ),this.Ej(d),d=MY(this),En(d,this.F,"error",this.oy,this),En(d,this.F,"mediaLoadTimeout",this.qy,this));yZ(this,a);QU(a)&&(this.F.G=30);this.j.Wm(zZ(this,a));this.j.load(b,c)}};
f.rC=function(a,b,c){this.Z||(this.Z=!0,this.xa("contentPauseRequested"));this.O=!0;this.cz(a,b,c);this.setVolume(this.T);this.A&&(B(C(AZ(a)))?(b=this.A,null!=b.F&&(b.A.Ka(b.F,"click",b.ek),Fg(b.F,"cursor","default"))):(b=this.A,null!=b.F&&(b.A.M(b.F,"click",b.ek),Fg(b.F,"cursor","pointer"))),b=a.j.da,nb(b)||jZ(this.A,b),b=this.A,null!=b.o&&bh(b.o,!0));this.B.Vi();try{NY(this,a)}catch(d){BZ(this,sK,d);return}hS.getInstance().end("pi");hS.getInstance().start("bt");this.j.play()};
function CZ(a,b,c,d){b=bT(b.j,c);nb(b)||(a[d]=b[0].j)}function DZ(a,b,c){b=c.getExtension(b);null!=b&&(CZ(a,b,"annotation_click","cta_annotation_clicked"),CZ(a,b,"annotation_close","cta_annotation_closed"),CZ(a,b,"annotation_start","cta_annotation_shown"))}function zZ(a,b){var c=jV(b)&&!b.I?aV(b):null,d=QU(b)&&!RU(b),e=null!=a.A&&a.o.Ol&&a.A.j.A,g=b.A,h=OU(b),k;a.A?(k={},DZ(k,"AdSense",b),DZ(k,"dart",b),DZ(k,"DFP",b)):k=null;return new bR(h,c,k,e,d,a.o.loadVideoTimeout,g?g.Wg:!1,!1,eV(b))}
function EZ(a){var b=0;D(a.ads,function(a){!FZ(a)||hL()&&0!=b||b++},a);var c=1;D(a.ads,function(a){var e=a.C;e.B=b;FZ(a)&&(e.o=c,e.C=c,c++)},a)}function FZ(a){a=a.j;return null!=a&&a instanceof xU}function GZ(a){return ib(a.ads,function(a){return ib(HZ(a),function(a){return!B(C(CP(a.o)))})},a)}function AZ(a){var b=a.o;return b&&b.H&&(b=b.B,!nb(b)&&b[0]instanceof xU)?b[0].$c():pV(a)}function HZ(a){var b=a.o;if(b&&b.H&&(b=b.B,!nb(b)&&b[0]instanceof xU))return b[0].H;b=a.j;return FZ(a)?b.H:[]}
function IZ(a,b){if(uL.getInstance().j){var c=new hk,d=!1;D(HZ(b),function(a){c.add(a.j);"VPAID"==a.A&&(d=!0)},a);var e=a.j.Al(),e={aid:aV(b),mt:c.Qa().join(","),smt:e.join(","),hvp:d,st:UU(b).join(",")};vL(uL.getInstance(),28,e)}}function JZ(a,b,c){try{var d=E(a,function(a){return a.de}),e=E(a,function(a){return a.j}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.de,selmt:null===c?"":c.j,nat:!1,iy:da(CP(c.o))?"0":"1"};vL(uL.getInstance(),22,g)}catch(h){}}
f.pj=function(){EZ(this);KZ(this)};function KZ(a){a.X||(a.X=!0,a.xa("loaded"),a.Y(new XY(KY(a))))}f.Vc=function(a,b,c){uZ.K.Vc.call(this,a,b,c);a=GZ(this);this.j=this.B.Xg(a);a:{if(LY(this)&&(b=this.H.getExtension("InfoCards"),b=null!=b?b.o:null,null!=b))break a;b=""}a:{if(LY(this)&&(c=this.H.getExtension("InfoCardsTracking"),c=null!=c?c.o:null,null!=c))break a;c=""}a&&(b||c)&&this.j.Ap(b,c)};f.skip=function(){LY(this)&&QU(KY(this))&&(null!=this.A?this.A.skip():(QY(this,"skip"),LZ(this)))};f.Qm=function(){this.dc("skipshown")};
f.start=function(){uZ.K.start.call(this);hS.getInstance().start("pi");try{var a=KY(this),b;if(!FZ(a))throw ZK(OK);var c=a.j,d=c.la;if(B(C(d))){var e=HZ(a),g=this.j.Mr(e,this.o.bitrate,this.o.mimeTypes||[],null!=a&&(hL()||this.B.Wi()||this.B.Ql()||nL()));JZ(e,this.o.bitrate,g);if(null!=g)b=c.ga=g;else{try{IZ(this,a)}catch(h){}throw ZK(GK);}}else b=new FP("","","",0,0,0,0,0,d,"");this.J=b;xn(y(uZ.prototype.rC,this,a,this.J.o,this.J.j))}catch(k){MZ(this,k),this.uh(),LY(this)?($K(ZK,this,UK,k,void 0),
this.start()):(this.O?$K(ZK,this,UK,k,void 0):(null!=this.D&&SR(this.D,PR()),aL(this,UK,k)),this.stop())}};f.xp=function(){OY(this);return this.j.$g()?0:this.j.Bd()};f.setVolume=function(a){OY(this);this.O?this.j.setVolume(a):this.T=a};
f.setMediaUrl=function(a){OY(this);var b;if(b=LY(this))b=null!=KY(this).A;if(b){b=KY(this);var c=b.A.location,d;if(d=null!=c)(d=fK(aK,c))||(d=of(new J(c)),d=null!=d?ua(d,".corp.google.com")||"corp.google.com"==d:!1),d=d||(null!=c?fK(cK,c):!1);(d||hL())&&null!=b.j&&b.j instanceof xU&&b.j.setMediaUrl(a)}};f.pause=function(){OY(this);this.j.pause()};f.resume=function(){OY(this);this.j.play()};f.getCurrentTime=function(){OY(this);return this.j.getCurrentTime()};f.Yg=function(){OY(this);return this.j.Ic()};
f.getRemainingTime=function(){OY(this);var a=this.j.Ic(),b=this.j.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.If=function(){return this.j.If()};f.oy=function(){BZ(this,UK,ZK(UK,this.j.Bp()))};f.qy=function(){BZ(this,JK,ZK(JK,null,(this.o.loadVideoTimeout/1E3).toString()))};function BZ(a,b,c){MZ(a,c);a.uh();LY(a)?($K(ZK,a,b,c,void 0),a.start()):(aL(a,b,c),a.stop())}function MZ(a,b){var c=ZK(UK,b),c=JW(c,KY(a),a.j),d=VU(KY(a));mK(d,c)}
function NZ(a){if(iL.j){var b=AZ(KY(a));null!=b&&iK(b)}a.xa("click")}function yZ(a,b){var c=b;do c.G.forEach(function(a){D(JJ,function(b){var c=bT(a.j,b);nb(c)||OZ(this,b,c)},this);IY(this.C,a.F)},a),c=c.o;while(c)}function OZ(a,b,c){D(c,function(a){cT(this.C.o,a.A,a.j)},a);PZ(a,b)}function PZ(a,b){Pb(MJ,b)&&En(MY(a),a.F,b,a.Fd,a)}
f.Fd=function(a){switch(a.type){case "start":a=hS.getInstance();if(a.j){var b={};if(null!=this.J){var c=of(new J(this.J.o));if(null!=c){var c=$a(c,".",10),d=c.length;2<=d&&(b.dn=c[d-2]+"."+c[d-1])}b.br=this.J.ee;b.mt=this.J.j;b.pid=a.A;b.smb=this.o.bitrate;c=this.J.D;d=this.J.getHeight();null!=c&&null!=d&&(b.vs=c+"x"+d);null!=this.B&&(c=this.B.Xg(!0),null!=c&&(c=c.Zc(),b.ps=c.width+"x"+c.height));c=this.J.F;B(C(c))||(b.vc=c)}a.end("bt",b)}a=hS.getInstance();a.j&&(b=jS(a,"ff",a.B),kK(b),a.B=0);this.xa("start");
break;case "impression":this.xa("impression");break;case "pause":this.xa("pause");break;case "resume":this.xa("resume");break;case "firstquartile":this.xa("firstquartile");break;case "midpoint":this.xa("midpoint");break;case "thirdquartile":this.xa("thirdquartile");break;case "complete":this.xa("complete");wZ(this);break;case "click":this.A&&this.A.j.o?this.j.ah()?this.resume():this.pause():NZ(this);break;case "engagedview":b=KY(this);a=b.N;RU(b)&&!hL()&&!this.B.Wi()&&a&&(b=this.j.getCurrentTime(),
c=this.j.Ic(),d=new J("//s.youtube.com/s"),K(d,"ns","yt"),K(d,"el","adunit"),K(d,"docid",a),K(d,"eurl",document.URL),K(d,"len",c.toFixed(2)),K(d,"tv","1"),K(d,"ps","trueview-instream"),K(d,"st",b.toFixed(2)),K(d,"et",b.toFixed(2)),K(d,"rt",b.toFixed(2)),kK(d.toString()));this.xa("engagedview");break;case "videoAuthorIconClicked":QZ(this);break;case "videoAuthorClicked":QZ(this);break;case "videoClicked":this.xa("videoClicked");break;case "videoLearnMoreClicked":this.j.pause();NZ(this);break;case "videoShareClicked":a=
KY(this).O;null!=a&&(a=a.videoId,b=this.o.baseYouTubeUrl,B(C(a))?a=null:(b=new J((null!=b?b:"//www.youtube.com/")+"watch"),c=b.j,c.set("v",a),ff(b,c),b.Gf="action=share",a=b.toString()),null!=a&&(iK(a),a=RZ(this),null!=a&&jK(a,"sharebuttonclicked")));break;case "videoShareShown":a=RZ(this);null!=a&&jK(a,"sharebuttondisplayed");break;case "videoTitleClicked":a=KY(this);b=a.O;null!=b&&(a=EP(b.videoId,null!=kV(a),this.o.baseYouTubeUrl),null!==a&&(this.j.pause(),iK(a)));break;case "skipshown":this.xa("skippableStateChanged");
break;case "skip":LZ(this)}};function RZ(a){var b=KY(a).getExtension("AdSense");if(!(b=null!=b?new J(b.A):null))a:{if(a=$U(KY(a)))if(a=vU(a,"start"),!nb(a)){b=new J(a[0].j);break a}b=null}return b}function LZ(a){xn(function(){this.xa("skip");wZ(this)},0,a)}f.fg=function(a){uZ.K.fg.call(this,a);PZ(this,"impression")};f.gf=function(a,b){uZ.K.gf.call(this,a,b);D(b,function(a){PZ(this,a)},this)};f.Ej=function(a){uZ.K.Ej.call(this,a);a instanceof xU&&(a=yU(a),D(a.Na(),function(a){PZ(this,a)},this))};
f.getMediaUrl=function(){if(!LY(this))return null;var a=KY(this);if(!FZ(a))throw ZK(OK);a=a.j.H;return nb(a)?null:(a=a[0].o,hL()&&WT(952626)&&(a=new J(a),bf(a,"https"),a=a.toString()),a)};f.ZB=function(){KZ(this)};
f.eC=function(){var a=this.j.Ic(),b=this.j.Yo(),c=this.j.getCurrentTime(),d=0,e=0;LY(this)&&(e=KY(this),d=e.C.o,e=e.C.B);if(null!=this.A&&0<=a&&0<=c){var g;if(g=!this.U)g=3==KY(this).oa;if(g){g=this.j.Ic();var h=qV(KY(this));g=Math.abs(g-h);2<g&&(g=ZK(NK,null,Number(g).toFixed(2)),g=JW(g,KY(this),this.j),h=VU(KY(this)),mK(h,g));this.U=!0}this.A.update(c,b,a,d,e)}};f.ry=function(){var a=this.j.Bd();a!=this.T&&(this.T=a,this.xa("volumeChange"),0==a&&this.xa("mute"))};
function xZ(a,b){YY(b,function(a){a=new $T(a);tV(KY(this))==a.videoId&&(SZ(this,a),!B(C(a.channelId))&&a.j&&$Y(a.channelId,function(a){a=new ZT(a);if(null!=this.A){var b=this.A,c=a.o;b.j.U=!B(C(c));b.j.aa=c;null!=b.C&&(c="\u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f "+b.j.aa,ee(b.C,(new hQ(c,void 0)).getContent()));hZ(b);b=this.A;c=a.j;b.j.R=!B(C(c));if(null!=b.I){var h=Rd("img");h.setAttribute("src",c);N(h,"videoAdUiAuthorIconImage");b.I.appendChild(h);null!=
b.D&&N(b.D,"videoAdUiTitleWithAuthorIcon");null!=b.C&&N(b.C,"videoAdUiAuthorNameWithAuthorIcon")}hZ(b)}KY(this).J=a;this.xa("youTubeChannelMetadata");if(a=this.A)a=KY(this),b=a.O,a=hL()&&nb(ZR(a))&&null!=a.J&&null!=b&&b.j;if(a){a=KY(this);MY(this).M(window,"message",this.Tw);var b=KY(this),c=b.J.channelId,h=OU(b),k=this.o.contentId,l=this.o.baseYouTubeUrl,l=new J((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 FV("1",new H(300,250),"IFrame",null,l.toString());c.wh(b);c.F=!0;a.D=[new wV(c,[],null)];NY(this,a)}},this))},a)}f.Tw=function(a){var b=a.j;if("companion-setup-complete"==b.data){a=KY(this);var c=encodeURIComponent(C(pV(a)))+","+encodeURIComponent(RZ(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=pV(a)?210:185}else"pause-video"==b.data&&this.pause()};
function SZ(a,b){if(null!=a.A&&b.j){var c=a.A,d=b.title;c.j.D=!B(C(d));c.j.title=d;ic.test(hc(c.j.title,void 0));null!=c.D&&ee(c.D,c.j.title);hZ(c);c=a.A;null!=c.da?ee(c.da,CQ()):null!=c.H&&ee(c.H,CQ())}KY(a).O=b;a.xa("youTubeVideoMetadata")}function QZ(a){var b;b=KY(a).J;if(null!=b){var c;c=a.o.baseYouTubeUrl;b=C(b.channelId);c=B(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(ta(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.j.pause(),iK(c))}};function TZ(a){this.j=a}f=TZ.prototype;f.wl=function(){return this.j.wl()};f.Bl=function(){return this.j.Bl()};f.Lf=function(){return this.j.Lf()};f.Xg=function(a){return this.j.Xg(a)};f.Pl=function(){return this.j.Pl()};f.Ql=function(){return this.j.Ql()};f.Wi=function(){return this.j.Wi()};f.$=v;f.Vi=v;f.Pj=v;function UZ(a,b,c,d,e,g,h){V.call(this);this.B=this.D=0;this.F=a;this.qd=b;this.ba=c;this.C=null;this.I=d;this.U=g;this.T=iL.o;this.j=null;this.X="normal";this.O=null;this.J=e;this.o=[];this.Z=this.H=this.W=this.N=!1;this.R=h;VZ(this)}A(UZ,V);f=UZ.prototype;f.init=function(a,b,c){WZ(this,c);null==this.G&&(this.G=new Bn(this),En(this.G,this.I,"adsLoaderSdkAdLoaded",this.wz,this),En(this.G,this.I,"adsLoaderSdkAdError",this.rz,this));XZ(this)};
f.start=function(){this.N=!0;YZ(this);0<this.o.length?ZZ(this):("always"==iL.o&&null!=this.R&&SR(this.R,PR()),$K(XK,this,xK,void 0,void 0),0==this.qd&&this.Y("contentResumeRequested"),$Z(this))};f.destroy=function(){null!=this.G&&(this.G.dispose(),this.G=null);a_(this);iL.o=this.T;this.N=!1};f.getCurrentAd=function(){return this.B<this.o.length?this.o[this.B].j[0]:null};function b_(a){return null!=a&&iV(a,"nonlinear")}f.xb=function(){return this.N};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.getCurrentTime=function(){return null!=this.j?this.j.getCurrentTime():-1};f.getRemainingTime=function(){return null!=this.j?this.j.getRemainingTime():-1};f.setVolume=function(a){null!=a&&(this.O=a,null!=this.j&&this.j.setVolume(this.O))};function WZ(a,b){null!=b&&(a.X=b);null!=a.j&&(a.j.Xi(b),a.j.Zg())}
function VZ(a){D(a.F,function(a){a=new J(a.A.adTagUrl);var c=uf(a,"max_ad_duration");n(c)||uf(a,"pmxd")})}f.wz=function(a){iL.o=this.T;var b=a.D;nb(b)||(a=a.C,a.j&&D(b,function(a){a.ga=!1},this),hL()&&!nb(b)&&0==this.qd&&b_(b[0])&&"ADSENSE"==YR(b[0])&&(this.H=!0),pb(this.o,new IS(b,a.j,a.o)));this.D++;XZ(this)};f.rz=function(a){a=a.A;iL.o=this.T;a.getMessage();$K(XK,this,xK,void 0,void 0);this.D++;XZ(this)};
function XZ(a){a.D<a.F.length&&null!=a.F[a.D]&&!(2<=a.o.length-a.B)?c_(a):a.W||(a.Y("adBreakInitialized"),a.W=!0)}function c_(a){var b=a.F[a.D];iL.o="on_master_ad";rY(a.I,b.A,b)}function YZ(a){null==a.qd||ib(a.o,function(a){return!a.o})||(a.o=gb(a.o,function(a){return!(a.o&&!a.A)}))}function d_(a){a.Y("contentResumeRequested");$Z(a)}
function ZZ(a){if(a.B<a.o.length){var b=a.o[a.B];try{if(a.H||(a_(a),a.j=e_(a,b.j),f_(a)),a.j.init(a.X),null!=a.O&&a.j.setVolume(a.O),g_(a.j))a.Y("contentResumeRequested"),a.J.Pj(),a.j.start(),null!=a.C&&a.C.start();else{var c=a.j;if(null!=c&&c instanceof uZ)a.J.Vi(),a.j.start();else throw Error("Unknown ads manager type.");}}catch(d){a.B++,ZZ(a)}a.D<a.F.length&&null!=a.F[a.D]&&c_(a)}else d_(a)}
function e_(a,b){var c=null;if(null!=a.I.C)c=uY(b);else if(NU(b[0]))c=new uZ(b);else if(b_(b[0]))c=new RY(b);else throw Error("No valid creative type found.");c.D=a.R;null!=a.A&&(a.A.dispose(),a.A=null);a.A=new Bn(a);En(a.A,c,"companionBackfill",a.tq,a);c.Vc(new TZ(a.J),{currentTime:0},a.U);return c}function a_(a){a.J.$();null!=a.C&&(a.C.dispose(),a.C=null);null!=a.A&&(a.A.dispose(),a.A=null);null!=a.j&&(a.j.destroy(),a.j=null)}f.SA=function(){a_(this);$Z(this)};f.uz=function(){this.B++;ZZ(this)};
function f_(a){if(null==a.j)throw Error("The current ads manager is not defined");var b=a.j;En(a.A,b,"adError",a.uz,a);En(a.A,b,"click videoClicked start pause resume firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),a.tq,a);a.A.M(b,["allAdsCompleted"],v);En(a.A,b,"contentPauseRequested",a.ky,a);En(a.A,b,"contentResumeRequested",a.ly,a);g_(a.j)&&(b=$U(KY(a.j)).na,0<b||a.U.so)&&(0>b&&(b=15),null!=a.C&&a.C.dispose(),a.C=new vn(1E3*b),Hn(a.A,a.C,"tick",a.SA,a))}
f.ly=function(){this.B++;ZZ(this)};f.ky=function(){this.Z||(this.Y("contentPauseRequested"),this.Z=!0)};function g_(a){return null!=a&&a instanceof RY}function $Z(a){a.N=!1;a.Y("allAdsCompleted")}f.tq=function(a){h_(this,a.type,a.getAd());this.Y(a)};function h_(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;D(a.o,function(a,b){var g=a.j;eb(g,c);d+=g.length;b<this.B&&(e+=g.length)},a);b=c.C;var g=e+b.C;b.B=d+(a.F.length-a.D);b.o=g;b.A=a.ba;b.j=a.qd}};function i_(a){hm.call(this,a);this.A=null}A(i_,hm);function j_(a,b,c){V.call(this);this.o=a;this.j=[];this.D=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.G=null!=c&&ga(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.A=null;this.B=!1;k_(this,b)}A(j_,V);function l_(a){this.j=a;this.A=this.o=!1}function m_(a){null!=a.A&&(a.A.dispose(),a.A=null);a.o.stop();a.B=!1}function n_(a){if(a.B){var b=F(a.j,function(a){return-1==a.j},a);null!=b&&o_(a,!0,b)}}
function k_(a,b){D(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Gb(this.j,new l_(a),function(a,b){return Ab(a.j,b.j)})},a)}j_.prototype.C=function(){if(this.B){var a=this.o.currentTime;if(isNaN(a)||0>a)p_(this);else{var b=q_(this,a);this.D?D(b,function(a){o_(this,!0,a)},this):o_(this,!0,cb(b));o_(this,!1,r_(this,a))}}};function q_(a,b){for(var c=[],d=0;d<a.j.length;d++){var e=a.j[d];-1!=e.j&&e.j<=b&&pb(c,e)}return c}
function r_(a,b){for(var c=0;c<a.j.length;c++){var d=a.j[c];if(-1!=d.j&&b>=d.j-a.G&&b<d.j&&!a.j[c].o)return d}return null}j_.prototype.F=function(){p_(this)};function p_(a){a.Y(new i_("contentTrackingError"))}function o_(a,b,c){if(null!=c){if(!c.o){var d=new i_("requestAds");d.A=c.j;a.Y(d);c.o=!0}b&&!c.A&&(b=new i_("playAds"),b.A=c.j,a.Y(b),c.A=!0)}};function s_(a,b){Q.call(this);this.A=a;this.o=-1;this.j=b}A(s_,Q);function t_(a,b){if(0==b.qd||0>=a.j||0>=a.o)return!1;var c=z()/1E3,d=b.qd-a.A.currentTime;0<d&&(c+=d);return c-a.o<=a.j};function sY(a,b){JY.call(this,[]);this.T=a;this.I=new xe;this.A=this.j=null;this.Z=new cp;this.F=null;this.O=b;this.W=this.X=!1;this.J=null;this.ba=this.da=-1;this.U=null}A(sY,JY);f=sY.prototype;
f.Vc=function(a,b,c){null!=this.A&&(m_(this.A),this.A.dispose(),this.A=null);sY.K.Vc.call(this,a,b,c);c=this.T.j.Na();b=new kR(b);this.A=new j_(b,c,{prefetch:4});D(c,function(b,c){if(isNaN(b))throw XK(qK,null,"timeOffset",b+"");var g=ga(b)&&!isNaN(b)?this.T.j.get(b,[]):[];if(!nb(g)){g=new UZ(g,b,0==b||-1==b?b:c,this.O,a,this.o,this.D);if(ze(this.I,b))throw XK(CK,null,"Multiple ad breaks cannot share same ad play time.");this.I.set(b,g)}},this);this.J=cb(c);ib(c,function(a){if(-1==a)return this.J=
a,!0;this.J=this.J<a?a:this.J;return!1},this)};
f.init=function(a){sY.K.init.call(this,a);null!=this.A&&(u_(this),a=MY(this),En(a,this.A,"requestAds",this,this),En(a,this.A,"playAds",this,this),En(a,this.A,"contentTrackingError",this,this),En(a,this.A,"adBreakReady",this.pz,this),En(a,this.O,"contentComplete",this.Zz,this),this.O.j=!1,a=this.A,a.B||(null==a.A&&(a.A=new Bn(a)),a.A.M(a.o,"currentTimeUpdate",a.C,!1),a.A.M(a.o,"contentWrapperError",a.F,!1)),a.o.start(),a.B=!0,this.A.C(),a=ga(0)&&!isNaN(0)?this.T.j.get(0,[]):[],nb(a)&&this.xa("contentResumeRequested"))};
f.pj=function(){this.Ye();this.Y(new XY(null))};f.destroy=function(){this.dispose()};f.P=function(){this.O.j=!0;if(0<this.I.Wa()){var a=this.I.Qa();D(a,this.yi,this);this.I.clear()}u_(this);v_(this);null!=this.B&&(this.B.$(),this.B=null);sY.K.P.call(this)};f.start=function(){sY.K.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){sY.K.setVolume.call(this,a);null!=this.j&&this.j.setVolume(a)};f.Zg=function(){sY.K.Zg.call(this);var a=Kd(window);this.da=a.width;this.ba=a.height;null!=this.j&&WZ(this.j,this.N)};f.getCurrentTime=function(){return null!=this.j?this.j.getCurrentTime():-1};f.Yg=function(){var a;null!=this.j?(a=this.j,a=null!=a.j?a.j.Yg():-1):a=-1;return a};f.getRemainingTime=function(){return null!=this.j?this.j.getRemainingTime():-1};f.Ye=function(){return this.T.j.Na()};
f.getCurrentAd=function(){return null!=this.j?this.j.getCurrentAd():null};f.Lr=function(){};f.handleEvent=function(a){"contentTrackingError"!=a.type&&(ep(this.Z,a),w_(this))};function u_(a){null!=a.G&&(a.G.dispose(),a.G=null);a.X=!1;null!=a.A&&m_(a.A)}
function w_(a){if(null==a.F){var b=fp(a.Z);if(null!=b){a.F=b;var c=a.I.get(a.F.A);null==c&&null!=a.j&&a.j.H&&(c=a.j);if(null==c)a.F=null,w_(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.F=null,w_(a);else if(null!=a.U&&t_(a.U,c))a.F=null,w_(a);else if("requestAds"==b.type)c.H?a.F=null:(b=c,c=MY(a),En(c,b,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume companionBackfill log".split(" "),a.Y,a),En(c,b,"allAdsCompleted",a.oq,a),En(c,
b,"contentPauseRequested",a.vp,a),En(c,b,"contentResumeRequested",a.wp,a),En(c,b,"adBreakInitialized",a.pq,a),b.init(a.da,a.ba,a.N));else if("playAds"==b.type)if(null!=a.j&&a.j.xb()&&a.yi(a.j),a.j=c,a.j.setVolume(a.volume),WZ(a.j,a.N),a.j.H&&a.content.currentTime<a.o.Hm){k_(a.A,[a.o.Hm]);a.xa("contentResumeRequested");b=a.j;if(b.B<b.o.length){c=b.o[b.B];a_(b);try{b.j=e_(b,c.j),f_(b)}catch(d){b.B++,ZZ(b)}}else d_(b);a.F=null}else a.j.start()}}}
f.yi=function(a){a.destroy();this.I.remove(a.qd);this.j=null;null!=this.G&&(this.G.Ka(a,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),this.Y,!1,this),this.G.Ka(a,"allAdsCompleted",this.oq,!1,this),this.G.Ka(a,"contentPauseRequested",this.vp,!1,this),this.G.Ka(a,"contentResumeRequested",this.wp,!1,this),this.G.Ka(a,"adBreakInitialized",this.pq,!1,this))};
f.Zz=function(a){this.X=!0;-1==this.J?a.B=!1:hL()&&0!=this.I.Qa().length||x_(this);n_(this.A)};f.pz=function(a){var b=a.A;-1==b?xn(function(){var a=this.I.get(b);a&&this.yi(a);hL()&&0!=this.I.Qa().length||x_(this)},500,this):0==b&&xn(function(){this.xa("contentResumeRequested")},100,this);a={};a.adBreakTime=b;this.Y(new LJ("adBreakReady",null,a))};f.oq=function(a){this.yi(a.target);(0==this.I.Qa().length||!hL()&&this.X)&&x_(this);this.F=null;w_(this)};
function x_(a){a.W||(a.W=!0,a.O.j=!0,a.xa("allAdsCompleted"),-1==a.J&&v_(a))}function v_(a){uR.clear();null!=a.D&&(a=a.D.Pe(),null!=a&&JR(a,uR.j))}f.vp=function(){var a=this.A;a.o.stop();a.B=!1;this.xa("contentPauseRequested")};f.wp=function(){this.xa("contentResumeRequested");if(!this.W){var a=this.A;a.o.start();a.B=!0}this.F=null};f.pq=function(){this.F=null;w_(this)};f.xa=function(a){var b=null;null!=this.j&&(b=this.j.getCurrentAd());this.Y(new LJ(a,b))};
f.yp=function(a,b){return this.U=new s_(a,b)};function y_(a){JY.call(this,a);this.Z=this.X=this.T=!1;this.O=[];this.W=Va();this.j=null;this.A=!0;this.U=-1;this.J=1;this.ba=""}A(y_,JY);f=y_.prototype;
f.init=function(a){y_.K.init.call(this,a);a=rV(KY(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="ru".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.o.contentId&&(a=af(a,"v",this.o.contentId))}a=C(a)}else{var b=new J(a),c=new J("http://tpc.googlesyndication.com/pagead/js/loader7.html");"https"==b.Ob&&bf(c,"https");this.ba=b.tb;a=ff(c,a||"",void 0).toString()}this.F=I("iframe",{src:hK(a),allowtransparency:!0,background:"transparent",
style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});MY(this).M(window,"message",this.kC);MY(this).M(this.F,"load",this.jw);MY(this).M(this.F,"error",this.EA);this.B.Lf().appendChild(this.F)};f.Vc=function(a,b,c){y_.K.Vc.call(this,a,b,c);this.A=$U(KY(this))instanceof xU;this.j=a.Xg(!1);MY(this).M(this.j,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.jA)};f.stop=function(){this.B.$();y_.K.stop.call(this)};
f.start=function(){y_.K.start.call(this);if(!hL()){var a={},b=hS.getInstance();a.pid=b.A;a.dn=this.ba;vL(uL.getInstance(),29,a,!0)}a=KY(this);b=PW(a,this.j);this.C.j=b;if(b=a.j)this.fg(a),this.gf(b,JJ),this.Ej(b);this.j.Yi();this.B.Pj();this.F.style.opacity=1;this.Z=!0;this.A&&this.xa("contentPauseRequested");z_(this)};f.pause=function(){A_(this,"pauseAd")};f.resume=function(){A_(this,"resumeAd")};f.setVolume=function(a){y_.K.setVolume.call(this,a);A_(this,"setAdVolume",{value:a})};
f.P=function(){var a=this.B.Lf();null!=a&&Vd(a);this.A&&this.xa("contentResumeRequested");this.xa("allAdsCompleted");this.T=!1;this.O=[];y_.K.P.call(this)};f.pj=function(){};
f.jw=function(){var a=this.j.Al();nb(a)&&(a=this.o.mimeTypes);B_(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=YU(KY(this)),b=C(pV(KY(this))),b={desiredBitrate:this.o.bitrate,creativeData:a,viewMode:this.N,clickThroughUrl:b};rV(KY(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.o.surveyCreativeData&&(b.creativeData=this.o.surveyCreativeData);B_(this,"initAd",b);D(this.O,function(a){B_(this,a.type,a.params)},
this);this.T=!0;this.O=[]};function A_(a,b,c){a.T?B_(a,b,c):a.O.push({type:b,params:c})}function B_(a,b,c){null!=a.F?(null!=c||(c={}),c.session=a.W,c.type=b,a.F.contentWindow.postMessage(pg(c),"*")):(C_(a,WK,null),a.stop())}
f.kC=function(a){a=a.j;if(a.source==this.F.contentWindow&&(a=ng(a.data),a.session==this.W&&x(a.type)))switch(a.type){case "videoCall":switch(a.func){case "load":case "play":this.B.Vi();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||(yn(this.U),ga(a)&&-1!=a||(a=30),this.U=xn(this.TA,1E3*a,this));break;case "AdClickThru":QY(this,"click");this.xa("click");break;case "AdError":C_(this,
WK,null);this.stop();break;case "AdExpandedChange":this.xa("expandedChanged");break;case "AdImpression":this.xa("impression");break;case "AdLinearChange":a=a.isLinear;!this.A&&a?(this.xa("contentPauseRequested"),yn(this.U)):!a&&this.A&&(this.xa("contentResumeRequested"),this.A=a,A_(this,"getAdRemainingTime"));this.A=a;break;case "AdLoaded":this.X=!0;z_(this);this.dc("loaded");break;case "AdPaused":this.dc("pause");break;case "AdPlaying":this.dc("resume");break;case "AdRemainingTimeChange":this.A||
A_(this,"getAdRemainingTime");break;case "AdSkipped":this.dc("skip");break;case "AdStarted":QY(this,"impression");QY(this,"creativeview");this.xa("start");break;case "AdStopped":QY(this,"stop");this.stop();break;case "AdUserAcceptInvitation":this.A?QY(this,"acceptinvitationlinear"):QY(this,"acceptinvitation");break;case "AdUserMinimize":QY(this,"collapse");break;case "AdUserClose":this.dc("userClose");break;case "AdVideoComplete":this.dc("complete");break;case "AdVideoFirstQuartile":this.dc("firstquartile");
break;case "AdVideoMidpoint":this.dc("midpoint");break;case "AdVideoStart":QY(this,"start");break;case "AdVideoThirdQuartile":this.dc("thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.J&&this.xa("volumeChange");0==a&&0!=this.J?(QY(this,"mute"),this.xa("mute")):0==this.J&&0!=a&&QY(this,"unmute");this.J=a;this.j.setVolume(a);break;case "Ping":kK(a.url)}};f.EA=function(a){C_(this,DK,a);this.stop()};function C_(a,b,c){var d=ZK(b,c),d=JW(d,KY(a)),e=VU(KY(a));mK(e,d);aL(a,b,c)}
f.jA=function(a){switch(a.type){case "timeUpdate":a=this.j.Ic();var b=this.j.getCurrentTime();B_(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":D_(this,"ended");break;case "mediaLoadTimeout":D_(this,"stalled");break;case "play":D_(this,"playing");break;default:D_(this,a.type)}};function D_(a,b){B_(a,"wrapperCall",{messageType:b})}function z_(a){a.X&&a.Z&&(A_(a,"startAd"),a.A||A_(a,"getAdRemainingTime"))}
f.getCurrentTime=function(){return null!=this.j?this.j.getCurrentTime():-1};f.Yg=function(){return null!=this.j?this.j.Ic():-1};f.TA=function(){A_(this,"stopAd")};function E_(){}function uY(a){if(!nb(a)){var b=a[0];switch(uV(b)?"vpaid":jV(b)&&iV(b,"nonlinear")?"overlay":iV(b,"linear")?"video":iV(b,"nonlinear")?"overlay":null){case "overlay":return jV(b)?new WY(a):new RY(a);case "video":return new uZ(a);case "vpaid":return new y_(a)}}return null};function F_(a){V.call(this);this.o=a;a=new RR(new AR);this.j=new nY(new E_,a,uR);this.j.M("adsManagerLoaded",this.Y,!1,this);this.j.M("adError",this.Y,!1,this);this.j.M("adLoadError",this.Y,!1,this)}A(F_,V);function G_(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.Bc=iR(b.adTagUrl,b.Xe,b.be,b.Xb,b.hc,a.o.B);b.cn=a.o.G;oY(a.j,b,c)}
F_.prototype.P=function(){null!=this.j&&(this.j.Ka("adsManagerLoaded",this.Y),this.j.Ka("adError",this.Y),this.j.Ka("adLoadError",this.Y),this.j=null);F_.K.P.call(this)};function H_(a,b){rv.call(this,a,b)}A(H_,rv);f=H_.prototype;f.Jn=function(){zu(this.S,!0,this.playerType);this.S.se(this.playerType)};f.pauseVideo=function(){this.S.pauseVideo(this.playerType)};f.bt=function(a,b,c){zu(this.S,!0,this.playerType);var d=this.S,e=this.playerType;d.qg(d.getCurrentTime()+a,b,c,e)};f.Kh=function(a,b){zu(this.S,!0,this.playerType);this.S.qg(a,b,void 0,this.playerType)};f.Ys=function(){Ku(this.S,this.playerType)};function I_(a){this.o=a;Nr.call(this,a.nc)}A(I_,Nr);I_.prototype.getAdState=function(){return-1};I_.prototype.subscribe=function(a,b,c){return I_.K.subscribe.call(this,a,b,c)};function J_(a,b,c){this.B=a;this.j=b||"";this.o=c||null;this.A=!1}J_.prototype.reset=function(){ZH(this.j)};J_.prototype.info=function(a,b){XH(a,b,this.j)};
function K_(a,b){var c=a.B;if(c.wa&&("detailpage"==c.ka||"leanback"==c.ka||"embedded"==c.ka&&(c.va||c.experiments.F))&&!a.A){a.A=!0;Uf("TIMING_ACTION")||Sf("TIMING_ACTION",a.B.ab);if(a.o){var c=a.o.B,d;for(d in c)SH(d,c[d],a.j);d=a.o.A;for(var e in d)XH(e,d[e],a.j);e=a.o;e.B={};e.A={}}if(e=yh("visibilityState",document)){d=-1;switch(e){case "hidden":d=0;break;case "visible":d=1;break;case "prerender":d=2;break;case "unloaded":d=3}XH("yt_vis",d,a.j)}XH("yt_pt","html5",a.j);b&&!WH("pbs",a.j)&&SH("pbs",
b,a.j);WH("_start",a.j)&&VH(a.j)}}(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Eg();return b?(b=b.toLowerCase(),b+=Ya("hidden"),!n(a)||b in a?b:null):null})();function L_(a,b){a=!!a;q("_lactCookie",a,window);if(null==t("_lact",window)){if(Uf("EXP_LACT_TEMPDATA")){var c=parseInt(Uf("LACT"),10),c=isFinite(c)?z()-Math.max(c,0):-1;q("_lact",c,window);-1==c&&vv()}else a&&b?(c=ok.get("ACTIVITY","-1"),q("_lact",parseInt(c,10),window)):(q("_lact",-1,window),vv());P(document,"keydown",vv);P(document,"keyup",vv);P(document,"mousedown",vv);P(document,"mouseup",vv);Uf("EXP_LACT_MOUSE")&&Ji("page-mouse",vv);Uf("EXP_LACT_SCROLL")&&Ji("page-scroll",vv);Uf("EXP_LACT_RESIZE")&&
Ji("page-resize",vv)}}function vv(){var a=t("_lact",window);null==a&&(L_(),a=t("_lact",window));var b=z();q("_lact",b,window);Uf("EXP_LACT_TEMPDATA")||t("_lactCookie",window)&&1E3<=b-a&&pk("ACTIVITY",""+b,-1);Mi("USER_ACTIVE")}function M_(){var a=t("_lact",window);return null==a?-1:Math.max(z()-a,0)};var N_={OFF:"0",ON:"1",ou:"2",MWEB:"3"};var O_={OI:"red",WHITE:"white",MG:"blue"};function P_(a){this.experimentIds=(a||"").split(",");var b={};D(this.experimentIds,function(a){b[a]=!0});this.o=!!b["913424"];this.C=!!b["932250"]||!!b["9406444"];this.la=!!b["945066"]||!!b["9405188"];this.F=!!b["945069"]||!!b["9405408"];this.ga=!!b["945074"]||!!b["9405191"];this.T=!!b["945089"]||b["9405194"];this.R=!!b["945090"]||!!b["9405409"];this.ba=!!b["934052"]||!!b["9407054"];this.da=!!b["945093"]||!!b["9406673"];this.aa=!!b["945094"]||!!b["9406674"];this.wa=!!b["945097"]||!!b["9407011"];this.ya=
!!b["945098"]||!!b["9407012"];this.va=!!b["964602"]||!!b["9407014"];this.Da=!!b["964603"]||!!b["9407013"];this.oa=!!b["964605"]||!!b["9407105"];this.U=!!b["964606"]||!!b["9407106"];this.B=!!b["936926"];this.Ga=!!b["927877"];this.G=!!b["913444"]||!!b["934947"]||!!b["934952"]||!!b["934953"]||!!b["934954"]||!!b["937225"]||!!b["937226"]||!!b["948904"]||!!b["948905"]||!!b["948906"]||!!b["948907"]||!!b["948908"]||!!b["948909"]||!!b["948910"]||!!b["948911"]||!!b["948912"]||!!b["948913"]||!!b["934959"]||
!!b["934963"]||!!b["934964"]||!!b["934965"]||!!b["934966"]||!!b["936024"]||!!b["936025"];this.A=!!b["913444"]||!!b["934947"]||!!b["937225"]||!!b["937226"]||!!b["948904"]||!!b["948905"]||!!b["948906"]||!!b["948907"]||!!b["948908"]||!!b["948909"]||!!b["948910"]||!!b["948911"]||!!b["948912"]||!!b["948913"]||!!b["934959"]||!!b["936024"]||!!b["936025"]||this.o;this.sa=!!b["951502"]||!!b["9406692"];this.D=!!b["951506"]||!!b["9406696"];this.Qy=!!b["943610"];this.dm=!!b["943605"];this.Ry=!!b["943606"];this.fm=
!!b["900720"];this.N=!!b["909722"];this.I=!!b["9407561"]||!!b["9407562"]||!!b["9407669"]||!!b["9407675"]||!!b["9407684"];this.J=!!b["9407562"];this.X=!!b["937222"];this.na=!!b["922333"];this.Z=!!b["934053"]||!!b["9407488"];this.O=!!b["937009"];this.W=!!b["9407949"];this.gb=!!b["934057"]||!!b["9408076"];this.H=!!b["934058"]||!!b["9408302"];this.j=!b["9408252"];this.Ca=!!b["937247"]};var Q_={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},R_={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},S_="blogger books docs google-live play picasaweb".split(" ");
function T_(a){Q.call(this);a=Zb(a);this.H={};this.experiments=new P_(a.fexp);this.ic=a.forced_experiments||null;this.qc=!!a.legacy_behavior;this.origin=KH(this.origin,a.origin);var b;try{b=document.location.toString()}catch(c){b=""}b=this.U=b;this.J=(this.I=!!b&&-1!=b.search(Gf))?KH("",a.loaderUrl):this.U;"adunit"==a.el?fg(this.J)?this.ka="adunit":this.ka="embedded":this.ka=a.el||this.ka;L_("detailpage"==this.ka,a.autonav);b=null;var d=a.ps;!d||G(S_,d)&&!this.Kb()||(b=d);this.j=b;this.Pb=G(S_,this.j);
b="blogger"==this.j||"books"==this.j||"docs"==this.j||"google-live"==this.j||"picasaweb"==this.j;this.oa=!b;this.yh=HH(!1,a.logwatch);this.wf=!b;this.B={};this.B.c="web";this.B.cver="html5";this.B.cplayer="UNIPLAYER";this.hb=HH(!1,a.edu_mode);this.ga=!(!Kt().defaultPlaybackRate||cd&&!fr("chrome")||Yh||Xh||fr("android")||fr("silk"));a.use_media_volume?b=!1:(b=Kt(),d=b.muted,b.muted=!d,b=b.muted!=d);this.Be=b;this.Ge=Zh;this.fi=(Yh||Xh||ai)&&"blazer"!=this.j&&!SE(this);this.Ld=HH("adunit"!=this.ka&&
"detailpage"!=this.ka&&!this.Pb,a.showinfo);this.isMobile=HH("blazer"==this.j,a.is_html5_mobile_device);this.N=HH(!1,a.playsinline);b=this.isMobile&&Dt&&2.3>=Ct;d=Xh&&!this.N||!b&&HH("native"==this.j,a.use_native_controls)?"3":"1";this.o="0"!=a.controls?d:"0";this.gd=HH("blazer"==this.j||"touch"==this.j,a.use_tablet_controls);this.$a="1"!=this.o?"0":this.gd?"blazer"==this.j?"3":"1":IH("2",a.autohide,N_);this.color=IH("red",a.color,O_);this.Jd="3"==this.o||HH(!1,a.modestbranding)&&"red"==this.color;
if(d=HH(!1,a.nologo))var d=this.J,e=!!d&&-1!=d.search(Of),d=dg(d)||e;this.di=d;d=!this.Jd&&"1"==this.o;this.Od="embedded"==this.ka&&!this.Ld&&!this.Pb&&!d;this.Ik=this.De=b;this.C=Xh?this.experiments.na&&7<=Zq:!0;this.Qb=this.I||!1;this.G="detailpage"==this.ka?"":this.J.substring(0,128);this.fb=!!a.disableCast;this.autoplay=HH(!1,a.autoplay);this.ye=HH(!1,a.autoplayoverride);this.od=this.autoplay||"detailpage"==this.ka;b=this.ye||!this.isMobile&&!fr("nintendo wiiu");this.va=this.od&&b;b="detailpage"==
this.ka&&"blazer"==this.j;this.La=HH(!0,a.fs)&&(b||Qh());this.Ce=((b=a.gdatabaseurl)&&-1!=b.search(Hf)?a.gdatabaseurl:null)||"//gdata.youtube.com/";this.ya=HH(!this.Pb,a.rel);this.Md=HH("detailpage"==this.ka&&"blazer"!=this.j||"books"==this.j,a.enablesizebutton);this.protocol=(this.Jk=(this.Kd=HH(!1,a.ssl_stream))||HH(!1,a.ssl))?"https":"http";this.A=bg(a.BASE_YT_URL)||bg(this.U)||this.protocol+"://www.youtube.com/";this.vf="adunit"!=this.ka;this.W="profilepage"==this.ka;this.theme="light"!=a.theme||
this.gd?"dark":"light";this.Ae="blazer"!=this.j&&"native"!=this.j&&"touch"!=this.j;this.wa="blazer"==this.j;switch(this.j){case "blogger":b="bl";break;case "books":b="gb";break;case "docs":b="gd";break;case "google-live":b="gl";break;case "play":b="gp";break;case "picasaweb":b="pw";break;default:b="yt"}this.Z=b;this.rb=KH("",a.authuser);this.ze=HH(!1,a.disablekb);this.pageId=KH("",a.pageid);this.Ee=NH(cw,a.vq);this.Fe=KH("",a.playerapiid);this.Ie=HH(!0,a.canplaylive);this.ld=HH(!1,a.ss);(b=a.video_container_override)?
(d=b.split("x"),2!=d.length?b=null:(b=parseInt(d[0],10),d=parseInt(d[1],10),b=isNaN(b)||isNaN(d)||0>=b*d?null:new H(b,d))):b=null;this.Ha=b;this.jd=HH("0"!=this.o,a.store_user_volume);this.O=HH(!1,a.use_media_volume);this.He=HH(!1,a.retryneterr)&&this.Kb();this.Pd="3"==this.o?3:IH(void 0,a.iv_load_policy,PA);this.Xa=KH("",a.cc_lang_pref);this.ba=IH(void 0,a.cc_load_policy,PA);this.da=void 0==a.content_v?void 0:a.content_v.toString();this.na=void 0==a.framer?void 0:a.framer.toString();this.la=void 0==
a.hl?void 0:a.hl.toString();this.region=void 0==a.cr?void 0:a.cr.toString();this.F=HH(!1,a.player_wide);this.jc=HH(!1,a.privembed);this.Rc=JH(NaN,a.live_chunk_readahead||a.hls_live_chunk_readahead);this.mc="";this.ob=new hk;U_(this,a);this.H=a}A(T_,Q);var V_={NG:"cbrand",PG:"cbr",QG:"cbrver",JH:"c",MH:"cver",LH:"ctheme",KH:"cplayer",iI:"cmodel",qI:"cnetwork",yI:"cos",zI:"cosver",AI:"cplatform"};f=T_.prototype;f.ka="detailpage";f.cb=!1;f.Sp=!1;f.Gg=!1;f.fk=null;f.Yj=null;f.Db=null;
function Vu(a,b){a.nb=b.get("d",a.nb);a.Ca=b.get("f",a.Ca)}
function U_(a,b){a.D=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&c in Q_&&c in R_?R_[c]+"_"+Q_[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.Kb()||d)&&(a.D=c,a.H.adformat=b.adformat,d||(a.ka="adunit"))}if(c=b.video_id&&b.video_id!=a.mc)a.mc=b.video_id;c=a.experiments.W||c;if(b.adpings||c)a.R=b.adpings?vj(b.adpings):null;var e;a.hb?e="s.youtubeeducation.com":a.oa?e=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||
"s.youtube.com":e="video.google.com";a.nd=e;a.kd="//"+a.nd+"/api/stats/qoe";if(b.feature||c)e=b.feature,a.T=e,a.H.feature=e;if(b.referrer||c)e=b.referrer,a.referrer=e,a.H.referrer=e;if(b.q||c)a.searchQuery=b.q;for(var g in V_)e=V_[g],c=b[e],void 0!=c&&(a.B[e]=c);a.yh=HH(a.yh,b.logwatch);a.userAge=JH(a.userAge,b.user_age);a.X=KH(a.X,b.user_display_image);eg(a.X)||(a.X="");a.Da=KH(a.Da,b.user_display_name);a.Qd=KH(a.Qd,b.user_gender);a.sa=KH(a.sa,b.eventid);a.ab=KH(a.ab,b.csi_page_type);a.wa=HH(a.wa,
b.enablecsi);b.enabled_engage_types&&(a.ob=new hk(b.enabled_engage_types.split(",")))}
function W_(a,b,c){switch(b.W){case 38:return a=b.videoId.indexOf(":"),We("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.Lv});case 30:return c="//docs.google.com/",a.A!=T_.prototype.A&&(c=a.A),We(c+"get_video_info",{docid:b.videoId,authuser:b.rb,authkey:b.Kd,eurl:a.G});case 33:return We("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});default:var d={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.G,ps:a.j,el:a.ka,
hl:a.la,list:b.playlistId,agcid:b.Ik,aqi:b.Rc,sts:16510,lact:X_(a)?M_():"-1"};a.ic&&(d.forced_experiments=a.ic);b.G?d.vvt=b.G:b.C&&(d.access_token=b.C);a.D&&(d.adformat=a.D);a.Xa&&(d.cc_lang_pref=a.Xa);a.ba&&2!=a.ba&&(d.cc_load_policy=a.ba);b.wa&&2!=a.Pd&&(d.iv_load_policy=b.wa);b.Ha&&(d.itct=b.Ha);b.eh&&(d.autoplay="1");b.hm&&(d.noiba="1");b.km&&(d.mdx="1");b.Od&&(d.ytrcc=b.Od);b.nm&&(d.utpsa="1");b.nd&&(d.is_fling="1");c.width&&(d.width=c.width);c.height&&(d.height=c.height);b.da&&!a.experiments.j&&
(d.ypc_preview="1");b.te&&(d.splay="1");a.da&&(d.content_v=a.da);b.jm&&(d.livemonitor=1);a.rb&&(d.authuser=a.rb);a.pageId&&(d.pageid=a.pageId);a.sa&&(d.ei=a.sa);a.Kd&&(d.ssl_stream="1");a.I&&(d.iframe="1");b.lk&&(d.tst=b.lk);b.contentCheckOk&&(d.cco="1");b.racyCheckOk&&(d.rco="1");qa(d,a.B);return We(a.A+"get_video_info",d)}}function Y_(a){return a.referrer?a.referrer.slice(0,128):""}
function Z_(a){return"www.youtube-nocookie.com"==window.location.host||a.hb?"www.youtube.com":window.location.host}f.getVideoUrl=function(a,b,c,d){b={list:b};c&&(b.t=c);d&&"www.youtube.com"==Z_(this)?c="https://youtu.be/"+a:(c=this.protocol+"://"+Z_(this)+"/watch",b.v=a);return We(c,b)};
function $_(a,b){if("play"!=a.j)return"https://support.google.com/youtube/?p=report_playback";var c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.H,v:b.videoId,p:"movies_playback"};b.j&&(c.fmt=b.j.id);b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce);b.W&&(c.partnerid=b.W);return We("//support.google.com/googleplay/",c)}
function a0(a){var b={};if(!a.Db)return b;a.Db.webkitDecodedFrameCount&&(b.hmewdfc=a.Db.webkitDecodedFrameCount,b.hmewdrop=a.Db.webkitDroppedFrameCount,b.hmewvdbc=a.Db.webkitVideoDecodedByteCount,b.hmewadbc=a.Db.webkitAudioDecodedByteCount);a.Db.mozParsedFrames&&(b.hmempf=a.Db.mozParsedFrames,b.hmemdf=a.Db.mozDecodedFrames,b.hmempresented=a.Db.mozPresentedFrames,b.hmempainted=a.Db.mozPaintedFrames,b.hmempaintdelay=a.Db.mozPaintDelay);return b}function b0(){return M_()}
function X_(a){return a.experiments.N?"detailpage"==a.ka||"leanback"==a.ka:!0}function wt(a){return"leanback"==a.ka||a.Pb||!a.ya&&!a.W?!1:!0}function mv(a){return"detailpage"!=a.ka&&"embedded"!=a.ka&&"profilepage"!=a.ka?!1:!0}f.Kb=function(){var a;a=this.U;var b=(a=!!a&&-1!=a.search(Ff))&&!this.I;return a&&this.I&&dg(this.J)||b};function Hu(a){return 0==a.J.indexOf(a.A)}function SE(a){return hr()||"tv"==a.B.cplatform}function rt(a){return a.experiments.G&&"detailpage"==a.ka&&"blazer"!=a.j}
f.P=function(){this.Db=null;T_.K.P.call(this)};function c0(a,b){this.j=a;this.o=b;this.A=1}function d0(a,b,c,d){d/=a.A;var e=iJ(a.j)+1/jJ(a.j),g;g=Math.max(.9*(d-3),hJ(a.j)+8192*e);c=g/e/(b+c);c=Math.min(c,d);c=Math.max(a.o.J,Math.min(a.o.R,c));a=Math.max(a.o.F,Math.ceil(a.o.J*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function e0(a){var b=jJ(a.j);a=hJ(a.j)+1048576*iJ(a.j);return b*Math.min(1,1048576/(b*a))}function f0(a){return e0(a)/a.A};function g0(a,b,c){this.j=a;this.video=b;this.reason=c};function h0(a,b,c,d){this.O=a;this.T=b;this.G=c;this.F=d;this.A=this.H=this.j=null;this.C="i";this.J=-1;this.D=this.B=null;this.o=[];this.I=this.N=0;this.R=null}function i0(a,b,c){"m"==c&&ew(a.j)&&!ew(b)&&(c="a");if("m"==c&&ew(b))return a.C=c,j0(a,b),k0(a),a.A=l0(a),new g0(m0(a),a.A,c);var d=a.j.equals(b);if("m"==a.C&&ew(a.j)&&d)return null;"r"!=c||d||(a.J=-1);j0(a,b);b=l0(a);if("r"==c&&b==a.A){if(d)return null;a.A=b;return new g0(m0(a),b,c)}a.C=c;return null}
function n0(a,b){o0(a);a.R=b;a.I=z();a.J=-1;j0(a,a.j)}function o0(a){return!!a.I&&9E4>=z()-a.I}function m0(a){p0(a);return a.B}function l0(a){p0(a);return a.D}function q0(a){var b=a.C;a.C="a";a.J=z();return new g0(a.H,a.A,b)}
function p0(a){if(ew(a.j)||!(8E3>z()-a.J)){a.I&&!o0(a)&&(a.I=0,j0(a,a.j));k0(a);var b=f0(a.O);if(ew(a.j))a.D=a.G.j[a.o[a.o.length-1].id];else{for(var c=Math.min(a.N,a.o.length-1),d=b/1.05-a.B.info.Aa;0<c&&!(a.o[c].Aa<=d);c--);for(b=b/1.15-a.B.info.Aa;c<a.o.length-1&&!(a.o[c+1].Aa>=b);c++);a.N=c;a.D=a.G.j[a.o[c].id]}}}
function j0(a,b){a.j=b;var c=a.F.o;if(!ew(a.j)&&(c=gb(c,function(a){return a.Aa>this.T.Aa?!1:!this.G.j[a.id].C},a),o0(a))){var c=gb(c,function(a){return a.id!=this.R.id},a),d=gb(c,function(a){a=Kw(a);return"140"==a||"134"==a||"243"==a});d.length&&(c=d)}c.length||(c=a.F.o);c=gb(c,a.j.B,a.j);c.length||(c=[a.F.o[0]]);c.sort(function(a,b){return a.Aa-b.Aa});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.video.width>g.video.width?(rb(c,d),d--):1.15*e.Aa>g.Aa&&(rb(c,d-1),d--)}a.o=c}
function r0(a){var b=F(a.F.j,function(a){return!!a.bd&&a.bd.isDefault}),b=b||a.F.j[0];a.B=a.G.j[b.id];k0(a)}function k0(a){if(!a.B.info.bd&&(a.B=a.G.j[a.F.j[0].id],1<a.F.j.length)){var b=!1;if(ew(a.j))b=240>a.j.j;else{for(b=0;b+1<a.o.length&&"tiny"==a.o[b].video.quality;)b++;var c=f0(a.O)/1.15,b=a.B.info.Aa+a.o[b].Aa>c}b&&(a.B=a.G.j[a.F.j[1].id])}}
function s0(a){var b=f0(a.O)/1.05-a.B.info.Aa,c=mb(a.o,function(a){return this.T.o&&this.T.o<Zv[a.video.quality]?!1:a.Aa<b},a);0>c&&(c=0);a.N=c;a.D=a.G.j[a.o[c].id]};function t0(){this.j=this.o=!1}t0.prototype.start=function(){this.o=!0};t0.prototype.reset=function(){this.j=this.o=!1};function u0(a,b){this.J=a;this.A=b;this.C=[];this.j=[];this.B=this.o=null;this.D=0;this.Aa=b.info.Aa;this.G=this.I=!1;this.F=new t0;this.H=null;this.N=0}function v0(a,b){a.C.push(b);a.o=cb(b.info.j);a.D+=xG(b.info)}function w0(a){for(;a.C.length&&5==a.C[0].state;){var b=a.C.shift();a.D-=xG(b.info);a.D+=cb(b.C).buffer.byteLength;D(b.C,a.T,a)}}u0.prototype.T=function(a){if(4==a.info.type){var b=a.info.j.Dr(a);a.info==this.o&&(this.o=cb(b).info);D(b,this.T,this)}else 3==a.info.type&&this.j.push(a)};
function x0(a){var b=AG(a.j[0]);return b.getInt32(0)>b.byteLength&&1==a.j.length}
function y0(a,b){if(a.I)return a.j[0].ia;var c=a.A.info.o,d=a.A.ni();if(a.j[0].info.C>=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.C>b||g||a.J.N)break}e--;var g=a.j[e].ia.end,h=a.j[e].info.F-b;if(d&&c&&0<=a.J.H&&h>a.J.H){c=Math.floor((b-a.j[e].info.C)/a.j[e].info.H*a.j[e].info.o);if(0==c)return null;g=a.j[e].ia.start+c-1}return new $F(a.j[0].j?0:a.j[0].ia.start,g)}
function z0(a,b){for(var c;a.j.length;){if(a.j[0].ia.end>b.end){var d;c=a.j[0];var e=b.end-a.j[0].ia.start+1,e=Math.min(e,c.info.o),g=new qG(c.info.type,c.info.j,c.info.ia,c.info.B,c.info.startTime,c.info.duration,c.info.A,e,!1);d=bG(c.ia.start,e);g=new YG(g,c.buffer,d,c.j);e=new qG(c.info.type,c.info.j,c.info.ia,c.info.B,c.info.startTime,c.info.duration,c.info.A+e,c.info.o-e,c.info.G);d=new $F(d.end+1,c.ia.end);d=[g,new YG(e,c.buffer,d,!1)];c=d[0];a.j[0]=d[1]}else c=a.j.shift();d=a;g=c.info;d.B=
g;d.I&&d.B.D&&(d.I=!1);d.Aa=Math.max(d.Aa,g.j.info.Aa);if(c.ia.end==b.end)break}a.j.length&&c.buffer==a.j[0].buffer||(a.D-=c.buffer.byteLength)}function A0(a,b){var c=B0(a,b);if(0<=c)return c;a.o=a.A.Mi(b).j[0];C0(a)&&(a.B=null);a.H=null;a.N=0;return a.o.startTime}
function D0(a,b){E0(a);if(a.A.info.video&&a.B&&!a.B.D&&b){var c=kb(a.j,function(a){return a.info.D});a.j=xb(a.j,0,c+1);a.I=!0}else a.j=[];if(a.j.length)for(a.D=a.j[0].buffer.byteLength,c=1;c<a.j.length;c++)a.j[c].buffer!=a.j[c-1].buffer&&(a.D+=a.j[c].buffer.byteLength);else a.D=0}function F0(a){a.F.o||a.F.start();D0(a,!1);C0(a)&&(a.B=null)}
function G0(a,b){for(var c=0;c<a.C.length&&b!==a.C[c];c++);if(c==a.C.length)b.dispose();else{for(;c<a.C.length;)a.O(a.C.pop());3==b.info.j[0].type?(c=b.info.j[0],c=new qG(c.type,c.j,c.ia,c.B,c.startTime,0,c.A,0,!1),a.o=c):a.o=null}}function H0(a){return ib(a.j,function(a){return a.info.D})}function C0(a){return!!a.B&&a.B.G}
function I0(a){var b=[];a.B&&b.push(a.B);D(a.j,function(a){b.push(a.info)});D(a.C,function(a){D(a.info.j,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.o&&a.o!=cb(b)&&b.push(a.o);return b}function J0(a){if(!a.o||!a.o.o)return!1;a=I0(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].C-a[b-1].F)))return!1;return!0}
function B0(a,b){if(J0(a)){var c;a:{c=I0(a);for(var d=0;d<c.length;d++)if(c[d].C<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break a}c=null}if(c)return c.startTime}return NaN}function K0(a){return ib(a.C,function(a){return 3<=a.state})}function L0(a){return!(!a.o||!a.A.ad()||a.o.j==a.A)}function M0(a){return L0(a)&&a.o.j.info.Aa<a.A.info.Aa}u0.prototype.O=function(a){a.dispose();this.D-=xG(a.info)};function E0(a){D(a.C,a.O,a);a.C=[];a.o=null}function N0(a){return!!a.o&&a.o.B<a.A.index.Ng()};function O0(a,b,c){this.F=a;this.info=b;this.timing=c;this.state=1;this.o=this.C=null;this.G=this.B=this.H=0;this.A=NaN;this.D=this.j=this.I=null;this.J=0}O0.o=!1;O0.j=1E4;f=O0.prototype;f.getErrorCode=function(){return this.D};function P0(a){var b;b=a.timing;b={rt:((z()-b.A)/1E3).toFixed(2),lb:b.o,pt:(b.O/1E3).toFixed(2),pb:b.N};b.shost=a.j?WF(a.j.j):"";a.J&&(b.rc=a.J.toString());return b}
f.start=function(){var a=1==this.state,b=6==this.state;1==this.state||4==this.state||b&&Q0(this);R0(this,2);var c;(c=!this.F.W)||(c=this.info.o,c=this.H>c.A&&1<=c.o);c?c=!1:(c=this.j?WF(this.j.j):"",c=$b(cJ(this.timing.j.j,c)),c=2<=c.pe&&0==c.done&&(0<c.es||0<c.So));if(c||b&&2<=this.B){b=this.info.o;if(!(this.H<=b.A)){b.o++;b.A=oG-1;c=UF(b.j);var d=new J(c);d.tb.match("\\.googlevideo\\.com$")?(cf(d,"redirector.googlevideo.com"),c=d.toString()):d.tb.match("r[1-9].*\\.c\\.youtube\\.com$")?(cf(d,"www.youtube.com"),
c=d.toString()):c=gg(c);b.j=new SF(c);b.j.set("cmo",encodeURIComponent("pf="+b.o))}this.B=0}else if(b){this.B++;a=O0.j*(.5+Math.random());1==this.B&&(a=2E3);L(y(this.On,this),a);return}a?this.On():L(y(this.On,this),0)};
f.On=function(){if(!this.ma()){this.H=oG++;this.j=mE(this.info);this.B&&this.j.set("playerretry",this.B.toString());var a=lE(this.j);this.o=new XMLHttpRequest;try{this.o.open("GET",a)}catch(b){this.D="net.ssl";R0(this,6);return}this.o.responseType="arraybuffer";this.o.withCredentials=!0;a=y(this.oC,this);this.o.addEventListener("load",a,!1);this.o.addEventListener("error",a,!1);this.o.send();this.G=0;var a=this.timing,c=this.j?WF(this.j.j):"";a.H=c;cJ(a.j.j,c).pe+=1;a.A=z();a.D=a.A;a.o=0;a.I=!1;a.J=
!1;a.C=0;a.G=kJ(a.j);S0(a);a.O=a.F-a.A;this.o.addEventListener("progress",y(this.pC,this),!1);0<this.F.C&&(this.A=L(y(this.Br,this),this.F.C));this.j.get("itag");this.j.get("range");Math.round(this.info.j[0].C);Math.round(cb(this.info.j).F);z()}};f.pC=function(a){if(!this.ma()){this.o&&(this.J=this.o.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.A&&4E12>c?c:z();20>c-b.D||T0(b,c,a);b=this.timing;b.o>b.T&&8192<b.o&&3>this.state&&R0(this,3)}};
f.oC=function(a){var b=this.o;if(!this.ma()&&a.target==b){this.A&&(M(this.A),this.A=NaN);this.J=b.status;a=!1;400<=b.status?(a=!0,this.D="net.badstatus"):null==b.response&&(a=!0,this.D="net.connect");if(!a){var b=b.response,c;a:{if(2048>b.byteLength&&(c=String.fromCharCode.apply(String,new Uint8Array(b)),cg(c)))break a;c=""}if(c){var b=this.info.o,d=this.j;d.j===b.j&&(b.j=mG(d,c));R0(this,4)}else if(this.info.ia&&b.byteLength!=this.info.ia.length)a=!0,this.D="fmt.unparseable";else{c=this.info.j;if(1==
c.length&&!c[0].ia){var d=c[0],e=bG(0,b.byteLength),d=new qG(d.type,d.j,e,d.B,d.startTime,d.duration,d.A,e.length,d.G);c[0]=d}for(var d=[],e=0,g=!1,h=!1,k=0;k<c.length;k++){var l=c[k],p=b,r=bG(e,l.o),u=!1;if(1==l.type)b.slice?p=b.slice(e,e+l.o):(g=new Uint8Array(b,e,e+l.o),p=(new Uint8Array(g)).buffer),r=bG(0,l.o),g=!0;else if(3==l.type||4==l.type)u=g&&!h,h=!0;d.push(new YG(l,p,r,u));e+=l.o}this.C=d;c=this.timing;d=z();b=b.byteLength;c.I||(c.I=!0,cJ(c.j.j,c.H).done+=1,d=d>c.A&&4E12>d?d:z(),T0(c,d,
b),e=(d-c.A)/1E3,!c.J&&8192<=c.o&&eJ(c.j,e,b),8192<=c.o&&(e=c.j,h=c.C,b=Math.max(b,8192),e.B.o(1,h/b),lJ(e)),gJ(c.j,d-c.A,c.o),c.B&&(c.B=!1));z();R0(this,5)}}a&&(Q0(this),R0(this,6),a=this.timing,z(),cJ(a.j.j,a.H).So+=1)}};function Q0(a){if(2>a.B)a=!0;else{var b=a.info.o;a=!(a.H>b.A&&1<=b.o)}return a}function R0(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.B&&(c.B=!1)}a.I&&a.I(a)}
f.Br=function(){this.A=NaN;if(!(this.ma()||this.F.U&&this.o&&"quic"==this.o.getResponseHeader("client-protocol"))){var a=z(),b=!1;if(8192<=this.timing.o){var c=this.timing.F;S0(this.timing);this.timing.F-c>=.8*this.F.C?(this.G++,b=5<=this.G):this.G=0}else b=this.timing,b=5E3<a-(b.A+1E3*b.G.delay);if(b){b=this.timing;a=a>b.A&&4E12>a?a:z();b.C+=(a-b.D)/1E3;var c=b.j,d=b.N,e=b.C,d=Math.max(d,8192);c.B.o(1,e/d);lJ(c);gJ(b.j,a-b.A,b.o);cJ(b.j.j,b.H).es+=1;U0(this);this.D="net.timeout";R0(this,6)}else this.A=
L(y(this.Br,this),this.F.C)}};f.ma=function(){return-1==this.state};f.dispose=function(){rG(this.info.j[0])&&5!=this.state&&(this.info.j[0].j.A=!1);R0(this,-1);this.I=this.C=null;U0(this);M(this.A);this.A=NaN};function U0(a){if(a.o){var b=a.o;a.o=null;b.abort()}a=a.timing;a.B&&(a.B=!1)};function V0(a,b,c){this.j=a;this.N=b;this.T=c;this.o=this.D=this.A=NaN;this.J=this.I=this.B=!1;this.C=0;this.F=this.O=NaN}function T0(a,b,c){if(a.B){var d=(b-a.D)/1E3,e=c-a.o;0<e&&(.2<d||1024>e?(a.C+=d,.2<d&&eJ(a.j,.05,e)):eJ(a.j,d,e),a.J=!0)}else 8192<=c&&(d=a.j,d.C.o(1,(b-a.A)/1E3),lJ(d),a.B=!0);a.D=b;a.o=c}function S0(a){var b=a.N-a.o,b=1E3*(b*a.G.tailDelay+b/a.G.byterate),c=z(),b=8192<=a.o?b+c:b+Math.max(c,a.A+1E3*a.G.delay);a.F=b};function W0(a,b,c,d){U.call(this);this.G=a;this.B=b;this.F=c;this.o=this.A=null;this.I=new c0(a,b);this.j=null;this.D=new h0(this.I,b,this.F,d);this.C=this.na=this.la=this.aa=this.Z=NaN;this.N=!1;this.R=NaN;this.da=0;this.ba=this.H=!1;this.oa={};this.U="";this.ga=!1;this.X=this.J=0}A(W0,U);W0.F=!1;W0.j=2/24;W0.A=1E3;W0.o=.2;W0.D=1E4;W0.C=.2;W0.B=1.25;f=W0.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.D;d.C="i";j0(d,b);r0(d);d.H=d.B;s0(d);d.A=d.D;b=q0(d);this.A=new u0(this.B,b.j);this.o=new u0(this.B,b.video);this.L("videoformatchange",b);this.C=a;c?(this.H=!0,X0(this)):Y0(this)};function Y0(a){0==a.C&&(a.A.A.A||Z0(a,a.A,!0),a.o.A.A||Z0(a,a.o,!0));a.seek(a.C);$0(a,"gv")}f.resume=function(){this.H&&(this.H=!1)};
f.Rv=function(a){this.resume();this.j=a;xw(a)&&(a.j.addEventListener("updateend",y(this.Cc,this),!1),a.o.addEventListener("updateend",y(this.Cc,this),!1));$0(this,"msa");this.W&&this.O&&Fy();this.Cc();this.la=Wf(y(this.Cc,this),W0.D)};function a1(a){a.j&&a.j.j&&a.j.j.removeEventListener&&(a.j.j.removeEventListener("updateend",y(a.Cc,a),!1),a.j.o.removeEventListener("updateend",y(a.Cc,a),!1));a.j=null;a.H=!0;a.A&&(D0(a.o,!1),D0(a.A,!1))}function b1(a){a.j&&vw(a.j)&&a1(a)}
function c1(a,b,c){if(!b.F.o||!c.remove)return!1;if(c.updating)return!0;if(!b.F.j&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.F.j=!0;b.F.reset();a.L("seekrequired");return!1}
function d1(a,b,c){if(a.H)return!1;if(!b.o){if(!b.A.ad())return b.A.A||Z0(a,b,!1),!1;A0(b,a.C)}var d=b.C.length+c.C.length;(K0(b)||K0(c)||a.F.isLive)&&--d;if(2<=d+1)return!1;d=b.o;4==d.type&&d.j.ad()&&(b.o=cb(d.j.Hj(d)),d=b.o);!d.G&&!d.j.Nh(d)||d.j.info.o&&4==d.type?a=!1:M0(b)&&!a.B.D?a=!0:(!(c=d.G||b.D+c.D>a.B.j||!!(c.o&&!c.o.G&&c.o.F<d.F))&&(c=3==d.type)&&(d=d.F,b=e1(a,b,!0),ew(a.D.j)||(c=(z()-a.da)/1E3,b=Math.min(b,30+2*c)),c=d>a.C+b),a=c?!1:!0);return a}
function f1(a,b,c){if(!a.j||uw(a.j)||xw(a.j)){var d=a.C,e;e=a.I;c=d0(e,b.A.info.Aa,c.A.info.Aa,0);e=hJ(e.j)+c*iJ(e.j)+c/jJ(e.j);e=Math.max(e,e+5-c/b.A.info.Aa);d=d+e;a=a.D;a:{a=!a.A||!a.D||a.A.info.Aa>=a.D.info.Aa?!1:a.D.info.video.width>1.6*a.A.info.video.width?!0:"r"==a.C;if(b.C.length){if(b.C[0].info.j[0].startTime<=d)break a;E0(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.D-=c.buffer.byteLength));b.C.length?b.o=cb(b.C[b.C.length-
1].info.j):b.j.length?b.o=cb(b.j).info:b.o=b.B;a&&b.o&&d<b.o.startTime&&(b.H=null,b.o=b.A.Mi(d,!0).j[0])}}}
function g1(a,b,c){d1(a,b,c);var d=b.o;if(b.o.j.ad()){M0(b)&&!a.B.D&&(f1(a,b,c),b.o||A0(b,a.C));var d=b.o,e=d.F-a.C,g=!d.ia||0==d.o&&0==d.A?0:d.ia.length-(d.A+d.o);L0(b)&&(M0(b)||25>=e)&&0==g&&(g=d.startTime+W0.j,d.o&&(g+=d.duration),A0(b,g),d=b.o);d.j.ni()?(c=d0(a.I,d.j.info.Aa,c.A.info.Aa,e),e=L0(b),c=lH(d.j,d,c),c.ia&&1<c.j.length&&(e?c=lH(d.j,d,c.j[0].o):(e=c.j[c.j.length-1],g=e.o/c.ia.length,!e.D&&.4>g&&(c=lH(d.j,d,c.ia.length-e.o)))),d=c):d=kE(d.j,d)}else d.j.ni()?(c=d0(a.I,b.A.info.Aa,c.A.info.Aa,
0),d=lH(d.j,d,c)):d=kE(d.j,d);v0(b,h1(a,d))}function h1(a,b){if(3==b.j[b.j.length-1].type){var c;a:{c=a.D;var d=b.j[0].j;if(d.info.video){if(c.A!=d){c.A=d;c=q0(c);break a}}else c.H=d;c=null}c&&a.L("videoformatchange",c)}c=xG(b);var d=a.G,e=a.I,g=Math.min(2.5,hJ(e.j)),e=e0(e);c=new O0(a.B,b,new V0(d,c,c-g*e));d=y(a.jB,a);c.I=d;c.start();return c}
f.jB=function(a){if(!this.ma()&&3<=a.state){var b=a.info.j[0].j,c=!this.W&&b.info.video,d=!this.O&&b.info.o;4==a.state?(c?$0(this,"vrr"):d&&$0(this,"arr"),a.start()):5==a.state?(c?(this.W=a.j?lE(a.j):"",Hy()):d&&(this.O=a.j?lE(a.j):""),D(a.C,function(a){rG(a.info)&&a.info.j.jp(a)}),jb(a.C,function(a){return ZG(a,this.B.Ga)},this)&&!a.C[0].info.j.im()?this.Cc():this.he(!0,"fmt.unparseable",P0(a))):3==a.state?(this.Cc(),c&&Hy()):6==a.state&&Q0(a)?(this.he(!1,a.getErrorCode(),P0(a)),(c=b.info.video&&
0<a.B&&90&&!o0(this.D))&&n0(this.D,b.info),6==a.state&&"net.timeout"==a.D||c?(G0(b.info.video?this.o:this.A,a),this.Cc()):a.start()):rG(a.info.j[0])?(b.C=!0,this.Cc()):this.he(!0,"net.retryexhausted",P0(a))}};function i1(a){if(isNaN(a.Z)){var b=y(a.Cc,a);a.Z=L(b,0)}}function X0(a){if(isNaN(a.aa)){var b=y(function(){this.aa=NaN;this.Cc()},a);a.aa=L(b,W0.A)}}
f.Cc=function(){this.Z=NaN;b1(this);if(this.j&&!ww(this.j))if(this.F.isLive)Infinity!=this.R&&(this.R=Infinity,this.j.ig(Infinity));else if(!isFinite(this.R)){var a=Math.floor(Math.max(this.A.A.index.rg(),this.o.A.index.rg()));0<a&&(this.j.ig(a),this.R=a)}if(!this.ma())if(a=this.F,z()-a.I>=a.D){if(3==this.F.B&&(this.he(!(3>this.F.o),this.F.getErrorCode(),{rc:this.F.N.toString()}),!(3>this.F.o)))return;a=this.F;if(3!=a.B||z()-a.H>=1E3*Math.pow(2,a.o))if(a=this.F,1!=a.B){var b;a:{var c=a.j;for(b in c){b=
c[b];break a}b=void 0}b=We(a.J,{start_seq:(b.index.Nb()+1).toString()});a.H=z();uH(a,b)}X0(this)}else if(this.F.isLive&&(N0(this.o)||N0(this.A))&&(b=j1(this),isNaN(b)||this.seek(b)),"prerender"==window.document.webkitVisibilityState)X0(this);else if(b1(this),w0(this.o),w0(this.A),this.A.A.A||(!this.H||mJ(this.G)?Y0(this):X0(this)),!this.j||c1(this,this.A,this.j.j)||c1(this,this.o,this.j.o)||((b=k1(this,this.o,this.j.o))&&!this.J&&(this.J=z(),$0(this,"vda"),this.X&&Hy()),a=Wq(this.j.o.buffered,this.C+
W0.j),isNaN(a)&&!C0(this.o)&&this.j.j.buffered.length||(C0(this.o)&&(a=NaN),a=k1(this,this.A,this.j.j,a),b|=a,a&&!this.X&&(this.X=z(),$0(this,"ada"),this.J&&Hy())),C0(this.o)&&C0(this.A)&&uw(this.j)&&!ww(this.j)&&(a=this.j,uw(a)&&a.A.endOfStream(),a=this.G,tu(kJ(a)),a.A=z()),b&&!xw(this.j)&&i1(this)),l1(this,this.o,l0(this.D)),l1(this,this.A,m0(this.D)),this.o.A.C||this.A.A.C)this.he(!0,"net.retryexhausted");else{b=this.J?z()-this.J:0;if(this.ga||b>=this.B.I)d1(this,this.o,this.A)&&g1(this,this.o,
this.A),d1(this,this.A,this.o)&&g1(this,this.A,this.o);this.B.T&&this.U&&!this.H&&mJ(this.G)&&(b=this.U,this.U="",a=yj(b),Ij(b,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:y(this.he,this,!1,"pathprobe.net",{shost:a})}))}};
function k1(a,b,c,d){if(c.updating)return!0;var e=b.j.length?b.j[0]:null;if(!e)return!1;!b.B||b.B.D||sG(b.B,e.info)||(b.B=null,uw(a.j)&&c.abort(),c.j=null);var g;if(g=a.F.isLive){var h=AG(e);g=!!KG(h,0,1718909296)}h=!(!b.J.N||!b.j.length||1!=b.j[0].info.j.info.j||0!=b.j[0].info.A)&&!a.F.C;if(g)c.j=null;else{if(g=h||!e.j)g=e.info.j.j,c.j==g?g=!1:(m1(a,c,g),c.j=g,a.L("initsegment",c.j),g=c.updating);if(g)return!0}g=e1(a,b,!1);g=a.C+g;0<=d&&(g=Math.min(g,d));d=y0(b,g);if(!d)return!1;if(h){if(x0(b))return!1;
var k;a:{x0(b);var h=b.j[0],l=AG(h);g=l.getInt32(0);if(g>l.byteLength){var p=b.j[1];if(p.ia.length+l.byteLength<g){k=null;break a}k=new Uint8Array(g);l=new Uint8Array(h.buffer,h.ia.start,h.ia.length);k.set(l);l=new Uint8Array(p.buffer,p.ia.start,g-h.ia.length);k.set(l,h.ia.length);l=new DataView(k.buffer)}var r=h.info.j.index.yl(h.info.B);(l=JG(l,r))?(k?(z0(b,h.ia),z0(b,bG(p.ia.start,g-h.ia.length))):z0(b,bG(h.ia.start,g)),k=l):k=null}if(k)return m1(a,c,new Uint8Array(k)),!0}k=new Uint8Array(e.buffer,
d.start,d.length);h=e.info.j.info.o?"audio":"video";if(a.F.C&&3==e.info.type){p=a.B.O&&!b.G?0:null===b.H?e.info.startTime:b.H;g=$G(e)-e.info.duration;l=p-e.info.startTime;r=l+g;if(Math.abs(g)>W0.C||Math.abs(r-b.N)>W0.B)b.N=r,r=vG(e.info),r.delta=g,r.currOffset=l,a.he(!1,"qoe.avsync",r);if(!a.B.O||b.G)isNaN(p)||$G(e),b.H=p+$G(e);if(a.F.isLive){g=e.info.j.j;for(var l=NaN,r=0,u=new DataView(e.buffer);RG(u,r);){var w=SG(u,r);if(1936286840==w.type)l=WG(w);else if(1836476516==w.type)l=TG(w);else if(1952867444==
w.type){var S=w;S.data.getUint8(S.offset+8)?XG(S.data,S.offset+12):S.data.getUint32(S.offset+12)}r=UG(w.type)?r+8:r+w.size}!l&&g&&QG(g);Uq("audio"==h?a.j.j.buffered:a.j.o.buffered)}g=e.info.j.j;for(var h=NaN,T,l=0,r=new DataView(e.buffer);RG(r,l);)u=SG(r,l),1936286840==u.type?h=WG(u):1836476516==u.type?h=TG(u):1952867444==u.type&&(T=u),l=UG(u.type)?l+8:l+u.size;!h&&g&&(h=QG(g));T.data.getUint8(T.offset+8)?(g=T.data,T=T.offset+12,p=Math.round(p*h),g.setUint32(T,Math.round(p/4294967296)),g.setUint32(T+
4,Math.round(p&4294967295))):T.data.setUint32(T.offset+12,Math.round(p*h))}if(!m1(a,c,k))return F0(b),!0;a.F.C&&a.B.O&&!b.G||(z0(b,d),uG(b.B));b.G||(b.G=!0);e.j&&(c.j=e.info.j.j,a.L("initsegment",c.j));return!0}function m1(a,b,c){try{xw(a.j)?b.appendBuffer(c):b.append(c)}catch(d){return!1}return!vw(a.j)}
function e1(a,b,c){var d;d=!a.B.D&&(ew(a.D.j)||a.B.X&&a.ba)?b.A.info.o?10485760:62914560:b.A.info.o?a.B.A:a.B.B;c&&(d+=a.B.j);b=d/(ew(a.D.j)?b.o?b.o.j.info.Aa:b.A.info.Aa:b.Aa);0<a.B.G&&(b=Math.min(b,a.B.G));return b}function j1(a){if(a.F.isLive){var b=a.o.A.index.Ng(),c=a.o.A.index.Nb(),d=a.o.A.index;if(1>a.B.liveChunkReadahead)return d.nf(c)+d.Mh(c)-W0.o;a=Math.max(b,c-a.B.liveChunkReadahead+1);return d.nf(a)+W0.o}return Math.floor(Math.min(a.A.A.index.rg(),a.o.A.index.rg()))}
f.seek=function(a){if(!this.ma()){b1(this);this.da=z();this.o.A=l0(this.D);var b=n1(this,this.o,a,this.j&&this.j.o);this.A.A=m0(this.D);var c=n1(this,this.A,b,this.j&&this.j.j);this.C=Math.max(a,b,c);this.N=!0;i1(this)}};
function n1(a,b,c,d){if(b.A.ad())if(d){var e=Wq(d.buffered,c),g=NaN,h=b.B;h&&(g=Wq(d.buffered,h.j.index.nf(h.B)));if(e==g&&J0(b))return c;d=B0(b,c);if(0<=d)return d;D0(b,!0);b.A.info.video&&b.B&&!b.B.D&&!H0(b)&&(d=b.B,b.j.length&&(d=cb(b.j).info),d=b.o||d,d=lH(d.j,d,d.ia.length-(d.o+d.A)),v0(b,h1(a,d)));if(isNaN(e))return A0(b,c);A0(b,e+W0.j)}else A0(b,c);else b.A.A||Z0(a,b,!1),0!=c&&E0(b);return c}function l1(a,b,c){b.A!=c&&(b.A=c,c.A||Z0(a,b,!1))}
function Z0(a,b,c){var d=t("ytplayer.playback_delay");null!=d?(a.he(!1,"playback.delay",{ms:d}),a.na=L(y(a.Lo,a,b,c),d)):a.Lo(b,c);b.A.A=!0}f.Lo=function(a,b){var c=b?65536:0;b&&!isNaN(2)&&(c=Math.floor(Math.max(c,2*a.A.info.Aa)));c=a.A.$o(c);D(c,function(b){var c=h1(this,b);!rG(b.j[b.j.length-1])&&v0(a,c)},this)};f.P=function(){a1(this);this.A&&(E0(this.A),E0(this.o));Xf(this.la);M(this.na);this.o=this.A=null;W0.K.P.call(this)};
f.he=function(a,b,c){var d;if(c)for(var e in c)d=(d?d+";":"")+e+"."+c[e];this.L("error",new ru(b,a,d));a&&(this.j&&uw(this.j)&&(a=this.j,uw(a)&&a.A.endOfStream("network")),this.dispose())};function o1(a){if(!a.o.o)return"";a=WF(a.o.o.j.D.j);return a.substr(0,a.indexOf("."))}
W0.prototype.getDebugInfo=function(){var a={lct:this.C.toFixed(3),lsk:this.N,lmf:ew(this.D.j),lbw:jJ(this.G).toFixed(3),lhd:hJ(this.G).toFixed(3),ltd:(1E9*iJ(this.G)).toFixed(3),laa:this.A.B?uG(this.A.B):"",lva:this.o.B?uG(this.o.B):"",lar:this.A.o?uG(this.A.o):"",lvr:this.o.o?uG(this.o.o):"",lvh:o1(this)};this.j&&!vw(this.j)&&(a.lab=Uq(this.j.j.buffered),a.lvb=Uq(this.j.o.buffered));return a};function $0(a,b,c){a.oa[b]=c?window.performance.timing.navigationStart+c:z()};function p1(a,b,c,d){Q.call(this);this.A=a;this.I=b;this.D=c;this.j=d;this.C="";this.o=this.F=this.G=this.H=null;this.B=new pw(this);R(this,this.B);this.j&&(qw(this.B,this.j,["message","mskeymessage"],this.Fq),qw(this.B,this.j,["error","mskeyerror"],this.Eq),qw(this.B,this.j,["ready","mskeyadded"],this.Dq))}A(p1,Q);f=p1.prototype;f.setCallbacks=function(a,b,c,d){this.H=a;this.G=b;this.F=c;this.o=d};f.Fq=function(a){this.H.call(this.o,a)};
f.Eq=function(a){var b;this.j?(b=this.j.error.code,a=this.j.error.systemCode):(b=a.errorCode.code,a=a.systemCode);this.G.call(this.o,b,a)};f.Dq=function(a){this.F.call(this.o,a)};f.update=function(a){this.j?this.j.update(a):this.A.addKey?this.A.addKey(this.I.j,a,this.D,this.C):this.A.webkitAddKey(this.I.j,a,this.D,this.C)};f.P=function(){this.A=null;p1.K.P.call(this)};function q1(a,b){Q.call(this);this.j=a;this.B=b;this.D={};this.A=null;this.C=new pw(this);R(this,this.C);Pv()||(qw(this.C,this.j,["keymessage","webkitkeymessage"],this.H),qw(this.C,this.j,["keyerror","webkitkeyerror"],this.G),qw(this.C,this.j,["keyadded","webkitkeyadded"],this.F));this.o=null}A(q1,Q);function r1(a){a.o=new (Pv())(a.B.j);a.j&&(a.j.msSetMediaKeys?a.j.msSetMediaKeys(a.o):a.j.setMediaKeys(a.o))}
function s1(a,b){var c=a.D[b.sessionId];!c&&a.A&&(c=a.A,a.A=null,c.C=b.sessionId,a.D[b.sessionId]=c);return c}q1.prototype.H=function(a){var b=s1(this,a);b&&b.Fq(a)};q1.prototype.G=function(a){var b=s1(this,a);b&&b.Eq(a)};q1.prototype.F=function(a){var b=s1(this,a);b&&b.Dq(a)};q1.prototype.P=function(){this.j=null;q1.K.P.call(this)};function t1(a,b,c){this.url=a;this.interval=b;this.j=c};function u1(a,b,c){this.j=a;this.headers=b;this.message=c};function v1(a,b,c,d,e){Q.call(this);this.I=a;this.o=d;this.o.subscribe("oauthtoken",this.ft,this);this.C={session_id:e};uv(this,a.A);this.j=[];this.B=this.F=this.H=!1;var g;try{var h=c.j;if(Pv()){b.o||r1(b);var k=c.o||"video/mp4",l;if("com.microsoft.playready"==b.B.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.o.createSession(k,h,p)}else l=
b.o.createSession(k,h);g=new p1(null,null,null,l)}else b.j.generateKeyRequest?b.j.generateKeyRequest(b.B.j,h):b.j.webkitGenerateKeyRequest(b.B.j,h),b.A=new p1(b.j,b.B,h,null),g=b.A}catch(r){b="g",r instanceof DOMException&&(b+=r.code),this.o.L("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),g=null}if(this.A=g)this.A.setCallbacks(this.Pn,this.PE,this.OE,this),R(this,this.A)}A(v1,Q);f=v1.prototype;f.ft=function(a){this.G=a};
function uv(a,b){if(b&&-1!=b.search(Ef)){for(var c in a.C)b=af(b,c,a.C[c]);a.D=b}else w1(a,"drm.net","u")}f.start=function(){this.ma()||(this.H=!0,this.j.length&&this.Pn(this.j.shift()))};
f.Pn=function(a){if(!this.ma()){var b=a.defaultURL||a.destinationURL;this.B&&b&&uv(this,b);if(this.H){a=a.message;if("com.microsoft.playready"==this.I.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(!QL)for(QL={},RL={},c=0;65>c;c++)QL[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),RL[QL[c]]=c,62<=c&&(RL["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)]=
c);for(var c=RL,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",vC:a,responseType:"arraybuffer",withCredentials:!0,qb:this.BA,onError:this.Gq,context:this};b=this.D;this.G&&(b=af(b,"access_token",this.G));Ij(b,a)}else this.j.push(a),
this.F||(this.F=!0,this.o.L("newsession",this))}};f.OE=function(){this.ma()||(this.B||(this.o.L("sessionready"),this.B=!0),this.j.length&&this.Pn(this.j.shift()))};
f.BA=function(a){if(!this.ma())if(0!=a.status&&a.response){a:{a=new Uint8Array(a.response);var b=0,c=String.fromCharCode.apply(String,a.subarray(0,16384)).split("\r\n"),d=c[0];rb(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=Za(e[1]),g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new u1(d,g,a.subarray(b));break a}e=e.match(/([^:]+):\s+([^]+)/);if(null==e)break;g[e[1]]=e[2]}a=null}a?0!=a.j?w1(this,"drm.auth","f"+a.j,Kv(a.j)):(b=
(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new t1(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60,parseInt(a.headers["Heartbeat-Num-Retries"],10)||4)),(b||c)&&this.o.L("newlicense",b,c),this.A.update(a.message)):w1(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Gq(a)};f.PE=function(a,b){this.ma()||w1(this,"drm.keyerror","s"+a+"."+b)};f.Gq=function(a){w1(this,"drm.net","r"+a.status)};
function w1(a,b,c,d){a.ma()||a.o.L("licenseerror",b,c,d);a.dispose()}f.P=function(){this.o=null;v1.K.P.call(this)};function x1(a,b){this.j=a;this.o=b||null};function y1(a,b){U.call(this);this.H=a;this.j=b;this.subscribe("newlicense",this.QA,this);this.subscribe("newsession",this.RA,this);this.subscribe("sessionready",this.qB,this);this.O=VE();this.B=null;this.G={};this.o=[];this.A=bw;this.N=new q1("com.microsoft.playready"==b.j?null:a,b);R(this,this.N);this.D=new q1(a,b);R(this,this.D);this.F=2;this.I=new pw(this);R(this,this.I);this.C=!1;this.J=null;qw(this.I,this.H,Pv()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.PA)}A(y1,U);f=y1.prototype;
f.PA=function(a){z1(this,new x1(a.initData,a.contentType),!0)};
function z1(a,b,c){if(!(a.ma()||"com.microsoft.playready"==a.j.j^!c||(c=b.j,a.C&&"widevine"==a.j.o))){var d=String.fromCharCode.apply(String,c);if(!a.G[d]){a.G[d]=!0;d="clearkey"==a.j.o;if(112==c[4]&&115==c[5]&&115==c[6]&&104==c[7]&&d){a:{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 a}d+=g}c=null}if(!c)return}a.o.push(b);1<a.o.length||(A1(a,b),a.C=!0)}}}function A1(a,b){var c=new v1(a.j,a.N,b,a,a.O);c.ft(a.B);R(a,c)}f.QA=function(a,b){a&&G(a,"HD")&&!dw(this.A)&&"com.microsoft.playready"!=this.j.j&&(this.A=cw,this.L("qualitychange"));b&&!this.J&&(this.J=b,this.L("heartbeatparams",b))};f.RA=function(){this.ma()||(this.o.shift(),this.o.length&&A1(this,this.o[0]))};f.qB=function(){this.F--;0==this.F&&r1(this.D)};
f.P=function(){this.H=null;this.o=[];y1.K.P.call(this)};function B1(a){this.o={};this.o.c1a=y(this.C,this);this.o.c3a=y(this.D,this);this.o.c6a=y(this.B,this);(this.j=a)&&this.j.ga?this.A=vj(this.j.ga):this.A=[]}B1.prototype.C=function(){var a=t("yt.abuse.botguardInitialized");return a&&a()?(a=t("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};B1.prototype.D=function(a){return"r3a="+Math.floor(this.j.lengthSeconds%Wa(a.c3a))};B1.prototype.B=function(a){return"r6a="+(Wa(a.c)^Number(Uf("DCLKSTAT",0)))};function C1(a,b,c){this.j=a;this.reason=b;this.o=c};function D1(a,b){this.j=a;this.o=b}function E1(a,b){return fw(fw(a.j.Ee,b.Sm),b.Tj)}
function Fv(a,b){var c;c=!!b.A.j;var d;Xh&&!a.j.N&&(d=window.screen&&window.screen.width?new H(window.screen.width,window.screen.height):null);d||(d=a.j.Ha?a.j.Ha.clone():a.o.wb());(Xh||hd||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.A.o;if(d.length){var g=.85;2==d[0].video.projectionType&&(g*=.5);for(var h=0;h<d.length&&!(e=d[h].video,null===c||e.width*g<c.width&&e.height*g<c.height);h++);e=Ou("auto",e.quality,!1)}else e=cw;c=e.j;hr()&&(c=Math.max(c,Zv.hd1080));if(d=(fr("armv7")||fr("android"))&&
!SE(a.j))d=b.A.o[0],d="9"==d.A||"("==d.A;d&&(c=Math.min(c,Zv.large));c=Math.max(c,Zv.medium);e.j!=c&&(e=new aw(e.o,c,e.A));return e};function F1(){this.B=this.j=NaN;this.A=this.o=!1}function Br(a,b,c,d){if(d=1<d)a.A=!0;if(a.o)b!=a.j&&(a.o=!1);else if(0<b&&a.j==b)return c-a.B>(d||!a.A?1500:400);a.j=b;a.B=c;return!1};function G1(){this.o=0;this.j=this.C=this.A=this.B=NaN};function H1(a){this.o=a;this.j=0;this.C=NaN;this.A=0;this.pa=[];this.B=I1(this.o);this.D=this.F=0}function J1(a){a.B.startTime=a.A;a.B.endTime=a.j;a.pa.length&&cb(a.pa).isEmpty()?a.pa[a.pa.length-1]=a.B:a.pa.length&&a.B.isEmpty()||a.pa.push(a.B);a.F+=a.j-a.A;a.B=I1(a.o);a.A=a.j}function K1(a){return a.F+a.o.o()-a.A}function L1(a){a.pa.length&&a.j==a.A||J1(a);var b=a.pa;a.pa=[];return b}
H1.prototype.update=function(){var a=this.o.o()||0,b=M1(this.o);if(a!=this.j||N1(this,a,b)){if(a<this.j||a-this.j>b-this.C+.5||N1(this,a,b))J1(this),this.A=a;this.C=b;this.j=a}};function N1(a,b,c){c-=a.C;return b==a.j&&.5<c};function O1(a,b){this.fa=b;this.A=!1;this.j=a}O1.prototype.o=function(){return{ps:this.fa.j,el:this.fa.ka}};O1.prototype.send=function(){this.A||(lg(We(this.fa.A+"set_awesome",this.o())),this.A=!0)};function P1(a,b,c){O1.call(this,b,c);this.B=a}A(P1,O1);
P1.prototype.o=function(){var a=P1.K.o.call(this);qa(a,this.fa.B);var b=Pc(this.j.jk/this.j.lengthSeconds,0,1);qa(a,{html5:"1",video_id:this.j.videoId,eurl:this.fa.G,framer:this.fa.na,feature:this.fa.T,list:this.j.playlistId,w:b,l:this.j.lengthSeconds,plid:this.j.playbackId,ei:this.j.H,access_token:this.j.C,tpmt:K1(this.B),cpn:this.j.clientPlaybackNonce});this.fa.D&&(a.adformat=this.fa.D);this.fa.referrer&&(a.referrer=Y_(this.fa));this.fa.autoplay&&(a.autoplay="1");this.fa.rb&&(a.authuser=this.fa.rb);
this.fa.pageId&&(a.pageid=this.fa.pageId);this.j.te&&(a.splay="1");this.j.subscribed&&(a.subscribed=this.j.subscribed);qa(a,P1.K.o.call(this));qa(a,this.fa.B);return a};function Q1(a){Q.call(this);this.j=a;this.A={};this.O=NaN;this.C=new xs(this.wA,3E4,this);R(this,this.C);this.D=new xs(this.Cj,100,this);R(this,this.D);this.o="N";this.B=0;this.T=NaN;this.I=0;this.H=this.U="";this.G=this.J=0;this.N=this.F=!1}A(Q1,Q);var R1={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function S1(a,b,c,d){var e=a.A[b];e||(e=[],a.A[b]=e);a=0<=d?d:M1(a.j);e.push(a.toFixed(3)+":"+c.join(":"))}f=Q1.prototype;
f.Cj=function(a){a=a||M1(this.j);var b=this.j.D();if(!isNaN(this.R)&&!isNaN(b.A)){var c=b.A-this.R;0<c&&S1(this,"bwm",[c,(b.C-this.W).toFixed(3)],a)}this.R=b.A;this.W=b.C;isNaN(b.j)||S1(this,"bwe",[b.j.toFixed(0)],a);isNaN(b.o)||(c=b.o,b.B<c&&(c=b.B),this.T!=c&&(S1(this,"bh",[c.toFixed(3)],a),this.T=c),this.j.fa.experiments.C&&3>c&&("PL"==this.o||"B"==this.o)&&this.D.start());S1(this,"cmt",[this.j.o()],a)};
function T1(a){var b={event:"streamingstats"};if(a.j.j.j){b.fmt=a.j.j.j.id;var c=a.j.j.F;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.j.j.clientPlaybackNonce;b.ei=a.j.j.H;b.el=a.j.fa.ka;b.docid=a.j.j.videoId;b.ns=a.j.fa.Z;b.fexp=a.j.fa.experiments.experimentIds.toString();b.cl=a.j.j.qc;a.j.fa.D&&(b.adformat=a.j.fa.D);a.j.j.Sa&&(b.live=a.j.j.Ab?"dvr":"live");b.html5="1";return b}
f.qh=function(a){if(!this.ma()&&!Vb(this.A)){this.D.isActive()||this.Cj(a);a=a0(this.j.fa).hmewdrop;a>this.I&&S1(this,"df",[a-this.I]);this.I=a;a=T1(this);bc(a,this.j.fa.B);a=We(this.j.fa.kd,a);for(var b in this.A)a+="&"+b+"="+this.A[b].join(",");lg(a);this.A={};this.C.start()}};f.lg=function(){S1(this,"vps",["N"]);this.j.j.$a&&(this.A.cat=["preload"]);this.O=Wf(y(this.qh,this),1E4);this.C.start()};
f.onError=function(a,b){var c=this.j.o(),c=[a,c.toFixed(3)];b&&c.push(b);var d=M1(this.j);S1(this,"error",c,d);this.Cj(d)};f.wA=function(){"PL"==this.o&&(S1(this,"vps",[this.o]),this.qh())};f.P=function(){Q1.K.P.call(this);Xf(this.O)};function U1(a,b,c,d){this.fa=b;this.segments=[];this.experimentIds=[];this.J=!1;this.j="watchtime"==c;this.da="playback"==c;this.gb="delayplay"==c;this.I="atr"==c;this.ba="engage"==c;this.va=this.I?"/api/stats/"+c:"//"+b.nd+"/api/stats/"+c;d&&(this.cu=d.fs,d.rtn&&(this.sh=d.rtn),this.j?(this.nb=d.state,0<d.rti&&(this.Ij=d.rti)):(this.ga=d.mos,this.na=d.volume,d.at&&(this.adType=d.at),d.allowed&&(this.B=d.allowed),d.ex_ads&&(this.H=d.ex_ads)),d.autonav&&(this.ji=d.autonav));this.wa=b.D;this.autoplay=
b.autoplay;this.ya=b.da;this.Ca=Zb(b.B);this.Z=b.G;this.Ha=b.ka;this.experimentIds=b.experiments.experimentIds;this.T=b.la;this.nq=b.Z;this.referrer=b.referrer;this.region=b.region;this.o=b.T;this.searchQuery=b.searchQuery;this.userAge=b.userAge;this.X=b.Qd;this.sa=M_();this.autoplay=a.eh||this.autoplay;this.ji=a.Np||this.ji;this.W=a.lk;this.clientPlaybackNonce=a.clientPlaybackNonce;this.F=a.He;this.aa=a.qn;this.A=a.jk;this.O=a.mf;a.j&&(this.Ga=a.j.id,a.F&&a.F.id!=this.Ga&&(this.D=a.F.id));this.du=
a.te;this.La=a.kk;a.Sa&&(this.la=a.Ab?"dvr":"live");this.Xa=a.Fn;this.playbackId=a.playbackId;this.Da=a.H;this.playlistId=a.playlistId;this.o=a.ab||this.o;this.R=a.jc;this.U=a.mc;this.hb=a.fi;this.subscribed=a.subscribed;this.fb=a.qc;this.videoId=a.videoId;this.ob=a.Vy;this.$a=a.ic;this.ab=a.hy}f=U1.prototype;f.ji=!1;f.autoplay=!1;f.Sy=!1;f.Op=!1;f.cu=!1;f.Ty=!1;f.du=!1;f.nq="yt";f.Ij=null;f.sh=null;
f.send=function(){if(!this.J){var a=V1(this),a=We(this.va,a);this.I?this.C&&Ij(a,{method:"POST",Lb:{atr:this.C}}):lg(a);this.J=!0}};
function V1(a){var b={ns:a.nq,el:a.Ha,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.Ff(a.A),plid:a.playbackId,ei:a.Da,fmt:a.Ga,fs:a.cu?"1":"0",rt:a.Ff(a.oa),of:a.ab,adformat:a.wa,content_v:a.ya,euri:a.Z,subscribed:a.subscribed,lact:a.sa,live:a.la,cl:a.fb,mos:a.ga,q:a.searchQuery,osid:a.$a,state:a.nb,vm:a.ob,volume:a.na};qa(b,a.Ca);a.ji&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.Op&&(b["final"]="1");a.du&&(b.splay="1");a.O&&(b.delay=a.O);a.T&&(b.hl=a.T);a.region&&(b.cr=
a.region);n(a.userAge)&&a.X&&(b.uga=a.X+a.userAge);n(a.N)&&(b.len=a.Ff(a.N));!a.j&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.sh&&(b.rtn=a.Ff(a.sh));a.o&&(b.feature=a.o);a.playlistId&&(b.list=a.playlistId);a.R&&(b.ctrl=a.R);a.U&&(b.ytr=a.U);a.hb&&(b.ssrt="1");a.D&&(b.afmt=a.D);a.j?(b.idpj=a.La,b.ldpj=a.Xa,null!=a.Ij&&(b.rti=a.Ff(a.Ij))):(n(a.adType)&&(b.at=a.adType),n(a.B)&&(b.allowed=a.B),n(a.H)&&(b.ex_ads=a.H));(a.da||a.gb)&&a.W&&(b.tst=a.W);a.j&&(b.st=W1(a,E(a.segments,
function(a){return a.startTime})),b.et=W1(a,E(a.segments,function(a){return a.endTime})));ib(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=W1(a,E(a.segments,function(a){return a.visibilityState})));ib(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=W1(a,E(a.segments,function(a){return a.playbackRate})));ib(a.segments,function(a){return"-"!=a.Yk})&&(b.cc=E(a.segments,function(a){return a.Yk}).join(","));Bj()&&a.F&&(b.ctt=a.F,b.cttype=a.aa);a.ba&&(b.etype=n(a.G)?a.G:0);return b}
f.Ff=function(a){return(1*a.toFixed(3)).toString()};function W1(a,b){return E(b,a.Ff).join(",")};function X1(a){Q.call(this);this.j=a;this.B=new Q1(a);R(this,this.B);this.o=new H1(a);this.D="paused";this.F=NaN;this.H=[10,10,10,40];this.I=this.G=0;this.O=this.T=this.N=this.J=this.A=!1;this.C=NaN;this.R=new P1(this.o,this.j.j,this.j.fa)}A(X1,Q);function Y1(a,b,c){var d=M1(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.F=L(y(a.gA,a,c,b),d);return c}f=X1.prototype;
f.gA=function(a,b){if(!this.ma()){this.F=NaN;this.o.update();var c=L1(this.o),d=Z1(this,c);b&&(d.Ij=a);var e=400<this.I;!(1<c.length)&&c[0].isEmpty()||e||(d.sh=Y1(this,!0,a));d.send();this.I++}};function Av(a,b){var c=$1(a.j);qa(c,{state:a.D});c=new U1(a.j.j,a.j.fa,b,c);c.A=a.j.o();c.N=a.j.C();c.oa=M1(a.j);c.segments=[I1(a.j)];return c}function Z1(a,b){var c=Av(a,"watchtime");c.segments=b;c.A=a.o.j;return c}function a2(a){a.o.update();return Z1(a,L1(a.o))}
function b2(a){var b=a.j.fa;a=a.j.j;var c=a.ab||b.T,c={ns:b.Z,html5:"1",el:b.ka,ps:b.j,fexp:b.experiments.experimentIds.join(",")||void 0,feature:c||void 0,ctrl:a.jc||void 0,ytr:a.mc||void 0,list:a.playlistId,d:b.nb,f:b.Ca};b.autoplay&&(c.autoplay="1");a.subscribed&&(c.subscribed=a.subscribed);return c}function c2(a){a.j.j.remarketingUrl&&!a.T&&(lg(a.j.j.remarketingUrl),a.T=!0);a.j.j.ppvRemarketingUrl&&!a.O&&(lg(a.j.j.ppvRemarketingUrl),a.O=!0);d2(a)}f.lg=function(){this.B.lg()};
f.onError=function(a,b){this.B.onError(a,b)};
function e2(a,b){if(!a.ma()){W(b.state,2)?(a.D="paused",0<ux(b,2)&&a.A&&a2(a).send()):W(b.state,8)?(a.D="playing",a.A&&isNaN(a.F)&&Y1(a,!1)):a.D="paused";var c=a.B,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=R1[Fr(e)];"B"==g&&W(e,4)&&(g="PB");e=g}if(e!=c.o){var g=e,h=M1(c.j);if(!(h<c.B)){if("PL"==c.o)c.G+=h-c.B;else if("B"==c.o&&c.F&&(c.F=!1,c.J+=h-c.B,!c.N&&10<=c.J&&180>=c.G)){c.j.F();if(!c.ma()){var k=T1(c);k.qoealert="1";k=We(c.j.fa.kd,k);lg(k)}c.N=!0}"B"!=
g||"PL"!=c.o&&"PB"!=c.o||(c.F=!0);c.B=h}!c.j.fa.experiments.C||"B"!=e&&"PB"!=e?S1(c,"cmt",[c.j.o().toFixed(3)]):c.Cj();S1(c,"vps",[e]);c.o=e}if(W(d,128))c.onError(d.j.errorCode,d.j.errorDetail);(W(d,2)||W(d,128))&&c.qh();a.C&&W(b.state,128)&&(a.Kj("error-100"),M(a.C))}}function f2(a){a.C=Wf(y(a.Kj,a,"heartbeat"),3E4)}
f.Kj=function(a){var b=this.j.fa,c=this.j.j,d={ns:b.Z,el:b.ka,eurl:b.G,fmt:c.j?c.j.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.H,ps:b.j,noflv:1,st:this.j.o(),video_id:c.videoId,metric:a};b.autoplay&&(d.autoplay="1");c.aj&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=K1(this.o));qa(d,b.B);lg(We("//www.youtube.com/live_204",d))};f.P=function(){X1.K.P.call(this);M(this.F);this.F=NaN;var a=this.o;Xf(a.D);a.D=NaN};X1.prototype.getDebugInfo=function(){return V1(Av(this,"playback"))};
function d2(a){a.j.j.D.eventLabel=a.j.fa.ka;a.j.j.D.playerStyle=a.j.fa.j;a.j.j.na&&(a.j.j.D.feature="pyv");a.j.j.D.vid=a.j.j.videoId;a.j.j.D.isAd=!("adunit"!=a.j.fa.ka&&!a.j.j.na)};function g2(){this.endTime=this.startTime=-1;this.Yk="-";this.playbackRate=1;this.visibilityState=0}g2.prototype.isEmpty=function(){return this.endTime==this.startTime};function m2(a,b,c,d,e,g,h,k){this.j=a;this.fa=b;this.B=c;this.C=d;this.o=e;this.D=g;this.G=h;this.F=k||function(){};this.A=-1}function M1(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 $1(a){var b=a.B();a=a.j;var c={};a.j&&(c.fmt=a.j.id,a.F&&a.F.id!=a.j.id&&(c.afmt=a.F.id));a.va&&(c.threed=a.Aw);c.plid=a.playbackId;c.ei=a.H;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Tk&&(c.infringe=1);a.te&&(c.splay=1);a.Sa&&(c.live=a.Ab?"dvr":"live");a.eh&&(c.autoplay=1);a.di&&(c.sdetail=a.di);a.W&&(c.partnerid=a.W);a.ic&&(c.osid=a.ic);qa(b,c);return b}
function I1(a){var b=new g2;b.Yk=a.B().cc||"-";var c=a.fa;b.playbackRate=c.Db&&c.Db.playbackRate||1;(c=yh("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.fa.cb?b.visibilityState=2:a.fa.Sp&&(b.visibilityState=1);return b};function n2(a,b){this.state=a;this.j=b}function ux(a,b){return W(a.state,b)&&!W(a.j,b)?1:!W(a.state,b)&&W(a.j,b)?-1:0};function o2(a,b,c,d){U.call(this);this.ya=new F1;this.H=c;this.wa=d;this.F=new Gr(y(this.getCurrentTime,this),y(this.ND,this),y(this.getPlayerState,this),y(this.xb,this));R(this,this.F);this.aa=NaN;this.N=this.G=null;this.D=a;this.da=new D1(a,this.wa);this.oa=!1;this.I=this.A=null;this.O=[];this.W=new t0;this.R=new t0;this.Ha=this.sa=!1;this.va=NaN;this.C=new xr;this.La=b;this.X=this.ba=null;this.J=NaN;this.Z=new Nt(this);this.j=new Uu;this.o=this.U=null;this.la=NaN;this.B=null;this.Da=!1;this.ga=
0;this.na=!1}A(o2,U);function qv(a){By()?Ey(a.ga):M(a.ga)}f=o2.prototype;f.P=function(){M(this.la);Xf(this.va);pv(this);p2(this);qv(this);Ps(this);Ci(this.X,this.Z,this.j);this.Z=this.N=null;this.na=!1};
function q2(a,b,c){a.O.length=0;a.W.reset();a.R.reset();a.aa=NaN;a.J=NaN;a.U=null;a.Da=!1;a.o&&vr(a.o);r2(a);pv(a);p2(a);qv(a);Ai(a.j);a.F.reset();if(2==a.La||fg(a.D.J))b.Tp=!0;a.j=b;a.j.subscribe("dataupdated",a.UB,a);a.j.subscribe("dataloaded",a.Co,a);a.j.subscribe("dataloaderror",a.nk,a);a.j.subscribe("onStatusFail",a.TB,a);b.Ef&&b.Ef>b.startSeconds&&(b=b.Ef,a.N&&(a.F.Ih(a.N),a.N=null),a.N=new Mq(1E3*b,2147483646),a.N.bb.subscribe("onEnter",a.jg,a),Hr(a.F,[a.N]));pv(a);a.j.hf||(c=new m2(a.j,a.D,
c,y(a.hd,a),y(a.getCurrentTime,a),y(a.Dw,a),y(a.wa.vb,a.wa),y(a.Uw,a)),a.B=new X1(c));a.na=!1;s2(a,"newdata");t2(a,new xr)}function pv(a){if(a.B){var b=a.B;if(!b.ma()&&b.A){b.D="paused";var c=a2(b);c.Op=!0;c.send();c=b.B;"PL"==c.o&&(c.o="N");S1(c,"vps",[c.o]);c.qh();M(b.C);b.dispose()}Ai(a.B);a.B=null}}f.getVideoData=function(){return this.j};f.V=function(){return this.D};function u2(a){if(NI(a.j))return!0;tx(a,"api.invalidparam");return!1}
function v2(a,b){a.sa=!!b;u2(a)&&!a.W.o&&(a.W.start(),a.B&&a.B.lg(),a.Co())}
f.Co=function(){if(II(this.j))II(this.j),this.W.j=!0,this.O=ub(this.j.I),zF(this.j,this.D.experiments),GI(this.j)&&(this.j.Ab&&(w2(this,this.j.lengthSeconds),x2(this,!0)),this.j.A.j&&y2(this),Pu(this,"i")),s2(this,"dataloaded"),this.R.o&&z2(this);else if(this.j.la){var a=this.j,b=this.D.experiments.T;a.la=!1;var c=a.O;cg(c)||Yf(Error("DASH MPD Origin invalid: "+c),"WARNING");var d=yj(c),c=0>Uu.B.indexOf(d)?gg(c):hg(c),d=y(a.eA,a),a=y(a.Gn,a);uH(new mH(c,b),c,d,a);SH("mrs")}else this.j.Zf||(b=W_(this.D,
this.j,this.wa.vb()),OI(this.j,b,this.D.experiments.ga))};function A2(a){!a.D.qc&&a.o&&mr(a.o);v2(a);u2(a)&&!W(a.C,128)&&(a.R.o||(a.R.start(),t2(a,Cr(a.C,8))),z2(a))}function z2(a){if(!(a.R.j||!a.W.j||W(a.C,128)||a.O.length||(a.F.pe||a.F.lg(),a.O.length||0<Rq(a.F.j,-2147483648).length))){if(a.A){var b=a.A;a.Ha=!!b.O&&!!b.W}a.R.j=!0;a.j.Sa&&B2(a,Infinity,!0);a.B&&(b=a.B,b.j.j.Bi&&b.j.j.nl&&(b.Kj("connected"),f2(b)));a.L("playbackready",a)}}
f.jg=function(a){this.pauseVideo();a=0==a?new xr:new xr(14);t2(this,a)};
function C2(a,b,c,d){a.j.j=c;a.j.F=d||c;if(a.B){var e=a.j,g=Fv(a.da,e),e=F(e.A.o,y(g.B,g)),e=new C1(c,b,e?e.id:"");d&&"i"==b&&D2(a,b,d);d=a.B.B;c=M1(d.j);S1(d,"vfs",[e.j.id,e.o,d.U,e.reason],c);d.U=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),S1(d,"view",e,c));S1(d,"vps",[d.o],c);d.qh(c)}a.L("internalvideoformatchange",a.j,"m"==b)}
function D2(a,b,c){a.j.F=c;if(a.B){var d=a.B.B;c=new C1(c,b,"");var e=M1(d.j);c.j.id!=d.H&&(S1(d,"afs",[c.j.id,d.H,c.reason],e),d.H=c.j.id)}"i"!=b&&a.L("internalaudioformatchange",a.j,"m"==b)}function tx(a,b,c,d){if(Pb(Iv,c))var e=c;else var g=c;t2(a,Ar(a.C,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));qv(a);p2(a);E2(a)}function F2(a,b){a.O=a.O.filter(function(a){return b!=a});a.R.o&&z2(a)}f.xb=function(){return this.C.xb()};f.getPlayerState=function(){return this.C};f.getPlayerType=function(){return this.La};
function G2(a,b){a.o&&Ps(a);a.o=b;H2(a)}function Ps(a){a.I=null;a.A&&(i1(a.A),a.A.H=!0);a.o&&(a.B&&a.W.o&&W(a.C,64)&&I2(a),r2(a),a.Z.removeAll(),vr(a.o),a.o=null)}
function J2(a){A2(a);W(a.C,64)&&t2(a,Cr(a.C,8));if(a.R.j&&a.o)if(a.j.A){a.j.Sa&&(0==a.getCurrentTime()||a.getCurrentTime()<yv(a.j))&&B2(a,xv(a),!0);var b;if(a.j.A.j)b=K2(a),a.A.resume();else{p2(a);b=a.j.R.j();var c=a.j,d={};c.J&&(d.ptk=c.J,d.oid=c.Ae,d.ptchn=c.ze,d.pltype=c.Be);qa(b.o,d);qa(b.o,{c:a.D.B.c,cver:a.D.B.cver})}(c=a.o.j)&&c.equals(b)?tr(a.o):L2(a,b)}else tx(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}
function Qu(a){if(!a.j.A)return[];var b=M2(a);a=hw(a.j.A,b);a.length&&(a=a.concat(["auto"]));return a}function N2(a){return fw(fw(E1(a.da,a.j),Fv(a.da,a.j)),M2(a))}function M2(a){return a.j.pl?cw:a.G?a.G.A:GI(a.j)&&a.j.A.j&&nH(a.j.o)?bw:cw}
function Pu(a,b,c){if(!a.ma()&&!W(a.C,128)&&(c&&(a.j.Tj=c),GI(a.j))){"m"==b&&c&&dw(c)&&(b="a");var d=N2(a);a.j.A.j?"i"!=b&&(c=a.A,c.ma()||((d=i0(c.D,d,b))&&c.L("videoformatchange",d),l1(c,c.o,l0(c.D)),ew(c.D.j)&&"m"==b&&F0(c.o),M0(c.o)&&f1(c,c.o,c.A),i1(c))):(a.j.R=Nw(a.j.N,d),C2(a,b,a.j.R.Tb));a.xb()&&J2(a)}}
function Cv(a,b){if(!a.ma()&&!W(a.C,128)&&a.j.A.j){var c=a.A;if(!c.ma()){var d=c.D,e=b.id;d.C="m";d.B=d.G.j[e];d.H=m0(d);c.L("audioformatchange",new g0(d.H,d.A,d.C));l1(c,c.A,m0(c.D));F0(c.A);i1(c)}}}function Dv(a){return a.j.A?a.j.A.audioTracks:[]}function O2(a){var b=a.getVideoData().F;if(!b)return a.getVideoData().X;var c=F(Dv(a),function(a){return a.id==b.id});return c?c:a.getVideoData().X}
function y2(a){yH(a.j.o,{c:a.D.B.c,cver:a.D.B.cver});var b=a.D,c=new dE;if(gr()||b.experiments.la)c.N=!0;gr()&&(c.H=-1);0<=b.Rc&&(c.liveChunkReadahead=b.Rc);b.experiments.Ga&&(c.I=300);b.experiments.wa&&(c.W=!0);b.experiments.ya&&(c.X=!0);b.experiments.va&&(c.U=!0);b.experiments.Da&&(c.Ga=!0);if(fr("trident/")||fr("edge/"))c.G=240;if(SE(b)){var d=b.experiments;c.B=8388608;c.A=524288;c.j=2097152;c.F=1048576;c.J=1.5;c.R=15;c.D=!0;c.T=!1;c.I=0;c.o=Zv.hd720;fr("(ps4; leanback shell)")&&(c.Aa=d.ba?625E3:
562500);er()&&d.Z&&(c.B=12582912,c.A=2621440)}hr()&&(c.B=20971520,c.A=1572864,c.Aa=812500,c.j=20971520,c.C=1E3);var d=b.Ha||new H(window.screen.width,window.screen.height),e=window.devicePixelRatio||1;2560<=d.width*e&&1440<=d.height*e&&(c.B=52428800,c.A=5242880,c.j=20971520,c.F=8388608,c.o=Zv.auto);b.experiments.R&&(c.Aa=NaN);b.experiments.da&&(c.j=1.5*c.F);b.experiments.U&&(c.o=Zv.auto);a.A=new W0(a.ba,c,a.j.o,a.j.A);a.A.subscribe("initsegment",a.yA,a);a.A.subscribe("videoformatchange",a.JA,a);a.A.subscribe("audioformatchange",
a.IA,a);a.A.subscribe("error",a.nk,a);a.A.subscribe("seekrequired",a.DC,a);b=G(a.O,"spacecast")||a.sa;a.A.initialize(a.j.startSeconds,N2(a),b);a.j.probeUrl&&(a.A.U=a.j.probeUrl);if(a.O.length||a.sa)a.A.H=!0;a.sa&&I2(a)}function I2(a){var b=new n2(new xr(4),a.C);e2(a.B,b)}function p2(a){a.A&&(a.A.dispose(),a.A=null);a.I&&(a.I.dispose(),a.I=null)}
function K2(a){a.I||(a.A?a.A.seek(a.getCurrentTime()):y2(a),a.I=new rw(a.o,a.j.lengthSeconds,a.j.A.o[0].mimeType,a.j.A.j[0].mimeType),sw(a.I,y(a.A.Rv,a.A)));try{return tw(a.I)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),tx(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}}
f.yA=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&&z1(b,new x1(a),!1)}}};f.JA=function(a){C2(this,a.reason,a.video.info,a.j.info);var b=LI(this.j);b&&b.C(a.video)};
f.IA=function(a){D2(this,a.reason,a.j.info)};f.nk=function(a){if(a.j)tx(this,a.errorCode,void 0,a.details);else{var b;if(b=this.D.experiments.B&&("net.badstatus"==a.errorCode||"manifest.net"==a.errorCode))b=this.j,b=z()-b.ay>Uu.D;if(this.B&&(this.B.onError(a.errorCode,a.details),b))this.B.onError("staleconfig");b&&this.L("signatureexpired")}};f.pauseVideo=function(a){W(this.C,64)&&!a&&t2(this,Dr(this.C,8));this.o&&(a&&!W(this.C,128)&&t2(this,Cr(this.C,256)),this.o.pauseVideo())};
function E2(a){a.pauseVideo(!0);a.o&&(r2(a),a.I&&(a.I.dispose(),a.I=null),a.j&&(a.j.startSeconds=a.getCurrentTime()),a.J=NaN,ur(a.o),W(a.C,128)||t2(a,Ar(a.C)))}function B2(a,b,c,d){if(a.o&&a.R.j){b=Pc(b||0,yv(a.j),xv(a));b>=xv(a)?x2(a,!0):x2(a,!1);a.j.startSeconds=b;a.J=b;var e=a.ya;e.j=b;e.o=!0;c?a.mk():(P2(a),d&&(a.X||(a.X=new xs(a.mk,d,a)),a.X.start()),Q2(a,!0));a.N&&b>a.j.Ef&&(a.F.Ih(a.N),a.N=null);b<a.hd()&&t2(a,Dr(a.C,2));a.L("seekto",a,b)}else a.j.startSeconds=b||0}
function P2(a){W(a.C,32)||(t2(a,Cr(a.C,32)),W(a.C,8)&&a.pauseVideo(!0),a.L("beginseeking",a))}f.mk=function(){if(!isNaN(this.J)&&this.o){var a=this.hd();!this.j.Sa&&this.J>=Math.floor(a)?(this.J=a,this.L("endseeking",this),this.pauseVideo(!0),this.jg()):(this.A&&this.A.seek(this.J),pr(this.o,this.J))}this.X&&(this.X.dispose(),this.X=null);W(this.C,32)&&(t2(this,Cr(Dr(this.C,32),16)),this.L("endseeking",this))};
f.getCurrentTime=function(){if(!isNaN(this.J))return this.J;var a=0;this.o&&1<=this.o.readyState?a=this.o.getCurrentTime():this.j&&(a=this.j.jk||this.j.startSeconds||0);return a};f.hd=function(){return PI(this.j)?Infinity:this.j&&this.j.lengthSeconds?this.j.lengthSeconds:xv(this)?xv(this):0};
f.Dw=function(){var a=new G1;if(this.ba&&this.A){var b=this.ba;a.A=b.D;a.C=b.F;a.j=jJ(b);b=this.A;b.j&&!vw(b.j)&&(a.o=Yq(b.j.o.buffered,b.C),a.B=Yq(b.j.j.buffered,b.C));a.j=e0(b.I);jJ(b.G);hJ(b.G);iJ(b.G)}else this.o&&(a.o=Yq(this.o.buffered,this.getCurrentTime()));return a};function R2(a){if(a.o)if(PI(a.j))a=1;else if(QI(a.j))if(a.oa)a=0;else{var b=a.o;a=(0<Xq(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.hd()}else a=rr(a.o);else a=0;return a}
o2.prototype.getDebugInfo=function(a){var b={};a&&(this.B?qa(b,this.B.getDebugInfo()):this.j&&(b.cpn=this.j.clientPlaybackNonce),this.o&&qa(b,this.o.getDebugInfo()),this.A&&qa(b,this.A.getDebugInfo()),W(this.C,128)&&(b.debug_error=this.C.j),(this.O.length||0<Rq(this.F.j,-2147483648).length)&&(b.preroll="1"));b.debug_videoId=this.j.videoId;return b};f=o2.prototype;f.UB=function(){if(this.G){var a=this.G,b=this.j.C;a.B=b;a.L("oauthtoken",b)}s2(this)};
f.TB=function(a){tx(this,"auth",unescape(a.reason),a.errordetail||"sec."+a.errorcode)};function s2(a,b){a.L("internalvideodatachange",b||"dataupdated",a,a.j)}function H2(a){D("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.Z.M(this.o,a,this.QD)},a)}
f.QD=function(a){var b=a.target;if(b==this.o&&b.currentSrc){switch(a.type){case "error":if(this.D.He&&b.error&&b.error.code==b.error.MEDIA_ERR_NETWORK){setTimeout(y(function(){this.o&&(this.j.R&&this.o.load(),J2(this))},this),500);if(this.B)this.B.onError("progressive.net");return}break;case "durationchange":if(!this.j.Ab||this.j.o&&!this.j.o.isLive)b=b.duration||0,(!this.I||isFinite(b)&&0<b)&&1!=b&&w2(this,b);break;case "ratechange":this.A&&(this.A.I.A=Math.max(1,this.o.playbackRate));this.F.lg();
break;case "ended":t2(this,Ar(this.C,4));this.Pm();break;case "loadedmetadata":this.j.startSeconds&&(this.o.currentTime=this.j.startSeconds),this.D.fi&&this.j.startSeconds&&(this.aa=this.j.startSeconds,this.pauseVideo(!0));case "loadstart":Xf(this.va);this.$k()||(this.va=Wf(y(this.$k,this),100));break;case "progress":this.aa&&this.o.seekable.length&&this.o.seekable.end(0)>this.aa&&(this.o.currentTime=this.aa,this.aa=NaN,this.Ca=this.Z.M(this.o,"canplay",this.fA));case "suspend":Q2(this);this.L("onLoadProgress",
this,R2(this));break;case "seeked":S2(this);break;case "seeking":this.A&&this.A.seek(b.currentTime);break;case "playing":SH("plev",void 0,this.H.j);break;case "timeupdate":this.Da=!0;this.$k();S2(this);Q2(this);this.L("onVideoProgress",this,b.getCurrentTime());break;case "waiting":if(0<b.played.length&&0==b.buffered.length&&0<b.currentTime&&5>b.currentTime&&this.A)return}this.L("videoelementevent",a);a=yr(this.C,a,this.ya);t2(this,a)}};
f.$k=function(){var a=this.o;a&&this.Da&&!this.j.an&&!WH("vfp",this.H.j)&&2<=a.readyState&&!a.ended&&0<Xq(a.buffered)&&SH("vfp",void 0,this.H.j);if((a=this.o)&&!this.j.an&&0<(a.duration||0)&&(!WH("pbr",this.H.j)&&sr(a)&&2<=a.readyState&&0<Xq(a.buffered)&&SH("pbr",void 0,this.H.j),0<a.getCurrentTime())){Xf(this.va);M(this.la);this.j.an=!0;T2(this);if(this.B){a=this.B;if(!a.A){var b=Av(a,"playback");a.H=[10+a.j.j.kk,10,10,40+a.j.j.Fn-a.j.j.kk,40];var c=a.o;Xf(c.D);c.D=NaN;c.D=Wf(y(c.update,c),100);
c.C=M1(c.o);c.B=I1(c.o);b.sh=Y1(a,!0);b.Ty=!0;b.send();!a.j.fa.yh||a.j.fa.jc||a.A||(b=a.j.fa,c=a.j.j,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.H,referrer:Y_(b),eurl:b.G,framer:b.na,feature:b.T,fmt:c.j?c.j.id:0,ptk:c.J,skl:c.Wr,access_token:c.C,ucid:c.Fe},qa(b,b2(a)),delete b.fexp,b=We(a.j.fa.A+"user_watch",b),lg(b));a.j.j.J&&(b=a.j.fa,c=a.j.j,b=We(b.A+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.H,ptk:c.J,
oid:c.Ae,ptchn:c.ze,pltype:c.Be,content_v:b.da}),lg(b));if(a.j.j.Pp&&a.j.fa.oa&&!a.A){var b=a.j.fa,c=a.j.j,d={noflv:1,video_id:c.videoId,cpn:c.clientPlaybackNonce,el:b.ka,ps:b.j,referrer:Y_(b),eurl:b.G,framer:b.na,fmt:c.j?c.j.id:0,ptk:c.J,subscribed:c.subscribed,t:c.Jk};b.autoplay&&(d.autoplay="1");c.te&&(d.splay="1");0<c.startSeconds&&(d.start=1E3*c.startSeconds);c.aj&&(d.tmi="1");b=We(a.j.fa.A+"get_video",d);lg(b)}a.j.j.Bi&&(a.Kj("playback"),a.C||f2(a));a.j.j.mf||c2(a);a.A=!0;a=a.o;a.j=a.o.o();
a.C=M1(a.o);.5<a.j-a.A&&(a.A=a.j)}L(y(this.Pm,this),4500)}this.L("playbackstarted");this.A&&(this.A.ga=!0);By()&&Fy();return!0}return!1};
function T2(a){var b=a.getCurrentTime(),c=a.j;!WH("pbs",a.H.j)&&PH.measure&&PH.getEntriesByName&&(PH.getEntriesByName("mark_navigation_requested")[0]?PH.measure("measure_above_the_fold","mark_navigation_requested"):PH.measure("measure_above_the_fold"));c.videoId&&a.H.info("docid",c.videoId);c.H&&a.H.info("ei",c.H);c.clientPlaybackNonce&&a.H.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.H.info("start",c.startSeconds.toString());a.o&&sr(a.o)&&a.H.info("paused",1);c.j?a.H.info("fmt",c.j.id):
a.H.info("fmt","-1");c.$a&&a.H.info("yt_pre",a.Ha?"2":"1");a.D.cb&&a.H.info("yt_fs","1");a.H.info("tds",Math.round(R2(a)*a.hd()).toString());a.H.info("cmt",b.toFixed(3));if(a.A){b=a.A;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.W),c.length&&(c=c[0],$0(b,"vri",c.fetchStart),$0(b,"vdns",c.domainLookupEnd),$0(b,"vreq",c.requestStart),$0(b,"fvb",c.responseStart),$0(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.O),c.length&&
(c=c[0],$0(b,"ari",c.fetchStart),$0(b,"adns",c.domainLookupEnd),$0(b,"areq",c.requestStart),$0(b,"avb",c.responseStart),$0(b,"arc",c.responseEnd)));var b=b.oa,d;for(d in b)SH(d,b[d],a.H.j)}}f.fA=function(){this.Ca&&(this.Z.Ka(this.Ca),this.Ca=void 0,tr(this.o))};
function Q2(a,b){if(a.o&&a.j){var c=a.getCurrentTime();if(c<yv(a.j))B2(a,xv(a),!0);else{if(a.A){var d=a.A;if(d.j){d.resume();if(d.N&&!vw(d.j)){var e=d.C<=c&&c<d.C+10,g=0<=Vq(d.j.j.buffered,d.C+W0.j)&&0<=Vq(d.j.o.buffered,d.C+W0.j);e&&g&&(d.N=!1)}d.N||(d.C=c);X0(d)}}QI(a.j)&&c>a.hd()&&(d=a.hd(),0==d&&(d=c),w2(a,1.2*d));5<c&&(a.j.startSeconds=c);(d=By())?Ey(a.ga):M(a.ga);sr(a.o)||(e=y(a.Gx,a),a.ga=a.o.played&&0==a.o.played.length?d?Cy(e,100):L(e,100):d?Cy(e,500):L(e,500));a.j.jk=c;!b&&a.xb()&&a.B&&
(d=a.B,d.o.update(),d.j.j.lengthSeconds&&d.j.j.mf&&!d.N&&K1(d.o)>=d.j.j.mf&&(d.A&&d.j.j.mf&&(e=Av(d,"delayplay"),e.Sy=!0,e.send(),d.N=!0),c2(d)),e=d.R,!e.A&&e.fa.oa&&!e.fa.jc&&e.j.lengthSeconds&&K1(e.B)>=e.j.Rr&&d.R.send());a.L("progresssync",a,b);a.j.Zy=c}}}f.Gx=function(){if(this.o){var a=this.getCurrentTime();if(W(this.C,8)&&Br(this.ya,a,Date.now(),Yq(this.o.buffered,a))){var b=this.hd();b&&1>Math.abs(b-a)?this.jg():t2(this,Cr(this.C,1))}Q2(this)}};
function t2(a,b){var c=a.C;if(b.o!=c.o||b.j!=c.j){c=new n2(b,a.C);a.C=b;0>ux(c,8)&&(M(a.la),x2(a,!1));0<ux(c,32)&&x2(a,!1);a.A&&(0>ux(c,8)&&0<ux(c,4)?a.A.ba=!0:W(b,4)||(a.A.ba=!1));QI(a.j)&&W(c.state,2)&&(w2(a,a.getCurrentTime()),Q2(a,!0));a.B&&e2(a.B,c);var d=a.F;if(d.pe&&!d.fj)if(Jr(d),W(c.state,2)){d.C=null;for(var e=[],g=0;g<d.o.length;g++){var h=d.o[g];h.jo&&2147483647>h.end&&e.push(h)}g=Rq(d.j,2147483646);g=g.concat(Sq(d.j,2147483646));e=Lr(d,e).concat(Kr(d,g));d.hh=!0;Mr(d,e);d.hh=!1;d.Ri&&
d.oc()}else W(c.state,16)?(d.A=Ir(d),d.B.stop(),d.B.start(),d.oc()):(d.B.stop(),W(c.j,16)?(d.A=Ir(d),null!=Tq(d.j,Math.max(d.A-2E3,0))&&(d.jh=xn(y(d.oc,d)))):d.oc());a.L("statechange",c)}}f.Uw=function(){this.j.Sa||this.L("connectionissue")};f.DC=function(){pr(this.o,Math.max(0,this.o.currentTime+.1))};function S2(a){W(a.C,2)||W(a.C,32)||(a.J=NaN)}function x2(a,b){a.j.Ab&&a.oa!=b&&(a.oa=b,a.L("liveviewshift",b))}function L2(a,b){U2(a,b);a.D.Ge?L(y(function(){tr(this.o)},a),0):tr(a.o)}
function U2(a,b){SH("vta",void 0,a.H.j);mr(a.o,b);if(cF(a.j)){var c=cF(a.j);if(c&&!a.G&&a.o){var d=a.j.j.mimeType;if(c=Rv(a.o,d,c)){a.G=new y1(a.o,c);a.G.subscribe("newsession",a.PD,a);a.G.subscribe("licenseerror",a.zA,a);a.G.subscribe("qualitychange",a.AA,a);a.G.subscribe("heartbeatparams",a.OD,a);var e=a.G,g=a.j.C;e.B=g;e.L("oauthtoken",g);R(a,a.G);a.o.canPlayType(d,c.j)}else tx(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}}a.I&&Hy();M(a.la);a.la=L(y(a.GA,a),15E3)}
function r2(a){a.G&&(a.G.dispose(),a.G=null)}f.PD=function(a){var b={};qa(b,this.D.B);b.cpn=this.j.clientPlaybackNonce;this.j.G&&(b.vvt=this.j.G);this.D.rb&&(b.authuser=this.D.rb);this.D.pageId&&(b.pageid=this.D.pageId);bc(a.C,b);uv(a,a.D);this.L("newlicensesession",a)};f.zA=function(a,b,c){tx(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.AA=function(){Pu(this,"r");s2(this)};f.OD=function(a){this.L("heartbeatparams",a)};f.GA=function(){if(this.B)this.B.onError("qoe.start15s");this.L("loadsofttimeout")};
function w2(a,b){a.j.lengthSeconds!=b&&(a.j.lengthSeconds=b,s2(a))}f.Pm=function(){if(!this.na){var a=new B1(this.j),b;"c1a"in a.A?(b=t("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)L(y(this.Pm,this),4500);else{var c;if(a.j&&a.j.ga){b=[a.j.ga];for(c in a.o)if(a.A[c]&&a.o[c]){var d=a.o[c](a.A);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.B&&(a=this.B,a.J||(b=Av(a,"atr"),b.C=c,b.send(),a.J=!0),this.na=!0)}}};
function xv(a){if(!a.o)return 0;if(!a.j.Sa)return a=a.j,a.o&&!isNaN(wH(a.o))?wH(a.o):a.lengthSeconds;if(!a.j.Ab)return a.getCurrentTime();if(a.A){var b=j1(a.A),b=Math.max(b,yv(a.j));return Math.max(b,a.getCurrentTime())}a=a.o;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}f.ND=function(){return this.o?this.o.playbackRate:1};var V2={HI:0,GI:-1,iH:-2};function W2(a){this.j=a}f=W2.prototype;f.wl=function(){return gR(this.j)};f.Bl=function(){return this.j.B};f.Lf=function(){return this.j.B};f.Xg=function(){var a=this.j.A;return null!=a?a:new IQ};f.Vi=function(){var a=this.j;null!=a.j&&HQ(a.j.j,!0)};f.Pj=function(){};f.Pl=function(){return this.j.D};f.Ql=function(){return!1};f.Wi=function(){return this.j.G};f.$=function(){};function tY(a,b){hm.call(this,"adsManagerLoaded");this.A=a;this.B=b}A(tY,hm);function X2(a,b,c,d){a.A.Vc(new W2(b),c,d);return a.A};function Y2(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function Z2(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null,d="";c?b.error_code=c:(c="getMessage"in a&&ha(a.getMessage)?a.getMessage():a.message,d=La(c||"",50),b.error_message=d)}}function $2(a,b){if(a){var c=aV(a);if(c){var d=bV(a)||[];b.ad_id=tb(d,c).join(",");if(c=TU(a))d=dV(a)||[],b.ad_sys=tb(d,c).join(",");sV(a)?b.survey=1:QU(a)&&(b.skip=1)}}}
function a3(a,b){if(a[b])return Y2(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return Y2(a[d]);return!1}function b3(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 c3(a,b,c,d){this.B=a;this.C=b;this.j=c;this.D=d}c3.prototype.A="";c3.prototype.o="";function d3(a){var b={};b.l_ns=a.C;b.l_state=a.D;b.sst=a.B;b.sidx=0;a.A&&(b.at=a.A);a.o&&(b.ad_id=a.o);return b};var e3=!1,f3=!1;function g3(){var a=t("yt.www.watch.ads.loadAfc");a?a():e3=!0}function h3(){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 i3(){var a=t("window.google_show_companion_ad");ha(a)?a():f3=!0}function j3(){e3&&(e3=!1,g3())}function k3(){var a=t("yt.www.watch.ads.setCompanion");a&&a()}function l3(a){var b=t("yt.www.watch.ads.showForcedMpu");b&&b(a)}
Ji("showCompanionAdLoaded",function(){f3&&(i3(),f3=!1)});function m3(a,b){return G(a.experiments.experimentIds,b)}function n3(a,b){return ib(xb(arguments,1),pa(G,a.experiments.experimentIds))};function o3(a,b){U.call(this);this.B=!!b;this.o=a;this.j=new Nt(this);this.A=this.C=null;b&&fd&&a.setAttribute("draggable","true");p3(this)}A(o3,U);function p3(a){a.A=null;a.C=null;a.j.M(a.o,q3("over"),a.pD);a.j.M(a.o,"touchstart",a.sD)}f=o3.prototype;f.pD=function(a){this.j.removeAll();this.j.M(this.o,q3("move"),this.ys);this.j.M(this.o,q3("out"),this.zs);this.B&&this.j.M(this.o,q3("down"),this.xs);this.L("hoverstart",Dh(a),Eh(a),a.target);this.L("hovermove",Dh(a),Eh(a),a.target)};
f.ys=function(a){this.A&&Dh(this.A)==Dh(a)&&Eh(this.A)==Eh(a)&&this.A.relatedTarget==a.target||this.L("hovermove",Dh(a),Eh(a),a.target);this.A=null};f.zs=function(a){a.relatedTarget&&ce(this.o,a.relatedTarget)?(this.A=a,this.L("hovermove",Dh(a),Eh(a),a.relatedTarget)):(this.j.removeAll(),p3(this),this.L("hoverend",Dh(a),Eh(a),a.relatedTarget))};
f.xs=function(a){ga(a.button)&&0!=a.button||(this.j.removeAll(),this.j.M(document,q3("move"),this.jz),this.j.M(document,q3("up"),this.qD),fd?this.j.M(this.o,"dragstart",this.mw):a.preventDefault(),this.L("dragstart",Dh(a),Eh(a),a.target),this.L("dragmove",Dh(a),Eh(a),a.target))};f.mw=function(a){a.preventDefault()};f.jz=function(a){var b=a.target==document?null:a.target;this.L("hovermove",Dh(a),Eh(a),b);this.L("dragmove",Dh(a),Eh(a),b)};
f.qD=function(a){this.j.removeAll();a.target&&ce(this.o,a.target)?(this.j.M(this.o,q3("move"),this.ys),this.j.M(this.o,q3("out"),this.zs),this.j.M(this.o,q3("down"),this.xs),this.L("dragend",Dh(a),Eh(a),a.target)):(p3(this),this.L("dragend",Dh(a),Eh(a),a.target),this.L("hoverend",Dh(a),Eh(a),a.target))};
f.sD=function(a){var b=a.changedTouches[0];b&&(this.j.removeAll(),this.j.M(this.o,"touchmove",this.rD),this.j.M(this.o,"touchend",this.As),this.j.M(this.o,"touchcancel",this.As),this.C=b.identifier,this.L("hoverstart",b.pageX,b.pageY,a.target),this.L("hovermove",b.pageX,b.pageY,a.target),this.B&&(this.L("dragstart",b.pageX,b.pageY,a.target),this.L("dragmove",b.pageX,b.pageY,a.target)))};
f.rD=function(a){var b=r3(this,a);b&&(a.preventDefault(),this.L("hovermove",b.pageX,b.pageY,a.target),this.B&&this.L("dragmove",b.pageX,b.pageY,a.target))};f.As=function(a){var b=r3(this,a);b&&(a.preventDefault(),this.j.removeAll(),p3(this),this.B&&this.L("dragend",b.pageX,b.pageY,a.target),this.L("hoverend",b.pageX,b.pageY,a.target))};function r3(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.C)return d}return null}
function q3(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.P=function(){this.B&&fd&&this.o.removeAttribute("draggable");this.j.removeAll();o3.K.P.call(this)};function s3(a,b){this.o=a;this.j=b}function t3(a){return a.j-a.o}function u3(a,b){return a.o+b*t3(a)}function v3(a,b,c){return t3(a)?Pc((b-a.o)/t3(a),0,1):null!=c?c:Infinity};function w3(a,b,c,d){this.width=b;this.o=c;this.C=d;this.j=b-c-d;this.B=Pc(a-c,0,this.j);this.position=this.B+c;this.A=this.B/this.j};function x3(a,b,c,d,e){var g=b.hq/b.rows,h=Math.min(c/(b.jq/b.Gb),d/g),k=b.jq*h,l=b.hq*h,k=Math.floor(k/b.Gb)*b.Gb,l=Math.floor(l/b.rows)*b.rows,p=k/b.Gb,r=l/b.rows,u=-b.gw*p,w=-b.row*r;e&&45>=g&&(r-=1/h);a=a.style;a.width=p+"px";a.height=r+"px";e||(d=(d-r)/2,c=(c-p)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+u+"px "+w+"px/"+k+"px "+l+"px";if(e)return new H(p,r)};function y3(){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.A=this.template.j["ytp-progress-tooltip-arrow"];this.j=-1;this.ba="";this.o=new s3(0,0);this.$()}A(y3,X);f=y3.prototype;
f.zi=!1;f.uf=null;f.Yh=null;f.disable=function(){this.zi=!0};f.ua=function(){this.zi||y3.K.ua.call(this)};f.reset=function(){qh(this.Q(),"with-thumbnail");this.Yh=this.uf=null;this.template.j["ytp-progress-tooltip-thumbnail"].removeAttribute("style")};f.bG=function(a,b){a<=this.j&&this.j<=b&&z3(this)};function z3(a){var b=vI(a.Yh,a.j,108);x3(a.template.j["ytp-progress-tooltip-thumbnail"],b,108,60)}f.P=function(){this.A=this.Yh=this.uf=null;y3.K.P.call(this)};function A3(a,b){var c=["div","ytp-progress-bar-container",["div",["html5-progress-bar","ytp-force-transform"],{tabindex:6250,role:"slider","aria-label":$f("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-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:$f("YTP_TOOLTIP_CLIP_MARKER")}],["div",["ytp-clip-end","html5-clip-marker","yt-uix-tooltip"],{title:$f("YTP_TOOLTIP_CLIP_MARKER")}]];ts.call(this,c);this.A=a.vb().width;this.G=1;this.B=
this.ab=this.J=0;this.$a=!1;this.N=this.X=0;this.oa=this.template.j["html5-ad-progress-list"];this.hb=this.template.j["ytp-marker-progress-list"];this.Xa=this.template.j["ytp-marker-crenellation-list"];this.H={};this.U={};this.O=Infinity;this.da=this.template.j["ytp-clip-end"];this.va=new o3(this.da,!0);R(this,this.va);this.va.subscribe("hoverstart",this.Zt,this);this.va.subscribe("hoverend",this.Yt,this);ss(this,this.da,"click",this.ao);this.sa=this.template.j["ytp-clip-end-exclude"];this.La=this.template.j["ytp-clip-start-exclude"];
this.T=0;this.ga=this.template.j["ytp-clip-start"];this.wa=new o3(this.ga,!0);R(this,this.wa);this.wa.subscribe("hoverstart",this.Zt,this);this.wa.subscribe("hoverend",this.Yt,this);ss(this,this.ga,"click",this.ao);this.Da=this.template.j["ytp-unloaded-progress"];this.la=this.template.j["ytp-load-progress"];this.R=0;this.Ca=this.template.j["ytp-play-progress"];this.C=0;this.I=this.template.j["html5-progress-bar"];this.o=this.F=null;this.aa=new X(["div","html5-scrubber-button"]);R(this,this.aa);this.aa.ea(this.I);
this.ob=this.template.j["ytp-scrubber-pull-indicator"];this.Ha=0;this.na=!1;this.ya=new Qc;this.j=new s3(0,0);this.fb=!1;this.Z=b;B3(this)}A(A3,ts);f=A3.prototype;f.XF=function(){this.o&&this.o.ua()};
f.ZF=function(a,b,c){var d=Rg(this.Q()),e=C3(this).j,g=c?c.getAttribute("data-tooltip"):void 0;g&&(a=v3(this.j,Number(c.getAttribute("data-position")))*e+Rg(this.I).x);this.ya.x=a-d.x;this.ya.y=b-d.y;c=this.fb?this.j.j:0;d=C3(this);this.o&&(a=this.o,a.zi||(b=50,a.uf?(b=108,g&&(b*=2)):g&&(b=108),a.Q().style.padding="2px",a.Q().style.width=b+"px",e=b/2+2,e=(new w3(d.position,d.width,e,e)).position-e,a.Q().style.left=e+"px",a.A.style.left=Pc(d.position,0,d.width)-e-5+"px",d=u3(a.o,d.A),c=Zs(d-c),a.Ba(c,
"timestamp"),a.uf&&(b=DH(a.uf,b),b=a.uf.j[b].sk(d),0<b&&b!=a.j&&(a.j=b,z3(a))),g?(N(a.Q(),"with-text"),a.Ba(g,"text")):qh(a.Q(),"with-text")))};f.YF=function(){this.o&&this.o.$()};f.WF=function(a,b,c){a=D3(this);this.Ha=a.o-C3(this).A*(a.o+a.C);this.o&&this.o.$();this.B&&(Xf(this.B),this.B=0);this.ab=b;this.na=!0;this.L("beginseeking",parseFloat(c.getAttribute("data-position")))};
f.$F=function(){this.X=0;qh(this.Q(),"ytp-pull-ui");qh(this.Q(),"ytp-pulling");if(0<this.J){var a=z(),b=this.J,c=C3(this).position;this.B&&Xf(this.B);this.B=qs(y(this.bu,this,a,b,c),0)}this.o&&this.o.ua();this.na=!1;this.L("endseeking")};f.bu=function(a,b,c){var d;d=(z()-a)/200;d=1-Math.pow(1-d,3);var e=c+d*(this.C*this.A-c);if(0>d||1<d)d=1;E3(this,(1-d)*b,e,this.C);this.B=1>d?qs(y(this.bu,this,a,b,c),0):0};
function E3(a,b,c,d){b=Pc(b,0,40);a.J=b;var e=a.G,g=Math.max(t3(a.j)/a.A,1);a.G=b/40*(g-1)+1;b=a.A*a.G;a.N=Pc(d*b-c,0,b-a.A);e!=a.G&&B3(a)}
f.aG=function(a,b){var c=!1,d=!1,e=C3(this);3600<=t3(this.j)&&(E3(this,this.ab-b-10,e.position,e.A),d=!0,c=4<this.J,e=C3(this));O(this.Q(),"ytp-pull-ui",d);c&&N(this.Q(),"ytp-pulling");c=0;e.o&&0>=e.position?c=-1:e.C&&e.position>=e.width&&(c=1);!this.B||c&&c==this.X||M(this.B);c&&(this.B=qs(y(this.au,this,z(),this.N),0));this.X=c;this.L("seekto",u3(this.j,e.A),!1)};
f.au=function(a,b){if(this.X){var c=this.A*(this.G-1);this.N=Pc(b+this.X*(z()-a)*.3,0,c);B3(this);this.L("seekto",u3(this.j,C3(this).A),!1);0<this.N&&this.N<c&&(this.B=qs(y(this.au,this,a,b),0))}};
function B3(a){if(a.A){var b=C3(a),c=Yd(a.Xa),d=0;if(8<a.J)for(var e=(-b.o+b.width)/b.j*(t3(a.j)/60),g=Math.ceil(-b.o/b.j*(t3(a.j)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),a.Xa.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/t3(a.j)*b.j+"px"}for(e=c.length-1;e>=d;e--)Wd(c[e]);c=(-b.o+b.width)/b.j;a.Ba(Zs(u3(a.j,-b.o/b.j)),"boundTimeLeft");a.Ba(Zs(u3(a.j,c)),"boundTimeRight");a.I.style.width=
b.j+"px";a.Q().style.height=a.J+(a.Z?20:8)+"px";b=b.o;Fg(a.I,"transform",b?"translatex("+b+"px)":"");a.aa.Q().style.height=a.J+(a.Z?12:6)+"px";for(var k in a.H)F3(a,a.H[k],a.U[k]);G3(a);H3(a,a.C,a.R)}}function I3(a){var b=a.j.j,c=u3(a.j,a.C);a.template.update({ariamin:Math.floor(a.j.o),ariamax:Math.floor(b),arianow:Math.floor(c),arianowtext:$f("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:Zs(c),DURATION:Zs(b)})})}
function C3(a){var b=a.ya.x;if(a.na)var c=a.Z?32:16,b=(b+a.Ha-c/2)/(a.A-c)*a.A;c=a.A*a.G;b=Pc(b,0,a.A);return new w3(b,a.A,-a.N,-(c-a.N-a.A))}function D3(a){var b=a.Z?32:16,c=a.A*a.G;return new w3(a.C*(c-b)+b/2,c,b/2,b/2)}
function H3(a,b,c){if(b<a.T||b>a.O)a.ao();else{a.C=b;a.R=Math.max(a.C,c);I3(a);var d=v3(a.j,a.T),e=v3(a.j,a.O),g=Pc(b,d,e);c=a.$a?1:Pc(c,d,e);var h=g;g<e&&(h=a.A*a.G,h=(g*h-g)/h);a.Ca.style.left=$s(d)+"%";Fg(a.Ca,"transform","scalex("+(h-d)+")");Fg(a.aa.Q(),"transformOrigin",$s(b)+"%");b=D3(a).position+"px";a.aa.Q().style.left=b;a.ob.style.left=b;a.la.style.left=$s(d)+"%";Fg(a.la,"transform","scalex("+(c-d)+")");a.Da.style.left=$s(d)+"%";Fg(a.Da,"transform","scalex("+(e-d)+")")}}
function G3(a){var b=a.T>a.j.o,c=0<a.j.j&&a.O<a.j.j;O(a.Q(),"ytp-clip-start-enabled",b);O(a.Q(),"ytp-clip-end-enabled",c);b=b?v3(a.j,a.T):0;c=c?v3(a.j,a.O):1;a.ga.style.left=$s(b)+"%";a.da.style.left=$s(c)+"%";a.La.style.width=$s(b)+"%";a.sa.style.left=$s(c)+"%";a.sa.style.width=$s(1-c)+"%"}f.Zt=function(){N(this.Q(),"ytp-clip-hover")};f.Yt=function(){qh(this.Q(),"ytp-clip-hover")};f.ao=function(){this.T=0;this.O=Infinity;G3(this);H3(this,this.C,this.R)};
function F3(a,b,c){var d=C3(a).j,e=v3(a.j,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=Oq(b);var g=a/2,d=Pc(e,g,d-g)-g;break;default:a=Math.min(Math.min(v3(a.j,b.end/1E3)*d,d)-e,Oq(b)),d=Pc(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function J3(a,b){for(var c=0;c<b.length;c++){var d=b[c];if(d.visible){var e=a,g=d.getId();if(!e.H[g]){var h=document.createElement("div");d.tooltip&&(h.setAttribute("data-tooltip",d.tooltip),h.setAttribute("data-position",d.start/1E3));e.H[g]=d;e.U[g]=h;F3(e,d,h);"ytp-chapter-marker"==d.style?e.hb.appendChild(h):e.oa.appendChild(h)}}else K3(a,d)}}function K3(a,b){var c=b.getId();a.H[c]==b&&(Wd(a.U[c]),delete a.H[c],delete a.U[c])}
function L3(a,b){b?a.F||(a.F=new o3(a.I,!0),a.F.subscribe("hoverstart",a.XF,a),a.F.subscribe("hovermove",a.ZF,a),a.F.subscribe("hoverend",a.YF,a),a.F.subscribe("dragstart",a.WF,a),a.F.subscribe("dragmove",a.aG,a),a.F.subscribe("dragend",a.$F,a)):a.F&&(a.F.dispose(),a.F=null)}f.P=function(){this.B&&(M(this.B),this.B=0);L3(this,!1);this.la=this.ga=this.La=this.da=this.sa=this.oa=null;this.U={};this.Da=this.I=this.Ca=null;this.Z=!1;A3.K.P.call(this)};function M3(a,b,c,d){U.call(this);this.j=a;this.type=b+"_"+c;this.o=d;this.A=null;this.J=c}A(M3,U);M3.prototype.C=function(){return this.type};M3.prototype.getCurrentAd=function(){return this.o?this.o.getCurrentAd():null};function N3(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=v;this.skipTime=0;this.videoUrl=this.videoId=""};function O3(a){this.j=a}function P3(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 Q3(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 R3(a,b){this.j=a;this.B=b}R3.prototype.C=null;R3.prototype.o=NaN;function S3(a,b,c){a.j.L("AD_LOGGING_EVENT",b,c)}function T3(a){U3(a);var b=V3(a);if(a.A){var c=W3(a.B),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}S3(a,15,b)}function X3(a){U3(a);var b=V3(a);if(isNaN(a.o))U3(a);else{var c=z()-a.o;b.ad_stl=c}S3(a,4,b)}function Y3(a){U3(a);var b=V3(a),c=a.j.sl();c?b.ad_fmt=c:U3(a);S3(a,5,b)}
function Z3(a){var b=V3(a),c=a.j.sl();c?b.ad_fmt=c:U3(a);S3(a,14,b)}function V3(a){var b={},c=a.j.A,d=a.j.Hi(),e=a.j.tl();$2(a.j.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=yj(e),b.ad_dom=c,a.B.ha.D&&(b.ad_v_url=e.substr(0,512)));e=a.j;(e=e.o?e.o.If():null)&&(b.ad_cpn=e);b.at=a.j.C();return b}function U3(a){a.C||(a.C="InstreamAdDisplay ("+a.j.C()+")")};function $3(a,b,c,d,e,g){M3.call(this,b,a,2,c);this.j.subscribe("onVolumeChange",this.Ft,this);this.j.subscribe("control_toggle_play_pause",this.Gt,this);this.j.subscribe("control_play",this.Un,this);this.j.subscribe("control_pause",this.Tn,this);this.I=d;this.D=new R3(this,this.j);this.B=new Nt(this);this.H=this.F=!1;this.G=0;this.O=e;this.N=!!g}A($3,M3);$3.j=2E3;f=$3.prototype;f.$b=null;f.wg=!1;f.Uh=null;f.Th=null;f.Sh=null;
f.rf=function(){this.D.o=z();var a;if(a=this.I){var b=xj(a),b=b.v||b.video_id;if(!b){var c=Ne(Ke(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 Uu({video_id:b,dash:"0"}):null}else a=null;this.A=a;var d;a=new N3;a.isSkippable=this.O;a.skip=y(this.UC,this);a.skipShown=y(this.o.Qm,this.o);b=this.getCurrentAd();c=null;b&&(a.clickThroughUrl=pV(b)||"",a.skipTime=this.j.ha.Ga||lV(b,qV(b))||0,c=eV(b));this.A?(this.A.te=
!0,this.A.Rc=c,d={video_id:this.A.videoId},a.videoId=this.A.videoId,this.A.subscribe("onStatusFail",this.Ct,this),this.A.subscribe("dataloaded",this.nr,this),b=this.j.V(),b=Zb(b.H),b.autoplay="1",b=new T_(b),b.ka="adunit",b.D=this.type,b=W_(b,this.A,this.j.o.A.vb()),OI(this.A,b)):(this.I&&(a.videoUrl=this.I),a4(this));this.F||(b4(this.j,-1,d,a),this.wq())};f.UC=function(){this.j.C.A.Y("skip")};function c4(a){a.A&&(a.A.qa("onStatusFail",a.Ct,a),a.A.qa("dataloaded",a.nr,a))}
f.nr=function(){c4(this);zF(this.A);var a=new D1(this.j.V(),this.j.o.A);GI(this.A)?(a=Nw(this.A.N,Fv(a,this.A)))?(a=a.j())?(a=new J(or(a)),a.j.set("autoplay","1"),this.o.setMediaUrl(a.toString()),a4(this)):d4(this,Error("Failed to determine ad media resource.")):d4(this,Error("Failed to determine ad media format.")):d4(this,Error("No selectable formats."))};
function a4(a){if(Xh||2.2<=Ct&&3>Ct||(Xh||Yh)&&!ai){var b=z()-a.D.o,b=$3.j-b;a.G=L(y(a.Xr,a),Math.max(0,b));N(a.j.Oa(),"ad-interstitial-showing")}else a.Xr()}
f.Xr=function(){e4(this);this.$b=f4(this.j,!0);this.Sh=this.j.Oa();if(this.j.ha.G)Wd(Hd("video-ad-status-bar"));else{var a=this.j.Oa();this.Uh=Hd("video-ad-time-left",a);var a=Hd("html5-ad-progress-list",a),b=Rd("div");N(b,"ytp-ad-progress");a.appendChild(b);this.Th=b;this.B.M(this.$b,"timeupdate",this.qF)}ph(this.Sh,["ad-showing","ad-interrupting"]);this.B.M(Ns(this.j.A),"mouseup",this.oF);this.B.M(this.$b,"waiting",this.wq);this.j.subscribe("onResize",this.Vn,this);try{this.B.M(this.o,"adError",
this.nF);this.B.M(this.o,"click",this.mF);this.B.M(this.o,"complete",this.Bm);this.B.M(this.o,"pause",this.Dt);this.B.M(this.o,"start",this.Et);this.B.M(this.o,"skip",this.pF);this.Vn();var c=this.j,d=c.A,e=g4(c);d.ca.V().C&&(Vg(d.j,e),Lg(d.j,0,0));this.N||this.o.start()}catch(g){d4(this,g)}};f.Et=function(){this.wg=!0;this.F=!1;this.H||(this.H=!0,X3(this.D),h4(this.j,1));bs(this.j,!0);b4(this.j,1);this.L("adPlay",this)};f.Dt=function(){this.wg=!1;bs(this.j,!1);b4(this.j,2)};
f.pF=function(){Z3(this.D);this.Bm()};f.Bm=function(){this.F||(Y3(this.D),this.wg=!1,this.F=!0,this.H=!1,b4(this.j,0),h4(this.j,0),this.L("adEnd",this))};f.nF=function(a){d4(this,a.A)};function d4(a,b){a.wg=!1;a.F=!0;b4(a.j,0);a.L("adError",b)}f.Ct=function(){c4(this);d4(this,Error("Request to get video data failed."))};f.mF=function(){T3(this.D);this.L("select")};f.oF=function(a){a=new Qc(Dh(a),Eh(a));this.D.A=a};
f.qF=function(a){var b=Zs(this.o.getRemainingTime());this.Uh.innerHTML=b;b=this.Hi()?this.$b.getCurrentTime()/this.Hi():0;b=$s(b);this.Th.style.width=b+"%";this.$b.ended&&L(y(this.Bm,this,a),50)};f.wq=function(){!this.wg&&this.H||b4(this.j,3)};
f.P=function(){this.j.qa("control_toggle_play_pause",this.Gt,this);this.j.qa("control_play",this.Un,this);this.j.qa("control_pause",this.Tn,this);this.j.qa("onResize",this.Vn,this);this.j.qa("onVolumeChange",this.Ft,this);this.B.removeAll();c4(this);this.N||this.o.destroy();this.$b&&(Ls(this.j.A),this.$b=null);e4(this);this.Uh&&(this.Uh.innerHTML="",this.Uh=null);this.Th&&(Wd(this.Th),this.Th=null);this.Sh&&(rh(this.Sh,["ad-showing","ad-interrupting"]),this.Sh=null);this.F=!0;$3.K.P.call(this)};
function e4(a){a.G&&(M(a.G),a.G=0,qh(a.j.Oa(),"ad-interstitial-showing"))}f.Hi=function(){return this.$b?this.$b.duration||0:null};f.sl=function(){return null};f.tl=function(){return this.$b&&this.$b.currentSrc?this.$b.currentSrc:null};f.Ft=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Pc(a/100,0,1),this.o.setVolume(a))};f.Gt=function(){this.wg?this.Tn():this.Un()};f.Un=function(){this.$b&&(this.o.resume(),this.Et())};f.Tn=function(){this.$b&&(this.o.pause(),this.Dt())};
f.Vn=function(){Ks(this.j.A)&&Vg(Ks(this.j.A),g4(this.j))};function i4(){this.A=!1;this.o=0;this.j=""};function j4(a,b,c,d,e){M3.call(this,b,a,2,c);this.j.subscribe("control_toggle_play_pause",this.Kt,this);this.j.subscribe("control_play",this.Xn,this);this.j.subscribe("control_pause",this.Wn,this);this.G=new R3(this,this.j);this.B=new Nt(this);this.D=k4(b);this.D.subscribe("statechange",this.rj,this);this.D.subscribe("internalvideodatachange",this.Jt,this);this.F=this.H=!1;this.N=d;this.I=!!e}A(j4,M3);f=j4.prototype;f.yk=!1;f.Xh=null;f.Wh=null;f.Vh=null;
f.rf=function(){var a=this.j,b=k4(a);l4(a.o,b);this.G.o=z();this.Vh=this.j.Oa();this.D.subscribe("progresssync",this.sq,this);this.j.ha.G?Wd(Hd("video-ad-status-bar")):(a=this.j.Oa(),this.Xh=Hd("video-ad-time-left",a),a=Hd("html5-ad-progress-list",a),b=Rd("div"),N(b,"ytp-ad-progress"),a.appendChild(b),this.Wh=b);ph(this.Vh,["ad-showing","ad-interrupting"]);this.j.subscribe("onResize",this.Yn,this);try{this.B.M(this.o,"adError",this.sF),this.B.M(this.o,"click",this.rF),this.B.M(this.o,"complete",this.Wz),
this.B.M(this.o,"engagedview",this.oA),this.B.M(this.o,"pause",this.Ht),this.B.M(this.o,"start",this.It),this.B.M(this.o,"skip",this.tF),this.B.M(this.o,"youTubeChannelMetadata",this.NA),this.Yn(),this.I||this.o.start()}catch(c){m4(this,c)}};
f.Jt=function(a,b,c){if("newdata"==a&&this.A!=c){a={video_id:c.videoId};b=new N3;b.isSkippable=this.N;b.skip=y(this.o.skip,this.o);b.skipShown=y(this.o.Qm,this.o);var d=this.getCurrentAd();d&&(b.clickThroughUrl=pV(d)||"",b.skipTime=this.j.ha.Ga||lV(d,c.lengthSeconds)||0);b.videoId=c.videoId;b.videoId||(b.videoUrl=this.tl()||"");b4(this.j,-1,a,b)}this.A=c};f.rj=function(a){a=a.state;W(a,128)&&m4(this,Error(a.j.message||"Video player error."))};
f.It=function(){this.yk=!0;this.F=!1;if(!this.H){this.H=!0;X3(this.G);h4(this.j,1);var a=this.j.V();this.j.ha.G&&"3"==a.o&&(a=this.j.o.A,"3"==a.j.V().o&&(a.o.controls=!1))}b4(this.j,1);this.L("adPlay",this)};f.Ht=function(){this.yk&&(this.yk=!1,b4(this.j,2))};f.Wz=function(){this.F||(Y3(this.G),n4(this),this.F=this.H=!1)};
function n4(a){var b=new i4;b.A=a.F;b.o=z();a.A&&a.A.clientPlaybackNonce&&(b.j=a.A.clientPlaybackNonce);E2(k4(a.j));b4(a.j,0,b);h4(a.j,0);a.L("adEnd",a);b=a.j.V();a.j.ha.G&&"3"==b.o&&(a=a.j.o.A,"3"==a.j.V().o&&(a.o.controls=!0))}f.oA=function(){var a=this.G;a.j.L("AD_LOGGING_EVENT",777,V3(a))};f.tF=function(){this.F=!0;Z3(this.G);n4(this)};
f.NA=function(){var a=this.getCurrentAd();if(a){var b=a.O;if((a=a.J)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.j;c.channelTitle=a.o;c.channelVideoCount=a.videoCount;this.j.L("publish_external_event","onAdMetadataAvailable",c)}}};f.sF=function(a){var b={};try{b.error_code=a.A.getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}var d=this.G;U3(d);var e=V3(d);b&&qa(e,b);e.ad_error=32;S3(d,7,e);m4(this,a.A)};function m4(a,b){a.D.jg();b4(a.j,0);a.L("adError",b)}
f.rF=function(){T3(this.G);this.o.pause();this.L("select")};f.sq=function(){var a=this.j.j.Lh();if(!this.j.ha.G){var b=Zs(a.duration-a.current);this.Xh.innerHTML=b;a=$s(a.current/a.duration);this.Wh.style.width=a+"%"}};
f.P=function(){this.j.qa("control_toggle_play_pause",this.Kt,this);this.j.qa("control_play",this.Xn,this);this.j.qa("control_pause",this.Wn,this);this.j.qa("onResize",this.Yn,this);this.B.removeAll();this.D.subscribe("statechange",this.rj,this);this.D.qa("internalvideodatachange",this.Jt,this);this.D.qa("progresssync",this.sq,this);this.I||this.o.destroy();this.Xh&&(this.Xh.innerHTML="",this.Xh=null);this.Wh&&(Wd(this.Wh),this.Wh=null);this.Vh&&(rh(this.Vh,["ad-showing","ad-interrupting"]),this.Vh=
null);this.F=!1;var a=this.j;if(a.B){var b=a.o,a=a.B;o4(b);a!=b.o&&l4(b,b.o)}j4.K.P.call(this)};f.Hi=function(){return this.D.hd()};f.sl=function(){return this.A&&this.A.j?this.A.j.mimeType:null};f.tl=function(){return this.A&&this.A.R?or(this.A.R.j()):null};f.Kt=function(){this.yk?this.Wn():this.Xn()};f.Xn=function(){this.o.resume();this.It()};f.Wn=function(){this.o.pause();this.Ht()};f.Yn=function(){Vg(Ks(this.j.A),g4(this.j))};function p4(a,b){this.A=a;this.o=b}function q4(a,b,c){a.A.L("AD_LOGGING_EVENT",b,c)}function r4(a){var b={};$2(a.A.getCurrentAd(),b);a.C&&a.j&&(b.ot=a.j-a.C);var c;c=a.o.gh()?2:a.o.V().F?1:0;b.ad_ps=c;b.at=a.A.C();return b};function s4(a,b,c,d){M3.call(this,b,a,1,c);this.D=new p4(this,b);this.B=new Nt(this);this.F=!!d}A(s4,M3);f=s4.prototype;f.Gd=null;f.lm=!1;
f.rf=function(){if(!this.lm||!t4(this.j)){var a=this.j.Oa();N(a,"ad-showing");this.Gd=Ks(this.j.A);a=this.o.getCurrentAd().getHeight();this.Gd.style.height=Mg(a,!0);N(this.Gd,"ad-overlay");this.B.M(this.Gd,"mouseup",this.wF);try{this.B.M(this.o,"userClose",this.OB);this.B.M(this.o,"click",this.vF);this.B.M(this.o,"adError",this.uF);u4(this,"normal");this.F||this.o.start();var b=this.D;b.C=z();var c=r4(b);q4(b,3,c);this.j.subscribe("onResize",this.zk,this);this.j.subscribe("onStateChange",this.Lt,
this);this.L("adEnd",this)}catch(d){this.L("adError",d)}}};f.P=function(){this.B.removeAll();this.j.qa("onResize",this.zk,this);this.j.qa("onStateChange",this.Lt,this);var a=this.j.Oa();qh(a,"ad-showing");this.o&&(this.F||this.o.destroy(),this.o=null);this.Gd&&qh(this.Gd,"ad-overlay");this.Gd=null;this.lm=!1;s4.K.P.call(this)};f.OB=function(){this.Gd&&this.o&&this.o.getCurrentAd()&&(this.Gd.style.height=Mg(0,!0));this.lm=!0;var a=this.D;a.j=z();var b=r4(a);q4(a,6,b)};
f.vF=function(){this.j.pauseVideo();var a=this.D;a.j=z();var b=r4(a);if(a.B){var c=W3(a.o),d=a.B.y-c.top,d=Math.round(a.B.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}q4(a,100,b)};f.wF=function(a){this.D.B=a.target==a.currentTarget?null:new Qc(a.pageX,a.pageY)};f.uF=function(a){this.L("adError",a.A)};f.Lt=function(a){W(a.state,16)&&u4(this,"normal")};function u4(a,b){a.G!=b&&(a.G=b)}f.zk=function(){};function v4(a,b,c,d){Q.call(this);this.O=a;this.o=b.j;this.G=b;this.H=b.getId();this.j=c;this.A=d;this.C=new c3(this.o,this.sf(),c,d);this.D=null;this.N=new Bn(this);this.B=new Bn(this)}A(v4,Q);v4.j="rm";v4.o=10;v4.D=200;v4.B=200;v4.C=190;v4.A=100;f=v4.prototype;f.Sn=null;
f.load=function(){var a;a=this.j;a=a.ha.D?g4(a):a.o.A.vb();var b;this.j.ha.j?b=!1:(b=0<(this.A&3)?v4.C:v4.B,b=a.width<v4.D||a.height<b);if(b){b=this.C;var c=d3(b);c.ck_wh=a.width+"x"+a.height;w4(b.j,14,c);k3();this.We(Error("The player size is too small."))}else if(this.D=this.j.vg){a=this.C;x4(a.j,9,d3(a));a=new uW;(b=this.j.ha.serverPrefetchedVast)&&0<(this.A&3)?(a.j=b,this.j.ha.serverPrefetchedVast=void 0):a.adTagUrl=this.Hf();a.A=this.j.ha.Ga;b=g4(this.j);a.Xe=b.width;a.be=b.height;a.Xb=b.width;
a.hc=v4.A;a.No=X_(this.j.V());a.C=this.j.V().experiments.experimentIds;if(b=a.No?b0(this.j.V()):-1)a.D=b;this.j.ha.tagForChildDirected&&(a.Wg=!0);m3(this.j.V(),"937420")&&(a.Ch=!0);b=Wu(this.j.o);a.uc={CONTENT_V:b.videoId,CPN:b.clientPlaybackNonce,LACT:y4(this)};X_(this.j.V())||(a.uc.LACT="-1");this.D.M("adsManagerLoaded",this.zt,!1,this);this.D.M("adError",this.xt,!1,this);this.Gj(this.D,a)}};
f.vl=function(){var a=new yL,b=this.j.ha,c=this.j.V();a.baseYouTubeUrl=c.A;a.contentId=Wu(this.j.o).videoId;a.Ol=!0;a.showContentThumbnail=b.showContentThumbnail;a.surveyCreativeData=b.surveyCreativeData;a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=b.G;a.youTubeAdNamespace=this.sf();b.W&&(a.mo=!0,a.kw=!0,a.showContentThumbnail=!1,a.nn=!0,a.os=!0,a.useShareButton=!1);return a};f.sf=function(){return this.O};function z4(a){var b=v4.o;a.o=b;a.C.B=b}
function A4(a,b){a.Sn=b;a.C.A=b.C()}function B4(a,b){var c=t("yt.www.watch.ads.setAdId");c&&c(b);a.C.o=b}function C4(a){a=a.o;return 0==a||-1==a?a:1E3*a}function y4(a){var b=a.j;return{toString:function(){return null==b||b.ma()?b=null:b0(b.V()).toString()}}}
f.zt=function(a){if(a.B===this){SH("aml");try{var b=this.vl(),c=a.A}catch(d){this.fe(d);return}this.B.M(c,"companionBackfill",y(this.lF,this,c));this.B.M(c,"loaded",y(this.kF,this,c));this.B.M(c,"adError",y(this.jF,this,c));this.B.M(c,"allAdsCompleted",v);this.B.M(c,"contentPauseRequested",v);this.B.M(c,"contentResumeRequested",v);c=X2(a,this.j.C,{},b);try{c.init("normal")}catch(e){c.destroy(),this.fe(e)}}};
f.kF=function(a,b){this.B.removeAll();var c=b.getAd(),d=NU(c),e=this.C,g=d3(e);g.ad_man=d?"instream":"overlay";x4(e.j,12,g);e=a.getMediaUrl();switch(d?this.Tg(a,c,e):this.ae(a,c)){case 0:D4(this.G,this.Sn,this.o);break;case 1:a.destroy();this.We(Error("Unable to create a display state."));break;case 2:c=this.C;w4(c.j,21,d3(c));a.destroy();this.We(Error("Fallback to next ad."));break;default:a.destroy()}};f.jF=function(a,b){this.B.removeAll();a.destroy();this.fe(b.A)};
f.xt=function(a){var b=a.A;"adLoadError"==b.B&&a.B===this&&this.fe(b)};f.lF=function(){i3()};f.Tg=function(a,b,c){B4(this,aV(b));var d;this.j.ha.U?d=new j4(this.sf(),this.j,a,QU(b)):d=new $3(this.sf(),this.j,a,c,QU(b));A4(this,d);return 0};f.ae=function(a,b){B4(this,aV(b));A4(this,new s4(this.sf(),this.j,a));return 0};f.fe=function(a){if(a){var b=this.C,c=d3(b);a&&Z2(a,c);w4(b.j,32,c);this.We(a)}};f.We=function(){E4(this.G)};
f.P=function(){this.D&&(this.D.Ka("adsManagerLoaded",this.zt,!1,this),this.D.Ka("adError",this.xt,!1,this));this.N.removeAll();this.B.removeAll();v4.K.P.call(this)};f.Gj=function(a,b){try{G_(a,b,this),SH("ar")}catch(c){this.fe(c)}};function F4(a){this.j=a};function G4(a){M3.call(this,a,2,3,null);this.B=this.D=0}A(G4,M3);G4.prototype.rf=function(){g3();this.L("adEnd",this);this.D=Wf(y(this.F,this),1E3)};G4.prototype.P=function(){H4(this);G4.K.P.call(this)};function H4(a){a.D&&(Xf(a.D),a.B=0)}G4.prototype.F=function(){var a=t("yt.www.watch.ads.isAfcAdVisible");this.B++;var b={};b.at=this.C();10<=this.B||!a?(H4(this),this.L("AD_LOGGING_EVENT",2,b)):a()&&(H4(this),this.L("AD_LOGGING_EVENT",3,b))};function I4(a,b,c){v4.call(this,2,a,b,c);this.F=new F4(this.j.ha);h3()}A(I4,v4);I4.prototype.vl=function(){var a=I4.K.vl.call(this);a.lo=0==this.H;a.Qv=t4(this.j)?a.lo:!0;return a};I4.prototype.Hf=function(){var a;a=this.F;var b=C4(this),c=4==this.A&&a.j.afvInvideoAdTag?a.j.afvInvideoAdTag:a.j.afvAdTag;if(c){ta(c,"http:")&&(c=c.substr(5));var d={videoad_start_delay:b};a.j.I&&0<b&&(d.ad_type=a.j.tj?"standardvideo":"video");a=Aj(c,d)}else a="";return a};
I4.prototype.ae=function(a,b){if(this.j.ha.j)return 1;0==this.o&&(z4(this),x4(this.j,1));return I4.K.ae.call(this,a,b)};I4.prototype.We=function(a){var b=this.j.ha;b.j?I4.K.We.call(this,a):b.la||this.A&4?(A4(this,new G4(this.j)),D4(this.G,this.Sn,this.o)):I4.K.We.call(this,a)};function J4(a,b,c){if(a){this.At=a;this.kp=b.$a;this.j=c;c=this.At;var d=c.indexOf(";sz=");a=tj(c.substring(d),";");c=c.substring(0,d).split("pfadx");if(a=2!=c.length?null:{Wv:c[0],wC:c[1],yC:a})this.uo=a.Wv,this.wr=a.wC,this.Bt=a.yC,this.Qp=b.I,this.rr=b.tj}}f=J4.prototype;f.At="";f.uo="";f.Qp=!1;f.rr=!1;f.kp=!1;f.Fm="";f.wr="";f.Bt=null;
f.Ii=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.j,d.push("480x360"));b&2&&!(this.Qp&&0<a&&this.rr)&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.j,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=h;h=$b(this.Bt);c&&(h.pos=c);k&&null==h.tile&&(h.tile=k.toString());g&&null==h.kmyd&&(h.kmyd=g);e&&0<e.length&&this.kp&&null==h.ciu_szs&&(h.ciu_szs=e.join(","));
h.dcmt="text/xml";null==h.ord&&(this.Fm||(this.Fm=Math.floor(999999999*Math.random()).toString()),h.ord=this.Fm);d&&d.length&&null!=h.sz&&"WIDTHxHEIGHT"==h.sz&&Xb(h,"sz");e=uj(h,";");d&&d.length&&null==h.sz&&(e="sz="+d.join(",")+";"+e);return[this.uo,"pfadx",this.wr,";",e,"?"].join("")};function K4(a){this.j=a?a:""}K4.prototype.Ii=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 J(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 L4(a,b,c){s4.call(this,1,a,b,c)}A(L4,s4);L4.prototype.zk=function(){};L4.prototype.C=function(){return"1_3"};function M4(a,b,c){v4.call(this,1,a,b,c);a=this.j.ha;this.T=a.Uf?new K4(a.adTag):new J4(a.adTag,a,this.H)}A(M4,v4);M4.prototype.Hf=function(){return this.T.Ii(this.o,this.A)};
M4.prototype.ae=function(a,b){B4(this,aV(b));var c=PU(b);if(a3(c,v4.j))return 1==this.A||t4(this.j)||k3(),a.sendImpressionUrls(),this.j.ha.Qi?(A4(this,new G4(this.j)),0):2;if(a3(c,"blockAllAds"))return a.sendImpressionUrls(),A4(this,new L4(this.j,a)),0;if(a3(c,"hideMaster"))return A4(this,new L4(this.j,a)),0;if(this.j.ha.j)return 1;A4(this,new s4(this.sf(),this.j,a));return 0};function N4(a,b,c,d){M4.call(this,a,b,c|d);this.J=c;this.I=d;this.F=null;h3()}A(N4,M4);var O4={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=N4.prototype;f.Hf=function(){if(this.j.ha.Uf){var a=new K4(this.j.ha.dynamicAllocationAdTag);return a.Ii(this.o,this.J)}a=new J4(this.j.ha.dynamicAllocationAdTag,this.j.ha,this.H);return a.Ii(this.o,this.J)};f.Gj=function(a,b){if(this.I){b.o=b3(this.I);var c=this.j.ha.ba;c&&(b.B=c);b.Fh=C4(this)}N4.K.Gj.call(this,a,b)};
f.Tg=function(a,b,c){P4(this,a);return 1!=this.F&&2!=this.F?1:N4.K.Tg.call(this,a,b,c)};f.ae=function(a,b){P4(this,a);switch(this.F){case 1:return N4.K.ae.call(this,a,b);case 2:var c;this.j.ha.j?c=1:(0==this.o&&(z4(this),x4(this.j,1)),B4(this,aV(b)),A4(this,new s4(2,this.j,a)),c=0);return c;default:return 1}};f.sf=function(){return this.F||0};function P4(a,b){var c=b.getCurrentAd(),d=dV(c);d.unshift(TU(c));for(c=0;c<d.length;++c){var e=O4[d[c].toUpperCase()];if(e){a.F=e;return}}a.F=0};function Q4(a,b){var c=b.ha;this.F=c.Xa;var d=0,c=c.ga.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);v4.call(this,2,a,b,d)}A(Q4,v4);Q4.o="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";Q4.A="43";
Q4.j=function(a){var b=new Qw;Ij(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,df:function(){Rw(b,Error(a+" timed out"))},onError:function(c){Rw(b,Error("Problem loading "+a+" with status code "+c.status))},qb:function(a){Vw(b);Tw(b,!0,a)}});return b};Q4.prototype.Hf=function(){return""};
Q4.prototype.Gj=function(a,b){var c=this.A;c&1||c&4||c&8?this.F?c&8?l3(this.F):("goo.gl"==yj(this.F)?(c=Q4.j(Q4.o+this.F),Xw(c,function(a){a=ng(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new J(a.longUrl);K(a,"video_format",Q4.A);return Q4.j(a.toString())},this)):c=Q4.j(this.F),Xw(c,function(c){b.j=c.responseText;G_(a,b,this)},this),Yw(c,null,this.fe,this)):this.fe(Error("Invalid empty URL")):this.fe(Error("Invalid request type: "+
c))};function R4(a,b,c,d){this.j=a;this.B=c;this.A=d;this.C=b;Xh||Yh?this.o="html5_ios":Zh?this.o="html5_android":er()?this.o="html5_ps3":"leanback"==this.B.ka?(a=(Sb(window,"environment","brand")||"").toLowerCase(),this.o="roku"==a||"bskyb"==a?"roku":"html5_tv_leanback"):this.o=this.j.oa?"html5":"embedded"==this.B.ka?"html5_desktop_embed":"html5_desktop"};function S4(a,b){s4.call(this,4,a,b)}A(S4,s4);S4.prototype.zk=function(){};S4.prototype.C=function(){return"4_3"};function T4(a,b,c){v4.call(this,4,a,b,c);this.F=new R4(this.j.ha,Wu(this.j.o).lengthSeconds,this.j.V(),c)}A(T4,v4);
T4.prototype.Hf=function(){var a;var b=this.F;if(b.j.Z&&b.j.wa){a={};var c="youtube_watch_"+b.o;a.nw="10613";a.asnw=b.j.Z;a.ssnw=b.j.Z;a.caid=b.j.wa;a.vdur=b.C;a.csid=c;a.resp="vast2";c={};isNaN(b.j.ya)||(c._fw_d_001=b.j.ya);b.j.gender&&(c._fw_d_002=b.j.gender);b.j.va&&(c["_fwu:10613:lang"]=b.j.va);b.j.da&&(c._fw_dbp=b.j.da);b.j.Ca&&(c._fw_distributorvideoassetid=b.j.Ca);c._fw_yt_type=b.j.B?"short":"long";if(b.j.oa){var d="10613:10613_youtube_"+b.o.split("_")[0];a.prof="10613:10613_youtube_"+b.o;
a.crtp="vast2s";a.flag="+emcr";var e={ptgt:"a",slid:"preroll"},g="";b.j.F&&!b.j.A?g=";linear-skippable":!b.j.F&&b.j.A&&(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?"+uj(a,"&")+";"+uj(c,"&")+";"+uj(e,"&")}else a.prof="10613:10613_youtube_html5_2014",a.crtp="youtube",a.flag="+slcb+qtcb+amcb+exvt+emcr",d="",b.A&1&&(e={slid:"preroll",ptgt:"a",slau:"preroll",tpos:"0"},d=uj(e,"&")+";",e={slid:"page_display1",w:"300",
h:"60",ptgt:"s",slau:"display",flag:"+cmpn"},d+=uj(e,"&")+";"),b.A&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay",tpos:"10"},d+=uj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=uj(e,"&")+";"),b.A&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=uj(e,"&")+";"),b=d.substr(0,d.length-1),a="//2975c.v.fwmrm.net/ad/g/1?"+uj(a,"&")+";"+uj(c,"&")+";"+b}else a="";return a};
T4.prototype.Tg=function(a,b){return 0!=this.o?1:T4.K.Tg.call(this,a,b,null)};T4.prototype.ae=function(a,b){var c=PU(b);if(a3(c,v4.j))return this.G.B=Zb(a),2;if(this.j.ha.j)return 1;if(a3(c,"hideMaster")){if(a.D&&a.D.Pe()){var c=a.D.Pe(),d;d=a.getCurrentAd();if(hL()){var e=d.F;d.F=[];d=e}else d=[];c.impressionUrls=d}A4(this,new S4(this.j,a));return 0}return T4.K.ae.call(this,a,b)};function U4(a,b,c){v4.call(this,13,a,b,c)}A(U4,v4);var V4=[{Nm:4,size:"480x70",Eo:"300x250"},{Nm:1,size:"480x360",Eo:"300x60"}];
U4.prototype.Hf=function(){var a=new J(this.j.ha.fb,!0),b=this.A,c=V4.filter(function(a){return(b&a.Nm)==a.Nm}),d=c.map(function(a){return a.size}).join("|");K(a,"sz",d);c=c.map(function(a){return a.Eo}).join(",");K(a,"ciu_szs",c);c=4==(this.A&4);1==(this.A&1)?(c||K(a,"vad_type","linear"),c="midroll",0==this.o?c="preroll":-1==this.o&&(c="postroll"),K(a,"vpos",c)):c&&K(a,"vad_type","nonlinear");return a.toString()};function W4(a,b,c){this.A=a;this.j=b;this.o=c||0}function X4(a,b,c){switch(a.A){case 1:return new I4(b,c,a.j);case 2:return new M4(b,c,a.j);case 3:return new N4(b,c,a.j,a.o);case 5:return new T4(b,c,a.j);case 4:return new Q4(b,c);case 6:return new U4(b,c,a.j);default:return null}}function Y4(a){return 0<((a.j|a.o)&3)};function Z4(a,b,c,d,e){U.call(this);this.Ea=b;this.A=a;this.j=c;this.C=d;this.B=this.o=null;this.D=!!e;this.F=NaN}A(Z4,U);f=Z4.prototype;f.pn=!0;f.Bb=!1;f.isVisible=!0;f.Ec="unloaded";f.sn=!1;function $4(a){return 0==a.j?a5(a)&&b5(a)?-2147483648:0:-1==a.j||-2==a.j?2147483647:1E3*a.j}function c5(a){return 0==a.j||a.A.j&&1E3*a.A.j.getCurrentTime()>=$4(a)||-2==a.j?!1:jb(a.C,function(a){switch(a.A){case 1:case 2:case 3:case 6:return!0;default:return!1}})}
function a5(a){return"loaded"==a.Ec||"error"==a.Ec}function b5(a){if(!a5(a))throw Error("Preroll status is undefined before ad load.");return 0==a.j&&a.Bb}function E4(a){a.Ec="loading";0==a.j&&!ib(a.C,Y4)&&Rr(a.A);if(a.D)a.Ec="loaded",a.Bb=!0,d5(a);else{var b=a.C.shift();if(b){0==a.j&&e5(a.A,"nl");b=X4(b,a,a.A);R(a,b);var c=t("ytplayer.playback_delay");null!=c?a.F=L(y(b.load,b),c):b.load()}else x4(a.A,2,f5(a,{})),g5(a,!1),a.Ec="error",d5(a)}}f.getId=function(){return this.Ea};
function h5(a){a.o&&(a.o.qa("adEnd",a.rq,a),a.o.qa("adError",a.wt,a),a.o.qa("AD_LOGGING_EVENT",a.Jq,a),a.o.qa("select",a.vt,a))}function D4(a,b,c){a.o=b;a.j=c;R(a,a.o);0==a.Ea&&(a.A.F.at=a.o.C());a.o instanceof $3||a.o instanceof j4?a.Bb=!0:a.o instanceof G4?a.isVisible=!1:a.o instanceof S4?a.isVisible=!1:a.o instanceof L4&&(a.isVisible=!1);a.Ec="loaded";d5(a)}function d5(a){a.L("adBreakComplete",a)}
function i5(a){a.sn?a.o instanceof s4&&u4(a.o,"normal"):(a.sn=!0,(a.o instanceof $3||a.o instanceof j4)&&e5(a.A,"bs"),a.o.subscribe("adEnd",a.rq,a),a.o.subscribe("adError",a.wt,a),a.o.subscribe("AD_LOGGING_EVENT",a.Jq,a),a.o.subscribe("select",a.vt,a),a.o.rf(),g5(a,!0))}function g5(a,b){a.B&&(a.B.sendImpressionUrls({FILLED_OPPORTUNITY:b?1:0}),a.B.dispose(),a.B=null)}f.rq=function(){this.Bb&&(h5(this),j5(this.A));d5(this)};
f.wt=function(a){if(a){var b={};Z2(a,b);f5(this,b);w4(this.A,32,b)}h5(this);d5(this)};f.Jq=function(a,b){f5(this,b);x4(this.A,a,b)};f.vt=function(){this.pn=!1};function f5(a,b){b.sst=a.j;b.sidx=0;return b}f.P=function(){h5(this);this.o=null;null!=this.B&&(this.B.dispose(),this.B=null);M(this.F);Z4.K.P.call(this)};function k5(a){this.Vv=a}function l5(a){try{var b=oD(a).getElementsByTagName("AdBreak"),c=E(b,function(a){a=a.getAttribute("time");return Wa(a)});return new k5(c)}catch(d){return m5(!1)}}function m5(a){return a?new k5([]):new k5([0])};function n5(a){var b=0;if(a.O||a.N)a.O&&(b|=1),a.N&&(b|=2);var c=0;a.B&&(a.J&&(a.afvMergeEnabled&&b?b|=4:c=4),b||(b=c,c=0));a=new xe;a.set(3,b);a.set(4,c);return a}
function o5(a){var b=[];if(a.aa)return b.push(new W4(4,0)),b;if(a.R){var c=0;if(a.A||a.F)c|=1;a.H&&(c|=4);a.X&&(c|=8);b.push(new W4(5,c))}a.bj&&(c=0,a.A&&(c|=1),a.H&&a.B&&(c|=4),b.push(new W4(6,c)));c=0;a.T&&(a.A&&(c|=1),a.F&&(c|=2),a.H&&a.B&&(c|=4),a.X&&a.B&&(c|=8));var d=n5(a);a.nb&&c&&d.get(3)?b.push(new W4(3,c,d.get(3))):(c&&b.push(new W4(2,c)),d.get(3)&&b.push(new W4(1,d.get(3))));d.get(4)&&b.push(new W4(1,d.get(4)));return b};function p5(a){this.j=a}function q5(a){var b=[];try{var c=a.j.ha,d;if(c.oo){var e;if(c.Da)e=l5(c.Da);else{var g;if(c.gb){var h=E(c.gb.split(","),Wa);g=new k5(h)}else g=m5(c.I);e=g}d=e}else d=m5(!1);for(var k=d.Vv,c=0;c<k.length;c++){var l=new Z4(a.j,c,k[c],o5(a.j.ha));b.push(l)}}catch(p){}finally{return b}};function r5(a,b){this.C=a;this.W=this.C.isMobile;this.D="leanback"==this.C.ka;this.j=this.W||this.D;this.na="embedded"==this.C.ka;this.G=!this.D&&!(Xh&&!a.N);this.U=a.C&&(!this.j||this.D)||this.W&&!(Xh&&!a.N);this.apply(b);if(this.F&&!this.U)throw"Skippable instreams were enabled without FullPlayerApiSupport";}var s5={jv:"m",Su:"f"};f=r5.prototype;
f.apply=function(a){var b=Y2(a.instream);this.I=1==a.livestream;this.tj=n3(this.C,"961403","961404")&&!n3(this.C,"961401","961406");var c=Y2(a.trueview),d=Y2(a.aftv);this.gb=a.ad_slots;this.adFlags=a.ad_flags||0;this.ba=a.cafe_experiment_id;this.adTag=a.ad_tag;this.ob=!!a.adtest;this.afvAdTag=a.afv_ad_tag;this.Ha=t5(this.afvAdTag);this.afvInvideoAdTag=a.afv_invideo_ad_tag;this.afvMergeEnabled=!!a.afv_merge_enabled;this.ya=parseInt(a.ad_age,10);this.applyFadeOnMidrolls=!!a.apply_fade_on_midrolls;this.La=
a.cid;this.Ca=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.Ga=parseInt(a.forced_skip_offset,10);this.ga=a.force_ad_type;
this.Xa=a.force_ad_url;this.gender=Ub(s5,function(b){return b==a.ad_gender});this.da=a.dbp;this.Qi=Y2(a.afc_rm_fallback);this.$a=!!a.mpu;this.J=Y2(a.afv)&&!this.j;this.N=d&&c;this.O=d&&b&&!Y2(a.no_afv_instream);this.T=Y2(a.dclk);this.Uf=Y2(a.gpt_migration);this.aa=Y2(a.forced_ad)&&!this.j;this.R=1==parseInt(a.tpas_ad_type_id,10);this.Qb=!!a.fqsf;this.A=b;this.H=Y2(a.invideo)&&!this.j;this.X=Y2(a.mpu)&&!this.j;this.oa=G(this.Ha,"yt_mabv");this.sa=Y2(a.shortform);this.B=Y2(a.sffb);this.bj=Y2(a.xfp);
this.fb=a.xfp_tag;this.Lp=n3(this.C,"961401","961406");this.oo=!this.R;this.F=c;this.va=a.ad_language_iso639_2;b=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(b)&&(b=2E3);this.maxDynamicAllocationAdTagLength=b;this.o=parseInt(a.midroll_freqcap,10);isNaN(this.o)&&(this.o=-1);this.midrollPrefetchSize=parseInt(a.midroll_prefetch_size,10)||0;"boolean"==typeof a.show_content_thumbnail&&(this.showContentThumbnail=a.show_content_thumbnail);this.tagForChildDirected=Y2(a.tag_for_child_directed);
this.serverPrefetchedVast=a.server_prefetched_vast;this.surveyCreativeData=a.surveyCreativeData;this.la=d&&this.B&&!this.J;this.ab=this.J||this.la;this.hb=parseInt(a.ad_device,10);this.wa=a.tpas_video_id;this.Z=a.tpas_partner_id;this.vmap=a.vmap;this.nb=u5(this);this.Pb=this.C.Pb};
function u5(a){if(B(C(a.dynamicAllocationAdTag)))return!1;if(m3(a.C,"942306")&&null!=a.C.ka&&!a.na)return!0;var b=(a.A||a.F)&&a.T;a.B&&a.T&&(b=b||a.H||a.X);if(!b)return!1;b=a.N||a.O;if(!(b||a.B&&a.J))return!1;if(a.serverPrefetchedVast)return!a.Uf;var c=a.dynamicAllocationAdTag.length+330+(a.Uf?25:102);window.document.referrer&&(c+=wa("ref="+wa(window.document.referrer)).length);b||(c+=41);return c<=a.maxDynamicAllocationAdTagLength}
function t5(a){if(B(C(a)))return[];a=uf(new J(a),"channel");return null!=a?a.split("+"):[]}f.applyFadeOnMidrolls=!1;f.oo=!0;f.Lp=!1;f.tj=!1;f.Qi=!1;f.Uf=!1;f.bj=!1;f.showContentThumbnail=!0;function v5(a){Q.call(this);this.j=a;this.o=0;this.C={};a=a.ha;this.D=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.A=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.bs()}A(v5,Q);f=v5.prototype;f.bs=function(){this.j.subscribe("beginseeking",this.ri,this)};f.Vr=function(a,b){return a.Bb&&0<a.j?b+this.B+this.A:b};f.Ur=function(a,b){return a.Bb&&-1!=a.j&&2147483646!=b&&2147483647!=b?b+this.B+this.A:b};
f.ko=function(a){if(a.Bb&&0<a.j&&!(0>=this.A)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=$4(a)+this.B,b=new Mq(c,c+this.A-1,b);this.C[a.getId()]=b;Or(this.j,[b])}};function w5(a,b){a.C[b]&&(Pr(a.j,[a.C[b]]),delete a.C[b])}f.Zq=function(a){a.Bb&&0<a.j&&(w5(this,a.getId()),this.ri())};f.ri=function(){this.o&&(M(this.o),this.o=0);var a=f4(this.j,!1);a.volume=Cu(this.j.o)/100;Fg(a,"transition","");Fg(a,"opacity","1")};
f.Kr=function(a){var b=$4(a)+this.B+this.A,b=50>=1E3*this.j.j.getCurrentTime()-b;a.Bb&&0<a.j&&b&&(a=.001*($4(a)+this.F),this.j.L("command_seek",a),0>=this.D||(a=f4(this.j,!1),Fg(a,"opacity","0"),a.volume=0,L(y(this.sw,this),0)))};f.sw=function(){var a=f4(this.j,!1);Fg(a,"transition","opacity "+String(this.D)+"ms linear");Fg(a,"opacity","1");x5(this,a,this.D,1)};function x5(a,b,c,d){0>=c||(a.o&&M(a.o),c=z()+c,a.o=0==d?qs(y(a.Qo,a,b,c,100),0):qs(y(a.Oo,a,b,c,100),0))}
f.Qo=function(a,b,c){if(this.o){var d=Math.max(1,b-z()),d=Math.max(0,a.volume+-1*a.volume*c/d);a.volume=d;this.o=0<d?qs(y(this.Qo,this,a,b,c),c):0}};f.Oo=function(a,b,c){if(this.o){var d=Math.max(1,b-z()),e=Cu(this.j.o)/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);a.volume=d;this.o=d<e?qs(y(this.Oo,this,a,b,c),c):0}};f.P=function(){this.ri();this.j.qa("beginseeking",this.ri,this)};function y5(a){v5.call(this,a)}A(y5,v5);f=y5.prototype;f.bs=v;f.Vr=function(a,b){return b};f.Ur=function(a,b){return b};f.ko=v;f.Zq=v;f.Kr=v;f.P=v;function z5(a,b){return b?new v5(a):new y5(a)};function A5(a,b,c){Q.call(this);this.j=a;this.D=b;this.A=c;this.C=this.o=-1;this.A&&0<this.j.ha.o&&this.j.subscribe("endseeking",this.B,this)}A(A5,Q);function B5(a,b){C5(a);0<b&&(a.C=L(y(a.B,a),1E3*b))}function C5(a){-1!=a.C&&(M(a.C),a.C=-1)}
A5.prototype.B=function(){var a=this.j.ha.o;if(this.A&&!(0>=a)){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Jb(this.D.A,function(a){if(a.isVisible&&!(0>=D5(this,a))){var g;g=a.getId();g=this.D.C[g];if(D5(this,a)>b){var l=!E5(this,a);l!=g.visible&&(g.visible=l,c.push(g));l||(g=D5(this,a)-b,g<e&&(e=g,d=a))}else g.visible||(g.visible=!0,c.push(g))}},this);0<c.length&&F5(this.j,c);if(d){var g=0;0<this.o&&(g=z()/1E3-this.o);B5(this,a-g-e+2)}else C5(this)}};
function E5(a,b){if(!a.A||!(0<b.j)&&-1!=b.j)return!1;var c=a.j.ha.o;if(0>=c||0>=a.o)return!1;var d=z()/1E3,e=D5(a,b)-a.j.j.getCurrentTime();0<e&&(d+=e);return d-a.o<=c}function D5(a,b){return-1==b.j?a.j.j.getVideoData().lengthSeconds:b.j}A5.prototype.P=function(){C5(this)};function G5(a,b){Q.call(this);this.o=b;this.D=[];this.A={};this.C={};this.j=a;var c=a.ha,d=!c.I&&ib(this.o,function(a){return 0<a.j||-1==a.j});this.G=new A5(this.j,this,d);c=c.applyFadeOnMidrolls&&(c.A||c.F)&&ib(this.o,function(a){return 0<a.j});this.B=z5(this.j,c);this.O=ib(this.o,function(a){return 0==a.j})}A(G5,Q);f=G5.prototype;f.Fb=null;function H5(a){a.D.length||(a.D=gb(a.o,function(a){return"unloaded"==a.Ec}),0==a.D.length?Rr(a.j):(a.O||Rr(a.j),I5(a)))}
function I5(a){if(a.D.length){var b=a.D.shift();b.subscribe("adBreakComplete",a.ag,a);E4(b)}}f.ag=function(a){a.qa("adBreakComplete",this.ag,this);L(y(this.oz,this,a),0)};
f.oz=function(a){var b=eb(this.o,a),c=this.o[b+1],b=this.o[b-1],d=2147483646;-2==a.j||-1==a.j?d=2147483647:c&&2147483647!=c.j&&(d=$4(c)-1);0==a.Ea&&(e5(this.j,"bl"),b5(a)||e5(this.j,"fb"));"loaded"!=a.Ec||0==a.Ea&&b5(a)&&c&&1E3*this.j.j.getCurrentTime()>=$4(c)?(b&&a5(b)&&(c=d,d=$4(b),d>c&&(c=d),J5(this,b),K5(this,b,c)),this.Oe(a)):(this.A[a.getId()]=a,K5(this,a,d),Rr(this.j));Nb(this.A)==this.o.length&&this.G.B();I5(this)};
function K5(a,b,c){var d=$4(b);if(!isNaN(d)){var e={};e.priority=-2!=b.j?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.B.Vr(b,d);c=a.B.Ur(b,c);c=new Mq(d,c,e);a.C[b.getId()]=c;Or(a.j,[c]);a.B.ko(b)}}function J5(a,b){var c=b.getId();a.C[c]&&(w5(a.B,c),Pr(a.j,[a.C[c]]),delete a.C[c])}f.Oe=function(a){a.qa("adBreakComplete",this.ag,this);this.Fb&&a==this.Fb&&(this.Fb=null);J5(this,a);qb(this.o,a);delete this.A[a.getId()];Ai(a)};f.xk=function(a){return this.A[a]};
f.xm=function(a){if(a.Bb){if(-1!=a.j&&a.pn){var b=this.j;L5(b);as(b);this.B.Kr(a)}else b5(a)&&!a.pn?(b=this.j,L5(b),as(b)):(L5(this.j),bs(this.j,!1));this.Oe(a);a=this.G;a.A&&0<a.j.ha.o&&(a.o=z()/1E3,a.B())}else a.isVisible||this.Oe(a)};f.P=function(){Ai(this.B);Ai(this.G);D(this.o,this.Oe,this);G5.K.P.call(this)};function M5(a,b,c){G5.call(this,a,b);this.I=[];this.J=[];this.F=[];this.T=c;this.H=0;this.N=a.ha.o;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],c5(c)){var d=new Z4(c.A,c.Ea,c.j,c.C,!0);b[a]=d;this.I.push(c)}this.O||this.cg()}A(M5,G5);f=M5.prototype;
f.xk=function(a){a=M5.K.xk.call(this,a);if(!a)return null;if(!a.D)return a;var b;b=null;if(this.F.length){var c=b=this.F.shift();c.j=a.j;c.Ea=a.getId()}b&&"loaded"==b.Ec?(a.qa("adBreakComplete",this.ag,this),this.A[a.getId()]=b,this.o[this.o.indexOf(a)]=b,Ai(a)):(this.cg(),b&&(Ai(b),b=null),this.Oe(a));b&&!b.Bb&&this.cg();return b};f.ag=function(a){0!=a.j||"loaded"==a.Ec&&a.Bb||this.cg();M5.K.ag.call(this,a)};
f.xm=function(a){a.Bb&&10<this.N?(N5(this),this.H=L(y(this.cg,this),1E3*(this.N-10))):this.cg();M5.K.xm.call(this,a)};f.cg=function(){for(N5(this);this.I.length&&this.J.length+this.F.length<this.T;){var a=this.I.shift();a.subscribe("adBreakComplete",this.qq,this);this.J.push(a);E4(a)}};f.qq=function(a){a.qa("adBreakComplete",this.qq,this);qb(this.J,a);this.F.push(a)};f.P=function(){N5(this);D(this.J,Ai);D(this.F,Ai);D(this.I,Ai);M5.K.P.call(this)};function N5(a){a.H&&M(a.H);a.H=0};function O5(a,b){G5.call(this,a,b);this.J=a;this.F=[];this.R=1}A(O5,G5);O5.prototype.getVideoData=function(){return null};O5.prototype.N=function(a){"loaded"==a.Ec&&this.F.push(a);a.qa("adBreakComplete",this.N,this)};
O5.prototype.H=function(){if(null!=this.Fb&&0<this.F.length){var a=this.F.shift();delete this.A[a.j];var b=Math.floor((new Date).getTime()/1E3)-this.T;this.T=null;a.qa("adBreakComplete",this.H,this);this.Oe(a);this.Fb=null}a=this.J;L5(a);as(a);isFinite(b)&&B2(this.I,this.I.getCurrentTime()+b)};function P5(a,b){this.G=a;this.ca=b;this.F=z();this.j=a.ha;this.B={};this.D=new O3(a);var c=[];this.j.R&&this.j.A&&c.push("4_2");this.j.bj&&(this.j.A&&c.push("13_2"),this.j.H&&c.push("13_1"));this.j.T&&(this.j.A&&c.push("1_2"),this.j.F&&c.push("1_2_1"),this.j.H&&c.push("1_1"),this.j.X&&c.push("1_3"));this.j.N&&c.push("2_2_1");this.j.O&&c.push("2_2");this.j.J&&c.push("2_1");(this.j.ab||this.j.Qi)&&c.push("2_3");this.A=c.join(",");this.o="";this.B.allowed=this.A;(c=this.j.excludedAds)&&(this.B.ex_ads=
c)}P5.prototype.C=0;function Q5(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;D(a.split(":"),function(a){b=60*b+Math.abs(parseFloat(a))});return 1E3*b};function R5(a,b,c){Q.call(this);this.j=a;this.A=b;this.F=c;this.B=this.D=-1;this.o=S5(this.A.Ye());a=this.A.Ye();a.length&&(a=a[a.length-1],-1==a&&Or(this.j,[this.o[a]]));0<this.j.ha.o&&this.j.subscribe("endseeking",this.C,this)}A(R5,Q);function T5(a,b){U5(a);0<b&&(a.B=L(y(a.C,a),1E3*b))}function U5(a){-1!=a.B&&(M(a.B),a.B=-1)}function V5(a){a.o||(a.o=S5(a.A.Ye()));F5(a.j,Qb(a.o))}
function S5(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 Mq(-1==d?2147483647:1E3*d,2147483647==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new Mq(-1==d?2147483647:1E3*d,2147483647,{id:String(d),visible:!0});return b}
R5.prototype.C=function(){var a=this.j.ha.o;if(!(0>=a)&&this.o){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;D(this.A.Ye(),function(a){var g=this.o[a];if(g){var l=this.A.I.get(a);l&&l.qd>b?(a=!t_(this.F,l),a!=g.visible&&(g.visible=a,c.push(g)),a||(g=l.qd-b,g<e&&(e=g,d=l))):!l||l.xb()?(Pr(this.j,[g]),delete this.o[a]):!g.visible&&l&&(g.visible=!0,c.push(g))}},this);0<c.length&&F5(this.j,c);if(d){var g=0;0<this.D&&(g=z()/1E3-this.D);T5(this,a-g-e+2)}else U5(this)}};
R5.prototype.P=function(){R5.K.P.call(this);U5(this)};function W5(a){Q.call(this);this.j=a;this.B=null;this.D=new Bn(this);this.A=new Bn(this)}A(W5,Q);f=W5.prototype;f.Za=null;f.xi=null;f.Eb=null;f.Mb=null;f.Ak=null;
function X5(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);D(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,g;"end"==b?(e="post",g=-1):(e="mid",g=Q5(b).toString());var h={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":g};a.firstChild.textContent=a.firstChild.textContent.replace(/\[[A-Z_]+\]/g,function(a){return h[a]||a})});return a}
function Y5(a){var b=oD(a),c=b.childNodes[0];if(!c)return a;var d=F(c.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});if(d){a=F(d.childNodes,function(a){return"Extensions"==a.localName});var e=F(a?a.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")});a=a.removeChild(e);var g=d,h=1;D(a?a.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=X5(d,a,h);h++;c.insertBefore(a,g.nextSibling);g=a});c.removeChild(d);return qD(b)}return a}
f.load=function(a){if(this.B=this.j.vg){var b=new uW;b.j=Y5(a);a=g4(this.j);b.A=this.j.ha.Ga;b.Xe=a.width;b.be=a.height;b.Xb=a.width;b.hc=100;b.C=this.j.V().experiments.experimentIds;b.Ui=this.j.C.B;if(a=b0(this.j.V()))b.D=a;this.j.ha.tagForChildDirected&&(b.Wg=!0);m3(this.j.V(),"937420")&&(b.Ch=!0);if(a=n5(this.j.ha).get(3))if(b.o=b3(a),a=this.j.ha.ba)b.B=a;a=Wu(this.j.o);var c=this.j;b.uc={CONTENT_V:a.videoId,CPN:a.clientPlaybackNonce,MT:{toString:function(){return c.j.getCurrentTime().toString()}},
LACT:{toString:function(){return null==c||c.ma()?c=null:b0(c.V()).toString()}}};this.B.M("adsManagerLoaded",this.Nt,!1,this);this.B.M("adError",this.Mt,!1,this);try{G_(this.B,b,this)}catch(d){}}};function Z5(a){var b=new yL;b.baseYouTubeUrl=a.j.V().A;b.contentId=Wu(a.j.o).videoId;b.useShareButton=!0;b.useStyledNonLinearAds=!0;b.useVideoAdUi=a.j.ha.G;b.showContentThumbnail=a.j.ha.showContentThumbnail;b.lw=!0;b.Hm=10;b.so=!1;return b}
f.Nt=function(a){if(a.B===this){var b={};Object.defineProperty(b,"currentTime",{get:y(function(){return this.j.j.getCurrentTime()},this),enumerable:!0});Object.defineProperty(b,"duration",{get:y(function(){return this.j.j.getVideoData().lengthSeconds},this),enumerable:!0});try{var c=Z5(this);this.Za=X2(a,this.j.C,b,c)}catch(d){return}if(this.Ak=this.Za.yp(b,this.j.ha.o)){this.xi=new R5(this.j,this.Za,this.Ak);V5(this.xi);G(this.Za.Ye(),0)||$5(this);this.A.M(this.Za,"companionBackfill",y(this.zF,this));
this.A.M(this.Za,"loaded",y(this.yF,this));this.A.M(this.Za,"adError",y(this.xF,this));this.A.M(this.Za,"start",y(this.vz,this));this.A.M(this.Za,"complete",y(this.qz,this));this.A.M(this.Za,"contentPauseRequested",y(this.AF,this));this.A.M(this.Za,"contentResumeRequested",y(this.BF,this));this.A.M(this.Za,"allAdsCompleted",v);try{this.Za.init("normal"),this.Za.start()}catch(e){this.Za.destroy(),this.o=null}}}};
f.AF=function(a){this.Eb&&this.Eb.dispose();(this.Mb=a.getAd())&&NU(this.Mb)&&(a=a6(this.Mb),this.j.ha.U?this.Eb=new j4(a,this.j,this.Za,QU(this.Mb),!0):this.Eb=new $3(a,this.j,this.Za,this.Za.getMediaUrl(),QU(this.Mb),!0),b6(this.j),this.Eb.rf())};
function c6(a,b){var c=PU(b);if(a3(c,v4.j)&&a.j.ha.Qi)return a.Eb=new G4(a.j),a.Eb.rf(),!1;if(a3(c,"blockAllAds"))return a.Za.sendImpressionUrls(),a.Eb=new L4(a.j,a.Za,!0),!1;if(a3(c,"hideMaster"))return a.Eb=new L4(a.j,a.Za,!0),!1;a.Eb=new s4(a6(b),a.j,a.Za,!0);a.Eb.rf();return!0}
f.BF=function(a){this.Eb&&this.Eb.dispose();$5(this);if(this.j.j.getCurrentTime()<this.j.j.getVideoData().lengthSeconds){var b=this.j;L5(b);as(b)}a=a.getAd();b=!0;if(a&&a!==this.Mb&&!NU(a)){b=this.Za;if(null!=b.j&&b.j.H&&10>this.j.j.getCurrentTime())return;b=c6(this,a)}this.Mb&&NU(this.Mb)&&j5(this.j);if(this.Mb&&NU(this.Mb)||a&&a!==this.Mb&&!NU(a)&&b)b=this.Ak,0<b.j&&(b.o=z()/1E3),b=this.xi,0<b.j.ha.o&&(b.D=z()/1E3,b.C());V5(this.xi);this.Mb=a};
f.vz=function(a){if((a=a.getAd())&&this.Eb){var b=this.Eb;b.type=a6(a)+"_"+b.J}};f.qz=function(a){NU(a.getAd())||this.Mb!==a.getAd()||(this.Eb&&this.Eb.dispose(),this.Mb=null)};f.yF=function(a){null!=a.getAd()&&(a.getAd().C.A||NU(a.getAd())||$5(this))};f.xF=function(){};f.Mt=function(){};f.zF=function(){h3();i3()};
f.P=function(){this.B&&(this.B.Ka("adsManagerLoaded",this.Nt,!1,this),this.B.Ka("adError",this.Mt,!1,this));this.D.removeAll();this.A.removeAll();this.C=!1;this.Za&&(this.Za.destroy(),this.Za=null);W5.K.P.call(this)};function a6(a){switch(TU(a).toUpperCase()){case "ADSENSE":return 2;case "DOUBLECLICK":return 1;case "FREEWHEEL":return 4;case "XFP":return 13;default:return 0}}function $5(a){a.C||(Rr(a.j),a.C=!0)};function d6(a){I_.call(this,a);iL.j=!0;iL.B=!1;iL.D=!0;this.C=null;this.G={};this.F={at:"0"};this.A=new Js(this.j);Hv(this.j,this.A.Q());this.H=this.B=null;this.D=-1}A(d6,I_);f=d6.prototype;f.za="ad";f.Dc="ad";f.Ke=null;f.jb=null;f.ha=null;f.gm=!1;f.Ml=!1;f.vg=null;f.ng=null;d6.Ja=function(a){return!!a.nc.getVideoData().adModule};f=d6.prototype;f.Ja=function(){return d6.Ja(this.o)};
f.Pa=function(){d6.K.Pa.call(this);e5(this,"i");this.ha=new r5(this.V(),this.j.getVideoData().B||{});this.Ke=new P5(this,this.j);this.gm=!1;if(this.vg)this.vg.j.A.D=tR();else{var a=this.ha.G?void 0:Ns(this.A);if(this.ha.U){var b=new H_(this.o,2),c=Ks(this.A);b.j||(b.j=Zb(b.eg),b.j.addEventListener=y(b.qw,b),b.j.removeEventListener=y(b.rw,b));this.C=new hR(c,void 0,a,b.j)}else{b=f4(this,!1);if(!b)throw"initAdsLoader_: getVideoElement returned a null element";this.C=new hR(Ks(this.A),b,a,void 0)}a=
this.C;b=a.o;null!=b&&(b.style.right=0,b.style.left=0,b.style.bottom=0,b.style.top=0);null!=a.F&&(a=a.F,a.o.width="100%",a.o.height="100%");this.vg=new F_(this.C)}a=q5(new p5(this));if(b=this.ha.vmap)b=q5(new p5(this)),(b=1==b.length&&0==b[0].j)||(b=this.V(),b=m3(b,"924643")),b=!this.ha.j&&!this.ha.aa&&!this.ha.Uf&&b&&!this.ha.na&&!this.ha.R&&!this.ha.bj&&!this.ha.I;b?(this.ng=new W5(this),this.ng.load(this.ha.vmap)):(e5(this,"bd"),b=this.ha,c=b.midrollPrefetchSize,this.jb=b.I&&(b.Lp||b.tj)?new O5(this,
a):0<c?new M5(this,a,c):new G5(this,a),H5(this.jb));a=this.V();n3(a,"916930","932628")&&Ji("watchAdsInitialized",j3);a={};a.allowed=this.Ke.A;Vr(this,{},a)};f.destroy=function(){this.Ml&&L5(this);if(this.B){var a=this.o,b=this.B;o4(a);b!=a.o&&l4(a,a.o)}Ci(this.jb,this.B,this.ng);this.Ke=this.ng=this.B=this.jb=null;Ls(this.A);f3=e3=!1;this.ve&&d6.K.destroy.call(this)};f.V=function(){return this.o.V()};f.gh=function(){return this.j.gh()||this.ha.D};
function x4(a,b,c){a=a.Ke;c=c||{};var d=(z()-a.F)/1E3;c.art=d;d=a.G.V();d.T&&(c.feature=d.Ca);c.ad_flags=a.j.adFlags;(d=a.j.La)&&(c.cid=d);c.mt=a.ca.getCurrentTime();(d=M_())&&(c.lact=d);(d=a.ca.Jh())&&(c.len=d);a.j.Qb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.o=c.at;b=a.D;a:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break a}a=c&&c.ad_event?Q3(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.ha.hb;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==V2?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=P3(d);break;case "error_code":g.ima_error=
d;case "error_message":g.error_msg=d;break;case "ad_event":g.event=Q3(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(g.i_x=a[0],g.i_y=a[1])}}g=k4(b.j);h=Wu(b.j.o);e.cpn=h.clientPlaybackNonce;e.content_v=h.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.j.jb,e.mt=null!=c&&null!=c.Fb?1E3*c.Fb.j:0):e.mt=Math.round(1E3*g.getCurrentTime());e.ei=h.H;e.lact=b0(b.j.V());c=W3(b.j);e.p_w=c.width;e.p_h=c.height;e.rt=(new Date).getTime();h=Ee(e);if("undefined"==typeof h)throw Error("Keys are undefined");c=new hf(null,
0,void 0);e=De(e);for(g=0;g<h.length;g++)a=h[g],d=e[g],ea(d)?tf(c,a,d):c.add(a,d);b=b.j.V().A+"api/stats/ads";b=new J(b);ff(b,c);lg(b.toString())}}function w4(a,b,c){c=c||{};c.ad_error=b;x4(a,7,c)}f.Ph=function(){var a;if(this.Ke){a=this.Ke;var b={allowed:a.A};a.j.excludedAds&&(b.ex_ad=a.j.excludedAds);a.o&&(b.at=a.o);a=b}else a=d6.K.Ph.call(this);return a};function j5(a){if(a.ha.sa&&!a.gm){var b=a.V().A;lg(b+"mac_204?action_fcts=1");a.gm=!0}}f.Oa=function(){return this.j.Oa()};
function e6(a){return a.jb instanceof O5?a.jb:null}function f4(a,b){var c;if(b){c=a.A;var d=Os(c);c.ca.V().C||be(d)||Ks(c).appendChild(d);c=d}else c=a.A,c=c.ca.V().C?c.ca.S.A.o:Os(c);return c}function k4(a){if(!a.B){var b=Zb(a.V().H);b.autoplay="1";b=new T_(b);b.ka="adunit";var c=f4(a,!1);b.Db=c;a.B=new o2(b,2,new J_(b,""),a.o.A)}return a.B}f.getVideoData=function(){return this.H};function W3(a){return a.ha.D?(a=g4(a),new wg(0,0,a.width,a.height)):$g(a.Oa())}function g4(a){return a.o.A.cp()}
function b6(a){a.Ml=!0;a.L("command_redirect_controls",a,["play_pause"],void 0);Yr(a,["seek"]);a.V().O&&Yr(a,["audio"]);a.ng||a.pauseVideo()}function L5(a){Ls(a.A);a.Ml=!1;$r(a);Zr(a,["seek"]);a.V().O&&Zr(a,["audio"])}f.getAdState=function(){return this.D};function h4(a,b){switch(b){case 1:a.D=1;a.L("publish_external_event","onAdStart");break;case 0:a.D=0,a.L("publish_external_event","onAdEnd")}}
function b4(a,b,c,d){d&&a.L("publish_external_event","onAdInfoChange",d);a.L("publish_external_event","onAdStateChange",b,f4(a,!1),c)}
f.Mc=function(a){d6.K.Mc.call(this,a);var b=parseInt(a.getId(),10);if(this.jb&&!isNaN(b))if("ytp-ad-fadeout"==a.style){var c=this.jb,d=c.xk(b);if(d&&!E5(c.G,d)&&(c=c.B,d.Bb)){var e=f4(c.j,!1),d=Math.max(0,$4(d)+c.B+c.A-1E3*c.j.j.getCurrentTime());Fg(e,"transition","opacity "+String(d)+"ms linear");Fg(e,"opacity","0");x5(c,e,d,0)}}else if(d=this.jb,n(b)&&(c=d.xk(b)))d.Fb==c&&!c.Bb&&c.isVisible?i5(c):(d.Fb&&d.Oe(d.Fb),E5(d.G,c)?(d.Fb=null,c=d.C[c.getId()],c.visible||(c.visible=!0,F5(d.j,[c]))):(d.Fb=
c,c.subscribe("adBreakComplete",d.xm,d),c.Bb&&b6(d.j),d.B.Zq(c),i5(c)));!isNaN(b)&&0>b&&this.ng&&(b=this.vg.j,d=new gS("contentComplete"),b.Y(d),d.B&&(b.A.clear(),null!=b.o&&(d=b.o.Pe(),null!=d&&JR(d,b.A.j))));"livead"===a.getId()&&null!=e6(this)&&(b=e6(this),a=Math.floor(a.start/1E3),Math.round(a),n(b.A[a])||(d=b.R++,d=new Z4(b.J,d,a,o5(b.J.ha),!1),b.A[a]=d,d.subscribe("adBreakComplete",b.N,b),E4(d)))};
f.ed=function(a){d6.K.ed.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.j.getCurrentTime();this.jb&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(c=this.jb,(b=c.A[b])&&c.Fb==b&&!b.Bb&&b.isVisible&&b.sn&&b.o instanceof s4&&u4(b.o,"fullscreen"));"livead"===a.getId()&&null!=e6(this)&&1E3*this.j.getCurrentTime()>=a.start&&(Pr(this,[a]),a=e6(this),null==a.Fb&&0<a.F.length?(b=a.F[0],b.isVisible?(a.T=Math.ceil(z()/1E3),b.subscribe("adBreakComplete",a.H,a),a.Fb=b,i5(b)):a.H()):a.H())};
function e5(a,b){var c=b;"nl"==b&&(c=a.Ke,c.C++,c=c.C.toString());a.G[c]=z();"bs"!=c&&"fb"!=c||Vr(a,a.G,a.F)}function F5(a,b){a.L("command_update_cuerange_markers",b,a.j.getPlayerType())}function t4(a){return Boolean(a.ha.B&&a.jb&&1<a.jb.o.length)}f.ge=function(a){this.L(a)};f.dA=function(a){var b=e6(this);if(null!=b&&null!=b.I){var c=e6(this).I.getCurrentTime();D(a,function(a){a.oe-10>c&&(a=new Mq(1E3*Math.floor(c+Math.random()*(a.oe-10-c)),1E3*a.oe,{id:"livead",priority:2}),Or(this,[a]))},this)}};
f.sg=function(a){switch(a){case "addata":var b=this.ha;return{adTag:b.adTag,adTest:b.ob,forceAdType:b.ga,isAfvSkippableInstreamEnabled:b.N,isAfvStandardInstreamEnabled:b.O,isBlazer:b.W,isDoubleClickEnabled:b.T,isForcedAd:b.aa,isFreeWheelEnabled:b.R,isHouseBrandPlayer:b.Pb,isLeanback:b.D,isShortform:b.sa,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.jb instanceof M5?this.jb:null,null!=b?b.N:0;case "breakscount":return this.jb?
this.jb.o.length:0;case "displaystate":return b=null,this.jb&&this.jb.Fb&&(b=this.jb.Fb.o),{adFormat:b instanceof M3?b.J:!1,adSkipped:b instanceof j4?b.F:!1,hasVideoStarted:b instanceof j4?b.H:!1,skippable:b instanceof j4?b.N:!1};case "getContentVideoData":return b=Wu(this.o),{adModule:b.adModule,isGetVideoThirdPartyOnly:b.aj,partnerTrackingToken:b.J,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.jb){a=this.jb.A;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].Bb});
return c}return 0}};f.tg=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};function f6(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)}A(f6,X);function g6(a){this.o=a||30;Vs.call(this,this.o,this.o);this.B=this.width/2;this.A=this.height/2;this.G=0;this.context.translate(this.B,this.A);this.$()}A(g6,Vs);g6.prototype.ua=function(){g6.K.ua.call(this);var a=this.H;this.C=new Date;this.F(a,125)};
g6.prototype.H=function(){this.context.clearRect(-this.B,-this.A,this.width,this.height);for(var a=this.G++%8,b=0;8>b;b++){var c=2*Math.PI/8*(a+b),d=11/30*this.o,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.o,0,2*Math.PI,!1);this.context.fillStyle="rgba(189, 189, 189, "+d+")";this.context.fill()}};g6.prototype.$=function(){M(this.j);g6.K.$.call(this)};function h6(a,b,c){ts.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}}"]]]);this.C=c;this.B=this.template.j["ytp-remote-display-thumbnail"];this.j=this.o=this.A=null;i6(this,a,b)}A(h6,ts);function j6(a){k6(a,Y("YTP_MDX_STATUS_CONNECTING"));l6(a,2)}function m6(a,b){k6(a,Y("YTP_MDX_STATUS_ERROR"));ns(a.template,"error",b);l6(a,0)}
function l6(a,b){var c=a.template.j["ytp-remote-display-error"],d=a.template.j["ytp-remote-display-status"];Es(c);Es(d);a.A.$();a.j.$();a.o.$();switch(b){case 0:Ds(d);Ds(c);break;case 1:Ds(d);break;case 2:Ds(d);a.j.ua();break;case 3:a.A.ua()}}
function i6(a,b,c){var d=b.j.V();a.A=new f6(d.isMobile,d.Pb);R(a,a.A);a.j=new g6(60);N(a.j.element,"html5-video-loader");N(a.j.element,"html5-center-overlay");N(a.j.element,"ytp-scalable-icon-grow");R(a,a.j);a.o=new Rs(a.C,"ytp-button-remote-reconnect");a.o.Ba(Y("YTP_MDX_PLAYER_RECONNECT_BUTTON"));R(a,a.o);b=b.j.getVideoData();a.B.style.backgroundImage=b.videoId?"url("+b.Zd("hqdefault.jpg")+")":"";ns(a.template,"largeplaybutton",a.A);ns(a.template,"reconnectbutton",a.o);ns(a.template,"loadingicon",
a.j);a.o.M("click",function(){this.L("reconnect-button-click")},a);j6(a);ns(a.template,"receiver",c)}function k6(a,b){ns(a.template,"statustext",b)};function n6(a,b,c){Q.call(this);this.o=a;a.subscribe("onVolumeChange",this.Iq,this);this.I=y(this.KA,this);a.j.addEventListener("onCaptionsTrackListChanged",this.I);this.D=!1;this.A=b;b.subscribe("reconnect-button-click",this.Rq,this);this.j=c;c.subscribe("proxyStateChange",this.Sq,this);c.subscribe("remotePlayerChange",this.Cm,this);c.subscribe("remoteQueueChange",this.Dm,this);this.N=new xr;this.G=this.F=NaN;this.J=0;this.C={};this.H=new zn(this.$C,1E3,this);R(this,this.H);this.O=0;this.B=!1;a=
this.o.j.pk("captions","track");Vb(a)||o6(this,a);this.Dm();this.Cm()}A(n6,Q);f=n6.prototype;f.P=function(){p6(this,new xr);q6(this);r6(this);this.o.qa("onVolumeChange",this.Iq,this);this.o.j.removeEventListener("onCaptionsTrackListChanged",this.I);Bi(this.A)||this.A.qa("reconnect-button-click",this.Rq,this);Bi(this.j)||(this.j.qa("proxyStateChange",this.Sq,this),this.j.qa("remotePlayerChange",this.Cm,this),this.j.qa("remoteQueueChange",this.Dm,this));s6(this,this.C);this.j=this.A=this.o=null};
f.CF=function(a,b){2==this.j.o||(t6(this)?this.Cx.apply(this,arguments):this.B&&this.xx.apply(this,arguments))};function u6(a,b){a.o.bk(b,a.o.j.getVideoData().lengthSeconds)}f.xx=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":v6(this,this.o.j.getCurrentTime());break;case "control_seek":v6(this,c[0])}};
f.Cx=function(a,b){if(1081==tp(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":tp(this.j).xb()?w6(this):x6(this);break;case "control_play":x6(this);break;case "control_pause":w6(this);break;case "control_seek":this.O=c[0];this.H.Oi();break;case "control_subtitles_set_track":o6(this,c[0])}};
f.Iq=function(a){if(t6(this)){var b=Math.round(a.volume);a=!!a.muted;var c=tp(this.j);b==c.volume&&a==c.muted||this.j.setVolume(b,a)}};f.KA=function(){Vb(this.C)||s6(this,this.C);this.D=!1};f.Rq=function(){r6(this);this.j.B.reconnect();j6(this.A);this.B=!1};f.Sq=function(a,b){r6(this);2==b&&this.as()};
f.Cm=function(){if(t6(this)){q6(this);var a=tp(this.j);switch(a.j){case 1:y6(this);p6(this,new xr(8));break;case 3:p6(this,new xr(1));break;case 0:p6(this,new xr(2));this.H.stop();var b=this.o.j;(b=b.S.ta(b.playerType||1))&&b.jg(!0);u6(this,this.o.j.getVideoData().lengthSeconds);break;case 2:p6(this,new xr(4));u6(this,mp(a));break;case -1:p6(this,new xr);break;case -1E3:p6(this,new xr(128,{}))}0==this.J&&(b=this.o.j,(b=b.S.ta(b.playerType||1))&&b.jg(!1));this.J=a.j;a=tp(this.j).A;b=this.C;(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.C=a,s6(this,a));a=tp(this.j);-1==a.volume||Math.round(this.o.j.Rs())==a.volume&&this.o.j.Ss()==a.muted||(this.o.j.setVolume(a.volume),a.muted?this.o.j.Vs():this.o.j.Zs())}else z6(this)};function z6(a){a.B||(u6(a,0),q6(a),p6(a,new xr));"detailpage"!=a.o.o.nc.V().ka&&(l6(a.A,3),a.B=!0)}f.Dm=function(){t6(this)||z6(this)};
function o6(a,b){if(t6(a)&&!a.D){if(b){var c={style:a.o.j.pk("captions","displaySettings")};bc(c,b);a.j.Xm(A6(a),c)}else a.j.Xm(A6(a),null);a.C=tp(a.j).A}}function w6(a){a.j.pause();var b=tp(a.j);u6(a,mp(b));q6(a);p6(a,new xr(4))}function x6(a){a.j.play();y6(a);p6(a,new xr(8))}function v6(a,b){var c=a.o.j.Nd();c?Ap(a.j,A6(a),b,c.Va,a.o.j.getVideoData().playlistId):Ap(a.j,A6(a),b);p6(a,new xr(1))}
function s6(a,b){if(b){var c=a.o.j.pk("captions","tracklist",{Mp:1});c&&c.length?a.o.j.Ln("captions","track",b):(a.o.j.Ts("captions"),a.D=!0)}else a.o.j.Ln("captions","track",{})}f.$C=function(){var a=this.O;q6(this);u6(this,a);-1==tp(this.j).j?v6(this,a):this.j.Bs(a);p6(this,new xr(1))};function t6(a){return kp(tp(a.j))==A6(a)}function A6(a){return a.o.j.getVideoData().videoId}
function y6(a){q6(a);if(!a.j.ma()){var b=tp(a.j);b.xb()&&p6(a,new xr(8));u6(a,mp(b));a.F=L(y(function(){y6(this)},a),500)}}function q6(a){M(a.F);a.F=NaN}f.as=function(){r6(this);q6(this);var a=this.j.B.getReconnectTimeout();if(2!=this.j.o||isNaN(a))j6(this.A),this.B=!1;else{var b=this.A,a=Zs(a/1E3);m6(b,Y("YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:a}));b.o.ua();this.G=L(y(this.as,this),1E3)}};function r6(a){M(a.G);a.G=NaN}
function p6(a,b){r6(a);var c=a.N;a.N=b;var d=a.A;k6(d,Y("YTP_MDX_STATUS_CONNECTED"));l6(d,1);W(b,1)&&(d=a.A,k6(d,Y("YTP_MDX_STATUS_CONNECTED")),l6(d,2));W(b,128)&&m6(a.A,$f("YTP_MDX_PLAYER_ERROR"));a.B=!1;d=a.o;d.W=b;bs(d,W(b,8));d.o.L("presentingplayerstatechange",new n2(b,c))};function B6(a){I_.call(this,a);this.R=a.A.B;this.D={key:Tj(),name:$f("YTP_MDX_MY_COMPUTER")};this.C=this.B=null;this.J=[];this.N=this.O=this.A=null;this.X=[this.D];this.H=this.D;this.G=new TC(this.R,"ytp-remote-button",$f("YTP_MDX_TOOLTIP"),"ytp-remote-button-active");R(this,this.G);Ts(this.G,6950);this.G.M("click",this.iF,this);this.G.Q().id="remote_button";this.F=new Ut(this.R,y(this.Cw,this),y(this.lA,this));N(this.F.Q(),"ytp-drop-down-background");R(this,this.F);this.I=new Zt;this.I.label=$f("YTP_MDX_TITLE");
this.I.element=this.F;this.I.A=this.za;R(this,this.I);this.F.ib(this.I.label);this.W=new xr;this.U=0}A(B6,I_);var C6=["play_pause","seek"],D6=["captions"];f=B6.prototype;f.za="remote";f.Dc="remote";f.Ja=function(){return this.o.nc.V().Gg};f.Pa=function(){B6.K.Pa.call(this);this.J.push(Ji("yt-remote-before-disconnect",this.Kz,this));this.J.push(Ji("yt-remote-connection-change",this.Tq,this));this.Tq();ds(this,this.za,this.G);fs(this,this.I);var a=this.j.S.J;this.H&&this.H!=this.D&&1!=a&&3!=a&&this.load()};
f.destroy=function(){Li(this.J);this.J.length=0;Ai(this.A);this.A=null;B6.K.destroy.call(this)};f.load=function(){if(!this.loaded){B6.K.load.call(this);WC(this.G,"ytp-remote-button-active");this.C=new h6(this,this.H.name,this.R);Hv(this.j,this.C.Q());this.A&&(this.B=new n6(this,this.C,this.A));this.j.pauseVideo();this.L("command_redirect_controls",this,C6,D6);var a=Fq();if(0!=a){var b=this.A?kp(tp(this.A)):null;b&&b!=this.j.getVideoData().videoId||L(y(function(){this.bk(a)},this),0)}}};
f.unload=function(){this.loaded&&(WC(this.G,"ytp-remote-button"),this.F.Ia(this.D),$r(this),Ci(this.B,this.C),this.B=this.C=null,B6.K.unload.call(this))};f.P=function(){this.destroy();Ci(this.B,this.C,this.A);this.A=this.B=this.C=null;B6.K.P.call(this)};f.ge=function(a,b){this.B&&this.B.CF.apply(this.B,arguments)};
function lv(a,b,c){var d=c||a.D;b.unshift(a.D);a.X=b||[a.D];d=F(b,function(a){return a.key==d.key});E6(a,b);a.F.Ia(d);a.H=d||a.D;a.C&&ns(a.C.template,"receiver",d.name);a.L("publish_external_event","onMdxReceiversChange")}f.bk=function(a,b){this.U=a||0;B6.K.bk.call(this,a,b)};f.getCurrentTime=function(){return this.U};f.Kz=function(a){1==a&&(this.O=this.A?tp(this.A):null);this.N=a};
f.Tq=function(){var a=Hq();a?(this.A=a,this.N=this.O=null,this.load(),this.B||(this.B=new n6(this,this.C,this.A))):(Ai(this.A),this.A=null,this.loaded&&1==this.N&&(this.unload(),(a=this.O)&&kp(a)==this.j.getVideoData().videoId?this.j.Kh(mp(a)):this.j.Kh(0)))};f.lA=function(a){hs(this);a!=this.F.o&&(this.F.Ia(a),F6(this,a))};
function F6(a,b){a.H=b||a.D;if(b.key==a.D.key)Aq();else{var c=0,d="",e=a.j.Nd();e&&(c=e.Va,d=a.j.getVideoData().playlistId);if(e=a.j.Nd()){for(var g=[],h=0;h<e.Kc;h++)g[h]=hv(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()};xq(b,c);a.C&&ns(a.C.template,"receiver",b.name);Ai(a.B);a.B=null;a.load()}}function E6(a,b){D(b,function(a){a.toString=function(){return a.key}},a);Vt(a.F,b)}
f.iF=function(a){var b=mq();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),Gl())};f.Cw=function(a){return a.name};f.sg=function(a,b){switch(a){case "casting":return!!this.A&&!!this.B;case "receivers":return this.X;case "currentReceiver":return b&&("cast-selector-receiver"==b.key?Gl():F6(this,b)),this.H;case "castSelector":var c=mq(),c=1==c.length&&"cast-selector-receiver"==c[0].key;b&&c&&Gl();return c}};
f.tg=function(){return["casting","receivers","currentReceiver","castSelector"]};function G6(a){this.addEventListener=y(a.addEventListener,a);this.removeEventListener=y(a.removeEventListener,a);this.dispatchEvent=y(a.dispatchEvent,a)}
function H6(a,b,c){U.call(this);this.H=a;this.I=y(b,null);this.N=c;this.j=0;this.C=!1;this.A=new Qc(NaN,NaN);b=c?4E3:3E3;this.D=new xs(pa(this.yb,1,!1),b,this);R(this,this.D);this.F=new xs(pa(this.yb,2,!1),b,this);R(this,this.F);this.G=new xs(pa(this.yb,512,!1),5E3,this);R(this,this.G);c||(this.B=P(a,"mouseover",y(this.Pt,this)),this.O=P(a,"mousemove",y(this.DF,this)),this.R=P(a,"mouseleave",y(this.kz,this)));this.J=ed?P(a,"keypress",y(this.Yy,this)):P(a,"focusin",y(this.ww,this));this.o=P(a,"mousedown",
y(this.Ot,this));this.yb(640,!0)}A(H6,U);f=H6.prototype;f.DF=function(a){a=new Qc(Dh(a),Eh(a));if(!Rc(a,this.A)){var b=2;this.C&&(b|=8);this.A=a;this.yb(b,!0)}};f.kz=function(){this.C&&this.yb(8,!0);this.yb(2,!1)};f.Pt=function(a){var b=new Qc(Dh(a),Eh(a));Rc(b,this.A)||(this.A=b,this.j&2&&this.I(a.target)&&(this.yb(4,!0),Jh(this.B),this.B=P(this.H,"mouseout",y(this.EF,this))))};
f.EF=function(a){a.relatedTarget&&this.I(a.relatedTarget)||(this.A=new Qc(NaN,NaN),this.yb(4,!1),Jh(this.B),this.B=P(this.H,"mouseover",y(this.Pt,this)))};f.Yy=function(){this.yb(1,!0)};f.ww=function(a){a.target instanceof Element&&!(0<a.target.tabIndex)||this.yb(1,!0)};f.Ot=function(){this.C=!0;this.N&&this.yb(2,!0);Jh(this.o);this.o=P(document,"mouseup",y(this.FF,this))};f.FF=function(){this.C=!1;this.yb(8,!1);Jh(this.o);this.o=P(this.H,"mousedown",y(this.Ot,this))};
f.yb=function(a,b){var c=!this.j;b?(this.j|=a,a&1&&this.D.start(),a&2&&this.F.start(),a&512&&this.G.start()):(this.j&=~a,a&1&&this.D.stop(),a&2&&this.F.stop(),a&512&&this.G.stop());var d=!this.j;c!=d&&this.L("autohideupdate",d)};f.P=function(){Jh(this.B);Jh(this.O);Jh(this.R);Jh(this.J);Jh(this.o);H6.K.P.call(this)};function I6(){this.o=this.j=null}function Y(a,b){return $f(a,b,void 0)}f=I6.prototype;f.yg=function(a,b){this.j&&this.j.yg(a,b)};f.Ag=function(a,b,c){this.j&&this.j.Ag(a,b,c)};f.Lm=function(a){this.j&&this.j.Lm(a)};f.vb=function(){return this.o.vb()};f.wb=function(){return this.o.wb()};function J6(a,b){X.call(this,["span","","{{sparkline_container}}"]);this.A=a;this.o=b;this.j=new BF("");R(this,this.j);ns(this.template,"sparkline_container",this.j)}A(J6,X);function K6(a){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 Host:"],["td","","{{stream_host}}"]],
["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}}"]]]]]);
ss(this,this.template.j["html5-video-info-panel-close"],"click",this.$);this.o=new J6(200,14);R(this,this.o);ns(this.template,"bandwidth_sparkline",this.o);this.A=new xs(this.B,500,this);R(this,this.A);this.j=a}A(K6,X);K6.prototype.ua=function(){K6.K.ua.call(this);this.B()};K6.prototype.$=function(){K6.K.$.call(this);this.A.stop()};
K6.prototype.B=function(){var a=this.j.ta(),b=this.j.getVideoData(),c=this.j.Hh(),d=this.j.A.o,e=this.j.V(),g;g=this.j;if(g.wa){var h=[];g.wa.H.forEach(y(h.push,h));g=h}else g=[0];var k=(h=a.G?a.G.j:null)&&h.o,l=b.videoId,p=b.clientPlaybackNonce,r=b.clientPlaybackNonce?"":"display:none",a=a.A?o1(a.A):"",u;a:{if(b.jf&&(u=b.jf.match(/url=(https?)/))&&2==u.length){u=u[1];break a}u=""}c={video_id:l,cpn:p,cpn_style:r,mime:"",dash:"no",stream_host:a,stream_type:u||e.protocol,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||"-",dimensions:d.clientWidth+" x "+d.clientHeight+(window.devicePixelRatio?" * "+window.devicePixelRatio:""),resolution:d.videoWidth+" x "+d.videoHeight,volume:Math.round(Cu(this.j))+"%",bandwidth_kbps:(8*cb(g)/1024).toFixed(0)+" Kbps",drm_style:k?"":"display:none",
drm:k?h.o+" / "+h.j:""};b.j&&(d=NF(b.j)?"yes":"no",d+=" ("+b.j.id,b.F&&NF(b.j)&&(d+="/"+b.F.id),c.dash=d+")",c.mime=b.j.mimeType,b=b.j.video.fps,1<b&&(c.resolution+="@"+b));d=this.o;b=d.j;e=Math.max.apply(Math,g)||1;a=[];for(h=0;h<g.length;h++)a.push(h/g.length*d.A+","+d.o*(1-g[h]/e));g='<svg width="'+d.A+'" height="'+d.o+'" viewbox="0 0 '+d.A+" "+d.o+'"><g><polyline stroke="white" fill="none" points="'+a.join(" ")+'"/></g></svg>';b.element.innerHTML=g;this.template.update(c);this.A.start()};function L6(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"]);ts.call(this,c);vi(this.element,"version",a.X.assets.js);this.j=a;this.oa=null;this.A=this.template.j["html5-video-container"];this.ob=!!this.A;this.N=new wg(0,0,0,0);this.o=null;this.Z=new wg(0,0,0,0);this.sa=this.template.j["html5-video-content"];this.Da=this.ab=0;this.aa=null;this.X=0;this.na=null;b=a.V();this.$a=b.Qb||"blazer"==b.j;this.T=new K6(a);
R(this,this.T);this.T.ea(this.element);this.B=new I6;this.Ym();Zf({YTP_ADVERTISEMENT:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430",YTP_AUDIO_TRACK_TITLE:"\u0417\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u0434\u043e\u0440\u043e\u0436\u043a\u0430",YTP_AUTO:"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430",YTP_AUTO_WITH_QUALITY_2:"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 ($VIDEO_QUALITY)",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e ($VIDEO_QUALITY)",
YTP_COPY_DEBUG_INFO:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438",YTP_COPY_VIDEO_URL:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e",YTP_COPY_VIDEO_URL_AT_TIME:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438",
YTP_DARUDE_SANDSTORM:"Add Music",YTP_DRAWER_HEADER_TEXT:"\u0412 \u044d\u0442\u043e\u043c \u0432\u0438\u0434\u0435\u043e",YTP_DRAWER_POLL_SUBMIT:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c",YTP_GET_DEBUG_INFO:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0442\u043b\u0430\u0434\u043a\u0435",YTP_GET_VIDEO_URL:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e",YTP_GET_VIDEO_URL_AT_TIME:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438",
YTP_GET_EMBED:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f",YTP_DECREASE_PLAYBACK_SPEED:"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",YTP_DEFAULT_VIEW:"\u0420\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",
YTP_EMBED_COPY:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c HTML-\u043a\u043e\u0434",YTP_ERROR_GENERIC:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_GENERIC_WITH_LINK_2:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK",
YTP_ERROR_GENERIC_WITHOUT_LINK:"\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_GENERIC_WITH_LINK:"\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK",YTP_EXIT_FULLSCREEN:"\u0412\u044b\u0445\u043e\u0434 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430",
YTP_FEATURED:"\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435",YTP_FULLSCREEN:"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d",YTP_INCREASE_PLAYBACK_SPEED:"\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",YTP_GOTO_LIVE_TOOLTIP:"\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438",
YTP_KEYBOARD_SHORTCUTS:"\u0411\u044b\u0441\u0442\u0440\u044b\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438",YTP_LIVE:"\u0412 \u044d\u0444\u0438\u0440\u0435",YTP_LIVE_NOW:"\u0421\u0415\u0419\u0427\u0410\u0421 \u0412 \u041f\u0420\u042f\u041c\u041e\u041c \u042d\u0424\u0418\u0420\u0415",YTP_MIX:"\u041c\u0438\u043a\u0441",YTP_MORE:"\u0415\u0449\u0451",YTP_MDX_TITLE:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430",
YTP_MDX_TOOLTIP:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0435",YTP_MDX_MY_COMPUTER:"\u042d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440",YTP_MUTE:"\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430",YTP_NEXT:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435",YTP_NEXT_VIDEO_IN:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e \u0447\u0435\u0440\u0435\u0437\u00a0$TIME_LEFT",
YTP_NORMAL_SPEED:"\u041e\u0431\u044b\u0447\u043d\u0430\u044f",YTP_ON:"\u0412\u041a\u041b",YTP_OFF:"\u0412\u042b\u041a\u041b",YTP_OPTIONS:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b",YTP_PLAY_ALL:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u0435",YTP_PLAY_PAUSE:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435/\u043f\u0430\u0443\u0437\u0430",YTP_PREVIOUS:"\u041d\u0430\u0437\u0430\u0434",YTP_PLAYLIST:"\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442",
YTP_PLAYLIST_UP_NEXT:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435",YTP_QUALITY_TITLE:"\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e",YTP_SUGGESTED_VIDEOS:"Suggested videos",YTP_REPLAY:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c",YTP_REPORT_ISSUE:"\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",YTP_SEEK_BACK:"\u041d\u0430\u0437\u0430\u0434 \u043d\u0430 10 \u0441\u0435\u043a\u0443\u043d\u0434",
YTP_SEEK_FORWARD:"\u0412\u043f\u0435\u0440\u0435\u0434 \u043d\u0430 10 \u0441\u0435\u043a\u0443\u043d\u0434",YTP_SEEK_PERCENT:"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a 0%-90%.",YTP_SETTINGS:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",YTP_SHARE:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f",YTP_SHARE_LINK:"Share link",YTP_SHARE_WITH_PLAYLIST:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0435",
YTP_SHOW_VIDEO_INFO:"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u0441\u0438\u0441\u0430\u0434\u043c\u0438\u043d\u043e\u0432",YTP_SPHERICAL_CONTROL:"Spherical video control. Use the arrow keys to pan the video.",YTP_SPEED_TITLE:"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c",YTP_ST_COLLAPSE:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",YTP_ST_EXPAND:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",YTP_SUBTITLES:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b",
YTP_THREED_SHORT:"3D",YTP_THEATER_MODE:"\u0428\u0438\u0440\u043e\u043a\u0438\u0439 \u044d\u043a\u0440\u0430\u043d",YTP_TOGGLE_FULLSCREEN:"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d",YTP_TOGGLE_MUTE:"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0432 \u0431\u0435\u0437\u0437\u0432\u0443\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c",YTP_UNMUTE:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_URL_NAVIGATE:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 YouTube.com",
YTP_WATCH_ALL:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e",YTP_WATCH_LATER:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435",YTP_WATCH_LATER_AS_2:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u043a\u0430\u043a $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"\u0410\u043d\u0430\u0433\u043b\u0438\u0444",YTP_WEBGL_3D_2D:"2D",
YTP_SUBSCRIBE_AS:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a $USER_NAME",YTP_LIKE_AS:'\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443 "\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f" \u043a\u0430\u043a $USER_NAME',YTP_DISLIKE_AS:'\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443 "\u041d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f" \u043a\u0430\u043a $USER_NAME',
YTP_WATCH_NEXT:"\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438",YTP_PLAY:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c",YTP_WATERMARK:"\u0412\u043e\u0434\u044f\u043d\u043e\u0439 \u0437\u043d\u0430\u043a",YTP_ERROR_STREAMING_UNAVAILABLE:"\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0447\u0430\u043d\u043e \u0434\u043b\u044f \u043e\u0444\u043b\u0430\u0439\u043d-\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430.",
YTP_ERROR_LICENSE:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u0438\u0437-\u0437\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439.",YTP_ERROR_VIDEO_NOT_FOUND:"\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432\u0438\u0434\u0435\u043e.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"\u0412\u044b \u0443\u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u043e\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u0437\u0434\u0435\u0441\u044c, \u043e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u0435 \u0435\u0433\u043e \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.",
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"\u041e\u0448\u0438\u0431\u043a\u0430 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_PURCHASE_NOT_FOUND:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u044d\u0442\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e.",YTP_ERROR_PURCHASE_REFUNDED:"\u041f\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u043a\u0443\u043f\u043a\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432.",
YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"\u0412\u0438\u0434\u0435\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440.",
YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0443.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e.",
YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"\u0417\u0430 \u0441\u0443\u0442\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432/IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432.",YTP_ERROR_UNUSUAL_ACTIVITY:"\u0412\u0438\u0434\u0435\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0438\u0437-\u0437\u0430 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435.",
YTP_ERROR_NOT_SIGNED_IN:"\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440, \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442.",YTP_CLOSE:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",YTP_ANNOTATIONS:"\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438",YTP_DONE:"\u0413\u043e\u0442\u043e\u0432\u043e",YTP_SHARE_THIS_PLAYLIST:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u043e\u043c",
YTP_UPLOADED_BY_2:"\u0410\u0432\u0442\u043e\u0440: $AUTHOR",YTP_SEEK_SLIDER:"\u041f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043f\u043e\u0438\u0441\u043a\u0430",YTP_PAUSE:"\u041f\u0430\u0443\u0437\u0430",YTP_AUTOPLAY:"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435",YTP_AUTOPLAY_COUNTDOWN_2:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e \u0447\u0435\u0440\u0435\u0437 $SECONDS_LEFT",YTP_AUTOPLAY_PAUSED:"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e.",
YTP_AUTOPLAY_PAUSED_2:"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e.",YTP_AUTOPLAY_CANCEL:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435",YTP_WATCH_VIDEO_OR_PLAYLIST:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c $TITLE",
YTP_CANCEL:"\u041e\u0442\u043c\u0435\u043d\u0430",YTP_ON_GOOGLE_PLUS:"\u041d\u0430 Google+",YTP_STILL_THERE:"\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0430, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0438\u0436\u0435.",YTP_DISMISS:"\u041e\u041a",YTP_RESET:"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c",
YTP_STOP:"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u0443\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e",YTP_LIKE:"\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",YTP_DISLIKE:"\u041d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",YTP_SCREENREADER_VOLUME_SETTING:"\u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c",YTP_SCREENREADER_VOLUME_MUTED:"\u0437\u0432\u0443\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d",
YTP_SCREENREADER_VOLUME_MUTE:"\u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_SCREENREADER_VOLUME_UNMUTE:"\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_SCREENREADER_CONTROL_TOGGLE:"\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c",YTP_SAMPLE_SUBTITLES:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a",YTP_HTML5_CONTEXT_MENU_LINK:"\u041e \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435 HTML5",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"\u042d\u0442\u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0438\u0434\u0435\u043e \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442 \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0438\u0434\u0435\u043e\u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432. $BEGIN_LINK\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0447\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e \u0432\u0438\u0434\u0435\u043e HTML5.$END_LINK",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"\u0414\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0435\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c Adobe Flash Player. $BEGIN_LINK\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e$END_LINK.",
YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"\u0412\u0438\u0434\u0435\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",
YTP_ERROR_CAST_TOKEN_EXPIRED:"\u0412\u0440\u0435\u043c\u044f \u0441\u0435\u0430\u043d\u0441\u0430 \u0438\u0441\u0442\u0435\u043a\u043b\u043e. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.",YTP_ERROR_CAST_TOKEN_FAILED:"\u0421\u0435\u0430\u043d\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_CAST_TOKEN_MALFORMED:"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0441\u0435\u0430\u043d\u0441. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_GEO_FAILURE:"\u042d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0435.",
YTP_ERROR_INVALID_DRM_MESSAGE:"\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b DRM.",YTP_ERROR_RENTAL_EXPIRED:"\u0412\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u043a\u0430\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c.",YTP_ERROR_RETRYABLE_ERROR:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_SERVER_ERROR:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_STREAMING_NOT_ALLOWED:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0438\u0434\u0435\u043e \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443.",
YTP_ERROR_UNSUPPORTED_DEVICE:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c.",YTP_ERROR_VIDEO_FORBIDDEN:"\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d.",YTP_MDX_STATUS_CONNECTED:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430",
YTP_MDX_STATUS_CONNECTING:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a",YTP_MDX_STATUS_ERROR:"\u041e\u0448\u0438\u0431\u043a\u0430",YTP_MDX_PLAYER_ERROR:"\u0412\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f.",YTP_MDX_PLAYER_RECONNECT_TIME:"\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443. \u041f\u043e\u0432\u0442\u043e\u0440\u043d\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 $FORMATTED_TIME...",
YTP_MDX_PLAYER_RECONNECT_BUTTON:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e",YTP_DEVICE_FALLBACK:"\u0412\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",YTP_AD_INTERRUPT_MESSAGE:"\u042d\u0442\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u0448\u0438\u043c \u0432\u0438\u0434\u0435\u043e.",
YTP_VISIT_ADVERTISERS_SITE:"\u041f\u043e\u0441\u0435\u0442\u0438\u0442\u044c \u0441\u0430\u0439\u0442 \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0434\u0430\u0442\u0435\u043b\u044f",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS (\u043e\u0431\u0449\u0430\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c $DURATION)",YTP_PLAYLIST_NAME:'\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 "$PLAYLIST_NAME"',YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_PLAYLIST_AUTHOR_AND_POSITION:"$AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_PLAYER_NORMAL:"\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube",YTP_PLAYER_FULLSCREEN:"\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube \u0432 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435"});this.Mk()}A(L6,ts);L6.j="(min-width: 1720px) and (min-height: 980px)";
L6.A="(min-width: 1294px) and (min-height: 630px)";L6.B="(min-width: 640px)";L6.C="(max-width: 640px)";L6.o="(min-width: 1320px) and (min-height: 870px)";f=L6.prototype;f.Mk=function(){this.j.subscribe("initializingmode",this.Sx,this);this.j.subscribe("videoplayerreset",this.JF,this);this.j.subscribe("videodatachange",this.IF,this);this.j.subscribe("presentingplayerstatechange",this.Kl,this)};f.initialize=function(a){this.oa=Ed(a);this.ea(this.oa)};
f.Sx=function(){this.Z=new wg(0,0,0,0);this.N=new wg(0,0,0,0)};f.addClass=function(a){ph(this.element,arguments)};f.removeClass=function(a){rh(this.element,arguments)};f.Bk=function(){return!1};
f.Zn=function(){var a=this.j.V();this.addClass("el-"+a.ka);this.addClass("ps-"+a.j);var b=Xh&&!a.N?"0":a.o;O(this.element,"html5-native-controls","3"==b);O(this.element,"html5-mobile",a.isMobile);O(this.element,"ytp-no-controls","0"==b);a.C||this.addClass("tag-pool-enabled");a.Pb&&this.addClass("house-brand");this.$a?this.aa=P(window,"resize",y(this.qi,this)):(a=By()?y(this.Pv,this):y(this.qi,this),this.aa=Wf(a,250))};f.Pv=function(){this.X&&Ey(this.X);this.X=Dy(y(this.qi,this),0)};
f.qi=function(){Tc(this.wb(),Bg(this.N))||this.tf()};f.tf=function(){if(this.o){var a=this.wb();if(!a.isEmpty()){var b=!Tc(a,Bg(this.N)),c=M6(this);b&&(this.N.width=a.width,this.N.height=a.height,this.Ug(a));(c||b)&&this.L("resize")}}};f.Ug=function(){};f.Ll=function(){};f.IF=function(a,b){this.Ck(b)};f.JF=function(a){a.getVideoData()&&this.Ck(a.getVideoData())};
f.Ck=function(a){if(this.o){var b=this.j.V();dr&&(this.o.setAttribute("x-webkit-airplay","allow"),a.title?this.o.setAttribute("title",a.title):this.o.removeAttribute("title"));b.Ik&&(this.o.poster=a.videoId?a.Zd("default.jpg"):"")}b=a.Gc("yt:bgcolor");this.A.style.backgroundColor=b?b:"";this.ab=MH(a.Gc("yt:stretch"));a=a.Gc("yt:crop");this.Da="fullwidth"==a?Infinity:MH(a)};f.xg=function(){};f.Vm=function(){};
f.vb=function(){var a=this.j.V();if(window.matchMedia){if((a.Qb||a.cb)&&window.matchMedia("(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)").matches)return new H(window.innerWidth,window.innerHeight);if("detailpage"==a.ka&&"blazer"!=a.j&&!a.cb){if(window.matchMedia(L6.C).matches)return new H(426,240);if(window.matchMedia(a.F?L6.o:L6.j).matches)return new H(1280,720);if(a.F||window.matchMedia(L6.A).matches)return new H(854,480);if(window.matchMedia(L6.B).matches)return new H(640,
360)}}return new H(this.element.clientWidth,this.element.clientHeight)};f.wb=function(){return this.vb()};f.cp=function(){return this.wb()};function LE(a){return a.o?new H(0<a.o.style.width.indexOf("px")?parseInt(a.o.style.width,10):a.o.clientWidth,0<a.o.style.height.indexOf("px")?parseInt(a.o.style.height,10):a.o.clientHeight):new H(0,0)}function N6(a){return a.o?new H(a.o.videoWidth,a.o.videoHeight):new H(0,0)}
function O6(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.ab||P6(c),a=a.Da||c,d=P6(b),d=a>d?new H(b.width,b.width/(isFinite(a)?a:c)):a<d?new H(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 wg((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}function P6(a){return 1>Math.abs(ct*a.height-a.width)||1>Math.abs(ct/a.width-a.height)?ct:a.width/a.height}
function Q6(a){return"3"!=a.j.V().o&&!N6(a).isEmpty()}
function M6(a){var b=N6(a),c=a.wb(),d=1,e=Q6(a),g=!1,h;h=(h=a.j.ta())&&h.getPlayerState();!h||W(h,2)||W(h,64)?(h=-c.height,dr&&(h*=window.devicePixelRatio),h=new wg(0,h,c.width,c.height)):e?(h=O6(a,c,b,e,!1),d=P6(new H(h.width,h.height))/P6(b),h=new wg(h.left+h.width/2*(1-1/d),h.top,h.width/d,h.height)):h=new wg(0,0,c.width,c.height);zg(a.Z,h)||(a.Z=h,Vg(a.o,Bg(h)),Lg(a.o,new Qc(h.left,h.top)),g=!0);b=O6(a,c,b,e);zg(a.N,b)||(a.N=b,Vg(a.sa,b.width,b.height),Lg(a.sa,b.left,b.top),g=!0);Fg(a.o,"transform",
1==d?"none":"scaleX("+d+")");return g}f.$n=function(){};f.Ym=function(){this.B.o=this};f.Kl=function(){this.tf()};f.Qt=function(){};f.P=function(){this.aa&&(this.$a?Jh(this.aa):Xf(this.aa),this.X&&Ey(this.X));this.na&&Jh(this.na);this.T.$();this.o=this.A=this.oa=null;L6.K.P.call(this)};function R6(a,b,c,d){Q.call(this);this.F=P(a,"click",y(this.N,this));this.G=P(a,"dblclick",y(this.I,this));this.J=b;this.B=c;this.C=d||null;this.o=new xs(this.H,200,this);R(this,this.o);this.j=!0;this.A=!1;this.D=null}A(R6,Q);R6.prototype.N=function(a){this.C&&this.C()?this.A=!0:this.o.isActive()?(this.o.stop(),this.B(a),this.A=this.j=!1):(this.D=a,this.o.start(),this.j=!0)};R6.prototype.I=function(a){this.A?this.A=!1:this.j&&this.B(a)};R6.prototype.H=function(){this.J(this.D);this.j=!0};
R6.prototype.P=function(){Jh(this.F);Jh(this.G);R6.K.P.call(this)};function S6(a){X.call(this,["div","ytp-action-buttons"]);this.shareButton=new Rs(a,"ytp-button-share",Y("YTP_SHARE"));R(this,this.shareButton);this.shareButton.ea(this.element);Ts(this.shareButton,3400);this.j=new Rs(a,"ytp-button-dislike",Y("YTP_DISLIKE"));R(this,this.j);this.j.ea(this.element);Ts(this.j,3300);vi(this.j.Q(),"tooltip-below","1");a.Ag(this.j.Q(),"YTP_DISLIKE_AS",Y("YTP_DISLIKE"));this.likeButton=new Rs(a,"ytp-button-like",Y("YTP_LIKE"));R(this,this.likeButton);this.likeButton.ea(this.element);
Ts(this.likeButton,3200);vi(this.likeButton.Q(),"tooltip-below","1");a.Ag(this.likeButton.Q(),"YTP_LIKE_AS",Y("YTP_LIKE"))}A(S6,X);function T6(){X.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.j=new Fs(this,500);R(this,this.j)}A(T6,X);function U6(a,b,c,d,e,g){var h,k;if(h=c.offsetParent){var l="HTML"==h.tagName||"BODY"==h.tagName;l&&"static"==Kg(h,"position")||(k=Rg(h),l||(l=(l=ch(h))&&ed?-h.scrollLeft:!l||dd&&sd("8")||"visible"==Kg(h,"overflowX")?h.scrollLeft:h.scrollWidth-h.clientWidth-h.scrollLeft,k=Sc(k,new Qc(l,h.scrollTop))))}h=k||new Qc;k=$g(a);(l=Qg(a))&&Ag(k,yg(l));var l=Bd(a),p=Bd(c);if(l.j!=p.j){var r=l.j.body,p=Sg(r,qe(p)),p=Sc(p,Rg(r));!dd||td(9)||pe(l)||(p=Sc(p,re(l)));k.left+=p.x;k.top+=p.y}a=V6(a,b);b=new Qc(a&
2?k.left+k.width:k.left,a&1?k.top+k.height:k.top);b=Sc(b,h);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);if(e=Qg(c))e.top-=h.y,e.right-=h.x,e.bottom-=h.y,e.left-=h.x;W6(b,c,d,g,e,197,void 0)}
function W6(a,b,c,d,e,g,h){a=a.clone();var k=V6(b,c);c=Yg(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);if(g){if(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);if(g&16){var p=d.x;d.x<e.left&&(d.x=e.left,l|=4);d.x+k.width>e.right&&(k.width=Math.min(e.right-d.x,p+k.width-e.left),k.width=
Math.max(k.width,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);g&32&&(p=d.y,d.y<e.top&&(d.y=e.top,l|=8),d.y+k.height>e.bottom&&(k.height=Math.min(e.bottom-d.y,p+k.height-e.top),k.height=Math.max(k.height,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}else e=256;l=e}e=new wg(0,0,0,
0);e.left=a.x;e.top=a.y;e.width=h.width;e.height=h.height;l&496||(Lg(b,new Qc(e.left,e.top)),h=Bg(e),Tc(c,h)||(c=h,e=Dd(b),h=pe(Bd(e)),!dd||sd("10")||h&&sd("8")?(b=b.style,ed?b.MozBoxSizing="border-box":fd?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?(dd?(h=eh(b,"paddingLeft"),a=eh(b,"paddingRight"),g=eh(b,"paddingTop"),d=eh(b,"paddingBottom"),h=new vg(g,a,d,h)):(h=Jg(b,"paddingLeft"),a=Jg(b,"paddingRight"),
g=Jg(b,"paddingTop"),d=Jg(b,"paddingBottom"),h=new vg(parseFloat(g),parseFloat(a),parseFloat(d),parseFloat(h))),b=ih(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 V6(a,b){return(b&4&&ch(a)?b^2:b)&-5};function X6(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);gd&&this.j.Q().removeAttribute("readonly");this.j.M("click",this.A,this);var b=Y("YTP_CLOSE");this.o=new Rs(a,"ytp-dialog-button",b);this.o.Ba(b);R(this,this.o);this.template.update({content:this.j,buttons:this.o});this.M("contextmenu",this.B)}
A(X6,YC);X6.prototype.B=function(a){a.stopPropagation()};X6.prototype.A=function(){this.j.Q().select()};function Y6(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("YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],Y("YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],Y("YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"],
Y("YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],Y("YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],Y("YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},Y("YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.ca=a;this.ca.subscribe("internalvideodatachange",this.St,this);this.A=new Nt(this);this.A.M(b,"contextmenu",this.bA);this.j=
new Nt(this);this.o=new X6(c);R(this,this.o);this.o.o.M("click",this.ey,this);a={wu:this.LF,xu:this.MF,yu:y(this.Rt,this,!1),zu:y(this.Rt,this,!0),Bu:this.NF,Cu:this.OF,Au:this.DA};for(var d in a)Z6(this,d,a[d]);this.$()}A(Y6,X);f=Y6.prototype;f.ey=function(){this.ca.A.xg()};function $6(a,b){var c=a.o;c.j.Q().value=b;c.j.Q().focus();L(y(c.A,c),100);a.ca.A.xg(a.o)}
function Z6(a,b,c){a.A.M(a.template.j[Is[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.$();a=b.replace("CONTEXT_MENU_","").toLowerCase();a7(this.ca,"contextmenu."+a)})}f.St=function(a,b){Bs(this.template.j["html5-context-menu-copy-embed-html"],b.allowEmbed)};f.Rt=function(a){a=this.ca.nc.getVideoUrl(!a,!0);$6(this,a)};f.MF=function(){$6(this,$u(this.ca))};f.DA=function(a){b7(this.ca,a.target.getAttribute("href"))};
f.NF=function(){var a=this.ca.ta();a&&a.nk(new ru("feedback",!1));var a=this.ca.V(),b=!0;"detailpage"==a.ka&&(b=t("yt.player.exports.feedbackStart")(void 0,{as3:!1,html5:!0,player:!0}));b&&(this.ca.pauseVideo(),window.open($_(a,this.ca.getVideoData())))};f.LF=function(){$6(this,Zu(this.ca,!0))};f.OF=function(){this.ca.A.T.ua()};f.bA=function(a){a.preventDefault();var b=Dh(a);a=Eh(a);var c=Qg(document.body);W6(new Qc(b,a),this.element,0,null,c,5);this.ua()};f.aA=function(a){a.fh()||this.$()};
f.ua=function(){this.D||(this.j.removeAll(),this.j.M(window,"blur",this.$),this.j.M(document,"click",this.KF),this.j.M(document,"contextmenu",this.aA),Y6.K.ua.call(this))};f.KF=function(a){2==a.button||a.target&&ce(this.element,a.target)||this.$()};f.$=function(){Y6.K.$.call(this);this.j.removeAll()};f.P=function(){this.A.removeAll();this.j.removeAll();this.ca.qa("internalvideodatachange",this.St,this);this.ca=null;Y6.K.P.call(this)};function c7(){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("YTP_MORE")]];X.call(this,a)}A(c7,X);function d7(a,b,c,d){Rs.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);N(this.element,"share-service-icon-sharebar");Ts(this,3700)}A(d7,Rs);function e7(){X.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.j=this.template.j["ytp-share-url"]}A(e7,X);e7.prototype.focus=function(){this.j.focus();this.j.select()};e7.prototype.P=function(){this.j=null;e7.K.P.call(this)};function f7(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("YTP_SHARE_WITH_PLAYLIST")]]];ts.call(this,c);ss(this,this.template.j["ytp-share-bar-checkbox"],"click",this.C,this);this.fa=b;this.B=a;this.shareUrl=null;this.A=[];this.o=this.j=null;this.closeButton=new Rs(this.B,"yt-uix-button-icon-share-bar-close",Y("YTP_CLOSE"),Y("YTP_CLOSE"));
this.closeButton.ea(this.template.j["share-bar-content"]);Ts(this.closeButton,3900)}A(f7,ts);function g7(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.o?a.o.videoId:void 0};a.fa.rb&&(b.authuser=a.fa.rb);a.fa.pageId&&(b.pageid=a.fa.pageId);var c;h7(a)?(c=Hd("ytp-share-bar-checkbox"),c=!c||oh(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=h7(a));Ij("/share_ajax",{context:a,method:"GET",onError:a.F,qb:a.G,mg:b})}
f7.prototype.G=function(a,b){if(!this.ma()){i7(this);var c=this.template.j["share-bar-content"];this.shareUrl=new e7;R(this,this.shareUrl);Id(this.shareUrl.j,{value:b.url_short});this.shareUrl.ea(c);for(var d=b.links,e=0;e<Math.min(3,d.length);e++){var g=new d7(this.B,d[e].name,d[e].sname,d[e].img);R(this,g);g.ea(c);g.M("click",pa(wy,d[e].url,{}));this.A.push(g)}this.j=new c7;R(this,this.j);this.j.M("click",y(this.H,this,b.more));this.j.ea(c);this.L("menu_show")}};f7.prototype.F=function(){};
f7.prototype.H=function(a){vy(a)};function h7(a){return a.o?a.o.playlistId:void 0}f7.prototype.C=function(){var a=Hd("ytp-share-bar-checkbox");sh(a,"ytp-share-bar-checked");g7(this)};function i7(a){a.shareUrl&&(a.shareUrl.detach(),a.shareUrl=null);a.j&&(a.j.detach(),a.j=null);D(a.A,function(a){Wd(a.Q())});a.A=[]};function j7(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("YTP_URL_NAVIGATE")},"YouTube"],["div","html5-title-text-wrapper",["a","html5-title-text",{tabIndex:3100,href:"{{titlelink}}"},"{{titletext}}"]]]];ts.call(this,c);this.fa=b;this.C=a;this.o=null;ss(this,this.template.j["html5-title-text"],"click",this.jr);c=this.template.j["html5-title-logo"];vi(c,"tooltip",Y("YTP_URL_NAVIGATE"));
vi(c,"tooltip-below","1");a.yg(c);ss(this,c,"click",this.jr);c=this.template.j["html5-title"];this.actionButtons=new S6(this.C);R(this,this.actionButtons);this.actionButtons.ea(c,1);this.actionButtons.shareButton.M("click",this.kn,this);this.j=null}A(j7,ts);f=j7.prototype;f.update=function(a){this.o=a;if(this.j){var b=this.j;b.o=a;g7(b)}b=a.title||"";a=this.fa.getVideoUrl(a.videoId,a.playlistId);this.template.update({titletext:b,titlelink:a,logolink:a})};f.jr=function(a){at(a)&&(this.ir(),a.preventDefault())};
f.ir=function(){this.Vt()};function k7(a){return oh(a.element,"show-share")}f.kn=function(){l7(this,!k7(this))};function l7(a,b){if(b&&!a.j){a.j=new f7(a.C,a.fa);var c=a.j;c.o=a.o;g7(c);a.j.ea(a.template.j["html5-info-bar"]);a.j.closeButton.M("click",a.kn,a);a.j.subscribe("menu_show",y(a.Yq,a))}O(a.element,"show-share",b);O(a.element,"share-with-playlist",b&&!!h7(a.j));a.Yq()}f.Yq=function(){k7(this)&&this.j.shareUrl&&this.j.shareUrl.Q().focus()};f.Ut=function(a){vy(a)};
f.Vt=function(){this.Ut(this.fa.getVideoUrl(this.o.videoId,this.o.playlistId))};f.P=function(){this.o=this.fa=null;j7.K.P.call(this)};function m7(a,b){j7.call(this,a,b.V());this.ca=b;this.B=2;this.A=!1;this.actionButtons.likeButton.M("click",this.CA,this);this.actionButtons.j.M("click",this.iA,this)}A(m7,j7);f=m7.prototype;f.update=function(a){m7.K.update.call(this,a);n7(this,a.Rm);a=!(!a||!a.us||this.ca.B);var b=!this.ca.V().ld;O(this.element,"ytp-can-share",b);O(this.element,"ytp-can-sentiment",a)};f.kn=function(){this.L("share-click")};f.ir=function(){this.L("title-click")};f.CA=function(){o7(this,0)};
f.iA=function(){o7(this,1)};function o7(a,b){if(!a.A&&(a.B==b&&(b=2),n7(a,b),a.o)){if("detailpage"!=a.fa.ka){a.A=!0;var c={playbackId:a.o.playbackId,qb:y(function(){this.A=!1},a),onError:y(function(){this.A=!1},a),rb:a.fa.rb,pageId:a.fa.pageId};fI(a.o.videoId,b,c)}a.ca.L("RATE_SENTIMENT",{videoId:a.o.videoId,sentiment:b})}}function n7(a,b){a.B=b;O(a.element,"sentiment-like",0==b);O(a.element,"sentiment-dislike",1==b)}f.Ut=function(a){b7(this.ca,a)};f.Vt=function(){p7(this.ca)};
f.P=function(){this.ca=null;m7.K.P.call(this)};function q7(a){var b=["div",["ytp-dialog","html5-stop-propagation"],{tabindex:1E3},["div","ytp-dialog-title",Y("YTP_KEYBOARD_SHORTCUTS")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Y("YTP_DONE");this.j=new Rs(a,"ytp-dialog-button",b);this.j.Ba(b);R(this,this.j);Ts(this.j,1400);this.j.M("click",this.o,this);this.template.update({content:r7(),buttons:this.j})}A(q7,YC);
function r7(){var a=[{key:"K",message:Y("YTP_PLAY_PAUSE")},{key:"J",message:Y("YTP_SEEK_BACK")},{key:"L",message:Y("YTP_SEEK_FORWARD")},{key:"0-9",message:Y("YTP_SEEK_PERCENT")},{key:">",message:Y("YTP_INCREASE_PLAYBACK_SPEED")},{key:"<",message:Y("YTP_DECREASE_PLAYBACK_SPEED")},{key:"F",message:Y("YTP_TOGGLE_FULLSCREEN")},{key:"M",message:Y("YTP_TOGGLE_MUTE")}],b=[];D(a,function(a){a=new X(["p",null,a.key+": "+a.message]);b.push(a)});return b}q7.prototype.o=function(){this.ac("done")};
q7.prototype.focus=function(){this.element.focus()};function s7(a,b,c,d,e,g,h,k){this.C=[];D(Ib(b),function(b){this.C.push(P(a,b,y(this.yB,this)))},this);D(Ib(d),function(b){this.C.push(P(a,b,y(this.mA,this)))},this);this.D=g||null;this.I=c;this.H=h||0;this.o=0;this.B=!1;this.G=e;this.F=k||0;this.j=0;this.A=!1}f=s7.prototype;f.yB=function(a){M(this.j);this.j=0;this.o=L(y(this.vw,this,a),this.H)};f.mA=function(a){M(this.o);this.o=0;this.j=L(y(this.uw,this,a),this.F)};f.vw=function(a){this.A||this.B||(this.B=!0,this.I.call(this.D||m,a))};
f.uw=function(a){!this.A&&this.B&&(this.B=!1,this.G.call(this.D||m,a))};f.dispose=function(){this.A=!0;M(this.o);M(this.j);Jh(this.C)};f.ma=function(){return this.A};function t7(){X.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.j=this.template.j["ytp-tooltip-body"]}A(t7,X);t7.prototype.$=function(){t7.K.$.call(this);Lg(this.j,0)};t7.prototype.P=function(){Vd(this.j);this.j=null;t7.K.P.call(this)};function u7(a,b){Q.call(this);this.j={};this.bo=a;this.o=b}A(u7,Q);
u7.prototype.yg=function(a,b){var c,d=new s7(a,"mouseover",function(){if(this.bo){var d=new t7;d.ea(this.bo);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||xi(a,"tooltip")||"";if(x(d)){var g=Sd(d),d=Rd("span");d.className="ytp-text-tooltip";d.appendChild(g)}ns(c.template,"content",d);var g=!!xi(a,"tooltip-below"),d=c,h=Yg(a),h=new Qc(h.width/2,g?h.height:0),k=Rg(a),h=new Qc(k.x+h.x,k.y+h.y),g=!!g;O(d.element,"ytp-tooltip-below",g);if(k=Pg(d.element))var l=Rg(k),p=ih(k),h=Sc(h,new Qc(l.x+p.left,l.y+
p.top));W6(h,d.element,g?1:0);d.ua();var p=Yg(d.j),g=p.width/2*-1,r=Kd(window),u=Ld(document),h=u.x,r=r.width+u.x,u=h,w=r;k&&(k=Yg(k),u=l.x,w=k.width+l.x);k=Rg(d.j);l=k.x+g;k=k.x+p.width+g;l<Math.max(h,u)?g-=l-Math.max(h,u):k>Math.min(r,w)&&(g-=k-Math.min(r,w));Lg(d.j,g)}},["mouseout","mousedown"],function(){c&&(c.$(),Ai(c),c=null)},this,10,50);this.j[ja(a)]=d};
u7.prototype.Ag=function(a,b,c){var d=this.o;this.yg(a,function(){if(d){var a="detailpage"==d.ka;if(!d.Da||a)return c}else return c;var g=d.Da,h=d.X,a=Rd("div");N(a,"ytp-identity-tooltip");var k=Rd("img");k.src=h;h=Rd("span");g=Sd($f(b,{USER_NAME:g}));Ud(h,g);Ud(a,k,h);return a})};u7.prototype.Lm=function(a){a=ja(a);Ai(this.j[a]);this.j[a]=null};u7.prototype.P=function(){this.o=this.bo=null;for(var a in this.j)Ai(this.j[a]);this.j={};u7.K.P.call(this)};function v7(){this.j=[];this.o=[]}ba(v7);var Qs=t("yt.player.utils.VideoTagPool.instance_")||v7.getInstance();q("yt.player.utils.VideoTagPool.instance_",Qs,void 0);f=v7.prototype;f.To=function(a){if(!(this.j.length>=a)){a-=this.j.length;for(var b=0;b<a;b++){var c=w7(this);this.j.push(c)}}};function w7(a,b){var c=document.createElement("video");qa(c,kr);P(c,"loadeddata",y(c.$v,c));P(c,"volumechange",y(c.bw,c));Xh&&6<=Zq&&P(c,"webkitbeginfullscreen",y(c.play,c));b||mr(c);a.o.push(c);return c}
f.sG=function(a){return this.j.length?this.j.pop():w7(this,a)};f.AC=function(a){a&&G(this.o,a)&&(vr(a),Mh(a),qb(this.o,a))};f.lp=function(a){return this.j.length>=(a||1)};f.Nv=function(){this.j=[];this.lp(4)?D(this.o,function(a){mr(a);this.j.push(a)},this):this.To(4)};v7.prototype.fillPool=v7.prototype.To;v7.prototype.getTag=v7.prototype.sG;v7.prototype.releaseTag=v7.prototype.AC;v7.prototype.hasTags=v7.prototype.lp;v7.prototype.activateTags=v7.prototype.Nv;function x7(a){X.call(this,["div","ytp-dialog-holder","{{content}}"]);this.o=a;this.j=null}A(x7,X);x7.prototype.ua=function(){x7.K.ua.call(this);y7(this);this.j.focus()};x7.prototype.$=function(){x7.K.$.call(this);var a=be(this.element);a&&a.focus()};function y7(a){if(a.j){a.j.Tt();var b=a.o.vb(),c=Xg(a.j.Q());a=a.j;b=new Qc(Math.floor((b.width-c.width)/2),Math.floor((b.height-c.height)/2));a.Q().style.marginLeft=b.x+"px";a.Q().style.marginTop=b.y+"px"}}x7.prototype.P=function(){this.j=null;x7.K.P.call(this)};function z7(a,b){Vs.call(this,a,b);this.G=null;this.H=this.I=this.A=this.o=0;this.B=-75;N(this.element,"ytp-tv-static");A7(this,a,b)}A(z7,Vs);function B7(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 A7(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.G=d;a.I=B7(b);a.H=B7(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}}
z7.prototype.ua=function(){z7.K.ua.call(this);var a=this.J;this.C=new Date;this.F(a,75)};z7.prototype.J=function(){var a=1-1/1.5;this.o=(this.o+this.I)%(this.width*a);this.A=(this.A+this.H)%(this.height*a);this.context.drawImage(this.G,-1*this.o,-1*this.A);this.context.fillRect(0,this.B,this.width,75);this.B=(this.B+75+7)%this.height-75};z7.prototype.$=function(){M(this.j);z7.K.$.call(this)};function C7(a){var b=["ytp-error"];b.push("html5-stop-propagation");X.call(this,["div",b,["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.ba="table";this.A=a;this.o=[];void 0==Jt&&(a=document.createElement("canvas"),Jt=!(!a.getContext||!a.getContext("2d")));Jt&&(this.j=new z7(1,1),this.j.ea(this.element,0),R(this,this.j))}A(C7,X);C7.prototype.ua=function(){C7.K.ua.call(this);D7(this);this.j&&this.j.ua()};C7.prototype.$=function(){C7.K.$.call(this);this.j&&this.j.$()};
function D7(a){var b,c;a.j&&(c=a.element.clientWidth,b=a.element.clientHeight,A7(a.j,c,b))}C7.prototype.B=function(a){var b=t("yt.player.exports.feedbackShowArticle"),c={as3:!1,html5:!0,player:!0,cpn:this.A.getVideoData().clientPlaybackNonce};b(3037019,"player_error",c)||Nh(a)};C7.prototype.P=function(){Jh(this.o);this.o=[];C7.K.P.call(this)};function E7(a){ts.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"}],["div","ytp-storyboard-lens-timestamp-wrapper",["span","html5-storyboard-lens-timestamp"]]]]);this.Z=!1;this.aa=new zn(this.dz,
250,this);R(this,this.aa);this.C=0;this.C=a;this.A=this.template.j["html5-storyboard-filmstrip"];this.da=this.template.j["html5-storyboard-lens"];this.ga=this.template.j["html5-storyboard-lens-thumbnail"];this.la=this.template.j["html5-storyboard-lens-timestamp"];this.U=this.template.j["html5-storyboard-thumbnail"];Wd(this.U);this.H=0;this.N=new s3(0,0);this.J=!1;this.R=this.T=0;this.X=10;this.O=this.F=this.B=this.I=this.j=0;this.G=this.o=null;this.$()}A(E7,ts);E7.j=84;E7.o=10;E7.A=72;E7.B=200;
f=E7.prototype;f.Pk=function(){Ey(this.H);if(this.o){var a,b,c;a=this.o.j[0].gt();var d=this.o.j[0].Qn();if(a!=this.B||d!=this.F){var e=Math.min(a,this.F);for(b=this.B;b<e;b++)(c=this.A.children[b-this.B])&&this.A.removeChild(c);this.B=a;for(b=Math.max(a,this.F);b<d;b++)c=this.U.cloneNode(!1),a=vI(this.G,b,this.j),x3(c,a,this.j,this.I),this.A.appendChild(c);this.F=d;F7(this)}}};
f.ls=function(a,b){bh(this.A,!1);for(var c,d,e=a;e<=b;e++)if(d=this.A.children[e-this.B])c=vI(this.G,e,this.j),x3(d,c,this.j,this.I);bh(this.A,!0)};function G7(a,b){if(b!=a.O){var c=Math.round(2*a.j),d=Math.round(2*a.I),e=vI(a.G,b,c),e=x3(a.ga,e,c,d,!1),e=new H(c,d);Lg(a.da,(a.C-e.width)/2);a.Q().style.height=Mg(e.height+E7.j,!0);a.O=b}}f.dz=function(){for(var a=this.T,b=Math.max(Math.floor(a/this.j),0),a=Math.min(Math.ceil((a+this.C)/this.j),this.o.j[0].Ki()-1);b<=a;b++)wI(this.G,b,2*this.j)};
function F7(a,b){a.X=Math.min(E7.o,Math.ceil(a.C/E7.A));a.j=Math.floor(a.C/a.X);a.I=.555*a.j;a.R=a.j*(a.F-a.B);Wg(a.A,a.R);G7(a,a.O);b&&(a.ls(a.B,a.F),a.Z=!0)}f.ua=function(){this.o&&(this.J&&this.Pk(),E7.K.ua.call(this))};f.$=function(){E7.K.$.call(this)};f.P=function(){this.G=this.o=null;Ey(this.H);E7.K.P.call(this)};function H7(a){X.call(this,["div","html5-storyboard-framepreview",["img","html5-storyboard-framepreview-img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]]);this.F=this.template.j["html5-storyboard-framepreview-img"];this.o=a.wb();this.C=this.j=null;this.A=0;this.B=new s3(0,0);this.$()}A(H7,X);H7.prototype.reset=function(){this.A=0;this.B=new s3(0,0)};function I7(a){var b=vI(a.C,a.A,a.o.width);x3(a.F,b,a.o.width,a.o.height)}
H7.prototype.ua=function(){this.j&&H7.K.ua.call(this)};H7.prototype.$=function(){H7.K.$.call(this)};function J7(a,b,c){X.call(this,["div",["ytp-thumbnail","html5-stop-propagation"]]);this.A=a;this.j=null;c&&(this.j=new f6(a,b),R(this,this.j),this.j.ea(this.element))}A(J7,X);
J7.prototype.o=function(a){for(var b,c=0;c<arguments.length;c++){var d=arguments[c];if(!(!d||d instanceof Uu&&!d.videoId)){if(!this.A){var e=this.element.clientWidth,g=this.element.clientHeight;if(900<e||600<g)if(b=d.Zd("maxresdefault.jpg"))break;if(430<e||320<g)if(b=d.Zd("sddefault.jpg")||d.Zd("hqdefault.jpg"))break}if(b=d.Zd("default.jpg"))break}}this.element.style.backgroundImage=b?"url("+b+")":""};function K7(){Zy.call(this);this.j={}}A(K7,Zy);ba(K7);f=K7.prototype;f.wi="tooltip";f.dj=0;f.register=function(){az(this,"mouseover",this.lq);az(this,"mouseout",this.ij);az(this,"click",this.ij);az(this,"touchstart",this.cD);az(this,"touchend",this.gs);az(this,"touchcancel",this.gs)};f.dispose=function(){for(var a in this.j)this.ij(this.j[a]);this.j={}};
f.lq=function(a){if(!(this.dj&&1E3>z()-this.dj)){var b=parseInt(xi(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),M(b));var b=y(function(){L7(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(xi(a,"tooltip-show-delay"),10)||0,b=L(b,c);vi(a,"tooltip-show-timer",b.toString());a.title&&(bz(a,M7(a)),a.title="");b=ja(a).toString();this.j[b]=a}};
f.ij=function(a){var b=parseInt(xi(a,"tooltip-show-timer"),10);b&&(M(b),this.removeData(a,"tooltip-show-timer"));b=y(function(){N7(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=L(b,50);vi(a,"tooltip-hide-timer",b.toString());if(b=xi(a,"tooltip-text"))a.title=b;b=ja(a).toString();delete this.j[b]};f.cD=function(a,b,c){this.dj=0;a=Xy(b,$y(this),c.changedTouches[0].target);this.lq(a)};f.gs=function(a,b,c){this.dj=z();a=Xy(b,$y(this),c.changedTouches[0].target);this.ij(a)};
function O7(a,b){bz(a,b);var c=xi(a,"content-id");(c=Ed(c))&&ee(c,b)}function M7(a){return xi(a,"tooltip-text")||a.title}
function L7(a,b){if(b){var c=M7(b);if(c){var d=Ed(P7(a,b));if(!d){d=document.createElement("div");d.id=P7(a,b);d.className=$y(a,"tip");var e=document.createElement("div");e.className=$y(a,"tip-body");var g=document.createElement("div");g.className=$y(a,"tip-arrow");var h=document.createElement("div");h.className=$y(a,"tip-content");var k=Q7(a,b),l=P7(a,b,"content");h.id=l;vi(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Rh()||document.body).appendChild(d);
O7(b,c);(c=parseInt(xi(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",N(h,$y(a,"normal-wrap")));h=oh(b,$y(a,"reverse"));R7(a,b,d,e,k,h)||R7(a,b,d,e,k,!h);var p=$y(a,"tip-visible");L(function(){N(d,p)},0)}}}}
function R7(a,b,c,d,e,g){O(c,$y(a,"tip-reverse"),g);a=0;g&&(a=1);var h=Yg(b);g=new Qc((h.width-10)/2,g?h.height:0);var k=Rg(b);W6(new Qc(k.x+g.x,k.y+g.y),c,a);var k=Kd(window),l=Ug(c);c=Yg(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=xi(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 N7(a,b){if(b){var c=Ed(P7(a,b));c&&(S7(c),Wd(c),a.removeData(b,"content-id"))}}function P7(a,b,c){a=$y(a)+uh(b);c&&(a+="-"+c);return a}function Q7(a,b){var c=null;id&&oh(b,$y(a,"masked"))&&((c=Ed("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),Ds(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=$y(a,"tip-mask")));return c}
function S7(a){var b=Ed("yt-uix-tooltip-shared-mask"),c=b&&oe(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),Es(b),document.body.appendChild(b))};function T7(a,b){rh(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&N(a,b);N7(K7.getInstance(),a)};function U7(a){Zt.call(this);this.o=null;this.j=new Ut(a,y(this.D,this),y(this.F,this));R(this,this.j);this.label=Y("YTP_AUDIO_TRACK_TITLE");this.element=new Pt(a,void 0,this.j);R(this,this.element);Rt(this.element,100);this.element.ib(this.label);this.priority=0;this.B=!0}A(U7,Zt);function V7(a,b){a.o!=b&&(a.o=b,a.j.Ia(b),a.element.xe(a.D(b)))}U7.prototype.D=function(a){return a.bd.name};U7.prototype.F=function(a){this.element.we();V7(this,a);this.element.ac("change")};function W7(a){Zt.call(this);this.label=Y("YTP_AUTOPLAY");this.element=new DB(a,[Y("YTP_OFF"),Y("YTP_ON")]);R(this,this.element);this.element.ib(this.label);FB(this.element,2050);this.priority=4;this.Ia(0)}A(W7,Zt);W7.prototype.Ia=function(a){this.element.Ia(a)};function X7(a){Rs.call(this,a);Ts(this,6275);a=Y("YTP_DARUDE_SANDSTORM");Ss(this,"ytp-button-darude");this.ib(a);this.o=a;this.B=null;this.j=0;this.A=[];this.G=!1;this.M("click",this.H)}A(X7,Rs);var Y7=["//www.gstatic.com/youtube/media/DUDUDUDU0.mp3","//www.gstatic.com/youtube/media/DUDUDUDU1.mp3","//www.gstatic.com/youtube/media/DUDUDUDU2.mp3","//www.gstatic.com/youtube/media/DUDUDUDU3.mp3"];
X7.prototype.H=function(){if(this.B){var a=this.A[this.j];a.setAttribute("autoplay",!1);a.pause();a.currentTime=0;this.j=(this.j+1)%Y7.length;a=this.A[this.j];a.setAttribute("autoplay",!0);a.play();O(this.element,"ytp-button-darude-loading",0==a.readyState)}else{for(var a=["div","ytp-button-darude-audio"],b=0;b<Y7.length;b++)a.push(["audio","ytp-button-darude-audio-"+b.toString(),{src:Y7[b],autoplay:b==this.j,preload:"auto"}]);this.B=new is(a);this.B.ea(this.element);for(b=0;b<Y7.length;b++)this.A[b]=
this.B.j["ytp-button-darude-audio-"+b.toString()];N(this.element,"ytp-button-darude-loading");ss(this,this.element,"loadeddata",this.O,this,!0);ss(this,this.element,"error",this.J,this,!0)}};X7.prototype.O=function(a){this.A[this.j]==a.srcElement&&0!=a.srcElement.readyState&&qh(this.element,"ytp-button-darude-loading")};X7.prototype.J=function(a){for(var b=0;b<this.A.length;b++)if(this.A[b]==a.srcElement){this.G=!0;this.$();break}};X7.prototype.ua=function(){this.G||X7.K.ua.call(this)};function Z7(a){Rs.call(this,a);Ts(this,6900);$7(this)}A(Z7,Rs);function $7(a){Ss(a,"ytp-button-fullscreen-enter");var b=Y("YTP_FULLSCREEN");a.ib(b);a.o=b};function a8(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.B=a;this.A=c||!1;this.j=[];this.o=[]}A(a8,X);f=a8.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}}wb(this.j,b,0,a);b8(this)};f.remove=function(a){qb(this.j,a);b8(this)};
function b8(a){Ci(a.o);a.o=[];var b,c,d=[],e=1==a.j.length||a.A;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].C;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.B;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.B?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.Ba(k.element);c.Ba(c8(a,k),"more");d.push(c)}a.Ba(d)}function c8(a,b){if(b.C){var c=Y("YTP_OPTIONS"),d=new Rs(a.B,"ytp-menu-more-options",c);Ts(d,2600);d.Ba(c);a.o.push(d);d.M("click",b.H,b);return d}return null}f.focus=function(){this.Q().focus()};
f.jj=function(){return this.j.length};f.P=function(){this.j=[];b8(this);a8.K.P.call(this)};function d8(a){Rs.call(this,a,"ytp-button-next",Y("YTP_NEXT"),Y("YTP_NEXT"));Ts(this,6051)}A(d8,Rs);function e8(a){Rs.call(this,a);Ts(this,6E3);f8(this)}A(e8,Rs);function f8(a){Ss(a,"ytp-button-play");var b=Y("YTP_PLAY");a.ib(b)};function g8(a){Rs.call(this,a,"ytp-button-prev",Y("YTP_PREVIOUS"),Y("YTP_PREVIOUS"));Ts(this,6050)}A(g8,Rs);function h8(a){Zt.call(this);this.F=this.G="unknown";this.I={};this.label=Y("YTP_QUALITY_TITLE");this.o=new Ut(a,y(this.D,this),y(this.J,this),!0);R(this,this.o);this.j=NaN;this.element=new Pt(a,void 0,this.o);R(this,this.element);Rt(this.element,100);this.element.ib(this.label);this.priority=-1;this.B=!0}A(h8,Zt);h8.prototype.zl=function(){return this.G};
function i8(a,b,c){a.G=b;a.F=c;a.o.Ia(c);var d=a.o;null!=d.j&&Tt(Wt(d,d.j),!1);null!=b&&Tt(Wt(d,b),!0);d.j=b;"auto"==c&&c!=b?(b=Y("YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:j8(a,b)}),b=new BF(b)):b=a.D(b);isNaN(a.j)||(By()?Ey(a.j):M(a.j));By()?a.j=Dy(y(a.element.xe,a.element,b),0):a.j=L(y(a.element.xe,a.element,b),0)}function j8(a,b){var c=Zv[b],c=c?c+"p":$f("YTP_AUTO"),d=a.I[b];return d&&30<d?c+d.toString():c}
h8.prototype.D=function(a){var b=["span","",j8(this,a)],c;"highres"==a?c="8K":"hd2880"==a?c="5K":"hd2160"==a?c="4K":0==a.indexOf("hd")&&(c="HD");c&&(b.push(" "),b.push(["sup","",c]));return new is(b)};h8.prototype.J=function(a){this.element.we();if("auto"!=this.F||"auto"!=a)i8(this,a,a),this.element.ac("change")};h8.prototype.P=function(){By()?Ey(this.j):M(this.j);h8.K.P.call(this)};function k8(a){TC.call(this,a,"ytp-size-toggle-large",Y("YTP_THEATER_MODE"),"ytp-size-toggle-small",Y("YTP_DEFAULT_VIEW"));Ts(this,6800)}A(k8,TC);k8.prototype.update=function(){k8.K.update.call(this);this.element.removeAttribute("aria-pressed")};function l8(a){Zt.call(this);this.o=2;this.label=Y("YTP_SPEED_TITLE");this.j=new Ut(a,y(this.D,this),y(this.F,this));R(this,this.j);this.element=new Pt(a,void 0,this.j);R(this,this.element);Rt(this.element,100);this.element.ib(this.label);m8(this,this.o);this.priority=1;this.B=!0}A(l8,Zt);function m8(a,b){a.o=b;a.j.Ia(b);a.element.xe(a.D(b))}l8.prototype.D=function(a){return 1==a?Y("YTP_NORMAL_SPEED"):a.toString()};l8.prototype.F=function(a){this.element.we();m8(this,a);this.element.ac("change")};function n8(){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"]}A(n8,X);n8.prototype.ig=function(a){ns(this.template,"duration",Zs(a))};function o8(a,b,c){O(a.element,"ytp-time-liveonly",b&&!c);O(a.element,"ytp-time-live",b&&c)}
n8.prototype.P=function(){this.liveBadge=null;n8.K.P.call(this)};function p8(a,b){this.F=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 Rs(this.F,"ytp-button-volume",Y("YTP_BUTTON_VOLUME"));R(this,this.j);this.j.ea(this.element,0);Ts(this.j,6100);this.B=this.template.j["ytp-volume-panel"];this.A=this.template.j["ytp-volume-slider"];
this.C=this.template.j["ytp-volume-slider-foreground"];this.o=b}A(p8,X);p8.prototype.ib=function(a){this.j.ib(a)};
p8.prototype.setVolume=function(a,b){var c=Y(b?"YTP_UNMUTE":"YTP_MUTE");this.j.o=c;var c=Math.round(a),d=c+"% "+Y("YTP_SCREENREADER_VOLUME_SETTING")+(b?" "+Y("YTP_SCREENREADER_VOLUME_MUTED"):"");this.ib(Y(b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+Y("YTP_SCREENREADER_CONTROL_TOGGLE"));ns(this.template,"valuenow",c);ns(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");vi(this.j.Q(),"value",c);c=(this.o?85:54)-
(this.o?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.C.style.left=c+"px"};function q8(a,b){ts.call(this,["div","html5-video-controls"]);this.Da=a;this.wa=new Nt(this);this.G={};this.C=null;this.ga=new Nt(this);this.sa=-1;this.oa=null;this.la=new A3(a,b);R(this,this.la);this.la.ea(this.element);var c=new is(["div","html5-player-chrome"]);R(this,c);c.ea(this.element);this.Ha=c=c.Q();this.na=this.Z=!1;this.X=new g8(a);R(this,this.X);this.X.M("click",pa(this.L,"previousvideo"),this);this.X.ea(c);this.B=new e8(a);R(this,this.B);this.B.ea(c);this.B.M("click",this.sC,this);this.aa=
new d8(a);R(this,this.aa);this.aa.M("click",pa(this.L,"nextvideo"),this);this.aa.ea(c);var d=new is(["span","ytp-volume-hover-area"]);R(this,d);d.ea(c);this.j=new p8(a,b);R(this,this.j);this.j.ea(d.Q());this.j.j.M("click",this.bD,this);this.da=new o3(this.j.A,!0);R(this,this.da);this.da.subscribe("dragstart",this.jC,this);this.da.subscribe("dragmove",this.iC,this);this.da.subscribe("dragend",this.hC,this);this.F=new n8;R(this,this.F);this.F.ea(d.Q());this.wa.M(this.F.liveBadge,"click",pa(this.L,"seekto",
Infinity));this.Ca=new o3(this.j.Q());R(this,this.Ca);this.Ca.subscribe("hoverstart",this.mG,this);this.ya=new o3(d.Q());R(this,this.ya);this.ya.subscribe("hoverend",this.lG,this);this.J=new Z7(a);R(this,this.J);this.J.ea(c);this.J.M("click",this.EB,this);this.A=new k8(a);R(this,this.A);this.A.$();this.A.ea(c);this.A.M("click",this.wB,this);this.I=new Rs(a,"ytp-button-watch-on-youtube",Y("YTP_URL_NAVIGATE"),Y("YTP_URL_NAVIGATE"));R(this,this.I);Ts(this.I,6700);this.I.ea(c);this.I.M("click",this.nC,
this);this.N=new iD(a);R(this,this.N);r8(this,"__default__",this.N,this.I.Q());this.va=new Rs(a,"ytp-button-playlist",Y("YTP_PLAYLIST"),Y("YTP_PLAYLIST"));Ts(this.va,6400);this.va.ea(c);R(this,this.va);this.o=new Rs(a,"ytp-button-watch-later",Y("YTP_WATCH_LATER"));a.Ag(this.o.Q(),"YTP_WATCH_LATER_AS_2",Y("YTP_WATCH_LATER"));this.o.ea(c);Ts(this.o,6300);this.o.ib(Y("YTP_WATCH_LATER"));R(this,this.o);this.o.M("click",this.mC,this);this.T=null;this.H=new h8(a);R(this,this.H);this.H.M("change",this.dB,
this);this.R=new l8(a);R(this,this.R);this.R.M("change",this.xB,this);this.O=new U7(a);R(this,this.O);this.O.M("change",this.Fz,this);this.U=new W7(a);R(this,this.U);this.U.M("change",this.Iz,this)}A(q8,ts);f=q8.prototype;f.Ku="__default__";f.qm=!1;f.disable=function(a){s8(this,a,!0)};
function s8(a,b,c){for(var d=0;d<b.length;d++)switch(b[d]){case "audio":O(a.element,"disabled-control-audio",c);break;case "play_pause":var e=a.B;c?e.disable():Us(e);break;case "seek":O(a.element,"disabled-control-seek",c)}}f.setVolume=function(a,b){if(this.sa!=a||this.oa!=b)this.j.setVolume(a,b),this.sa=a,this.oa=b};f.ig=function(a){this.F.ig(a)};f.bD=function(){this.L("mutetoggled")};
function t8(a,b){if(b){if(a.qm){var c=a.B;Ss(c,"ytp-button-stop");var d=Y("YTP_STOP")}else c=a.B,Ss(c,"ytp-button-pause"),d=Y("YTP_PAUSE");c.ib(d)}else f8(a.B)}function u8(a){var b=a.aa;a.Z||a.na?b.ua():b.$();b=a.X;a.Z?b.ua():b.$()}f.sC=function(){this.L("playpausetoggled")};f.mG=function(){N(this.j.Q(),"ytp-volume-control-hover")};f.lG=function(){qh(this.j.Q(),"ytp-volume-control-hover")};f.jC=function(){N(this.j.Q(),"ytp-volume-slider-active");this.L("volumechangestart")};
f.iC=function(a){a=(a-Rg(this.j.A).x)/(this.j.o?85:54)*100;a={volume:Pc(a,0,100),muted:!1};this.L("volumechanged",a)};f.hC=function(){qh(this.j.Q(),"ytp-volume-slider-active");this.L("volumechangeend");this.j.B.blur()};f.EB=function(){this.L("fullscreentoggled")};function v8(a,b){var c=a.G[b.A||"__default__"].menu;c&&c.add(b)}function w8(a,b){var c=a.G[b.A||"__default__"].menu;c&&c.remove(b)}
function r8(a,b,c,d){if(!a.G[b]){if("remote"==b){var e=be(a.N.Q());d=c.Q();e.insertBefore(d,e.childNodes[0]||null)}else e=c.Q(),d=d||a.N.Q(),d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling);e=c.M("click",pa(a.kG,b),a);c.Q().getAttribute("aria-label");d=c.Q().id;d=new a8(a.Da,d,"__default__"!=b);d.$();d.ea(a.element);a.G[b]={menu:d,button:c,ew:e}}}function x8(a,b){var c=a.G[b];c&&(c.button.detach(),c.button.Ka(c.ew),c.menu.dispose(),delete a.G[b])}
f.mC=function(){var a=this.o.Q();if(!oh(a,"html5-async-progress")){var b=oh(a,"html5-async-success");T7(a,"html5-async-progress");this.L("watchlater",b)}};f.nC=function(){this.L("watchonyoutube")};f.jG=function(a){a.target&&(ce(this.C.button.Q(),a.target)||ce(this.C.menu.Q(),a.target))||this.Of()};f.Of=function(){this.L("menu_show")};f.kG=function(a){var b=this.G[a];b&&b.menu.jj()&&(b.button.j?this.Of():this.L("menu_show",a))};f.Fz=function(){this.L("audiotrackchanged",this.O.o);this.Of()};
f.dB=function(){var a=this.H.zl();this.L("qualitychanged",a);this.L("controlclick","quality-"+a);this.Of()};f.wB=function(){var a=this.A;a.j?VC(a):UC(a);this.A.Q().focus();this.L("sizechangerequested",1==this.A.j)};f.xB=function(){var a=this.R.o;this.L("speedchanged",a);this.L("controlclick","speed-"+a);this.Of()};f.Iz=function(){this.L("autonavchangerequest",1==this.U.element.o?2:1)};
f.cA=function(a){var b=a.target;a=b==this.B.Q()?"playpause":b==this.j?"volume":b==this.F?"time":b==this.N?"settings":b==this.o?"watchlater":b==this.I?"youtube":b==this.J.Q()?"fullscreen":b==this.A?"size":b==this.aa.Q()?"next":b==this.X.Q()?"previous":a.target.className;this.L("controlclick",a)};f.focus=function(){this.B.Q().focus()};f.P=function(){this.wa.removeAll();this.ga.removeAll();this.C=null;for(var a in this.G)x8(this,a);this.sa=-1;this.oa=null;q8.K.P.call(this)};function y8(a){z8("add_to_watch_later_list",a)}function A8(a){z8("delete_from_watch_later_list",a)}function z8(a,b){Ij("/playlist_video_ajax?action_"+a+"=1",{method:"POST",mg:{feature:b.pK||null,authuser:b.rb||null,pageid:b.pageId||null},Lb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.qK||null,delete_from_playlists:b.uK||null,add_to_playlists:b.lK||null,plid:Uf("PLAYBACK_ID")||null},context:b.context,onError:b.onError,qb:b.qb,Ac:b.Ac})};function B8(a,b){Q.call(this);this.H=a;this.F=[];this.I=b;this.G=[]}A(B8,Q);function C8(a,b,c){a.F.push(a.H.subscribe(b,c,a))}function D8(a,b,c){a.G.push(a.I.subscribe(b,c,a))}function E8(a){for(var b=0;b<a.F.length;b++)a.H.Rb(a.F[b]);for(b=0;b<a.G.length;b++)a.I.Rb(a.G[b])}B8.prototype.P=function(){E8(this);B8.K.P.call(this)};function F8(a,b,c,d){B8.call(this,a,b);this.D=!1;this.C=a;this.j=b;this.A=c;this.o=0;this.B=d;a=a.V();a.color&&N(this.j.I,a.color);a.Ae&&(a=this.j,a.o=new y3,a.o.ea(a.Q()),R(a,a.o));G8(this)}A(F8,B8);
function G8(a){E8(a);a.D=!0;C8(a,"cuerangesadded",a.$w);C8(a,"cuerangesremoved",a.ax);C8(a,"cuerangemarkersupdated",a.Zw);C8(a,"progresssync",a.Xt);C8(a,"resize",a.Kx);C8(a,"seekto",a.UF);C8(a,"videodatachange",a.VF);C8(a,"videoplayerreset",a.Wt);C8(a,"videoready",a.Rx);D8(a,"beginseeking",a.Qw);D8(a,"endseeking",a.fx);D8(a,"seekto",a.Ow)}f=F8.prototype;f.$w=function(a){J3(this.j,a)};f.ax=function(a){for(var b=this.j,c=0;c<a.length;c++)K3(b,a[c])};f.Zw=function(a){J3(this.j,a)};
f.Kx=function(a){var b=this.j;b.A=a.width;B3(b);b=this.A;b.o=a;b.j&&I7(b);b=this.B;!b.o||b.C==a.width&&b.Z||(b.C=a.width,F7(b,!0))};
f.UF=function(a){var b=this.C.nc.Lh();a=v3(new s3(b.seekableStart,b.seekableEnd),a);b=this.j;H3(b,n(a)?a:b.C,n(void 0)?void 0:b.R);b=this.B;if(b.o){b.J&&b.Pk();b.T=b.R*a-b.C/2;Lg(b.A,-1*b.T);var c=u3(b.N,a),d=DH(b.o,b.j),d=b.o.j[d].sk(c);G7(b,d);ee(b.la,Zs(b.J?c-b.N.j:c));b.aa.Oi()}b=this.A;b.j&&(a=u3(b.B,a),c=DH(b.j,b.o.width),b.A=b.j.j[c].sk(a),wI(b.C,b.A,b.o.width),I7(b))};
f.Wt=function(a){if(1!=a.getPlayerType()){if(!this.D)return;E8(this);this.D=!1;C8(this,"videoplayerreset",this.Wt)}else if(!this.D){G8(this);var b=this.j;Vd(b.oa);b.H={};b.U={};J3(this.j,a.F.j.j||[])}this.j.o&&this.j.o.reset();this.o&&(M(this.o),this.o=0);this.B.$();this.A.$();this.A.reset();this.Xt()};
f.VF=function(a,b){var c=new s3(0,b.lengthSeconds),d=this.j;d.j=c;I3(d);B3(d);this.j.o&&(this.j.o.o=c);this.B.N=c;this.A.B=c;c=this.j;d=b.clipEnd;c.T=b.clipStart;c.O=d;G3(c);H3(c,c.C,c.R);c=this.j;d=!!b.ba;c.$a=d;O(c.la,"ytp-fast-load",d)};
f.Rx=function(a){if(this.j.o){var b=this.j.o;b.zi||(LI(a)?(N(b.Q(),"with-thumbnail"),b.uf=LI(a),b.Yh=MI(a),b.Yh.subscribe("l",b.bG,b)):b.reset())}b=this.B;b.U&&(Vd(b.A),b.B=0,b.F=0);qh(b.Q(),"enabled");b.o=LI(a);b.G=MI(a);b.J=a.Sa;b.o?(N(b.Q(),"enabled"),b.G.subscribe("l",b.ls,b),F7(b),Ey(b.H),b.H=Dy(y(b.Pk,b))):b.$();b=this.A;b.j=LI(a);b.C=MI(a);b.j||b.$();this.j.fb=a.Ab;L3(this.j,!PI(a))};
f.Xt=function(a,b){var c=this.C.nc.Lh(),d=n(a)?a:c.current,e=new s3(c.seekableStart,n(b)?b:c.seekableEnd),c=v3(e,c.loaded,0),d=v3(e,d,0),g=this.j;g.j=e;I3(g);B3(g);g=this.j;H3(g,n(d)?d:g.C,n(c)?c:g.R);this.j.o&&(this.j.o.o=e);this.B.N=e;this.A.B=e};f.Qw=function(a){P2(this.C.o);null==a||isNaN(a)||this.C.ik("chaptermarker",{position:a});this.o&&M(this.o);this.o=L(y(this.QC,this),200)};f.fx=function(){this.C.o.mk();this.B.$();this.A.$();this.o&&(M(this.o),this.o=0)};f.Ow=function(a,b){Au(this.C,a,b)};
f.QC=function(){this.B.ua();this.A.ua()};f.P=function(){F8.K.P.call(this)};function H8(a,b,c,d){B8.call(this,a,b);C8(this,"applicationplayerstatechange",this.Lw);C8(this,"controlsdisabled",this.Ww);C8(this,"controlsenabled",this.Xw);C8(this,"liveviewshift",this.hx);C8(this,"fullscreentoggled",this.gx);C8(this,"presentingplayerstatechange",this.Bx);C8(this,"progresssync",this.iG);C8(this,"videoplayerreset",this.hG);C8(this,"videodatachange",this.gG);C8(this,"onPlaybackQualityChange",this.Hx);C8(this,"onVolumeChange",this.Xx);C8(this,"menu_button_add",this.lx);C8(this,"menu_button_remove",
this.mx);C8(this,"menu_item_add",this.nx);C8(this,"menu_item_remove",this.ox);C8(this,"menu_show",this.eG);C8(this,"onPlaybackRateChange",this.Ax);C8(this,"onPlaylistUpdate",this.Ex);C8(this,"autonavchange",this.dG);D8(this,"fullscreentoggled",this.Yw);D8(this,"mutetoggled",this.vx);D8(this,"nextvideo",this.wx);D8(this,"playpausetoggled",this.zx);D8(this,"previousvideo",this.Fx);D8(this,"qualitychanged",this.Ix);D8(this,"audiotrackchanged",this.Nw);D8(this,"seekto",this.fG);D8(this,"sizechangerequested",
this.Ox);D8(this,"speedchanged",this.Px);D8(this,"volumechanged",this.Yx);D8(this,"volumechangestart",this.Wx);D8(this,"volumechangeend",this.Vx);D8(this,"watchlater",this.Zx);D8(this,"watchonyoutube",this.$x);D8(this,"controlclick",this.Vw);D8(this,"showdialog",this.PC);D8(this,"menu_show",y(a.hj,a));D8(this,"autonavchangerequest",this.cG);this.j=a;this.o=b;this.A=NaN;this.B=new F8(a,b.la,c,d);R(this,this.B);a=a.V();a.Md&&(b=this.o,this.j.V().F?UC(b.A):VC(b.A),b.A.ua());a.wf||this.o.o.$();a.La&&
this.o.J.ua();a.ga&&(b=this.o,c=b.R,Vt(c.j,Mu(this.j)),d=2300,Yt(c.j,d++),d=d++,Ts(c.element.j,d),v8(b,b.R));if(a.experiments.o)for(b=this.o,c=[b.B,b.aa,b.X,b.j,b.F,b.o,b.I,b.J,b.N,b.A],d=0;d<c.length;d++)b.wa.M(c[d].Q(),"click",b.cA,b);Hu(a)&&this.o.I.$();I8(this)}A(H8,B8);f=H8.prototype;f.Ww=function(a){this.o.disable(a)};f.Xw=function(a){s8(this.o,a,!1)};f.hx=function(a){O(this.o.F.element,"ytp-time-live-dvr",!a)};
f.gx=function(a){var b=this.o;this.j.V();a?(a=b.J,Ss(a,"ytp-button-fullscreen-exit"),b=Y("YTP_EXIT_FULLSCREEN"),a.ib(b),a.o=b):$7(b.J);J8(this)};function I8(a){if(a.j&&a.j.ta&&a.j.V){var b=a.j.ta();if(b){var c=a.j.V();c.experiments.Ca&&b.getVideoData().ob&&"adunit"!=c.ka&&2!=b.getPlayerType()?(a=a.o,a.T||(a.T=new X7(a.Da),R(a,a.T),a.T.ea(a.Ha)),a.T.ua()):(a=a.o,a.T&&a.T.$())}}}
f.Bx=function(a){W(a.state,2)||(0<ux(a,8)?t8(this.o,!0):0>ux(a,8)?t8(this.o,!1):0>ux(a,2)&&t8(this.o,W(a.state,8)));0>ux(a,16)&&K8(this,this.j.getCurrentTime());I8(this)};f.Lw=function(a){if(W(a.state,2)&&!At(this.j)){a=this.o.B;Ss(a,"ytp-button-replay");var b=Y("YTP_REPLAY");a.ib(b)}};f.hG=function(a){L8(this)&&(K8(this,a.getCurrentTime()),T7(this.o.o.Q()),m8(this.o.R,1),a.getVideoData()&&M8(this,a.getVideoData()))};f.gG=function(a,b){I8(this);L8(this)&&M8(this,b)};
function J8(a){a.j.B?(a=a.o,a.Z=!0):(a=a.o,a.Z=!1);u8(a)}function N8(a){!rt(a.j.V())||a.j.B||a.j.getVideoData().Sa?(a=a.o,a.na=!1,u8(a),w8(a,a.U)):(a=a.o,a.na=!0,u8(a),v8(a,a.U))}
function M8(a,b){a.o.ig(b.lengthSeconds);var c=a.j.ta(),d=a.o,e=Qu(c),g=c.j.A?iw(c.j.A):{},h=d.H;h.I=g;Vt(h.o,e);Yt(h.o,2700);Ts(h.element.j,2701);e.length?v8(d,d.H):w8(d,d.H);d=a.o;e=Nu(a.j);g=O8(a.j);i8(d.H,e,g);jD(d.N,e);d=a.o;c=Dv(c);Vt(d.O.j,c);1<c.length?v8(d,d.O):w8(d,d.O);(c=Bv(a.j))&&V7(a.o.O,c);c=a.o;d=b.Sa;e=b.Ab;c.qm=d&&!e;o8(c.F,d,e);c=a.j.ta(1).getPlayerState();W(c,2)||t8(a.o,W(c,8));J8(a);N8(a)}f.Hx=function(a){if(L8(this)){var b=this.o,c=O8(this.j);i8(b.H,a,c);jD(b.N,a)}};
f.Xx=function(a){this.o.setVolume(a.volume,a.muted)};f.nx=function(a){v8(this.o,a)};f.ox=function(a){w8(this.o,a)};f.lx=function(a,b){r8(this.o,a,b)};f.mx=function(a){x8(this.o,a)};
f.eG=function(a){if(a==q8.prototype.Ku&&this.j.F.isAvailable("captions")){var b=Ru(this.j.F,"captions");b&&!b.loaded&&b.load()}b=this.o;b.ga.removeAll();b.C&&(document.activeElement&&ce(b.C.menu.Q(),document.activeElement)&&be(b.element).focus(),b.C.menu.$(),VC(b.C.button),b.C=null);a&&(a=b.G[a])&&(b.L("showdialog"),b.C=a,UC(a.button),a.menu.ua(),a.menu.focus(),b.ga.M(window,"blur",b.Of),b.ga.M(document,"click",b.jG))};f.iG=function(a){K8(this,n(a)?a:this.j.nc.Lh().current)};
f.Yw=function(){Iu(this.j,!this.j.V().cb)};f.vx=function(){this.j.I.muted?Eu(this.j):Du(this.j)};f.wx=function(){dv(this.j)};f.zx=function(){P8(this.j)};f.Fx=function(){ev(this.j)};f.Ix=function(a){zv(this.j,a,1)};f.Nw=function(a){var b=this.j.ta(1);b&&Cv(b,a)};f.PC=function(a){this.j.En(a)};f.fG=function(a){Au(this.j,a,!0)};f.Ox=function(a){var b=this.j;Iu(b,!1);a!=b.j.F&&(b.j.F=a,b.L("SIZE_CLICKED",a))};f.Px=function(a){Lu(this.j,a)};f.Wx=function(){this.A=Cu(this.j)};
f.Yx=function(a){Q8(this.j,a)};f.Vx=function(){Cu(this.j)||Q8(this.j,{muted:!0,volume:this.A})};f.$x=function(){p7(this.j)};f.Vw=function(a){a7(this.j,a)};f.Zx=function(a){(a?A8:y8).call(this,R8(this,a?this.zB:this.AB))};f.Ax=function(a){m8(this.o.R,a)};f.Ex=function(){J8(this);N8(this)};f.dG=function(a){this.o.U.Ia(1==a?0:1)};f.cG=function(a){this.j.L("onAutonavChangeRequest",1!=a)};
function R8(a,b){return{videoIds:Wu(a.j).videoId,rb:a.j.V().rb,pageId:a.j.V().pageId,qb:b,onError:a.pA,context:a}}f.AB=function(){var a=this.o.o.Q();T7(a,"html5-async-success");this.j.L("WATCH_LATER_VIDEO_ADDED")};f.zB=function(){T7(this.o.o.Q());this.j.L("WATCH_LATER_VIDEO_REMOVED")};f.pA=function(a,b){var c=b&&b.error_message,d=this.o.o.Q();T7(d,"html5-async-error");if(c){var e=K7.getInstance(),g=M7(d);O7(d,c);L7(e,d);bz(d,g)}};function L8(a){return 1==a.j.ta().getPlayerType()}
function K8(a,b){if(L8(a)&&(ns(a.o.F.template,"current",Zs(b)),14400<b&&a.j.getVideoData().Ab)){var c=a.o;c.qm=!0;o8(c.F,!0,!1)}};var S8={0:[],1:["autohide-controls"],2:["autohide-controls-aspect","autohide-controls-fullscreen","autominimize-progress-bar-non-aspect"],3:["autominimize-progress-bar"]};
function T8(a){L6.call(this,a);this.Ca=this.da=this.ga=this.J=this.Xa=this.G=null;this.ya=this.hb=this.La=!1;a=a.V();if("1"==a.o){this.J=new q8(this.B,a.gd);R(this,this.J);this.J.ea(this.element);this.ga=new H7(this.B);var b=this.ga.Q();this.A.appendChild(b);R(this,this.ga);this.da=new E7(this.B.vb().width);this.da.ea(this.J.la.Q(),0);R(this,this.da);this.Ca=new H8(this.j,this.J,this.ga,this.da);R(this,this.Ca)}this.O=new g6(60);R(this,this.O);N(this.O.element,"html5-video-loader");N(this.O.element,
"html5-center-overlay");N(this.O.element,"ytp-scalable-icon-grow");this.O.ea(this.A);this.fb=new X(["div","ytp-clickguard"]);R(this,this.fb);this.fb.ea(this.element);this.U=new J7(a.isMobile,a.Pb,a.vf);R(this,this.U);this.U.ea(this.A);this.U.M("click",this.lj,this);this.wa=null;this.I=new H6(new G6(this.element),y(this.nG,this),a.gd);this.I.subscribe("autohideupdate",y(this.pG,this));this.Ha=!0;this.C=new x7(this.B);R(this,this.C);this.C.$();this.C.ea(this.element)}A(T8,L6);f=T8.prototype;
f.Mk=function(){T8.K.Mk.call(this);this.j.subscribe("appstatechange",this.Mw,this);this.j.subscribe("initializingmode",this.by,this);this.j.subscribe("onDetailedError",this.qG,this);this.j.subscribe("clearvideooverlays",this.Il,this);this.j.subscribe("menu_show",this.oG,this)};f.Zn=function(){T8.K.Zn.call(this);this.ll(this.j.V());this.Nk()};f.nG=function(a){if(ce(this.A,a))return!1;for(;!a||!je(a);){if(!a||a==this.element)return!1;a=be(a)}return!0};
f.pG=function(a){O(this.element,"ytp-block-autohide",!a);this.j.Ta(a?"onHideControls":"onShowControls")};
f.ll=function(a){"light"==a.theme&&this.addClass("light-theme");(a.Jd||"0"==a.o)&&this.addClass("modest-branding");a.ld&&this.addClass("html5-hide-share");a.Be||this.addClass("html5-hide-volume");a.gd&&(this.addClass("html5-tablet"),N(document.body,"html5-tablet-body"));"1"==a.o&&U8(this)&&this.addClass("ideal-aspect");!this.I.j||this.addClass("ytp-block-autohide");O(this.element,"hide-info-bar",!a.Ld);"1"==a.o&&ph(this.element,S8[a.$a])};
f.Ug=function(a){T8.K.Ug.call(this,a);V8(this,a);this.G&&D7(this.G);"1"==this.j.V().o&&O(this.element,"ideal-aspect",U8(this));this.C.D&&y7(this.C)};f.Ll=function(){T8.K.Ll.call(this);V8(this,this.wb())};f.Mw=function(a){(this.Ha=2==a)?(this.addClass("cued-mode"),this.U.o(this.j.B,this.j.getVideoData())):this.removeClass("cued-mode")};
f.Kl=function(a){T8.K.Kl.call(this,a);if(this.element){W(a.state,2)&&this.U.o(this.j.B,this.j.getVideoData());this.I.yb(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}G(b,"ended-mode")&&At(this.j)&&qb(b,"ended-mode");this.wa&&rh(this.element,this.wa);ph(this.element,
b);this.wa=b;b=this.j.ta();c=b.getPlayerState();if(c=W(c,1)&&!W(c,2))c=b.getPlayerState(),c=!W(c,4);c&&2!=b.getPlayerType()?this.O.ua():this.O.$();0>ux(a,64)&&W8(this.j)}};
f.Nk=function(){this.j.V().gd&&(ss(this,this.element,"gesturechange",this.$B),ss(this,this.element,"gestureend",this.aC));dr?this.A.onclick=y(function(a){this.Em(new Ah(a))},this):this.Ok();var a,b=y(function(){var b=this.o;b&&(this.j.V().qc&&mr(b),Qs.fillPool(4),this.Ka(a))},this),c=new function(a){this.addEventListener=y(a.addEventListener,a);this.removeEventListener=y(a.removeEventListener,a);this.dispatchEvent=y(a.dispatchEvent,a)}(this.element);a=ss(this,c,"click",b,void 0,!0)};
f.Ok=function(){ss(this,this.A,"click",this.Em);ss(this,this.A,"dblclick",this.or)};f.lj=function(){P8(this.j)};f.Qt=function(){this.I.yb(2,!0)};f.Em=function(a){ne(a.target,"html5-stop-propagation")||(this.element.focus(),"3"!=this.j.V().o&&this.lj());a7(this.j,"screenclick")};f.or=function(a){6!=this.j.J&&this.j.V().La&&(!ne(a.target,"html5-stop-propagation")&&sz(this.j),a7(this.j,"screendoubleclick"))};f.$B=function(a){var b=a.scale,c=this.j.V().cb;b*(c?-1:1)>(c?-.7:1.3)&&sz(this.j);a.preventDefault()};
f.aC=function(a){a=a.scale;var b=this.j.V().cb;a*(b?-1:1)>(b?-.9:1.1)&&sz(this.j)};function U8(a){a=a.vb();a=(a.width/a.height).toFixed(1);return"1.3"==a||"1.8"==a}f.xg=function(a){if(a){var b=this.C;b.j=a;b.Ba(a);this.C.ua();this.I.yb(32,!0)}else b=this.C,b.j=null,b.Ba(null),this.C.$(),this.I.yb(32,!1);this.La=!!a;X8(this)};f.oG=function(a){a=!!a;O(this.element,"ytp-menu-shown",a);this.I.yb(64,a);this.hb=a;X8(this)};
function X8(a){var b=a.hb||a.La;a.ya!=b&&(a.ya=b,a.j.L("onAutonavPauseRequest",a.ya))}
f.qG=function(a){if(this.element){this.G||(this.G=new C7(this.j.nc),this.G.ea(this.element),R(this,this.G));var b=this.G,c=b.A.V(),d=a.message,e="embedded"==c.ka;a=a.messageKey;var g,h=!1;"YTP_ERROR_GENERIC"!=a||c.Pb?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==a?(g="https://get.adobe.com/flashplayer/",e=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=a||c.Pb||(g="/html5",a="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(g="//support.google.com/youtube/?p=player_error1",a="YTP_ERROR_GENERIC_WITH_LINK_2",
Hu(c)&&!c.I&&(h=!0));g&&(d=$f(a,{BEGIN_LINK:'<br/><a href="'+g+'"'+(e?' target="_blank"':"")+">",END_LINK:"</a>"}));Jh(b.o);b.o=[];ns(b.template,"content",new BF(d));if(h)for(c=y(b.B,b),d=b.element.getElementsByTagName("a"),e=0;e<d.length;e++)g=P(d[e],"click",c),b.o.push(g);this.G.ua()}};f.wb=function(){var a=this.j.V();return"0"==a.o||"3"==a.o||"1"==a.$a&&(a=this.j.ta(),!a||2!=a.getPlayerType())?this.vb():new H(this.A.clientWidth,this.A.clientHeight)};f.by=function(){this.G&&this.G.$()};
f.tf=function(){var a=this.j.V();vi(document.documentElement,"player-size",a.cb?"fullscreen":a.F?"large":"small");T8.K.tf.call(this)};f.Il=function(a){this.I.yb(16,a)};
function V8(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=Pc(e/g,.5,1),d=Fd("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++){var k=1==c?"":"scale("+c+")";Fg(d[h],"transform",k)}c=Pc(e/g*.33,.5,1);d=Fd("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)k=1==c?"":"scale("+c+")",Fg(d[h],"transform",k)}}f.$n=function(a){this.J&&t8(this.J,a)};
f.P=function(){this.I.dispose();Mh(this.element);Wd(this.Xa);T8.K.P.call(this);this.U=this.Xa=null};function Y8(a){T8.call(this,a);this.R=new X(["img",["html5-watermark","ytp-scalable-icon-shrink"],{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:Y("YTP_WATERMARK")}]);R(this,this.R);this.R.$();this.R.ea(this.element);this.R.M("click",this.qr,this);this.F=new Y6(this.j,this.element,this.B);R(this,this.F);this.F.ea(document.body);a.V().Pb&&N(this.F.Q(),"house-brand");this.va=null;this.H=new m7(this.B,this.j);this.H.ea(this.element);R(this,this.H);this.H.subscribe("title-click",
y(this.qr,this));this.H.subscribe("share-click",y(this.tB,this));this.la=new T6;R(this,this.la);this.la.ea(this.A);this.rs(Y8.o/Y8.j)}A(Y8,T8);Y8.o=3E4;Y8.j=50;f=Y8.prototype;f.xh=null;f.rs=function(a){var b;if(!(b=0>=a)){b=I("div",{"class":"html5-player-css-loaded"});document.body.appendChild(b);var c="none"==Jg(b,"display");Wd(b);b=c}b?0>=a&&Yf(Error("Warning: Player CSS missing.")):L(y(this.rs,this,a-1),Y8.j)};f.ll=function(a){Y8.K.ll.call(this,a);Z8(this);a.Md&&this.tf()};
function Z8(a){O(a.element,"ytp-tiny-mode",290>a.vb().width)}f.Ok=function(){this.j.V().La?this.va||(this.va=new R6(this.A,y(this.Em,this),y(this.or,this)),R(this,this.va)):Y8.K.Ok.call(this)};f.Ck=function(a){Y8.K.Ck.call(this,a);this.H&&this.H.update(a);var b=this.j;if(b.j.di?0:b.getVideoData().Z||b.j.Od){if(a=a.Z)this.R.Q().src=a;this.R.ua()}};
f.Nk=function(){Y8.K.Nk.call(this);var a=this.j.V();a.gd||(ss(this,this.element,"mousedown",this.pw,void 0,!0),ss(this,this.element,"keydown",this.fz,void 0,!0));a.ze||(ss(this,this.element,"keypress",this.QF),ss(this,this.element,"keydown",this.PF),ss(this,this.element,"keyup",this.RF))};f.fz=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&&N(this.element,"ytp-keyboard-focus")};
f.pw=function(){qh(this.element,"ytp-keyboard-focus")};
f.QF=function(a){var b=a.fh(),c=a.keyCode;if(!(b||a.metaKey||a.altKey||a.ctrlKey)){if(179==c||178==c)179==c&&(this.L("playpausetoggled",!0),b=!0),178==c&&(Gu(this.j),b=!0);98==c&&(this.j.Tc("onBackgroundChange"),b=!0);111==c&&(this.j.Tc("onTextOpacityChange"),b=!0);119==c&&(this.j.Tc("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.j.Tc("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.j.Tc("onFontSizeDecrease"),b=!0;99==c&&(this.j.Tc("onCaptionsToggle"),b=!0);102==c&&(sz(this.j),b=!0);32==c&&($8(this),
P8(this.j),b=!0);48<=c&&57>=c&&(Au(this.j,(c-48)/10*Bu(this.j)),b=!0);var d;if(d=63==c)d=this.j.V(),d=d.experiments.X?!Hu(d)||d.cb:!0;d&&(this.xh||(this.xh=new q7(this.B),R(this,this.xh),this.xh.M("done",this.Nl,this)),this.C.D?this.Nl():this.xg(this.xh),b=!0);b&&a.preventDefault()}this.j.Tc("onKeyPress",a);this.j.V().Kb()&&this.j.ph("onKeyPress",{keyCode:c,handled:b})};
f.Bk=function(a,b){switch(a){case 80:if(b)return ev(this.j),!0;break;case 78:if(b)return dv(this.j),!0;break;case 74:var c=this.j;Au(c,c.getCurrentTime()+-10,void 0,void 0,void 0);return!0;case 76:return c=this.j,Au(c,c.getCurrentTime()+10,void 0,void 0,void 0),!0;case 77:return this.j.I.muted?Eu(this.j):Du(this.j),!0;case 75:return P8(this.j),!0;case 190:if(b&&this.j.V().ga)for(var c=Mu(this.j),d=this.j.Z,e=0;e<c.length-1;e++)if(c[e]==d)return Lu(this.j,c[e+1]),!0;break;case 188:if(b&&this.j.V().ga)for(c=
Mu(this.j),d=this.j.Z,e=c.length-1;1<=e;e--)if(c[e]==d)return Lu(this.j,c[e-1]),!0}return Y8.K.Bk.call(this,a,b)};
f.PF=function(a){var b=a.fh(),c=a.keyCode;if(!(b||a.metaKey||a.altKey||a.ctrlKey)){if(38==c||40==c||37==c||39==c)38==c?(b=this.j,Q8(b,{volume:b.I.volume+5,muted:!1})):40==c?(b=this.j,Q8(b,{volume:b.I.volume-5,muted:!1})):37==c?(b=this.j,Au(b,b.getCurrentTime()+-5,!1,250,void 0)):39==c&&(b=this.j,Au(b,b.getCurrentTime()+5,!1,250,void 0)),b=!0;36==c&&(Au(this.j,0),b=!0);35==c&&(Au(this.j,Infinity),b=!0);27==c&&(Rh()?(Iu(this.j,!1),b=!0):this.F&&this.F.D?(this.F.$(),b=!0):"1"==this.j.V().o&&null!=this.J.C?
(this.j.hj(),b=!0):this.C.D&&(this.Nl(),b=!0));(b||this.Bk(a.keyCode,a.shiftKey))&&a.preventDefault()}this.j.Tc("onKeyDown",a);this.j.V().Kb()&&this.j.ph("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.j.V().cb})};f.RF=function(a){this.j.Tc("onKeyUp",a)};f.qr=function(){p7(this.j)};
f.tB=function(){if("detailpage"==this.j.V().ka){Iu(this.j,!1);var a=this.j,b=a.getVideoData();a.L("SHARE_CLICKED",{videoId:b.videoId,listId:b.playlistId,feature:"player_"+a.j.ka})}else a=!k7(this.H),this.j.bl(a),a&&l7(this.H,!0)};f.Il=function(a){Y8.K.Il.call(this,a);l7(this.H,!1)};f.Nl=function(){this.xg()};f.Vm=function(a){Y8.K.Vm.call(this,a);this.F&&(a?this.F.ea(this.Q()):this.F.ea(document.body),this.F.$());a&&"1"==this.j.V().o&&this.J.focus()};
function $8(a){var b=a.j.ta().getPlayerState(),c=a.j.getVideoData(),d="html5-bezel-pause";W(b,8)?c.Sa&&!c.Ab&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.la;d&&ns(a.template,"icon",d);d=a.j;d.B=!0;1==d.j||2==d.j||3==d.j||4==d.j||3==d.j||d.o.D||(Gs(d,!d.B),d.j=1,d.C())}f.lj=function(){$8(this);Y8.K.lj.call(this)};f.Ug=function(a){Y8.K.Ug.call(this,a);Z8(this)};
f.Ym=function(){Y8.K.Ym.call(this);if(!this.j.V().isMobile){var a=new u7(this.element,this.j.V());R(this,a);this.B.j=a;var b=Fd("ytp-tooltip-anchor",this.element);D(b,function(b){a.yg(b)})}};f.vb=function(a){var b=this.j.V(),c=Y8.K.vb.call(this);a||"detailpage"!=b.ka||b.cb||b.experiments.I||(c.height+=30);return c};f.wb=function(){var a=this.j.V();return"detailpage"!=a.ka||a.cb?Y8.K.wb.call(this):this.vb(!0)};f.cp=function(){var a=this.wb();"1"==this.j.V().o&&(a=a.clone(),a.height+=3);return a};var a9=t("yt.prefs.UserPrefs.prefs_")||{};q("yt.prefs.UserPrefs.prefs_",a9,void 0);var kv={"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 b9(a,b){U.call(this);var c=b;c instanceof Sh||(c=new Sh(c));this.X=c;this.j=new T_(this.X.args||{});R(this,this.j);lr=lr||this.j.experiments.H;this.A=new Y8(this);R(this,this.A);this.A.subscribe("resize",this.ID,this);this.J=1;this.Da={};this.da=null;this.I=this.j.jd?su():{volume:100,muted:!1};this.qc=this.j.Kb()?new rv(this,1):new wu(this,1);R(this,this.qc);this.nb=new Gv(this);R(this,this.nb);this.nc=new Gv(this,1);R(this,this.nc);this.la=this.C=null;this.va={};c=new nJ;SE(this.j)&&(c.o=
!0,c.j=.1);this.wa=new dJ(c);this.Ha={internalvideodatachange:this.Az,liveviewshift:this.DD,playbackready:this.Bz,playbackstarted:this.Cz,statechange:this.Dz,signatureexpired:this.vB};var c=new BJ,d=this.nb;c.o!=d&&(CJ(c),c.D={},c.o=d);d={};d.loaded=y(this.Kq,this);d.unloaded=y(this.Lq,this);d.destroyed=y(this.Am,this);d.command_pause=c9(this.pauseVideo,this);d.command_play=c9(this.se,this);d.command_seek=c9(this.qg,this);d.command_disable_controls=y(this.Gh,this);d.command_enable_controls=y(this.hk,
this);d.command_redirect_controls=y(this.Is,this);d.command_stop_redirect_controls=y(this.Rj,this);d.command_redirected_show_is_playing=y(this.A.$n,this.A);d.command_progress=y(this.Im,this);d.command_add_cuerange=y(this.Hs,this);d.command_remove_cuerange=y(this.Js,this);d.command_remove_cuerange_all=y(this.yr,this);d.command_preroll_ready=y(this.Ks,this);d.command_update_cuerange_markers=y(this.Ls,this);d.command_show_dialog=y(this.En,this);d.command_clear_video_overlays=y(this.bl,this);d.command_navigate_to_url=
y(this.Dn,this);d.command_log=y(this.ik,this);d.publish_external_event=y(this.ph,this);d.module_menu_button_add=y(this.aq,this);d.module_menu_button_remove=y(this.bq,this);d.module_menu_item_add=y(this.cq,this);d.module_menu_item_remove=y(this.dq,this);d.module_menu_show=y(this.hj,this);d.vss_segment=y(this.MD,this);c.F=d;this.F=c;R(this,this.F);this.N=new J_(this.j,"",this.F);c=new o2(this.j,1,this.N,this.A);d9(this,c,this.Ha);this.o=c;this.o.ba=this.wa;this.jc={beginseeking:this.Lz,endseeking:this.nA,
internalaudioformatchange:this.Ez,internalvideodatachange:this.KD,internalvideoformatchange:this.XB,progresssync:this.GD,seekto:this.JD,onLoadProgress:this.FA,onVideoProgress:this.bC,newlicensesession:this.ED,playbackready:this.YA,statechange:this.FD,connectionissue:this.Yz,heartbeatparams:this.CD,videoelementevent:this.LD};this.O=this.D=null;this.La=this.Xa=-1;this.G=this.H=null;this.R={};this.ga=null;this.ba={};this.oa=null;this.ob=0;this.Ca=!1;this.U=!0;this.sa=this.B=null;this.Z=1;this.mc=this.na=
this.$a=null;this.hb=this.fb=!1;this.ya=null;this.Qb=0;this.Rc=!1;this.ic=null;this.W=0;this.aa=null;this.ab=0;c=new Uu(this.X.args);if(NI(c)){q2(this.o,c,y(this.Hh,this));if("detailpage"==this.j.ka){var d=c.videoId,e=fj("yt-player-restore-playhead"),d=e?e[d]:void 0;d&&(c.startSeconds=d)}gj("yt-player-restore-playhead");(this.j.va||this.j.od&&this.j.experiments.aa)&&v2(this.o)}SH("fs",void 0,this.N.j);this.A.initialize(a);this.A.Zn();c=this.qc;d=this.A.Q();c.ue=d;for(var g in c.eg)c.ue[g]=c.eg[g];
for(g in c.bh)c.ue[g]=c.bh[g];g=y(this.uA,this);c=document;"onfullscreenchange"in c?d="fullscreenchange":(d=th+"fullscreenchange",d="on"+d in c?d:null);"msfullscreenchange"==d&&(d="MSFullscreenChange");this.$a=d?P(c,d,g):null;this.mc=P(window,"resize",y(this.kB,this));c=this.X.args;if(Lt()){e9(this);g=Wu(this);d=this.A.wb();this.j.fk=d;this.Ta("onVolumeChange",this.I);c&&uJ(c)&&((d="detailpage"==this.j.ka)&&(c.fetch=0),f9(this,c),d?tv(this):NI(g)||(c=this.B,d=y(this.Oq,this),c.ff=d,c.pf&&L(c.ff,0)));
if(c=this.X.args.jsapicallback)ha(c)||(c=t(c)),c&&c9(y(c,m,this.j.Fe),m);this.j.fb||(eq("embedded"==this.j.ka),this.j.Gg=mv(this.j)&&!nb(mq()));l4(this,this.o);this.j.va&&NI(g)?g9(this):"leanback"!=this.j.ka&&h9(this)}else tx(this.o,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.A.Ll();a7(this,"init")}A(b9,U);b9.o="defaultcontext";b9.j={};
b9.A=function(a,b){try{var c=b9.C(a);if(b9.j[c]){try{b9.j[c].dispose()}catch(d){Yf(d)}b9.j[c]=null}var e=new b9(a,b);zi(e,function(){b9.j[c]=null});return b9.j[c]=e}catch(g){throw Yf(g),g;}};b9.B=function(a,b){SH("pwc");var c=document.querySelector(a);document.registerElement(a,{});var d=c.querySelector("template"),c=c.createShadowRoot(),d=document.importNode(d.content,!0);c.appendChild(d);c=c.getElementById(b);d=t("ytplayer.config");c=b9.A(c,d);d.loaded=!0;return c};
b9.C=function(a){return x(a)?a:"player"+ja(a)};
function e9(a){a.C=Qs.getTag(!0);a.la=a.C;a.D&&G2(a.D,a.C);wr(a.C,a.Z);a.j.O?(a.na&&Jh(a.na),a.na=P(a.C,"volumechange",y(a.MA,a),!1)):a.C.setVolume(a.I.volume,a.I.muted);var b=a.A;b.o=a.C;if(!b.o||!b.A||b.ma())throw Error("videoElement_: "+!!b.o+", containerElement: "+!!b.A+", containerInitiallyTruthy: "+b.ob+", isDisposed: "+b.ma());if(!b.o.parentNode){var c=b.A;c.insertBefore(b.o,c.childNodes[0]||null)}b.Z=new wg(0,0,0,0);M6(b);N(b.o,"video-stream");N(b.o,"html5-main-video");c=b.j.V();"3"==c.o&&
b.o.setAttribute("controls",!0);c.N&&b.o.setAttribute("webkit-playsinline","");c.De&&(b.na=P(b.o,"click",y(b.o.play,b.o)));a.j.Db=a.C;mr(a.C)}function i9(a){if(a.C){a.na&&(Jh(a.na),a.na=null);a.D&&Ps(a.D);var b=a.A;b.o&&(Wd(b.o),b.o=null);a.j.Db=null;Qs.releaseTag(a.C);a.C=null}}function Ms(a,b){a.j.C?(a.ga&&(Lg(a.C,a.ga.left,a.ga.top),Vg(a.C,Bg(a.ga)),a.ga=null),vr(a.C),Ps(a.D),G2(a.D,a.C),wr(a.C,a.Z)):Qs.releaseTag(b)}
function l4(a,b){if(a.D!=b){a.D&&(CJ(a.F),o4(a));if(b!=a.o){var c=b.getPlayerType();a.va[c]=b}a.D=b;b.ba=a.wa;a.C&&G2(b,a.C);d9(a,b,a.jc);j9(a,b,b.getVideoData());b.W.j&&k9(a,"dataloaded",b,b.getVideoData());lr&&Er(b.getPlayerState())&&J2(b)}}function d9(a,b,c){for(var d in c)b.subscribe(d,c[d],a)}function o4(a){Ps(a.D);var b=a.D,c=a.jc,d;for(d in c)b.qa(d,c[d],a);b=a.D;b!=a.o&&(c=b.getPlayerType(),a.va[c]==b&&delete a.va[c]);a.D=null}f=b9.prototype;
f.subscribe=function(a,b,c){return b9.K.subscribe.call(this,a,b,c)};f.ta=function(a){return a?1==a?this.o:this.va[a]||null:this.D};function l9(a){var b=a.F,c=[mC.o,Bt,xx,xF,PE,FF,qu.j,IF,ZE,WI];c.push(lF.j);D(c,b.Fo,b);a.L("videoready",a.getVideoData())}f.Bz=function(){m9(this)||n9(this,5)};f.YA=function(a){m9(this)||(o9(this),Er(a.getPlayerState())&&this.se())};
function ov(a){!a.G&&a.nc.V().Gg&&(a.G=new B6(a),p9(a,a.G));if(a.G){var b=tq();lv(a.G,mq(),b);var c=a.G;c&&!c.ve&&c.Ja(a.nc)&&c.Pa();b&&a.G.load()}}
function p9(a,b){R(a,b);b.subscribe("loaded",a.Kq,a);b.subscribe("unloaded",a.Lq,a);b.subscribe("command_pause",c9(a.pauseVideo,a));b.subscribe("command_play",c9(a.se,a));b.subscribe("command_seek",c9(a.qg,a));b.subscribe("command_disable_controls",a.Gh,a);b.subscribe("command_enable_controls",a.hk,a);b.subscribe("command_redirect_controls",a.Is,a);b.subscribe("command_stop_redirect_controls",a.Rj,a);b.subscribe("command_redirected_show_is_playing",a.A.$n,a.A);b.subscribe("command_progress",a.Im,
a);b.subscribe("command_add_cuerange",a.Hs,a);b.subscribe("command_remove_cuerange",a.Js,a);b.subscribe("command_remove_cuerange_all",a.yr,a);b.subscribe("command_update_cuerange_markers",a.Ls,a);b.subscribe("command_preroll_ready",a.Ks,a);b.subscribe("command_show_dialog",a.En,a);b.subscribe("command_clear_video_overlays",a.bl,a);b.subscribe("command_log",a.ik,a);b.subscribe("command_navigate_to_url",a.Dn,a);b.subscribe("publish_external_event",a.ph,a);b.subscribe("module_menu_button_add",a.aq,a);
b.subscribe("module_menu_button_remove",a.bq,a);b.subscribe("module_menu_item_add",a.cq,a);b.subscribe("module_menu_item_remove",a.dq,a);b.subscribe("module_menu_show",a.hj,a);b.subscribe("command_log_timing",a.F.H,a.F)}function nv(a){a&&a.ve&&a.destroy()}f.Ta=function(a,b){this.L.apply(this,arguments);this.Tc.apply(this,arguments)};f.oh=function(a,b){var c=ub(arguments);this.j.Kb()&&this.D&&c.push(this.D.getPlayerType());this.L.apply(this,c)};f.canPlayType=function(a){return!!Kt().canPlayType(a)};
f.V=function(){return this.j};f.getVideoData=function(){return this.D.getVideoData()};function Wu(a){return a.o.getVideoData()}f.Hh=function(){var a=a0(this.j);qa(a,GJ(this.F));this.H&&qa(a,this.H.Ph());a.fs=this.j.cb;a.volume=Math.round(Cu(this));a.mos=this.I.muted?1:0;return a};f.En=function(a){this.A.xg(a)};function h9(a){a.L("initializingmode");n9(a,2)}
function g9(a){if(W(a.o.getPlayerState(),128))return!1;a.L("initializingmode");l4(a,a.o);n9(a,3);var b;(b=!a.j.C)||(t("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(i9(a),e9(a),G2(a.o,a.C));A2(a.o);if(W(a.o.getPlayerState(),128))return!1;q9(a,3);return a.Rc=!0}function m9(a){return mv(a.j)&&!!tq()}function c9(a,b){return function(){var c=Array.prototype.slice.call(arguments);L(function(){a.apply(b||this,c)},0)}}
f.Dn=function(a,b){b?b7(this,a):(window.ytspf||{}).enabled?spf.navigate(a):ty(a)};f.ik=function(a,b,c){var d=this.ta();b.event=a;this.j.cb&&(b.fs=1);d.B&&(a=d.B,b.rt=M1(a.j).toFixed(3),qa(b,$1(a.j)),qa(b,b2(a)),delete b.fexp,b=Aj(a.j.fa.A+"player_204",b),lg(b,c))};function Lu(a,b){if(!isNaN(b)&&a.C){var c=1,c=Mu(a),c=1>b?F(c,function(a){return a>=b}):lb(c,function(a){return a<=b});a.Z!=c&&(a.Z=c,a.o==a.D&&wr(a.C,c),a.L("onPlaybackRateChange",c))}}function Mu(a){return a.j.ga?et:[1]}
function Nu(a,b){var c=a.ta(b);return c&&c.getVideoData().j?c.getVideoData().j.video.quality:"unknown"}function Bv(a,b){var c=a.ta(b);return c?O2(c):a.getVideoData().X}function O8(a){return(a=a.ta(void 0))?Ev(E1(a.da,a.j)):"unknown"}function zv(a,b,c,d){if(a=a.ta(c))b=Ou(b,d||b,!0),Pu(a,"m",b)}f.getCurrentTime=function(a){return 3==this.Mf()?this.G.getCurrentTime():(a=this.ta(a))?a.getCurrentTime():0};function Bu(a,b){var c=a.ta(b);return c?c.hd():0}
function Zu(a,b){var c=a.o.getDebugInfo(b);if(a.D&&a.D!=a.o){var d=a.D.getDebugInfo(b),e;for(e in d)c["ad_"+e]=d[e]}c.debug_playbackQuality=Nu(a);c.debug_date=(new Date).toString();delete c.uga;delete c.q;return pg(c)}
function EF(a,b){var c=a.getVideoData(),d=!!c.va||!!c.Bh||!b;d&&a.C.setAttribute("mozStereoMode","1");Mt()&&(a.C.setAttribute("mozStereoMode",d?"1":"0"),c=GH[d?c.sa:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),Ud(document.documentElement,d),Ph(d,"3DModeEvent"))}f.Mf=function(){var a;if(a=this.G)a=this.G,a=!!a.A&&!!a.B;return a?3:this.ta().getPlayerType()};function yu(a,b){return 3==a.Mf()?Fr(a.G.W):2==b?a.La:a.Xa}
f.LD=function(a){var b=a.target;switch(a.type){case "loadedmetadata":SH("fvb",void 0,this.N.j);this.ob=L(y(this.A.tf,this.A),16);break;case "loadstart":SH("gv",void 0,this.N.j);break;case "progress":case "timeupdate":2<=Xq(b.buffered)&&SH("l2s",void 0,this.N.j)}};f.ED=function(a){if(this.hb){var b=this.Qb.toString();this.Qb++;this.ya[b]=a;a={request:ub(a.j[0]?a.j[0].message:null),sessionId:b,system:a.I.j,url:a.D};this.L("onNewLicenseSession",a)}else a.start()};
f.FA=function(a,b){this.oh("onLoadProgress",b)};f.bC=function(a,b){this.oh("onVideoProgress",b)};f.GD=function(){this.Im()};f.Im=function(a,b){this.L("progresssync",a,b)};
f.Dz=function(a){var b;if(b=0<ux(a,2))this.B&&("embedded"==this.j.ka||this.j.cb)&&At(this)?(dv(this),b=!0):b=!1,b=!b;b&&(this.pauseVideo(),W(a.j,32)&&this.o.mk(),this.j.isMobile&&Iu(this,!1));W(a.state,128)&&(b=a.state,Ku(this),b=b.j,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=$f(b.messageKey)),this.L("onError",kv[b.errorCode]||5),this.L("onDetailedError",b));this.L("applicationplayerstatechange",a);W(a.state,2)&&(a=this.getVideoData(),a.Sa&&!a.Ab&&this.Gh(["play_pause"]))};
f.FD=function(a){!W(a.state,32)&&0>ux(a,16)&&(!W(a.state,8)||W(a.state,64)||this.C.ended||W(a.state,2)||this.se());this.L("presentingplayerstatechange",a);this.Tc("onStateChange",a);q9(this,Fr(a.state));r9(this)};function s9(a){nv(a.H);nv(a.G);a.fb=!1;var b=[],c;for(c in a.R)Ju(a,c)&&b.push(c);a.R={};0<b.length&&a.L("controlsenabled",b);a.Rj();a.Da={};a=a.N;b=a.o;b.B={};b.A={};a.A=!1}function j9(a,b){CJ(a.F);Lu(a,1);a.Ta("videoplayerreset",b)}
function k9(a,b,c,d){if(a.C){if("dataloaded"==b)if(U_(c.V(),d.B),a.D==a.o){a.j.fb||eq("embedded"==a.j.ka);var e=m9(a),g;if(g=!e)g=Wu(a).mp&&!a.j.isMobile;if(g){var h="YTP_DEVICE_FALLBACK";gd||fr("iemobile")||fr("xbox")&&fr("trident")||fr("nintendo wiiu")||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");tx(a.o,"html5.unsupportedads",h,void 0)}else if(g=Wu(a),!(g.o||g.jf||g.hf||g.ba||g.aa)||e||GI(a.o.j)){II(g);e&&n9(a,6);e=!1;!a.H&&d6.Ja(a)&&(a.H=new d6(a),a.H&&p9(a,a.H),e=!0);try{(h=a.H)&&!h.ve&&
h.Ja(a.nc)&&h.Pa()}catch(k){Yf(k),a.o&&F2(a.o,"ad")}e&&(e=a.H,g=Wu(a),h=a.ta(),g.subscribe("cuepointupdated",e.dA,e),e.H=g,e=e6(e),null!=e&&(e.I=h));ov(a);l9(a)}else tx(a.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else l9(a);1==c.getPlayerType()&&(a.getVideoData().Tk?(a.da=Zb(a.I),a.Gh(["audio"]),h=a.C,h.o=!0,h.muted=!0):(Ju(a,"audio")&&a.hk(["audio"]),a.C.o=!1,a.da&&(Q8(a,a.da),a.da=null)),h=a.getVideoData(),h.Sa&&!a.j.Ie?tx(a.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",
void 0):h.Sa&&!h.Ab?a.Gh(["seek"]):a.hk(["seek"]),d.na||d.Xa||d.D.focEnabled||d.D.rmktEnabled||a.j.R)&&(h=a.getVideoData(),e=1E3*h.lengthSeconds,t9(a,"part2viewed",1,e),t9(a,"engagedview",Math.max(1,1E3*h.mf),e),t9(a,"videoplaytime25",.25*e,e),t9(a,"videoplaytime50",.5*e,e),t9(a,"videoplaytime75",.75*e,e),t9(a,"videoplaytime100",e,2147483647),t9(a,"conversionview",e,2147483647));a.Ta("videodatachange",b,d,c.getPlayerType())}}f.Az=function(a){"newdata"==a&&s9(this)};
f.Ez=function(a,b){var c=this.D.getVideoData();a==c&&this.Ta("onPlaybackAudioChange",Bv(this).bd.name,b)};f.KD=function(a,b,c){"newdata"==a?j9(this,b):k9(this,a,b,c)};f.XB=function(a,b){var c=this.D.getVideoData();a==c&&(this.L("onPlaybackQualityChange",a.j.video.quality,b),r9(this))};
function r9(a){if(a.j.experiments.oa){var b=!1,c=a.getVideoData();c&&c.j&&a.ta().xb()&&(b=Zv[c.j.video.quality],b=1440<=b||1080<=b&&30<c.j.video.fps);if(b&&!a.aa){a.aa=new X(["canvas",{style:"display: none"}]);a.aa.ea(a.A.Q());a=a.aa.Q();try{a.getContext("webgl")}catch(d){}}else!b&&a.aa&&(a.aa.detach(),a.aa=null)}}
function tv(a){var b=u9();if(b)if(b.list){if(a.B&&a.B.A.toString()==b.list)if(0<=b.index){var c=b.video;a.j.cb&&((c=c[a.B.Va])&&c.encrypted_id!=hv(a.B).videoId||(b.index=a.B.Va));zJ(a.B,b);a.sa&&v9(a,a.sa)}else a.sa=null}else a.al()}function f9(a,b){if(a.B){a.B.qa("error",a.al,a);Ai(a.B);a.B=null;var c=Ru(a.F,"playlist");c&&JE(a.F,c)}b&&(a.B=new oJ(b),a.B.subscribe("error",a.al,a),a.F&&(c=a.F,D([lF.j],c.Fo,c)))}f.al=function(){f9(this,null);this.Ta("onPlaylistUpdate")};
function t9(a,b,c,d){b in a.Da||(c=new Mq(c,d,{id:b,priority:1}),c.bb.subscribe("onEnter",a.uq,a),c.bb.subscribe("onExit",a.uq,a),Hr(a.o.F,[c]),a.Da[b]=c)}
f.uq=function(a){var b=a.getId(),c=Wu(this);if("part2viewed"==b)c.Ce&&lg(c.Ce),c.Xa&&lg(c.Xa);else if("conversionview"==b){var d=this.o;d.B&&d2(d.B)}else"engagedview"==b&&lg(c.na);c.oa&&(d=a.getId(),d=Aj(c.oa,{label:d}),lg(d));switch(b){case "videoplaytime25":c.Pd&&lg(c.Pd);lg(c.Mv);break;case "videoplaytime50":c.Qd&&lg(c.Qd);lg(c.Uv);break;case "videoplaytime75":c.ye&&lg(c.ye);lg(c.tw);break;case "videoplaytime100":c.od&&lg(c.od),lg(c.fu)}this.j.R&&this.j.R[a.getId()]&&(b=this.j.R[a.getId()],c=B(C(b))?
!1:-1!=b.search(Lf)||-1!=b.search(Jf),lg(b,void 0,c));this.o.F.Ih(a)};function n9(a,b){b!=a.J&&(2==b&&(q9(a,-1),q9(a,5)),a.J=b,a.L("appstatechange",b))}function q9(a,b){a.D&&2==a.D.getPlayerType()?a.La!=b&&(a.La=b,a.oh("onAdStateChange",b)):a.Xa!=b&&(a.Xa=b,a.oh("onStateChange",b))}function a7(a,b){a.j.experiments.o&&a.ik("controlclicked",{controlClicked:b})}f.qg=function(a,b,c,d){b=0!=b;if(d=this.ta(d))2==this.J&&g9(this),B2(d,a,b,c)};
f.JD=function(a,b){var c=a.getVideoData();if(1==this.J||2==this.J)c.startSeconds=b;2==this.J?g9(this):this.Ta("seekto",b)};f.Lz=function(){this.Ta("beginseeking")};f.nA=function(){this.Ta("endseeking")};function Cu(a){return a.I.volume}f.setVolume=function(a){var b=this.I;b.volume=a;Q8(this,b)};
function Q8(a,b){a.I=b;b.volume=Pc(b.volume,0,100);if(a.j.jd&&!a.j.O){var c={};c.volume=isNaN(b.volume)?su().volume:Pc(b.volume,0,100);c.muted=void 0==b.muted?su().muted:b.muted;dj("yt-player-volume",c,2592E3)}Ju(a,"audio")?a.da&&(a.da=Zb(b),a.Ta("onVolumeChange",b)):(o9(a),a.j.O||a.Ta("onVolumeChange",b))}function Du(a){var b=a.I;b.muted=!0;Q8(a,b)}function Eu(a){var b=a.I;b.muted=!1;5>b.volume&&(b.volume=5);Q8(a,b)}
function Su(a,b,c){var d=new Uu(b);d.De=a.j.experiments.j;b&&uJ(b)?("detailpage"==a.j.ka&&(b.fetch=0),f9(a,b)):a.B&&f9(a,null);"detailpage"==a.j.ka&&tv(a);return w9(a,d,c)}function sv(a,b){a.O&&a.O.getVideoData().videoId==b.videoId||(b.$a=!0,a.O||(a.O=new o2(a.j,1,a.N,a.A),a.O.ba=a.wa),q2(a.O,b,y(a.Hh,a)),v2(a.O,!0))}
function w9(a,b,c){if(!WH("_start",a.N.j)){var d=a.N.j;XH("yt_sts","p",d);SH("_start",void 0,d);a.N.info("srt",0)}if(a.O&&a.O.getVideoData().videoId==b.videoId){d=a.O;a.O=null;b=d;c=a.o;var e=a.Ha,g;for(g in e)c.qa(g,e[g],a);a.o.dispose();a.o=b;d9(a,b,a.Ha);s9(a)}else{d=a.ta(c);if(!d)return!1;M(a.ob);Ku(a,c);q2(d,b,y(a.Hh,a))}if(!u2(d))return!1;if(d==a.o)return n9(a,1),g9(a);A2(d);return!0}function zu(a,b,c){c=a.ta(c);b&&c==a.o&&(c.getVideoData().te=!0)}
function Tu(a,b,c){var d=a.ta(c);d&&(Ku(a,c),q2(d,b,y(a.Hh,a)),u2(d)&&(U_(d.V(),b.B),d==a.o&&(n9(a,1),h9(a))))}function lt(a,b,c,d,e){if(!b&&!d)throw Error("Playback source is invalid");a.j.cb||"detailpage"!=a.j.ka?(c=a.N,e=c.o,e.B={},e.A={},c.A=!1,a.N.reset(),d?(b={video_id:b,list:d},a.U=!1,cv(a,b,void 0,void 0,void 0)):Su(a,{video_id:b},1)):(b=a.j.getVideoUrl(b,d),(c||{}).lact=M_(),t("yt.player.exports.navigate")(b,c,!0),a.Dn(b,e))}
function cv(a,b,c,d,e){if(ia(b)&&!ea(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},x(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;f9(a,b);b=a.B;a=y(a.Oq,a);b.ff=a;b.pf&&L(b.ff,0)}f.Oq=function(){var a=hv(this.B);if(this.getVideoData().eh||!this.U){var b=this.getVideoData().te,a=w9(this,a);b&&zu(this,a)}else a&&Tu(this,a)};
function At(a){"detailpage"==a.j.ka&&tv(a);return!(!a.B||!a.B.hasNext())}function mt(a,b){a.Ta("autonavcancel",b)}function dv(a){if(a.B)"detailpage"!=a.j.ka||a.j.cb?a.B.pf?a.B.hasNext()&&w9(a,wJ(a.B),1):(wJ(a.B),a.U=!1):v9(a,"yt.www.watch.lists.next");else if(rt(a.j)&&a.ta(1).getVideoData().U){var b=a.ta(1).getVideoData().U[0],c=b.id||b.video_id||"",d=b.session_data?tj(b.session_data,"&"):null;lt(a,c,d,b.list||void 0)}}
function ev(a){if(a.B)if("detailpage"!=a.j.ka||a.j.cb)if(a.B.pf){var b=a.B;(b.qf||0<=b.Va-1)&&w9(a,yJ(a.B),1)}else yJ(a.B),a.U=!1;else v9(a,"yt.www.watch.lists.prev")}function v9(a,b){var c=t(b);if(c){var d=u9();d&&d.list&&c();a.sa=null}else a.sa=b}function fv(a,b){a.B&&(a.B.pf?w9(a,hv(a.B,b),1):a.U=!1,xJ(a.B,b))}function u9(){var a=t("yt.www.watch.lists.getState");return a?a():null}function Xu(a){return a.B&&a.B.A?a.B.A.toString():null}
function $u(a){var b=Wu(a),c=a.A.vb();a="https://"+Z_(a.j)+"/embed/"+b.videoId;b.playlistId&&(a=We(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+ya(a)+'" frameborder="0" allowfullscreen></iframe>'}
function av(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 Mq(1E3*c,1E3*d,b);c.bb.subscribe("onEnter",a.yz,a);c.bb.subscribe("onExit",a.zz,a);Hr(a.o.F,[c]);bv(a,"cuerangesadded",[c]);return!0}f.yz=function(a){this.L("onCueRangeEnter",a.getId())};f.zz=function(a){this.L("onCueRangeExit",a.getId())};f.Hs=function(a,b){var c=this.ta(b);c&&(Hr(c.F,a),bv(this,"cuerangesadded",a))};
f.Js=function(a,b){var c=this.ta(b);c&&(c.F.Ih.apply(c.F,a),bv(this,"cuerangesremoved",a))};f.yr=function(a,b){var c=this.ta(b);if(c){for(var c=c.F,d=[],e=c.j.j,g=e.length-1;0<=g;g--){var h=e[g];if(h.Oh==a){var k=c.o.indexOf(h);0<=k&&c.o.splice(k,1);var k=c.j.j,l=zb(k,h,Lq);0<=l&&rb(k,l);d.push(h)}}c.oc();bv(this,"cuerangesremoved",d)}};f.Ls=function(a){bv(this,"cuerangemarkersupdated",a)};f.Ks=function(a,b){var c=this.ta(b);c&&F2(c,a)};
f.Cz=function(){this.W||(this.W=Ty(this.yq,this));K_(this.N,x9(this));if(!this.fb&&"detailpage"==this.j.ka){this.fb=!0;var a=this.o;if(a.U&&a.U.j){var b={},c={};a.j.videoId&&(b.docid=a.j.videoId);a.j.playbackId&&(b.plid=a.j.playbackId);b.cpn=a.j.clientPlaybackNonce;b.ad_cpn=a.U.j;var d=z()-a.U.o;a.U.A?c.astv=d:c.actv=d;a={v:2,s:"youtube",action:"watch,ad2video_html5"};c.aft=c.pbs=c.astv||c.actv;var d=[],e;for(e in c)"_"!=e.charAt(0)&&d.push(e+"."+c[e]);a.rt=d.join(",");for(var g in b)"_"!=g.charAt(0)&&
(a[g]=b[g]);b=Uf("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);cI(a)}}if(this.Ca&&(b=this.o,b.B))b.B.onError("html5.reboot");this.Ca=!1;this.j.experiments.F&&At(this)&&(b=hv(this.B,vJ(this.B)))&&sv(this,b)};f.yq=function(a){a=a.j;if(!isNaN(a)&&0<a&&this.o){var b=this.o;b.B&&0<a&&(b.B.B.A.aft=[a])}};function x9(a){var b=z(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)}f.Kq=function(a){"remote"==a?(2==this.J&&g9(this),n9(this,6),nv(this.H)):this.Am()};
f.Lq=function(a){"remote"!=a||m9(this)||(this.se(),this.pauseVideo());this.Am()};f.Am=function(){this.oh("onApiChange")};f.MA=function(){if(!Ju(this,"audio")){var a={volume:100*this.C.volume,muted:this.C.muted};this.I=Zb(a);this.Ta("onVolumeChange",a)}};function o9(a){var b=a.j.O?Uu.o:a.getVideoData().qo;a.C.setVolume(a.I.volume*b,a.I.muted)}f.uA=function(){y9(this,Rh()?1:0)};
function y9(a,b){var c=!!b,d=!!a.ab!=c;a.ab=b;if(d){a.A.Vm(c);if("detailpage"==a.j.ka&&!c&&(d=Wu(a),Uf("VIDEO_ID")!=(d.fb||d.videoId))){var e=a.getCurrentTime(),g={};g[d.videoId]=e;dj("yt-player-restore-playhead",g,172800);a.pauseVideo()}SH("fsc",void 0,a.N.j);a.j.cb=c;a.A.tf();a.Ta("fullscreentoggled",c);d=Wu(a);c={fullscreen:c,videoId:d.fb||d.videoId};Xu(a)&&(c.listId=Xu(a));a.L("onFullscreenChange",c)}}f.ID=function(){W8(this)};f.kB=function(){2!=this.ab&&y9(this,Rh()?1:0)};
f.bl=function(a){this.Ta("clearvideooverlays",!!a)};f.aq=function(a,b){this.Ta("menu_button_add",a,b)};f.bq=function(a){this.Ta("menu_button_remove",a)};f.cq=function(a){this.Ta("menu_item_add",a)};f.dq=function(a){this.Ta("menu_item_remove",a)};f.hj=function(a){this.Ta("menu_show",a)};f.MD=function(a){(a=this.ta(a))&&a.B&&J1(a.B.o)};f.DD=function(a){this.Ta("liveviewshift",a)};
function bv(a,b,c){a.L(b,c);var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&c&&a.ph(d,E(c,Nq))}
f.ph=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(SH("vr",void 0,this.N.j),this.W||(this.W=Ty(this.yq,this)),T2(this.D),K_(this.N,x9(this)));0==c&&e&&(this.o.U=e);var g=this.j;"leanback"==g.ka&&g.Kb()&&(0==c?this.la=this.C:this.la=d,this.L("onAdStateChange",c,e.video_id))}else this.L.apply(this,arguments)};f.Tc=function(a,b){this.F.I.apply(this.F,arguments);this.H&&this.H.L.apply(this.H,arguments);this.G&&this.G.L.apply(this.G,arguments)};
f.se=function(a){(a=this.ta(a))&&(2==this.J?g9(this):W(a.getPlayerState(),2)?this.qg(0):J2(a))};f.pauseVideo=function(a){(a=this.ta(a))&&a.pauseVideo()};function Ku(a,b){Uy(a.W);a.W=0;var c=a.ta(b);c&&1!=a.J&&2!=a.J&&(CJ(a.F),E2(c),1==b&&nv(a.H))}function Fu(a,b){if(!Ju(a,"play_pause")){var c=a.ba.play_pause?a.oa:null;c?c.ge("control_play"):a.se(b)}}function Gu(a,b){if(!Ju(a,"play_pause")){var c=a.ba.play_pause?a.oa:null;c?c.ge("control_pause"):a.pauseVideo(b)}}
function P8(a){var b;if(b=!Ju(a,"play_pause"))(b=!a.j.gd||2!=a.J)||(b=Qs.hasTags(void 0));b&&((b=a.ba.play_pause?a.oa:null)?b.ge("control_toggle_play_pause"):(b=a.ta(void 0))&&(Er(b.getPlayerState())?a.pauseVideo(void 0):a.se(void 0)))}function Au(a,b,c,d,e){if(!Ju(a,"seek")){var g=a.ba.seek?a.oa:null;g?g.ge("control_seek",b):a.qg(b,c,d,e)}}
function Iu(a,b){if(a.j.cb!=b)if(Qh())if(b){var c=a.A.Q(),d=zh(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=zh(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else y9(a,b?2:0)}function sz(a){Iu(a,!a.j.cb)}function b7(a,b){Iu(a,!1);a.pauseVideo();vy(b)}function p7(a){var b=a.getVideoData();"detailpage"==a.j.ka&&a.j.cb&&Uf("VIDEO_ID")==b.videoId?Iu(a,!1):b7(a,a.nb.getVideoUrl())}f.getAdState=function(){return this.H?this.H.getAdState():-1};
function W8(a){var b=a.A.wb();a.j.fk=b;if(a.C){b=!1;if(0!=a.C.readyState&&a.D){var c=new H(a.C.videoWidth,a.C.videoHeight),d=a.getVideoData();Tc(d.Ge,c)||(d.Ge=c,b=!0)}c=a.A;c=O6(c,c.wb(),N6(c),Q6(c),void 0);zg(a.ic,c)||(a.ic=c,a.j.Yj=c,b=!0);b&&(a.D&&Pu(a.D,"r"),a.L("resize",a.A.vb()),a.Ta("onResize"))}}function Ju(a,b){return!(!a.R[b]||!a.R[b].length)}
f.Gh=function(a,b){b=b||b9.o;var c=[];D(a,function(a){this.R[a]?0>this.R[a].indexOf(b)&&this.R[a].push(b):(this.R[a]=[b],c.push(a))},this);0<c.length&&this.L("controlsdisabled",c)};f.hk=function(a,b){b=b||b9.o;var c=[];D(a,function(a){if(Ju(this,a)){var e=this.R[a].indexOf(b);0<=e&&this.R[a].splice(e,1);0==this.R[a].length&&c.push(a)}},this);0<c.length&&this.L("controlsenabled",c)};f.Is=function(a,b,c){this.Rj();this.oa=a;b&&D(b,function(a){this.ba[a]=!0},this);c&&DJ(this.F,a,c)};
f.Rj=function(){this.oa=null;this.ba={};EJ(this.F)};function iv(a,b,c,d){if(a.j.Kb()){if(a.H&&b==a.H.za)return a.H.sg(c,d);if(a.G&&b==a.G.za)return a.G.sg(c,d)}c=b&&c?(a=Ru(a.F,b))?a.sg(c,d):null:null;return c}function jv(a,b){if(!b){var c=FJ(a.F);a.j.Kb()&&(a.H&&c.push(a.H.za),a.G&&c.push(a.G.za));return c}if(a.j.Kb()){if(a.H&&b==a.H.za)return a.H.tg();if(a.G&&b==a.G.za)return a.G.tg()}return FJ(a.F,b)}
f.vB=function(){if(this.j.experiments.B&&!this.Ca){this.Ca=!0;var a=this.getVideoData(),b=this.ta().getCurrentTime();Su(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.Yz=function(){this.Ta("CONNECTION_ISSUE")};f.CD=function(a){this.Ta("heartbeatparams",a)};f.P=function(){jq();this.o.dispose();this.O&&this.O.dispose();i9(this);this.$a&&Jh(this.$a);Jh(this.mc);Ci(Qb(this.va),this.B);this.la=null;M(this.ob);Uy(this.W);this.W=0;b9.K.P.call(this)};function z9(){Zy.call(this);this.j=[];this.A={}}A(z9,Zy);ba(z9);f=z9.prototype;f.wi="button";f.Wf=null;f.register=function(){az(this,"click",this.dw);az(this,"keydown",this.Wy);az(this,"keypress",this.Xy);this.Jm.push(Ji("page-scroll",this.yx,this))};f.dw=function(a){a&&!a.disabled&&(A9(this,a),this.click(a))};
f.Wy=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=B9(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=fe(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.iz:"table"==e&&(g=this.hz);g&&C9(this,a,b,c,y(g,this))}}};f.yx=function(){var a=this.A;if(0!=Nb(a))for(var b in a){var c=a[b],d=ne(c.activeButtonNode||c.parentNode,$y(this));if(void 0==d||void 0==c)break;D9(this,d,c,!0)}};
function C9(a,b,c,d,e){var g=Cs(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=E9(a,c))?(b=Zd(d),"a"==b.tagName.toLowerCase()?ty(b.href):Ph(b,"click")):h&&F9(a,b):g?27==d.keyCode?(E9(a,c),F9(a,b)):e(b,c,d):(a=oh(b,$y(a,"reverse"))?38:40,d.keyCode==a&&(Ph(b,"click"),d.preventDefault()))}f.Xy=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=B9(this,a),Cs(a)&&c.preventDefault())};function E9(a,b){var c=$y(a,"menu-item-highlight"),d=Hd(c,b);d&&qh(d,c);return d}
function G9(a,b,c){N(c,$y(a,"menu-item-highlight"));var d=c.getAttribute("id");d||(d=$y(a,"item-id-"+ja(c)),c.setAttribute("id",d));b.setAttribute("aria-activedescendant",d)}f.hz=function(a,b,c){var d=E9(this,b);b=xh("table",b);var e=xh("tr",b),e=Gd("td",null,e).length;b=Gd("td",null,b);d=H9(d,b,e,c);-1!=d&&(G9(this,a,b[d]),c.preventDefault())};f.iz=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=E9(this,b);b=gb(Gd("li",null,b),Cs);d=H9(d,b,1,c);G9(this,a,b[d]);c.preventDefault()}};
function H9(a,b,c,d){var e=b.length;a=eb(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 I9(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=$y(a,"menu-mask"),Es(c),b.iframeMask=c);return c}
function D9(a,b,c,d){var e=ne(b,$y(a,"group")),g=!!xi(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=$g(b);if(oh(b,$y(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}oh(b,"flip")&&(oh(b,$y(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;xi(b,"button-has-sibling-menu")?p=Pg(e):xi(b,"button-menu-root-container")&&(p=J9(b));dd&&!sd("8")&&(p=null);var r;p&&(r=$g(p),r=new vg(-r.top,r.left,r.top,-r.left));p=new Qc(0,1);oh(b,$y(a,"center-menu"))&&(p.x-=Math.round((Yg(c).width-Yg(b).width)/
2));d&&(p.y+=Ld(document).y);if(a=I9(a,b))b=Yg(c),a.style.width=b.width+"px",a.style.height=b.height+"px",U6(e,g,a,h,p,r),d&&Fg(a,"position","fixed");U6(e,g,c,h,p,r)}function J9(a){if(xi(a,"button-menu-root-container")){var b=xi(a,"button-menu-root-container");return ne(a,b)}return document.body}
f.eu=function(a){if(a){var b=B9(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;xi(a,"button-has-sibling-menu")?c=a.parentNode:c=J9(a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=I9(this,a);d&&c.appendChild(d);(c=!!xi(a,"button-menu-fixed"))&&(this.A[uh(a).toString()]=b);D9(this,a,b,c);Ni("yt-uix-button-menu-before-show",a,b);Ds(b);d&&Ds(d);this.o(a,
"button-menu-action",!0);N(a,$y(this,"active"));b=y(this.$p,this,a,!1);d=y(this.$p,this,a,!0);c=y(this.eD,this,a,void 0);this.Wf&&B9(this,this.Wf)==B9(this,a)||this.Wf&&F9(this,this.Wf);Mi("yt-uix-button-menu-show",a);Jh(this.j);this.j=[P(document,"click",d),P(document,"contextmenu",b),P(window,"resize",c)];this.Wf=a}}};
function F9(a,b){if(b){var c=B9(a,b);if(c){a.Wf=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Es(c);a.o(b,"button-menu-action",!1);var d=I9(a,b),e=uh(c).toString();delete a.A[e];L(function(){d&&d.parentNode&&(Es(d),d.parentNode.removeChild(d));c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}var e=ne(b,$y(a,"group")),g=[$y(a,
"active")];e&&g.push($y(a,"group-active"));rh(b,g);Mi("yt-uix-button-menu-hide",b);Jh(a.j);a.j.length=0}}f.eD=function(a,b){var c=B9(this,a);if(c){b&&(b instanceof Hc?c.innerHTML=Jc(b):ee(c,b));var d=!!xi(a,"button-menu-fixed");D9(this,a,c,d)}};f.getContent=function(a){return Hd($y(this,"content"),a)};
f.$p=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=ne(c,$y(this));if(d){var d=B9(this,d),e=B9(this,a);if(d==e)return}var d=ne(c,$y(this,"menu")),e=d==B9(this,a),g=oh(c,$y(this,"menu-item")),h=oh(c,$y(this,"menu-close"));if(!d||e&&(g||h))if(F9(this,a),d&&b&&xi(a,"button-menu-indicate-selected")){if(a=Hd($y(this,"content"),a))zd&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],me(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,
""),b=b.replace(/\u200B/g,""),zd||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),ee(a,b);K9(this,d,c)}};function K9(a,b,c){var d=$y(a,"menu-item-selected");a=Fd(d,b);D(a,function(a){qh(a,d)});N(c.parentNode,d)}function B9(a,b){if(!b.widgetMenu){var c=xi(b,"button-menu-id"),c=c&&Ed(c),d=$y(a,"menu");c?ph(c,[d,$y(a,"menu-external")]):c=Hd(d,b);b.widgetMenu=c}return b.widgetMenu}
function A9(a,b){if(xi(b,"button-toggle")){var c=ne(b,$y(a,"group")),d=$y(a,"toggled"),e=oh(b,d);if(c&&xi(c,"button-toggle-group")){var g=xi(c,"button-toggle-group"),c=Fd($y(a),c);D(c,function(a){a!=b||"optional"==g&&e?(qh(a,d),a.removeAttribute("aria-pressed")):(N(b,d),a.setAttribute("aria-pressed","true"))})}else e?b.removeAttribute("aria-pressed"):b.setAttribute("aria-pressed","true"),sh(b,d)}}
f.click=function(a){if(B9(this,a)){var b=B9(this,a),c=ne(b.activeButtonNode||b.parentNode,$y(this));c&&c!=a?(F9(this,c),L(y(this.eu,this,a),1)):Cs(b)?F9(this,a):this.eu(a);a.focus()}this.o(a,"button-action")};ez(z9);ez(K7);t("yt.tracking.share")||q("yt.tracking.share",oF,void 0);t("yt.net.ping")||q("yt.net.ping.send",lg,void 0);t("yt.window.popup")||(q("yt.window.popup",wy,void 0),q("yt.window.open",vy,void 0));q("yt.player.Application.create",b9.A,void 0);q("yt.player.Application.createWebComponent",b9.B,void 0);var L9=t("ytcsi.tick"),M9=t("ytcsi.info");L9&&(L9("pe"),window.performance&&window.performance.now&&M9("h5jse",window.performance.now()));})();
