(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.Gb?a.Gb:a.Gb=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 w(a){return"string"==typeof a}function ga(a){return"number"==typeof a}function ha(a){return"function"==ca(a)}function ja(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ka(a){return a[la]||(a[la]=++ma)}
var la="closure_uid_"+(1E9*Math.random()>>>0),ma=0;function na(a,b,c){return a.call.apply(a.bind,arguments)}function oa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
function x(a,b,c){x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?na:oa;return x.apply(null,arguments)}function 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 y=Date.now||function(){return+new Date};
function z(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 x.apply(null,c)}return x(this,a)};function ra(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ra);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}z(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 A(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(Ca,"&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,Ca=/</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 B(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)||["","",""],C=r.exec(l)||["","",""];if(0==u[0].length&&0==C[0].length)break;c=Sa(0==u[1].length?0:parseInt(u[1],10),0==C[1].length?0:parseInt(C[1],10))||Sa(0==u[2].length,0==C[2].length)||Sa(u[2],C[2])}while(0==c)}return c}function Sa(a,b){return a<b?-1:a>b?1:0}
var Ta=2147483648*Math.random()|0;function Ua(){return"goog_"+Ta++}function Va(a){var b=Number(a);return 0==b&&A(a)?NaN:b}function Wa(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Xa(a){var b=w(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 Ya(a){isFinite(a)&&(a=String(a));return w(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN}
function Za(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 $a(){};function ab(a){return a[a.length-1]}
var bb=Array.prototype,cb=bb.indexOf?function(a,b,c){return bb.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(w(a))return w(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},db=bb.lastIndexOf?function(a,b,c){return bb.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(w(a))return w(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},D=bb.forEach?function(a,b,c){bb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},eb=bb.filter?function(a,b,c){return bb.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=w(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[g++]=l)}return e},E=bb.map?function(a,b,c){return bb.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=w(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,
g[h],h,a));return e},fb=bb.reduce?function(a,b,c,d){d&&(b=x(b,d));return bb.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},gb=bb.some?function(a,b,c){return bb.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},hb=bb.every?function(a,b,c){return bb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&!b.call(c,e[g],g,a))return!1;
return!0};function F(a,b,c){b=ib(a,b,c);return 0>b?null:w(a)?a.charAt(b):a[b]}function ib(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1}function jb(a,b){var c=kb(a,b,void 0);return 0>c?null:w(a)?a.charAt(c):a[c]}function kb(a,b,c){for(var d=w(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1}function G(a,b){return 0<=cb(a,b)}function lb(a){return 0==a.length}
function mb(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function nb(a,b){G(a,b)||a.push(b)}function ob(a,b){var c=cb(a,b),d;(d=0<=c)&&pb(a,c);return d}function pb(a,b){bb.splice.call(a,b,1)}function qb(a,b){var c=ib(a,b,void 0);0<=c&&pb(a,c)}function rb(a){return bb.concat.apply(bb,arguments)}function sb(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 tb(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 ub(a,b,c,d){bb.splice.apply(a,vb(arguments,1))}function vb(a,b,c){return 2>=arguments.length?bb.slice.call(a,b):bb.slice.call(a,b,c)}
function wb(a,b,c){b=b||a;c=c||function(){return ja(h)?"o"+ka(h):(typeof h).charAt(0)+h};for(var d={},e=0,g=0;g<a.length;){var h=a[g++],k=c(h);Object.prototype.hasOwnProperty.call(d,k)||(d[k]=!0,b[e++]=h)}b.length=e}function xb(a,b,c){c=c||yb;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 zb(a,b){a.sort(b||yb)}function Ab(a,b,c){var d=c||yb;zb(a,function(a,c){return d(b(a),b(c))})}function Bb(a,b){Ab(a,function(a){return a[b]},void 0)}
function Cb(a,b,c){if(!fa(a)||!fa(b)||a.length!=b.length)return!1;var d=a.length;c=c||Db;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function yb(a,b){return a>b?1:a<b?-1:0}function Db(a,b){return a===b}function Eb(a,b,c){c=xb(a,b,c);0>c&&ub(a,-(c+1),0,b)}function Fb(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b}
function Gb(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=vb(d,e,e+8192),g=Gb.apply(null,g),h=0;h<g.length;h++)b.push(g[h]);else b.push(d)}return b};function Hb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ib(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}function Jb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Kb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Lb(a){var b=0,c;for(c in a)b++;return b}function Mb(a,b){return Nb(a,b)}function Ob(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Pb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}
function Qb(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 Nb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function Rb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Sb(a){var b=Tb;return(a=Rb(b,a,void 0))&&b[a]}function Ub(a){for(var b in a)return!1;return!0}function Vb(a){for(var b in a)delete a[b]}function Wb(a,b){b in a&&delete a[b]}function Xb(a,b,c){return b in a?a[b]:c}
function Yb(a){var b={},c;for(c in a)b[c]=a[c];return b}function Zb(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]=Zb(a[c]);return b}return a}var $b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function ac(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<$b.length;g++)c=$b[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function bc(a){var b=arguments.length;if(1==b&&ea(arguments[0]))return bc.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 dc(a){var b=arguments.length;if(1==b&&ea(arguments[0]))return dc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var ec=dc("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var fc=/<[^>]*>|&[^;]+;/g;function gc(a,b){return b?a.replace(fc,""):a}
var hc=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),ic=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),jc=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]"),kc=/^http:\/\/.*/,lc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,mc=
/\s+/,nc=/\d/;function oc(){this.j="";this.o=pc}oc.prototype.Oe=!0;oc.prototype.Fe=function(){return this.j};oc.prototype.toString=function(){return"Const{"+this.j+"}"};function qc(a){return a instanceof oc&&a.constructor===oc&&a.o===pc?a.j:"type_error:Const"}function rc(){var a=new oc;a.j="HTML that is escaped and sanitized server-side and passed through yt.net.ajax";return a}var pc={};function sc(){this.j="";this.o=tc}sc.prototype.Oe=!0;var tc={};sc.prototype.Fe=function(){return this.j};function uc(a){return a instanceof sc&&a.constructor===sc&&a.o===tc?a.j:"type_error:SafeStyle"}function vc(a){var b=new sc;b.j=a;return b}var wc=vc(""),xc=/^[-,."'%_!# a-zA-Z0-9]+$/;function yc(){this.j="";this.o=zc}yc.prototype.Oe=!0;yc.prototype.Fe=function(){return this.j};yc.prototype.Zl=!0;yc.prototype.Af=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.Oe=!0;Fc.prototype.Fe=function(){return""};Fc.prototype.Zl=!0;Fc.prototype.Af=function(){return 1};var Gc={};function Hc(){this.j="";this.A=Ic;this.o=null}Hc.prototype.Zl=!0;Hc.prototype.Af=function(){return this.o};Hc.prototype.Oe=!0;Hc.prototype.Fe=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=dc("action","cite","data","formaction","href","manifest","poster","src"),Mc=dc("embed","iframe","link","object","script","style","template");
function Nc(a){function b(a){if(ea(a))D(a,b);else{var g;a instanceof Hc?g=a:(g=null,a.Zl&&(g=a.Af()),a=ya(a.Oe?a.Fe():String(a)),g=Oc(a,g));d+=Jc(g);g=g.Af();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("",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;i:{var Vc=m.navigator;if(Vc){var Wc=Vc.userAgent;if(Wc){Uc=Wc;break i}}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 rd(a){return qd[a]||(qd[a]=0<=Ra(pd,a))}function sd(a){return dd&&(ad()||td>=a)}var vd=m.document,wd=od(),td=!vd||!dd||!wd&&ad()?void 0:wd||("CSS1Compat"==vd.compatMode?parseInt(pd,10):5);var xd=!dd||sd(9),yd=!ed&&!dd||dd&&sd(9)||ed&&rd("1.9.1"),zd=dd&&!rd("9"),Ad=dd||cd||fd;function Bd(a){return a?new Cd(Dd(a)):sa||(sa=new Cd)}function Ed(a){return w(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){Hb(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&&rd("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={};ac(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(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(w(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!fa(g)||ja(g)&&0<g.nodeType?e(g):D(Qd(g)?sb(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:eb(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 ja(a)&&1==a.nodeType}
function be(a){var b;if(Ad&&!(dd&&rd("9")&&!rd("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(ja(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||w(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 w(a)?this.j.getElementById(a):a};f.Uw=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 sb(a);a=ue(a);var b=[];ve(a,function(a){b.push(a)});return b};function xe(a,b){this.o={};this.j=[];this.fe=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.La(),d=a.Oa()):(c=Pb(a),d=Ob(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=xe.prototype;f.Ta=function(){return this.ra};f.Oa=function(){ye(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.o[this.j[b]]);return a};f.La=function(){ye(this);return this.j.concat()};
function ze(a,b){return Ae(a.o,b)}f.tf=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.Ta())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.fe=this.ra=this.j.length=0};
f.remove=function(a){return Ae(this.o,a)?(delete this.o[a],this.ra--,this.fe++,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.fe++);this.o[a]=b};
f.forEach=function(a,b){for(var c=this.La(),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.fe,g=this,h=new te;h.next=function(){for(;;){if(e!=g.fe)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.Ta?a.Ta():fa(a)||w(a)?a.length:Lb(a)}function De(a){if("function"==typeof a.Oa)return a.Oa();if(w(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 Ob(a)}function Ee(a){if("function"==typeof a.La)return a.La();if("function"!=typeof a.Oa){if(fa(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Pb(a)}}
function Fe(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(fa(a)||w(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)||w(a))return hb(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};var He=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Ie(a){if(Je){Je=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Ke(c))&&c!=b.hostname)throw Je=!0,Error();}}return a.match(He)}var Je=fd;function Me(a){return a?decodeURI(a):a}function Ke(a){return Me(Ie(a)[3]||null)}
function Ne(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 Oe(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 Pe(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Pe(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",wa(b))}
function Qe(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Pe(b[c],b[c+1],a);return a}function Re(a,b){for(var c in b)Pe(c,b[c],a);return a}function Te(a){a=Re([],a);a[0]="";return a.join("")}function Ue(a,b){return Oe(2==arguments.length?Qe([a],arguments[1],0):Qe([a],arguments,1))}function Ve(a,b){return Oe(Re([a],b))}
function We(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 Xe=/#|$/;function Ye(a,b){var c=a.search(Xe),d=We(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 Ze=/[?&]($|#)/;
function $e(a,b,c){for(var d=a.search(Xe),e=0,g,h=[];0<=(g=We(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(Ze,"$1"),"&",b];null!=c&&a.push("=",wa(c));return Oe(a)};function J(a,b){var c;a instanceof J?(this.Ge=n(b)?b:a.Ge,af(this,a.Mb),this.$e=a.$e,bf(this,a.rb),cf(this,a.Bd),df(this,a.Lb),ef(this,a.j.clone()),this.xf=a.Bf()):a&&(c=Ie(String(a)))?(this.Ge=!!b,af(this,c[1]||"",!0),this.$e=ff(c[2]||""),bf(this,c[3]||"",!0),cf(this,c[4]),df(this,c[5]||"",!0),ef(this,c[6]||"",!0),this.xf=ff(c[7]||"")):(this.Ge=!!b,this.j=new gf(null,0,this.Ge))}f=J.prototype;f.Mb="";f.$e="";f.rb="";f.Bd=null;f.Lb="";f.xf="";f.Ge=!1;
f.toString=function(){var a=[],b=this.Mb;b&&a.push(hf(b,jf,!0),":");if(b=this.rb){a.push("//");var c=this.$e;c&&a.push(hf(c,jf,!0),"@");a.push(wa(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Bd;null!=b&&a.push(":",String(b))}if(b=this.Lb)this.rb&&"/"!=b.charAt(0)&&a.push("/"),a.push(hf(b,"/"==b.charAt(0)?kf:lf,!0));(b=this.j.toString())&&a.push("?",b);(b=this.Bf())&&a.push("#",hf(b,mf));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Mb;c?af(b,a.Mb):c=!!a.$e;c?b.$e=a.$e:c=!!a.rb;c?bf(b,a.rb):c=null!=a.Bd;var d=a.Lb;if(c)cf(b,a.Bd);else if(c=!!a.Lb){if("/"!=d.charAt(0))if(this.rb&&!this.Lb)d="/"+d;else{var e=b.Lb.lastIndexOf("/");-1!=e&&(d=b.Lb.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?df(b,d):c=""!==a.j.toString();c?ef(b,ff(a.j.toString())):c=!!a.xf;c&&(b.xf=a.Bf());return b};f.clone=function(){return new J(this)};function af(a,b,c){a.Mb=c?ff(b,!0):b;a.Mb&&(a.Mb=a.Mb.replace(/:$/,""))}function nf(a){return a.rb}function bf(a,b,c){a.rb=c?ff(b,!0):b;return a}function cf(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Bd=b}else a.Bd=null;return a}
function df(a,b,c){a.Lb=c?ff(b,!0):b}function ef(a,b,c){b instanceof gf?(a.j=b,of(a.j,a.Ge)):(c||(b=hf(b,pf)),a.j=new gf(b,0,a.Ge));return a}function qf(a){return a.j}f.ip=function(){return this.j.toString()};function K(a,b,c){a.j.set(b,c);return a}function rf(a,b,c){ea(c)||(c=[String(c)]);sf(a.j,b,c)}function tf(a,b){return a.j.get(b)}f.Bf=function(){return this.xf};
function uf(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^y()).toString(36));return a}function vf(a){return a instanceof J?a.clone():new J(a,void 0)}function wf(a,b,c,d){var e=new J(null,void 0);a&&af(e,a);b&&bf(e,b);c&&cf(e,c);d&&df(e,d);return e}function ff(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function hf(a,b,c){return w(a)?(a=encodeURI(a).replace(b,xf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}
function xf(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var jf=/[#\/\?@]/g,lf=/[\#\?:]/g,kf=/[\#\?]/g,pf=/[\#\?@]/g,mf=/#/g;function gf(a,b,c){this.j=a||null;this.o=!!c}function yf(a){a.hb||(a.hb=new xe,a.ra=0,a.j&&Ne(a.j,function(b,c){a.add(xa(b),c)}))}f=gf.prototype;f.hb=null;f.ra=null;f.Ta=function(){yf(this);return this.ra};f.add=function(a,b){yf(this);this.j=null;a=zf(this,a);var c=this.hb.get(a);c||this.hb.set(a,c=[]);c.push(b);this.ra++;return this};
f.remove=function(a){yf(this);a=zf(this,a);return ze(this.hb,a)?(this.j=null,this.ra-=this.hb.get(a).length,this.hb.remove(a)):!1};f.clear=function(){this.hb=this.j=null;this.ra=0};f.isEmpty=function(){yf(this);return 0==this.ra};function Af(a,b){yf(a);b=zf(a,b);return ze(a.hb,b)}f.tf=function(a){var b=this.Oa();return G(b,a)};f.La=function(){yf(this);for(var a=this.hb.Oa(),b=this.hb.La(),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.Oa=function(a){yf(this);var b=[];if(w(a))Af(this,a)&&(b=rb(b,this.hb.get(zf(this,a))));else{a=this.hb.Oa();for(var c=0;c<a.length;c++)b=rb(b,a[c])}return b};f.set=function(a,b){yf(this);this.j=null;a=zf(this,a);Af(this,a)&&(this.ra-=this.hb.get(a).length);this.hb.set(a,[b]);this.ra++;return this};f.get=function(a,b){var c=a?this.Oa(a):[];return 0<c.length?String(c[0]):b};function sf(a,b,c){a.remove(b);0<c.length&&(a.j=null,a.hb.set(zf(a,b),sb(c)),a.ra+=c.length)}
f.toString=function(){if(this.j)return this.j;if(!this.hb)return"";for(var a=[],b=this.hb.La(),c=0;c<b.length;c++)for(var d=b[c],e=wa(d),d=this.Oa(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 gf;a.j=this.j;this.hb&&(a.hb=this.hb.clone(),a.ra=this.ra);return a};function zf(a,b){var c=String(b);a.o&&(c=c.toLowerCase());return c}
function of(a,b){b&&!a.o&&(yf(a),a.j=null,a.hb.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),sf(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 Bf=/^https?:\/\/([-\w.]+\.youtube(education)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|yt-devenv-shared\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/)/,Cf=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(prod\.google\.com|plus\.sandbox\.google\.com|plus\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,Df=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,
Ef=/^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]+)?([\/\?\#]|$)/,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]+)?\/+embed(\/+|\?|#|$)/,Gf=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,
Hf=/^(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]+)?([\/\?\#]|$))/,If=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,
Jf=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,Kf=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Lf=/^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]+)?([\/\?\#]|$)/,
Mf=/^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]+)?([\/\?\#]|$))/,
Nf=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Of=/^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 Pf=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",Pf,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Qf=window.yt&&window.yt.msgs_||{};q("yt.msgs_",Qf,void 0);function Rf(a){Sf(Pf,arguments)}function Tf(a,b){return a in Pf?Pf[a]:b}function L(a,b){ha(a)&&(a=Uf(a));return window.setTimeout(a,b)}function Vf(a,b){ha(a)&&(a=Uf(a));return window.setInterval(a,b)}function M(a){window.clearTimeout(a)}function Wf(a){window.clearInterval(a)}
function Uf(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Xf(b),b;}}:a}function Xf(a,b){var c=t("yt.www.errors.log");c?c(a,b):(c=Tf("ERRORS")||[],c.push([a,b]),Rf("ERRORS",c))}function Yf(a){Sf(Qf,arguments)}function Zf(a,b,c){var d=b||{};if(a=a in Qf?Qf[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}function Sf(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 $f="corp.google.com googleplex.com youtube.com youtube-nocookie.com youtubeeducation.com borg.google.com prod.google.com sandbox.google.com books.googleusercontent.com docs.google.com drive.google.com mail.google.com photos.google.com plus.google.com play.google.com googlevideo.com talkgadget.google.com survey.g.doubleclick.net youtube.googleapis.com vevo.com".split(" "),ag=["2mdn.net","imasdk.googleapis.com","googleads.g.doubleclick.net"],bg="";
function cg(a){return a&&a==bg?!0:dg(a,$f)?(bg=a,!0):!1}function eg(a){return!!a&&-1!=a.search(Lf)}function fg(a){var b=!!a&&-1!=a.search(Of),c=dg(a,ag);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Xf(a,"WARNING"));return b||c}function gg(a){return!!a&&-1!=a.search(Hf)}function hg(a){return!!a&&-1!=a.search(Mf)}
function ig(a,b){var c=!!a&&-1!=a.search(Cf),d=b?!0:cg(a);a&&c!=d&&Xf(Error("isCaptionsUrl("+a+", "+!!b+") behavior is not consistent"),"WARNING");return d}function dg(a,b){return(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}function jg(a){a=new J(a);af(a,document.location.protocol);bf(a,document.location.hostname);document.location.port&&cf(a,document.location.port);return a.toString()}
function kg(a){a=new J(a);af(a,document.location.protocol);return a.toString()};var lg={},mg=0,ng=t("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",ng,void 0);function og(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)):pg(a,b))}function pg(a,b){var c=new Image,d=""+mg++;lg[d]=c;c.onload=c.onerror=function(){b&&lg[d]&&b();delete lg[d]};c.src=a;c=eval("null")};function qg(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 rg(a){return eval("("+a+")")}function sg(a){return(new tg(void 0)).F(a)}function tg(a){this.j=a}
tg.prototype.F=function(a){var b=[];ug(this,a,b);return b.join("")};
function ug(a,b,c){switch(typeof b){case "string":vg(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],ug(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),vg(g,c),
c.push(":"),ug(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 wg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},xg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function vg(a,b){b.push('"',a.replace(xg,function(a){if(a in wg)return wg[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return wg[a]=e+b.toString(16)}),'"')};function yg(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=yg.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new yg(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof yg?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 zg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=zg.prototype;f.clone=function(){return new zg(this.left,this.top,this.width,this.height)};function Ag(a){return new yg(a.top,a.left+a.width,a.top+a.height,a.left)}function Bg(a){return new zg(a.left,a.top,a.right-a.left,a.bottom-a.top)}function Cg(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 Dg(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 zg?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 Eg(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 Fg(a){Fg[" "](a);return a}Fg[" "]=v;function Gg(a,b){try{return Fg(a[b]),!0}catch(c){}return!1};function Hg(){return fd?"Webkit":ed?"Moz":dd?"ms":cd?"O":null};function Ig(a,b,c){if(w(b))(b=Jg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=Jg(c,d);g&&(c.style[g]=e)}}var Kg={};function Jg(a,b){var c=Kg[b];if(!c){var d=Wa(b),c=d;void 0===a.style[d]&&(d=Hg()+Xa(d),void 0!==a.style[d]&&(c=d));Kg[b]=c}return c}function Lg(a,b){var c=a.style[Wa(b)];return"undefined"!==typeof c?c:a.style[Jg(a,b)]||""}
function Mg(a,b){var c=Dd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Ng(a,b){return Mg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Og(a,b,c){var d;b instanceof Qc?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Pg(d,!1);a.style.top=Pg(b,!1)}function Qg(a){return new Qc(a.offsetLeft,a.offsetTop)}
function Rg(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 Sg(a){if(dd&&!sd(8))return a.offsetParent;var b=Dd(a),c=Ng(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=Ng(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 Tg(a){for(var b=new yg(0,Infinity,Infinity,0),c=Bd(a),d=c.j.body,e=c.j.documentElement,g=Md(c.j);a=Sg(a);)if(!(dd&&0==a.clientWidth||fd&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Ng(a,"overflow")){var h=Ug(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 Ug(a){var b=Dd(a),c=new Qc(0,0),d;d=b?Dd(b):document;d=!dd||sd(9)||pe(Bd(d))?d.documentElement:d.body;if(a==d)return c;a=Rg(a);b=re(Bd(b));c.x=a.left+b.x;c.y=a.top+b.y;return c}
function Vg(a,b){var c=new Qc(0,0),d=Nd(Dd(a)),e=a;do{var g=d==b?Ug(e):Wg(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 Wg(a){a=Rg(a);return new Qc(a.left,a.top)}function Xg(a){if(1==a.nodeType)return Wg(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 Yg(a,b,c){if(b instanceof H)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Zg(a,b);a.style.height=Pg(c,!0)}function Pg(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Zg(a,b){a.style.width=Pg(b,!0)}function $g(a){return ah(a)}
function ah(a){var b=ch;if("none"!=Ng(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 ch(a){var b=a.offsetWidth,c=a.offsetHeight,d=fd&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new H(b,c):(a=Rg(a),new H(a.right-a.left,a.bottom-a.top))}function dh(a){var b=Ug(a);a=ah(a);return new zg(b.x,b.y,a.width,a.height)}
function eh(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 fh(a,b){a.style.display=b?"":"none"}function gh(a){return"rtl"==Ng(a,"direction")}function hh(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 ih(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?hh(a,c):0}var jh={thin:2,medium:4,thick:6};function kh(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 jh?jh[c]:hh(a,c)}
function lh(a){if(dd&&!sd(9)){var b=kh(a,"borderLeft"),c=kh(a,"borderRight"),d=kh(a,"borderTop");a=kh(a,"borderBottom");return new yg(d,c,a,b)}b=Mg(a,"borderLeftWidth");c=Mg(a,"borderRightWidth");d=Mg(a,"borderTopWidth");a=Mg(a,"borderBottomWidth");return new yg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var mh=/[^\d]+$/,nh={cm:1,"in":1,mm:1,pc:1,pt:1},oh={em:1,ex:1};
function ph(a){var b=Ng(a,"fontSize"),c;c=(c=b.match(mh))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(dd){if(c in nh)return hh(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in oh)return a=a.parentNode,c=Ng(a,"fontSize"),hh(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 qh(a){if(a.classList)return a.classList;a=a.className;return w(a)&&a.match(/\S+/g)||[]}function rh(a,b){return a.classList?a.classList.contains(b):G(qh(a),b)}function N(a,b){a.classList?a.classList.add(b):rh(a,b)||(a.className+=0<a.className.length?" "+b:b)}function sh(a,b){if(a.classList)D(b,function(b){N(a,b)});else{var c={};D(qh(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 th(a,b){a.classList?a.classList.remove(b):rh(a,b)&&(a.className=eb(qh(a),function(a){return a!=b}).join(" "))}function uh(a,b){a.classList?D(b,function(b){th(a,b)}):a.className=eb(qh(a),function(a){return!G(b,a)}).join(" ")}function O(a,b,c){c?N(a,b):th(a,b)}function vh(a,b){var c=!rh(a,b);O(a,b,c)};var wh=fd?"webkit":ed?"moz":dd?"ms":cd?"o":"";function xh(a){var b=a.__yt_uid_key;b||(b=yh(),a.__yt_uid_key=b);return b}var yh=t("yt.dom.getNextId_");if(!yh){yh=function(){return++zh};q("yt.dom.getNextId_",yh,void 0);var zh=0}function Ah(a,b){var c=Gd(a,null,b);return c.length?c[0]:null}function Bh(a,b){if(a in b)return b[a];var c=wh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function Ch(a,b){var c;gb(a,function(a){c=Bh(a,b);return!!c});return c};function Dh(a){if(a=a||window.event){for(var b in a)b in Eh||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Qb=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 Fh(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 Gh(a){n(a.j)||Fh(a);return a.j}function Hh(a){n(a.o)||Fh(a);return a.o}f=Dh.prototype;f.Qb=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.Qb.returnValue=!1;this.Qb.preventDefault&&this.Qb.preventDefault()};
f.stopPropagation=function(){this.Qb.cancelBubble=!0;this.Qb.stopPropagation&&this.Qb.stopPropagation()};f.stopImmediatePropagation=function(){this.Qb.cancelBubble=!0;this.Qb.stopImmediatePropagation&&this.Qb.stopImmediatePropagation()};var Eh={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Ih=t("yt.events.listeners_")||{};q("yt.events.listeners_",Ih,void 0);var Jh=t("yt.events.counter_")||{count:0};q("yt.events.counter_",Jh,void 0);function Kh(a,b,c,d){return Rb(Ih,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=Kh(a,b,c,d);if(e)return e;var e=++Jh.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new Dh(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 Dh(b);b.currentTarget=a;return c.call(a,b)};h=Uf(h);Ih[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 Lh(a,b){var c;c=P(a,"playing",function(){Mh(c);b.apply(a,arguments)},void 0)}function Nh(a,b,c,d){return Oh(a,b,c,function(a){return rh(a,d)})}
function Oh(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 Mh(a){a&&("string"==typeof a&&(a=[a]),D(a,function(a){if(a in Ih){var c=Ih[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 Ih[a]}}))}function Ph(a){for(var b in Ih)Ih[b][0]==a&&Mh(b)}
function Qh(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}function Rh(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 Sh(){return!!Ch(["fullscreenEnabled","fullScreenEnabled"],document)}function Th(){return Ch(["fullscreenElement","fullScreenElement"],document)};function Uh(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||Yb(Vh);this.assets=a.assets||{};this.attrs=a.attrs||Yb(Wh);this.params=a.params||Yb(Xh);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 Vh={enablejsapi:1},Wh={},Xh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
Uh.prototype.clone=function(){var a=new Uh,b;for(b in this){var c=this[b];"object"==ca(c)?a[b]=Yb(c):a[b]=c}return a};var Yh=Xc("Firefox"),Zh=bd()||Xc("iPod"),$h=Xc("iPad"),ai=Xc("Android")&&!($c()||Xc("Firefox")||Yc()||Xc("Silk")),bi=$c(),ci=Xc("Safari")&&!($c()||Xc("Coast")||Yc()||Zc()||Xc("Silk")||Xc("Android"))&&!(bd()||Xc("iPad")||Xc("iPod"));var di=y(),ei=null,fi=Array(50),gi=-1,hi=!1;function ii(a){ji();ei.push(a);ki(ei)}function li(a){var b=t("yt.mdx.remote.debug.handlers_");ob(b||[],a)}function mi(a,b){ji();var c=ei,d=ni(a,String(b));lb(c)?oi(d):(ki(c),D(c,function(a){a(d)}))}function ji(){ei||(ei=t("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",ei,void 0))}function oi(a){var b=(gi+1)%50;gi=b;fi[b]=a;hi||(hi=49==b)}
function ki(a){var b=fi;if(b[0]){var c=gi,d=hi?c:-1;do{var d=(d+1)%50,e=b[d];D(a,function(a){a(e)})}while(d!=c);fi=Array(50);gi=-1;hi=!1}}function ni(a,b){var c=(y()-di)/1E3;c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")};function pi(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 qi(a,b){return!!b&&(a.id==b||a.uuid==b)}function ri(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 si(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function ti(a){return new pi(a)}function ui(a){return ea(a)?E(a,ti):[]}
function vi(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 wi(a){return ea(a)?"["+E(a,vi).join(",")+"]":"null"};function xi(a,b,c){a&&(a.dataset?a.dataset[yi(b)]=c:a.setAttribute("data-"+b,c))}function zi(a,b){return a?a.dataset?a.dataset[yi(b)]:a.getAttribute("data-"+b):null}var Ai={};function yi(a){return Ai[a]||(Ai[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};function Q(){this.Za=this.Za;this.Ga=this.Ga}Q.prototype.Za=!1;Q.prototype.ka=function(){return this.Za};Q.prototype.dispose=function(){this.Za||(this.Za=!0,this.P())};function R(a,b){Bi(a,pa(Ci,b))}function Bi(a,b){a.Za?b.call(void 0):(a.Ga||(a.Ga=[]),a.Ga.push(n(void 0)?x(b,void 0):b))}Q.prototype.P=function(){if(this.Ga)for(;this.Ga.length;)this.Ga.shift()()};function Di(a){return a&&"function"==typeof a.ka?a.ka():!1}function Ci(a){a&&"function"==typeof a.dispose&&a.dispose()}
function Ei(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?Ei.apply(null,d):Ci(d)}};function Fi(){Q.call(this);this.j=[];this.oc={}}z(Fi,Q);f=Fi.prototype;f.lp=1;f.qj=0;f.subscribe=function(a,b,c){var d=this.oc[a];d||(d=this.oc[a]=[]);var e=this.lp;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.lp=e+3;d.push(e);return e};f.qa=function(a,b,c){if(a=this.oc[a]){var d=this.j;if(a=F(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Pb(a)}return!1};
f.Pb=function(a){if(0!=this.qj)return this.o||(this.o=[]),this.o.push(a),!1;var b=this.j[a];if(b){var c=this.oc[b];c&&ob(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.oc[a];if(c){this.qj++;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.qj--;if(this.o&&0==this.qj)for(;c=this.o.pop();)this.Pb(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.oc[a];b&&(D(b,this.Pb,this),delete this.oc[a])}else this.j.length=0,this.oc={}};f.Ta=function(a){if(a){var b=this.oc[a];return b?b.length:0}a=0;for(b in this.oc)a+=this.Ta(b);return a};f.P=function(){Fi.K.P.call(this);delete this.j;delete this.oc;delete this.o};var Gi=t("yt.pubsub.instance_")||new Fi;Fi.prototype.subscribe=Fi.prototype.subscribe;Fi.prototype.unsubscribeByKey=Fi.prototype.Pb;Fi.prototype.publish=Fi.prototype.L;Fi.prototype.clear=Fi.prototype.clear;q("yt.pubsub.instance_",Gi,void 0);var Hi=t("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Hi,void 0);var Ii=t("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Ii,void 0);var Ji=t("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Ji,void 0);
var Ki=t("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Ki,void 0);function Li(a,b,c){var d=Mi();if(d){var e=d.subscribe(a,function(){if(!Ki||Ki!=e){var d=arguments,h=function(){Hi[e]&&b.apply(c||window,d)};try{Ji[a]?h():L(h,0)}catch(k){Xf(k)}}},c);Hi[e]=!0;Ii[a]||(Ii[a]=[]);Ii[a].push(e);return e}return 0}function Ni(a){var b=Mi();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),D(a,function(a){b.unsubscribeByKey(a);delete Hi[a]}))}
function Oi(a,b){var c=Mi();c&&c.publish.apply(c,arguments)}function Pi(a,b){Ji[a]=!0;var c=Mi();c&&c.publish.apply(c,arguments);Ji[a]=!1}function Mi(){return t("yt.pubsub.instance_")};function Qi(){};function Ri(){}z(Ri,Qi);Ri.prototype.Ta=function(){var a=0;ve(this.bc(!0),function(){a++});return a};Ri.prototype.clear=function(){var a=we(this.bc(!0)),b=this;D(a,function(a){b.remove(a)})};function Si(a){this.j=a}z(Si,Ri);f=Si.prototype;f.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};f.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};f.get=function(a){a=this.j.getItem(a);if(!w(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.j.removeItem(a)};
f.Ta=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(!w(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.j.clear()};f.key=function(a){return this.j.key(a)};function Ti(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}z(Ti,Si);function Ui(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}z(Ui,Si);function Vi(a){this.j=a}Vi.prototype.set=function(a,b){n(b)?this.j.set(a,sg(b)):this.j.remove(a)};Vi.prototype.get=function(a){var b;try{b=this.j.get(a)}catch(c){return}if(null!==b)try{return qg(b)}catch(d){throw"Storage: Invalid value was encountered";}};Vi.prototype.remove=function(a){this.j.remove(a)};function Wi(a){this.j=a}z(Wi,Vi);function Xi(a){this.data=a}function Yi(a){return!n(a)||a instanceof Xi?a:new Xi(a)}Wi.prototype.set=function(a,b){Wi.K.set.call(this,a,Yi(b))};Wi.prototype.o=function(a){a=Wi.K.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Wi.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 Zi(a){this.j=a}z(Zi,Wi);function $i(a){var b=a.creation;a=a.expiration;return!!a&&a<y()||!!b&&b>y()}Zi.prototype.set=function(a,b,c){if(b=Yi(b)){if(c){if(c<y()){Zi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=y()}Zi.K.set.call(this,a,b)};Zi.prototype.o=function(a,b){var c=Zi.K.o.call(this,a);if(c)if(!b&&$i(c))Zi.prototype.remove.call(this,a);else return c};function aj(a){this.j=a}z(aj,Zi);function bj(a,b){var c=[];ve(b,function(a){var b;try{b=aj.prototype.o.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?$i(b)&&c.push(a):c.push(a)},a);return c}function cj(a,b){var c=bj(a,b);D(c,function(a){aj.prototype.remove.call(this,a)},a)}function dj(){var a=ej;cj(a,a.j.bc(!0))};function fj(a,b,c){var d=c&&0<c?c:0;c=d?y()+1E3*d:0;if((d=d?ej:gj)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function hj(a){if(!gj&&!ej||!window.JSON)return null;var b;try{b=gj.get(a)}catch(c){}if(!w(b))try{b=ej.get(a)}catch(d){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function ij(a){gj&&gj.remove(a);ej&&ej.remove(a)}var ej,jj=new Ti;ej=jj.isAvailable()?new aj(jj):null;var gj,kj=new Ui;gj=kj.isAvailable()?new aj(kj):null;var lj=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo"];function mj(a,b){a==lj.length?b(null):nj(lj[a],function(c){c?(c=lj[a],fj("yt-remote-cast-last-extension",c),b(c)):mj(a+1,b)})}function oj(a){return"chrome-extension://"+a+"/cast_sender.js"}
function nj(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",oj(a),!0),c.send()}catch(d){b(!1)}}
function pj(a){window.__onGCastApiAvailable=a;qj(function(b){if(b){mi("bootstrap","Found cast extension: "+b);q("chrome.cast.extensionId",b,void 0);var c=document.createElement("script");c.src=oj(b);c.onerror=function(){rj();ij("yt-remote-cast-last-extension");a(!1,"Extension JS failed to load.")};(document.head||document.documentElement).appendChild(c)}else mi("bootstrap","No cast extension found"),a(!1,"No cast extension found")})}
function rj(){window.__onGCastApiAvailable&&delete window.__onGCastApiAvailable}function qj(a){var b=hj("yt-remote-cast-last-extension");b?a(b):mj(0,a)};var sj={qJ:"ska",YI:"que",wI:"mus",nJ:"sus"};function tj(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 uj(a,b){qc(a);qc(a);return Oc(b,null)};function vj(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])?tb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function wj(a,b){var c=[];Hb(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 xj(a){"?"==a.charAt(0)&&(a=a.substr(1));return vj(a,"&")}
function yj(a){a=a.split(",");return a=a.map(function(a){return xj(a)})}function zj(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),xj(1<a.length?a[1]:a[0])):{}}var Aj=Ke;function Bj(a){var b=Ie(a);a=b[1];var c=b[2],d=b[3],b=b[4],e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e}function Cj(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=xj(d[1]||""),e;for(e in b)d[e]=b[e];return Ve(a,d)+c}
function Dj(){var a;a||(a=document.location.href);a=Ie(a)[1]||null;return null!==a&&"https"==a};var Ej=null;"undefined"!=typeof XMLHttpRequest?Ej=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Ej=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Fj(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 Gj(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Uf(b)(l)}var l=Ej&&Ej();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=Hj(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 Hj(a,b){b=b||{};for(var c in Ij){var d=Tf(Ij[c]),e;if(e=d){e=a;var g=void 0;g=window.location.href;var h=Ie(e)[1]||null,k=Aj(e);h&&k?(e=Ie(e),g=Ie(g),e=e[3]==g[3]&&e[1]==g[1]&&e[4]==g[4]):e=k?Aj(g)==k&&(Number(Ie(g)[4]||null)||null)==(Number(Ie(e)[4]||null)||null):!0;e||(e=c,g=Tf("CORS_HEADER_WHITELIST")||{},e=(h=Aj(a))?(g=g[h])?G(g,e):!1:!0)}e&&(b[c]=d)}return b}
function Jj(a,b){var c=Tf("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.AK&&(!Aj(a)||Aj(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Ib&&b.Ib[c])}
function Kj(a,b){var c=b.format||"JSON";b.FK&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=Tf("XSRF_FIELD_NAME"),e=Tf("XSRF_TOKEN"),g=b.eg;g&&(g[d]&&delete g[d],a=Cj(a,g));var h=b.BC||"",g=b.Ib;Jj(a,b)&&(g||(g={}),g[d]=e);g&&w(h)&&(d=xj(h),ac(d,g),h=Te(d));var k=!1,l,p=Gj(a,function(a){if(!k){k=!0;l&&M(l);var d=Fj(a),e=null;if(d||400<=a.status&&500>a.status)e=Lj(c,a,b.zK);if(d)i:{switch(c){case "XML":d=0==parseInt(e&&
e.return_code,10);break i;case "RAW":d=!0;break i}d=!!e}var e=e||{},g=b.context||m;d?b.jb&&b.jb.call(g,a,e):b.onError&&b.onError.call(g,a,e);b.xc&&b.xc.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.Te&&0<b.timeout&&(l=L(function(){k||(k=!0,p.abort(),M(l),b.Te.call(b.context||m,p))},b.timeout));return p}
function Lj(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=rg(a));break;case "XML":if(b=(b=b.responseXML)?Mj(b):null)d={},D(b.getElementsByTagName("*"),function(a){d[a.tagName]=Nj(a)})}if(c)for(var e in d)if("html_content"==e||ua(e,"_html"))d[e]=uj(rc(),d[e]);return d}function Mj(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}
function Nj(a){var b="";D(a.childNodes,function(a){b+=a.nodeValue});return b}var Oj={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"},Pj={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 Qj(a,b,c,d){if(Tf("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=Bj(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Oj.watch_actions_ajax]=1;Kj(e,{format:"RAW",method:"GET",eg:g,xc:function(a){var b=xj(a.responseText);b[Pj.watch_actions_ajax]?c&&c():d&&d(a,b)}})}}var Ij={"X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Timestamp":"PAGE_BUILD_TIMESTAMP","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};function Rj(a){this.port=this.A="";this.j="/api/lounge";this.o=!0;a=a||document.location.href;var b=Number(Ie(a)[4]||null)||null||"";b&&(this.port=":"+b);this.A=Ke(a)||"";a=Uc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ra(a,"10.0")&&(this.o=!1))}function Sj(a,b,c,d){var e=a.j;if(n(d)?d:a.o)e="https://"+a.A+a.port+a.j;return Ve(e+b,c||{})}
function Tj(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,jb:pa(a.C,d,!0),onError:pa(a.B,e),Te:pa(a.D,e)};c&&(a.Ib=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Kj(b,a)}Rj.prototype.C=function(a,b,c,d){b?a(d):a({text:c.responseText})};Rj.prototype.B=function(a,b){a(Error("Request error: "+b.status))};Rj.prototype.D=function(a){a(Error("request timed out"))};function Uj(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Uj.prototype.id="";Uj.prototype.name="";Uj.prototype.activityId="";Uj.prototype.status="UNKNOWN";Uj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};function Vj(){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 Wj(a){return E(a,function(a){return{key:a.id,name:a.name}})}function Xj(a){return E(a,function(a){return new Uj(a)})}function Yj(a,b){return F(a,function(a){return a.id==b})}function Zj(a,b){return F(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function ak(a,b){return F(a,function(a){return qi(a,b)})};function S(){Q.call(this);this.S=new Fi;R(this,this.S)}z(S,Q);S.prototype.subscribe=function(a,b,c){return this.ka()?0:this.S.subscribe(a,b,c)};S.prototype.qa=function(a,b,c){return this.ka()?!1:this.S.qa(a,b,c)};S.prototype.Pb=function(a){return this.ka()?!1:this.S.Pb(a)};S.prototype.L=function(a,b){return this.ka()?!1:this.S.L.apply(this.S,arguments)};function bk(a){S.call(this);this.D=a;this.screens=[]}z(bk,S);f=bk.prototype;f.gc=function(){return this.screens};f.contains=function(a){return!!Zj(this.screens,a)};f.get=function(a){return a?ak(this.screens,a):null};function ck(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 dk(a,b){var c=a.screens.length!=b.length;a.screens=eb(a.screens,function(a){return!!Zj(b,a)});for(var d=0,e=b.length;d<e;d++)c=ck(a,b[d])||c;return c}function ek(a,b){var c=a.screens.length;a.screens=eb(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});return a.screens.length<c}f.info=function(a){mi(this.D,a)};f.warn=function(a){mi(this.D,a)};function fk(a,b,c,d){S.call(this);this.F=a;this.D=b;this.B=c;this.C=d;this.A=0;this.j=null;this.o=NaN}z(fk,S);var gk=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=fk.prototype;f.start=function(){!this.j&&isNaN(this.o)&&this.Es()};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();fk.K.P.call(this)};
f.Es=function(){this.o=NaN;this.j=Kj(Sj(this.F,"/pairing/get_screen"),{method:"POST",Ib:{pairing_code:this.D},timeout:5E3,jb:x(this.DD,this),onError:x(this.CD,this),Te:x(this.ED,this)})};f.DD=function(a,b){this.j=null;var c=b.screen||{};c.dialId=this.B;c.name=this.C;this.L("pairingComplete",new pi(c))};
f.CD=function(a){this.j=null;a.status&&404==a.status?this.A>=gk.length?this.L("pairingFailed",Error("DIAL polling timed out")):(a=gk[this.A],this.o=L(x(this.Es,this),a),this.A++):this.L("pairingFailed",Error("Server error "+a.status))};f.ED=function(){this.j=null;this.L("pairingFailed",Error("Server not responding"))};function hk(a,b){this.Rf=a;this.Ke=b+"::"}z(hk,Ri);f=hk.prototype;f.Rf=null;f.Ke="";f.set=function(a,b){this.Rf.set(this.Ke+a,b)};f.get=function(a){return this.Rf.get(this.Ke+a)};f.remove=function(a){this.Rf.remove(this.Ke+a)};f.bc=function(a){var b=this.Rf.bc(!0),c=this,d=new te;d.next=function(){for(var d=b.next();d.substr(0,c.Ke.length)!=c.Ke;)d=b.next();return a?d.substr(c.Ke.length):c.Rf.get(d)};return d};function ik(a){var b=new Ti;return b.isAvailable()?a?new hk(b,a):b:null};function jk(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 kk(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ka(a):b.substr(0,1)+a}f=jk.prototype;f.Ta=function(){return this.j.Ta()};f.add=function(a){this.j.set(kk(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(kk(a))};f.clear=function(){this.j.clear()};f.isEmpty=function(){return this.j.isEmpty()};
f.contains=function(a){return ze(this.j,kk(a))};f.Oa=function(){return this.j.Oa()};f.clone=function(){return new jk(this)};f.equals=function(a){return this.Ta()==Ce(a)&&lk(this,a)};function lk(a,b){var c=Ce(b);if(a.Ta()>c)return!1;!(b instanceof jk)&&5<c&&(b=new jk(b));return Ge(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.tf?c.tf(a):fa(c)||w(c)?G(c,a):Nb(c,a)})}f.bc=function(){return this.j.bc(!1)};function mk(a){a&&(this.id=a.id||a.name,this.name=a.name,this.type=a.type||"REMOTE_CONTROL",this.rs=a.user||"",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new jk(eb((a.capabilities||"").split(","),pa(Mb,sj))))}mk.prototype.id="";mk.prototype.name="";f=mk.prototype;f.type="REMOTE_CONTROL";f.rs="";f.avatar="";f.theme="u";f.equals=function(a){return a?this.id==a.id:!1};function nk(a){this.j=a}var ok=/\s*;\s*/;f=nk.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(y()+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(ok),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.La=function(){return pk(this).keys};f.Oa=function(){return pk(this).values};f.isEmpty=function(){return!this.j.cookie};f.Ta=function(){return this.j.cookie?(this.j.cookie||"").split(ok).length:0};
f.tf=function(a){for(var b=pk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=pk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function pk(a){a=(a.j.cookie||"").split(ok);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 qk=new nk(document);qk.o=3950;function rk(a,b){qk.set(""+a,b,-1,"/","youtube.com")};var sk;function tk(){var a=uk(),b=vk();G(a,b);wk()&&Eb(a,b);a=xk(a);if(lb(a))try{a="remote_sid",qk.remove(""+a,"/","youtube.com")}catch(c){}else try{rk("remote_sid",a.join(","))}catch(d){}}function uk(){var a=hj("yt-remote-connected-devices")||[];zb(a);return a}function xk(a){if(lb(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 yk(a){fj("yt-remote-connected-devices",a,86400)}
function vk(){if(zk)return zk;var a=hj("yt-remote-device-id");a||(a=Vj(),fj("yt-remote-device-id",a,31536E3));for(var b=uk(),c=1,d=a;G(b,d);)c++,d=a+"#"+c;return zk=d}function Ak(){return hj("yt-remote-session-browser-channel")}function wk(){return hj("yt-remote-session-screen-id")}
function Bk(a){5<a.length&&(a=a.slice(a.length-5));var b=E(Ck(),function(a){return a.loungeToken}),c=E(a,function(a){return a.loungeToken});hb(c,function(a){return!G(b,a)})&&Dk();fj("yt-remote-local-screens",a,31536E3)}function Ck(){return hj("yt-remote-local-screens")||[]}function Dk(){fj("yt-remote-lounge-token-expiration",!0,86400)}function Ek(a){fj("yt-remote-online-screens",a,60)}function Fk(){return hj("yt-remote-online-dial-devices")||[]}
function Gk(a,b){fj("yt-remote-session-browser-channel",a);fj("yt-remote-session-screen-id",b);var c=uk(),d=vk();G(c,d)||c.push(d);yk(c);tk()}function Hk(a){a||(ij("yt-remote-session-screen-id"),ij("yt-remote-session-video-id"));tk();a=uk();ob(a,vk());yk(a)}function Ik(){if(!sk){var a=ik();a&&(sk=new Vi(a))}return sk?!!sk.get("yt-remote-use-staging-server"):!1}var zk="";function Jk(a){bk.call(this,"LocalScreenService");this.o=a;this.j=NaN;Kk(this);this.info("Initializing with "+wi(this.screens))}z(Jk,bk);f=Jk.prototype;f.start=function(){Kk(this)&&this.L("screenChange");!hj("yt-remote-lounge-token-expiration")&&Lk(this);M(this.j);this.j=L(x(this.start,this),1E4)};f.add=function(a,b){Kk(this);ck(this,a);Mk(this,!1);this.L("screenChange");b(a);a.token||Lk(this)};f.remove=function(a,b){var c=Kk(this);ek(this,a)&&(Mk(this,!1),c=!0);b(a);c&&this.L("screenChange")};
f.Uj=function(a,b,c,d){var e=Kk(this),g=this.get(a.id);g?(g.name!=b&&(g.name=b,Mk(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.L("screenChange")};f.P=function(){M(this.j);Jk.K.P.call(this)};function Lk(a){if(a.screens.length){var b=E(a.screens,function(a){return a.id}),c=Sj(a.o,"/pairing/get_lounge_token_batch");Tj(a.o,c,{screen_ids:b.join(",")},x(a.wx,a),x(a.vx,a))}}
f.wx=function(a){Kk(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)}Mk(this,!b);b&&this.warn("Missed "+b+" lounge tokens.")};f.vx=function(a){this.warn("Requesting lounge tokens failed: "+a)};function Kk(a){var b=ui(Ck()),b=eb(b,function(a){return!a.uuid});return dk(a,b)}function Mk(a,b){Bk(E(a.screens,si));b&&Dk()};function Nk(a,b){S.call(this);this.C=b;for(var c=hj("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;Ok("Initialized with "+sg(this.j))}z(Nk,S);f=Nk.prototype;f.start=function(){var a=parseInt(hj("yt-remote-fast-check-period")||"0",10);(this.B=y()-144E5<a?0:a)?Pk(this):(this.B=y()+3E5,fj("yt-remote-fast-check-period",this.B),this.Nm())};f.isEmpty=function(){return Ub(this.j)};
f.update=function(){Ok("Updating availability on schedule.");var a=this.C(),b=Ib(this.j,function(b,d){return b&&!!ak(a,d)},this);Qk(this,b)};function Rk(a,b,c){var d=Sj(a.D,"/pairing/get_screen_availability");Tj(a.D,d,{lounge_token:b.token},x(function(a){a=a.screens||[];for(var d=0,h=a.length;d<h;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),x(function(){c(!1)},a))}f.P=function(){M(this.A);this.A=NaN;this.o&&(this.o.abort(),this.o=null);Nk.K.P.call(this)};
function Qk(a,b){var c;i:if(Lb(b)!=Lb(a.j))c=!1;else{c=Pb(b);for(var d=0,e=c.length;d<e;++d)if(!a.j[c[d]]){c=!1;break i}c=!0}c||(Ok("Updated online screens: "+sg(a.j)),a.j=b,a.L("screenChange"));Sk(a)}function Pk(a){isNaN(a.A)||M(a.A);a.A=L(x(a.Nm,a),0<a.B&&a.B<y()?2E4:1E4)}
f.Nm=function(){M(this.A);this.A=NaN;this.o&&this.o.abort();var a=Tk(this);if(Lb(a)){var b=Sj(this.D,"/pairing/get_screen_availability"),c={lounge_token:Pb(a).join(",")};this.o=Tj(this.D,b,c,x(this.tB,this,a),x(this.sB,this))}else Qk(this,{}),Pk(this)};f.tB=function(a,b){this.o=null;var c=Pb(Tk(this));if(Cb(c,Pb(a))){for(var c=b.screens||[],d={},e=0,g=c.length;e<g;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Qk(this,d);Pk(this)}else this.Ua("Changing Screen set during request."),this.Nm()};
f.sB=function(a){this.Ua("Screen availability failed: "+a);this.o=null;Pk(this)};function Ok(a){mi("OnlineScreenService",a)}f.Ua=function(a){mi("OnlineScreenService",a)};function Tk(a){var b={};D(a.C(),function(a){a.token?b[a.token]=a.id:this.Ua("Requesting availability of screen w/o lounge token.")});return b}
function Sk(a){var b=Pb(Ib(a.j,function(a){return a}));zb(b);b.length?fj("yt-remote-online-screen-ids",b.join(","),60):ij("yt-remote-online-screen-ids");a=eb(a.C(),function(a){return!!this.j[a.id]},a);Ek(E(a,si))};function Uk(a){bk.call(this,"ScreenService");this.C=a;this.j=this.o=null;this.A=[];this.B={};Vk(this)}z(Uk,bk);f=Uk.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.Uj=function(a,b,c,d){this.o.contains(a)?this.o.Uj(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:rb(this.screens,eb(this.A,function(a){return!this.contains(a)},this))};f.Fs=function(){return eb(this.gc(!0),function(a){return!!this.j.j[a.id]},this)};
function Wk(a,b,c,d,e,g){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.B[b]);var h=a.gc();if(h=(c?ak(h,c):null)||ak(h,b)){h.uuid=b;var k=Xk(a,h);Rk(a.j,k,function(a){e(a?k:null)})}else c?Yk(a,c,x(function(a){var g=Xk(this,new pi({name:d,screenId:c,loungeToken:a,dialId:b||""}));Rk(this.j,g,function(a){e(a?g:null)})},a),g):e(null)}
f.Gs=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var g=new fk(this.C,a,b,c);g.subscribe("pairingComplete",x(function(a){Ci(g);d(Xk(this,a))},this));g.subscribe("pairingFailed",function(a){Ci(g);e(a)});g.start();return x(g.stop,g)};function Zk(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.Rw=function(a,b){for(var c=2,d=b(a,c);Zk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
f.GD=function(a,b,c,d){Kj(Sj(this.C,"/pairing/get_screen"),{method:"POST",Ib:{pairing_code:a},timeout:5E3,jb:x(function(a,d){var h=new pi(d.screen||{});if(!h.name||Zk(this,h.name))h.name=this.Rw(h.name,b);c(Xk(this,h))},this),onError:x(function(a){d(Error("pairing request failed: "+a.status))},this),Te:x(function(){d(Error("pairing request timed out."))},this)})};f.P=function(){Ci(this.o);Ci(this.j);Uk.K.P.call(this)};
function Yk(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Ib:{screen_ids:b},method:"POST",context:a,jb: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"))}};Kj(Sj(a.C,"/pairing/get_lounge_token_batch"),e)}
function $k(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: "+wi(a.screens))}f.Wx=function(){$k(this);this.L("screenChange");this.j.update()};
function Vk(a){al(a);a.o=new Jk(a.C);a.o.subscribe("screenChange",x(a.Wx,a));$k(a);a.A=ui(hj("yt-remote-automatic-screen-cache")||[]);al(a);a.info("Initializing automatic screens: "+wi(a.A));a.j=new Nk(a.C,x(a.gc,a,!0));a.j.subscribe("screenChange",x(function(){this.L("onlineScreenChange")},a))}
function Xk(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=ak(a.A,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.A.push(b),fj("yt-remote-automatic-screen-cache",E(a.A,si)));al(a);a.B[b.uuid]=b.id;fj("yt-remote-device-id-map",a.B,31536E3);return b}function al(a){a.B=hj("yt-remote-device-id-map")||{}}Uk.prototype.dispose=Uk.prototype.dispose;function bl(a,b,c){S.call(this);this.N=c;this.H=a;this.o=b;this.A=null}z(bl,S);function cl(a,b){a.A=b;a.L("sessionScreen",a.A)}f=bl.prototype;f.Xb=function(a){this.ka()||(a&&this.warn(""+a),this.A=null,this.L("sessionScreen",null))};f.info=function(a){mi(this.N,a)};f.warn=function(a){mi(this.N,a)};f.Is=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,x(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),x(function(){this.warn("Failed to update receiver status for: "+b.friendlyName)},this))};f.P=function(){this.Um("");bl.K.P.call(this)};function dl(a,b){bl.call(this,a,b,"CastSession");this.j=null;this.C=0;this.B=null;this.F=x(this.HD,this);this.D=x(this.wC,this);this.C=L(x(function(){el(this,null)},this),12E4)}z(dl,bl);f=dl.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&&fl(this);gl(this,"getMdxSessionStatus")};f.Of=function(a){this.info("launchWithParams: "+sg(a));this.B=a;this.j&&fl(this)};
f.stop=function(){this.j?this.j.stop(x(function(){this.Xb()},this),x(function(){this.Xb(Error("Failed to stop receiver app."))},this)):this.Xb(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;dl.K.P.call(this)};
function fl(a){var b=a.B.videoId||a.B.videoIds[a.B.index];b&&gl(a,"flingVideo",{videoId:b,currentTime:a.B.currentTime||0});a.B=null}function gl(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+sg(c));var d={};d.type=b;c&&(d.data=c);a.j?a.j.sendMessage("urn:x-cast:com.google.youtube.mdx",d,v,x(function(){this.warn("Failed to send message: "+b+".")},a)):a.warn("Sending yt message without session: "+sg(d))}
f.wC=function(a,b){if(!this.ka())if(b){var c=rg(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+sg(c));switch(d){case "mdxSessionStatus":el(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 el(a,b){M(a.C);b?(a.info("onConnectedScreenId_: Received screenId: "+b),a.A&&a.A.id==b||Wk(a.H,a.o.label,b,a.o.friendlyName,x(function(a){a?cl(this,a):this.Xb(Error("Unable to fetch screen."))},a),x(a.Xb,a))):a.Xb(Error("Waiting for session status timed out."))}f.Is=function(){return this.j};f.HD=function(a){this.ka()||a||(this.warn("Cast session died."),this.Xb())};function hl(a,b){bl.call(this,a,b,"DialSession");this.C=this.G=null;this.I="";this.B=null;this.F=v;this.D=NaN;this.J=x(this.JD,this);this.j=v}z(hl,bl);f=hl.prototype;f.Tm=function(a){this.C=a;this.C.addUpdateListener(this.J)};f.Of=function(a){this.B=a;this.F()};f.stop=function(){this.j();this.j=v;M(this.D);this.C?this.C.stop(x(this.Xb,this,null),x(this.Xb,this,"Failed to stop DIAL device.")):this.Xb()};
f.P=function(){this.j();this.j=v;M(this.D);this.C&&this.C.removeUpdateListener(this.J);this.C=null;hl.K.P.call(this)};function il(a){a.j=a.H.Gs(a.I,a.o.label,a.o.friendlyName,x(function(a){this.j=v;cl(this,a)},a),x(function(a){this.j=v;this.Xb(a)},a))}f.JD=function(a){this.ka()||a||(this.warn("DIAL session died."),this.j(),this.j=v,this.Xb())};
function jl(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}Ik()&&(b.env_useStageMdx=1);return Te(b)}f.$l=function(a){this.I=Vj();if(this.B){var b=new chrome.cast.DialLaunchResponse(!0,jl(this));a(b);il(this)}else this.F=x(function(){M(this.D);this.F=v;this.D=NaN;var b=new chrome.cast.DialLaunchResponse(!0,jl(this));a(b);il(this)},this),this.D=L(x(function(){this.F()},this),100)};
f.Xy=function(a,b){Wk(this.H,this.G.receiver.label,a,this.o.friendlyName,x(function(a){a&&a.token?(cl(this,a),b(new chrome.cast.DialLaunchResponse(!1))):this.$l(b)},this),x(function(a){this.warn("Failed to get DIAL screen: "+a);this.$l(b)},this))};function kl(a,b){bl.call(this,a,b,"ManualSession");this.j=L(x(this.Of,this,null),150)}z(kl,bl);kl.prototype.stop=function(){this.Xb()};kl.prototype.Tm=v;kl.prototype.Of=function(){M(this.j);this.j=NaN;var a=ak(this.H.gc(),this.o.label);a?cl(this,a):this.Xb(Error("No such screen"))};kl.prototype.P=function(){M(this.j);this.j=NaN;kl.K.P.call(this)};function ll(a){S.call(this);this.o=a;this.j=null;this.C=!1;this.A=[];this.B=x(this.lB,this)}z(ll,S);f=ll.prototype;
f.init=function(a,b){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest("233637DE");c.dialRequest=new chrome.cast.DialRequest("YouTube");var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new chrome.cast.ApiConfig(c,x(this.Zq,this),x(this.oB,this),d,e);c.customDialLaunchCallback=x(this.oA,this);chrome.cast.initialize(c,x(function(){this.ka()||(chrome.cast.addReceiverActionListener(this.B),
ii(ml),this.o.subscribe("onlineScreenChange",x(this.Hs,this)),this.A=nl(this),chrome.cast.setCustomReceivers(this.A,v,x(function(a){this.Ua("Failed to set initial custom receivers: "+sg(a))},this)),this.L("yt-remote-cast2-availability-change",ol(this)),b(!0))},this),function(a){this.Ua("Failed to initialize API: "+sg(a));b(!1)})};
f.QC=function(a,b){pl("Setting connected screen ID: "+a+" -> "+b);if(this.j){var c=this.j.A;if(!a||c&&c.id!=a)pl("Unsetting old screen status: "+this.j.o.friendlyName),Ci(this.j),this.j=null}if(a&&b){if(!this.j){c=ak(this.o.gc(),a);if(!c){pl("setConnectedScreenStatus: Unknown screen.");return}var d=ql(this,c);d||(pl("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,x(function(a){this.Ua("Failed to set initial custom receivers: "+sg(a))},this)));pl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);rl(this,new kl(this.o,d),!0)}this.j.Um(b)}else pl("setConnectedScreenStatus: no screen.")};function ql(a,b){return b?F(a.A,function(a){return qi(b,a.label)},a):null}f.RC=function(a){this.ka()?this.Ua("Setting connection data on disposed cast v2"):this.j?this.j.Of(a):this.Ua("Setting connection data without a session")};
f.stopSession=function(){this.ka()?this.Ua("Stopping session on disposed cast v2"):this.j?(this.j.stop(),Ci(this.j),this.j=null):pl("Stopping non-existing session")};f.requestSession=function(){chrome.cast.requestSession(x(this.Zq,this),x(this.wB,this))};f.P=function(){this.o.qa("onlineScreenChange",x(this.Hs,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.B);li(ml);Ci(this.j);ll.K.P.call(this)};function pl(a){mi("Controller",a)}f.Ua=function(a){mi("Controller",a)};
function ml(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)}function ol(a){return a.C||!!a.A.length||!!a.j}function rl(a,b,c){Ci(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",x(a.ar,a,b)),b.A?a.L("yt-remote-cast2-session-change",b.A):c&&a.j.Of(null)):a.L("yt-remote-cast2-session-change",null)}
f.ar=function(a,b){this.j==a&&(b||rl(this,null),this.L("yt-remote-cast2-session-change",b))};
f.lB=function(a,b){if(!this.ka())if(a)switch(pl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.o.label!=a.label)pl("onReceiverAction_: Stopping active receiver: "+this.j.o.friendlyName),this.j.stop();else{pl("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:rl(this,new kl(this.o,a));break;case chrome.cast.ReceiverType.DIAL:rl(this,
new hl(this.o,a));break;case chrome.cast.ReceiverType.CAST:rl(this,new dl(this.o,a));break;default:this.Ua("Unknown receiver type: "+a.receiverType);return}break;case chrome.cast.ReceiverAction.STOP:this.j&&this.j.o.label==a.label?this.j.stop():this.Ua("Stopping receiver w/o session: "+a.friendlyName)}else this.Ua("onReceiverAction_ called without receiver.")};
f.oA=function(a){if(this.ka())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.Ua("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.Ua("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 pl("Reselecting dial screen."),
this.L("yt-remote-cast2-session-change",this.j.A),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.Ua('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);rl(this,new hl(this.o,b))}b=this.j;b.G=a;return b.G.appState==chrome.cast.DialAppState.RUNNING?new Promise(x(b.Xy,b,(b.G.extraData||{}).screenId||null)):new Promise(x(b.$l,b))};
f.Zq=function(a){if(!this.ka()){pl("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)pl("Got resumed cast session before resumed mdx connection."),rl(this,new dl(this.o,b),!0);else{this.Ua("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.j.o,d=ak(this.o.gc(),c.label);d&&qi(d,b.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType==
chrome.cast.ReceiverType.CAST&&(pl("onSessionEstablished_: manual to cast session change "+b.friendlyName),Ci(this.j),this.j=new dl(this.o,b),this.j.subscribe("sessionScreen",x(this.ar,this,this.j)),this.j.Of(null));this.j.Tm(a)}}};f.ID=function(){return this.j?this.j.Is():null};f.wB=function(a){this.ka()||(this.Ua("Failed to estabilish a session: "+sg(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&rl(this,null))};
f.oB=function(a){pl("Receiver availability updated: "+a);if(!this.ka()){var b=ol(this);this.C=a==chrome.cast.ReceiverAvailability.AVAILABLE;ol(this)!=b&&this.L("yt-remote-cast2-availability-change",ol(this))}};
function nl(a){var b=a.o.Fs(),c=a.j&&a.j.o;a=E(b,function(a){c&&qi(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,g=ql(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.Hs=function(){if(!this.ka()){var a=ol(this);this.A=nl(this);pl("Updating custom receivers: "+sg(this.A));chrome.cast.setCustomReceivers(this.A,v,x(function(){this.Ua("Failed to set custom receivers.")},this));var b=ol(this);b!=a&&this.L("yt-remote-cast2-availability-change",b)}};ll.prototype.setLaunchParams=ll.prototype.RC;ll.prototype.setConnectedScreenStatus=ll.prototype.QC;ll.prototype.stopSession=ll.prototype.stopSession;ll.prototype.getCastSession=ll.prototype.ID;
ll.prototype.requestSession=ll.prototype.requestSession;ll.prototype.init=ll.prototype.init;ll.prototype.dispose=ll.prototype.dispose;function sl(a,b,c){tl()?vl(b)&&(wl(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?xl(a,c):pj(function(b,e){b?xl(a,c):(yl("Failed to load cast API: "+e),zl(!1),wl(!1),ij("yt-remote-cast-available"),ij("yt-remote-cast-receiver"),Al(),c(!1))})):ul("Cannot initialize because not running Chrome")}function Al(){ul("dispose");rj();var a=Bl();a&&a.dispose();Cl=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);Dl(!1);Ni(El);El.length=0}function Fl(){return!!hj("yt-remote-cast-installed")}
function Gl(){var a=hj("yt-remote-cast-receiver");return a?a.friendlyName:null}function Hl(){return Fl()?Bl()?Cl.getCastSession():(yl("getCastSelector: Cast is not initialized."),null):(yl("getCastSelector: Cast API is not installed!"),null)}
function Il(){Fl()?Bl()?Jl()?(ul("Requesting cast selector."),Cl.requestSession()):(ul("Wait for cast API to be ready to request the session."),El.push(Li("yt-remote-cast2-api-ready",Il))):yl("requestCastSelector: Cast is not initialized."):yl("requestCastSelector: Cast API is not installed!")}function Kl(a){Jl()?Bl().setLaunchParams(a):yl("setLaunchParams called before ready.")}
function Ll(){var a=Ml();Jl()?Bl().setConnectedScreenStatus(a,"YouTube TV"):yl("setConnectedScreenStatus called before ready.")}var Cl=null;function tl(){var a;a=0<=Uc.search(/\ (CrMo|Chrome|CriOS)\//);return bi||a}function Nl(a,b){Cl.init(a,b)}
function vl(a){var b=!1;if(!Cl){var c=t("yt.mdx.remote.cloudview.instance_");c||(c=new ll(a),c.subscribe("yt-remote-cast2-availability-change",function(a){fj("yt-remote-cast-available",a);Oi("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){ul("onReceiverSelected: "+a.friendlyName);fj("yt-remote-cast-receiver",a);Oi("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){ul("onReceiverResumed: "+a.friendlyName);
fj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){ul("onSessionChange: "+vi(a));a||ij("yt-remote-cast-receiver");Oi("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);Cl=c}ul("cloudview.createSingleton_: "+b);return b}function Bl(){Cl||(Cl=t("yt.mdx.remote.cloudview.instance_"));return Cl}
function xl(a,b){zl(!0);wl(!1);Nl(a,function(a){a?(Dl(!0),Oi("yt-remote-cast2-api-ready")):(yl("Failed to initialize cast API."),zl(!1),ij("yt-remote-cast-available"),ij("yt-remote-cast-receiver"),Al());b(a)})}function ul(a){mi("cloudview",a)}function yl(a){mi("cloudview",a)}function zl(a){ul("setCastInstalled_ "+a);fj("yt-remote-cast-installed",a)}function Jl(){return!!t("yt.mdx.remote.cloudview.apiReady_")}function Dl(a){ul("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)}
function wl(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)}var El=[];function Ol(a,b){this.action=a;this.params=b||null};function Pl(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Ql(a){mi("CAST",a)}function Rl(a){var b=Sl();b&&b.logMessage&&b.logMessage(a)}function Tl(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Ul.length;)Ul.shift()()}
function Vl(){if(!t("yt.mdx.remote.castv2_")&&!Wl&&(lb(Xl)&&tb(Xl,Fk()),Pl())){var a=Sl();a?(a.removeReceiverListener("YouTube",Yl),a.addReceiverListener("YouTube",Yl),Ql("API initialized in the other binary")):(a=new cast.Api,Zl(a),a.addReceiverListener("YouTube",Yl),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){L(function(){window.location.reload(!0)},1E3)}),ii(Rl),Ql("API initialized"));Wl=!0}}
function $l(){var a=Sl();a&&(Ql("API disposed"),li(Rl),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(v),a.removeReceiverListener("YouTube",Yl),Zl(null));Wl=!1;Ul=null;(a=Kh(window,"message",Tl,!1))&&Mh(a)}function am(a){var b=ib(Xl,function(b){return b.id==a.id});0<=b&&(Xl[b]={id:a.id,name:a.name,activityId:a.activityId,status:a.status})}
function Yl(a){a.length&&Ql("Updating receivers: "+sg(a));bm(a);Oi("yt-remote-cast-device-list-update");D(cm(),function(a){dm(a.id)});D(a,function(a){if(a.isTabProjected){var c=em(a.id);Ql("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");L(function(){Oi("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function fm(a,b){Ql("Updating "+a+" activity status: "+sg(b));var c=em(a);c?(b.activityId&&(c.activityId=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.activityId=""),am(c),Oi("yt-remote-cast-device-status-update",c)):Ql("Device not found")}function cm(){Vl();return Xj(Xl)}
function bm(a){a=E(a,function(a){var c={id:a.id,name:Ha(a.name)};if(a=em(a.id))c.activityId=a.activityId,c.status=a.status;return c});mb(Xl);tb(Xl,a)}function em(a){var b=cm();return F(b,function(b){return b.id==a})||null}function dm(a){var b=em(a),c=Sl();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");fm(a,b)})}
function gm(a){Vl();var b=em(a),c=Sl();c&&b&&b.activityId?(Ql("Stopping cast activity"),c.stopActivity(b.activityId,pa(fm,a))):Ql("Dropping cast activity stop")}function Sl(){return t("yt.mdx.remote.castapi.api_")}function Zl(a){q("yt.mdx.remote.castapi.api_",a,void 0)}var Wl=!1,Ul=null,Xl=t("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Xl,void 0);function hm(){};function im(){this.j=y()}new im;im.prototype.set=function(a){this.j=a};im.prototype.reset=function(){this.set(y())};im.prototype.get=function(){return this.j};function jm(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.o=!1;this.Gr=!0}jm.prototype.stopPropagation=function(){this.o=!0};jm.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Gr=!1};function km(a){a.stopPropagation()};var lm=!dd||sd(9),mm=dd&&!rd("9");!fd||rd("528");ed&&rd("1.9b")||dd&&rd("8")||cd&&rd("9.5")||fd&&rd("528");ed&&!rd("8")||dd&&rd("9");var nm="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function om(a,b){jm.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)}z(om,jm);
om.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&&(Gg(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()};om.prototype.stopPropagation=function(){om.K.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
om.prototype.preventDefault=function(){om.K.preventDefault.call(this);var a=this.j;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,mm)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};om.prototype.F=function(){return this.j};var pm="closure_listenable_"+(1E6*Math.random()|0);function qm(a){return!(!a||!a[pm])}var rm=0;function sm(a,b,c,d,e){this.Se=a;this.j=null;this.src=b;this.type=c;this.qf=!!d;this.Vc=e;this.key=++rm;this.Xf=this.gi=!1}function tm(a){a.Xf=!0;a.Se=null;a.j=null;a.src=null;a.Vc=null};function um(a){this.src=a;this.j={};this.o=0}um.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=vm(a,b,d,e);-1<h?(b=a[h],c||(b.gi=!1)):(b=new sm(b,this.src,g,!!d,e),b.gi=c,a.push(b));return b};um.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.j))return!1;var e=this.j[a];b=vm(e,b,c,d);return-1<b?(tm(e[b]),pb(e,b),0==e.length&&(delete this.j[a],this.o--),!0):!1};
function wm(a,b){var c=b.type;if(!(c in a.j))return!1;var d=ob(a.j[c],b);d&&(tm(b),0==a.j[c].length&&(delete a.j[c],a.o--));return d}um.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,tm(d[e]);delete this.j[c];this.o--}return b};function xm(a,b,c,d,e){a=a.j[b.toString()];b=-1;a&&(b=vm(a,c,d,e));return-1<b?a[b]:null}
function vm(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.Xf&&g.Se==b&&g.qf==!!c&&g.Vc==d)return e}return-1};var ym="closure_lm_"+(1E6*Math.random()|0),zm={},Am=0;function Bm(a,b,c,d,e){if(ea(b)){for(var g=0;g<b.length;g++)Bm(a,b[g],c,d,e);return null}c=Cm(c);return qm(a)?a.M(b,c,d,e):Dm(a,b,c,!1,d,e)}function Dm(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=Em(a);k||(a[ym]=k=new um(a));c=k.add(b,c,d,e,g);if(c.j)return c;d=Fm();c.j=d;d.src=a;d.Se=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(Gm(b.toString()),d);Am++;return c}
function Fm(){var a=Hm,b=lm?function(c){return a.call(b.src,b.Se,c)}:function(c){c=a.call(b.src,b.Se,c);if(!c)return c};return b}function Im(a,b,c,d,e){if(ea(b)){for(var g=0;g<b.length;g++)Im(a,b[g],c,d,e);return null}c=Cm(c);return qm(a)?a.ld.add(String(b),c,!0,d,e):Dm(a,b,c,!0,d,e)}function Jm(a,b,c,d,e){if(ea(b))for(var g=0;g<b.length;g++)Jm(a,b[g],c,d,e);else c=Cm(c),qm(a)?a.Ia(b,c,d,e):a&&(a=Em(a))&&(b=xm(a,b,c,!!d,e))&&Km(b)}
function Km(a){if(ga(a)||!a||a.Xf)return!1;var b=a.src;if(qm(b))return wm(b.ld,a);var c=a.type,d=a.j;b.removeEventListener?b.removeEventListener(c,d,a.qf):b.detachEvent&&b.detachEvent(Gm(c),d);Am--;(c=Em(b))?(wm(c,a),0==c.o&&(c.src=null,b[ym]=null)):tm(a);return!0}function Gm(a){return a in zm?zm[a]:zm[a]="on"+a}function Lm(a,b,c,d){var e=!0;if(a=Em(a))if(b=a.j[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.qf==c&&!g.Xf&&(g=Mm(g,d),e=e&&!1!==g)}return e}
function Mm(a,b){var c=a.Se,d=a.Vc||a.src;a.gi&&Km(a);return c.call(d,b)}
function Hm(a,b){if(a.Xf)return!0;if(!lm){var c=b||t("window.event"),d=new om(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){i:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break i}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=Lm(c[k],g,!0,d),e=e&&l}for(k=0;!d.o&&k<c.length;k++)d.currentTarget=c[k],l=Lm(c[k],g,!1,d),e=e&&l}return e}return Mm(a,new om(b,this))}
function Em(a){a=a[ym];return a instanceof um?a:null}var Nm="__closure_events_fn_"+(1E9*Math.random()>>>0);function Cm(a){if(ha(a))return a;a[Nm]||(a[Nm]=function(b){return a.handleEvent(b)});return a[Nm]};function T(){Q.call(this);this.ld=new um(this);this.ta=this;this.aa=null}z(T,Q);T.prototype[pm]=!0;f=T.prototype;f.Fj=function(a){this.aa=a};f.addEventListener=function(a,b,c,d){Bm(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Jm(this,a,b,c,d)};
f.X=function(a){var b,c=this.aa;if(c){b=[];for(var d=1;c;c=c.aa)b.push(c),++d}c=this.ta;d=a.type||a;if(w(a))a=new jm(a,c);else if(a instanceof jm)a.target=a.target||c;else{var e=a;a=new jm(d,c);ac(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=Om(g,d,!0,a)&&e;a.o||(g=a.currentTarget=c,e=Om(g,d,!0,a)&&e,a.o||(e=Om(g,d,!1,a)&&e));if(b)for(h=0;!a.o&&h<b.length;h++)g=a.currentTarget=b[h],e=Om(g,d,!1,a)&&e;return e};
f.P=function(){T.K.P.call(this);this.removeAllListeners();this.aa=null};f.M=function(a,b,c,d){return this.ld.add(String(a),b,!1,c,d)};f.Ia=function(a,b,c,d){return this.ld.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.ld?this.ld.removeAll(a):0};function Om(a,b,c,d){b=a.ld.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.Xf&&h.qf==c){var k=h.Se,l=h.Vc||h.src;h.gi&&wm(a.ld,h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.Gr};function Pm(a,b){this.o=new tg(a);this.j=b?rg:qg}Pm.prototype.stringify=function(a){return this.o.F(a)};Pm.prototype.parse=function(a){return this.j(a)};function Qm(a){this.o=0;this.A=a||100;this.j=[]}f=Qm.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=Rm(this,a);return this.j[a]};f.set=function(a,b){a=Rm(this,a);this.j[a]=b};f.Ta=function(){return this.j.length};f.isEmpty=function(){return 0==this.j.length};f.clear=function(){this.o=this.j.length=0};f.Oa=function(){for(var a=this.Ta(),b=this.Ta(),c=[],a=this.Ta()-a;a<b;a++)c.push(this.get(a));return c};
f.La=function(){for(var a=[],b=this.Ta(),c=0;c<b;c++)a[c]=c;return a};f.tf=function(a){for(var b=this.Ta(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Rm(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 Sm(a){m.setTimeout(function(){throw a;},0)}var Tm;
function Um(){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=x(function(a){if(("*"==d||a.origin==d)&&a.data==
c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!Zc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.Co;c.Co=null;a()}};return function(a){d.next={Co: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 Vm(a,b,c){this.C=c;this.A=a;this.B=b;this.o=0;this.j=null}Vm.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};Vm.prototype.put=function(a){this.B(a);this.o<this.C&&(this.o++,a.next=this.j,this.j=a)};function Wm(){this.o=this.j=null}var Ym=new Vm(function(){return new Xm},function(a){a.reset()},100);Wm.prototype.add=function(a,b){var c=Ym.get();c.set(a,b);this.o?this.o.next=c:this.j=c;this.o=c};Wm.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 Xm(){this.next=this.scope=this.j=null}Xm.prototype.set=function(a,b){this.j=a;this.scope=b;this.next=null};Xm.prototype.reset=function(){this.next=this.scope=this.j=null};function Zm(a,b){$m||an();bn||($m(),bn=!0);cn.add(a,b)}var $m;function an(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();$m=function(){a.then(dn)}}else $m=function(){var a=dn;!ha(m.setImmediate)||m.Window&&m.Window.prototype&&m.Window.prototype.setImmediate==m.setImmediate?(Tm||(Tm=Um()),Tm(a)):m.setImmediate(a)}}var bn=!1,cn=new Wm;function dn(){for(var a=null;a=cn.remove();){try{a.j.call(a.scope)}catch(b){Sm(b)}Ym.put(a)}bn=!1};function en(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function fn(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function gn(a,b){this.j=0;this.F=void 0;this.B=this.o=this.A=null;this.C=this.D=!1;if(a==hn)jn(this,2,b);else try{var c=this;a.call(b,function(a){jn(c,2,a)},function(a){jn(c,3,a)})}catch(d){jn(this,3,d)}}function kn(){this.next=this.context=this.o=this.A=this.j=null;this.B=!1}kn.prototype.reset=function(){this.context=this.o=this.A=this.j=null;this.B=!1};var ln=new Vm(function(){return new kn},function(a){a.reset()},100);function mn(a,b,c){var d=ln.get();d.A=a;d.o=b;d.context=c;return d}
function hn(){}gn.prototype.then=function(a,b,c){return nn(this,ha(a)?a:null,ha(b)?b:null,c)};en(gn);gn.prototype.cancel=function(a){0==this.j&&Zm(function(){var b=new on(a);pn(this,b)},this)};function pn(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?pn(c,b):(g?(d=g,d.next==c.B&&(c.B=d),d.next=d.next.next):qn(c),rn(c,e,3,b)))}a.A=null}else jn(a,3,b)}
function sn(a,b){a.o||2!=a.j&&3!=a.j||tn(a);a.B?a.B.next=b:a.o=b;a.B=b}function nn(a,b,c,d){var e=mn(null,null,null);e.j=new gn(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 on?h(b):a(e)}catch(p){h(p)}}:h});e.j.A=a;sn(a,e);return e.j}gn.prototype.G=function(a){this.j=0;jn(this,2,a)};gn.prototype.H=function(a){this.j=0;jn(this,3,a)};
function jn(a,b,c){if(0==a.j){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(fn(c)){a.j=1;b=c;c=a.G;var d=a.H;b instanceof gn?sn(b,mn(c||v,d||null,a)):b.then(c,d,a);return}if(ja(c))try{if(d=c.then,ha(d)){un(a,c,d);return}}catch(e){b=3,c=e}}a.F=c;a.j=b;a.A=null;tn(a);3!=b||c instanceof on||vn(a,c)}}function un(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 tn(a){a.D||(a.D=!0,Zm(a.I,a))}
function qn(a){var b=null;a.o&&(b=a.o,a.o=b.next,b.next=null);a.o||(a.B=null);return b}gn.prototype.I=function(){for(var a=null;a=qn(this);)rn(this,a,this.j,this.F);this.D=!1};function rn(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)}ln.put(b)}function vn(a,b){a.C=!0;Zm(function(){a.C&&wn.call(null,b)})}var wn=Sm;function on(a){ra.call(this,a)}z(on,ra);on.prototype.name="cancel";function xn(a,b){T.call(this);this.j=a||1;this.o=b||m;this.A=x(this.Sw,this);this.B=y()}z(xn,T);f=xn.prototype;f.enabled=!1;f.sc=null;function yn(a,b){a.j=b;a.sc&&a.enabled?(a.stop(),a.start()):a.sc&&a.stop()}f.Sw=function(){if(this.enabled){var a=y()-this.B;0<a&&a<.8*this.j?this.sc=this.o.setTimeout(this.A,this.j-a):(this.sc&&(this.o.clearTimeout(this.sc),this.sc=null),this.X("tick"),this.enabled&&(this.sc=this.o.setTimeout(this.A,this.j),this.B=y()))}};
f.start=function(){this.enabled=!0;this.sc||(this.sc=this.o.setTimeout(this.A,this.j),this.B=y())};f.stop=function(){this.enabled=!1;this.sc&&(this.o.clearTimeout(this.sc),this.sc=null)};f.P=function(){xn.K.P.call(this);this.stop();delete this.o};function zn(a,b,c){if(ha(a))c&&(a=x(a,c));else if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function An(a){m.clearTimeout(a)};function Bn(a,b,c){Q.call(this);this.B=a;this.A=b;this.o=c;this.j=x(this.HB,this)}z(Bn,Q);f=Bn.prototype;f.ag=!1;f.Yg=0;f.He=null;function Cn(a){a.He||a.Yg?a.ag=!0:Dn(a)}f.stop=function(){this.He&&(An(this.He),this.He=null,this.ag=!1)};f.pause=function(){this.Yg++};f.resume=function(){this.Yg--;this.Yg||!this.ag||this.He||(this.ag=!1,Dn(this))};f.P=function(){Bn.K.P.call(this);this.stop()};f.HB=function(){this.He=null;this.ag&&!this.Yg&&(this.ag=!1,Dn(this))};
function Dn(a){a.He=zn(a.j,a.A);a.B.call(a.o)};function En(a){Q.call(this);this.B=a;this.o={}}z(En,Q);var Fn=[];f=En.prototype;f.M=function(a,b,c,d){return Gn(this,a,b,c,d)};function Hn(a,b,c,d,e){Gn(a,b,c,d,!1,e)}function Gn(a,b,c,d,e,g){ea(c)||(c&&(Fn[0]=c.toString()),c=Fn);for(var h=0;h<c.length;h++){var k=Bm(b,c[h],d||a.handleEvent,e||!1,g||a.B||a);if(!k)break;a.o[k.key]=k}return a}function In(a,b,c,d){Jn(a,b,c,d,void 0)}function Kn(a,b,c,d,e){Jn(a,b,c,d,!1,e)}
function Jn(a,b,c,d,e,g){if(ea(c))for(var h=0;h<c.length;h++)Jn(a,b,c[h],d,e,g);else(b=Im(b,c,d||a.handleEvent,e,g||a.B||a))&&(a.o[b.key]=b)}f.Ia=function(a,b,c,d,e){if(ea(b))for(var g=0;g<b.length;g++)this.Ia(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.B||this,c=Cm(c),d=!!d,b=qm(a)?xm(a.ld,String(b),c,d,e):a?(a=Em(a))?xm(a,b,c,d,e):null:null,b&&(Km(b),delete this.o[b.key]);return this};f.removeAll=function(){Hb(this.o,Km);this.o={}};f.P=function(){En.K.P.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Ln(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 Mn(){}Mn.prototype.j=null;function Nn(a){var b;(b=a.j)||(b={},On(a)&&(b[0]=!0,b[1]=!0),b=a.j=b);return b};var Pn;function Qn(){}z(Qn,Mn);function Rn(a){return(a=On(a))?new ActiveXObject(a):new XMLHttpRequest}function On(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}Pn=new Qn;function Sn(a,b,c,d,e){this.j=a;this.A=c;this.F=d;this.D=e||1;this.zb=45E3;this.B=new En(this);this.o=new xn;yn(this.o,250)}f=Sn.prototype;f.Ie=null;f.Lc=!1;f.gg=null;f.rn=null;f.bh=null;f.Ef=null;f.Gd=null;f.Yd=null;f.Ue=null;f.ub=null;f.ph=0;f.Nc=null;f.Xj=null;f.Je=null;f.Ig=-1;f.Nr=!0;f.ze=!1;f.Dl=0;f.sj=null;var Tn={},Un={};f=Sn.prototype;f.setTimeout=function(a){this.zb=a};function Vn(a,b,c){a.Ef=1;a.Gd=uf(b.clone());a.Ue=c;a.C=!0;Wn(a,null)}
function Xn(a,b,c,d,e){a.Ef=1;a.Gd=uf(b.clone());a.Ue=null;a.C=c;e&&(a.Nr=!1);Wn(a,d)}function Wn(a,b){a.bh=y();Yn(a);a.Yd=a.Gd.clone();rf(a.Yd,"t",a.D);a.ph=0;a.ub=a.j.fl(a.j.kh()?b:null);0<a.Dl&&(a.sj=new Bn(x(a.ys,a,a.ub),a.Dl));a.B.M(a.ub,"readystatechange",a.FC);var c=a.Ie?Yb(a.Ie):{};a.Ue?(a.Xj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.ub.send(a.Yd,a.Xj,a.Ue,c)):(a.Xj="GET",a.Nr&&!fd&&(c.Connection="close"),a.ub.send(a.Yd,a.Xj,null,c));a.j.Ic(1)}
f.FC=function(a){a=a.target;var b=this.sj;b&&3==Zn(a)?Cn(b):this.ys(a)};
f.ys=function(a){try{if(a==this.ub)i:{var b=Zn(this.ub),c=this.ub.o,d=this.ub.getStatus();if(dd&&!sd(10)||fd&&!rd("420+")){if(4>b)break i}else if(3>b||3==b&&!cd&&!$n(this.ub))break i;this.ze||4!=b||7==c||(8==c||0>=d?this.j.Ic(3):this.j.Ic(2));ao(this);var e=this.ub.getStatus();this.Ig=e;var g=$n(this.ub);(this.Lc=200==e)?(4==b&&bo(this),this.C?(co(this,b,g),cd&&this.Lc&&3==b&&(this.B.M(this.o,"tick",this.AC),this.o.start())):eo(this,g),this.Lc&&!this.ze&&(4==b?this.j.mj(this):(this.Lc=!1,Yn(this)))):
(this.Je=400==e&&0<g.indexOf("Unknown SID")?3:0,fo(),bo(this),go(this))}}catch(h){this.ub&&$n(this.ub)}finally{}};function co(a,b,c){for(var d=!0;!a.ze&&a.ph<c.length;){var e=ho(a,c);if(e==Un){4==b&&(a.Je=4,fo(),d=!1);break}else if(e==Tn){a.Je=4;fo();d=!1;break}else eo(a,e)}4==b&&0==c.length&&(a.Je=1,fo(),d=!1);a.Lc=a.Lc&&d;d||(bo(a),go(a))}f.AC=function(){var a=Zn(this.ub),b=$n(this.ub);this.ph<b.length&&(ao(this),co(this,a,b),this.Lc&&4!=a&&Yn(this))};
function ho(a,b){var c=a.ph,d=b.indexOf("\n",c);if(-1==d)return Un;c=Number(b.substring(c,d));if(isNaN(c))return Tn;d+=1;if(d+c>b.length)return Un;var e=b.substr(d,c);a.ph=d+c;return e}
function io(a,b){a.bh=y();Yn(a);var c=b?window.location.hostname:"";a.Yd=a.Gd.clone();K(a.Yd,"DOMAIN",c);K(a.Yd,"t",a.D);try{a.Nc=new ActiveXObject("htmlfile")}catch(d){bo(a);a.Je=7;fo();go(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.Nc.open();a.Nc.write(e);a.Nc.close();a.Nc.parentWindow.m=x(a.RB,a);a.Nc.parentWindow.d=x(a.or,a,!0);a.Nc.parentWindow.rpcClose=x(a.or,a,!1);c=a.Nc.createElement("div");a.Nc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.Yd+'"></iframe>';a.j.Ic(1)}f.RB=function(a){jo(x(this.QB,this,a),0)};f.QB=function(a){this.ze||(ao(this),eo(this,a),Yn(this))};f.or=function(a){jo(x(this.PB,this,a),0)};f.PB=function(a){this.ze||(bo(this),this.Lc=a,this.j.mj(this),this.j.Ic(4))};f.cancel=function(){this.ze=!0;bo(this)};function Yn(a){a.rn=y()+a.zb;ko(a,a.zb)}function ko(a,b){if(null!=a.gg)throw Error("WatchDog timer not null");a.gg=jo(x(a.qC,a),b)}
function ao(a){a.gg&&(m.clearTimeout(a.gg),a.gg=null)}f.qC=function(){this.gg=null;var a=y();0<=a-this.rn?(2!=this.Ef&&this.j.Ic(3),bo(this),this.Je=2,fo(),go(this)):ko(this,this.rn-a)};function go(a){a.j.jp()||a.ze||a.j.mj(a)}function bo(a){ao(a);Ci(a.sj);a.sj=null;a.o.stop();a.B.removeAll();if(a.ub){var b=a.ub;a.ub=null;b.abort();b.dispose()}a.Nc&&(a.Nc=null)}function eo(a,b){try{a.j.Yq(a,b),a.j.Ic(4)}catch(c){}};function lo(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;mo(a,b,function(e){e?c(!0):m.setTimeout(function(){lo(a,b,c,d,g)},g)})}}function mo(a,b,c){var d=new Image;d.onload=function(){try{no(d),c(!0)}catch(a){}};d.onerror=function(){try{no(d),c(!1)}catch(a){}};d.onabort=function(){try{no(d),c(!1)}catch(a){}};d.ontimeout=function(){try{no(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function no(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function oo(a){this.j=a;this.o=new Pm(null,!0)}f=oo.prototype;f.Al=null;f.kc=null;f.tj=!1;f.kp=null;f.zi=null;f.Bl=null;f.Cl=null;f.tc=null;f.md=-1;f.Hg=null;f.ug=null;f.connect=function(a){this.Cl=a;a=po(this.j,null,this.Cl);fo();this.kp=y();var b=this.j.G;null!=b?(this.Hg=b[0],(this.ug=b[1])?(this.tc=1,qo(this)):(this.tc=2,ro(this))):(rf(a,"MODE","init"),this.kc=new Sn(this,0,void 0,void 0,void 0),this.kc.Ie=this.Al,Xn(this.kc,a,!1,null,!0),this.tc=0)};
function qo(a){var b=po(a.j,a.ug,"/mail/images/cleardot.gif");uf(b);lo(b.toString(),5E3,x(a.ow,a),3,2E3);a.Ic(1)}f.ow=function(a){if(a)this.tc=2,ro(this);else{fo();var b=this.j;b.Gc=b.Hd.md;so(b,9)}a&&this.Ic(2)};
function ro(a){var b=a.j.H;if(null!=b)fo(),b?(fo(),to(a.j,a,!1)):(fo(),to(a.j,a,!0));else if(a.kc=new Sn(a,0,void 0,void 0,void 0),a.kc.Ie=a.Al,b=a.j,b=po(b,b.kh()?a.Hg:null,a.Cl),fo(),!dd||sd(10))rf(b,"TYPE","xmlhttp"),Xn(a.kc,b,!1,a.Hg,!1);else{rf(b,"TYPE","html");var c=a.kc;a=Boolean(a.Hg);c.Ef=3;c.Gd=uf(b.clone());io(c,a)}}f.fl=function(a){return this.j.fl(a)};f.abort=function(){this.kc&&(this.kc.cancel(),this.kc=null);this.md=-1};f.jp=function(){return!1};
f.Yq=function(a,b){this.md=a.Ig;if(0==this.tc)if(b){try{var c=this.o.parse(b)}catch(d){c=this.j;c.Gc=this.md;so(c,2);return}this.Hg=c[0];this.ug=c[1]}else c=this.j,c.Gc=this.md,so(c,2);else if(2==this.tc)if(this.tj)fo(),this.Bl=y();else if("11111"==b){if(fo(),this.tj=!0,this.zi=y(),c=this.zi-this.kp,!dd||sd(10)||500>c)this.md=200,this.kc.cancel(),fo(),to(this.j,this,!0)}else fo(),this.zi=this.Bl=y(),this.tj=!1};
f.mj=function(){this.md=this.kc.Ig;if(this.kc.Lc)0==this.tc?this.ug?(this.tc=1,qo(this)):(this.tc=2,ro(this)):2==this.tc&&(a=!1,(a=!dd||sd(10)?this.tj:200>this.Bl-this.zi?!1:!0)?(fo(),to(this.j,this,!0)):(fo(),to(this.j,this,!1)));else{0==this.tc?fo():2==this.tc&&fo();var a=this.j;a.Gc=this.md;so(a,2)}};f.kh=function(){return this.j.kh()};f.isActive=function(){return this.j.isActive()};f.Ic=function(a){this.j.Ic(a)};function uo(a){T.call(this);this.headers=new xe;this.N=a||null;this.A=!1;this.J=this.j=null;this.V=this.G="";this.o=0;this.D="";this.B=this.S=this.F=this.O=!1;this.C=0;this.H=null;this.U="";this.I=this.R=!1}z(uo,T);var vo=/^https?$/i,wo=["POST","PUT"];function xo(a,b){a.C=Math.max(0,b)}f=uo.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.V=b;this.O=!1;this.A=!0;this.j=this.N?Rn(this.N):Rn(Pn);this.J=this.N?Nn(this.N):Nn(Pn);this.j.onreadystatechange=x(this.Uq,this);try{hm(yo(this,"Opening Xhr")),this.S=!0,this.j.open(b,String(a),!0),this.S=!1}catch(e){hm(yo(this,"Error opening Xhr: "+e.message));zo(this,e);return}a=c||"";var g=this.headers.clone();
d&&Fe(d,function(a,b){g.set(b,a)});d=F(g.La(),Ao);c=m.FormData&&a instanceof m.FormData;!G(wo,b)||d||c||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g.forEach(function(a,b){this.j.setRequestHeader(b,a)},this);this.U&&(this.j.responseType=this.U);"withCredentials"in this.j&&(this.j.withCredentials=this.R);try{Bo(this),0<this.C&&(this.I=Co(this.j),hm(yo(this,"Will abort after "+this.C+"ms if incomplete, xhr2 "+this.I)),this.I?(this.j.timeout=this.C,this.j.ontimeout=x(this.zb,
this)):this.H=zn(this.zb,this.C,this)),hm(yo(this,"Sending request")),this.F=!0,this.j.send(a),this.F=!1}catch(h){hm(yo(this,"Send error: "+h.message)),zo(this,h)}};function Co(a){return dd&&rd(9)&&ga(a.timeout)&&n(a.ontimeout)}function Ao(a){return"content-type"==a.toLowerCase()}f.zb=function(){"undefined"!=typeof aa&&this.j&&(this.D="Timed out after "+this.C+"ms, aborting",this.o=8,yo(this,this.D),this.X("timeout"),this.abort(8))};
function zo(a,b){a.A=!1;a.j&&(a.B=!0,a.j.abort(),a.B=!1);a.D=b;a.o=5;Do(a);Eo(a)}function Do(a){a.O||(a.O=!0,a.X("complete"),a.X("error"))}f.abort=function(a){this.j&&this.A&&(yo(this,"Aborting"),this.A=!1,this.B=!0,this.j.abort(),this.B=!1,this.o=a||7,this.X("complete"),this.X("abort"),Eo(this))};f.P=function(){this.j&&(this.A&&(this.A=!1,this.B=!0,this.j.abort(),this.B=!1),Eo(this,!0));uo.K.P.call(this)};f.Uq=function(){this.ka()||(this.S||this.F||this.B?Fo(this):this.kB())};f.kB=function(){Fo(this)};
function Fo(a){if(a.A&&"undefined"!=typeof aa)if(a.J[1]&&4==Zn(a)&&2==a.getStatus())yo(a,"Local request error detected and ignored");else if(a.F&&4==Zn(a))zn(a.Uq,0,a);else if(a.X("readystatechange"),4==Zn(a)){yo(a,"Request complete");a.A=!1;try{var b=a.getStatus(),c;i:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break i;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var g=Ie(String(a.G))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!vo.test(g?g.toLowerCase():"")}d=e}if(d)a.X("complete"),a.X("success");else{a.o=6;var k;try{k=2<Zn(a)?a.j.statusText:""}catch(l){k=""}a.D=k+" ["+a.getStatus()+"]";Do(a)}}finally{Eo(a)}}}function Eo(a,b){if(a.j){Bo(a);var c=a.j,d=a.J[0]?v:null;a.j=null;a.J=null;b||a.X("ready");try{c.onreadystatechange=d}catch(e){}}}function Bo(a){a.j&&a.I&&(a.j.ontimeout=null);ga(a.H)&&(An(a.H),a.H=null)}f.isActive=function(){return!!this.j};function Zn(a){return a.j?a.j.readyState:0}
f.getStatus=function(){try{return 2<Zn(this)?this.j.status:-1}catch(a){return-1}};function $n(a){try{return a.j?a.j.responseText:""}catch(b){return""}}function yo(a,b){return b+" ["+a.V+" "+a.G+" "+a.getStatus()+"]"};function Go(a,b,c){this.F=a||null;this.j=1;this.o=[];this.B=[];this.C=new Pm(null,!0);this.G=b||null;this.H=null!=c?c:null}function Ho(a,b){this.j=a;this.map=b;this.context=null}f=Go.prototype;f.Bg=null;f.Tb=null;f.nb=null;f.zl=null;f.Bi=null;f.wo=null;f.Ji=null;f.Vg=0;f.wz=0;f.Fb=null;f.Md=null;f.gd=null;f.Be=null;f.Hd=null;f.Wj=null;f.Mf=-1;f.Yp=-1;f.Gc=-1;f.Cg=0;f.pf=0;f.Ae=8;var Io=new T;function Jo(a){jm.call(this,"statevent",a)}z(Jo,jm);
function Ko(a,b){jm.call(this,"timingevent",a);this.size=b}z(Ko,jm);function Lo(a){jm.call(this,"serverreachability",a)}z(Lo,jm);f=Go.prototype;f.connect=function(a,b,c,d,e){fo();this.zl=b;this.Bg=c||{};d&&n(e)&&(this.Bg.OSID=d,this.Bg.OAID=e);this.Hd=new oo(this);this.Hd.Al=null;this.Hd.o=this.C;this.Hd.connect(a)};
function Mo(a){No(a);if(3==a.j){var b=a.Vg++,c=a.Bi.clone();K(c,"SID",a.A);K(c,"RID",b);K(c,"TYPE","terminate");Oo(a,c);b=new Sn(a,0,a.A,b,void 0);b.Ef=2;b.Gd=uf(c.clone());(new Image).src=b.Gd;b.bh=y();Yn(b)}Po(a)}function No(a){a.Hd&&(a.Hd.abort(),a.Hd=null);a.nb&&(a.nb.cancel(),a.nb=null);a.gd&&(m.clearTimeout(a.gd),a.gd=null);Qo(a);a.Tb&&(a.Tb.cancel(),a.Tb=null);a.Md&&(m.clearTimeout(a.Md),a.Md=null)}
function Ro(a,b){if(0==a.j)throw Error("Invalid operation: sending map when state is closed");a.o.push(new Ho(a.wz++,b));2!=a.j&&3!=a.j||So(a)}f.jp=function(){return 0==this.j};function So(a){a.Tb||a.Md||(a.Md=jo(x(a.kr,a),0),a.Cg=0)}f.kr=function(a){this.Md=null;To(this,a)};
function To(a,b){if(1==a.j){if(!b){a.Vg=Math.floor(1E5*Math.random());var c=a.Vg++,d=new Sn(a,0,"",c,void 0);d.Ie=null;var e=Uo(a),g=a.Bi.clone();K(g,"RID",c);a.F&&K(g,"CVER",a.F);Oo(a,g);Vn(d,g,e);a.Tb=d;a.j=2}}else 3==a.j&&(b?Vo(a,b):0!=a.o.length&&(a.Tb||Vo(a)))}
function Vo(a,b){var c,d;b?6<a.Ae?(a.o=a.B.concat(a.o),a.B.length=0,c=a.Vg-1,d=Uo(a)):(c=b.F,d=b.Ue):(c=a.Vg++,d=Uo(a));var e=a.Bi.clone();K(e,"SID",a.A);K(e,"RID",c);K(e,"AID",a.Mf);Oo(a,e);c=new Sn(a,0,a.A,c,a.Cg+1);c.Ie=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Tb=c;Vn(c,e,d)}function Oo(a,b){if(a.Fb){var c=a.Fb.ap(a);c&&Hb(c,function(a,c){K(b,c,a)})}}
function Uo(a){var b=Math.min(a.o.length,1E3),c=["count="+b],d;6<a.Ae&&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.Ae?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 Wo(a){a.nb||a.gd||(a.D=1,a.gd=jo(x(a.jr,a),0),a.pf=0)}
function Xo(a){if(a.nb||a.gd||3<=a.pf)return!1;a.D++;a.gd=jo(x(a.jr,a),Yo(a,a.pf));a.pf++;return!0}f.jr=function(){this.gd=null;this.nb=new Sn(this,0,this.A,"rpc",this.D);this.nb.Ie=null;this.nb.Dl=0;var a=this.wo.clone();K(a,"RID","rpc");K(a,"SID",this.A);K(a,"CI",this.Wj?"0":"1");K(a,"AID",this.Mf);Oo(this,a);if(!dd||sd(10))K(a,"TYPE","xmlhttp"),Xn(this.nb,a,!0,this.Ji,!1);else{K(a,"TYPE","html");var b=this.nb,c=Boolean(this.Ji);b.Ef=3;b.Gd=uf(a.clone());io(b,c)}};
function to(a,b,c){a.Wj=c;a.Gc=b.md;a.Cw(1,0);a.Bi=po(a,null,a.zl);So(a)}
f.Yq=function(a,b){if(0!=this.j&&(this.nb==a||this.Tb==a))if(this.Gc=a.Ig,this.Tb==a&&3==this.j)if(7<this.Ae){var c;try{c=this.C.parse(b)}catch(d){c=null}if(ea(c)&&3==c.length)if(0==c[0])i:{if(!this.gd){if(this.nb)if(this.nb.bh+3E3<this.Tb.bh)Qo(this),this.nb.cancel(),this.nb=null;else break i;Xo(this);fo()}}else this.Yp=c[1],0<this.Yp-this.Mf&&37500>c[2]&&this.Wj&&0==this.pf&&!this.Be&&(this.Be=jo(x(this.Qz,this),6E3));else so(this,11)}else"y2f%"!=b&&so(this,11);else if(this.nb==a&&Qo(this),!A(b)){c=
this.C.parse(b);ea(c);for(var e=0;e<c.length;e++){var g=c[e];this.Mf=g[0];g=g[1];2==this.j?"c"==g[0]?(this.A=g[1],this.Ji=g[2],g=g[3],null!=g?this.Ae=g:this.Ae=6,this.j=3,this.Fb&&this.Fb.Go(this),this.wo=po(this,this.kh()?this.Ji:null,this.zl),Wo(this)):"stop"==g[0]&&so(this,7):3==this.j&&("stop"==g[0]?so(this,7):"noop"!=g[0]&&this.Fb&&this.Fb.Fo(this,g),this.pf=0)}}};f.Qz=function(){null!=this.Be&&(this.Be=null,this.nb.cancel(),this.nb=null,Xo(this),fo())};
function Qo(a){null!=a.Be&&(m.clearTimeout(a.Be),a.Be=null)}
f.mj=function(a){var b;if(this.nb==a)Qo(this),this.nb=null,b=2;else if(this.Tb==a)this.Tb=null,b=1;else return;this.Gc=a.Ig;if(0!=this.j)if(a.Lc)1==b?(y(),Io.X(new Ko(Io,a.Ue?a.Ue.length:0)),So(this),this.B.length=0):Wo(this);else{var c=a.Je,d;if(!(d=3==c||7==c||0==c&&0<this.Gc)){if(d=1==b)this.Tb||this.Md||1==this.j||2<=this.Cg?d=!1:(this.Md=jo(x(this.kr,this,a),Yo(this,this.Cg)),this.Cg++,d=!0);d=!(d||2==b&&Xo(this))}if(d)switch(c){case 1:so(this,5);break;case 4:so(this,10);break;case 3:so(this,
6);break;case 7:so(this,12);break;default:so(this,2)}}};function Yo(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b}f.Cw=function(a){if(!G(arguments,this.j))throw Error("Unexpected channel state: "+this.j);};function so(a,b){if(2==b||9==b){var c=null;a.Fb&&(c=null);var d=x(a.eD,a);c||(c=new J("//www.google.com/images/cleardot.gif"),uf(c));mo(c.toString(),1E4,d)}else fo();Zo(a,b)}f.eD=function(a){a?fo():(fo(),Zo(this,8))};
function Zo(a,b){a.j=0;a.Fb&&a.Fb.Eo(a,b);Po(a);No(a)}function Po(a){a.j=0;a.Gc=-1;if(a.Fb)if(0==a.B.length&&0==a.o.length)a.Fb.Vk(a);else{var b=sb(a.B),c=sb(a.o);a.B.length=0;a.o.length=0;a.Fb.Vk(a,b,c)}}function po(a,b,c){var d=vf(c);if(""!=d.rb)b&&bf(d,b+"."+d.rb),cf(d,d.Bd);else var e=window.location,d=wf(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Bg&&Hb(a.Bg,function(a,b){K(d,b,a)});K(d,"VER",a.Ae);Oo(a,d);return d}
f.fl=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new uo;a.R=!1;return a};f.isActive=function(){return!!this.Fb&&this.Fb.isActive(this)};function jo(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Ic=function(){Io.X(new Lo(Io))};function fo(){Io.X(new Jo(Io))}f.kh=function(){return!(!dd||sd(10))};function $o(){}f=$o.prototype;f.Go=function(){};f.Fo=function(){};f.Eo=function(){};f.Vk=function(){};
f.ap=function(){return{}};f.isActive=function(){return!0};function ap(a,b){xn.call(this);if(ha(a))b&&(a=x(a,b));else if(a&&ha(a.handleEvent))a=x(a.handleEvent,a);else throw Error("Invalid listener argument");this.F=a;Bm(this,"tick",x(this.D,this));this.stop();yn(this,5E3+2E4*Math.random())}z(ap,xn);ap.prototype.C=0;ap.prototype.D=function(){if(500<this.j){var a=this.j;24E4>2*a&&(a*=2);yn(this,a)}this.F()};ap.prototype.start=function(){ap.K.start.call(this);this.C=y()+this.j};ap.prototype.stop=function(){this.C=0;ap.K.stop.call(this)};function bp(a,b){this.J=a;this.B=b;this.A=new Fi;this.o=new ap(this.BD,this);this.j=null;this.I=!1;this.D=null;this.H="";this.G=this.C=0;this.F=[]}z(bp,$o);f=bp.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.Pb=function(a){return this.A.Pb(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(),cp(this),Ci(this.A))};f.ka=function(){return this.I};
function dp(a){return{firstTestResults:[""],secondTestResults:!a.j.Wj,sessionId:a.j.A,arrayId:a.j.Mf}}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 Go("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.j;e&&(e.Fb=null);d.Fb=this;this.j=d;e?this.j.connect(a,b,this.B,e.A,e.Mf):c?this.j.connect(a,b,this.B,c.sessionId,c.arrayId):this.j.connect(a,b,this.B)}};
function cp(a,b){a.G=b||0;a.o.stop();a.j&&(3==a.j.j&&To(a.j),Mo(a.j));a.G=0}f.Go=function(){var a=this.o;a.stop();yn(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)Ro(this.j,a[b])}this.L("handlerOpened")};f.Eo=function(a,b){var c=2==b&&401==this.j.Gc;if(4!=b&&!c){if(6==b||410==this.j.Gc)c=this.o,c.stop(),yn(c,500);this.o.start()}this.L("handlerError",b)};
f.Vk=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.ap=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&&ac(a,this.D);return a};f.Fo=function(a,b){if("S"==b[0])this.H=b[1];else if("gracefulReconnect"==b[0]){var c=this.o;c.stop();yn(c,500);this.o.start();Mo(this.j)}else this.L("handlerMessage",new Ol(b[0],b[1]))};
function ep(a,b){(a.B.loungeIdToken=b)||a.o.stop()}f.BD=function(){this.o.stop();var a=this.j,b=0;a.nb&&b++;a.Tb&&b++;0!=b?this.o.start():this.connect(this.D,this.C)};function fp(){this.j=[];this.o=[]}function gp(a){lb(a.j)&&(a.j=a.o,a.j.reverse(),a.o=[])}function hp(a,b){a.o.push(b)}function ip(a){gp(a);return a.j.pop()}f=fp.prototype;f.Ta=function(){return this.j.length+this.o.length};f.isEmpty=function(){return lb(this.j)&&lb(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=db(this.j,a);if(0>b)return ob(this.o,a);pb(this.j,b);return!0};
f.Oa=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 jp(a){this.reset(a)}function kp(a,b){if(a.o)throw Error(b+" is not allowed in V3.");}function lp(a){a.volume=-1;a.muted=!1;a.A=null;a.j=-1;a.B=null;a.C=0;a.D=y()}f=jp.prototype;f.reset=function(a){this.videoIds=[];this.o="";mp(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 mp(a){a.index=-1;a.videoId="";lp(a)}f.yb=function(){return 1==this.j};function np(a){return a.o?a.videoId:a.videoIds[a.index]}function op(a,b){a.C=b;a.D=y()}function pp(a){switch(a.j){case 1:return(y()-a.D)/1E3+a.C;case -1E3:return 0}return a.C}f.setVideoId=function(a){kp(this,"setVideoId");var b=this.index;this.index=cb(this.videoIds,a);b!=this.index&&lp(this);return-1!=b};function qp(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&lp(a)}
function rp(a,b,c){kp(a,"setPlaylist");c=c||np(a);Cb(a.videoIds,b)&&c==np(a)||(a.videoIds=sb(b),a.setVideoId(c))}f.add=function(a){kp(this,"add");return a&&!G(this.videoIds,a)?(this.videoIds.push(a),!0):!1};f.remove=function(a){kp(this,"remove");var b=np(this);return ob(this.videoIds,a)?(this.index=cb(this.videoIds,b),!0):!1};
function sp(a){var b={};b.videoIds=sb(a.videoIds);b.index=a.index;b.listId=a.o;b.videoId=a.videoId;b.playerState=a.j;b.errorReason=a.B;b.volume=a.volume;b.muted=a.muted;b.trackData=Zb(a.A);b.playerTime=a.C;b.playerTimeAt=a.D;return b}f.clone=function(){return new jp(sp(this))};function tp(a,b){S.call(this);this.o=0;this.B=a;this.F=[];this.D=new fp;this.C=NaN;this.A=this.j=null;this.I=x(this.Vz,this);this.G=x(this.Wg,this);this.H=x(this.Uz,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.An,this),up(this))):c=3;0!=c&&(b?this.An(c):L(x(function(){this.An(c)},this),0));vp(this,Hl())}z(tp,S);function wp(a){return new jp(a.B.getPlayerContextData())}f=tp.prototype;
f.play=function(){1==this.o?(this.j?this.j.play(null,v,x(function(){this.Ua("Failed to play video with cast v2 channel.");xp(this,"play")},this)):xp(this,"play"),yp(this,1,pp(wp(this))),zp(this)):Ap(this,this.play)};f.pause=function(){1==this.o?(this.j?this.j.pause(null,v,x(function(){this.Ua("Failed to pause video with cast v2 channel.");xp(this,"pause")},this)):xp(this,"pause"),yp(this,2,pp(wp(this))),zp(this)):Ap(this,this.pause)};
f.Ds=function(a){if(1==this.o){if(this.j){var b=wp(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.yb()||3==b.j?chrome.cast.media.ResumeState.PLAYBACK_START:chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(c,v,x(function(){this.Ua("Failed to seek in video with cast v2 channel.");xp(this,"seekTo",{newTime:a})},this))}else xp(this,"seekTo",{newTime:a});yp(this,3,a);zp(this)}else Ap(this,pa(this.Ds,a))};
f.stop=function(){if(1==this.o){this.j?this.j.stop(null,v,x(function(){this.Ua("Failed to stop video with cast v2 channel.");xp(this,"stopVideo")},this)):xp(this,"stopVideo");var a=wp(this);mp(a);Bp(this,a);zp(this)}else Ap(this,this.stop)};
f.setVolume=function(a,b){if(1==this.o){var c=wp(this);if(this.A){if(c.volume!=a){var d=Math.round(a)/100;this.A.setReceiverVolumeLevel(d,x(function(){Cp("set receiver volume: "+d)},this),x(function(){this.Ua("failed to set receiver volume.")},this))}c.muted!=b&&this.A.setReceiverMuted(b,x(function(){Cp("set receiver muted: "+b)},this),x(function(){this.Ua("failed to set receiver muted.")},this))}else{var e={volume:a,muted:b};-1!=c.volume&&(e.delta=a-c.volume);xp(this,"setVolume",e)}c.muted=b;c.volume=
a;Bp(this,c);zp(this)}else Ap(this,pa(this.setVolume,a,b))};f.Xm=function(a,b){if(1==this.o){var c=wp(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:sg(b.style)};ac(d,c.A);xp(this,"setSubtitlesTrack",d)}else d={videoId:a},xp(this,"setSubtitlesTrack",d);Bp(this,c)}else Ap(this,pa(this.Xm,a,b))};
function Dp(a,b,c,d,e){var g=wp(a);d=d||0;var h={videoId:b,currentIndex:d,listId:e||g.o};qp(g,b,d);n(c)&&(op(g,c),h.currentTime=c);xp(a,"setPlaylist",h);e||Bp(a,g)}f.dispose=function(){if(3!=this.o){var a=this.o;this.o=3;this.L("proxyStateChange",a,this.o)}tp.K.dispose.call(this)};f.P=function(){M(this.C);this.C=NaN;Ep(this);this.B=null;this.D.clear();vp(this,null);tp.K.P.call(this)};
function up(a){D(["remotePlayerChange","remoteQueueChange"],function(a){this.F.push(this.B.subscribe(a,pa(this.eB,a),this))},a)}function Ep(a){D(a.F,function(a){this.B.unsubscribeByKey(a)},a);a.F.length=0}function Ap(a,b){50>a.D.Ta()&&hp(a.D,b)}function yp(a,b,c){var d=wp(a);op(d,c);-1E3!=d.j&&(d.j=b);Bp(a,d)}function xp(a,b,c){a.B.sendMessage(b,c)}function Bp(a,b){Ep(a);a.B.setPlayerContextData(sp(b));up(a)}
f.An=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();)ip(this.D).apply(this);else 3==a&&this.dispose()}};function zp(a){M(a.C);a.C=L(x(function(){this.L("remotePlayerChange");this.C=NaN},a),2E3)}f.eB=function(a){("remotePlayerChange"!=a||isNaN(this.C))&&this.L(a)};
function vp(a,b){a.A&&(a.A.removeUpdateListener(a.I),a.A.removeMediaListener(a.G),a.Wg(null));a.A=b;a.A&&(Cp("Setting cast session: "+a.A.sessionId),a.A.addUpdateListener(a.I),a.A.addMediaListener(a.G),a.A.media.length&&a.Wg(a.A.media[0]))}
f.Vz=function(a){if(!a)this.Wg(null),vp(this,null);else if(this.A.receiver.volume){a=this.A.receiver.volume;var b=wp(this);if(b.volume!=a.level||b.muted!=a.muted)Cp("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,Bp(this,b),zp(this)}};f.Wg=function(a){Cp("Cast media: "+!!a);this.j&&this.j.removeUpdateListener(this.H);if(this.j=a)this.j.addUpdateListener(this.H),Fp(this),zp(this)};
function Fp(a){var b=a.j.customData;if(a.j.media){var c=a.j.media,d=wp(a);c.contentId!=d.videoId&&Cp("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.j=b.playerState;op(d,a.j.getEstimatedTime());Bp(a,d)}else Cp("No cast media video. Ignoring state update.")}f.Uz=function(a){a?(Fp(this),zp(this)):this.Wg(null)};function Cp(a){mi("CP",a)}f.Ua=function(a){mi("CP",a)};function Gp(a,b,c){S.call(this);this.R=a;this.F=[];this.F.push(P(window,"beforeunload",x(this.$w,this)));this.o=[];this.ia=new jp;3==c["mdx-version"]&&(this.ia.o="RQ"+b.token);this.G=b.id;this.j=Hp(this,c);this.j.subscribe("handlerOpened",this.$z,this);this.j.subscribe("handlerClosed",this.Wz,this);this.j.subscribe("handlerError",this.Xz,this);this.ia.o?this.j.subscribe("handlerMessage",this.Yz,this):this.j.subscribe("handlerMessage",this.Zz,this);ep(this.j,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.ia.videoId;wk()&&fj("yt-remote-session-video-id",a)},this)}z(Gp,S);f=Gp.prototype;f.vg=NaN;f.Lm=!1;f.uj=NaN;f.Hm=NaN;f.oi=NaN;f.Mi=NaN;
f.connect=function(a,b){if(b){if(this.ia.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.ia.o=c);this.ia.videoId=d;this.ia.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.ia.videoIds=[d];this.ia.index=0}this.ia.state=3;op(this.ia,g);this.Pa("Connecting with setPlaylist and params: "+sg(h));this.j.connect({method:"setPlaylist",
params:sg(h)},a,Ak())}else this.Pa("Connecting without params"),this.j.connect({},a,Ak());Ip(this)};f.dispose=function(){this.ka()||(this.L("beforeDispose"),Jp(this,3));Gp.K.dispose.call(this)};f.P=function(){Kp(this);Lp(this);Mp(this);M(this.oi);this.oi=NaN;M(this.Mi);this.Mi=NaN;this.B=null;Mh(this.F);this.F.length=0;this.j.dispose();Gp.K.P.call(this);this.o=this.ia=this.j=null};f.Pa=function(a){mi("conn",a)};f.$w=function(){this.A(2)};function Hp(a,b){return new bp(Sj(a.R,"/bc",void 0,!1),b)}
function Jp(a,b){a.L("proxyStateChange",b)}function Ip(a){a.vg=L(x(function(){this.Pa("Connecting timeout");this.A(1)},a),2E4)}function Kp(a){M(a.vg);a.vg=NaN}function Mp(a){M(a.uj);a.uj=NaN}function Np(a){Lp(a);a.Hm=L(x(function(){Op(this,"getNowPlaying")},a),2E4)}function Lp(a){M(a.Hm);a.Hm=NaN}function Pp(a){var b=a.j;return!!b.j&&3==b.j.j&&isNaN(a.vg)}
f.$z=function(){this.Pa("Channel opened");this.Lm&&(this.Lm=!1,Mp(this),this.uj=L(x(function(){this.Pa("Timing out waiting for a screen.");this.A(1)},this),15E3));Gk(dp(this.j),this.G)};f.Wz=function(){this.Pa("Channel closed");isNaN(this.vg)?Hk(!0):Hk();this.dispose()};f.Xz=function(a){Hk();isNaN(this.C())?(this.Pa("Channel error: "+a+" without reconnection"),this.dispose()):(this.Lm=!0,this.Pa("Channel error: "+a+" with reconnection in "+this.C()+" ms"),Jp(this,2))};
function Qp(a,b){b&&(Kp(a),Mp(a));b==Pp(a)?b&&(Jp(a,1),Op(a,"getSubtitlesTrack")):b?(a.D()&&a.ia.reset(),Jp(a,1),Op(a,"getNowPlaying"),Rp(a)):a.A(1)}function Sp(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.ia.videoId&&(Ub(b.params)?a.ia.A=null:a.ia.A=b.params,a.L("remotePlayerChange"))}function Tp(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.ia.o=b.params.listId||a.ia.o;qp(a.ia,c,d);a.L("remoteQueueChange")}
function Up(a,b){b.params=b.params||{};Tp(a,b);Vp(a,b)}function Vp(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);op(a.ia,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.ia.j&&(c=-1E3);a.ia.j=c;var d=null;-1E3==c&&(d=a.ia.B||"unknown",n(b.params.currentError)&&(d=qg(b.params.currentError).reason||d));a.ia.B=d;1==a.ia.j?Np(a):Lp(a);a.L("remotePlayerChange")}
function Wp(a,b){var c="true"==b.params.muted;a.ia.volume=parseInt(b.params.volume,10);a.ia.muted=c;a.L("remotePlayerChange")}
f.Yz=function(a){a.params?this.Pa("Received: action="+a.action+", params="+sg(a.params)):this.Pa("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=qg(a.params.devices);this.o=E(a,function(a){return new mk(a)});a=!!F(this.o,function(a){return"LOUNGE_SCREEN"==a.type});Qp(this,a);break;case "loungeScreenConnected":Qp(this,!0);break;case "loungeScreenDisconnected":qb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});Qp(this,!1);break;case "remoteConnected":var b=new mk(qg(a.params.device));
F(this.o,function(a){return a.equals(b)})||nb(this.o,b);break;case "remoteDisconnected":b=new mk(qg(a.params.device));qb(this.o,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":Tp(this,a);break;case "nowPlaying":Up(this,a);break;case "onStateChange":Vp(this,a);break;case "onVolumeChanged":Wp(this,a);break;case "onSubtitlesTrackChanged":Sp(this,a);break;default:this.Pa("Unrecognized action: "+a.action)}};
f.Zz=function(a){a.params?this.Pa("Received: action="+a.action+", params="+sg(a.params)):this.Pa("Received: action="+a.action);Xp(this,a);Yp(this,a);if(Pp(this)){var b=this.ia.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=qg(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==np(this.ia)&&
(delete a.params.videoId,Ub(a.params)?this.ia.A=null:this.ia.A=a.params,this.L("remotePlayerChange"));else if(np(this.ia)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=np(this.ia)):this.ia.setVideoId(""),e&&(e=e.split(","),rp(this.ia,e,d))):rp(this.ia,[]),this.ia.add(d)&&Op(this,"getPlaylist"),d&&this.ia.setVideoId(d),b.index==this.ia.index&&Cb(b.videoIds,this.ia.videoIds)||this.L("remoteQueueChange"),
n(g)&&(b=parseInt(g,10),b=isNaN(b)?-1:b,-1==b&&-1E3==this.ia.j&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.ia.j,this.ia.j=b,d=null,-1E3==b&&(d=this.ia.B||"unknown",p&&(d=p.reason||d)),c=c||this.ia.B!=d,this.ia.B=d,1==this.ia.j?Np(this):Lp(this)),"onError"!=a.action||-1!=this.ia.j&&-1E3!=this.ia.j||(a=qg(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==np(this.ia)&&(this.ia.j=-1E3,this.ia.B=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),op(this.ia,isNaN(b)?0:b),c=!0),
n(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||this.ia.volume!=b,this.ia.volume=b),n(l)&&(l="true"==l,c=c||this.ia.muted!=l,this.ia.muted=l)),c&&this.L("remotePlayerChange")}};
function Xp(a,b){switch(b.action){case "loungeStatus":var c=qg(b.params.devices);a.o=E(c,function(a){return new mk(a)});break;case "loungeScreenDisconnected":qb(a.o,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new mk(qg(b.params.device));F(a.o,function(a){return a.equals(d)})||nb(a.o,d);break;case "remoteDisconnected":d=new mk(qg(b.params.device)),qb(a.o,function(a){return a.equals(d)})}}
function Yp(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.uj))if(c)Mp(a);else return;c==Pp(a)?c&&Jp(a,1):c?(Kp(a),a.D()&&a.ia.reset(),Jp(a,1),Op(a,"getNowPlaying"),Rp(a)):a.A(1)}f.IC=function(){if(this.B){var a=this.B;this.B=null;this.ia.videoId!=a&&Op(this,"getNowPlaying")}};Gp.prototype.subscribe=Gp.prototype.subscribe;
Gp.prototype.unsubscribeByKey=Gp.prototype.Pb;Gp.prototype.J=function(){var a=3;this.ka()||(a=0,isNaN(this.C())?Pp(this)&&(a=1):a=2);return a};Gp.prototype.getProxyState=Gp.prototype.J;Gp.prototype.A=function(a){this.Pa("Disconnecting with "+a);Kp(this);this.L("beforeDisconnect",a);1==a&&Hk();cp(this.j,a);this.dispose()};Gp.prototype.disconnect=Gp.prototype.A;Gp.prototype.I=function(){var a=this.ia;this.B&&(a=this.ia.clone(),qp(a,this.B,a.index));return sp(a)};Gp.prototype.getPlayerContextData=Gp.prototype.I;
Gp.prototype.O=function(a){var b=new jp(a);b.videoId&&b.videoId!=this.ia.videoId&&(this.B=b.videoId,M(this.oi),this.oi=L(x(this.IC,this),5E3));var c=[];this.ia.o==b.o&&this.ia.videoId==b.videoId&&this.ia.index==b.index&&Cb(this.ia.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ia.j==b.j&&this.ia.volume==b.volume&&this.ia.muted==b.muted&&pp(this.ia)==pp(b)&&sg(this.ia.A)==sg(b.A)||c.push("remotePlayerChange");this.ia.reset(a);D(c,function(a){this.L(a)},this)};
Gp.prototype.setPlayerContextData=Gp.prototype.O;Gp.prototype.H=function(){return this.j.B.loungeIdToken};Gp.prototype.getLoungeToken=Gp.prototype.H;Gp.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:""};Gp.prototype.getOtherConnectedRemoteId=Gp.prototype.D;Gp.prototype.C=function(){var a=this.j;return a.o.enabled?a.o.C-y():NaN};Gp.prototype.getReconnectTimeout=Gp.prototype.C;
Gp.prototype.V=function(){if(!isNaN(this.C())){var a=this.j.o;a.enabled&&(a.stop(),a.start(),a.D())}};Gp.prototype.reconnect=Gp.prototype.V;function Rp(a){M(a.Mi);a.Mi=L(x(a.A,a,1),864E5)}function Op(a,b,c){c?a.Pa("Sending: action="+b+", params="+sg(c)):a.Pa("Sending: action="+b);a=a.j;b={_sc:b};c&&ac(b,c);a.o.enabled||2==(a.j?a.j.j:0)?a.F.push(b):a.j&&3==a.j.j&&Ro(a.j,b)}Gp.prototype.N=function(a,b){Op(this,a,b);Rp(this)};Gp.prototype.sendMessage=Gp.prototype.N;var Zp=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];function $p(a,b){var c=aq(a);return eb(b,function(a){return a.uuid?(a=Yj(this.A,a.uuid),!!a&&"RUNNING"==a.status):!!Zj(c,a)},a)}
function bq(a,b,c){var d=cq,e="";M(d.o);d.o=NaN;d.B="";if(Yj(d.A,a)){if(!e){var g=e=Vj();Vl();var h=em(a),k=Sl();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",am(h),Oi("yt-remote-cast-device-status-update",
h));Ql("Sending a cast launch request with params: "+l.parameters);k.launch(l,pa(fm,a))}else Ql("No cast API or no cast device. Dropping cast launch.")}d.B=e;d.o=L(x(d.H,d,a,0,e),Zp[0])}else d.Pa("No DIAL device with id: "+a)}function dq(a,b){var c=ak(aq(a),b);a.Pa("Found screen: "+vi(c)+" with key: "+b);return c}function eq(a){var b=cq,c=ak(b.j,a);b.Pa("Found online screen: "+vi(c)+" with key: "+a);return c}
function fq(a){var b=cq,c=Yj(b.A,a);if(!c){var d=ak(b.D,a);d&&(c=Yj(b.A,d.uuid))}b.Pa("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function aq(a){return rb(a.C,eb(a.D,function(a){return!Zj(this.C,a)},a))};function gq(a){bk.call(this,"ScreenServiceProxy");this.Gb=a;this.j=[];this.j.push(this.Gb.$_s("screenChange",x(this.FD,this)));this.j.push(this.Gb.$_s("onlineScreenChange",x(this.$A,this)))}z(gq,bk);f=gq.prototype;f.gc=function(a){return this.Gb.$_gs(a)};f.contains=function(a){return!!this.Gb.$_c(a)};f.get=function(a){return this.Gb.$_g(a)};f.start=function(){this.Gb.$_st()};f.add=function(a,b,c){this.Gb.$_a(a,b,c)};f.remove=function(a,b,c){this.Gb.$_r(a,b,c)};
f.Uj=function(a,b,c,d){this.Gb.$_un(a,b,c,d)};f.P=function(){for(var a=0,b=this.j.length;a<b;++a)this.Gb.$_ubk(this.j[a]);this.j.length=0;this.Gb=null;gq.K.P.call(this)};f.FD=function(){this.L("screenChange")};f.$A=function(){this.L("onlineScreenChange")};Uk.prototype.$_st=Uk.prototype.start;Uk.prototype.$_gspc=Uk.prototype.GD;Uk.prototype.$_gsppc=Uk.prototype.Gs;Uk.prototype.$_c=Uk.prototype.contains;Uk.prototype.$_g=Uk.prototype.get;Uk.prototype.$_a=Uk.prototype.add;Uk.prototype.$_un=Uk.prototype.Uj;
Uk.prototype.$_r=Uk.prototype.remove;Uk.prototype.$_gs=Uk.prototype.gc;Uk.prototype.$_gos=Uk.prototype.Fs;Uk.prototype.$_s=Uk.prototype.subscribe;Uk.prototype.$_ubk=Uk.prototype.Pb;function hq(a){q("yt.mdx.remote.castv2_",!0,void 0);ej&&dj();tk();iq||(iq=new Rj,Ik()&&(iq.j="/api/loungedev"));jq||(jq=t("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",jq,void 0));kq();var b=lq();if(!b){var c=new Uk(iq);q("yt.mdx.remote.screenService_",c,void 0);b=lq();sl(a,c,function(a){a?Ml()&&Ll():c.subscribe("onlineScreenChange",function(){Oi("yt-remote-receiver-availability-change")})})}}
function mq(){Ni(nq);nq.length=0;Ci(oq);oq=null;jq&&(D(jq,function(a){a(null)}),jq.length=0,jq=null,q("yt.mdx.remote.deferredProxies_",null,void 0));cq&&(Ci(cq),cq=null);iq=null;$l()}
function pq(){if(qq()&&Fl()){var a=[];if(hj("yt-remote-cast-available")||t("yt.mdx.remote.cloudview.castButtonShown_")||rq())a.push({key:"cast-selector-receiver",name:sq()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}if(t("yt.mdx.remote.cloudview.initializing_"))return[];var b=[],b=tq()?lq().Gb.$_gos():ui(hj("yt-remote-online-screens")||[]);(a=uq())&&rq()&&(Zj(b,a)||b.push(a));tq()||(a=Xj(Fk()),a=eb(a,function(a){return!ak(b,a.id)}),b=rb(b,a));return Wj(b)}
function vq(){if(qq()&&Fl()){var a=Gl();return a?{key:"cast-selector-receiver",name:a}:null}var a=pq(),b=wq(),c=uq();c||(c=xq());return F(a,function(a){return c&&qi(c,a.key)||b&&(a=fq(a.key))&&a.id==b?!0:!1})}function sq(){if(qq()&&Fl())return Gl();var a=uq();return a?a.name:null}function uq(){var a=Ml();if(!a)return null;if(!cq){var b=lq().gc();return ak(b,a)}return dq(cq,a)}
function yq(a,b){zq("Connecting to: "+sg(a));if("cast-selector-receiver"==a.key)Aq(b||null),Kl(b||null);else{Bq();Aq(b||null);var c=null;cq?c=eq(a.key):(c=lq().gc(),c=ak(c,a.key));if(c)Cq(c);else{if(cq&&(c=fq(a.key))){Dq(c);return}L(function(){Eq(null)},0)}}}
function Bq(){if(cq){var a=cq;M(a.o);a.o=NaN;a.B=""}i:{if(a=rq())if(a=a.getOtherConnectedRemoteId()){zq("Do not stop DIAL due to "+a);Fq("");break i}(a=wq())?(zq("Stopping DIAL: "+a),gm(a),Fq("")):(a=uq())&&a.uuid&&(zq("Stopping DIAL: "+a.uuid),gm(a.uuid))}Jl()?Bl().stopSession():yl("stopSession called before API ready.");(a=rq())?a.disconnect(1):(Pi("yt-remote-before-disconnect",1),Pi("yt-remote-connection-change",!1));Eq(null)}
function Gq(){var a=Hq(),a=a?a.currentTime:0,b=Iq();0==a&&b&&(a=pp(wp(b)));return a}function Iq(){var a=rq();return a&&3!=a.getProxyState()?new tp(a,void 0):null}function zq(a){mi("remote",a)}function qq(){return!!t("yt.mdx.remote.castv2_")}function tq(){return t("yt.mdx.remote.screenService_")}function lq(){if(!oq){var a=tq();oq=a?new gq(a):null}return oq}function Ml(){return t("yt.mdx.remote.currentScreenId_")}
function Jq(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(cq){var b=cq;b.G=y()+3E5;if(b.F=a){var c=dq(b,a);if(c&&!Zj(b.j,c)){a=sb(b.j);a.push(c);var c=$p(b,a),d=!Cb(b.j,c,ri);lb(a)||Ek(E(c,si));d&&(b.Pa("Updating online screens: "+wi(b.j)+" -> "+wi(c)),b.j=c,b.L("onlineReceiverChange"))}}}}function wq(){return t("yt.mdx.remote.currentDialId_")}function Fq(a){q("yt.mdx.remote.currentDialId_",a,void 0)}function Hq(){return t("yt.mdx.remote.connectData_")}
function Aq(a){q("yt.mdx.remote.connectData_",a,void 0)}function rq(){return t("yt.mdx.remote.connection_")}function Eq(a){var b=rq();Aq(null);a?$a(!rq()):(Jq(""),Fq(""));q("yt.mdx.remote.connection_",a,void 0);jq&&(D(jq,function(b){b(a)}),jq.length=0);b&&!a?Pi("yt-remote-connection-change",!1):!b&&a&&Oi("yt-remote-connection-change",!0)}function xq(){var a=wk();if(!a)return null;if(tq()){var b=lq().gc();return ak(b,a)}return cq?dq(cq,a):null}
function Cq(a){$a(!Ml());Jq(a.id);a=new Gp(iq,a,Kq());a.connect(1,Hq());a.subscribe("beforeDisconnect",function(a){Pi("yt-remote-before-disconnect",a)});a.subscribe("beforeDispose",function(){rq()&&(rq(),Eq(null))});Eq(a)}function Dq(a){wq();zq("Connecting to: "+(a?a.toString():"null"));Fq(a.id);var b=Hq();b?bq(a.id,b.videoIds[b.index],b.currentTime):bq(a.id)}var iq=null,jq=null,oq=null,cq=null;
function kq(){var a=Kq();if(Ub(a)){var a=vk(),b=hj("yt-remote-session-name")||"",c=hj("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 Kq(){return t("yt.mdx.remote.channelParams_")||{}}var nq=[];function Lq(){var a={volume:100,muted:!1},b=hj("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 Mq(a){fj("yt-player-bandwidth",a,2592E3)};function Nq(a,b,c){w(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=a;c=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);b.videoId=c&&c[2]?c[2]:null;return Oq(a)}function Oq(a,b,c){if(ja(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}};function Pq(a,b,c){this.errorCode=a;this.o=b;this.j=c||""};function Qq(a,b){Q.call(this);this.T=a;this.oe=null;this.Vf={};this.Qg={};this.A={};this.o={};this.j=null;this.playerType=b;W(this,"cueVideoById",this.aE);W(this,"loadVideoById",this.Gn);W(this,"cueVideoByUrl",this.bE);W(this,"loadVideoByUrl",this.qE);W(this,"playVideo",this.Hn);W(this,"pauseVideo",this.pauseVideo);W(this,"stopVideo",this.$s);W(this,"clearVideo",this.ZD);W(this,"getVideoBytesLoaded",this.kE);W(this,"getVideoBytesTotal",this.lE);W(this,"getVideoLoadedFraction",this.Fn);W(this,"getVideoStartBytes",
this.nE);W(this,"cuePlaylist",this.$D);W(this,"loadPlaylist",this.Ws);W(this,"nextVideo",this.Ys);W(this,"previousVideo",this.Zs);W(this,"playVideoAt",this.In);W(this,"setShuffle",this.zE);W(this,"setLoop",this.wE);W(this,"getPlaylist",this.Ed);W(this,"getPlaylistIndex",this.Ss);W(this,"getPlaylistId",this.Rs);W(this,"loadModule",this.Vs);W(this,"unloadModule",this.CE);W(this,"setOption",this.Jn);W(this,"getOption",this.hk);W(this,"getOptions",this.gE);W(this,"mute",this.Xs);W(this,"unMute",this.bt);
W(this,"isMuted",this.Us);W(this,"setVolume",this.setVolume);W(this,"getVolume",this.Ts);W(this,"seekTo",this.wh);W(this,"getPlayerState",this.getPlayerState);W(this,"getPlaybackRate",this.iE);W(this,"setPlaybackRate",this.yE);W(this,"getAvailablePlaybackRates",this.dE);W(this,"getPlaybackQuality",this.hE);W(this,"setPlaybackQuality",this.Kn);W(this,"getAvailableQualityLevels",this.eE);W(this,"getCurrentTime",this.getCurrentTime);W(this,"getDuration",this.vh);W(this,"addEventListener",this.addEventListener);
W(this,"removeEventListener",this.removeEventListener);W(this,"getVideoUrl",this.getVideoUrl);W(this,"getDebugText",this.Qs);W(this,"getVideoEmbedCode",this.mE);W(this,"getVideoData",this.getVideoData);W(this,"addCueRange",this.Ps);W(this,"removeCueRange",this.sE);W(this,"setSize",this.AE);W(this,"getApiInterface",this.cE);W(this,"destroy",this.destroy);W(this,"showVideoInfo",this.BE);W(this,"hideVideoInfo",this.oE);W(this,"onExternalMouseMove",this.rE);Rq(this,"apiProxyReady",this.YD);Rq(this,"getInternalApiInterface",
this.fE);Rq(this,"getAdState",this.getAdState);Rq(this,"isNotServable",this.pE);Rq(this,"getUpdatedConfigurationData",this.jE);Rq(this,"updateRemoteReceivers",this.DE);Rq(this,"sendAbandonmentPing",this.tE);Rq(this,"setAutonav",this.uE);Rq(this,"setAutonavState",this.vE);Rq(this,"setMinimized",this.xE);Rq(this,"channelSubscribed",v);Rq(this,"channelUnsubscribed",v)}z(Qq,Q);function W(a,b,c){a.Vf[b]=x(c,a)}function Rq(a,b,c){a.Qg[b]=x(c,a)}f=Qq.prototype;f.cE=function(){return Pb(this.Vf)};f.fE=function(){return Pb(this.Qg)};
f.Q=function(){return this.oe};f.addEventListener=function(a,b){if(w(b)){var c=function(){t(b).apply(window,arguments)};this.A[b]=c;this.T.subscribe(a,c)}else this.T.subscribe(a,b)};f.Ew=function(a,b){var c=w(b)?a+b:a+ka(b);if(!this.o[c]){var d;w(b)?d=function(){t(b).apply(window,arguments)}:d=b;var e=x(function(a){d({target:this.j,data:a})},this);this.o[c]=e;this.addEventListener(a,e)}};f.removeEventListener=function(a,b){if(w(b)){var c=this.A[b];Wb(this.A,b);this.T.qa(a,c)}else this.T.qa(a,b)};
f.Fw=function(a,b){var c=w(b)?a+b:a+ka(b),d=this.o[c];d&&(this.removeEventListener(a,d),Wb(this.o,c))};f.getPlayerState=function(){return Sq(this.T)};f.wh=function(a,b){Tq(this.T,!0,this.playerType);Uq(this.T,a,b,void 0,this.playerType)};f.getCurrentTime=function(){return this.T.getCurrentTime(this.playerType)};f.vh=function(){return Vq(this.T,1)};f.Ts=function(){return Wq(this.T)};f.setVolume=function(a){this.T.setVolume(a)};f.Us=function(){return this.T.I.muted};f.Xs=function(){Xq(this.T)};
f.bt=function(){Yq(this.T)};f.Hn=function(){Tq(this.T,!0,this.playerType);Zq(this.T,this.playerType)};f.pauseVideo=function(){$q(this.T,this.playerType)};f.$s=function(){var a=this.T,b=this.playerType;ar(a.j)&&br(a,!1);cr(a,"play_pause")||dr(a,b)};f.ZD=function(){};f.iE=function(){return this.T.aa};f.yE=function(a){er(this.T,a)};f.dE=function(){return fr(this.T)};f.hE=function(){return gr(this.T,this.playerType)};
f.Kn=function(a){var b=this.T,c=hr(b,this.playerType);c&&!b.j.isMobile&&(a=ir(a,a,!0),jr(c,"p",a))};f.eE=function(){var a=hr(this.T,this.playerType);return a?kr(a):[]};f.kE=function(){return this.Fn()};f.lE=function(){return 1};f.Fn=function(){return lr(this.T.ga)};f.nE=function(){return 0};f.AE=function(){this.T.A.ki()};f.uE=function(a){var b=this.T;a=a?2:1;b.getVideoData().ye=a;b.Ra("autonavchange",a)};f.vE=function(a){var b=this.T;b.getVideoData().ye=a;b.Ra("autonavchange",a)};
f.xE=function(a){this.T.j.Wp=a};f.Vs=function(a){this.T.F.isAvailable(a)&&(a=mr(this.T.F,a))&&!a.loaded&&a.load()};f.CE=function(a){this.T.F.isAvailable(a)&&(a=mr(this.T.F,a))&&a.loaded&&a.unload()};f.Gn=function(a,b,c){a=nr(this.T,Oq(a,b,c),this.playerType);Tq(this.T,a,this.playerType)};f.aE=function(a,b,c){or(this.T,Oq(a,b,c),this.playerType)};f.qE=function(a,b,c){a=Nq(a,b,c);b=nr(this.T,a,this.playerType);Tq(this.T,b,this.playerType);b=this.T;(a=qf(new J(a.mediaContentUrl)))&&pr(b.j,a)};
f.bE=function(a,b,c){b=Nq(a,b,c);or(this.T,b,this.playerType);a=this.T;(b=qf(new J(b.mediaContentUrl)))&&pr(a.j,b)};f.getVideoUrl=function(){return qr(this.T)};f.Qs=function(){return rr(this.T)};f.mE=function(){return sr(this.T)};f.Ps=function(a,b,c){return tr(this.T,a,b,c)};f.sE=function(a){i:{for(var b=this.T,c=b.o.D.j.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){e.Xa.clear();b.o.D.uh(e);ur(b,"cuerangesremoved",[e]);a=!0;break i}}a=!1}return a};
f.Ws=function(a,b,c,d){var e=this.T;e.V=!1;vr(e,a,b,c,d);Tq(this.T,!0,this.playerType)};f.$D=function(a,b,c,d){var e=this.T;e.V=!0;vr(e,a,b,c,d)};f.Ys=function(){wr(this.T);Tq(this.T,!0,this.playerType)};f.Zs=function(){xr(this.T);Tq(this.T,!0,this.playerType)};f.In=function(a){yr(this.T,a);Tq(this.T,!0,this.playerType)};f.zE=function(a){var b=this.T;b.B&&zr(b.B,a)};f.wE=function(a){var b=this.T;b.B&&(b.B.jg=a)};
f.Ed=function(){var a=this.T.B;if(!a)return null;for(var b=[],c=0;c<a.wc;c++){var d=Ar(a,c);d&&b.push(d.videoId)}return b};f.Ss=function(){var a;a=this.T;a=a.B?a.B.Ya:null;return null==a?-1:a};f.Rs=function(){return Br(this.T)};f.Jn=function(a,b,c){return Cr(this.T,a,b,c)};f.hk=function(a,b,c){return Cr(this.T,a,b,c)};f.gE=function(a){return Dr(this.T,a)};
f.getVideoData=function(){var a=hr(this.T,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.Rs();b&&(a.list=b);return a};f.BE=function(){this.T.A.S.va()};f.oE=function(){this.T.A.S.$()};f.getAdState=function(){return this.T.getAdState()};f.pE=function(a){var b=this.T;a!=b.Y.args.video_id?a=!1:(a=(a=b.o)?a.getPlayerState():null,a=!(!a||!X(a,128)||5!=Er[a.j.errorCode]));return a};
f.jE=function(){var a=this.T,b=a.Y.clone(),c=b.args,a=Fr(a),d=Yb(a.B);!a.Qa&&0<a.startSeconds&&(d.start=a.startSeconds);qa(c,d);return b};f.DE=function(a,b){var c=this.T;c.G&&Gr(c.G,a,b);Hr(c.j)&&6!=c.J&&(c.j.wg=!lb(a),c.j.wg?(1!=c.J&&3!=c.J||!b||Ir(c.H),a.length&&1!=c.J&&Jr(c)):Ir(c.G))};f.destroy=function(){this.T.dispose()};f.tE=function(){var a=hr(this.T);a&&!X(a.getPlayerState(),128)&&(Kr(a),Lr(a))};f.rE=function(){this.T.A.St()};f.YD=function(){var a=this.T;a.j.experiments.J&&a.L("onMouseMoveCapture")};
f.P=function(){if(this.oe){for(var a in this.Vf)this.oe[a]=null;for(a in this.Qg)this.oe[a]=null;this.oe=null}this.A=this.o=null;Qq.K.P.call(this)};function Mr(a,b){Qq.call(this,a,b);W(this,"addInfoCardXml",this.EE);W(this,"cueVideoByPlayerVars",this.FE);W(this,"loadVideoByPlayerVars",this.ct);W(this,"preloadVideoByPlayerVars",this.KE);W(this,"seekBy",this.ft);W(this,"enableLicenseIntercept",this.GE);W(this,"updatePlaylist",this.PE);W(this,"resumeLicenseSession",this.LE);W(this,"updateLastActiveTime",this.OE);W(this,"updateVideoData",this.QE);W(this,"getStoryboardFormat",this.IE);W(this,"getProgressState",this.xh);W(this,"getHousebrandProperties",
this.HE);W(this,"setPlaybackQualityRange",this.NE);W(this,"getCurrentPlaylistSequence",this.Nw);W(this,"canPlayType",this.canPlayType);W(this,"sendVideoStatsEngageEvent",this.ME);W(this,"handleGlobalKeyDown",this.JE)}z(Mr,Qq);f=Mr.prototype;f.Ps=function(a,b,c,d,e){return tr(this.T,a,b,c,d,e)};f.EE=function(a,b){var c=this.T;c.j.aa=a;c.j.ie=b};f.FE=function(a){or(this.T,a,this.playerType)};f.getPlayerState=function(a){return Sq(this.T,a)};f.ct=function(a){nr(this.T,a,this.playerType)};
f.KE=function(a){var b=this.T,c=this.playerType;c&&1!=c||b.O&&b.O.getVideoData().videoId==a.videoId||(a=new Nr(a),Or(b,a))};f.Hn=function(){Zq(this.T,this.playerType)};f.wh=function(a,b){Uq(this.T,a,b,void 0,this.playerType)};f.Ws=function(a,b,c,d){var e=this.T;e.V=!1;vr(e,a,b,c,d)};f.Ys=function(){wr(this.T)};f.Zs=function(){xr(this.T)};f.In=function(a){yr(this.T,a)};f.ft=function(a,b,c){var d=this.T,e=this.playerType;Uq(d,d.getCurrentTime()+a,b,c,e)};
f.GE=function(){var a=this.T;a.ob||(a.ob=!0,a.ua={})};f.PE=function(){var a=this.T;Pr(a,Fr(a));a.Ra("onPlaylistUpdate")};f.LE=function(a,b){var c=this.T,d=c.ua[a];d&&(Qr(d,b),d.start(),delete c.ua[a])};f.OE=function(){Rr()};f.QE=function(a){var b=hr(this.T,this.playerType||1);b&&(b=b.j,Sr(b,a),b.L("dataupdated"))};f.IE=function(){var a=this.T.getVideoData();return a.B.storyboard_spec||a.B.live_storyboard_spec};f.HE=function(){var a=this.T.W();return{Nb:a.Nb,Hb:a.Hb(),jh:a.jh}};
f.getVideoData=function(){var a=Mr.K.getVideoData.call(this),b=hr(this.T,this.playerType),b=b?b.getVideoData():{};a.cpn=b.clientPlaybackNonce;a.isLive=b.Qa;return a};f.getCurrentTime=function(a){return a?this.T.getCurrentTime(a):Mr.K.getCurrentTime.call(this)};f.vh=function(a){return a?Vq(this.T,a):Mr.K.vh.call(this)};
f.xh=function(){var a=this.T.getVideoData(),b=!a.Qa||a.wb,c=a.clipEnd,a=a.clipStart,d=this.getCurrentTime(),e=this.vh(),g=hr(this.T,void 0);if(g)var h=Tr(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:Ur(hr(this.T)),seekableStart:Vr(hr(this.T).j)}};f.Fn=function(a){var b=this.T;return(b.D&&2==b.D.getPlayerType())==(2==a)?lr(b.ga):0};f.canPlayType=function(a){return this.T.canPlayType(a)};
f.NE=function(a,b){Wr(this.T,a,this.playerType,b)};f.Nw=function(){var a;var b=this.T.getVideoData();a=this.T.getCurrentTime();if(b.j&&b.Qa){var c=b.j.j[b.o.id];c&&c.index?(b=c.index.Fg(a),c=c.index.cf(b),a={sequence:b,elapsed:a-c}):a=null}else a=null;return a};f.ME=function(a){var b=this.T;b.j.experiments.O&&(b=hr(b,this.playerType))&&b.B&&(b=Xr(b.B,"engage"),b.G=a,b.send())};f.JE=function(a,b){this.T.A.rk(a,b)};function Yr(a,b){Mr.call(this,a,b)}z(Yr,Mr);f=Yr.prototype;f.getPlayerType=function(){return this.playerType};f.Gn=function(a,b,c){nr(this.T,Oq(a,b,c),this.playerType)};function Zr(a,b){a.T.A.A.appendChild(b)}f.Ma=function(){return this.T.A.Q()};f.Df=function(){return this.T.Df()};f.W=function(){return this.T.W()};f.Ed=function(){return this.T.B};f.getVideoData=function(){var a=hr(this.T,this.playerType);return a&&a.getVideoData()};f.Sg=function(){return this.T.W().gb};
f.addEventListener=function(a,b,c){this.T.subscribe(a,b,c)};f.removeEventListener=function(a,b,c){this.T.qa(a,b,c)};f.Kn=function(a){Wr(this.T,a,1)};f.Qs=function(a){return rr(this.T,a)};f.getVideoUrl=function(a){return qr(this.T,a)};function $r(a,b){this.start=a;this.end=b}function as(a,b){return a.start!=b.start?a.start-b.start:a.end!=b.end?a.end-b.end:ka(a)-ka(b)}$r.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)};$r.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function bs(){this.j=[]}function cs(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 ds(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 es(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(yb);return c[0]};function fs(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 gs(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 hs(a,b){var c=gs(a,b);return 0<=c?a.end(c):NaN}function is(a){return a&&a.length?a.end(a.length-1):NaN}function js(a,b){var c=hs(a,b);return 0<=c?c-b:0};var ks,ls;var ms=Uc,ns=ms.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!ns||2>ns.length)ks=void 0;else{var os=ms.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);ks=os&&6==os.length?Number(os[5].replace("_",".")):0}(ls=0<=ks)&&0<=Uc.search("Safari")&&Uc.search("Version");var ps=Zh||$h;function qs(){return rs("(ps3; leanback shell)")}function ss(){return rs("safari/")&&rs(" version/8")}function ts(){return bi&&rs("crkey")}function rs(a){var b=Uc;return b?0<=b.toLowerCase().indexOf(a):!1};function us(){}var vs=ls&&4>ks?.1:0,ws=new us;f=us.prototype;f.Dc=null;f.Ok=!1;function xs(a,b){var c="";b&&(ys(a,b),c=zs(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.j||a.load())}function As(a,b){0<a.readyState&&(a.currentTime=Math.max(vs,b))}f.getCurrentTime=function(){return this.currentTime||0};function Tr(a){return 0<is(a.buffered)&&a.duration?hs(a.buffered,a.currentTime):0}function lr(a){var b=a.duration||0;return Infinity==b?1:b?Tr(a)/b:0}function Bs(a){return a.paused||a.ended}
function Cs(a){a.ended&&As(a,0);!a.hasAttribute("src")&&a.Dc&&(a.src=zs(a.Dc),a.Dc.j||a.load());a.play();ls&&7<=ks&&Lh(a,x(function(){L(x(this.$o,this,this.currentTime,0),500)},a))}f.$o=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),L(x(this.$o,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function Ds(a){a.currentSrc&&(ps&&As(a,0),Vd(a),a.removeAttribute("src"),a.load(),a.Dc&&a.Dc.j&&(a.Dc=null))}function Es(a){Ds(a);ys(a,null)}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function Fs(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.pw=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.rw=function(){this.Ok&&!this.muted&&(this.muted=!0)};
us.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:fs(this.played),vbu:fs(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 ys(a,b){a.Dc&&a.Dc.equals(b)||(a.Dc&&a.Dc.dispose(),a.Dc=b)};function Gs(a,b){this.o=a||64;this.j=b||null}
function Hs(a,b,c){if(X(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":X(a,256)?(d^=256)||(d=64):X(a,32)||X(a,2)||(d=4,X(a,1)&&X(a,8)&&(d|=1),e=null);break;case "playing":d=8;e=null;break;case "abort":if(64==d)break;case "error":i: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 i}b={errorCode:b}}else b=null;b&&(e=b,d|=128);break;case "canplay":d&=-2;break;case "progress":X(a,8)&&Is(c,g)&&(d|=1);break;case "seeked":d&=-17;break;case "seeking":d|=16;0>=js(g.buffered,g.currentTime)&&(d|=1);d&=-3;break;case "waiting":X(a,2)||(d|=1);break;case "timeupdate":X(a,16)||(d=Is(c,g)?d|1:d&-2);1<g.readyState&&0<g.currentTime&&(d&=-65);break;default:return a}return Js(a,d,e)}
function Is(a,b){if(!a)return!1;var c=js(b.buffered,b.currentTime);return Ks(a,b.currentTime,y(),c)}function Js(a,b,c){return b==a.o&&c==a.j||b&128&&!c||b&2&&b&16?a:new Gs(b,c)}function Ls(a,b){return Js(a,a.o|b)}function Ms(a,b){return Js(a,a.o&~b)}function X(a,b){return!!(a.o&b)}Gs.prototype.yb=function(){return X(this,8)&&!X(this,64)&&!X(this,2)};function Os(a){return X(a,8)&&!X(a,2)}function Ps(a){return X(a,128)?-1:X(a,2)?0:X(a,1)&&!X(a,32)?3:X(a,64)?-1:X(a,8)?1:X(a,4)?2:-1};function Qs(a,b,c){$r.call(this,a,b);a=c||{};this.Ba=a.id||"";void 0!=a.priority&&(this.Uf=a.priority);this.namespace=a.namespace||"";this.Xa=new Fi;this.tooltip=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.visible=a.visible)}z(Qs,$r);function Rs(a){return{start:a.start,end:a.end,id:a.Ba,priority:a.Uf,namespace:a.namespace,tooltip:a.tooltip,style:"ytp-chapter-marker"==a.style?"chapter":"ad",visible:a.visible}}f=Qs.prototype;f.Ba="";f.Uf=7;f.mo=!0;f.visible=!1;f.style="ytp-ad-progress";
f.Xa=null;f.namespace="";f.getId=function(){return this.Ba};function Ss(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}function Ts(a,b){return a.start==b.start?a.Uf==b.Uf?0:a.Uf<b.Uf?-1:1:a.start<b.start?-1:1}f.toString=function(){return Qs.K.toString.call(this)};function Us(a,b,c,d){S.call(this);this.G=a;this.F=b;this.D=c;this.H=d;this.B=new xn(250);Bm(this.B,"tick",this.zc,!1,this);R(this,this.B);this.o=[];this.j=new bs}z(Us,S);f=Us.prototype;f.$i=!1;f.ae=!1;f.nm=!1;f.Jl=!1;f.Ug=null;function Vs(a,b){a.zc();var c=a.j;if(1<b.length&&b.length>c.j.length)c.j=c.j.concat(b),c.j.sort(as);else for(var d=0;d<b.length;d++){var e=b[d];!c.j.length||0<as(e,c.j[c.j.length-1])?c.j.push(e):Eb(c.j,e,as)}a.zc()}
f.uh=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=xb(d,c,as);0<=c&&pb(d,c)}}this.zc()};f.cg=function(){this.A=Ws(this);this.ae=!0;this.zc()};f.reset=function(){this.ae=this.$i=!1;Xs(this);this.j.j=[];this.o=[];this.zc();this.C=null};function Ys(a,b){var c=[];if(!b.length)return c;b.sort(Ts);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 Zs(a,b){var c=[];if(!b.length)return c;b.sort(Ts);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.zc=function(){this.Jl=!0;if(!this.nm)for(var a=3;this.Jl&&a;){this.Jl=!1;this.nm=!0;if(this.ae&&!this.$i){Xs(this);for(var b=Ws(this),c=[],d=[],e=0;e<this.o.length;e++){var g=this.o[e];g.mo&&!g.contains(b)&&d.push(g)}c=c.concat(Zs(this,d));d=cs(this.j,b);e=this.D();!X(e,48)&&b>this.A&&(d=d.concat(ds(this.j,this.A,b)));c=c.concat(Ys(this,d));this.A=b;!this.$i&&this.C&&(c.unshift(["onLockBlockExit",this.C]),this.C=null,X(e,2)&&(this.A=2147483647));this.H()&&(b=es(this.j,this.A),null!=b&&(b=(b-this.A)/
this.F(),this.Ug=zn(x(this.zc,this),b)));$s(this,c)}this.nm=!1;a--}};function $s(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.Xa.L.apply(e.Xa,d)}}function Xs(a){null!=a.Ug&&(An(a.Ug),a.Ug=null)}function Ws(a){return X(a.D(),2)?2147483647:1E3*a.G()}f.P=function(){Jm(this.B,"tick",this.zc,!1,this);Xs(this);this.C=this.j=this.o=null;Us.K.P.call(this)};function at(a){S.call(this);this.j=a;this.Zm&&(a=ik("yt-html5-player-modules::"+this.Zm))&&(this.Z=new Vi(a))}z(at,S);f=at.prototype;f.xa="";f.Cc="";f.qe=!1;f.loaded=!1;f.fi=!1;f.Yb=null;function bt(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.namespace=a.xa;d.Xa.subscribe("onEnter",a.Jc,a);d.Xa.subscribe("onExit",a.Yc,a)}a.L("command_add_cuerange",b,a.j.getPlayerType())}function ct(a,b){a.L("command_remove_cuerange",b,a.j.getPlayerType())}
function dt(a){a.L("command_remove_cuerange_all",a.xa,a.j.getPlayerType())}function et(a){a.L("command_preroll_ready",a.xa,a.j.getPlayerType())}function ft(a,b){N(b,a.xa);a.j.T.A.sa.appendChild(b)}function gt(a,b){a.L("command_show_dialog",b)}f.Lg=function(){gt(this)};f.Na=function(){this.qe||(this.Ha(this.j),N(this.j.Ma(),this.xa+"-created"),this.qe=!0)};f.destroy=function(){this.loaded&&this.unload();th(this.j.Ma(),this.xa+"-created");this.qe=!1;this.L("destroyed",this.xa)};
f.load=function(){this.loaded=!0;N(this.j.Ma(),this.xa+"-loaded");this.L("loaded",this.xa)};f.unload=function(){this.loaded=!1;th(this.j.Ma(),this.xa+"-loaded");this.L("unloaded",this.xa)};f.Jc=function(){};f.Yc=function(){};f.Wd=function(){};function ht(a,b,c){a.L("command_navigate_to_url",b,c)}f.log=function(a){this.L("command_log",this.Cc,a)};function it(a,b,c){var d={},e;for(e in b)d[a.xa+"_"+e]=b[e];b={};for(var g in c)b[a.xa+"_"+g]=c[g];a.L("command_log_timing",d,b)}f.Ah=function(){return null};
function jt(a,b){if(!a.Z)return null;var c;try{c=a.Z.get(b)}catch(d){a.Z&&a.Z.remove(b)}return c}function kt(a,b,c){if(a.Z)try{a.Z.set(b,c)}catch(d){}}function lt(a,b){a.L("command_disable_controls",b,a.xa)}function mt(a,b){a.L("command_enable_controls",b,a.xa)}function nt(a){a.L("command_stop_redirect_controls")}function ot(a){a.L("command_play",!1,a.j.getPlayerType())}f.pauseVideo=function(){this.L("command_pause",!1,this.j.getPlayerType())};
function pt(a,b){a.L("command_redirected_show_is_playing",b)}f.Vj=function(a,b){this.L("command_progress",a,b)};function qt(a){return a.j.T.A.B}function rt(a,b,c){a.L("module_menu_button_add",b,c)}function st(a,b){a.L("module_menu_button_remove",b)}function tt(a,b){a.L("module_menu_item_add",b)}function ut(a,b){a.L("module_menu_item_remove",b)}function vt(a){a.L("module_menu_show")}f.kg=function(){};f.lg=function(){return[]};f.Ha=function(){return!1};f.$m=function(){return!0};
f.wj=function(a,b){this.Yb&&this.Yb.Wd&&this.Yb.Wd.apply(this.Yb,arguments)};f.kj=function(){};var wt={FG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",JG:"ERROR_AUTHENTICATION_EXPIRED",KG:"ERROR_AUTHENTICATION_MALFORMED",LG:"ERROR_AUTHENTICATION_MISSING",MG:"ERROR_BAD_REQUEST",TG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",aH:"ERROR_CGI_PARAMS_MALFORMED",bH:"ERROR_CGI_PARAMS_MISSING",kH:"YTP_DEVICE_FALLBACK",qH:"YTP_ERROR_LICENSE",tH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",uH:"YTP_ERROR_GEO_FAILURE",LH:"YTP_ERROR_GENERIC",MH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",UH:"YTP_ERROR_INVALID_DRM_MESSAGE",
ZH:"LEARN_MORE",BI:"YTP_ERROR_NOT_SIGNED_IN",WI:"YTP_ERROR_PURCHASE_NOT_FOUND",XI:"YTP_ERROR_PURCHASE_REFUNDED",aJ:"YTP_ERROR_RENTAL_EXPIRED",VG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",WG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",YG:"YTP_ERROR_CAST_TOKEN_FAILED",XG:"YTP_ERROR_CAST_TOKEN_EXPIRED",ZG:"YTP_ERROR_CAST_TOKEN_MALFORMED",lJ:"YTP_ERROR_SERVER_ERROR",yJ:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",AJ:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",BJ:"YTP_ERROR_STREAMING_NOT_ALLOWED",CJ:"YTP_ERROR_STREAMING_UNAVAILABLE",
dJ:"YTP_ERROR_RETRYABLE_ERROR",OJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",NJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",VJ:"YTP_ERROR_UNSUPPORTED_DEVICE",WJ:"YTP_ERROR_UNUSUAL_ACTIVITY",fK:"YTP_ERROR_VIDEO_FORBIDDEN",hK:"YTP_ERROR_VIDEO_NOT_FOUND"},xt={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 zt(a){return(a=xt[a.toString()])?a:"YTP_ERROR_LICENSE"};var At={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 Bt(a,b,c){this.o=a;this.j=b;this.A=c}var Ct={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},Dt=["widevine","playready"];function Et(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}function Ft(a,b,c,d){return!(0!=b.indexOf("audio/mp4")||"widevine"!=c||!a.canPlayType(b)||!a.canPlayType('video/mp4; codecs="avc1"',d))}
function Gt(a,b,c){var d,e=Et();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<Dt.length;g++){var h=Dt[g];if(c[h])for(var k=Ct[h],l=0;l<k.length;l++){var p=k[l];if(d(b,p)||Ft(a,b,h,p))return new Bt(h,p,c[h])}}return null};function Ht(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.Wi=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1}Ht.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.Wi+"_"+this.id+"_"+this.isDefault};function It(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.B=a.kind||"";this.A=a.name;this.Ba=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 Ht(a.translationLanguage))}
function Jt(a){var b={format:a.C,languageCode:a.j,languageName:a.D,displayName:Kt(a),kind:a.B,name:a.A,id:a.Ba,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.Wi,id:a.id,is_default:a.isDefault});return b}
function Kt(a){var b=a.D||"",c=[b];"asr"==a.B&&-1==b.indexOf("(")&&c.push(" (",Zf("YTP_ASR_SETTINGS_LABEL"),")");a.A&&c.push(" - ",a.A);a.o&&c.push(" >> ",a.o.languageName);return c.join("")}It.prototype.toString=function(){return this.j+": "+Kt(this)+" - "+this.F};function Lt(a,b){var c=new It;c.j=a.j;c.D=a.D;c.A=a.A;c.B=a.B;c.isDefault=!1;c.G=a.G;c.F=a.F;c.H=a.H;c.o=b;return c}It.prototype.equals=function(a){return a?this.toString()==a.toString():!1};function Mt(a,b,c,d,e){this.id=a;this.name=b;this.language=c;this.Nk=d;this.isDefault=e;this.captionTracks=[];this.Ai=this.jl=null;this.Ao=0}Mt.prototype.toString=function(){return this.name};var Tb={ru:"auto",IJ:"tiny",$H:"light",SMALL:"small",uv:"medium",LARGE:"large",zH:"hd720",vH:"hd1080",wH:"hd1440",xH:"hd2160",yH:"hd2880",JH:"highres",UNKNOWN:"unknown"},Nt={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},Ot="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");function Pt(a,b,c){this.o=a||0;this.j=b||0;this.A=c}Pt.prototype.equals=function(a){return this.o==a.o&&this.j==a.j&&this.A==a.A};function ir(a,b,c){return new Pt(Nt[a]||0,Nt[b]||0,c)}var Qt=ir("auto","large",!1),Rt=ir("auto","auto",!1);function St(a){var b=Nt.auto;return a.o==b&&a.j==b}function Tt(a){return a.A&&!!a.o&&a.o==a.j}
function Ut(a,b){if(b.A&&St(b))return Rt;if(b.A||St(a))return b;if(a.A||St(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 Pt(c,d,!1)}function Vt(a){var b=a.j||a.o;return Sb(function(a){return Nt[a]==b})||"auto"}Pt.prototype.B=function(a){if(!a.video)return!1;a=Nt[a.video.quality];return this.o<=a&&(!this.j||this.j>=a)};function Wt(a,b){this.o=a;this.j=b||null;this.audioTracks=[];if(this.j){var c={};D(this.j,x(function(a){if(a.Sd&&!c[a.id]){var b=new Mt(a.id,a.Sd.name,a.Sd.language,a.Sd.Nk,a.Sd.isDefault);c[a.id]=b;this.audioTracks.push(b)}},this))}}function Xt(a,b){var c=b||Rt,c=eb(a.o,x(c.B,c)),c=E(c,function(a){return a.video.quality});wb(c);return c}function Yt(a){var b={};E(a.o,function(a){b[a.video.quality]=a.video.fps});return b};var Zt,$t;var au=Uc,au=au.toLowerCase();if(-1!=au.indexOf("android")){var bu=au.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(bu)Zt=Number(bu[1]);else{var cu={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},du=au.match("("+Pb(cu).join("|")+")");Zt=du?cu[du[0]]:0}}else Zt=void 0;$t=0<=Zt;var eu,fu;function gu(){var a=t("yt.player.utils.videoElement_");a||(a=document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a}function hu(){if(2.2==Zt)return!0;var a=gu();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 iu(a){return(a=a.exec(Uc))?a[1]:""}var ju=function(){if(Yh)return iu(/Firefox\/([0-9.]+)/);if(dd||cd)return pd;if(bi)return iu(/Chrome\/([0-9.]+)/);if(ci&&!(bd()||Xc("iPad")||Xc("iPod")))return iu(/Version\/([0-9.]+)/);if(Zh||$h){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Uc))return a[1]+"."+a[2]}else if(ai)return(a=iu(/Android\s+([0-9.]+)/))?a:iu(/Version\/([0-9.]+)/);return""}();function ku(a,b){this.B=a;this.j=!!b;this.A=!1;this.o={}}ku.prototype.dispose=function(){if(!this.A){if(this.j)try{URL.revokeObjectURL(this.B)}catch(a){}this.A=!0}};ku.prototype.ka=function(){return this.A};function zs(a){return a.j?a.B:Ve(a.B,a.o)}ku.prototype.equals=function(a){return null!=a&&zs(a)==zs(this)};function lu(a,b){this.o=a;this.A=b;this.B=0;Object.defineProperty(this,"timestampOffset",{get:this.sD,set:this.wD});Object.defineProperty(this,"buffered",{get:this.qD})}f=lu.prototype;f.append=function(a){this.o.webkitSourceAppend(this.A,a)};f.abort=function(){this.o.webkitSourceAbort(this.A)};f.qD=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new mu:this.o.webkitSourceBuffered(this.A)};f.sD=function(){return this.B};
f.wD=function(a){this.B=a;this.o.webkitSourceTimestampOffset(this.A,a)};function mu(){this.length=0};function nu(a){this.activeSourceBuffers=this.sourceBuffers=[];this.j=a;this.o=NaN;this.A=0;Object.defineProperty(this,"duration",{get:this.rD,set:this.vD});Object.defineProperty(this,"readyState",{get:this.tD});this.j.addEventListener("webkitsourceclose",x(this.uD,this),!0)}f=nu.prototype;f.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};f.tG=function(){return this.j.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.A++).toString();this.j.webkitSourceAddId(b,a);a=new lu(this.j,b);this.sourceBuffers.push(a);return a};f.tD=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.uD=function(){mb(this.sourceBuffers)};
f.rD=function(){return this.o};f.vD=function(a){this.o=a;this.j.webkitSourceSetDuration&&this.j.webkitSourceSetDuration(a)};function ou(a){this.B=[];this.I=a||null}function pu(a,b,c,d){for(var e=0;e<c.length;e++)a.M(b,c[e],d)}ou.prototype.M=function(a,b,c){c=x(c,this.I||this);a.addEventListener(b,c,!1);this.B.push(a,b,c)};ou.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)}};ou.prototype.ka=function(){return null===this.B};ou.prototype.dispose=function(){this.removeAll();this.B=null};function qu(a,b,c,d){ou.call(this);this.o=this.j=null;this.C=b;this.A=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new nu(a);this.D=this.F=null;pu(this,this.A,["sourceopen","webkitsourceopen"],pa(this.H,d,c));pu(this,this.A,["sourceclose","webkitsourceclose"],this.G)}z(qu,ou);function ru(a,b){a.D=b}function su(a){if(!a.F){var b;b=a.A;b=b.tG?b.j.webkitMediaSourceURL:window.URL.createObjectURL(b);a.F=new ku(b,!0)}return a.F}
qu.prototype.Zf=function(a){tu(this)?this.A.duration=a:this.C=a};function tu(a){return"open"==a.A.readyState}function uu(a){return"closed"==a.A.readyState}function vu(a){return a.j.updating||a.o.updating}function wu(a){return a.j?!!a.j.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}qu.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))};
qu.prototype.G=function(){this.dispose()};function xu(a){if(/opus/.test(a)&&(bi&&!(0<=Ra(ju,"38"))||ts()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!rs("(ps4; leanback shell)"))return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!gu().canPlayType(a)};function yu(a){this.Sb=a}var zu="9h8(H*".split(""),Au="h98H(*".split(""),Bu="oMavAV".split("");yu.prototype.j=function(){return null};yu.prototype.vl=function(){return this.Sb.video.quality};var Cu={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Du={"application/x-mpegURL":"maybe"},Eu={"application/x-mpegURL":"maybe"};
function Fu(a,b){if(!hu())return[];var c=Gu(a,b);a=!c.length&&b?Gu(a,!1):c;for(var d={},c=gu(),e=0;e<a.length;e++){var g=a[e];if(Hu(c,g.Sb.mimeType)&&!Iu(g)){var h=g.vl();d[h]&&2!=d[h].Sb.j||(d[h]=g)}}var k=[];d.auto&&k.push(d.auto);D(Ot,function(a){(g=d[a])&&k.push(g)});return k}function Hu(a,b){var c;if(!(c=a.canPlayType(b))){var d;ps?d=Eu[b]:2.2==Zt?d=Cu[b]:rs("android")&&rs("chrome")&&(d=Du[b]);c=d||""}return c}function Iu(a){return Ju(a.Sb)in Ku||qs()&&"5"==Ju(a.Sb)}
function Lu(){var a=rs("android")&&rs("chrome")&&!(0<=Ra(ju,29)),b=rs("google tv")&&rs("chrome")&&!(0<=Ra(ju,30));return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var Ku={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function Gu(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];ed&&0!=e.Sb.video.j&&1==e.Sb.j||0!=e.Sb.video.j==b&&c.push(e)}return c}
function Mu(a,b){if(!b.j)return a[0];for(var c=0;c<a.length;c++){var d=a[c].Sb,e=Nt[d.video.quality];if((!b.A||"auto"!=d.video.quality)&&e<=b.j)return a[c]}return a[a.length-1]}
function Nu(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.j){var g=a.j[e];if(xu(g.info.mimeType)){if(g.info.B){d||(d=gu());if(!Gt(d,g.info.mimeType,g.info.B))continue;if(261==Ju(g.info)&&(qs()||!d.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))continue}c[g.info.A]=c[g.info.A]||[];c[g.info.A].push(g.info)}}a=zu;if(rs("cros armv7")||rs("windows nt 5.1"))a=Au;d=F(a,b);a=F(Bu,b);if(!d||!a)return null;"9"==d&&c.h&&(e=function(a,b){return Math.max(a,b.video.height)},g=fb(c["9"],
e,0),fb(c.h,e,0)>1.5*g&&(d="h"));d=c[d];a=c[a];zb(d,function(a,b){return b.video.width-a.video.width||b.ya-a.ya});zb(a,function(a,b){return b.ya-a.ya});return new Wt(d,a)};var Ou={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 Pu(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}Pu.prototype.cancel=function(a){if(this.j)this.A instanceof Pu&&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||Qu(this,new Ru)}};Pu.prototype.I=function(a,b){this.F=!1;Su(this,a,b)};function Su(a,b,c){a.j=!0;a.A=c;a.B=!b;Tu(a)}
function Uu(a){if(a.j){if(!a.H)throw new Vu;a.H=!1}}function Qu(a,b){Uu(a);Su(a,!1,b)}function Wu(a,b,c){Xu(a,b,null,c)}function Xu(a,b,c,d){a.C.push([b,c,d]);a.j&&Tu(a)}Pu.prototype.then=function(a,b,c){var d,e,g=new gn(function(a,b){d=a;e=b});Xu(this,d,function(a){a instanceof Ru?g.cancel():e(a)});return g.then(a,b,c)};en(Pu);function Yu(a){return gb(a.C,function(a){return ha(a[1])})}
function Tu(a){if(a.D&&a.j&&Yu(a)){var b=a.D,c=Zu[b];c&&(m.clearTimeout(c.Ba),delete Zu[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);fn(b)&&(d=!0,a.F=!0)}catch(l){b=l,a.B=!0,Yu(a)||(c=!0)}}a.A=b;d&&(k=x(a.I,a,!0),d=x(a.I,a,!1),b instanceof Pu?(Xu(b,k,d),b.O=!0):b.then(k,d));c&&(b=new $u(b),Zu[b.Ba]=b,a.D=b.Ba)}
function Vu(){ra.call(this)}z(Vu,ra);Vu.prototype.message="Deferred has already fired";Vu.prototype.name="AlreadyCalledError";function Ru(){ra.call(this)}z(Ru,ra);Ru.prototype.message="Deferred was canceled";Ru.prototype.name="CanceledError";function $u(a){this.Ba=m.setTimeout(x(this.o,this),0);this.j=a}$u.prototype.o=function(){delete Zu[this.Ba];throw this.j;};var Zu={};function av(a,b){var c=b||{},d=c.document||document,e=Rd("SCRIPT"),g={Jr:e,zb:void 0},h=new Pu(bv,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){cv(e,!0);Qu(h,new dv(1,"Timeout reached for loading script "+a))},l),g.zb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(cv(e,c.sw||!1,k),Uu(h),Su(h,!0,null))};e.onerror=function(){cv(e,!0,k);Qu(h,new dv(0,"Error while loading script "+a))};Id(e,{type:"text/javascript",
charset:"UTF-8",src:a});ev(d).appendChild(e);return h}function ev(a){var b=a.getElementsByTagName("HEAD");return!b||lb(b)?a.documentElement:b[0]}function bv(){if(this&&this.Jr){var a=this.Jr;a&&"SCRIPT"==a.tagName&&cv(a,!0,this.zb)}}function cv(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 dv(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ra.call(this,c);this.code=a}z(dv,ra);function fv(a,b){this.o=new J(a);this.j=b?b:"callback";this.zb=5E3}var gv=0;fv.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(gv++).toString(36)+y().toString(36);m._callbacks_||(m._callbacks_={});var e=this.o.clone();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||rf(e,g,a[g]);b&&(m._callbacks_[d]=hv(d,b),rf(e,this.j,"_callbacks_."+d));b=av(e.toString(),{timeout:this.zb,sw:!0});Xu(b,null,iv(d,a,c),void 0);return{Ba:d,Lo:b}};
fv.prototype.cancel=function(a){a&&(a.Lo&&a.Lo.cancel(),a.Ba&&jv(a.Ba,!1))};function iv(a,b,c){return function(){jv(a,!1);c&&c(b)}}function hv(a,b){return function(c){jv(a,!0);b.apply(void 0,arguments)}}function jv(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=v)};function kv(a,b){S.call(this);this.B=b+"feeds/api/users/live/broadcasts/"+a+"/states?v=2&alt=json-in-script";this.j=new xn(15E3+Math.floor(3E4*Math.random()));Bm(this.j,"tick",x(this.o,this));this.o();this.j.start()}z(kv,S);kv.prototype.P=function(){this.j.dispose();kv.K.P.call(this)};kv.prototype.o=function(){(new fv(this.B)).send(null,x(this.A,this),x(this.C,this))};kv.prototype.A=function(a){this.L("payload",a);yn(this.j,15E3+Math.floor(3E4*Math.random()))};
kv.prototype.C=function(){this.L("error");var a=this.j.j;192E4>a&&yn(this.j,2*a)};function lv(a){Q.call(this);this.j={};this.A={};this.B={};this.o=mv(this,a)}z(lv,Q);function mv(a,b,c){var d=0,e=Rd(b[d++]);if(w(b[d])||ea(b[d])||null===b[d]){var g=b[d++];ea(g)&&(g=g.join(" "));if(g=nv(a,e,"className",g))ov(a,e,"className",g),pv(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ea(h))mv(a,h,e);else if(ja(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&ov(g,k,l,nv(g,k,l,h[l]))}else w(h)&&(g=nv(a,e,"child",h),null!=g&&e.appendChild(Sd(g)))}c&&c.appendChild(e);return e}f=lv.prototype;f.Q=function(){return this.o};
function pv(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)pv(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 nv(a,b,c,d){return w(d)&&"{{"==d.substr(0,2)?(a.A[d]=[b,c],null):d}f.update=function(a){for(var b in a)qv(this,b,a[b])};function qv(a,b,c){if(c!=a.B[b]){var d=a.A["{{"+b+"}}"];d&&(a.B[b]=c,ov(a,d[0],d[1],c))}}function rv(a){return ea(a)&&w(a[0])}
function ov(a,b,c,d){if("child"==c){Vd(b);if(!ea(d)||rv(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ga(g)||w(g)||ja(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?rv(g)?c.push(mv(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;lv.K.P.call(this)};function sv(a,b){a&&(a.style.display=b)}function tv(a,b){var c=Bh("requestAnimationFrame",window);return L(function(){c?c.call(window,a):a()},b||0)};function Y(a){Q.call(this);this.template=new lv(a);R(this,this.template);this.element=this.template.Q();this.ca="block";this.D=!0;this.ob=[]}z(Y,Q);f=Y.prototype;f.Q=function(){return this.element};f.ea=function(a,b){this.template.ea(a,b)};f.detach=function(){this.template.detach()};f.za=function(a,b){qv(this.template,b||"content",a)};f.va=function(){sv(this.element,this.ca);this.D=!0;this.element.removeAttribute("aria-hidden")};
f.$=function(){sv(this.element,"none");this.D=!1;this.element.setAttribute("aria-hidden","true")};function uv(a,b){a.element.setAttribute("role",b)}f.kb=function(a){this.element.setAttribute("aria-label",a)};f.$b=function(a){Rh(this.element,a)};f.M=function(a,b,c){return vv(this,this.element,a,b,c)};function vv(a,b,c,d,e,g){b=P(b,c,x(d,e||a),g);a.ob.push(b);return b}f.Ia=function(a){Mh(a)};f.P=function(){this.Ia(this.ob);delete this.element;Y.K.P.call(this)};function wv(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 xv(a){return Math.round(1E3*a)/10}function yv(a){return(!ga(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};var zv={zJ:"html5-stop-propagation",CI:"ytp-no-controls",bI:"html5-live-dvr-disabled",cI:"html5-live-dvr-engaged",dI:"html5-live-playback",WH:"ytp-iv-drawer-enabled",XH:"ytp-iv-drawer-open",oI:"html5-mobile",rI:"modest-branding",yI:"html5-native-controls",EJ:"html5-tablet",DJ:"html5-tablet-body",jI:"html5-main-video",aK:"html5-video-container",bK:"html5-video-content",cK:"html5-video-controls",dK:"ytp-fallback",eK:"ytp-fallback-content",gK:"html5-video-loader",nK:"html5-watermark",QG:"html5-branded-watermark",
fH:"html5-context-menu",Cu:"html5-context-menu-copy-debug-info",Du:"html5-context-menu-copy-embed-html",Eu:"html5-context-menu-copy-video-url",Fu:"html5-context-menu-copy-video-url-at-current-time",Gu:"html5-context-menu-link",Hu:"html5-context-menu-report-playback-issue",Iu:"html5-context-menu-show-video-info",gH:"html5-show-video-info-template",pI:"html5-modal-panel",NH:"ideal-aspect",AH:"autohide-controls",CH:"autohide-controls-aspect",BH:"autohide-controls-fullscreen",mI:"autominimize-progress-bar",
nI:"autominimize-progress-bar-non-aspect",DH:"hide-info-bar",EH:"html5-hide-share",FH:"html5-hide-volume",JJ:"ytp-tiny-mode",jK:"video-thumbnail",RI:"ytp-dialog",HG:"html5-async-progress",IG:"html5-async-success",GG:"html5-async-error",$G:"html5-center-overlay",gJ:"ytp-scalable-icon-shrink",fJ:"ytp-scalable-icon-grow",KH:"house-brand",kJ:"sentiment-like",jJ:"sentiment-dislike"};function Av(){Y.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}z(Av,Y);
Av.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 Bv(a){var b=Math.floor(y()/1E3);return b>a?Zf("YTP_FRESCA_STARTING_SOON_MESSAGE"):wv(a-b)}
Av.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:Bv(this.j.startTime)}),M(this.o),this.o=L(x(this.A,this),1E3))};Av.prototype.P=function(){M(this.o);Av.K.P.call(this)};function Cv(a){this.messageText=[];this.j=!1;a&&Dv(this,a)}Cv.prototype.state=-1;function Ev(a){return{imageUrl:a.imageUrl,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function Dv(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=Ou[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<=ib(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}Cv.prototype.getMessage=function(){return this.messageText.length?this.messageText:Fv(this)};
function Fv(a){switch(a.state){case 6:return a.j?[]:[Zf("YTP_FRESCA_STAND_BY_MESSAGE"),Zf("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[Zf("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[Zf("YTP_FRESCA_EVENT_OVER_MESSAGE"),Zf("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[Zf("YTP_FRESCA_STAND_BY_MESSAGE")]}};function Gv(a){at.call(this,a);Yf({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."})}z(Gv,at);f=Gv.prototype;f.xa="fresca";f.Cc="fresca";
f.oj=!1;f.gh=!1;f.Ha=function(){return Hv(this.j.getVideoData(),"fresca_module")};
f.Na=function(a){Gv.K.Na.call(this);Hu(gu(),"application/x-mpegURL")||Lu()?(this.oj=this.gh=!1,lt(this,["play_pause","seek"]),this.A=new Av,Zr(this.j,this.A.Q()),this.B=a||new kv(this.j.getVideoData().videoId,this.j.W().Lh),this.B.subscribe("payload",this.nB,this),this.B.subscribe("error",this.mB,this),this.subscribe("onStateChange",this.lt,this)):Iv(this.j.T.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
f.destroy=function(){this.qa("onStateChange",this.lt,this);Ei(this.B,this.A);Gv.K.destroy.call(this)};f.lt=function(a){this.o&&(this.oj=X(a.state,2),(Jv(a,16)||this.oj)&&Kv(this,this.o))};f.mB=function(){this.gh||(Lv(this,new Cv),Kv(this,this.o))};f.nB=function(a){Lv(this,new Cv(a));a=this.j.getVideoData();6!=this.o.state||a.aa||a.R?Kv(this,this.o):this.j.Gn(a.videoId)};
function Kv(a,b){var c=6>b.state;!c&&a.j.T.o.pa&&(b.imageUrl||b.messageText.length)&&(c=!0);a.oj&&!a.j.W().Aa&&(c=!0);b.j||(c=!0);if(!a.gh)switch(b.state){case 6:b.j&&(a.gh=!0,mt(a,["play_pause","seek"]),et(a));break;case 8:case 7:c=a.gh=!0}c&&a.A.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function Mv(a){return Hv(a.getVideoData(),"fresca_module")?new Gv(a):null}function Lv(a,b){a.o!=b&&(a.o=b,a.j.W().Hb()&&a.L("publish_external_event","onFrescaStateChange",Ev(a.o)))};function Nv(a){this.zn=a||window;this.hg=[]}f=Nv.prototype;f.zn=null;f.hg=null;f.M=function(a,b,c,d){c=x(c,d||this.zn);a=P(a,b,c);this.hg.push(a);return a};function Ov(a,b,c,d,e,g){d=x(d,g||a.zn);b=Nh(b,c,d,e);a.hg.push(b)}f.Ia=function(a){Mh(a);ob(this.hg,a)};f.removeAll=function(){Mh(this.hg);this.hg=[]};function Pv(a,b,c){Q.call(this);this.j=a;this.B=b||0;this.o=c;this.A=x(this.Tw,this)}z(Pv,Q);f=Pv.prototype;f.Ba=0;f.P=function(){Pv.K.P.call(this);this.stop();delete this.j;delete this.o};f.start=function(a){this.stop();this.Ba=zn(this.A,n(a)?a:this.B)};f.stop=function(){this.isActive()&&An(this.Ba);this.Ba=0};f.isActive=function(){return 0!=this.Ba};f.Tw=function(){this.Ba=0;this.j&&this.j.call(this.o)};function Qv(a,b){T.call(this);this.j=a;var c=ae(this.j)?this.j:this.j?this.j.body:null;c&&gh(c);this.o=Bm(this.j,ed?"DOMMouseScroll":"mousewheel",this,b)}z(Qv,T);
Qv.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.j;if("mousewheel"==a.type){c=1;if(dd||fd&&(id||rd("532.0")))c=40;d=Rv(-a.wheelDelta,c);n(a.wheelDeltaX)?(b=Rv(-a.wheelDeltaX,c),c=Rv(-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 Sv(d,a);this.X(b)};function Rv(a,b){return fd&&(hd||jd)&&0!=a%b?a:a/b}
Qv.prototype.P=function(){Qv.K.P.call(this);Km(this.o);this.o=null};function Sv(a,b){om.call(this,b);this.type="mousewheel";this.detail=a}z(Sv,om);var Tv={},Uv=null;function Vv(a){a=ka(a);delete Tv[a];Ub(Tv)&&Uv&&Uv.stop()}function Wv(){Uv||(Uv=new Pv(function(){Xv()},20));var a=Uv;a.isActive()||a.start()}function Xv(){var a=y();Hb(Tv,function(b){Yv(b,a)});Ub(Tv)||Wv()};function Zv(){T.call(this);this.j=0;this.endTime=this.startTime=null}z(Zv,T);f=Zv.prototype;f.yb=function(){return 1==this.j};f.ej=function(){this.qc("begin")};f.Xg=function(){this.qc("end")};f.xc=function(){this.qc("finish")};f.qc=function(a){this.X(a)};function $v(a,b,c,d){Zv.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}z($v,Zv);f=$v.prototype;
f.play=function(a){if(a||0==this.j)this.o=0,this.A=this.B;else if(this.yb())return!1;Vv(this);this.startTime=a=y();-1==this.j&&(this.startTime-=this.duration*this.o);this.endTime=this.startTime+this.duration;this.D=this.startTime;this.o||this.ej();this.qc("play");-1==this.j&&this.qc("resume");this.j=1;var b=ka(this);b in Tv||(Tv[b]=this);Wv();Yv(this,a);return!0};f.stop=function(a){Vv(this);this.j=0;a&&(this.o=1);aw(this,this.o);this.qc("stop");this.Xg()};
f.pause=function(){this.yb()&&(Vv(this),this.j=-1,this.qc("pause"))};f.P=function(){0==this.j||this.stop(!1);this.qc("destroy");$v.K.P.call(this)};f.destroy=function(){this.dispose()};function Yv(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;aw(a,a.o);1==a.o?(a.j=0,Vv(a),a.xc(),a.Xg()):a.yb()&&a.zm()}function aw(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.zm=function(){this.qc("animate")};
f.qc=function(a){this.X(new bw(a,this))};function bw(a,b){jm.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}z(bw,jm);function cw(a){return Math.pow(a,3)}function dw(a){return 3*a*a-2*a*a*a};function ew(a){return ea(a)&&a.length?a[0]:a}function fw(a){var b=/.+/;return w(a)&&null!=b&&null!=a&&a.match(b)?a:""}function gw(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 hw(a){return w(a)?a:""}function iw(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function jw(a,b){return"true"==a||"false"==a?"true"==a:b}function kw(a,b){return w(a)?parseFloat(a):b}
function lw(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 mw(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 nw(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 ow(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new yg(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 pw(a){function b(a){return eb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function qw(a,b,c){this.value=a;this.target=b;this.showLinkIcon=c}var rw={jH:"current",AI:"new"};function sw(a){if(!a)return null;var b=hw(a.value);if(!b||null==zj(b))return null;var c=iw(a.target,rw,"current");return null==c?null:new qw(b,c,jw(a.show_link_icon,!0))};function tw(a){if(!a)return!1;var b=uw(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function vw(a){if(!a)return!1;a=uw(a);return"com"==a[0]&&"google"==a[1]&&"plus"==a[2]}function uw(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function ww(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=!tw(c))||(d=Me(Ie(c)[5]||null)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=zj(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=xj(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 xw(a,b,c,d){a=a.value?a.value:null;if(!a)return null;if(tw(a)){var e={feature:"iv",src_vid:c,annotation_id:b},g=zj(a);Hb(e,function(a,b){b in g&&Wb(e,b)});return Cj(a,e)}return vw(a)&&d?yw(a,pa(zw,d.pageId,d.mb)):a}function yw(a,b){var c=new J(a);df(c,b(c.Lb));return c.toString()}function zw(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 Aw(a){return a.target?"new"==a.target?"_blank":"_top":tw(a.value?a.value:null)?"_top":"_blank"};function Bw(a,b){this.A=a;this.o=b;this.j={}}function Cw(a,b,c,d){if(b){var e=Dw(a,b);a.j[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;ac(e,c||{});b=sb(d||[]);30==e["a-type"]&&(c=Ew(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);Fw(a,e,b)}}function Gw(a,b,c,d,e){if(b){var g=Dw(a,b);g["iv-event"]=3;g["i-time"]=a.j[b]||"";ac(g,d||{});b=sb(e||[]);30==g["a-type"]&&(d=Ew(a,g["a-id"],"cta_annotation_clicked"))&&b.push(d);Fw(a,g,b,c)}}
function Hw(a,b){if(b){var c=Dw(a,b);c["iv-event"]=4;c["i-time"]=a.j[b]||"";ac(c,{});var d=sb([]);if(30==c["a-type"]){var e=Ew(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}Fw(a,c,d)}}function Ew(a,b,c){a=a.o.getVideoData();if(a.Zc){if((c=a.Zc[c])&&-1!=c.search(Jf))return a=wa("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.na)return Cj(a.na,{label:c,value:"a_id="+b});return""}
function Fw(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++;og(a,g)});a.Pa(b,g)}function Dw(a,b){var c={};if(b){var d=new gf(b);D(d.La(),function(a){c[a]=escape(d.get(a,""))})}c["p-time"]=a.o.getCurrentTime().toFixed(2);c.ps=a.o.W().j;return c}function Iw(a,b,c){var d=Dw(a);d["iv-event"]=b;d["a-id"]="card:drawer";d["a-type"]=51;Fw(a,d,c)}
function Jw(a,b,c,d,e){c&&(c=Dw(a,c),c["iv-event"]=b,ac(c,d||{}),Fw(a,c,e))}Bw.prototype.Pa=function(a,b){this.A.L("command_log","iv",a,b)};function Kw(a,b){this.N=a;this.context=b;this.pn=!1;this.F=0}function Lw(a,b,c,d,e,g){b=new Qs(b,c,{id:d});b.namespace="iv-module";e&&b.Xa.subscribe("onEnter",e,a);g&&b.Xa.subscribe("onExit",g,a);a.context.Xa.L("command_add_cuerange",[b],a.context.o.getPlayerType())}f=Kw.prototype;f.Gj=function(){this.context.Xa.subscribe("onResize",this.Tk,this)};f.Q=function(){return this.N};
f.Hj=function(a,b,c,d,e){Ov(this.context.j,a,"click",pa(this.Re,a,b,c,d,e||[]),"iv-click-target",this);Ov(this.context.j,a,"touchend",pa(this.Re,a,b,c,d,e||[]),"iv-click-target",this);Ov(this.context.j,a,"touchstart",pa(function(){this.pn=!1}),"iv-click-target",this);Ov(this.context.j,a,"touchmove",pa(function(){this.pn=!0}),"iv-click-target",this)};
f.Re=function(a,b,c,d,e,g){if(this.pn)return!0;g.stopPropagation();g.preventDefault();var h=xw(b,c,this.context.A.videoId);a=x(function(){this.context.o.pauseVideo();window.open(h,Aw(b))},this);tw(b.value?b.value:null)&&"new"!=b.target||(a(),a=null);c={};c.interval=y()-this.F;Gw(this.context.logger,d,a,c,e);return!1};f.Ch=function(){this.F=y()};f.$=function(){};f.destroy=function(){Wd(this.Q())};f.Tk=function(){};var Mw=16/9,Nw=4/3,Ow=[.25,.5,1,1.25,1.5,2];function Pw(a,b){ea(b)||(b=[b]);var c=E(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.Mo+"s"});Qw(a,c.join(","))}
var Rw=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(dd)return rd("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 oc)g=qc(g);else if("style"==h.toLowerCase()){if(!ja(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof sc)){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 oc)p=qc(p);else if(xc.test(p)){for(var r=!0,u=!0,C=0;C<p.length;C++){var V=p.charAt(C);"'"==V&&
u?r=!r:'"'==V&&r&&(u=!u)}r&&u||(p="zClosurez")}else p="zClosurez";k+=l+":"+p+";"}}g=k?vc(k):wc}g=uc(g)}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.Oe&&(g=g.Fe());
h=h+'="'+ya(String(g))+'"';d=d+(" "+h)}}e=void 0;n(e)?ea(e)||(e=[e]):e=[];!0===ec.div?d+=">":(c=Nc(e),d+=">"+Jc(c)+"</div>",c=c.Af());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Oc(d,c);a.innerHTML=Jc(b);return""!=Lg(a.firstChild,"transition")});function Qw(a,b){Ig(a,"transition",b)};function Sw(a,b){(a=Ed(a))&&a.style&&(fh(a,b),O(a,"hid",!b))}function Tw(a){return(a=Ed(a))?!("none"==a.style.display||rh(a,"hid")):!1}function Uw(a){D(arguments,function(a){Sw(a,!0)})}function Vw(a){D(arguments,function(a){Sw(a,!1)})};function Ww(){return!!t("yt.scheduler.instance")}function Xw(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 Yw(a,b){return Xw(a,b)}function Zw(a){var b=t("yt.scheduler.instance.cancelJob");b?b(a):M(a)}function $w(){var a=t("yt.scheduler.instance.start");a&&(M(ax),a())}var ax=0;function bx(){var a=t("yt.scheduler.instance.pause");a&&(a(),M(ax),ax=L($w,800))};function cx(a,b){this.version=a;this.args=b}function dx(a){if(!a.fe){var b={};a.call(b);a.fe=b.version}return a.fe}
function ex(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=dx(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;}}cx.prototype.F=function(){return{version:this.version,args:this.args}};
function fx(a,b){this.o=a;this.j=b}fx.prototype.toString=function(){return this.o};var gx=t("yt.pubsub2.instance_")||new Fi;Fi.prototype.subscribe=Fi.prototype.subscribe;Fi.prototype.unsubscribeByKey=Fi.prototype.Pb;Fi.prototype.publish=Fi.prototype.L;Fi.prototype.clear=Fi.prototype.clear;q("yt.pubsub2.instance_",gx,void 0);var hx=t("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",hx,void 0);var ix=t("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",ix,void 0);var jx=t("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",jx,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);
function kx(a,b){var c=lx,d=mx();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(hx[e])try{if(h&&c instanceof fx&&c!=d)try{h=ex(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){Xf(p)}};jx[c.toString()]?Ww()?Xw(k,void 0):L(k,0):k()}});hx[e]=!0;ix[c.toString()]||(ix[c.toString()]=[]);ix[c.toString()].push(e);return e}
function nx(a,b){var c=kx(function(d){a.apply(b,arguments);ox(c)},b);return c}function ox(a){var b=mx();b&&(ga(a)&&(a=[a]),D(a,function(a){b.unsubscribeByKey(a);delete hx[a]}))}function mx(){return t("yt.pubsub2.instance_")};var px={},qx="ontouchstart"in document;function rx(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 rh(a,b)},!0,d)}
function sx(a){var b="mouseover"==a.type&&"mouseenter"in px||"mouseout"==a.type&&"mouseleave"in px,c=a.type in px||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=px[b],d;for(d in c.oc){var e=rx(b,d,a.target);e&&!oe(a.relatedTarget,function(a){return a==e},!0)&&c.L(d,e,b,a)}}if(b=px[a.type])for(d in b.oc)(e=rx(a.type,d,a.target))&&b.L(d,e,a.type,a)}}P(document,"blur",sx,!0);P(document,"change",sx,!0);P(document,"click",sx);P(document,"focus",sx,!0);
P(document,"mouseover",sx);P(document,"mouseout",sx);P(document,"mousedown",sx);P(document,"keydown",sx);P(document,"keyup",sx);P(document,"keypress",sx);P(document,"cut",sx);P(document,"paste",sx);qx&&(P(document,"touchstart",sx),P(document,"touchend",sx),P(document,"touchcancel",sx));function tx(){this.B={};this.Km=[]}function ux(a,b){return"yt-uix"+(a.pi?"-"+a.pi:"")+(b?"-"+b:"")}tx.prototype.init=v;tx.prototype.dispose=v;function vx(a,b,c){var d=ux(a,void 0),e=x(c,a);b in px||(px[b]=new Fi);px[b].subscribe(d,e);a.B[c]=e}tx.prototype.o=function(a,b,c){var d=zi(a,b);if(d&&(d=t(d))){var e=vb(arguments,2);ub(e,0,0,a);d.apply(null,e)}};function wx(a,b){xi(a,"tooltip-text",b)}tx.prototype.removeData=function(a,b){a&&(a.dataset?delete a.dataset[yi(b)]:a.removeAttribute("data-"+b))};function xx(){tx.call(this);this.j={}}z(xx,tx);ba(xx);f=xx.prototype;f.pi="scroller";f.register=function(){vx(this,"mouseenter",this.uz);vx(this,"mouseleave",this.oq)};f.dispose=function(){for(var a in this.j)this.oq(this.j[a]);this.j={}};f.uz=function(a){var b=P(a,"mousewheel",x(this.Ex,this,a));xi(a,"scroller-mousewheel-listener",b);b=P(a,"scroll",x(this.Xx,this,a));xi(a,"scroller-scroll-listener",b);a&&(b=ka(a).toString(),this.j[b]=a)};
f.oq=function(a){var b=zi(a,"scroller-mousewheel-listener")||"";xi(a,"scroller-mousewheel-listener","");var c=zi(a,"scroller-scroll-listener")||"";xi(a,"scroller-scroll-listener","");Mh(b);Mh(c);xi(a,"scroller-scroll-listener","");a&&(a=ka(a).toString(),delete this.j[a])};f.Ex=function(a,b){b.preventDefault();b.wheelDeltaY&&(a.scrollTop=a.scrollTop+b.wheelDeltaY);Oi("yt-dom-content-change",a)};f.Xx=function(a){this.o(a,"scroll-action")};var yx=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};q("yt.uix.widgets_",yx,void 0);function zx(a){a=a.getInstance();var b=ux(a);b in yx||(a.register(),a.Km.push(Li("yt-uix-init-"+b,a.init,a)),a.Km.push(Li("yt-uix-dispose-"+b,a.dispose,a)),yx[b]=a)};function Ax(a,b,c){this.id=a;this.type=b.card_type;this.B=b.teaser_text||b.title;this.teaserDurationMs=b.teaser_duration_ms||5E3;this.startMs=b.start_ms;this.endMs=b.end_ms;this.qb=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.j={Wy:a.impression,click:a.click,close:a.close,dD:a.teaser_impression,cs:a.teaser_click}};function Bx(a,b,c){Ax.call(this,a,b,c);this.A=b.custom_message;this.C=b.image_url;this.title=b.title;this.o=b.meta_info;this.url=sw({target:b.target||"new",value:b.url})}z(Bx,Ax);function Cx(a,b,c){this.j=a;this.C=b;this.o=c}function Dx(a,b){var c=Ex(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.C+");"},["h2","",["a",{href:c},b.title]],Fx(b)]]],c=new Y(c),d=c.Q();Gx(a,d,b);return c}
function Hx(a,b){var c=Ex(a,b.url,b.id),c=["article","iv-card-playlist",["div",["iv-card-image","iv-click-target"],["img",{src:b.A,alt:""}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",Zf("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],Fx(b)]],c=new Y(c),d=c.Q();Gx(a,d,b);return c}
function Ix(a,b){var c=["ul","yt-uix-form-list-option"];tb(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",
Zf("YTP_DRAWER_POLL_SUBMIT")]]]]],c=new Y(c),d=c.Q();Ov(a.j.j,d,"click",pa(a.A,b),"yt-uix-button",a);return c}function Jx(a,b){var c=Ex(a,b.url,b.id),c=Kx(b,c),c=new Y(c),d=c.Q();Gx(a,d,b);return c}function Lx(a,b){var c=Ex(a,b.url,b.id),c=Kx(b,c),c=new Y(c),d=c.Q();Ov(a.j.j,d,"click",pa(a.B,b),"iv-click-target",a);return c}
function Mx(a,b){var c=Ex(a,b.url,b.id),c=["article","iv-card-video",["div",["iv-card-image","iv-click-target"],["img",{src:b.A,alt:""}],["span","iv-card-video-duration",b.videoDuration]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],Fx(b)]],c=new Y(c),d=c.Q();Gx(a,d,b);return c}function Fx(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 Kx(a,b){var c=a.displayDomain?["a",{href:b},a.displayDomain]:"",d=["iv-card-action"],e={href:b},g=["span","",a.F];a.o&&(d.push("iv-card-action-icon"),e.style="background-image: url("+a.o+");");d=["a",d,e,g];a.showLinkIcon&&(d.push("\u00a0"),d.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],d]]}
Cx.prototype.A=function(a,b){b.stopPropagation();b.preventDefault();var c=a.id,d;i:{var e=b.currentTarget.form.elements.radio;if(e){if(e.type){d=tj(e);break i}for(d=0;d<e.length;d++){var g=tj(e[d]);if(g){d=g;break i}}}d=null}e=this.j.A.ci;c={eg:{action_poll_vote:1},Ib:{poll_id:c,index:d},method:"POST"};c.Ib||(c.Ib={});Kj(e,c)};
Cx.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.Sg()&&Nx(this.j.o.T),Gw(this.j.logger,a.qb,a.j.click),c(a.D,a.C,a.A)):this.o(b.target,a.url,a.id,a.qb,a.j.click,b)};function Ex(a,b,c){return b?xw(b,c,a.j.A.videoId,a.j.fa):null}function Gx(a,b,c){a.C(b,c.url,c.id,c.qb,c.j.click)};function Ox(a,b,c){Ax.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=sw({target:b.target||"new",value:b.url})}z(Ox,Ax);function Px(a,b,c){Ax.call(this,a,b,c);this.imageUrl=b.image_url;this.title=b.title;this.options=b.options}z(Px,Ax);function Qx(a,b,c){Ax.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.F=b.custom_message;this.url=sw({target:b.target||"new",value:b.url})}z(Qx,Ax);function Rx(a,b,c){Qx.call(this,a,b,c);this.D=b.ypc_item_type;this.C=b.ypc_item_id;this.A=b.ypc_flow_type}z(Rx,Qx);function Sx(a,b,c){Ax.call(this,a,b,c);this.A=b.image_url;this.videoDuration=b.video_duration;this.title=b.title;this.o=b.meta_info;this.url=sw({target:b.target||"new",value:b.url})}z(Sx,Ax);function Tx(a,b){Kw.call(this,a,b);this.qm=this.j=this.H=this.J=!1;this.Rk=new Pv(v,b.fa.ad?4E3:3E3);this.C=new Cx(b,x(this.Hj,this),x(this.Re,this));var c=["div","iv-drawer",["div","iv-drawer-header",Zf("YTP_DRAWER_HEADER_TEXT"),["button","iv-drawer-close-button"]],["div",["iv-drawer-content","yt-uix-scroller"]]];this.G=(new Y(c)).Q();this.Ld=Hd("iv-drawer-content",this.G);this.A=(new Y(["div","iv-drawer-teaser",["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button","",["span"]]])).Q();
this.D=Hd("iv-drawer-teaser-text",this.A);this.Mc=null;this.B=[];this.I=this.o=null;b.fa.experiments.Yy&&Lw(this,1E3*b.A.lengthSeconds-5E3,2147483647,"",pa(this.vr,null))}z(Tx,Kw);var Ux={associated:Qx,channel:Bx,collaborator:Bx,fundraising:Qx,merch:Qx,playlist:Ox,poll:Px,product:Qx,tip:Rx,video:Sx};function Vx(a){a=a.Q();a=ne(a,"ytp-iv-player-content");if(!a)return!1;a=ah(a);return 177<a.width&&177<a.height}
function Wx(a){var b=["html5-stop-propagation","iv-drawer-manager"];a.context.fa.experiments.Zy&&b.push("iv-drawer-teaser-style-exp");sh(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.Ro,a);a.context.j.M(b,"touchend",a.Ro,a);b=new Qv(a.Ld);Bm(b,"mousewheel",function(){this.Rk.start()},!1,a);a.context.j.M(a.Ld,"touchend",function(){this.Rk.start()},a);a.context.j.M(a.Ld,"scroll",a.rA,a);zx(xx);a.context.j.M(a.A,"click",a.cD,a);a.context.j.M(a.A,
"mouseover",function(){this.Mc&&this.Mc.stop()},a);a.context.j.M(a.A,"mouseout",function(){this.Mc&&this.Mc.start()},a);a.context.Xa.subscribe("onHideControls",function(){this.qm=!0},a);a.context.Xa.subscribe("onShowControls",function(){this.qm=!1},a)}f=Tx.prototype;
f.add=function(a){this.J||(Wx(this),this.J=!0);var b,c;switch(a.type){case "associated":case "fundraising":case "merch":case "product":b=Jx(this.C,a);break;case "tip":b=Lx(this.C,a);break;case "video":b=Mx(this.C,a);break;case "playlist":b=Hx(this.C,a);break;case "collaborator":case "channel":b=Dx(this.C,a);break;case "poll":b=Ix(this.C,a)}if(b){c=b.Q();c={jd:a,kw:c,bq:!1,cq:!1};var d=xb(this.B,c,function(a,b){return a.jd.startMs-b.jd.startMs});0>d&&(d=-(d+1));ub(this.B,d,0,c);b.ea(this.Ld,d);this.Tk();
b=1E3*this.context.o.getCurrentTime();5E3>b&&b>a.startMs&&this.Qr(c);Lw(this,a.startMs,a.startMs+1,a.id,pa(this.Qr,c))}};f.vp=function(){this.Mc&&(th(this.A,"iv-drawer-teaser-active"),L(x(function(){this.Mc=null},this),330))};f.vr=function(a){a&&a.stopPropagation();this.j||(this.vp(),N(this.Q(),"iv-drawer-open"),this.j=!0,N(this.context.o.Ma(),"ytp-iv-drawer-open"),this.F=y(),Iw(this.context.logger,7),D(this.B,function(a){a.cq||(a.cq=!0,Cw(this.context.logger,a.jd.qb,Xx(this,!0),a.jd.j.Wy))},this))};
f.rA=function(){O(this.Q(),"iv-drawer-scrolled",0<this.Ld.scrollTop)};f.Ro=function(){this.j&&(Iw(this.context.logger,4,Yx(this).j.close),this.j&&(th(this.Q(),"iv-drawer-open"),this.j=!1,th(this.context.o.Ma(),"ytp-iv-drawer-open"),Iw(this.context.logger,10)))};f.cD=function(a){if(!this.j){var b=Xx(this);if(this.o){var c=Yx(this);this.Mc?Jw(this.context.logger,9,c.qb,b,c.j.cs):Jw(this.context.logger,12,c.qb,b,c.j.cs)}else Iw(this.context.logger,12);this.vr(a)}};
f.Qr=function(a){if(!this.Mc){this.o!=a&&(this.o=a,ee(this.D,a.jd.B));var b;if(b=Tw(this.Q()))2==this.context.o.Df()?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.Mc&&!this.j&&this.o){N(this.A,"iv-drawer-teaser-active");b=this.o.jd;this.Mc=new Pv(this.vp,580+b.teaserDurationMs,this);this.Mc.start();var c=Xx(this);Jw(this.context.logger,8,b.qb,c,b.j.dD);this.context.fa.experiments.bm&&
(this.I=ph(this.D))}(!this.j||!this.Rk.isActive()&&this.qm)&&Zx(this,a)}};function Zx(a,b){var c=new $v([0,a.Ld.scrollTop],[0,b.kw.offsetTop],600,dw);a.context.j.M(c,"animate",function(a){this.Ld.scrollTop=a.y},a);a.context.j.M(c,"finish",function(a){this.Ld.scrollTop=a.y},a);c.play()}
f.Tk=function(){var a=Vx(this)&&!!this.B.length;Sw(this.Q(),a);O(this.context.o.Ma(),"ytp-iv-drawer-enabled",a);a&&(this.H||(Iw(this.context.logger,11),this.H=!0),D(this.B,function(a){a.bq||(a.bq=!0,Jw(this.context.logger,11,a.jd.qb))},this));this.context.fa.experiments.bm&&$x(this)};function Yx(a){return a.o&&a.o.jd||a.B[0]&&a.B[0].jd}
function $x(a){var b=a.context.fa.Zj;if(b){var c=360*Mw,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!==ph(a.D)&&Ig(a.D,"font-size",c+"px")}}function Xx(a,b){var c;if(a.context.fa.experiments.bm){c={};var d=b?a.I:ph(a.D);d&&(c["a-fs"]=d)}return c}f.Re=function(a,b,c,d,e,g){var h=Xx(this,!0);h&&"a-fs"in h&&(d+="&a-fs="+h["a-fs"]);return Tx.K.Re.call(this,a,b,c,d,e,g)};var ay=/#(.)(.)(.)/;function by(a){if(!cy.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(ay,"#$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 cy=/^#(?:[0-9a-f]{3}){1,2}$/i;function dy(a,b,c,d,e){$v.call(this,b,c,d,e);this.element=a}z(dy,$v);dy.prototype.C=v;dy.prototype.zm=function(){this.C();dy.K.zm.call(this)};dy.prototype.Xg=function(){this.C();dy.K.Xg.call(this)};dy.prototype.ej=function(){this.C();dy.K.ej.call(this)};function ey(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");dy.apply(this,arguments)}z(ey,dy);
ey.prototype.C=function(){this.element.style.left=Math.round(this.A[0])+"px";this.element.style.top=Math.round(this.A[1])+"px"};function fy(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");dy.apply(this,arguments)}z(fy,dy);fy.prototype.C=function(){this.element.style.width=Math.round(this.A[0])+"px";this.element.style.height=Math.round(this.A[1])+"px"};function gy(a,b,c){Kw.call(this,a,b);this.annotation=c;this.isActive=!1}z(gy,Kw);gy.prototype.Gj=function(){gy.K.Gj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&Lw(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.Ch,this.$)};function hy(a,b,c){gy.call(this,a,b,c);this.j=null;this.A=!1;this.Li=null;this.ud=!1;this.o=0}z(hy,gy);
function iy(a){N(a.Q(),"iv-branding");a.context.fa.experiments.dm||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);Ig(e,"right",a.o+"px");a.Q().appendChild(e);a.Hj(a.Q(),jy(a.annotation),a.annotation.id,a.annotation.qb);a.Li=new Pv(pa(function(a){var b=ah(a.parentElement);(new fy(a.parentElement,[b.width,b.height],[0,0],200,cw)).play();this.ud=!1},d),500,a);Ov(a.context.j,a.Q(),"mouseover",pa(function(a,b,c){this.Li.stop();
if(!this.ud){var d=ah(a);Zg(a,d.width);c=Math.min(d.height,c);var e=Math.round(10);c=this.context.fa.experiments.dm?d.height-Math.max(c/2+e,20):Math.max(c/2-e,0);Og(b,d.width,c);this.ud=!0;b=9;d=ah(a);c=ah(a.parentElement);(new fy(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,cw)).play()}},d,c,b.image_height),"iv-view-target",a);Ov(a.context.j,a.Q(),"mouseout",x(a.Li.start,a.Li),"iv-view-target",a)}
hy.prototype.Ch=function(){if(!this.isActive){hy.K.Ch.call(this);this.A||(iy(this),this.A=!0);Cw(this.context.logger,this.annotation.qb);Uw(this.Q());this.isActive=!0;var a=this.j,b,c=dh(a).width,d=ga(void 0)?void 0:c;b=b||0;Og(a,d);b=new ey(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,cw);Bm(b,"begin",pa(Uw,a));b.play()}};hy.prototype.$=function(){this.isActive&&(Vw(this.Q()),this.isActive=!1)};function ky(a,b,c,d,e,g){this.j=a;this.fa=b;this.A=c;this.logger=d;this.o=e;this.Xa=g};function ly(a){this.value=a};function my(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var ny={CLOSE:"close",II:"openUrl",PAUSE:"pause",Lv:"subscribe"},oy={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",eJ:"rollOut",Gv:"rollOver",Iv:"shown"};function py(a){if(!a)return null;var b=iw(a.type,ny),c=iw(a.trigger,oy),d=sw(ew(a.url));ew(a.subscribeData);(a=ew(a.duration))?(a=mw(a.value),a=new ly(a)):a=null;return b?new my(b,c,d,a):null};function qy(a,b,c,d,e,g,h,k,l,p,r,u,C,V){this.C=a;this.B=b;this.D=c;this.F=d;this.o=e;this.I=g;this.A=h;this.textAlign=k;this.textSize=l;this.G=p;this.H=r;this.effects=u;this.j=C;this.J=V}
function ry(a){if(!a)return null;var b=gw(a.fgColor,"#1A1A1A"),c=gw(a.bgColor,"#FFF"),d=gw(a.borderColor,"#000"),e=lw(a.borderWidth,10,0,5,!1,0),g=lw(a.bgAlpha,10,0,1,!1,.8);lw(a.borderAlpha,10,0,1,!1,.2);lw(a.gloss,16,0,255,!1,0);var h=gw(a.highlightFontColor,"#F2F2F2"),k=lw(a.highlightWidth,10,0,5,!1,3),l=hw(a.textAlign),p=lw(a.textSize,10,3.3,30.1,!0,3.6107),r=hw(a.fontWeight),u=ow(a.padding),C=pw(a.effects),V=lw(a.cornerRadius,10,0,10,!0,0);var U=ew(a.gradient);if(U){a=lw(U.x1,10,0,100,!0,0);
var ia=lw(U.y1,10,0,100,!0,0),Ba=lw(U.x2,10,0,100,!0,100),Le=lw(U.y2,10,0,100,!0,100),bh=gw(U.color1,"#FFF"),Ns=gw(U.color2,"#000"),Vz=lw(U.opacity1,10,0,100,!0,100),U=lw(U.opacity2,10,0,100,!0,0);a=new sy(a,ia,Ba,Le,bh,Ns,Vz,U)}else a=null;return new qy(b,c,d,e,g,h,k,l,p,r,u,C,V,a)}function sy(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 ty(a,b){this.j=a;this.videoId=b};var uy={rK:"xx",sK:"xy",vK:"yx",wK:"yy"};function vy(a,b,c){var d=a.G,e=a.H,g=a.j?a.j:"xy",h=wy(c,a.C,g);a=xy(c,a.A,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new zg(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 wy(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function xy(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function yy(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 zy(a,b){if(!a)return null;var c=kw(a.x,0),d=kw(a.y,0),e=kw(a.w,0),g=kw(a.h,0),h=mw(a.t),k=kw(a.scaleSlope,1);return b(c,d,e,g,h,kw(a.d,0),kw(a.px,0),kw(a.py,0),kw(a.scaleSlopeX,k),kw(a.scaleSlopeY,k),iw(a.scaleDimension,uy,"xy"))}
function Ay(a,b,c){c=c?Ay(c,b):null;a=vy(a,new zg(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 By(a){return a?zy(a,function(a,c,d,e,g,h,k,l,p,r,u){return new yy(a,c,d,e,g,h,k,l,p,r,u)}):null};function Cy(a,b,c,d,e,g,h,k,l,p,r,u,C){yy.call(this,a,b,c,d,e,k,l,p,r,u,C);this.I=g;this.J=h}z(Cy,yy);function Dy(a){if(!a)return null;var b=kw(a.sx,0),c=kw(a.sy,0);return zy(a,function(a,e,g,h,k,l,p,r,u,C,V){return new Cy(a,e,g,h,k,b,c,l,p,r,u,C,V)})};function Ey(a,b,c,d){this.type=a;this.o=b;this.j=c;this.A=d}var Fy={qu:"anchored",ZI:"rect",mJ:"shapeless"};function Gy(a){if(!a)return null;var b=iw(a.type,Fy,"rect"),c=nw(a.rectRegion,By),d=nw(a.anchoredRegion,Dy);a=nw(a.shapelessRegion,By);return new Ey(b,c,d,a)}function Hy(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 Iy(a,b){this.o=a;this.j=b};function Jy(a,b){this.state=a;this.j=b}var Ky={CLOSED:"closed",MI:"playerControlShow",Gv:"rollOver",Iv:"shown"};function Ly(a){if(!a)return null;var b=iw(a.state,Ky);a=fw(a.ref);return b?new Jy(b,a):null};function My(a,b,c,d){this.j=a||[];this.A=b||[];this.B=c;this.o=d;this.value=!1}function Ny(a){if(!a)return null;var b=nw(a.condition,Ly),c=nw(a.notCondition,Ly),d=jw(a.show_delay,!1);a=jw(a.hide_delay,!1);return b||c?new My(b,c,d,a):null}function Oy(a,b,c){D(a.j,pa(b,!1),c);D(a.A,pa(b,!0),c)};function Py(a,b,c,d,e,g,h,k,l,p,r,u,C,V,U,ia){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=V;this.data=U;this.qb=ia}
var Qy={qu:"anchored",vu:"branding",cH:"channel",iH:"cta",IH:"highlightText",YH:"label",OI:"playlist",QI:"popup",uJ:"speech",Lv:"subscribe",KJ:"title",VIDEO:"video",mK:"vote",pK:"website"},Ry={vu:"branding",UG:"card",HH:"highlight",IMAGE:"image",MARKER:"marker",PAUSE:"pause",VI:"promotion",jo:"survey",TEXT:"text",qK:"widget"},Sy={iK:"video_relative",NI:"player_relative"};
function Ty(a){if(!a)return null;var b=fw(a.id),c=fw(a.author),d=iw(a.type,Ry),e=iw(a.style,Qy),g=hw(ew(a.TEXT)),h=hw(a.data),h=0!=h.length?qg(h):{},k;var l=ew(a.segment);l?(fw(l.timeRelative),k=fw(l.spaceRelative),k=(l=nw(l.movingRegion,Gy))?new Iy(k,l):null):k=null;var l=nw(a.action,py),p=nw(a.trigger,Ny),r=ry(ew(a.appearance));r||(r=ry({}));var u=iw(a.coordinate_system,Sy,"video_relative"),C;C=(C=ew(a.image_source))?new ty(hw(C.standard_url),hw(C.video_id)):null;var V=jw(a.closeable,!0),U=hw(a.html_blob);
a=hw(a.log_data);return b&&d?new Py(b,c,d,e,g,k,l,p,r,u,C,V,0,U,h,a):null}function jy(a){return(a=Uy(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}Py.prototype.showLinkIcon=function(){return Vy(this,function(a){return null!=a.url&&a.url.showLinkIcon})};function Wy(a){return Vy(a,function(a){return"click"==a.trigger})}function Vy(a,b){return gb(a.C,b,void 0)}function Xy(a,b,c){D(a.C,b,c)}function Uy(a,b){return F(a.C,b,void 0)}function Yy(a,b,c){D(a.G,b,c)}
function Zy(a,b){E(a.G,b,void 0)}function $y(a){return(a=az(a))?Hy(a):null}function az(a){a.o?(a=a.o,a=a.j.length?a.j[0]:null):a=null;return a}function bz(a,b){var c=$y(a);return c&&b?xy(b,c.A,c.j?c.j:"xy"):1};function cz(a,b,c){gy.call(this,a,b,c);this.B=this.o=this.C=!1;this.A=5E3;this.j=null;this.uf=I("div","iv-promo-contents")}z(cz,gy);
function dz(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"],Zf("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();Gw(this.context.logger,this.annotation.qb,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;a=Hd("iv-promo-txt",this.uf);var d=Hd("iv-promo-button-container",this.uf),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);th(this.Q(),"iv-promo-with-button");this.Hj(this.uf,jy(this.annotation),this.annotation.id,this.annotation.qb)},a);k.appendChild(l);c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.uf.appendChild(e);k&&a.uf.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.Gx,a);a.context.j.M(a.Q(),"touchend",pa(a.np,5E3),
a);a.context.j.M(a.Q(),"mouseout",a.Fx,a);h=I("div","iv-promo-close");g.appendChild(h);ez(a,x(function(){this.$()},a),h);sh(a.Q(),c);d&&Td(a.Q(),d);Td(a.Q(),a.uf);Td(a.Q(),g);a.Hj(a.Q(),jy(a.annotation),a.annotation.id,a.annotation.qb)}f=cz.prototype;
f.Ch=function(){this.isActive||(cz.K.Ch.call(this),this.C||(dz(this),this.C=!0),Uw(this.Q()),this.annotation&&this.annotation.qb&&Cw(this.context.logger,this.annotation.qb),th(this.Q(),"iv-promo-inactive"),this.isActive=!0,this.j&&(An(this.j),this.j=null),fz(this),gz(this,this.A))};f.$=function(){this.isActive&&(N(this.Q(),"iv-promo-inactive"),this.isActive=!1)};f.Re=function(a,b,c,d,e,g){return this.o?!0:cz.K.Re.call(this,a,b,c,d,e,g)};f.np=function(a,b){b.stopPropagation();fz(this);gz(this,a)};
f.Gx=function(a){this.B=!0;this.np(500,a)};f.Fx=function(){this.B=!1;hz(this)};function hz(a){a.o||a.B||a.j||(N(a.Q(),"iv-promo-collapsed"),a.o=!0)}function fz(a){a.o&&(th(a.Q(),"iv-promo-collapsed"),a.o=!1)}function gz(a,b){a.j||(a.j=zn(function(){this.j&&(An(this.j),this.j=null);hz(this)},b,a))}function ez(a,b,c){function d(a){Hw(this.context.logger,this.annotation.qb);b(a);a.stopPropagation()}a.context.j.M(c,"click",x(d,a));a.context.j.M(c,"touchend",x(d,a))};var iz={eI:1,fI:2,gI:3};function jz(a,b,c){this.j={};this.o=!1;this.C="ivTrigger:"+a;this.A=c;Oy(b,function(a,b){var c=kz(b.state,b.j);this.A.subscribe(c,x(this.B,this,c,a));this.j[c]=a},this)}jz.prototype.B=function(a,b,c,d){this.j[a]=b?!c:c;a=Kb(this.j,function(a){return a});this.o!=a&&(this.o=a,this.A.L(this.C,a,d))};function kz(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function lz(a,b,c){this.A=a;this.annotation=b;this.j=c;this.o=null;this.C=this.isVisible=!1;mz(b,a)}function mz(a,b){Zy(a,function(c){return new jz(a.id,c,b)})}lz.prototype.$=function(){this.isVisible=!1;this.A.qa("onResize",this.B,this);this.j&&this.j.$()};lz.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())}nz(this)};function nz(a){a.o&&(a.o.stop(),a.o=null)}lz.prototype.B=function(){this.j&&oz(this.j)};function pz(){};function qz(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}z(qz,pz);function rz(){this.oa=[];this.ra=[];this.fd=[]}rz.prototype.rf=null;rz.prototype.Tc=null;rz.prototype.Jj=!0;var sz=[2,2,6,6,0];f=rz.prototype;f.clear=function(){this.oa.length=0;this.ra.length=0;this.fd.length=0;delete this.rf;delete this.Tc;delete this.Jj;return this};function tz(a,b,c){0==ab(a.oa)?a.fd.length-=2:(a.oa.push(0),a.ra.push(1));a.fd.push(b,c);a.Tc=a.rf=[b,c]}
f.fb=function(a){var b=ab(this.oa);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.oa.push(1),this.ra.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.fd.push(c,d)}this.ra[this.ra.length-1]+=b/2;this.Tc=[c,d]};f.close=function(){var a=ab(this.oa);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.oa.push(4),this.ra.push(1),this.Tc=this.rf);return this};
function uz(a,b,c,d,e){var g=a.Tc[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+e)*Math.PI/180),h=a.Tc[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+e)*Math.PI/180);a.oa.push(3);a.ra.push(1);a.fd.push(b,c,d,e,g,h);a.Jj=!1;a.Tc=[g,h]}function vz(a,b){for(var c=a.fd,d=0,e=0,g=a.oa.length;e<g;e++){var h=a.oa[e],k=sz[h]*a.ra[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.oa=this.oa.concat();a.ra=this.ra.concat();a.fd=this.fd.concat();a.rf=this.rf&&this.rf.concat();a.Tc=this.Tc&&this.Tc.concat();a.Jj=this.Jj;return a};f.isEmpty=function(){return 0==this.oa.length};function wz(a,b){this.H=a;this.I=null==b?1:b}z(wz,pz);function xz(a,b){this.j=a;this.o=b};function yz(){}ba(yz);yz.prototype.j=0;function zz(a){T.call(this);this.N=a||Bd();this.Ba=null;this.Pe=!1;this.j=null;this.C=void 0;this.D=this.G=this.H=null}z(zz,T);f=zz.prototype;f.ty=yz.getInstance();f.getId=function(){return this.Ba||(this.Ba=":"+(this.ty.j++).toString(36))};f.Q=function(){return this.j};f.Fj=function(a){if(this.H&&this.H!=a)throw Error("Method not supported");zz.K.Fj.call(this,a)};f.mp=function(){this.j=this.N.createElement("div")};
f.Ag=function(){Az(this,function(a){a.Pe&&a.Ag()});this.C&&this.C.removeAll();this.Pe=!1};f.P=function(){this.Pe&&this.Ag();this.C&&(this.C.dispose(),delete this.C);Az(this,function(a){a.dispose()});this.j&&Wd(this.j);this.H=this.j=this.D=this.G=null;zz.K.P.call(this)};f.Ee=function(){return this.j};function Az(a,b){a.G&&D(a.G,b,void 0)}
f.removeChild=function(a,b){if(a){var c=w(a)?a:a.getId();a=this.D&&c?Xb(this.D,c)||null:null;if(c&&a){Wb(this.D,c);ob(this.G,a);b&&(a.Ag(),a.j&&Wd(a.j));c=a;if(null==c)throw Error("Unable to set parent component");c.H=null;zz.K.Fj.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function Bz(a,b,c,d,e){zz.call(this,e);this.width=a;this.height=b;this.B=c||null;this.I=d||null}z(Bz,zz);Bz.prototype.A=null;Bz.prototype.Eg=function(){return this.Pe?$g(this.Q()):ga(this.width)&&ga(this.height)?new H(this.width,this.height):null};function Cz(a){var b=a.Eg();return b?b.width/(a.B?new H(a.B,a.I):a.Eg()).width:0}Bz.prototype.resume=function(){};function Dz(a,b){T.call(this);this.Gg=a;this.yl=b;this[pm]=!1}z(Dz,T);f=Dz.prototype;f.yl=null;f.Gg=null;f.Q=function(){return this.Gg};f.addEventListener=function(a,b,c,d){Bm(this.Gg,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Jm(this.Gg,a,b,c,d)};f.P=function(){Dz.K.P.call(this);var a=this.Gg;if(a)if(qm(a))a.removeAllListeners(void 0);else if(a=Em(a)){var b=0,c;for(c in a.j)for(var d=a.j[c].concat(),e=0;e<d.length;++e)Km(d[e])&&++b}};function Ez(a,b,c,d){Dz.call(this,a,b);a=this.yl;b=this.Q();c?(b.setAttribute("stroke",c.o),b.setAttribute("stroke-opacity",1),c=c.j,w(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/Cz(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.yl;a=this.Q();if(d instanceof wz)a.setAttribute("fill",d.H),a.setAttribute("fill-opacity",d.I);else if(d instanceof qz){b="lg-"+d.C+"-"+d.F+"-"+d.D+"-"+d.G+"-"+d.j+"-"+d.o;var e=Fz(c,b);if(!e){var e=Gz(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=Gz(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.o;ga(d.B)&&(g+=";stop-opacity:"+d.B);d=Gz(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=Hz(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}z(Ez,Dz);function Iz(a,b){Dz.call(this,a,b)}z(Iz,Dz);function Jz(a,b){Dz.call(this,a,b)}z(Jz,Dz);function Kz(a,b,c,d){Ez.call(this,a,b,c,d)}z(Kz,Ez);function Lz(a,b){Dz.call(this,a,b)}z(Lz,Iz);Lz.prototype.clear=function(){Vd(this.Q())};function Mz(a,b,c,d){Ez.call(this,a,b,c,d)}z(Mz,Kz);function Nz(a,b){Dz.call(this,a,b)}z(Nz,Jz);function Oz(a,b,c,d,e){Bz.call(this,a,b,c,d,e);this.o={};this.O=fd&&!rd(526);this.J=new En(this)}var Pz;z(Oz,Bz);var Qz=0;function Gz(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=Oz.prototype;
f.mp=function(){var a=Gz(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=Gz(this,"g");this.F=Gz(this,"defs");this.A=new Lz(b,this);a.appendChild(this.F);a.appendChild(b);this.j=a;this.B&&(this.Q().setAttribute("preserveAspectRatio","none"),this.O?this.ls():this.Q().setAttribute("viewBox","0 0 "+(this.B?this.B+" "+this.I:"")))};
f.ls=function(){if(this.Pe){var a=this.Eg();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.Eg=function(){if(!ed)return this.Pe?$g(this.Q()):Oz.K.Eg.call(this);var a=this.width,b=this.height,c=w(a)&&-1!=a.indexOf("%"),d=w(b)&&-1!=b.indexOf("%");if(!this.Pe&&(c||d))return null;var e,g;c&&(e=this.Q().parentNode,g=ah(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.Q().parentNode,g=g||ah(e),b=parseFloat(b)*g.height/100);return new H(a,b)};f.clear=function(){this.A.clear();Vd(this.F);this.o={}};function Rz(a,b,c,d){b=Gz(a,"path",{d:Sz(b)});c=new Mz(b,a,c,d);a.A.Q().appendChild(c.Q())}
function Sz(a){var b=[];vz(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 Hz(a,b,c){if(b in a.o)return a.o[b];var d="_svgdef_"+Qz++;c.setAttribute("id",d);a.o[b]=d;a.F.appendChild(c);return d}
function Fz(a,b){return b in a.o?a.o[b]:null}f.Ag=function(){Oz.K.Ag.call(this);this.O&&this.J.Ia(Tz(),"tick",this.ls)};f.P=function(){delete this.o;delete this.F;delete this.A;this.J.dispose();delete this.J;Oz.K.P.call(this)};function Tz(){Pz||(Pz=new xn(400),Pz.start());return Pz};function Uz(a,b,c){this.j=a;this.o=0;this.F=b;this.G=c||70;this.A=!1}Uz.prototype.start=function(a){this.D=y();this.o=a;this.C=this.D+this.o;this.A=!0;Uw(this.j);Wf(this.B);this.B=Vf(x(this.H,this),this.G)};Uz.prototype.stop=function(){this.A=!1;Vw(this.j);this.B&&Wf(this.B)};
Uz.prototype.H=function(){if(this.A){var a=y(),b;b=0==this.o||a>=this.C?0:1-(a-this.D)/this.o;var c=Hd("countdowntimer-diminishing-pieslice",this.j),d=Ah("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 rz,g=d/2-5;tz(e,d/2,d/2);e.fb(d/2,5);uz(e,g,g,-90,360*-b);e.fb(d/2,d/2);e.close();c.setAttribute("d",Sz(e));a>=this.C&&(this.stop(),this.F&&this.F())}};function Wz(){Q.call(this);this.element=this.label=null;this.priority=0;this.B=this.C=!1;this.A=null}z(Wz,Q);Wz.prototype.M=function(a,b,c){return this.element.M(a,b,c||this)};Wz.prototype.Ia=function(a){this.element.Ia(a)};function Xz(a,b,c,d){Y.call(this,["div",{className:"ytp-button","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.ca="inline-block";this.I=a;this.N=this.A=this.C=null;this.B=!1;this.M("click",this.IF);this.M("keypress",this.JF);this.I.qg(this.element,x(this.Qw,this));uv(this,"button");b&&Yz(this,b);c&&this.kb(c);d&&(this.A=d)}z(Xz,Y);function Yz(a,b){b&&""!=b&&(a.C&&th(a.element,a.C),a.C=b,N(a.element,b))}function Zz(a,b){a.N=b;qv(a.template,"tabindex",b)}f=Xz.prototype;
f.Qw=function(){return this.B?null:this.A?this.A:null};function $z(a){a.B=!1;a.template.update({disabled:null,tabindex:a.N});th(a.element,"ytp-disabled")}f.disable=function(){this.B=!0;this.template.update({disabled:"true",tabindex:null});N(this.element,"ytp-disabled")};f.IF=function(a){this.B&&(a.stopImmediatePropagation(),a.preventDefault())};f.JF=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.$b("click")};f.P=function(){this.I.Mm(this.element);this.I=null;Xz.K.P.call(this)};function aA(a,b,c){Y.call(this,["div","ytp-segmented-control"]);this.C=a;this.A=-1;this.o=[];if(null!=b)for(Ei(this.o),this.o=[],a=0;a<b.length;a++){var d=new Xz(this.C);uv(d,"radio");this.o.push(d);c?d.za(["div",b[a]]):d.za(b[a]);0!=a&&N(d.Q(),"ytp-segmented-control-other");bA(d,a==this.A);d.M("click",pa(this.B,a),this);d.ea(this.element)}uv(this,"radiogroup")}z(aA,Y);
aA.prototype.ea=function(a,b){aA.K.ea.call(this,a,b);for(var c=0,d=0;d<this.o.length;d++)c=Math.max(c,$g(this.o[d].Q()).width);if(c)for(d=0;d<this.o.length;d++)Zg(this.o[d].Q(),c)};aA.prototype.j=function(a){this.A=a;for(var b=0;b<this.o.length;b++)bA(this.o[b],b==a)};function cA(a,b){for(var c=0;c<a.o.length;c++)Zz(a.o[c],b)}
function bA(a,b){var c=a.Q();b?(th(c,"ytp-segmented-control-deselected"),N(c,"ytp-segmented-control-selected"),c.setAttribute("aria-checked",!0)):(th(c,"ytp-segmented-control-selected"),N(c,"ytp-segmented-control-deselected"),c.setAttribute("aria-checked",!1))}aA.prototype.B=function(a){a!=this.A&&(this.j(a),this.$b("change"))};aA.prototype.P=function(){Ei(this.o);this.o=[];aA.K.P.call(this)};function dA(a){Wz.call(this);this.label=Z("YTP_ANNOTATIONS");this.element=new aA(a,[Z("YTP_OFF"),Z("YTP_ON")]);R(this,this.element);this.element.kb(this.label);cA(this.element,2200);this.priority=3;this.j(0)}z(dA,Wz);dA.prototype.j=function(a){this.element.j(a)};function eA(a,b){this.start=a<b?a:b;this.end=a<b?b:a}eA.prototype.clone=function(){return new eA(this.start,this.end)};function fA(){this.j=!1;this.C=this.A=null}function gA(a,b,c){a.A?(Yg(a.A.Q(),b,c),a.A.clear()):(b=new Oz(b,c,void 0,void 0,void 0),a.A=b,a.A.mp(),a.C=I("div"),b=a.A.Q(),a.C.appendChild(b));return a.A}fA.prototype.Q=function(){return this.C};fA.prototype.o=function(){};function hA(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Hb(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function iA(a,b){var c;c=":"+(yz.getInstance().j++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function jA(a,b){var c=iA(a,hA("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=iA(a,hA("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},hA("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=iA(a,hA("feComposite",{"in":c,in2:b,operator:"in"}));return iA(a,hA("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function kA(a,b){var c=iA(a,hA("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=iA(a,hA("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=iA(a,hA("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=iA(a,hA("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=iA(a,hA("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=iA(a,hA("feComposite",{operator:"out","in":c,in2:d}));return iA(a,hA("feComposite",{operator:"over","in":b,in2:c}))}
function lA(a,b){return b}function mA(a){var b=hA("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";D(a,function(a){i:{switch(a){case "bevel":a=jA;break i;case "dropshadow":a=kA;break i}a=lA}c=a(b,c)});return b}function nA(a){a=eb(a,function(a){return a in oA});zb(a,function(a,c){return oA[a]-oA[c]});return a}function pA(a){return F(a,function(a){return"dropshadow"==a})?new yg(0,7,7,0):new yg(0,0,0,0)}var oA={bevel:1,dropshadow:2};function qA(a,b,c,d,e){b=rA(b,c,d?d.j/2+1:0);Rz(a,b,d,e)}function rA(a,b,c){var d=new rz;tz(d,a.left+b+c,a.top+c);d.fb(a.left+a.width-b-c,a.top+c);uz(d,b,b,-90,90);d.fb(a.left+a.width-c,a.top+a.height-b-c);uz(d,b,b,0,90);d.fb(a.left+b+c,a.top+a.height-c);uz(d,b,b,90,90);d.fb(a.left+c,a.top+b+c);uz(d,b,b,180,90);d.close();return d}function sA(a,b,c,d){var e=a.J;e?a=new qz(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=tA(d,a.o),a=new wz(a.B,b));return a}
function tA(a,b){return a?Math.max(b,.9):b}function uA(a,b){var c=Ag(a),d=pA(b);ja(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=void 0,c.bottom+=void 0,c.left-=NaN);return Bg(c)}function vA(a,b,c){if(c.length&&(b=Gd("g",void 0,b),b.length)){var d=nA(c);if(d){c="effects:"+(d?d.join("|"):"");var e=Fz(a,c);e?a=e:(d=mA(d),a=0<d.childNodes.length?Hz(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function wA(){fA.call(this);this.B=0}z(wA,fA);
wA.prototype.o=function(a,b,c){var d=a.j,e=d.F,g=this.j&&Wy(a),e=(e+=g?1:0)?new xz(e,g?d.C:d.D):null;if(g=$y(a)){var h=Ay(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=az(a))&&a.j?a.j:null)&&a.length?a[0]:null){var l;c=c?Ay(c,b):null;a=vy(k,new zg(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 zg(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=uA(c,d.effects);a=gA(this,c.width,c.height);var g=sA(d,c.width,c.height,this.j),h=new zg(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*xy(b,k.A,k.j?k.j:"xy");b=d.j;k=e?e.j/2:0;l=xA(h,r);var p=this.D(h,b,r,l),u=r.x,r=r.y,C=h.width,V=h.height,U=h.left,h=h.top,ia=new rz;tz(ia,U+b+k,h+k);"t"==l&&(ia.fb(p.start,h+k),ia.fb(u,r),ia.fb(p.end,h+k));ia.fb(U+C-b-k,h+k);uz(ia,b,b,-90,90);"r"==l&&(ia.fb(U+
C-k,p.start),ia.fb(u,r),ia.fb(U+C-k,p.end));ia.fb(U+C-k,h+V-b-k);uz(ia,b,b,0,90);"b"==l&&(ia.fb(p.end,h+V-k),ia.fb(u,r),ia.fb(p.start,h+V-k));ia.fb(U+b+k,h+V-k);uz(ia,b,b,90,90);"l"==l&&(ia.fb(U+k,p.end),ia.fb(u,r),ia.fb(U+k,p.start));ia.fb(U+k,h+b+k);uz(ia,b,b,180,90);ia.close();Rz(a,ia,e,g);if(e=this.Q())N(e,"annotation-shape"),N(e,"annotation-speech-shape"),Og(e,c.left,c.top),Yg(e,c.width,c.height),vA(a,e,d.effects)}}}};
function xA(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"}wA.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 eA(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 eA(0,0)};function yA(){fA.call(this)}z(yA,fA);yA.prototype.o=function(a,b,c){var d=$y(a);d&&(b=Ay(d,b,c),0>=b.width||0>=b.height||(a=a.j,c=uA(b,a.effects),d=gA(this,c.width,c.height),qA(d,new zg(0,0,b.width,b.height),a.j,new xz(!a.A&&this.j?1:a.A,a.B),new wz("#000",0)),b=this.Q(),N(b,"annotation-shape"),eh(b,tA(this.j,a.o)),Og(b,c.left,c.top),Yg(b,c.width,c.height)))};function zA(a,b){return window.location.protocol+"//i1.ytimg.com/vi/"+escape(a)+"/"+(b||"hqdefault.jpg")};function AA(a,b,c){fA.call(this);this.B=a||0;this.F=b||0;this.D=c||!1}z(AA,fA);function BA(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 zg(e,g,c,d)}
AA.prototype.o=function(a,b,c){var d=Ay($y(a),b,c);if(!(0>=d.width||0>=d.height)){var e=BA(d,this.F);e.left+=d.left;e.top+=d.top;b=a.j;c=uA(e,b.effects);var g=gA(this,c.width,c.height),h=new wz("#000",0),e=BA(e,this.B);a=a.B?a.B.j?a.B.j:a.B.videoId?zA(a.B.videoId,"hqdefault.jpg"):"":"";e=Gz(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 Nz(e,g);g.A.Q().appendChild(e.Q());
if(a=this.Q()){var k=tA(this.j,b.o);eh(a,k);if(this.D&&0<b.A){var k=new xz(b.A,b.B),d=new zg(0,0,d.width,d.height),l;l=rA(d,b.j,k.j/2+1);var p=Fz(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",Sz(l));r.setAttribute("fill","#FFF");p.appendChild(r);l=Hz(g,"mask",p)}e=e.Q();l&&e.setAttribute("mask","url(#"+l+")");qA(g,d,b.j,k,h)}N(a,"annotation-shape");N(a,"annotation-image-shape");
Og(a,c.left,c.top);Yg(a,c.width,c.height);vA(g,a,b.effects)}}};function CA(){fA.call(this)}z(CA,fA);CA.prototype.o=function(a,b,c){var d=$y(a);if(d){var e=Ay(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.j;c=uA(e,b.effects);var d=gA(this,c.width,c.height),g=b.F;a=this.j&&Wy(a);a=(g+=a?1:0)?new xz(g,a?b.C:b.D):null;g=new zg(0,0,e.width,e.height);e=sA(b,e.width,e.height,this.j);qA(d,g,b.j,a,e);if(a=this.Q())N(a,"annotation-shape"),N(a,"annotation-popup-shape"),Og(a,c.left,c.top),Yg(a,c.width,c.height),vA(d,a,b.effects)}}};function DA(){wA.call(this)}z(DA,wA);DA.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 eA(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 eA(0,0)};function EA(a,b,c,d,e){this.j=a;this.I=b;this.F=c;this.N=d;this.J=e;this.G=new Nv(this);this.H=this.A=this.C=this.B=this.D=this.o=null}function FA(a,b){var c=x(function(a,c,g){c=g?GA(this,c,x(g,this)):GA(this,c);this.G.M(b,a,c)},a);c("mouseover","d",a.S);c("mouseout","c",a.O);c("click","a");c("touchend","a")}
function HA(a){if(a.j.F){var b;Vy(a.j,function(a){return"close"==a.type})?b=a.o:(a.C=I("div",["annotation-close-button","hid"]),xi(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",GA(a,"b",c));a.G.M(b,"touchend",GA(a,"b",c))}}
function GA(a,b,c){return x(function(a){if(this.J)c&&c(a);else if(a.target instanceof Element){var e=a.target;Vw(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{Uw(e)}}e=dh(a.target);a=new Qc(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.N.L(b,this.j)},a)}EA.prototype.S=function(){this.C&&Uw(this.C);this.B&&eh(this.B,1);var a=IA(this);this.A&&(this.A.j=!0,eh(this.o,JA(this)?1:0),a&&this.A.o(this.j,a,KA(this)))};EA.prototype.O=function(){this.C&&Vw(this.C);this.B&&eh(this.B,0);var a=IA(this);this.A&&(this.A.j=!1,eh(this.o,JA(this)?1:0),a&&this.A.o(this.j,a,KA(this)))};function KA(a){return a.H?$y(a.H):null}
function oz(a){if(a.o||a.A){var b=$y(a.j);if(b){var c=IA(a),d=KA(a);if(a.o&&c){b=Ay(b,c,d);Yg(a.o,b.width,b.height);Og(a.o,b.left,b.top);var e=a.F.Rj;if(e){var g;g=(g=$y(a.j))&&e?wy(e,g.C,g.j?g.j:"xy"):1;var e=bz(a.j,e),h;h=a.j.j;h.H?h=h.H:(h="speech"==a.j.style?1.6:.8,h=new yg(h,h,h,h));h=new yg(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),Yg(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),Og(a.B,g));a.C&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Og(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.I:d.C;c.style.fontSize=360*d.textSize*bz(a.j,a.F.Rj)/100+"px";b=a.j.style;c.style.textAlign=d.textAlign?d.textAlign:"title"==b||"highlightText"==b?"center":"left";d.G&&(c.style.fontWeight=d.G);a=a.o;c=a.style.overflow;d=Hd("annotation-link-icon",a);b=Tw(d);g=Hd("annotation-close-button",a);e=Tw(g);d&&b&&Vw(d);g&&e&&Vw(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=ph(a),r=p,u=5,C=Math.floor(p/2);C;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(u=r,r=Math.min(r+C,p)):r=Math.max(r-C,u),C=Math.floor(C/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&&Uw(g);d&&b&&Uw(d)}}}}EA.prototype.$=function(){Vw(this.o);this.A&&Vw(this.A.Q())};function JA(a){return"label"!=a.j.style||a.A.j}function IA(a){var b=a.F.Rj;return b?"player_relative"==a.j.H?(a=a.F.Zj)?new zg(-b.left,-b.top,a.width,a.height):null:new zg(0,0,b.width,b.height):null};function LA(a){at.call(this,a);this.fi=!0;this.xa="iv-module";this.Cc="iv";this.O=!1;this.U=!0;this.G=!1;this.C=0;this.o={};this.N={};this.I=null;this.F=new Bw(this.S,a);a=MA;this.B=new dA(qt(this));R(this,this.B);this.B.M("change",this.TE,this);this.subscribe("onHideControls",this.EA,this);this.subscribe("onShowControls",this.zB,this);this.subscribe("onStateChange",this.gB,this);this.subscribe("d",this.VE,this);this.subscribe("c",this.UE,this);this.subscribe("a",this.Ez,this);this.subscribe("b",
this.aA,this);this.subscribe("videodatachange",this.Pn,this);var b=new lv(["div",[a.Ju,"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.V=I("DIV",[a.lv,"html5-stop-propagation"]);this.Y=I("DIV",a.Ou);this.D=null;ft(this,I("DIV",a.su,this.V,this.Y));ft(this,b);this.J=new Uz(b,x(this.ml,
this));this.H=this.A=null;this.R=[]}z(LA,at);LA.C="AnnotationsModule";var MA={su:"video-annotations",Ju:"countdowntimer",Ou:"video-custom-annotations",lv:"video-legacy-annotations"};LA.B=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};LA.A=function(a){return"card"==a.type};LA.o=function(a){return LA.Ha(a)?new LA(a):null};LA.Ha=function(a){var b=a.W();return"leanback"==b.ja?!1:b.aa?!0:Hv(a.getVideoData(),"iv3_module")};
LA.j=function(){return I("div",["annotation","annotation-type-custom","hid"])};f=LA.prototype;f.Ha=function(){return LA.Ha(this.j)};f.Na=function(){LA.K.Na.call(this);this.D=new Y(["div",["ytp-player-content","ytp-iv-player-content"]]);this.D.ea(this.j.Ma());tt(this,this.B);var a=this.j.W();(1==(a.Ck||this.j.getVideoData().ua)||a.aa)&&this.load()};f.destroy=function(){th(this.j.Ma(),"ytp-iv-drawer-open");this.D.detach();this.D.dispose();ut(this,this.B);this.qa("videodatachange",this.Pn,this);LA.K.destroy.call(this)};
f.TE=function(){var a=this.G||this.C,b=1==this.B.element.A;a&&!b?(this.unload(),this.log({toggle:0})):!a&&b&&(this.load(),this.log({toggle:1}))};f.gB=function(a){this.U=X(a.state,8);0>Jv(a,4)&&this.J.stop()};
f.load=function(){LA.K.load.call(this);var a=this.j.getVideoData(),b=x(this.yA,this,a.videoId);Ww()&&(b=NA(this,b));var b={format:"XML",method:"GET",xc:b},c=this.j.W(),d=c.aa,e=c.ie;if(d||e)b.method="POST",b.Ib={},d&&(b.Ib.ic_xml=d,c.aa=""),e&&(b.Ib.ic_track=e,c.ie="");!a.ci||a.qo&&!d||(this.C++,Kj(a.ci,b));this.B.j(1)};
f.unload=function(){this.B.j(0);this.F.Pa({"iv-event":1});this.ml();dt(this);Hb(this.o,function(a){a.destroy()});Hb(this.N,function(a){a.destroy()});this.H=null;this.A&&(this.A.destroy(),this.A=null);this.C=0;this.G=!1;this.o={};this.N={};LA.K.unload.call(this)};
function OA(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(OA(a,e))}return c}
f.yA=function(a,b){if(this.C&&!this.G&&this.j.getVideoData().videoId==a){this.C--;var c=b.responseXML?b.responseXML.getElementsByTagName("annotations"):null;if(Fj(b)&&c){PA(this,c[0]);N(this.j.Ma(),this.xa+"-loaded");0==this.C&&(this.G=!0);var c=[],d;for(d in this.o){var e=this.o[d].annotation,g;if(e.o)if(g=e.o,g.j.length)if(g=g.j[0].o||g.j[0].j||g.j[0].A,!g||2>g.length)g=null;else{var h=g.length-1;g=0>=g[0].o&&0>=g[h].o?null:{start:g[0].o,end:g[h].o}}else g=null;else g=null;if(h=g)if(g=1E3*h.start,
h=1E3*h.end,0==g&&(g++,h++),g==h&&h++,!(h<g)){var k={id:d};"marker"==e.type&&(k.style="ytp-chapter-marker",k.tooltip=e.D,k.visible=!0);e=new Qs(g,h,k);c.push(e)}}bt(this,c)}}};function QA(a,b){var c=RA(a,b);if(!c&&"marker"!=b.type)return null;Yy(b,function(a){a=x(this.SB,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new lz(a.S,b,c)}
function SA(a,b){var c=a.D.Q(),d=LA.j(),e=a.j.W(),g=null;switch(b.type){case "branding":if(e.experiments.dm&&e.ee)break;c.appendChild(d);g=new hy(d,TA(a),b);break;case "promotion":e.experiments.G&&"video"==b.style?(c=zj(jy(b).value).v,d=mw(b.data.video_duration),c&&d&&(a.I={id:c,HK:d,KK:"feature=endscreen",author:b.data.text_line_1,title:b.data.text_line_2,GK:1},a.Pn())):(c.appendChild(d),g=new cz(d,TA(a),b))}g&&g.Gj();return g}
f.Pn=function(){if(this.I){var a=this.j.getVideoData().O;!a||1>=a.length||a[1].id==this.I.id||(ub(a,1,0,this.I),pb(a,a.length-1))}};function UA(a,b){if(!a.A){var c=new Y(["div","hid"]);a.A=new Tx(c.Q(),TA(a));c.ea(a.D.Q());a.A.Gj()}(c=b&&b.data&&b.data.card_type)&&Ux[c]&&a.A.add(new Ux[c](b.id,b.data,b.qb))}function TA(a){a.H||(a.H=new ky(new Nv(a),a.j.W(),a.j.getVideoData(),a.F,a.j,a.S));return a.H}
function PA(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=OA(a,c[d]),g=null;try{g=Ty(e)}catch(h){}g&&(LA.B(g)?(e=SA(a,g))&&(a.N[g.id]=e):LA.A(g)?UA(a,g):(e=QA(a,g))&&(a.o[g.id]=e))}Hb(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.Jc=function(a){LA.K.Jc.call(this,a);a=a.getId();var b=this.o[a];b&&!b.C&&(b=b.annotation,"pause"==b.type?VA(this,b):(WA(this,a),Cw(this.F,b.qb)))};
f.Yc=function(a){LA.K.Yc.call(this,a);XA(this,a.getId())};function VA(a,b){if(a.U){var c=Uy(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.O=!0,a.L("command_pause"),a.J.start(1E3*c.duration.value))}}function YA(a,b,c,d){d?WA(a,b,c):XA(a,b,c)}function XA(a,b,c){if(b=a.o[b])nz(b),c&&c.o?(a=x(a.up,a,b),b.o=new Pv(a,2E3),b.o.start()):a.up(b)}f.up=function(a){a&&(a.$(),ZA(this,"shown",!1,a.annotation.id),this.xi(a.annotation,"hidden"))};
function WA(a,b,c){if(b=a.o[b])nz(b),c&&c.B?(a=x(a.Yr,a,b),b.o=new Pv(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=IA(b);if(g){var h=null;"highlight"==b.j.type||"label"==b.j.style?h=new yA:"popup"==b.j.style?h=new CA:"anchored"==b.j.style?h=new wA:"speech"==b.j.style?h=new DA:"image"==b.j.type&&("video"==b.j.style?h=new AA(Nw,Mw,!0):"channel"==b.j.style&&(h=new AA));h&&(h.o(b.j,g,KA(b)),b.A=h,g=h.Q())&&(Vw(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));xi(b.o,"annotation_id",b.j.id);b.I(b.o);FA(b,b.o);if(Wy(b.j)&&"image"!=b.j.type&&b.j.showLinkIcon()){if(g=jy(b.j))b.o.title=g.value?g.value:null;b.B=I("span","annotation-link-icon");
b.o.appendChild(b.B)}HA(b);Wy(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){i:{c=b.j.o.j;if(c.length&&(c=Hy(c[0]))){c=c.F;break i}c=0}b.o&&(b.o.style.zIndex=c);b.A&&b.A.Q()&&(b.A.Q().style.zIndex=c)}Uw(b.o);eh(b.o,JA(b)?1:0);oz(b);b.A&&Uw(b.A.Q())}a.A.subscribe("onResize",a.B,a);ZA(this,"shown",!0,a.annotation.id);this.xi(a.annotation,"shown")}};
f.SB=function(a,b,c){var d=this.o[a];if(d&&b.value!=c){b.value=c;var e=!1;Yy(d.annotation,function(a){e|=a.value});YA(this,a,b,e)}};f.Ez=function(a){if(a&&a.id){var b=jy(a);if(b){var c=x(this.xi,this,a,"click"),d=this.j.getVideoData();if("new"==b.target||-1!=ww(b,d.videoId))c(),c=null;Gw(this.F,a.qb,c)}}};
f.xi=function(a,b){Xy(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.j.getVideoData(),e=ww(c.url,d.videoId);if(-1!=e)this.L("command_seek",e),this.ml();else if(d=xw(c.url,a.id,d.videoId,this.j.W()))this.pauseVideo(),window.open(d,Aw(c.url))}},this)};f.EA=function(){ZA(this,"playerControlShow",!1)};f.zB=function(){ZA(this,"playerControlShow",!0)};f.VE=function(a){ZA(this,"rollOver",!0,a.id)};f.UE=function(a){ZA(this,"rollOver",!1,a.id)};
f.aA=function(a){if(a||a.id)this.o[a.id].C=!0,XA(this,a.id),a&&(Hw(this.F,a.qb),this.xi(a,"close")),ZA(this,"closed",!0,a.id)};f.ml=function(){this.J.stop();this.O&&(this.O=!1,this.L("command_play"))};function RA(a,b){if($A(b)){var c=b.F||Vy(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new EA(b,x(a.V.appendChild,a.V),a.j.W(),a.S,c)}return null}
function $A(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in Qy)if(a.style==Qy[b])return!0;return!1}function ZA(a,b,c,d){a.L(kz(b,d),c,d)}function NA(a,b){return x(function(){if(!this.ka()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=pa.apply(window,a);this.R.push(Xw(b,void 0))}},a)}f.P=function(){for(var a=this.R,b=0,c=a.length;b<c;b++)Zw(a[b]);this.R.length=0;LA.K.P.call(this)};var aB=/^#(?:[0-9a-f]{3}){1,2}$/i,bB="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),cB=["none","raised","depressed","uniform","dropShadow"],dB=["sub","inherit","super"],eB=["left","right","center"],fB={id:0,priority:0,anchorPoint:7,Zi:50,pD:80,be:100,Cd:15,Zk:100,isVisible:!0,textAlign:2,dg:0,background:"#080808",color:"#fff",xo:1,fD:1,lw:0,windowColor:"#000",NK:0},gB={id:98},hB={id:99,priority:1,anchorPoint:0,Zi:5,be:5,Cd:2,Zk:32,textAlign:0},iB=["en_CA","en_US",
"es_MX","fr_CA"];var jB=[{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"}],kB=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],lB=[{option:.25,text:"25%"},{option:.5,
text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],mB=[{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:jB},
{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:jB},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:kB},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:jB},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:kB},{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:lB}];var nB;function qB(a,b){ea(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;nB||(nB={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=nB;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function rB(a,b,c,d,e){Xz.call(this,a,b,c,c);this.J=b;this.defaultTooltip=this.O=c;this.F=d||null;this.G=e||null;this.H=e||null;this.j=!1}z(rB,Xz);rB.prototype.update=function(){Yz(this,this.j&&this.F?this.F:this.J);this.kb(this.j&&this.G?this.G:this.O);this.A=this.j&&this.H?this.H:this.defaultTooltip;O(this.element,"ytp-button-pressed",this.j)};function sB(a){a.j=!0;qB(a.element,!0);a.update()}function tB(a){a.j=!1;qB(a.element,!1);a.update()}function uB(a,b){a.J=b;a.update()}
rB.prototype.P=function(){this.H=this.G=this.F=null;rB.K.P.call(this)};function vB(a){rB.call(this,a,"ytp-subtitles-button",Z("YTP_SUBTITLES"),"ytp-subtitles-button-active");Zz(this,6500);this.element.setAttribute("aria-haspopup",!0);this.element.id="subtitles_button"}z(vB,rB);function wB(a){Y.call(this,a)}z(wB,Y);wB.prototype.Vt=function(){};wB.prototype.focus=function(){};function xB(a,b,c,d){Y.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Z(b.message):""),e=[new lv(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new lv(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.Q().style.background=b.option.toString(),e.unshift(d));c?e.unshift(new lv(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new lv(["div","ytp-subtitles-settings-dialog-list-check"]));this.j=new Xz(a);R(this,this.j);
this.j.za(e);this.za(this.j)}z(xB,Y);function yB(a){Y.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=Z("YTP_DONE"),c=new Xz(a,"ytp-dialog-button",b);R(this,c);c.za(b);c.M("click",pa(this.$b,"cancel"),this);Zz(c,1400);b=Z("YTP_RESET");a=new Xz(a,"ytp-dialog-button",b);R(this,a);
a.za(b);N(a.Q(),"ytp-dialog-button-left");a.M("click",pa(this.$b,"select"),this);Zz(a,1300);this.A={};this.j={};this.template.update({top:zB(this,mB),buttons:[a,c]})}z(yB,wB);
function zB(a,b,c){var d=new Y(["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 xB(a.B,k,g,b==jB);g?(l.M("click",x(a.Zr,a,k.options,k.option)),Zz(l.j,1100)):c&&(l.M("click",x(a.SC,a,c,k.option)),Zz(l.j,1200));e[k.option]=l;l.ea(d.Q())}return d}f=yB.prototype;f.Zr=function(a,b){this.template.update({sub:zB(this,a,b)});AB(this,this.A,b);AB(this,this.j,this.o[b]);BB(this.template.j["ytp-subtitles-settings-dialog-sub-level"])};
function BB(a){(a=Hd("ytp-subtitles-settings-dialog-list-selected",a))&&a.focus()}f.focus=function(){BB(this.template.j["ytp-subtitles-settings-dialog-top-level"])};function AB(a,b,c){Hb(b,function(a,b){var g=b==c;O(a.j.Q(),"ytp-subtitles-settings-dialog-list-selected",g)},a)}function CB(a,b){a.o=b;var c=mB[0];c&&c.options&&a.Zr(c.options,c.option)}f.SC=function(a,b){this.o&&(this.o[a]=b,this.$b("change"));AB(this,this.j,b);this.focus()};
f.Vt=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=[];yB.K.P.call(this)};function DB(a,b,c){Y.call(this,["div","ytp-drop-down","{{content}}"]);this.A=!1;this.C=0;this.H=this.G=null;this.B=new Nv(this);this.o=new Y(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);R(this,this.o);uv(this.o,"listbox");this.j=new Xz(a,"ytp-drop-down-label");R(this,this.j);this.j.M("click",this.VF,this);this.F=new Y(["div","ytp-drop-down-label-content","{{content}}"]);R(this,this.F);this.j.za([this.F,["div","ytp-drop-down-arrow"]]);this.za([this.o,this.j]);n(b)&&this.se(b);n(c)&&this.H!=
c&&(this.o.za(c),this.H=c,EB(this));EB(this)}z(DB,Y);f=DB.prototype;f.se=function(a){this.G!=a&&(this.F.za(a),this.G=a,EB(this))};f.re=function(){this.A=!1;EB(this)};f.UF=function(a){a.target&&(ce(this.o.Q(),a.target)||ce(this.j.Q(),a.target))||this.re()};f.VF=function(){this.A=!this.A;EB(this);this.A&&this.o.Q().focus()};function FB(a,b){b>a.C&&(a.C=b,a.element.style.minWidth=a.C+"px")}f.focus=function(){this.j.Q().focus()};
function EB(a){a.A?(a.o.va(),a.B.M(window,"blur",a.re),a.B.M(document,"click",a.UF)):(a.o.$(),a.B.removeAll());var b=$g(a.j.Q());a.o.Q().style.bottom=b.height-1+"px";FB(a,b.width)};function GB(a,b){Xz.call(this,a,"ytp-drop-down-menu-button");uv(this,"option");this.o=new Y(["div","ytp-drop-down-menu-button-check"]);R(this,this.o);this.F=!!b}z(GB,Xz);GB.prototype.za=function(a){GB.K.za.call(this,[this.o,a])};GB.prototype.j=function(a){O(this.element,"ytp-drop-down-menu-button-selected",a);this.F||O(this.element,"ytp-drop-down-menu-button-checked",a);this.element.setAttribute("aria-checked",a)};function HB(a,b){O(a.element,"ytp-drop-down-menu-button-checked",b)};function IB(a,b,c,d){Y.call(this,["div","ytp-drop-down-menu-content",{tabindex:"{{tabindex}}"},"{{content}}"]);this.I=a;this.F=!!d;this.B={};this.C=[];this.o=this.A=null;this.G=b;this.H=c}z(IB,Y);function JB(a,b){Cb(a.C,b)||(Hb(a.B,function(a){a.detach()}),a.C=[],b&&D(b,function(a){this.C.push(a);var b=KB(this,a);this.F&&HB(b,a==this.o);b.j(a==this.A);b.ea(this.element)},a))}IB.prototype.j=function(a){null!=this.A&&KB(this,this.A).j(!1);null!=a&&KB(this,a).j(!0);this.A=a;this.F||(this.o=a)};
function LB(a,b){var c=KB(a,"translate");b?c.disable():$z(c)}function MB(a,b){Hb(a.B,function(a){Zz(a,b)})}function KB(a,b){var c=a.B[b.toString()];if(c)return c.za(a.G(b)),c;c=new GB(a.I,a.F);R(a,c);a.B[b.toString()]=c;c.za(a.G(b));c.M("click",x(a.H,a,b));return c};function NB(a,b,c,d,e,g){Wz.call(this);this.N=b;this.O=c;this.J=d;this.S=e;this.I=g;this.o={};this.o.off=Z("YTP_LANGUAGE_OFF");this.o.translate=Z("YTP_TRANSLATE_MENU_ITEM");this.o.contribute=Z("YTP_CONTRIBUTE_MENU_ITEM");this.label=Z("YTP_SUBTITLES");this.j=new IB(a,x(this.G,this),x(this.R,this));R(this,this.j);this.element=new DB(a,void 0,this.j);R(this,this.element);FB(this.element,150);this.element.kb(this.label);this.priority=1;this.C=!0;this.F=this.D=!1;OB(this,[]);this.off()}z(NB,Wz);
NB.prototype.H=function(){this.J()};function OB(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]=Kt(e));c.push(g)}c.push("translate");a.F&&c.push("contribute");JB(a.j,c);LB(a.j,!a.D);c=KB(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;MB(a.j,c++);c=c++;Zz(a.element.j,c)}function PB(a,b){a.o[b]&&(a.j.j(b),a.element.se(a.G(b)))}NB.prototype.off=function(){PB(this,"off")};
NB.prototype.G=function(a){return this.o[a]};NB.prototype.R=function(a){this.element.re();"off"==a?this.N():"translate"==a?this.S():"contribute"==a?this.I():this.O(a,!0)};function QB(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Z("YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];Y.call(this,b);var c=Z("YTP_DISMISS"),b=new Xz(a,"ytp-dialog-button",c);R(this,b);b.za(c);b.M("click",pa(this.$b,"change"),this);Zz(b,1400);var c=Z("YTP_CANCEL"),d=new Xz(a,"ytp-dialog-button",c);R(this,d);d.za(c);d.M("click",pa(this.$b,"cancel"),this);Zz(d,1500);this.A=new IB(a,x(this.B,this),
x(this.F,this),!0);R(this,this.A);this.A.element.style.maxHeight="100px";this.o=new DB(a,void 0,this.A);R(this,this.o);FB(this.o,200);this.o.kb(Z("YTP_TRANSLATE_DIALOG_TITLE"));this.C=null;this.template.update({content:this.o,buttons:[b,d]})}z(QB,wB);QB.prototype.j=function(a){this.C=a;this.o.se(a?this.B(a):null)};QB.prototype.F=function(a){this.o.re();this.j(a)};QB.prototype.B=function(a){return a.Wi?a.languageName+" -- "+a.Wi:a.languageName};QB.prototype.focus=function(){this.o.focus()};function RB(a){rB.call(this,a,"ytp-settings-button",Z("YTP_SETTINGS"),"ytp-settings-button-active");Zz(this,6600);this.element.setAttribute("aria-haspopup",!0);this.element.id="settings_button";this.o=new Y(["div","{{content}}"]);R(this,this.o);this.za(this.o);SB(this,"")}z(RB,rB);
function SB(a,b){"highres"==b?a.o.za("ytp-settings-8k-quality-badge"):"hd2880"==b?a.o.za("ytp-settings-5k-quality-badge"):"hd2160"==b?a.o.za("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.o.za("ytp-settings-hd-quality-badge"):a.o.za("")};function TB(a){this.anchorPoint=7;this.Zi=50;this.be=100;this.pD=80;this.dg=0;this.textAlign=2;this.backgroundColor="#080808";this.color="#fff";this.fD=this.xo=1;this.Cd=15;this.Zk=32;this.isVisible=!0;this.fontFamily=4;this.j=0;this.bold=!1;this.offset=1;this.lw=3;a=a||fB;qa(this,a)};function UB(a,b){this.id=a;this.Ea=new TB(b);var c="caption-window";0==this.id&&(c+=" standard-caption-window");this.Ja=I("div",{id:"caption-window-"+this.id,"class":c});this.Vb=I("span",{"class":"captions-text",style:"visibility: hidden"});this.Vb.innerHTML="C";this.Sa=I("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.oh=I("div",{"class":"caption-window-transform"});this.oh.appendChild(this.Sa);this.Ja.appendChild(this.oh);this.j=1}UB.prototype.id=0;f=UB.prototype;
f.Ea=null;f.yg="";f.Ec=null;f.Ja=null;f.oh=null;f.Sa=null;f.Vb=null;f.type=0;
f.Dd=function(a,b){a&&qa(this.Ea,a);var c=this.Ea.charEdgeStyle,d=this.Ea.textOpacity,e="";if(0!=c){var g="rgba(34, 34, 34, "+d+")",h="rgba(204, 204, 204, "+d+")";this.Ea.charEdgeColor&&(h=g=this.Ea.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.Ea.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=by(this.Ea.color),h=by(this.Ea.background),k="rgba("+k[0]+","+k[1]+","+k[2]+","+d+")",d=this.Ea.offset||1;Ig(this.Sa,{color:k,fill:k,"background-color":"rgba("+h[0]+","+h[1]+","+h[2]+","+this.Ea.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":g,"font-weight":this.Ea.bold?"bold":"","font-style":this.Ea.italic?"italic":"","text-decoration":this.Ea.underline?
"underline":"","vertical-align":dB[d]});b&&(this.j=b.height/360);e=by(this.Ea.windowColor);c=this.Ea.windowOpacity;g=this.Ea.fontSizeIncrement||0;1!=d&&(g*=.8);Ig(this.oh,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*g)*this.j)+"px"})};f.Gi=function(){var a;this.Vb.style.fontFamily=this.Sa.style.fontFamily;this.Ja.appendChild(this.Vb);a=this.Vb.offsetHeight;this.Ja.removeChild(this.Vb);return a};
f.We=function(){this.Sa&&(0!=this.id&&98!=this.id&&(Zg(this.Ja,"100%"),Zg(this.Ja,this.Sa.offsetWidth+1)),VB(this),Sw(this.Ja,this.Ea.isVisible))};function VB(a){Og(a.Ja,a.Ea.Zi+"%",a.Ea.be+"%");for(var b=0;8>=b;b++)th(a.Ja,"anchor-point-"+b);N(a.Ja,"anchor-point-"+a.Ea.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.Dd(WB(c))}this.Zd(b.join("\n"));this.Ec=a};
f.Zd=function(a){this.yg=a=XB(a);this.Sa.innerHTML=this.yg;this.Ja.style.textAlign=eB[this.Ea.textAlign];1==this.Ea.dg?this.Sa.setAttribute("dir","rtl"):this.Sa.removeAttribute("dir");this.We()};f.toString=function(){var a="Caption window ("+this.id+"): "+this.yg,b;for(b in this.Ea)a+=b+" "+this.Ea[b]+" | ";return a};function XB(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.ni=function(){this.Ec=[];this.Zd("")};function YB(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=ZB();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function $B(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 aC(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 bC(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 ZB(){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 cC(){this.o=[];this.j=[]};function dC(a,b,c,d,e,g,h){Qs.call(this,a,a+b,{priority:c});this.o=d;this.j=e;this.A=g||!1;this.B=h||null}z(dC,Qs);dC.prototype.toString=function(){return dC.K.toString.call(this)};
function eC(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 dC(c,d,a?6:5,e,b,a)}function fC(a,b,c,d,e,g,h){Qs.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;gC(this)}z(fC,Qs);fC.prototype.C=!1;
function hC(a){return a.params.qz?a.params.qz:a.params.gD?2:a.o?1:0}function iC(){return new fC(0,2147483647,0,0,fB)}function gC(a){a.A&&qa(a.params,WB(a.A));a.B&&qa(a.params,WB(a.B))};function jC(a){cC.call(this);this.j.push(iC());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=eC(a[b]);this.o.push(d)}}z(jC,cC);function kC(a){cC.call(this);this.A={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=parseInt(b.getAttribute("id"),10);i:{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 i;case "define":e=null}e?e.C=!0:e=iC();var g={};qa(g,e?e.params:fB);d.getAttribute("id")&&(g.id=d.getAttribute("id"));
d.getAttribute("op")&&(g.IK=d.getAttribute("op"));d.getAttribute("rc")&&(g.Cd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(g.Zk=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.Zi=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(g.be=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.dg=1,0==parseInt(d.getAttribute("pd"),10)&&(g.dg=0));d.getAttribute("bc")&&(g.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(g.xo=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(g.color=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(g.gD=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 fC(b,e,0,d,g)}else b=null}this.A[c]=b;this.j.push(b);break;case "text":c=eC(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(iC())}z(kC,cC);function lC(a){this.parent=a||null;this.j={}}function mC(a,b,c){var d=a.j[b];if(void 0!=d)return d;if(a.parent&&(void 0==c||c))return mC(a.parent,b)}function nC(a,b,c){void 0!=c&&(a.j[b]=c)}function oC(a,b,c){void 0!=c&&(a.j[b]=c)}function WB(a){var b=a.parent?WB(a.parent):{};qa(b,a.j);return b};function pC(a){cC.call(this);var b={nj:{},sn:{},tn:{}},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=qC(e,"p"),k=void 0;h&&g.nj[h]&&(k=g.nj[h]);g=new lC(k);nC(g,"id",qC(e,"id"));h=rC(e,"b");void 0!=h&&(g.j.bold=h);h=rC(e,"i");void 0!=h&&(g.j.italic=h);h=rC(e,"u");void 0!=h&&(g.j.underline=h);nC(g,"charEdgeStyle",sC(e,"et"));nC(g,"offset",
sC(e,"of"));nC(g,"textType",sC(e,"tt"));oC(g,"background",tC(e,"bc"));oC(g,"charEdgeColor",tC(e,"ec"));oC(g,"color",tC(e,"fc"));h=sC(e,"fs");void 0!=h&&0!=h&&nC(g,"fontFamily",h);h=qC(e,"sz");void 0!=h&&nC(g,"fontSizeIncrement",h/100-1);h=qC(e,"bo");void 0!=h&&nC(g,"backgroundOpacity",h/255);e=qC(e,"fo");void 0!=e&&nC(g,"textOpacity",e/255);e=mC(g,"id",!1);b.nj[e]=g;break;case "ws":g=uC(b,e);e=mC(g,"id",!1);b.tn[e]=g;break;case "wp":g=vC(b,e),e=mC(g,"id",!1),b.sn[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=wC(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=qC(l,"t")||0,p=qC(l,"d")||0,r=l.textContent||"",u=qC(l,"w")||0,C=!!rC(l,"a"),V=C?6:5,l=qC(l,"p"),h=new dC(k,p,V,u,r,C,l?h.nj[l]:null),k=c[h.o];k||(k=wC(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)}}z(pC,cC);function qC(a,b){var c=a.getAttribute(b);if(null!=c)return parseFloat(c)}
function rC(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c}function sC(a,b){var c=qC(a,b);if(void 0!=c)return c}function tC(a,b){var c=a.getAttribute(b);if(null!=c)return aB.test(c),c}
function uC(a,b){var c=qC(b,"ws"),d;c&&a.tn[c]&&(d=a.tn[c]);c=new lC(d);nC(c,"id",qC(b,"id"));nC(c,"modeHint",sC(b,"mh"));nC(c,"textAlign",qC(b,"ju"));nC(c,"textPrintDirection",sC(b,"pd"));nC(c,"textScrollDirection",sC(b,"sd"));nC(c,"windowBorderType",sC(b,"et"));oC(c,"windowBorderColor",tC(b,"wbc"));oC(c,"windowColor",tC(b,"wfc"));d=qC(b,"wfo");void 0!=d&&nC(c,"windowOpacity",d/255);return c}
function vC(a,b){var c=qC(b,"wp"),d;c&&a.sn[c]&&(d=a.sn[c]);c=new lC(d);nC(c,"anchorPoint",sC(b,"ap"));nC(c,"colCount",qC(b,"cc"));nC(c,"id",qC(b,"id"));nC(c,"leftPercentage",qC(b,"ah"));nC(c,"rowCount",qC(b,"rc"));nC(c,"topPercentage",qC(b,"av"));return c}function wC(a,b){var c=qC(b,"id")||0,d;d=qC(b,"t");var e=qC(b,"d")||2147483647,g=vC(a,b),h=uC(a,b);return new fC(d,e,0,c,null,g,h)};function xC(a,b){cC.call(this);this.j.push(iC());for(var c=a.split(yC),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(zC))e=null;else{var h=e.split(AC),k=0,l=h[k++].match(BC);l||(l=h[k++].match(BC));l?(e=CC(l[1],g)||0,g=CC(l[3],g)||0,h=h.slice(k).join("\n"),e=new dC(e,g-e,5,0,h)):e=null}e&&this.o.push(e)}}z(xC,cC);var zC=/NOTE/,yC=/(?:\r\n|\r|\n){2,}/,AC=/\r\n|\r|\n/,BC=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function CC(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 DC(a,b){this.j=[];this.o=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new xC(a,b||0):(c=YB(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new pC(c):new kC(c):new jC(c):null:null;c&&(this.o=c.j,this.j=c.o)};function EC(){this.A=[];this.j=[];this.o=-1}function FC(a,b){return b?a.j.concat(a.A):a.j}function GC(a,b){switch(b.B){case "asr":return HC(b,a.A);default:if(b.isDefault||0>a.o)a.o=a.j.length;return HC(b,a.j)}}function HC(a,b){return F(b,x(a.equals,a))?!1:(b.push(a),!0)}function IC(a,b){var c=ib(a.j,x(b.equals,b));-1!=c&&(a.o=c)};function JC(a){this.Sp=!!a;this.o=new EC;this.B=[]}z(JC,Q);function KC(a,b){return F(FC(a.o,!0),function(a){return a.toString()==b})}f=JC.prototype;f.dp=function(a){var b=this.o.o,c=FC(this.o,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};f.Nd=function(){return null};f.seek=function(){};f.kn=function(){};f.P=function(){JC.K.P.call(this);this.kn()};function LC(a){JC.call(this,a.ii);this.A=null;this.B=a.ge}z(LC,JC);f=LC.prototype;f.Ko=function(){for(var a=[],b=FC(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:d.A,srclang:d.j,src:MC(d)};d.isDefault&&(e["default"]=1);a.push(I("track",e))}return a};f.sm=function(a,b){var c=MC(a),d=x(function(c){this.j=null;c=new DC(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=Kj(c,{format:"RAW",jb:d,withCredentials:!0});this.A&&this.A.Ai!=a&&(this.A.jl=a)};
f.tm=function(a,b,c,d){if(this.A=d||null)for(b=0;b<this.A.captionTracks.length;b++)GC(this.o,this.A.captionTracks[b]);a()};function MC(a){var b=a.H,c={};a.C&&(c.fmt="srv"+a.C);a.o&&(c.tlang=a.o.languageCode);return Cj(b,c)}f.Nd=function(){return this.A?this.A.Ai:null};f.dp=function(){return this.A?this.A.jl:null};f.P=function(){this.j&&this.j.abort();LC.K.P.call(this)};function NC(){this.H=1;this.A=20971520;this.o=8388608;this.G=NaN;this.j=5242880;this.ya=NaN;this.J=2;this.R=25;this.F=2097152;this.C=!1;this.B=1800;this.D=Nt.auto;this.S=!0;this.liveChunkReadahead=3;this.O=rs("xboxone");this.I=0;this.Ga=this.V=this.Y=this.U=this.N=!1};function OC(){this.oa=[]}OC.prototype.contains=function(a){a=xb(this.oa,a);return 0<=a||0>a&&1==(-a-1)%2};OC.prototype.length=function(){return this.oa.length/2};function PC(a,b){Q.call(this);this.ba=b;this.F=new OC;this.B=!0;this.G=this.j=this.C=this.D=this.o=null;this.A=0}z(PC,Q);PC.prototype.P=function(){Wf(this.A);this.A=0;this.B=!0;this.j&&this.j.abort()};PC.prototype.resume=function(){this.B=!1;Wf(this.A);this.seek(this.ba.getCurrentTime());QC(this)};PC.prototype.seek=function(a){this.o=ab(this.G.Hi(a).j)};function RC(a,b){a.D=b}
function SC(a){var b;if(b=!a.B&&null!==a.o)b=a.o,b=b.j.zh(b);return b&&!a.j&&!(a.o&&30<a.o.startTime-a.ba.getCurrentTime())}
function TC(a){var b;b=a.o;b=UC(b.j,b);if(!a.F.contains(b.j[0].B)){var c=VC(WC(b));a.j=Kj(c,{format:"RAW",xc:x(a.H,a),withCredentials:!0});a.C=b;var c=a.F,d=a.C.j[0].B,e=xb(c.oa,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.oa[e-1]&&e<c.oa.length&&1==c.oa[e]-d?(pb(c.oa,e),pb(c.oa,e-1)):0<e&&1==d-c.oa[e-1]?c.oa[e-1]=d:e<c.oa.length&&1==c.oa[e]-d?c.oa[e]=d:(ub(c.oa,e,0,d),ub(c.oa,e+1,0,d)))}a.o=ab(b.j)}
PC.prototype.H=function(a){null==a.responseText||400<=a.status||this.B||null===this.D||(a=new DC(a.responseText,1E3*this.C.j[0].startTime),this.D(a));this.j=this.C=null};function QC(a){a.A=Vf(x(function(){SC(this)&&TC(this)},a),1E3);SC(a)&&TC(a)};function XC(a,b){JC.call(this);this.A=a;this.j=new PC(new NC,b)}z(XC,JC);f=XC.prototype;f.sm=function(a,b){RC(this.j,function(c){b(c,a)});this.j.G=this.A.j[a.j];this.j.resume()};f.tm=function(a){GC(this.o,new It({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.kn=function(){var a=this.j;Wf(a.A);a.A=0;a.B=!0};f.P=function(){this.j.dispose();XC.K.P.call(this)};function YC(a,b){UB.call(this,a,b);this.Sa.style.display="block";this.Sa.style.padding="0";this.nc=[];var c=this.Sa;th(c,"captions-text");N(c,"caption-painton-text-rows")}z(YC,UB);f=YC.prototype;f.type=1;f.wt="";f.gn="";f.lh=!1;f.Ub=null;f.nc=null;f.Gi=function(){return this.nc[0]?this.nc[0].offsetHeight:0};function ZC(a){return a.nc.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.We=function(){0!=this.id&&(Zg(this.Ja,"100%"),Zg(this.Ja,this.lh?ZC(this):this.Ub.width));var a=Math.round(this.Ea.Cd*this.Gi());this.Ja.style.maxHeight=a+"px";VB(this);Sw(this.Ja,this.Ea.isVisible)};
f.Zd=function(a){this.ni();a=XB(a);this.lh||(this.yg=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.gn;d.appendChild(e);e.innerHTML=a[b];this.lh||(this.Sa.style.height=this.Ub.height+"px",this.Sa.style.width=this.Ub.width+"px",d.style.position="absolute",d.style.top=this.Ub.Ir[b]+"px",d.style.left=this.Ub.Hr[b]+"px");this.Sa.appendChild(d);this.nc.push(e)}this.We()};
f.ni=function(){for(var a=0,b=this.nc.length;a<b;a++){var c=ne(this.nc[a],"caption-row-holder");Wd(c)}this.nc=[]};f.Dd=function(a){YC.K.Dd.call(this,a);this.gn=this.Sa.style.backgroundColor;this.Sa.style.backgroundColor="";a=0;for(var b=this.nc.length;a<b;a++)this.nc[a].style.backgroundColor=this.gn};function $C(a,b){UB.call(this,a,b);this.Ec=[];this.Kd=[];this.Rb=[];this.Yf=new xn(433);this.Yf.stop();P(this.Yf,"tick",x(this.rB,this))}z($C,UB);f=$C.prototype;f.type=2;f.lz=32;f.Rb=null;f.Jd=0;f.Kd=null;f.Yf=null;f.We=function(){Zg(this.Ja,"100%");var a=this.Ja.offsetWidth,a=Math.min(aD(this),a);Zg(this.Ja,a+"px");Zg(this.oh,"100%");this.Sa.style.whiteSpace="nowrap";VB(this);Sw(this.Ja,this.Ea.isVisible)};
f.Tr=function(a){var b=a.length;if(0>=b)this.ni();else{for(var c=0;c<b&&0<=this.Ec.indexOf(a[c]);)c++;this.Ec=this.Ec.concat(a.slice(c));bD(this)}};f.ni=function(){this.Ec=[];this.Rb=[];this.Jd=0;this.Rb=[];this.Kd=[];cD(this)};
function bD(a){if(!dD(a))if(a.Jd>=a.Ec.length)cD(a);else{var b=a.Rb.length-1;0>b&&(a.Kd.push(0),a.Jd=0,a.Rb.push(""),b=0);for(var c=a.Ec.length,d=a.Jd;d<c;d++){var e=a.Ec[d];if("\n"==e.j){a.Jd++;a.Kd[b]++;break}if(e.A||0==a.Rb[b].length)a.Rb[b]+=e.j,a.Jd++,a.Kd[b]++;else break}cD(a);d<c&&!dD(a)&&(b=a.Gi(),N(a.Sa,"caption-rollup"),a.Ja.style.overflow="hidden",a.Sa.style.top=-b+"px",a.Yf.start())}}function dD(a){return a.Yf.enabled||rh(a.Sa,"caption-rollup")}
f.rB=function(){this.Ja.style.overflow="visible";this.Sa.style.top=0;this.Yf.stop();th(this.Sa,"caption-rollup");this.Rb.push("");this.Kd.push(0);bD(this)};function cD(a){if(!dD(a)){for(;a.Rb.length<a.Ea.Cd;)a.Rb.unshift(""),a.Kd.unshift(0);for(;a.Rb.length>a.Ea.Cd;){a.Rb.shift();var b=a.Kd.shift();0<b&&(a.Jd-=b,a.Ec.splice(0,b))}a.Zd(a.Rb.join("\n"))}}
function aD(a){a.Vb.style.fontFamily=a.Sa.style.fontFamily;a.Vb.style.fontSize=a.Sa.style.fontSize;a.Sa.appendChild(a.Vb);a.Vb.innerHTML="\u2014";var b=a.Vb.offsetWidth;a.Vb.innerHTML="&nbsp;";b=2*a.Vb.offsetWidth+b*a.lz;a.Sa.removeChild(a.Vb);return b};function eD(a,b,c,d){JC.call(this,d);c||(c=zj(a).hl||"",c=c.split("_").join("-"));this.A=Cj(a,{hl:c});this.C=b;this.D={};this.j=null}z(eD,JC);eD.prototype.Ko=function(){for(var a=[],b=FC(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e=fD(this,d),e={kind:"subtitles",label:d.A,srclang:d.j,src:e};d.isDefault&&(e["default"]=1);a.push(I("track",e))}return a};
eD.prototype.sm=function(a,b){var c=fD(this,a),d=x(function(c){this.j=null;c=new DC(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=Kj(c,{format:"RAW",jb:d,withCredentials:!0});IC(this.o,a)};
eD.prototype.tm=function(a,b,c){var d=this.A;b={type:"list",tlangs:1,v:this.C,fmts:Number(b||!1),vssids:1};this.Sp&&(b.asrs=1);d=Cj(d,b);b=x(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"),C=h[l].getAttribute("lang_translated"),V=h[l].getAttribute("name"),U=h[l].getAttribute("kind"),ia=h[l].getAttribute("id"),Ba="true"==h[l].getAttribute("lang_default"),
Le="true"==h[l].getAttribute("cantran"),bh=h[l].getAttribute("vss_id"),p=new It({formats:p,format:r,languageCode:u,languageName:C,name:V,kind:U,id:ia,is_servable:!0,is_default:Ba,is_translateable:Le,vss_id:bh});GC(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 Ht(k))}a()},this);this.j&&this.j.abort();this.j=Kj(d,{format:"RAW",jb:b,withCredentials:!0})};function fD(a,b){var c=a.A,d={v:a.C,type:"track",lang:b.j,name:b.A,kind:b.B,fmt:b.C};b.o&&(d.tlang=b.o.languageCode);return c=Cj(c,d)}eD.prototype.P=function(){this.j&&this.j.abort();eD.K.P.call(this)};function gD(a){at.call(this,a);Yf({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.fi=!0;this.ga=this.V=this.ua=!1;this.Fa=new Nv(this);this.G=a.W();this.C=null;this.O=a.T.A;this.na=this.da=null;this.ca=[];this.N={};this.aa={};this.sa=this.Ca=this.H=this.Aa=!1;this.ma=new UB(99,hB);this.B=this.A=this.F=null;this.Da=!1;this.I=this.J=0;this.U=new vB(qt(this));R(this,this.U);
this.U.M("click",this.nz,this);this.pa=this.xa+"-mdx";this.ta=new RB(qt(this));R(this,this.ta);N(this.ta.Q(),"ytp-mdx-settings-button");this.ta.M("click",this.WE,this);this.D=new NB(qt(this),x(this.xm,this),x(this.aq,this),x(this.XC,this),x(this.YC,this),x(this.vz,this));this.R=new yB(qt(this));R(this,this.R);this.R.M("change",x(this.de,this,!0));this.R.M("cancel",this.qy,this);this.R.M("select",this.dr,this);this.Y=new QB(qt(this));R(this,this.Y);this.Y.M("change",this.OB,this);this.Y.M("cancel",
this.Lg,this);this.subscribe("onResize",x(this.Fq,this));this.subscribe("onBackgroundChange",x(this.LC,this));this.subscribe("onTextOpacityChange",x(this.MC,this));this.subscribe("onWindowOpacityChange",x(this.NC,this));this.subscribe("onFontSizeIncrease",x(this.AA,this));this.subscribe("onFontSizeDecrease",x(this.zA,this));this.subscribe("onCaptionsToggle",x(this.IB,this));this.subscribe("onPlaybackAudioChange",x(this.Nz,this))}z(gD,at);gD.prototype.xa="captions";gD.prototype.Cc="cc";
gD.prototype.Zm="subtitlesModuleData";var hD={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function iD(a){return"3"!=a.G.o?!1:!!a.O.o.textTracks}function jD(a,b,c,d,e){w(a.o[b])&&(a.o[c]=d.indexOf(a.o[b]),-1==a.o[c]&&(a.o[c]=e),delete a.o[b])}f=gD.prototype;
f.Na=function(){gD.K.Na.call(this);this.C=this.j.getVideoData();-1==iB.indexOf(this.G.ga)&&N(this.j.Ma(),"cc-international");this.o=Yb(hD);qa(this.o,jt(this,"display-settings"));jD(this,"fontFamilyOption","fontFamily",bB,hD.fontFamily);jD(this,"charEdgeStyle","charEdgeStyle",cB,hD.charEdgeStyle);CB(this.R,this.o);this.na=new Y(["div",["ytp-player-content","ytp-subtitles-player-content"]]);this.na.ea(this.j.Ma());this.da=this.na.Q();iD(this)||(rt(this,this.xa,this.U),kD(this));(this.C.captionTracks.length&&
lD(this.j.T,1).Ai||mD(this,!0))&&this.load()};f.destroy=function(){this.na.detach();this.na.dispose();this.da=null;ut(this,this.D);st(this,this.xa);gD.K.destroy.call(this)};function mD(a,b){if(b&&a.C.captionTracks.length){var c=lD(a.j.T,1).Ao;if(2==c||3==c)return!0}if(1==a.G.C.cc_load_policy||1==a.C.zo||"alwayson"==a.C.Fc("yt:cc")||iD(a))return!0;c=jt(a,"module-enabled");return null!=c?!!c:"on"==a.C.Fc("yt:cc")}
function nD(a){a.B&&a.B==a.A.Nd()&&oD(a);a.A.tm(x(a.nr,a),!0,iD(a)?"vtt":void 0,lD(a.j.T,1))}
f.load=function(){this.sa="alwayson"==this.C.Fc("yt:cc");this.Ca="1"==this.C.B.cc_auto_caps||"1"==this.G.C.cc_auto_caps;this.D.F=this.C.Da;gD.K.load.call(this);this.ua=!0;if(this.C.Qa)this.A=new XC(this.C.j,this.j),this.subscribe("seekto",this.vt,this);else{var a=this.C.B.cc_lang_pref||this.G.C.cc_lang_pref||this.C.Fc("yt:cc_default_lang")||this.G.ga,a=a&&a.split("_").join("-");this.C.captionTracks.length?this.A=new LC(this.C):this.A=new eD(this.C.ji,this.C.videoId,a,this.C.ii)}nD(this)};
f.WE=function(){this.loaded||this.load()};f.unload=function(){this.Yb&&(st(this,this.pa),this.D.A=null,pD(this,!1),this.wj("control_subtitles_set_track"));if(iD(this)){var a;a=Gd("track",void 0,void 0);for(var b=0;b<a.length;b++)Wd(a[b])}else qD(this,!1),oD(this),this.qa("seekto",this.vt,this),this.A.dispose(),this.A=null,this.Lg();this.H=this.ga=this.V=this.ua=!1;gD.K.unload.call(this)};f.Pa=function(){};
f.nr=function(){this.ua=!1;if(iD(this))for(var a=this.O.o,b=this.A.Ko(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(a=this.Y,b=this.A.B,JB(a.A,b),MB(a.A,1E3),qv(a.A.template,"tabindex",1E3),Zz(a.o.j,1001),b.length?a.j(b[0]):a.j(null),c=this.H||mD(this,!this.ga),b=FC(this.A.o,!0),0<b.length){this.Pa("Caption track list loaded, found "+b.length+" tracks.");this.ga=!0;OB(this.D,b);a=this.B&&-1!=b.indexOf(this.B);if(c&&!a)if(c=this.A.dp(),!c&&this.H&&(c=b[0]),c)this.Aa=!0,rD(this,c),a=!0;else if(this.V||
sD(this),b=this.A.o.A,b.length&&(b=b[0].toString(),this.H||this.Ca))this.aq(b),a=!0;this.L("publish_external_event","onCaptionsTrackListChanged");a||tD(this)}else this.A.Nd()?tD(this):(this.Pa("No captions found."),a=this.j,(b=mr(a.T.F,this.xa))&&uD(a.T.F,b))};function sD(a){a.V=!0;iD(a)||(a.de(),a.Fq())}
f.NB=function(a,b){this.Aa&&(this.Aa=!1,this.L("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.B||!b.equals(this.B))){oD(this);this.B=b;this.Da=lc.test(b.j);var c={trackName:b.A,trackKind:b.B};b.o?(c.trackLangCode=b.o.languageCode,c.fromLangCode=b.j):c.trackLangCode=b.j;this.log(c);if(b!=this.A.Nd()){this.H&&(c=Kt(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=Zf("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.da.appendChild(this.ma.Ja),this.ma.Zd(c),this.ma.Dd(this.o,this.O.sb()),this.I||(this.I=L(x(this.Ar,this),2E3)));this.L("publish_external_event","captionschanged",Jt(b));sB(this.U);var c=this.D,d=!this.sa&&0<this.A.B.length;c.D=d;LB(c.j,!d);PB(this.D,b.toString());kt(this,"module-enabled",!0);this.L("vss_segment")}}this.V||sD(this);bt(this,a.o.concat(a.j))};function tD(a){a.A.Nd()&&rD(a,a.A.Nd())}f.Jc=function(a){this.ca.push(a);this.J||(this.J=L(x(this.Sj,this),0))};
f.Yc=function(a){ob(this.ca,a);this.J||(this.J=L(x(this.Sj,this),0))};
f.DC=function(a){if(this.B)if(a instanceof fC){var b=this.N[a.id];qa(a.params,this.o);gC(a);b&&b.type!=hC(a)&&(Wd(b.Ja),delete this.N[a.id],b=null);if(!b){var b=this.N,c=a.id,d;i:{d=a.id;var e=a.params;switch(hC(a)){case 1:d=new YC(d,e);break i;case 2:d=new $C(d,e);break i;default:d=new UB(d,e)}}b=b[c]=d;c=b.Ja;O(c,"captions-asr","asr"==this.B.B);null!=a.params.dg&&(a.params.dg=this.Da?1:0);this.da.appendChild(c)}b.Dd(a.params,this.O.sb());if(1==hC(a)){b.wt=a.j;b.Ub={};b.lh=!0;b.Zd(b.wt);b.Ub.Cd=
b.nc.length;b.Ub.width=b.Ja.offsetWidth;b.Ub.height=b.Ja.offsetHeight;b.Ub.Hr=[];b.Ub.Ir=[];for(a=0;a<b.Ub.Cd;a++)b.Ub.Ir.push(b.nc[a].offsetTop),b.Ub.Hr.push(b.nc[a].offsetLeft);b.lh=!1;b.Zd(b.yg)}}else b=a.o,this.aa[b]||(this.aa[b]=[]),this.aa[b].push(a)};f.Fq=function(){this.V&&(this.de(),Hb(this.N,function(a){a.We()},this))};
function vD(a){var b=[];Hb(a.N,function(a){a instanceof YC&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Ea.be-a.Ea.be});var c=wD(a.O).height,d=b[0].Ea.be;D(b,function(a){a.Ea.be=d;var b=Math.round(a.Ea.Cd*a.Gi());d-=Math.round(b/c*100);a.We()},a)}}f.Ar=function(){this.I=0;Wd(this.ma.Ja)};
f.Sj=function(){this.J=0;this.V&&(Vb(this.aa),this.ca.sort(Ts),D(this.ca,this.DC,this),Hb(this.N,function(a,b){this.aa[b]?a.Tr(this.aa[b]):(Wd(a.Ja),delete this.N[b])},this),vD(this),this.F&&this.F.We(),this.Pa("Refreshing caption display..."))};function xD(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.de(!0)}}f.LC=function(){xD(this,"backgroundOpacity",kB)};f.MC=function(){xD(this,"textOpacity",lB)};
f.NC=function(){xD(this,"windowOpacity",kB)};f.zA=function(){yD(this,-1)};f.AA=function(){yD(this,1)};function yD(a,b){var c=a.o.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.o.fontSizeIncrement=c;a.de()}function oD(a){if(a.B){a.B=null;dt(a);a.ca=[];a.B=null;a.Sj();tB(a.U);a.D.off();var b=a.D;b.D=!1;LB(b.j,!0);a.A.kn()}}
function rD(a,b,c){!b||a.B&&b.equals(a.B)||(null!=c&&(a.H=c),a.Yb?(a.B=b,pD(a,!0),a.wj("control_subtitles_set_track",Jt(b)),a.V||sD(a)):(a.A.sm(b,x(a.NB,a)),a.ua=!0,PB(a.D,b.toString())))}f.aq=function(a,b){var c=KC(this.A,a);rD(this,c,b);vt(this)};f.YC=function(){this.sa||(gt(this,this.Y),vt(this))};f.OB=function(){if(!this.sa){this.Lg();var a=this.Y.C;if(a){a=Lt(this.B,a);if(GC(this.A.o,a)){var b=a.toString();OB(this.D,FC(this.A.o,!0));PB(this.D,b)}rD(this,a,!0)}}};
f.qy=function(){this.Lg();this.Yb&&this.B&&this.wj("control_subtitles_set_track",Jt(this.B))};f.dr=function(){delete this.o;this.o=Yb(hD);CB(this.R,this.o);kt(this,"display-settings",this.o);this.de()};f.de=function(a){var b=this.O.sb();Hb(this.N,function(a){a.Dd(this.o,b)},this);this.F&&this.F.Dd(this.o,b);this.ma.Dd(this.o,b);this.Sj();n(a)&&!a||kt(this,"display-settings",this.o)};f.nz=function(){this.H=!0;zD(this)};function zD(a){a.loaded?a.B&&a.B!=a.A.Nd()?a.xm():a.nr():a.load()}
f.xm=function(){this.loaded&&(this.I&&(M(this.I),this.Ar()),kt(this,"module-enabled",!1),this.L("vss_segment"),oD(this),vt(this),this.H=!1,this.Yb?(pD(this,!1),this.wj("control_subtitles_set_track")):this.L("publish_external_event","captionschanged",{}),tD(this))};f.XC=function(){gt(this,this.R);vt(this)};f.vz=function(){ht(this,this.G.B+"timedtext_video?v="+this.C.videoId);vt(this)};function AD(a){return gD.prototype.Ha(a)?new gD(a):null}
f.kg=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.o.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.de()),this.o.fontSizeIncrement;case "reload":b&&nD(this);break;case "stickyLoading":this.G.Hb()&&kt(this,"module-enabled",!!b);break;case "track":if(b){if(!ja(b))break;if(Ub(b)){this.xm();break}for(var c,d=FC(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?Lt(g,b.translationLanguage):g)}c&&(rD(this,c,!0),PB(this.D,
c.toString()))}else return this.B&&this.B!=this.A.Nd()?Jt(this.B):{};return"";case "tracklist":return this.ga?E(FC(this.A.o,b&&b.includeAsr),function(a){return Jt(a)}):[];case "translationLanguages":return this.ga?this.A.B:[];case "displaySettings":return b&&ja(b)&&BD(this,b),c=Yb(this.o),c.fontFamilyOption=bB[c.fontFamily],c.charEdgeStyle=cB[c.charEdgeStyle],c;case "sampleSubtitles":qD(this,!!b)}};
function qD(a,b){if(b&&!a.F){a.F=new UB(98,gB);a.da.appendChild(a.F.Ja);var c=a.F,d=Zf("YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.Zd(d));a.F.Dd(a.o,a.O.sb())}else!b&&a.F&&(Wd(a.F.Ja),a.F=null)}f.lg=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.G.Hb()&&a.push("stickyLoading");return a};f.$k=function(a,b){return a&&w(a)&&aB.test(a)?a:b};
f.wm=function(a,b){return ga(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.mw=function(a,b){if(a&&w(a)){var c=cB.indexOf(a);return-1!=c?c:b}return b};f.Kw=function(a,b){if(a&&w(a)){var c=bB.indexOf(a);return-1!=c?c:b}return b};f.Lw=function(a,b){return ga(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var CD=null;
function BD(a,b){if(b)if(Xb(b,"reset"))a.dr();else{if(!CD){var c={};c.color=a.$k;c.textOpacity=a.wm;c.background=a.$k;c.backgroundOpacity=a.wm;c.windowColor=a.$k;c.windowOpacity=a.wm;c.charEdgeStyle=a.mw;c.fontFamilyOption=a.Kw;c.fontSizeIncrement=a.Lw;CD=c}var c=CD,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.de(DD(a.G))}}f=gD.prototype;
f.Ha=function(a){if("lb3"==a.W().j)return!1;a=a.getVideoData();var b;if(b=a.Qa)b=a.j,b=!(!b||null==b.j.en);return!!(a.ji||a.captionTracks.length||b)};function kD(a){ut(a,a.D);a.Yb?(a.D.A=a.pa,rt(a,a.pa,a.ta)):(a.D.A=null,st(a,a.pa));tt(a,a.D)}f.kj=function(a){kD(this);a?oD(this):this.loaded&&(this.unload(),this.load())};function pD(a,b){var c={};a.B&&(c=Jt(a.B));a.L("publish_external_event","captionschanged",c);b?(sB(a.U),PB(a.D,a.B.toString())):(tB(a.U),a.D.off())}f.vt=function(){this.A.seek(this.j.getCurrentTime())};
f.Ah=function(){var a=this.B;return a?{cc:a.F}:null};f.IB=function(){this.H=!0;zD(this)};f.Nz=function(){this.C.captionTracks.length&&nD(this)};f.P=function(){this.Fa.removeAll();this.J&&(M(this.J),this.J=0);this.I&&(Wf(this.I),this.I=0);gD.K.P.call(this)};function ED(){if(void 0==eu&&(eu=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new Uint8Array(1);window.crypto.getRandomValues(a);eu=!0}catch(b){}if(eu){var a=Array(16),c=new Uint8Array(16);window.crypto.getRandomValues(c);for(var d=0;d<a.length;d++)a[d]=c[d]}else for(a=Array(16),c=0;16>c;c++){for(var d=y(),e=0;e<d%23;e++)a[c]=Math.random();a[c]=Math.floor(256*Math.random())}return a}
function FD(){for(var a=ED(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function GD(){return E(ED(),function(a){return(a&15).toString(16)}).join("")};function HD(a){at.call(this,a);this.xa="ypc_license_checker";this.Cc="ypc_license";this.D=!1;this.C=0;this.B=!1;this.o=NaN;this.F=GD();this.A=null}z(HD,at);
var ID={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 JD(a){return Hv(a.getVideoData(),"ypc_license_checker_module")}f=HD.prototype;f.Ha=function(){return JD(this.j)};f.Na=function(){HD.K.Na.call(this);var a=new Qs(1E3,2147483646,{priority:0});bt(this,[a]);this.subscribe("heartbeatparams",this.cF,this);this.subscribe("onStateChange",this.dF,this)};function KD(a){return JD(a)?new HD(a):null}f.destroy=function(){LD(this);HD.K.destroy.call(this)};f.Jc=function(){this.D=!0;MD(this,2E3)};f.cF=function(a){this.A=a;MD(this,2E3)};
f.dF=function(a){X(a.state,2)||X(a.state,64)?LD(this):(X(a.state,1)||X(a.state,8))&&MD(this,2E3)};function ND(a){var b=a.j.getVideoData();return OD(b)?!!a.A:!!b.heartbeatToken||!!b.ib}function MD(a,b){if(!a.o&&a.D&&ND(a)&&(OD(a.j.getVideoData())||!DD(a.j.W()))){var c=b;void 0==c&&(c=a.B?(c=a.j.getVideoData().Fd)?c:a.A?1E3*a.A.interval:6E4:1E3);a.o=L(x(a.OC,a),c)}}
f.OC=function(){var a,b,c;c=this.j.W().B;var d=this.j.getVideoData();ND(this)?(OD(d)?(b="GET",a={},c=Ve(this.A.url,{request_id:GD()}),d.G&&(c=Ve(c,{vvt:d.G})),d.C&&(c=Ve(c,{access_token:d.C}))):d.heartbeatToken?(b="GET",a={},c=Ve(c+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken}),d.G&&(c=Ve(c,{vvt:d.G})),d.C&&(c=Ve(c,{access_token:d.C}))):(b="POST",a={video_id:d.videoId,player_id:this.F,request_id:GD(),purchase_id:d.purchaseId,version:"4",player_time_seconds:this.j.getCurrentTime().toString(),
gid:d.Xh,ypc_token:d.ib},d.G&&(a.vvt=d.G),d.C&&(a.access_token=d.C),c+="ypc_license_server"),c=Ve(c,{cpn:d.clientPlaybackNonce}),Kj(c,{format:"RAW",method:b,Ib:a,timeout:3E4,jb:x(this.hz,this),onError:x(this.gz,this),Te:x(this.iz,this),withCredentials:!0})):LD(this)};
f.hz=function(a){if(this.o){a=a.responseText;var b;i:if(b=a,this.j.getVideoData().heartbeatToken)b=qg(b),b="ok"==b.status?0:"stop"==b.status?1:-1;else{var c=b.match(PD);if(c){if("0"!=c[1]){b=1;break i}b=c[3]}b=b in ID?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?QD(this,"decode"):(this.C=0,this.o=NaN,1==b?(this.B=!1,b="YTP_ERROR_LICENSE",this.j.getVideoData().heartbeatToken?a=qg(a).reason||Zf(b):((c=a.match(PD))?(a=parseInt(c[1],10))&&(b=zt(a)):a in ID&&(b=ID[a]),a=Zf(b)),Iv(this.j.T.o,"heartbeat",
a,void 0)):(this.B=!0,MD(this)))}};f.gz=function(a){QD(this,"net-"+a.status)};f.iz=function(){QD(this,"timeout")};function QD(a,b){if(a.o){a.log({errorType:b});a.o=NaN;var c=++a.C,d=a.j.getVideoData().ue;c>(d?d:a.A?a.A.j:5)?(c=Zf("YTP_ERROR_LICENSE"),Iv(a.j.T.o,"heartbeat",c,void 0)):MD(a)}}var PD=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function LD(a){a.C=0;a.o&&(M(a.o),a.o=NaN);a.B=!1};function RD(a){Y.call(this,a);this.V=new S;R(this,this.V)}z(RD,Y);RD.prototype.subscribe=function(a,b,c){return this.V.subscribe(a,b,c)};RD.prototype.qa=function(a,b,c){return this.V.qa(a,b,c)};RD.prototype.Pb=function(a){return this.V.Pb(a)};RD.prototype.L=function(a,b){return this.V.L.apply(this.V,arguments)};function SD(a,b,c){RD.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.j=a;this.Xa=b;this.F=!1}z(SD,RD);SD.prototype.Bh=function(){this.F=!0};SD.prototype.destroy=function(){this.F=!1};SD.prototype.sg=function(){return!1};function TD(){Y.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}z(TD,Y);function UD(){Y.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"]]])}z(UD,Y);function VD(a){RD.call(this,a);this.videoId=null}z(VD,RD);
VD.prototype.hf=function(a,b){this.videoId=a?a.id||a.video_id:"";O(this.element,"ytp-suggestion-set",!!this.videoId);var c=Yb(a);c.playlist_length=c.playlist_length||0;c.title=c.title||c.playlist_title;c.author=c.author||c.playlist_author;c.watch=Zf("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title});c.duration=wv(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=zA(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:c,b?"hqdefault.jpg":"mqdefault.jpg");qv(this.template,"background","background-image: url("+d+")");qv(this.template,"image",d)}};function WD(){var a=["div","ytp-watch-next-card",["div","ytp-watch-next-content",["div","ytp-watch-next-header",Zf("YTP_WATCH_NEXT")],["img","ytp-watch-next-thumbnail",{src:"{{image}}"}],["div","ytp-watch-next-title","{{title}}"],["div","ytp-watch-next-views","{{view_count_string}}"],["div","ytp-watch-next-uploaded","{{uploaded}}"]]];VD.call(this,a)}z(WD,VD);function XD(a,b,c){SD.call(this,a,b,"subscribecard-endscreen");this.B=new TD;R(this,this.B);this.C=new lv(["div","ytp-channel-curtain"]);R(this,this.C);this.A=new UD;R(this,this.A);(this.o=c?new WD:null)&&R(this,this.o);this.$()}z(XD,SD);
XD.prototype.Bh=function(){XD.K.Bh.call(this);Vd(this.Q());this.B.ea(this.Q());this.C.ea(this.Q());this.A.ea(this.Q());var a=this.j.getVideoData().videoId,b=this.G,c=this.j.W().mb,d=this.j.W().pageId;a&&(a={video_id:a,html5:1,page_subscribe:1},c&&(a.authuser=c),d&&(a.pageid=d),Kj("/get_video_metadata",{method:"GET",onError:v,jb:b,eg:a,context:this}))};
XD.prototype.G=function(a,b){if(this.F){var c=b.user_info,d=this.j.getVideoData();d&&(d.yK=c.external_id);d=c.channel_banner_url;gg(d)||(d="");var e=c.channel_logo_url||c.image_url;gg(e)||(e="");qv(this.B.template,"banner",d);qv(this.A.template,"image",e);qv(this.A.template,"author",c.channel_title||c.username);this.o&&b.watch_next&&(this.o.hf(b.watch_next),this.o.ea(this.Q()));c=c.subscription_button_html;this.A.template.j["html5-subscribe-button-container"].innerHTML=c?c:""}};function YD(a,b){return $h&&ZD(a,"947233","947250")||b&&$D(a,"947243")}function $D(a,b){return G(a.experiments.experimentIds,b)}function ZD(a,b){return gb(vb(arguments,1),pa(G,a.experiments.experimentIds))};function aE(a){var b;b=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",Zf("YTP_AD_INTERRUPT_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",Zf("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"]];Y.call(this,b);this.ba=a}z(aE,Y);aE.prototype.A=null;aE.prototype.o=null;aE.prototype.j=null;
function bE(a){if(!a.A&&(a.A=a.template.j["ad-container"],a.ba.W().D)){var b=$D(a.ba.W(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";N(a.A,b)}return a.A}function cE(a){a.j&&(a.ba.W().D?(th(a.j,"ad-video"),dE(a.ba.T,a.j),a.j=null):(Wd(a.j),Es(a.j)))}
function eE(a){if(!a.o){if(a.ba.W().ad){var b=Rd("button");N(b,"video-click-tracking");Ud(b,Zf("YTP_VISIT_ADVERTISERS_SITE"));var c=Rd("div");N(c,"video-click-tracking-container");c.appendChild(b);bE(a).appendChild(c)}else b=Rd("div"),sh(b,["video-click-tracking","ad-video"]),bE(a).appendChild(b);a.o=b}return a.o}aE.prototype.P=function(){aE.K.P.call(this);this.j&&(dE(this.ba.T,this.j),this.j=null);cE(this);Vd(bE(this));Vd(eE(this));this.o=this.A=null;delete this.ba};
function fE(a){if(!a.j){var b;b=a.ba.T;if(b.j.D){var c=Qg(b.C),d=ah(b.C);b.da=new zg(c.x,c.y,d.width,d.height);gE(b.D);Fs(b.C,1);Es(b.C);b=b.C}else b=hE.getTag(void 0);a.j=b;sh(a.j,["video-stream","ad-video"])}return a.j};function iE(a,b){Y.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}z(iE,Y);iE.prototype.F=function(a,b){M(this.j);this.context&&(this.j=tv(x(this.F,this,a,b),b),a.call(this,new Date-this.C))};iE.prototype.P=function(){M(this.j);this.context=null;iE.K.P.call(this)};function jE(a,b){iE.call(this,2*(a+2),2*(a+2));this.G=a;this.o=b;this.B=this.width/2;this.A=this.height/2}z(jE,iE);var kE=3*Math.PI/2,lE=2*Math.PI;function mE(a,b){var c;c=["span","videowall-still-info",["span","ytp-endscreen-upnext-content",["span","ytp-endscreen-upnext-header",Zf("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",Zf("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(c);VD.call(this,d);this.ba=a;this.G=b;c=new Xz(a.T.A.B);R(this,c);c.M("click",this.Bq,this);c.kb(Zf("YTP_AUTOPLAY_CANCEL"));c.ea(this.template.j["ytp-endscreen-upnext-cancel"]);Yz(c,"ytp-endscreen-upnext-cancel-button");Zz(c,5100);c.za(Zf("YTP_CANCEL"));c=new Xz(a.T.A.B);R(this,c);c.M("click",this.Bq,this);c.ea(this.template.j["videowall-still-info"]);Yz(c,"ytp-endscreen-upnext-close");this.o=new jE(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.F=null}z(mE,VD);f=mE.prototype;f.hf=function(a,b){mE.K.hf.call(this,a,b);this.F=a.session_data?vj(a.session_data,"&"):null;this.C=a.endscreen_autoplay_session_data?vj(a.endscreen_autoplay_session_data,"&"):null;this.B=a.list;qv(this.template,"linkurl",nE(this.ba.W(),this.videoId,this.B))};
function oE(a){a.j||(Oi("a11y-announce",a.template.j["ytp-endscreen-upnext-header"].innerHTML+" "+a.template.j["ytp-endscreen-upnext-title"].innerHTML),a.A=y(),a.j=new Pv(a.Qn,50,a),a.Qn());th(a.element,"ytp-endscreen-upnext-autoplay-paused")}
f.Qn=function(){var a=Math.min(y()-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,lE);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,kE,c*lE+kE,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();1E4<=a?this.select(!0):this.j&&this.j.start()};function pE(a){qE(a);a.A=y();a.Qn();N(a.element,"ytp-endscreen-upnext-autoplay-paused")}function qE(a){a.j&&(a.j.dispose(),a.j=null)}f.select=function(a){qE(this);rE(this.ba.T,this.videoId,a?this.C:this.F,this.B||void 0,void 0)};f.Bq=function(a){Qh(a);this.ba.W().experiments.o&&this.G.log({cancelButtonClick:"1"});sE(this.ba.T,!0)};
f.P=function(){qE(this);mE.K.P.call(this)};function tE(a,b,c,d){Q.call(this);this.o=a;d||(uE(this,!0),a.$());this.F=c?0:b;this.D=!!c;this.j=null;this.B=!1;this.A=new Pv(this.C,0,this);R(this,this.A)}z(tE,Q);tE.prototype.$=function(){3!=this.j&&(1==this.j||2==this.j?(this.o.$(),this.j=null,this.A.stop()):this.o.D&&(uE(this,!0),this.j=3,this.D?this.C():this.A.start(this.F)))};
tE.prototype.C=function(){switch(this.j){case 1:if(this.o.va(),this.j=2,!this.D){this.A.start(10);break}case 2:uE(this,this.B);this.B?(this.j=3,this.A.start(this.F)):this.j=null;break;case 3:this.o.$();uE(this,!1);this.j=4;this.A.start(0);break;case 4:this.j=null}};function uE(a,b){var c=a.o.Q();b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")}tE.prototype.stop=function(){for(;null!=this.j&&4!=this.j;)this.A.stop(),this.C()};
tE.prototype.P=function(){this.o.ka()||this.o.Q().removeAttribute("aria-hidden");tE.K.P.call(this)};function vE(a,b){this.type=a||"";this.id=b||""}function wE(a){return new vE(a.substr(0,2),a.substr(2))}vE.prototype.toString=function(){return this.type+this.id};function xE(a){var b=[["div",["videowall-still-listlabel-episodic","videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",Zf("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"],Zf("YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix","videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],Zf("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]];VD.call(this,["a","videowall-still",{tabIndex:5E3,href:"{{linkurl}}","aria-label":"{{watch}}"},["div","videowall-still-image",{style:"{{background}}"}],["span","videowall-still-featured-label",
Zf("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}}"]]]]].concat(b));this.ba=a;this.o={};this.j=null;this.M("click",this.A);this.M("keypress",this.B)}z(xE,VD);
xE.prototype.hf=function(a,b){xE.K.hf.call(this,a,b);this.o=a.session_data?vj(a.session_data,"&"):null;this.j=a.list;qv(this.template,"linkurl",nE(this.ba.W(),this.videoId,this.j));var c=!1,d=!1,e=!1;"1"!=a.is_episodic?this.j&&"RD"==wE(this.j).type?e=!0:this.j&&(c=!0):d=!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)};
xE.prototype.select=function(){rE(this.ba.T,this.videoId,this.o,this.j||void 0,void 0)};xE.prototype.A=function(a){!1!==a.Qb.returnValue&&yv(a)&&(this.select(),a.preventDefault())};xE.prototype.B=function(a){switch(a.keyCode){case 13:case 32:!1!==a.Qb.returnValue&&(this.select(),a.preventDefault())}};function yE(a,b,c){SD.call(this,a,b,"videowall-endscreen");this.S=c;this.C=[];this.B=this.o=null;this.G=!1;this.I=new Pv(pa(N,this.element,"ytp-animate-tiles"),0);R(this,this.I);this.H=new lv(["div","ytp-endscreen-content"]);R(this,this.H);this.H.ea(this.element);this.A=new mE(a,c);R(this,this.H);this.A.ea(this.Q());this.$()}z(yE,SD);yE.D=96;yE.C=54;yE.o=1;yE.j=2;f=yE.prototype;
f.Bh=function(){yE.K.Bh.call(this);var a=this.j.getVideoData();a&&(this.o=a.O);this.mg();this.Xa.subscribe("onResize",this.mg,this);this.Xa.subscribe("videodatachange",this.N,this);this.Xa.subscribe("autonavchange",this.J,this);this.Xa.subscribe("autonavcancel",this.O,this)};f.destroy=function(){this.Xa.qa("onResize",this.mg,this);this.Xa.qa("videodatachange",this.N,this);Ei(this.C);this.o=[];this.C=[];yE.K.destroy.call(this)};f.sg=function(){return 1!=this.j.getVideoData().ye};
f.va=function(){yE.K.va.call(this);this.I.start();(this.G||this.B&&this.B!=this.j.getVideoData().clientPlaybackNonce)&&sE(this.j.T,!1);var a=!this.B&&this.sg()&&zE(this.j.W());zE(this.j.W())&&this.j.W().experiments.o&&this.S.log({cancelButtonShow:a?"1":"0",state:this.sg()?"enabled":"disabled"});a?2==this.j.getVideoData().ye?oE(this.A):3==this.j.getVideoData().ye&&pE(this.A):sE(this.j.T,!0)};f.$=function(){yE.K.$.call(this);pE(this.A)};
f.mg=function(){if(this.o&&this.o.length){var a=this.element,b;i:{if(rh(this.j.Ma(),"ad-showing")&&(b=Hd("ad-container"))){b=ah(b).height+20;break i}b=0}Ig(a,"marginBottom",b+"px");var c=ah(this.element),d=yE.D,e=yE.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(yE.j,2),u=p*r,C=AE(this,0,l,k),V=AE(this,1,l,k),u=u+(Math.pow(C,2)-r),u=u+(Math.pow(V,2)-r);0<u&&(a<k||b<l);){var U=a/yE.j,ia=b/yE.j,Ba=a<=k-yE.j&&u>=ia*r,Le=b<=l-yE.j&&
u>=U*r;if(U/ia*h>g&&Le)u-=U*r,b+=yE.j;else if(Ba)u-=ia*r,a+=yE.j;else if(Le)u-=U*r,b+=yE.j;else break}h=!1;k=yE.j+C;u>=3*r&&6>=p*r-u&&(b>=k||a>=k)&&V<=yE.j&&(h=!0);d*=a;e*=b;p=1;p=d/e<g?c.height/e:c.width/d;p=Math.min(p,yE.B);d*=p;e*=p;d*=Pc(c.width/d||1,1,yE.A);e*=Pc(c.height/e||1,1,yE.A);d=Math.floor(Math.min(c.width,d));e=Math.floor(Math.min(c.height,e));c=this.H.Q();Yg(c,d,e);Ig(c,{marginLeft:d/-2+"px",marginTop:e/-2+"px"});this.A.hf(this.o[0],!0);O(this.Q(),"ytp-endscreen-takeover",zE(this.j.W())&&
this.sg()&&!this.B);g=d+yE.o;p=e+yE.o;e=0;r=!1;for(u=0;u<a;u++)for(k=0;k<b;k++)U=V>yE.j&&1<=e&&!r?e+1:e,l=0,h&&u>=a-yE.j&&k>=b-yE.j?l=1:0==k%yE.j&&0==u%yE.j&&(k<C&&u<C?0==k&&0==u&&(l=C):V>yE.j&&k>=b-V&&u>=a-V?k==b-V&&u==a-V&&(r=!0,U=1,l=V):l=yE.j),0!=l&&(d=this.C[e],d||(d=new xE(this.j),this.C[e]=d,ia=d.Q(),c.appendChild(ia)),d.hf(this.o[U],2<l),U=Math.floor(p*k/b),ia=Math.floor(g*u/a),Ba=Math.floor(p*(k+l)/b)-U-yE.o,Le=Math.floor(g*(u+l)/a)-ia-yE.o,Og(d.Q(),ia,U),Yg(d.Q(),Le,Ba),Ig(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()),Ci(d);this.C.length=e}};yE.B=1.42;yE.A=1.21;yE.prototype.N=function(){var a=this.j.getVideoData().O;this.o!=a&&(this.o=a,this.mg())};yE.prototype.J=function(a){1==a?(this.G=!1,this.B=this.j.getVideoData().clientPlaybackNonce,qE(this.A),this.D&&this.mg()):(this.G=!0,this.D&&zE(this.j.W())&&this.sg()&&!this.B&&(2==a?oE(this.A):3==a&&pE(this.A)))};
yE.prototype.O=function(a){a?this.J(1):(this.B=null,this.G=!1,this.mg())};function AE(a,b,c,d){return 0==b&&c>=3*yE.j&&d>=3*yE.j&&a.o.length&&1==a.o[0].episodic?2*yE.j:yE.j};function BE(a){at.call(this,a);Yf({});this.xa="endscreen";this.Cc="end";this.o=null;var b=a.W();CE(a)?this.o=new yE(this.j,this.S,this):b.U?(a=b.experiments.F,b=new XD(this.j,this.S,a),a&&P(b.o.Q(),"click",x(this.sC,this)),this.o=b):this.o=new SD(this.j,this.S);this.o.ea(this.j.Ma())}z(BE,at);function DE(a){return EE(a.W())&&1==a.Df()}function CE(a){a=a.W();return a.Aa&&!a.U}f=BE.prototype;f.Ha=function(a){return DE(a)};
f.Na=function(){BE.K.Na.call(this);FE(this);this.j.getVideoData().subscribe("dataupdated",this.pr,this)};f.destroy=function(){this.j.getVideoData().qa("dataupdated",this.pr,this);dt(this);this.o.F&&this.o.destroy();BE.K.destroy.call(this)};f.load=function(){BE.K.load.call(this);this.o.va();if(this.j.W().U&&.01>Math.random()){var a=this.j.W().experiments.F;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){BE.K.unload.call(this);this.o.$()};
f.Jc=function(a){BE.K.Jc.call(this,a);var b=this.j.getVideoData(),c=!CE(this.j)||!(!b.O||!b.O.length);this.j.W();var b=Hv(b,"ypc_module"),d=GE(this.j.T);!c||b||d||(this.o.F||this.o.Bh(),"load"==a.getId()&&this.load())};f.Yc=function(a){"load"==a.getId()&&this.loaded&&this.unload();BE.K.Yc.call(this,a)};f.pr=function(){dt(this);FE(this)};f.sC=function(a){var b=this.o.o.videoId,b=nE(this.j.W(),b,null);ht(this,b,a.ctrlKey)};
function FE(a){var b=Math.max(1E3*(a.j.getVideoData().lengthSeconds-10),0),b=new Qs(b,2147483647,{id:"preload"}),c=new Qs(2147483647,2147483647,{id:"load",priority:6});bt(a,[b,c])}function HE(a){return DE(a)?new BE(a):null};function IE(){Y.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}z(IE,Y);IE.prototype.Ej=function(a){qv(this.template,"index",a+1)};function JE(a){rB.call(this,a,"ytp-button-expand",Z("YTP_ST_EXPAND"),"ytp-button-collapse",Z("YTP_ST_COLLAPSE"));Zz(this,3050);this.element.setAttribute("aria-haspopup",!0);this.za([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Z("YTP_PLAYLIST")]])}z(JE,rB);function KE(a){Y.call(this,["div","ytp-playlist-tray-controller"]);this.j=new JE(a);this.j.ea(this.template.Q());R(this,this.j);this.o=new IE;this.o.ea(this.template.Q());R(this,this.o)}z(KE,Y);function LE(a,b){var c=a.Od("default.jpg");Y.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)}z(LE,Y);
LE.prototype.Ej=function(a){a=this.j==a;O(this.element,"ytp-playlist-tray-item-current",a);this.element.setAttribute("aria-checked",a)};LE.prototype.o=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.$b("click")};function ME(){RD.call(this,["div","ytp-playlist-tray-tray",{role:"menu"}]);this.j=null;this.o=[]}z(ME,RD);function NE(a,b){a.j&&a.j.qa("shuffle",a.A,a);a.j=b;a.j.subscribe("shuffle",a.A,a);a.A()}ME.prototype.A=function(){Ei(this.o);this.o=[];Vd(this.element);for(var a=0;a<=this.j.wc-1;++a){var b=Ar(this.j,a);b&&(b=new LE(b,a),b.Ej(this.j.Ya),this.o.push(b),b.M("click",x(this.B,this,a)),b.ea(this.element))}};ME.prototype.B=function(a){this.L("playvideoat",a)};
ME.prototype.P=function(){Ei(this.o);this.o=[];Vd(this.element);ME.K.P.call(this)};function OE(a){at.call(this,a);var b=a.Ma();this.G=a.T.A.B;this.D=!1;this.A=this.B=null;this.F=Hd("ytp-button-playlist",b);P(this.F,"click",x(this.Lq,this));this.o=this.C=null}z(OE,at);f=OE.prototype;f.xa="playlist";
f.Na=function(){OE.K.Na.call(this);PE(this,this.j.Ed());this.C=new lv(["div",["ytp-playlist-tray-container","ytp-player-content"]]);this.C.ea(this.j.Ma());this.A=new ME;this.A.subscribe("playvideoat",this.sr,this);this.A.ea(this.C.Q(),0);this.o=new KE(this.G);this.o.ea(Hd("html5-title",void 0),0);this.o.j.M("click",this.Lq,this);this.subscribe("fullscreentoggled",this.qt,this);this.subscribe("videodatachange",this.ut,this);this.subscribe("clearvideooverlays",this.ks,this);this.Tj()};
f.Tj=function(){var a=this.j.Ss(),b=this.o.o;null!=a?b.va():b.$();this.o.o.Ej(a);a=this.j.Ed();qv(this.o.o.template,"length",a.wc)};f.destroy=function(){OE.K.destroy.call(this);PE(this,null);this.qa("fullscreentoggled",this.qt,this);this.qa("videodatachange",this.ut,this);this.qa("clearvideooverlays",this.ks,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);OE.K.load.call(this);this.D||(NE(this.A,this.B),this.D=!0);for(var a=this.A,b=0;b<a.o.length;b++)a.o[b].Ej(a.j.Ya);sB(this.o.j)};f.unload=function(){OE.K.unload.call(this);this.D=!1;tB(this.o.j)};f.ks=function(){this.loaded&&this.unload()};f.sr=function(a){this.j.In(a);this.L("command_clear_video_overlays",!1)};f.Lq=function(){this.loaded?this.L("command_clear_video_overlays",!1):this.load()};
f.qt=function(a){var b=this.j.W().ja;this.loaded&&!a&&"detailpage"==b&&this.L("command_clear_video_overlays",!1)};f.ut=function(){PE(this,this.j.Ed());this.D&&NE(this.A,this.B);this.Tj()};function PE(a,b){a.B&&a.B.qa("shuffle",a.Tj,a);a.B=b;a.B&&a.B.subscribe("shuffle",a.Tj,a)}OE.Ha=function(a){return!!a.Ed()&&!0};OE.prototype.Ha=function(a){return OE.Ha(a)};OE.prototype.$m=function(a){return!OE.Ha(a)};OE.j=function(a){return OE.Ha(a)?new OE(a):null};
OE.prototype.P=function(){this.A.qa("playvideoat",this.sr,this);Ph(this.F);OE.K.P.call(this)};function QE(a){og("/gen_204?"+a,void 0)}function RE(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=Ve("/sharing_services",a);og(h)};function SE(a,b){Q.call(this);this.j=a;this.o=!!b}z(SE,Q);function TE(a,b,c){if(c)if(a.o)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.j&&(d=UE(a.j));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Kj(d,{format:"JSON",method:"GET",context:a,timeout:600,jb:function(a,d){c(d);VE("success",{v:b})},onError:function(){VE("error",{v:b});c({})},Te:function(){VE("timeout",{v:b});WE("__notfound__");c({})}})):c({})}}
function VE(a,b){var c={a:"spacecast",module:"cache",request:"meta",status:a};ac(c,b);QE(Te(c))}SE.prototype.P=function(){this.j=null;SE.K.P.call(this)};function XE(a){Q.call(this);(this.j=a)&&WE("//"+a)}z(XE,Q);function UE(a){var b;(b=(b=hj("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.j?"//"+a.j:null;return b}XE.prototype.reset=function(){ij("yt-spacecast-uri")};function WE(a){var b=hj("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;fj("yt-spacecast-uri",b)};function YE(){Q.call(this);this.o=this.j=null}z(YE,Q);ba(YE);YE.prototype.init=function(a){this.j||(this.j=new XE(a||null),this.o=new SE(this.j))};YE.prototype.P=function(){this.o&&(this.o.dispose(),this.o=null);this.j&&(this.j.dispose(),this.j=null);YE.K.P.call(this);delete YE.Gb};function ZE(a){at.call(this,a);this.Cc=this.xa="spacecast";this.o=null}z(ZE,at);f=ZE.prototype;f.Ha=function(){return!!this.j.getVideoData().ob};function $E(a){return a.getVideoData().ob?new ZE(a):null}f.Na=function(){ZE.K.Na.call(this);var a=this.j.getVideoData().ob,b=YE.getInstance();b&&b.init(a);this.o=b;this.load()};f.destroy=function(){ZE.K.destroy.call(this);this.o=null};
f.load=function(){ZE.K.load.call(this);var a=this.j.getVideoData().videoId,b=this.o.o,c=y(),c=x(this.fy,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),VE("prefetch",{v:a})):TE(b,a,c)};f.fy=function(a,b,c){b=y()-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=aF(this,UE(this.o.j),e,g))d=this.j.getVideoData(),d.ca=c,bF(d),this.j.Kn("auto"),d=1}}et(this);QE(Te({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))};
function aF(a,b,c,d){if(!b)return null;a=a.j.getVideoData();a=yj(a.Ze);a=eb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=Aj(b)||"",g=Number(Ie(b)[4]||null)||null;return E(a,function(a){var b=K(K(cf(bf(vf(a.url),e),g),"orig_host",Bj(a.url)),"scid",c);a.url=b.toString();return Te(a)}).join(",")};function cF(){var a=Uc,b;if(b=hu())i:{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 i}b=!1}if(b)i:{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 i}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function dF(a){Wz.call(this);this.label=Z("YTP_THREED_SHORT");this.element=new aA(a,[Z("YTP_OFF"),Z("YTP_ON")]);R(this,this.element);this.element.kb(this.label);cA(this.element,2100);this.priority=10;this.C=!0;this.j(0)}z(dF,Wz);dF.prototype.H=function(){this.element.$b("select")};dF.prototype.j=function(a){this.element.j(a)};function eF(a){Y.call(this,["span"]);this.element.innerHTML=a}z(eF,Y);function fF(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Z("YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];Y.call(this,b);b=Z("YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.j=new Xz(a,"ytp-dialog-button",b);R(this,this.j);this.j.za(b);b=Z("YTP_CLOSE");this.o=new Xz(a,"ytp-dialog-button",b);this.o.za(b);R(this,this.o);this.template.update({content:new eF(Z("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]})}z(fF,wB);function gF(a){at.call(this,a);Yf({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 dF(qt(this));R(this,this.o);this.o.j(1);this.o.M("change",this.XE,this);this.o.M("select",this.YE,this);this.A=new fF(qt(this));R(this,this.A);this.A.j.M("click",this.Do,this);this.A.o.M("click",this.Lg,this)}z(gF,at);f=gF.prototype;f.Zm="threeDModuleData";f.xa="threed";
f.Cc="threed";f.Na=function(){hF(this.j.T,void 0);tt(this,this.o);gF.K.Na.call(this)};f.destroy=function(){ut(this,this.o);hF(this.j.T,!0);gF.K.destroy.call(this)};function iF(a){return gF.prototype.Ha(a)?new gF(a):null}f.Ha=function(a){a=a.getVideoData();return cF()?!!a.sa||!!a.ds:!1};function jF(a,b){if(a.j.getVideoData().mh!=b)if(gt(a),cF()){var c=a.j.T,d=hr(c);d.j.A&&d.j.A.j||(d.j.mh=!d.j.mh,bF(d.j),jr(d,"r"));hF(c)}else b&&(gt(a,a.A),a.o.j(0),vt(a))}
f.Do=function(){ht(this,"/select_3d_mode?video_id="+this.j.getVideoData().videoId)};f.XE=function(){1==this.o.element.A?jF(this,!0):jF(this,!1)};f.YE=function(){vt(this);this.Do()};function kF(a){Wz.call(this);this.j=2;this.label=Z("YTP_THREED_SHORT");this.menu=new IB(a,x(this.o,this),x(this.D,this));R(this,this.menu);this.element=new DB(a,Z("YTP_WEBGL_ANAGLYPH"),this.menu);R(this,this.element);FB(this.element,100);JB(this.menu,[0,1,2]);a=2100;MB(this.menu,a++);a=a++;Zz(this.element.j,a);lF(this,this.j);this.priority=1;this.B=!0}z(kF,Wz);function lF(a,b){a.j=b;a.menu.j(b);a.element.se(a.o(b))}
kF.prototype.o=function(a){switch(a){case 0:return Z("YTP_OFF");case 1:return Z("YTP_WEBGL_3D_2D");case 2:return Z("YTP_WEBGL_3D_ANAGLYPH")}return"."};kF.prototype.D=function(a){this.element.re();lF(this,a);this.element.$b("change")};function mF(a,b,c){this.C=null;this.B=-1;this.A=a.getVideoData().pa;0!=this.A||"LR"!=a.getVideoData().Fc("yt3d:enable")&&"true"!=a.getVideoData().Fc("yt3d:enable")||(this.A=1);this.j=new kF(a.T.A.B);this.j.M("change",this.jF,this);this.j.M("change",c,this);this.o=null;this.D=!0;tt(b,this.j);R(b,this.j)}function nF(a){if(cF())return!1;a=a.getVideoData();var b;(b=1==a.pa||2==a.pa)||(b=a.Fc["3D"])||(a=a.Fc("yt3d:enable"),b="true"==a||"LR"==a||"RL"==a);return b?!0:!1}f=mF.prototype;f.Ii=function(){return"attribute vec3 aVertPos;attribute vec2 aTexCrd;varying vec2 vTexCrd;void main(void) {  vTexCrd = aTexCrd;  gl_Position = vec4(aVertPos, 1.0);}"};
f.Ei=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.ij=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.gj=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.dj=4;this.C=b};f.hj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.C);a.vertexAttribPointer(this.B,this.C.j,a.FLOAT,!1,0,0)};f.mk=function(){};f.lk=function(){};f.kk=function(){};f.ti=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.pj=function(){return!0};f.yj=function(){return!1};f.jF=function(){this.D=!0};f.destroy=function(a){ut(a,this.j)};function oF(a,b,c,d,e,g){this.width=a;this.height=b;if(!g)i:{g=Math.max(a,b);a=Math.min(a,b);for(b=0;b<Ot.length;b++){var h=Ot[b],k=Nt[h];if(g>=Math.floor(16*k/9)||a>=k){g=h;break i}}g="tiny"}this.quality=g;this.fps=c||0;this.j=e||0;this.projectionType=d||0};function pF(){this.j=new Float32Array(16);this.A=new Float32Array(16);this.o=new Float32Array(16);this.identity()}pF.prototype.identity=function(){this.j.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};pF.prototype.get=function(){return this.j};
function qF(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 rF(a){this.S=a;this.D=new pF;this.J=this.I=this.N=this.H=this.O=null;this.j=.872;this.F=!0;this.C=3.14;this.G=this.B=this.A=0;this.o=null}function sF(a){if(!a.j)return!1;for(var b in a.j.j){var c=a.j.j[b].info.video;if(c&&2==c.projectionType)return!0}return!1}f=rF.prototype;f.Ii=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};f.Ei=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.ij=function(a,b,c){this.O=a.getUniformLocation(b,"uVMat");this.I=a.getUniformLocation(b,"uFOVx");this.J=a.getUniformLocation(b,"uFOVy");this.N=a.getUniformLocation(b,"uSplr");a.uniform1i(this.N,0);this.o=new Y(["span","webgl-pan-button"]);this.o.ea(c);this.o.M("mousedown",this.aB.bind(this));this.o.M("mouseup",this.bB.bind(this));this.o.M("click",this.Qq.bind(this));this.o.M("dblclick",this.Qq.bind(this))};
f.gj=function(a){this.H=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.H);a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,1,2,3]),a.STATIC_DRAW)};f.hj=function(){};f.Qq=function(a){a.stopPropagation()};f.aB=function(a){a.offsetX>a.offsetY?this.o.Q().offsetWidth-a.offsetX>a.offsetY?tF(this,1):tF(this,4):this.o.Q().offsetHeight-a.offsetY<a.offsetX?tF(this,2):tF(this,3);requestAnimationFrame(this.S)};f.bB=function(){this.B=0};
var uF={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=rF.prototype;f.lk=function(a){a=uF[a.keyCode];void 0!=a&&tF(this,a)};function tF(a,b){0==a.B&&(a.G=Date.now());a.B=b}f.mk=function(){this.B=0};f.kk=function(a,b){this.C+=3.1415*a*this.j;this.A+=3.1415*b*this.j;this.F=!0};
f.ti=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.F=!0}if(this.F){a.uniform1f(this.I,this.j);a.uniform1f(this.J,this.j/Mw);this.A=Pc(this.A,-1.57075,1.57075);this.D.identity();c=this.D;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]);qF(c,c.A);c=this.D;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]);qF(c,c.A);a.uniformMatrix4fv(this.O,!1,this.D.get());this.F=!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.H);a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0)};f.pj=function(){return!1};
f.yj=function(){return 0!=this.B};f.destroy=function(){this.o&&this.o.dispose()};function vF(){this.o=null;this.j=-1}f=vF.prototype;f.Ii=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.Ei=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}"};
f.ij=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.gj=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.dj=4;this.o=b};f.hj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.o);a.vertexAttribPointer(this.j,this.o.j,a.FLOAT,!1,0,0)};f.mk=function(){};f.lk=function(){};f.kk=function(){};
f.ti=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.pj=function(){return!0};f.yj=function(){return!1};f.destroy=function(){};function wF(){this.B=null;this.A=-1;this.j=43758.5453;this.o=null}f=wF.prototype;f.Ii=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.Ei=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.ij=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.gj=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.dj=4;this.B=b};f.hj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.B);a.vertexAttribPointer(this.A,this.B.j,a.FLOAT,!1,0,0)};f.mk=function(){};
f.lk=function(){};f.kk=function(){};f.ti=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.pj=function(){return!0};f.yj=function(){return!1};f.destroy=function(){};function xF(a,b,c,d){this.V=c;this.A=a.T.A.o;this.H=10;this.C=!0;this.R=this.N=this.O=this.B=this.o=null;this.F=b;this.j=null;this.U=a;this.J=d;this.G=this.D=-1;this.I=!1}
function yF(a){a.o=document.createElement("canvas");if(!a.o)return 1;a.V.appendChild(a.o);try{a.B=a.o.getContext("webgl")}catch(b){return 2}if(null==a.B)return 3;zF(a);var c=AF(a);if(0!=c)return c;a.o.addEventListener("click",a.fF.bind(a),!0);a.o.addEventListener("mousedown",a.gF.bind(a));a.o.addEventListener("mousemove",a.hF.bind(a));a.o.addEventListener("mouseup",a.iF.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.N=d;a.j.gj(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.O=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.N);c.vertexAttribPointer(a.S,3,c.FLOAT,
!1,0,0);c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,a.O);a.j.hj(c);a.xd();a.A.crossOrigin="use-credentials";return 0}
function AF(a){var b=a.B,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.j.Ii());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.j.Ei());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.S=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.S);a.R=e;a.j.ij(b,a.R,a.V);return 0}f=xF.prototype;f.xd=function(){this.B&&(this.A.videoWidth||this.A.videoHeight)&&(zF(this),this.j.ti(this.B,this.A,this.N,this.O));(this.C||this.j.yj())&&requestAnimationFrame(this.xd.bind(this))};
function zF(a){if(0==a.H&&null!=a.A.offsetParent){if(a.j.pj())var b=a.A.offsetWidth,c=a.A.offsetHeight,d=a.A.offsetTop;else b=a.A.offsetParent.offsetWidth,d=a.A.offsetParent.offsetHeight;c=9*b/16;a.o.top=d;a.o.width=b;a.o.height=c;a.B.o=b;a.B.j=c;a.B.viewport(0,0,b,c)}}f.fF=function(a){this.I&&(a.stopPropagation(),this.I=!1)};f.gF=function(a){this.D=a.x;this.G=a.y};
f.hF=function(a){-1!=this.D&&this.j&&(this.j.kk((a.x-this.D)/this.o.width,(a.y-this.G)/this.o.height),this.D=a.x,this.G=a.y,this.I=!0,this.C||requestAnimationFrame(this.xd.bind(this)))};f.iF=function(){this.G=this.D=-1};f.xB=function(){this.C||requestAnimationFrame(this.xd.bind(this));vt(this.J)};function BF(a){a.o&&(Wd(a.o),a.o=null);a.B=null;a.C=!1;a.j&&a.j.destroy(a.J);a.j=null;a.A.removeAttribute("crossorigin");a.A.hidden=!1;a.H=10};function CF(a){at.call(this,a);this.fi=!0;this.xa="webgl";this.subscribe("onResize",this.bF,this);this.subscribe("onKeyPress",this.$E,this);this.subscribe("onKeyDown",this.ZE,this);this.subscribe("onKeyUp",this.aF,this);this.subscribe("onStateChange",this.lj,this);this.C=I("DIV",DF.tu);ft(this,this.C);this.B=a;a=window.localStorage["yt-html5-player-module-webgl-shadertype"];if(void 0==a||null==a)if(a="",nF(this.B))a="Anaglyph3D";else{var b=this.B.getVideoData();sF(b)&&this.B.W().experiments.spherical?
a="Spherical":this.B.W().experiments.C&&(a="NoOp")}this.o=new xF(this.B,a.toString(),this.C,this);this.A=!1}z(CF,at);var DF={tu:"video-annotations"};CF.j=function(a){return CF.Ha(a)?new CF(a):null};CF.prototype.Ha=function(){return CF.Ha(this.j)};CF.Ha=function(a){var b;(b=nF(a)&&a.W().experiments.na)||(b=a.getVideoData(),b=sF(b)&&a.W().experiments.spherical);return b||a.W().experiments.C?!0:!1};f=CF.prototype;f.bF=function(){this.A&&zF(this.o)};
f.$E=function(){if(this.A){var a=this.o;a.j&&(a.C||requestAnimationFrame(a.xd.bind(a)))}};f.aF=function(a){if(this.A){var b=this.o;b.j&&(b.j.mk(a),b.C||requestAnimationFrame(b.xd.bind(b)))}};f.ZE=function(a){if(this.A){var b=this.o;b.j&&(b.j.lk(a),b.C||requestAnimationFrame(b.xd.bind(b)))}};f.lj=function(a){if(this.A){var b=this.o,c=b.C;b.C=X(a.state,8);b.C&&!c&&requestAnimationFrame(b.xd.bind(b))}};f.P=function(){CF.K.P.call(this)};
f.Na=function(){var a=this.o;a.j=null;null!=a.F&&("Anaglyph3D"==a.F?a.j=new mF(a.U,a.J,a.xB.bind(a)):"Spherical"==a.F?a.j=new rF(a.xd.bind(a)):"WhiteNoise"==a.F?a.j=new wF:"NoOp"==a.F&&(a.j=new vF));a.j&&(a.H=yF(a),0==a.H?a.A.hidden=!0:(a.U.T.o.gk(new Pq("html5.missingapi.webgl",!1)),BF(a)));this.A=null!=this.o.j;CF.K.Na.call(this)};f.destroy=function(){BF(this.o);this.A=!1;CF.K.destroy.call(this)};function EF(a){at.call(this,a);Yf({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}z(EF,at);f=EF.prototype;
f.xa="ypc_clickwrap";f.Cc="ypc-clickwrap";f.Ha=function(){return Hv(this.j.getVideoData(),"ypc_clickwrap_module")};function FF(a){return Hv(a.getVideoData(),"ypc_clickwrap_module")?new EF(a):null}f.Na=function(){EF.K.Na.call(this);this.load()};
f.load=function(){EF.K.load.call(this);this.o=new lv(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",Zf("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.j.getVideoData().B.ypc_clickwrap_message],["button","ytp-ypc-clickwrap-confirm",Zf("YTP_YPC_START_RENTAL_BUTTON")]]);this.o.ea(this.j.Ma());R(this,this.o);this.A=this.o.j["ytp-ypc-clickwrap-confirm"];P(this.A,"click",x(this.dA,this))};
f.unload=function(){EF.K.unload.call(this);Ph(this.A);this.o.detach();this.o.dispose();this.o=null};f.dA=function(){et(this);this.destroy()};function GF(a){var b=window.location;a=Ve(a,{})+"";if(!(a instanceof yc||a instanceof yc)){a=a.Oe?a.Fe():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 HF(a,b,c){b||(b={});var d=c||window;c="undefined"!=typeof a.href?a.href:String(a);a=b.target||a.target;var e=[],g;for(g in b)switch(g){case "width":case "height":case "top":case "left":e.push(g+"="+b[g]);break;case "target":case "noreferrer":break;default:e.push(g+"="+(b[g]?1:0))}g=e.join(",");if(b.noreferrer){if(b=d.open("",a,g))dd&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=ya(c),b.document.write('<META HTTP-EQUIV="refresh" content="0; url='+c+'">'),b.document.close()}else b=
d.open(c,a,g);return b}function IF(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=HF(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function JF(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;gg(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.o=a.ypc_item_url;this.videoId=a.ypc_vid};function KF(){Y.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"];vv(this,this.template.j["ytp-drawer-close-button"],"click",this.$);vv(this,a,"click",this.va);this.j=new Pv(pa(th,this.element,"ytp-drawer-closed"),0);R(this,this.j);this.za(null);this.$()}z(KF,Y);KF.prototype.$=function(){this.j.stop();N(this.element,"ytp-drawer-closed")};
KF.prototype.za=function(a){a?(KF.K.za.call(this,a),sv(this.element,"block")):sv(this.element,"none")};KF.prototype.va=function(){this.j.start()};function LF(a,b){S.call(this);this.j=new KF;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 lv(["div","html5-ypc-module",["div","html5-ypc-action-heading","{{heading}}"],["div","html5-ypc-thumbnail","{{thumbnail_element}}"],["div","html5-ypc-title","{{title}}"],["div","html5-ypc-description","{{description}}"],["button","html5-ypc-purchase","{{button_label}}"]]);R(this,this.A);this.C=
this.A.j["html5-ypc-purchase"];P(this.C,"click",x(this.D,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)}z(LF,S);LF.prototype.P=function(){LF.K.P.call(this);this.C&&Ph(this.C);Wd(this.o);Wd(this.B)};LF.prototype.ea=function(a){this.j.ea(a);this.j.za(this.A.Q());a.appendChild(this.o)};
function MF(a){var b=a.A.Q();a.o.appendChild(b);a.j.za(null);sv(a.o,"block")}LF.prototype.D=function(){this.L("ypcContentRequest")};function NF(a){at.call(this,a);this.A=this.o=null;this.C=NaN;this.B=null}z(NF,at);f=NF.prototype;f.xa="ypc";f.Cc="ypc";f.Ha=function(){return Hv(this.j.getVideoData(),"ypc_module")};function OF(a){return Hv(a.getVideoData(),"ypc_module")?new NF(a):null}f.Na=function(){NF.K.Na.call(this);this.o=new JF(this.j.getVideoData());L(x(this.eF,this),0);this.B=new Y(["div",["ytp-player-content","ytp-ypc-player-content"]]);this.B.ea(this.j.Ma())};
f.destroy=function(){NF.K.destroy.call(this);this.o=null;this.B.detach();this.B.dispose();this.B=null};f.eF=function(){this.qe&&!this.loaded&&this.load()};
f.load=function(){NF.K.load.call(this);var a=this.j.getVideoData();if(this.o.videoId&&!a.ta)this.j.ct({video_id:this.o.videoId,ypc_origin:a.videoId,ypc_preview:1});else{this.A=new LF(this.B.Q(),this.o);this.A.subscribe("ypcContentRequest",this.gA,this);this.o.videoId&&Td(this.B.Q(),this.A.B);if(EE(this.j.W())){var b=new Qs(2147483647,2147483647,{priority:2});bt(this,[b])}this.A.j.va();M(this.C);this.C=L(x(function(){this.j.W().experiments.R||this.A.j.$()},this),1E4);this.o.videoId?a.ta&&et(this):
MF(this.A)}};f.unload=function(){dt(this);Ei(this.A);this.A=null;NF.K.unload.call(this)};f.Jc=function(a){NF.K.Jc.call(this,a);MF(this.A)};f.Yc=function(a){NF.K.Yc.call(this,a);a=this.A;sv(a.o,"none");a.j.za(a.A.Q())};f.gA=function(){if(this.o.j)"embedded"==this.j.W().ja?HF(this.o.j):GF(this.o.j);else if(this.o.offerId){var a=t("yt.www.watch.player.handleEndPreview");a&&(this.j.Sg()&&Nx(this.j.T),a(this.o.offerId))}};function PF(a){this.B=Math.exp(Math.log(.5)/a);this.j=this.A=0}PF.prototype.o=function(a,b){var c=Math.pow(this.B,a);this.j=b*(1-c)+c*this.j;this.A+=a};PF.prototype.C=function(){return this.j/(1-Math.pow(this.B,this.A))};function QF(a){this.o=window.Float32Array?new Float32Array(a):Array(a);this.j=a-1}QF.prototype.add=function(a){this.j=(this.j+1)%this.o.length;this.o[this.j]=a};QF.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 RF(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=[]}RF.prototype.o=function(a,b){SF(this,"index");this.A.push({index:this.H++,weight:a,value:b});this.j+=a;for(SF(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 TF(a,b){SF(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}
RF.prototype.C=function(){return this.D?(TF(this,this.B-this.D)+TF(this,this.B)+TF(this,this.B+this.D))/3:TF(this,this.B)};function SF(a,b){a.G!=b&&(a.G=b,Bb(a.A,b))};function UF(){this.j={}}function VF(a,b){var c=a.j[b]||{ae:0,done:0,gs:0,Wo:0};return a.j[b]=c};function WF(a){this.J=a;this.j=new UF;this.A=this.D=this.F=0;this.H=new QF(100);this.G=0;this.I=y();this.C=new RF(16,.6);this.B=new PF(4);this.J.o?this.o=new PF(17):this.o=new RF(17,.5,.1);a=hj("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=y()}function XF(a,b,c){b=Math.max(b,.05);a.o.o(b,c/b);YF(a)}function ZF(a,b,c){isNaN(c)||(a.D+=c);isNaN(b)||(a.F+=b/1E3);YF(a)}
function $F(a){a=a.C.C();a=isNaN(a)?.5:a;return a=Math.min(a,5)}function aG(a){return a.B.C()||0}function bG(a){a=a.o.C();return 0<a?a:1}function cG(a){var b={};b.delay=$F(a);b.tailDelay=aG(a);b.byterate=bG(a);return b}function dG(a){3E4<y()-a.A&&(Mq(cG(a)),a.A=y())}function YF(a){var b=y();a.I=b;500<b-a.G&&(a.H.add(1/(1/bG(a)+aG(a))),a.G=b)}function eG(a){return 4E3<=y()-a.I};function fG(){this.j=.5;this.o=!1};var gG={UN:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},tp:function(a,b){a.splice(0,b)},mf:function(a){a.reverse()}};function hG(a){a=a.split("");gG.UN(a,20);gG.tp(a,3);gG.UN(a,37);gG.mf(a,46);return a.join("")};function iG(){};function jG(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.ya=h||0;this.o=c||null;this.video=d||null;this.Sd=e||null;this.B=g||null;this.A=At[Ju(this)]||""}function Ju(a){return a.id.split(";",1)[0]}function kG(a){return!(a.o&&a.video)}function lG(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function mG(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function nG(a,b,c,d){this.name=a;this.language=b;this.Nk=c;this.isDefault=d}nG.prototype.toString=function(){return this.name};function oG(a){this.o=a;this.C=this.B=this.D="";this.j={};this.A=""}oG.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.A="")};oG.prototype.get=function(a){pG(this);return this.j[a]||null};function qG(a){a.A||(a.A=rG(a));return a.A}function sG(a){pG(a);return Jb(a.j,function(a){return null!==a})}
function pG(a){if(a.o){if(!eg(a.o))throw Error("Untrusted URL: "+a.o);var b=vf(a.o);a.D=b.Mb;a.C=b.rb+(null!=b.Bd?":"+b.Bd:"");var c=b.Lb;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=tG(c);qa(a.j,uG(b.ip()));qa(a.j,d);a.o="";a.A=""}}
function rG(a){pG(a);var b=a.D+(a.D?"://":"//")+a.C+a.B;if(sG(a)){var c=[];Hb(a.j,function(a,b){null!==a&&c.push(b+"="+a)});a=c.join("&");b+="?"+a}return b}function tG(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 uG(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 vG(a,b){this.start=a;this.end=b;this.length=b-a+1}function wG(a){a=a.split("-");return 2==a.length&&(a=new vG(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function xG(a,b){return new vG(a,a+b-1)}vG.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function yG(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 zG(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 AG(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.j=a;this.sourceURL=d;this.startTime=b;this.ha=e||null};function BG(){this.oa=[]}f=BG.prototype;f.yh=function(a){return(a=CG(this,a))?a.duration:0};f.tl=function(a){return this.yh(a)};f.Dg=function(){return this.oa[0].j};f.Kb=function(){return this.oa[this.oa.length-1].j};f.ig=function(){var a=this.oa[this.oa.length-1];return a?a.endTime:NaN};f.gt=function(){return this.oa[0].startTime};f.fp=function(){return this.oa.length};f.ik=function(){return 0};f.Fg=function(a){return(a=DG(this,a))?a.j:-1};f.gp=function(a){return CG(this,a).sourceURL};
f.cf=function(a){return(a=CG(this,a))?a.startTime:0};f.Ln=function(){return 0<this.oa.length};function CG(a,b){var c=xb(a.oa,new AG(b,0,0,""),function(a,b){return a.j-b.j});return 0<=c?a.oa[c]:null}function DG(a,b){var c=xb(a.oa,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.oa[c]:a.oa[Math.max(0,-c-2)]}
f.append=function(a){if(0!=a.length)if(a=sb(a),0==this.oa.length)this.oa=a;else{var b=this.oa.length?ab(this.oa).endTime:0,c=a[0].j-this.Kb();1<c&&mb(this.oa);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.oa.push(a[c])}}};function EG(a,b){var c=ib(a.oa,function(a){return a.j>=b},a);0<c&&a.oa.splice(0,c)};function FG(a){this.j=a;this.o={};this.A=""}FG.prototype.set=function(a,b){this.j.get(a);this.o[a]=b;this.A=""};FG.prototype.get=function(a){return this.o[a]||this.j.get(a)};function GG(a,b){var c=b.indexOf("?");if(0<c){var d=uG(b.substr(c+1));Hb(d,function(a,b){this.set(b,a)},a);b=b.substr(0,c)}d=tG(b);Hb(d,function(a,b){this.set(b,a)},a)}function VC(a){a.A||(a.A=HG(a));return a.A}
function HG(a){var b=qG(a.j),c=[];Hb(a.o,function(a,b){c.push(b+"="+a)});if(!c.length)return b;var d=c.join("&");a=sG(a.j)?"&":"?";return b+a+d}function IG(a,b){var c=new oG(b);Hb(a.o,function(a,b){c.set(b,null)});return c};function JG(a){this.j=a;this.o=0;this.A=-1}var KG=0;function LG(a,b){this.index=null;this.info=b;this.j=null;this.C=this.A=!1;this.D=new JG(a)}LG.prototype.hm=function(){return!1};LG.prototype.Xc=function(){return!1};LG.prototype.Er=function(a){return[a]};LG.prototype.Aj=function(a){return[a]};function MG(a,b,c,d,e,g,h,k,l){this.j=b;this.ha=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.ha?this.ha.length:NaN;this.G=!!l;this.ha?(this.D=this.A+this.o==this.ha.length,this.C=this.startTime+this.duration*this.A/this.ha.length,this.H=this.duration*this.o/this.ha.length):(this.D=0!=this.o,this.C=this.startTime,this.H=this.duration);this.F=this.C+this.H}function NG(a){return 1==a.type||2==a.type}
function OG(a,b){return a.j==b.j&&a.ha.start+a.A+a.o==b.ha.start+b.A}function PG(a){$a(1==a.length||hb(a,function(a){return!!a.ha}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new vG(a[0].ha.start+a[0].A,b.ha.start+b.A+b.o-1)}function QG(a){var b="";Hb(RG(a),function(a,d){b+=d+"="+a+","});return b.slice(0,-1)}function RG(a){var b={};b.itag=a.j.info.id;b.seg=a.B;a.ha&&(b.range=""+(a.ha.start+a.A)+"-"+(a.ha.start+a.A+a.o-1));b.time=""+a.C.toFixed(1)+","+(a.C+a.H).toFixed(1);return b};function SG(a,b){this.o=a[0].j.D;this.A=b||"";this.j=a;this.ha=this.j[0].ha&&0<this.j[0].o?PG(this.j):null}function WC(a){var b;/http[s]?:\/\//.test(a.A)?b=new FG(new oG(a.A)):(b=new FG(a.o.j),a.A&&GG(b,a.A));a.ha&&b.set("range",a.ha.toString());return b}function TG(a){if(a.ha)return a.ha.length;a=a.j[0];return Math.round(a.H*a.j.info.ya)};function UG(a,b,c,d,e){LG.call(this,a,b);this.index=e||new BG;this.B=d||null;this.F=c;this.o=!0}z(UG,LG);f=UG.prototype;f.hi=function(){return!1};f.ep=function(){var a=new MG(1,this,this.B);return[new SG([a],this.F)]};function UC(a,b){a.zh(b);return VG(a,b.D?b.B+1:b.B,!1)}f.Hi=function(a,b){var c=this.index.Fg(a);b&&(c=Math.min(this.index.Kb(),c+1));return VG(this,c,!0)};f.op=function(a){this.j=new Uint8Array(WG(a).buffer)};f.hm=function(){return!1};f.Xc=function(){return null!==this.j&&this.index.Ln()};
f.zh=function(a){return 0==a.o?!0:this.index.Kb()>a.B&&this.index.Dg()<=a.B+1};f.update=function(a,b,c){this.index.append(a);EG(this.index,c);this.o=b};function VG(a,b,c){var d=a.index.gp(b),e=a.index.cf(b),g=a.index.yh(b);c?g=c=0:c=0<a.info.ya?a.info.ya*g:1E3;a=new MG(3,a,null,b,e,g,0,c,b==a.index.Kb()&&!a.o&&0<c);return new SG([a],d)};function XG(a,b){this.$d=a;this.context=b};function YG(a,b,c){this.o=a;this.$d=b;this.j=c}function ZG(){this.j=[];this.o=null;this.B=0;this.A=[]}
ZG.prototype.update=function(a){var b=void 0;this.o&&(b=this.o);var c=b,b=+yG(a,"timescale")||1,d=+yG(a,"startNumber")||0,e=0,g=1;c&&(e=c.$d+c.j,g=d-c.o);c=new ZG;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 YG(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 XG(+k/b+l.$d,h))}c.j.length&&(c.o=ab(c.j));this.B=
c.B;this.o=c.o||this.o;this.j=c.j;tb(this.A,c.A)};function $G(a){var b=a.A;a.A=[];return b};function aH(){this.B=[];this.C=!1;this.j=null;this.o={};this.A={}}function bH(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 ZG:"AdaptationSet"==e.nodeName?a.o[e.attributes.mimeType.value]=new ZG:"Representation"==e.nodeName&&(a.A[e.attributes.id.value]=new ZG)}a.C=!0}
function cH(a,b){a.C||bH(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]);tb(c,$G(h))}Ab(c,function(a){return a.$d});tb(a.B,c)}function dH(a){a.j&&(a.j.j=[]);Hb(a.o,function(a){a.j=[]});Hb(a.A,function(a){a.j=[]})};function eH(a,b){var c=fH(a,0,1836019558);if(!c)return null;var d=fH(a,c.offset+8,1835427940),e=fH(a,c.offset+8,1953653094);if(!d||!e)return null;var g=fH(a,e.offset+8,1952868452),h=fH(a,e.offset+8,1953658222),k=fH(a,e.offset+8,1952867444);if(!g||!h||!k)return null;var l=fH(a,e.offset+8,1935763823),e=fH(a,e.offset+8,1935763834);if(l){var p=gH(l),r=gH(l);if(0!=p||1!=r)return null;p=gH(l)}for(var u=gH(g),C=gH(g),V=u&2,U=u&1?hH(g):0,ia=V?gH(g):0,Ba=u&8?gH(g):0,r=u&16?gH(g):0,Le=u&32?gH(g):0,u=gH(h),
bh=u&1,Ns=u&4,Vz=u&256,g=u&512,X1=u&1024,Y1=u&2048,u=gH(h),Z1=bh?gH(h):0,$1=Ns?gH(h):0,bh=[],FN=[],oB=[],pB=[],GN=0,Se=0,cc=0;cc<u;cc++){var a2=Vz?gH(h):Ba;g&&bh.push(gH(h));var ud=Le;Ns&&0==cc?ud=$1:X1&&(ud=gH(h));FN.push(ud);ud=Y1?gH(h):0;0==cc&&(GN=ud);oB.push(Se+ud);pB.push(cc);Se+=a2}zb(pB,function(a,b){return oB[a]-oB[b]});h=[];for(cc=0;cc<u;cc++)h[pB[cc]]=cc;Se=V?4:0;cc=16*u;ud=68+Se+k.size+cc+(l?l.size:0)+(e?e.size:0);c=ud-c.size;Ba=new iH(ud);jH(Ba,ud);jH(Ba,1836019558);kH(Ba,d);jH(Ba,ud-
24);jH(Ba,1953653094);jH(Ba,16+Se);jH(Ba,1952868452);jH(Ba,131072|(V?2:0));jH(Ba,C);V&&jH(Ba,ia);kH(Ba,k);jH(Ba,20+cc);jH(Ba,1953658222);jH(Ba,16781057);jH(Ba,u);jH(Ba,U+Z1+c);for(cc=Se=0;cc<u;cc++)k=h[cc],d=Math.round(b*k/u),k=Math.round(b*(k+1)/u)-d,ud=d-Se+GN,jH(Ba,k),jH(Ba,g?bh[cc]:r),jH(Ba,FN[cc]),jH(Ba,ud),Se+=k;l&&(jH(Ba,l.size),jH(Ba,1935763823),jH(Ba,0),jH(Ba,1),jH(Ba,p+c));e&&kH(Ba,e);return Ba.data.buffer}
function lH(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);for(var b=0;mH(a,b);){var c=nH(a,b);if(1836476516==c.type)return oH(c);b=pH(c.type)?b+8:b+c.size}return NaN}function fH(a,b,c){for(;mH(a,b);){var d=nH(a,b);if(d.type==c)return d;b+=d.size}return null}function nH(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new qH(a,b,c,d)}function oH(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)}function rH(a){return a.data.getUint32(a.offset+16)}
function sH(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}function mH(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 pH(a){return 1836019558==a||1836019574==a||1953653094==a}function qH(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.j=8}function gH(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}
function hH(a){var b=sH(a.data,a.offset+a.j);a.j+=8;return b}qH.prototype.skip=function(a){this.j+=a};function iH(a){this.data=new DataView(new ArrayBuffer(a));this.j=0}function jH(a,b){a.data.setInt32(a.j,b);a.j+=4}function kH(a,b){for(var c=0;c+4<=b.size;)jH(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 tH(a,b,c,d){this.info=a;this.buffer=b;this.ha=c;this.j=d}function WG(a){return a.ha?new DataView(a.buffer,a.ha.start,a.ha.length):new DataView(a.buffer)}
function uH(a,b){if(a.info.o!=a.ha.length)return!1;if(1==a.info.j.info.j){if(8>a.info.o||4==a.info.type)return!0;var c=WG(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=WG(a);d=c.getUint32(0,!1);if(3==a.info.type&&0==a.info.A)return 524531317==d}return!0}
function vH(a){var b;i:{for(var c=0,d=new DataView(a.buffer);mH(d,c);){b=nH(d,c);if(1936286840==b.type){c=rH(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 i}c=pH(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;mH(b,d);){var h=nH(b,d);1936286840==h.type?e=rH(h):1836476516==h.type?e=oH(h):1836019558==h.type&&(g=h);d=pH(h.type)?d+8:d+h.size}!e&&c&&(e=lH(c));if(g&&e){g=fH(b,g.offset+
8,1953653094);c=fH(b,g.offset+8,1952868452);g=fH(b,g.offset+8,1953658222);b=gH(c);gH(c);b&2&&gH(c);b=b&8?gH(c):0;var k=gH(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&&gH(g);c&&gH(g);for(var u=l=0;u<r;u++){var C=d?gH(g):b;h&&gH(g);c&&0==u||!p||gH(g);k&&gH(g);l+=C}b=l/e}else b=NaN}return b||a.info.H};function wH(){this.ra=0;this.j=new Float64Array(128);this.o=new Float64Array(128);this.B=1;this.A=!1}f=wH.prototype;f.ik=function(a){return this.j[a]};f.cf=function(a){return this.o[a]/this.B};f.yh=function(a){a=this.tl(a);return 0<=a?a/this.B:-1};f.tl=function(a){return a+1<this.ra||this.A?this.o[a+1]-this.o[a]:-1};f.Dg=function(){return 0};f.Kb=function(){return this.ra-1};f.ig=function(){return this.A?this.o[this.ra]/this.B:NaN};f.gt=function(){return 0};f.fp=function(){return this.ra};f.gp=function(){return""};
f.Fg=function(a){a=xb(this.o.subarray(0,this.ra),a*this.B);return 0<=a?a:Math.max(0,-a-2)};f.Ln=function(){return 0<=this.Kb()};function xH(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 yH(a,b){this.o=a;this.j=0;this.A=b||0}function zH(a){for(var b=AH(a,!1);236==b;)BH(a),b=AH(a,!1);return b}
function CH(a){var b=AH(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 yH(c,a.A+a.j);a.j+=b;return c}function DH(a){for(var b=AH(a,!0),c=EH(a),d=1;d<b;d++)c=256*c+EH(a);return c}function BH(a){var b=AH(a,!0);a.j+=b}function AH(a,b){var c=EH(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+EH(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+EH(a),e*=128;return b?c-e:c}function EH(a){return a.o.getUint8(a.j++)};function FH(a,b,c,d,e,g){LG.call(this,a,b);this.initRange=c;this.indexRange=d;this.B=null;this.index=new wH;this.o=e;this.lastModified=g}z(FH,LG);f=FH.prototype;f.Xc=function(){return!(!this.j||!this.index.Ln())};
f.ep=function(a){var b=new MG(1,this,this.initRange),c=new MG(2,this,this.indexRange),d=[],e=[b];OG(b,c)?e.push(c):(d.push(new SG([c])),a=0);isNaN(this.o)?a=0:a>this.o&&(a=this.o);b=e[e.length-1];c=b.ha.end-e[0].ha.start+1;a>c&&(a=xG(b.ha.end+1,a-c),e.push(new MG(4,this,a)));d.push(new SG(e));return d};
f.op=function(a){if(1==a.info.type){if(this.j)return;this.j=new Uint8Array(a.buffer,a.ha.start,a.ha.length)}else if(2==a.info.type){if(this.B||0<=this.index.Kb())return;if(1==this.info.j){var b=this.index,c=WG(a),d=a.info.ha.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++;xH(g);g.j[g.ra]=g.j[g.ra-1]+k;g.o[g.ra]=g.o[g.ra-1]+h}}else this.B=WG(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 yH(a);if(440786851==zH(a)&&(BH(a),408125543==zH(a))){e=a;g=e.j;d=AH(e,!0);e.j=g;a=CH(a);for(var e=a.A+a.j,l=zH(a);357149030!=l;)BH(a),
l=zH(a);a=CH(a);for(var k=1E6,p=1E9,g=0;!(a.j>=a.o.byteLength);)if(l=zH(a),2807729==l)k=DH(a);else if(2807730==l)p=DH(a);else if(17545==l){var g=a,l=AH(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 BH(a);b.B=p/k;a=new yH(h);if(475249515==zH(a)){a=CH(a);h=!0;for(k=!1;!(a.j>=a.o.byteLength);)if(l=zH(a),187==l){p=CH(a);l=e;if(179!=zH(p))r=null;else if(r=DH(p),183!=zH(p))r=null;else{for(var p=CH(p),u=l;!(p.j>=p.o.byteLength);)241==zH(p)?u=DH(p)+l:BH(p);r=[u,r]}h&&
c==r[0]&&(k=!0);h=!1;k&&(r[0]+=1);p=b;l=r[0];r=r[1];xH(p);p.j[p.ra]=l;p.o[p.ra]=r;p.ra++}else BH(a);c=d+e;a=g;xH(b);b.A=!0;b.o[b.ra]=a;b.j[b.ra]=c}}this.B=null}};function GH(a,b,c,d){for(var e=[];b<=a.index.Kb();b++){var g;g=a.index;var h=b;g=xG(g.ik(h),h+1<g.ra||g.A?g.j[h+1]-g.j[h]:-1);var h=a.index.cf(b),k=a.index.yh(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new MG(3,a,g,b,h,k,l,p,b==a.index.Kb()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new SG(e)}
f.Er=function(a){for(var b=this.Aj(a.info),c=[],d=a.j,e=0;e<b.length;e++){var g=xG(b[e].ha.start+b[e].A-a.info.ha.start+a.ha.start,b[e].o);c.push(new tH(b[e],a.buffer,g,d));d=!1}return c};f.Aj=function(a){for(var b=0;b<this.index.Kb()&&a.ha.start>=this.index.ik(b+1);)b++;return GH(this,b,a.ha.start,a.ha.length).j};f.zh=function(a){return this.Xc()?!0:isNaN(this.o)?!1:a.ha.end+1<this.o};
function HH(a,b,c){a.zh(b);if(!a.Xc())return c=xG(b.ha.end+1,c),c.end+1>a.o&&(c=new vG(c.start,a.o-1)),a=[new MG(4,b.j,c)],new SG(a);4==b.type&&(b=a.Aj(b),b=b[b.length-1]);var d=0,e=b.ha.start+b.A+b.o;3==b.type&&(d=b.B,e==b.ha.end+1&&(d+=1));return GH(a,d,e,c)}f.Hi=function(a,b){var c=this.index.Fg(a);b&&(c=Math.min(this.index.Kb(),c+1));return GH(this,c,this.index.ik(c),0)};f.hm=function(){var a;if(a=this.Xc()&&!isNaN(this.o))a=this.index,a=(a.A?a.j[a.ra]:-1)!=this.o;return a};f.hi=function(){return!0};function IH(a,b){S.call(this);this.O=!!b;this.G=this.duration=0;this.isLive=this.C=!1;this.I=y();this.D=Infinity;this.j={};this.J=a||"";this.N=this.H=0;this.F=!1;this.o=this.B=0;this.A=null}z(IH,S);IH.prototype.getErrorCode=function(){return 3>this.o?"manifest.net":"manifest.net.retryexhausted"};function JH(a){return Jb(a.j,function(a){return!!a.info.B},a)}var KH=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function LH(a,b){var c=new IH;D(a,function(a){var e=a.type,g=a.itag,h=null;mG(e)&&(h=a.size.split("x"),h=new oF(+h[0],+h[1],+a.fps,+a.projection_type));var k=null,l=null;if(lG(e)&&(k=new iG,a.name)){var l=a.name,p=a.lang,r=a.acont;if(a.url){var u=zj(a.url);u.xtags&&(u=vj(u.xtags,":"),u.lang&&(p=u.lang),u.acont&&(r=u.acont))}l=new nG(l,p,r,"1"==a.isDefault)}a.xtags&&(g=a.itag+";"+a.xtags);var p=parseInt(a.bitrate,10)/8,C=null;b&&a.drm_families&&(C={},D(a.drm_families.split(","),function(a){C[a]=b[a]}));
e=new jG(g,e,k,h,l,C,p);h=wG(a.init);k=wG(a.index);l=MH(a.url,e,a.s);p=parseInt(a.clen,10);a=parseInt(a.lmt,10);l&&(c.j[g]=new FH(l,e,h,k,p,a))});return c}function NH(a){if(!a)return 0;var b=KH.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function MH(a,b,c){a=new oG(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",hG(c));return a}
function OH(a){var b=yG(a,"id"),b=b.replace(":",";");"captions"==b&&(b=yG(a,"lang"));var c=yG(a,"mimeType"),d=yG(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(yG(a,"bandwidth"),10)/8,e=null;mG(c)&&(e=new oF(parseInt(yG(a,"width"),10),parseInt(yG(a,"height"),10),parseInt(yG(a,"frameRate"),10)));var g=null,h=null;if(lG(c)){g=new iG;var h=yG(a,"lang")||"",k=zG(a,"Role");if(k){var k=yG(k,"value")||"",l="invalid";"main"==k?l="original":"dub"==k?l="dubbed":"descriptive"==k?l="descriptive":"commentary"==
k&&(l="commentary");h="invalid"!=l&&h?new nG(yG(a,"yt:langName")||h+" - "+l,h,l,"original"==l):null}else h=null}k=null;if(a=zG(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 jG(b,c,g,e,h,k,d)}
function PH(a,b,c,d){a.B=1;b=b||a.J;c={format:"RAW",method:"GET",xc:x(a.R,a,c,d||null)};a.O&&(c.timeout=15E3);Kj(b,c)}
IH.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*NH(yG(c,"minimumUpdatePeriod"))||Infinity;this.isLive=Infinity>this.D;this.C=!0;this.G=parseInt(yG(c,"yt:earliestMediaSequence"),10);this.A||(this.A=new aH);cH(this.A,c);this.L("refresh");for(c=0;c<b.length;c++){var d=OH(b[c]);
if(!this.j[d.id]){var e=MH(zG(b[c],"BaseURL").textContent,d),g=zG(b[c],"Initialization"),h=yG(g,"sourceURL"),g=wG(yG(g,"range"));this.j[d.id]=new UG(e,d,h,null===g?void 0:g)}for(var d=this.j[d.id],e=this.A,h=d,g=Za(h.info.mimeType,";",1)[0],h=e.A[h.info.id]||e.o[g]||e.j||null,e=vb(zG(b[c],"SegmentList").getElementsByTagName("SegmentURL"),h.B),h=h.j,g=[],k=0;k<e.length;k++)g.push(QH(e[k],h[k]));d.update(g,this.isLive,this.G)}dH(this.A)}else t:for(this.duration=NH(yG(c,"mediaPresentationDuration")),
c=0;c<b.length;c++){g=b[c];d=OH(g);h=zG(g,"BaseURL");e=MH(h.textContent,d);k=zG(g,"SegmentBase");g=wG(k.attributes.indexRange.value);k=wG(k.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),10);d=new FH(e,d,k,g,h,NaN);if(!d)break t;this.j[d.info.id]=d}this.I=y();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 QH(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");null!=e&&(0<=parseInt(e.split("-")[1],10)?d=wG(e):c=c+"?range="+e);return new AG(b.o,b.$d,b.j,c,d)}function RH(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.ig();return NaN}function SH(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.gt();return 0}function TH(a,b){Hb(a.j,function(a){Hb(b,function(b,e){a.D.j.set(e,b)})})};function UH(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.Eb=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=UH.prototype;f.getHeight=function(){return this.F};f.Fi=function(){return this.o};f.isDefault=function(){return-1!=this.B.indexOf("default")};
function VH(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=Ve(c,{sigh:a.D}));return kg(c)}function WH(a,b){var c=Math.floor(b/(a.Eb*a.rows)),d=a.Eb*a.rows,e=b%d,g=e%a.Eb,e=Math.floor(e/a.Eb),h=a.rows,k=a.On()+1-d*c;k<d&&(h=Math.ceil(k/a.Eb));return{url:VH(a,c),vw:g,Eb:a.Eb,row:e,rows:h,nq:a.G*a.Eb,lq:a.F*h}}f.jk=function(a){var b=this.Fi()-1;a=0==this.C?Math.round(a*this.o/this.J):Math.round(1E3*a/this.C);return Pc(a,0,b)};
f.On=function(){return this.o-1};f.jt=function(){return this.o?0:-1};f.kt=function(){};function XH(a,b){this.j=this.o(a,b);this.A={};1<this.j.length&&this.j[0].isDefault()&&this.j.splice(0,1)}XH.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};XH.prototype.B=function(a,b,c,d){return new UH(a,b,c,d)};function YH(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}XH.prototype.C=function(){};function ZH(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");UH.call(this,a,b,c,0);this.j=null;this.H=d?3:0}z(ZH,UH);f=ZH.prototype;f.Fi=function(){return this.j?this.j.fp():-1};f.jk=function(a){var b=this.rows*this.Eb*this.H,c=-1,d=-1,e=this.j;e&&(c=e.Kb(),d=e.Fg(a));return d>c-b?-1:d};f.On=function(){return this.j?this.j.Kb():-1};f.jt=function(){return this.j?this.j.Dg():-1};f.kt=function(a){this.j=a?a.index:null};function $H(a,b){this.D=b;XH.call(this,a,0)}z($H,XH);$H.prototype.o=function(a,b){return $H.K.o.call(this,"$N|"+a,b)};$H.prototype.B=function(a,b,c){return new ZH(a,b,c,this.D.isLive)};$H.prototype.C=function(a){for(var b=0;b<this.j.length;b++)this.j[b].kt(a)};var aI={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};function bI(a,b){return void 0==b?a:"1"==b?!0:!1}function cI(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function dI(a,b){return void 0==b?a:Number(b)}function eI(a,b){return void 0==b?a:b.toString()}var fI=/^([0-9\.]+)\:([0-9\.]+)$/;function gI(a){if(a&&(a=a.match(fI))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function hI(a,b){var c=Nt.auto,d=Nt[b];return d>Nt.medium?new Pt(d,c,!1):d>=c?new Pt(c,d,!1):a};function iI(a){cx.call(this,1,arguments);this.j=a}z(iI,cx);var lx=new fx("timing-sent",iI);var jI=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},kI=x(jI.clearResourceTimings||jI.webkitClearResourceTimings||jI.mozClearResourceTimings||jI.msClearResourceTimings||jI.oClearResourceTimings||v,jI),lI=jI.mark?function(a){jI.mark(a)}:v;
function mI(a,b,c){nI(c)[a]=b||y();b||lI(a);if(Tf("CSI_LOG_ON_TICK")&&(b=Tf("TIMING_ACTION"),a=nI(c),b&&a._start&&oI(c))){b=!0;var d=Tf("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)&&pI(c)}}function qI(a,b){var c=nI(b);return a in c}function rI(a,b,c){sI(c).info[a]=b}function tI(a){uI(a);kI();q("yt.timing.pingSent_",!1,void 0)}
function oI(a){a=nI(a);if(a.aft)return a.aft;for(var b=Tf("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return NaN}function vI(a){return Math.round(jI.timing.navigationStart+a)}
function wI(a){var b=window.location.protocol,c=jI.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=vI(d.startTime),a.wfce=vI(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=vI(c.startTime),a.wffe=vI(c.responseEnd))}
function pI(a){var b=nI(a),c=sI(a).span,d=sI(a).info,e=t("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))xI(e),tI(a)}else{e={v:2,s:Tf("CSI_SERVICE_NAME","youtube"),action:Tf("TIMING_ACTION")};if(jI.now&&jI.timing){var g=jI.timing.navigationStart+jI.now(),g=Math.round(y()-g);d.yt_hrd=g}var g=Tf("TIMING_INFO")||{},h;for(h in g)d[h]=g[h];h=d.srt;delete d.srt;var k;h||0===h||(k=jI.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=jI.getEntriesByName?jI.getEntriesByName(g)[0]:null)?d.h5jse=Math.round(d.h5jse-g.responseEnd):delete d.h5jse);b.aft=oI(a);g=b._start;if("cold"==d.yt_lt){k||(k=jI.timing||{});var l;i: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 i}l=0}0<l&&
l>g&&(b.fpt=l);l=sI(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);Tf("EXP_WEBFONT_ENABLED")&&jI.getEntriesByType&&wI(b)}Tf("CSI_MORE")&&(d.p=Tf("CLIENT_PROTOCOL")||"unknown",d.t=Tf("CLIENT_TRANSPORT")||
"unknown",b.ps=y());for(var u in d)"_"!=u.charAt(0)&&(e[u]=d[u]);d={};u=[];for(var C in b)"_"!=C.charAt(0)&&(l=Math.max(Math.round(b[C]-g),0),d[C]=l,u.push(C+"."+l));e.rt=u.join(",");b={};C=[];for(var V in c)"_"!=V.charAt(0)&&(b[V]=c[V],C.push(V+"."+c[V]));e.it=C.join(",");(c=t("ytdebug.logTiming"))&&c(e,d,b);tI(a);Tf("EXP_DEFER_CSI_PING")?(yI(),q("yt.timing.deferredPingArgs_",e,void 0),a=L(yI,0),q("yt.timing.deferredPingTimer_",a,void 0)):xI(e);a=new iI(d.aft+(h||0));c=lx;(e=mx())&&e.publish.call(e,
c.toString(),c,a)}}function xI(a){Tf("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];og(b+"?"+c.substring(1));q("yt.timing.pingSent_",!0,void 0)}function yI(a){if(Tf("EXP_DEFER_CSI_PING")){var b=t("yt.timing.deferredPingArgs_");b&&(a&&(b.yt_fss=a),xI(b))}}function nI(a){return sI(a).tick}
function sI(a){return t("ytcsi."+(a||"")+"data_")||uI(a)}function uI(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};var zI={aI:0,lH:1,PH:2};function AI(a,b,c){c=c||{};Qj(c.mb,c.pageId,x(BI,m,a,b,c),c.onError)}
function BI(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.mb&&(d.authuser=c.mb);c.pageId&&(d.pageid=c.pageId);a={screen:Te({h:screen.height,w:screen.width,d:screen.colorDepth})};c.bD&&(a.station_id=c.bD);Kj("/watch_actions_ajax",{format:"XML",method:"POST",eg:d,Ib:a,jb:c.jb,onError:c.onError,xc:c.xc})};function CI(a,b){this.o=a;this.j=b;this.A=0}function DI(a){for(var b=a.A-a.o.bitrate,c=[],d=[],e=0,g=a.j.length;e<g;++e){var h=a.j[e];h.bitrate<=b?c.push(h):d.push(h)}c.sort(function(a,b){return b.bitrate-a.bitrate});d.sort(function(a,b){return a.bitrate-b.bitrate});a.j=c.concat(d)};function EI(a,b,c,d,e,g,h){this.itag=a;this.url=b;this.j=c;this.width=d;this.height=e;this.bitrate=h;this.fps=g};function FI(a,b){this.Sb=a;this.A=b;this.o=null}z(FI,yu);function GI(a,b,c,d,e,g,h,k){var l=new iG;d=new oF(d,e,g,null,0,h);c=new jG(c,"application/x-mpegURL",l,d);a=new CI(a,b);a.A=k?k:1369843;return new FI(c,a)}
FI.prototype.j=function(){if(!this.o||this.o.ka()){var a;a=this.A;DI(a);var b=["#EXTM3U"];b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="aud",URI="'+a.o.url+'"');for(var c=0,d=a.j.length;c<d;++c){var e=a.j[c],g=a.o;b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+g.bitrate)+',CODECS="'+(e.j+","+g.j)+'",RESOLUTION='+(e.width+"x"+e.height)+',AUDIO="aud",CLOSED-CAPTIONS=NONE');b.push(e.url)}a=b.join("\n");this.o=new ku("data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a))}return this.o};function HI(a,b){this.Sb=a;this.o=b}z(HI,yu);function II(a,b,c,d,e){var g=new iG;c in Nt||(c="small");var h=Nt[c],k=Math.round(16*h/9);c=new oF(k,h,0,null,e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new HI(new jG(d,b,g,c),a)}function JI(a){var b=[];D(a,function(a){a.url&&b.push(II(a.url,a.type,"medium","0"))});return b}
function KI(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||hG(e.s);e.url=Cj(e.url,{signature:g})}e.url&&c.push(II(e.url,e.type,e.quality,e.itag,e.stereo3d))}return Fu(c,!!b)}HI.prototype.j=function(){return new ku(this.o)};function LI(a,b){this.j=a;this.o=b}LI.prototype.getValue=function(){return this.o};LI.prototype.clone=function(){return new LI(this.j,this.o)};function MI(a){this.j=[];if(a)i:{var b,c;if(a instanceof MI){if(b=a.La(),c=a.Oa(),0>=a.Ta()){a=this.j;for(var d=0;d<b.length;d++)a.push(new LI(b[d],c[d]));break i}}else b=Pb(a),c=Ob(a);for(d=0;d<b.length;d++)NI(this,b[d],c[d])}}function NI(a,b,c){var d=a.j;d.push(new LI(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=MI.prototype;
f.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)mb(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.Oa=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};f.La=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};f.tf=function(a){return gb(this.j,function(b){return b.getValue()==a})};
f.clone=function(){return new MI(this)};f.Ta=function(){return this.j.length};f.isEmpty=function(){return lb(this.j)};f.clear=function(){mb(this.j)};function OI(){MI.call(this)}z(OI,MI);function PI(a,b){S.call(this);this.j=a;this.A=new OI;this.C={};this.B=b||""}z(PI,S);PI.prototype.o=!1;function QI(a,b,c){var d;for(c=YH(a.j,c);0<=c;){d=a.j.j[c];if(d=d.A[Math.floor(b/(d.Eb*d.rows))]?WH(d,b):null)return d;c--}return WH(a.j.j[0],b)}function RI(a,b,c){c=YH(a.j,c);for(var d,e;0<=c;c--)if(d=a.j.j[c],e=Math.floor(b/(d.Eb*d.rows)),!d.A[e]){d=a;var g=c,h=g+"-"+e;d.C[h]||(d.C[h]=!0,NI(d.A,g,{$p:g,mq:e}))}SI(a)}
function SI(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=VH(a.j.j[b.$p],b.mq);c.onload=x(a.D,a,b.$p,b.mq)}}PI.prototype.D=function(a,b){this.o=!1;var c=this.j.j[a];c.A[b]=!0;SI(this);var d,e=c.Eb*c.rows;d=b*e;c=Math.min(d+e-1,c.Fi()-1);d=[d,c];this.L("l",d[0],d[1])};function Nr(a){S.call(this);this.Vh=new H(0,0);this.$a=this.ga=!1;this.te="";this.ie=this.Aa=!1;this.tb={};this.captionTracks=[];this.Ca=[];this.ee=0;this.ge=[];this.Da=!1;this.Y=new Mt("und","Default","und","und",!0);this.Ka=0;this.Th=new Pv(this.Or,5E3,this);R(this,this.Th);this.I=[];this.B={};this.keywords={};this.D={};TI(this,a)}z(Nr,S);Nr.F=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Nr.o=1;Nr.B=-21;Nr.C=18E3;Nr.D="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs sentiment subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");
Nr.j={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};Nr.A=["www.youtube.com","manifest.googlevideo.com"];f=Nr.prototype;f.adModule=!1;f.adaptiveFormats="";f.Os=null;f.allowEmbed=!0;f.wb=!1;f.ci="";f.qo=!1;f.Pk=!1;f.to=Nr.o;f.ek=null;f.xs=null;f.author="";f.ck=0;f.ii=!1;f.zo=3;f.No=!1;f.ji="";f.clientPlaybackNonce="";f.contentCheckOk=!1;f.bf=0;f.ll=!1;f.wi=!1;f.kl=!1;f.vf=0;f.Qf=!1;f.sp=!1;f.dk=0;f.am=0;f.Tp=!1;f.Rg=!1;f.Vp=!0;
f.Vi=!1;f.gm=!1;f.im=!1;f.Qa=!1;f.jm=!1;f.ne=!1;f.Xp=!1;f.pm=!1;f.fz=0;f.lengthSeconds=0;f.Dn=0;f.wr=!1;f.racyCheckOk=!1;f.ye=1;f.Sm=Rt;f.Rr=0;f.an=!1;f.startSeconds=0;f.Lj=null;f.Rm=2;f.Mj=Rt;f.ds=!1;f.mh=!1;f.Ye=null;f.title="";f.Ze="";f.hlsFormats="";f.$j=null;f.nn="vvt";f.Dr=!1;f.Wr=!1;f.clipStart=0;f.clipEnd=Infinity;
function Sr(a,b){var c=b||{};c.iv_invideo_url&&(a.ci=jg(c.iv_invideo_url));c.iv_ads_only&&(a.qo="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.Zc=c.cta_conversion_urls);a.author=eI(a.author,c.author);a.ii=bI(a.ii,c.cc_asr);var d=c.ttsurl;ig(d)?a.ji=d:d&&(d=jg(d),ig(d,!0)&&(a.ji=d));c.caption_tracks&&c.caption_audio_tracks&&(UI(a,c.caption_tracks),a.Ca=yj(c.caption_audio_tracks),c.default_audio_track_index&&(a.ee=parseInt(c.default_audio_track_index,10)||0),c.caption_translation_languages&&VI(a,c.caption_translation_languages));
a.Da=bI(a.Da,c.cc_contribute);a.clientPlaybackNonce=eI(a.clientPlaybackNonce,c.cpn);a.subscribed=eI(a.subscribed,c.subscribed);a.Rm=cI(a.Rm,c.sentiment,zI);a.title=eI(a.title,c.title);a.ta=eI(a.ta,c.ypc_preview);a.bb=eI(a.bb,c.ypc_origin);a.wr=bI(a.wr,c.paygated);a.Dr=bI(a.Dr,c.requires_purchase);c.keywords&&(a.keywords=WI(c.keywords));c.rvs&&(a.O=yj(c.rvs));a.contentCheckOk=bI(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=bI(a.racyCheckOk,"1"==c.rco);a.C=eI(a.C,c.oauth_token);D(Nr.D,function(a){a in
c&&(this.B[a]=c[a])},a)}
function TI(a,b){var c=b||{};a.wb="1"!=c.hlsdvr||ci||$h&&5>ks?!1:!0;a.Pk="1"==c.infringe||"1"==c.muted;a.ce=c.authkey;a.mb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||FD());a.Zv=y();a.yk=c.t;a.ll=bI(a.ll,c.cenchd);a.wi=bI(a.wi,c.enable_cardio);a.kl=bI(a.kl,c.enable_cardio_before_playback);a.vf=dI(a.vf,c.end||c.endSeconds);a.Fa=eI(a.Fa,c.itct);a.Vp="1"!=c.no_get_video_log;a.Vi="1"==c.tmi;a.gm=bI(a.gm,c.noiba);a.im="1"==c.livemonitor;a.Qa="1"==c.live_playback;a.jm=bI(a.jm,c.mdx);
a.pm=bI(a.pm,c.utpsa);for(var d in Nr.j){var e=c[d+"_webp"]||c[d];gg(e)&&(a.tb[Nr.j[d]]=e)}a.G=eI(a.G,c.vvt);a.Ak=c.osig;a.Nh=c.ptchn;a.Qh=c.oid;a.J=c.ptk;a.Rh=c.pltype;a.playbackId=c.plid;a.H=c.eventid;a.Ob=c.osid;a.$v=c.vm;a.hu=c.of;a.playlistId=eI(a.playlistId,c.list);a.Sh=c.pyv_view_beacon_url;a.Ck=c.pyv_quartile25_beacon_url;a.Uv=c.pyv_quartile50_beacon_url;a.Wv=c.pyv_quartile75_beacon_url;a.Bk=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.Yh=c.sdetail;!a.ab&&c.session_data&&(a.ab=vj(c.session_data,"&").feature);a.ve=1==dI(a.ve?1:0,c.is_fling);a.ic=eI(a.ic,c.ctrl);a.jc=eI(a.jc,c.ytr);a.he=c.ytrcc;a.Wr="1"==c.skip_kansas_logging;a.mc=eI(a.mc,c.cl);a.Sm=hI(a.Sm,c.vq);a.Mj=hI(a.Mj,c.suggestedQuality);a.pa=c.approx_threed_layout||0;a.ds="1"==c.threed_converted;a.startSeconds=dI(a.startSeconds,c.start||c.startSeconds);a.Zh=bI(a.Zh,c.ssrt);a.videoId=c.docid||c.video_id||
c.videoId||a.videoId;a.Wh=eI(a.Wh,c.vss_credentials_token);a.nn=eI(a.nn,c.vss_credentials_token_type);XI(a,c.watermark);a.Xh=eI(a.Xh,c.ypc_gid);a.ib=eI(a.ib,c.ypc_license_session_token);a.heartbeatToken=eI(a.heartbeatToken,c.heartbeat_token);a.Fd=dI(a.Fd,c.heartbeat_interval);a.ue=dI(a.ue,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.sp=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);
void 0!=c.atc&&(a.da=c.atc);c.license_info&&(a.Os=YI(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.autonav&&(a.Tp="1"==c.autonav);c.autoplay&&(a.Rg="1"==c.autoplay);c.iv_load_policy&&(a.ua=ZI(c.iv_load_policy,a.ua));c.cc_load_policy&&(a.zo=ZI(c.cc_load_policy,2));"0"==c.dash&&(a.No=!0);c.dashmpd&&(a.R=Ve(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.R))&&(e=hG(e[1]),a.R=a.R.replace(d,"/signature/"+e));c.delay&&(a.bf=Va(c.delay));void 0!=c.end&&(a.clipEnd=
c.end);c.fresca_preroll&&a.I.push("fresca");c.idpj&&(a.dk=Va(c.idpj));c.ismb&&(a.am=Va(c.ismb));c.url_encoded_fmt_stream_map&&(a.Ze=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=Va(c.length_seconds));!a.lengthSeconds&&a.Qa&&(a.lengthSeconds=a.wb?3600:Infinity);c.ldpj&&(a.Dn=Va(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.to=$I(a));c.partnerid&&(a.U=Va(c.partnerid));c.probe_url&&(a.probeUrl=kg(Ve(c.probe_url,
{cpn:a.clientPlaybackNonce})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(Jf)&&(a.ma=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(Jf)&&(a.na=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Wa=d.quartile_0_url,a.kf=d.quartile_25_url,a.lf=d.quartile_50_url,a.Lh=d.quartile_75_url,a.jf=d.quartile_100_url);c.spacecast_address&&(a.I.push("spacecast"),a.ob=c.spacecast_address);void 0==c.start||"1"==c.resume||a.Qa||(a.clipStart=c.start);c.threed_module&&
!c.threed_converted&&(a.sa=c.threed_module,a.Yv=6);c.two_stage_token&&(a.ek=c.two_stage_token);c.url_encoded_third_party_media&&(a.Ye=yj(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.xs=c.watch_ajax_token);c.ypc_module&&a.I.push("ypc");c.ypc_clickwrap_module&&a.I.push("ypc_clickwrap");a.Uh=eI(a.Uh,c.ucid);D("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.D[a]=c[a])},a);a.D.focEnabled=bI(a.D.focEnabled,c.focEnabled);a.D.rmktEnabled=bI(a.D.rmktEnabled,c.rmktEnabled);
a.B=c;Sr(a,c);aJ(a)}function bJ(a){return!(!a.A||!a.A.o.length)}function aJ(a){(a.Qa||a.im)&&"1"==a.B.as3fb||!Lu()||a.No||(a.adaptiveFormats?a.j=LH(cJ(a,a.adaptiveFormats),a.Os):a.R&&(a.Qf=!0,a.ga=!0))}f.lA=function(a){this.ka()||(this.j=a,this.j.subscribe("refresh",this.Eq,this),mI("mrc"),this.j&&(this.lengthSeconds=this.j.duration||RH(this.j)||this.lengthSeconds),this.En())};
f.Eq=function(){this.j.isLive||this.j.qa("refresh",this.Eq,this);var a=vb(this.j.A.B,this.Ka);0<a.length&&(this.L("cuepointupdated",a),this.Ka+=a.length)};f.En=function(){this.ka()||(this.Qf=!1,this.Aa&&!dJ(this)?this.L("dataloaderror",new Pq("fmt.noneavailable",!0)):this.L("dataloaded",this.B))};
function bF(a){if(!a.ka()){a.A=null;a.V=null;a.N=null;if(a.ca){var b=cJ(a,a.ca);a.N=KI(b,!1);a.A=new Wt(E(a.N,function(a){return a.Sb}))}!a.A&&a.j&&(a.A=Nu(a.j));a.A||(a.N=eJ(a),a.N.length&&(a.A=new Wt(E(a.N,function(a){return a.Sb}))));fJ(a);a.Rr=Math.min(.8*a.lengthSeconds,180)}}
function eJ(a){if(a.hlsFormats){var b=cJ(a,a.hlsFormats),c;c=a.am;if(ps){var d;d=null;for(var e=[],g=0,h=b.length;g<h;++g){var k;k=b[g];var l=k.type.match(/codecs="([^"]*)"/);k=new EI(k.itag,k.url,l?l[1]:"",+k.width,+k.height,+k.fps,+k.bitrate);0==k.width?d=k:e.push(k)}if(d=d?{audioPlaylist:d,videoPlaylists:e}:null){b=d.audioPlaylist;d=d.videoPlaylists;e=[];g=0;for(h=d.length;g<h;++g)k=d[g],e.push(GI(b,[k],k.itag,k.width,k.height,k.fps));e.push(GI(b,d,"93",0,0,0,"auto",c));c=Fu(e,!1)}else c=[]}else c=
[];if(c.length)return c}if(a.Ye&&a.Xp)return a=JI(a.Ye),Fu(a,!1);c=!!a.sa||a.mh;b=cJ(a,a.Ze);a.aa&&(d=a.aa,e=a.am,a={cpn:a.clientPlaybackNonce},-1==d.indexOf("/ibw/")&&(a.ibw=e?String(e):"1369843"),a={url:Ve(d,a),type:"application/x-mpegURL",quality:"auto",itag:"93"},b.push(a));return KI(b,c)}function OD(a){return a.o&&a.o.B||null}f.Fc=function(a){return w(this.keywords[a])?this.keywords[a]:null};
function gJ(a){a.$j||(a.B.storyboard_spec?a.$j=new XH(a.B.storyboard_spec,Va(a.B.length_seconds)):a.B.live_storyboard_spec&&a.j&&(a.$j=new $H(a.B.live_storyboard_spec,a.j)));return a.$j}function hJ(a){var b=gJ(a);!a.Lj&&b&&(a.Lj=new PI(b),R(a,a.Lj));return a.Lj}function Vr(a){return a.j&&!isNaN(SH(a.j))?SH(a.j):0}function iJ(a){return!a.ka()&&!(!a.videoId&&!a.Ye)}function dJ(a){return iJ(a)&&!a.Qf&&!a.ga&&(!!(a.j||a.Ze||a.Ye||a.ca||a.aa)||G(a.I,"fresca")||G(a.I,"ypc"))}
function jJ(a,b,c){a.ka()||(a.te=b,a.Aa=!!c,a.Qf=!0,a.Or())}f.Or=function(){Kj(this.te,{format:"RAW",method:"GET",context:this,jb:this.CA,onError:this.Gq});mI("vir")};f.Od=function(a){if(30==this.U)return(a=this.tb["default.jpg"])?a:this.videoId?Ve("//docs.google.com/vt",{id:this.videoId,authuser:this.mb,authkey:this.ce}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.tb[a];return b||"sddefault.jpg"==a||"maxresdefault.jpg"==a?b:zA(this.videoId,a)};
f.CA=function(a){if(!this.ka()){var b=a.responseText;b?(this.Qf=!1,a=xj(b),"fail"==a.status?this.L("onStatusFail",a):(mI("virc"),TI(this,a),this.En())):this.Gq(a)}};f.Gq=function(a){if(!this.ka()){var b="manifest.net",c=!0,d="rc."+a.status;this.Aa&&(this.ie?b="manifest.net.retryexhausted":(this.ie=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Th.start()));this.L("dataloaderror",new Pq(b,c,d))}};
function $I(a){return a.perceptualLoudnessDb?(a=Math.min(Nr.B-a.perceptualLoudnessDb,0),Math.pow(10,a/20)):Nr.o}function ZI(a,b){var c=parseInt(a,10);return Nb(iz,c)?c:b}function cJ(a,b){var c=yj(b);D(c,function(a){a.url&&(a.url=Ve(a.url,{cpn:this.clientPlaybackNonce}))},a);return c}function WI(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 XI(a,b){if(b){var c=b.split(",");2<=c.length&&(a.Z=c[1],gg(a.Z)&&-1==a.Z.search(Nr.F)||(a.Z=""))}}function YI(a){a=yj(a);var b={};D(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}function UI(a,b){for(var c=yj(b),d=0;d<c.length;d++){var e=c[d],g=e.u;ig(g,!0)&&(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 It(g)))}}
function VI(a,b){for(var c=yj(b),d=0;d<c.length;d++){var e=c[d];a.ge.push(new Ht({languageCode:e.lc,languageName:e.n}))}}
function fJ(a){for(var b=a.A?a.A.audioTracks:[],b=b.concat(a.Y),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.Nk==d.ac&&g.language==d.lc||g.name==d.n;if(g==a.Y&&c==a.ee||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.jl=a.captionTracks[parseInt(d.d,10)]);d.f&&(g.Ai=a.captionTracks[parseInt(d.f,10)]);g.Ao=parseInt(d.v,10)}}}function Hv(a,b){return!!a.B[b]}function kJ(a){return a.Qa&&!a.wb}
function lJ(a){return a.Qa&&a.wb};function mJ(a){S.call(this);this.views=0;this.j=[];this.o=[];this.Ya=Math.max(0,a.index||0);this.jg=!!a.loop;this.startSeconds=a.startSeconds||0;this.qq="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.Ya]=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":nJ(this,a.list);break;case "user_favorites":oJ(this,
a.list);break;case "search":pJ(this,a.list);break;default:a.playlist_length&&(this.wc=a.playlist_length),this.A=wE(a.list),0==a.fetch&&a.videoList?qJ(this,a.videoList):rJ(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Ya&&(this.j=[]);D(b,function(a){a&&this.j.push({video_id:a})},this);this.wc=this.j.length;b=E(this.j,function(a){return a.video_id});sJ(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.pe=!0}else a.videoList&&qJ(this,a.videoList);
zr(this,!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in Nr.j)b="playlist_"+c,b=a[b+"_webp"]||a[b],gg(b)&&(this.C[Nr.j[c]]=b)}z(mJ,S);f=mJ.prototype;f.jg=!1;f.startSeconds=0;f.$r=!1;f.Ya=0;f.title="";f.wc=0;f.qq=!1;f.pe=!1;f.Tg=!1;f.Ve=null;function tJ(a){return a.jg||a.Ya+1<a.wc}function uJ(a){var b=a.Ya+1;b>=a.wc&&(b=a.jg?0:-1);return b}function vJ(a){var b=uJ(a);if(-1==b)return null;wJ(a,b);return Ar(a,b)}
function xJ(a){var b;b=a.Ya-1;0>b&&(b=a.jg?a.wc-1:-1);if(-1==b)return null;wJ(a,b);return Ar(a,a.Ya)}function Ar(a,b){var c=void 0!=b?b:a.Ya,c=a.j&&c in a.j?a.j[a.o[c]]:null,d=null;c&&(d=new Nr(c),d.startSeconds=a.startSeconds||d.clipStart||0,a.A&&(d.playlistId=a.A.toString()));return d}
function zr(a,b){a.$r=b;var c=a.o&&null!=a.o[a.Ya]?a.o[a.Ya]:a.Ya;a.o=[];for(var d=0;d<a.j.length;d++)a.o.push(d);a.Ya=c;a.B++;if(a.$r){c=a.o[a.Ya];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.Ya=d);a.B++}a.L("shuffle")}f.Od=function(a){return this.C[a||"hqdefault.jpg"]};function wJ(a,b){a.Ya=Pc(b,0,a.wc-1);a.startSeconds=0}
function nJ(a,b){a.Tg||(a.A=new vE("UU","PLAYER_"+b),sJ(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}function oJ(a,b){a.Tg||(a.A=new vE("FL","PLAYER_"+b),sJ(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function pJ(a,b){if(!a.Tg){a.A=new vE("SR",b);var c={search_query:b};a.qq&&(c.mob="1");sJ(a,"/search_ajax?style=json&embeddable=1",c)}}
function rJ(a){if(!a.Tg){var b={list:a.A},c=Ar(a);c&&c.videoId&&(b.v=c.videoId);sJ(a,"/list_ajax?style=json&action_get_list=1",b)}}function sJ(a,b,c){Kj(Ve(b,c),{format:"JSON",jb:function(a,b){yJ(this,b)},onError:function(){this.L("error")},context:a})}
function yJ(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;var c=Ar(a);a.j=[];D(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.j.push(a))},a);a.wc=a.j.length;zJ(a,c);zr(a,!1);a.Tg=!1;a.pe=!0;a.B++;a.Ve&&a.Ve()}}function qJ(a,b){0<a.Ya&&(a.j=[]);D(b,function(a){this.j.push(a)},a);a.wc=a.j.length;a.pe=!0}
function zJ(a,b){if(b){var c=b.videoId;if(!a.j[a.Ya]||a.j[a.Ya].video_id!=c)for(var d=0;d<a.j.length;d++)if(a.j[d].video_id==c){a.Ya=d;break}}}f.P=function(){this.Ve=null;Ei(this.j);mJ.K.P.call(this)};function AJ(){Q.call(this);this.j=[];this.D={};this.A={};this.B={};this.o=this.F=null;this.C=[];this.G=null}z(AJ,Q);AJ.prototype.Jo=function(a){if(this.o){var b;var c=ka(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.Ha(this.o)&&!G(this.j,b)&&(b.Na(),this.j.push(b),G(this.C,b.xa)&&(b.Yb=this.G,b.kj(!!b.Yb)))}};
function BJ(a){a.j=eb(a.j,function(a){if(!this.o||a.$m(this.o)){try{a.destroy()}catch(c){Xf(c)}return!1}return!0},a)}function uD(a,b){if(!a.o||b.$m(a.o))ob(a.j,b),b.destroy()}function CJ(a,b,c){DJ(a);a.G=b;a.C=sb(c);D(a.j,function(a){0<=cb(c,a.xa)&&(a.Yb=b,a.kj(!!a.Yb))})}function DJ(a){D(a.C,function(a){if(a=mr(this,a))a.Yb=null,a.kj(!1)},a);a.G=null;a.C=[]}function EJ(a,b){if(!b)return E(a.j,function(a){return a.xa});var c=mr(a,b);return c?c.lg():[]}
function mr(a,b){return F(a.j,function(a){return a.xa==b})}AJ.prototype.I=function(a,b){D(this.j,function(c){c.L(a,b)})};function FJ(a){var b={};D(a.j,function(a){qa(b,a.Ah())});return b}AJ.prototype.H=function(a,b){qa(this.B,a||null);qa(this.A,b||null)};AJ.prototype.isAvailable=function(a){a=mr(this,a);return!(!a||!a.fi)};function GJ(a,b,c){this.B=b;this.j=c;this.A=a}GJ.prototype.getMessage=function(){return this.B};GJ.prototype.getErrorCode=function(){return this.j};GJ.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.o?" Caused by: "+this.o:"")};function HJ(a,b){jm.call(this,"adError");this.A=a;this.B=b?b:null}z(HJ,jm);var IJ="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(" "),JJ="acceptinvitation click collapse creativeview expand progress close".split(" ");function KJ(a,b,c){jm.call(this,a);this.B=b;this.A=null!=c?c:null}z(KJ,jm);KJ.prototype.getAd=function(){return this.B};
var LJ={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",$J:"videoClicked",pH:"engagedview",sH:"expandedChanged",STARTED:"start",bo:"impression",kI:"measurable_impression",lo:"viewable_impression",PAUSED:"pause",cJ:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",Kv:"skipshown",sJ:"skippableStateChanged",
xG:"adMetadata",wG:"adBreakReady",hI:"log",VOLUME_CHANGED:"volumeChange",lK:"mute",dH:"companionBackfill",uK:"youTubeVideoMetadata",tK:"youTubeChannelMetadata",YJ:"urlNavigationRequested"};var MJ=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"],NJ=/\bocr\b/,OJ=0,PJ={};function QJ(a){return A(B(a))?!1:(new J(a)).Bf().match(NJ)?!0:null!=F(MJ,function(b){return null!=a.match(b)})}
function RJ(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=zn(function(){Km(c);Wd(b)},15E3);c=Im(b,["load","error"],function(){zn(function(){An(d);Wd(b)},5E3)});a.appendChild(b)}}function SJ(a){if(a){var b=new Image,c=""+OJ++;PJ[c]=b;b.onload=b.onerror=function(){delete PJ[c]};b.src=a}};var TJ=["ADSENSE","ADSENSE/ADX"],UJ=["DART","DART_DFA","DART_DFP"],VJ=["FREEWHEEL"],WJ=["GDFP"],XJ={"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"},YJ={tI:"video/mp4",vI:"video/mpeg",iI:"application/x-mpegURL",FI:"video/ogg",FJ:"video/3gpp",oK:"video/webm",sI:"audio/mpeg",uI:"audio/mp4"};var ZJ=["google-developers.appspot.com","devsite.googleplex.com"],$J=["*.googlesyndication.com"],aK=["*.youtu.be","*.youtube.com"],bK="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(" "),
cK=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function dK(a,b){try{var c=nf(new J(b)),c=c.replace(/^www./i,"");return gb(a,function(a){return eK(a,c)})}catch(d){return!1}}function eK(a,b){if(A(B(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 fK(a){var b;if(b="https:"==window.location.protocol)b=(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+bK.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);return b?(a=new J(a),af(a,"https"),a.toString()):a};function gK(a){window.open(fK(a),"_blank")}function hK(a,b,c){null!=a?(K(a,"label",b),null!=c&&K(a,"value",c.join(";")),a=a.toString()):a="";iK(a)}function iK(a,b,c,d,e){null!=b&&(a=jK(a,b));null!=c&&(A(B(c))||(b=new J(a),Af(b.j,"label")&&(K(b,"acvw",c),a=b.toString().replace(/%2C/g,","))));null!=e&&(a=kK(a,e));a=fK(a);null!=d&&d?RJ(a):(c=a)&&(QJ(c)?RJ(c):SJ(c))}function lK(a,b){null!=a&&D(a,function(a){iK(a,b)})}
function kK(a,b,c){if(A(B(b)))return a;var d=new J(a);return c||Af(d.j,"label")?(K(d,"ged",b),d.toString()):a}function jK(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=Xb(b,a),d=d.toString();if(!A(B(d)))return encodeURIComponent(d).replace(/%2C/g,",")}catch(e){}return a})};function mK(a,b){this.message=a;this.errorCode=b}mK.prototype.getErrorCode=function(){return this.errorCode};mK.prototype.getMessage=function(){return this.message};
var nK=new mK("Unable to request ads from server. Cause: {0}.",1005),oK=new mK("Unable to request ads from server due to network error.",1012),pK=new mK("Cannot parse the {0} value for the adslist response: {1}.",900),qK=new mK("Invalid usage of the API. Cause: {0}",900),rK=new mK("Unable to display one or more required companions.",602),sK=new mK("There was a problem requesting ads from the server.",1005),tK=new mK("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),
uK=new mK("The provided ad type: {0} is not supported.",1005),vK=new mK("The provided {0} information: {1} is invalid.",1101),wK=new mK("The response does not contain any valid ads.",1009),xK=new mK("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),yK=new mK("The ad playlist response was malformed or empty.",1010),zK=new mK("The ad response was not understood and cannot be parsed.",1010),AK=new mK("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",
900),BK=new mK("The ad response contains unexpected element. Cause {0}.",1010),CK=new mK("No assets were found in the VAST ad response.",200),DK=new mK("Duplicate node in <{0}>: {1}",101),EK=new mK("The VAST response document is empty.",1009),FK=new mK("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),GK=new mK("Ad request reached a timeout.",301),HK=new mK("VAST response was malformed and could not be parsed.",100),IK=new mK("VAST media file loading reached a timeout of {0} seconds.",
402),JK=new mK("Ad request could not be completed due to a network error.",301),KK=new mK("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),LK=new mK("The maximum number of VAST wrappers ({0}) has been reached.",302),MK=new mK("VAST media file duration differs from the VAST response duration by {0} seconds.",202),NK=new mK("Video player received an ad with unexpected or incompatible linearity",201),OK=new mK("Unknown node in <{0}>: {1}",
101),PK=new mK("Invalid VAST resource type: {0}",101),QK=new mK("Invalid VAST version",102),RK=new mK("No additional VAST wrappers allowed.",300),SK=new mK("No Ads VAST response after one or more Wrappers",303),TK=new mK("There was an error playing the video ad.",400),UK=new mK("VMAP unsupported node in <{0}>: {1}",1010),VK=new mK("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);
function WK(a,b,c){return XK("adLoadError",a,b||null,vb(arguments,2))}function YK(a,b,c){return XK("adPlayError",a,b||null,vb(arguments,2))}function ZK(a,b,c,d,e){var g=a.apply(null,rb([c,d],vb(arguments,3)));b.X(new KJ("log",null,g))}function XK(a,b,c,d){if(c instanceof GJ)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 GJ(a,b,e);a.o=c;return a}
function $K(a,b,c,d){var e=YK.apply(null,rb([b,c],vb(arguments,3)));a.X(new HJ(e))};function aL(a){this.j=a}function bL(){var a=cL();return dL(a,"disableExperiments")}function dL(a,b){if(b in a.j){var c=a.j[b];if("boolean"==typeof c)return c}return!1};function eL(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};function fL(){this.o="always";this.j=!1;this.B=!0;this.D=!1;this.C=null}function gL(){return hL.D}fL.prototype.getPlayerType=function(){return""};function cL(){var a=hL;if(null==a.C){var b={},c=qf(new J(Nd().location.href));if(Af(c,"tcnfp"))try{b=qg(c.get("tcnfp"))}catch(d){}a.C=new aL(b)}return a.C}var hL=new fL;var iL={},jL="",kL=/OS (\S+) like/,lL=/Android (\S+);/;function mL(){return kd||Ma(Uc,"Mobile")}function nL(){return ld&&!md||Ma(Uc,"iPod")}function oL(){return nL()||md}function pL(a,b){if(null==iL[b]){var c;A(jL)&&(c=a.exec(Uc))&&(jL=c[1]);(c=jL)?(c=c.replace(/_/g,"."),iL[b]=0<=Ra(c,b)):iL[b]=!1}return iL[b]}
function qL(){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 rL(){return Ma(Uc,"PlayStation")}function sL(){return nL()||kd&&(!kd||!pL(lL,4))||!gL()&&(Ma(Uc,"CrKey")||rL()||Ma(Uc,"Roku")||qL()||Ma(Uc,"Xbox"))?!1:!0};function tL(){this.j=.05>Math.random();this.o=Math.floor(4503599627370496*Math.random())}ba(tL);function uL(a,b,c,d){if(a.j||d){c=c||{};c.lid=b;c=vL(a,c);var e=new J("http://pagead2.googlesyndication.com/pagead/gen_204");Hb(c,function(a,b){K(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=wL();af(e,a.Mb);iK(e.toString())}}function vL(a,b){b.id="";var c=wL();b.c=a.o;b.domain=c.rb;return b}function wL(){var a=Nd(),b=document;return new J(a.parent==a?a.location.href:b.referrer)};function xL(){}f=xL.prototype;f.dw=!1;f.oo=!1;f.uo=!0;f.baseYouTubeUrl=null;f.bitrate=-1;f.contentId=null;f.zw=!1;f.Ll=!1;f.mimeTypes=null;f.surveyCreativeData=null;f.nD=!0;f.qs=!1;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.oD=!0;f.po=!1;f.Aw=!1;f.Im=0;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.ln=!1;f.loadVideoTimeout=15E3;f.vo=!0;window.console&&"function"===typeof window.console.log&&x(window.console.log,window.console);function yL(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=y()-window.performance.timing[a],Math.round(a/1E3)):null}function zL(){this.domLoading=yL("domLoading");this.domComplete=yL("domComplete");this.unloadEventStart=yL("unloadEventStart")}zL.prototype.toString=function(){function a(a){a=Xb(c,a);null!=a?b.push(""+a):b.push("u")}var b=[],c=this;a("domLoading");a("domComplete");a("unloadEventStart");return b.join(".")};
function AL(a){var b={},c=new zL,d=null;null!=c.domLoading&&(d=c.domLoading);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b};function BL(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 CL=null;function DL(){this.j={};this.o=0}function EL(a,b){this.B=a;this.A=!0;this.j=b}EL.prototype.getValue=function(){return this.j};EL.prototype.F=function(){return this.A?this.o():""};EL.prototype.o=function(){return String(this.j)};function FL(a,b){EL.call(this,a,b);this.j=!!b}z(FL,EL);FL.prototype.o=function(){return this.j?"1":"0"};function GL(a){EL.call(this,"sv",a);this.j=null==a?"1":"2"}z(GL,EL);GL.prototype.o=function(){return String(this.j)};function HL(a,b){EL.call(this,a,b)}
z(HL,EL);HL.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 IL(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 HL("",new zg(c,b,Number(a[3])-c,Number(a[2])-b))}return new HL("",new zg(0,0,0,0))}function JL(){CL||(CL=new DL);return CL}
DL.prototype.setItem=function(a){this.j[a.B]=a};DL.prototype.getItem=function(a){return Xb(this.j,a,null)};DL.prototype.F=function(){var a=[],b;for(b in this.j){var c=this.j[b].F();c&&a.push(b+c)}return a.join("_")};function KL(a){var b=null;a&&(b=a());if(b){a=JL();a.j={};var c=new FL("ef",!0);c.A=!1;a.setItem(c);c=Nd().document;c=c.webkitVisibilityState||c.mozVisibilityState||c.visibilityState||c.msVisibilityState||"";c="hidden"!=c.toLowerCase().substring(c.length-6)?!0:!1;a.setItem(new FL("tv",c));var d;try{var e;var g=Nd().top;try{e=!!g.location.href||""===g.location.href}catch(h){e=!1}if(e){var k=BL(b);d=k&&0!=k.length?"1":"0"}else d="2"}catch(l){d="2"}a.setItem(new EL("is",d));if(c){k=e=Nd().top;"2"==d&&
(k=Nd());g=LL(b,k);a.setItem(new HL("er",g));var p;try{p=k.document&&!k.document.body?null:Kd(k||window)}catch(r){p=null}a.setItem(new GL(p));p?(k=re(Bd(k.document)),a.setItem(new FL("sp",!!k)),p=k?new zg(k.x,k.y,p.width,p.height):null):p=null;a.setItem(new HL("vi",p));if(p&&"1"==d){d=BL(b);b=[];for(k=0;k<d.length;k++)(c=LL(d[k],e))&&b.push(c);b.push(p);p=ML(b)}NL(a,g,p)}a.o&&(d=Math.round(y()/1E3)-a.o,a.setItem(new EL("ts",d)));a.o=Math.round(y()/1E3)}else a=JL(),a.j={},a.o=Math.round(y()/1E3),a.setItem(new FL("ef",
!1));return a}function ML(a){var b=new zg(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new zg(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++)if(!Dg(b,a[d]))return c;return b}function LL(a,b){var c=a.getBoundingClientRect(),d=Vg(a,b);return new zg(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;i:{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 zg(d,g,e-d,h-g);break i}}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 EL("vp",d));d&&0<d?(e=Ag(b),g=Ag(c),e=e.top>=g.top&&e.top<g.bottom):e=!1;a.setItem(new FL("ct",e));d&&0<d?(e=Ag(b),g=Ag(c),e=e.bottom<=g.bottom&&e.bottom>g.top):e=!1;a.setItem(new FL("vb",
e));d&&0<d?(e=Ag(b),g=Ag(c),e=e.left>=g.left&&e.left<g.right):e=!1;a.setItem(new FL("vl",e));d&&0<d?(b=Ag(b),c=Ag(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new FL("vr",c))}}
function OL(a,b,c){if(b&&c){b=IL(b).getValue();c=IL(c).getValue();var d=null;a.getItem("er")&&(d=a.getItem("er").getValue(),d.top+=b.top,d.left+=b.left,a.setItem(new HL("er",d)));if(a.getItem("vi")){var e=a.getItem("vi").getValue();e.top+=b.top;e.left+=b.left;var g=[];g.push(e);g.push(b);g.push(c);b=ML(g);NL(a,d,b);a.setItem(new HL("vi",c))}}};dc("m","c","s","t");function PL(a){this.j=bc.apply(null,arguments);return this}PL.prototype.set=function(a,b){this.j[a]=b};function QL(a,b){var c=Xb(a.j,"eb",0);a.j.eb=c|b}PL.prototype.get=function(a){return Xb(this.j,a,null)};PL.prototype.extend=function(a){ac(this.j,a)};PL.prototype.F=function(){var a=[],b;for(b in this.j)a.push(b+this.j[b]);return a.join("_")};var RL=null,SL=null;function TL(a,b){var c=0;Qb(Nd(),"ima","video","client","tagged")&&(c=1);this.A=KL(a);this.o=new PL("ta",c,"ve",2);c&&QL(this.o,1);Qb(Nd(),"ima","video","client","periscopeTag")&&QL(this.o,4);Qb(Nd(),"ima","video","client","sdkTag")&&QL(this.o,8);Qb(Nd(),"ima","video","client","jsTag")&&QL(this.o,2);b&&Xb(b,"fullscreen",!1)&&QL(this.o,16);var d=null;this.j=null;if(c&&(c=Qb(Nd(),"ima","video","client"),c.getEData)){this.j=c.getEData();if(!("getTimeSinceTagLoadSeconds"in this.j)){var e=this;this.j.extendWithDataFromTopIframe=
void 0;this.j.getTimeSinceTagLoadSeconds=function(){return Xb(e.j,"tt",null)};this.j.serialize=function(){var a="",b;for(b in e.j)"serialize"!=b&&"getTimeSinceTagLoadSeconds"!=b&&(a=a?a+("_"+b+e.j[b]):b+e.j[b]);return a}}if(d=Qb(Nd(),"ima","video","client","getLastSnapshotFromTop"))if(d=d())this.j.extendWithDataFromTopIframe(d.buckets,d.tt,d.pd),OL(this.A,d.er,d.vi);d=this.j.getTimeSinceTagLoadSeconds()}this.o.extend(AL(d))}
TL.prototype.F=function(){var a=[],b=this.o.F();b&&a.push(b);this.j&&(b=this.j.serialize())&&a.push(b);(b=this.A.F())&&a.push(b);return a.join("_")};function UL(a,b){try{return(new TL(a,b)).F()}catch(c){return"tle;"+La(c.name,12)+";"+La(c.message,40)}};var VL={ho:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",Fv:"resume",SKIPPED:"skip",lo:"viewable_impression",xv:"mute",Pv:"unmute",FULLSCREEN:"fullscreen",Uu:"exitfullscreen"},WL={UNKNOWN:-1,ho:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,Fv:7,SKIPPED:8,lo:9,xv:10,Pv:11,FULLSCREEN:12,Uu:13};function XL(a){try{return!!a&&null!=a.location.href&&Gg(a,"foo")}catch(b){return!1}}function YL(){var a=[1,2];if(!(1E-4>Math.random())){var b=Math.random();if(.2>b){try{var c=new Uint16Array(1);window.crypto.getRandomValues(c);b=c[0]/65536}catch(d){b=Math.random()}return a[Math.floor(b*a.length)]}}return null};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(C){iM({context:"mRE",msg:C.toString()+"\n"+(C.stack||"")},void 0)}}if(!h)throw k;}finally{if(d)try{d()}catch(V){}}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++,XL(a)&&(b=a);return b};var oM={XJ:"ud=1",Ov:"ts=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=[];Hb(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"==Lg(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(x(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(x(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 yg(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=Fb(Lb(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.Ba="e"==a?String(c)+"~"+String(d):"";this.j=[];this.o=-1;this.C=0;this.A=Fb(Lb(dN));this.H=Fb(Lb(bN));"e"==this.B&&(eN[this.Ba]=x(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={UJ:-1,LOADING:0,dv:1,Ku:2,VH:3,VISIBLE:4},dN={LOADING:0,dv:1,Ku:2,MJ:3,EI:4,RJ:5,SJ:6,QJ:7,HI:8,LJ: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=Ue("//www.gstatic.com/osd/hbe.swf","id",a.Ba));b&&(c=Ue(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,Qg(a.module))&&Og(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.Pj))g=e=2}else null===c.Pj||c.hn>=e?(e=10<=g?4:0,g=0):g>c.Pj?(c=(g-c.Pj)/(e-c.hn)*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.hn<=d&&(e=Math.min(e,b+1))});var g=a.j.length-e;0<g&&a.j.splice(e,g);a.j.unshift({Pj:b,hn: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.B=this.U=0;this.tb=this.Ob=this.ca=-1;this.R=[0,0,0,0,0];this.N=[0,0,0,0,0];this.H=[0,0,0,0,0];this.ma=[0,0,0,0,0];this.S=d;this.Y=this.Z=-1;this.I=e;this.Aa=function(){};this.te=function(){};this.J=this.element=c;this.ee=0;this.kf=-1;this.D="";this.Zc=c?String(c._avi_||""):"";this.C={};this.C.le=0;this.C.nt=2;this.C.Fr=3;this.o=this.$a=null;this.sa=!1;this.O=this.he=this.ce=null;this.pa=0;this.na=!1;this.Za=null;this.ge=this.ta=this.ab=!1;this.lf=.01>
Math.random();this.ie=null;this.jc=void 0;this.Fd=!1;this.Da=[];this.ga=void 0;this.mc=this.Ca=!1;this.G=void 0;this.ic=0;this.da=-1;this.bb=this.aa=0;this.ua=void 0;this.Wa=this.Fa=this.Ga=0;this.Ka=!1;this.A=0;this.ve=this.ob=this.V=!1;this.ib=c&&c._tos_?!0:!1;this.jf=1!=this.I?0:YL()||0;kN(this,c&&c._avm_);lN(this,a,g)}var jN=new yg(0,0,0,0);function kN(a,b){if(w(b)&&0!=b.length)for(var c=b.split("&"),d=0;d<c.length;d++)c[d]==oM.Ov&&(a.ib=!0)}
function mN(a,b,c,d,e){if(!(0>a.S)){var g=$L.innerWidth,h=$L.innerHeight,k=new yg(Math.round($L.mozInnerScreenY),Math.round($L.mozInnerScreenX+g),Math.round($L.mozInnerScreenY+h),Math.round($L.mozInnerScreenX));c=new yg($L.screenY+d,$L.screenX+c.width,$L.screenY+c.height,$L.screenX);e||(d=new yg(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.U=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.$a){var c=[];D(Pb(a.C),function(a){c[this.C[a]+1]=a},a);var d=c.join(""),d=b&&b[d];a.$a=d&&x(d,b)}return a.$a}function qN(a){a.C.e=-1;a.C.i=6;a.C.n=7;a.C.t=8}
iN.prototype.update=function(a,b,c,d,e){if(0>this.S)return null;c||lN(this,d,e);Boolean(null)&&c&&(d.clearInterval(this.ce),this.ce=null);Boolean(null)&&c&&(d.clearInterval(this.he),this.he=null);null!=this.Za&&(c?(d.clearInterval(this.O),this.O=null,this.na=!1):this.ab&&!this.O&&(this.O=d.setInterval(mM("osd_or_lidar::adblock::iem_int",x(this.ue,this,d,1E3)),1E3),this.ue(d)));return nN(this,this.j,b,a,c,!1)};
function nN(a,b,c,d,e,g){var h=d-a.S||1,k=null;ga(c)?b=rN(a,c):(k=c,b=rN(a,b,k));a.ga||sN(a,b,h,a.Z,g,e,k,void 0);a.Z=e?-1:b;a.S=d;-1!=b&&(0>a.ca&&(a.ca=d),a.tb=d);-1==a.Ob&&1E3<=Math.max(a.H[2],a.N[2])&&(a.Ob=d);a.Aa(a,k||jN);return a.B}
function rN(a,b,c){if(a.ob)return a.B=0,tN(a.B);if(a.V&&7==a.I)return a.B=1,tN(a.B);var d=null;if(ga(b))a.B=b;else{c=new yg(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.U||c.top>=c.bottom||c.left>=c.right)return a.B=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.B=d/a.U}return tN(a.B)}
function tN(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 sN(a,b,c,d,e,g,h,k){e=e&&-1!=d&&2>=d;var l=-1==d||-1==b?-1:Math.max(d,b);d=e?l:d;-1!=d&&(a.R[d]+=c);(h=h||null)?(-1!=d&&2>=d&&-1!=a.Y&&(a.ma[a.Y]+=c),h=100*a.U/((h.bottom-h.top)*(h.right-h.left)),a.Y=20<=h?0:10<=h?1:5<=h?2:2.5<=h?3:4):a.Y=-1;if(7==a.I){k=n(k)?k:uN(a);h=-1!=d&&2>=d;e=.1<=k&&.1<=a.ua;e&&0==d||(a.Ka=!1);a.Ga+=c;e&&(a.Fa+=c,h?a.Wa+=c:a.aa+=c);a.aa>a.bb&&(a.bb=a.aa);if(h||!n(k)||.1>k)a.aa=0;k=n(k)?Number(k)?vN(k,3):0:k;a.ua=k}for(k=d;0<=k&&4>=k;k++)a.H[k]+=c,a.H[k]>a.N[k]&&(a.N[k]=
a.H[k]);for(k=0;k<a.H.length;++k)if(k<b||g||-1==b)a.H[k]=0}function wN(a,b,c){if(!Boolean(Boolean(a.J&&!!c&&!ci)&&!ci))return a.sa=!0,!1;var d=new PM;(c=RM(d,a.J,c))?(a.te=b,a.o=d):a.sa=!0;return c}
iN.prototype.ue=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.pa+=this.na?d:0,this.na=!0):(this.pa=0,this.na=!1);1E3<=this.pa&&(a.clearInterval(this.O),this.O=null,this.ab=!1,this.Za="v");lN(this,a,!1)}else a.clearInterval(this.O),this.O=null,this.ab=!1,this.Za="i"};
iN.prototype.F=function(){var a=this.j,a=["p:",a.top,a.left,a.bottom,a.right];a.push("tos:",this.R.join(","));a.push("mtos:",this.N.join(","));a.push("rs:",this.I);5!==this.I&&6!==this.I&&(a.push("zoom:",this.ma.join(",")),a.push("ht:",this.ee));0<=this.ca&&a.push("tfs:",this.ca,"tls:",this.tb);a.push("vt:",this.Ob);7===this.I&&a.push("qid:",this.D);this.Zc&&a.push("avi:",this.Zc);this.Za&&a.push("iemv:",this.Za);this.o?a.push("swf:",this.o.getStatus()):this.sa&&a.push("swf:","-");null!=this.jc&&
a.push("vl:"+this.jc);return a.join(",")};
function lN(a,b,c){b=c?b:b.top;try{var d=jN.clone(),e=new Qc(0,0);if(a.J){if(c||2!=a.jf||!OM(a.J))d=a.J.getBoundingClientRect();if(c||!b.frameElement)e=Vg(a.J,b)}var g=e.x,h=e.y,k=d.right-d.left,l=d.bottom-d.top;a.j=new yg(Math.round(h),Math.round(g+k),Math.round(h+l),Math.round(g))}catch(p){a.j=jN.clone()}finally{a.C.Po=5,a.C.me=1,a.C.om=4}a.U=(a.j.bottom-a.j.top)*(a.j.right-a.j.left);2!=a.I&&3!=a.I&&6!=a.I||0!=a.U?(a.ge=!1,a.ie=null):(a.ge=!0,a.J&&a.J.parentElement&&a.lf&&(c=a.J.parentElement.getBoundingClientRect(),
a.ie=new yg(c.top,c.right,c.bottom,c.left)))}function xN(a,b){var c=a.ic;IM||a.ga||-1==a.da||(c+=b-a.da);return c}function uN(a){if("as"==a.G&&ha(a.element.sdkVolume))try{return Number(a.element.sdkVolume())}catch(b){return-1}if("h"==a.G){var c=t("ima.common.sdkVolume");if(ha(c))try{return Number(c(a.D))}catch(d){return-1}}}function yN(a,b){tb(a.Da,Fb(b-a.Da.length+1));a.Da[b]=(100*a.B|0)/100}
function zN(a){if(a.ta)return{"if":0};var b=a.j.clone();b.round();var c=E(a.Da,function(a){return 100*a|0}),b={"if":AN?1:void 0,sdk:a.G?a.G:void 0,p:[b.top,b.left,b.bottom,b.right],tos:a.R,mtos:a.N,ps:void 0,pt:c,vht:xN(a,HM()),mut:a.bb,a:a.ua};BN(a,b);CN&&(b.ps=[CN.width,CN.height]);a.Ca&&(b.ven="1");a.A&&(b.vds=a.A);DN()?b.c=(100*a.B|0)/100:b.tth=HM()-DM;return b}
function BN(a,b){b.avss=a.Ka;if(0==a.Ga)b.aoc=0,b.voc=0,b.avoc=0;else{var c=a.R[0]+a.R[1]+a.R[2];b.aoc=vN(a.Fa/a.Ga,2);b.voc=vN(c/a.Ga,2);b.avoc=vN(a.Wa/a.Ga,2)}}function vN(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c};function EN(){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=!1,FM=void 0,MN=!1;function NN(){if(!LN){LN=!0;IN=IN||BM($L,"scroll",ON,"osd_or_lidar::scroll");JN=JN||BM($L,"resize",PN,"osd_or_lidar::resize");var a=QN,b;ZL.mozVisibilityState?b="mozvisibilitychange":ZL.webkitVisibilityState?b="webkitvisibilitychange":ZL.visibilityState&&(b="visibilitychange");b&&(KN=KN||BM(ZL,b,a,"osd_or_lidar::visibility"));QN()}}function PN(){RN(!1);ON()}function ON(){SN(TN,!1)}
function UN(){var a;VN&&(WN=CM($L,VN));a=WN;var b=XN,c=YN;if(ZN){a=b;RN(!1);var d=$N,e=d.height-a;0>=e&&(e=d.height,a=0);WN=new H(d.width,e);e=new aO;e.D=!0;e.B=WN;e.A=d;e.o=a;return e}if(c)return a=new aO,a.C=!0,a;if(bO)return a=new aO,a.F=!0,a;if(cO)return a=new aO,a.H=!0,a;i:{b=new aO;b.B=a;b.j=!1;if(null!=a&&-1!=a.width&&-1!=a.height&&-12245933!=a.width&&-12245933!=a.height){try{var c=VN,g=$L||$L,g=g.top,e=a||CM(g,c),h=re(Bd(g.document)),d=-1==e.width||-12245933==e.width?new yg(e.width,e.width,
e.width,e.width):new yg(h.y,h.x+e.width,h.y+e.height,h.x)}catch(k){a=b;break i}b.G=d;b.j=!0}a=b}return a}
function SN(a,b){var c;if(!dO)if(window.clearTimeout(eO),eO=null,0==a.length)b||fO();else{var d=UN();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(cO)D(a,function(){});else if(d.F)D(a,function(a){if(b){if(a.o){var c=a.o;3<=c.A&&(c.A=3);a.Z=-1}}else if(a.o&&"d"!=a.o.getStatus()){var c=YM(a.o),d=[-1,-1,-1,-1,-1,4,2,0],e=d[c.snapshot+1];sN(a,e,c.j,d[c.o+1],!0,!1);a.Z=e;a.Aa(a,jN);7==a.I?2E3<=Math.max(a.H[2],a.N[2])&&a.o&&XM(a.o):
1E3<=Math.max(a.H[2],a.N[2])&&!a.ib&&a.o&&XM(a.o);(c=2==c.snapshot||cN(a.o))||(c=a.o,c="f"==c.o&&c.B>=c.H);c&&(a.te(a),a.ib=!1,a.o&&XM(a.o))}});else if(d.j)for(c=0;c<a.length;c++)a[c].update(e,d.G,b,$L,AN);++gO}finally{b?D(a,function(a){a.B=0}):fO()}}}function QN(){var a=DN();if(a){if(!IM){var b=HM();JM=b;D(TN,function(a){a.ic=xN(a,b)})}IM=!0;RN(!0)}else b=HM(),IM=!1,DM=b,D(TN,function(a){0<=a.S&&(a.da=b)});SN(TN,!a)}
function DN(){if(hO())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 fO(){$L&&(eO=$L.setTimeout(mM("osd_or_lidar::psamp_to",function(){SN(TN,!1)}),EM()))}function iO(a){return null!=F(TN,function(b){return b.element==a})}var TN=[],dO=!1,WN=null,$N=null,CN=null,eO=null,AN=!XL($L.top),XN=0,ZN=!1,YN=!1,bO=!1,cO=!1,VN=HN()||EN(),gO=0;
function jO(){var a=$L.document;return a.body&&a.body.getBoundingClientRect?!0:!1}
function RN(a){WN=CM($L,VN);if(!a){$N=$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=WN;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)}CN=new H(c,b)}catch(u){CN=new H(-12245933,-12245933)}}}function kO(){var a=lO,b=!1;D(TN,function(c,d){if(1>Math.random()){var e=wN(c,a,String(d));b=b||e}});(bO=b)&&D(TN,function(b){Boolean(b.o)||a(b)});return b}function mO(a){D(a,function(a){iO(a.element)||TN.push(a)})}function hO(){return gb(TN,function(a){return a.V})}function aO(){this.A=this.B=null;this.o=0;this.G=null;this.j=this.H=this.F=this.C=this.D=!1};var nO=null,oO="",pO=!1;function qO(){var a=nO||$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(AN&&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 rO=!1,sO=!1,tO=!1;function uO(){rO=!0;try{GM=HM(),.01>Math.random()&&(tO=!0),nO=nM(),RN(!1),jO()?(window.setTimeout(function(){},1),AN?vO():NN()):pO=!0}catch(a){throw TN=[],a;}}
function vO(){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&&(XN=a,ZN=!0);a=!0}else a=!1;a?NN():(a=dd&&rd(8)&&1>Math.random()?YN=!0:!1,a?NN():kO()?(NN(),sO=!0):(window.clearTimeout(eO),eO=null,oO="i",dO=!0))}function lO(a){if(a){if(!a.Fd){var b=[];b.push("v=270v");b.push("r=fp");b.push("efm="+(sO?1:0));b.push(Te(zN(a)));b.push(qO());b="&"+b.join("&");bM(("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3));a.Fd=!0}a.ta=!0}}
function wO(a,b,c){var d={};ac(d,{opt_videoAdElement:void 0,opt_VideoAdLength:void 0,opt_fullscreen:void 0,opt_nativeMobile:!1},c||{});var e=a.toLowerCase();if(a=Rb(VL,function(a){return a==e})){a={e:WL[a],hd:dO?"1":"0",v:"270v",hdr:oO||void 0};if(d.opt_bounds)return a.msg="ol",MM(a);if(pO)return a.msg="ue",MM(a);b=xO(b,d);if(!b)return a.msg="nf",MM(a);rO||uO();"i"==oO&&(b.ta=!0);tO&&yO(b);c=d.opt_fullscreen;n(c)&&(b.V=Boolean(c));c={};c.start=zO;c.firstquartile=AO;c.midpoint=BO;c.thirdquartile=CO;
c.complete=DO;c.metric=EO;c.pause=FO;c.resume=GO;c.skip=HO;c.viewable_impression=EO;c.mute=IO;c.unmute=JO;c.fullscreen=KO;c.exitfullscreen=LO;if(c=c[e]){d=c(b,d);if(!n(d)||w(d))return d;ac(a,d);return MM(a)}}}function MO(a,b){if(MN!=a){MN=a;var c=gb(TN,function(a){return a.ve});D(TN,function(d){a||c||(d.S=b);d.ob=a;d.ve=!1})}}
function zO(a,b){"i"!=oO&&(dO=!1);!sO||Boolean(a.o)||a.sa||wN(a,lO,String(cb(TN,a)));b&&b.opt_VideoAdLength&&(a.jc=b.opt_VideoAdLength);var c=n(b)?b.opt_nativeTime:void 0;KM=c=ga(c)?c:HM();a.R=[0,0,0,0,0];a.N=[0,0,0,0,0];a.H=[0,0,0,0,0];a.ma=[0,0,0,0,0];a.S=-1;a.ca=-1;a.tb=-1;a.ee=0;a.kf=-1;a.Z=-1;a.Y=-1;a.B=0;a.S=c;var d=!1;DN()||(d=!0,a.da=c);SN([a],d);yN(a,0);1<=(100*a.B|0)/100&&.1<=a.ua&&(a.Ka=!0);return zN(a)}function AO(a){yN(a,1);SN([a],!DN());return zN(a)}
function BO(a){yN(a,2);SN([a],!DN());return zN(a)}function CO(a){yN(a,3);SN([a],!DN());return zN(a)}function DO(a){yN(a,4);SN([a],!DN());var b=zN(a);a.V=!1;NO(a.D);return b}function FO(a){a.ic=xN(a,HM());var b=!DN();SN([a],b);a.ga=!0;return zN(a)}function GO(a){var b=DN();a.ga&&!b&&(a.da=HM());SN([a],!b);a.ga=!1;return zN(a)}function EO(a){a=zN(a);a.hvem="1";return a}function HO(a){var b=!DN();SN([a],b);b=zN(a);a.V=!1;NO(a.D);return b}function IO(a){SN([a],!DN());return zN(a)}
function JO(a){SN([a],!DN());return zN(a)}function KO(a){a.V=!0;SN([a],!DN());return zN(a)}function LO(a){a.V=!1;SN([a],!DN());return zN(a)}function NO(a){if(w(a)){var b=ib(TN,function(b){return b.D==a});0<=b&&pb(TN,b)}}function xO(a,b){if(b.opt_nativeMobile)return OO(a,b);if(b.opt_videoAdElement)return PO(a,b.opt_videoAdElement);var c=QO(a);return c?c:c=F(TN,function(b){return b.D==a})}
function OO(a,b){var c=F(TN,function(b){return b.D==a});c||(c=new iN(window,0,null,b.opt_nativeTime,7,!1),c.G="n",c.Aa=RO,mO([c]),c.D=a,c.ob=MN);return c}function PO(a,b){var c=F(TN,function(a){return a.element==b});c||(c=SO(b),c.D=a,c.G="h");return c}function QO(a){var b=F(TN,function(b){return b.element?TO(b.element)==a:!1});if(b)return b;b=UO();b=F(b,function(b){return TO(b)==a});if(!b)return null;b=SO(b);b.G="as";VO(b);return b}function VO(a){var b=TO(a.element);w(b)&&(a.D=b)}
function UO(){var a=$L.document,b=Gb(E(["embed","object"],function(b){return sb(a.getElementsByTagName(b))}));return b=eb(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 TO(a){if(!a||!a.metricID||!ha(a.metricID))return null;var b;try{b=a.metricID()}catch(c){return null}return b.queryID}function SO(a){a=new iN($L,0,a,HM(),7,AN);a.Aa=RO;FM=79463069;mO([a]);NN();return a}
function RO(a){if(2E3<=Math.max(a.H[2],a.N[2])&&!a.Ca){var b="as"==a.G,c="h"==a.G,d="n"==a.G,e=t("ima.common.triggerViewEvent"),g={e:9,hmu:"1"};try{var h=MM(g);c||d?ha(e)?(e(a.D,h),a.Ca=!0):a.A=4:b?a.element&&a.element.triggerViewEvent?(a.element.triggerViewEvent(h),a.Ca=!0):a.A=1:a.A=5}catch(k){a.A=a.A||2}}else a.A=3}
function yO(a){if(a.mc||a.ta)a.A=a.A||13;else{var b="as"==a.G,c="h"==a.G;try{if(c){var d=t("ima.common.triggerMeasurableEvent");ha(d)?(d(a.D),a.mc=!0):a.A=a.A||14}else b?a.element&&a.element.triggerMeasurableEvent?(a.element.triggerMeasurableEvent(),a.mc=!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",wO),void 0);function WO(){T.call(this);this.j=null;this.B=new En(this);R(this,this.B);this.C=null;this.G=new xe;this.F=new xe;this.A=null;this.o=!1}z(WO,T);var XO=null;function YO(){null!=XO||(XO=new WO);return XO}function ZO(a){var b=YO();a=b.G.get(a)||b.C;return null!=a?a():{}}WO.prototype.destroy=function(){this.B.Ia(this.j,"activityMonitor",this.D);this.o=!1};
WO.prototype.init=function(a){if(!this.o){(this.j=a||null)&&this.B.M(this.j,"activityMonitor",this.D);if(hL.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 $O(a){if(null==a)return!1;if(nL()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=aP(a);return 0>=b-a.width&&42>=c-a.height}function aP(a){return ha(a.getBoundingClientRect)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}}function bP(a,b){a.A=b}
function cP(a,b,c,d,e){if(a.o){e=e||{};if(d=d?a.F.get(d):hL.A)null!=e.opt_fullscreen||(e.opt_fullscreen=$O(d)),null!=e.opt_videoAdElement||(e.opt_videoAdElement=d);null==e.opt_bounds&&a.A&&(e.opt_bounds=aP(a.A));return wO(b,c,e)||""}return""}
WO.prototype.D=function(a){var b=a.wd,c=b.queryId,d={};d.eventId=b.eventId;switch(a.uc){case "getViewability":d.viewabilityString=cP(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=cP(this,e,c,a,g);d.engagementString=dP(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=dP(this,a,h),this.j.send("activityMonitor","engagement",c)}};function dP(a,b,c){if(!hL.B)return"";var d=b?a.F.get(b):hL.A;a={};null!=c&&(a.fullscreen=c);return UL(function(){return d},a)}q("ima.common.getVideoMetadata",ZO,void 0);q("ima.common.sdkVolume",function(a){a=ZO(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=YO().j;d?d.send("activityMonitor","viewableImpression",c):YO().X(new KJ("viewable_impression",null,c))},void 0);q("ima.common.triggerMeasurableEvent",function(a){var b={};b.queryId=a;(a=YO().j)?a.send("activityMonitor","measurableImpression",b):YO().X(new KJ("measurable_impression",null,b))},void 0);function eP(a,b,c){if(lb(a))return null;a=eb(a,function(a){var b=a.B;return"application/x-mpegurl"==B(a.j).toLowerCase()||"progressive"==b});lb(c)||(c=E(c,function(a){return a.toLowerCase()}),a=eb(a,function(a){return G(c,B(a.j).toLowerCase())}));if(!ga(b)||0>=b)b=EN()?500:1E3;return fP(a,b)}function fP(a,b){return gP(a,b)||hP(a,b)||iP(a,b)}function gP(a,b){var c=null;D(a,function(a){var e=a.Ud,g=a.Td;e>b||g<b||!(null==c||c.Ud>e)||(c=a)});return c}
function hP(a,b){var c=null;D(a,function(a){var e=a.Ud,g=a.Td;g>b||(null==c||c.Td<g?c=a:null!=c&&c.Td==g&&c.Ud>e&&(c=a))});return c}function iP(a,b){var c=null;D(a,function(a){var e=a.Ud,g=a.Td;if(!(e<b))if(null!=c&&c.Ud==e&&c.Td<g)c=a;else if(null==c||c.Ud>e)c=a});return c};function jP(){T.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 En(this);this.H={}}z(jP,T);function kP(a,b){null==b||a.F||(a.j=b,lP(a),a.F=!0)}function mP(a){null!=a.j&&a.F&&(nP(a),a.F=!1,a.G=!1,a.D=!1,a.o=0,a.B=[],a.J=!1)}
function lP(a){nP(a);!(a.j instanceof T)&&"ontouchstart"in document.documentElement&&oL()?(a.H={touchstart:x(a.MB,a),touchmove:x(a.LB,a),touchend:x(a.KB,a)},Hb(a.H,function(a,c){this.j.addEventListener(c,a,!1)},a)):a.C.M(a.j,"click",a.Ap)}function nP(a){a.C.Ia(a.j,"click",a.Ap);Hb(a.H,function(a,c){this.j.removeEventListener(c,a,!1)},a);a.H={}}f=jP.prototype;
f.MB=function(a){this.G=!0;this.o=a.touches.length;this.A&&(window.clearTimeout(this.A),this.A=0,this.I=!0);this.J=oP(this,a.touches)||1!=a.touches.length;pP(this,a.touches)};f.LB=function(a){this.o=a.touches.length;this.D=!0};f.KB=function(a){!this.G||1!=this.o||this.D||this.I||this.J||!oP(this,a.changedTouches)||(this.A=window.setTimeout(x(this.Oo,this),300));this.o=a.touches.length;0==this.o&&(this.D=this.G=!1,this.B=[]);this.I=!1};f.Ap=function(){this.Oo()};
function pP(a,b){a.B=[];D(b,function(a){nb(this.B,a.identifier)},a)}function oP(a,b){return gb(b,function(a){return G(this.B,a.identifier)},a)}f.Oo=function(){this.A=0;this.X(new jm("click"))};f.P=function(){mP(this);this.C.dispose();this.C=null;jP.K.P.call(this)};function qP(a){null!=a?dK($J,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&dK(aK,a)?rP(a):null:a=null;return a}function sP(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");ef(c,d);return c.toString()}
function rP(a){if(A(B(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=qf(new J(a));return Af(a,"v")?a.get("v").toString():Af(a,"video_id")?a.get("video_id").toString():null};function tP(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.Ud=e;this.Td=g;this.D=h;this.C=k;this.o=l;this.A=p}tP.prototype.getHeight=function(){return this.C};function uP(){T.call(this)}z(uP,T);var vP={NG:"beginFullscreen",CLICK:"click",mH:"end",oH:"endFullscreen",ERROR:"error",LOADED:"loaded",lI:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",rJ:"skip",Kv:"skipShown",ho:"start",HJ:"timeUpdate",GJ:"timedMetadata",kK:"volumeChange"};uP.prototype.Pr=v;uP.prototype.Gp=v;uP.prototype.zf=function(){return null};function wP(a){T.call(this);this.j=a;this.V=new Qm(4);this.B=0;this.R=this.I=this.A=this.G=this.H=!1;this.O=this.qd();this.N=this.Rd();this.U=15E3;this.S=!1}z(wP,uP);f=wP.prototype;
f.Mr=function(a,b,c,d){if(d&&(d=F(a,function(a){return!da(qP(a.o))}),null!==d))return d;a=eb(a,function(a){var b=a.j;A(B(a.o))||"progressive"!=a.B&&"application/x-mpegurl"!=B(b).toLowerCase()?a=!1:(b=B(b).toLowerCase(),a=A(b)||kd&&pL(lL,2.3)&&-1!=b.indexOf("application/ogg")?!1:kd&&(-1!=b.indexOf("video/mp4")||-1!=b.indexOf("video/3gpp"))||oL()&&(-1!=b.indexOf("application/x-mpegurl")||-1!=b.indexOf("application/vnd.apple.mpegurl"))?!0:!A(this.j.canPlayType(b)));return a},this);return eP(a,b,c)};
f.wl=function(){return eb(Ob(YJ),function(a){return!A(this.j.canPlayType(a))},this)};f.Wm=function(a){this.U=0<a.zb?a.zb:15E3};f.load=function(a){xP(this);this.j.src=a;this.j.load();yP(this)};f.getVideoUrl=function(){return this.j.src};f.setVolume=function(a){this.j.volume=a};f.rd=function(){return this.j.volume};f.play=function(){this.S=!1;zn(this.j.play,0,this.j);this.I=!0;yP(this)};f.pause=function(){this.S=!0;this.j.pause()};
f.Pg=function(){return this.j.paused?oL()||bi?this.j.currentTime<this.j.duration:!0:!1};f.Og=function(){return this.j.muted};f.nl=function(){nL()&&this.j.webkitDisplayingFullscreen&&this.j.webkitExitFullscreen()};f.Rd=function(){return $O(this.j)};f.xg=function(a){var b;i:{for(b=this.V.Oa();b.length;){var c=b.pop();if(0<c){b=c;break i}}b=-1}return b>=a};f.Gf=function(a){this.j.currentTime=a};f.getCurrentTime=function(){return this.j.currentTime};f.bp=function(){return zP(this)};
f.od=function(){return isNaN(this.j.duration)?-1:this.j.duration};f.Qe=function(){return this.j.ended};f.qd=function(){return new H(this.j.offsetWidth,this.j.offsetHeight)};f.Ip=function(){return this.j.seeking};f.P=function(){this.Hf();this.j=null;wP.K.P.call(this)};f.Hp=function(){return this.j.error};
f.Si=function(){this.Hf();this.o=new En(this);this.o.M(this.j,"canplay",this.Tz);this.o.M(this.j,"ended",this.Ey);this.o.M(this.j,"webkitbeginfullscreen",this.Pl);this.o.M(this.j,"webkitendfullscreen",this.Kp);this.o.M(this.j,"loadeddata",this.OA);this.o.M(this.j,"pause",this.Gy);this.o.M(this.j,"playing",this.hB);this.o.M(this.j,"timeupdate",this.GB);this.o.M(this.j,"volumechange",this.Hy);this.o.M(this.j,"error",this.Jp);this.D=new jP;this.o.M(this.D,"click",this.Cy);kP(this.D,this.j);this.F=new xn(1E3);
this.o.M(this.F,"tick",this.Fy);this.F.start()};f.Hf=function(){null!=this.D&&(mP(this.D),this.D=null);null!=this.F&&this.F.dispose();null!=this.o&&(this.o.dispose(),this.o=null);xP(this)};function xP(a){a.G=!1;a.A=!1;a.I=!1;a.H=!1;a.B=0;a.R=!1;a.V.clear();AP(a);Ci(a.C)}function BP(a){a.A||(a.A=!0,AP(a),a.X("start"),sL()||!kd||kd&&pL(lL,3)||nL()&&(!oL()||!pL(kL,4))||a.Pl())}f.Tz=function(){var a;if(a=ci)a=Uc,a=!(a&&(Ma(a,"SMART-TV")||Ma(a,"SmartTV")));a&&!this.R&&(this.Gf(.001),this.R=!0);ai||CP(this)};
f.OA=function(){ai&&CP(this)};function CP(a){a.G||(a.G=!0,a.I||AP(a),a.X("loaded"))}f.hB=function(){this.X("play");oL()||ai||BP(this)};f.GB=function(){if(!this.A&&(oL()||ai)){if(0>=this.getCurrentTime())return;if(ai&&this.Qe()&&1==this.od()){this.Jp();return}BP(this)}if(oL()){if(1.5<this.getCurrentTime()-this.B){this.H=!0;this.Gf(this.B);return}this.H=!1;this.getCurrentTime()>this.B&&(this.B=this.getCurrentTime())}this.V.add(this.j.currentTime);this.X("timeUpdate")};f.Hy=function(){this.X("volumeChange")};
f.Gy=function(){var a;this.A&&oL()&&!this.S&&2>zP(this)-this.j.currentTime?(this.C=new xn(250),this.o.M(this.C,"tick",this.Oz),this.C.start(),a=!0):a=!1;a||this.X("pause")};f.Ey=function(){var a=!0;oL()&&(a=this.B>=this.j.duration-1.5);!this.H&&a&&this.X("end")};f.Pl=function(){this.X("beginFullscreen")};f.Kp=function(){this.X("endFullscreen")};f.Jp=function(){AP(this);this.X("error")};f.Cy=function(){this.X("click")};
f.Fy=function(){var a=this.qd(),b=this.Rd();if(a.width!=this.O.width||a.height!=this.O.height)!this.N&&b?this.Pl():this.N&&!b&&this.Kp(),this.O=a,this.N=b};f.qw=function(){if(!this.A||!this.I&&!this.G){try{uL(tL.getInstance(),16)}catch(a){}xP(this);this.X("mediaLoadTimeout")}};f.Oz=function(){if(this.Qe()||!this.Pg())Ci(this.C);else{var a=this.j.duration-this.j.currentTime,b=zP(this)-this.j.currentTime;0<b&&(2<=b||2>a)&&(Ci(this.C),this.play())}};
function zP(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 yP(a){a.J||(a.J=zn(a.qw,a.U,a))}function AP(a){a.J&&(An(a.J),a.J=null)};function DP(){T.call(this);this.j=new EP;this.o=new En(this);var a=cL();if(a){i:{if("videoElementMockDuration"in a.j&&(a=a.j.videoElementMockDuration,ga(a)))break i;a=NaN}this.duration=a}}z(DP,T);function FP(){var a=["video/mp4"],b=["video/ogg"],c=new DP;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 GP(a){this.startTime=0;this.endTime=a}function EP(){this.length=0;this.j=[]}EP.prototype.start=function(a){return this.j[a].startTime};
EP.prototype.end=function(a){return this.j[a].endTime};f=DP.prototype;f.readyState=0;f.currentTime=0;f.duration=NaN;f.Jf=!0;f.Pp=!1;f.autoplay=!1;f.volume=1;f.muted=!1;f.src="";f.My=1;f.playbackRate=0;f.$c=null;f.Yi=0;f.zC=4;f.tg=null;f.Nj=null;
f.play=function(){this.Pp&&(this.currentTime=0,this.X("timeupdate"));this.Jf&&(this.Jf=!1,this.X("play"),this.readyState=this.zC,2>=this.readyState?this.X("waiting"):this.X("playing"));if(null===this.$c||this.$c.ka())this.$c=new xn(10),this.$c.M("tick",x(this.es,this));this.Yi=y();this.$c.start();this.autoplay=!1};f.pause=function(){this.autoplay=!1;this.Jf||(this.$c.stop(),this.Jf=!0,this.X("timeupdate"),this.X("pause"))};
f.load=function(){this.readyState=0;this.Jf=!0;this.X("loadstart");this.setProperty("duration",isNaN(this.duration)?10+20*Math.random():this.duration);var a=this.j;a.j.push(new GP(this.duration));a.length=a.j.length;this.X("loadedmetadata");0<this.currentTime&&this.X("timeupdate");this.X("loadeddata");this.X("canplay");this.X("canplaythrough");this.X("progress");this.playbackRate=this.My};
f.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.X("seeking");this.currentTime=c;this.X("seeked");this.es();break;case "duration":this.duration=Number(b);this.X("durationchange");break;case "volume":this.volume=Number(b),this.X("volumechange")}};f.es=function(){var a=y()-this.Yi,b=this.currentTime+a/1E3;this.Yi+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.X("timeupdate");this.currentTime==this.duration&&(this.Pp=this.Jf=!0,this.$c.stop(),this.X("ended"))};
f.P=function(){this.$c&&!this.$c.ka()&&this.$c.dispose()};f.aC=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.Nj&&(this.Nj.innerText=b);c&&this.tg&&(this.tg.style.backgroundColor=c)};dd&&rd(8);function HP(){};var IP={},JP={},KP={};function LP(){throw Error("Do not instantiate directly");}LP.prototype.Id=null;LP.prototype.getContent=function(){return this.content};LP.prototype.toString=function(){return this.content};function MP(a,b){var c=Bd().createElement("DIV"),d=NP(a(b||OP,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function NP(a){if(!ja(a))return String(a);if(a instanceof LP){if(a.Sc===IP)return a.getContent();if(a.Sc===KP)return ya(a.getContent())}return"zSoyz"}var OP={};function PP(a){if(null!=a)switch(a.Id){case 1:return 1;case -1:return-1;case 0:return 0}return null}function QP(){LP.call(this)}z(QP,LP);QP.prototype.Sc=IP;function RP(a){return null!=a&&a.Sc===IP?a:a instanceof Hc?SP(Jc(a),a.Af()):SP(ya(String(String(a))),PP(a))}function TP(){LP.call(this)}z(TP,LP);TP.prototype.Sc={};TP.prototype.Id=1;function UP(){LP.call(this)}z(UP,LP);UP.prototype.Sc=JP;UP.prototype.Id=1;function VP(){LP.call(this)}z(VP,LP);VP.prototype.Sc={};VP.prototype.Id=1;
function WP(){LP.call(this)}z(WP,LP);WP.prototype.Sc={};WP.prototype.Id=1;function XP(a,b){this.content=String(a);this.Id=null!=b?b:null}z(XP,LP);XP.prototype.Sc=KP;function YP(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}}var SP=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.Id=d);return e}}(QP);YP(TP);YP(UP);var ZP=YP(VP);YP(WP);var $P={},aQ={};
function bQ(a,b,c){var d="key_"+a+":"+b,e=$P[d];if(void 0===e||0>e)$P[d]=0,aQ[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');}function cQ(a,b){var c=aQ["key_"+a+":"+b];c||""==b||(c=aQ["key_"+a+":"]);return c?c:dQ;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');}function dQ(){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.Id=d);return e}})(QP);function eQ(a){return RP(a)}var fQ=/['()]/g;function gQ(a){return"%"+a.charCodeAt(0).toString(16)}function hQ(a){if(null!=a&&a.Sc===JP)return String(a).replace(iQ,jQ);if(a instanceof yc)return a=Ac(a),String(a).replace(iQ,jQ);a=wa(String(a));fQ.lastIndex=0;return fQ.test(a)?a.replace(fQ,gQ):a}var kQ={};
function lQ(a){kQ[1]||(kQ[1]=new HP);var b=PP(a);if(null==b){var c=b=0,d=!1;a=gc(a+"",null!=a&&a.Sc===IP).split(mc);for(var e=0;e<a.length;e++){var g=a[e];jc.test(gc(g,void 0))?(b++,c++):kc.test(g)?d=!0:ic.test(gc(g,void 0))?c++:nc.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return ZP(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var mQ={"\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 jQ(a){return mQ[a]}var iQ=/[\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 nQ(a){return""+cQ("a",a.yi)(a)}
bQ("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">'+RP(a.Pf)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+RP(a.Pf)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+eQ(lQ(a.Pc))+
">"+RP(a.Pc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+eQ(lQ(a.nf))+">"+RP(a.nf)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
bQ("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">'+RP(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
RP(a.LK)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+RP(a.MK)+'</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"'+eQ(lQ(a.Pc))+">"+RP(a.Pc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+
eQ(lQ(a.nf))+">"+RP(a.nf)+'</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 oQ(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+eQ(lQ(a.Pc))+">"+RP(a.Pc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'}
function pQ(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+eQ(lQ(a.Pc))+">"+RP(a.Pc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+RP(a.Pf)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'}
function qQ(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'}function rQ(){return"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"}function sQ(a){return""+cQ("b",a.yi)(a)}
bQ("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 "+(RP(a.un)+"\u00a0\u0441.");return b+a});
bQ("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 "+RP(a.un);return b+a});function tQ(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton">'+RP(a.aD)+'<div class="videoAdUiSkipIcon"></div></button></div>'}
function uQ(a){var b="";a=2<=a.Qj&&1<=a.ai?"\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 "+(RP(a.ai)+(" \u0438\u0437 "+(RP(a.Qj)+(" "+RP(a.Oj))))):"\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c "+RP(a.Oj);return b+=a};function vQ(a,b,c){if(null==a||!ce(Dd(a),a))throw YK(vK,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=cL();dL(a,"useVideoElementMock")?(a=FP(),b=I("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),qa(b,a),a.tg=I("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.Nj=I("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.tg.appendChild(a.Nj),b.appendChild(a.tg),a.o.M(a,["loadeddata","playing","pause","ended"],a.aC),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))}z(vQ,Q);vQ.prototype.initialize=function(){mL()&&this.o.load()};vQ.prototype.P=function(){Wd(this.j);vQ.K.P.call(this)};vQ.prototype.$=function(){wQ(this.j,!1)};function wQ(a,b){null!=a&&(a.style.display=b?"block":"none")};function xQ(a){T.call(this);this.I="ima-chromeless-video";var b=null;null!=a&&(w(a)?this.I=a:b=a);this.J=new En(this);this.C=null;this.A=!1;this.Y=this.qd();this.U=this.Rd();this.F=-1;this.S=!1;this.D=-1;this.o=this.O=this.G=null;this.V="";this.j=!1;this.ca=null!=b;this.H=this.R=this.ba=null;this.B=void 0;this.Z=null;null!=b?(this.j=!0,this.ba=b,this.B=2):(a=x(this.xw,this),yQ?a():(zQ.push(a),a=Rd("script"),a.src="https://www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,
b)))}z(xQ,uP);var AQ=["video/mp4","video/webm"],BQ={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},zQ=[],yQ=!1;f=xQ.prototype;f.Mr=function(a,b,c){var d=F(a,function(a){return!da(qP(a.o))});if(null!==d)return d;a=eb(a,function(a){a=B(a.j);return this.j?this.ba.canPlayType(a):G(AQ,a)},this);lb(c)||(d=eP(a,b,c));return null!=d?d:eP(a,b,[])};f.Wm=function(a){this.o=a};f.load=function(a,b){null!==a&&(this.V=a,this.j?CQ(this,a,b):(this.G=a,this.O=b))};f.getVideoUrl=function(){return this.V};
f.setVolume=function(a){this.ca?this.X("volumeChange"):this.j?(a=Pc(100*a,0,100),this.ba.setVolume(a),this.D=-1,this.X("volumeChange")):this.D=a};f.rd=function(){return this.j?this.ba.getVolume()/100:this.D};f.play=function(){if(!A(B(this.V))){if(!this.A){DQ(this);var a=15E3;null!=this.o&&0<this.o.zb&&(a=this.o.zb);this.da=zn(this.cB,a,this)}this.j?(this.S=!1,!this.A&&this.o&&this.o.j?this.ba.loadVideoByPlayerVars(this.Z):this.ba.playVideo()):this.S=!0}};f.pause=function(){this.j&&this.A&&this.ba.pauseVideo()};
f.Pg=function(){return this.j?2==this.ba.getPlayerState(this.B):!1};f.Og=function(){return this.j?this.ba.isMuted():0==this.rd()};f.nl=function(){};f.Rd=function(){var a=hL.j?hL.A:document.getElementById(this.I);return a?$O(a):!1};f.xg=function(a){return this.j?this.ba.getCurrentTime(this.B)>=a:!1};f.Gf=function(a){this.j?this.ba.seekTo(a,!1):this.F=a};f.getCurrentTime=function(){return this.j?this.ba.getCurrentTime(this.B):-1};
f.bp=function(){return this.j&&this.A?this.ba.getVideoLoadedFraction(this.B)*this.ba.getDuration(this.B):0};f.od=function(){return this.j&&this.A?this.ba.getDuration(this.B):-1};f.Hp=function(){return null};f.wl=function(){return Ob(YJ)};f.Qe=function(){return this.j?0==this.ba.getPlayerState(this.B):!1};f.qd=function(){var a=hL.j?hL.A:document.getElementById(this.I);return a?new H(a.offsetWidth,a.offsetHeight):new H(0,0)};f.Ip=function(){return!1};
f.Ly=function(){var a=this.qd(),b=this.Rd();if(a.width!=this.Y.width||a.height!=this.Y.height)!this.U&&b?this.X("beginFullscreen"):this.U&&!b&&this.X("endFullscreen"),this.Y=a,this.U=b};f.Si=function(){this.R=x(this.Rq,this);this.H=x(this.Ql,this);this.ca&&(this.ba.addEventListener("onAdStateChange",this.H),this.ba.addEventListener("onReady",this.R),this.ba.addEventListener("onStateChange",this.H));this.N=new xn(1E3);this.J.M(this.N,"tick",this.Ly);this.N.start()};
f.Hf=function(){this.ca&&(this.ba.removeEventListener("onAdStateChange",this.H),this.ba.removeEventListener("onReady",this.R),this.ba.removeEventListener("onStateChange",this.H));null!=this.N&&this.N.dispose()};f.xw=function(){var a=this.I,b={playerVars:Yb(BQ),events:{onError:x(this.fB,this),onReady:x(this.Rq,this),onAdStateChange:x(this.Ql,this),onStateChange:x(this.Ql,this)}},c=t("YT");this.ba=null!=c&&null!=c.Player?new c.Player(a,b):null};
function CQ(a,b,c){var d={};if(null!=a.o){var e=a.o.o;null!=e&&(d.agcid=e);e=a.o.C;null!=e&&(d.adformat=e);(e=a.o.A)&&(d.cta_conversion_urls=e);d.iv_load_policy=gL()&&a.o.D?1:3;a.o.B&&(d.noiba=1);a.o.F&&(d.utpsa=1)}e=qP(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.ba.preloadVideoByPlayerVars(a.Z)):a.ba.cueVideoByPlayerVars(d);a.X("loaded")}f.fB=function(){this.X("error")};
f.Rq=function(){this.j=!0;-1!=this.D&&(this.setVolume(this.D),this.D=-1);null!=this.G&&(CQ(this,this.G,this.O),this.O=this.G=null);-1!=this.F&&(this.Gf(this.F),this.F=-1);this.S&&this.play()};f.Ql=function(a){switch(a.data){case 0:this.A?this.X("end"):this.X("error");break;case 1:this.A||(DQ(this),this.A=!0,this.X("start"));this.X("play");EQ(this);this.C=new xn(100);this.J.M(this.C,"tick",this.Dq);this.C.start();break;case 2:this.X("pause"),EQ(this)}};
function EQ(a){a.J.Ia(a.C,"tick",a.Dq);null!=a.C&&(a.C.stop(),a.C=null)}function DQ(a){null!=a.da&&An(a.da)}f.Dq=function(){this.X("timeUpdate")};f.cB=function(){this.X("mediaLoadTimeout")};f.Gp=function(a,b){this.j&&this.ba.addInfoCardXml(a,b)};f.zf=function(){if(!this.j)return null;var a=this.ba.getVideoData();return a?a.cpn:null};f.Pr=function(a){this.j&&qP(this.getVideoUrl())&&this.ba.sendVideoStatsEngageEvent(a)};
f.P=function(){EQ(this);DQ(this);this.Hf();this.j=!1;this.J.dispose();this.F=-1;this.O=null;this.S=!1;this.G=null;this.D=-1;this.R=this.ba=this.o=null;this.A=!1;this.V="";xQ.K.P.call(this)};q("onYouTubeIframeAPIReady",function(){yQ=!0;D(zQ,function(a){a()});mb(zQ)},window);function FQ(a){T.call(this);this.j=a||Ua();this.o=[]}z(FQ,T);FQ.prototype.A=!1;FQ.prototype.connect=function(){for(this.A=!0;!lb(this.o);){var a=this.o.shift();GQ(this,a.name,a.type,a.data)}};FQ.prototype.send=function(a,b,c){this.A?GQ(this,a,b,c):this.o.push({name:a,type:b,data:c})};function HQ(a,b,c,d,e){jm.call(this,a);this.uc=b;this.wd=c;this.zp=d;this.B=e}z(HQ,jm);HQ.prototype.getOrigin=function(){return this.B};HQ.prototype.toString=function(){return""};function IQ(a,b){FQ.call(this,b);this.B=a;this.Kc=null;this.C=new En(this);this.logger=null;this.C.M(Nd(),"message",this.receive)}z(IQ,FQ);function JQ(a){if(null==a||!w(a)||!ta(a,"ima://"))return null;a=a.substr(6);try{return qg(a)}catch(b){return null}}function GQ(a,b,c,d){null!=a.Kc&&null!=a.Kc.postMessage&&a.Kc.postMessage(KQ(a,b,c,d),"*");null!=a.Kc&&null==a.Kc.postMessage&&uL(tL.getInstance(),11)}IQ.prototype.P=function(){this.C.dispose();IQ.K.P.call(this)};
IQ.prototype.receive=function(a){a=a.j;var b=JQ(a.data);if(null!=b){if(null==this.Kc)this.Kc=a.source;else if(this.Kc!=a.source)return;var c=b.channel;null!=c&&c==this.B&&(c=b.sid,null!=c&&("*"!=this.j&&c!=this.j||this.X(new HQ(b.name,b.type,b.data||{},b.sid,a.origin))))}};function KQ(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://"+sg(e)};function LQ(a,b){T.call(this);this.B=a;this.A=b;this.j={};this.o=new En(this);this.o.M(Nd(),"message",this.C)}z(LQ,T);LQ.prototype.send=function(a){var b=a.A;this.j.hasOwnProperty(b)&&this.j[b].send(a.type,a.uc,a.wd)};function MQ(a,b,c,d){a.j.hasOwnProperty(b)||(c=new IQ(b,c),a.o.M(c,a.B,function(a){a=new NQ(a.type,a.uc,a.wd,a.zp,a.getOrigin(),b);this.X(a)}),c.Kc=d,c.connect(),a.j[b]=c)}LQ.prototype.P=function(){this.o.dispose();for(var a in this.j)Ci(this.j[a]);LQ.K.P.call(this)};
LQ.prototype.C=function(a){a=a.j;var b=JQ(a.data);if(null!=b){var c=b.channel;if(this.A&&!this.j.hasOwnProperty(c)){var d=b.sid;MQ(this,c,d,a.source);this.X(new NQ(b.name,b.type,b.data||{},d,a.origin,c))}}};function NQ(a,b,c,d,e,g){HQ.call(this,a,b,c,d,e);this.A=g}z(NQ,HQ);function OQ(){var a=t("google.ima.gptProxyInstance",Nd());if(null!=a)return a;En.call(this);this.A=new LQ("gpt",!0);R(this,this.A);this.M(this.A,"gpt",this.D);this.j=null;PQ()||Nd().top===Nd()||(this.j=new LQ("gpt",!1),R(this,this.j),this.M(this.j,"gpt",this.C))}z(OQ,En);function PQ(){return!!t("googletag.cmd",Nd())}function QQ(){var a=t("googletag.console",Nd());return null!=a?a:null}
OQ.prototype.D=function(a){var b=a.getOrigin(),c=Ie("//imasdk.googleapis.com"),b=Ie(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.j)MQ(this.j,a.A,a.zp,Nd().parent),null!=this.j&&this.j.send(a);else if(c=a.wd,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.uc,"isGptPresent"==c?d=PQ():"isConsolePresent"==c&&(d=null!=QQ());else if(PQ())if("pubads"==b||"companionAds"==b){d=a.uc;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.uc,e=QQ(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.uc;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.wd.returnValue=d,this.A.send(a))}};OQ.prototype.C=function(a){this.A.send(a)};function RQ(a,b,c,d,e,g,h,k){this.C=a;this.o=b;this.A=c;this.B=h;this.D=d;this.F=e;this.zb=g;this.j=k};function SQ(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 C=c.shift();if("undefined"==typeof C)throw Error("[goog.string.format] Not enough arguments");arguments[0]=C;return TQ[p].apply(null,arguments)})}
var TQ={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=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 TQ.f(parseInt(a,
10),b,c,d,0,g,h,k)}};TQ.i=TQ.d;TQ.u=TQ.d;function UQ(a,b){T.call(this);this.B=new En(this);this.G=!1;this.H=Ua();this.D=new xe;var c=this.H,c=I("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+SQ("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});In(this.B,c,"load",this.Mw);a.appendChild(c);this.o=c;c=this.D.get("*");null==c&&(c=new IQ(this.H,"*"),this.G&&(c.Kc=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.Cx);this.B.M(this.C,"touch",this.ay);null!=this.j&&(this.B.M(this.C,"displayContainer",this.qx),this.B.M(this.C,"videoDisplay",this.Yx),this.B.M(this.j,Ob(vP),this.$B));var c=Nd(),d=t("google.ima.gptProxyInstance",c);null==d&&(d=new OQ,q("google.ima.gptProxyInstance",d,c))}z(UQ,T);f=UQ.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);UQ.K.P.call(this)};
f.Cx=function(a){var b=a.wd,c=Ug(this.o),d=document.createEvent("MouseEvent");d.initMouseEvent(a.uc,!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(!ci||oL()||0==document.webkitIsFullScreen)this.o.blur(),window.focus();this.o.dispatchEvent(d)};
function VQ(a,b){var c=Ug(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.ay=function(a){var b=a.wd,c=Ug(this.o),d=document.createEvent("TouchEvent");d.initTouchEvent(a.uc,!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,VQ(this,b.touches),VQ(this,b.targetTouches),VQ(this,b.changedTouches),b.scale,b.rotation);this.o.dispatchEvent(d)};
f.Yx=function(a){if(null!=this.j){var b=a.wd;switch(a.uc){case "startTracking":this.j.Si();break;case "stopTracking":this.j.Hf();break;case "exitFullscreen":this.j.nl();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.Gf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.j.Wm(new RQ(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading))}}};
f.$B=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.Qe();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.od();break;case "volumeChange":a="volumeChange";b.volume=this.j.rd();break;default:return}this.C.send("videoDisplay",a,b)};f.qx=function(a){switch(a.uc){case "showVideo":null!=this.A?mP(this.A):(this.A=new jP,this.B.M(this.A,"click",this.WB));kP(this.A,WQ(this.F));a=this.F;null!=a.j&&wQ(a.j.j,!0);break;case "hide":null!==this.A&&(this.A.dispose(),this.A=null),this.F.$()}};f.WB=function(){this.C.send("displayContainer","videoClick")};
f.Mw=function(){ve(this.D.bc(!1),function(a){a.Kc=de(this.o);a.connect()},this);this.G=!0};function XQ(a,b,c,d){if(null==a||!ce(Dd(a),a))throw YK(vK,null,"containerElement","element");this.B=a;var e=null!=b||null!=d,g=e,h=!1;hL.j||(oL()||kd||Ma(Uc,"CrKey")||rL()||Ma(Uc,"Roku")||qL()||Ma(Uc,"Xbox"))&&e||(mL()||Ma(Uc,"CrKey")||rL()||Ma(Uc,"Roku")||qL()||Ma(Uc,"Xbox")||(h=!0),g=!1);this.D=g;this.G=h||g&&null!=d;hL.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&&!hL.j&&mL()?new vQ(this.o,null,!0):null;a=null;this.D?b?a=new wP(b):
d&&(a=new xQ(d)):this.j&&(a=new wP(this.j.o));this.C=(this.A=a)?c||null:null;this.H=null!=this.C;uL(tL.getInstance(),8,{enabled:this.D,yt:null!=d,customClick:null!=this.C});null===this.o&&(b=this.B,hL.A=b);this.F=null==this.o||hL.j?null:new UQ(this.o,this)}XQ.prototype.initialize=function(){null!=this.j&&this.j.initialize()};XQ.prototype.destroy=function(){Ci(this.j);Ci(this.F);Ci(this.A);Wd(this.o)};XQ.prototype.$=function(){null!=this.j&&this.j.$()};
function WQ(a){return a.H&&a.C?a.C:null!=a.j?a.j.A:null};function YQ(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();i:{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 i}++e}}}c=""}}h.push(b,c);if(null!=a)h.push(Ye(a,"ad_type")||""),h.push(Ye(a,"videoad_start_delay")||
""),h.push(Ye(a,"sz")||""),h.push(Ye(a,"vpos")||""),h.push(Ye(a,"mridx")||""),h.push(Ye(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 ZQ(){T.call(this);this.currentTime=0}z(ZQ,T);function $Q(a){ZQ.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw YK(vK,null,"content","currentTime");this.o=a;this.j=new xn(250);this.A=new En(this);Hn(this.A,this.j,"tick",this.B,this)}z($Q,ZQ);$Q.prototype.start=function(){this.j.start()};$Q.prototype.stop=function(){this.j.stop()};$Q.prototype.P=function(){$Q.K.P.call(this);this.A.dispose();this.j.dispose()};
$Q.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.X(new jm("currentTimeUpdate"))}else this.X(new jm("contentWrapperError")),this.stop()};function aR(){this.reset()}aR.prototype.reset=function(){this.j=0;this.o=null};var bR;
bR={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(""),S:"\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(" "),V:"\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(" "),Y:"\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(" "),U:"\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}"],$u:0,Za:[5,6],av:6};function cR(a,b,c,d,e,g){w(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)}cR.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};cR.prototype.clone=function(){return new cR(this.A,this.o,this.j,this.B,this.C,this.D)};
cR.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 dR(a,b,c){ga(a)?(this.date=eR(a,b||0,c||1),fR(this,c||1)):ja(a)?(this.date=eR(a.getFullYear(),a.getMonth(),a.getDate()),fR(this,a.getDate())):(this.date=new Date(y()),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0))}function eR(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=dR.prototype;f.Yo=bR.$u;
f.Zo=bR.av;f.clone=function(){var a=new dR(this.date);a.Yo=this.Yo;a.Zo=this.Zo;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;i:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break i;case 5:case 8:case 10:case 3:d=30;break i}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()),fR(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 fR(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.date.valueOf()};function gR(){this.o=this.j=null}gR.prototype.reset=function(){this.o=this.j=null};function hR(){this.j=iR();this.H=-1;this.N=this.O=this.A=this.G=this.B=null;this.D=iR();this.o=null;this.R=this.I=this.J="";this.F=this.S=this.C=null}function iR(){return Math.floor(4503599627370496*Math.random())}var jR=new hR;hR.prototype.clear=function(){this.j=iR();this.A=this.G=this.B=null;this.D=iR();this.o=null;this.R=this.I=this.J="";this.F=this.S=this.C=null};function kR(a){if(hL.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 lR(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 mR(a){a.B="";a.A=0;a.j=0;a.o=!0}lR.prototype.getContent=function(){return this.B};lR.prototype.clone=function(){var a=new lR(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 nR(){T.call(this);this.B=!1;this.impressionUrls=[]}z(nR,T);function oR(a){jm.call(this,a)}z(oR,jm);function pR(){nR.call(this);this.G=[];this.C=!1;this.A="not_loaded";this.o=null;this.D=0;this.j=null;this.H=new Cd}z(pR,nR);ba(pR);function qR(a){var b=["googletag","googletag.cmd"];return F(a,function(a){return hb(b,function(b){return!da(t(b,a))})})||null}f=pR.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"),qR([b,b.top]),a=!0}catch(c){a=!1}a?rR(this):(this.B=!0,this.A="not_available")}};
function sR(a){return a.B?E(a.G,function(a){return a.clone()}):[]}function tR(a){a=sR(a);return null!=a?E(a,function(a){return a.C}):void 0}function uR(a,b,c){var d=0,e=0;null!=b&&(b=new J(b.adTagUrl),d=Number(tf(b,"pod")||0),e=Number(tf(b,"ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(jR.j,d,e,c)}catch(g){}}function vR(a,b){var c=wR(a);if(null!==c){uR(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}f.setVideoContent=function(a,b){var c=xR(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};
function yR(a,b){a.F=b;a.setVideoContent("","");var c=wR(a);uR(c,null,!1)}function wR(a){null==a.j&&zR(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.companionAds?a.j.googletag.companionAds():null}function xR(a){null==a.j&&zR(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.pubads?a.j.googletag.pubads():null}f.Tq=function(){0<this.D&&y()>=this.D?(this.B=!0,AR(this),BR(this)):rR(this)};function AR(a){a.o&&(a.o.stop(),a.o.Ia("tick",a.Tq,!1,a),a.o.dispose(),a.o=null)}
function rR(a){var b;if(b=!a.C)zR(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.PC,a)}}catch(e){a.C=!0,c=[]}a.G=c;a.C=!0}if("retrieved"!=a.A&&"not_available"!=a.A&&!da(wR(a))){var g;b=wR(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,AR(a),a.X(new oR("companions_success"))):a.C&&"not_available"==a.A?(a.B=!0,AR(a),BR(a)):a.o||(a.D=y()+5E3,a.o=new xn(100),a.o.M("tick",a.Tq,!1,a),a.o.start())}function zR(a){var b=qe(a.H);try{a.j=qR([b,b.top])}catch(c){a.j=null}}function BR(a){a.X(new oR("companion_initialization_failed"))}f.PC=function(a){var b=E(a.adSizes,function(a){return new H(a.adWidth,a.adHeight)});return new lR(a.slotId,b)};
f.bw=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){lK(this.impressionUrls,a)};function CR(a){jm.call(this,a)}z(CR,jm);function DR(){T.call(this);this.A=[]}z(DR,T);DR.prototype.so=function(){return!0};function ER(){return new FR("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new xe)}DR.prototype.De=function(){return null};function GR(a){DR.call(this);this.j=a;this.D=null;this.F=!1;this.o=null;this.C=new En;Hn(this.C,this.j,["companions_success","companion_initialization_failed"],this.uB,this);Hn(this.C,this.j,"companion_display_error",this.bA,this);this.j.B?this.F=!0:this.j.initialize()}z(GR,DR);f=GR.prototype;f.destroy=function(){null!=this.C&&this.C.dispose();this.o=null};function HR(a,b){a.o=b;a.B=!0;a.F?IR(a):(a.B=JR(KR(b),[]),a.B||(a.o=null))}
function IR(a){var b=a.o;a.o=null;if(null!=a.j)if(lb(a.A))LR(a);else if(null!=b){var c=MR(a,b),d=a.j;try{d.j.googleSetCompanionAdContents(E(a.A,d.bw,d)),d.sendImpressionUrls()}catch(e){d.X(new oR("companion_display_error"))}if(0<c.length&&b.ga&&(d=a.j,0!=c.length&&"GDFP"==NR(b,!0))){a=[];for(var g=0;g<c.length;g++)a.push(c[g].D);b=b.A;c=wR(d);if(null!==c){uR(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else LR(a)}function LR(a){a.X(new CR("companion_display_error"))}f.so=function(){return this.B};
f.uB=function(){null!=this.D&&(this.D.stop(),this.D.dispose(),this.D=null);if(null!=this.j){var a=sR(this.j);null!=a&&(this.A=a)}this.F=!0;null!=this.o&&IR(this);this.X(new jm("initialized"))};f.bA=function(){LR(this)};
function MR(a,b){var c=[],d=[];D(a.A,function(a){mR(a);gb(a.C,function(d){i:{var e=OR(b);d=PR(new QR(new H(d.width,d.height)),e);if(!lb(d)&&(d=RR(d,c),null!=d)){e=d.A;if(null!=e&&0!=a.D.indexOf(e)){d=!1;break i}c.push(d);var e=d.getContent(),l=d.j.sd(),p=d.getHeight();d="IFrame"!=d.j.U;a.B=e;a.A=l;a.j=p;a.o=d;d=!0;break i}d=!1}return d},this)||d.push(a)},a);var e=KR(b);a.B=JR(e,c);a.B||D(a.A,function(a){mR(a)},a);return d}
function JR(a,b){if(null==a)return!0;var c=a.j;return"all"==a.o?SR(c,b):"any"==a.o?TR(c,b):!0}function KR(a){return null==a||null==a.j||isNaN(a.j.j)?null:F(UR(a,!0),function(a){a=a.j;return lb(a)?!1:isNaN(a[0].j.j)?!1:a[0].j.j==VR(a[0])})}function SR(a,b){return hb(a,function(a){return G(b,a)})}function TR(a,b){return gb(a,function(a){return G(b,a)})}function RR(a,b){return F(a,function(a){return!G(b,a)})}f.De=function(){return this.j};function WR(a){jm.call(this,a);this.D=[];this.C={};this.A=null;this.B=!0}z(WR,jm);function XR(){this.o=new xe;this.j=.01>Math.random()&&!gL();this.B=0;this.A="0"}ba(XR);var YR=/iu\=\/(\d+)\//;XR.prototype.start=function(a){this.j&&this.o.set(a,y())};XR.prototype.end=function(a,b){if(this.j&&ze(this.o,a)){var c=y()-this.o.get(a),d=ZR(this,a,c,b);iK(d);this.o.remove(a);this.B+=c}};function ZR(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=kR(jR);Hb(d,function(a,b){K(e,b,a)},a);return e.toString()}
function $R(a,b){if(null!=b){var c=xa(b),c=YR.exec(c);a.A=c&&2==c.length?c[1]:"0"}else a.A="0"};function aS(a,b,c){this.D=b;this.B=c;this.C=null;this.o=new En(this);this.I=a;this.A=this.j=null;this.F=!1}aS.prototype.start=function(a,b){this.C=a;this.H=b;bS(this);this.D.F?this.G():Kn(this.o,this.D,"initialized",this.G,this)};aS.prototype.G=function(){var a=this.D.De(),b;b=a.B?"retrieved"!=a.A?void 0:a.F:void 0;a=tR(a);null!=b&&(this.B.D=b);null!=a&&(this.B.F=a);cS(this)};
function cS(a){if(null===a.C)dS(a);else{var b=new J(a.C.adTagUrl),c=B(tf(b,"vid")),b=B(tf(b,"cmsid")),d=a.B.J,e=a.B.I;a.B.J=c;a.B.I=b;if(A(B(c))||A(B(b)))dS(a);else if(c==d&&b==e)dS(a);else{var g=a.D.De();g.setVideoContent(c,b);vR(g,a.C);a.A=new xn(100);Hn(a.o,a.A,"tick",function(){var a;i:{var b=xR(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break i}catch(c){a=!0;break i}a=!1}a&&dS(this)},a);a.A.start()}}}
function bS(a){a.j=new xn;Kn(a.o,a.j,"tick",function(){dS(this)},a);yn(a.j,a.I);a.j.start()}function dS(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 eS(){T.call(this);this.j=new xe;this.o=null;this.D=new En(this);R(this,this.D);this.C="";this.A=null}z(eS,T);var fS=null;function gS(){null!=fS||(fS=new eS);return fS}function hS(a,b){a.A=b}function iS(a,b){if(a.o){var c=a.j,d=window.setTimeout(function(){b("");D(c.La(),function(a){c.get(a)===b&&c.remove(a)})},200);a.j.set(d,b);var e={};a.B&&(e.isFullscreen=a.B.Rd());e.osdId=a.C;e.eventId=d;a.o.send("activityMonitor","fetchAdTagUrl",e)}else b("")}
function jS(a,b,c,d){if(a.o){var e=a.j,g=window.setTimeout(function(){d("");D(e.La(),function(a){e.get(a)===d&&e.remove(a)})},200);a.j.set(g,d);var h={};a.B&&(h.isFullscreen=a.B.Rd());a.C&&(h.osdId=a.C);h.queryId=c;h.eventId=g;h.vastEvent=b;h.isOverlay=null!=a.A;a.A&&(h.overlayBounds=aP(a.A));a.o.send("activityMonitor","reportVastEvent",h)}else d("")}eS.prototype.destroy=function(){this.D.Ia(this.o,"activityMonitor",this.F);this.o=null};
eS.prototype.F=function(a){var b=a.wd,c=b.engagementString;switch(a.uc){case "appStateChanged":MO(b.appState,b.nativeTime);break;case "measurableImpression":c={};c.queryId=b.queryId;gS().X(new KJ("measurable_impression",null,c));break;case "viewableImpression":c=b.viewabilityString;a={};a.queryId=b.queryId;a.viewabilityString=c;gS().X(new KJ("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){gS();b({})},void 0);function kS(){};function lS(a){return WK(OK,null,a.parentNode.nodeName,a.nodeName)}function mS(a){return WK(DK,null,a.parentNode.nodeName,a.nodeName)}function nS(a,b){return null!=a?eb(Yd(a),function(a){return a.nodeName==b}):[]}function oS(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function pS(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 qS(a,b,c,d){null!=a&&D(Yd(a),function(a){if(a.nodeName==b)c.call(d,a);else throw lS(a);})}function rS(a){return A(B(a))?NaN:Va(B(a))}function sS(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new cR(0,0,0,Va(c[0]),Va(c[1]),Va(c[2])),60*(60*(24*c.j+c.B)+c.C)+c.D}return null!=b?b:-1}function tS(a,b){if(!A(B(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};function uS(a,b,c){this.o=a;this.j=c;this.A=b};function vS(a){this.A=a};function wS(a){this.A=a;this.o=this.j=!1}z(wS,vS);function xS(a,b,c){this.j=a;this.o=b;this.A=c};function yS(){this.j=new xe}function zS(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&&nb(d,a)});a.j.set(c,d)};function AS(a,b){this.j=a;this.o=b}z(AS,kS);AS.prototype.A=function(){return new uS(this.j,null,BS(this))};
function BS(a){var b=new yS;D(Yd(Zd(a.j)),function(a){switch(a.nodeName){case "Preroll":a=CS(this,a);zS(b,a,0);break;case "Midroll":var d=oS(a,"timeOffset"),e=sS(d);if(-1==e)throw WK(pK,null,"timeOffset",B(d));a=CS(this,a);zS(b,a,e);break;case "Postroll":a=CS(this,a);zS(b,a,-1);break;default:throw WK(zK,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.j.La().length)throw WK(yK);return b}
function CS(a,b){var c=[];D(Yd(b),function(a){switch(a.nodeName){case "Ad":var b=B(pS(a));if(!A(b)){a=oS(a,"bumper");var g=this.o.clone();g.adTagUrl=b;b=new wS(g);b.j=null!=a;b.o="always"==a;nb(c,b)}break;default:throw WK(zK,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function DS(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 ES(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 FS(a,b){if(a[b])return GS(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return GS(a[d]);return!1}
function GS(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};var HS=["ai","sigh"];function IS(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?-1!=a.indexOf("/pagead/adview")?JS(a)?0:2:-1!=a.indexOf("/pagead/conversion")?JS(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+kR(jR);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 JS(a){return hb(HS,function(b){var c=a||"";return 0<=We(c,0,b,c.search(Xe))})};function KS(a,b){this.j=a;this.o=b}function LS(a){return a.o?-1:a.j}function MS(a,b){a.o&&(a.o=!1,a.j=a.j*b/100)};function NS(){this.j=new xe}function OS(a,b){this.A=a;this.j=b}function PS(a,b){OS.call(this,"progress",a);this.o=b}z(PS,OS);function QS(a,b){D(b,function(a){var b=a.A.toLowerCase(),e=RS(this,b);e.push(a);this.j.set(b,e)},a)}function SS(a,b,c,d){b=b.toLowerCase();var e=RS(a,b);null!=d?(d=new PS(c,d),null!=d?e.push(d):e.push(new OS(b,c))):e.push(new OS(b,c));a.j.set(b,e)}function RS(a,b){return null!=b?a.j.get(b.toLowerCase())||[]:[]}
function TS(a,b){var c=RS(a,"progress");D(c,function(a){MS(a.o,b)});zb(c,function(a,b){return LS(a.o)-LS(b.o)})}NS.prototype.isEmpty=function(){return this.j.isEmpty()};function US(a,b){return E(RS(a,b)||[],function(a){return a.j})};function VS(a,b){var c=new NS;qS(a,"Tracking",function(a){var e=oS(a,"event"),g=IS(pS(a),b);WS(g)&&null!=e&&("progress"==e?(a=oS(a,"offset"),a=XS(a),null!=a&&SS(c,e,g,a)):SS(c,e,g))});return c}function YS(a){if(A(B(a)))return null;a=new J(a);if("thismessage"!=a.Mb||"extensions"!=a.rb)return null;a=a.Lb;if(!ta(a,"/"))return null;a=a.substr(1);return A(B(a))?null:a}
function XS(a){if(A(B(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new KS(a,!0))):(a=sS(a),0<=a&&(b=new KS(a,!1)));return b}function WS(a){var b=!0;if(A(B(a)))b=!1;else try{new J(a)}catch(c){b=!1}return b};function ZS(a,b){this.j=null!=a?a:new NS;this.F=null!=b?b:[]}function $S(a,b){var c=b.j;D(c.La(),function(a){QS(this.j,c.get(a))},a)}function aT(a,b){var c=US(a.j,b);return null!=c?c:[]};function bT(){this.j="Ads by Google";this.o="http://www.google.com/adsense/support";this.A=0};function cT(a,b,c,d,e,g,h,k,l,p){ZS.call(this,l,p);this.B=a;this.C=b;this.A=c;this.G=h;this.D=g;this.o=e}z(cT,ZS);function dT(){}dT.prototype.parse=function(a){var b;qS(a,"config",function(a){null!=b||(b=eT(this,a))},this);return b};function eT(a,b){var c;D(Yd(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new bT:null;break;case "params":null!=c&&fT(this,c,a)}},a);return c}function fT(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 gT(){}
gT.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=pS(a);break;case "AttributionUrl":d=pS(a);break;case "ConversionUrl":g=pS(a);break;case "CustomTracking":null!=Yd(a)&&(e=VS(a));break;case "CheckedEvents":a=Yd(a);b=E(a,function(a){return oS(a,"id")});null!=b||(b=[]);break;case "PreviousAdInformation":pS(a);break;case "VisibleUrl":h=pS(a);break;case "UI":k=(new dT).parse(a);break;case "ShowYouTubeAnnotations":var r=pS(a);
l=tS(B(r),!1);case "QueryId":pS(a)}},this);null!=k||(k=new bT);return new cT(c,d,g,0,h,k,l,0,e,b)};function hT(a,b){ZS.call(this,b);this.o=a}z(hT,ZS);function iT(){}iT.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=VS(a))}});a=null;null!=b&&0<RS(b,"skip").length&&(a="Generic");return new hT(a,b)};function jT(){}jT.prototype.parse=function(a){if(null==a)return null;var b,c;D(Yd(a),function(a){switch(a.nodeName){case "SkippableAdType":b=pS(a);break;case "CustomTracking":null!=Yd(a)&&(c=VS(a))}});return new hT(b,c)};function kT(){}kT.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=VS(a))}},this);return new ZS(b)};function lT(a){ZS.call(this);this.o=a}z(lT,ZS);function mT(){}mT.prototype.parse=function(a){a=$B(a);return A(B(a))?null:new lT(a)};function nT(a){ZS.call(this);this.o=a}z(nT,ZS);function oT(){ZS.call(this)}z(oT,ZS);function pT(){}pT.prototype.j={Mv:"TEMPLATE_PARAMETERS",Nv:"TEMPLATE_URL"};pT.prototype.parse=function(a){if(null==a)return null;D(Yd(a),function(a){switch(a.nodeName){case this.j.Mv:qT(this,a)}},this);return new oT};function qT(a,b){D(Yd(b),function(a){a.nodeName==this.j.Nv&&pS(a)},a)};function rT(a,b,c,d){ZS.call(this);this.A=a;this.B=b;this.C=c;this.o=d}z(rT,ZS);function sT(){}sT.prototype.j={mv:"Line1",nv:"Line2",ov:"Line3",kv:"ImageUrl"};sT.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.mv:b=pS(a,!0);break;case this.j.nv:c=pS(a,!0);break;case this.j.ov:d=pS(a,!0);break;case this.j.kv:e=pS(a)}},this);return new rT(b,c,d,e)};function tT(a){ZS.call(this);this.o=a}z(tT,ZS);function uT(){}uT.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Va(a):NaN;a=isNaN(a)?-1:a;return new tT(a)};function vT(){ZS.call(this)}z(vT,ZS);function wT(){}wT.prototype.parse=function(a){return null!=a?new vT:null};function xT(a){ZS.call(this);this.o=isNaN(a)?-1:a}z(xT,ZS);function yT(){}yT.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Va(a):NaN;return new xT(a)};function zT(a,b,c,d){this.Ba=a;this.j=Pc(c||0,0,1);this.o=null!=d?d:!0}zT.prototype.getId=function(){return this.Ba};function AT(a){this.Ba=a;this.o=new xe;this.j=null}function BT(a){var b=Math.random(),c=0,d=a.o.Oa();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 CT(){this.j=new xe;DT(this,41351090);DT(this,41351091);DT(this,41351024);DT(this,41351025);DT(this,41351040);DT(this,41351041);DT(this,41351042);DT(this,41351043);ET(this)}var FT=null;function GT(){FT||(FT=new CT);return FT}function DT(a,b){if(!(A(B("GvnExternalLayer"))||isNaN(b)||0>=b)){var c=new zT(b,0,.01);HT(a,"GvnExternalLayer").o.set(c.getId(),c)}}function ET(a){bL()||D(a.j.Oa(),function(a){BT(a)},a)}
function IT(a,b,c){D(b,function(a){var b=Number(a),g="forcedLayer"+a;isNaN(b)||0>=b||A(B(g))||(a=null!=c?c:!0,g=HT(this,g),b=new zT(b,0,0,a),g.j=b)},a)}function JT(a){var b=GT();return gb(b.j.Oa(),function(b){return!!b.j&&b.j.getId()==a})}function KT(a){var b=[];D(a.j.Oa(),function(a){(a=a.j)&&a.o&&b.push(a.getId())});return b.sort().join(",")}function HT(a,b){var c=a.j.get(b);null==c&&(c=new AT(b),a.j.set(b,c));return c};function LT(a){if(JT(947225)){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=Qb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}}else MT(this,a)}LT.prototype.videoCount=0;
function MT(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&gb(d.$t.split(":"),function(a,b,c){return"channel"==a?(this.channelId=c[b+1],!0):!1},a);(d=c.author)&&d[0]&&d[0].name&&(a.o=d[0].name.$t);(c=c.media$thumbnail)&&c[0]&&(a.j=c[0].url)}}};function NT(a){if(JT(947225)){if(a&&a.items&&a.items.length){a=a.items[0];this.videoId=a.id;var b=a.snippet;a.snippet&&(this.channelId=b.channelId,this.title=b.title);if(a=a.status)this.j="unlisted"!=a.privacyStatus}}else OT(this,a)}NT.prototype.j=!0;
function OT(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&gb(d.$t.split(":"),function(a,b,c){return"video"==a?(this.videoId=c[b+1],!0):!1},a);if(d=c.title)a.title=d.$t;if(d=c.media$group)if(d=d.yt$uploaderId)a.channelId=d.$t;c.yt$accessControl&&(c=F(c.yt$accessControl,function(a){return"list"==a.action}))&&(a.j="denied"!=c.permission)}}};function PT(){}var QT={IMAGE:"Image",bv:"Flash",mu:"All"},RT={HTML:"Html",IFRAME:"IFrame",wJ:"Static",mu:"All"},ST={OH:"IgnoreSize",hJ:"SelectExactMatch",iJ:"SelectNearMatch"};function QR(a){if(null==a||0>=a.width||0>=a.height)throw YK(vK,null,"ad slot size",a.toString());this.o=a;this.j=new PT;this.C=TT(RT,this.j.A)?this.j.A:"All";this.B=TT(QT,this.j.creativeType)?this.j.creativeType:"All";this.F=TT(ST,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 PR(a,b){var c=[];D(b,function(a){!A(B(a.j.B))&&(isNaN(a.j.j)||isNaN(VR(a))||VR(a)==a.j.j)&&UT(this,a)?c.push(a):(a=VT(this,a),null!=a&&!A(B(a.j.B))&&c.push(a))},a);return c}
function UT(a,b){var c;if(c="Flash"!=b.getContentType()||yM){if(c="All"==a.C||a.C==b.j.U)c=b.getContentType(),c=null!=c?"All"==a.B||a.B==c:!0;c&&(c=b.A,c=lb(a.A)?!0:null!=c?0<=cb(a.A,c):!1)}c?(c=b.j.Hc(),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 VT(a,b){var c=b.o;return null!=c?F(c,function(a){return UT(this,a)},a):null}
function TT(a,b){return null!=b&&Nb(a,b)};function WT(a){J.call(this,a);this.o=new xe;a=this.Lb;var b=a.indexOf(";"),c=null;0<=b?(df(this,a.substring(0,b)),c=a.substring(b+1)):df(this,a);XT(this,c)}z(WT,J);WT.prototype.toString=function(){return ZT(this,WT.K.toString.call(this))};WT.prototype.ip=function(){return""};WT.prototype.Bf=function(){return""};
function XT(a,b){A(B(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=[B(a)];this.o.set(e,b)}},a)}function $T(a){if(A(B("ord")))return null;a=a.o.get("ord");return null!=a?a:null}function aU(a,b,c){A(B(b))||(c=E(c,B),a.o.set(b,c))}function ZT(a,b){var c=[B(b)];tb(c,bU(a));return c.join(";")}
function bU(a){var b=$T(a);null!=b?A(B("ord"))||a.o.remove("ord"):b=[B(y())];var c=[];D(a.o.La(),function(a){D(this.o.get(a),function(b){tb(c,a+"="+b)})},a);tb(c,"ord="+b[0]);aU(a,"ord",b);return c}WT.prototype.clone=function(){return new WT(this.toString())};function cU(a){a=a.adTagUrl;if(null==a)return!1;a=new J(a);var b=a.Lb;return ua(a.rb,"googleads.g.doubleclick.net")&&dU("/pagead/ads",b)}function eU(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==nf(new J(a)):!1}function fU(a){a=a.adTagUrl;if(null==a)return!1;var b=new WT(a);a=b.rb;b=ZT(b,b.Lb);return!ua(a,".g.doubleclick.net")&&ua(a,"doubleclick.net")&&dU("/(ad|pfad)[x|i|j]?/",b)}
function gU(a){a=a.adTagUrl;if(null==a)return!1;a=new J(a);var b=a.Lb;return ua(a.rb,"doubleclick.net")&&dU("/gampad/ads",b)}function dU(a,b){return A(B(b))?!1:(new RegExp(a)).test(b)};function hU(){this.o=this.B=1;this.j=this.A=0;this.C=1};function iU(){this.S={};this.Ga="";this.Kf=new NS}iU.prototype.Xl=function(){return null};function jU(a,b,c){a.Ga=b;a.S=c}iU.prototype.hh=function(a){this.Z=a};iU.prototype.getAd=function(){return this.Z};function kU(a,b){var c=[],d=a.J();D(d,function(a){a=RS(a.Kf,b)||[];c=rb(a,c)},a);return c}iU.prototype.J=function(){for(var a=[this],b=this.Z.o;b;){var c=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 a instanceof this.constructor&&(d||b)},a)};function mU(a,b,c,d,e,g){iU.call(this);this.ca=a;this.A=b;this.o=c;this.H=sb(d);this.ma=this.ga=null;this.B=e;this.da=sb(g);wb(this.da,null,function(a){return a.H})}z(mU,iU);mU.prototype.Wc=function(){return this.A};function nU(a){var b=new xe,c=a.J();D(c,function(a){if(a instanceof mU){var c=a.o;D(c.La(),function(a){b.set(a,rb(c.get(a),b.get(a)||[]))},this)}},a);return b}
mU.prototype.getMediaUrl=function(a){var b="";gb(this.H,function(c){var d=c.o;return!A(B(a))&&a!=c.j||null==d||A(B(d))?!1:(b=d,!0)},this);return b};mU.prototype.setMediaUrl=function(a){this.ma=a};mU.prototype.Xl=function(){var a=F(this.H,function(a){return!A(B(a.j))&&-1!=a.j.indexOf("javascript")&&("VPAID"==a.A||"surveys"==a.A)});return null!=a?a.o:null};function oU(a,b,c){Q.call(this);this.o=a;this.A=b;this.B=c;this.D=0;this.j=new En(this);pU(this)}z(oU,Q);function pU(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)}oU.prototype.F=function(){this.C=y()};
oU.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=Ug(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="+(y()-this.C));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};oU.prototype.G=function(){this.D++};oU.prototype.P=function(){oU.K.P.call(this);this.j.dispose()};function qU(a,b,c,d,e){iU.call(this);A(B(a))&&(a=Ua()+"_ima");this.Ba=B(a);this.sa=b;this.U=c;this.V=d;this.B=e;this.aa=[];null!=this.V?this.Za=XJ[this.V]||"Other":this.Za=null}z(qU,iU);f=qU.prototype;f.getContent=function(){var a;a=this.Ee();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.Za};f.Hc=function(){return this.sa};f.sd=function(){return this.Hc().width};f.getHeight=function(){return this.Hc().height};
f.Xl=function(){return"VPAID"==this.G?this.B:null};f.Wc=function(){return this.N};function rU(a,b,c,d,e){qU.call(this,a,b,c,d,e);this.na=-2;this.A=null;this.O=this.I=v;this.R=[];this.pa=!0;this.Y=[];this.F=!1}z(rU,qU);function sU(a,b){a.A=b;null!=a.o&&null!=b&&(tU(a,a.I),uU(a,a.O))}function tU(a,b){null!=a.A&&null!=a.o&&D(a.R,function(a){this.A.Ia(a,"click",this.I);A(B(this.Wc()))||this.A.M(a,"click",b)},a);a.I=b}function uU(a,b){null!=a.A&&null!=a.o&&(a.A.Ia(a.o,"creativeview",a.O),a.A.M(a.o,"creativeview",b));a.O=b}function vU(a){D(a.Y,function(a){Wd(Ed(a))},a);a.Y=[]}
rU.prototype.C=function(a){null==this.A||A(B(this.Wc()))||(this.A.M(a,"click",this.I),this.R.push(a))};rU.prototype.Ee=function(){null==this.o&&(this.o=this.sf(),Ud(this.o,wU(this)));null!=this.A&&this.A.M(this.o,"creativeview",this.O);return this.o};function xU(a,b){var c=a.Ba,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.sd()+"px");A(B(c))||(d.id=c);return I("div",d,b)}rU.prototype.cp=function(){return 2};
function wU(a){if(!a.pa)return null;var b=kU(a,"start");tb(b,kU(a,"creativeview"));if(null!=b&&!lb(b)){var c=[];D(b,function(a){if(!A(B(a))){var b,g=Bd();b instanceof sc&&(b=uc(b));b=g.Uw("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+(b||""),src:'javascript:""'});Ig(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",fK(a.j));b.setAttribute("id",g);this.Y.push(g);nb(c,b)}},
a);return c}return null}function yU(a,b){if(null!=a.o){var c=new xe;D(a.R,function(a){c.set(a,this.cp(a))},a);new oU(b,a.o,c)}}function zU(a){var b=[],c=a.J();D(c,function(a){b=rb(b,a.aa)},a);return b}rU.prototype.J=function(){var a=[this],b;for(b=this.getAd().o;b;){var c=this.F?lU(this,b)||lU(this,b,!0):AU(this,b)||AU(this,b,!0);null!=c&&a.push(c);b=b.o}return a};function AU(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 FR(a,b,c,d,e,g,h,k,l,p,r,u,C,V,U,ia){T.call(this);this.Z=a;this.R=b;this.S=c;this.Da=d;this.U=new En(this);BU(this);this.na=isNaN(h)||""==h||0==h?-1:h;this.V=k?sb(k):[];this.G=l?sb(l):[];this.B=p?sb(p):[];this.ca=r?sb(r):[];this.D=[];D(this.ca,function(a){tb(this.D,sb(a.j))},this);this.ga=!0;this.o=this.j=null;this.F=new xe(u);this.H=null!=ia;this.Aa=(this.I=null!=C)?V||!1:!1;this.Ca=this.bz?U||!1:!1;this.Fa=B(C);this.Ka=B(ia);this.ua=this.A=null;this.C=new hU;this.da=new H(0,0);this.Y=String(Math.floor(1E9*
Math.random()));this.J=this.O=this.N=null;this.sa=y();this.pa=this.ma=0;D(rb(this.B,this.D),function(a){a.hh(this)},this);gL()&&CU(this)&&(this.D=eb(this.D,function(a){return 60>=a.getHeight()}))}z(FR,T);function DU(a){var b;b=EU(a);b=FS(b,"hideMaster")||FS(b,"blockAllAds")?"3":CU(a)?FU(a)?GU(a)?"2_1":"2_2":"2":"1";return(HU(a,UJ)||HU(a,WJ)?1:HU(a,TJ)?2:0)+"_"+b}function IU(a){return null!=a.R?a.R:""}function NR(a,b){return b?JU(a)[0]:a.S}function KU(a){return null!=a.o?rb(KU(a.o),a.V):a.V}
function LU(a){return null!=a.o?rb(LU(a.o),a.G):a.G}f=FR.prototype;f.getContentType=function(){var a=this.j,b="";if(null===a)return b;if(a instanceof mU)a=a.ga,null===a||(b=B(a.j));else if(a instanceof rU)switch(a.U){case "IFrame":case "Html":case "Static":b=B(a.V)}return b};function OR(a){return null!=a.o?rb(a.D,OR(a.o)):a.D}function EU(a){return null!=a.j?a.j.S:{}}function MU(a){return null!=a.j?a.j.Ga:""}f.getExtension=function(a){return this.F.get(a)};
function NU(a,b){a.j=b;a.da=null!=a.j&&a.j instanceof rU?a.j.Hc():new H(0,0)}function OU(a){return a.j}f.xx=function(a){a.A.queryId==this.Y&&this.X(new KJ("measurable_impression",this,a.A))};f.gy=function(a){a.A.queryId==this.Y&&this.X(new KJ("viewable_impression",this,a.A))};function PU(a){return null!=a.Z?a.Z:""}function QU(a){if(null==a.o)return[];var b=[PU(a.o)];tb(b,QU(a.o));return b}function RU(a){var b=QU(a).reverse();b.push(PU(a));return b}
function SU(a){if(null==a.o)return[];var b=[IU(a.o)];tb(b,SU(a.o));return b}function TU(a){var b=SU(a).reverse();b.push(IU(a));return b}function JU(a){if(null==a.o)return[a.S];var b=JU(a.o);b.push(a.S);return b}function UU(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.o?a.o:-1}function VU(a){if(-1!=a.na)return a.na;a=a.getExtension("pod");return null!=a&&-1!=a.o?a.o:-1}function UR(a,b){return b||null==a.o?a.ca:rb(a.ca,UR(a.o))}
function WU(a,b){return gb(a.B,function(a){return a instanceof mU&&"linear"==b||a instanceof rU&&"nonlinear"==b?!0:!1})}function CU(a){return XU(a)?"video"==a.Da:WU(a,"linear")}function FU(a){return null!=YU(a)}function ZU(a,b){var c=YU(a);if(!c)return null;MS(c,b);return LS(c)}function YU(a){if(JT(919139)||JT(919140))return new KS(0,!1);var b=new KS(5,!1),c=$U(a);if("implicit"==c)return b;a=a.j;var d=null;null!=a&&a instanceof mU&&(d=a.B);null!=d||"explicit"!=c||(d=b);return null!=d&&gL()?b:d}
function $U(a){if(null!=F(a.F.Oa(),function(a){return!lb(aT(a,"skip"))}))return"implicit";var b=a.F.get("DFP");if(b instanceof hT)switch(b.o){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.j;return null==a||(a=a.Kf,null==a||lb(RS(a,"skip")))?"none":"explicit"}function aV(a){return null!=a.A&&(cU(a.A)||gU(a.A)||fU(a.A))}
function GU(a){if(null==a.R||null==a.A)return!1;var b;(b=aV(a)||!1)&&!(b=XU(a)&&!bV(a,["ADSENSE/ADX"]))&&(bV(a,WJ)?(b=a.F.get("DFP"),b=null!=b?"InstreamSelect"==b.o:!1):b=!1);if(b||a.o&&a.o.H&&aV(a.o))return!0;a=HU(a,["ADSENSE/ADX"])||a.o&&HU(a,TJ);return gL()&&!a}f.bz=function(){return this.I};function cV(a){return null===a.j?null:a.j.Wc()}function dV(a){return null==a.j||a.j instanceof rU?-1:a.j.ca}function eV(a){return null===a.j?null:a.j.Xl()}function XU(a){return bV(a,TJ)}
function fV(a){var b=eV(a);return bV(a,["402"])||w(b)&&!da(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))}f.getHeight=function(){return this.da.height};function gV(a){return a.N}f.toString=function(){return"Ad: "+this.Z};function bV(a,b){return null!=a.R?G(b,a.S):!1}function HU(a,b){for(var c=JU(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(G(b,c[d]))return!0;break}return!1}
function BU(a){var b=hL.j?YO():gS();a.U.M(b,"measurable_impression",a.xx);a.U.M(b,"viewable_impression",a.gy)}f.P=function(){null!=this.U&&this.U.dispose();FR.K.P.call(this)};function hV(a,b){this.j=a;this.o=b};function iV(a,b,c){this.j=a;this.o=b;this.A=c}iV.prototype.getContent=function(){return this.j.getContent()};iV.prototype.getContentType=function(){return this.j.getContentType()};iV.prototype.getHeight=function(){return this.j.getHeight()};function VR(a){a=OU(a.j.getAd());return null!=a?a.j:NaN}iV.prototype.hh=function(a){this.j.hh(a);D(this.o,function(b){b.hh(a)},this)};function jV(a,b,c){this.o=a;this.j=b;this.A=c}jV.prototype.getContentType=function(){return null!=this.j?XJ[this.j]||"Other":null};function kV(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+RP(a.kd)+'"><img src="'+RP(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+RP(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+RP(a.kd)+'" target="_blank" dir='+RP(a.dir)+">"+RP(a.title)+'</a><div class="text-description" dir='+RP(a.dir)+">"+RP(a.text)+"</div>"+(a.ts?'<a target="_blank" href="'+
RP(a.kd)+'" class="text-ad-channel">'+RP(a.ts)+"</a>":"")+"</div></div>"}
function lV(a){return'<div class="flash-container '+(a.qf?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+RP(a.kd)+'"></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="'+RP(a.width)+'" height="'+RP(a.height)+'"><param name="movie" value="'+RP(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+hQ(a.kd)+
'"><embed width="'+RP(a.width)+'" height="'+RP(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+RP(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+hQ(a.kd)+'"></object></div>'}function mV(a){return'<div class="image-container" id="'+RP(a.id)+'" style="width:'+RP(a.width)+";height:"+RP(a.height)+'"><a target="_blank" href="'+RP(a.kd)+'"><img src="'+RP(a.url)+'" border="0"></a></div>'};function nV(a,b,c,d){rU.call(this,a,b,"Static",c,d);this.Bo=!1}z(nV,rU);nV.prototype.sf=function(){var a=this.G,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:fK(B(this.B)),width:this.sd(),height:this.getHeight(),kd:this.Wc(),qf:this.Bo||!a},a=MP(lV,a);a.style.width=this.sd()+"px";a.style.height=this.getHeight()+"px";a.id=this.Ba;D(a.getElementsByTagName("object"),this.C,this);D(a.getElementsByTagName("a"),this.C,this);return a};function oV(a,b,c,d){rU.call(this,a,b,"Html",c,d)}z(oV,rU);oV.prototype.sf=function(){var a=I("div");a.innerHTML=this.B;this.C(a);return xU(this,a)};function pV(a,b,c,d){rU.call(this,a,b,"Static",c,d)}z(pV,rU);pV.prototype.getContent=function(){var a=pV.K.getContent.call(this);this.F&&(a=a.replace('<img src=""','<img src="'+fK(B(this.B))+'"'));return a};pV.prototype.sf=function(){var a="";this.F||(a=fK(B(this.B)));a={id:this.Ba,url:a,kd:this.Wc(),width:this.sd()+"px",height:this.getHeight()+"px"};a=MP(mV,a);D(a.getElementsByTagName("a"),this.C,this);return a};function qV(a,b){rU.call(this,a,b,"Static","text","")}z(qV,rU);f=qV.prototype;f.Hc=function(){return new H(this.sd(),this.getHeight())};f.getHeight=function(){return 63};f.sd=function(){return null!=this.D?dh(this.D).width:0};f.cp=function(a){return rh(a,"text-image")?9:rh(a,"text-ad-channel")?1:0};
f.sf=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.A,e="rtl";null!=d&&(e=hc.test(gc(d,void 0))?"rtl":"ltr");d={title:d,text:c.B+" "+c.C,dir:e,kd:this.Wc()};if(c=c.o)d.image=fK(c),a=F(a.B,function(a){return a instanceof mU}),null!=a&&(d.duration=DS(a.ca));b.o&&(d.ts=b.o);this.D=MP(kV,d);D(this.D.getElementsByTagName("a"),this.C,this);this.D.id=this.Ba;this.D.style.height=this.getHeight()+"px";return this.D};function rV(a,b,c,d,e){rU.call(this,a,b,c,d,e)}z(rV,rU);rV.prototype.sf=function(){var a=B(this.B);A(B(this.Wc()))||(a=new J(a),K(a,"clickTAG",wa(this.Wc())),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.sd());b.setAttribute("src",fK(a));this.C(b);return xU(this,b)};function sV(a,b,c){if(lb(c))return new rU(a,b,"",null,"");var d=tV(c);c=d.o;var e=d.j,d=d.A;switch(c){case "Html":return new oV(a,b,e,d);case "Static":switch(XJ[e]){case "Image":return new pV(a,b,e,d);case "Flash":return new nV(a,b,e,d);case "Text":return new qV(a,b)}}return new rV(a,b,c,e,d)}
function tV(a){var b=F(a,function(a){return"Static"==a.o&&"Flash"==XJ[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"==XJ[a.j]}),g=F(a,function(a){return"Static"==a.o&&"Text"==XJ[a.j]});return yM&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function uV(a,b,c,d,e){var g=tV(e),h=sV(a.id,a.size,[g]);h.F=!0;h.G=a.apiFramework;h.N=b;h.j=c;d&&(h.Kf=d);ob(e,g);var k=[];D(e,function(e){e=sV(a.id,a.size,[e]);e.F=!0;e.G=a.apiFramework;e.N=b;e.j=c;d&&(e.Kf=d);k.push(new iV(e,[],a.adSlotId))});return new iV(h,k,a.adSlotId)};function vV(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.sf()}vV.prototype.Ee=function(){return this.j};
vV.prototype.display=function(a){this.B=a;this.B.appendChild(this.j);a=this.j;var b=ah(this.B),b="left"==this.C?"0px":"right"==this.C?b.width-this.A.Hc().width+"px":this.C+"px",c;c=ah(this.B);c="bottom"==this.D?"0px":"top"==this.D?c.height-this.A.Hc().height+"px":c.height-this.A.Hc().height-Ya(this.D)+"px";Ig(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});fh(this.j,!1)};
vV.prototype.update=function(a,b){var c=null!=this.F?LS(this.F):0;this.o=0<=this.o?this.o:b;c<=a&&c+this.o>=a?wV(this):fh(this.j,!1)};function wV(a){"none"==a.j.style.display&&(fh(a.j,!0),D(a.G,function(a){iK(a)}))};function xV(a,b,c,d,e,g,h,k,l,p){b=sV("icon"+a,b,p);b.G=h;b.N=k.iconClickThrough;return new vV(b,a,c,d,e,g,l)};function yV(a){this.B=a;this.logger=null}z(yV,kS);
yV.prototype.j={iu:"Ad",tk:"AdParameters",ku:"AdSystem",lu:"AdTitle",vG:"Advertiser",pu:"AltText",wu:"ClickThrough",xu:"ClickTracking",yu:"Companion",zu:"CompanionAds",Au:"CompanionClickThrough",Bu:"CompanionClickTracking",Lu:"Creative",hH:"CreativeExtensions",Mu:"Creatives",Pu:"CustomClick",Su:"Description",uk:"Duration",ERROR:"Error",Xu:"Extension",Yu:"Extensions",Mh:"HTMLResource",ev:"Icon",fv:"Icons",gv:"IconClicks",hv:"IconClickThrough",iv:"IconClickTracking",jv:"IconViewTracking",Ph:"IFrameResource",
bo:"Impression",QH:"InLine",LINEAR:"Linear",sv:"MediaFile",tv:"MediaFiles",yv:"NonLinear",zv:"NonLinearAds",Av:"NonLinearClickThrough",Bv:"NonLinearClickTracking",UI:"Pricing",$h:"StaticResource",jo:"Survey",PJ:"Tracking",zk:"TrackingEvents",ZJ:"VAST",Qv:"VASTAdTagURI",Rv:"VideoClicks",Tv:"Wrapper"};
yV.prototype.o={ju:"adSlotID",ou:"allowMultipleAds",Kh:"apiFramework",uu:"bitrate",Nu:"creativeType",Ru:"delivery",uk:"duration",rH:"event",cv:"followAdditionalWrappers",Vu:"expandedHeight",Wu:"expandedWidth",vk:"height",Oh:"id",pv:"maintainAspectRatio",rv:"maxBitrate",vv:"minBitrate",wv:"minSuggestedDuration",Cv:"offset",Dv:"program",Ev:"required",Hv:"scalable",co:"sequence",Jv:"skipoffset",ko:"type",VERSION:"version",Sv:"codec",Dk:"width",Vv:"xPosition",Xv:"yPosition"};
function zV(a){if(null==a)return!1;a=Zd(a);return null!=a&&"VAST"==a.nodeName}function AV(a){if(null==a)return 0;a=parseInt(a.getAttribute("version"),10);return ga(a)&&!isNaN(a)?a:0}function BV(a){var b=[],c=Zd(a.B),d=AV(c);qS(c,a.j.iu,function(a){var c;c=CV(a);if(null==c)throw lS(a);var h=a.getAttribute(this.o.Oh);a=Number(a.getAttribute(this.o.co));c=DV(this,c,h||null,a||0);null!=c&&(c.pa=d,b.push(c))},a);return b}yV.prototype.A=function(){return new uS(this.B,BV(this),null)};
function CV(a){var b=null;D(Yd(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw lS(a);}});return b}
function DV(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],r=new xe,u,C=b.nodeName==a.j.Tv,V=C,U=C,ia;D(Yd(b),function(a){switch(a.nodeName){case this.j.Qv:if(C){if(null!=u)throw mS(a);u=pS(a);ia=YS(u);V=tS(b.getAttribute(this.o.ou),V);U=tS(b.getAttribute(this.o.cv),U)}else throw lS(a);break;case this.j.ku:e=pS(a);break;case this.j.lu:g=pS(a);break;case this.j.Su:pS(a);break;case this.j.jo:pS(a);break;case this.j.bo:a=pS(a);WS(a)&&h.push(IS(a));break;case this.j.ERROR:a=pS(a);k.push(IS(a));break;case this.j.Mu:a=
EV(this,a);l=a.creatives;p=a.ww;break;case this.j.Yu:r=FV(this,a,ia)}},a);return new FR(B(c),e,GV(e),g,0,0,d,k,h,l,p,r,u,V,U,HV(r))}function HV(a){var b=null;a=a.get("AdSense");null!=a&&(a=aT(a,"vast2tracking"),null!=a&&!lb(a)&&(b=a[0]));return b}function GV(a){if(A(B(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 IV(a){if(A(B(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function FV(a,b,c){var d=new xe;try{var e=nS(b,a.j.Xu);D(e,function(a){var b=a.getAttribute(this.o.ko);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new wT).parse(a);break;case "pod":a=(new uT).parse(a);break;case "waterfall":a=(new yT).parse(a);break;case "dart":a=(new iT).parse(a);break;case "dfp":b="DFP";a=(new jT).parse(a);break;case "adsense":b="AdSense";a=(new gT).parse(a);break;case "textad":b="TextAd";a=(new sT).parse(a);break;case "templatead":b="TemplateAd";a=(new pT).parse(a);break;
case "infocards":var b="InfoCards",e=new mT;a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new mT;a=e.parse(a);break;case c:b="LocalRedirect";null!=a?(e=null,a=nS(a,"AdXml"),1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+$B(Zd(a[0]))),a=new nT(e)):a=null;break;default:e=new kT,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&($S(e,a.j),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function EV(a,b){var c=[],d=[];qS(b,a.j.Lu,function(a){var b=a.getAttribute(this.o.co),h;A(B(b))||(h=parseFloat(b));a.getAttribute(this.o.Oh);var k=!1;D(Yd(a),function(a){switch(a.nodeName){case this.j.LINEAR:if(k)throw mS(a);a=JV(this,a,isNaN(h)?0:h);tb(c,a);k=!0;break;case this.j.zu:if(k)throw mS(a);a=KV(this,a,isNaN(h)?void 0:h);tb(d,a);k=!0;break;case this.j.zv:if(k)throw mS(a);a=LV(this,a,isNaN(h)?0:h);tb(c,a);k=!0}},this)},a);return{creatives:c,ww:d}}
function LV(a,b,c){var d=[],e=new NS;D(Yd(b),function(a){switch(a.nodeName){case this.j.yv:a=MV(this,a,c);null!=a&&d.push(a);break;case this.j.zk:e=VS(a);break;default:throw lS(a);}},a);0!=d.length||e.isEmpty()||(a=new rU(null,new H(-1,-1),"",null,""),a.j=c,d.push(a));D(d,function(a){e&&(a.Kf=e)});return d}
function NV(a,b){var c={};c.id=b.getAttribute(a.o.Oh);c.adSlotId=b.getAttribute(a.o.ju);c.apiFramework=b.getAttribute(a.o.Kh);var d=Va(b.getAttribute(a.o.Dk)),e=Va(b.getAttribute(a.o.vk));c.size=new H(d,e);d=b.getAttribute(a.o.Wu);e=b.getAttribute(a.o.Vu);A(B(d))||A(B(e))||(c.BK=new H(Va(d),Va(e)));return c}
function MV(a,b,c){var d=NV(a,b);b.getAttribute(a.o.Kh);b.getAttribute(a.o.Hv);b.getAttribute(a.o.pv);var e=b.getAttribute(a.o.wv),e=sS(e,-1),g=[];new xe;var h={},k="",l,p=[];D(Yd(b),function(a){switch(a.nodeName){case this.j.Bv:p.push(pS(a));break;case this.j.Av:l=pS(a);break;case this.j.tk:h=OV(a);k=B(pS(a));break;case this.j.Ph:case this.j.$h:case this.j.Mh:a=PV(this,a);null!=a&&g.push(a);break;default:throw lS(a);}},a);a=sV(d.id,d.size,g);jU(a,k,h);a.G=d.apiFramework;a.N=l;a.aa=p;a.na=e;a.j=c;
return a}function PV(a,b){var c=oS(b,a.o.Nu);if(null!=c&&"text/javascript"==c)return null;var d;i:switch(d=b.nodeName,d){case a.j.$h:d="Static";break i;case a.j.Ph:d="IFrame";break i;case a.j.Mh:d="Html";break i;default:throw WK(PK,null,d);}var e=pS(b);null!=e||(e="");return new jV(d,c,e)}function KV(a,b,c){var d=[],e=IV(oS(b,a.o.Ev));qS(b,a.j.yu,function(a){a=QV(this,a,c);null!=a&&d.push(a)},a);return new hV(d,e)}
function QV(a,b,c){var d=NV(a,b),e=[],g=new NS,h;D(Yd(b),function(a){switch(a.nodeName){case this.j.Bu:break;case this.j.zk:g=VS(a,!0);break;case this.j.Au:h=pS(a);break;case this.j.pu:pS(a);break;case this.j.tk:pS(a);break;case this.j.Ph:case this.j.$h:case this.j.Mh:a=PV(this,a);null!=a&&e.push(a);break;default:throw lS(a);}},a);return lb(e)?null:uV(d,h,c,g,e)}
function JV(a,b,c){var d=new NS,e={},g="",h=[],k,l=new xe,p=[],r=[],u,C=XS(oS(b,a.o.Jv));D(Yd(b),function(a){switch(a.nodeName){case this.j.fv:r=RV(this,a);break;case this.j.tk:e=OV(a);g=B(pS(a));break;case this.j.uk:u=sS(pS(a),0);break;case this.j.zk:d=VS(a);break;case this.j.tv:p=SV(this,a);break;case this.j.Rv:a=TV(this,a);l=a.customClicks;k=a.clickThrough;h=a.clickTrackingUrls;break;default:throw lS(a);}},a);D(h,function(a){SS(d,"click",a)});a=new mU(u,k,l,p,C,r);jU(a,g,e);a.j=c;d&&(a.Kf=d);return a}
function TV(a,b){var c,d=[],e=new xe;D(Yd(b),function(a){switch(a.nodeName){case this.j.wu:c=pS(a);break;case this.j.xu:a=pS(a);d.push(a);break;case this.j.Pu:var b=oS(a,this.o.Oh);null!=b||(b="");var k=e.get(b,[]);k.push(pS(a));e.set(b,k);break;default:throw lS(a);}},a);return{clickThrough:c,clickTrackingUrls:d,customClicks:e}}
function SV(a,b){var c=[];qS(b,a.j.sv,function(a){var b=oS(a,this.o.Ru),g=oS(a,this.o.ko),h=oS(a,this.o.Sv),k=Va(a.getAttribute(this.o.Dk)),l=Va(a.getAttribute(this.o.vk)),p=a.getAttribute(this.o.Kh),r=pS(a),u=rS(a.getAttribute(this.o.uu)),C=rS(a.getAttribute(this.o.vv));a=rS(a.getAttribute(this.o.rv));c.push(new tP(b,g,h,u,C,a,k,l,r,p))},a);return c}function RV(a,b){var c=[];qS(b,a.j.ev,function(a){a=UV(this,a);null!=a&&c.push(a)},a);return c}
function UV(a,b){var c=b.getAttribute(a.o.Dv),d=oS(b,a.o.Vv),e=oS(b,a.o.Xv),g=Va(b.getAttribute(a.o.Dk)),h=Va(b.getAttribute(a.o.vk)),g=new H(g,h),h=b.getAttribute(a.o.Kh),k=XS(oS(b,a.o.Cv)),l=b.getAttribute(a.o.uk),l=sS(l,-1),p=[],r=[],u;D(Yd(b),function(a){switch(a.nodeName){case this.j.jv:r.push(pS(a));break;case this.j.gv:u=VV(this,a);break;case this.j.Ph:case this.j.$h:case this.j.Mh:a=PV(this,a);null!=a&&p.push(a);break;default:throw lS(a);}},a);return lb(p)?null:xV(c,g,d,e,l,k,h,u,r,p)}
function VV(a,b){var c=[],d;D(Yd(b),function(a){switch(a.nodeName){case this.j.hv:d=pS(a);break;case this.j.iv:c.push(pS(a));break;default:throw lS(a);}},a);return{iconClickThrough:d,EK:c}}function OV(a){a=pS(a);return null!=a?ES(a):{}};function WV(a,b){this.o=a;this.j=b}z(WV,kS);WV.prototype.A=function(){return new uS(this.o,null,XV(this))};function YV(a){var b=bC(a);return lb(b)?[oS(a,"timeOffset")]:E(b,function(a){return oS(a,"timeOffset")})}
function XV(a){var b=new yS;D(Yd(Zd(a.o)),function(a){if("vmap:AdBreak"==a.nodeName){var d=ZV(this,a);a=YV(a);D(a,function(a,c){var h=sS(a);0<c&&(d=$V(this,d));if("start"==a||0==h)zS(b,d,0);else if("end"==a)zS(b,d,-1);else{if(-1==h)throw WK(pK,null,"timeOffset",B(a));zS(b,d,h)}},this)}},a);if(0==b.j.La().length)throw WK(wK);return b}function $V(a,b){return E(b,function(a){var b=new wS(a.A.clone());b.j=a.j;b.o=a.o;return b},a)}
function aW(a){a=oS(a,"timeOffset");var b=sS(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b}
function ZV(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=aC(a,"vmap:VASTData/VAST")||aC(a,"vmap:VASTAdData/VAST"),!e)){var b=nS(a,"vmap:AdTagURI"),c="";b.length&&(c=B(pS(b[0])));if(A(c))throw WK(UK,null,a.parentNode.nodeName,a.nodeName);d=c}break;case "vmap:Extensions":a=nS(a,"vmap:Extension"),a=bW(this,a),null!=a&&(g=!0,a=oS(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=cW(a,e):A(d)||(k=dW(a,d));k&&(gL()&&(k.qh=aW(b)),
k=new wS(k),k.j=g,k.o=g&&!h,nb(c,k));return c}function bW(a,b){return F(b,function(a){return"bumper"==oS(a,"type")},a)}function dW(a,b){var c=a.j.clone();A(c.j)||(c.j="");c.adTagUrl=b;return c}function cW(a,b){var c=a.j.clone();c.j=$B(b);c.adTagUrl="";return c};function eW(a,b){if(null!=a){var c;null!=a?(c=Zd(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return XR.getInstance().j=!1,new AS(a,b);null!=a?(c=Zd(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return XR.getInstance().j=!1,new WV(a,b);if(zV(a)){if(!zV(a))throw WK(zK);c=Zd(a);var d=AV(c);if(1>d||3<d)throw WK(QK);c=nS(c,"Ad");if(lb(c))throw WK(EK);c=CV(c[0]);if(null==c)throw WK(HK);if(1!=nS(c,"AdSystem").length)throw WK(HK);return new yV(a)}}return null};function fW(){}f=fW.prototype;f.clone=function(){var a=new fW;"auto"==this.af?a.af="auto":"click"==this.af&&(a.af="click");a.adTagUrl=this.adTagUrl;a.we=Yb(this.we);a.j=this.j;a.Uc=Yb(this.Uc);a.xp=this.xp;a.yp=this.yp;a.location=this.location;a.referrer=this.referrer;a.C=this.C;a.language=this.language;a.Me=this.Me;a.Qd=this.Qd;a.Wb=this.Wb;a.hc=this.hc;a.Ac=this.Ac;a.Mg=this.Mg;a.nh=this.nh;a.cn=this.cn;a.o=this.o;a.A=this.A;a.qh=this.qh;a.Ni=this.Ni;this.B&&(a.B=sb(this.B));return a};f.we=null;
f.Uc=null;f.af="unknown";f.xp=!1;f.yp=!1;f.Me=0;f.Qd=0;f.Wb=0;f.hc=0;f.Ac=null;f.Mg=!1;f.nh=!1;f.cn=!0;f.qh=0;f.So=!0;f.Ni=null;function gW(a,b){this.o=a;this.A=b;var c=a.B;gL()&&c&&IT(GT(),c,!1)}function hW(a,b){"auto"!=a.o.af&&"click"!=a.o.af||b.set("vpa",a.o.af)}function iW(a){A(hL.getPlayerType())||(a.set("mpt",hL.getPlayerType()),A("")||a.set("mpv",""))}function jW(a,b){var c=a.A.C;null!=c&&b.set("js","ima-"+c)}function kW(a,b){b.set("osd",2);-1!=a.A.H&&b.set("frm",a.A.H)}gW.prototype.G=function(){return this.B(this.D()).toString()};function lW(a){return hL.j?"h.3.0.0":null!=a.A?kR(a.A):null}
gW.prototype.C=function(){var a;a=1;sL()&&(a+=4);return a};function mW(){this.j=["video"]}var nW={TJ:"ultrahigh",GH:"high",uv:"medium"},oW={yG:1E3,zG:1001,AG:1002,BG:1003,CG:1004,DG:1005,EG:1006},pW={qv:1,Zu:2},qW={eH:"content",oJ:"site",pJ:"site_content"};f=mW.prototype;f.bi="high";f.Rl=!1;f.Ek=1;f.Fk=null;f.adType="video";f.adBlock=1;f.Sl=null;f.Kk=!0;f.Lk=null;f.bl=null;f.zg=null;f.experimentIds=null;f.Tl=null;f.host=null;f.hostTierId=null;f.Ul=!1;f.language=null;f.Mp=null;f.Lp=null;f.Ti=1E5;f.aj=null;f.Op=null;f.Np=null;f.um=0;f.If=null;f.rj=null;
f.Cj=null;f.fn=null;f.tagForChildDirectedTreatment=-1;f.url=null;f.Ui=null;f.Vl=null;f.Wl=null;f.yn=null;f.vn=null;f.wn=null;f.xn=null;f.Qk=null;var rW=(new Date).getTime();var sW=[202,1009],tW=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"];function uW(a,b,c){var d={};a=new vW(a,n(b)?b:null,n(c)?c:null);wW(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.j?b.j:900;xW(d,a);yW(d,a);zW(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=cb(sW,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function AW(a,b){var c={},d=new vW(null,a,n(b)?b:null);wW(c,d);xW(c,d);yW(c,d);zW(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.we&&null!=e.we.video_start_delay?(e=e.we.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)))}BW(c,d);CW(c,d);d=a.sa;
for(e=a;null!=e;)d=e.ma+","+d,e=e.o;c["[RWT]"]=d;return c}function vW(a,b,c){this.error=a;this.j=b;this.display=c}function DW(a,b){null!=b&&(a["[VIEWABILITY]"]=b);return a}function wW(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 CW(a,b){a["[AD_CPN]"]={toString:function(){return b.display.zf()}};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(CU(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.qd()?
b.display.qd().width.toString():""}};a["[P_H]"]={toString:function(){return null!=b.display&&null!=b.display.qd()?b.display.qd().height.toString():""}}}function xW(a,b){a["[SDKV]"]=hL.j?"h.3.0.0":"h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";null!=b.j&&(a["[VIEWABILITY]"]={toString:function(){var a;hL.j?(a=YO(),a=cP(a,"metric",b.j.Y)):(gS(),a="");return a}});a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}
function yW(a,b){if(null!=b.j&&null!=b.j.A&&null!=b.j.A.Uc&&gL()){var c=b.j.A.Uc;D(tW,function(b){b in c&&(a[b]=c[b])})}}
function zW(a,b){if(null!=b.j){a["[AD_ID]"]=RU(b.j);a["[AD_SYS]"]=TU(b.j);a["[AD_V]"]={toString:function(){return null!=b.display?qP(b.display.getVideoUrl()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=DU(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 BW(a,b){null!=b.j&&(a["[AD_LEN]"]={toString:function(){var a=dV(b.j);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.rd()).toString():""}})};var EW={bv:"flash",IMAGE:"image",tJ:"skippablevideo",vJ:"standardvideo",xJ:"staticimage",TEXT:"text",VIDEO:"video"},FW=["flash","image","staticimage"],GW=[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 HW(a,b){var c=null!=b.Qd?b.Qd:0,d=null!=b.hc?b.hc:0;a.set("sz",Math.max(null!=b.Me?b.Wb:0,null!=b.Wb?b.Wb:0)+"x"+Math.max(c,d))}
function IW(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",rW)}
function JW(a){if(a.Uc&&a.Uc["[LACT]"]){var b=a.Uc["[LACT]"].toString();if(b)return Ya(b)}return a.C}function KW(a,b,c){var d=new xe;d.set("ad_type",b.adType);yM&&d.set("flash",zM);HW(d,a);LW(b)&&(d.set("ea","0"),null!=a.Wb&&null!=a.hc&&d.set("image_size",MW(b,a.Wb,a.hc)));NW(d,c);d.set("lact",JW(a));d.set("videoad_start_delay",a.qh);IW(d);OW(a,d,!0);return d}function OW(a,b,c){A(B(a.referrer))||(a=a.referrer,c&&(a=wa(a)),PW("ref",a,b))}
function QW(a,b){var c=null!=b?b.split("_"):a;D(c,function(a){if(!Nb(EW,a))throw WK(vK,null,"ad_type",String(b));});if(!sL()){var d=[];D(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw WK(uK,null,"skippablevideo");return d}return c}function RW(a,b){return null!=b?b.split(/[+, ]/):a}function MW(a,b,c){a.A&&(c=Math.min(c,90));var d=[];D(GW,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}
function SW(a,b){return null==b||isNaN(b)?a:Number(b)}function TW(a,b){return null!=b?String(b):null!=a?a:null}function UW(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 VW(a,b,c){return null!=b&&Nb(c,b)?b:a}function LW(a){return gb(FW,function(b){return G(a.j,b)})}
function NW(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 PW(a,b,c){null!=b&&c.set(a,b)};function WW(a,b,c){gW.call(this,a,b);b=new mW;a=qf(new J(a.adTagUrl));b.Sl=VW(b.Sl,a.get("cust_age"),oW);b.bi=VW(b.bi,a.get("adsafe"),nW);b.j=QW(b.j,a.get("ad_type"));b.adType=b.j.join("_");b.Ek=SW(b.Ek,a.get("videoad_start_delay"));b.Fk=TW(b.Fk,a.get("slotname"));b.Rl=UW(b.Rl,a.get("adtest"));b.Kk=UW(b.Kk,a.get("scs"));b.Lk=TW(b.Lk,a.get("alternate_ad_url"));b.channels=RW(b.channels,a.get("channel"));b.bl=SW(b.bl,a.get("cpm"));b.zg=TW(b.zg,a.get("description_url"));b.experimentIds=TW(b.experimentIds,
a.get("eid"));b.Tl=VW(b.Tl,a.get("cust_gender"),pW);b.A=UW(b.A,a.get("overlay"));b.host=TW(b.host,a.get("host"));b.o=RW(b.o,a.get("h_ch"));b.hostTierId=SW(b.hostTierId,a.get("ht_id"));b.Ul=UW(b.Ul,a.get("lsv"));var d;null!=this.o.language?d=this.o.language:(d=m.navigator||null,d=eL(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=TW(e,d);var g;null!=d&&!A(B(d))&&(g=eL(d));b.language=TW(b.language,g);b.Mp=SW(b.Mp,a.get("linearAdSlotWidth"));
b.Lp=SW(b.Lp,a.get("linearAdSlotHeight"));b.Ti=SW(b.Ti,a.get("max_ad_duration"));b.um=SW(b.um,a.get("min_ad_duration"));b.aj=SW(b.aj,a.get("sdmax"));b.Op=SW(b.Op,a.get("nonLinearAdSlotWidth"));b.Np=SW(b.Np,a.get("nonLinearAdSlotHeight"));b.If=TW(b.If,a.get("client"));b.rj=TW(b.rj,a.get("t_pyv"));b.Cj=SW(b.Cj,a.get("sdki"));b.tagForChildDirectedTreatment=SW(b.tagForChildDirectedTreatment,a.get("tfcd"));b.fn=VW(b.fn,a.get("targeting"),qW);b.Ui=SW(b.Ui,a.get("video_format"));b.Vl=SW(b.Vl,a.get("video_cpm"));
b.Wl=TW(b.Wl,a.get("loeid"));b.yn=TW(b.yn,a.get("yt_pt"));b.vn=TW(b.vn,a.get("ytdevice"));b.wn=TW(b.wn,a.get("ytdevicever"));b.xn=TW(b.xn,a.get("dbp"));b.B=TW(b.B,a.get("ms"));b.adBlock=SW(b.adBlock,a.get("adBlock"));b.url=TW(b.url,a.get("url"));b.Qk=TW(b.Qk,a.get("avo"));this.j=b;this.H=c;A(B(this.j.experimentIds))||(c=this.j.experimentIds.split(","),IT(GT(),c))}z(WW,gW);var XW=["skippablevideo","standardvideo","video"];WW.prototype.F={nu:"allow",Tu:"exclude",bJ:"require"};
WW.prototype.C=function(){var a=WW.K.C.call(this);this.j.Cj&&(a+=this.j.Cj&2);return a};WW.prototype.B=function(a){var b=new J("//googleads.g.doubleclick.net/pagead/ads"),c=a.La();D(c,function(c){K(b,c,a.get(c))});return b};
WW.prototype.D=function(){var a=new xe;a.set("sdkv",lW(this));a.set("sdki",this.C().toString(16));a.set("video_product_type",null!=this.j.If?gL()?5:ta(this.j.If,"ca-games-")?4:ta(this.j.If,"ca-video-")?0:-1:-1);a.set("correlator",this.A.j);a.set("client",this.j.If);gL()&&!A(B(this.j.url))?a.set("url",this.j.url):a.set("url",this.o.location?this.o.location:this.o.referrer);null!=this.o.Ac&&a.set("adk",this.o.Ac);a.set("num_ads",YW(this));a.set("channel",ZW(this));a.set("ad_type",this.j.adType);a.set("output",
"xml_vast3");this.j.Rl&&a.set("adtest","on");yM&&a.set("flash",zM);PW("alternate_ad_url",this.j.Lk,a);PW("cpm",this.j.bl,a);HW(a,this.o);gL()||Nb(nW,this.j.bi)&&a.set("adsafe",this.j.bi);this.j.host&&(a.set("host",this.j.host),PW("ht_id",this.j.hostTierId,a),null!=this.j.o&&PW("h_ch",this.j.o.join("+"),a));PW("hl",this.j.language,a);PW("cust_age",this.j.Sl,a);PW("cust_gender",this.j.Tl,a);-1!=this.j.tagForChildDirectedTreatment&&PW("tfcd",this.j.tagForChildDirectedTreatment,a);PW("slotname",this.j.Fk,
a);var b=KT(GT());A(B(b))||a.set("eid",b);IW(a);b=this.j.zg;if(null!=b){var c;c=this.A;null==c.A&&(c.A=new aR);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 gR);d=d.N;var e=b!=this.A.O;(c=0==c.j%100||e)||(c=36E5<(null===d.j?0:(new dR).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.Ek;a.set("videoad_start_delay",null!=b?b:1);jW(this,a);kW(this,a);hW(this,
a);LW(this.j)&&(a.set("ea","0"),null!=this.o.Wb&&null!=this.o.hc&&a.set("image_size",MW(this.j,this.o.Wb,this.o.hc)));$W(this)&&a.set("video_format",null!=this.j.Ui&&gL()?this.j.Ui:bi&&0<=Ra(ju,6)||Yh&&0<=Ra(ju,4)||kd&&pL(lL,2.3)?43:18);b=null!=this.j.rj?this.j.rj:G(this.j.adType.split("_"),"text")?this.F.nu:this.F.Tu;a.set("t_pyv",b);PW("min_ad_duration",this.j.um,a);0<this.j.Ti&&a.set("max_ad_duration",aX(this.j.Ti,YW(this)));0<this.j.aj&&a.set("sdmax",aX(this.j.aj,YW(this)));NW(a,this.H);gL()&&
(b=qP(this.j.zg),null!=b&&a.set("video_doc_id","yt_"+b));PW("description_url",this.j.zg,a);gL()&&(PW("lact",JW(this.o),a),PW("loeid",this.j.Wl,a),PW("lsv",this.j.Ul,a),this.j.Kk||PW("scs","false",a),PW("targeting",this.j.fn,a),PW("video_cpm",this.j.Vl,a),PW("yt_pt",this.j.yn,a),PW("ytdevice",this.j.vn,a),PW("ytdevicever",this.j.wn,a),PW("dbp",this.j.xn,a),PW("avo",this.j.Qk,a));PW("ms",this.j.B,a);iW(a);OW(this.o,a,!1);null!=this.o.we&&PW("loc",this.o.we.page_location,a);return a};
function $W(a){return gb(XW,function(a){return G(this.j.j,a)},a)}function YW(a){return gL()?1:G(a.j.adType.split("_"),"text")?3:1}function ZW(a){a=a.j.channels?a.j.channels:[];wb(a);a=vb(a,0,30);return a.join("+")}function aX(a,b){return Math.round(1.1*(a||0)+0*b)};function bX(a,b){gW.call(this,a,b)}z(bX,gW);bX.prototype.B=function(a){var b=new J(this.o.adTagUrl);D(a.La(),function(c){A(a.get(c))?b.j.remove(c):K(b,c,a.get(c))});return b};bX.prototype.D=function(){var a=new xe;a.set("sdkv",lW(this));kW(this,a);hW(this,a);iW(a);null!=this.o.Ac&&a.set("adk",this.o.Ac);return a};function cX(a,b){gW.call(this,a,b)}z(cX,gW);cX.prototype.D=function(){return null};
cX.prototype.B=function(){var a=new WT(this.o.adTagUrl),b=lW(this);b&&aU(a,"dc_sdkv",[b]);(b=this.C().toString(16))&&aU(a,"dc_sdki",[b]);(b=this.A.G)&&aU(a,"dc_submodel",[b]);null!=this.o.Ac&&aU(a,"dc_adk",[this.o.Ac]);b=new xe;jW(this,b);kW(this,b);hW(this,b);iW(b);ze(b,"js")&&aU(a,"dc_js",[b.get("js")]);ze(b,"msid")&&aU(a,"dc_msid",[b.get("msid")]);ze(b,"frm")&&aU(a,"dc_frm",[b.get("frm")]);ze(b,"osd")&&(aU(a,"osd",[b.get("osd")]),aU(a,"dc_osd",[b.get("osd")]));aU(a,"dcmt",["text/xml"]);ze(b,"vpa")&&
aU(a,"vpa",[b.get("vpa")]);ze(b,"mpt")&&aU(a,"mpt",[b.get("mpt")]);ze(b,"mpv")&&aU(a,"mpv",[b.get("mpv")]);return a};function dX(a){gW.call(this,a,null)}z(dX,gW);dX.prototype.B=function(a){return new J(a.get("adTagUrl"))};dX.prototype.G=function(){return B(this.D().get("adTagUrl"))};dX.prototype.D=function(){var a=new xe;a.set("adTagUrl",this.o.adTagUrl);a.set("adsResponse",this.o.j);return a};function eX(a){gW.call(this,a,null)}z(eX,gW);eX.prototype.B=function(a){return new J(a.get("adTagUrl"))};eX.prototype.D=function(){var a=new xe;a.set("adTagUrl",this.o.adTagUrl);a.set("adsResponse",this.o.j);return a};function fX(a,b){gW.call(this,a,b)}z(fX,gW);fX.prototype.B=function(a){var b=new J(this.o.adTagUrl);D(a.La(),function(c){A(a.get(c))?b.j.remove(c):K(b,c,a.get(c))});return b};
fX.prototype.D=function(){var a=new xe;a.set("sdkv",lW(this));a.set("sdki",this.C().toString(16));a.set("correlator",this.A.D);a.set("scor",this.A.j);null!=this.o.Ac&&a.set("adk",this.o.Ac);jW(this,a);kW(this,a);hW(this,a);iW(a);var b=this.A.o;null!=b&&(this.A.o=null,a.set("fbidx",b));b=this.A.S;null!=b&&a.set("ppid",b);var b="null",c=this.A.B;null!=c?b=c:gX(this.o.location)?b=this.o.location:gX(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=hX(b),a.set("ciu_szs",b));a.set("impl","");return a};function gX(a){if(A(B(a)))return!1;a=new J(a);if(!a.Mb||"http"!=a.Mb&&"https"!=a.Mb)return!1;a=a.rb;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0}function hX(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 iX(a,b,c){gW.call(this,a,b);this.H=A(B(a.o));a=new mW;a.j=QW(a.j,this.o.o);a.adType=a.j.join("_");a.experimentIds=TW(a.experimentIds,this.o.A);this.j=a;this.F=c;A(B(this.j.experimentIds))||(c=this.j.experimentIds.split(","),IT(GT(),c))}z(iX,fX);iX.prototype.B=function(a){a=iX.K.B.call(this,a);this.H||jX(this,a);return a};function kX(a){var b=KW(a.o,a.j,a.F);b.set("sdkv",lW(a));b.set("sdki",a.C().toString(16));return b}
function jX(a,b){var c=kX(a),d=E(c.La(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});K(b,"afvparams",d.join("&"))};function lX(a,b,c){gW.call(this,a,b);this.H=A(B(a.o));a=new mW;a.j=QW(a.j,this.o.o);a.adType=a.j.join("_");a.experimentIds=TW(a.experimentIds,this.o.A);this.j=a;this.F=c;A(B(this.j.experimentIds))||(c=this.j.experimentIds.split(","),IT(GT(),c))}z(lX,cX);lX.prototype.B=function(a){a=lX.K.B.call(this,a);this.H||mX(this,a);return a};function nX(a){var b=KW(a.o,a.j,a.F);b.set("sdkv",lW(a));b.set("sdki",a.C().toString(16));return b}
function mX(a,b){var c=nX(a),d=E(c.La(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});aU(b,"afvparams",[wa(d.join("&"))])};function oX(a,b){var c;!fU(a)&&!gU(a)||A(B(a.o))||null==a.adTagUrl||-1==a.adTagUrl.search("afvbase=")?fU(a)?c=new cX(a,jR):cU(a)?c=new WW(a,jR,b):gU(a)?c=new fX(a,jR):eU(a)?c=new bX(a,jR):(c=a.adTagUrl,null!=c?(c=nf(new J(c)),c=ua(c,".fwmrm.net")):c=!1,c=c?new dX(a):new eX(a)):c=fU(a)?new lX(a,jR,b):new iX(a,jR,b);return c};function pX(a){a=eb(a,function(a){return 0<VU(a)});zb(a,function(a,c){return VU(a)-VU(c)});return a}function qX(a){return eb(a,function(a){return-1==VU(a)})};function rX(a){this.j=a};function sX(){this.j=0}function tX(a,b,c,d,e,g){var h=x(function(a){d(a,Error(Ln(a)))},a),k=x(function(a){6==a?uX(this,b,!1,c,h,e,g):h(a)},a);uX(a,b,!0,c,k,e,g)}
function uX(a,b,c,d,e,g,h){var k=new uo;k.R=c;xo(k,vX(g));var l=new En,p=x(function(){l.dispose();k.dispose()},a);c=x(function(){e(k.o);p()},a);Kn(l,k,"success",function(){var a;try{a=k.j?k.j.responseXML:null}catch(b){a=null}if(null==a){var c=$n(k);try{a=YB(c)}catch(e){i:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=ZB())){a.appendChild(a.createNode(1,"parsererror",""));
break i}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);Kn(l,k,["error","timeout"],c,a);var r;"POST"==h&&(b=new J(b),r=b.j.toString(),ef(b,""),b=b.toString());a.j=y();k.send(fK(b),h,r)};function wX(a,b,c){var d=null,e=c+b;D(a.B,function(g){if(FS(g.S,"rm")&&!bV(a,VJ)){var h=AW(a);lK(a.G,h);(h=a.A)&&h.adTagUrl&&-1!=h.adTagUrl.indexOf(";afc=1")&&(d=g)}else{if(h=g instanceof rU)0==c&&0==b||g instanceof qV?h=!0:(h=g.Hc(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-g.Hc().height+b-g.Hc().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}});NU(a,d)}
function xX(a){var b=null;D(a.B,function(a){a instanceof mU&&(null===b||a.j<b.j)&&(b=a)});NU(a,b)};function yX(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}yX.prototype.nd=function(){return null!=this.j&&this.j.nd()?!0:0<this.ads.length&&this.o<this.ads.length-1};function zX(a,b,c){null!=a.j?AX(a,b,c):a.nd()?BX(a,b,x(function(a){this.nd()&&301!=a.getErrorCode()?zX(this,b,c):c(a)},a)):c(new GJ("adLoadError","The ad source contains no more ads.",1005))}
yX.prototype.I=function(a,b){return this.C?0<a.length?a:b:vb(b,0,1)};yX.prototype.A=function(a,b,c){var d;if(!(d=null!=a.j)){var e=this.D;d=e.Wb||0;e=e.hc||0;XU(a)&&!a.I?WU(a,"nonlinear")?wX(a,d,e):xX(a):WU(a,"linear")?xX(a):WU(a,"nonlinear")&&wX(a,d,e);d=null!=a.j}d?(this.F++,b(a)):(b=lb(a.B)?WK(HK):CU(a)?WK(CK):WK(KK),d=uW(b,a),lK(a.V,d),c(b))};yX.prototype.G=function(a,b,c){var d=this.D.clone();d.j="";d.adTagUrl=a.Fa;d.Ac=YQ(d.adTagUrl,d.Me,d.Qd,d.Wb,d.hc,d.Ni);CX(this,a,d,b,c)};
function DX(a,b,c,d){var e=a.D.clone();e.j="";e.adTagUrl=b.Ka;CX(a,b,e,c,d)}function CX(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.o,null!=g&&(c.j=g));EX(a.O,c,x(function(a){if(a instanceof yX){var c=this.C&&b.Aa,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 rX?e(new GJ("adLoadError","Ad source cannot contain playlist response.",2)):e(new GJ("adLoadError","Unknown ad source.",2))},a),e)}
function FX(a){var b=0;for(a=a.o;null!=a;)a=a.o,b++;return b}function AX(a,b,c){a.j.nd()?zX(a.j,x(function(a){this.A(a,b,x(function(a){this.nd()?zX(this,b,c):c(a)},this))},a),x(function(a){GX(this.ads[this.o],a);this.j=null;301==a.getErrorCode()?c(a):this.nd()?zX(this,b,c):c(a)},a)):(0==a.j.F&&GX(a.ads[a.o],WK(SK)),a.j=null,zX(a,b,c))}function GX(a,b){1012==b.getErrorCode()&&(b=WK(JK));var c=uW(b,a);lK(a.V,c)}
function BX(a,b,c){a.o++;var d=a.ads[a.o];d.I||d.H?d.H?DX(a,d,x(function(a){this.j=a;zX(this,b,c)},a),x(function(a){a=HX(a);GX(d,a);c(a)},a)):4<=FX(d)?(a=WK(LK,null,"4"),GX(d,a),c(a)):a.J?a.G(d,x(function(a){this.j=a;zX(this,b,c)},a),x(function(a){a=HX(a);GX(d,a);c(a)},a)):c(WK(RK)):a.A(d,b,c)}function HX(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=WK(SK)}return a};function IX(a,b,c,d){yX.call(this,[],a,b,c);this.N=d}z(IX,yX);IX.prototype.nd=function(){return null!=this.j&&this.j.nd()?!0:0<this.ads.length&&this.o<this.ads.length-1&&0==this.F};IX.prototype.I=function(a,b){return b};IX.prototype.A=function(a,b,c){var d=-1,d=null==this.j?UU(a):UU(this.ads[this.o]);this.N.o=d;IX.K.A.call(this,a,b,c)};IX.prototype.G=function(a,b,c){this.N.o=-1;IX.K.G.call(this,a,b,c)};function JX(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.j=d;this.zb=e}function EX(a,b,c,d){A(B(b.j))?gU(b)&&null!=a.j&&!a.j.F?a.j.start(b,x(function(){KX(this,b,c,d)},a)):KX(a,b,c,d):LX(a,b,c,d)}function LX(a,b,c,d){var e;try{e=YB(b.j)}catch(g){d(WK(zK,g));return}null!=e?MX(a,e,b,c,d):d(WK(zK))}function KX(a,b,c,d){var e;if(e=null!=b.adTagUrl){i:{try{xa(b.adTagUrl)}catch(g){e=!1;break i}e=!0}e=!e}e?d(WK(tK,null,b.adTagUrl)):hL.B?iS(gS(),x(a.o,a,b,c,d)):a.o(b,c,d)}
JX.prototype.o=function(a,b,c,d){var e=oX(a,this.B).G(),e=kK(e,d,!0);d=a.nh&&dK(cK,e)?"POST":"GET";tX(this.A,e,x(function(d){MX(this,d,a,b,c)},this),x(function(b,d){var e;e=8==b?WK(GK):5==b||6==b?WK(oK):WK(sK,d);c(e);e="third_party";cU(a)?e="adsense":fU(a)?e="dart":gU(a)&&(e="xfp");e={rt:e,ec:b};uL(tL.getInstance(),18,e,!0)},this),this.zb,d);NX(a)};function NX(a){var b="third_party";cU(a)?b="adsense":fU(a)?b="dart":gU(a)?b="xfp":eU(a)&&(b="dbm");a={rt:b};uL(tL.getInstance(),17,a,!0)}
function MX(a,b,c,d,e){var g;try{var h=eW(b,c);if(!h)throw WK(zK);g=h.A();OX(a,g,c,d)}catch(k){k instanceof GJ?e(k):e(WK(AK,k))}}function OX(a,b,c,d){var e=b.j;if(null!=e)d(new rX(e));else{var g=b.A;if(null==g)throw WK(EK);D(g,function(a){a.A=c;a.ma=this.A.j;gL()&&(a.ua=b.o)},a);e=pX(g);g=qX(g);0<g.length&&0<=UU(g[0])?d(new IX(g,c,a,a.C)):d(new yX(e,g,c,a))}};function PX(a){this.j=a+y()}PX.prototype.reset=function(a){this.j=a+y()};function vX(a){var b=y();a=a.j-b;return 0<a?a:0};function QX(a,b){this.j=a;this.o=b;hL.j&&YO().init();var c;i:{try{c=window.top.location.href}catch(d){c=2;break i}c=null!=c?c==window.document.location.href?0:1:2}jR.H=c}function RX(a,b,c,d){var e=null;null!=a.j&&(e=new aS(1E3,a.j,a.o));EX(new JX(a.o,new sX,a.j,e,new PX(8E3)),b,x(function(a){a instanceof rX?c(a):SX(this,a,c,d)},a),d)}
function SX(a,b,c,d){var e=[],g=x(function(a,b){a.nd()?zX(a,x(function(b){e.push(b);g(a,null)},this),x(function(b){301==b.getErrorCode()?d(WK(GK)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=WK(wK)),1012==b.getErrorCode()&&(b=WK(JK)),d(b))},a);g(b,null)};function TX(a){this.o=a;this.j=new fp}function UX(a,b,c,d){var e=x(function(a){c(a);ip(this.j);VX(this)},a),g=x(function(a){d(a);ip(this.j);VX(this)},a);hp(a.j,x(function(){RX(this.o,b,e,g)},a));VX(a)}function VX(a){1==a.j.Ta()?(a=a.j,gp(a),a=ab(a.j),null!=a&&a()):a.j.Ta()};function WX(a,b,c){T.call(this);this.B=new TX(new QX(b,c));this.C=a;this.o=b;this.j=!0;this.A=c}z(WX,T);function XX(a,b,c){if(a.j){var d=null!=c?c:{};XR.getInstance().end("rtr");$R(XR.getInstance(),b.adTagUrl);XR.getInstance().start("vl");UX(a.B,b,x(function(a){YX(this,a,d)},a),x(function(a){ZX(this,a,d)},a))}}function $X(a,b,c){if(!a.j){var d=null!=c?c:{};UX(a.B,b,x(function(a){YX(this,a,d)},a),x(function(a){ZX(this,a,d)},a))}}
function YX(a,b,c){if(a.j)b instanceof rX?(b=new aY(b.j,a),b.D=a.o,a.X(new bY(b,c))):(b=cY(b),b.D=a.o,null!=b?(a.X(new bY(b,c)),XR.getInstance().end("vl")):ZX(a,WK(CK,null),c));else if(b instanceof rX)ZX(a,WK(nK,null,"Unsupported ad format."),c);else{var d=new WR("adsLoaderSdkAdLoaded");d.D=b;d.C=c;a.X(d)}}function ZX(a,b,c){a.j?("always"==hL.o&&null!=a.o&&HR(a.o,ER()),a.X(new HJ(b,c))):(c=new WR("adsLoaderSdkAdError"),c.A=b,a.X(c))};var dY={NORMAL:"normal",FULLSCREEN:"fullscreen"};function eY(){return'<div class="close-padding"><div class="close-button"></div></div>'}function fY(){return'<div class="recall-button"></div>'}function gY(a){return'<a target="_blank" href="'+RP(a.url)+'" class="attribution-button">'+RP(a.text)+"</a>"};function hY(a,b){this.H=a;this.j=I("div",{"class":"controls"});this.S=b||v;this.Vc=new En(this)}z(hY,Q);f=hY.prototype;f.ud=!1;f.wp=1E3;f.jq=30;f.kq=45E3;f.yr=15E3;f.ws=!1;function iY(a){var b=I("div",{"class":"container"});Pw(b,"opacity 0.4s");a.Vc.M(b,"mouseover",a.ry);a.Vc.M(b,"mouseout",a.lD);b.appendChild(a.j);return b}f.al=function(){var a=iY(this);this.j.appendChild(this.H);this.display(this.H);this.play();return a};f.Q=function(){null==this.J&&(this.J=this.al());return this.J};
f.play=function(){null==this.o&&(this.o=zn(function(){this.ud||(this.$(),this.ws=!0);this.o=null},this.ws?this.yr:this.kq,this))};f.stop=function(){null!=this.o&&(An(this.o),this.o=null)};f.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};function jY(a){eh(a.Q(),1);null!=a.A&&(An(a.A),a.A=null)}f.$=function(){eh(this.Q(),this.jq/100);null==this.A&&(this.A=zn(function(){this.S();this.A=null},400,this))};
f.ry=function(){jY(this);this.ud=!0;this.D=zn(function(){this.ud&&this.stop();this.D=null},this.wp,this)};f.lD=function(){null!=this.D&&(An(this.D),this.D=null);this.ud&&this.play();this.ud=!1};f.P=function(){hY.K.P.call(this);this.stop();Ci(this.Vc)};function kY(a,b){this.I=a;this.O=new xe;this.N=15E3;this.F=I("span");hY.call(this,a[0],b);this.j.appendChild(this.F)}z(kY,hY);
kY.prototype.al=function(){var a=iY(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:Ua(),"class":"container-selector"});e.style.top=d+"px";this.Vc.M(e,"click",function(a){lY(this,a.target)});this.O.set(e.id,a);this.F.appendChild(e)},this);lY(this,Zd(this.F));this.play();return a};
kY.prototype.play=function(){null==this.B&&(this.B=new xn(this.N),this.Vc.M(this.B,"tick",this.R));kY.K.play.call(this);this.B.start()};kY.prototype.stop=function(){null!=this.B&&this.B.stop();kY.K.stop.call(this)};kY.prototype.R=function(){var a=this.C;lY(this,(void 0!=a.nextElementSibling?a.nextElementSibling:$d(a.nextSibling))||Zd(this.C.parentNode))};function lY(a,b){a.C&&th(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 mY(a,b){hY.call(this,a[0],b);this.B=a;N(this.j,"container-stack")}z(mY,hY);mY.prototype.$=v;mY.prototype.al=function(){var a=iY(this);D(this.B,function(a){N(a,"container-highlight");this.j.appendChild(a);this.display(a)},this);this.play();return a};function nY(){Q.call(this);this.F="";this.o=new NS;this.A=new xe;this.B=[];this.G=!1;this.j={};this.D=-1;this.C=[]}z(nY,Q);function oY(a,b){if(hL.j){var c=cP(YO(),b.type,a.F);a.H(b.type,c)}else jS(gS(),b.type,a.F,x(a.H,a,b.type))}
nY.prototype.H=function(a,b,c){null!=b&&DW(this.j,b);if("impression"==a&&!this.G&&null!=this.B&&0<this.B.length){var d=G(this.C,"impression");pY(this,this.B,"",d);this.G=!0}i:switch(a){case "click":d=!0;break i;case "complete":d=!ze(this.A,a)&&!ze(this.A,"skip");break i;default:d=!ze(this.A,a)}if(d){var d=G(this.C,a),e=US(this.o,a);0<e.length&&(pY(this,e,b,d,c),this.A.set(a,!0))}DW(this.j,"")};function qY(a,b){null!=b&&D(b,function(a){G(this.C,a)||this.C.push(a)},a)}
function pY(a,b,c,d,e){D(b,function(a){iK(a,this.j,c,d,e)},a)};function rY(a){T.call(this);this.ads=a;this.H=null;this.N="normal";this.B=this.volume=null;this.o=new xL;this.ga=!1;this.content={};this.C=new nY;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})}z(rY,T);function sY(a){if(tY(a)){if(FU(a.H)&&!sL())throw YK(uK,null,"skippablevideo");return a.H}throw YK(qK,null,"An ad has not been selected.");}function tY(a){return null!==a.H}f=rY.prototype;
f.fh=function(){var a=cb(this.ads,this.H);-1!=a&&++a<this.ads.length?this.H=this.ads[a]:this.H=null};f.Lr=function(){if(!tY(this)){if(lb(this.ads))throw YK(CK);this.H=this.ads[0];if(null==this.H.j)throw WK(CK);}};f.wa=function(a){tY(this)?this.X(new KJ(a,sY(this))):this.X(new KJ(a,null))};function uY(a){null==a.G&&(a.G=new En(a));return a.G}function vY(a,b){if(null!=a.D&&(In(uY(a),a.D,"companion_display_error",function(){}),HR(a.D,b),!a.D.so()))throw YK(rK);}
f.destroy=function(){hL.j&&(YO().C=null);this.dispose()};f.P=function(){tY(this)&&(NU(this.H,null),this.H=null);Ci(this.G);this.G=null;Ci(this.D);this.D=null;this.R=!1;rY.K.P.call(this)};f.Ne=function(){return[]};f.getCurrentAd=function(){return this.ads[0]};f.init=function(a){wY(this);this.Ri(a);this.ga=!0;this.jj()};f.jj=function(){this.wa("loaded")};f.sendImpressionUrls=function(a){tY(this)&&gL()&&lK(LU(sY(this)),a)};f.Qm=function(){};
f.Rc=function(a,b,c){if(!this.R){if(null==a)throw YK(vK,null,"displayContainer");if(null!=c){var d=new jk(Pb(this.o));if(!Ge(Pb(c),d.contains,d))throw YK(vK,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=[]);xY(c.mimeTypes);ga(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);ac(d,c)}this.content=b;this.B=a;this.Lr();hL.j&&(a=YO(),b=x(this.xy,this),a.C=b);this.R=!0}};
f.Wf=function(a){D(LU(a),function(a){nb(this.C.B,a)},this)};f.Xe=function(a,b){D(b,function(b){b=kU(a,b);QS(this.C.o,b)},this)};f.xj=function(a){if(a instanceof mU){var b=nU(a);D(b.La(),function(a){var d=b.get(a);D(d,function(b){SS(this.C.o,a,b)},this)},this)}};function yY(a,b){oY(a.C,new jm(b))}f.dc=function(a){oY(this.C,new jm(a));this.wa(a)};f.getRemainingTime=function(){return-1};f.Ng=v;f.pause=function(){};f.resume=function(){};f.skip=function(){};
f.start=function(){wY(this);if(!this.ga)throw WK(qK,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.Dp=function(){return null!=this.volume?this.volume:0};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&$K(this,vK,null,"volume",String(a));this.volume=a};f.Ri=function(a){if(!Nb(dY,a))throw YK(vK,null,"view mode",a);this.N=a};f.setMediaUrl=function(){};function wY(a){if(!a.R)throw YK(qK,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
f.Ep=function(){return null};f.zf=function(){return null};f.xy=function(){var a=-1,b=-1;this.getCurrentAd()&&(b=dV(this.getCurrentAd()));0<=this.getRemainingTime()&&0<=b&&(a=b-this.getRemainingTime());return{currentTime:a,duration:b,volume:this.Dp()}};function xY(a){if(!ea(a))throw YK(qK,null,"adsRenderingSettings.mimeTypes should be an array");var b=rb(Ob(YJ),Ob(XJ));D(a,function(a){if(!G(b,a))throw YK(qK,null,"Invalid or unsuppoted mime type "+a);})};function zY(a){rY.call(this,a);this.A=null;this.Y=I("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.O=!1;this.S=[]}z(zY,rY);f=zY.prototype;f.start=function(){zY.K.start.call(this);this.B.Ij();this.A=this.B.Cf();if(null!=this.A){Vd(this.A);var a=this.Sk();hL.j?bP(YO(),a):hS(gS(),a);this.A.appendChild(a);AY(this);D(this.S,function(a){a()});mb(this.S);this.O=!0;this.wa("start")}};f.Ng=function(){zY.K.Ng.call(this);AY(this)};
f.P=function(){Ci(this.j);this.B=this.j=null;this.O=!1;hL.j?YO().A=null:gS().A=null;null!=this.A&&(Vd(this.A),this.A=null);zY.K.P.call(this)};function BY(a,b){var c=zU(b);D(c,function(a){SS(this.C.o,"click",a)},a)}
f.Sk=function(){var a=OU(sY(this));if(null==a)throw a=YK(CK),CY(this,a),a;sU(a,uY(this));tU(a,this.bx);try{vY(this,sY(this))}catch(b){throw CY(this,b),b;}var c=sY(this),d=AW(c);this.C.j=d;c.j&&(this.Wf(c),(c=c.j)&&this.Xe(c,JJ));BY(this,a);this.O?this.dc("impression"):this.S.push(x(this.dc,this,"impression"));return DY(this,[a.Ee()])};f.Fp=function(a,b){return new hY(a[0],b)};
function DY(a,b){null!=a.j&&a.j.stop();a.j=a.Fp(b,x(a.Vo,a));var c=a.j.Q();if(hL.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/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAt0lEQVQY03XQMW7CQBAAwLmTlSp9JFpHiCYfiFzkCZbfkqfwjshPoEART6BwWmRQ5IrqikDB4QQFb7V7o7vd2/CiPr26F5/aEJan0lR8KUos7uJWKV6LTvcvo7gercHzn2zk6ADW+nzzYO4iKDS5vOBck5+NkAwas9xvpjFIv0yyscu8s8k4cmcFHsFqnD1zDxbe8w76249ViGrfah9+VLdM5cEgSd7GzhR7T7YTO9+LbThO4FEbzuewMmr11FxHAAAAAElFTkSuQmCC);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAAN1JREFUCNcB0gAt/wDbutvr23TbBAAA2wXbeNvs27UAAAHb9QAK+v3CoyBzJGAAhAAJ9vsvjgNuAftABgMUKvtBDlEBDvv9ouLGAAEAAJunMVIPBgAAAADx+aXjj90AoAAAAAAAwM/b/9v/2/+k6wCtAFUAAAIAANtxGxcAAAAAAAAlDX8LAKsAAAPbdgCDABH1+dDwEAUPBiggNCGxsQHb9AAL+/2c4KPZdQlNPwQC9vsvWwIAzff8ouGU3euhs1TJrvj82vQAXQEAAACRACMApwCpAPwABABaAFcA1sKJVOsU6fRuAAAAAElFTkSuQmCC);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAs0lEQVQY03XQLc7CQBAA0LdQjf8UQSCBcIHvAHgM6Wm4CB4kAk96g+IQhECCJATbUMy2NIGO2Mzs298JU/Py36/Y24SwKofa4ihkJYOfeEKnKnL5V0ZSTe3AqJHVHFzBzsUBXI2pDu9K4+pD3JnqfrjwkOrH+/pSD8WHKWTOkc+yiDXntqAHtvXbI1/AxNKkUdcfmyFYuFt4Kc0iN7qWoIhj1bXk5s+ppec3nXV4tuDTOrwBYQs0jH6JoccAAAAASUVORK5CYII=)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAALpJREFUCNclyL1Kw1AAgNFPqLh3cu/D+ARV8S0UEcFVoYOL4Kw4FSmClBZiB38WHZ10sQUnB6MR2hruTVI/h5zx4MjUXRvgsvt+OQT81VBdn7803THXWUEHD+JCf+L48e9bY9WZ0AcG3SyqahYO30jYBOD9uc67lCvaALjtR52f4TSpa89cp+E+nRYayuQMcK6xOhqvDi9ui4XOCtr4MC+PJys3rK81R728fMroLwEntOhySUWDLTZ4/QdyroIjdfxoFwAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:inset 0 -1px 3px rgba(0,0,0,0.3),0 1px 0 rgba(255,255,255,0.5);height:20px;margin:4px 4px 0 0;width:20px}.recall-button{background:rgba(200,200,200,0.2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAgAfJAUZwAAAURJREFUGNMFwb1LAmEAB+Dfe+/daZ3aWX6k1WFmSElQUBYUVIsguTQ0BUm4VtDYFLT4b7hkYLQGDg5BtERkUIRDgX1oWg6deKl359vzEFZO0mwWJgAUjgr88fe7R/2BkVonXVOGOQRQAJSwcp4CWWhKhnI6Vg0TkWYbnc8G7hbCjlLM3SQOBZQDAPgyk3wP+/Vf2Oyu4JV/NHDf1CG/1NREdZuZVRUCeiaLal12iETBQ4E1iN4QaNLqAafMptlw6Yvtwh4cI5CiIm09BAh06fbDbEx7saXp0M9vkDtJELQ5jPQAK1i5Irb+mGwYbEfV2AHiZz7M7YVLNZZ6rLDYACac8xAkwjp6ROf4ePEV19EZmaCrdQXwbzq19V8W68qUH+Hx4OYFnp6ZjJWck4NlUYLVf5pOgpXzdAOCOIg+N1zLIQuPpX9L/XzfXOCrFgAAAABJRU5ErkJggg==) no-repeat center;border:1px solid rgba(255,255,255,0.498039);box-shadow:rgba(0,0,0,0.701961) 0 4px 3px;color:#fff;cursor:pointer;height:11px;width:26px;z-index:1001}.yt-text-overlay .recall-button{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(0,0,0,0);box-shadow:none;height:17px;width:29px}.autoalign .recall-button{margin:auto}.yt-text-overlay.autoalign .recall-button{margin:auto auto 6px}.recall-button:hover{background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAAAAAAUx4O/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAcA+wgIqAAAAEtJREFUCNcVi1kRwEAIQ3GAhEpAAhJWChKQsBIqBQlIQAIS0jQ/OeZFAIz70ARIjdDL2GYF1OMrxZ6JvUugjGoCG5rcJSHv+d/oMx893S/cqF2DpwAAAABJRU5ErkJggg==) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(255,255,255,0.5)}.auto-hide{display:none}body:hover .auto-hide{display:block}.attribution-button{bottom:12px;color:#fff;font:11px arial,sans-serif;position:absolute;right:5px;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;z-index:1001}.yt-text-overlay .attribution-button{color:#888;text-shadow:none}.viewmode-fullscreen .attribution-button{bottom:auto;right:22px;top:5px}.yt-text-overlay.viewmode-fullscreen .attribution-button{right:5px;top:auto}.text-container .attribution-button{bottom:7px}.container{position:absolute;width:100%;z-index:1000}.container.autoalign{bottom:0;text-align:center}.container-stack{background-color:#666;border-radius:5px;display:block;padding:3px 0}.container-rotator .attribution-button{bottom:7px}.container-rotator .text-inner-container{left:20px}.container-selector{-webkit-box-shadow:0 4px 3px rgba(0,0,0,.7);-moz-box-shadow:0 4px 3px rgba(0,0,0,.7);box-shadow:0 4px 3px rgba(0,0,0,.7);background:#666;border-radius:2px;cursor:pointer;height:10px;left:5px;position:absolute;width:10px;z-index:1002}.container-selector:hover{background:#fff}.container-rotator .container-highlight:hover{border-color:#fff!important}.container-stack .container-highlight:hover{background-color:#999!important}.container-active{background:#fc0!important}.container-slider .attribution-button{bottom:7px}.container-slider .controls{max-width:100%!important}.container-slider .text-container{background-color:#000;border-radius:5px 5px 0 0;margin-bottom:0}.container-slider .text-title:hover{text-decoration:underline!important}.container-slider.hidden .controls{top:38px}.container-slider.animated .controls{-webkit-transition:top .4s;-moz-transition:top .4s;-o-transition:top .4s;transition:top .4s}.controls{display:inline-block;position:relative}.controls.scalable{display:block;min-width:320px;max-width:450px}.autoalign .controls.scalable{margin:auto}.flash-container,.image-container{display:inline-block;position:relative}.flash-container.click-capture .click-layer{display:block}.click-layer{background:rgba(0,0,0,0.0);bottom:0;left:0;position:absolute;right:0;top:0;z-index:100}.text-container{margin-bottom:5px;position:relative}.yt-text-overlay .text-container{margin-bottom:3px}.text-inner-container{background-image:-webkit-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-moz-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-ms-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-o-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));border:1px solid rgba(102,102,102,0.7);border-radius:3px;box-shadow:rgba(0,0,0,0.7) 0 5px 5px;padding-left:10px;position:absolute;text-align:left;top:0;bottom:0;left:0;right:0}.yt-text-overlay .text-container .text-inner-container{background-color:rgba(0,0,0,0.6);background-image:none;border:1px solid rgba(0,0,0,0.6);border-radius:0;box-shadow:none;padding-left:10px}.viewmode-fullscreen .text-inner-container{background-image:none;border:none;box-shadow:none}.yt-text-overlay .controls:hover .text-inner-container{border:1px solid rgba(58,58,58,1.0)}.text-title{text-decoration:underline}.yt-text-overlay .text-title{text-decoration:none}.viewmode-fullscreen .text-title{text-decoration:none}.yt-text-overlay .controls:hover .text-container .text-title{text-decoration:underline}.text-image-link{float:left;position:relative}.text-image{box-shadow:rgba(0,0,0,0.498039) 0 3px 5px;height:57px;margin:3px 10px 0 0;width:79px}.yt-text-overlay .text-image{margin:2px 10px 0 0}.text-image-duration{background:#000;color:#fff;font:10px arial,sans-serif;padding:2px;position:absolute;right:10px;top:43px}.text-title{color:#fff;display:block;font:bold 14px arial,sans-serif;margin:7px 16px 0 0;overflow:hidden;padding-bottom:4px;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-title{margin-top:7px;text-shadow:#000 0 -1px 0}.text-description{color:#fff;font:12px arial,sans-serif;margin-top:-3px;overflow:hidden;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-description{text-align:left;text-shadow:none}.text-ad-channel{bottom:7px;color:#f9fcc0;font:bold 11px arial,sans-serif;left:10px;position:absolute;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px}.yt-text-overlay .text-ad-channel{bottom:9px;color:#eade90;font-weight:normal;left:10px;text-shadow:#000 0 -1px 0}.pyv .text-ad-channel{left:99px}.yt-text-overlay .pyv .text-ad-channel{left:99px}.viewmode-fullscreen .text-ad-channel{color:#ccc}.yt-text-overlay.viewmode-fullscreen .text-ad-channel{color:#eade90}.ima-sdk-frame body{background:transparent;height:100%;margin:0;overflow:hidden}.ima-sdk-frame{height:100%}.ima-sdk-frame-native body{background:#000}.ima-sdk-frame-native video{bottom:0;left:0;margin:auto;right:0;top:0}.ytp-iv-drawer-open .videoAdUiTopBar,.ytp-iv-drawer-open .videoAdUiPreSkipContainer,.ytp-iv-drawer-open .videoAdUiSkipContainer,.ytp-iv-drawer-open .ad-overlay .container{display:none}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiRedesign .videoAdUi{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;position:absolute;top:36px;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,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiRedesign .videoAdUiTitle{color:rgba(255,255,255,0.75);font:normal 17px arial,sans-serif;max-width:none;margin:0;position:absolute;top:14px;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,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAACISURBVAjXPY6xDYJAAADPj0NQ27CAPBsYEztI2MGO6C4mbIAWdLbGglYbrUgMOsnZoNddrjlEXNr68OnRKDITKraceRFYsOHACTN7c3FwEHN7I3bWIhYWItZ2+DEVsbERMfU9BwIAK/4EbpOGKa65Y7Q3iqWlkyFWXtybmLjzaiWImNk6Ov7mvwScZI0STqHEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==);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,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAACISURBVAjXPY6xDYJAAADPj0NQ27CAPBsYEztI2MGO6C4mbIAWdLbGglYbrUgMOsnZoNddrjlEXNr68OnRKDITKraceRFYsOHACTN7c3FwEHN7I3bWIhYWItZ2+DEVsbERMfU9BwIAK/4EbpOGKa65Y7Q3iqWlkyFWXtybmLjzaiWImNk6Ov7mvwScZI0STqHEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==);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;text-decoration:none}.videoAdUiRedesign .videoAdUiVisitAdvertiserLinkText{display:inline-block;margin:0 5px;text-decoration:inherit}.videoAdUiRedesign .videoAdUiVisitAdvertiserIcon{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAABXSURBVAjXVY6xDYAwEMT8iBaJDWAWhFDYfwCo6MgKpiEh+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;display:inline-block;margin:0 5px;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,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAQAAACY0sZTAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAABoAAAAeAGPeoysAAACqSURBVDjL7ZJBEcIwEEU3GEgdREIlBAeVgITUQSSAk0oAB5VQHJQqeBwomcAMZHNghkPfKZvJn5+/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,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);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.uo);O(c,"viewmode-fullscreen","fullscreen"==a.N);c.appendChild(a.Y);uY(a).M(c,"click",km);(tY(a)&&XU(sY(a))||a.o.useStyledNonLinearAds)&&a.Mk(a.j.j);return c}f.Mk=function(a){var b=uY(this);this.U=MP(fY);b.M(this.U,"click",this.Ux);var c=MP(eY);b.M(c,"click",this.Fl);a.appendChild(c)};function AY(a){if(null!=a.j){var b=ah(a.B.Cf()),c=ah(Zd(a.j.j));if(c.width>b.width||c.height>b.height)throw b=YK(xK,null),CY(a,b),a.stop(),b;}}function CY(a,b){var c=uW(b,sY(a)),d=KU(sY(a));lK(d,c)}
f.bx=function(a){this.dc("click");km(a)};f.Fl=function(){this.Vo();this.wa("userClose");yY(this,"close")};f.Vo=function(){this.j.stop();var a=OU(sY(this));null!=a&&vU(a);Xd(this.U,this.j.j)};f.Ux=function(a){km(a);jY(this.j);this.j.play();Xd(this.j.j,this.U);zn(function(){fh(this.Y,!1)},500,this);fh(this.Y,!0)};function EY(a){zY.call(this,a);this.J=!1;this.F=this.Z=null;lb(a)||null==a[0].A||(this.Z=a[0].A,tf(new J(this.Z.adTagUrl),"channel"))}z(EY,zY);f=EY.prototype;f.Fp=function(a,b){if(this.J||null==b)b=v;var c;gL()&&this.J?c=new hY(a[0],b):"fullscreen"==this.N?c=new mY(a):1<a.length?(c=new kY(a),c.N=15E3):c=new hY(a[0],b);c.wp=100;this.J&&(c.jq=30);c.kq=45E3;c.yr=6E3;O(c.j,"scalable",this.J);O(c.Q(),"yt-text-overlay",gL()&&this.J);return c};
f.KC=function(a){var b=a.j;null!=b?(null==this.V&&(this.V=a.getExtension("AdSense").D),uU(b,pa(this.wy,a,b)),tU(b,pa(this.fx,a,b)),b.pa=!1,"Text"==b.getContentType()&&(this.J=!0),this.F.push(b)):(b=WK(CK),b=uW(b,a),lK(KU(a),b))};f.Rc=function(a,b,c){EY.K.Rc.call(this,a,b,c);this.o.uo=!0;null!=this.ads[0]&&0<OR(this.ads[0]).length?vY(this,this.ads[0]):gL()&&this.wa("companionBackfill")};
f.Sk=function(){null==this.F&&(this.F=[],D(this.ads,this.KC,this));if(0==this.F.length)throw YK(CK);var a=[];D(this.F,function(b){sU(b,uY(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.Bo=!0);a.push(b.Ee());yU(b,this.V.A)},this);if(0==a.length)throw YK(CK);return DY(this,a)};f.Fl=function(a){EY.K.Fl.call(this,a);D(this.F,function(a){var c=AW(a.getAd());this.C.j=c;this.Xe(a,["close"]);yY(this,"close");this.C=new nY},this)};
f.Mk=function(a){EY.K.Mk.call(this,a);var b=this.ads[0].getExtension("AdSense"),c=b.B,b=b.C,c=MP(gY,{text:null!=c?c:this.V.j,url:null!=b?b:this.V.o});a.appendChild(c)};f.wy=function(a,b){this.O?this.Br(a,b):this.S.push(x(this.Br,this,a,b));uU(b,v)};f.Br=function(a,b){var c=AW(a);this.C.j=c;this.Wf(a);this.Xe(b,["creativeview"]);yY(this,"impression");yY(this,"creativeview");this.C=new nY};
f.fx=function(a,b,c){c=Xg(c);a=a.getExtension("AdSense");a=new J(a.A);var d=b.sd();isNaN(d)&&(d=$g(b.Ee()).width);var e=b.getHeight();isNaN(e)&&(e=$g(b.Ee()).height);b=GT();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.N,"sdkv=h.0.0.0","eids="+KT(b)];hK(a,"elementclick",b);D(this.F,function(a){var b=AW(a.getAd());this.C.j=b;BY(this,a);yY(this,"click");this.C=new nY},this);this.wa("click")};
f.Ri=function(a){this.N!=a&&(EY.K.Ri.call(this,a),null!=this.A&&(Vd(this.A),a=this.Sk(),this.A.appendChild(a)),this.wa("expandedChanged"))};function FY(a){KJ.call(this,"adMetadata",a)}z(FY,KJ);function GY(a,b,c){var d=v,e;JT(947225)?(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")):e=new J("https://gdata.youtube.com/feeds/api/videos/"+a);null!=c&&(b=x(b,c),d=x(d,c));HY(new uo,e,b,d)}
function IY(a,b,c){var d=v,e;JT(947225)?(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")):e=new J("https://gdata.youtube.com/feeds/api/channels/"+a);null!=c&&(b=x(b,c),d=x(d,c));HY(new uo,e,b,d)}
function HY(a,b,c,d){JY(b);xo(a,2E3);var e=new En(a);In(e,a,"success",function(a){a=a.target;var b;b=a.j?qg(a.j.responseText):void 0;c(b||{});e.dispose();a.dispose()});In(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.o&&(b=Error(Ln(a.o)));d(b);e.dispose();a.dispose()});a.send(b)}function JY(a){JT(947225)?K(a,"key","AIzaSyDykhSj35yFHOiDglTp-ZuD9HCUQf62oS0"):(K(a,"alt","json"),K(a,"v","2"))};function KY(a,b,c,d,e){Zv.call(this);this.o=a;this.C=b;this.D=c;this.A=d;this.F=ea(e)?e:[e]}z(KY,Zv);f=KY.prototype;f.play=function(){if(this.yb())return!1;this.ej();this.qc("play");this.startTime=y();this.j=1;if(Rw())return Ig(this.o,this.D),this.B=zn(this.Vw,void 0,this),!0;this.bn(!1);return!1};f.Vw=function(){ah(this.o);Pw(this.o,this.F);Ig(this.o,this.A);this.B=zn(x(this.bn,this,!1),1E3*this.C)};f.stop=function(){this.yb()&&this.bn(!0)};
f.bn=function(a){Qw(this.o,"");An(this.B);Ig(this.o,this.A);this.endTime=y();this.j=0;a?this.qc("stop"):this.xc();this.Xg()};f.P=function(){this.stop();KY.K.P.call(this)};f.pause=function(){};function LY(a,b,c,d){return new KY(a,.5,{opacity:c},{opacity:d},{property:"opacity",duration:.5,timing:b,Mo:0})};function MY(a,b){T.call(this);this.A=a;this.O=0;this.H=!1;this.o=1;this.j=this.Y=this.J=this.R=this.B=null;this.C=new En(this);this.V=!1;this.ca=this.Z=this.S=0;this.D=this.G=this.F=null;this.N=!1;this.I=new jP;this.U="";this.A.G&&(this.C.M(b,"touchstart",this.Ky),this.C.M(b,"touchmove",this.Jy),this.C.M(b,"touchend",this.Iy));this.B=MP(qQ);this.R=Hd("videoAdUiPreSkipButton",this.B);this.J=Hd("videoAdUiPreSkipText",this.R);this.Y=Hd("videoAdUiPreSkipThumbnail",this.R);ee(this.J,sQ({un:NY(this)}));
var c=this.A.Ga,c=(A(B(c))?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.A.showContentThumbnail&&!A(B(c))){var d=Rd("img");d.setAttribute("src",c);N(d,"videoAdUiPreSkipThumbnailImage");this.Y.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=MP(tQ,{aD:c});fh(this.B,!1);
b.appendChild(this.B);fh(this.j,!1);eh(this.j,0);b.appendChild(this.j);this.C.M(this.I,"click",this.ZC);kP(this.I,this.j)}z(MY,T);f=MY.prototype;f.P=function(){null!=this.F&&(this.F.dispose(),this.F=null);null!=this.G&&(this.G.dispose(),this.G=null);OY(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;MY.K.P.call(this)};
f.update=function(a,b){this.O=b;if(!(0>=this.O||null==this.A.skipOffset||0>LS(this.A.skipOffset))){var c=LS(this.A.skipOffset);c>=this.O||3==this.o||(0>a?this.o=1:a<=c?(2!=this.o&&(PY(this,0),LY(this.B,"ease-out",0,1).play(),fh(this.B,!0)),this.o=2):(3!=this.o&&(fh(this.j,!0),this.G=new KY(this.B,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",Mo:0}),this.F=LY(this.j,"ease-out",0,1),this.G.play(),this.F.play(),this.C.M(be(this.j),
"mouseover",this.HC),this.C.M(be(this.j),"mouseout",this.Sr),this.Sr()),this.o=3,this.X("skipshown")))}2==this.o&&PY(this,a)};f.skip=function(){return null==this.A.skipOffset||3!=this.o||this.H?!1:(this.H=!0,this.X("PUBLISHER_INVOKED_SKIP"),!0)};f.Ky=function(a){var b=a.j;3==this.o&&1==b.touches.length&&(this.V=!0,this.ca=b.touches[0].pageX,a.preventDefault())};
f.Jy=function(a){var b=a.j;3==this.o&&1==b.touches.length&&this.V&&(b=b.touches[0].pageX,this.S=this.Z-b,this.Z=b,b=this.ca-b,0<b&&(this.j.style.right=b+"px"),a.preventDefault())};f.Iy=function(){this.V=!1;if(3==this.o){var a=$g(be(this.j));if(parseInt(this.j.style.right,10)+4*this.S>.25*a.width&&0<this.S){fh(this.j,!1);this.H=!0;this.X("skip");return}}this.j.style.right=0};function NY(a){return null!=a.A.skipOffset&&-1!=LS(a.A.skipOffset)?LS(a.A.skipOffset):-1}
function PY(a,b){var c=NY(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+DS(c));c=sQ({un:d,yi:a.U});ee(a.J,c)}}f.ZC=function(a){gL()||a.stopPropagation();3!=this.o||this.H||(this.H=!0,this.X("skip"))};f.Sr=function(){null==this.D&&(this.D=zn(function(){this.N=!0;LY(this.j,"ease-in",1,.5).play();this.D=null},this.N?5E3:15E3,this))};f.HC=function(){eh(this.j,1);OY(this)};function OY(a){null!=a.D&&(An(a.D),a.D=null)};function QY(a,b,c){T.call(this);this.j=a;this.V=!1;this.pa=c;this.Z=this.R=this.S=this.C=this.I=this.J=this.G=this.Y=this.U=this.o=null;this.ma=!1;this.na=this.ca=this.da=this.H=this.B=this.F=this.ga=this.O=this.N=this.D=null;this.A=new En(this);this.sa=[];this.V=!this.j.o&&(JT(956001)||JT(956002));a={Pc:this.j.Pc,Pf:this.j.Pf,nf:this.j.nf,yi:this.V?"redesign2014q4":""};this.o=MP(this.j.F,a);this.A.M(this.o,"touchmove",this.By);this.O=Hd("videoAdUiProgress",this.o);this.ga=Hd("videoAdUiBuffer",this.o);
this.U=Hd("videoAdUiAttributionContainer",this.o);this.Y=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.S=Hd("videoAdUiLearnMore",this.o);this.R=Hd("videoAdUiLearnMoreText",this.o);this.V?(this.H=Hd("videoAdUiTopButtonShare",this.o),this.da=Hd("videoAdUiTopButtonShareTooltip",this.o),this.ca=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.gw);null!=this.C&&this.A.M(this.C,"click",this.hw);null!=this.S&&this.A.M(this.S,"click",this.Zp);null!=this.R&&this.A.M(this.R,"click",this.Zp);null!=this.H&&this.A.M(this.H,"click",this.UC);null!=this.D&&this.A.M(this.D,"click",this.iD);null!=this.N&&this.A.M(this.o,
"mouseover",this.TC);null!=this.G&&this.A.M(this.G,"click",this.Yj);null!=this.J&&this.A.M(this.J,"click",this.Yj);null!=this.j.skipOffset&&(this.B=new MY(this.j,this.o),this.B.Fj(this),this.B.U=a.yi);400>=(parseInt(Mg(b,"width"),10)||b.width)&&N(this.o,"videoAdUi-mobile");this.j.o&&(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.V&&N(ne(b,"html5-video-player"),"videoAdUiRedesign");fh(this.o,!1);b.appendChild(this.o);
this.j.B||(this.F=I("div",{style:"width:100%;height:100%"}),this.o.appendChild(this.F));RY(this)}z(QY,T);f=QY.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.ma=!1;QY.K.P.call(this)};
f.update=function(a,b,c,d,e){this.ma=!0;null!=this.o&&(null!=this.Y&&SY(this,a,c,d,e),null!=this.O&&Zg(this.O,a/c*100+"%"),null!=this.ga&&Zg(this.ga,b/c*100+"%"),0<c&&null!=this.j.skipOffset&&null!=this.B&&(MS(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 TY(a,b){a.sa=b;D(b,function(a){a.display(this.o)},a)}
function RY(a){var b=a.j.O&&(a.pa>a.j.U||0==a.pa),c=b&&a.j.R,d=b&&a.j.V,e=b&&a.j.A,g=b&&a.j.N,b=b&&a.j.D,h=a.j.J&&a.j.j,k="0px";null!=a.D&&(fh(a.D,b),null!=a.I&&fh(a.I,c),null!=a.C&&fh(a.C,d),null!=a.S&&fh(a.S,e),null!=a.H&&(fh(a.H,g),g&&a.X("videoShareShown")),null!=a.ca&&fh(a.ca,!1),null!=a.na&&fh(a.na,!1),null!=a.N&&fh(a.N,b||c||d||e));null!=a.U&&UY(a);null!=a.O&&(fh(a.O,h),h&&(k=Mg(a.O,"height")));null!=a.Z&&Ig(a.Z,"bottom",k);null!=a.R&&fh(a.R,a.j.B)}
function SY(a,b,c,d,e){var g=uQ({Oj:"",ai:0,Qj:0});a.j.j&&a.j.I&&(b=DS(c-b),g=uQ({Oj:a.j.o?" \u2022 "+b:a.V?" \u00b7 "+b:": ("+b+")",ai:d,Qj:e}));ee(a.Y,g);UY(a)}function UY(a){fh(a.U,a.j.C&&(!a.j.j||a.ma))}f.gw=function(){this.X("videoAuthorIconClicked")};f.hw=function(){this.X("videoAuthorClicked")};f.Zp=function(){this.X("videoLearnMoreClicked")};f.UC=function(){this.X("videoShareClicked")};f.iD=function(){this.X("videoTitleClicked")};f.By=function(a){a.preventDefault()};
f.Yj=function(){this.j.H?this.X("click"):this.X("videoClicked")};f.TC=function(){N(this.N,"videoAdUiTopBarTransitions")};function VY(){this.Pc=uQ({Oj:"",ai:0,Qj:0});var a="",b="\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435... "+RP("");this.Pf=a+b;this.visitAdvertiserText="Visit Advertiser's Site";var b=SP('<a href="https://www.google.com/settings/ads/onweb">'),c=SP("</a>"),a="",b="\u041f\u043e\u0441\u0435\u0442\u0438\u0442\u0435 "+(RP(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"+(RP(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.nf=SP(a+b);this.skipOffset=null;this.U=6E3;this.I=this.j=this.H=this.C=!0;this.N=this.J=this.A=!1;this.O=!0;this.D=this.V=this.R=this.S=this.B=!1;this.F=null;this.G=nm&&JT(0);this.showContentThumbnail=!0;this.o=!1}function WY(a,b,c,d){var e=new VY;e.B=a;e.Y=b;e.skipOffset=c;e.Ga=null!=d?d.contentId:null;e.F=nQ;e.Za=sP(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e};function XY(a){jm.call(this,a)}z(XY,jm);function YY(a){T.call(this);this.C=a;this.I=new xe;this.G=-1;this.J=!1}z(YY,T);function ZY(a){this.o=!1;this.j=a.Og();this.volume=a.rd()}ZY.prototype.muted=function(a,b){return!this.j&&a||0<this.volume&&0==b};f=YY.prototype;f.P=function(){$Y(this);YY.K.P.call(this)};function $Y(a){null!=a.o&&a.o.dispose();null!=a.j&&a.j.Hf();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 aZ(a,b,c){if(!c||null==a.I.get(b)){a.I.set(b,!0);i:{if(a.A&&a.A.j.A){if("click"==b)break i;"videoLearnMoreClicked"==b&&oY(a.C,new jm("click"))}c="click"==b||"videoLearnMoreClicked"==b?3:null;null!=c&&null!=a.j&&a.j.Pr(c);oY(a.C,new jm(b))}a.X(b)}}f.SA=function(){aZ(this,"measurable_impression",!1)};f.lC=function(a){a=a.A;a=DW(this.C.j,null!=a?a.viewabilityString:null);this.C.j=a;aZ(this,"viewable_impression",!1)};
f.Uy=function(){var a=this.j.od();if(-1!=a){this.j.xg(.25*a)&&aZ(this,"firstquartile",!0);this.j.xg(.5*a)&&aZ(this,"midpoint",!0);this.j.xg(.75*a)&&aZ(this,"thirdquartile",!0);var b=this.C,c=this.j.getCurrentTime();0>b.D&&(TS(b.o,a),b.D=0);for(var a=RS(b.o,"progress"),d=b.D;d<a.length;d++){var e=a[d];if(LS(e.o)>c)break;b.D=d+1;iK(e.j,b.j)}}bZ(this)};function bZ(a){0>a.G||a.J||!a.j.xg(a.G)&&!a.j.Qe()||(a.J=!0,aZ(a,"engagedview",!0),a.X(new XY("viewCount")))}
f.Ty=function(){aZ(this,"impression",!0);aZ(this,"creativeview",!0);null!=this.H||null!=this.A||this.o.M(this.j,"click",this.Yl);null!=this.H&&(this.D=new jP,this.o.M(this.D,"click",this.Yl,!1),kP(this.D,this.H));null!=this.A&&(this.F=new jP,this.o.M(this.F,"click",this.Yl,!1),kP(this.F,this.A));aZ(this,"start",!0);(this.j.Og()||0==this.j.rd())&&aZ(this,"mute",!1)};
f.Vy=function(){var a=this.j.Og(),b=this.j.rd(),c=this.B;c.j&&!a||!a&&0==c.volume&&0<b?aZ(this,"unmute",!1):this.B.muted(a,b)&&aZ(this,"mute",!1);this.B.j=a;this.B.volume=b};f.Ry=function(){this.j.Qe()?(bZ(this),aZ(this,"complete",!0)):this.j.Pg()&&!this.j.Ip()&&(this.B.o=!0,aZ(this,"pause",!1))};f.Sy=function(){this.B.o&&(this.B.o=!1,aZ(this,"resume",!1))};f.Ny=function(){bZ(this);aZ(this,"complete",!0)};f.Yl=function(){aZ(this,"click",!1)};f.Oy=function(){aZ(this,"error",!1)};
f.Qy=function(){aZ(this,"mediaLoadTimeout",!1)};f.ir=function(){aZ(this,"skipshown",!0)};f.VB=function(){aZ(this,"videoAuthorIconClicked",!1)};f.UB=function(){aZ(this,"videoAuthorClicked",!1)};f.XB=function(){aZ(this,"videoClicked",!1)};f.cC=function(){aZ(this,"videoLearnMoreClicked",!1)};f.hC=function(){aZ(this,"videoShareClicked",!1)};f.iC=function(){aZ(this,"videoShareShown",!0)};f.kC=function(){aZ(this,"videoTitleClicked",!1)};f.Qp=function(){aZ(this,"skip",!0)};
f.iB=function(){aZ(this,"skip",!0)};f.Py=function(){aZ(this,"fullscreen",!1)};f.xA=function(){aZ(this,"exitfullscreen",!1)};function cZ(a){rY.call(this,a);this.A=null;this.F=new YY(this.C);this.V=this.Z=this.Y=this.U=this.O=!1;this.S=1;this.J=null}z(cZ,rY);f=cZ.prototype;f.P=function(){dZ(this);var a=!1;null!=this.B&&(a=this.B.Nl(),this.B.$(),this.B=null);this.O&&(this.O=!1,this.j.Pg()||this.j.Qe()||this.j.pause(),oL()&&!a&&(this.j.Gf(.001),this.j.load("","")),nL()&&this.j.Rd()&&!a&&this.j.nl(),this.wa("contentResumeRequested"),this.wa("allAdsCompleted"));cZ.K.P.call(this)};
function dZ(a){Ci(a.A);a.A=null;Ci(a.F);Ci(a.C);Ci(a.H);a.U=!1;a.V=!1}function eZ(a){a.fh();tY(a)?a.start():a.stop()}f.fh=function(){dZ(this);cZ.K.fh.call(this);tY(this)&&(this.C=new nY,this.F=new YY(this.C))};
f.jz=function(a,b,c){if(!this.U){this.U=!0;var d=qP(b);if(this.o.useVideoAdUi){var e=a.getExtension("AdSense"),g=this.o.Ll&&((null===b?!1:"modules"==(new J(b)).Bf().toLowerCase())||null!=e&&e.G),h=!0,k=!0;if(JT(909720)||FU(a)&&30<dV(a)&&JT(909721))k=h=!1;e=-1!=dV(a)&&0!=dV(a)&&7>=dV(a)?null:YU(a);if(gL()){var l=this.o,p=A(B(cV(a)))?!1:this.o.qs;HU(a,TJ);d=WY(g,d,e,l);d.A=p;d.J=k;d.I=h;d.o=l.ln;d.H=l.nD;d.N=l.useShareButton;d.S=l.oD;d.U=0;l.ln&&(d.Pf="Visit Advertiser")}else HU(a,TJ)||!A(B(a.N))?(l=
g,p=this.o,!A(B(d))&&null!==e&&0<LS(e)&&JT(41351090)&&(l=!0),d=WY(l,d,e,p),d.F=l?pQ:oQ):(d=WY(g,d,e,this.o),d.O=!1,d.C=!1,d.j=!1);e=this.B.xl();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/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAt0lEQVQY03XQMW7CQBAAwLmTlSp9JFpHiCYfiFzkCZbfkqfwjshPoEART6BwWmRQ5IrqikDB4QQFb7V7o7vd2/CiPr26F5/aEJan0lR8KUos7uJWKV6LTvcvo7gercHzn2zk6ADW+nzzYO4iKDS5vOBck5+NkAwas9xvpjFIv0yyscu8s8k4cmcFHsFqnD1zDxbe8w76249ViGrfah9+VLdM5cEgSd7GzhR7T7YTO9+LbThO4FEbzuewMmr11FxHAAAAAElFTkSuQmCC);float:right;height:15px;margin:5px 4px 0 0;width:15px}.yt-text-overlay .close-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAAN1JREFUCNcB0gAt/wDbutvr23TbBAAA2wXbeNvs27UAAAHb9QAK+v3CoyBzJGAAhAAJ9vsvjgNuAftABgMUKvtBDlEBDvv9ouLGAAEAAJunMVIPBgAAAADx+aXjj90AoAAAAAAAwM/b/9v/2/+k6wCtAFUAAAIAANtxGxcAAAAAAAAlDX8LAKsAAAPbdgCDABH1+dDwEAUPBiggNCGxsQHb9AAL+/2c4KPZdQlNPwQC9vsvWwIAzff8ouGU3euhs1TJrvj82vQAXQEAAACRACMApwCpAPwABABaAFcA1sKJVOsU6fRuAAAAAElFTkSuQmCC);height:10px;margin:9px 9px 0 0;width:10px}.close-padding:hover .close-button{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAQAAACR313BAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAPAAAADwBjHBMTAAAAs0lEQVQY03XQLc7CQBAA0LdQjf8UQSCBcIHvAHgM6Wm4CB4kAk96g+IQhECCJATbUMy2NIGO2Mzs298JU/Py36/Y24SwKofa4ihkJYOfeEKnKnL5V0ZSTe3AqJHVHFzBzsUBXI2pDu9K4+pD3JnqfrjwkOrH+/pSD8WHKWTOkc+yiDXntqAHtvXbI1/AxNKkUdcfmyFYuFt4Kc0iN7qWoIhj1bXk5s+ppec3nXV4tuDTOrwBYQs0jH6JoccAAAAASUVORK5CYII=)}.yt-text-overlay .close-padding:hover .close-button{background-color:rgba(0,0,0,0.15);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAACYktHRAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAoATqZ25QAAALpJREFUCNclyL1Kw1AAgNFPqLh3cu/D+ARV8S0UEcFVoYOL4Kw4FSmClBZiB38WHZ10sQUnB6MR2hruTVI/h5zx4MjUXRvgsvt+OQT81VBdn7803THXWUEHD+JCf+L48e9bY9WZ0AcG3SyqahYO30jYBOD9uc67lCvaALjtR52f4TSpa89cp+E+nRYayuQMcK6xOhqvDi9ui4XOCtr4MC+PJys3rK81R728fMroLwEntOhySUWDLTZ4/QdyroIjdfxoFwAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:inset 0 -1px 3px rgba(0,0,0,0.3),0 1px 0 rgba(255,255,255,0.5);height:20px;margin:4px 4px 0 0;width:20px}.recall-button{background:rgba(200,200,200,0.2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAICAYAAADA+m62AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAASAAAAEgARslrPgAAAAl2cEFnAAAACgAAAAgAfJAUZwAAAURJREFUGNMFwb1LAmEAB+Dfe+/daZ3aWX6k1WFmSElQUBYUVIsguTQ0BUm4VtDYFLT4b7hkYLQGDg5BtERkUIRDgX1oWg6deKl359vzEFZO0mwWJgAUjgr88fe7R/2BkVonXVOGOQRQAJSwcp4CWWhKhnI6Vg0TkWYbnc8G7hbCjlLM3SQOBZQDAPgyk3wP+/Vf2Oyu4JV/NHDf1CG/1NREdZuZVRUCeiaLal12iETBQ4E1iN4QaNLqAafMptlw6Yvtwh4cI5CiIm09BAh06fbDbEx7saXp0M9vkDtJELQ5jPQAK1i5Irb+mGwYbEfV2AHiZz7M7YVLNZZ6rLDYACac8xAkwjp6ROf4ePEV19EZmaCrdQXwbzq19V8W68qUH+Hx4OYFnp6ZjJWck4NlUYLVf5pOgpXzdAOCOIg+N1zLIQuPpX9L/XzfXOCrFgAAAABJRU5ErkJggg==) no-repeat center;border:1px solid rgba(255,255,255,0.498039);box-shadow:rgba(0,0,0,0.701961) 0 4px 3px;color:#fff;cursor:pointer;height:11px;width:26px;z-index:1001}.yt-text-overlay .recall-button{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(0,0,0,0);box-shadow:none;height:17px;width:29px}.autoalign .recall-button{margin:auto}.yt-text-overlay.autoalign .recall-button{margin:auto auto 6px}.recall-button:hover{background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAHCAAAAAAUx4O/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAcA+wgIqAAAAEtJREFUCNcVi1kRwEAIQ3GAhEpAAhJWChKQsBIqBQlIQAIS0jQ/OeZFAIz70ARIjdDL2GYF1OMrxZ6JvUugjGoCG5rcJSHv+d/oMx893S/cqF2DpwAAAABJRU5ErkJggg==) no-repeat center}.yt-text-overlay .recall-button:hover{background:rgba(0,0,0,0.15) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAGCAQAAAC7znxOAAAKPWlDQ1BpY2MAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4BUaaISkgChhBgSQOyIqMCIoiKCFRkUccDREZCxIoqFQbH3AXkIKOPgKDZU3g/eGn2z5r03b/avvfY5Z53vnH0+AEZgsESahaoBZEoV8ogAHzw2Lh4ndwMKVCCBA4BAmC0LifSPAgDg+/Hw7IgAH/gCBODNbUAAAG7YBIbhOPx/UBfK5AoAJAwApovE2UIApBAAMnIVMgUAMgoA7KR0mQIAJQAAWx4bFw+AagEAO2WSTwMAdtIk9wIAtihTKgJAowBAJsoUiQDQDgBYl6MUiwCwYAAoypGIcwGwmwBgkqHMlABg7wCAnSkWZAMQGABgohALUwEI9gDAkEdF8AAIMwEojJSveNJXXCHOUwAA8LJki+WSlFQFbiG0xB1cXbl4oDg3Q6xQ2IQJhOkCuQjnZWXKBNLFAJMzAwCARnZEgA/O9+M5O7g6O9s42jp8taj/GvyLiI2L/5c/r8IBAQCE0/VF+7O8rBoA7hgAtvGLlrQdoGUNgNb9L5rJHgDVQoDmq1/Nw+H78fBUhULmZmeXm5trKxELbYWpX/X5nwl/AV/1s+X78fDf14P7ipMFygwFHhHggwuzMrKUcjxbJhCKcZs/HvHfLvzzd0yLECeL5WKpUIxHS8S5EmkKzsuSiiQKSZYUl0j/k4l/s+wPmLxrAGDVfgb2QltQu8oG7JcuILDogCXsAgDkd9+CqdEQBgAxBoOTdw8AMPmb/x1oGQCg2ZIUHACAFxGFC5XynMkYAQCACDRQBTZogz4YgwXYgCO4gDt4gR/MhlCIgjhYAEJIhUyQQy4shVVQBCWwEbZCFeyGWqiHRjgCLXACzsIFuALX4BY8gF4YgOcwCm9gHEEQMsJEWIg2YoCYItaII8JFZiF+SDASgcQhiUgKIkWUyFJkNVKClCNVyF6kHvkeOY6cRS4hPcg9pA8ZRn5DPqAYykDZqB5qhtqhXNQbDUKj0PloCroIzUcL0Q1oJVqDHkKb0bPoFfQW2os+R8cwwOgYBzPEbDAuxsNCsXgsGZNjy7FirAKrwRqxNqwTu4H1YiPYewKJwCLgBBuCOyGQMJcgJCwiLCeUEqoIBwjNhA7CDUIfYZTwmcgk6hKtiW5EPjGWmELMJRYRK4h1xGPE88RbxAHiGxKJxCGZk1xIgaQ4UhppCamUtJPURDpD6iH1k8bIZLI22ZrsQQ4lC8gKchF5O/kQ+TT5OnmA/I5CpxhQHCn+lHiKlFJAqaAcpJyiXKcMUsapalRTqhs1lCqiLqaWUWupbdSr1AHqOE2dZk7zoEXR0miraJW0Rtp52kPaKzqdbkR3pYfTJfSV9Er6YfpFeh/9PUODYcXgMRIYSsYGxn7GGcY9xismk2nG9GLGMxXMDcx65jnmY+Y7FZaKrQpfRaSyQqVapVnlusoLVaqqqaq36gLVfNUK1aOqV1VH1KhqZmo8NYHacrVqteNqd9TG1FnqDuqh6pnqpeoH1S+pD2mQNcw0/DREGoUa+zTOafSzMJYxi8cSslazalnnWQNsEtuczWensUvY37G72aOaGpozNKM18zSrNU9q9nIwjhmHz8nglHGOcG5zPkzRm+I9RTxl/ZTGKdenvNWaquWlJdYq1mrSuqX1QRvX9tNO196k3aL9SIegY6UTrpOrs0vnvM7IVPZU96nCqcVTj0y9r4vqWulG6C7R3afbpTump68XoCfT2653Tm9En6PvpZ+mv0X/lP6wActgloHEYIvBaYNnuCbujWfglXgHPmqoaxhoqDTca9htOG5kbjTXqMCoyeiRMc2Ya5xsvMW43XjUxMAkxGSpSYPJfVOqKdc01XSbaafpWzNzsxiztWYtZkPmWuZ883zzBvOHFkwLT4tFFjUWNy1JllzLdMudltesUCsnq1Sraqur1qi1s7XEeqd1zzTiNNdp0mk10+7YMGy8bXJsGmz6bDm2wbYFti22L+xM7OLtNtl12n22d7LPsK+1f+Cg4TDbocChzeE3RytHoWO1483pzOn+01dMb53+cob1DPGMXTPuOrGcQpzWOrU7fXJ2cZY7NzoPu5i4JLrscLnDZXPDuKXci65EVx/XFa4nXN+7Obsp3I64/epu457uftB9aKb5TPHM2pn9HkYeAo+9Hr2z8FmJs/bM6vU09BR41ng+8TL2EnnVeQ16W3qneR/yfuFj7yP3OebzlufGW8Y744v5BvgW+3b7afjN9avye+xv5J/i3+A/GuAUsCTgTCAxMChwU+Advh5fyK/nj852mb1sdkcQIygyqCroSbBVsDy4LQQNmR2yOeThHNM50jktoRDKD90c+ijMPGxR2I/hpPCw8OrwpxEOEUsjOiNZkQsjD0a+ifKJKot6MNdirnJue7RqdEJ0ffTbGN+Y8pjeWLvYZbFX4nTiJHGt8eT46Pi6+LF5fvO2zhtIcEooSrg933x+3vxLC3QWZCw4uVB1oWDh0URiYkziwcSPglBBjWAsiZ+0I2lUyBNuEz4XeYm2iIbFHuJy8WCyR3J58lCKR8rmlOFUz9SK1BEJT1IleZkWmLY77W16aPr+9ImMmIymTEpmYuZxqYY0XdqRpZ+Vl9Ujs5YVyXoXuS3aumhUHiSvy0ay52e3KtgKmaJLaaFco+zLmZVTnfMuNzr3aJ56njSva7HV4vWLB/P9879dQlgiXNK+1HDpqqV9y7yX7V2OLE9a3r7CeEXhioGVASsPrKKtSl/1U4F9QXnB69Uxq9sK9QpXFvavCVjTUKRSJC+6s9Z97e51hHWSdd3rp6/fvv5zsaj4col9SUXJx1Jh6eVvHL6p/GZiQ/KG7jLnsl0bSRulG29v8tx0oFy9PL+8f3PI5uYt+JbiLa+3Ltx6qWJGxe5ttG3Kbb2VwZWt2022b9z+sSq16la1T3XTDt0d63e83SnaeX2X167G3Xq7S3Z/2CPZc3dvwN7mGrOain2kfTn7ntZG13Z+y/22vk6nrqTu037p/t4DEQc66l3q6w/qHixrQBuUDcOHEg5d+873u9ZGm8a9TZymksNwWHn42feJ398+EnSk/Sj3aOMPpj/sOMY6VtyMNC9uHm1JbeltjWvtOT77eHube9uxH21/3H/C8ET1Sc2TZadopwpPTZzOPz12RnZm5GzK2f72he0PzsWeu9kR3tF9Puj8xQv+F851eneevuhx8cQlt0vHL3Mvt1xxvtLc5dR17Cenn451O3c3X3W52nrN9Vpbz8yeU9c9r5+94Xvjwk3+zSu35tzquT339t07CXd674ruDt3LuPfyfs798QcrHxIfFj9Se1TxWPdxzc+WPzf1Ovee7PPt63oS+eRBv7D/+T+y//FxoPAp82nFoMFg/ZDj0Ilh/+Frz+Y9G3guez4+UvSL+i87Xli8+OFXr1+7RmNHB17KX078VvpK+9X+1zNet4+FjT1+k/lm/G3xO+13B95z33d+iPkwOJ77kfyx8pPlp7bPQZ8fTmROTPwTA5jz/CVjM6IAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAJAAAABgBkh0tHAAAALElEQVQI12P4zwCBv9JgLLjAr/8wQYTAf5ggsgBUEFXg/6//v9IYf/1nQAMAapVB10c/DEAAAAAASUVORK5CYII=) no-repeat center;border:1px solid rgba(255,255,255,0.5)}.auto-hide{display:none}body:hover .auto-hide{display:block}.attribution-button{bottom:12px;color:#fff;font:11px arial,sans-serif;position:absolute;right:5px;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;z-index:1001}.yt-text-overlay .attribution-button{color:#888;text-shadow:none}.viewmode-fullscreen .attribution-button{bottom:auto;right:22px;top:5px}.yt-text-overlay.viewmode-fullscreen .attribution-button{right:5px;top:auto}.text-container .attribution-button{bottom:7px}.container{position:absolute;width:100%;z-index:1000}.container.autoalign{bottom:0;text-align:center}.container-stack{background-color:#666;border-radius:5px;display:block;padding:3px 0}.container-rotator .attribution-button{bottom:7px}.container-rotator .text-inner-container{left:20px}.container-selector{-webkit-box-shadow:0 4px 3px rgba(0,0,0,.7);-moz-box-shadow:0 4px 3px rgba(0,0,0,.7);box-shadow:0 4px 3px rgba(0,0,0,.7);background:#666;border-radius:2px;cursor:pointer;height:10px;left:5px;position:absolute;width:10px;z-index:1002}.container-selector:hover{background:#fff}.container-rotator .container-highlight:hover{border-color:#fff!important}.container-stack .container-highlight:hover{background-color:#999!important}.container-active{background:#fc0!important}.container-slider .attribution-button{bottom:7px}.container-slider .controls{max-width:100%!important}.container-slider .text-container{background-color:#000;border-radius:5px 5px 0 0;margin-bottom:0}.container-slider .text-title:hover{text-decoration:underline!important}.container-slider.hidden .controls{top:38px}.container-slider.animated .controls{-webkit-transition:top .4s;-moz-transition:top .4s;-o-transition:top .4s;transition:top .4s}.controls{display:inline-block;position:relative}.controls.scalable{display:block;min-width:320px;max-width:450px}.autoalign .controls.scalable{margin:auto}.flash-container,.image-container{display:inline-block;position:relative}.flash-container.click-capture .click-layer{display:block}.click-layer{background:rgba(0,0,0,0.0);bottom:0;left:0;position:absolute;right:0;top:0;z-index:100}.text-container{margin-bottom:5px;position:relative}.yt-text-overlay .text-container{margin-bottom:3px}.text-inner-container{background-image:-webkit-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-moz-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-ms-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:-o-linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));background-image:linear-gradient(top,rgba(20,20,20,0.6),rgba(209,209,209,0.6));border:1px solid rgba(102,102,102,0.7);border-radius:3px;box-shadow:rgba(0,0,0,0.7) 0 5px 5px;padding-left:10px;position:absolute;text-align:left;top:0;bottom:0;left:0;right:0}.yt-text-overlay .text-container .text-inner-container{background-color:rgba(0,0,0,0.6);background-image:none;border:1px solid rgba(0,0,0,0.6);border-radius:0;box-shadow:none;padding-left:10px}.viewmode-fullscreen .text-inner-container{background-image:none;border:none;box-shadow:none}.yt-text-overlay .controls:hover .text-inner-container{border:1px solid rgba(58,58,58,1.0)}.text-title{text-decoration:underline}.yt-text-overlay .text-title{text-decoration:none}.viewmode-fullscreen .text-title{text-decoration:none}.yt-text-overlay .controls:hover .text-container .text-title{text-decoration:underline}.text-image-link{float:left;position:relative}.text-image{box-shadow:rgba(0,0,0,0.498039) 0 3px 5px;height:57px;margin:3px 10px 0 0;width:79px}.yt-text-overlay .text-image{margin:2px 10px 0 0}.text-image-duration{background:#000;color:#fff;font:10px arial,sans-serif;padding:2px;position:absolute;right:10px;top:43px}.text-title{color:#fff;display:block;font:bold 14px arial,sans-serif;margin:7px 16px 0 0;overflow:hidden;padding-bottom:4px;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-title{margin-top:7px;text-shadow:#000 0 -1px 0}.text-description{color:#fff;font:12px arial,sans-serif;margin-top:-3px;overflow:hidden;text-overflow:ellipsis;text-shadow:rgba(0,0,0,0.7) 0 4px 4px;white-space:nowrap}.yt-text-overlay .text-description{text-align:left;text-shadow:none}.text-ad-channel{bottom:7px;color:#f9fcc0;font:bold 11px arial,sans-serif;left:10px;position:absolute;text-decoration:none;text-shadow:rgba(0,0,0,0.7) 0 4px 4px}.yt-text-overlay .text-ad-channel{bottom:9px;color:#eade90;font-weight:normal;left:10px;text-shadow:#000 0 -1px 0}.pyv .text-ad-channel{left:99px}.yt-text-overlay .pyv .text-ad-channel{left:99px}.viewmode-fullscreen .text-ad-channel{color:#ccc}.yt-text-overlay.viewmode-fullscreen .text-ad-channel{color:#eade90}.ima-sdk-frame body{background:transparent;height:100%;margin:0;overflow:hidden}.ima-sdk-frame{height:100%}.ima-sdk-frame-native body{background:#000}.ima-sdk-frame-native video{bottom:0;left:0;margin:auto;right:0;top:0}.ytp-iv-drawer-open .videoAdUiTopBar,.ytp-iv-drawer-open .videoAdUiPreSkipContainer,.ytp-iv-drawer-open .videoAdUiSkipContainer,.ytp-iv-drawer-open .ad-overlay .container{display:none}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiRedesign .videoAdUi{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;position:absolute;top:36px;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,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiRedesign .videoAdUiTitle{color:rgba(255,255,255,0.75);font:normal 17px arial,sans-serif;max-width:none;margin:0;position:absolute;top:14px;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,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAACISURBVAjXPY6xDYJAAADPj0NQ27CAPBsYEztI2MGO6C4mbIAWdLbGglYbrUgMOsnZoNddrjlEXNr68OnRKDITKraceRFYsOHACTN7c3FwEHN7I3bWIhYWItZ2+DEVsbERMfU9BwIAK/4EbpOGKa65Y7Q3iqWlkyFWXtybmLjzaiWImNk6Ov7mvwScZI0STqHEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==);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,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAACISURBVAjXPY6xDYJAAADPj0NQ27CAPBsYEztI2MGO6C4mbIAWdLbGglYbrUgMOsnZoNddrjlEXNr68OnRKDITKraceRFYsOHACTN7c3FwEHN7I3bWIhYWItZ2+DEVsbERMfU9BwIAK/4EbpOGKa65Y7Q3iqWlkyFWXtybmLjzaiWImNk6Ov7mvwScZI0STqHEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==);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;text-decoration:none}.videoAdUiRedesign .videoAdUiVisitAdvertiserLinkText{display:inline-block;margin:0 5px;text-decoration:inherit}.videoAdUiRedesign .videoAdUiVisitAdvertiserIcon{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAABXSURBVAjXVY6xDYAwEMT8iBaJDWAWhFDYfwCo6MgKpiEh+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;display:inline-block;margin:0 5px;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,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAQAAACY0sZTAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAABoAAAAeAGPeoysAAACqSURBVDjL7ZJBEcIwEEU3GEgdREIlBAeVgITUQSSAk0oAB5VQHJQqeBwomcAMZHNghkPfKZvJn5+/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,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);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*dV(sY(this));this.A=new QY(d,e,l);e=d.Y;null!=e&&(sY(this).N=e,d.S&&fZ(this,e));e=[];d.C&&e.push("adAttribution");d.j&&e.push("countdown")}else d&&this.o.po&&(sY(this).N=d,fZ(this,d));d=this.F;e=this.j;l=this.B.sl();p=this.A;$Y(d);d.C.F=a.Y;d.j=e;d.A=p||null;d.j.Si();d.B=new ZY(d.j);d.H=l||null;d.o=new En(d);d.o.M(a,"measurable_impression",d.SA);d.o.M(a,"viewable_impression",d.lC);d.o.M(d.j,"timeUpdate",d.Uy);d.o.M(d.j,"volumeChange",d.Vy);d.o.M(d.j,"pause",d.Ry);d.o.M(d.j,
"play",d.Sy);d.o.M(d.j,"end",d.Ny);d.o.M(d.j,"beginFullscreen",d.Py);d.o.M(d.j,"endFullscreen",d.xA);d.o.M(d.j,"skip",d.Qp);d.o.M(d.j,"skipShown",d.ir);d.o.M(d.j,"start",d.Ty);d.o.M(d.j,"error",d.Oy);d.o.M(d.j,"mediaLoadTimeout",d.Qy);null!=d.A&&(d.o.M(d.A,"videoAuthorIconClicked",d.VB),d.o.M(d.A,"videoAuthorClicked",d.UB),d.o.M(d.A,"videoClicked",d.XB),d.o.M(d.A,"videoLearnMoreClicked",d.cC),d.o.M(d.A,"videoTitleClicked",d.kC),d.o.M(d.A,"videoShareClicked",d.hC),d.o.M(d.A,"videoShareShown",d.iC),
d.o.M(d.A,"skipshown",d.ir),d.o.M(d.A,"skip",d.Qp),d.o.M(d.A,"PUBLISHER_INVOKED_SKIP",d.iB));uY(this).M(this.F,"engagedview",this.yd);uY(this).M(this.F,"videoAuthorIconClicked",this.yd);uY(this).M(this.F,"videoAuthorClicked",this.yd);uY(this).M(this.F,"videoClicked",this.yd);uY(this).M(this.F,"videoLearnMoreClicked",this.yd);uY(this).M(this.F,"videoShareClicked",this.yd);uY(this).M(this.F,"videoShareShown",this.yd);uY(this).M(this.F,"videoTitleClicked",this.yd);uY(this).M(this.j,"loaded",this.dC);
uY(this).M(this.j,"timeUpdate",this.jC);uY(this).M(this.j,"volumeChange",this.Ay);this.Wf(a);d=AW(a,this.j);this.C.j=d;d=a.j;null!=d&&d instanceof mU&&(this.Xe(d,IJ),this.xj(d),d=uY(this),Hn(d,this.F,"error",this.yy,this),Hn(d,this.F,"mediaLoadTimeout",this.zy,this));gZ(this,a);FU(a)&&(this.F.G=30);this.j.Wm(hZ(this,a));this.j.load(b,c)}};
f.xC=function(a,b,c){this.Z||(this.Z=!0,this.wa("contentPauseRequested"));this.O=!0;this.jz(a,b,c);this.setVolume(this.S);this.A&&(A(B(iZ(a)))?(b=this.A,null!=b.F&&(b.A.Ia(b.F,"click",b.Yj),Ig(b.F,"cursor","default"))):(b=this.A,null!=b.F&&(b.A.M(b.F,"click",b.Yj),Ig(b.F,"cursor","pointer"))),b=a.j.da,lb(b)||TY(this.A,b),this.A.j.o||!JT(956001)&&!JT(956002)||(c=a.getExtension("AdSense"),null!=c?(b=this.A,c=B(c.o),null!=b.G&&(fh(b.G,!0),c=B(c).replace(/^www\./i,""),A(c)?ee(b.G,b.j.visitAdvertiserText):
ee(b.G,c)),null!=b.J&&fh(b.J,!0)):(b=this.A,null!=b.G&&fh(b.G,!1),null!=b.J&&fh(b.J,!1))),b=this.A,null!=b.o&&fh(b.o,!0));this.B.Pi();try{vY(this,a)}catch(d){jZ(this,rK,d);return}XR.getInstance().end("pi");XR.getInstance().start("bt");this.j.play()};function kZ(a,b,c,d){b=RS(b.j,c);lb(b)||(a[d]=b[0].j)}
function lZ(a,b,c){b=c.getExtension(b);null!=b&&(kZ(a,b,"annotation_click","cta_annotation_clicked"),kZ(a,b,"annotation_close","cta_annotation_closed"),kZ(a,b,"annotation_start","cta_annotation_shown"))}function hZ(a,b){var c=XU(b)&&!b.I?PU(b):null,d=FU(b)&&!GU(b),e=null!=a.A&&a.o.Ll&&a.A.j.B,g=b.A,h=DU(b),k;a.A?(k={},lZ(k,"AdSense",b),lZ(k,"dart",b),lZ(k,"DFP",b)):k=null;return new RQ(h,c,k,e,d,a.o.loadVideoTimeout,g?g.Mg:!1,!1)}
function mZ(a){var b=0;D(a.ads,function(a){!nZ(a)||gL()&&0!=b||b++},a);var c=1;D(a.ads,function(a){var e=a.C;e.B=b;nZ(a)&&(e.o=c,e.C=c,c++)},a)}function nZ(a){a=a.j;return null!=a&&a instanceof mU}function oZ(a){return gb(a.ads,function(a){return gb(pZ(a),function(a){return!A(B(qP(a.o)))})},a)}function iZ(a){var b=a.o;return b&&b.H&&(b=b.B,!lb(b)&&b[0]instanceof mU)?b[0].Wc():cV(a)}function pZ(a){var b=a.o;if(b&&b.H&&(b=b.B,!lb(b)&&b[0]instanceof mU))return b[0].H;b=a.j;return nZ(a)?b.H:[]}
function qZ(a,b){if(tL.getInstance().j){var c=new jk,d=!1;D(pZ(b),function(a){c.add(a.j);"VPAID"==a.A&&(d=!0)},a);var e=a.j.wl(),e={aid:PU(b),mt:c.Oa().join(","),smt:e.join(","),hvp:d,st:JU(b).join(",")};uL(tL.getInstance(),28,e)}}function rZ(a,b,c){try{var d=E(a,function(a){return a.Td}),e=E(a,function(a){return a.j}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.Td,selmt:null===c?"":c.j,nat:!1};uL(tL.getInstance(),22,g)}catch(h){}}f.jj=function(){mZ(this);sZ(this)};
function sZ(a){a.Y||(a.Y=!0,a.wa("loaded"),a.X(new FY(sY(a))))}f.Rc=function(a,b,c){cZ.K.Rc.call(this,a,b,c);a=oZ(this);this.j=this.B.Oi(a);i:{if(tY(this)&&(b=this.H.getExtension("InfoCards"),b=null!=b?b.o:null,null!=b))break i;b=""}i:{if(tY(this)&&(c=this.H.getExtension("InfoCardsTracking"),c=null!=c?c.o:null,null!=c))break i;c=""}a&&(b||c)&&this.j.Gp(b,c)};f.skip=function(){tY(this)&&FU(sY(this))&&(null!=this.A?this.A.skip():(yY(this,"skip"),tZ(this)))};f.Qm=function(){this.dc("skipshown")};
f.start=function(){cZ.K.start.call(this);XR.getInstance().start("pi");try{var a=sY(this),b;if(!nZ(a))throw YK(NK);var c=a.j,d=c.ma;if(A(B(d))){var e=pZ(a),g=this.j.Mr(e,this.o.bitrate,this.o.mimeTypes||[],null!=a&&(gL()||this.B.Qi()||this.B.Ol()||kd||Ma(Uc,"Mobile")));rZ(e,this.o.bitrate,g);if(null!=g)b=c.ga=g;else{try{qZ(this,a)}catch(h){}throw YK(FK);}}else b=new tP("","","",0,0,0,0,0,d,"");this.J=b;zn(x(cZ.prototype.xC,this,a,this.J.o,this.J.j))}catch(k){uZ(this,k),this.fh(),tY(this)?(ZK(YK,this,
TK,k,void 0),this.start()):(this.O?ZK(YK,this,TK,k,void 0):(null!=this.D&&HR(this.D,ER()),$K(this,TK,k)),this.stop())}};f.Dp=function(){wY(this);return this.j.Og()?0:this.j.rd()};f.setVolume=function(a){wY(this);this.O?this.j.setVolume(a):this.S=a};
f.setMediaUrl=function(a){wY(this);var b;if(b=tY(this))b=null!=sY(this).A;if(b){b=sY(this);var c=b.A.location,d;if(d=null!=c)(d=dK(ZJ,c))||(d=nf(new J(c)),d=null!=d?ua(d,".corp.google.com")||"corp.google.com"==d:!1),d=d||(null!=c?dK(aK,c):!1);(d||gL())&&null!=b.j&&b.j instanceof mU&&b.j.setMediaUrl(a)}};f.pause=function(){wY(this);this.j.pause()};f.resume=function(){wY(this);this.j.play()};
f.getRemainingTime=function(){wY(this);var a=this.j.od(),b=this.j.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.zf=function(){return this.j.zf()};f.yy=function(){jZ(this,TK,YK(TK,this.j.Hp()))};f.zy=function(){jZ(this,IK,YK(IK,null,(this.o.loadVideoTimeout/1E3).toString()))};function jZ(a,b,c){uZ(a,c);a.fh();tY(a)?(ZK(YK,a,b,c,void 0),a.start()):($K(a,b,c),a.stop())}function uZ(a,b){var c=YK(TK,b),c=uW(c,sY(a),a.j),d=KU(sY(a));lK(d,c)}
function vZ(a){if(hL.j){var b=iZ(sY(a));null!=b&&gK(b)}a.wa("click")}function gZ(a,b){var c=b;do c.F.forEach(function(a){D(IJ,function(b){var c=RS(a.j,b);lb(c)||wZ(this,b,c)},this);qY(this.C,a.F)},a),c=c.o;while(c)}function wZ(a,b,c){D(c,function(a){SS(this.C.o,a.A,a.j)},a);xZ(a,b)}function xZ(a,b){Nb(LJ,b)&&Hn(uY(a),a.F,b,a.yd,a)}
f.yd=function(a){switch(a.type){case "start":a=XR.getInstance();if(a.j){var b={};if(null!=this.J){var c=nf(new J(this.J.o));if(null!=c){var c=Za(c,".",10),d=c.length;2<=d&&(b.dn=c[d-2]+"."+c[d-1])}b.br=this.J.Ud;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.Ml(),b.ps=c.width+"x"+c.height);c=this.J.F;A(B(c))||(b.vc=c)}a.end("bt",b)}a=XR.getInstance();a.j&&(b=ZR(a,"ff",a.B),iK(b),a.B=0);this.wa("start");break;case "impression":this.wa("impression");
break;case "pause":this.wa("pause");break;case "resume":this.wa("resume");break;case "firstquartile":this.wa("firstquartile");break;case "midpoint":this.wa("midpoint");break;case "thirdquartile":this.wa("thirdquartile");break;case "complete":this.wa("complete");eZ(this);break;case "click":this.A&&this.A.j.A?this.j.Pg()?this.resume():this.pause():vZ(this);break;case "engagedview":b=sY(this);a=b.N;GU(b)&&!gL()&&!this.B.Qi()&&a&&(b=this.j.getCurrentTime(),c=this.j.od(),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)),iK(d.toString()));this.wa("engagedview");break;case "videoAuthorIconClicked":yZ(this);break;case "videoAuthorClicked":yZ(this);break;case "videoClicked":this.wa("videoClicked");break;case "videoLearnMoreClicked":this.j.pause();vZ(this);break;case "videoShareClicked":a=sY(this).O;null!=a&&(a=a.videoId,
b=this.o.baseYouTubeUrl,A(B(a))?a=null:(b=new J((null!=b?b:"//www.youtube.com/")+"watch"),c=b.j,c.set("v",a),ef(b,c),b.xf="action=share",a=b.toString()),null!=a&&(gK(a),a=zZ(this),null!=a&&hK(a,"sharebuttonclicked")));break;case "videoShareShown":a=zZ(this);null!=a&&hK(a,"sharebuttondisplayed");break;case "videoTitleClicked":a=sY(this);b=a.O;null!=b&&(a=sP(b.videoId,null!=YU(a),this.o.baseYouTubeUrl),null!==a&&(this.j.pause(),gK(a)));break;case "skipshown":this.wa("skippableStateChanged");break;case "skip":tZ(this)}};
function zZ(a){var b=sY(a).getExtension("AdSense");if(!(b=null!=b?new J(b.A):null))i:{if(a=OU(sY(a)))if(a=kU(a,"start"),!lb(a)){b=new J(a[0].j);break i}b=null}return b}function tZ(a){zn(function(){this.wa("skip");eZ(this)},0,a)}f.Wf=function(a){cZ.K.Wf.call(this,a);xZ(this,"impression")};f.Xe=function(a,b){cZ.K.Xe.call(this,a,b);D(b,function(a){xZ(this,a)},this)};f.xj=function(a){cZ.K.xj.call(this,a);a instanceof mU&&(a=nU(a),D(a.La(),function(a){xZ(this,a)},this))};
f.getMediaUrl=function(){if(!tY(this))return null;var a=sY(this);if(!nZ(a))throw YK(NK);a=a.j.H;return lb(a)?null:(a=a[0].o,gL()&&JT(952626)&&(a=new J(a),af(a,"https"),a=a.toString()),a)};f.dC=function(){sZ(this)};
f.jC=function(){var a=this.j.od(),b=this.j.bp(),c=this.j.getCurrentTime(),d=0,e=0;tY(this)&&(e=sY(this),d=e.C.o,e=e.C.B);if(null!=this.A&&0<=a&&0<=c){var g;if(g=!this.V)g=3==sY(this).pa;if(g){g=this.j.od();var h=dV(sY(this));g=Math.abs(g-h);2<g&&(g=YK(MK,null,Number(g).toFixed(2)),g=uW(g,sY(this),this.j),h=KU(sY(this)),lK(h,g));this.V=!0}this.A.update(c,b,a,d,e)}};f.Ay=function(){var a=this.j.rd();a!=this.S&&(this.S=a,this.wa("volumeChange"),0==a&&this.wa("mute"))};
function fZ(a,b){GY(b,function(a){a=new NT(a);gV(sY(this))==a.videoId&&(AZ(this,a),!A(B(a.channelId))&&a.j&&IY(a.channelId,function(a){a=new LT(a);if(null!=this.A){var b=this.A,c=a.o;b.j.V=!A(B(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 XP(c,void 0)).getContent()));RY(b);b=this.A;c=a.j;b.j.R=!A(B(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")}RY(b)}sY(this).J=a;this.wa("youTubeChannelMetadata");if(a=this.A)a=sY(this),b=a.O,a=gL()&&lb(OR(a))&&null!=a.J&&null!=b&&b.j;if(a){a=sY(this);uY(this).M(window,"message",this.gx);var b=sY(this),c=b.J.channelId,h=DU(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 rV("1",new H(300,250),"IFrame",null,l.toString());c.hh(b);c.F=!0;a.D=[new iV(c,[],null)];vY(this,a)}},this))},a)}f.gx=function(a){var b=a.j;if("companion-setup-complete"==b.data){a=sY(this);var c=encodeURIComponent(B(cV(a)))+","+encodeURIComponent(zZ(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=cV(a)?210:185}else"pause-video"==b.data&&this.pause()};
function AZ(a,b){if(null!=a.A&&b.j){var c=a.A,d=b.title;c.j.D=!A(B(d));c.j.title=d;hc.test(gc(c.j.title,void 0));null!=c.D&&ee(c.D,c.j.title);RY(c);c=a.A;null!=c.da?ee(c.da,rQ()):null!=c.H&&ee(c.H,rQ())}sY(a).O=b;a.wa("youTubeVideoMetadata")}function yZ(a){var b;b=sY(a).J;if(null!=b){var c;c=a.o.baseYouTubeUrl;b=B(b.channelId);c=A(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(ta(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.j.pause(),gK(c))}};function BZ(a){this.j=a}f=BZ.prototype;f.sl=function(){return this.j.sl()};f.xl=function(){return this.j.xl()};f.Cf=function(){return this.j.Cf()};f.Oi=function(a){return this.j.Oi(a)};f.Ml=function(){return this.j.Ml()};f.Nl=function(){return this.j.Nl()};f.Ol=function(){return this.j.Ol()};f.Qi=function(){return this.j.Qi()};f.$=v;f.Pi=v;f.Ij=v;function CZ(a,b,c,d,e,g,h){T.call(this);this.B=this.D=0;this.F=a;this.ed=b;this.ca=c;this.C=null;this.I=d;this.V=g;this.S=hL.o;this.j=null;this.Y="normal";this.O=null;this.J=e;this.o=[];this.Z=this.H=this.U=this.N=!1;this.R=h;DZ(this)}z(CZ,T);f=CZ.prototype;f.init=function(a,b,c){EZ(this,c);null==this.G&&(this.G=new En(this),Hn(this.G,this.I,"adsLoaderSdkAdLoaded",this.Dz,this),Hn(this.G,this.I,"adsLoaderSdkAdError",this.Az,this));FZ(this)};
f.start=function(){this.N=!0;GZ(this);0<this.o.length?HZ(this):("always"==hL.o&&null!=this.R&&HR(this.R,ER()),ZK(WK,this,wK,void 0,void 0),0==this.ed&&this.X("contentResumeRequested"),IZ(this))};f.destroy=function(){null!=this.G&&(this.G.dispose(),this.G=null);JZ(this);hL.o=this.S;this.N=!1};f.getCurrentAd=function(){return this.B<this.o.length?this.o[this.B].j[0]:null};function KZ(a){return null!=a&&WU(a,"nonlinear")}f.yb=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.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 EZ(a,b){null!=b&&(a.Y=b);null!=a.j&&(a.j.Ri(b),a.j.Ng())}function DZ(a){D(a.F,function(a){a=new J(a.A.adTagUrl);var c=tf(a,"max_ad_duration");n(c)||tf(a,"pmxd")})}
f.Dz=function(a){hL.o=this.S;var b=a.D;lb(b)||(a=a.C,a.j&&D(b,function(a){a.ga=!1},this),gL()&&!lb(b)&&0==this.ed&&KZ(b[0])&&"ADSENSE"==NR(b[0])&&(this.H=!0),nb(this.o,new xS(b,a.j,a.o)));this.D++;FZ(this)};f.Az=function(a){a=a.A;hL.o=this.S;a.getMessage();ZK(WK,this,wK,void 0,void 0);this.D++;FZ(this)};function FZ(a){a.D<a.F.length&&null!=a.F[a.D]&&!(2<=a.o.length-a.B)?LZ(a):a.U||(a.X("adBreakInitialized"),a.U=!0)}function LZ(a){var b=a.F[a.D];hL.o="on_master_ad";$X(a.I,b.A,b)}
function GZ(a){null==a.ed||gb(a.o,function(a){return!a.o})||(a.o=eb(a.o,function(a){return!(a.o&&!a.A)}))}function MZ(a){a.X("contentResumeRequested");IZ(a)}
function HZ(a){if(a.B<a.o.length){var b=a.o[a.B];try{if(a.H||(JZ(a),a.j=NZ(a,b.j),OZ(a)),a.j.init(a.Y),null!=a.O&&a.j.setVolume(a.O),PZ(a.j))a.X("contentResumeRequested"),a.J.Ij(),a.j.start(),null!=a.C&&a.C.start();else{var c=a.j;if(null!=c&&c instanceof cZ)a.J.Pi(),a.j.start();else throw Error("Unknown ads manager type.");}}catch(d){a.B++,HZ(a)}a.D<a.F.length&&null!=a.F[a.D]&&LZ(a)}else MZ(a)}
function NZ(a,b){var c=null;if(null!=a.I.C)c=cY(b);else if(CU(b[0]))c=new cZ(b);else if(KZ(b[0]))c=new zY(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 En(a);Hn(a.A,c,"companionBackfill",a.yq,a);c.Rc(new BZ(a.J),{currentTime:0},a.V);return c}function JZ(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.YA=function(){JZ(this);IZ(this)};f.Bz=function(){this.B++;HZ(this)};
function OZ(a){if(null==a.j)throw Error("The current ads manager is not defined");var b=a.j;Hn(a.A,b,"adError",a.Bz,a);Hn(a.A,b,"click videoClicked start pause resume firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),a.yq,a);a.A.M(b,["allAdsCompleted"],v);Hn(a.A,b,"contentPauseRequested",a.uy,a);Hn(a.A,b,"contentResumeRequested",a.vy,a);PZ(a.j)&&(b=OU(sY(a.j)).na,0<b||a.V.vo)&&(0>b&&(b=15),null!=a.C&&a.C.dispose(),a.C=new xn(1E3*b),Kn(a.A,a.C,"tick",a.YA,a))}
f.vy=function(){this.B++;HZ(this)};f.uy=function(){this.Z||(this.X("contentPauseRequested"),this.Z=!0)};function PZ(a){return null!=a&&a instanceof zY}function IZ(a){a.N=!1;a.X("allAdsCompleted")}f.yq=function(a){QZ(this,a.type,a.getAd());this.X(a)};function QZ(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;cb(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.ca;b.j=a.ed}};function RZ(a){jm.call(this,a);this.A=null}z(RZ,jm);function SZ(a,b,c){T.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;TZ(this,b)}z(SZ,T);function UZ(a){this.j=a;this.A=this.o=!1}function VZ(a){null!=a.A&&(a.A.dispose(),a.A=null);a.o.stop();a.B=!1}function WZ(a){if(a.B){var b=F(a.j,function(a){return-1==a.j},a);null!=b&&XZ(a,!0,b)}}
function TZ(a,b){D(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Eb(this.j,new UZ(a),function(a,b){return yb(a.j,b.j)})},a)}SZ.prototype.C=function(){if(this.B){var a=this.o.currentTime;if(isNaN(a)||0>a)YZ(this);else{var b=ZZ(this,a);this.D?D(b,function(a){XZ(this,!0,a)},this):XZ(this,!0,ab(b));XZ(this,!1,$Z(this,a))}}};function ZZ(a,b){for(var c=[],d=0;d<a.j.length;d++){var e=a.j[d];-1!=e.j&&e.j<=b&&nb(c,e)}return c}
function $Z(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}SZ.prototype.F=function(){YZ(this)};function YZ(a){a.X(new RZ("contentTrackingError"))}function XZ(a,b,c){if(null!=c){if(!c.o){var d=new RZ("requestAds");d.A=c.j;a.X(d);c.o=!0}b&&!c.A&&(b=new RZ("playAds"),b.A=c.j,a.X(b),c.A=!0)}};function a_(a,b){Q.call(this);this.A=a;this.o=-1;this.j=b}z(a_,Q);function b_(a,b){if(0==b.ed||0>=a.j||0>=a.o)return!1;var c=y()/1E3,d=b.ed-a.A.currentTime;0<d&&(c+=d);return c-a.o<=a.j};function aY(a,b){rY.call(this,[]);this.S=a;this.I=new xe;this.A=this.j=null;this.Z=new fp;this.F=null;this.O=b;this.U=this.Y=!1;this.J=null;this.ca=this.da=-1;this.V=null}z(aY,rY);f=aY.prototype;
f.Rc=function(a,b,c){null!=this.A&&(VZ(this.A),this.A.dispose(),this.A=null);aY.K.Rc.call(this,a,b,c);c=this.S.j.La();b=new $Q(b);this.A=new SZ(b,c,{prefetch:4});D(c,function(b,c){if(isNaN(b))throw WK(pK,null,"timeOffset",b+"");var g=ga(b)&&!isNaN(b)?this.S.j.get(b,[]):[];if(!lb(g)){g=new CZ(g,b,0==b||-1==b?b:c,this.O,a,this.o,this.D);if(ze(this.I,b))throw WK(BK,null,"Multiple ad breaks cannot share same ad play time.");this.I.set(b,g)}},this);this.J=ab(c);gb(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){aY.K.init.call(this,a);null!=this.A&&(c_(this),a=uY(this),Hn(a,this.A,"requestAds",this,this),Hn(a,this.A,"playAds",this,this),Hn(a,this.A,"contentTrackingError",this,this),Hn(a,this.A,"adBreakReady",this.yz,this),Hn(a,this.O,"contentComplete",this.fA,this),this.O.j=!1,a=this.A,a.B||(null==a.A&&(a.A=new En(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.S.j.get(0,[]):[],lb(a)&&this.wa("contentResumeRequested"))};
f.jj=function(){this.Ne();this.X(new FY(null))};f.destroy=function(){this.dispose()};f.P=function(){this.O.j=!0;if(0<this.I.Ta()){var a=this.I.Oa();D(a,this.ri,this);this.I.clear()}c_(this);d_(this);null!=this.B&&(this.B.$(),this.B=null);aY.K.P.call(this)};f.start=function(){aY.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){aY.K.setVolume.call(this,a);null!=this.j&&this.j.setVolume(a)};f.Ng=function(){aY.K.Ng.call(this);var a=Kd(window);this.da=a.width;this.ca=a.height;null!=this.j&&EZ(this.j,this.N)};f.getRemainingTime=function(){return null!=this.j?this.j.getRemainingTime():-1};f.Ne=function(){return this.S.j.La()};f.getCurrentAd=function(){return null!=this.j?this.j.getCurrentAd():null};f.Lr=function(){};f.handleEvent=function(a){"contentTrackingError"!=a.type&&(hp(this.Z,a),e_(this))};
function c_(a){null!=a.G&&(a.G.dispose(),a.G=null);a.Y=!1;null!=a.A&&VZ(a.A)}
function e_(a){if(null==a.F){var b=ip(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,e_(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.F=null,e_(a);else if(null!=a.V&&b_(a.V,c))a.F=null,e_(a);else if("requestAds"==b.type)c.H?a.F=null:(b=c,c=uY(a),Hn(c,b,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume companionBackfill log".split(" "),a.X,a),Hn(c,b,"allAdsCompleted",a.sq,a),Hn(c,
b,"contentPauseRequested",a.Bp,a),Hn(c,b,"contentResumeRequested",a.Cp,a),Hn(c,b,"adBreakInitialized",a.tq,a),b.init(a.da,a.ca,a.N));else if("playAds"==b.type)if(null!=a.j&&a.j.yb()&&a.ri(a.j),a.j=c,a.j.setVolume(a.volume),EZ(a.j,a.N),a.j.H&&a.content.currentTime<a.o.Im){TZ(a.A,[a.o.Im]);a.wa("contentResumeRequested");b=a.j;if(b.B<b.o.length){c=b.o[b.B];JZ(b);try{b.j=NZ(b,c.j),OZ(b)}catch(d){b.B++,HZ(b)}}else MZ(b);a.F=null}else a.j.start()}}}
f.ri=function(a){a.destroy();this.I.remove(a.ed);this.j=null;null!=this.G&&(this.G.Ia(a,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),this.X,!1,this),this.G.Ia(a,"allAdsCompleted",this.sq,!1,this),this.G.Ia(a,"contentPauseRequested",this.Bp,!1,this),this.G.Ia(a,"contentResumeRequested",this.Cp,!1,this),this.G.Ia(a,"adBreakInitialized",this.tq,!1,this))};
f.fA=function(a){this.Y=!0;-1==this.J?a.B=!1:gL()&&0!=this.I.Oa().length||f_(this);WZ(this.A)};f.yz=function(a){var b=a.A;-1==b?zn(function(){var a=this.I.get(b);a&&this.ri(a);gL()&&0!=this.I.Oa().length||f_(this)},500,this):0==b&&zn(function(){this.wa("contentResumeRequested")},100,this);a={};a.adBreakTime=b;this.X(new KJ("adBreakReady",null,a))};f.sq=function(a){this.ri(a.target);(0==this.I.Oa().length||!gL()&&this.Y)&&f_(this);this.F=null;e_(this)};
function f_(a){a.U||(a.U=!0,a.O.j=!0,a.wa("allAdsCompleted"),-1==a.J&&d_(a))}function d_(a){jR.clear();null!=a.D&&(a=a.D.De(),null!=a&&yR(a,jR.j))}f.Bp=function(){var a=this.A;a.o.stop();a.B=!1;this.wa("contentPauseRequested")};f.Cp=function(){this.wa("contentResumeRequested");if(!this.U){var a=this.A;a.o.start();a.B=!0}this.F=null};f.tq=function(){this.F=null;e_(this)};f.wa=function(a){var b=null;null!=this.j&&(b=this.j.getCurrentAd());this.X(new KJ(a,b))};
f.Ep=function(a,b){return this.V=new a_(a,b)};function g_(a){rY.call(this,a);this.Z=this.Y=this.S=!1;this.O=[];this.U=Ua();this.j=null;this.A=!0;this.V=-1;this.J=1;this.ca=""}z(g_,rY);f=g_.prototype;
f.init=function(a){g_.K.init.call(this,a);a=eV(sY(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=$e(a,"v",this.o.contentId))}a=B(a)}else{var b=new J(a),c=new J("http://tpc.googlesyndication.com/pagead/js/loader7.html");"https"==b.Mb&&af(c,"https");this.ca=b.rb;a=ef(c,a||"",void 0).toString()}this.F=I("iframe",{src:fK(a),allowtransparency:!0,background:"transparent",
style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});uY(this).M(window,"message",this.pC);uY(this).M(this.F,"load",this.yw);uY(this).M(this.F,"error",this.LA);this.B.Cf().appendChild(this.F)};f.Rc=function(a,b,c){g_.K.Rc.call(this,a,b,c);this.A=OU(sY(this))instanceof mU;this.j=a.Oi(!1);uY(this).M(this.j,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.qA)};f.stop=function(){this.B.$();g_.K.stop.call(this)};
f.start=function(){g_.K.start.call(this);if(!gL()){var a={},b=XR.getInstance();a.pid=b.A;a.dn=this.ca;uL(tL.getInstance(),29,a,!0)}a=sY(this);b=AW(a,this.j);this.C.j=b;if(b=a.j)this.Wf(a),this.Xe(b,IJ),this.xj(b);this.j.Si();this.B.Ij();this.F.style.opacity=1;this.Z=!0;this.A&&this.wa("contentPauseRequested");h_(this)};f.pause=function(){i_(this,"pauseAd")};f.resume=function(){i_(this,"resumeAd")};f.setVolume=function(a){g_.K.setVolume.call(this,a);i_(this,"setAdVolume",{value:a})};
f.P=function(){var a=this.B.Cf();null!=a&&Vd(a);this.A&&this.wa("contentResumeRequested");this.wa("allAdsCompleted");this.S=!1;this.O=[];g_.K.P.call(this)};f.jj=function(){};
f.yw=function(){var a=this.j.wl();lb(a)&&(a=this.o.mimeTypes);j_(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=MU(sY(this)),b=B(cV(sY(this))),b={desiredBitrate:this.o.bitrate,creativeData:a,viewMode:this.N,clickThroughUrl:b};eV(sY(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.o.surveyCreativeData&&(b.creativeData=this.o.surveyCreativeData);j_(this,"initAd",b);D(this.O,function(a){j_(this,a.type,a.params)},
this);this.S=!0;this.O=[]};function i_(a,b,c){a.S?j_(a,b,c):a.O.push({type:b,params:c})}function j_(a,b,c){null!=a.F?(null!=c||(c={}),c.session=a.U,c.type=b,a.F.contentWindow.postMessage(sg(c),"*")):(k_(a,VK,null),a.stop())}
f.pC=function(a){a=a.j;if(a.source==this.F.contentWindow&&(a=qg(a.data),a.session==this.U&&w(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.B.Pi();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||(An(this.V),ga(a)&&-1!=a||(a=30),this.V=zn(this.ZA,1E3*a,this));break;case "AdClickThru":yY(this,"click");this.wa("click");break;case "AdError":k_(this,VK,null);this.stop();
break;case "AdExpandedChange":this.wa("expandedChanged");break;case "AdImpression":this.wa("impression");break;case "AdLinearChange":a=a.isLinear;!this.A&&a?(this.wa("contentPauseRequested"),An(this.V)):!a&&this.A&&(this.wa("contentResumeRequested"),this.A=a,i_(this,"getAdRemainingTime"));this.A=a;break;case "AdLoaded":this.Y=!0;h_(this);this.dc("loaded");break;case "AdPaused":this.dc("pause");break;case "AdPlaying":this.dc("resume");break;case "AdRemainingTimeChange":this.A||i_(this,"getAdRemainingTime");
break;case "AdSkipped":this.dc("skip");break;case "AdStarted":yY(this,"impression");yY(this,"creativeview");this.wa("start");break;case "AdStopped":yY(this,"stop");this.stop();break;case "AdUserAcceptInvitation":this.A?yY(this,"acceptinvitationlinear"):yY(this,"acceptinvitation");break;case "AdUserMinimize":yY(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":yY(this,"start");break;case "AdVideoThirdQuartile":this.dc("thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.J&&this.wa("volumeChange");0==a&&0!=this.J?(yY(this,"mute"),this.wa("mute")):0==this.J&&0!=a&&yY(this,"unmute");this.J=a;this.j.setVolume(a);break;case "Ping":iK(a.url)}};f.LA=function(a){k_(this,CK,a);this.stop()};function k_(a,b,c){var d=YK(b,c),d=uW(d,sY(a)),e=KU(sY(a));lK(e,d);$K(a,b,c)}
f.qA=function(a){switch(a.type){case "timeUpdate":a=this.j.od();var b=this.j.getCurrentTime();j_(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":l_(this,"ended");break;case "mediaLoadTimeout":l_(this,"stalled");break;case "play":l_(this,"playing");break;default:l_(this,a.type)}};function l_(a,b){j_(a,"wrapperCall",{messageType:b})}function h_(a){a.Y&&a.Z&&(i_(a,"startAd"),a.A||i_(a,"getAdRemainingTime"))}f.ZA=function(){i_(this,"stopAd")};function m_(){}function cY(a){if(!lb(a)){var b=a[0],c=fV(b)&&gL();switch(null!=eV(b)&&c?"vpaid":XU(b)&&WU(b,"nonlinear")?"overlay":WU(b,"linear")?"video":WU(b,"nonlinear")?"overlay":null){case "overlay":return XU(b)?new EY(a):new zY(a);case "video":return new cZ(a);case "vpaid":return new g_(a)}}return null};function n_(a){T.call(this);this.o=a;a=new GR(new pR);this.j=new WX(new m_,a,jR);this.j.M("adsManagerLoaded",this.X,!1,this);this.j.M("adError",this.X,!1,this);this.j.M("adLoadError",this.X,!1,this)}z(n_,T);function o_(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.Ac=YQ(b.adTagUrl,b.Me,b.Qd,b.Wb,b.hc,a.o.B);b.cn=a.o.G;XX(a.j,b,c)}
n_.prototype.P=function(){null!=this.j&&(this.j.Ia("adsManagerLoaded",this.X),this.j.Ia("adError",this.X),this.j.Ia("adLoadError",this.X),this.j=null);n_.K.P.call(this)};function p_(a,b){Mr.call(this,a,b)}z(p_,Mr);f=p_.prototype;f.Hn=function(){Tq(this.T,!0,this.playerType);this.T.je(this.playerType)};f.pauseVideo=function(){this.T.pauseVideo(this.playerType)};f.ft=function(a,b,c){Tq(this.T,!0,this.playerType);var d=this.T,e=this.playerType;d.ke(d.getCurrentTime()+a,b,c,e)};f.wh=function(a,b){Tq(this.T,!0,this.playerType);this.T.ke(a,b,void 0,this.playerType)};f.$s=function(){dr(this.T,this.playerType)};function q_(a){this.o=a;at.call(this,a.yc)}z(q_,at);q_.prototype.getAdState=function(){return-1};q_.prototype.subscribe=function(a,b,c){return q_.K.subscribe.call(this,a,b,c)};function r_(a,b,c){this.B=a;this.j=b||"";this.o=c||null;this.A=!1}r_.prototype.reset=function(){tI(this.j)};r_.prototype.info=function(a,b){rI(a,b,this.j)};
function s_(a,b){var c=a.B;if(c.ta&&("detailpage"==c.ja||"leanback"==c.ja||"embedded"==c.ja&&(c.sa||c.experiments.D))&&!a.A){a.A=!0;Tf("TIMING_ACTION")||Rf("TIMING_ACTION",a.B.ab);if(a.o){var c=a.o.B,d;for(d in c)mI(d,c[d],a.j);d=a.o.A;for(var e in d)rI(e,d[e],a.j);e=a.o;e.B={};e.A={}}if(e=Bh("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}rI("yt_vis",d,a.j)}rI("yt_pt","html5",a.j);b&&!qI("pbs",a.j)&&mI("pbs",
b,a.j);qI("_start",a.j)&&pI(a.j)}}(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Hg();return b?(b=b.toLowerCase(),b+=Xa("hidden"),!n(a)||b in a?b:null):null})();function t_(a,b){a=!!a;q("_lactCookie",a,window);if(null==t("_lact",window)){if(Tf("EXP_LACT_TEMPDATA")){var c=parseInt(Tf("LACT"),10),c=isFinite(c)?y()-Math.max(c,0):-1;q("_lact",c,window);-1==c&&Rr()}else a&&b?(c=qk.get("ACTIVITY","-1"),q("_lact",parseInt(c,10),window)):(q("_lact",-1,window),Rr());P(document,"keydown",Rr);P(document,"keyup",Rr);P(document,"mousedown",Rr);P(document,"mouseup",Rr)}}
function Rr(){var a=t("_lact",window);null==a&&(t_(),a=t("_lact",window));var b=y();q("_lact",b,window);Tf("EXP_LACT_TEMPDATA")||t("_lactCookie",window)&&1E3<=b-a&&rk("ACTIVITY",""+b);Oi("USER_ACTIVE")}function u_(){var a=t("_lact",window);return null==a?-1:Math.max(y()-a,0)};var v_={DI:"0",GI:"1",ru:"2",xI:"3"};var w_={$I:"red",WHITE:"white",OG:"blue"};function x_(a){this.experimentIds=(a||"").split(",");var b={};D(this.experimentIds,function(a){b[a]=!0});this.j=!!b["913424"];this.B=!!b["932250"]||!!b["9406444"];this.ga=!!b["945066"]||!!b["9405188"];this.D=!!b["945069"]||!!b["9405408"];this.da=!!b["945074"]||!!b["9405191"];this.V=!!b["945089"]||b["9405194"];this.U=!!b["945090"]||!!b["9405409"];this.Z=!!b["934052"]||!!b["9407054"];this.ca=!!b["945093"]||!!b["9406673"];this.aa=!!b["945094"]||!!b["9406674"];this.sa=!!b["945097"]||!!b["9407011"];this.ta=
!!b["945098"]||!!b["9407012"];this.pa=!!b["964602"]||!!b["9407014"];this.ua=!!b["964603"]||!!b["9407013"];this.A=!!b["936926"];this.F=!!b["913430"];this.Ga=!!b["927877"];this.H=!!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["937235"]||!!b["934959"]||!!b["934963"]||!!b["934964"]||!!b["934965"]||
!!b["934966"];this.o=!!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["937235"]||this.j;this.G=!!b["953500"];this.na=!!b["951502"]||!!b["9406692"];this.spherical=!!b["951503"]||!!b["951509"]||!!b["9407041"]||!!b["9406693"];this.C=!!b["951506"]||!!b["9406696"];this.Yy=!!b["943610"];this.bm=!!b["943605"];this.Zy=!!b["943606"];this.dm=!!b["900720"];
this.N=!!b["909722"];this.I=!!b["9407561"]||!!b["9407562"]||!!b["9407669"]||!!b["9407675"]||!!b["9407684"];this.J=!!b["9407562"];this.Y=!!b["937222"];this.O=!!b["909727"];this.ma=!!b["922333"];this.Za=!!b["934053"]||!!b["9407488"];this.R=!!b["937009"];this.S=!!b["9407699"]};var y_={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},z_={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},A_="blogger books docs google-live play picasaweb".split(" ");
function B_(a){Q.call(this);a=Yb(a);this.C={};this.experiments=new x_(a.fexp);this.Ob=a.forced_experiments||null;this.origin=eI(this.origin,a.origin);this.H=eI("",a.loaderUrl);var b=document.location.toString();this.Nh=(this.I=!!b&&-1!=b.search(Ff))?eI("",a.loaderUrl):document.location.toString();"adunit"==a.el?hg(this.H)?this.ja="adunit":this.ja="embedded":this.ja=a.el||this.ja;t_("detailpage"==this.ja,a.autonav);var b=null,c=a.ps;!c||G(A_,c)&&!this.Hb()||(b=c);this.j=b;this.Nb=G(A_,this.j);b="blogger"==
this.j||"books"==this.j||"docs"==this.j||"google-live"==this.j||"picasaweb"==this.j;this.na=!b;this.jh=bI(!1,a.logwatch);this.Xh=!b;this.A={};this.A.c="web";this.A.cver="html5";this.A.cplayer="UNIPLAYER";this.ib=bI(!1,a.edu_mode);this.da=!(!gu().defaultPlaybackRate||cd&&!rs("chrome")||$h||Zh||rs("android")||rs("silk"));a.use_media_volume?b=!1:(b=gu(),c=b.muted,b.muted=!c,b=b.muted!=c);this.lf=b;this.Th=ai;this.yk=($h||Zh||ci)&&"blazer"!=this.j&&!DD(this);this.ua=bI("adunit"!=this.ja&&"detailpage"!=
this.ja&&!this.Nb,a.showinfo);this.isMobile=bI("blazer"==this.j,a.is_html5_mobile_device);this.O=bI(!1,a.playsinline);b=this.isMobile&&$t&&2.3>=Zt;c=Zh&&!this.O||!b&&bI("native"==this.j,a.use_native_controls)?"3":"1";this.o="0"!=a.controls?c:"0";this.ad=bI("blazer"==this.j||"touch"==this.j,a.use_tablet_controls);this.$a="1"!=this.o?"0":this.ad?"blazer"==this.j?"3":"1":cI("2",a.autohide,v_);this.color=cI("red",a.color,w_);this.mc="3"==this.o||bI(!1,a.modestbranding)&&"red"==this.color;if(c=bI(!1,a.nologo))var c=
this.I?this.H:document.location.toString(),d=!!c&&-1!=c.search(Nf),c=fg(c)||d;this.Yh=c;c=!this.mc&&"1"==this.o;this.ee="embedded"==this.ja&&!this.ua&&!this.Nb&&!c;this.Ak=this.Qh=b;this.D=Zh?this.experiments.ma&&7<=ks:!0;this.tb=this.I||!1;this.G="detailpage"==this.ja?"":this.Nh.substring(0,128);this.bb=!!a.disableCast;this.Da=this.S="";this.autoplay=bI(!1,a.autoplay);this.ve=bI(!1,a.autoplayoverride);this.te=this.autoplay||"detailpage"==this.ja;b=this.ve||!this.isMobile&&!rs("nintendo wiiu");this.sa=
this.te&&b;b="detailpage"==this.ja&&"blazer"==this.j;this.Wa=bI(!0,a.fs)&&(b||Sh());this.Zh=!!a.use_airplay_data_id;this.B=((b=(b=a.BASE_YT_URL)&&b.match(Bf))?b[0]:"")||"/";this.Lh=((b=a.gdatabaseurl)&&-1!=b.search(Gf)?a.gdatabaseurl:null)||"//gdata.youtube.com/";this.Aa=bI(!this.Nb,a.rel);this.ce=bI("detailpage"==this.ja&&"blazer"!=this.j||"books"==this.j,a.enablesizebutton);this.protocol=(this.Bk=(this.Zc=bI(!1,a.ssl_stream))||bI(!1,a.ssl))?"https":"http";this.Wh="adunit"!=this.ja;this.U="profilepage"==
this.ja;this.theme="light"!=a.theme||this.ad?"dark":"light";this.kf="blazer"!=this.j&&"native"!=this.j&&"touch"!=this.j;this.ta="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.mb=eI("",a.authuser);this.jf=bI(!1,a.disablekb);this.pageId=eI("",a.pageid);this.Rh=hI(Rt,a.vq);this.Sh=eI("",a.playerapiid);this.Vh=bI(!0,a.canplaylive);
this.he=bI(!1,a.ss);(b=a.video_container_override)?(c=b.split("x"),2!=c.length?b=null:(b=parseInt(c[0],10),c=parseInt(c[1],10),b=isNaN(b)||isNaN(c)||0>=b*c?null:new H(b,c))):b=null;this.Ka=b;this.ge=bI("0"!=this.o,a.store_user_volume);this.N=bI(!1,a.use_media_volume);this.Uh=bI(!1,a.retryneterr)&&this.Hb();this.Ck="3"==this.o?3:cI(void 0,a.iv_load_policy,iz);this.ca=void 0==a.content_v?void 0:a.content_v.toString();this.ma=void 0==a.framer?void 0:a.framer.toString();this.ga=void 0==a.hl?void 0:a.hl.toString();
this.region=void 0==a.cr?void 0:a.cr.toString();this.J=bI(!1,a.player_wide);this.ic=bI(!1,a.privembed);this.jc=dI(NaN,a.live_chunk_readahead||a.hls_live_chunk_readahead);C_(this,a);this.C=a}z(B_,Q);var D_={PG:"cbrand",RG:"cbr",SG:"cbrver",RH:"c",TH:"cver",SH:"cplayer",qI:"cmodel",zI:"cnetwork",JI:"cos",KI:"cosver",LI:"cplatform"};f=B_.prototype;f.ja="detailpage";f.gb=!1;f.Wp=!1;f.wg=!1;f.Zj=null;f.Rj=null;f.Bb=null;function pr(a,b){a.ob=b.get("d",a.ob);a.Ca=b.get("f",a.Ca)}
function C_(a,b){a.F=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&c in y_&&c in z_?z_[c]+"_"+y_[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.Hb()||d)&&(a.F=c,a.C.adformat=b.adformat,d||(a.ja="adunit"))}a.V=b.adpings?xj(b.adpings):null;c=b.agcid;a.ue=c;a.C.agcid=c;a.ib?a.S="s.youtubeeducation.com":a.na?a.S=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||"s.youtube.com":a.S="video.google.com";a.Da="//"+a.S+
"/api/stats/qoe";c=b.feature;a.R=c;a.C.feature=c;c=b.referrer;a.referrer=c;a.C.referrer=c;a.searchQuery=b.q;for(var e in D_)c=D_[e],d=b[c],void 0!=d&&(a.A[c]=d);a.jh=bI(a.jh,b.logwatch);a.userAge=dI(a.userAge,b.user_age);a.Y=eI(a.Y,b.user_display_image);gg(a.Y)||(a.Y="");a.Fa=eI(a.Fa,b.user_display_name);a.Fd=eI(a.Fd,b.user_gender);a.pa=eI(a.pa,b.eventid);a.ab=eI(a.ab,b.csi_page_type);a.ta=bI(a.ta,b.enablecsi)}
function E_(a,b,c){switch(b.U){case 38:return a=b.videoId.indexOf(":"),Ve("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.Ak});case 30:return c="//docs.google.com/",a.B!=B_.prototype.B&&(c=a.B),Ve(c+"get_video_info",{docid:b.videoId,authuser:b.mb,authkey:b.ce,eurl:a.G});case 33:return Ve("//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.ja,
hl:a.ga,list:b.playlistId,agcid:a.ue,sts:16491,lact:F_(a)?u_():"-1"};a.Ob&&(d.forced_experiments=a.Ob);b.G?d.vvt=b.G:b.C&&(d.access_token=b.C);a.F&&(d.adformat=a.F);b.ua&&(d.iv_load_policy=b.ua);b.Fa&&(d.itct=b.Fa);b.Rg&&(d.autoplay="1");b.gm&&(d.noiba="1");b.jm&&(d.mdx="1");b.he&&(d.ytrcc=b.he);b.pm&&(d.utpsa="1");b.ve&&(d.is_fling="1");c.width&&(d.width=c.width);c.height&&(d.height=c.height);b.ta&&(d.ypc_preview="1");b.ne&&(d.splay="1");a.ca&&(d.content_v=a.ca);b.im&&(d.livemonitor=1);a.mb&&(d.authuser=
a.mb);a.pageId&&(d.pageid=a.pageId);a.pa&&(d.ei=a.pa);a.Zc&&(d.ssl_stream="1");a.I&&(d.iframe="1");b.ek&&(d.tst=b.ek);b.contentCheckOk&&(d.cco="1");b.racyCheckOk&&(d.rco="1");qa(d,a.A);return Ve(a.B+"get_video_info",d)}}function G_(a){return a.referrer?a.referrer.slice(0,128):""}f.getVideoUrl=function(a,b,c){return nE(this,a.videoId,a.playlistId,b,c)};function H_(a){return"www.youtube-nocookie.com"==window.location.host||a.ib?"www.youtube.com":window.location.host}
function nE(a,b,c,d,e){b={v:b,list:c};d&&qa(b,d);a=Ve(a.protocol+"://"+H_(a)+"/watch",b);if(e){d="";d="!"=="#".charAt(1)?"#".substr(0,2):"#";b="#";"#"==b.charAt(0)&&(b="!"==b.charAt(1)?b.substr(2):b.substr(1));b=xj(b);for(var g in e)b[g]=e[g];e=d+Te(b);a=a+e}return a}
function I_(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.o&&(c.fmt=b.o.id);b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce);b.U&&(c.partnerid=b.U);return Ve("//support.google.com/googleplay/",c)}
function J_(a){var b={};if(!a.Bb)return b;a.Bb.webkitDecodedFrameCount&&(b.hmewdfc=a.Bb.webkitDecodedFrameCount,b.hmewdrop=a.Bb.webkitDroppedFrameCount,b.hmewvdbc=a.Bb.webkitVideoDecodedByteCount,b.hmewadbc=a.Bb.webkitAudioDecodedByteCount);a.Bb.mozParsedFrames&&(b.hmempf=a.Bb.mozParsedFrames,b.hmemdf=a.Bb.mozDecodedFrames,b.hmempresented=a.Bb.mozPresentedFrames,b.hmempainted=a.Bb.mozPaintedFrames,b.hmempaintdelay=a.Bb.mozPaintDelay);return b}function K_(){return u_()}
function F_(a){return a.experiments.N?"detailpage"==a.ja||"leanback"==a.ja:!0}function EE(a){return"leanback"==a.ja||a.Nb||!a.Aa&&!a.U?!1:!0}function Hr(a){return"detailpage"!=a.ja&&"embedded"!=a.ja&&"profilepage"!=a.ja?!1:!0}f.Hb=function(){var a;a=document.location.toString();var b=(a=!!a&&-1!=a.search(Ef))&&!this.I;return a&&this.I&&fg(this.H)||b};function ar(a){var b=null!=a.H&&0==a.H.search("^https?://www.youtube.com");return"detailpage"==a.ja||"profilepage"==a.ja||b}
function DD(a){return ts()||"tv"==a.A.cplatform}function zE(a){return a.experiments.H&&"detailpage"==a.ja&&"blazer"!=a.j}f.P=function(){this.Bb=null;B_.K.P.call(this)};function L_(a,b){this.j=a;this.o=b;this.A=1}function M_(a,b,c,d){d/=a.A;var e=aG(a.j)+1/bG(a.j),g;g=Math.max(.9*(d-3),$F(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 N_(a){var b=bG(a.j);a=$F(a.j)+1048576*aG(a.j);return b*Math.min(1,1048576/(b*a))}function O_(a){return N_(a)/a.A};function P_(a,b,c){this.j=a;this.video=b;this.reason=c};function Q_(a,b,c,d){this.O=a;this.S=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 R_(a,b,c){"m"==c&&Tt(a.j)&&!Tt(b)&&(c="a");if("m"==c&&Tt(b))return a.C=c,S_(a,b),T_(a),a.A=U_(a),new P_(V_(a),a.A,c);var d=a.j.equals(b);if("m"==a.C&&Tt(a.j)&&d)return null;"r"!=c||d||(a.J=-1);S_(a,b);b=U_(a);if("r"==c&&b==a.A){if(d)return null;a.A=b;return new P_(V_(a),b,c)}a.C=c;return null}
function W_(a,b){X_(a);a.R=b;a.I=y();a.J=-1;S_(a,a.j)}function X_(a){return!!a.I&&9E4>=y()-a.I}function V_(a){Y_(a);return a.B}function U_(a){Y_(a);return a.D}function Z_(a){var b=a.C;a.C="a";a.J=y();return new P_(a.H,a.A,b)}
function Y_(a){if(Tt(a.j)||!(8E3>y()-a.J)){a.I&&!X_(a)&&(a.I=0,S_(a,a.j));T_(a);var b=O_(a.O);if(Tt(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.ya;0<c&&!(a.o[c].ya<=d);c--);for(b=b/1.15-a.B.info.ya;c<a.o.length-1&&!(a.o[c+1].ya>=b);c++);a.N=c;a.D=a.G.j[a.o[c].id]}}}
function S_(a,b){a.j=b;var c=a.F.o;if(!Tt(a.j)&&(c=eb(c,function(a){return a.ya>this.S.ya?!1:!this.G.j[a.id].C},a),X_(a))){var c=eb(c,function(a){return a.id!=this.R.id},a),d=eb(c,function(a){a=Ju(a);return"140"==a||"134"==a||"243"==a});d.length&&(c=d)}c.length||(c=a.F.o);c=eb(c,a.j.B,a.j);c.length||(c=[a.F.o[0]]);c.sort(function(a,b){return a.ya-b.ya});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.video.width>g.video.width?(pb(c,d),d--):1.15*e.ya>g.ya&&(pb(c,d-1),d--)}a.o=c}
function $_(a){var b=F(a.F.j,function(a){return!!a.Sd&&a.Sd.isDefault}),b=b||a.F.j[0];a.B=a.G.j[b.id];T_(a)}function T_(a){if(!a.B.info.Sd&&(a.B=a.G.j[a.F.j[0].id],1<a.F.j.length)){var b=!1;if(Tt(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=O_(a.O)/1.15,b=a.B.info.ya+a.o[b].ya>c}b&&(a.B=a.G.j[a.F.j[1].id])}}
function a0(a){var b=O_(a.O)/1.05-a.B.info.ya,c=kb(a.o,function(a){return this.S.D&&this.S.D<Nt[a.video.quality]?!1:a.ya<b},a);0>c&&(c=0);a.N=c;a.D=a.G.j[a.o[c].id]};function b0(){this.j=this.o=!1}b0.prototype.start=function(){this.o=!0};b0.prototype.reset=function(){this.j=this.o=!1};function c0(a,b){this.J=a;this.A=b;this.C=[];this.j=[];this.B=this.o=null;this.D=0;this.ya=b.info.ya;this.G=this.I=!1;this.F=new b0;this.H=null;this.N=0}function d0(a,b){a.C.push(b);a.o=ab(b.info.j);a.D+=TG(b.info)}function e0(a){for(;a.C.length&&5==a.C[0].state;){var b=a.C.shift();a.D-=TG(b.info);a.D+=ab(b.C).buffer.byteLength;D(b.C,a.S,a)}}c0.prototype.S=function(a){if(4==a.info.type){var b=a.info.j.Er(a);a.info==this.o&&(this.o=ab(b).info);D(b,this.S,this)}else 3==a.info.type&&this.j.push(a)};
function f0(a){var b=WG(a.j[0]);return b.getInt32(0)>b.byteLength&&1==a.j.length}
function g0(a,b){if(a.I)return a.j[0].ha;var c=a.A.info.o,d=a.A.hi();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].ha.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].ha.start+c-1}return new vG(a.j[0].j?0:a.j[0].ha.start,g)}
function h0(a,b){for(var c;a.j.length;){if(a.j[0].ha.end>b.end){var d;c=a.j[0];var e=b.end-a.j[0].ha.start+1,e=Math.min(e,c.info.o),g=new MG(c.info.type,c.info.j,c.info.ha,c.info.B,c.info.startTime,c.info.duration,c.info.A,e,!1);d=xG(c.ha.start,e);g=new tH(g,c.buffer,d,c.j);e=new MG(c.info.type,c.info.j,c.info.ha,c.info.B,c.info.startTime,c.info.duration,c.info.A+e,c.info.o-e,c.info.G);d=new vG(d.end+1,c.ha.end);d=[g,new tH(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.ya=Math.max(d.ya,g.j.info.ya);if(c.ha.end==b.end)break}a.j.length&&c.buffer==a.j[0].buffer||(a.D-=c.buffer.byteLength)}function i0(a,b){var c=j0(a,b);if(0<=c)return c;a.o=a.A.Hi(b).j[0];k0(a)&&(a.B=null);a.H=null;a.N=0;return a.o.startTime}
function l0(a,b){m0(a);if(a.A.info.video&&a.B&&!a.B.D&&b){var c=ib(a.j,function(a){return a.info.D});a.j=vb(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 n0(a){a.F.o||a.F.start();l0(a,!1);k0(a)&&(a.B=null)}
function o0(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 MG(c.type,c.j,c.ha,c.B,c.startTime,0,c.A,0,!1),a.o=c):a.o=null}}function p0(a){return gb(a.j,function(a){return a.info.D})}function k0(a){return!!a.B&&a.B.G}
function q0(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!=ab(b)&&b.push(a.o);return b}function r0(a){if(!a.o||!a.o.o)return!1;a=q0(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 j0(a,b){if(r0(a)){var c;i:{c=q0(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 i}c=null}if(c)return c.startTime}return NaN}function s0(a){return gb(a.C,function(a){return 3<=a.state})}function t0(a){return!(!a.o||!a.A.Xc()||a.o.j==a.A)}function u0(a){return t0(a)&&a.o.j.info.ya<a.A.info.ya}c0.prototype.O=function(a){a.dispose();this.D-=TG(a.info)};function m0(a){D(a.C,a.O,a);a.C=[];a.o=null}function v0(a){return!!a.o&&a.o.B<a.A.index.Dg()};function w0(a,b,c){this.F=a;this.info=b;this.timing=c;this.state=1;this.j=this.C=null;this.G=this.B=this.H=0;this.A=NaN;this.D=this.o=this.I=null;this.J=0}w0.o=!1;w0.j=1E4;function x0(a){a.o?(a=a.o.j,pG(a),a=a.C):a="";return a}f=w0.prototype;f.getErrorCode=function(){return this.D};function y0(a){var b;b=a.timing;b={rt:((y()-b.A)/1E3).toFixed(2),lb:b.o,pt:(b.O/1E3).toFixed(2),pb:b.N};b.shost=x0(a);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&&z0(this);A0(this,2);var c;(c=!this.F.U)||(c=this.info.o,c=this.H>c.A&&1<=c.o);c?c=!1:(c=x0(this),c=Zb(VF(this.timing.j.j,c)),c=2<=c.ae&&0==c.done&&(0<c.gs||0<c.Wo));if(c||b&&2<=this.B){b=this.info.o;if(!(this.H<=b.A)){b.o++;b.A=KG-1;c=qG(b.j);var d=new J(c);d.rb.match("\\.googlevideo\\.com$")?(bf(d,"redirector.googlevideo.com"),c=d.toString()):d.rb.match("r[1-9].*\\.c\\.youtube\\.com$")?(bf(d,"www.youtube.com"),
c=d.toString()):c=jg(c);b.j=new oG(c);b.j.set("cmo",encodeURIComponent("pf="+b.o))}this.B=0}else if(b){this.B++;a=w0.j*(.5+Math.random());1==this.B&&(a=2E3);L(x(this.Mn,this),a);return}a?this.Mn():L(x(this.Mn,this),0)};
f.Mn=function(){if(!this.ka()){this.H=KG++;this.o=WC(this.info);this.B&&this.o.set("playerretry",this.B.toString());var a=VC(this.o);this.j=new XMLHttpRequest;try{this.j.open("GET",a)}catch(b){this.D="net.ssl";A0(this,6);return}this.j.responseType="arraybuffer";this.j.withCredentials=!0;a=x(this.uC,this);this.j.addEventListener("load",a,!1);this.j.addEventListener("error",a,!1);this.j.send();this.G=0;var a=this.timing,c=x0(this);a.H=c;VF(a.j.j,c).ae+=1;a.A=y();a.D=a.A;a.o=0;a.I=!1;a.J=!1;a.C=0;a.G=
cG(a.j);B0(a);a.O=a.F-a.A;this.j.addEventListener("progress",x(this.vC,this),!1);0<this.F.B&&(this.A=L(x(this.Cr,this),this.F.B));this.o.get("itag");this.o.get("range");Math.round(this.info.j[0].C);Math.round(ab(this.info.j).F);y()}};f.vC=function(a){if(!this.ka()){this.j&&(this.J=this.j.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.A&&4E12>c?c:y();20>c-b.D||C0(b,c,a);b=this.timing;b.o>b.S&&8192<b.o&&3>this.state&&A0(this,3)}};
f.uC=function(a){var b=this.j;if(!this.ka()&&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;i:{if(2048>b.byteLength&&(c=String.fromCharCode.apply(String,new Uint8Array(b)),eg(c)))break i;c=""}if(c){var b=this.info.o,d=this.o;d.j===b.j&&(b.j=IG(d,c));A0(this,4)}else if(this.info.ha&&b.byteLength!=this.info.ha.length)a=!0,this.D="fmt.unparseable";else{c=this.info.j;if(1==
c.length&&!c[0].ha){var d=c[0],e=xG(0,b.byteLength),d=new MG(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=xG(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=xG(0,l.o),g=!0;else if(3==l.type||4==l.type)u=g&&!h,h=!0;d.push(new tH(l,p,r,u));e+=l.o}this.C=d;c=this.timing;d=y();b=b.byteLength;c.I||(c.I=!0,VF(c.j.j,c.H).done+=1,d=d>c.A&&4E12>d?d:y(),C0(c,d,
b),e=(d-c.A)/1E3,!c.J&&8192<=c.o&&XF(c.j,e,b),8192<=c.o&&(e=c.j,h=c.C,b=Math.max(b,8192),e.B.o(1,h/b),dG(e)),ZF(c.j,d-c.A,c.o),c.B&&(c.B=!1));y();A0(this,5)}}a&&(z0(this),A0(this,6),a=this.timing,y(),VF(a.j.j,a.H).Wo+=1)}};function z0(a){if(2>a.B)a=!0;else{var b=a.info.o;a=!(a.H>b.A&&1<=b.o)}return a}function A0(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.B&&(c.B=!1)}a.I&&a.I(a)}
f.Cr=function(){this.A=NaN;if(!(this.ka()||this.F.V&&this.j&&"quic"==this.j.getResponseHeader("client-protocol"))){var a=y(),b=!1;if(8192<=this.timing.o){var c=this.timing.F;B0(this.timing);this.timing.F-c>=.8*this.F.B?(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:y();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);dG(c);ZF(b.j,a-b.A,b.o);VF(b.j.j,b.H).gs+=1;D0(this);this.D="net.timeout";A0(this,6)}else this.A=
L(x(this.Cr,this),this.F.B)}};f.ka=function(){return-1==this.state};f.dispose=function(){NG(this.info.j[0])&&5!=this.state&&(this.info.j[0].j.A=!1);A0(this,-1);this.I=this.C=null;D0(this);M(this.A);this.A=NaN};function D0(a){if(a.j){var b=a.j;a.j=null;b.abort()}a=a.timing;a.B&&(a.B=!1)};function E0(a,b,c){this.j=a;this.N=b;this.S=c;this.o=this.D=this.A=NaN;this.J=this.I=this.B=!1;this.C=0;this.F=this.O=NaN}function C0(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&&XF(a.j,.05,e)):XF(a.j,d,e),a.J=!0)}else 8192<=c&&(d=a.j,d.C.o(1,(b-a.A)/1E3),dG(d),a.B=!0);a.D=b;a.o=c}function B0(a){var b=a.N-a.o,b=1E3*(b*a.G.tailDelay+b/a.G.byterate),c=y(),b=8192<=a.o?b+c:b+Math.max(c,a.A+1E3*a.G.delay);a.F=b};function F0(a,b,c,d){S.call(this);this.G=a;this.B=b;this.F=c;this.o=this.A=null;this.I=new L_(a,b);this.j=null;this.D=new Q_(this.I,b,this.F,d);this.C=this.na=this.ma=this.aa=this.Z=NaN;this.N=!1;this.R=NaN;this.da=0;this.ca=this.H=!1;this.pa={};this.V="";this.ga=!1;this.Y=this.J=0}z(F0,S);F0.F=!1;F0.j=2/24;F0.A=1E3;F0.o=.2;F0.D=1E4;F0.C=.2;F0.B=1.25;f=F0.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.D;d.C="i";S_(d,b);$_(d);d.H=d.B;a0(d);d.A=d.D;b=Z_(d);this.A=new c0(this.B,b.j);this.o=new c0(this.B,b.video);this.L("videoformatchange",b);this.C=a;c?(this.H=!0,G0(this)):H0(this)};function H0(a){0==a.C&&(a.A.A.A||I0(a,a.A,!0),a.o.A.A||I0(a,a.o,!0));a.seek(a.C);J0(a,"gv")}f.resume=function(){this.H&&(this.H=!1)};
f.ew=function(a){this.resume();this.j=a;wu(a)&&(a.j.addEventListener("updateend",x(this.Bc,this),!1),a.o.addEventListener("updateend",x(this.Bc,this),!1));J0(this,"msa");this.U&&this.O&&$w();this.Bc();this.ma=Vf(x(this.Bc,this),F0.D)};function K0(a){a.j&&a.j.j&&a.j.j.removeEventListener&&(a.j.j.removeEventListener("updateend",x(a.Bc,a),!1),a.j.o.removeEventListener("updateend",x(a.Bc,a),!1));a.j=null;a.H=!0;a.A&&(l0(a.o,!1),l0(a.A,!1))}function L0(a){a.j&&uu(a.j)&&K0(a)}
function M0(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 N0(a,b,c){if(a.H)return!1;if(!b.o){if(!b.A.Xc())return b.A.A||I0(a,b,!1),!1;i0(b,a.C)}var d=b.C.length+c.C.length;(s0(b)||s0(c)||a.F.isLive)&&--d;if(2<=d+1)return!1;d=b.o;4==d.type&&d.j.Xc()&&(b.o=ab(d.j.Aj(d)),d=b.o);!d.G&&!d.j.zh(d)||d.j.info.o&&4==d.type?a=!1:u0(b)&&!a.B.C?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=O0(a,b,!0),Tt(a.D.j)||(c=(y()-a.da)/1E3,b=Math.min(b,30+2*c)),c=d>a.C+b),a=c?!1:!0);return a}
function P0(a,b,c){if(!a.j||tu(a.j)||wu(a.j)){var d=a.C,e;e=a.I;c=M_(e,b.A.info.ya,c.A.info.ya,0);e=$F(e.j)+c*aG(e.j)+c/bG(e.j);e=Math.max(e,e+5-c/b.A.info.ya);d=d+e;a=a.D;i:{a=!a.A||!a.D||a.A.info.ya>=a.D.info.ya?!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 i;m0(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=ab(b.C[b.C.length-
1].info.j):b.j.length?b.o=ab(b.j).info:b.o=b.B;a&&b.o&&d<b.o.startTime&&(b.H=null,b.o=b.A.Hi(d,!0).j[0])}}}
function Q0(a,b,c){N0(a,b,c);var d=b.o;if(b.o.j.Xc()){u0(b)&&!a.B.C&&(P0(a,b,c),b.o||i0(b,a.C));var d=b.o,e=d.F-a.C,g=!d.ha||0==d.o&&0==d.A?0:d.ha.length-(d.A+d.o);t0(b)&&(u0(b)||25>=e)&&0==g&&(g=d.startTime+F0.j,d.o&&(g+=d.duration),i0(b,g),d=b.o);d.j.hi()?(c=M_(a.I,d.j.info.ya,c.A.info.ya,e),e=t0(b),c=HH(d.j,d,c),c.ha&&1<c.j.length&&(e?c=HH(d.j,d,c.j[0].o):(e=c.j[c.j.length-1],g=e.o/c.ha.length,!e.D&&.4>g&&(c=HH(d.j,d,c.ha.length-e.o)))),d=c):d=UC(d.j,d)}else d.j.hi()?(c=M_(a.I,b.A.info.ya,c.A.info.ya,
0),d=HH(d.j,d,c)):d=UC(d.j,d);d0(b,R0(a,d))}function R0(a,b){if(3==b.j[b.j.length-1].type){var c;i:{c=a.D;var d=b.j[0].j;if(d.info.video){if(c.A!=d){c.A=d;c=Z_(c);break i}}else c.H=d;c=null}c&&a.L("videoformatchange",c)}c=TG(b);var d=a.G,e=a.I,g=Math.min(2.5,$F(e.j)),e=N_(e);c=new w0(a.B,b,new E0(d,c,c-g*e));d=x(a.pB,a);c.I=d;c.start();return c}
f.pB=function(a){if(!this.ka()&&3<=a.state){var b=a.info.j[0].j,c=!this.U&&b.info.video,d=!this.O&&b.info.o;4==a.state?(c?J0(this,"vrr"):d&&J0(this,"arr"),a.start()):5==a.state?(c?(this.U=a.o?VC(a.o):"",bx()):d&&(this.O=a.o?VC(a.o):""),D(a.C,function(a){NG(a.info)&&a.info.j.op(a)}),hb(a.C,function(a){return uH(a,this.B.Ga)},this)&&!a.C[0].info.j.hm()?this.Bc():this.Xd(!0,"fmt.unparseable",y0(a))):3==a.state?(this.Bc(),c&&bx()):6==a.state&&z0(a)?(this.Xd(!1,a.getErrorCode(),y0(a)),(c=b.info.video&&
0<a.B&&90&&!X_(this.D))&&W_(this.D,b.info),6==a.state&&"net.timeout"==a.D||c?(o0(b.info.video?this.o:this.A,a),this.Bc()):a.start()):NG(a.info.j[0])?(b.C=!0,this.Bc()):this.Xd(!0,"net.retryexhausted",y0(a))}};function S0(a){if(isNaN(a.Z)){var b=x(a.Bc,a);a.Z=L(b,0)}}function G0(a){if(isNaN(a.aa)){var b=x(function(){this.aa=NaN;this.Bc()},a);a.aa=L(b,F0.A)}}
f.Bc=function(){this.Z=NaN;L0(this);if(this.j&&!vu(this.j))if(this.F.isLive)Infinity!=this.R&&(this.R=Infinity,this.j.Zf(Infinity));else if(!isFinite(this.R)){var a=Math.floor(Math.max(this.A.A.index.ig(),this.o.A.index.ig()));0<a&&(this.j.Zf(a),this.R=a)}if(!this.ka())if(a=this.F,y()-a.I>=a.D){if(3==this.F.B&&(this.Xd(!(3>this.F.o),this.F.getErrorCode(),{rc:this.F.N.toString()}),!(3>this.F.o)))return;a=this.F;if(3!=a.B||y()-a.H>=1E3*Math.pow(2,a.o))if(a=this.F,1!=a.B){var b;i:{var c=a.j;for(b in c){b=
c[b];break i}b=void 0}b=Ve(a.J,{start_seq:(b.index.Kb()+1).toString()});a.H=y();PH(a,b)}G0(this)}else if(this.F.isLive&&(v0(this.o)||v0(this.A))&&(b=T0(this),isNaN(b)||this.seek(b)),"prerender"==window.document.webkitVisibilityState)G0(this);else if(L0(this),e0(this.o),e0(this.A),this.A.A.A||(!this.H||eG(this.G)?H0(this):G0(this)),!this.j||M0(this,this.A,this.j.j)||M0(this,this.o,this.j.o)||((b=U0(this,this.o,this.j.o))&&!this.J&&(this.J=y(),J0(this,"vda"),this.Y&&bx()),a=hs(this.j.o.buffered,this.C+
F0.j),isNaN(a)&&!k0(this.o)&&this.j.j.buffered.length||(k0(this.o)&&(a=NaN),a=U0(this,this.A,this.j.j,a),b|=a,a&&!this.Y&&(this.Y=y(),J0(this,"ada"),this.J&&bx())),k0(this.o)&&k0(this.A)&&tu(this.j)&&!vu(this.j)&&(a=this.j,tu(a)&&a.A.endOfStream(),a=this.G,Mq(cG(a)),a.A=y()),b&&!wu(this.j)&&S0(this)),V0(this,this.o,U_(this.D)),V0(this,this.A,V_(this.D)),this.o.A.C||this.A.A.C)this.Xd(!0,"net.retryexhausted");else{b=this.J?y()-this.J:0;if(this.ga||b>=this.B.I)N0(this,this.o,this.A)&&Q0(this,this.o,
this.A),N0(this,this.A,this.o)&&Q0(this,this.A,this.o);this.B.S&&this.V&&!this.H&&eG(this.G)&&(b=this.V,this.V="",a=Aj(b),Kj(b,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:x(this.Xd,this,!1,"pathprobe.net",{shost:a})}))}};
function U0(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||OG(b.B,e.info)||(b.B=null,tu(a.j)&&c.abort(),c.j=null);var g;if(g=a.F.isLive){var h=WG(e);g=!!fH(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:(W0(a,c,g),c.j=g,a.L("initsegment",c.j),g=c.updating);if(g)return!0}g=O0(a,b,!1);g=a.C+g;0<=d&&(g=Math.min(g,d));d=g0(b,g);if(!d)return!1;if(h){if(f0(b))return!1;
var k;i:{f0(b);var h=b.j[0],l=WG(h);g=l.getInt32(0);if(g>l.byteLength){var p=b.j[1];if(p.ha.length+l.byteLength<g){k=null;break i}k=new Uint8Array(g);l=new Uint8Array(h.buffer,h.ha.start,h.ha.length);k.set(l);l=new Uint8Array(p.buffer,p.ha.start,g-h.ha.length);k.set(l,h.ha.length);l=new DataView(k.buffer)}var r=h.info.j.index.tl(h.info.B);(l=eH(l,r))?(k?(h0(b,h.ha),h0(b,xG(p.ha.start,g-h.ha.length))):h0(b,xG(h.ha.start,g)),k=l):k=null}if(k)return W0(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=vH(e)-e.info.duration;l=p-e.info.startTime;r=l+g;if(Math.abs(g)>F0.C||Math.abs(r-b.N)>F0.B)b.N=r,r=RG(e.info),r.delta=g,r.currOffset=l,a.Xd(!1,"qoe.avsync",r);if(!a.B.O||b.G)isNaN(p)||vH(e),b.H=p+vH(e);if(a.F.isLive){g=e.info.j.j;for(var l=NaN,r=0,u=new DataView(e.buffer);mH(u,r);){var C=nH(u,r);if(1936286840==C.type)l=rH(C);else if(1836476516==C.type)l=oH(C);else if(1952867444==
C.type){var V=C;V.data.getUint8(V.offset+8)?sH(V.data,V.offset+12):V.data.getUint32(V.offset+12)}r=pH(C.type)?r+8:r+C.size}!l&&g&&lH(g);fs("audio"==h?a.j.j.buffered:a.j.o.buffered)}g=e.info.j.j;for(var h=NaN,U,l=0,r=new DataView(e.buffer);mH(r,l);)u=nH(r,l),1936286840==u.type?h=rH(u):1836476516==u.type?h=oH(u):1952867444==u.type&&(U=u),l=pH(u.type)?l+8:l+u.size;!h&&g&&(h=lH(g));U.data.getUint8(U.offset+8)?(g=U.data,U=U.offset+12,p=Math.round(p*h),g.setUint32(U,Math.round(p/4294967296)),g.setUint32(U+
4,Math.round(p&4294967295))):U.data.setUint32(U.offset+12,Math.round(p*h))}if(!W0(a,c,k))return n0(b),!0;a.F.C&&a.B.O&&!b.G||(h0(b,d),QG(b.B));b.G||(b.G=!0);e.j&&(c.j=e.info.j.j,a.L("initsegment",c.j));return!0}function W0(a,b,c){try{wu(a.j)?b.appendBuffer(c):b.append(c)}catch(d){return!1}return!uu(a.j)}
function O0(a,b,c){var d;d=!a.B.C&&(Tt(a.D.j)||a.B.Y&&a.ca)?b.A.info.o?10485760:62914560:b.A.info.o?a.B.o:a.B.A;c&&(d+=a.B.j);b=d/(Tt(a.D.j)?b.o?b.o.j.info.ya:b.A.info.ya:b.ya);0<a.B.G&&(b=Math.min(b,a.B.G));return b}function T0(a){if(a.F.isLive){var b=a.o.A.index.Dg(),c=a.o.A.index.Kb(),d=a.o.A.index;if(1>a.B.liveChunkReadahead)return d.cf(c)+d.yh(c)-F0.o;a=Math.max(b,c-a.B.liveChunkReadahead+1);return d.cf(a)+F0.o}return Math.floor(Math.min(a.A.A.index.ig(),a.o.A.index.ig()))}
f.seek=function(a){if(!this.ka()){L0(this);this.da=y();this.o.A=U_(this.D);var b=X0(this,this.o,a,this.j&&this.j.o);this.A.A=V_(this.D);var c=X0(this,this.A,b,this.j&&this.j.j);this.C=Math.max(a,b,c);this.N=!0;S0(this)}};
function X0(a,b,c,d){if(b.A.Xc())if(d){var e=hs(d.buffered,c),g=NaN,h=b.B;h&&(g=hs(d.buffered,h.j.index.cf(h.B)));if(e==g&&r0(b))return c;d=j0(b,c);if(0<=d)return d;l0(b,!0);b.A.info.video&&b.B&&!b.B.D&&!p0(b)&&(d=b.B,b.j.length&&(d=ab(b.j).info),d=b.o||d,d=HH(d.j,d,d.ha.length-(d.o+d.A)),d0(b,R0(a,d)));if(isNaN(e))return i0(b,c);i0(b,e+F0.j)}else i0(b,c);else b.A.A||I0(a,b,!1),0!=c&&m0(b);return c}function V0(a,b,c){b.A!=c&&(b.A=c,c.A||I0(a,b,!1))}
function I0(a,b,c){var d=t("ytplayer.playback_delay");null!=d?(a.Xd(!1,"playback.delay",{ms:d}),a.na=L(x(a.Qo,a,b,c),d)):a.Qo(b,c);b.A.A=!0}f.Qo=function(a,b){var c=b?65536:0;b&&!isNaN(2)&&(c=Math.floor(Math.max(c,2*a.A.info.ya)));c=a.A.ep(c);D(c,function(b){var c=R0(this,b);!NG(b.j[b.j.length-1])&&d0(a,c)},this)};f.P=function(){K0(this);this.A&&(m0(this.A),m0(this.o));Wf(this.ma);M(this.na);this.o=this.A=null;F0.K.P.call(this)};
f.Xd=function(a,b,c){var d;if(c)for(var e in c)d=(d?d+";":"")+e+"."+c[e];this.L("error",new Pq(b,a,d));a&&(this.j&&tu(this.j)&&(a=this.j,tu(a)&&a.A.endOfStream("network")),this.dispose())};
F0.prototype.getDebugInfo=function(){var a={lct:this.C.toFixed(3),lsk:this.N,lmf:Tt(this.D.j),lbw:bG(this.G).toFixed(3),lhd:$F(this.G).toFixed(3),ltd:(1E9*aG(this.G)).toFixed(3),laa:this.A.B?QG(this.A.B):"",lva:this.o.B?QG(this.o.B):"",lar:this.A.o?QG(this.A.o):"",lvr:this.o.o?QG(this.o.o):""};this.j&&!uu(this.j)&&(a.lab=fs(this.j.j.buffered),a.lvb=fs(this.j.o.buffered));return a};function J0(a,b,c){a.pa[b]=c?window.performance.timing.navigationStart+c:y()};function Y0(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 ou(this);R(this,this.B);this.j&&(pu(this.B,this.j,["message","mskeymessage"],this.Jq),pu(this.B,this.j,["error","mskeyerror"],this.Iq),pu(this.B,this.j,["ready","mskeyadded"],this.Hq))}z(Y0,Q);f=Y0.prototype;f.setCallbacks=function(a,b,c,d){this.H=a;this.G=b;this.F=c;this.o=d};f.Jq=function(a){this.H.call(this.o,a)};
f.Iq=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.Hq=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;Y0.K.P.call(this)};function Z0(a,b){Q.call(this);this.j=a;this.B=b;this.D={};this.A=null;this.C=new ou(this);R(this,this.C);Et()||(pu(this.C,this.j,["keymessage","webkitkeymessage"],this.H),pu(this.C,this.j,["keyerror","webkitkeyerror"],this.G),pu(this.C,this.j,["keyadded","webkitkeyadded"],this.F));this.o=null}z(Z0,Q);function $0(a){a.o=new (Et())(a.B.j);a.j&&(a.j.msSetMediaKeys?a.j.msSetMediaKeys(a.o):a.j.setMediaKeys(a.o))}
function a1(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}Z0.prototype.H=function(a){var b=a1(this,a);b&&b.Jq(a)};Z0.prototype.G=function(a){var b=a1(this,a);b&&b.Iq(a)};Z0.prototype.F=function(a){var b=a1(this,a);b&&b.Hq(a)};Z0.prototype.P=function(){this.j=null;Z0.K.P.call(this)};function b1(a,b,c){this.url=a;this.interval=b;this.j=c};function c1(a,b,c){this.j=a;this.headers=b;this.message=c};function d1(a,b,c,d,e){Q.call(this);this.I=a;this.o=d;this.o.subscribe("oauthtoken",this.ht,this);this.C={session_id:e};Qr(this,a.A);this.j=[];this.B=this.F=this.H=!1;var g;try{var h=c.j;if(Et()){b.o||$0(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 Y0(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 Y0(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.Nn,this.SE,this.RE,this),R(this,this.A)}z(d1,Q);f=d1.prototype;f.ht=function(a){this.G=a};
function Qr(a,b){var c=b,d=!!c&&-1!=c.search(Df),e=cg(c);c&&d!=e&&Xf(Error("isDrmLicensorUrl("+c+") behavior is not consistent"),"WARNING");if(e){for(var g in a.C)b=$e(b,g,a.C[g]);a.D=b}else e1(a,"drm.net","u")}f.start=function(){this.ka()||(this.H=!0,this.j.length&&this.Nn(this.j.shift()))};
f.Nn=function(a){if(!this.ka()){var b=a.defaultURL||a.destinationURL;this.B&&b&&Qr(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(!RL)for(RL={},SL={},c=0;65>c;c++)RL[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),SL[RL[c]]=c,62<=c&&(SL["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)]=
c);for(var c=SL,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",BC:a,responseType:"arraybuffer",withCredentials:!0,jb:this.IA,onError:this.Kq,context:this};b=this.D;this.G&&(b=$e(b,"access_token",this.G));Kj(b,a)}else this.j.push(a),
this.F||(this.F=!0,this.o.L("newsession",this))}};f.RE=function(){this.ka()||(this.B||(this.o.L("sessionready"),this.B=!0),this.j.length&&this.Nn(this.j.shift()))};
f.IA=function(a){if(!this.ka())if(0!=a.status&&a.response){i:{a=new Uint8Array(a.response);var b=0,c=String.fromCharCode.apply(String,a.subarray(0,16384)).split("\r\n"),d=c[0];pb(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=Ya(e[1]),g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new c1(d,g,a.subarray(b));break i}e=e.match(/([^:]+):\s+([^]+)/);if(null==e)break;g[e[1]]=e[2]}a=null}a?0!=a.j?e1(this,"drm.auth","f"+a.j,zt(a.j)):(b=
(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new b1(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)):e1(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Kq(a)};f.SE=function(a,b){this.ka()||e1(this,"drm.keyerror","s"+a+"."+b)};f.Kq=function(a){e1(this,"drm.net","r"+a.status)};
function e1(a,b,c,d){a.ka()||a.o.L("licenseerror",b,c,d);a.dispose()}f.P=function(){this.o=null;d1.K.P.call(this)};function f1(a,b){this.j=a;this.o=b||null};function g1(a,b){S.call(this);this.H=a;this.j=b;this.subscribe("newlicense",this.WA,this);this.subscribe("newsession",this.XA,this);this.subscribe("sessionready",this.vB,this);this.O=GD();this.B=null;this.G={};this.o=[];this.A=Qt;this.N=new Z0("com.microsoft.playready"==b.j?null:a,b);R(this,this.N);this.D=new Z0(a,b);R(this,this.D);this.F=2;this.I=new ou(this);R(this,this.I);this.C=!1;this.J=null;pu(this.I,this.H,Et()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.VA)}z(g1,S);f=g1.prototype;
f.VA=function(a){h1(this,new f1(a.initData,a.contentType),!0)};
function h1(a,b,c){if(!(a.ka()||"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){i:{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 i}d+=g}c=null}if(!c)return}a.o.push(b);1<a.o.length||(i1(a,b),a.C=!0)}}}function i1(a,b){var c=new d1(a.j,a.N,b,a,a.O);c.ht(a.B);R(a,c)}f.WA=function(a,b){a&&G(a,"HD")&&!St(this.A)&&"com.microsoft.playready"!=this.j.j&&(this.A=Rt,this.L("qualitychange"));b&&!this.J&&(this.J=b,this.L("heartbeatparams",b))};f.XA=function(){this.ka()||(this.o.shift(),this.o.length&&i1(this,this.o[0]))};f.vB=function(){this.F--;0==this.F&&$0(this.D)};
f.P=function(){this.H=null;this.o=[];g1.K.P.call(this)};function j1(a){this.o={};this.o.c1a=x(this.B,this);this.o.c3a=x(this.C,this);(this.j=a)&&this.j.da?this.A=xj(this.j.da):this.A=[]}j1.prototype.B=function(){var a=t("yt.abuse.botguardInitialized");return a&&a()?(a=t("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};j1.prototype.C=function(a){return"r3a="+Math.floor(this.j.lengthSeconds%Va(a.c3a))};function k1(a,b,c){this.j=a;this.reason=b;this.o=c};function l1(a,b){this.j=a;this.o=b}function m1(a,b){return Ut(Ut(a.j.Rh,b.Sm),b.Mj)}
function n1(a,b){var c;c=!!b.A.j;var d;Zh&&!a.j.O&&(d=window.screen&&window.screen.width?new H(window.screen.width,window.screen.height):null);d||(d=a.j.Ka?a.j.Ka.clone():a.o.sb());(Zh||hd||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.A.o;if(d.length){for(var g=0;g<d.length&&!(e=d[g].video,null===c||.85*e.width<c.width&&.85*e.height<c.height);g++);e=ir("auto",e.quality,!1)}else e=Rt;c=e.j;ts()&&(c=Math.max(c,Nt.hd1080));if(d=(rs("armv7")||rs("android"))&&!DD(a.j))d=b.A.o[0],d="9"==d.A||"("==
d.A;d&&(c=Math.min(c,Nt.large));c=Math.max(c,Nt.medium);e.j!=c&&(e=new Pt(e.o,c,e.A));return e};function o1(){this.B=this.j=NaN;this.A=this.o=!1}function Ks(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 p1(){this.o=0;this.j=this.C=this.A=this.B=NaN};function q1(a){this.o=a;this.j=0;this.C=NaN;this.A=0;this.oa=[];this.B=r1(this.o);this.D=this.F=0}function s1(a){a.B.startTime=a.A;a.B.endTime=a.j;a.oa.length&&ab(a.oa).isEmpty()?a.oa[a.oa.length-1]=a.B:a.oa.length&&a.B.isEmpty()||a.oa.push(a.B);a.F+=a.j-a.A;a.B=r1(a.o);a.A=a.j}function t1(a){return a.F+a.o.o()-a.A}function u1(a){a.oa.length&&a.j==a.A||s1(a);var b=a.oa;a.oa=[];return b}
q1.prototype.update=function(){var a=this.o.o()||0,b=v1(this.o);if(a!=this.j||w1(this,a,b)){if(a<this.j||a-this.j>b-this.C+.5||w1(this,a,b))s1(this),this.A=a;this.C=b;this.j=a}};function w1(a,b,c){c-=a.C;return b==a.j&&.5<c};function x1(a,b){this.fa=b;this.A=!1;this.j=a}x1.prototype.o=function(){return{ps:this.fa.j,el:this.fa.ja}};x1.prototype.send=function(){this.A||(og(Ve(this.fa.B+"set_awesome",this.o())),this.A=!0)};function y1(a,b,c){x1.call(this,b,c);this.B=a}z(y1,x1);
y1.prototype.o=function(){var a=y1.K.o.call(this);qa(a,this.fa.A);var b=Pc(this.j.ck/this.j.lengthSeconds,0,1);qa(a,{html5:"1",video_id:this.j.videoId,eurl:this.fa.G,framer:this.fa.ma,feature:this.fa.R,list:this.j.playlistId,w:b,l:this.j.lengthSeconds,plid:this.j.playbackId,ei:this.j.H,access_token:this.j.C,tpmt:t1(this.B),cpn:this.j.clientPlaybackNonce});this.fa.F&&(a.adformat=this.fa.F);this.fa.referrer&&(a.referrer=G_(this.fa));this.fa.autoplay&&(a.autoplay="1");this.fa.mb&&(a.authuser=this.fa.mb);
this.fa.pageId&&(a.pageid=this.fa.pageId);this.j.ne&&(a.splay="1");this.j.subscribed&&(a.subscribed=this.j.subscribed);qa(a,y1.K.o.call(this));qa(a,this.fa.A);return a};function z1(a){Q.call(this);this.j=a;this.A={};this.O=NaN;this.C=new Pv(this.DA,3E4,this);R(this,this.C);this.D=new Pv(this.vj,100,this);R(this,this.D);this.o="N";this.B=0;this.S=NaN;this.I=0;this.H=this.V="";this.G=this.J=0;this.N=this.F=!1}z(z1,Q);var A1={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function B1(a,b,c,d){var e=a.A[b];e||(e=[],a.A[b]=e);a=0<=d?d:v1(a.j);e.push(a.toFixed(3)+":"+c.join(":"))}f=z1.prototype;
f.vj=function(a){a=a||v1(this.j);var b=this.j.D();if(!isNaN(this.R)&&!isNaN(b.A)){var c=b.A-this.R;0<c&&B1(this,"bwm",[c,(b.C-this.U).toFixed(3)],a)}this.R=b.A;this.U=b.C;isNaN(b.j)||B1(this,"bwe",[b.j.toFixed(0)],a);isNaN(b.o)||(c=b.o,b.B<c&&(c=b.B),this.S!=c&&(B1(this,"bh",[c.toFixed(3)],a),this.S=c),this.j.fa.experiments.B&&3>c&&("PL"==this.o||"B"==this.o)&&this.D.start());B1(this,"cmt",[this.j.o()],a)};
function C1(a){var b={event:"streamingstats"};if(a.j.j.o){b.fmt=a.j.j.o.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.ja;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.mc;a.j.fa.F&&(b.adformat=a.j.fa.F);a.j.j.Qa&&(b.live=a.j.j.wb?"dvr":"live");b.html5="1";return b}
f.ah=function(a){if(!this.ka()&&!Ub(this.A)){this.D.isActive()||this.vj(a);a=J_(this.j.fa).hmewdrop;a>this.I&&B1(this,"df",[a-this.I]);this.I=a;a=C1(this);ac(a,this.j.fa.A);a=Ve(this.j.fa.Da,a);for(var b in this.A)a+="&"+b+"="+this.A[b].join(",");og(a);this.A={};this.C.start()}};f.cg=function(){B1(this,"vps",["N"]);this.j.j.$a&&(this.A.cat=["preload"]);this.O=Vf(x(this.ah,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=v1(this.j);B1(this,"error",c,d);this.vj(d)};f.DA=function(){"PL"==this.o&&(B1(this,"vps",[this.o]),this.ah())};f.P=function(){z1.K.P.call(this);Wf(this.O)};function D1(a,b,c,d){this.fa=b;this.segments=[];this.experimentIds=[];this.J=!1;this.j="watchtime"==c;this.da="playback"==c;this.Z="delayplay"==c;this.I="atr"==c;this.ca="engage"==c;this.ta=this.I?"/api/stats/"+c:"//"+b.S+"/api/stats/"+c;d&&(this.eu=d.fs,d.rtn&&(this.eh=d.rtn),this.j?(this.ob=d.state,0<d.rti&&(this.Bj=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.di=d.autonav));this.ua=b.F;this.autoplay=
b.autoplay;this.Aa=b.ca;this.Ca=Yb(b.A);this.Za=b.G;this.Fa=b.ja;this.experimentIds=b.experiments.experimentIds;this.S=b.ga;this.rq=b.Z;this.referrer=b.referrer;this.region=b.region;this.o=b.R;this.searchQuery=b.searchQuery;this.userAge=b.userAge;this.Y=b.Fd;this.sa=u_();this.autoplay=a.Rg||this.autoplay;this.di=a.Tp||this.di;this.U=a.ek;this.clientPlaybackNonce=a.clientPlaybackNonce;this.F=a.Wh;this.aa=a.nn;this.A=a.ck;this.O=a.bf;a.o&&(this.Ga=a.o.id,a.F&&a.F.id!=this.Ga&&(this.D=a.F.id));this.fu=
a.ne;this.Ka=a.dk;a.Qa&&(this.ma=a.wb?"dvr":"live");this.Wa=a.Dn;this.playbackId=a.playbackId;this.Da=a.H;this.playlistId=a.playlistId;this.o=a.ab||this.o;this.R=a.ic;this.V=a.jc;this.ib=a.Zh;this.subscribed=a.subscribed;this.bb=a.mc;this.videoId=a.videoId;this.tb=a.$v;this.$a=a.Ob;this.ab=a.hu}f=D1.prototype;f.di=!1;f.autoplay=!1;f.$y=!1;f.Up=!1;f.eu=!1;f.az=!1;f.fu=!1;f.rq="yt";f.Bj=null;f.eh=null;
f.send=function(){if(!this.J){var a=E1(this),a=Ve(this.ta,a);this.I?this.C&&Kj(a,{method:"POST",Ib:{atr:this.C}}):og(a);this.J=!0}};
function E1(a){var b={ns:a.rq,el:a.Fa,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.wf(a.A),plid:a.playbackId,ei:a.Da,fmt:a.Ga,fs:a.eu?"1":"0",rt:a.wf(a.pa),of:a.ab,adformat:a.ua,content_v:a.Aa,euri:a.Za,subscribed:a.subscribed,lact:a.sa,live:a.ma,cl:a.bb,mos:a.ga,q:a.searchQuery,osid:a.$a,state:a.ob,vm:a.tb,volume:a.na};qa(b,a.Ca);a.di&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.Up&&(b["final"]="1");a.fu&&(b.splay="1");a.O&&(b.delay=a.O);a.S&&(b.hl=a.S);a.region&&
(b.cr=a.region);n(a.userAge)&&a.Y&&(b.uga=a.Y+a.userAge);n(a.N)&&(b.len=a.wf(a.N));!a.j&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.eh&&(b.rtn=a.wf(a.eh));a.o&&(b.feature=a.o);a.playlistId&&(b.list=a.playlistId);a.R&&(b.ctrl=a.R);a.V&&(b.ytr=a.V);a.ib&&(b.ssrt="1");a.D&&(b.afmt=a.D);a.j?(b.idpj=a.Ka,b.ldpj=a.Wa,null!=a.Bj&&(b.rti=a.wf(a.Bj))):(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.Z)&&a.U&&(b.tst=a.U);a.j&&(b.st=F1(a,E(a.segments,
function(a){return a.startTime})),b.et=F1(a,E(a.segments,function(a){return a.endTime})));gb(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=F1(a,E(a.segments,function(a){return a.visibilityState})));gb(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=F1(a,E(a.segments,function(a){return a.playbackRate})));gb(a.segments,function(a){return"-"!=a.Uk})&&(b.cc=E(a.segments,function(a){return a.Uk}).join(","));Dj()&&a.F&&(b.ctt=a.F,b.cttype=a.aa);a.ca&&(b.etype=n(a.G)?a.G:0);return b}
f.wf=function(a){return(1*a.toFixed(3)).toString()};function F1(a,b){return E(b,a.wf).join(",")};function G1(a){Q.call(this);this.j=a;this.B=new z1(a);R(this,this.B);this.o=new q1(a);this.D="paused";this.F=NaN;this.H=[10,10,10,40];this.I=this.G=0;this.O=this.S=this.N=this.J=this.A=!1;this.C=NaN;this.R=new y1(this.o,this.j.j,this.j.fa)}z(G1,Q);function H1(a,b,c){var d=v1(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(x(a.nA,a,c,b),d);return c}f=G1.prototype;
f.nA=function(a,b){if(!this.ka()){this.F=NaN;this.o.update();var c=u1(this.o),d=I1(this,c);b&&(d.Bj=a);var e=400<this.I;!(1<c.length)&&c[0].isEmpty()||e||(d.eh=H1(this,!0,a));d.send();this.I++}};function Xr(a,b){var c=J1(a.j);qa(c,{state:a.D});c=new D1(a.j.j,a.j.fa,b,c);c.A=a.j.o();c.N=a.j.C();c.pa=v1(a.j);c.segments=[r1(a.j)];return c}function I1(a,b){var c=Xr(a,"watchtime");c.segments=b;c.A=a.o.j;return c}function K1(a){a.o.update();return I1(a,u1(a.o))}
function L1(a){var b=a.j.fa;a=a.j.j;var c=a.ab||b.R,c={ns:b.Z,html5:"1",el:b.ja,ps:b.j,fexp:b.experiments.experimentIds.join(",")||void 0,feature:c||void 0,ctrl:a.ic||void 0,ytr:a.jc||void 0,list:a.playlistId,d:b.ob,f:b.Ca};b.autoplay&&(c.autoplay="1");a.subscribed&&(c.subscribed=a.subscribed);return c}function M1(a){a.j.j.remarketingUrl&&!a.S&&(og(a.j.j.remarketingUrl),a.S=!0);a.j.j.ppvRemarketingUrl&&!a.O&&(og(a.j.j.ppvRemarketingUrl),a.O=!0);N1(a)}f.cg=function(){this.B.cg()};
f.onError=function(a,b){this.B.onError(a,b)};
function O1(a,b){if(!a.ka()){X(b.state,2)?(a.D="paused",0<Jv(b,2)&&a.A&&K1(a).send()):X(b.state,8)?(a.D="playing",a.A&&isNaN(a.F)&&H1(a,!1)):a.D="paused";var c=a.B,d=b.state,e;e=b.state;if(X(e,128))e="ER";else if(X(e,16)||X(e,32))e="S";else{var g=A1[Ps(e)];"B"==g&&X(e,4)&&(g="PB");e=g}if(e!=c.o){var g=e,h=v1(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.ka()){var k=C1(c);k.qoealert="1";k=Ve(c.j.fa.Da,k);og(k)}c.N=!0}"B"!=
g||"PL"!=c.o&&"PB"!=c.o||(c.F=!0);c.B=h}!c.j.fa.experiments.B||"B"!=e&&"PB"!=e?B1(c,"cmt",[c.j.o().toFixed(3)]):c.vj();B1(c,"vps",[e]);c.o=e}if(X(d,128))c.onError(d.j.errorCode,d.j.errorDetail);(X(d,2)||X(d,128))&&c.ah();a.C&&X(b.state,128)&&(a.Dj("error-100"),M(a.C))}}function P1(a){a.C=Vf(x(a.Dj,a,"heartbeat"),3E4)}
f.Dj=function(a){var b=this.j.fa,c=this.j.j,d={ns:b.Z,el:b.ja,eurl:b.G,fmt:c.o?c.o.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.Vi&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=t1(this.o));qa(d,b.A);og(Ve("//www.youtube.com/live_204",d))};f.P=function(){G1.K.P.call(this);M(this.F);this.F=NaN;var a=this.o;Wf(a.D);a.D=NaN};G1.prototype.getDebugInfo=function(){return E1(Xr(this,"playback"))};
function N1(a){a.j.j.D.eventLabel=a.j.fa.ja;a.j.j.D.playerStyle=a.j.fa.j;a.j.j.ma&&(a.j.j.D.feature="pyv");a.j.j.D.vid=a.j.j.videoId;a.j.j.D.isAd=!("adunit"!=a.j.fa.ja&&!a.j.j.ma)};function Q1(){this.endTime=this.startTime=-1;this.Uk="-";this.playbackRate=1;this.visibilityState=0}Q1.prototype.isEmpty=function(){return this.endTime==this.startTime};function R1(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 v1(a){var b=window.performance&&window.performance.now?window.performance.now():y();0>a.A&&(a.A=b);return Math.round(b-a.A)/1E3}
function J1(a){var b=a.B();a=a.j;var c={};a.o&&(c.fmt=a.o.id,a.F&&a.F.id!=a.o.id&&(c.afmt=a.F.id));a.sa&&(c.threed=a.Yv);c.plid=a.playbackId;c.ei=a.H;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Pk&&(c.infringe=1);a.ne&&(c.splay=1);a.Qa&&(c.live=a.wb?"dvr":"live");a.Rg&&(c.autoplay=1);a.Yh&&(c.sdetail=a.Yh);a.U&&(c.partnerid=a.U);a.Ob&&(c.osid=a.Ob);qa(b,c);return b}
function r1(a){var b=new Q1;b.Uk=a.B().cc||"-";var c=a.fa;b.playbackRate=c.Bb&&c.Bb.playbackRate||1;(c=Bh("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.fa.gb?b.visibilityState=2:a.fa.Wp&&(b.visibilityState=1);return b};function S1(a,b){this.state=a;this.j=b}function Jv(a,b){return X(a.state,b)&&!X(a.j,b)?1:!X(a.state,b)&&X(a.j,b)?-1:0};function T1(a,b,c,d){S.call(this);this.Aa=new o1;this.H=c;this.ua=d;this.D=new Us(x(this.getCurrentTime,this),x(this.UD,this),x(this.getPlayerState,this),x(this.yb,this));R(this,this.D);this.aa=NaN;this.N=this.G=null;this.F=a;this.na=new l1(a,this.ua);this.pa=!1;this.I=this.A=null;this.O=[];this.U=new b0;this.R=new b0;this.Fa=this.sa=!1;this.ta=NaN;this.C=new Gs;this.Ka=b;this.Y=this.ca=null;this.J=NaN;this.Z=new Nv(this);this.j=new Nr;this.o=this.V=null;this.ga=NaN;this.B=null;this.Da=!1;this.da=
0;this.ma=!1}z(T1,S);function Lr(a){Ww()?Zw(a.da):M(a.da)}f=T1.prototype;f.P=function(){M(this.ga);Wf(this.ta);Kr(this);U1(this);Lr(this);gE(this);Ei(this.Y,this.Z,this.j);this.Z=this.N=null;this.ma=!1};
function V1(a,b,c){a.O.length=0;a.U.reset();a.R.reset();a.aa=NaN;a.J=NaN;a.V=null;a.Da=!1;a.o&&Es(a.o);W1(a);Kr(a);U1(a);Lr(a);Ci(a.j);a.D.reset();if(2==a.Ka||hg(a.F.H))b.Xp=!0;b.ye=a.j.ye;a.j=b;a.j.subscribe("dataupdated",a.ZB,a);a.j.subscribe("dataloaded",a.Ho,a);a.j.subscribe("dataloaderror",a.gk,a);a.j.subscribe("onStatusFail",a.YB,a);b.vf&&b.vf>b.startSeconds&&(b=b.vf,a.N&&(a.D.uh(a.N),a.N=null),a.N=new Qs(1E3*b,2147483646),a.N.Xa.subscribe("onEnter",a.$f,a),Vs(a.D,[a.N]));Kr(a);a.j.Ye||(c=new R1(a.j,
a.F,c,x(a.bd,a),x(a.getCurrentTime,a),x(a.Pw,a),x(a.ua.vb,a.ua),x(a.hx,a)),a.B=new G1(c));a.ma=!1;b2(a,"newdata");c2(a,new Gs)}function Kr(a){if(a.B){var b=a.B;if(!b.ka()&&b.A){b.D="paused";var c=K1(b);c.Up=!0;c.send();c=b.B;"PL"==c.o&&(c.o="N");B1(c,"vps",[c.o]);c.ah();M(b.C);b.dispose()}Ci(a.B);a.B=null}}f.getVideoData=function(){return this.j};f.W=function(){return this.F};function d2(a){if(iJ(a.j))return!0;Iv(a,"api.invalidparam");return!1}
function e2(a,b){a.sa=!!b;d2(a)&&!a.U.o&&(a.U.start(),a.B&&a.B.cg(),a.Ho())}
f.Ho=function(){if(dJ(this.j))dJ(this.j),this.U.j=!0,this.O=sb(this.j.I),bF(this.j),bJ(this.j)&&(this.j.wb&&(f2(this,this.j.lengthSeconds),g2(this,!0)),this.j.A.j&&h2(this),jr(this,"i")),b2(this,"dataloaded"),this.R.o&&i2(this);else if(this.j.ga){var a=this.j,b=this.F.experiments.V;a.ga=!1;var c=a.R;eg(c)||Xf(Error("DASH MPD Origin invalid: "+c),"WARNING");var d=Aj(c),c=0>Nr.A.indexOf(d)?jg(c):kg(c),d=x(a.lA,a),a=x(a.En,a);PH(new IH(c,b),c,d,a);mI("mrs")}else this.j.Qf||(b=E_(this.F,this.j,this.ua.vb()),
jJ(this.j,b,this.F.experiments.da))};function j2(a){e2(a);d2(a)&&!X(a.C,128)&&(a.R.o||(a.R.start(),c2(a,Ls(a.C,8))),i2(a))}function i2(a){if(!(a.R.j||!a.U.j||X(a.C,128)||a.O.length||(a.D.ae||a.D.cg(),a.O.length||0<cs(a.D.j,-2147483648).length))){if(a.A){var b=a.A;a.Fa=!!b.O&&!!b.U}a.R.j=!0;a.j.Qa&&k2(a,Infinity,!0);a.B&&(b=a.B,b.j.j.wi&&b.j.j.kl&&(b.Dj("connected"),P1(b)));a.L("playbackready",a)}}f.$f=function(a){this.pauseVideo();a=0==a?new Gs:new Gs(14);c2(this,a)};
function l2(a,b,c,d){a.j.o=c;a.j.F=d||c;if(a.B){var e=a.j,g=n1(a.na,e),e=F(e.A.o,x(g.B,g)),e=new k1(c,b,e?e.id:"");d&&"i"==b&&m2(a,b,d);d=a.B.B;c=v1(d.j);B1(d,"vfs",[e.j.id,e.o,d.V,e.reason],c);d.V=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),B1(d,"view",e,c));B1(d,"vps",[d.o],c);d.ah(c)}a.L("internalvideoformatchange",a.j,"m"==b)}
function m2(a,b,c){a.j.F=c;if(a.B){var d=a.B.B;c=new k1(c,b,"");var e=v1(d.j);c.j.id!=d.H&&(B1(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 Iv(a,b,c,d){if(Nb(wt,c))var e=c;else var g=c;c2(a,Js(a.C,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));Lr(a);U1(a);n2(a)}function o2(a,b){a.O=a.O.filter(function(a){return b!=a});a.R.o&&i2(a)}f.yb=function(){return this.C.yb()};f.getPlayerState=function(){return this.C};f.getPlayerType=function(){return this.Ka};
function p2(a,b){a.o&&gE(a);a.o=b;q2(a)}function gE(a){a.I=null;a.A&&(S0(a.A),a.A.H=!0);a.o&&(a.B&&a.U.o&&X(a.C,64)&&r2(a),W1(a),a.Z.removeAll(),Es(a.o),a.o=null)}
function s2(a){j2(a);X(a.C,64)&&c2(a,Ls(a.C,8));if(a.R.j&&a.o)if(a.j.A){a.j.Qa&&(0==a.getCurrentTime()||a.getCurrentTime()<Vr(a.j))&&k2(a,Ur(a),!0);var b;if(a.j.A.j)b=t2(a),a.A.resume();else{U1(a);b=a.j.V.j();var c=a.j,d={};c.J&&(d.ptk=c.J,d.oid=c.Qh,d.ptchn=c.Nh,d.pltype=c.Rh);qa(b.o,d);qa(b.o,{c:a.F.A.c,cver:a.F.A.cver})}(c=a.o.Dc)&&c.equals(b)?Cs(a.o):u2(a,b)}else Iv(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}
function kr(a){if(!a.j.A)return[];var b=v2(a);a=Xt(a.j.A,b);a.length&&(a=a.concat(["auto"]));return a}function w2(a){return Ut(Ut(m1(a.na,a.j),n1(a.na,a.j)),v2(a))}function v2(a){return a.j.ll?Rt:a.G?a.G.A:bJ(a.j)&&a.j.A.j&&JH(a.j.j)?Qt:Rt}
function jr(a,b,c){if(!a.ka()&&!X(a.C,128)&&(c&&(a.j.Mj=c),bJ(a.j))){"m"==b&&c&&St(c)&&(b="a");var d=w2(a);a.j.A.j?"i"!=b&&(c=a.A,c.ka()||((d=R_(c.D,d,b))&&c.L("videoformatchange",d),V0(c,c.o,U_(c.D)),Tt(c.D.j)&&"m"==b&&n0(c.o),u0(c.o)&&P0(c,c.o,c.A),S0(c))):(a.j.V=Mu(a.j.N,d),l2(a,b,a.j.V.Sb));a.yb()&&s2(a)}}function x2(a){var b=a.getVideoData().F;if(!b)return a.getVideoData().Y;var c=F(a.j.A?a.j.A.audioTracks:[],function(a){return a.id==b.id});return c?c:a.getVideoData().Y}
function h2(a){TH(a.j.j,{c:a.F.A.c,cver:a.F.A.cver});var b=a.F,c=new NC;if(ss()||b.experiments.ga)c.N=!0;ss()&&(c.H=-1);0<=b.jc&&(c.liveChunkReadahead=b.jc);b.experiments.Ga&&(c.I=300);b.experiments.sa&&(c.U=!0);b.experiments.ta&&(c.Y=!0);b.experiments.pa&&(c.V=!0);b.experiments.ua&&(c.Ga=!0);if(rs("trident/")||rs("edge/"))c.G=240;if(DD(b)){var d=b.experiments;c.A=8388608;c.o=524288;c.j=2097152;c.F=1048576;c.J=1.5;c.R=15;c.C=!0;c.S=!1;c.I=0;c.D=Nt.hd720;rs("(ps4; leanback shell)")&&(c.ya=d.Z?625E3:
562500);qs()&&d.Za&&(c.A=13631488,c.o=2621440)}ts()&&(c.A=20971520,c.o=1572864,c.ya=812500,c.j=20971520,c.B=1E3);var d=b.Ka||new H(window.screen.width,window.screen.height),e=window.devicePixelRatio||1;2560<=d.width*e&&1440<=d.height*e&&(c.A=52428800,c.o=5242880,c.j=20971520,c.F=8388608,c.D=Nt.auto);b.experiments.U&&(c.ya=NaN);b.experiments.ca&&(c.j=1.5*c.F);a.A=new F0(a.ca,c,a.j.j,a.j.A);a.A.subscribe("initsegment",a.FA,a);a.A.subscribe("videoformatchange",a.QA,a);a.A.subscribe("audioformatchange",
a.PA,a);a.A.subscribe("error",a.gk,a);a.A.subscribe("seekrequired",a.JC,a);b=G(a.O,"spacecast")||a.sa;a.A.initialize(a.j.startSeconds,w2(a),b);a.j.probeUrl&&(a.A.V=a.j.probeUrl);if(a.O.length||a.sa)a.A.H=!0;a.sa&&r2(a)}function r2(a){var b=new S1(new Gs(4),a.C);O1(a.B,b)}function U1(a){a.A&&(a.A.dispose(),a.A=null);a.I&&(a.I.dispose(),a.I=null)}
function t2(a){a.I||(a.A?a.A.seek(a.getCurrentTime()):h2(a),a.I=new qu(a.o,a.j.lengthSeconds,a.j.A.o[0].mimeType,a.j.A.j[0].mimeType),ru(a.I,x(a.A.ew,a.A)));try{return su(a.I)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),Iv(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}}
f.FA=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&&h1(b,new f1(a),!1)}}};f.QA=function(a){l2(this,a.reason,a.video.info,a.j.info);var b=gJ(this.j);b&&b.C(a.video)};
f.PA=function(a){m2(this,a.reason,a.j.info)};f.gk=function(a){if(a.o)Iv(this,a.errorCode,void 0,a.j);else{var b;if(b=this.F.experiments.A&&("net.badstatus"==a.errorCode||"manifest.net"==a.errorCode))b=this.j,b=y()-b.Zv>Nr.C;if(this.B&&(this.B.onError(a.errorCode,a.j),b))this.B.onError("staleconfig");b&&this.L("signatureexpired")}};f.pauseVideo=function(a){X(this.C,64)&&!a&&c2(this,Ms(this.C,8));this.o&&(a&&!X(this.C,128)&&c2(this,Ls(this.C,256)),this.o.pauseVideo())};
function n2(a){a.pauseVideo(!0);a.o&&(W1(a),a.I&&(a.I.dispose(),a.I=null),a.j&&(a.j.startSeconds=a.getCurrentTime()),a.J=NaN,Ds(a.o),X(a.C,128)||c2(a,Js(a.C)))}function k2(a,b,c,d){if(a.o&&a.R.j){b=Pc(b||0,Vr(a.j),Ur(a));b>=Ur(a)?g2(a,!0):g2(a,!1);a.j.startSeconds=b;a.J=b;var e=a.Aa;e.j=b;e.o=!0;c?a.fk():(y2(a),d&&(a.Y||(a.Y=new Pv(a.fk,d,a)),a.Y.start()),z2(a,!0));a.N&&b>a.j.vf&&(a.D.uh(a.N),a.N=null);b<a.bd()&&c2(a,Ms(a.C,2));a.L("seekto",a,b)}else a.j.startSeconds=b||0}
function y2(a){X(a.C,32)||(c2(a,Ls(a.C,32)),X(a.C,8)&&a.pauseVideo(!0),a.L("beginseeking",a))}f.fk=function(){if(!isNaN(this.J)&&this.o){var a=this.bd();!this.j.Qa&&this.J>=Math.floor(a)?(this.J=a,this.L("endseeking",this),this.pauseVideo(!0),this.$f()):(this.A&&this.A.seek(this.J),As(this.o,this.J))}this.Y&&(this.Y.dispose(),this.Y=null);X(this.C,32)&&(c2(this,Ls(Ms(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.ck||this.j.startSeconds||0);return a};f.bd=function(){return kJ(this.j)?Infinity:this.j&&this.j.lengthSeconds?this.j.lengthSeconds:Ur(this)?Ur(this):0};
f.Pw=function(){var a=new p1;if(this.ca&&this.A){var b=this.ca;a.A=b.D;a.C=b.F;a.j=bG(b);b=this.A;b.j&&!uu(b.j)&&(a.o=js(b.j.o.buffered,b.C),a.B=js(b.j.j.buffered,b.C));a.j=N_(b.I);bG(b.G);$F(b.G);aG(b.G)}else this.o&&(a.o=js(this.o.buffered,this.getCurrentTime()));return a};function A2(a){if(a.o)if(kJ(a.j))a=1;else if(lJ(a.j))if(a.pa)a=0;else{var b=a.o;a=(0<is(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.bd()}else a=lr(a.o);else a=0;return a}
T1.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()),X(this.C,128)&&(b.debug_error=this.C.j),(this.O.length||0<cs(this.D.j,-2147483648).length)&&(b.preroll="1"));b.debug_videoId=this.j.videoId;return b};f=T1.prototype;f.ZB=function(){if(this.G){var a=this.G,b=this.j.C;a.B=b;a.L("oauthtoken",b)}b2(this)};
f.YB=function(a){Iv(this,"auth",unescape(a.reason),a.errordetail||"sec."+a.errorcode)};function b2(a,b){a.L("internalvideodatachange",b||"dataupdated",a,a.j)}function q2(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.XD)},a)}
f.XD=function(a){var b=a.target;if(b==this.o&&b.currentSrc){switch(a.type){case "error":if(this.F.Uh&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(x(function(){this.o&&(this.j.V&&this.o.load(),s2(this))},this),500);if(this.B)this.B.onError("progressive.net");return}break;case "durationchange":if(!this.j.wb||this.j.j&&!this.j.j.isLive)b=b.duration||0,(!this.I||isFinite(b)&&0<b)&&1!=b&&f2(this,b);break;case "ratechange":this.A&&(this.A.I.A=Math.max(1,this.o.playbackRate));this.D.cg();
break;case "ended":c2(this,Js(this.C,4));this.Pm();break;case "loadedmetadata":this.j.startSeconds&&(this.o.currentTime=this.j.startSeconds),this.F.yk&&this.j.startSeconds&&(this.aa=this.j.startSeconds,this.pauseVideo(!0));case "loadstart":Wf(this.ta);this.Wk()||(this.ta=Vf(x(this.Wk,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.mA));case "suspend":z2(this);this.L("onLoadProgress",
this,A2(this));break;case "seeked":B2(this);break;case "seeking":this.A&&this.A.seek(b.currentTime);break;case "playing":mI("plev",void 0,this.H.j);break;case "timeupdate":this.Da=!0;this.Wk();B2(this);z2(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=Hs(this.C,a,this.Aa);c2(this,a)}};
f.Wk=function(){var a=this.o;a&&this.Da&&!this.j.an&&!qI("vfp",this.H.j)&&2<=a.readyState&&!a.ended&&0<is(a.buffered)&&mI("vfp",void 0,this.H.j);if((a=this.o)&&!this.j.an&&0<(a.duration||0)&&(!qI("pbr",this.H.j)&&Bs(a)&&2<=a.readyState&&0<is(a.buffered)&&mI("pbr",void 0,this.H.j),0<a.getCurrentTime())){Wf(this.ta);M(this.ga);this.j.an=!0;C2(this);if(this.B){a=this.B;if(!a.A){var b=Xr(a,"playback");a.H=[10+a.j.j.dk,10,10,40+a.j.j.Dn-a.j.j.dk,40];var c=a.o;Wf(c.D);c.D=NaN;c.D=Vf(x(c.update,c),100);
c.C=v1(c.o);c.B=r1(c.o);b.eh=H1(a,!0);b.az=!0;b.send();!a.j.fa.jh||a.j.fa.ic||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:G_(b),eurl:b.G,framer:b.ma,feature:b.R,fmt:c.o?c.o.id:0,ptk:c.J,skl:c.Wr,access_token:c.C,ucid:c.Uh},qa(b,L1(a)),delete b.fexp,b=Ve(a.j.fa.B+"user_watch",b),og(b));a.j.j.J&&(b=a.j.fa,c=a.j.j,b=Ve(b.B+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.H,ptk:c.J,
oid:c.Qh,ptchn:c.Nh,pltype:c.Rh,content_v:b.ca}),og(b));if(a.j.j.Vp&&a.j.fa.na&&!a.A){var b=a.j.fa,c=a.j.j,d={noflv:1,video_id:c.videoId,cpn:c.clientPlaybackNonce,el:b.ja,ps:b.j,referrer:G_(b),eurl:b.G,framer:b.ma,fmt:c.o?c.o.id:0,ptk:c.J,subscribed:c.subscribed,t:c.yk};b.autoplay&&(d.autoplay="1");c.ne&&(d.splay="1");0<c.startSeconds&&(d.start=1E3*c.startSeconds);c.Vi&&(d.tmi="1");b=Ve(a.j.fa.B+"get_video",d);og(b)}a.j.j.wi&&(a.Dj("playback"),a.C||P1(a));a.j.j.bf||M1(a);a.A=!0;a=a.o;a.j=a.o.o();
a.C=v1(a.o);.5<a.j-a.A&&(a.A=a.j)}L(x(this.Pm,this),4500)}this.L("playbackstarted");this.A&&(this.A.ga=!0);Ww()&&$w();return!0}return!1};
function C2(a){var b=a.getCurrentTime(),c=a.j;!qI("pbs",a.H.j)&&jI.measure&&jI.getEntriesByName&&(jI.getEntriesByName("mark_navigation_requested")[0]?jI.measure("measure_above_the_fold","mark_navigation_requested"):jI.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&&Bs(a.o)&&a.H.info("paused",1);c.o?a.H.info("fmt",c.o.id):
a.H.info("fmt","-1");c.$a&&a.H.info("yt_pre",a.Fa?"2":"1");a.F.gb&&a.H.info("yt_fs","1");a.H.info("tds",Math.round(A2(a)*a.bd()).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.U),c.length&&(c=c[0],J0(b,"vri",c.fetchStart),J0(b,"vdns",c.domainLookupEnd),J0(b,"vreq",c.requestStart),J0(b,"fvb",c.responseStart),J0(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.O),c.length&&
(c=c[0],J0(b,"ari",c.fetchStart),J0(b,"adns",c.domainLookupEnd),J0(b,"areq",c.requestStart),J0(b,"avb",c.responseStart),J0(b,"arc",c.responseEnd)));var b=b.pa,d;for(d in b)mI(d,b[d],a.H.j)}}f.mA=function(){this.Ca&&(this.Z.Ia(this.Ca),this.Ca=void 0,Cs(this.o))};
function z2(a,b){if(a.o&&a.j){var c=a.getCurrentTime();if(c<Vr(a.j))k2(a,Ur(a),!0);else{if(a.A){var d=a.A;if(d.j){d.resume();if(d.N&&!uu(d.j)){var e=d.C<=c&&c<d.C+10,g=0<=gs(d.j.j.buffered,d.C+F0.j)&&0<=gs(d.j.o.buffered,d.C+F0.j);e&&g&&(d.N=!1)}d.N||(d.C=c);G0(d)}}lJ(a.j)&&c>a.bd()&&(d=a.bd(),0==d&&(d=c),f2(a,1.2*d));5<c&&(a.j.startSeconds=c);(d=Ww())?Zw(a.da):M(a.da);Bs(a.o)||(e=x(a.Rx,a),a.da=a.o.played&&0==a.o.played.length?d?Xw(e,100):L(e,100):d?Xw(e,500):L(e,500));a.j.ck=c;!b&&a.yb()&&a.B&&
(d=a.B,d.o.update(),d.j.j.lengthSeconds&&d.j.j.bf&&!d.N&&t1(d.o)>=d.j.j.bf&&(d.A&&d.j.j.bf&&(e=Xr(d,"delayplay"),e.$y=!0,e.send(),d.N=!0),M1(d)),e=d.R,!e.A&&e.fa.na&&!e.fa.ic&&e.j.lengthSeconds&&t1(e.B)>=e.j.Rr&&d.R.send());a.L("progresssync",a,b);a.j.fz=c}}}f.Rx=function(){if(this.o){var a=this.getCurrentTime();if(X(this.C,8)&&Ks(this.Aa,a,Date.now(),js(this.o.buffered,a))){var b=this.bd();b&&1>Math.abs(b-a)?this.$f():c2(this,Ls(this.C,1))}z2(this)}};
function c2(a,b){var c=a.C;if(b.o!=c.o||b.j!=c.j){c=new S1(b,a.C);a.C=b;0>Jv(c,8)&&(M(a.ga),g2(a,!1));0<Jv(c,32)&&g2(a,!1);a.A&&(0>Jv(c,8)&&0<Jv(c,4)?a.A.ca=!0:X(b,4)||(a.A.ca=!1));lJ(a.j)&&X(c.state,2)&&(f2(a,a.getCurrentTime()),z2(a,!0));a.B&&O1(a.B,c);var d=a.D;if(d.ae&&!d.$i)if(Xs(d),X(c.state,2)){d.C=null;for(var e=[],g=0;g<d.o.length;g++){var h=d.o[g];h.mo&&2147483647>h.end&&e.push(h)}g=cs(d.j,2147483646);g=g.concat(ds(d.j,2147483646));e=Zs(d,e).concat(Ys(d,g));$s(d,e)}else X(c.state,16)?(d.A=
Ws(d),d.B.stop(),d.B.start(),d.zc()):(d.B.stop(),X(c.j,16)?(d.A=Ws(d),null!=es(d.j,Math.max(d.A-2E3,0))&&(d.Ug=zn(x(d.zc,d)))):d.zc());a.L("statechange",c)}}f.hx=function(){this.j.Qa||this.L("connectionissue")};f.JC=function(){As(this.o,Math.max(0,this.o.currentTime+.1))};function B2(a){X(a.C,2)||X(a.C,32)||(a.J=NaN)}function g2(a,b){a.j.wb&&a.pa!=b&&(a.pa=b,a.L("liveviewshift",b))}function u2(a,b){D2(a,b);a.F.Th?L(x(function(){Cs(this.o)},a),0):Cs(a.o)}
function D2(a,b){mI("vta",void 0,a.H.j);xs(a.o,b);if(OD(a.j)){var c=OD(a.j);if(c&&!a.G&&a.o){var d=a.j.o.mimeType;if(c=Gt(a.o,d,c)){a.G=new g1(a.o,c);a.G.subscribe("newsession",a.WD,a);a.G.subscribe("licenseerror",a.GA,a);a.G.subscribe("qualitychange",a.HA,a);a.G.subscribe("heartbeatparams",a.VD,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 Iv(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}}a.I&&bx();M(a.ga);a.ga=L(x(a.NA,a),15E3)}
function W1(a){a.G&&(a.G.dispose(),a.G=null)}f.WD=function(a){var b={};qa(b,this.F.A);b.cpn=this.j.clientPlaybackNonce;this.j.G&&(b.vvt=this.j.G);this.F.mb&&(b.authuser=this.F.mb);this.F.pageId&&(b.pageid=this.F.pageId);ac(a.C,b);Qr(a,a.D);this.L("newlicensesession",a)};f.GA=function(a,b,c){Iv(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.HA=function(){jr(this,"r");b2(this)};f.VD=function(a){this.L("heartbeatparams",a)};f.NA=function(){if(this.B)this.B.onError("qoe.start15s");this.L("loadsofttimeout")};
function f2(a,b){a.j.lengthSeconds!=b&&(a.j.lengthSeconds=b,b2(a))}f.Pm=function(){if(!this.ma){var a=new j1(this.j),b;"c1a"in a.A?(b=t("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)L(x(this.Pm,this),4500);else{var c;if(a.j&&a.j.da){b=[a.j.da];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=Xr(a,"atr"),b.C=c,b.send(),a.J=!0),this.ma=!0)}}};
function Ur(a){if(!a.o)return 0;if(!a.j.Qa)return a=a.j,a.j&&!isNaN(RH(a.j))?RH(a.j):a.lengthSeconds;if(!a.j.wb)return a.getCurrentTime();if(a.A){var b=T0(a.A),b=Math.max(b,Vr(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.UD=function(){return this.o?this.o.playbackRate:1};var E2={TI:0,SI:-1,nH:-2};function F2(a){this.j=a}f=F2.prototype;f.sl=function(){return WQ(this.j)};f.xl=function(){return this.j.B};f.Cf=function(){return this.j.B};f.Oi=function(){var a=this.j.A;return null!=a?a:new xQ};f.Pi=function(){var a=this.j;null!=a.j&&wQ(a.j.j,!0)};f.Ij=function(){};f.Nl=function(){return this.j.D};f.Ol=function(){return!1};f.Qi=function(){return this.j.G};f.Ml=function(){};f.$=function(){};function bY(a,b){jm.call(this,"adsManagerLoaded");this.A=a;this.B=b}z(bY,jm);function G2(a,b,c,d){a.A.Rc(new F2(b),c,d);return a.A};function H2(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function I2(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 J2(a,b){if(a){var c=PU(a);if(c){var d=QU(a)||[];b.ad_id=rb(d,c).join(",");if(c=IU(a))d=SU(a)||[],b.ad_sys=rb(d,c).join(",");fV(a)?b.survey=1:FU(a)&&(b.skip=1)}}}
function K2(a,b){if(a[b])return H2(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return H2(a[d]);return!1}function L2(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 M2(a,b,c,d){this.B=a;this.C=b;this.j=c;this.D=d}M2.prototype.A="";M2.prototype.o="";function N2(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 O2=!1;function P2(){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 Q2(){var a=t("window.google_show_companion_ad");ha(a)?a():O2=!0}function R2(){var a=t("yt.www.watch.ads.setCompanion");a&&a()}function S2(a){var b=t("yt.www.watch.ads.showForcedMpu");b&&b(a)}Li("showCompanionAdLoaded",function(){O2&&(Q2(),O2=!1)});function T2(a,b){S.call(this);this.B=!!b;this.o=a;this.j=new Nv(this);this.A=this.C=null;b&&fd&&a.setAttribute("draggable","true");U2(this)}z(T2,S);function U2(a){a.A=null;a.C=null;a.j.M(a.o,V2("over"),a.xD);a.j.M(a.o,"touchstart",a.AD)}f=T2.prototype;f.xD=function(a){this.j.removeAll();this.j.M(this.o,V2("move"),this.As);this.j.M(this.o,V2("out"),this.Bs);this.B&&this.j.M(this.o,V2("down"),this.zs);this.L("hoverstart",Gh(a),Hh(a),a.target);this.L("hovermove",Gh(a),Hh(a),a.target)};
f.As=function(a){this.A&&Gh(this.A)==Gh(a)&&Hh(this.A)==Hh(a)&&this.A.relatedTarget==a.target||this.L("hovermove",Gh(a),Hh(a),a.target);this.A=null};f.Bs=function(a){a.relatedTarget&&ce(this.o,a.relatedTarget)?(this.A=a,this.L("hovermove",Gh(a),Hh(a),a.relatedTarget)):(this.j.removeAll(),U2(this),this.L("hoverend",Gh(a),Hh(a),a.relatedTarget))};
f.zs=function(a){ga(a.button)&&0!=a.button||(this.j.removeAll(),this.j.M(document,V2("move"),this.rz),this.j.M(document,V2("up"),this.yD),fd?this.j.M(this.o,"dragstart",this.Bw):a.preventDefault(),this.L("dragstart",Gh(a),Hh(a),a.target),this.L("dragmove",Gh(a),Hh(a),a.target))};f.Bw=function(a){a.preventDefault()};f.rz=function(a){var b=a.target==document?null:a.target;this.L("hovermove",Gh(a),Hh(a),b);this.L("dragmove",Gh(a),Hh(a),b)};
f.yD=function(a){this.j.removeAll();a.target&&ce(this.o,a.target)?(this.j.M(this.o,V2("move"),this.As),this.j.M(this.o,V2("out"),this.Bs),this.j.M(this.o,V2("down"),this.zs),this.L("dragend",Gh(a),Hh(a),a.target)):(U2(this),this.L("dragend",Gh(a),Hh(a),a.target),this.L("hoverend",Gh(a),Hh(a),a.target))};
f.AD=function(a){var b=a.changedTouches[0];b&&(this.j.removeAll(),this.j.M(this.o,"touchmove",this.zD),this.j.M(this.o,"touchend",this.Cs),this.j.M(this.o,"touchcancel",this.Cs),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.zD=function(a){var b=W2(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.Cs=function(a){var b=W2(this,a);b&&(a.preventDefault(),this.j.removeAll(),U2(this),this.B&&this.L("dragend",b.pageX,b.pageY,a.target),this.L("hoverend",b.pageX,b.pageY,a.target))};function W2(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 V2(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.P=function(){this.j.removeAll();T2.K.P.call(this)};function X2(a,b){this.o=a;this.j=b}function Y2(a){return a.j-a.o}function Z2(a,b){return a.o+b*Y2(a)}function $2(a,b){return Y2(a)?Pc((b-a.o)/Y2(a),0,1):Infinity};function a3(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 b3(a,b,c,d){var e=Math.min(c/(b.nq/b.Eb),d/(b.lq/b.rows)),g=b.nq*e,e=b.lq*e,g=Math.floor(g/b.Eb)*b.Eb,e=Math.floor(e/b.rows)*b.rows,h=g/b.Eb,k=e/b.rows,l=Math.floor((c-h)/2);c=Math.ceil((c-h)/2);var p=Math.floor((d-k)/2);d=b.vw*h*-1;var r=b.row*k*-1;a=a.style;a.width=h+"px";a.height=k+"px";h=p+"px";a.marginTop=h;a.marginBottom=h;a.marginLeft=l+"px";a.marginRight=c+"px";a.backgroundImage="url("+b.url+")";a.backgroundPosition=d+"px "+r+"px";a.backgroundSize=g+"px "+e+"px"};function c3(){Y.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.ca="";this.o=new X2(0,0);this.$()}z(c3,Y);f=c3.prototype;
f.si=!1;f.gf=null;f.Jh=null;f.disable=function(){this.si=!0};f.va=function(){this.si||c3.K.va.call(this)};f.reset=function(){th(this.Q(),"with-thumbnail");this.Jh=this.gf=null;this.template.j["ytp-progress-tooltip-thumbnail"].removeAttribute("style")};f.dG=function(a,b){a<=this.j&&this.j<=b&&d3(this)};function d3(a){var b=QI(a.Jh,a.j,108);b3(a.template.j["ytp-progress-tooltip-thumbnail"],b,108,60)}f.P=function(){this.A=this.Jh=this.gf=null;c3.K.P.call(this)};function e3(a,b){var c=["div","ytp-progress-bar-container",["div",["html5-progress-bar","ytp-force-transform"],{tabindex:6250,role:"slider","aria-label":Zf("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:Zf("YTP_TOOLTIP_CLIP_MARKER")}],["div",["ytp-clip-end","html5-clip-marker","yt-uix-tooltip"],{title:Zf("YTP_TOOLTIP_CLIP_MARKER")}]];RD.call(this,c);this.A=a.vb().width;this.G=1;this.B=
this.ab=this.J=0;this.$a=!1;this.N=this.Y=0;this.pa=this.template.j["html5-ad-progress-list"];this.ib=this.template.j["ytp-marker-progress-list"];this.Wa=this.template.j["ytp-marker-crenellation-list"];this.H={};this.U={};this.O=Infinity;this.da=this.template.j["ytp-clip-end"];this.ta=new T2(this.da,!0);R(this,this.ta);this.ta.subscribe("hoverstart",this.bu,this);this.ta.subscribe("hoverend",this.au,this);vv(this,this.da,"click",this.$n);this.sa=this.template.j["ytp-clip-end-exclude"];this.Ka=this.template.j["ytp-clip-start-exclude"];
this.S=0;this.ga=this.template.j["ytp-clip-start"];this.ua=new T2(this.ga,!0);R(this,this.ua);this.ua.subscribe("hoverstart",this.bu,this);this.ua.subscribe("hoverend",this.au,this);vv(this,this.ga,"click",this.$n);this.Da=this.template.j["ytp-unloaded-progress"];this.ma=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 Y(["div","html5-scrubber-button"]);R(this,this.aa);this.aa.ea(this.I);
this.tb=this.template.j["ytp-scrubber-pull-indicator"];this.Fa=0;this.na=!1;this.Aa=new Qc;this.j=new X2(0,0);this.bb=!1;this.Z=b;f3(this)}z(e3,RD);f=e3.prototype;f.ZF=function(){this.o&&this.o.va()};
f.aG=function(a,b,c){var d=Ug(this.Q()),e=g3(this).j,g=c?c.getAttribute("data-tooltip"):void 0;g&&(a=$2(this.j,Number(c.getAttribute("data-position")))*e+Ug(this.I).x);this.Aa.x=a-d.x;this.Aa.y=b-d.y;b=this.bb?this.j.j:0;d=g3(this);this.o&&(a=this.o,a.si||(c=50,a.gf?(c=108,g&&(c*=2)):g&&(c=108),a.Q().style.padding="2px",a.Q().style.width=c+"px",e=c/2+2,e=(new a3(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=Z2(a.o,d.A),a.za(wv(d-b),
"timestamp"),a.gf&&(b=YH(a.gf,c),b=a.gf.j[b].jk(d),0<b&&b!=a.j&&(a.j=b,d3(a))),g?(N(a.Q(),"with-text"),a.za(g,"text")):th(a.Q(),"with-text")))};f.$F=function(){this.o&&this.o.$()};f.YF=function(a,b,c){a=h3(this);this.Fa=a.o-g3(this).A*(a.o+a.C);this.o&&this.o.$();this.B&&(Wf(this.B),this.B=0);this.ab=b;this.na=!0;this.L("beginseeking",parseFloat(c.getAttribute("data-position")))};
f.bG=function(){this.Y=0;th(this.Q(),"ytp-pull-ui");th(this.Q(),"ytp-pulling");if(0<this.J){var a=y(),b=this.J,c=g3(this).position;this.B&&Wf(this.B);this.B=tv(x(this.du,this,a,b,c),0)}this.o&&this.o.va();this.na=!1;this.L("endseeking")};f.du=function(a,b,c){var d;d=(y()-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;i3(this,(1-d)*b,e,this.C);this.B=1>d?tv(x(this.du,this,a,b,c),0):0};
function i3(a,b,c,d){b=Pc(b,0,40);a.J=b;var e=a.G,g=Math.max(Y2(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&&f3(a)}
f.cG=function(a,b){var c=!1,d=!1,e=g3(this);3600<=Y2(this.j)&&(i3(this,this.ab-b-10,e.position,e.A),d=!0,c=4<this.J,e=g3(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.Y||M(this.B);c&&(this.B=tv(x(this.cu,this,y(),this.N),0));this.Y=c;this.L("seekto",Z2(this.j,e.A),!1)};
f.cu=function(a,b){if(this.Y){var c=this.A*(this.G-1);this.N=Pc(b+this.Y*(y()-a)*.3,0,c);f3(this);this.L("seekto",Z2(this.j,g3(this).A),!1);0<this.N&&this.N<c&&(this.B=tv(x(this.cu,this,a,b),0))}};
function f3(a){var b=g3(a),c=Yd(a.Wa),d=0;if(8<a.J)for(var e=(-b.o+b.width)/b.j*(Y2(a.j)/60),g=Math.ceil(-b.o/b.j*(Y2(a.j)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),a.Wa.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/Y2(a.j)*b.j+"px"}for(e=c.length-1;e>=d;e--)Wd(c[e]);c=(-b.o+b.width)/b.j;a.za(wv(Z2(a.j,-b.o/b.j)),"boundTimeLeft");a.za(wv(Z2(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;Ig(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)j3(a,a.H[k],a.U[k]);k3(a);l3(a,a.C,a.R)}function m3(a){var b=a.j.j,c=Z2(a.j,a.C);a.template.update({ariamin:Math.floor(a.j.o),ariamax:Math.floor(b),arianow:Math.floor(c),arianowtext:Zf("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:wv(c),DURATION:wv(b)})})}
function g3(a){var b=a.Aa.x;if(a.na)var c=a.Z?32:16,b=(b+a.Fa-c/2)/(a.A-c)*a.A;c=a.A*a.G;b=Pc(b,0,a.A);return new a3(b,a.A,-a.N,-(c-a.N-a.A))}function h3(a){var b=a.Z?32:16,c=a.A*a.G;return new a3(a.C*(c-b)+b/2,c,b/2,b/2)}
function l3(a,b,c){if(b<a.S||b>a.O)a.$n();else{a.C=b;a.R=Math.max(a.C,c);m3(a);var d=$2(a.j,a.S),e=$2(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=xv(d)+"%";Ig(a.Ca,"transform","scalex("+(h-d)+")");Ig(a.aa.Q(),"transformOrigin",xv(b)+"%");b=h3(a).position+"px";a.aa.Q().style.left=b;a.tb.style.left=b;a.ma.style.left=xv(d)+"%";Ig(a.ma,"transform","scalex("+(c-d)+")");a.Da.style.left=xv(d)+"%";Ig(a.Da,"transform","scalex("+(e-d)+")")}}
function k3(a){var b=a.S>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?$2(a.j,a.S):0;c=c?$2(a.j,a.O):1;a.ga.style.left=xv(b)+"%";a.da.style.left=xv(c)+"%";a.Ka.style.width=xv(b)+"%";a.sa.style.left=xv(c)+"%";a.sa.style.width=xv(1-c)+"%"}f.bu=function(){N(this.Q(),"ytp-clip-hover")};f.au=function(){th(this.Q(),"ytp-clip-hover")};f.$n=function(){this.S=0;this.O=Infinity;k3(this);l3(this,this.C,this.R)};
function j3(a,b,c){var d=g3(a).j,e=$2(a.j,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=Ss(b);var g=a/2,d=Pc(e,g,d-g)-g;break;default:a=Math.min(Math.min($2(a.j,b.end/1E3)*d,d)-e,Ss(b)),d=Pc(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function n3(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;j3(e,d,h);"ytp-chapter-marker"==d.style?e.ib.appendChild(h):e.pa.appendChild(h)}}else o3(a,d)}}function o3(a,b){var c=b.getId();a.H[c]==b&&(Wd(a.U[c]),delete a.H[c],delete a.U[c])}
function p3(a,b){b?a.F||(a.F=new T2(a.I,!0),a.F.subscribe("hoverstart",a.ZF,a),a.F.subscribe("hovermove",a.aG,a),a.F.subscribe("hoverend",a.$F,a),a.F.subscribe("dragstart",a.YF,a),a.F.subscribe("dragmove",a.cG,a),a.F.subscribe("dragend",a.bG,a)):a.F&&(a.F.dispose(),a.F=null)}f.P=function(){this.B&&(M(this.B),this.B=0);p3(this,!1);this.ma=this.ga=this.Ka=this.da=this.sa=this.pa=null;this.U={};this.Da=this.I=this.Ca=null;this.Z=!1;e3.K.P.call(this)};function q3(a,b,c,d){S.call(this);this.j=a;this.type=b+"_"+c;this.o=d;this.A=null;this.J=c}z(q3,S);q3.prototype.C=function(){return this.type};q3.prototype.getCurrentAd=function(){return this.o?this.o.getCurrentAd():null};function r3(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=v;this.skipTime=0;this.videoUrl=this.videoId=""};function s3(a){this.j=a}function t3(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 u3(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 v3(a,b){this.j=a;this.B=b}v3.prototype.C=null;v3.prototype.o=NaN;function w3(a,b,c){a.j.L("AD_LOGGING_EVENT",b,c)}function x3(a){y3(a);var b=z3(a);if(a.A){var c=A3(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}w3(a,15,b)}function B3(a){y3(a);var b=z3(a);if(isNaN(a.o))y3(a);else{var c=y()-a.o;b.ad_stl=c}w3(a,4,b)}function C3(a){y3(a);var b=z3(a),c=a.j.pl();c?b.ad_fmt=c:y3(a);w3(a,5,b)}
function D3(a){var b=z3(a),c=a.j.pl();c?b.ad_fmt=c:y3(a);w3(a,14,b)}function z3(a){var b={},c=a.j.A,d=a.j.Ci(),e=a.j.ql();J2(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=Aj(e),b.ad_dom=c,a.B.la.B&&(b.ad_v_url=e.substr(0,512)));e=a.j;(e=e.o?e.o.zf():null)&&(b.ad_cpn=e);b.at=a.j.C();return b}function y3(a){a.C||(a.C="InstreamAdDisplay ("+a.j.C()+")")};function E3(a,b,c,d,e,g){q3.call(this,b,a,2,c);this.j.subscribe("onVolumeChange",this.Ht,this);this.j.subscribe("control_toggle_play_pause",this.It,this);this.j.subscribe("control_play",this.Tn,this);this.j.subscribe("control_pause",this.Sn,this);this.I=d;this.D=new v3(this,this.j);this.B=new Nv(this);this.H=this.F=!1;this.G=0;this.O=e;this.N=!!g}z(E3,q3);E3.j=2E3;f=E3.prototype;f.Zb=null;f.og=!1;f.Fh=null;f.Eh=null;f.Dh=null;
f.df=function(){this.D.o=y();var a;if(a=this.I){var b=zj(a),b=b.v||b.video_id;if(!b){var c=Me(Ie(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 Nr({video_id:b,dash:"0"}):null}else a=null;this.A=a;var d;a=new r3;a.isSkippable=this.O;a.skip=x(this.$C,this);a.skipShown=x(this.o.Qm,this.o);if(b=this.getCurrentAd())a.clickThroughUrl=cV(b)||"",a.skipTime=ZU(b,dV(b))||0;this.A?(this.A.ne=!0,d={video_id:this.A.videoId},
a.videoId=this.A.videoId,this.A.subscribe("onStatusFail",this.Et,this),this.A.subscribe("dataloaded",this.qr,this),b=this.j.W(),b=Yb(b.C),b.autoplay="1",b=new B_(b),b.ja="adunit",b.F=this.type,b=E_(b,this.A,this.j.o.A.vb()),jJ(this.A,b)):(this.I&&(a.videoUrl=this.I),F3(this));this.F||(G3(this.j,-1,d,a),this.Aq())};f.$C=function(){this.j.C.A.X("skip")};function H3(a){a.A&&(a.A.qa("onStatusFail",a.Et,a),a.A.qa("dataloaded",a.qr,a))}
f.qr=function(){H3(this);bF(this.A);var a=new l1(this.j.W(),this.j.o.A);bJ(this.A)?(a=Mu(this.A.N,n1(a,this.A)))?(a=a.j())?(a=new J(zs(a)),a.j.set("autoplay","1"),this.o.setMediaUrl(a.toString()),F3(this)):I3(this,Error("Failed to determine ad media resource.")):I3(this,Error("Failed to determine ad media format.")):I3(this,Error("No selectable formats."))};
function F3(a){if(Zh||2.2<=Zt&&3>Zt||(Zh||$h)&&!ci){var b=y()-a.D.o,b=E3.j-b;a.G=L(x(a.Xr,a),Math.max(0,b));N(a.j.Ma(),"ad-interstitial-showing")}else a.Xr()}
f.Xr=function(){J3(this);this.Zb=K3(this.j,!0);this.Dh=this.j.Ma();if(this.j.la.G)Wd(Hd("video-ad-status-bar"));else{var a=this.j.Ma();this.Fh=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.Eh=b;this.B.M(this.Zb,"timeupdate",this.sF)}sh(this.Dh,["ad-showing","ad-interrupting"]);this.B.M(eE(this.j.A),"mouseup",this.qF);this.B.M(this.Zb,"waiting",this.Aq);this.j.subscribe("onResize",this.Un,this);try{this.B.M(this.o,"adError",
this.pF);this.B.M(this.o,"click",this.oF);this.B.M(this.o,"complete",this.Bm);this.B.M(this.o,"pause",this.Ft);this.B.M(this.o,"start",this.Gt);this.B.M(this.o,"skip",this.rF);this.Un();var c=this.j,d=c.A,e=L3(c);d.ba.W().D&&(Yg(d.j,e),Og(d.j,0,0));this.N||this.o.start()}catch(g){I3(this,g)}};f.Gt=function(){this.og=!0;this.F=!1;this.H||(this.H=!0,B3(this.D),M3(this.j,1));pt(this.j,!0);G3(this.j,1);this.L("adPlay",this)};f.Ft=function(){this.og=!1;pt(this.j,!1);G3(this.j,2)};
f.rF=function(){D3(this.D);this.Bm()};f.Bm=function(){this.F||(C3(this.D),this.og=!1,this.F=!0,this.H=!1,G3(this.j,0),M3(this.j,0),this.L("adEnd",this))};f.pF=function(a){I3(this,a.A)};function I3(a,b){a.og=!1;a.F=!0;G3(a.j,0);a.L("adError",b)}f.Et=function(){H3(this);I3(this,Error("Request to get video data failed."))};f.oF=function(){x3(this.D);this.L("select")};f.qF=function(a){a=new Qc(Gh(a),Hh(a));this.D.A=a};
f.sF=function(a){var b=wv(this.o.getRemainingTime());this.Fh.innerHTML=b;b=this.Ci()?this.Zb.getCurrentTime()/this.Ci():0;b=xv(b);this.Eh.style.width=b+"%";this.Zb.ended&&L(x(this.Bm,this,a),50)};f.Aq=function(){!this.og&&this.H||G3(this.j,3)};
f.P=function(){this.j.qa("control_toggle_play_pause",this.It,this);this.j.qa("control_play",this.Tn,this);this.j.qa("control_pause",this.Sn,this);this.j.qa("onResize",this.Un,this);this.j.qa("onVolumeChange",this.Ht,this);this.B.removeAll();H3(this);this.N||this.o.destroy();this.Zb&&(cE(this.j.A),this.Zb=null);J3(this);this.Fh&&(this.Fh.innerHTML="",this.Fh=null);this.Eh&&(Wd(this.Eh),this.Eh=null);this.Dh&&(uh(this.Dh,["ad-showing","ad-interrupting"]),this.Dh=null);this.F=!0;E3.K.P.call(this)};
function J3(a){a.G&&(M(a.G),a.G=0,th(a.j.Ma(),"ad-interstitial-showing"))}f.Ci=function(){return this.Zb?this.Zb.duration||0:null};f.pl=function(){return null};f.ql=function(){return this.Zb&&this.Zb.currentSrc?this.Zb.currentSrc:null};f.Ht=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Pc(a/100,0,1),this.o.setVolume(a))};f.It=function(){this.og?this.Sn():this.Tn()};f.Tn=function(){this.Zb&&(this.o.resume(),this.Gt())};f.Sn=function(){this.Zb&&(this.o.pause(),this.Ft())};
f.Un=function(){bE(this.j.A)&&Yg(bE(this.j.A),L3(this.j))};function N3(){this.A=!1;this.o=0;this.j=""};function O3(a,b,c,d,e){q3.call(this,b,a,2,c);this.j.subscribe("control_toggle_play_pause",this.Mt,this);this.j.subscribe("control_play",this.Wn,this);this.j.subscribe("control_pause",this.Vn,this);this.G=new v3(this,this.j);this.B=new Nv(this);this.D=P3(b);this.D.subscribe("statechange",this.lj,this);this.D.subscribe("internalvideodatachange",this.Lt,this);this.F=this.H=!1;this.N=d;this.I=!!e}z(O3,q3);f=O3.prototype;f.ok=!1;f.Ih=null;f.Hh=null;f.Gh=null;
f.df=function(){var a=this.j,b=P3(a);Q3(a.o,b);this.G.o=y();this.Gh=this.j.Ma();this.D.subscribe("progresssync",this.xq,this);this.j.la.G?Wd(Hd("video-ad-status-bar")):(a=this.j.Ma(),this.Ih=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.Hh=b);sh(this.Gh,["ad-showing","ad-interrupting"]);this.j.subscribe("onResize",this.Xn,this);try{this.B.M(this.o,"adError",this.uF),this.B.M(this.o,"click",this.tF),this.B.M(this.o,"complete",this.cA),
this.B.M(this.o,"engagedview",this.vA),this.B.M(this.o,"pause",this.Jt),this.B.M(this.o,"start",this.Kt),this.B.M(this.o,"skip",this.vF),this.B.M(this.o,"youTubeChannelMetadata",this.UA),this.Xn(),this.I||this.o.start()}catch(c){R3(this,c)}};
f.Lt=function(a,b,c){if("newdata"==a&&this.A!=c){a={video_id:c.videoId};b=new r3;b.isSkippable=this.N;b.skip=x(this.o.skip,this.o);b.skipShown=x(this.o.Qm,this.o);var d=this.getCurrentAd();d&&(b.clickThroughUrl=cV(d)||"",b.skipTime=ZU(d,c.lengthSeconds)||0);b.videoId=c.videoId;b.videoId||(b.videoUrl=this.ql()||"");G3(this.j,-1,a,b)}this.A=c};f.lj=function(a){a=a.state;X(a,128)&&R3(this,Error(a.j.message||"Video player error."))};
f.Kt=function(){this.ok=!0;this.F=!1;if(!this.H){this.H=!0;B3(this.G);M3(this.j,1);var a=this.j.W();this.j.la.G&&"3"==a.o&&(a=this.j.o.A,"3"==a.j.W().o&&(a.o.controls=!1))}G3(this.j,1);this.L("adPlay",this)};f.Jt=function(){this.ok&&(this.ok=!1,G3(this.j,2))};f.cA=function(){this.F||(C3(this.G),S3(this),this.F=this.H=!1)};
function S3(a){var b=new N3;b.A=a.F;b.o=y();a.A&&a.A.clientPlaybackNonce&&(b.j=a.A.clientPlaybackNonce);n2(P3(a.j));G3(a.j,0,b);M3(a.j,0);a.L("adEnd",a);b=a.j.W();a.j.la.G&&"3"==b.o&&(a=a.j.o.A,"3"==a.j.W().o&&(a.o.controls=!0))}f.vA=function(){var a=this.G;a.j.L("AD_LOGGING_EVENT",777,z3(a))};f.vF=function(){this.F=!0;D3(this.G);S3(this)};
f.UA=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.uF=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;y3(d);var e=z3(d);b&&qa(e,b);e.ad_error=32;w3(d,7,e);R3(this,a.A)};function R3(a,b){a.D.$f();G3(a.j,0);a.L("adError",b)}
f.tF=function(){x3(this.G);this.o.pause();this.L("select")};f.xq=function(){var a=this.j.j.xh();this.j.la.G||(this.Ih.innerHTML=wv(a.duration-a.current),a=xv(a.current/a.duration),this.Hh.style.width=a+"%")};
f.P=function(){this.j.qa("control_toggle_play_pause",this.Mt,this);this.j.qa("control_play",this.Wn,this);this.j.qa("control_pause",this.Vn,this);this.j.qa("onResize",this.Xn,this);this.B.removeAll();this.D.subscribe("statechange",this.lj,this);this.D.qa("internalvideodatachange",this.Lt,this);this.D.qa("progresssync",this.xq,this);this.I||this.o.destroy();this.Ih&&(this.Ih.innerHTML="",this.Ih=null);this.Hh&&(Wd(this.Hh),this.Hh=null);this.Gh&&(uh(this.Gh,["ad-showing","ad-interrupting"]),this.Gh=
null);this.F=!1;var a=this.j;if(a.B){var b=a.o,a=a.B;T3(b);a!=b.o&&Q3(b,b.o)}O3.K.P.call(this)};f.Ci=function(){return this.D.bd()};f.pl=function(){return this.A&&this.A.o?this.A.o.mimeType:null};f.ql=function(){return this.A&&this.A.V?zs(this.A.V.j()):null};f.Mt=function(){this.ok?this.Vn():this.Wn()};f.Wn=function(){this.o.resume();this.Kt()};f.Vn=function(){this.o.pause();this.Jt()};f.Xn=function(){Yg(bE(this.j.A),L3(this.j))};function U3(a,b){this.A=a;this.o=b}function V3(a,b,c){a.A.L("AD_LOGGING_EVENT",b,c)}function W3(a){var b={};J2(a.A.getCurrentAd(),b);a.C&&a.j&&(b.ot=a.j-a.C);var c;c=a.o.Sg()?2:a.o.W().J?1:0;b.ad_ps=c;b.at=a.A.C();return b};function X3(a,b,c,d){q3.call(this,b,a,1,c);this.D=new U3(this,b);this.B=new Nv(this);this.F=!!d}z(X3,q3);f=X3.prototype;f.zd=null;f.km=!1;
f.df=function(){if(!this.km||!Y3(this.j)){var a=this.j.Ma();N(a,"ad-showing");this.zd=bE(this.j.A);a=this.o.getCurrentAd().getHeight();this.zd.style.height=Pg(a,!0);N(this.zd,"ad-overlay");this.B.M(this.zd,"mouseup",this.yF);try{this.B.M(this.o,"userClose",this.TB);this.B.M(this.o,"click",this.xF);this.B.M(this.o,"adError",this.wF);Z3(this,"normal");this.F||this.o.start();var b=this.D;b.C=y();var c=W3(b);V3(b,3,c);this.j.subscribe("onResize",this.pk,this);this.j.subscribe("onStateChange",this.Nt,
this);this.L("adEnd",this)}catch(d){this.L("adError",d)}}};f.P=function(){this.B.removeAll();this.j.qa("onResize",this.pk,this);this.j.qa("onStateChange",this.Nt,this);var a=this.j.Ma();th(a,"ad-showing");this.o&&(this.F||this.o.destroy(),this.o=null);this.zd&&th(this.zd,"ad-overlay");this.zd=null;this.km=!1;X3.K.P.call(this)};f.TB=function(){this.zd&&this.o&&this.o.getCurrentAd()&&(this.zd.style.height=Pg(0,!0));this.km=!0;var a=this.D;a.j=y();var b=W3(a);V3(a,6,b)};
f.xF=function(){this.j.pauseVideo();var a=this.D;a.j=y();var b=W3(a);if(a.B){var c=A3(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}V3(a,100,b)};f.yF=function(a){this.D.B=a.target==a.currentTarget?null:new Qc(a.pageX,a.pageY)};f.wF=function(a){this.L("adError",a.A)};f.Nt=function(a){X(a.state,16)&&Z3(this,"normal")};function Z3(a,b){a.G!=b&&(a.G=b)}f.pk=function(){};function $3(a,b,c,d){Q.call(this);this.O=a;this.o=b.j;this.G=b;this.J=b.getId();this.j=c;this.A=d;this.C=new M2(this.o,this.ef(),c,d);this.D=null;this.N=new En(this);this.B=new En(this)}z($3,Q);$3.j="rm";$3.o=10;$3.D=200;$3.B=200;$3.C=190;$3.A=100;f=$3.prototype;f.Rn=null;
f.load=function(){var a;a=this.j;a=a.la.B?L3(a):a.o.A.vb();var b;this.j.la.j?b=!1:(b=0<(this.A&3)?$3.C:$3.B,b=a.width<$3.D||a.height<b);if(b){b=this.C;var c=N2(b);c.ck_wh=a.width+"x"+a.height;a4(b.j,14,c);R2();this.Le(Error("The player size is too small."))}else if(this.D=this.j.ng){a=this.C;b4(a.j,9,N2(a));a=new fW;(b=this.j.la.serverPrefetchedVast)&&0<(this.A&3)?(a.j=b,this.j.la.serverPrefetchedVast=void 0):a.adTagUrl=this.yf();b=L3(this.j);a.Me=b.width;a.Qd=b.height;a.Wb=b.width;a.hc=$3.A;a.So=
F_(this.j.W());a.B=this.j.W().experiments.experimentIds;if(b=a.So?K_(this.j.W()):-1)a.C=b;this.j.la.tagForChildDirected&&(a.Mg=!0);$D(this.j.W(),"937420")&&(a.nh=!0);b=Fr(this.j.o);a.Uc={"[CONTENT_V]":b.videoId,"[CPN]":b.clientPlaybackNonce,"[LACT]":c4(this)};F_(this.j.W())||(a.Uc["[LACT]"]="-1");this.D.M("adsManagerLoaded",this.Bt,!1,this);this.D.M("adError",this.At,!1,this);this.zj(this.D,a)}};
f.rl=function(){var a=new xL,b=this.j.la,c=this.j.W();a.baseYouTubeUrl=c.B;a.contentId=Fr(this.j.o).videoId;a.Ll=$D(c,"927622");a.showContentThumbnail=b.showContentThumbnail;a.surveyCreativeData=b.surveyCreativeData;a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=b.G;a.youTubeAdNamespace=this.ef();b.R&&(a.po=!0,a.zw=!0,a.showContentThumbnail=!1,a.ln=!0,a.qs=!0,a.useShareButton=!1);return a};f.ef=function(){return this.O};function d4(a){var b=$3.o;a.o=b;a.C.B=b}
function e4(a,b){a.Rn=b;a.C.A=b.C()}function f4(a,b){var c=t("yt.www.watch.ads.setAdId");c&&c(b);a.C.o=b}function g4(a){a=a.o;return 0==a||-1==a?a:1E3*a}function c4(a){var b=a.j;return{toString:function(){return null==b||b.ka()?b=null:K_(b.W()).toString()}}}
f.Bt=function(a){if(a.B===this){mI("aml");try{var b=this.rl(),c=a.A}catch(d){this.Vd(d);return}this.B.M(c,"companionBackfill",x(this.nF,this,c));this.B.M(c,"loaded",x(this.mF,this,c));this.B.M(c,"adError",x(this.lF,this,c));this.B.M(c,"allAdsCompleted",v);this.B.M(c,"contentPauseRequested",v);this.B.M(c,"contentResumeRequested",v);c=G2(a,this.j.C,{},b);try{c.init("normal")}catch(e){c.destroy(),this.Vd(e)}}};
f.mF=function(a,b){this.B.removeAll();var c=b.getAd(),d=CU(c),e=this.C,g=N2(e);g.ad_man=d?"instream":"overlay";b4(e.j,12,g);e=a.getMediaUrl();switch(d?this.Jg(a,c,e):this.Pd(a,c)){case 0:h4(this.G,this.Rn,this.o);break;case 1:a.destroy();this.Le(Error("Unable to create a display state."));break;case 2:c=this.C;a4(c.j,21,N2(c));a.destroy();this.Le(Error("Fallback to next ad."));break;default:a.destroy()}};f.lF=function(a,b){this.B.removeAll();a.destroy();this.Vd(b.A)};
f.At=function(a){var b=a.A;"adLoadError"==b.A&&a.B===this&&this.Vd(b)};f.nF=function(){Q2()};f.Jg=function(a,b,c){f4(this,PU(b));var d;this.j.la.S?d=new O3(this.ef(),this.j,a,FU(b)):d=new E3(this.ef(),this.j,a,c,FU(b));e4(this,d);return 0};f.Pd=function(a,b){f4(this,PU(b));e4(this,new X3(this.ef(),this.j,a));return 0};f.Vd=function(a){if(a){var b=this.C,c=N2(b);a&&I2(a,c);a4(b.j,32,c);this.Le(a)}};f.Le=function(){i4(this.G)};
f.P=function(){this.D&&(this.D.Ia("adsManagerLoaded",this.Bt,!1,this),this.D.Ia("adError",this.At,!1,this));this.N.removeAll();this.B.removeAll();$3.K.P.call(this)};f.zj=function(a,b){try{o_(a,b,this),mI("ar")}catch(c){this.Vd(c)}};function j4(a){this.j=a};function k4(a){q3.call(this,a,2,3,null);this.B=this.D=0}z(k4,q3);k4.prototype.df=function(){var a=t("yt.www.watch.ads.loadAfc");a&&a();this.L("adEnd",this);this.D=Vf(x(this.F,this),1E3)};k4.prototype.P=function(){l4(this);k4.K.P.call(this)};function l4(a){a.D&&(Wf(a.D),a.B=0)}k4.prototype.F=function(){var a=t("yt.www.watch.ads.isAfcAdVisible");this.B++;var b={};b.at=this.C();10<=this.B||!a?(l4(this),this.L("AD_LOGGING_EVENT",2,b)):a()&&(l4(this),this.L("AD_LOGGING_EVENT",3,b))};function m4(a,b,c){$3.call(this,2,a,b,c);this.F=new j4(this.j.la);P2()}z(m4,$3);m4.prototype.rl=function(){var a=m4.K.rl.call(this);a.oo=0==this.J;a.dw=Y3(this.j)?a.oo:!0;return a};m4.prototype.yf=function(){var a;var b=this.F;a=g4(this);(b=4==this.A&&b.j.afvInvideoAdTag?b.j.afvInvideoAdTag:b.j.afvAdTag)?(ta(b,"http:")&&(b=b.substr(5)),a=Cj(b,{videoad_start_delay:a})):a="";return a};
m4.prototype.Pd=function(a,b){if(this.j.la.j)return 1;0==this.o&&(d4(this),b4(this.j,1));return m4.K.Pd.call(this,a,b)};m4.prototype.Le=function(a){var b=this.j.la;b.j?m4.K.Le.call(this,a):b.na||this.A&4?(e4(this,new k4(this.j)),h4(this.G,this.Rn,this.o)):m4.K.Le.call(this,a)};function n4(a,b){if(a){this.Ct=a;this.pp=b;var c,d=this.Ct,e=d.indexOf(";sz=");c=vj(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{jw:d[0],CC:d[1],EC:c})this.yo=c.jw,this.xr=c.CC,this.Dt=c.EC}}f=n4.prototype;f.Ct="";f.yo="";f.pp=!1;f.Gm="";f.xr="";f.Dt=null;
f.Di=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos=0",d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos=0",d.push("480x361"));b&12&&d.push("480x70");var e=[],g,h;b&12&&(e.push("300x250"),g="watch-channel-brand-div",h=1);0<(b&3)&&(e.push("300x60"),g="watch-longform-ad",h=1);var k=Zb(this.Dt);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.pp&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.Gm||(this.Gm=Math.floor(999999999*Math.random()).toString());
k.ord=this.Gm;d&&d.length&&Wb(k,"sz");e=wj(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.yo,"pfadx",this.xr,";",e,"?"].join("")};function o4(a){this.j=a?a:""}o4.prototype.Di=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 p4(a,b,c){X3.call(this,1,a,b,c)}z(p4,X3);p4.prototype.pk=function(){};p4.prototype.C=function(){return"1_3"};function q4(a,b,c){$3.call(this,1,a,b,c);a=this.j.la;this.S=a.Lf?new o4(a.adTag):new n4(a.adTag,a.ma)}z(q4,$3);q4.prototype.yf=function(){return this.S.Di(this.o,this.A)};
q4.prototype.Pd=function(a,b){f4(this,PU(b));var c=EU(b);if(K2(c,$3.j))return 1==this.A||Y3(this.j)||R2(),a.sendImpressionUrls(),this.j.la.Ki?(e4(this,new k4(this.j)),0):2;if(K2(c,"blockAllAds"))return a.sendImpressionUrls(),e4(this,new p4(this.j,a)),0;if(K2(c,"hideMaster"))return e4(this,new p4(this.j,a)),0;if(this.j.la.j)return 1;e4(this,new X3(this.ef(),this.j,a));return 0};function r4(a,b,c,d){q4.call(this,a,b,c|d);this.I=c;this.H=d;this.F=null;P2()}z(r4,q4);var s4={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=r4.prototype;f.yf=function(){if(this.j.la.Lf){var a=new o4(this.j.la.dynamicAllocationAdTag);return a.Di(this.o,this.I)}a=new n4(this.j.la.dynamicAllocationAdTag,this.j.la.ma);return a.Di(this.o,this.I)};f.zj=function(a,b){if(this.H){b.o=L2(this.H);var c=this.j.la.ca;c&&(b.A=c);b.qh=g4(this)}r4.K.zj.call(this,a,b)};
f.Jg=function(a,b,c){t4(this,a);return 1!=this.F&&2!=this.F?1:r4.K.Jg.call(this,a,b,c)};f.Pd=function(a,b){t4(this,a);switch(this.F){case 1:return r4.K.Pd.call(this,a,b);case 2:var c;this.j.la.j?c=1:(0==this.o&&(d4(this),b4(this.j,1)),f4(this,PU(b)),e4(this,new X3(2,this.j,a)),c=0);return c;default:return 1}};f.ef=function(){return this.F||0};function t4(a,b){var c=b.getCurrentAd(),d=SU(c);d.unshift(IU(c));for(c=0;c<d.length;++c){var e=s4[d[c].toUpperCase()];if(e){a.F=e;return}}a.F=0};function u4(a,b){var c=b.la;this.F=c.$a;var d=0,c=c.ga.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);$3.call(this,2,a,b,d)}z(u4,$3);u4.o="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";u4.A="43";
u4.j=function(a){var b=new Pu;Kj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Te:function(){Qu(b,Error(a+" timed out"))},onError:function(c){Qu(b,Error("Problem loading "+a+" with status code "+c.status))},jb:function(a){Uu(b);Su(b,!0,a)}});return b};u4.prototype.yf=function(){return""};
u4.prototype.zj=function(a,b){var c=this.A;c&1||c&4||c&8?this.F?c&8?S2(this.F):("goo.gl"==Aj(this.F)?(c=u4.j(u4.o+this.F),Wu(c,function(a){a=qg(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",u4.A);return u4.j(a.toString())},this)):c=u4.j(this.F),Wu(c,function(c){b.j=c.responseText;o_(a,b,this)},this),Xu(c,null,this.Vd,this)):this.Vd(Error("Invalid empty URL")):this.Vd(Error("Invalid request type: "+
c))};function v4(a,b,c,d){this.j=a;this.B=c;this.A=d;this.C=b;Zh||$h?this.o="html5_ios":ai?this.o="html5_android":qs()?this.o="html5_ps3":"leanback"==this.B.ja?(a=(Qb(window,"environment","brand")||"").toLowerCase(),this.o="roku"==a||"bskyb"==a?"roku":"html5_tv_leanback"):this.o=this.j.sa?"html5":"embedded"==this.B.ja?"html5_desktop_embed":"html5_desktop"};function w4(a,b){X3.call(this,4,a,b)}z(w4,X3);w4.prototype.pk=function(){};w4.prototype.C=function(){return"4_3"};function x4(a,b,c){$3.call(this,4,a,b,c);this.F=new v4(this.j.la,Fr(this.j.o).lengthSeconds,this.j.W(),c)}z(x4,$3);
x4.prototype.yf=function(){var a;var b=this.F;if(b.j.Ga&&b.j.Aa){a={};var c="youtube_watch_"+b.o;a.nw="10613";a.asnw=b.j.Ga;a.ssnw=b.j.Ga;a.caid=b.j.Aa;a.vdur=b.C;a.csid=c;a.resp="vast2";c={};isNaN(b.j.Ca)||(c._fw_d_001=b.j.Ca);b.j.Fa&&(c._fw_d_002=b.j.Fa);b.j.ua&&(c["_fwu:10613:lang"]=b.j.ua);b.j.da&&(c._fw_dbp=b.j.da);b.j.Da&&(c._fw_distributorvideoassetid=b.j.Da);c._fw_yt_type=b.j.C?"short":"long";if(b.j.sa){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?"+wj(a,"&")+";"+wj(c,"&")+";"+wj(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=wj(e,"&")+";",e={slid:"page_display1",w:"300",h:"60",
ptgt:"s",slau:"display",flag:"+cmpn"},d+=wj(e,"&")+";"),b.A&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay",tpos:"10"},d+=wj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=wj(e,"&")+";"),b.A&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display"},d+=wj(e,"&")+";"),b=d.substr(0,d.length-1),a="//2975c.v.fwmrm.net/ad/g/1?"+wj(a,"&")+";"+wj(c,"&")+";"+b}else a="";return a};x4.prototype.Jg=function(a,b){return 0!=this.o?1:x4.K.Jg.call(this,a,b,null)};
x4.prototype.Pd=function(a,b){var c=EU(b);if(K2(c,$3.j))return this.G.B=Yb(a),2;if(this.j.la.j)return 1;if(K2(c,"hideMaster")){if(a.D&&a.D.De()){var c=a.D.De(),d;d=a.getCurrentAd();if(gL()){var e=d.G;d.G=[];d=e}else d=[];c.impressionUrls=d}e4(this,new w4(this.j,a));return 0}return x4.K.Pd.call(this,a,b)};function y4(a,b,c){$3.call(this,13,a,b,c)}z(y4,$3);var z4=[{Om:4,size:"480x70",Io:"300x250"},{Om:1,size:"480x360",Io:"300x60"}];
y4.prototype.yf=function(){var a=new J(this.j.la.bb,!0),b=this.A,c=z4.filter(function(a){return(b&a.Om)==a.Om}),d=c.map(function(a){return a.size}).join("|");K(a,"sz",d);c=c.map(function(a){return a.Io}).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 A4(a,b,c){this.A=a;this.j=b;this.o=c||0}function B4(a,b,c){switch(a.A){case 1:return new m4(b,c,a.j);case 2:return new q4(b,c,a.j);case 3:return new r4(b,c,a.j,a.o);case 5:return new x4(b,c,a.j);case 4:return new u4(b,c);case 6:return new y4(b,c,a.j);default:return null}}function C4(a){return 0<((a.j|a.o)&3)};function D4(a,b,c,d,e){S.call(this);this.Ba=b;this.A=a;this.j=c;this.C=d;this.B=this.o=null;this.D=!!e;this.F=NaN}z(D4,S);f=D4.prototype;f.mn=!0;f.xb=!1;f.isVisible=!0;f.Qc="unloaded";f.qn=!1;function E4(a){return 0==a.j?F4(a)&&G4(a)?-2147483648:0:-1==a.j||-2==a.j?2147483647:1E3*a.j}function H4(a){return 0==a.j||-2==a.j?!1:hb(a.C,function(a){switch(a.A){case 1:case 2:case 3:case 6:return!0;default:return!1}})}function F4(a){return"loaded"==a.Qc||"error"==a.Qc}
function G4(a){if(!F4(a))throw Error("Preroll status is undefined before ad load.");return 0==a.j&&a.xb}function i4(a){a.Qc="loading";0==a.j&&!gb(a.C,C4)&&et(a.A);if(a.D)a.Qc="loaded",a.xb=!0,I4(a);else{var b=a.C.shift();if(b){0==a.j&&J4(a.A,"nl");b=B4(b,a,a.A);R(a,b);var c=t("ytplayer.playback_delay");null!=c?a.F=L(x(b.load,b),c):b.load()}else b4(a.A,2,K4(a,{})),L4(a,!1),a.Qc="error",I4(a)}}f.getId=function(){return this.Ba};
function M4(a){a.o&&(a.o.qa("adEnd",a.wq,a),a.o.qa("adError",a.zt,a),a.o.qa("AD_LOGGING_EVENT",a.Nq,a),a.o.qa("select",a.xt,a))}function h4(a,b,c){a.o=b;a.j=c;R(a,a.o);0==a.Ba&&(a.A.F.at=a.o.C());a.o instanceof E3||a.o instanceof O3?a.xb=!0:a.o instanceof k4?a.isVisible=!1:a.o instanceof w4?a.isVisible=!1:a.o instanceof p4&&(a.isVisible=!1);a.Qc="loaded";I4(a)}function I4(a){a.L("adBreakComplete",a)}
function N4(a){a.qn?a.o instanceof X3&&Z3(a.o,"normal"):(a.qn=!0,(a.o instanceof E3||a.o instanceof O3)&&J4(a.A,"bs"),a.o.subscribe("adEnd",a.wq,a),a.o.subscribe("adError",a.zt,a),a.o.subscribe("AD_LOGGING_EVENT",a.Nq,a),a.o.subscribe("select",a.xt,a),a.o.df(),L4(a,!0))}function L4(a,b){a.B&&(a.B.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.B.dispose(),a.B=null)}f.wq=function(){this.xb&&(M4(this),O4(this.A));I4(this)};
f.zt=function(a){if(a){var b={};I2(a,b);K4(this,b);a4(this.A,32,b)}M4(this);I4(this)};f.Nq=function(a,b){K4(this,b);b4(this.A,a,b)};f.xt=function(){this.mn=!1};function K4(a,b){b.sst=a.j;b.sidx=0;return b}f.P=function(){M4(this);this.o=null;null!=this.B&&(this.B.dispose(),this.B=null);M(this.F);D4.K.P.call(this)};function P4(a){this.iw=a}function Q4(a){try{var b=YB(a).getElementsByTagName("AdBreak"),c=E(b,function(a){a=a.getAttribute("time");return Va(a)});return new P4(c)}catch(d){return new P4([0])}};function R4(a){var b=0;if(a.N||a.J)a.N&&(b|=1),a.J&&(b|=2);var c=0;a.C&&(a.I&&(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 S4(a){var b=[];if(a.Y)return b.push(new A4(4,0)),b;if(a.V){var c=0;if(a.A||a.F)c|=1;a.H&&(c|=4);a.U&&(c|=8);b.push(new A4(5,c))}a.lm&&(c=0,a.A&&(c|=1),a.H&&a.C&&(c|=4),b.push(new A4(6,c)));c=0;a.O&&(a.A&&(c|=1),a.F&&(c|=2),a.H&&a.C&&(c|=4),a.U&&a.C&&(c|=8));var d=R4(a);a.ob&&c&&d.get(3)?b.push(new A4(3,c,d.get(3))):(c&&b.push(new A4(2,c)),d.get(3)&&b.push(new A4(1,d.get(3))));d.get(4)&&b.push(new A4(1,d.get(4)));return b};function T4(a){this.j=a}function U4(a){var b=[];try{var c=a.j.la,d;if(c.ro){var e;if(c.Z)e=Q4(c.Z);else{var g;if(c.Za){var h=E(c.Za.split(","),Va);g=new P4(h)}else g=new P4([0]);e=g}d=e}else d=new P4([0]);for(var k=d.iw,c=0;c<k.length;c++){var l=new D4(a.j,c,k[c],S4(a.j.la));b.push(l)}}catch(p){}finally{return b}};function V4(a,b){this.D=a;this.R=this.D.isMobile;this.B="leanback"==this.D.ja;this.j=this.R||this.B;this.pa="embedded"==this.D.ja;this.G=!this.B&&!(Zh&&!a.O);this.S=a.D&&(!this.j||this.B)||this.R&&!(Zh&&!a.O);this.apply(b);if(this.F&&!this.S)throw"Skippable instreams were enabled without FullPlayerApiSupport";}var W4={qv:"m",Zu:"f"};f=V4.prototype;
f.apply=function(a){var b=H2(a.instream);this.aa=1==a.livestream;this.Fm=$D(this.D,"961403");var c=H2(a.trueview)&&(!this.aa||!this.Fm),d=H2(a.aftv);this.Za=a.ad_slots;this.Z=a.ad_breaks;this.adFlags=a.ad_flags||0;this.ca=a.cafe_experiment_id;this.adTag=a.ad_tag;this.tb=!!a.adtest;this.afvAdTag=a.afv_ad_tag;this.Ka=X4(this.afvAdTag);this.afvInvideoAdTag=a.afv_invideo_ad_tag;this.afvMergeEnabled=!!a.afv_merge_enabled;this.Ca=parseInt(a.ad_age,10);this.applyFadeOnMidrolls=!!a.apply_fade_on_midrolls;
this.Wa=a.cid;this.Da=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=a.force_ad_type;this.$a=a.force_ad_url;this.Fa=
Rb(W4,function(b){return b==a.ad_gender});this.da=a.dbp;this.Ki=H2(a.afc_rm_fallback);this.ma=!!a.mpu;this.I=H2(a.afv)&&!this.j;this.J=d&&c;this.N=d&&b&&!H2(a.no_afv_instream);this.O=H2(a.dclk);this.Lf=H2(a.gpt_migration);this.Y=H2(a.forced_ad)&&!this.j;this.V=1==parseInt(a.tpas_ad_type_id,10);this.Ob=!!a.fqsf;this.A=b;this.H=H2(a.invideo)&&!this.j;this.U=H2(a.mpu)&&!this.j;this.sa=G(this.Ka,"yt_mabv");this.ta=H2(a.shortform);this.C=H2(a.sffb);this.lm=H2(a.xfp);this.bb=a.xfp_tag;this.Rp=$D(this.D,
"961401");b=YD(this.D,this.B);this.ro=(!this.j||b)&&!this.V;this.F=c;this.ua=a.ad_language_iso639_2;c=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(c)&&(c=2E3);this.maxDynamicAllocationAdTagLength=c;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=H2(a.tag_for_child_directed);this.serverPrefetchedVast=
a.server_prefetched_vast;this.surveyCreativeData=a.surveyCreativeData;this.na=d&&this.C&&!this.I;this.ab=this.I||this.na;this.ib=parseInt(a.ad_device,10);this.Aa=a.tpas_video_id;this.Ga=a.tpas_partner_id;this.vmap=a.vmap;this.ob=Y4(this);this.Nb=this.D.Nb};
function Y4(a){if(A(B(a.dynamicAllocationAdTag)))return!1;if($D(a.D,"942306")&&null!=a.D.ja&&!a.pa)return!0;var b=(a.A||a.F)&&a.O;a.C&&a.O&&(b=b||a.H||a.U);if(!b)return!1;b=a.J||a.N;if(!(b||a.C&&a.I))return!1;if(a.serverPrefetchedVast)return!a.Lf;var c=a.dynamicAllocationAdTag.length+330+(a.Lf?25:102);window.document.referrer&&(c+=wa("ref="+wa(window.document.referrer)).length);b||(c+=41);return c<=a.maxDynamicAllocationAdTagLength}
function X4(a){if(A(B(a)))return[];a=tf(new J(a),"channel");return null!=a?a.split("+"):[]}f.applyFadeOnMidrolls=!1;f.ro=!0;f.Rp=!1;f.Fm=!1;f.Ki=!1;f.Lf=!1;f.lm=!1;f.showContentThumbnail=!0;function Z4(a){Q.call(this);this.j=a;this.o=0;this.C={};a=a.la;this.D=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.A=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.bs()}z(Z4,Q);f=Z4.prototype;f.bs=function(){this.j.subscribe("beginseeking",this.mi,this)};f.Vr=function(a,b){return a.xb&&0<a.j?b+this.B+this.A:b};f.Ur=function(a,b){return a.xb&&-1!=a.j&&2147483646!=b&&2147483647!=b?b+this.B+this.A:b};
f.no=function(a){if(a.xb&&0<a.j&&!(0>=this.A)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=E4(a)+this.B,b=new Qs(c,c+this.A-1,b);this.C[a.getId()]=b;bt(this.j,[b])}};function $4(a,b){a.C[b]&&(ct(a.j,[a.C[b]]),delete a.C[b])}f.gr=function(a){a.xb&&0<a.j&&($4(this,a.getId()),this.mi())};f.mi=function(){this.o&&(M(this.o),this.o=0);var a=K3(this.j,!1);a.volume=Wq(this.j.o)/100;Ig(a,"transition","");Ig(a,"opacity","1")};
f.Kr=function(a){var b=E4(a)+this.B+this.A,b=50>=1E3*this.j.j.getCurrentTime()-b;a.xb&&0<a.j&&b&&(a=.001*(E4(a)+this.F),this.j.L("command_seek",a),0>=this.D||(a=K3(this.j,!1),Ig(a,"opacity","0"),a.volume=0,L(x(this.Gw,this),0)))};f.Gw=function(){var a=K3(this.j,!1);Ig(a,"transition","opacity "+String(this.D)+"ms linear");Ig(a,"opacity","1");a5(this,a,this.D,1)};function a5(a,b,c,d){0>=c||(a.o&&M(a.o),c=y()+c,a.o=0==d?tv(x(a.Uo,a,b,c,100),0):tv(x(a.To,a,b,c,100),0))}
f.Uo=function(a,b,c){if(this.o){var d=Math.max(1,b-y()),d=Math.max(0,a.volume+-1*a.volume*c/d);a.volume=d;this.o=0<d?tv(x(this.Uo,this,a,b,c),c):0}};f.To=function(a,b,c){if(this.o){var d=Math.max(1,b-y()),e=Wq(this.j.o)/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);a.volume=d;this.o=d<e?tv(x(this.To,this,a,b,c),c):0}};f.P=function(){this.mi();this.j.qa("beginseeking",this.mi,this)};function b5(a){Z4.call(this,a)}z(b5,Z4);f=b5.prototype;f.bs=v;f.Vr=function(a,b){return b};f.Ur=function(a,b){return b};f.no=v;f.gr=v;f.Kr=v;f.P=v;function c5(a,b){return b?new Z4(a):new b5(a)};function d5(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.la.o&&this.j.subscribe("endseeking",this.B,this)}z(d5,Q);function e5(a,b){f5(a);0<b&&(a.C=L(x(a.B,a),1E3*b))}function f5(a){-1!=a.C&&(M(a.C),a.C=-1)}
d5.prototype.B=function(){var a=this.j.la.o;if(this.A&&!(0>=a)){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Hb(this.D.A,function(a){if(a.isVisible&&!(0>=g5(this,a))){var g;g=a.getId();g=this.D.C[g];if(g5(this,a)>b){var l=!h5(this,a);l!=g.visible&&(g.visible=l,c.push(g));l||(g=g5(this,a)-b,g<e&&(e=g,d=a))}else g.visible||(g.visible=!0,c.push(g))}},this);0<c.length&&i5(this.j,c);if(d){var g=0;0<this.o&&(g=y()/1E3-this.o);e5(this,a-g-e+2)}else f5(this)}};
function h5(a,b){if(!a.A||!(0<b.j)&&-1!=b.j)return!1;var c=a.j.la.o;if(0>=c||0>=a.o)return!1;var d=y()/1E3,e=g5(a,b)-a.j.j.getCurrentTime();0<e&&(d+=e);return d-a.o<=c}function g5(a,b){return-1==b.j?a.j.j.getVideoData().lengthSeconds:b.j}d5.prototype.P=function(){f5(this)};function j5(a,b){Q.call(this);this.o=b;this.D=[];this.A={};this.C={};this.j=a;var c=a.la,d=!c.aa&&gb(this.o,function(a){return 0<a.j||-1==a.j});this.G=new d5(this.j,this,d);c=c.applyFadeOnMidrolls&&(c.A||c.F)&&gb(this.o,function(a){return 0<a.j});this.B=c5(this.j,c);this.O=gb(this.o,function(a){return 0==a.j})}z(j5,Q);f=j5.prototype;f.Db=null;function k5(a){a.D.length||(a.D=eb(a.o,function(a){return"unloaded"==a.Qc}),0==a.D.length?et(a.j):(a.O||et(a.j),l5(a)))}
function l5(a){if(a.D.length){var b=a.D.shift();b.subscribe("adBreakComplete",a.Sf,a);i4(b)}}f.Sf=function(a){a.qa("adBreakComplete",this.Sf,this);L(x(this.xz,this,a),0)};
f.xz=function(a){var b=cb(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=E4(c)-1);0==a.Ba&&(J4(this.j,"bl"),G4(a)||J4(this.j,"fb"));if(c="loaded"!=a.Qc||0==a.Ba&&G4(a)&&c&&1E3*this.j.j.getCurrentTime()>E4(c)){if(b&&F4(b)){var e=E4(b);e>d&&(d=e);m5(this,b);n5(this,b,d)}}else this.A[a.getId()]=a,n5(this,a,d);et(this.j);c&&this.Ce(a);Lb(this.A)==this.o.length&&this.G.B();l5(this)};
function n5(a,b,c){var d=E4(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 Qs(d,c,e);a.C[b.getId()]=c;bt(a.j,[c]);a.B.no(b)}}function m5(a,b){var c=b.getId();a.C[c]&&($4(a.B,c),ct(a.j,[a.C[c]]),delete a.C[c])}f.Ce=function(a){a.qa("adBreakComplete",this.Sf,this);this.Db&&a==this.Db&&(this.Db=null);m5(this,a);ob(this.o,a);delete this.A[a.getId()];Ci(a)};f.nk=function(a){return this.A[a]};
f.ym=function(a){if(a.xb){if(-1!=a.j&&a.mn){var b=this.j;o5(b);ot(b);this.B.Kr(a)}else G4(a)&&!a.mn?(b=this.j,o5(b),ot(b)):(o5(this.j),pt(this.j,!1));this.Ce(a);a=this.G;a.A&&0<a.j.la.o&&(a.o=y()/1E3,a.B())}else a.isVisible||this.Ce(a)};f.P=function(){Ci(this.B);Ci(this.G);D(this.o,this.Ce,this);j5.K.P.call(this)};function p5(a,b,c){j5.call(this,a,b);this.I=[];this.J=[];this.F=[];this.S=c;this.H=0;this.N=a.la.o;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],H4(c)){var d=new D4(c.A,c.Ba,c.j,c.C,!0);b[a]=d;this.I.push(c)}this.O||this.Tf()}z(p5,j5);f=p5.prototype;
f.nk=function(a){a=p5.K.nk.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.Ba=a.getId()}b&&"loaded"==b.Qc?(a.qa("adBreakComplete",this.Sf,this),this.A[a.getId()]=b,this.o[this.o.indexOf(a)]=b,Ci(a)):(this.Tf(),b&&(Ci(b),b=null),this.Ce(a));b&&!b.xb&&this.Tf();return b};f.Sf=function(a){0!=a.j||"loaded"==a.Qc&&a.xb||this.Tf();p5.K.Sf.call(this,a)};
f.ym=function(a){a.xb&&10<this.N?(q5(this),this.H=L(x(this.Tf,this),1E3*(this.N-10))):this.Tf();p5.K.ym.call(this,a)};f.Tf=function(){for(q5(this);this.I.length&&this.J.length+this.F.length<this.S;){var a=this.I.shift();a.subscribe("adBreakComplete",this.uq,this);this.J.push(a);i4(a)}};f.uq=function(a){a.qa("adBreakComplete",this.uq,this);ob(this.J,a);this.F.push(a)};f.P=function(){q5(this);D(this.J,Ci);D(this.F,Ci);D(this.I,Ci);p5.K.P.call(this)};function q5(a){a.H&&M(a.H);a.H=0};function r5(a,b){j5.call(this,a,b);this.J=a;this.F=[];this.R=1}z(r5,j5);r5.prototype.getVideoData=function(){return null};r5.prototype.N=function(a){this.F.push(a);a.qa("adBreakComplete",this.N,this)};r5.prototype.H=function(){if(null!=this.Db&&0<this.F.length){var a=this.F.shift();delete this.A[a.j];var b=Math.floor((new Date).getTime()/1E3)-this.S;this.S=null;a.qa("adBreakComplete",this.H,this);this.Ce(a);this.Db=null}a=this.J;o5(a);ot(a);isFinite(b)&&k2(this.I,this.I.getCurrentTime()+b)};function s5(a,b){this.G=a;this.ba=b;this.F=y();this.j=a.la;this.B={};this.D=new s3(a);var c=[];this.j.V&&this.j.A&&c.push("4_2");this.j.lm&&(this.j.A&&c.push("13_2"),this.j.H&&c.push("13_1"));this.j.O&&(this.j.A&&c.push("1_2"),this.j.F&&c.push("1_2_1"),this.j.H&&c.push("1_1"),this.j.U&&c.push("1_3"));this.j.J&&c.push("2_2_1");this.j.N&&c.push("2_2");this.j.I&&c.push("2_1");(this.j.ab||this.j.Ki)&&c.push("2_3");this.A=c.join(",");this.o="";this.B.allowed=this.A;(c=this.j.excludedAds)&&(this.B.ex_ads=
c)}s5.prototype.C=0;function t5(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 u5(a,b,c){Q.call(this);this.j=a;this.A=b;this.F=c;this.B=this.D=-1;this.o=v5(this.A.Ne());a=this.A.Ne();a.length&&(a=a[a.length-1],-1==a&&bt(this.j,[this.o[a]]));0<this.j.la.o&&this.j.subscribe("endseeking",this.C,this)}z(u5,Q);function w5(a,b){x5(a);0<b&&(a.B=L(x(a.C,a),1E3*b))}function x5(a){-1!=a.B&&(M(a.B),a.B=-1)}function y5(a){a.o||(a.o=v5(a.A.Ne()));i5(a.j,Ob(a.o))}
function v5(a){if(!a.length)return{};for(var b={},c=0;c<a.length-1;c++){var d=a[c],e;e=a[c+1];e=-1==e?2147483647:1E3*e;b[d]=new Qs(-1==d?2147483647:1E3*d,2147483647==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new Qs(-1==d?2147483647:1E3*d,2147483647,{id:String(d),visible:!0});return b}
u5.prototype.C=function(){var a=this.j.la.o;if(!(0>=a)&&this.o){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;D(this.A.Ne(),function(a){var g=this.o[a];if(g){var l=this.A.I.get(a);l&&l.ed>b?(a=!b_(this.F,l),a!=g.visible&&(g.visible=a,c.push(g)),a||(g=l.ed-b,g<e&&(e=g,d=l))):!l||l.yb()?(ct(this.j,[g]),delete this.o[a]):!g.visible&&l&&(g.visible=!0,c.push(g))}},this);0<c.length&&i5(this.j,c);if(d){var g=0;0<this.D&&(g=y()/1E3-this.D);w5(this,a-g-e+2)}else x5(this)}};
u5.prototype.P=function(){u5.K.P.call(this);x5(this)};function z5(a){Q.call(this);this.j=a;this.B=null;this.D=new En(this);this.A=new En(this)}z(z5,Q);f=z5.prototype;f.Va=null;f.qi=null;f.Cb=null;f.Jb=null;f.qk=null;function A5(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=t5(b).toString());var h={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":g};a.innerHTML=a.innerHTML.replace(/\[[A-Z_]+\]/g,function(a){return h[a]||a})});return a}
function B5(a){var b=YB(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=A5(d,a,h);h++;c.insertBefore(a,g.nextSibling);g=a});c.removeChild(d);return $B(b)}return a}
f.load=function(a){if(this.B=this.j.ng){var b=new fW;b.j=B5(a);a=L3(this.j);b.Me=a.width;b.Qd=a.height;b.Wb=a.width;b.hc=100;b.B=this.j.W().experiments.experimentIds;b.Ni=this.j.C.B;if(a=K_(this.j.W()))b.C=a;this.j.la.tagForChildDirected&&(b.Mg=!0);$D(this.j.W(),"937420")&&(b.nh=!0);a=R4(this.j.la);b.o=L2(a.get(3));if(a=this.j.la.ca)b.A=a;a=Fr(this.j.o);var c=this.j;b.Uc={"[CONTENT_V]":a.videoId,"[CPN]":a.clientPlaybackNonce,"[LACT]":{toString:function(){return null==c||c.ka()?c=null:K_(c.W()).toString()}}};
this.B.M("adsManagerLoaded",this.Pt,!1,this);this.B.M("adError",this.Ot,!1,this);try{o_(this.B,b,this)}catch(d){}}};function C5(a){var b=new xL;b.baseYouTubeUrl=a.j.W().B;b.contentId=Fr(a.j.o).videoId;b.useShareButton=!0;b.useStyledNonLinearAds=!0;b.useVideoAdUi=a.j.la.G;b.showContentThumbnail=a.j.la.showContentThumbnail;b.Aw=!0;b.Im=10;b.vo=!1;return b}
f.Pt=function(a){if(a.B===this){var b={};Object.defineProperty(b,"currentTime",{get:x(function(){return this.j.j.getCurrentTime()},this),enumerable:!0});Object.defineProperty(b,"duration",{get:x(function(){return this.j.j.getVideoData().lengthSeconds},this),enumerable:!0});try{var c=C5(this);this.Va=G2(a,this.j.C,b,c)}catch(d){return}if(this.qk=this.Va.Ep(b,this.j.la.o)){this.qi=new u5(this.j,this.Va,this.qk);y5(this.qi);G(this.Va.Ne(),0)||D5(this);this.A.M(this.Va,"companionBackfill",x(this.BF,this));
this.A.M(this.Va,"loaded",x(this.AF,this));this.A.M(this.Va,"adError",x(this.zF,this));this.A.M(this.Va,"start",x(this.Cz,this));this.A.M(this.Va,"complete",x(this.zz,this));this.A.M(this.Va,"contentPauseRequested",x(this.CF,this));this.A.M(this.Va,"contentResumeRequested",x(this.DF,this));this.A.M(this.Va,"allAdsCompleted",v);try{this.Va.init("normal"),this.Va.start()}catch(e){this.Va.destroy(),this.o=null}}}};
f.CF=function(a){this.Cb&&this.Cb.dispose();(this.Jb=a.getAd())&&CU(this.Jb)&&(a=E5(this.Jb),this.j.la.S?this.Cb=new O3(a,this.j,this.Va,FU(this.Jb),!0):this.Cb=new E3(a,this.j,this.Va,this.Va.getMediaUrl(),FU(this.Jb),!0),F5(this.j),this.Cb.df())};
function G5(a,b){var c=EU(b);if(K2(c,$3.j)&&a.j.la.Ki)return a.Cb=new k4(a.j),a.Cb.df(),!1;if(K2(c,"blockAllAds"))return a.Va.sendImpressionUrls(),a.Cb=new p4(a.j,a.Va,!0),!1;if(K2(c,"hideMaster"))return a.Cb=new p4(a.j,a.Va,!0),!1;a.Cb=new X3(E5(b),a.j,a.Va,!0);a.Cb.df();return!0}
f.DF=function(a){this.Cb&&this.Cb.dispose();D5(this);if(this.j.j.getCurrentTime()<this.j.j.getVideoData().lengthSeconds){var b=this.j;o5(b);ot(b)}a=a.getAd();b=!0;if(a&&a!==this.Jb&&!CU(a)){b=this.Va;if(null!=b.j&&b.j.H&&10>this.j.j.getCurrentTime())return;b=G5(this,a)}this.Jb&&CU(this.Jb)&&O4(this.j);if(this.Jb&&CU(this.Jb)||a&&a!==this.Jb&&!CU(a)&&b)b=this.qk,0<b.j&&(b.o=y()/1E3),b=this.qi,0<b.j.la.o&&(b.D=y()/1E3,b.C());y5(this.qi);this.Jb=a};
f.Cz=function(a){if((a=a.getAd())&&this.Cb){var b=this.Cb;b.type=E5(a)+"_"+b.J}};f.zz=function(a){CU(a.getAd())||this.Jb!==a.getAd()||(this.Cb&&this.Cb.dispose(),this.Jb=null)};f.AF=function(a){null!=a.getAd()&&(a.getAd().C.A||CU(a.getAd())||D5(this))};f.zF=function(){};f.Ot=function(){};f.BF=function(){P2();Q2()};
f.P=function(){this.B&&(this.B.Ia("adsManagerLoaded",this.Pt,!1,this),this.B.Ia("adError",this.Ot,!1,this));this.D.removeAll();this.A.removeAll();this.C=!1;this.Va&&(this.Va.destroy(),this.Va=null);z5.K.P.call(this)};function E5(a){switch(IU(a).toUpperCase()){case "ADSENSE":return 2;case "DOUBLECLICK":return 1;case "FREEWHEEL":return 4;case "XFP":return 13;default:return 0}}function D5(a){a.C||(et(a.j),a.C=!0)};function H5(a){q_.call(this,a);hL.j=!0;hL.B=!1;hL.D=!0;this.C=null;this.G={};this.F={at:"0"};this.A=new aE(this.j);Zr(this.j,this.A.Q());this.H=this.B=null;this.D=-1}z(H5,q_);f=H5.prototype;f.xa="ad";f.Cc="ad";f.xe=null;f.cb=null;f.la=null;f.fm=!1;f.Il=!1;f.ng=null;f.fg=null;H5.Ha=function(a){return!!a.yc.getVideoData().adModule};f=H5.prototype;f.Ha=function(){return H5.Ha(this.o)};
f.Na=function(){H5.K.Na.call(this);J4(this,"i");this.la=new V4(this.W(),this.j.getVideoData().B||{});this.xe=new s5(this,this.j);this.fm=!1;if(this.ng)this.ng.j.A.D=iR();else{var a=this.la.G?void 0:eE(this.A);if(this.la.S){var b=new p_(this.o,2),c=bE(this.A);b.j||(b.j=Yb(b.Vf),b.j.addEventListener=x(b.Ew,b),b.j.removeEventListener=x(b.Fw,b));this.C=new XQ(c,void 0,a,b.j)}else{b=K3(this,!1);if(!b)throw"initAdsLoader_: getVideoElement returned a null element";this.C=new XQ(bE(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.ng=new n_(this.C)}a=U4(new T4(this));if(b=this.la.vmap)b=U4(new T4(this)),(b=1==b.length&&0==b[0].j)||(b=this.W(),b=$D(b,"944643")),b=!this.la.j&&!this.la.Y&&!this.la.Lf&&b&&!this.la.pa;b?(this.fg=new z5(this),this.fg.load(this.la.vmap)):(J4(this,"bd"),b=this.la,c=b.midrollPrefetchSize,this.cb=b.aa&&(b.Rp||b.Fm)?new r5(this,a):0<c?new p5(this,a,c):new j5(this,
a),k5(this.cb));a={};a.allowed=this.xe.A;it(this,{},a)};f.destroy=function(){this.Il&&o5(this);if(this.B){var a=this.o,b=this.B;T3(a);b!=a.o&&Q3(a,a.o)}Ei(this.cb,this.B,this.fg);this.xe=this.fg=this.B=this.cb=null;cE(this.A);O2=!1;this.qe&&H5.K.destroy.call(this)};f.W=function(){return this.o.W()};f.Sg=function(){return this.j.Sg()||this.la.B};
function b4(a,b,c){a=a.xe;c=c||{};var d=(y()-a.F)/1E3;c.art=d;d=a.G.W();d.R&&(c.feature=d.Ca);c.ad_flags=a.j.adFlags;(d=a.j.Wa)&&(c.cid=d);c.mt=a.ba.getCurrentTime();(d=u_())&&(c.lact=d);(d=a.ba.vh())&&(c.len=d);a.j.Ob&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.o=c.at;b=a.D;i:{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 i}a=c&&c.ad_event?u3(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.la.ib;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==E2?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=t3(d);break;case "error_code":g.ima_error=
d;case "error_message":g.error_msg=d;break;case "ad_event":g.event=u3(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(g.i_x=a[0],g.i_y=a[1])}}g=P3(b.j);h=Fr(b.j.o);e.cpn=h.clientPlaybackNonce;e.content_v=h.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.j.cb,e.mt=null!=c&&null!=c.Db?1E3*c.Db.j:0):e.mt=Math.round(1E3*g.getCurrentTime());e.ei=h.H;e.lact=K_(b.j.W());c=A3(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 gf(null,
0,void 0);e=De(e);for(g=0;g<h.length;g++)a=h[g],d=e[g],ea(d)?sf(c,a,d):c.add(a,d);b=b.j.W().B+"api/stats/ads";b=new J(b);ef(b,c);og(b.toString())}}function a4(a,b,c){c=c||{};c.ad_error=b;b4(a,7,c)}f.Ah=function(){var a;if(this.xe){a=this.xe;var b={allowed:a.A};a.j.excludedAds&&(b.ex_ad=a.j.excludedAds);a.o&&(b.at=a.o);a=b}else a=H5.K.Ah.call(this);return a};function O4(a){if(a.la.ta&&!a.fm){var b=a.W().B;og(b+"mac_204?action_fcts=1");a.fm=!0}}f.Ma=function(){return this.j.Ma()};
function I5(a){return a.cb instanceof r5?a.cb:null}function K3(a,b){var c;if(b){c=a.A;var d=fE(c);c.ba.W().D||be(d)||bE(c).appendChild(d);c=d}else c=a.A,c=c.ba.W().D?c.ba.T.A.o:fE(c);return c}function P3(a){if(!a.B){var b=Yb(a.W().C);b.autoplay="1";b=new B_(b);b.ja="adunit";var c=K3(a,!1);b.Bb=c;a.B=new T1(b,2,new r_(b,""),a.o.A)}return a.B}f.getVideoData=function(){return this.H};function A3(a){return a.la.B?(a=L3(a),new zg(0,0,a.width,a.height)):dh(a.Ma())}function L3(a){return a.o.A.hp()}
function F5(a){a.Il=!0;a.L("command_redirect_controls",a,["play_pause"],void 0);lt(a,["seek"]);a.W().N&&lt(a,["audio"]);a.fg||a.pauseVideo()}function o5(a){cE(a.A);a.Il=!1;nt(a);mt(a,["seek"]);a.W().N&&mt(a,["audio"])}f.getAdState=function(){return this.D};function M3(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 G3(a,b,c,d){d&&a.L("publish_external_event","onAdInfoChange",d);a.L("publish_external_event","onAdStateChange",b,K3(a,!1),c)}
f.Jc=function(a){H5.K.Jc.call(this,a);var b=parseInt(a.getId(),10);if(this.cb&&!isNaN(b))if("ytp-ad-fadeout"==a.style){var c=this.cb,d=c.nk(b);if(d&&!h5(c.G,d)&&(c=c.B,d.xb)){var e=K3(c.j,!1),d=Math.max(0,E4(d)+c.B+c.A-1E3*c.j.j.getCurrentTime());Ig(e,"transition","opacity "+String(d)+"ms linear");Ig(e,"opacity","0");a5(c,e,d,0)}}else if(d=this.cb,n(b)&&(c=d.nk(b)))d.Db==c&&!c.xb&&c.isVisible?N4(c):(d.Db&&d.Ce(d.Db),h5(d.G,c)?(d.Db=null,c=d.C[c.getId()],c.visible||(c.visible=!0,i5(d.j,[c]))):(d.Db=
c,c.subscribe("adBreakComplete",d.ym,d),c.xb&&F5(d.j),d.B.gr(c),N4(c)));!isNaN(b)&&0>b&&this.fg&&(b=this.ng.j,d=new WR("contentComplete"),b.X(d),d.B&&(b.A.clear(),null!=b.o&&(d=b.o.De(),null!=d&&yR(d,b.A.j))));"livead"===a.getId()&&null!=I5(this)&&(b=I5(this),a=Math.floor(a.start/1E3),Math.round(a),n(b.A[a])||(d=b.R++,d=new D4(b.J,d,a,S4(b.J.la),!1),b.A[a]=d,d.subscribe("adBreakComplete",b.N,b),i4(d)))};
f.Yc=function(a){H5.K.Yc.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.j.getCurrentTime();this.cb&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(c=this.cb,(b=c.A[b])&&c.Db==b&&!b.xb&&b.isVisible&&b.qn&&b.o instanceof X3&&Z3(b.o,"fullscreen"));"livead"===a.getId()&&null!=I5(this)&&1E3*this.j.getCurrentTime()>=a.start&&(ct(this,[a]),a=I5(this),null==a.Db&&0<a.F.length?(b=a.F[0],b.isVisible?(a.S=Math.ceil(y()/1E3),b.subscribe("adBreakComplete",a.H,a),a.Db=b,N4(b)):a.H()):a.H())};
function J4(a,b){var c=b;"nl"==b&&(c=a.xe,c.C++,c=c.C.toString());a.G[c]=y();"bs"!=c&&"fb"!=c||it(a,a.G,a.F)}function i5(a,b){a.L("command_update_cuerange_markers",b,a.j.getPlayerType())}function Y3(a){return Boolean(a.la.C&&a.cb&&1<a.cb.o.length)}f.Wd=function(a){this.L(a)};f.kA=function(a){var b=I5(this);if(null!=b&&null!=b.I){var c=I5(this).I.getCurrentTime();D(a,function(a){a.$d-10>c&&(a=new Qs(1E3*Math.floor(c+Math.random()*(a.$d-10-c)),1E3*a.$d,{id:"livead",priority:2}),bt(this,[a]))},this)}};
f.kg=function(a){switch(a){case "addata":var b=this.la;return{adTag:b.adTag,adTest:b.tb,forceAdType:b.ga,isAfvSkippableInstreamEnabled:b.J,isAfvStandardInstreamEnabled:b.N,isBlazer:b.R,isDoubleClickEnabled:b.O,isForcedAd:b.Y,isFreeWheelEnabled:b.V,isHouseBrandPlayer:b.Nb,isLeanback:b.B,isShortform:b.ta,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.cb instanceof p5?this.cb:null,null!=b?b.N:0;case "breakscount":return this.cb?
this.cb.o.length:0;case "displaystate":return b=null,this.cb&&this.cb.Db&&(b=this.cb.Db.o),{adFormat:b instanceof q3?b.J:!1,adSkipped:b instanceof O3?b.F:!1,hasVideoStarted:b instanceof O3?b.H:!1,skippable:b instanceof O3?b.N:!1};case "getContentVideoData":return b=Fr(this.o),{adModule:b.adModule,isGetVideoThirdPartyOnly:b.Vi,partnerTrackingToken:b.J,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.cb){a=this.cb.A;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].xb});
return c}return 0}};f.lg=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};function J5(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>';
Y.call(this,["div",c]);d&&(this.element.innerHTML=d)}z(J5,Y);function K5(a){this.o=a||30;iE.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.$()}z(K5,iE);K5.prototype.va=function(){K5.K.va.call(this);var a=this.H;this.C=new Date;this.F(a,125)};
K5.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()}};K5.prototype.$=function(){M(this.j);K5.K.$.call(this)};function L5(a,b,c){RD.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;M5(this,a,b)}z(L5,RD);function N5(a){O5(a,Z("YTP_MDX_STATUS_CONNECTING"));P5(a,2)}function Q5(a,b){O5(a,Z("YTP_MDX_STATUS_ERROR"));qv(a.template,"error",b);P5(a,0)}
function P5(a,b){var c=a.template.j["ytp-remote-display-error"],d=a.template.j["ytp-remote-display-status"];Vw(c);Vw(d);a.A.$();a.j.$();a.o.$();switch(b){case 0:Uw(d);Uw(c);break;case 1:Uw(d);break;case 2:Uw(d);a.j.va();break;case 3:a.A.va()}}
function M5(a,b,c){var d=b.j.W();a.A=new J5(d.isMobile,d.Nb);R(a,a.A);a.j=new K5(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 Xz(a.C,"ytp-button-remote-reconnect");a.o.za(Z("YTP_MDX_PLAYER_RECONNECT_BUTTON"));R(a,a.o);b=b.j.getVideoData();a.B.style.backgroundImage=b.videoId?"url("+b.Od("hqdefault.jpg")+")":"";qv(a.template,"largeplaybutton",a.A);qv(a.template,"reconnectbutton",a.o);qv(a.template,"loadingicon",
a.j);a.o.M("click",function(){this.L("reconnect-button-click")},a);N5(a);qv(a.template,"receiver",c)}function O5(a,b){qv(a.template,"statustext",b)};function R5(a,b,c){Q.call(this);this.o=a;a.subscribe("onVolumeChange",this.Mq,this);this.I=x(this.RA,this);a.j.addEventListener("onCaptionsTrackListChanged",this.I);this.D=!1;this.A=b;b.subscribe("reconnect-button-click",this.Vq,this);this.j=c;c.subscribe("proxyStateChange",this.Wq,this);c.subscribe("remotePlayerChange",this.Cm,this);c.subscribe("remoteQueueChange",this.Dm,this);this.N=new Gs;this.G=this.F=NaN;this.J=0;this.C={};this.H=new Bn(this.hD,1E3,this);R(this,this.H);this.O=0;this.B=!1;a=
this.o.j.hk("captions","track");Ub(a)||S5(this,a);this.Dm();this.Cm()}z(R5,Q);f=R5.prototype;f.P=function(){T5(this,new Gs);U5(this);V5(this);this.o.qa("onVolumeChange",this.Mq,this);this.o.j.removeEventListener("onCaptionsTrackListChanged",this.I);Di(this.A)||this.A.qa("reconnect-button-click",this.Vq,this);Di(this.j)||(this.j.qa("proxyStateChange",this.Wq,this),this.j.qa("remotePlayerChange",this.Cm,this),this.j.qa("remoteQueueChange",this.Dm,this));W5(this,this.C);this.j=this.A=this.o=null};
f.EF=function(a,b){2==this.j.o||(X5(this)?this.Ox.apply(this,arguments):this.B&&this.Jx.apply(this,arguments))};function Y5(a,b){a.o.Vj(b,a.o.j.getVideoData().lengthSeconds)}f.Jx=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":Z5(this,this.o.j.getCurrentTime());break;case "control_seek":Z5(this,c[0])}};
f.Ox=function(a,b){if(1081==wp(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":wp(this.j).yb()?$5(this):a6(this);break;case "control_play":a6(this);break;case "control_pause":$5(this);break;case "control_seek":this.O=c[0];Cn(this.H);break;case "control_subtitles_set_track":S5(this,c[0])}};
f.Mq=function(a){if(X5(this)){var b=Math.round(a.volume);a=!!a.muted;var c=wp(this.j);b==c.volume&&a==c.muted||this.j.setVolume(b,a)}};f.RA=function(){Ub(this.C)||W5(this,this.C);this.D=!1};f.Vq=function(){V5(this);this.j.B.reconnect();N5(this.A);this.B=!1};f.Wq=function(a,b){V5(this);2==b&&this.as()};
f.Cm=function(){if(X5(this)){U5(this);var a=wp(this.j);switch(a.j){case 1:b6(this);T5(this,new Gs(8));break;case 3:T5(this,new Gs(1));break;case 0:T5(this,new Gs(2));this.H.stop();var b=this.o.j;(b=hr(b.T,b.playerType||1))&&b.$f(!0);Y5(this,this.o.j.getVideoData().lengthSeconds);break;case 2:T5(this,new Gs(4));Y5(this,pp(a));break;case -1:T5(this,new Gs);break;case -1E3:T5(this,new Gs(128,{}))}0==this.J&&(b=this.o.j,(b=hr(b.T,b.playerType||1))&&b.$f(!1));this.J=a.j;a=wp(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,W5(this,a));a=wp(this.j);-1==a.volume||Math.round(this.o.j.Ts())==a.volume&&this.o.j.Us()==a.muted||(this.o.j.setVolume(a.volume),a.muted?this.o.j.Xs():this.o.j.bt())}else c6(this)};function c6(a){a.B||(Y5(a,0),U5(a),T5(a,new Gs));"detailpage"!=a.o.o.yc.W().ja&&(P5(a.A,3),a.B=!0)}f.Dm=function(){X5(this)||c6(this)};
function S5(a,b){if(X5(a)&&!a.D){if(b){var c={style:a.o.j.hk("captions","displaySettings")};ac(c,b);a.j.Xm(d6(a),c)}else a.j.Xm(d6(a),null);a.C=wp(a.j).A}}function $5(a){a.j.pause();var b=wp(a.j);Y5(a,pp(b));U5(a);T5(a,new Gs(4))}function a6(a){a.j.play();b6(a);T5(a,new Gs(8))}function Z5(a,b){var c=a.o.j.Ed();c?Dp(a.j,d6(a),b,c.Ya,a.o.j.getVideoData().playlistId):Dp(a.j,d6(a),b);T5(a,new Gs(1))}
function W5(a,b){if(b){var c=a.o.j.hk("captions","tracklist",{Sp:1});c&&c.length?a.o.j.Jn("captions","track",b):(a.o.j.Vs("captions"),a.D=!0)}else a.o.j.Jn("captions","track",{})}f.hD=function(){var a=this.O;U5(this);Y5(this,a);-1==wp(this.j).j?Z5(this,a):this.j.Ds(a);T5(this,new Gs(1))};function X5(a){return np(wp(a.j))==d6(a)}function d6(a){return a.o.j.getVideoData().videoId}
function b6(a){U5(a);if(!a.j.ka()){var b=wp(a.j);b.yb()&&T5(a,new Gs(8));Y5(a,pp(b));a.F=L(x(function(){b6(this)},a),500)}}function U5(a){M(a.F);a.F=NaN}f.as=function(){V5(this);U5(this);var a=this.j.B.getReconnectTimeout();if(2!=this.j.o||isNaN(a))N5(this.A),this.B=!1;else{var b=this.A;Q5(b,Z("YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:wv(a/1E3)}));b.o.va();this.G=L(x(this.as,this),1E3)}};function V5(a){M(a.G);a.G=NaN}
function T5(a,b){V5(a);var c=a.N;a.N=b;var d=a.A;O5(d,Z("YTP_MDX_STATUS_CONNECTED"));P5(d,1);X(b,1)&&(d=a.A,O5(d,Z("YTP_MDX_STATUS_CONNECTED")),P5(d,2));X(b,128)&&Q5(a.A,Zf("YTP_MDX_PLAYER_ERROR"));a.B=!1;d=a.o;d.U=b;pt(d,X(b,8));d.o.L("presentingplayerstatechange",new S1(b,c))};function e6(a){q_.call(this,a);this.R=a.A.B;this.D={key:Vj(),name:Zf("YTP_MDX_MY_COMPUTER")};this.C=this.B=null;this.J=[];this.N=this.O=this.A=null;this.Y=[this.D];this.H=this.D;this.G=new rB(this.R,"ytp-remote-button",Zf("YTP_MDX_TOOLTIP"),"ytp-remote-button-active");R(this,this.G);Zz(this.G,6950);this.G.M("click",this.kF,this);this.G.Q().id="remote_button";this.F=new IB(this.R,x(this.Ow,this),x(this.sA,this));N(this.F.Q(),"ytp-drop-down-background");R(this,this.F);this.I=new Wz;this.I.label=Zf("YTP_MDX_TITLE");
this.I.element=this.F;this.I.A=this.xa;R(this,this.I);this.F.kb(this.I.label);this.U=new Gs;this.V=0}z(e6,q_);var f6=["play_pause","seek"],g6=["captions"];f=e6.prototype;f.xa="remote";f.Cc="remote";f.Ha=function(){return this.o.yc.W().wg};f.Na=function(){e6.K.Na.call(this);this.J.push(Li("yt-remote-before-disconnect",this.Rz,this));this.J.push(Li("yt-remote-connection-change",this.Xq,this));this.Xq();rt(this,this.xa,this.G);tt(this,this.I);var a=this.j.T.J;this.H&&this.H!=this.D&&1!=a&&3!=a&&this.load()};
f.destroy=function(){Ni(this.J);this.J.length=0;Ci(this.A);this.A=null;e6.K.destroy.call(this)};f.load=function(){if(!this.loaded){e6.K.load.call(this);uB(this.G,"ytp-remote-button-active");this.C=new L5(this,this.H.name,this.R);Zr(this.j,this.C.Q());this.A&&(this.B=new R5(this,this.C,this.A));this.j.pauseVideo();this.L("command_redirect_controls",this,f6,g6);var a=Gq();if(0!=a){var b=this.A?np(wp(this.A)):null;b&&b!=this.j.getVideoData().videoId||L(x(function(){this.Vj(a)},this),0)}}};
f.unload=function(){this.loaded&&(uB(this.G,"ytp-remote-button"),this.F.j(this.D),nt(this),Ei(this.B,this.C),this.B=this.C=null,e6.K.unload.call(this))};f.P=function(){this.destroy();Ei(this.B,this.C,this.A);this.A=this.B=this.C=null;e6.K.P.call(this)};f.Wd=function(a,b){this.B&&this.B.EF.apply(this.B,arguments)};
function Gr(a,b,c){var d=c||a.D;b.unshift(a.D);a.Y=b||[a.D];d=F(b,function(a){return a.key==d.key});h6(a,b);a.F.j(d);a.H=d||a.D;a.C&&qv(a.C.template,"receiver",d.name);a.L("publish_external_event","onMdxReceiversChange")}f.Vj=function(a,b){this.V=a||0;e6.K.Vj.call(this,a,b)};f.getCurrentTime=function(){return this.V};f.Rz=function(a){1==a&&(this.O=this.A?wp(this.A):null);this.N=a};
f.Xq=function(){var a=Iq();a?(this.A=a,this.N=this.O=null,this.load(),this.B||(this.B=new R5(this,this.C,this.A))):(Ci(this.A),this.A=null,this.loaded&&1==this.N&&(this.unload(),(a=this.O)&&np(a)==this.j.getVideoData().videoId?this.j.wh(pp(a)):this.j.wh(0)))};f.sA=function(a){vt(this);a!=this.F.A&&(this.F.j(a),i6(this,a))};
function i6(a,b){a.H=b||a.D;if(b.key==a.D.key)Bq();else{var c=0,d="",e=a.j.Ed();e&&(c=e.Ya,d=a.j.getVideoData().playlistId);if(e=a.j.Ed()){for(var g=[],h=0;h<e.wc;h++)g[h]=Ar(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()};yq(b,c);a.C&&qv(a.C.template,"receiver",b.name);Ci(a.B);a.B=null;a.load()}}function h6(a,b){D(b,function(a){a.toString=function(){return a.key}},a);JB(a.F,b)}
f.kF=function(a){var b=pq();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),Il())};f.Ow=function(a){return a.name};f.kg=function(a,b){switch(a){case "casting":return!!this.A&&!!this.B;case "receivers":return this.Y;case "currentReceiver":return b&&("cast-selector-receiver"==b.key?Il():i6(this,b)),this.H;case "castSelector":var c=pq(),c=1==c.length&&"cast-selector-receiver"==c[0].key;b&&c&&Il();return c}};
f.lg=function(){return["casting","receivers","currentReceiver","castSelector"]};function j6(a){this.addEventListener=x(a.addEventListener,a);this.removeEventListener=x(a.removeEventListener,a);this.dispatchEvent=x(a.dispatchEvent,a)}
function k6(a,b,c){S.call(this);this.G=a;this.O=x(b,null);this.I=c;this.j=0;this.A=new Qc(NaN,NaN);b=c?4E3:3E3;this.C=new Pv(pa(this.Ab,1,!1),b,this);R(this,this.C);this.D=new Pv(pa(this.Ab,2,!1),b,this);R(this,this.D);this.F=new Pv(pa(this.Ab,512,!1),5E3,this);R(this,this.F);c||(this.B=P(a,"mouseover",x(this.Rt,this)),this.J=P(a,"mousemove",x(this.FF,this)),this.N=P(a,"mouseleave",x(this.sz,this)));this.H=ed?P(a,"keypress",x(this.ez,this)):P(a,"focusin",x(this.Jw,this));this.o=P(a,"mousedown",x(this.Qt,
this));this.Ab(640,!0)}z(k6,S);f=k6.prototype;f.FF=function(a){a=new Qc(Gh(a),Hh(a));Rc(a,this.A)||(this.A=a,this.Ab(2,!0))};f.sz=function(){this.Ab(2,!1)};f.Rt=function(a){var b=new Qc(Gh(a),Hh(a));Rc(b,this.A)||(this.A=b,this.j&2&&this.O(a.target)&&(this.Ab(4,!0),Mh(this.B),this.B=P(this.G,"mouseout",x(this.GF,this))))};f.GF=function(){this.A=new Qc(NaN,NaN);this.Ab(4,!1);Mh(this.B);this.B=P(this.G,"mouseover",x(this.Rt,this))};f.ez=function(){this.Ab(1,!0)};
f.Jw=function(a){a.target instanceof Element&&!(0<a.target.tabIndex)||this.Ab(1,!0)};f.Qt=function(){var a=8;this.I&&(a|=2);this.Ab(a,!0);Mh(this.o);this.o=P(document,"mouseup",x(this.HF,this))};f.HF=function(){this.Ab(8,!1);Mh(this.o);this.o=P(this.G,"mousedown",x(this.Qt,this))};
f.Ab=function(a,b){var c=!this.j;b?(this.j|=a,a&1&&this.C.start(),a&2&&this.D.start(),a&512&&this.F.start()):(this.j&=~a,a&1&&this.C.stop(),a&2&&this.D.stop(),a&512&&this.F.stop());var d=!this.j;c!=d&&this.L("autohideupdate",d)};f.P=function(){Mh(this.B);Mh(this.J);Mh(this.N);Mh(this.H);Mh(this.o);k6.K.P.call(this)};function l6(){this.o=this.j=null}function Z(a,b){return Zf(a,b,void 0)}f=l6.prototype;f.qg=function(a,b){this.j&&this.j.qg(a,b)};f.rg=function(a,b,c){this.j&&this.j.rg(a,b,c)};f.Mm=function(a){this.j&&this.j.Mm(a)};f.vb=function(){return this.o.vb()};f.sb=function(){return this.o.sb()};function m6(a,b){Y.call(this,["span","","{{sparkline_container}}"]);this.A=a;this.o=b;this.j=new eF("");R(this,this.j);qv(this.template,"sparkline_container",this.j)}z(m6,Y);function n6(a){Y.call(this,["div","html5-video-info-panel",["span","html5-video-info-panel-close",{role:"button",title:"close"},"[x]"],["div","html5-video-info-panel-content",["table","html5-video-info-table",["tr","",["th","","Video ID:"],["td","","{{video_id}}"]],["tr","",["th","","Dimensions:"],["td","","{{dimensions}}"]],["tr","",["th","","Resolution:"],["td","","{{resolution}}"]],["tr","",["th","","Volume:"],["td","","{{volume}}"]],["tr","",["th","","Stream Type:"],["td","","{{stream_type}}"]],
["tr",{style:"{{cpn_style}}"},["th","","CPN:"],["td","","{{cpn}}"]],["tr","",["th","","Mime Type:"],["td","","{{mime}}"]],["tr","",["th","","DASH:"],["td","","{{dash}}"]],["tr",{style:"{{drm_style}}"},["th","","Protected:"],["td","","{{drm}}"]],["tr","",["th","","Bandwidth:"],["td","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]]],["table",["html5-video-info-table","html5-video-element-info-table"],["tr","",["th","","Decoded Frames"],["th","","Dropped Frames"],["th","",
"Parsed Frames"],["th","","Presented Frames"]],["tr","",["td","","{{decoded_frames}}"],["td","","{{dropped_frames}}"],["td","","{{parsed_frames}}"],["td","","{{presented_frames}}"]],["tr","",["th","","Video Bytes Decoded"],["th","","Audio Bytes Decoded"],["th","","Painted Frames"],["th","","Paint Delay"]],["tr","",["td","","{{video_bytes_decoded}}"],["td","","{{audio_bytes_decoded}}"],["td","","{{painted_frames}}"],["td","","{{paint_delay}}"]]]]]);vv(this,this.template.j["html5-video-info-panel-close"],
"click",this.$);this.o=new m6(200,14);R(this,this.o);qv(this.template,"bandwidth_sparkline",this.o);this.A=new Pv(this.B,500,this);R(this,this.A);this.j=a}z(n6,Y);n6.prototype.va=function(){n6.K.va.call(this);this.B()};n6.prototype.$=function(){n6.K.$.call(this);this.A.stop()};
n6.prototype.B=function(){var a=hr(this.j),b=this.j.getVideoData(),c=this.j.sh(),d=this.j.A.o,e=this.j.W(),g;g=this.j;if(g.ta){var h=[];g.ta.H.forEach(x(h.push,h));g=h}else g=[0];var h=(a=a.G?a.G.j:null)&&a.o,k=b.videoId,l=b.clientPlaybackNonce,p=b.clientPlaybackNonce?"":"display:none",r;i:{if(b.Ze&&(r=b.Ze.match(/url=(https?)/))&&2==r.length){r=r[1];break i}r=""}c={video_id:k,cpn:l,cpn_style:p,mime:"",dash:"no",stream_type:r||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(Wq(this.j))+"%",bandwidth_kbps:(8*ab(g)/1024).toFixed(0)+" Kbps",drm_style:h?"":"display:none",drm:h?a.o+" / "+a.j:""};b.o&&
(d=kG(b.o)?"yes":"no",d+=" ("+b.o.id,b.F&&kG(b.o)&&(d+="/"+b.F.id),c.dash=d+")",c.mime=b.o.mimeType,b=b.o.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 o6(a){var b=["div","html5-video-container"],c=["div","html5-video-player",{tabindex:-1,id:a.Y.attrs.id},b];b.push(["div","html5-video-content"]);RD.call(this,c);xi(this.element,"version",a.Y.assets.js);this.j=a;this.pa=null;this.A=this.template.j["html5-video-container"];this.N=new zg(0,0,0,0);this.o=null;this.Z=new zg(0,0,0,0);this.sa=this.template.j["html5-video-content"];this.Da=this.ab=0;this.aa=null;this.Y=0;this.na=null;b=a.W();this.$a=b.tb||"blazer"==b.j;this.S=new n6(a);R(this,this.S);
this.S.ea(this.element);this.B=new l6;this.Ym();Yf({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_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_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_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_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_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 of $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:"An error occurred while retrieving sharing information. Please try again later.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH"});
this.Gk()}z(o6,RD);f=o6.prototype;f.Gk=function(){this.j.subscribe("initializingmode",this.ey,this);this.j.subscribe("videoplayerreset",this.LF,this);this.j.subscribe("videodatachange",this.KF,this);this.j.subscribe("presentingplayerstatechange",this.Gl,this)};f.initialize=function(a){this.pa=Ed(a);this.ea(this.pa)};f.ey=function(){this.Z=new zg(0,0,0,0);this.N=new zg(0,0,0,0)};f.addClass=function(a){sh(this.element,arguments)};f.removeClass=function(a){uh(this.element,arguments)};f.rk=function(){return!1};
f.Yn=function(){var a=this.j.W();this.addClass("el-"+a.ja);this.addClass("ps-"+a.j);O(this.element,"html5-native-controls","3"==a.o);O(this.element,"html5-mobile",a.isMobile);O(this.element,"ytp-no-controls","0"==a.o);a.D||this.addClass("tag-pool-enabled");a.Nb&&this.addClass("house-brand");this.$a?this.aa=P(window,"resize",x(this.ki,this)):(a=Ww()?x(this.cw,this):x(this.ki,this),this.aa=Vf(a,250))};f.cw=function(){this.Y&&Zw(this.Y);this.Y=Yw(x(this.ki,this),0)};
f.ki=function(){Tc(this.sb(),Eg(this.N))||this.ff()};f.ff=function(){if(this.o){var a=this.sb();if(!a.isEmpty()){var b=!Tc(a,Eg(this.N)),c=p6(this);b&&(this.N.width=a.width,this.N.height=a.height,this.Kg(a));(c||b)&&this.L("resize")}}};f.Kg=function(){};f.Hl=function(){};f.KF=function(a,b){this.sk(b)};f.LF=function(a){a.getVideoData()&&this.sk(a.getVideoData())};
f.sk=function(a){if(this.o){var b=this.j.W();ps&&(this.o.setAttribute("x-webkit-airplay","allow"),b.Zh&&this.o.setAttribute("data-youtube-id",a.videoId),a.title?this.o.setAttribute("title",a.title):this.o.removeAttribute("title"));b.Ak&&(this.o.poster=a.videoId?a.Od("default.jpg"):"")}b=a.Fc("yt:bgcolor");this.A.style.backgroundColor=b?b:"";this.ab=gI(a.Fc("yt:stretch"));a=a.Fc("yt:crop");this.Da="fullwidth"==a?Infinity:gI(a)};f.pg=function(){};f.Vm=function(){};
f.vb=function(){var a=this.j.W();return a.tb||a.gb?new H(window.innerWidth,window.innerHeight):new H(this.element.clientWidth,this.element.clientHeight)};f.sb=function(){return this.vb()};f.hp=function(){return this.sb()};function wD(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 q6(a){return a.o?new H(a.o.videoWidth,a.o.videoHeight):new H(0,0)}
function r6(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.ab||s6(c),a=a.Da||c,d=s6(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 zg((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}function s6(a){return 1>Math.abs(Mw*a.height-a.width)||1>Math.abs(Mw/a.width-a.height)?Mw:a.width/a.height}
function t6(a){return"3"!=a.j.W().o&&!q6(a).isEmpty()}
function p6(a){var b=q6(a),c=a.sb(),d=1,e=t6(a),g=!1,h;h=(h=hr(a.j))&&h.getPlayerState();!h||X(h,2)||X(h,64)?h=0==b.width&&0==b.height?new zg(0,-c.height,c.width,c.height):new zg(0,-b.height,b.width,b.height):e?(h=r6(a,c,b,e,!1),d=s6(new H(h.width,h.height))/s6(b),h=new zg(h.left+h.width/2*(1-1/d),h.top,h.width/d,h.height)):h=new zg(0,0,c.width,c.height);Cg(a.Z,h)||(a.Z=h,Yg(a.o,Eg(h)),Og(a.o,new Qc(h.left,h.top)),g=!0);b=r6(a,c,b,e);Cg(a.N,b)||(a.N=b,Yg(a.sa,b.width,b.height),Og(a.sa,b.left,b.top),
g=!0);Ig(a.o,"transform",1==d?"none":"scaleX("+d+")");return g}f.Zn=function(){};f.Ym=function(){this.B.o=this};f.Gl=function(){this.ff()};f.St=function(){};f.P=function(){this.aa&&(this.$a?Mh(this.aa):Wf(this.aa),this.Y&&Zw(this.Y));this.na&&Mh(this.na);this.S.$();this.o=this.A=this.pa=null;o6.K.P.call(this)};function u6(a,b,c,d){Q.call(this);this.F=P(a,"click",x(this.N,this));this.G=P(a,"dblclick",x(this.I,this));this.J=b;this.B=c;this.C=d||null;this.o=new Pv(this.H,200,this);R(this,this.o);this.j=!0;this.A=!1;this.D=null}z(u6,Q);u6.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)};u6.prototype.I=function(a){this.A?this.A=!1:this.j&&this.B(a)};u6.prototype.H=function(){this.J(this.D);this.j=!0};
u6.prototype.P=function(){Mh(this.F);Mh(this.G);u6.K.P.call(this)};var v6=new H(1720,980),w6=new H(1294,630),x6=new H(640,560),y6=new H(1320,870),z6={xk:new H(1280,720),j:new H(960,540),wk:new H(854,480),fo:new H(640,360),eo:new H(426,240)},A6={xk:new H(1280,750),j:new H(960,570),wk:new H(854,510),fo:new H(640,390),eo:new H(426,270)};
function B6(a,b){var c=new H(window.innerWidth,window.innerHeight),d=b&&!a.experiments.I?A6:z6;return a.J?c.width>=y6.width&&c.height>=y6.height?d.xk.clone():d.wk.clone():c.width>=v6.width&&c.height>=v6.height?d.xk.clone():c.width>=w6.width&&c.height>=w6.height?d.wk.clone():c.width>=x6.width?d.fo.clone():d.eo.clone()};function C6(a){Y.call(this,["div","ytp-action-buttons"]);this.shareButton=new Xz(a,"ytp-button-share",Z("YTP_SHARE"));R(this,this.shareButton);this.shareButton.ea(this.element);Zz(this.shareButton,3400);this.j=new Xz(a,"ytp-button-dislike",Z("YTP_DISLIKE"));R(this,this.j);this.j.ea(this.element);Zz(this.j,3300);xi(this.j.Q(),"tooltip-below","1");a.rg(this.j.Q(),"YTP_DISLIKE_AS",Z("YTP_DISLIKE"));this.likeButton=new Xz(a,"ytp-button-like",Z("YTP_LIKE"));R(this,this.likeButton);this.likeButton.ea(this.element);
Zz(this.likeButton,3200);xi(this.likeButton.Q(),"tooltip-below","1");a.rg(this.likeButton.Q(),"YTP_LIKE_AS",Z("YTP_LIKE"))}z(C6,Y);function D6(){Y.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.j=new tE(this,500);R(this,this.j)}z(D6,Y);function E6(a,b,c,d,e,g){var h,k;if(h=c.offsetParent){var l="HTML"==h.tagName||"BODY"==h.tagName;l&&"static"==Ng(h,"position")||(k=Ug(h),l||(l=(l=gh(h))&&ed?-h.scrollLeft:!l||dd&&rd("8")||"visible"==Ng(h,"overflowX")?h.scrollLeft:h.scrollWidth-h.clientWidth-h.scrollLeft,k=Sc(k,new Qc(l,h.scrollTop))))}h=k||new Qc;k=dh(a);(l=Tg(a))&&Dg(k,Bg(l));var l=Bd(a),p=Bd(c);if(l.j!=p.j){var r=l.j.body,p=Vg(r,qe(p)),p=Sc(p,Ug(r));!dd||sd(9)||pe(l)||(p=Sc(p,re(l)));k.left+=p.x;k.top+=p.y}a=F6(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=Tg(c))e.top-=h.y,e.right-=h.x,e.bottom-=h.y,e.left-=h.x;G6(b,c,d,g,e,197,void 0)}
function G6(a,b,c,d,e,g,h){a=a.clone();var k=F6(b,c);c=ah(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 zg(0,0,0,
0);e.left=a.x;e.top=a.y;e.width=h.width;e.height=h.height;l&496||(Og(b,new Qc(e.left,e.top)),h=Eg(e),Tc(c,h)||(c=h,e=Dd(b),h=pe(Bd(e)),!dd||rd("10")||h&&rd("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=ih(b,"paddingLeft"),a=ih(b,"paddingRight"),g=ih(b,"paddingTop"),d=ih(b,"paddingBottom"),h=new yg(g,a,d,h)):(h=Mg(b,"paddingLeft"),a=Mg(b,"paddingRight"),
g=Mg(b,"paddingTop"),d=Mg(b,"paddingBottom"),h=new yg(parseFloat(g),parseFloat(a),parseFloat(d),parseFloat(h))),b=lh(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 F6(a,b){return(b&4&&gh(a)?b^2:b)&-5};function H6(a){Y.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.j=new Y(["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=Z("YTP_CLOSE");this.o=new Xz(a,"ytp-dialog-button",b);this.o.za(b);R(this,this.o);this.template.update({content:this.j,buttons:this.o});this.M("contextmenu",this.B)}
z(H6,wB);H6.prototype.B=function(a){a.stopPropagation()};H6.prototype.A=function(){this.j.Q().select()};function I6(a,b,c){Y.call(this,["ul",["html5-context-menu","yt-uix-button-menu"],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url"],Z("YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],Z("YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],Z("YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"],
Z("YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],Z("YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],Z("YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},Z("YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.ba=a;this.ba.subscribe("internalvideodatachange",this.Ut,this);this.A=new Nv(this);this.A.M(b,"contextmenu",this.iA);this.j=
new Nv(this);this.o=new H6(c);R(this,this.o);this.o.o.M("click",this.oy,this);a={Cu:this.NF,Du:this.OF,Eu:x(this.Tt,this,!1),Fu:x(this.Tt,this,!0),Hu:this.PF,Iu:this.QF,Gu:this.KA};for(var d in a)J6(this,d,a[d]);this.$()}z(I6,Y);f=I6.prototype;f.oy=function(){this.ba.A.pg()};function K6(a,b){var c=a.o;c.j.Q().value=b;c.j.Q().focus();L(x(c.A,c),100);a.ba.A.pg(a.o)}
function J6(a,b,c){a.A.M(a.template.j[zv[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.$();a=b.replace("CONTEXT_MENU_","").toLowerCase();L6(this.ba,"contextmenu."+a)})}f.Ut=function(a,b){Sw(this.template.j["html5-context-menu-copy-embed-html"],b.allowEmbed)};f.Tt=function(a){K6(this,qr(this.ba,a))};f.OF=function(){K6(this,sr(this.ba))};f.KA=function(a){M6(this.ba,a.target.getAttribute("href"))};
f.PF=function(){var a=hr(this.ba);a&&a.gk(new Pq("feedback",!1));var a=this.ba.W(),b=!0;"detailpage"==a.ja&&(b=t("yt.player.exports.feedbackStart")(void 0,{as3:!1,html5:!0,player:!0}));b&&(this.ba.pauseVideo(),window.open(I_(a,this.ba.getVideoData())))};f.NF=function(){K6(this,rr(this.ba,!0))};f.QF=function(){this.ba.A.S.va()};f.iA=function(a){a.preventDefault();var b=Gh(a);a=Hh(a);var c=Tg(document.body);G6(new Qc(b,a),this.element,0,null,c,5);this.va()};f.hA=function(a){!1===a.Qb.returnValue||this.$()};
f.va=function(){this.D||(this.j.removeAll(),this.j.M(window,"blur",this.$),this.j.M(document,"click",this.MF),this.j.M(document,"contextmenu",this.hA),I6.K.va.call(this))};f.MF=function(a){2==a.button||a.target&&ce(this.element,a.target)||this.$()};f.$=function(){I6.K.$.call(this);this.j.removeAll()};f.P=function(){this.A.removeAll();this.j.removeAll();this.ba.qa("internalvideodatachange",this.Ut,this);this.ba=null;I6.K.P.call(this)};function N6(){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",Z("YTP_MORE")]];Y.call(this,a)}z(N6,Y);function O6(a,b,c,d){Xz.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);N(this.element,"share-service-icon-sharebar");Zz(this,3700)}z(O6,Xz);function P6(){Y.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.j=this.template.j["ytp-share-url"]}z(P6,Y);P6.prototype.focus=function(){this.j.focus();this.j.select()};P6.prototype.P=function(){this.j=null;P6.K.P.call(this)};function Q6(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",Z("YTP_SHARE_WITH_PLAYLIST")]]];RD.call(this,c);this.fa=b;this.B=a;this.shareUrl=null;this.A=[];this.o=this.j=null;this.closeButton=new Xz(this.B,"yt-uix-button-icon-share-bar-close",Z("YTP_CLOSE"),Z("YTP_CLOSE"));this.closeButton.ea(this.template.j["share-bar-content"]);
Zz(this.closeButton,3900)}z(Q6,RD);function R6(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.o?a.o.videoId:void 0};a.fa.mb&&(b.authuser=a.fa.mb);a.fa.pageId&&(b.pageid=a.fa.pageId);var c;S6(a)?(c=Hd("ytp-share-bar-checkbox"),c=!c||rh(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=S6(a));Kj("/share_ajax",{context:a,method:"GET",onError:a.F,jb:a.G,eg:b})}
Q6.prototype.G=function(a,b){if(!this.ka()){T6(this);var c=this.template.j["share-bar-content"];this.shareUrl=new P6;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 O6(this.B,d[e].name,d[e].sname,d[e].img);R(this,g);g.ea(c);g.M("click",pa(IF,d[e].url,{}));this.A.push(g)}this.j=new N6;R(this,this.j);this.j.M("click",x(this.H,this,b.more));this.j.ea(c);vv(this,this.template.j["ytp-share-bar-checkbox"],"click",
this.C,this);this.L("menu_show")}};Q6.prototype.F=function(){};Q6.prototype.H=function(a){HF(a)};function S6(a){return a.o?a.o.playlistId:void 0}Q6.prototype.C=function(){var a=Hd("ytp-share-bar-checkbox");vh(a,"ytp-share-bar-checked");R6(this)};function T6(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 U6(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":Z("YTP_URL_NAVIGATE")},"YouTube"],["div","html5-title-text-wrapper",["a","html5-title-text",{tabIndex:3100,href:"{{titlelink}}"},"{{titletext}}"]]]];RD.call(this,c);this.fa=b;this.C=a;this.o=null;vv(this,this.template.j["html5-title-text"],"click",this.mr);c=this.template.j["html5-title-logo"];xi(c,"tooltip",Z("YTP_URL_NAVIGATE"));
xi(c,"tooltip-below","1");a.qg(c);vv(this,c,"click",this.mr);c=this.template.j["html5-title"];this.actionButtons=new C6(this.C);R(this,this.actionButtons);this.actionButtons.ea(c,1);this.actionButtons.shareButton.M("click",this.jn,this);this.j=null}z(U6,RD);f=U6.prototype;f.update=function(a){this.o=a;if(this.j){var b=this.j;b.o=a;R6(b)}b=a.title||"";a=this.fa.getVideoUrl(a);this.template.update({titletext:b,titlelink:a,logolink:a})};f.mr=function(a){yv(a)&&(this.lr(),a.preventDefault())};f.lr=function(){this.Xt()};
function V6(a){return rh(a.element,"show-share")}f.jn=function(){W6(this,!V6(this))};function W6(a,b){if(b&&!a.j){a.j=new Q6(a.C,a.fa);var c=a.j;c.o=a.o;R6(c);a.j.ea(a.template.j["html5-info-bar"]);a.j.closeButton.M("click",a.jn,a);a.j.subscribe("menu_show",x(a.fr,a))}O(a.element,"show-share",b);O(a.element,"share-with-playlist",b&&!!S6(a.j));a.fr()}f.fr=function(){V6(this)&&this.j.shareUrl&&this.j.shareUrl.Q().focus()};f.Wt=function(a){HF(a)};f.Xt=function(){this.Wt(this.fa.getVideoUrl(this.o))};
f.P=function(){this.o=this.fa=null;U6.K.P.call(this)};function X6(a,b){U6.call(this,a,b.W());this.ba=b;this.B=2;this.A=!1;this.actionButtons.likeButton.M("click",this.JA,this);this.actionButtons.j.M("click",this.pA,this)}z(X6,U6);f=X6.prototype;f.update=function(a){X6.K.update.call(this,a);Y6(this,a.Rm);a=!(!a||!a.xs||this.ba.B);var b=!this.ba.W().he;O(this.element,"ytp-can-share",b);O(this.element,"ytp-can-sentiment",a)};f.jn=function(){this.L("share-click")};f.lr=function(){this.L("title-click")};f.JA=function(){Z6(this,0)};
f.pA=function(){Z6(this,1)};function Z6(a,b){if(!a.A&&(a.B==b&&(b=2),Y6(a,b),a.o)){if("detailpage"!=a.fa.ja){a.A=!0;var c={playbackId:a.o.playbackId,jb:x(function(){this.A=!1},a),onError:x(function(){this.A=!1},a),mb:a.fa.mb,pageId:a.fa.pageId};AI(a.o.videoId,b,c)}a.ba.L("RATE_SENTIMENT",{videoId:a.o.videoId,sentiment:b})}}function Y6(a,b){a.B=b;O(a.element,"sentiment-like",0==b);O(a.element,"sentiment-dislike",1==b)}f.Wt=function(a){M6(this.ba,a)};f.Xt=function(){$6(this.ba)};
f.P=function(){this.ba=null;X6.K.P.call(this)};function a7(a){var b=["div",["ytp-dialog","html5-stop-propagation"],{tabindex:1E3},["div","ytp-dialog-title",Z("YTP_KEYBOARD_SHORTCUTS")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];Y.call(this,b);b=Z("YTP_DONE");this.j=new Xz(a,"ytp-dialog-button",b);this.j.za(b);R(this,this.j);Zz(this.j,1400);this.j.M("click",this.o,this);this.template.update({content:b7(),buttons:this.j})}z(a7,wB);
function b7(){var a=[{key:"K",message:Z("YTP_PLAY_PAUSE")},{key:"J",message:Z("YTP_SEEK_BACK")},{key:"L",message:Z("YTP_SEEK_FORWARD")},{key:"0-9",message:Z("YTP_SEEK_PERCENT")},{key:">",message:Z("YTP_INCREASE_PLAYBACK_SPEED")},{key:"<",message:Z("YTP_DECREASE_PLAYBACK_SPEED")},{key:"F",message:Z("YTP_TOGGLE_FULLSCREEN")},{key:"M",message:Z("YTP_TOGGLE_MUTE")}],b=[];D(a,function(a){a=new Y(["p",null,a.key+": "+a.message]);b.push(a)});return b}a7.prototype.o=function(){this.$b("done")};
a7.prototype.focus=function(){this.element.focus()};function c7(a,b,c,d,e,g,h,k){this.C=[];D(Gb(b),function(b){this.C.push(P(a,b,x(this.DB,this)))},this);D(Gb(d),function(b){this.C.push(P(a,b,x(this.tA,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=c7.prototype;f.DB=function(a){M(this.j);this.j=0;this.o=L(x(this.Iw,this,a),this.H)};f.tA=function(a){M(this.o);this.o=0;this.j=L(x(this.Hw,this,a),this.F)};f.Iw=function(a){this.A||this.B||(this.B=!0,this.I.call(this.D||m,a))};
f.Hw=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);Mh(this.C)};f.ka=function(){return this.A};function d7(){Y.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.j=this.template.j["ytp-tooltip-body"]}z(d7,Y);d7.prototype.$=function(){d7.K.$.call(this);Og(this.j,0)};d7.prototype.P=function(){Vd(this.j);this.j=null;d7.K.P.call(this)};function e7(a,b){Q.call(this);this.j={};this.ao=a;this.o=b}z(e7,Q);
e7.prototype.qg=function(a,b){var c,d=new c7(a,"mouseover",function(){if(this.ao){var d=new d7;d.ea(this.ao);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||zi(a,"tooltip")||"";if(w(d)){var g=Sd(d),d=Rd("span");d.className="ytp-text-tooltip";d.appendChild(g)}qv(c.template,"content",d);var g=!!zi(a,"tooltip-below"),d=c,h=ah(a),h=new Qc(h.width/2,g?h.height:0),k=Ug(a),h=new Qc(k.x+h.x,k.y+h.y),g=!!g;O(d.element,"ytp-tooltip-below",g);if(k=Sg(d.element))var l=Ug(k),p=lh(k),h=Sc(h,new Qc(l.x+p.left,l.y+
p.top));G6(h,d.element,g?1:0);d.va();var p=ah(d.j),g=p.width/2*-1,r=Kd(window),u=Ld(document),h=u.x,r=r.width+u.x,u=h,C=r;k&&(k=ah(k),u=l.x,C=k.width+l.x);k=Ug(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,C)&&(g-=k-Math.min(r,C));Og(d.j,g)}},["mouseout","mousedown"],function(){c&&(c.$(),Ci(c),c=null)},this,10,50);this.j[ka(a)]=d};
e7.prototype.rg=function(a,b,c){var d=this.o;this.qg(a,function(){if(d){var a="detailpage"==d.ja;if(!d.Fa||a)return c}else return c;var g=d.Fa,h=d.Y,a=Rd("div");N(a,"ytp-identity-tooltip");var k=Rd("img");k.src=h;h=Rd("span");g=Sd(Zf(b,{USER_NAME:g}));Ud(h,g);Ud(a,k,h);return a})};e7.prototype.Mm=function(a){a=ka(a);Ci(this.j[a]);this.j[a]=null};e7.prototype.P=function(){this.o=this.ao=null;for(var a in this.j)Ci(this.j[a]);this.j={};e7.K.P.call(this)};function f7(){this.j=[];this.o=[]}ba(f7);var hE=t("yt.player.utils.VideoTagPool.instance_")||f7.getInstance();q("yt.player.utils.VideoTagPool.instance_",hE,void 0);f=f7.prototype;f.Xo=function(a){if(!(this.j.length>=a)){a-=this.j.length;for(var b=0;b<a;b++){var c=g7(this);this.j.push(c)}}};function g7(a,b){var c=document.createElement("video");qa(c,ws);P(c,"loadeddata",x(c.pw,c));P(c,"volumechange",x(c.rw,c));Zh&&6<=ks&&P(c,"webkitbeginfullscreen",x(c.play,c));b||xs(c);a.o.push(c);return c}
f.uG=function(a){return this.j.length?this.j.pop():g7(this,a)};f.GC=function(a){a&&G(this.o,a)&&(Es(a),Ph(a),ob(this.o,a))};f.qp=function(a){return this.j.length>=(a||1)};f.aw=function(){this.j=[];this.qp(4)?D(this.o,function(a){xs(a);this.j.push(a)},this):this.Xo(4)};f7.prototype.fillPool=f7.prototype.Xo;f7.prototype.getTag=f7.prototype.uG;f7.prototype.releaseTag=f7.prototype.GC;f7.prototype.hasTags=f7.prototype.qp;f7.prototype.activateTags=f7.prototype.aw;function h7(a){Y.call(this,["div","ytp-dialog-holder","{{content}}"]);this.o=a;this.j=null}z(h7,Y);h7.prototype.va=function(){h7.K.va.call(this);i7(this);this.j.focus()};h7.prototype.$=function(){h7.K.$.call(this);var a=be(this.element);a&&a.focus()};function i7(a){if(a.j){a.j.Vt();var b=a.o.vb(),c=$g(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"}}h7.prototype.P=function(){this.j=null;h7.K.P.call(this)};function j7(a,b){iE.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");k7(this,a,b)}z(j7,iE);function l7(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 k7(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=l7(b);a.H=l7(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}}
j7.prototype.va=function(){j7.K.va.call(this);var a=this.J;this.C=new Date;this.F(a,75)};j7.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};j7.prototype.$=function(){M(this.j);j7.K.$.call(this)};function m7(a){var b=["ytp-error"];b.push("html5-stop-propagation");Y.call(this,["div",b,["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.ca="table";this.A=a;this.o=[];void 0==fu&&(a=document.createElement("canvas"),fu=!(!a.getContext||!a.getContext("2d")));fu&&(this.j=new j7(1,1),this.j.ea(this.element,0),R(this,this.j))}z(m7,Y);m7.prototype.va=function(){m7.K.va.call(this);n7(this);this.j&&this.j.va()};m7.prototype.$=function(){m7.K.$.call(this);this.j&&this.j.$()};
function n7(a){var b,c;a.j&&(c=a.element.clientWidth,b=a.element.clientHeight,k7(a.j,c,b))}m7.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)||Qh(a)};m7.prototype.P=function(){Mh(this.o);this.o=[];m7.K.P.call(this)};function o7(a){RD.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.da=!1;this.aa=new Bn(this.kz,
250,this);R(this,this.aa);this.C=0;this.C=a;this.A=this.template.j["html5-storyboard-filmstrip"];this.Z=this.template.j["html5-storyboard-lens"];this.ga=this.template.j["html5-storyboard-lens-thumbnail"];this.ma=this.template.j["html5-storyboard-lens-timestamp"];this.U=this.template.j["html5-storyboard-thumbnail"];Wd(this.U);this.H=0;this.N=new X2(0,0);this.J=!1;this.R=this.S=0;this.Y=10;this.O=this.F=this.B=this.I=this.j=0;this.G=this.o=null;this.$()}z(o7,RD);o7.o=12;o7.j=20;o7.A=10;o7.B=72;
o7.C=200;f=o7.prototype;f.Jk=function(){Zw(this.H);if(this.o){var a,b,c;a=this.o.j[0].jt();var d=this.o.j[0].On();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=QI(this.G,b,this.j),b3(c,a,this.j,this.I),this.A.appendChild(c);this.F=d;p7(this)}}};
f.os=function(a,b){fh(this.A,!1);for(var c,d,e=a;e<=b;e++)if(d=this.A.children[e-this.B])c=QI(this.G,e,this.j),b3(d,c,this.j,this.I);fh(this.A,!0)};function q7(a,b){if(b!=a.O){var c=QI(a.G,b,2*a.j),d=Math.round(2*a.j),e=Math.round(2*a.I);b3(a.ga,c,d,e);a.O=b}}f.kz=function(){for(var a=this.S,b=Math.max(Math.floor(a/this.j),0),a=Math.min(Math.ceil((a+this.C)/this.j),this.o.j[0].Fi()-1);b<=a;b++)RI(this.G,b,2*this.j)};
function p7(a,b){a.Y=Math.min(o7.A,Math.ceil(a.C/o7.B));a.j=Math.floor(a.C/a.Y);a.I=.555*a.j;a.R=a.j*(a.F-a.B);Zg(a.A,a.R);var c=Math.round(2*a.j),d;d=.555*c+o7.o;Yg(a.Z,c,d);Og(a.Z,(a.C-c)/2);c=d+o7.j;a.Q().style.height=Pg(c,!0);b&&(a.os(a.B,a.F),q7(a,a.O),a.da=!0)}f.va=function(){this.o&&(this.J&&this.Jk(),o7.K.va.call(this))};f.$=function(){o7.K.$.call(this)};f.P=function(){this.G=this.o=null;Zw(this.H);o7.K.P.call(this)};function r7(a){Y.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.j=a.sb();this.A=this.o=null;this.B=0;this.C=new X2(0,0);this.$()}z(r7,Y);function s7(a){var b=QI(a.A,a.B,a.j.width);b3(a.F,b,a.j.width,a.j.height);RI(a.A,a.B,a.j.width)}r7.prototype.va=function(){this.o&&r7.K.va.call(this)};function t7(a,b,c){Y.call(this,["div",["ytp-thumbnail","html5-stop-propagation"]]);this.A=a;this.j=null;c&&(this.j=new J5(a,b),R(this,this.j),this.j.ea(this.element))}z(t7,Y);
t7.prototype.o=function(a){for(var b,c=0;c<arguments.length;c++){var d=arguments[c];if(!(!d||d instanceof Nr&&!d.videoId)){if(!this.A){var e=this.element.clientWidth,g=this.element.clientHeight;if(900<e||600<g)if(b=d.Od("maxresdefault.jpg"))break;if(430<e||320<g)if(b=d.Od("sddefault.jpg")||d.Od("hqdefault.jpg"))break}if(b=d.Od("default.jpg"))break}}this.element.style.backgroundImage=b?"url("+b+")":""};function u7(){tx.call(this);this.j={}}z(u7,tx);ba(u7);f=u7.prototype;f.pi="tooltip";f.Xi=0;f.register=function(){vx(this,"mouseover",this.pq);vx(this,"mouseout",this.cj);vx(this,"click",this.cj);vx(this,"touchstart",this.kD);vx(this,"touchend",this.hs);vx(this,"touchcancel",this.hs)};f.dispose=function(){for(var a in this.j)this.cj(this.j[a]);this.j={}};
f.pq=function(a){if(!(this.Xi&&1E3>y()-this.Xi)){var b=parseInt(zi(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),M(b));var b=x(function(){v7(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(zi(a,"tooltip-show-delay"),10)||0,b=L(b,c);xi(a,"tooltip-show-timer",b.toString());a.title&&(wx(a,w7(a)),a.title="");b=ka(a).toString();this.j[b]=a}};
f.cj=function(a){var b=parseInt(zi(a,"tooltip-show-timer"),10);b&&(M(b),this.removeData(a,"tooltip-show-timer"));b=x(function(){x7(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=L(b,50);xi(a,"tooltip-hide-timer",b.toString());if(b=zi(a,"tooltip-text"))a.title=b;b=ka(a).toString();delete this.j[b]};f.kD=function(a,b,c){this.Xi=0;a=rx(b,ux(this),c.changedTouches[0].target);this.pq(a)};f.hs=function(a,b,c){this.Xi=y();a=rx(b,ux(this),c.changedTouches[0].target);this.cj(a)};
function y7(a,b){wx(a,b);var c=zi(a,"content-id");(c=Ed(c))&&ee(c,b)}function w7(a){return zi(a,"tooltip-text")||a.title}
function v7(a,b){if(b){var c=w7(b);if(c){var d=Ed(z7(a,b));if(!d){d=document.createElement("div");d.id=z7(a,b);d.className=ux(a,"tip");var e=document.createElement("div");e.className=ux(a,"tip-body");var g=document.createElement("div");g.className=ux(a,"tip-arrow");var h=document.createElement("div");h.className=ux(a,"tip-content");var k=A7(a,b),l=z7(a,b,"content");h.id=l;xi(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Th()||document.body).appendChild(d);
y7(b,c);(c=parseInt(zi(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",N(h,ux(a,"normal-wrap")));h=rh(b,ux(a,"reverse"));B7(a,b,d,e,k,h)||B7(a,b,d,e,k,!h);var p=ux(a,"tip-visible");L(function(){N(d,p)},0)}}}}
function B7(a,b,c,d,e,g){O(c,ux(a,"tip-reverse"),g);a=0;g&&(a=1);var h=ah(b);g=new Qc((h.width-10)/2,g?h.height:0);var k=Ug(b);G6(new Qc(k.x+g.x,k.y+g.y),c,a);var k=Kd(window),l=Xg(c);c=ah(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=zi(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 x7(a,b){if(b){var c=Ed(z7(a,b));c&&(C7(c),Wd(c),a.removeData(b,"content-id"))}}function z7(a,b,c){a=ux(a)+xh(b);c&&(a+="-"+c);return a}function A7(a,b){var c=null;id&&rh(b,ux(a,"masked"))&&((c=Ed("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),Uw(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=ux(a,"tip-mask")));return c}
function C7(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),Vw(b),document.body.appendChild(b))};function D7(a,b){uh(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&N(a,b);x7(u7.getInstance(),a)};function E7(a){Wz.call(this);this.o=null;this.j=new IB(a,x(this.D,this),x(this.F,this));R(this,this.j);this.label=Z("YTP_AUDIO_TRACK_TITLE");this.element=new DB(a,void 0,this.j);R(this,this.element);FB(this.element,100);this.element.kb(this.label);this.priority=0;this.B=!0}z(E7,Wz);function F7(a,b){a.o!=b&&(a.o=b,a.j.j(b),a.element.se(a.D(b)))}E7.prototype.D=function(a){return a.name};E7.prototype.F=function(a){this.element.re();F7(this,a);this.element.$b("change")};function G7(a){Wz.call(this);this.label=Z("YTP_AUTOPLAY");this.element=new aA(a,[Z("YTP_OFF"),Z("YTP_ON")]);R(this,this.element);this.element.kb(this.label);cA(this.element,2050);this.priority=4;this.j(0)}z(G7,Wz);G7.prototype.j=function(a){this.element.j(a)};function H7(a){Xz.call(this,a);Zz(this,6900);I7(this)}z(H7,Xz);function I7(a){Yz(a,"ytp-button-fullscreen-enter");var b=Z("YTP_FULLSCREEN");a.kb(b);a.A=b};function J7(a,b,c){Y.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=[]}z(J7,Y);f=J7.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}}ub(this.j,b,0,a);K7(this)};f.remove=function(a){ob(this.j,a);K7(this)};
function K7(a){Ei(a.o);a.o=[];var b,c,d=[],e=1==a.j.length||a.A;e&&a.j.length&&(c=new Y(["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 Y(["div","ytp-menu-row",["div",h,"{{content}}"]]):new Y(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.B?new Y(["div",
"ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div",h,"{{content}}"]]):new Y(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.za(k.element);c.za(L7(a,k),"more");d.push(c)}a.za(d)}function L7(a,b){if(b.C){var c=Z("YTP_OPTIONS"),d=new Xz(a.B,"ytp-menu-more-options",c);Zz(d,2700);d.za(c);a.o.push(d);d.M("click",b.H,b);return d}return null}f.focus=function(){this.Q().focus()};
f.dj=function(){return this.j.length};f.P=function(){this.j=[];K7(this);J7.K.P.call(this)};function M7(a){Xz.call(this,a,"ytp-button-next",Z("YTP_NEXT"),Z("YTP_NEXT"));Zz(this,6051)}z(M7,Xz);function N7(a){Xz.call(this,a);Zz(this,6E3);O7(this)}z(N7,Xz);function O7(a){Yz(a,"ytp-button-play");var b=Z("YTP_PLAY");a.kb(b)};function P7(a){Xz.call(this,a,"ytp-button-prev",Z("YTP_PREVIOUS"),Z("YTP_PREVIOUS"));Zz(this,6050)}z(P7,Xz);function Q7(a){Wz.call(this);this.F=this.G="unknown";this.I={};this.label=Z("YTP_QUALITY_TITLE");this.o=new IB(a,x(this.D,this),x(this.J,this),!0);R(this,this.o);this.j=NaN;this.element=new DB(a,void 0,this.o);R(this,this.element);FB(this.element,100);this.element.kb(this.label);this.priority=-1;this.B=!0}z(Q7,Wz);Q7.prototype.vl=function(){return this.G};
function R7(a,b,c){a.G=b;a.F=c;a.o.j(c);var d=a.o;null!=d.o&&HB(KB(d,d.o),!1);null!=b&&HB(KB(d,b),!0);d.o=b;"auto"==c&&c!=b?(b=Z("YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:S7(a,b)}),b=new eF(b)):b=a.D(b);isNaN(a.j)||(Ww()?Zw(a.j):M(a.j));Ww()?a.j=Yw(x(a.element.se,a.element,b),0):a.j=L(x(a.element.se,a.element,b),0)}function S7(a,b){var c=Nt[b],c=c?c+"p":Zf("YTP_AUTO"),d=a.I[b];return d&&30<d?c+d.toString():c}
Q7.prototype.D=function(a){var b=["span","",S7(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 lv(b)};Q7.prototype.J=function(a){this.element.re();if("auto"!=this.F||"auto"!=a)R7(this,a,a),this.element.$b("change")};Q7.prototype.P=function(){Ww()?Zw(this.j):M(this.j);Q7.K.P.call(this)};function T7(a){rB.call(this,a,"ytp-size-toggle-large",Z("YTP_THEATER_MODE"),"ytp-size-toggle-small",Z("YTP_DEFAULT_VIEW"));Zz(this,6800)}z(T7,rB);T7.prototype.update=function(){T7.K.update.call(this);this.element.removeAttribute("aria-pressed")};function U7(a){Wz.call(this);this.o=2;this.label=Z("YTP_SPEED_TITLE");this.j=new IB(a,x(this.D,this),x(this.F,this));R(this,this.j);this.element=new DB(a,void 0,this.j);R(this,this.element);FB(this.element,100);this.element.kb(this.label);V7(this,this.o);this.priority=1;this.B=!0}z(U7,Wz);function V7(a,b){a.o=b;a.j.j(b);a.element.se(a.D(b))}U7.prototype.D=function(a){return 1==a?Z("YTP_NORMAL_SPEED"):a.toString()};U7.prototype.F=function(a){this.element.re();V7(this,a);this.element.$b("change")};function W7(){Y.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"]}z(W7,Y);W7.prototype.Zf=function(a){qv(this.template,"duration",wv(a))};function X7(a,b,c){O(a.element,"ytp-time-liveonly",b&&!c);O(a.element,"ytp-time-live",b&&c)}
W7.prototype.P=function(){this.liveBadge=null;W7.K.P.call(this)};function Y7(a,b){this.F=a;Y.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 Xz(this.F,"ytp-button-volume",Z("YTP_BUTTON_VOLUME"));R(this,this.j);this.j.ea(this.element,0);Zz(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}z(Y7,Y);Y7.prototype.kb=function(a){this.j.kb(a)};
Y7.prototype.setVolume=function(a,b){var c=Z(b?"YTP_UNMUTE":"YTP_MUTE");this.j.A=c;var c=Math.round(a),d=c+"% "+Z("YTP_SCREENREADER_VOLUME_SETTING")+(b?" "+Z("YTP_SCREENREADER_VOLUME_MUTED"):"");this.kb(Z(b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+Z("YTP_SCREENREADER_CONTROL_TOGGLE"));qv(this.template,"valuenow",c);qv(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");xi(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 Z7(a,b){RD.call(this,["div","html5-video-controls"]);this.Ca=a;this.ta=new Nv(this);this.G={};this.C=null;this.Z=new Nv(this);this.pa=-1;this.na=null;this.ga=new e3(a,b);R(this,this.ga);this.ga.ea(this.element);var c=new lv(["div","html5-player-chrome"]);R(this,c);c.ea(this.element);c=c.Q();this.ma=this.U=!1;this.Y=new P7(a);R(this,this.Y);this.Y.M("click",pa(this.L,"previousvideo"),this);this.Y.ea(c);this.B=new N7(a);R(this,this.B);this.B.ea(c);this.B.M("click",this.yC,this);this.da=new M7(a);
R(this,this.da);this.da.M("click",pa(this.L,"nextvideo"),this);this.da.ea(c);var d=new lv(["span","ytp-volume-hover-area"]);R(this,d);d.ea(c);this.j=new Y7(a,b);R(this,this.j);this.j.ea(d.Q());this.j.j.M("click",this.jD,this);this.aa=new T2(this.j.A,!0);R(this,this.aa);this.aa.subscribe("dragstart",this.oC,this);this.aa.subscribe("dragmove",this.nC,this);this.aa.subscribe("dragend",this.mC,this);this.F=new W7;R(this,this.F);this.F.ea(d.Q());this.ta.M(this.F.liveBadge,"click",pa(this.L,"seekto",Infinity));
this.Aa=new T2(this.j.Q());R(this,this.Aa);this.Aa.subscribe("hoverstart",this.oG,this);this.ua=new T2(d.Q());R(this,this.ua);this.ua.subscribe("hoverend",this.nG,this);this.J=new H7(a);R(this,this.J);this.J.ea(c);this.J.M("click",this.JB,this);this.A=new T7(a);R(this,this.A);this.A.$();this.A.ea(c);this.A.M("click",this.BB,this);this.I=new Xz(a,"ytp-button-watch-on-youtube",Z("YTP_URL_NAVIGATE"),Z("YTP_URL_NAVIGATE"));R(this,this.I);Zz(this.I,6700);this.I.ea(c);this.I.M("click",this.tC,this);this.N=
new RB(a);R(this,this.N);$7(this,"__default__",this.N,this.I.Q());this.sa=new Xz(a,"ytp-button-playlist",Z("YTP_PLAYLIST"),Z("YTP_PLAYLIST"));Zz(this.sa,6400);this.sa.ea(c);R(this,this.sa);this.o=new Xz(a,"ytp-button-watch-later",Z("YTP_WATCH_LATER"));a.rg(this.o.Q(),"YTP_WATCH_LATER_AS_2",Z("YTP_WATCH_LATER"));this.o.ea(c);Zz(this.o,6300);this.o.kb(Z("YTP_WATCH_LATER"));R(this,this.o);this.o.M("click",this.rC,this);this.H=new Q7(a);R(this,this.H);this.H.M("change",this.jB,this);this.S=new U7(a);
R(this,this.S);this.S.M("change",this.CB,this);this.O=new E7(a);R(this,this.O);this.O.M("change",this.Mz,this);this.R=new G7(a);R(this,this.R);this.R.M("change",this.Pz,this)}z(Z7,RD);f=Z7.prototype;f.Qu="__default__";f.rm=!1;f.disable=function(a){a8(this,a,!0)};function a8(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():$z(e);break;case "seek":O(a.element,"disabled-control-seek",c)}}
f.setVolume=function(a,b){if(this.pa!=a||this.na!=b)this.j.setVolume(a,b),this.pa=a,this.na=b};f.Zf=function(a){this.F.Zf(a)};f.jD=function(){this.L("mutetoggled")};function b8(a,b){if(b){if(a.rm){var c=a.B;Yz(c,"ytp-button-stop");var d=Z("YTP_STOP")}else c=a.B,Yz(c,"ytp-button-pause"),d=Z("YTP_PAUSE");c.kb(d)}else O7(a.B)}function c8(a){var b=a.da;a.U||a.ma?b.va():b.$();b=a.Y;a.U?b.va():b.$()}f.yC=function(){this.L("playpausetoggled")};f.oG=function(){N(this.j.Q(),"ytp-volume-control-hover")};
f.nG=function(){th(this.j.Q(),"ytp-volume-control-hover")};f.oC=function(){N(this.j.Q(),"ytp-volume-slider-active");this.L("volumechangestart")};f.nC=function(a){a=(a-Ug(this.j.A).x)/(this.j.o?85:54)*100;a={volume:Pc(a,0,100),muted:!1};this.L("volumechanged",a)};f.mC=function(){th(this.j.Q(),"ytp-volume-slider-active");this.L("volumechangeend");this.j.B.blur()};f.JB=function(){this.L("fullscreentoggled")};function d8(a,b){var c=a.G[b.A||"__default__"].menu;c&&c.add(b)}
function e8(a,b){var c=a.G[b.A||"__default__"].menu;c&&c.remove(b)}function $7(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.mG,b),a);c.Q().getAttribute("aria-label");d=c.Q().id;d=new J7(a.Ca,d,"__default__"!=b);d.$();d.ea(a.element);a.G[b]={menu:d,button:c,uw:e}}}
function f8(a,b){var c=a.G[b];c&&(c.button.detach(),c.button.Ia(c.uw),c.menu.dispose(),delete a.G[b])}f.rC=function(){var a=this.o.Q();if(!rh(a,"html5-async-progress")){var b=rh(a,"html5-async-success");D7(a,"html5-async-progress");this.L("watchlater",b)}};f.tC=function(){this.L("watchonyoutube")};f.lG=function(a){a.target&&(ce(this.C.button.Q(),a.target)||ce(this.C.menu.Q(),a.target))||this.Ff()};f.Ff=function(){this.L("menu_show")};
f.mG=function(a){var b=this.G[a];b&&b.menu.dj()&&(b.button.j?this.Ff():this.L("menu_show",a))};f.Mz=function(){this.L("audiotrackchanged",this.O.o);this.Ff()};f.jB=function(){var a=this.H.vl();this.L("qualitychanged",a);this.L("controlclick","quality-"+a);this.Ff()};f.BB=function(){var a=this.A;a.j?tB(a):sB(a);this.A.Q().focus();this.L("sizechangerequested",1==this.A.j)};f.CB=function(){var a=this.S.o;this.L("speedchanged",a);this.L("controlclick","speed-"+a);this.Ff()};
f.Pz=function(){this.L("autonavchangerequest",1==this.R.element.A?2:1)};f.jA=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":a.target.className;this.L("controlclick",a)};f.focus=function(){this.B.Q().focus()};f.P=function(){this.ta.removeAll();this.Z.removeAll();this.C=null;for(var a in this.G)f8(this,a);this.pa=-1;this.na=null;Z7.K.P.call(this)};function g8(a){h8("add_to_watch_later_list",a)}function i8(a){h8("delete_from_watch_later_list",a)}function h8(a,b){Kj("/playlist_video_ajax?action_"+a+"=1",{method:"POST",eg:{feature:b.CK||null,authuser:b.mb||null,pageid:b.pageId||null},Ib:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.DK||null,delete_from_playlists:b.JK||null,add_to_playlists:b.xK||null,plid:Tf("PLAYBACK_ID")||null},context:b.context,onError:b.onError,jb:b.jb,xc:b.xc})};function j8(a,b){Q.call(this);this.H=a;this.F=[];this.I=b;this.G=[]}z(j8,Q);function k8(a,b,c){a.F.push(a.H.subscribe(b,c,a))}function l8(a,b,c){a.G.push(a.I.subscribe(b,c,a))}function m8(a){for(var b=0;b<a.F.length;b++)a.H.Pb(a.F[b]);for(b=0;b<a.G.length;b++)a.I.Pb(a.G[b])}j8.prototype.P=function(){m8(this);j8.K.P.call(this)};function n8(a,b,c,d){j8.call(this,a,b);this.D=!1;this.C=a;this.j=b;this.B=c;this.o=0;this.A=d;a=a.W();a.color&&N(this.j.I,a.color);a.kf&&(a=this.j,a.o=new c3,a.o.ea(a.Q()),R(a,a.o));o8(this)}z(n8,j8);
function o8(a){m8(a);a.D=!0;k8(a,"cuerangesadded",a.nx);k8(a,"cuerangesremoved",a.ox);k8(a,"cuerangemarkersupdated",a.mx);k8(a,"progresssync",a.Zt);k8(a,"resize",a.Vx);k8(a,"seekto",a.WF);k8(a,"videodatachange",a.XF);k8(a,"videoplayerreset",a.Yt);k8(a,"videoready",a.by);l8(a,"beginseeking",a.ax);l8(a,"endseeking",a.rx);l8(a,"seekto",a.Zw)}f=n8.prototype;f.nx=function(a){n3(this.j,a)};f.ox=function(a){for(var b=this.j,c=0;c<a.length;c++)o3(b,a[c])};f.mx=function(a){n3(this.j,a)};
f.Vx=function(a){var b=this.j;b.A=a.width;f3(b);b=this.B;b.j=a;b.o&&b.A&&s7(b);b=this.A;!b.o||b.C==a.width&&b.da||(b.C=a.width,p7(b,!0))};f.WF=function(a){var b=this.C.yc.xh();a=$2(new X2(b.seekableStart,b.seekableEnd),a);b=this.j;l3(b,n(a)?a:b.C,n(void 0)?void 0:b.R);b=this.A;if(b.o){b.J&&b.Jk();b.S=b.R*a-b.C/2;Og(b.A,-1*b.S);var c=Z2(b.N,a),d=YH(b.o,b.j),d=b.o.j[d].jk(c);q7(b,d);ee(b.ma,wv(b.J?c-b.N.j:c));Cn(b.aa)}b=this.B;b.o&&b.A&&(a=Z2(b.C,a),c=YH(b.o,b.j.width),b.B=b.o.j[c].jk(a),s7(b))};
f.Yt=function(a){if(1!=a.getPlayerType()){if(!this.D)return;m8(this);this.D=!1;k8(this,"videoplayerreset",this.Yt)}else if(!this.D){o8(this);var b=this.j;Vd(b.pa);b.H={};b.U={};n3(this.j,a.D.j.j||[])}this.j.o&&this.j.o.reset();this.o&&(M(this.o),this.o=0);this.A.$();this.B.$();this.Zt()};
f.XF=function(a,b){var c=new X2(0,b.lengthSeconds),d=this.j;d.j=c;m3(d);f3(d);this.j.o&&(this.j.o.o=c);this.A.N=c;this.B.C=c;c=this.j;d=b.clipEnd;c.S=b.clipStart;c.O=d;k3(c);l3(c,c.C,c.R);c=this.j;d=!!b.ca;c.$a=d;O(c.ma,"ytp-fast-load",d)};
f.by=function(a){if(this.j.o){var b=this.j.o;b.si||(gJ(a)?(N(b.Q(),"with-thumbnail"),b.gf=gJ(a),b.Jh=hJ(a),b.Jh.subscribe("l",b.dG,b)):b.reset())}b=this.A;b.U&&(Vd(b.A),b.B=0,b.F=0);th(b.Q(),"enabled");b.o=gJ(a);b.G=hJ(a);b.J=a.Qa;b.o&&(N(b.Q(),"enabled"),b.G.subscribe("l",b.os,b),p7(b),Zw(b.H),b.H=Yw(x(b.Jk,b)));b=this.B;b.o=gJ(a);b.A=hJ(a);this.j.bb=a.wb;p3(this.j,!kJ(a))};
f.Zt=function(a,b){var c=this.C.yc.xh(),d=n(a)?a:c.current,e=new X2(c.seekableStart,n(b)?b:c.seekableEnd),c=$2(e,c.loaded),d=$2(e,d),g=this.j;g.j=e;m3(g);f3(g);g=this.j;l3(g,n(d)?d:g.C,n(c)?c:g.R);this.j.o&&(this.j.o.o=e);this.A.N=e;this.B.C=e};f.ax=function(a){y2(this.C.o);null==a||isNaN(a)||this.C.bk("chaptermarker",{position:a});this.o&&M(this.o);this.o=L(x(this.WC,this),200)};f.rx=function(){this.C.o.fk();this.A.$();this.B.$();this.o&&(M(this.o),this.o=0)};f.Zw=function(a,b){Uq(this.C,a,b)};
f.WC=function(){this.A.va();this.B.va()};f.P=function(){n8.K.P.call(this)};function p8(a,b,c,d){j8.call(this,a,b);k8(this,"applicationplayerstatechange",this.Ww);k8(this,"controlsdisabled",this.jx);k8(this,"controlsenabled",this.kx);k8(this,"liveviewshift",this.ux);k8(this,"fullscreentoggled",this.tx);k8(this,"presentingplayerstatechange",this.Nx);k8(this,"progresssync",this.kG);k8(this,"videoplayerreset",this.jG);k8(this,"videodatachange",this.iG);k8(this,"onPlaybackQualityChange",this.Sx);k8(this,"onVolumeChange",this.jy);k8(this,"menu_button_add",this.yx);k8(this,"menu_button_remove",
this.zx);k8(this,"menu_item_add",this.Ax);k8(this,"menu_item_remove",this.Bx);k8(this,"menu_show",this.gG);k8(this,"onPlaybackRateChange",this.Mx);k8(this,"onPlaylistUpdate",this.Px);k8(this,"autonavchange",this.fG);l8(this,"fullscreentoggled",this.lx);l8(this,"mutetoggled",this.Hx);l8(this,"nextvideo",this.Ix);l8(this,"playpausetoggled",this.Lx);l8(this,"previousvideo",this.Qx);l8(this,"qualitychanged",this.Tx);l8(this,"audiotrackchanged",this.Yw);l8(this,"seekto",this.hG);l8(this,"sizechangerequested",
this.Zx);l8(this,"speedchanged",this.$x);l8(this,"volumechanged",this.ky);l8(this,"volumechangestart",this.iy);l8(this,"volumechangeend",this.hy);l8(this,"watchlater",this.ly);l8(this,"watchonyoutube",this.my);l8(this,"controlclick",this.ix);l8(this,"showdialog",this.VC);l8(this,"menu_show",x(a.bj,a));l8(this,"autonavchangerequest",this.eG);this.j=a;this.o=b;this.A=NaN;this.B=new n8(a,b.ga,c,d);R(this,this.B);a=a.W();a.ce&&(b=this.o,this.j.W().J?sB(b.A):tB(b.A),b.A.va());a.Xh||this.o.o.$();a.Wa&&
this.o.J.va();a.da&&(b=this.o,c=b.S,JB(c.j,fr(this.j)),d=2300,MB(c.j,d++),d=d++,Zz(c.element.j,d),d8(b,b.S));if(a.experiments.j)for(b=this.o,c=[b.B,b.j,b.F,b.o,b.I,b.J,b.N,b.A],d=0;d<c.length;d++)b.ta.M(c[d].Q(),"click",b.jA,b);(ar(a)||a.experiments.S&&a.ua)&&this.o.I.$()}z(p8,j8);f=p8.prototype;f.jx=function(a){this.o.disable(a)};f.kx=function(a){a8(this.o,a,!1)};f.ux=function(a){O(this.o.F.element,"ytp-time-live-dvr",!a)};
f.tx=function(a){var b=this.o;this.j.W();a?(a=b.J,Yz(a,"ytp-button-fullscreen-exit"),b=Z("YTP_EXIT_FULLSCREEN"),a.kb(b),a.A=b):I7(b.J);q8(this)};f.Nx=function(a){X(a.state,2)||(0<Jv(a,8)?b8(this.o,!0):0>Jv(a,8)?b8(this.o,!1):0>Jv(a,2)&&b8(this.o,X(a.state,8)));0>Jv(a,16)&&r8(this,this.j.getCurrentTime())};f.Ww=function(a){if(X(a.state,2)&&!GE(this.j)){a=this.o.B;Yz(a,"ytp-button-replay");var b=Z("YTP_REPLAY");a.kb(b)}};
f.jG=function(a){s8(this)&&(r8(this,a.getCurrentTime()),D7(this.o.o.Q()),V7(this.o.S,1),a.getVideoData()&&t8(this,a.getVideoData()))};f.iG=function(a,b){s8(this)&&t8(this,b)};function q8(a){a.j.B?(a=a.o,a.U=!0):(a=a.o,a.U=!1);c8(a)}function u8(a){!zE(a.j.W())||a.j.B||a.j.getVideoData().Qa?(a=a.o,a.ma=!1,c8(a),e8(a,a.R)):(a=a.o,a.ma=!0,c8(a),d8(a,a.R))}
function t8(a,b){a.o.Zf(b.lengthSeconds);var c=hr(a.j),d=a.o,e=kr(c),g=c.j.A?Yt(c.j.A):{},h=d.H;h.I=g;JB(h.o,e);MB(h.o,2600);Zz(h.element.j,2601);e.length?d8(d,d.H):e8(d,d.H);d=a.o;e=gr(a.j);g=v8(a.j);R7(d.H,e,g);SB(d.N,e);d=a.o;c=c.j.A?c.j.A.audioTracks:[];JB(d.O.j,c);1<c.length?d8(d,d.O):e8(d,d.O);(c=lD(a.j))&&F7(a.o.O,c);c=a.o;d=b.Qa;e=b.wb;c.rm=d&&!e;X7(c.F,d,e);c=hr(a.j,1).getPlayerState();X(c,2)||b8(a.o,X(c,8));q8(a);u8(a)}
f.Sx=function(a){if(s8(this)){var b=this.o,c=v8(this.j);R7(b.H,a,c);SB(b.N,a)}};f.jy=function(a){this.o.setVolume(a.volume,a.muted)};f.Ax=function(a){d8(this.o,a)};f.Bx=function(a){e8(this.o,a)};f.yx=function(a,b){$7(this.o,a,b)};f.zx=function(a){f8(this.o,a)};
f.gG=function(a){if(a==Z7.prototype.Qu&&this.j.F.isAvailable("captions")){var b=mr(this.j.F,"captions");b&&!b.loaded&&b.load()}b=this.o;b.Z.removeAll();b.C&&(document.activeElement&&ce(b.C.menu.Q(),document.activeElement)&&be(b.element).focus(),b.C.menu.$(),tB(b.C.button),b.C=null);a&&(a=b.G[a])&&(b.L("showdialog"),b.C=a,sB(a.button),a.menu.va(),a.menu.focus(),b.Z.M(window,"blur",b.Ff),b.Z.M(document,"click",b.lG))};f.kG=function(a){r8(this,n(a)?a:this.j.yc.xh().current)};
f.lx=function(){br(this.j,!this.j.W().gb)};f.Hx=function(){this.j.I.muted?Yq(this.j):Xq(this.j)};f.Ix=function(){wr(this.j)};f.Lx=function(){w8(this.j)};f.Qx=function(){xr(this.j)};f.Tx=function(a){Wr(this.j,a,1)};f.Yw=function(a){var b=hr(this.j,1);if(b&&!b.ka()&&!X(b.C,128)&&b.j.A.j&&(b=b.A,!b.ka())){var c=b.D;a=a.id;c.C="m";c.B=c.G.j[a];c.H=V_(c);b.L("audioformatchange",new P_(c.H,c.A,c.C));V0(b,b.A,V_(b.D));n0(b.A);S0(b)}};f.VC=function(a){this.j.Cn(a)};f.hG=function(a){Uq(this.j,a,!0)};
f.Zx=function(a){var b=this.j;br(b,!1);a!=b.j.J&&(b.j.J=a,b.L("SIZE_CLICKED",a))};f.$x=function(a){er(this.j,a)};f.iy=function(){this.A=Wq(this.j)};f.ky=function(a){x8(this.j,a)};f.hy=function(){Wq(this.j)||x8(this.j,{muted:!0,volume:this.A})};f.my=function(){$6(this.j)};f.ix=function(a){L6(this.j,a)};f.ly=function(a){(a?i8:g8).call(this,y8(this,a?this.EB:this.FB))};f.Mx=function(a){V7(this.o.S,a)};f.Px=function(){q8(this);u8(this)};f.fG=function(a){this.o.R.j(1==a?0:1)};
f.eG=function(a){this.j.L("onAutonavChangeRequest",1!=a)};function y8(a,b){return{videoIds:Fr(a.j).videoId,mb:a.j.W().mb,pageId:a.j.W().pageId,jb:b,onError:a.wA,context:a}}f.FB=function(){var a=this.o.o.Q();D7(a,"html5-async-success");this.j.L("WATCH_LATER_VIDEO_ADDED")};f.EB=function(){D7(this.o.o.Q());this.j.L("WATCH_LATER_VIDEO_REMOVED")};f.wA=function(a,b){var c=b&&b.error_message,d=this.o.o.Q();D7(d,"html5-async-error");if(c){var e=u7.getInstance(),g=w7(d);y7(d,c);v7(e,d);wx(d,g)}};
function s8(a){return 1==hr(a.j).getPlayerType()}function r8(a,b){if(s8(a)&&(qv(a.o.F.template,"current",wv(b)),14400<b&&a.j.getVideoData().wb)){var c=a.o;c.rm=!0;X7(c.F,!0,!1)}};var z8={0:[],1:["autohide-controls"],2:["autohide-controls-aspect","autohide-controls-fullscreen","autominimize-progress-bar-non-aspect"],3:["autominimize-progress-bar"]};
function A8(a){o6.call(this,a);this.Ca=this.da=this.ga=this.J=this.Wa=this.G=null;this.Aa=this.ib=this.Ka=!1;a=a.W();if("1"==a.o){this.J=new Z7(this.B,a.ad);R(this,this.J);this.J.ea(this.element);this.ga=new r7(this.B);var b=this.ga.Q();this.A.appendChild(b);R(this,this.ga);this.da=new o7(this.B.vb().width);this.da.ea(this.J.ga.Q(),0);R(this,this.da);this.Ca=new p8(this.j,this.J,this.ga,this.da);R(this,this.Ca)}this.O=new K5(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.bb=new Y(["div","ytp-clickguard"]);R(this,this.bb);this.bb.ea(this.element);this.U=new t7(a.isMobile,a.Nb,a.Wh);R(this,this.U);this.U.ea(this.A);this.U.M("click",this.fj,this);this.ua=null;this.I=new k6(new j6(this.element),x(this.pG,this),a.ad);this.I.subscribe("autohideupdate",x(this.rG,this));this.Fa=!0;this.C=new h7(this.B);R(this,this.C);this.C.$();this.C.ea(this.element)}z(A8,o6);f=A8.prototype;
f.Gk=function(){A8.K.Gk.call(this);this.j.subscribe("appstatechange",this.Xw,this);this.j.subscribe("initializingmode",this.ny,this);this.j.subscribe("onDetailedError",this.sG,this);this.j.subscribe("clearvideooverlays",this.El,this);this.j.subscribe("menu_show",this.qG,this)};f.Yn=function(){A8.K.Yn.call(this);this.il(this.j.W());this.Hk()};f.pG=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.rG=function(a){O(this.element,"ytp-block-autohide",!a);this.j.Ra(a?"onHideControls":"onShowControls")};
f.il=function(a){"light"==a.theme&&this.addClass("light-theme");(a.mc||"0"==a.o)&&this.addClass("modest-branding");a.he&&this.addClass("html5-hide-share");a.lf||this.addClass("html5-hide-volume");a.ad&&(this.addClass("html5-tablet"),N(document.body,"html5-tablet-body"));"1"==a.o&&B8(this)&&this.addClass("ideal-aspect");!this.I.j||this.addClass("ytp-block-autohide");O(this.element,"hide-info-bar",!a.ua);"1"==a.o&&sh(this.element,z8[a.$a])};
f.Kg=function(a){A8.K.Kg.call(this,a);C8(this,a);this.G&&n7(this.G);"1"==this.j.W().o&&O(this.element,"ideal-aspect",B8(this));this.C.D&&i7(this.C)};f.Hl=function(){A8.K.Hl.call(this);C8(this,this.sb())};f.Xw=function(a){(this.Fa=2==a)?(this.addClass("cued-mode"),this.U.o(this.j.B,this.j.getVideoData())):this.removeClass("cued-mode")};
f.Gl=function(a){A8.K.Gl.call(this,a);if(this.element){X(a.state,2)&&this.U.o(this.j.B,this.j.getVideoData());this.I.Ab(128,!(X(a.state,8)&&!X(a.state,32)&&!X(a.state,2)));var b;b=a.state;if(X(b,2))b=["ended-mode"];else{var c=[];X(b,8)?c.push("playing-mode"):X(b,4)&&c.push("paused-mode");X(b,1)&&!X(b,32)&&c.push("buffering-mode");X(b,32)&&c.push("seeking-mode");X(b,64)&&c.push("unstarted-mode");b=c}G(b,"ended-mode")&&((c=D8())&&c.autoPlay||GE(this.j))&&ob(b,"ended-mode");this.ua&&uh(this.element,
this.ua);sh(this.element,b);this.ua=b;b=hr(this.j);c=b.getPlayerState();if(c=X(c,1)&&!X(c,2))c=b.getPlayerState(),c=!X(c,4);c&&2!=b.getPlayerType()?this.O.va():this.O.$();0>Jv(a,64)&&E8(this.j)}};
f.Hk=function(){this.j.W().ad&&(vv(this,this.element,"gesturechange",this.eC),vv(this,this.element,"gestureend",this.fC));ps?this.A.onclick=x(function(a){this.Em(new Dh(a))},this):this.Ik();var a,b=x(function(){var b=this.o;b&&(xs(b),hE.fillPool(4),this.Ia(a))},this);a=vv(this,this.element,"click",b,void 0,!0)};f.Ik=function(){vv(this,this.A,"click",this.Em);vv(this,this.A,"dblclick",this.rr)};f.fj=function(){w8(this.j)};f.St=function(){this.I.Ab(2,!0)};
f.Em=function(a){ne(a.target,"html5-stop-propagation")||(this.element.focus(),"3"!=this.j.W().o&&this.fj());L6(this.j,"screenclick")};f.rr=function(a){6!=this.j.J&&this.j.W().Wa&&(!ne(a.target,"html5-stop-propagation")&&Nx(this.j),L6(this.j,"screendoubleclick"))};f.eC=function(a){var b=a.scale,c=this.j.W().gb;b*(c?-1:1)>(c?-.7:1.3)&&Nx(this.j);a.preventDefault()};f.fC=function(a){a=a.scale;var b=this.j.W().gb;a*(b?-1:1)>(b?-.9:1.1)&&Nx(this.j)};
function B8(a){a=a.vb();a=(a.width/a.height).toFixed(1);return"1.3"==a||"1.8"==a}f.pg=function(a){if(a){var b=this.C;b.j=a;b.za(a);this.C.va();this.I.Ab(32,!0)}else b=this.C,b.j=null,b.za(null),this.C.$(),this.I.Ab(32,!1);this.Ka=!!a;F8(this)};f.qG=function(a){a=!!a;O(this.element,"ytp-menu-shown",a);this.I.Ab(64,a);this.ib=a;F8(this)};function F8(a){var b=a.ib||a.Ka;a.Aa!=b&&(a.Aa=b,a.j.L("onAutonavPauseRequest",a.Aa))}
f.sG=function(a){if(this.element){this.G||(this.G=new m7(this.j.yc),this.G.ea(this.element),R(this,this.G));var b=this.G,c=b.A.W(),d=a.message,e="embedded"==c.ja;a=a.messageKey;var g,h=!1;"YTP_ERROR_GENERIC"!=a||c.Nb?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==a?(g="https://get.adobe.com/flashplayer/",e=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=a||c.Nb||(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",
ar(c)&&(h=!0));g&&(d=Zf(a,{BEGIN_LINK:'<br/><a href="'+g+'"'+(e?' target="_blank"':"")+">",END_LINK:"</a>"}));Mh(b.o);b.o=[];qv(b.template,"content",new eF(d));if(h)for(c=x(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.va()}};f.sb=function(){var a=this.j.W();return"0"==a.o||"3"==a.o||"1"==a.$a&&(a=hr(this.j),!a||2!=a.getPlayerType())?this.vb():new H(this.A.clientWidth,this.A.clientHeight)};f.ny=function(){this.G&&this.G.$()};
f.ff=function(){var a=this.j.W();xi(document.documentElement,"player-size",a.gb?"fullscreen":a.J?"large":"small");A8.K.ff.call(this)};f.El=function(a){this.I.Ab(16,a)};
function C8(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+")";Ig(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+")",Ig(d[h],"transform",k)}}f.Zn=function(a){this.J&&b8(this.J,a)};
f.P=function(){this.I.dispose();Ph(this.element);Wd(this.Wa);A8.K.P.call(this);this.U=this.Wa=null};function G8(a){A8.call(this,a);this.R=new Y(["img",["html5-watermark","ytp-scalable-icon-shrink"],{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:Z("YTP_WATERMARK")}]);R(this,this.R);this.R.$();this.R.ea(this.element);this.R.M("click",this.ur,this);this.F=new I6(this.j,this.element,this.B);R(this,this.F);this.F.ea(document.body);a.W().Nb&&N(this.F.Q(),"house-brand");this.ta=null;this.H=new X6(this.B,this.j);this.H.ea(this.element);R(this,this.H);this.H.subscribe("title-click",
x(this.ur,this));this.H.subscribe("share-click",x(this.yB,this));this.ma=new D6;R(this,this.ma);this.ma.ea(this.A);this.us(G8.o/G8.j)}z(G8,A8);G8.o=3E4;G8.j=50;f=G8.prototype;f.ih=null;f.us=function(a){var b;if(!(b=0>=a)){b=I("div",{"class":"html5-player-css-loaded"});document.body.appendChild(b);var c="none"==Mg(b,"display");Wd(b);b=c}b?0>=a&&Xf(Error("Warning: Player CSS missing.")):L(x(this.us,this,a-1),G8.j)};f.il=function(a){G8.K.il.call(this,a);H8(this);a.ce&&this.ff()};
function H8(a){O(a.element,"ytp-tiny-mode",290>a.vb().width)}f.Ik=function(){this.j.W().Wa?this.ta||(this.ta=new u6(this.A,x(this.Em,this),x(this.rr,this)),R(this,this.ta)):G8.K.Ik.call(this)};f.sk=function(a){G8.K.sk.call(this,a);this.H&&this.H.update(a);var b=this.j;if(b.j.Yh?0:b.getVideoData().Z||b.j.ee){if(a=a.Z)this.R.Q().src=a;this.R.va()}};
f.Hk=function(){G8.K.Hk.call(this);var a=this.j.W();a.ad||(vv(this,this.element,"mousedown",this.Dw,void 0,!0),vv(this,this.element,"keydown",this.mz,void 0,!0));a.jf||(vv(this,this.element,"keypress",this.SF),vv(this,this.element,"keydown",this.RF),vv(this,this.element,"keyup",this.TF))};f.mz=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.Dw=function(){th(this.element,"ytp-keyboard-focus")};
f.SF=function(a){var b=!1===a.Qb.returnValue,c=a.keyCode;if(!b){if(179==c||178==c)179==c&&(this.L("playpausetoggled",!0),b=!0),178==c&&($q(this.j),b=!0);98==c&&(this.j.Oc("onBackgroundChange"),b=!0);111==c&&(this.j.Oc("onTextOpacityChange"),b=!0);119==c&&(this.j.Oc("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.j.Oc("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.j.Oc("onFontSizeDecrease"),b=!0;99==c&&(this.j.Oc("onCaptionsToggle"),b=!0);102==c&&(Nx(this.j),b=!0);32==c&&(I8(this),w8(this.j),
b=!0);48<=c&&57>=c&&(Uq(this.j,(c-48)/10*Vq(this.j)),b=!0);var d;if(d=63==c)d=this.j.W(),d=d.experiments.Y?!ar(d)||d.gb:!0;d&&(this.ih||(this.ih=new a7(this.B),R(this,this.ih),this.ih.M("done",this.Kl,this)),this.C.D?this.Kl():this.pg(this.ih),b=!0);b&&a.preventDefault()}this.j.Oc("onKeyPress",a);this.j.W().Hb()&&this.j.$g("onKeyPress",{keyCode:c,handled:b})};
f.rk=function(a,b){switch(a){case 80:if(b)return xr(this.j),!0;break;case 78:if(b)return wr(this.j),!0;break;case 74:var c=this.j;c.ke(c.getCurrentTime()+-10,void 0,void 0,void 0);return!0;case 76:return c=this.j,c.ke(c.getCurrentTime()+10,void 0,void 0,void 0),!0;case 77:return this.j.I.muted?Yq(this.j):Xq(this.j),!0;case 75:return w8(this.j),!0;case 190:if(b&&this.j.W().da)for(var c=fr(this.j),d=this.j.aa,e=0;e<c.length-1;e++)if(c[e]==d)return er(this.j,c[e+1]),!0;break;case 188:if(b&&this.j.W().da)for(c=
fr(this.j),d=this.j.aa,e=c.length-1;1<=e;e--)if(c[e]==d)return er(this.j,c[e-1]),!0}return G8.K.rk.call(this,a,b)};
f.RF=function(a){var b=!1===a.Qb.returnValue,c=a.keyCode;if(!b){if(38==c||40==c||37==c||39==c){b=5;a.ctrlKey&&(b*=2);if(38==c)b=this.j,x8(b,{volume:b.I.volume+5,muted:!1});else if(40==c)b=this.j,x8(b,{volume:b.I.volume-5,muted:!1});else if(37==c){var d=this.j,b=-1*b;Uq(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.j,Uq(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(Uq(this.j,0),b=!0);35==c&&(Uq(this.j,Infinity),b=!0);27==c&&(Th()?(br(this.j,!1),b=!0):this.F&&this.F.D?(this.F.$(),
b=!0):"1"==this.j.W().o&&null!=this.J.C?(this.j.bj(),b=!0):this.C.D&&(this.Kl(),b=!0));(b||this.rk(a.keyCode,a.shiftKey))&&a.preventDefault()}this.j.Oc("onKeyDown",a);this.j.W().Hb()&&this.j.$g("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.j.W().gb})};f.TF=function(a){this.j.Oc("onKeyUp",a)};f.ur=function(){$6(this.j)};
f.yB=function(){if("detailpage"==this.j.W().ja){br(this.j,!1);var a=this.j,b=a.getVideoData();a.L("SHARE_CLICKED",{videoId:b.videoId,listId:b.playlistId,feature:"player_"+a.j.ja})}else a=!V6(this.H),this.j.Yk(a),a&&W6(this.H,!0)};f.El=function(a){G8.K.El.call(this,a);W6(this.H,!1)};f.Kl=function(){this.pg()};f.Vm=function(a){G8.K.Vm.call(this,a);this.F&&(a?this.F.ea(this.Q()):this.F.ea(document.body),this.F.$());a&&"1"==this.j.W().o&&this.J.focus()};
function I8(a){var b=hr(a.j).getPlayerState(),c=a.j.getVideoData(),d="html5-bezel-pause";X(b,8)?c.Qa&&!c.wb&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.ma;d&&qv(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||(uE(d,!d.B),d.j=1,d.C())}f.fj=function(){I8(this);G8.K.fj.call(this)};f.Kg=function(a){G8.K.Kg.call(this,a);H8(this)};
f.Ym=function(){G8.K.Ym.call(this);if(!this.j.W().isMobile){var a=new e7(this.element,this.j.W());R(this,a);this.B.j=a;var b=Fd("ytp-tooltip-anchor",this.element);D(b,function(b){a.qg(b)})}};f.vb=function(){var a=this.j.W();return"detailpage"!=a.ja||a.gb?G8.K.vb.call(this):B6(a,!0)};f.sb=function(){var a=this.j.W();return"detailpage"!=a.ja||a.gb?G8.K.sb.call(this):B6(a)};f.hp=function(){var a=this.sb();"1"==this.j.W().o&&(a=a.clone(),a.height+=3);return a};var J8=t("yt.prefs.UserPrefs.prefs_")||{};q("yt.prefs.UserPrefs.prefs_",J8,void 0);var Er={"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 K8(a,b){S.call(this);var c=b;c instanceof Uh||(c=new Uh(c));this.Y=c;this.j=new B_(this.Y.args||{});R(this,this.j);this.A=new G8(this);R(this,this.A);this.A.subscribe("resize",this.PD,this);this.J=1;this.Ca={};this.ca=null;this.I=this.j.ge?Lq():{volume:100,muted:!1};this.mc=this.j.Hb()?new Mr(this,1):new Qq(this,1);R(this,this.mc);this.tb=new Yr(this);R(this,this.tb);this.yc=new Yr(this,1);R(this,this.yc);this.ga=this.C=null;this.sa={};c=new fG;DD(this.j)&&(c.o=!0,c.j=.1);this.ta=new WF(c);
this.Da={internalvideodatachange:this.Hz,liveviewshift:this.LD,playbackready:this.Iz,playbackstarted:this.Jz,statechange:this.Kz,signatureexpired:this.AB};var c=new AJ,d=this.tb;c.o!=d&&(BJ(c),c.D={},c.o=d);d={};d.loaded=x(this.Oq,this);d.unloaded=x(this.Pq,this);d.destroyed=x(this.Am,this);d.command_pause=L8(this.pauseVideo,this);d.command_play=L8(this.je,this);d.command_seek=L8(this.ke,this);d.command_disable_controls=x(this.rh,this);d.command_enable_controls=x(this.ak,this);d.command_redirect_controls=
x(this.Ks,this);d.command_stop_redirect_controls=x(this.Kj,this);d.command_redirected_show_is_playing=x(this.A.Zn,this.A);d.command_progress=x(this.Jm,this);d.command_add_cuerange=x(this.Js,this);d.command_remove_cuerange=x(this.Ls,this);d.command_remove_cuerange_all=x(this.zr,this);d.command_preroll_ready=x(this.Ms,this);d.command_update_cuerange_markers=x(this.Ns,this);d.command_show_dialog=x(this.Cn,this);d.command_clear_video_overlays=x(this.Yk,this);d.command_navigate_to_url=x(this.Bn,this);
d.command_log=x(this.bk,this);d.publish_external_event=x(this.$g,this);d.module_menu_button_add=x(this.fq,this);d.module_menu_button_remove=x(this.gq,this);d.module_menu_item_add=x(this.hq,this);d.module_menu_item_remove=x(this.iq,this);d.module_menu_show=x(this.bj,this);d.vss_segment=x(this.TD,this);c.F=d;this.F=c;R(this,this.F);this.N=new r_(this.j,"",this.F);c=new T1(this.j,1,this.N,this.A);M8(this,c,this.Da);this.o=c;this.o.ca=this.ta;this.ic={beginseeking:this.Sz,endseeking:this.uA,internalaudioformatchange:this.Lz,
internalvideodatachange:this.RD,internalvideoformatchange:this.bC,progresssync:this.OD,seekto:this.QD,onLoadProgress:this.MA,onVideoProgress:this.gC,newlicensesession:this.MD,playbackready:this.dB,statechange:this.ND,connectionissue:this.eA,heartbeatparams:this.KD,videoelementevent:this.SD};this.O=this.D=null;this.Fa=this.Ka=-1;this.G=this.H=null;this.R={};this.da=null;this.Z={};this.na=null;this.bb=0;this.Aa=!1;this.list=null;this.V=!0;this.pa=this.B=null;this.aa=1;this.jc=this.ma=this.Wa=null;this.ob=
this.ab=!1;this.ua=null;this.ib=0;this.Zc=!1;this.Ob=null;this.$a=this.U=0;c=new Nr(this.Y.args);if(iJ(c)){V1(this.o,c,x(this.sh,this));if("detailpage"==this.j.ja){var d=c.videoId,e=hj("yt-player-restore-playhead"),d=e?e[d]:void 0;d&&(c.startSeconds=d)}ij("yt-player-restore-playhead");(this.j.sa||this.j.te&&this.j.experiments.aa)&&e2(this.o)}mI("fs",void 0,this.N.j);this.A.initialize(a);this.A.Yn();c=this.mc;d=this.A.Q();c.oe=d;for(var g in c.Vf)c.oe[g]=c.Vf[g];for(g in c.Qg)c.oe[g]=c.Qg[g];g=x(this.BA,
this);c=document;"onfullscreenchange"in c?d="fullscreenchange":(d=wh+"fullscreenchange",d="on"+d in c?d:null);"msfullscreenchange"==d&&(d="MSFullscreenChange");this.Wa=d?P(c,d,g):null;this.jc=P(window,"resize",x(this.qB,this));c=this.Y.args;if(hu()){N8(this);g=Fr(this);d=this.A.sb();this.j.Zj=d;this.Ra("onVolumeChange",this.I);"detailpage"==this.j.ja?Pr(this,g):c&&(c.playlist||c.list||c.api)&&(O8(this,c),iJ(g)||(c=this.B,d=x(this.Sq,this),c.Ve=d,c.pe&&L(c.Ve,0)));if(c=this.Y.args.jsapicallback)ha(c)||
(c=t(c)),c&&L8(x(c,m,this.j.Sh),m);this.j.bb||(hq("embedded"==this.j.ja),this.j.wg=Hr(this.j)&&!lb(pq()));Q3(this,this.o);this.j.sa&&iJ(g)?P8(this):"leanback"!=this.j.ja&&Q8(this)}else Iv(this.o,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.A.Hl();L6(this,"init")}z(K8,S);K8.o="defaultcontext";K8.j={};
K8.A=function(a,b){try{var c=K8.C(a);if(K8.j[c]){try{K8.j[c].dispose()}catch(d){Xf(d)}K8.j[c]=null}var e=new K8(a,b);Bi(e,function(){K8.j[c]=null});return K8.j[c]=e}catch(g){throw Xf(g),g;}};K8.B=function(a,b){mI("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=K8.A(c,d);d.loaded=!0;return c};
K8.C=function(a){return w(a)?a:"player"+ka(a)};
function N8(a){a.C=hE.getTag(!0);a.ga=a.C;a.D&&p2(a.D,a.C);Fs(a.C,a.aa);a.j.N?(a.ma&&Mh(a.ma),a.ma=P(a.C,"volumechange",x(a.TA,a),!1)):a.C.setVolume(a.I.volume,a.I.muted);var b=a.A;b.o=a.C;if(!b.o.parentNode){var c=b.A;c.insertBefore(b.o,c.childNodes[0]||null)}b.Z=new zg(0,0,0,0);p6(b);N(b.o,"video-stream");N(b.o,"html5-main-video");c=b.j.W();"3"==c.o&&b.o.setAttribute("controls",!0);c.O&&b.o.setAttribute("webkit-playsinline","");c.Qh&&(b.na=P(b.o,"click",x(b.o.play,b.o)));a.j.Bb=a.C;xs(a.C)}
function R8(a){if(a.C){a.ma&&(Mh(a.ma),a.ma=null);a.D&&gE(a.D);var b=a.A;b.o&&(Wd(b.o),b.o=null);a.j.Bb=null;hE.releaseTag(a.C);a.C=null}}function dE(a,b){a.j.D?(a.da&&(Og(a.C,a.da.left,a.da.top),Yg(a.C,Eg(a.da)),a.da=null),Es(a.C),gE(a.D),p2(a.D,a.C),Fs(a.C,a.aa)):hE.releaseTag(b)}function Q3(a,b){if(a.D!=b){a.D&&(BJ(a.F),T3(a));if(b!=a.o){var c=b.getPlayerType();a.sa[c]=b}a.D=b;b.ca=a.ta;a.C&&p2(b,a.C);M8(a,b,a.ic);S8(a,b,b.getVideoData());b.U.j&&T8(a,"dataloaded",b,b.getVideoData())}}
function M8(a,b,c){for(var d in c)b.subscribe(d,c[d],a)}function T3(a){gE(a.D);var b=a.D,c=a.ic,d;for(d in c)b.qa(d,c[d],a);b=a.D;b!=a.o&&(c=b.getPlayerType(),a.sa[c]==b&&delete a.sa[c]);a.D=null}f=K8.prototype;f.subscribe=function(a,b,c){return K8.K.subscribe.call(this,a,b,c)};function hr(a,b){return b?1==b?a.o:a.sa[b]||null:a.D}function U8(a){var b=a.F,c=[LA.o,HE,Mv,$E,AD,iF,CF.j,FF,KD,OF];c.push(OE.j);D(c,b.Jo,b);a.L("videoready",a.getVideoData())}f.Iz=function(){V8(this)||W8(this,5)};
f.dB=function(a){V8(this)||(X8(this),Os(a.getPlayerState())&&this.je())};function Jr(a){!a.G&&a.yc.W().wg&&(a.G=new e6(a),Y8(a,a.G));if(a.G){var b=vq();Gr(a.G,pq(),b);var c=a.G;c&&!c.qe&&c.Ha(a.yc)&&c.Na();b&&a.G.load()}}
function Y8(a,b){R(a,b);b.subscribe("loaded",a.Oq,a);b.subscribe("unloaded",a.Pq,a);b.subscribe("command_pause",L8(a.pauseVideo,a));b.subscribe("command_play",L8(a.je,a));b.subscribe("command_seek",L8(a.ke,a));b.subscribe("command_disable_controls",a.rh,a);b.subscribe("command_enable_controls",a.ak,a);b.subscribe("command_redirect_controls",a.Ks,a);b.subscribe("command_stop_redirect_controls",a.Kj,a);b.subscribe("command_redirected_show_is_playing",a.A.Zn,a.A);b.subscribe("command_progress",a.Jm,
a);b.subscribe("command_add_cuerange",a.Js,a);b.subscribe("command_remove_cuerange",a.Ls,a);b.subscribe("command_remove_cuerange_all",a.zr,a);b.subscribe("command_update_cuerange_markers",a.Ns,a);b.subscribe("command_preroll_ready",a.Ms,a);b.subscribe("command_show_dialog",a.Cn,a);b.subscribe("command_clear_video_overlays",a.Yk,a);b.subscribe("command_log",a.bk,a);b.subscribe("command_navigate_to_url",a.Bn,a);b.subscribe("publish_external_event",a.$g,a);b.subscribe("module_menu_button_add",a.fq,a);
b.subscribe("module_menu_button_remove",a.gq,a);b.subscribe("module_menu_item_add",a.hq,a);b.subscribe("module_menu_item_remove",a.iq,a);b.subscribe("module_menu_show",a.bj,a);b.subscribe("command_log_timing",a.F.H,a.F)}function Ir(a){a&&a.qe&&a.destroy()}f.Ra=function(a,b){this.L.apply(this,arguments);this.Oc.apply(this,arguments)};f.Zg=function(a,b){var c=sb(arguments);this.j.Hb()&&this.D&&c.push(this.D.getPlayerType());this.L.apply(this,c)};f.canPlayType=function(a){return!!gu().canPlayType(a)};
f.W=function(){return this.j};f.getVideoData=function(){return this.D.getVideoData()};function Fr(a){return a.o.getVideoData()}f.sh=function(){var a=J_(this.j);qa(a,FJ(this.F));this.H&&qa(a,this.H.Ah());a.fs=this.j.gb;a.volume=Math.round(Wq(this));a.mos=this.I.muted?1:0;return a};f.Cn=function(a){this.A.pg(a)};function Q8(a){a.L("initializingmode");W8(a,2)}
function P8(a){if(X(a.o.getPlayerState(),128))return!1;a.L("initializingmode");Q3(a,a.o);W8(a,3);var b;(b=!a.j.D)||(t("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(R8(a),N8(a),p2(a.o,a.C));j2(a.o);if(X(a.o.getPlayerState(),128))return!1;Z8(a,3);return a.Zc=!0}function V8(a){return Hr(a.j)&&!!vq()}function L8(a,b){return function(){var c=Array.prototype.slice.call(arguments);L(function(){a.apply(b||this,c)},0)}}
f.Bn=function(a,b){b?M6(this,a):(window.ytspf||{}).enabled?spf.navigate(a):GF(a)};f.bk=function(a,b,c){var d=hr(this);b.event=a;this.j.gb&&(b.fs=1);d.B&&(a=d.B,b.rt=v1(a.j).toFixed(3),qa(b,J1(a.j)),qa(b,L1(a)),delete b.fexp,b=Cj(a.j.fa.B+"player_204",b),og(b,c))};function er(a,b){if(!isNaN(b)&&a.C){var c=1,c=fr(a),c=1>b?F(c,function(a){return a>=b}):jb(c,function(a){return a<=b});a.aa!=c&&(a.aa=c,a.o==a.D&&Fs(a.C,c),a.L("onPlaybackRateChange",c))}}function fr(a){return a.j.da?Ow:[1]}
function gr(a,b){var c=hr(a,b);return c&&c.getVideoData().o?c.getVideoData().o.video.quality:"unknown"}function lD(a,b){var c=hr(a,b);return c?x2(c):a.getVideoData().Y}function v8(a){return(a=hr(a,void 0))?Vt(m1(a.na,a.j)):"unknown"}function Wr(a,b,c,d){if(a=hr(a,c))b=ir(b,d||b,!0),jr(a,"m",b)}f.getCurrentTime=function(a){return 3==this.Df()?this.G.getCurrentTime():(a=hr(this,a))?a.getCurrentTime():0};function Vq(a,b){var c=hr(a,b);return c?c.bd():0}
function rr(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=gr(a);c.debug_date=(new Date).toString();delete c.uga;delete c.q;return sg(c)}
function hF(a,b){var c=a.getVideoData(),d=!!c.sa||!!c.mh||!b;d&&a.C.setAttribute("mozStereoMode","1");cF()&&(a.C.setAttribute("mozStereoMode",d?"1":"0"),c=aI[d?c.pa:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),Ud(document.documentElement,d),Rh(d,"3DModeEvent"))}f.Df=function(){var a;if(a=this.G)a=this.G,a=!!a.A&&!!a.B;return a?3:hr(this).getPlayerType()};function Sq(a,b){return 3==a.Df()?Ps(a.G.U):2==b?a.Fa:a.Ka}
f.SD=function(a){var b=a.target;switch(a.type){case "loadedmetadata":mI("fvb",void 0,this.N.j);this.bb=L(x(this.A.ff,this.A),16);break;case "loadstart":mI("gv",void 0,this.N.j);break;case "progress":case "timeupdate":2<=is(b.buffered)&&mI("l2s",void 0,this.N.j)}};f.MD=function(a){if(this.ob){var b=this.ib.toString();this.ib++;this.ua[b]=a;a={request:sb(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.MA=function(a,b){this.Zg("onLoadProgress",b)};f.gC=function(a,b){this.Zg("onVideoProgress",b)};f.OD=function(){this.Jm()};f.Jm=function(a,b){this.L("progresssync",a,b)};
f.Kz=function(a){var b;if(b=0<Jv(a,2))this.B&&("embedded"==this.j.ja||this.j.gb)&&GE(this)?(wr(this),b=!0):b=!1,b=!b;b&&(this.pauseVideo(),X(a.j,32)&&this.o.fk(),this.j.isMobile&&br(this,!1));X(a.state,128)&&(b=a.state,dr(this),b=b.j,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=Zf(b.messageKey)),this.L("onError",Er[b.errorCode]||5),this.L("onDetailedError",b));this.L("applicationplayerstatechange",a);X(a.state,2)&&(a=this.getVideoData(),a.Qa&&!a.wb&&this.rh(["play_pause"]))};
f.ND=function(a){!X(a.state,32)&&0>Jv(a,16)&&(!X(a.state,8)||X(a.state,64)||this.C.ended||X(a.state,2)||this.je());this.L("presentingplayerstatechange",a);this.Oc("onStateChange",a);Z8(this,Ps(a.state))};function $8(a){Ir(a.H);Ir(a.G);a.ab=!1;var b=[],c;for(c in a.R)cr(a,c)&&b.push(c);a.R={};0<b.length&&a.L("controlsenabled",b);a.Kj();a.Ca={};a=a.N;b=a.o;b.B={};b.A={};a.A=!1}function S8(a,b){BJ(a.F);er(a,1);a.Ra("videoplayerreset",b)}
function T8(a,b,c,d){if(a.C){if("dataloaded"==b)if(C_(c.W(),d.B),a.D==a.o){a.j.bb||hq("embedded"==a.j.ja);var e=V8(a),g;if(g=!e)g=Fr(a).sp&&!a.j.isMobile;if(g){var h="YTP_DEVICE_FALLBACK";gd||rs("iemobile")||rs("xbox")&&rs("trident")||rs("nintendo wiiu")||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");Iv(a.o,"html5.unsupportedads",h,void 0)}else if(g=Fr(a),!(g.j||g.Ze||g.Ye||g.ca||g.aa)||e||bJ(a.o.j)){dJ(g);e&&W8(a,6);e=!1;!a.H&&H5.Ha(a)&&(a.H=new H5(a),a.H&&Y8(a,a.H),e=!0);try{(h=a.H)&&!h.qe&&
h.Ha(a.yc)&&h.Na()}catch(k){Xf(k),a.o&&o2(a.o,"ad")}e&&(e=a.H,g=Fr(a),h=hr(a),g.subscribe("cuepointupdated",e.kA,e),e.H=g,e=I5(e),null!=e&&(e.I=h));Jr(a);U8(a)}else Iv(a.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else U8(a);1==c.getPlayerType()&&(a.getVideoData().Pk?(a.ca=Yb(a.I),a.rh(["audio"]),h=a.C,h.Ok=!0,h.muted=!0):(cr(a,"audio")&&a.ak(["audio"]),a.C.Ok=!1,a.ca&&(x8(a,a.ca),a.ca=null)),h=a.getVideoData(),h.Qa&&!a.j.Vh?Iv(a.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",
void 0):h.Qa&&!h.wb?a.rh(["seek"]):a.ak(["seek"]),d.ma||d.Wa||d.D.focEnabled||d.D.rmktEnabled||a.j.V)&&(h=a.getVideoData(),e=1E3*h.lengthSeconds,a9(a,"part2viewed",1,e),a9(a,"engagedview",Math.max(1,1E3*h.bf),e),a9(a,"videoplaytime25",.25*e,e),a9(a,"videoplaytime50",.5*e,e),a9(a,"videoplaytime75",.75*e,e),a9(a,"videoplaytime100",e,2147483647),a9(a,"conversionview",e,2147483647));a.Ra("videodatachange",b,d,c.getPlayerType())}}f.Hz=function(a){"newdata"==a&&$8(this)};
f.Lz=function(a,b){var c=this.D.getVideoData();a==c&&this.Ra("onPlaybackAudioChange",lD(this).name,b)};f.RD=function(a,b,c){"newdata"==a?S8(this,b):T8(this,a,b,c)};f.bC=function(a,b){var c=this.D.getVideoData();a==c&&this.L("onPlaybackQualityChange",a.o.video.quality,b)};
function Pr(a,b){if(b.playlistId){var c=D8();if(c&&!c.list)a.Xk();else if(c&&0<=c.index){var d=[];D(c.videoIds,function(a){if(a=c.videoData&&c.videoData[a])a.video_id=a.id,a.author=a.rs,d.push(a)});O8(a,{videoList:d,loop:c.autoPlay,index:c.index,list:c.list,playlist_title:c.listTitle,playlist_description:c.listDescription,author:c.author,fetch:0});a.pa&&b9(a,a.pa)}else O8(a,{videoList:[b.videoId],list:b.playlistId,fetch:0}),a.pa=null}}
function O8(a,b){if(a.B){a.B.qa("error",a.Xk,a);Ci(a.B);a.B=null;var c=mr(a.F,"playlist");c&&uD(a.F,c)}b&&(a.B=new mJ(b),a.B.subscribe("error",a.Xk,a),a.F&&(c=a.F,D([OE.j],c.Jo,c)))}f.Xk=function(){O8(this,null);this.Ra("onPlaylistUpdate")};function a9(a,b,c,d){b in a.Ca||(c=new Qs(c,d,{id:b,priority:1}),c.Xa.subscribe("onEnter",a.zq,a),c.Xa.subscribe("onExit",a.zq,a),Vs(a.o.D,[c]),a.Ca[b]=c)}
f.zq=function(a){var b=a.getId(),c=Fr(this);if("part2viewed"==b)c.Sh&&og(c.Sh),c.Wa&&og(c.Wa);else if("conversionview"==b){var d=this.o;d.B&&N1(d.B)}else"engagedview"==b&&og(c.ma);c.na&&(d=a.getId(),d=Cj(c.na,{label:d}),og(d));switch(b){case "videoplaytime25":c.kf&&og(c.kf);og(c.Ck);break;case "videoplaytime50":c.lf&&og(c.lf);og(c.Uv);break;case "videoplaytime75":c.Lh&&og(c.Lh);og(c.Wv);break;case "videoplaytime100":c.jf&&og(c.jf),og(c.Bk)}this.j.V&&this.j.V[a.getId()]&&(b=this.j.V[a.getId()],c=A(B(b))?
!1:-1!=b.search(Kf)||-1!=b.search(If),og(b,void 0,c));this.o.D.uh(a)};function W8(a,b){b!=a.J&&(2==b&&(Z8(a,-1),Z8(a,5)),a.J=b,a.L("appstatechange",b))}function Z8(a,b){a.D&&2==a.D.getPlayerType()?a.Fa!=b&&(a.Fa=b,a.Zg("onAdStateChange",b)):a.Ka!=b&&(a.Ka=b,a.Zg("onStateChange",b))}function L6(a,b){a.j.experiments.j&&a.bk("controlclicked",{controlClicked:b})}f.ke=function(a,b,c,d){b=0!=b;if(d=hr(this,d))2==this.J&&P8(this),k2(d,a,b,c)};
f.QD=function(a,b){var c=a.getVideoData();if(1==this.J||2==this.J)c.startSeconds=b;2==this.J?P8(this):this.Ra("seekto",b)};f.Sz=function(){this.Ra("beginseeking")};f.uA=function(){this.Ra("endseeking")};function Wq(a){return a.I.volume}f.setVolume=function(a){var b=this.I;b.volume=a;x8(this,b)};
function x8(a,b){a.I=b;b.volume=Pc(b.volume,0,100);if(a.j.ge&&!a.j.N){var c={};c.volume=isNaN(b.volume)?Lq().volume:Pc(b.volume,0,100);c.muted=void 0==b.muted?Lq().muted:b.muted;fj("yt-player-volume",c,2592E3)}cr(a,"audio")?a.ca&&(a.ca=Yb(b),a.Ra("onVolumeChange",b)):(X8(a),a.j.N||a.Ra("onVolumeChange",b))}function Xq(a){var b=a.I;b.muted=!0;x8(a,b)}function Yq(a){var b=a.I;b.muted=!1;5>b.volume&&(b.volume=5);x8(a,b)}
function nr(a,b,c){b.list=b.list||a.list;b=new Nr(b);Fr(a).playlistId!=b.playlistId&&O8(a,null);"detailpage"==a.j.ja&&Pr(a,b);return c9(a,b,c)}function Or(a,b){a.O&&a.O.getVideoData().videoId==b.videoId||(b.$a=!0,a.O||(a.O=new T1(a.j,1,a.N,a.A),a.O.ca=a.ta),V1(a.O,b,x(a.sh,a)),e2(a.O,!0))}
function c9(a,b,c){if(!qI("_start",a.N.j)){var d=a.N.j;rI("yt_sts","p",d);mI("_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.Da,g;for(g in e)c.qa(g,e[g],a);a.o.dispose();a.o=b;M8(a,b,a.Da);$8(a)}else{d=hr(a,c);if(!d)return!1;M(a.bb);dr(a,c);V1(d,b,x(a.sh,a))}if(!d2(d))return!1;if(d==a.o)return W8(a,1),P8(a);j2(d);return!0}function Tq(a,b,c){c=hr(a,c);b&&c==a.o&&(c.getVideoData().ne=!0)}
function or(a,b,c){b.list=b.list||a.list;d9(a,new Nr(b),c)}function d9(a,b,c){var d=hr(a,c);d&&(dr(a,c),V1(d,b,x(a.sh,a)),d2(d)&&(C_(d.W(),b.B),d==a.o&&(W8(a,1),Q8(a))))}function rE(a,b,c,d,e){if(!b&&!d)throw Error("Playback source is invalid");b={video_id:b,list:d};a.j.gb||"detailpage"!=a.j.ja?(c=a.N,e=c.o,e.B={},e.A={},c.A=!1,a.N.reset(),d?(a.V=!1,vr(a,b,void 0,void 0,void 0)):nr(a,b,1)):(d=new Nr(b),d=a.j.getVideoUrl(d,{}),(c||{}).lact=u_(),t("yt.player.exports.navigate")(d,c,!0),a.Bn(d,e))}
function vr(a,b,c,d,e){if(ja(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},w(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;O8(a,b);b=a.B;a=x(a.Sq,a);b.Ve=a;b.pe&&L(b.Ve,0)}f.Sq=function(){var a=Ar(this.B);if(this.getVideoData().Rg||!this.V){var b=this.getVideoData().ne,a=c9(this,a);b&&Tq(this,a)}else a&&d9(this,a)};
function GE(a){var b=D8();return!(!a.B||!tJ(a.B)||b&&!b.autoPlay)}function sE(a,b){a.Ra("autonavcancel",b)}function wr(a){if(a.B)"detailpage"!=a.j.ja||a.j.gb?a.B.pe?tJ(a.B)&&c9(a,vJ(a.B),1):(vJ(a.B),a.V=!1):b9(a,"yt.www.watch.lists.next");else if(zE(a.j)&&hr(a,1).getVideoData().O){var b=hr(a,1).getVideoData().O[0],c=b.id||b.video_id||"",d=b.session_data?vj(b.session_data,"&"):null;rE(a,c,d,b.list||void 0)}}
function xr(a){if(a.B)if("detailpage"!=a.j.ja||a.j.gb)if(a.B.pe){var b=a.B;(b.jg||0<=b.Ya-1)&&c9(a,xJ(a.B),1)}else xJ(a.B),a.V=!1;else b9(a,"yt.www.watch.lists.prev")}function b9(a,b){var c=t(b);if(c){var d=D8();d&&d.list&&c();a.pa=null}else a.pa=b}function yr(a,b){a.B&&(a.B.pe?c9(a,Ar(a.B,b),1):a.V=!1,wJ(a.B,b))}function D8(){var a=t("yt.www.watch.lists.getState");return a?a():null}function Br(a){return a.B&&a.B.A?a.B.A.toString():null}
function sr(a){var b=Fr(a),c=a.A.vb();a="https://"+H_(a.j)+"/embed/"+b.videoId;b.playlistId&&(a=Ve(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+ya(a)+'" frameborder="0" allowfullscreen></iframe>'}function qr(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=Vq(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return a.j.getVideoUrl(Fr(a),c)}
function tr(a,b,c,d,e,g){b={id:b};"chapter"==g?(b.style="ytp-chapter-marker",b.visible=!0):isNaN(e)||(b.style="ytp-ad-progress",b.visible=!0);c=new Qs(1E3*c,1E3*d,b);c.Xa.subscribe("onEnter",a.Fz,a);c.Xa.subscribe("onExit",a.Gz,a);Vs(a.o.D,[c]);ur(a,"cuerangesadded",[c]);return!0}f.Fz=function(a){this.L("onCueRangeEnter",a.getId())};f.Gz=function(a){this.L("onCueRangeExit",a.getId())};f.Js=function(a,b){var c=hr(this,b);c&&(Vs(c.D,a),ur(this,"cuerangesadded",a))};
f.Ls=function(a,b){var c=hr(this,b);c&&(c.D.uh.apply(c.D,a),ur(this,"cuerangesremoved",a))};f.zr=function(a,b){var c=hr(this,b);if(c){for(var c=c.D,d=[],e=c.j.j,g=e.length-1;0<=g;g--){var h=e[g];if(h.namespace==a){var k=c.o.indexOf(h);0<=k&&c.o.splice(k,1);var k=c.j.j,l=xb(k,h,as);0<=l&&pb(k,l);d.push(h)}}c.zc();ur(this,"cuerangesremoved",d)}};f.Ns=function(a){ur(this,"cuerangemarkersupdated",a)};f.Ms=function(a,b){var c=hr(this,b);c&&o2(c,a)};
f.Jz=function(){this.U||(this.U=nx(this.Cq,this));s_(this.N,e9(this));if(!this.ab&&"detailpage"==this.j.ja){this.ab=!0;var a=this.o;if(a.V&&a.V.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.V.j;var d=y()-a.V.o;a.V.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=Tf("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);xI(a)}}if(this.Aa&&(b=this.o,b.B))b.B.onError("html5.reboot");this.Aa=!1;this.j.experiments.D&&GE(this)&&(b=Ar(this.B,uJ(this.B)))&&Or(this,b)};f.Cq=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 e9(a){var b=y(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)}f.Oq=function(a){"remote"==a?(2==this.J&&P8(this),W8(this,6),Ir(this.H)):this.Am()};
f.Pq=function(a){"remote"!=a||V8(this)||(this.je(),this.pauseVideo());this.Am()};f.Am=function(){this.Zg("onApiChange")};f.TA=function(){if(!cr(this,"audio")){var a={volume:100*this.C.volume,muted:this.C.muted};this.I=Yb(a);this.Ra("onVolumeChange",a)}};function X8(a){var b=a.j.N?Nr.o:a.getVideoData().to;a.C.setVolume(a.I.volume*b,a.I.muted)}f.BA=function(){f9(this,Th()?1:0)};
function f9(a,b){var c=!!b,d=!!a.$a!=c;a.$a=b;if(d){a.A.Vm(c);if("detailpage"==a.j.ja&&!c&&(d=Fr(a),Tf("VIDEO_ID")!=(d.bb||d.videoId))){var e=a.getCurrentTime(),g={};g[d.videoId]=e;fj("yt-player-restore-playhead",g,172800);a.pauseVideo()}mI("fsc",void 0,a.N.j);a.j.gb=c;a.A.ff();a.Ra("fullscreentoggled",c);d=Fr(a);c={fullscreen:c,videoId:d.bb||d.videoId};Br(a)&&(c.listId=Br(a));a.L("onFullscreenChange",c)}}f.PD=function(){E8(this)};f.qB=function(){2!=this.$a&&f9(this,Th()?1:0)};
f.Yk=function(a){this.Ra("clearvideooverlays",!!a)};f.fq=function(a,b){this.Ra("menu_button_add",a,b)};f.gq=function(a){this.Ra("menu_button_remove",a)};f.hq=function(a){this.Ra("menu_item_add",a)};f.iq=function(a){this.Ra("menu_item_remove",a)};f.bj=function(a){this.Ra("menu_show",a)};f.TD=function(a){(a=hr(this,a))&&a.B&&s1(a.B.o)};f.LD=function(a){this.Ra("liveviewshift",a)};
function ur(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.$g(d,E(c,Rs))}
f.$g=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(mI("vr",void 0,this.N.j),this.U||(this.U=nx(this.Cq,this)),C2(this.D),s_(this.N,e9(this)));0==c&&e&&(this.o.V=e);var g=this.j;"leanback"==g.ja&&g.Hb()&&(0==c?this.ga=this.C:this.ga=d,this.L("onAdStateChange",c,e.video_id))}else this.L.apply(this,arguments)};f.Oc=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.je=function(a){(a=hr(this,a))&&(2==this.J?P8(this):X(a.getPlayerState(),2)?this.ke(0):s2(a))};f.pauseVideo=function(a){(a=hr(this,a))&&a.pauseVideo()};function dr(a,b){ox(a.U);a.U=0;var c=hr(a,b);c&&1!=a.J&&2!=a.J&&(BJ(a.F),n2(c),1==b&&Ir(a.H))}function Zq(a,b){if(!cr(a,"play_pause")){var c=a.Z.play_pause?a.na:null;c?c.Wd("control_play"):a.je(b)}}function $q(a,b){if(!cr(a,"play_pause")){var c=a.Z.play_pause?a.na:null;c?c.Wd("control_pause"):a.pauseVideo(b)}}
function w8(a){var b;if(b=!cr(a,"play_pause"))(b=!a.j.ad||2!=a.J)||(b=hE.hasTags(void 0));b&&((b=a.Z.play_pause?a.na:null)?b.Wd("control_toggle_play_pause"):(b=hr(a,void 0))&&(Os(b.getPlayerState())?a.pauseVideo(void 0):a.je(void 0)))}function Uq(a,b,c,d,e){if(!cr(a,"seek")){var g=a.Z.seek?a.na:null;g?g.Wd("control_seek",b):a.ke(b,c,d,e)}}
function br(a,b){if(a.j.gb!=b)if(Sh())if(b){var c=a.A.Q(),d=Ch(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Ch(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else f9(a,b?2:0)}function Nx(a){br(a,!a.j.gb)}function M6(a,b){br(a,!1);a.pauseVideo();HF(b)}function $6(a){var b=a.getVideoData();"detailpage"==a.j.ja&&a.j.gb&&Tf("VIDEO_ID")==b.videoId?br(a,!1):M6(a,qr(a,!0))}f.getAdState=function(){return this.H?this.H.getAdState():-1};
function E8(a){var b=a.A.sb();a.j.Zj=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.Vh,c)||(d.Vh=c,b=!0)}c=a.A;c=r6(c,c.sb(),q6(c),t6(c),void 0);Cg(a.Ob,c)||(a.Ob=c,a.j.Rj=c,b=!0);b&&(a.D&&jr(a.D,"r"),a.L("resize",a.A.vb()),a.Ra("onResize"))}}function cr(a,b){return!(!a.R[b]||!a.R[b].length)}
f.rh=function(a,b){b=b||K8.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.ak=function(a,b){b=b||K8.o;var c=[];D(a,function(a){if(cr(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.Ks=function(a,b,c){this.Kj();this.na=a;b&&D(b,function(a){this.Z[a]=!0},this);c&&CJ(this.F,a,c)};
f.Kj=function(){this.na=null;this.Z={};DJ(this.F)};function Cr(a,b,c,d){if(a.j.Hb()){if(a.H&&b==a.H.xa)return a.H.kg(c,d);if(a.G&&b==a.G.xa)return a.G.kg(c,d)}c=b&&c?(a=mr(a.F,b))?a.kg(c,d):null:null;return c}function Dr(a,b){if(!b){var c=EJ(a.F);a.j.Hb()&&(a.H&&c.push(a.H.xa),a.G&&c.push(a.G.xa));return c}if(a.j.Hb()){if(a.H&&b==a.H.xa)return a.H.lg();if(a.G&&b==a.G.xa)return a.G.lg()}return EJ(a.F,b)}
f.AB=function(){if(this.j.experiments.A&&!this.Aa){this.Aa=!0;var a=this.getVideoData(),b=hr(this).getCurrentTime();nr(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.eA=function(){this.Ra("CONNECTION_ISSUE")};f.KD=function(a){this.Ra("heartbeatparams",a)};f.P=function(){mq();this.o.dispose();this.O&&this.O.dispose();R8(this);this.Wa&&Mh(this.Wa);Mh(this.jc);Ei(Ob(this.sa),this.B);this.ga=null;M(this.bb);ox(this.U);this.U=0;K8.K.P.call(this)};function g9(){tx.call(this);this.j=[];this.A={}}z(g9,tx);ba(g9);f=g9.prototype;f.pi="button";f.Nf=null;f.register=function(){vx(this,"click",this.tw);vx(this,"keydown",this.cz);vx(this,"keypress",this.dz);this.Km.push(Li("page-scroll",this.Kx,this))};f.tw=function(a){a&&!a.disabled&&(h9(this,a),this.click(a))};
f.cz=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=i9(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.pz:"table"==e&&(g=this.oz);g&&j9(this,a,b,c,x(g,this))}}};f.Kx=function(){var a=this.A;if(0!=Lb(a))for(var b in a){var c=a[b],d=ne(c.activeButtonNode||c.parentNode,ux(this));if(void 0==d||void 0==c)break;k9(this,d,c,!0)}};
function j9(a,b,c,d,e){var g=Tw(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=l9(a,c))?(b=Zd(d),"a"==b.tagName.toLowerCase()?GF(b.href):Rh(b,"click")):h&&m9(a,b):g?27==d.keyCode?(l9(a,c),m9(a,b)):e(b,c,d):(a=rh(b,ux(a,"reverse"))?38:40,d.keyCode==a&&(Rh(b,"click"),d.preventDefault()))}f.dz=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=i9(this,a),Tw(a)&&c.preventDefault())};function l9(a,b){var c=ux(a,"menu-item-highlight"),d=Hd(c,b);d&&th(d,c);return d}
function n9(a,b,c){N(c,ux(a,"menu-item-highlight"));var d=c.getAttribute("id");d||(d=ux(a,"item-id-"+ka(c)),c.setAttribute("id",d));b.setAttribute("aria-activedescendant",d)}f.oz=function(a,b,c){var d=l9(this,b);b=Ah("table",b);var e=Ah("tr",b),e=Gd("td",null,e).length;b=Gd("td",null,b);d=o9(d,b,e,c);-1!=d&&(n9(this,a,b[d]),c.preventDefault())};f.pz=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=l9(this,b);b=eb(Gd("li",null,b),Tw);d=o9(d,b,1,c);n9(this,a,b[d]);c.preventDefault()}};
function o9(a,b,c,d){var e=b.length;a=cb(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 p9(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=ux(a,"menu-mask"),b.iframeMask=c);return c}
function k9(a,b,c,d){var e=ne(b,ux(a,"group")),g=!!zi(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=dh(b);if(rh(b,ux(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}rh(b,"flip")&&(rh(b,ux(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;zi(b,"button-has-sibling-menu")?p=Sg(e):zi(b,"button-menu-root-container")&&(p=q9(b));dd&&!rd("8")&&(p=null);var r;p&&(r=dh(p),r=new yg(-r.top,r.left,r.top,-r.left));p=new Qc(0,1);rh(b,ux(a,"center-menu"))&&(p.x-=Math.round((ah(c).width-ah(b).width)/
2));d&&(p.y+=Ld(document).y);if(a=p9(a,b))b=ah(c),a.style.width=b.width+"px",a.style.height=b.height+"px",E6(e,g,a,h,p,r),d&&Ig(a,"position","fixed");E6(e,g,c,h,p,r)}function q9(a){if(zi(a,"button-menu-root-container")){var b=zi(a,"button-menu-root-container");return ne(a,b)}return document.body}
f.gu=function(a){if(a){var b=i9(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;zi(a,"button-has-sibling-menu")?c=a.parentNode:c=q9(a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=p9(this,a);d&&c.appendChild(d);(c=!!zi(a,"button-menu-fixed"))&&(this.A[xh(a).toString()]=b);k9(this,a,b,c);Pi("yt-uix-button-menu-before-show",a,b);Uw(b);this.o(a,"button-menu-action",
!0);N(a,ux(this,"active"));b=x(this.dq,this,a,!1);c=x(this.dq,this,a,!0);d=x(this.mD,this,a,void 0);this.Nf&&i9(this,this.Nf)==i9(this,a)||this.Nf&&m9(this,this.Nf);Oi("yt-uix-button-menu-show",a);Mh(this.j);this.j=[P(document,"click",c),P(document,"contextmenu",b),P(window,"resize",d)];this.Nf=a}}};
function m9(a,b){if(b){var c=i9(a,b);if(c){a.Nf=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Vw(c);a.o(b,"button-menu-action",!1);var d=p9(a,b),e=xh(c).toString();delete a.A[e];L(function(){d&&d.parentNode&&d.parentNode.removeChild(d);c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}var e=ne(b,ux(a,"group")),g=[ux(a,"active")];
e&&g.push(ux(a,"group-active"));uh(b,g);Oi("yt-uix-button-menu-hide",b);Mh(a.j);a.j.length=0}}f.mD=function(a,b){var c=i9(this,a);if(c){b&&(b instanceof Hc?c.innerHTML=Jc(b):ee(c,b));var d=!!zi(a,"button-menu-fixed");k9(this,a,c,d)}};f.getContent=function(a){return Hd(ux(this,"content"),a)};
f.dq=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=ne(c,ux(this));if(d){var d=i9(this,d),e=i9(this,a);if(d==e)return}var d=ne(c,ux(this,"menu")),e=d==i9(this,a),g=rh(c,ux(this,"menu-item")),h=rh(c,ux(this,"menu-close"));if(!d||e&&(g||h))if(m9(this,a),d&&b&&zi(a,"button-menu-indicate-selected")){if(a=Hd(ux(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);r9(this,d,c)}};function r9(a,b,c){var d=ux(a,"menu-item-selected");a=Fd(d,b);D(a,function(a){th(a,d)});N(c.parentNode,d)}function i9(a,b){if(!b.widgetMenu){var c=zi(b,"button-menu-id"),c=c&&Ed(c),d=ux(a,"menu");c?sh(c,[d,ux(a,"menu-external")]):c=Hd(d,b);b.widgetMenu=c}return b.widgetMenu}
function h9(a,b){if(zi(b,"button-toggle")){var c=ne(b,ux(a,"group")),d=ux(a,"toggled"),e=rh(b,d);if(c&&zi(c,"button-toggle-group")){var g=zi(c,"button-toggle-group"),c=Fd(ux(a),c);D(c,function(a){a!=b||"optional"==g&&e?(th(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"),vh(b,d)}}
f.click=function(a){if(i9(this,a)){var b=i9(this,a),c=ne(b.activeButtonNode||b.parentNode,ux(this));c&&c!=a?(m9(this,c),L(x(this.gu,this,a),1)):Tw(b)?m9(this,a):this.gu(a);a.focus()}this.o(a,"button-action")};zx(g9);zx(u7);t("yt.tracking.share")||q("yt.tracking.share",RE,void 0);t("yt.net.ping")||q("yt.net.ping.send",og,void 0);t("yt.window.popup")||(q("yt.window.popup",IF,void 0),q("yt.window.open",HF,void 0));q("yt.player.Application.create",K8.A,void 0);q("yt.player.Application.createWebComponent",K8.B,void 0);var s9=t("ytcsi.tick"),t9=t("ytcsi.info");s9&&(s9("pe"),window.performance&&window.performance.now&&t9("h5jse",window.performance.now()));})();
