(function(){var f,aa=aa||{},m=this;function n(a){return void 0!==a}function ba(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 q(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 ca(){}function da(a){a.getInstance=function(){return a.Db?a.Db:a.Db=new a}}
function fa(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 ga(a){return null!=a}function ha(a){return"array"==fa(a)}function ia(a){var b=fa(a);return"array"==b||"object"==b&&"number"==typeof a.length}function s(a){return"string"==typeof a}function ja(a){return"number"==typeof a}function ka(a){return"function"==fa(a)}function la(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ma(a){return a[na]||(a[na]=++oa)}
var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(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 u(a,b,c){u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return u.apply(null,arguments)}function ra(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 sa(a,b){for(var c in b)a[c]=b[c]}var v=Date.now||function(){return+new Date};
function w(a,b){function c(){}c.prototype=b.prototype;a.G=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.KE=function(a,c,g){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}}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 u.apply(null,c)}return u(this,a)};function ta(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ta);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}w(ta,Error);ta.prototype.name="CustomError";var ua;function va(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function wa(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}function xa(a){return/^[\s\xa0]*$/.test(a)}function x(a){return xa(ya(a))}function za(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Aa(a){return encodeURIComponent(String(a))}function Ba(a){return decodeURIComponent(a.replace(/\+/g," "))}
function Ca(a){if(!Da.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ea,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Fa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ga,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ha,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ia,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ja,"&#0;"));return a}var Ea=/&/g,Fa=/</g,Ga=/>/g,Ha=/"/g,Ia=/'/g,Ja=/\x00/g,Da=/[\x00&<>"']/;function Ka(a){return La(a,"&")?"document"in m?Ma(a):Na(a):a}
function Ma(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Oa,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 Na(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 Oa=/&([^;\s<&]+);?/g;function La(a,b){return-1!=a.indexOf(b)}function Pa(a,b){return La(a.toLowerCase(),b.toLowerCase())}function Qa(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}
function Ra(a,b){return Array(b+1).join(a)}function Sa(a){a=n(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return Ra("0",Math.max(0,2-b))+a}function ya(a){return null==a?"":String(a)}function Ta(a){return Array.prototype.join.call(arguments,"")}
function Ua(a,b){for(var c=0,d=za(String(a)).split("."),e=za(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 t=p.exec(k)||["","",""],y=r.exec(l)||["","",""];if(0==t[0].length&&0==y[0].length)break;c=Va(0==t[1].length?0:parseInt(t[1],10),0==y[1].length?0:parseInt(y[1],10))||Va(0==t[2].length,0==y[2].length)||Va(t[2],y[2])}while(0==c)}return c}function Va(a,b){return a<b?-1:a>b?1:0}
function Wa(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b}var Xa=2147483648*Math.random()|0;function Ya(){return"goog_"+Xa++}function Za(a){var b=Number(a);return 0==b&&xa(a)?NaN:b}function $a(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function ab(a){var b=s(void 0)?Qa(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};function bb(){};function cb(a){return a[a.length-1]}
var db=Array.prototype,eb=db.indexOf?function(a,b,c){return db.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(s(a))return s(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},fb=db.lastIndexOf?function(a,b,c){return db.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(s(a))return s(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},z=db.forEach?function(a,b,c){db.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},gb=db.filter?function(a,b,c){return db.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=s(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},A=db.map?function(a,b,c){return db.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=s(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,
g[h],h,a));return e},hb=db.some?function(a,b,c){return db.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},ib=db.every?function(a,b,c){return db.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(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 B(a,b,c){b=kb(a,b,c);return 0>b?null:s(a)?a.charAt(b):a[b]}
function kb(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1}function lb(a,b){var c=mb(a,b,void 0);return 0>c?null:s(a)?a.charAt(c):a[c]}function mb(a,b,c){for(var d=s(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 C(a,b){return 0<=eb(a,b)}function E(a){return 0==a.length}function nb(a){if(!ha(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function ob(a,b){C(a,b)||a.push(b)}
function pb(a,b){var c=eb(a,b),d;(d=0<=c)&&qb(a,c);return d}function qb(a,b){db.splice.call(a,b,1)}function rb(a,b){var c=kb(a,b,void 0);0<=c&&qb(a,c)}function sb(a){return db.concat.apply(db,arguments)}function tb(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 ub(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ha(d)||(e=ia(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var g=a.length,h=d.length,k=0;k<h;k++)a[g+k]=d[k];else a.push(d)}}function vb(a,b,c,d){db.splice.apply(a,wb(arguments,1))}function wb(a,b,c){return 2>=arguments.length?db.slice.call(a,b):db.slice.call(a,b,c)}
function xb(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++],g=la(e)?"o"+ma(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,g)||(b[g]=!0,a[c++]=e)}a.length=c}function yb(a,b,c){c=c||zb;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 Ab(a,b){a.sort(b||zb)}function Bb(a,b){var c=zb;Ab(a,function(a,e){return c(a[b],e[b])})}
function Cb(a,b,c){if(!ia(a)||!ia(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 zb(a,b){return a>b?1:a<b?-1:0}function Db(a,b){return a===b}function Eb(a,b,c){c=yb(a,b,c);0>c&&vb(a,-(c+1),0,b)}function Fb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];ha(d)?b.push.apply(b,Fb.apply(null,d)):b.push(d)}return b};function Gb(a,b,c){return Math.min(Math.max(a,b),c)}function Hb(a,b,c){return a+c*(b-a)};function F(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=F.prototype;f.clone=function(){return new F(this.x,this.y)};function Ib(a,b){return new F(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=ja(b)?b:a;this.x*=a;this.y*=c;return this};function G(a,b){this.width=a;this.height=b}function Jb(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=G.prototype;f.clone=function(){return new G(this.width,this.height)};function Kb(a){return a.width/a.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=ja(b)?b:a;this.width*=a;this.height*=c;return this};function Lb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Mb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Nb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Ob(a){var b=0,c;for(c in a)b++;return b}function Pb(a){for(var b in a)return a[b]}function Qb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Rb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Sb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}
function Tb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Ub(a){var b=Vb;return(a=Tb(b,a,void 0))&&b[a]}function Wb(a){for(var b in a)return!1;return!0}function Xb(a){for(var b in a)delete a[b]}function Yb(a,b){return b in a?a[b]:void 0}function Zb(a){var b={},c;for(c in a)b[c]=a[c];return b}function $b(a){var b=fa(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=$b(a[c]);return b}return a}var ac="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function bc(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var g=0;g<ac.length;g++)c=ac[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function cc(a){var b=arguments.length;if(1==b&&ha(arguments[0]))return cc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var dc;t:{var ec=m.navigator;if(ec){var fc=ec.userAgent;if(fc){dc=fc;break t}}dc=""}function gc(a){return La(dc,a)};var hc,ic,jc,kc,lc;function mc(){return m.navigator||null}var nc=gc("Opera")||gc("OPR"),oc=gc("Trident")||gc("MSIE"),pc=gc("Gecko")&&!Pa(dc,"WebKit")&&!(gc("Trident")||gc("MSIE")),qc=Pa(dc,"WebKit"),rc=qc&&gc("Mobile"),sc=mc(),tc=sc&&sc.platform||"";hc=La(tc,"Mac");ic=La(tc,"Win");jc=!!mc()&&La(mc().appVersion||"","X11");var uc=dc;kc=!!uc&&La(uc,"Android");lc=!!uc&&La(uc,"iPhone");var vc=!!uc&&La(uc,"iPad");function wc(){var a=m.document;return a?a.documentMode:void 0}
var xc=function(){var a="",b;if(nc&&m.opera)return a=m.opera.version,ka(a)?a():a;pc?b=/rv\:([^\);]+)(\)|;)/:oc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:qc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(dc))?a[1]:"");return oc&&(b=wc(),b>parseFloat(a))?String(b):a}(),yc={};function zc(a){return yc[a]||(yc[a]=0<=Ua(xc,a))}function Ac(a){return oc&&Bc>=a}var Cc=m.document,Bc=Cc&&oc?wc()||("CSS1Compat"==Cc.compatMode?parseInt(xc,10):5):void 0;var Dc=!oc||Ac(9),Ec=!pc&&!oc||oc&&Ac(9)||pc&&zc("1.9.1"),Fc=oc&&!zc("9"),Gc=oc||nc||qc;function Hc(a){return a?new Ic(Jc(a)):ua||(ua=new Ic)}function Kc(a){return s(a)?document.getElementById(a):a}function Lc(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Mc("*",a,b)}function H(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Mc("*",a,b)[0];return d||null}
function Mc(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&&C(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function Nc(a,b){Lb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Oc?a.setAttribute(Oc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Oc={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 Pc(a){a=a.document;a=Qc(a)?a.documentElement:a.body;return new G(a.clientWidth,a.clientHeight)}function Rc(a){var b=Sc(a);a=a.parentWindow||a.defaultView;return oc&&zc("10")&&a.pageYOffset!=b.scrollTop?new F(b.scrollLeft,b.scrollTop):new F(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Sc(a){return!qc&&Qc(a)?a.documentElement:a.body||a.documentElement}function Tc(a){return a?a.parentWindow||a.defaultView:window}function I(a,b,c){return Uc(document,arguments)}
function Uc(a,b){var c=b[0],d=b[1];if(!Dc&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ca(d.name),'"');if(d.type){c.push(' type="',Ca(d.type),'"');var e={};bc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(s(d)?c.className=d:ha(d)?c.className=d.join(" "):Nc(c,d));2<b.length&&Vc(a,c,b,2);return c}function Vc(a,b,c,d){function e(c){c&&b.appendChild(s(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ia(g)||la(g)&&0<g.nodeType?e(g):z(Wc(g)?tb(g):g,e)}}
function Xc(a){return document.createElement(a)}function Yc(a){return document.createTextNode(String(a))}function Qc(a){return"CSS1Compat"==a.compatMode}function Zc(a,b){a.appendChild(b)}function $c(a,b){Vc(Jc(a),a,arguments,1)}function ad(a){for(var b;b=a.firstChild;)a.removeChild(b)}function bd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function cd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function dd(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}
function ed(a){return Ec&&void 0!=a.children?a.children:gb(a.childNodes,function(a){return 1==a.nodeType})}function fd(a){return void 0!=a.firstElementChild?a.firstElementChild:gd(a.firstChild)}function gd(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function hd(a){var b;if(Gc&&!(oc&&zc("9")&&!zc("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return la(b)&&1==b.nodeType?b:null}
function id(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 Jc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function jd(a){return a.contentWindow||Tc(a.contentDocument||a.contentWindow.document)}
function kd(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{ad(a);var c=Jc(a);a.appendChild(c.createTextNode(String(b)))}}function ld(a,b){var c=[];return md(a,b,c,!0)?c[0]:void 0}function md(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||md(a,b,c,d))return!0;a=a.nextSibling}return!1}
var nd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},od={IMG:" ",BR:"\n"};function pd(a,b,c){if(!(a.nodeName in nd))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 od)b.push(od[a.nodeName]);else for(a=a.firstChild;a;)pd(a,b,c),a=a.nextSibling}function Wc(a){if(a&&"number"==typeof a.length){if(la(a))return"function"==typeof a.item||"string"==typeof a.item;if(ka(a))return"function"==typeof a.item}return!1}
function qd(a,b,c){if(!b&&!c)return null;var d=b?b.toUpperCase():null;return rd(a,function(a){return(!d||a.nodeName==d)&&(!c||s(a.className)&&C(a.className.split(/\s+/),c))},!0)}function sd(a,b){return qd(a,null,b)}function rd(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 Ic(a){this.b=a||m.document||document}f=Ic.prototype;f.K=function(a){return s(a)?this.b.getElementById(a):a};f.HB=function(a,b,c){return Uc(this.b,arguments)};
f.createElement=function(a){return this.b.createElement(a)};function td(a){return Qc(a.b)}function ud(a){a=a.b;return a.parentWindow||a.defaultView}function vd(a){return Rc(a.b)}f.appendChild=Zc;f.append=$c;f.contains=id;var wd="StopIteration"in m?m.StopIteration:Error("StopIteration");function xd(){}xd.prototype.next=function(){throw wd;};xd.prototype.Wb=function(){return this};function yd(a){if(a instanceof xd)return a;if("function"==typeof a.Wb)return a.Wb(!1);if(ia(a)){var b=0,c=new xd;c.next=function(){for(;;){if(b>=a.length)throw wd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function zd(a,b,c){if(ia(a))try{z(a,b,c)}catch(d){if(d!==wd)throw d;}else{a=yd(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==wd)throw e;}}}function Ad(a){if(ia(a))return tb(a);a=yd(a);var b=[];zd(a,function(a){b.push(a)});return b};function Bd(a,b){this.g={};this.b=[];this.j=this.ea=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 Bd?(c=a.Ma(),d=a.Qa()):(c=Rb(a),d=Qb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=Bd.prototype;f.Na=function(){return this.ea};f.Qa=function(){Cd(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};f.Ma=function(){Cd(this);return this.b.concat()};
f.eg=function(a){for(var b=0;b<this.b.length;b++){var c=this.b[b];if(Dd(this.g,c)&&this.g[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.ea!=a.Na())return!1;var c=b||Ed;Cd(this);for(var d,e=0;d=this.b[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function Ed(a,b){return a===b}f.isEmpty=function(){return 0==this.ea};f.clear=function(){this.g={};this.j=this.ea=this.b.length=0};
f.remove=function(a){return Dd(this.g,a)?(delete this.g[a],this.ea--,this.j++,this.b.length>2*this.ea&&Cd(this),!0):!1};function Cd(a){if(a.ea!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];Dd(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.ea!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],Dd(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}f.get=function(a,b){return Dd(this.g,a)?this.g[a]:b};f.set=function(a,b){Dd(this.g,a)||(this.ea++,this.b.push(a),this.j++);this.g[a]=b};
f.forEach=function(a,b){for(var c=this.Ma(),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 Bd(this)};f.Wb=function(a){Cd(this);var b=0,c=this.b,d=this.g,e=this.j,g=this,h=new xd;h.next=function(){for(;;){if(e!=g.j)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw wd;var h=c[b++];return a?h:d[h]}};return h};function Dd(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Fd(a){return"function"==typeof a.Na?a.Na():ia(a)||s(a)?a.length:Ob(a)}function Gd(a){if("function"==typeof a.Qa)return a.Qa();if(s(a))return a.split("");if(ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Qb(a)}function Hd(a){if("function"==typeof a.Ma)return a.Ma();if("function"!=typeof a.Qa){if(ia(a)||s(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Rb(a)}}
function Id(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(ia(a)||s(a))z(a,b,void 0);else for(var c=Hd(a),d=Gd(a),e=d.length,g=0;g<e;g++)b.call(void 0,d[g],c&&c[g],a)}function Jd(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ia(a)||s(a))return ib(a,b,c);for(var d=Hd(a),e=Gd(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};function Kd(a,b,c,d,e,g,h){var k="";a&&(k+=a+":");c&&(k+="//",b&&(k+=b+"@"),k+=c,d&&(k+=":"+d));e&&(k+=e);g&&(k+="?"+g);h&&(k+="#"+h);return k}var Ld=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Md(a){if(Nd){Nd=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Od(c))&&c!=b.hostname)throw Nd=!0,Error();}}return a.match(Ld)}var Nd=qc;function Od(a){return(a=Md(a)[3]||null)&&decodeURIComponent(a)}
function Pd(a){return(a=Md(a)[5]||null)&&decodeURIComponent(a)}function Qd(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 Rd(a,b,c){if(ha(b))for(var d=0;d<b.length;d++)Rd(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",Aa(b))}function Sd(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Rd(b[c],b[c+1],a);return a}
function Td(a,b){for(var c in b)Rd(c,b[c],a);return a}function Ud(a){a=Td([],a);a[0]="";return a.join("")}function Vd(a,b){return Qd(2==arguments.length?Sd([a],arguments[1],0):Sd([a],arguments,1))}function Wd(a,b){return Qd(Td([a],b))}function Xd(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 Yd=/#|$/,Zd=/[?&]($|#)/;
function $d(a,b,c){for(var d=a.search(Yd),e=0,g,h=[];0<=(g=Xd(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(Zd,"$1"),"&",b];null!=c&&a.push("=",Aa(c));return Qd(a)};function J(a,b){var c;a instanceof J?(this.df=n(b)?b:a.df,ae(this,a.Gb),this.cf=a.cf,be(this,a.Bb),ce(this,a.bf),de(this,a.Mb),ee(this,a.b.clone()),fe(this,a.Pg())):a&&(c=Md(String(a)))?(this.df=!!b,ae(this,c[1]||"",!0),this.cf=ge(c[2]||""),be(this,c[3]||"",!0),ce(this,c[4]),de(this,c[5]||"",!0),ee(this,c[6]||"",!0),fe(this,c[7]||"",!0)):(this.df=!!b,this.b=new he(null,0,this.df))}f=J.prototype;f.Gb="";f.cf="";f.Bb="";f.bf=null;f.Mb="";f.mn="";f.df=!1;
f.toString=function(){var a=[],b=this.Gb;b&&a.push(ie(b,je),":");if(b=this.Bb){a.push("//");var c=this.cf;c&&a.push(ie(c,je),"@");a.push(Aa(b));b=this.bf;null!=b&&a.push(":",String(b))}if(b=this.Mb)this.Bb&&"/"!=b.charAt(0)&&a.push("/"),a.push(ie(b,"/"==b.charAt(0)?ke:le));(b=this.b.toString())&&a.push("?",b);(b=this.Pg())&&a.push("#",ie(b,me));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Gb;c?ae(b,a.Gb):c=!!a.cf;c?b.cf=a.cf:c=!!a.Bb;c?be(b,a.Bb):c=null!=a.bf;var d=a.Mb;if(c)ce(b,a.bf);else if(c=!!a.Mb){if("/"!=d.charAt(0))if(this.Bb&&!this.Mb)d="/"+d;else{var e=b.Mb.lastIndexOf("/");-1!=e&&(d=b.Mb.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(La(e,"./")||La(e,"/.")){for(var d=0==e.lastIndexOf("/",0),e=e.split("/"),g=[],h=0;h<e.length;){var k=e[h++];"."==k?d&&h==e.length&&g.push(""):".."==k?((1<g.length||1==g.length&&""!=g[0])&&
g.pop(),d&&h==e.length&&g.push("")):(g.push(k),d=!0)}d=g.join("/")}else d=e}c?de(b,d):c=""!==a.b.toString();c?ee(b,ge(a.b.toString())):c=!!a.mn;c&&fe(b,a.Pg());return b};f.clone=function(){return new J(this)};function ae(a,b,c){a.Gb=c?ge(b):b;a.Gb&&(a.Gb=a.Gb.replace(/:$/,""));return a}function ne(a){return a.Bb}function be(a,b,c){a.Bb=c?ge(b):b;return a}function ce(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.bf=b}else a.bf=null;return a}
function oe(a){return a.Mb}function de(a,b,c){a.Mb=c?ge(b):b}function ee(a,b,c){b instanceof he?(a.b=b,pe(a.b,a.df)):(c||(b=ie(b,qe)),a.b=new he(b,0,a.df));return a}function re(a){return a.b}function K(a,b,c){a.b.set(b,c);return a}function se(a,b,c){ha(c)||(c=[String(c)]);te(a.b,b,c)}function ue(a,b){return a.b.get(b)}f.Pg=function(){return this.mn};function fe(a,b,c){a.mn=c?ge(b):b;return a}
function ve(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^v()).toString(36));return a}function we(a){return a instanceof J?a.clone():new J(a,void 0)}function xe(a,b,c,d){var e=new J(null,void 0);a&&ae(e,a);b&&be(e,b);c&&ce(e,c);d&&de(e,d);return e}function ge(a){return a?decodeURIComponent(a):""}function ie(a,b){return s(a)?encodeURI(a).replace(b,ye):null}
function ye(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var je=/[#\/\?@]/g,le=/[\#\?:]/g,ke=/[\#\?]/g,qe=/[\#\?@]/g,me=/#/g;function he(a,b,c){this.b=a||null;this.g=!!c}function ze(a){if(!a.Ya&&(a.Ya=new Bd,a.ea=0,a.b))for(var b=a.b.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null,g=null;0<=d?(e=b[c].substring(0,d),g=b[c].substring(d+1)):e=b[c];e=Ba(e);e=Ae(a,e);a.add(e,g?Ba(g):"")}}f=he.prototype;f.Ya=null;f.ea=null;f.Na=function(){ze(this);return this.ea};
f.add=function(a,b){ze(this);this.b=null;a=Ae(this,a);var c=this.Ya.get(a);c||this.Ya.set(a,c=[]);c.push(b);this.ea++;return this};f.remove=function(a){ze(this);a=Ae(this,a);return Dd(this.Ya.g,a)?(this.b=null,this.ea-=this.Ya.get(a).length,this.Ya.remove(a)):!1};f.clear=function(){this.Ya=this.b=null;this.ea=0};f.isEmpty=function(){ze(this);return 0==this.ea};function Be(a,b){ze(a);b=Ae(a,b);return Dd(a.Ya.g,b)}f.eg=function(a){var b=this.Qa();return C(b,a)};
f.Ma=function(){ze(this);for(var a=this.Ya.Qa(),b=this.Ya.Ma(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};f.Qa=function(a){ze(this);var b=[];if(s(a))Be(this,a)&&(b=sb(b,this.Ya.get(Ae(this,a))));else{a=this.Ya.Qa();for(var c=0;c<a.length;c++)b=sb(b,a[c])}return b};f.set=function(a,b){ze(this);this.b=null;a=Ae(this,a);Be(this,a)&&(this.ea-=this.Ya.get(a).length);this.Ya.set(a,[b]);this.ea++;return this};
f.get=function(a,b){var c=a?this.Qa(a):[];return 0<c.length?String(c[0]):b};function te(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.Ya.set(Ae(a,b),tb(c)),a.ea+=c.length)}f.toString=function(){if(this.b)return this.b;if(!this.Ya)return"";for(var a=[],b=this.Ya.Ma(),c=0;c<b.length;c++)for(var d=b[c],e=Aa(d),d=this.Qa(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+Aa(d[g]));a.push(h)}return this.b=a.join("&")};
f.clone=function(){var a=new he;a.b=this.b;this.Ya&&(a.Ya=this.Ya.clone(),a.ea=this.ea);return a};function Ae(a,b){var c=String(b);a.g&&(c=c.toLowerCase());return c}function pe(a,b){b&&!a.g&&(ze(a),a.b=null,a.Ya.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),te(this,e,a))},a));a.g=b};var Ce=/^https?:\/\/([-\w.]+\.youtube(education)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com\/|yt-devenv-shared\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/]+\/|)|play\.google\.com\/)/,De=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,Ee=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/embed\//,
Fe=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,Ge=/^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,He=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,Ie=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Je=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.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]+)?([\/\?\#]|$)/,
Ke=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|corp\.google\.com|googlesyndication\.com|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]+)?([\/\?\#]|$))/,Le=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|(101epmpngvqtgfsf73utp3aomcvh4be6|mb33edaaot4tnevadfqhve4857kpq1rs|ot5106nq9r49sc62k7h52rtfngv5j94j)-a-hangout-opensocial\.googleusercontent\.com\/|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|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Me=window.yt&&window.yt.config_||{};ba("yt.config_",Me,void 0);ba("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Ne=window.yt&&window.yt.msgs_||{};ba("yt.msgs_",Ne,void 0);function Oe(a){Pe(Me,arguments)}function Qe(a){return a in Me?Me[a]:void 0}function L(a,b){ka(a)&&(a=Re(a));return window.setTimeout(a,b)}function Se(a,b){ka(a)&&(a=Re(a));return window.setInterval(a,b)}function N(a){window.clearTimeout(a)}function Te(a){window.clearInterval(a)}
function Re(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Ue(b),b;}}:a}function Ue(a){if(window&&window.yterr){var b=q("yt.www.errors.log");b?b(a,void 0):(b=Qe("ERRORS")||[],b.push([a,void 0]),Oe("ERRORS",b))}}function Ve(a){Pe(Ne,arguments)}function We(a,b,c){var d=b||{};if(a=a in Ne?Ne[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}
function Pe(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 Xe="corp.google.com googleplex.com youtube.com youtube-nocookie.com youtubeeducation.com prod.google.com sandbox.google.com docs.google.com drive.google.com mail.google.com plus.google.com play.google.com googlevideo.com talkgadget.google.com 101epmpngvqtgfsf73utp3aomcvh4be6-a-hangout-opensocial.googleusercontent.com mb33edaaot4tnevadfqhve4857kpq1rs-a-hangout-opensocial.googleusercontent.com ot5106nq9r49sc62k7h52rtfngv5j94j-a-hangout-opensocial.googleusercontent.com survey.g.doubleclick.net".split(" "),
Ye="2mdn.net corp.google.com imasdk.googleapis.com static.doubleclick.net studioapi.doubleclick.net googleads.g.doubleclick.net gstatic.com/doubleclick/studio/innovation/ytplayer".split(" "),Ze="";function $e(a){return a&&a==Ze?!0:af(a,Xe)?(Ze=a,!0):!1}function bf(a){var b=!!a&&-1!=a.search(Je),c=$e(a);b!=c&&Ue(Error(a+" behavior is not consistent"));return c}
function cf(){var a=document.location.toString(),b=!!a&&-1!=a.search(Ee),c=-1!=a.indexOf("/embed/");b!=c&&Ue(Error(a+" behavior is not consistent"));return c}function df(a){var b=!!a&&-1!=a.search(Ke),c=af(a,Ye);c&&!b&&Ue(Error(a+" behavior is not consistent"));return c}function af(a,b){return(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}
function ef(a){a=new J(a);ae(a,document.location.protocol);be(a,document.location.hostname);document.location.port&&ce(a,document.location.port);return a.toString()}function ff(a){a=new J(a);ae(a,document.location.protocol);return a.toString()};var gf={},hf=0,jf=q("yt.net.ping.workerUrl_")||null;ba("yt.net.ping.workerUrl_",jf,void 0);function kf(a,b,c){a&&(c?a&&(a=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Jc(a).body.appendChild(a)):lf(a,b))}function lf(a,b){var c=new Image,d=""+hf++;gf[d]=c;c.onload=c.onerror=function(){b&&gf[d]&&b();delete gf[d]};c.src=a;c=eval("null")};function mf(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 nf(a){return eval("("+a+")")}function of(a){return pf(new qf(void 0),a)}function qf(a){this.b=a}
function pf(a,b){var c=[];rf(a,b,c);return c.join("")}
function rf(a,b,c){switch(typeof b){case "string":sf(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(ha(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],rf(a,a.b?a.b.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),sf(g,c),
c.push(":"),rf(a,a.b?a.b.call(b,g,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var tf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},uf=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function sf(a,b){b.push('"',a.replace(uf,function(a){if(a in tf)return tf[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return tf[a]=e+b.toString(16)}),'"')};function vf(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=vf.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new vf(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof vf?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=ja(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function wf(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=wf.prototype;f.clone=function(){return new wf(this.left,this.top,this.width,this.height)};function xf(a){return new wf(a.left,a.top,a.right-a.left,a.bottom-a.top)}function yf(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1}
f.contains=function(a){return a instanceof wf?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 zf(a){return new G(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=ja(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Af(a){Af[" "](a);return a}Af[" "]=ca;function Bf(){return qc?"Webkit":pc?"Moz":oc?"ms":nc?"O":null}function Cf(){return qc?"-webkit":pc?"-moz":oc?"-ms":nc?"-o":null}function Df(a,b){if(b&&a in b)return a;var c=Bf();return c?(c=c.toLowerCase(),c+=ab(a),!n(b)||c in b?c:null):null};function Ef(a,b,c){s(b)?Ff(a,c,b):Lb(b,ra(Ff,a))}function Ff(a,b,c){(c=Gf(a,c))&&(a.style[c]=b)}function Gf(a,b){var c=$a(b);if(void 0===a.style[c]){var d=Bf()+ab(c);if(void 0!==a.style[d])return d}return c}function Hf(a,b){var c=Jc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function If(a,b){return Hf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Jf(a,b,c){var d,e=pc&&(hc||jc)&&zc("1.9");b instanceof F?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Kf(d,e);a.style.top=Kf(b,e)}function Lf(a){return new F(a.offsetLeft,a.offsetTop)}function Mf(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}oc&&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 Nf(a){if(oc&&!Ac(8))return a.offsetParent;var b=Jc(a),c=If(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=If(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 Of(a){for(var b=new vf(0,Infinity,Infinity,0),c=Hc(a),d=c.b.body,e=c.b.documentElement,g=Sc(c.b);a=Nf(a);)if(!(oc&&0==a.clientWidth||qc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=If(a,"overflow")){var h=Pf(a),k;k=a;if(pc&&!zc("1.9")){var l=parseFloat(Hf(k,"borderLeftWidth"));if(Qf(k))var p=k.offsetWidth-k.clientWidth-l-parseFloat(Hf(k,"borderRightWidth")),l=l+p;k=new F(l,parseFloat(Hf(k,"borderTopWidth")))}else k=new F(k.clientLeft,k.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=Pc(ud(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 Pf(a){var b,c=Jc(a),d=If(a,"position"),e=pc&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),g=new F(0,0),h;b=c?Jc(c):document;h=!oc||Ac(9)||td(Hc(b))?b.documentElement:b.body;if(a==h)return g;if(a.getBoundingClientRect)b=Mf(a),a=vd(Hc(c)),g.x=b.left+a.x,g.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),g.x=b.screenX-a.screenX,g.y=b.screenY-a.screenY;else{b=a;do{g.x+=b.offsetLeft;g.y+=
b.offsetTop;b!=a&&(g.x+=b.clientLeft||0,g.y+=b.clientTop||0);if(qc&&"fixed"==If(b,"position")){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(nc||qc&&"absolute"==d)g.y-=c.body.offsetTop;for(b=a;(b=Nf(b))&&b!=c.body&&b!=h;)g.x-=b.scrollLeft,nc&&"TR"==b.tagName||(g.y-=b.scrollTop)}return g}
function Rf(a){var b;if(a.getBoundingClientRect)b=Mf(a),b=new F(b.left,b.top);else{b=vd(Hc(a));var c=Pf(a);b=new F(c.x-b.x,c.y-b.y)}if(pc&&!zc(12)){i:{c=$a("transform");if(void 0===a.style[c]&&(c=Bf()+ab(c),void 0!==a.style[c])){c=Cf()+"-transform";break i}c="transform"}a=(a=If(a,c)||If(a,"transform"))?(a=a.match(Sf))?new F(parseFloat(a[1]),parseFloat(a[2])):new F(0,0):new F(0,0);a=new F(b.x+a.x,b.y+a.y)}else a=b;return a}
function Tf(a){if(1==a.nodeType)return Rf(a);var b=ka(a.fC),c=a;a.targetTouches?c=a.targetTouches[0]:b&&a.b.targetTouches&&(c=a.b.targetTouches[0]);return new F(c.clientX,c.clientY)}function Uf(a,b,c){if(b instanceof G)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Vf(a,b);a.style.height=Kf(c,!0)}function Kf(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Vf(a,b){a.style.width=Kf(b,!0)}function Wf(a){return Xf(a)}
function Xf(a){var b=Yf;if("none"!=If(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 Yf(a){var b=a.offsetWidth,c=a.offsetHeight,d=qc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new G(b,c):(a=Mf(a),new G(a.right-a.left,a.bottom-a.top))}function Zf(a){var b=Pf(a);a=Xf(a);return new wf(b.x,b.y,a.width,a.height)}
function $f(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 ag(a,b){a.style.display=b?"":"none"}function Qf(a){return"rtl"==If(a,"direction")}function cg(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 dg(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?cg(a,c):0}var eg={thin:2,medium:4,thick:6};function fg(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 eg?eg[c]:cg(a,c)}
function gg(a){if(oc&&!Ac(9)){var b=fg(a,"borderLeft"),c=fg(a,"borderRight"),d=fg(a,"borderTop");a=fg(a,"borderBottom");return new vf(d,c,a,b)}b=Hf(a,"borderLeftWidth");c=Hf(a,"borderRightWidth");d=Hf(a,"borderTopWidth");a=Hf(a,"borderBottomWidth");return new vf(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var hg=/[^\d]+$/,ig={cm:1,"in":1,mm:1,pc:1,pt:1},jg={em:1,ex:1};
function kg(a){var b=If(a,"fontSize"),c;c=(c=b.match(hg))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(oc){if(c in ig)return cg(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in jg)return a=a.parentNode,c=If(a,"fontSize"),cg(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;cd(c);return b}var Sf=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function lg(a){if(a.classList)return a.classList;a=a.className;return s(a)&&a.match(/\S+/g)||[]}function mg(a,b){return a.classList?a.classList.contains(b):C(lg(a),b)}function O(a,b){a.classList?a.classList.add(b):mg(a,b)||(a.className+=0<a.className.length?" "+b:b)}function ng(a,b){if(a.classList)z(b,function(b){O(a,b)});else{var c={};z(lg(a),function(a){c[a]=!0});z(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function P(a,b){a.classList?a.classList.remove(b):mg(a,b)&&(a.className=gb(lg(a),function(a){return a!=b}).join(" "))}function og(a,b){a.classList?z(b,function(b){P(a,b)}):a.className=gb(lg(a),function(a){return!C(b,a)}).join(" ")}function Q(a,b,c){c?O(a,b):P(a,b)}function pg(a,b){var c=!mg(a,b);Q(a,b,c);return c};function qg(a,b,c){a&&(a.dataset?a.dataset[rg(b)]=c:a.setAttribute("data-"+b,c))}function sg(a,b){return a?a.dataset?a.dataset[rg(b)]:a.getAttribute("data-"+b):null}function tg(a,b){a&&(a.dataset?delete a.dataset[rg(b)]:a.removeAttribute("data-"+b))}var ug={};function rg(a){return ug[a]||(ug[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var vg=qc?"webkit":pc?"moz":oc?"ms":nc?"o":"";function wg(a){var b=a.__yt_uid_key;b||(b=xg(),a.__yt_uid_key=b);return b}var xg=q("yt.dom.getNextId_");if(!xg){xg=function(){return++yg};ba("yt.dom.getNextId_",xg,void 0);var yg=0}function zg(a,b){var c=Mc(a,null,b);return c.length?c[0]:null}function Ag(a,b){if(a in b)return b[a];var c=vg+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function Bg(a,b){var c;hb(a,function(a){c=Ag(a,b);return!!c});return c}
function Cg(a){Q(document.body,"hide-players",!0);a&&Q(a,"preserve-players",!0)}function Dg(){Q(document.body,"hide-players",!1);var a=Lc("preserve-players");z(a,function(a){P(a,"preserve-players")})};function Eg(a){if(a=a||window.event){for(var b in a)b in Fg||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Rc=a;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName&&b}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.b=a.pageX;this.g=a.pageY}}function Gg(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.b=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.g=a.clientY+b}}
function Hg(a){n(a.b)||Gg(a);return a.b}function Ig(a){n(a.g)||Gg(a);return a.g}f=Eg.prototype;f.Rc=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.Rc.returnValue=!1;this.Rc.preventDefault&&this.Rc.preventDefault()};
f.stopPropagation=function(){this.Rc.cancelBubble=!0;this.Rc.stopPropagation&&this.Rc.stopPropagation()};f.stopImmediatePropagation=function(){this.Rc.cancelBubble=!0;this.Rc.stopImmediatePropagation&&this.Rc.stopImmediatePropagation()};var Fg={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Jg=q("yt.events.listeners_")||{};ba("yt.events.listeners_",Jg,void 0);var Kg=q("yt.events.counter_")||{count:0};ba("yt.events.counter_",Kg,void 0);function Lg(a,b,c,d){return Tb(Jg,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function R(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Lg(a,b,c,d);if(e)return e;var e=++Kg.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new Eg(d);if(!rd(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Eg(b);b.currentTarget=a;return c.call(a,b)};h=Re(h);Jg[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 Mg(a,b){var c;c=R(a,"playing",function(){Ng(c);b.apply(a,arguments)},void 0)}function Og(a,b,c,d){return Pg(a,b,c,function(a){return mg(a,d)})}
function Pg(a,b,c,d){var e=a||document;return R(e,b,function(a){var b=rd(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Qg(a,b,c){(a=Lg(a,b,c,!1))&&Ng(a)}function Ng(a){a&&("string"==typeof a&&(a=[a]),z(a,function(a){if(a in Jg){var c=Jg[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 Jg[a]}}))}function Rg(a){for(var b in Jg)Jg[b][0]==a&&Ng(b)}
function Sg(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 Tg(){return!!Bg(["fullscreenEnabled","fullScreenEnabled"],document)}function Ug(){return Bg(["fullscreenElement","fullScreenElement"],document)};function Vg(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||Zb(Wg);this.assets=a.assets||{};this.attrs=a.attrs||Zb(Xg);this.params=a.params||Zb(Yg);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}var Wg={enablejsapi:1},Xg={},Yg={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
Vg.prototype.clone=function(){var a=new Vg,b;for(b in this){var c=this[b];"object"==fa(c)?a[b]=Zb(c):a[b]=c}return a};var Zg,$g,ah,bh,ch,dh,eh;eh=dh=ch=bh=ah=$g=Zg=!1;var fh=dc;fh&&(-1!=fh.indexOf("Firefox")?Zg=!0:-1!=fh.indexOf("Camino")?$g=!0:-1!=fh.indexOf("iPhone")||-1!=fh.indexOf("iPod")?ah=!0:-1!=fh.indexOf("iPad")?bh=!0:-1!=fh.indexOf("Chrome")?dh=!0:-1!=fh.indexOf("Android")?ch=!0:-1!=fh.indexOf("Safari")&&(eh=!0));var gh=Zg,hh=$g,ih=ah,jh=bh,kh=ch,lh=dh,mh=eh;var nh=v(),oh=null,ph=Array(50),qh=-1,rh=!1;function sh(){var a=th;uh();oh.push(a);vh(oh)}function wh(a,b){uh();var c=oh,d=xh(a,String(b));E(c)?yh(d):(vh(c),z(c,function(a){a(d)}))}function uh(){oh||(oh=q("yt.mdx.remote.debug.handlers_")||[],ba("yt.mdx.remote.debug.handlers_",oh,void 0))}function yh(a){var b=(qh+1)%50;qh=b;ph[b]=a;rh||(rh=49==b)}function vh(a){var b=ph;if(b[0]){var c=qh,d=rh?c:-1;do{var d=(d+1)%50,e=b[d];z(a,function(a){a(e)})}while(d!=c);ph=Array(50);qh=-1;rh=!1}}
function xh(a,b){var c=(v()-nh)/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 zh(a){a=a||{};this.name=a.name||"";this.id=a.screenId||"";this.token=a.loungeToken||"";this.uuid=a.dialId||""}function Ah(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 Bh(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function Ch(a){return new zh(a)}function Dh(a){return ha(a)?A(a,Ch):[]}
function Eh(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 Fh(a){return ha(a)?"["+A(a,Eh).join(",")+"]":"null"};function Gh(){}Gh.prototype.Uc=!1;Gh.prototype.fa=function(){return this.Uc};Gh.prototype.dispose=function(){this.Uc||(this.Uc=!0,this.J())};function S(a,b){Hh(a,ra(Ih,b))}function Hh(a,b){a.qb||(a.qb=[]);a.qb.push(n(void 0)?u(b,void 0):b)}Gh.prototype.J=function(){if(this.qb)for(;this.qb.length;)this.qb.shift()()};function Jh(a){return a&&"function"==typeof a.fa?a.fa():!1}function Ih(a){a&&"function"==typeof a.dispose&&a.dispose()}
function Kh(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ia(d)?Kh.apply(null,d):Ih(d)}};function Lh(){this.b=[];this.$b={}}w(Lh,Gh);f=Lh.prototype;f.Ur=1;f.uj=0;f.subscribe=function(a,b,c){var d=this.$b[a];d||(d=this.$b[a]=[]);var e=this.Ur;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.Ur=e+3;d.push(e);return e};f.ja=function(a,b,c){if(a=this.$b[a]){var d=this.b;if(a=B(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Ib(a)}return!1};
f.Ib=function(a){if(0!=this.uj)return this.g||(this.g=[]),this.g.push(a),!1;var b=this.b[a];if(b){var c=this.$b[b];c&&pb(c,a);delete this.b[a];delete this.b[a+1];delete this.b[a+2]}return!!b};f.H=function(a,b){var c=this.$b[a];if(c){this.uj++;for(var d=wb(arguments,1),e=0,g=c.length;e<g;e++){var h=c[e];this.b[h+1].apply(this.b[h+2],d)}this.uj--;if(this.g&&0==this.uj)for(;c=this.g.pop();)this.Ib(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.$b[a];b&&(z(b,this.Ib,this),delete this.$b[a])}else this.b.length=0,this.$b={}};f.Na=function(a){if(a){var b=this.$b[a];return b?b.length:0}a=0;for(b in this.$b)a+=this.Na(b);return a};f.J=function(){Lh.G.J.call(this);delete this.b;delete this.$b;delete this.g};var Mh=q("yt.pubsub.instance_")||new Lh;Lh.prototype.subscribe=Lh.prototype.subscribe;Lh.prototype.unsubscribeByKey=Lh.prototype.Ib;Lh.prototype.publish=Lh.prototype.H;Lh.prototype.clear=Lh.prototype.clear;ba("yt.pubsub.instance_",Mh,void 0);var Nh=q("yt.pubsub.subscribedKeys_")||{};ba("yt.pubsub.subscribedKeys_",Nh,void 0);var Oh=q("yt.pubsub.topicToKeys_")||{};ba("yt.pubsub.topicToKeys_",Oh,void 0);var Ph=q("yt.pubsub.isSynchronous_")||{};ba("yt.pubsub.isSynchronous_",Ph,void 0);
var Qh=q("yt.pubsub.skipSubId_")||null;ba("yt.pubsub.skipSubId_",Qh,void 0);function Rh(a,b,c){var d=Sh();if(d){var e=d.subscribe(a,function(){if(!Qh||Qh!=e){var d=arguments,h=function(){Nh[e]&&b.apply(c||window,d)};try{Ph[a]?h():L(h,0)}catch(k){Ue(k)}}},c);Nh[e]=!0;Oh[a]||(Oh[a]=[]);Oh[a].push(e);return e}return 0}function Th(a){var b=Sh();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),z(a,function(a){b.unsubscribeByKey(a);delete Nh[a]}))}
function Uh(a,b){var c=Sh();return c?c.publish.apply(c,arguments):!1}function Vh(a,b){Ph[a]=!0;var c=Sh();c&&c.publish.apply(c,arguments);Ph[a]=!1}function Wh(a){Oh[a]&&(a=Oh[a],z(a,function(a){Nh[a]&&delete Nh[a]}),a.length=0)}function Xh(a){var b=Sh();if(b)if(b.clear(a),a)Wh(a);else for(var c in Oh)Wh(c)}function Sh(){return q("yt.pubsub.instance_")};function Yh(){};function Zh(){}w(Zh,Yh);Zh.prototype.Na=function(){var a=0;zd(this.Wb(!0),function(){a++});return a};Zh.prototype.clear=function(){var a=Ad(this.Wb(!0)),b=this;z(a,function(a){b.remove(a)})};function $h(a){this.b=a}w($h,Zh);f=$h.prototype;f.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};f.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};f.get=function(a){a=this.b.getItem(a);if(!s(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.b.removeItem(a)};
f.Na=function(){return this.b.length};f.Wb=function(a){var b=0,c=this.b,d=new xd;d.next=function(){if(b>=c.length)throw wd;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!s(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.b.clear()};f.key=function(a){return this.b.key(a)};function ai(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a}w(ai,$h);function bi(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a}w(bi,$h);function ci(a){this.b=a}ci.prototype.set=function(a,b){n(b)?this.b.set(a,of(b)):this.b.remove(a)};ci.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return mf(b)}catch(d){throw"Storage: Invalid value was encountered";}};ci.prototype.remove=function(a){this.b.remove(a)};function di(a){this.b=a}w(di,ci);function ei(a){this.data=a}function fi(a){return!n(a)||a instanceof ei?a:new ei(a)}di.prototype.set=function(a,b){di.G.set.call(this,a,fi(b))};di.prototype.g=function(a){a=di.G.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};di.prototype.get=function(a){if(a=this.g(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function gi(a){this.b=a}w(gi,di);function hi(a){var b=a.creation;a=a.expiration;return!!a&&a<v()||!!b&&b>v()}gi.prototype.set=function(a,b,c){if(b=fi(b)){if(c){if(c<v()){gi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=v()}gi.G.set.call(this,a,b)};gi.prototype.g=function(a,b){var c=gi.G.g.call(this,a);if(c)if(!b&&hi(c))gi.prototype.remove.call(this,a);else return c};function ii(a){this.b=a}w(ii,gi);function ji(a,b){var c=[];zd(b,function(a){var b;try{b=ii.prototype.g.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?hi(b)&&c.push(a):c.push(a)},a);return c}function ki(a,b){var c=ji(a,b);z(c,function(a){ii.prototype.remove.call(this,a)},a)}ii.prototype.j=function(){ki(this,this.b.Wb(!0))};function li(a,b,c){var d=c&&0<c?c:0;c=d?v()+1E3*d:0;if((d=d?mi:ni)&&window.JSON){s(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function oi(a){if(!ni&&!mi||!window.JSON)return null;var b;try{b=ni.get(a)}catch(c){}if(!s(b))try{b=mi.get(a)}catch(d){}if(!s(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function pi(a){ni&&ni.remove(a);mi&&mi.remove(a)}var mi,qi=new ai;mi=qi.isAvailable()?new ii(qi):null;var ni,ri=new bi;ni=ri.isAvailable()?new ii(ri):null;function si(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=Ba(h[0]||""),h=Ba(h[1]||"");k in d?ha(d[k])?ub(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function ti(a,b){var c=[];Lb(a,function(a,b){var g=Aa(b),h;ha(a)?h=a:h=[a];z(h,function(a){""==a?c.push(g):c.push(g+"="+Aa(a))})});return c.join(b)}function ui(a){"?"==a.charAt(0)&&(a=a.substr(1));return si(a,"&")}
function vi(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),ui(1<a.length?a[1]:a[0])):{}}var wi=Od;function xi(a){a=Md(a);return Kd(a[1],a[2],a[3],a[4])}function yi(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=ui(d[1]||""),e;for(e in b)d[e]=b[e];return Wd(a,d)+c};var zi=null;"undefined"!=typeof XMLHttpRequest?zi=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(zi=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Ai(a){switch(a&&"status"in a?a.status:-1){case 0:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};function Bi(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Re(b)(l)}var l=zi&&zi();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=Ci(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 Ci(a,b){b=b||{};var c;if(c=Qe("PAGE_CL")&&Qe("PAGE_BUILD_TIMESTAMP")){var d;d||(d=window.location.href);c=Md(a)[1]||null;var e=wi(a);c&&e?(c=d,d=Md(a),c=Md(c),d=d[3]==c[3]&&d[1]==c[1]&&d[4]==c[4]):d=e?wi(d)==e&&(Number(Md(d)[4]||null)||null)==(Number(Md(a)[4]||null)||null):!0;c=d||Di(a)}c&&(b["X-YouTube-Page-CL"]=Qe("PAGE_CL"),b["X-YouTube-Page-Timestamp"]=Qe("PAGE_BUILD_TIMESTAMP"));return b}
function Di(a){var b=["X-YouTube-Page-CL","X-YouTube-Page-Timestamp"],c=Qe("CORS_HEADER_WHITELIST")||{};a=wi(a);if(!a)return!0;var d=c[a];return d?ib(b,function(a){return C(d,a)}):!1}function Ei(a,b){var c=Qe("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.QE&&(!wi(a)||wi(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.gd&&b.gd[c])}
function Fi(a,b){var c=b.format||"JSON";b.PE&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=Qe("XSRF_FIELD_NAME"),e=Qe("XSRF_TOKEN"),g=b.Gh;g&&(g[d]&&delete g[d],a=yi(a,g));var h=b.Ww||"",g=b.gd;Ei(a,b)&&(g||(g={}),g[d]=e);g&&s(h)&&(d=ui(h),bc(d,g),h=Ud(d));var k=!1,l,p=Bi(a,function(a){if(!k){k=!0;l&&N(l);var d=Ai(a),e=null;if(d||400<=a.status&&500>a.status)e=Gi(c,a);if(d)t:{switch(c){case "XML":d=0==parseInt(e&&e.return_code,
10);break t;case "RAW":d=!0;break t}d=!!e}var e=e||{},g=b.context||m;d?b.onSuccess&&b.onSuccess.call(g,a,e):b.onError&&b.onError.call(g,a,e);b.vb&&b.vb.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.jh&&0<b.timeout&&(l=L(function(){k||(k=!0,p.abort(),N(l),b.jh.call(b.context||m,p))},b.timeout))}
function Gi(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=nf(d));break;case "XML":if(d=(d=b.responseXML)?Hi(d):null)c={},z(d.getElementsByTagName("*"),function(a){c[a.tagName]=Ii(a)})}return c}function Hi(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Ii(a){var b="";z(a.childNodes,function(a){b+=a.nodeValue});return b}
var Ji={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"},Ki={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 Li(a,b,c,d){if(Qe("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=xi(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Ji.watch_actions_ajax]=1;Fi(e,{format:"RAW",method:"GET",Gh:g,vb:function(a){var b=ui(a.responseText);b[Ki.watch_actions_ajax]?c&&c():d&&d(a,b)}})}};function Mi(){this.port=this.g="";this.b=!0;var a=document.location.href,b=Number(Md(a)[4]||null)||null||"";b&&(this.port=":"+b);this.g=Od(a)||"";a=dc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ua(a,"10.0")&&(this.b=!1))}function Ni(a,b,c,d){var e="/api/lounge";if(n(d)?d:a.b)e="https://"+a.g+a.port+"/api/lounge";return Wd(e+b,c||{})};function Oi(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Oi.prototype.id="";Oi.prototype.name="";Oi.prototype.activityId="";Oi.prototype.status="UNKNOWN";function Pi(a){return{id:a.id,name:a.name,activityId:a.activityId,status:a.status}}Oi.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};
function Qi(a){a=a||[];return"["+A(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Ri(){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 Si(a){return A(a,function(a){return{key:a.id,name:a.name}})}function Ti(a){return A(a,function(a){return Pi(a)})}function Ui(a){return A(a,function(a){return new Oi(a)})}function Vi(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function Wi(a,b){return B(a,function(a){return a.id==b})}
function Xi(a,b){return B(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function Yi(a,b){return B(a,function(a){return a.id==b||a.uuid==b})};function Zi(){this.M=new Lh;S(this,this.M)}w(Zi,Gh);Zi.prototype.subscribe=function(a,b,c){return this.fa()?0:this.M.subscribe(a,b,c)};Zi.prototype.ja=function(a,b,c){return this.fa()?!1:this.M.ja(a,b,c)};Zi.prototype.Ib=function(a){return this.fa()?!1:this.M.Ib(a)};Zi.prototype.H=function(a,b){return this.fa()?!1:this.M.H.apply(this.M,arguments)};function $i(a){Zi.call(this);this.j=a;this.g=[]}w($i,Zi);$i.prototype.On=function(){return this.g};$i.prototype.contains=function(a){return!!Xi(this.g,a)};$i.prototype.get=function(a){return Yi(this.g,a)};$i.prototype.info=function(a){wh(this.j,a)};function aj(a){this.b=a}var bj=/\s*;\s*/;f=aj.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(v()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+g};
f.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(bj),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.Ma=function(){return cj(this).keys};f.Qa=function(){return cj(this).$r};f.isEmpty=function(){return!this.b.cookie};f.Na=function(){return this.b.cookie?(this.b.cookie||"").split(bj).length:0};
f.eg=function(a){for(var b=cj(this).$r,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=cj(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function cj(a){a=(a.b.cookie||"").split(bj);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,$r:c}}var dj=new aj(document);dj.g=3950;function ej(a,b){dj.set(""+a,b,void 0,"/","youtube.com")};function fj(){var a=gj(),b=hj();C(a,b);ij()&&Eb(a,b);a=jj(a);E(a)?dj.remove("remote_sid","/","youtube.com"):ej("remote_sid",a.join(","))}function gj(){var a=oi("yt-remote-connected-devices")||[];Ab(a);return a}function jj(a){if(E(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return A(a,function(a,b){return 0==b?a:a.substring(c.length)})}function kj(a){li("yt-remote-connected-devices",a,86400)}
function hj(){if(lj)return lj;var a=oi("yt-remote-device-id");a||(a=Ri(),li("yt-remote-device-id",a,31536E3));for(var b=gj(),c=1,d=a;C(b,d);)c++,d=a+"#"+c;return lj=d}function mj(){return oi("yt-remote-session-browser-channel")}function ij(){return oi("yt-remote-session-screen-id")}
function nj(a){5<a.length&&(a=a.slice(a.length-5));var b=A(oj(),function(a){return a.loungeToken}),c=A(a,function(a){return a.loungeToken});ib(c,function(a){return!C(b,a)})&&li("yt-remote-lounge-token-expiration",!0,86400);li("yt-remote-local-screens",a,31536E3)}function oj(){return oi("yt-remote-local-screens")||[]}function pj(){return oi("yt-remote-online-screens")||[]}function qj(a){li("yt-remote-online-dial-devices",a,30)}function rj(){return oi("yt-remote-online-dial-devices")||[]}
function sj(a){a||pi("yt-remote-session-screen-id");fj();a=gj();pb(a,hj());kj(a)}var lj="";function tj(){return!!oi("yt-remote-cast-installed")}function uj(){var a=oi("yt-remote-cast-receiver");return a?a.friendlyName:null}function vj(){return tj()?xj()?yj.getCastSession():(wj("getCastSelector: Cast is not initialized."),null):(wj("getCastSelector: Cast API is not installed!"),null)}
function zj(){tj()?xj()?Aj()?(wh("cloudview","Requesting cast selector."),yj.requestSession()):(wh("cloudview","Wait for cast API to be ready to request the session."),Bj.push(Rh("yt-remote-cast2-api-ready",zj))):wj("requestCastSelector: Cast is not initialized."):wj("requestCastSelector: Cast API is not installed!")}function Cj(a){Aj()?xj().setLaunchParams(a):wj("setLaunchParams called before ready.")}var yj=null;function xj(){yj||(yj=q("yt.mdx.remote.cloudview.instance_"));return yj}
function wj(a){wh("cloudview",a)}function Aj(){return!!q("yt.mdx.remote.cloudview.apiReady_")}var Bj=[];function Dj(a){a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.b=a.user||"")}Dj.prototype.id="";Dj.prototype.name="";Dj.prototype.app="";Dj.prototype.type="REMOTE_CONTROL";Dj.prototype.b="";Dj.prototype.equals=function(a){return a?this.id==a.id:!1};function Ej(a,b){this.action=a;this.params=b||null};function Fj(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Gj(a){wh("CAST",a)}function th(a){var b=Hj();b&&b.logMessage&&b.logMessage(a)}function Ij(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Jj.length;)Jj.shift()()}
function Kj(){if(!q("yt.mdx.remote.castv2_")&&!Lj&&(E(Mj)&&ub(Mj,rj()),Fj())){var a=Hj();a?(a.removeReceiverListener("YouTube",Nj),a.addReceiverListener("YouTube",Nj),Gj("API initialized in the other binary")):(a=new cast.Api,Oj(a),a.addReceiverListener("YouTube",Nj),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){L(function(){window.location.reload(!0)},1E3)}),sh(),Gj("API initialized"));Lj=!0}}
function Pj(){var a=Hj();if(a){Gj("API disposed");var b=q("yt.mdx.remote.debug.handlers_");pb(b||[],th);a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(ca);a.removeReceiverListener("YouTube",Nj);Oj(null)}Lj=!1;Jj=null;Qg(window,"message",Ij)}function Qj(a){var b=kb(Mj,function(b){return b.id==a.id});0<=b&&(Mj[b]=Pi(a))}
function Nj(a){a.length&&Gj("Updating receivers: "+of(a));Rj(a);Uh("yt-remote-cast-device-list-update");z(Sj(),function(a){Tj(a.id)});z(a,function(a){if(a.isTabProjected){var c=Uj(a.id);Gj("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");L(function(){Uh("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function Vj(a,b){Gj("Updating "+a+" activity status: "+of(b));var c=Uj(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=""),Qj(c),Uh("yt-remote-cast-device-status-update",c)):Gj("Device not found")}function Sj(){Kj();return Ui(Mj)}
function Rj(a){a=A(a,function(a){var c={id:a.id,name:Ka(a.name)};if(a=Uj(a.id))c.activityId=a.activityId,c.status=a.status;return c});nb(Mj);ub(Mj,a)}function Uj(a){var b=Sj();return B(b,function(b){return b.id==a})||null}function Tj(a){var b=Uj(a),c=Hj();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");Vj(a,b)})}
function Wj(a){Kj();var b=Uj(a),c=Hj();c&&b&&b.activityId?(Gj("Stopping cast activity"),c.stopActivity(b.activityId,ra(Vj,a))):Gj("Dropping cast activity stop")}function Hj(){return q("yt.mdx.remote.castapi.api_")}function Oj(a){ba("yt.mdx.remote.castapi.api_",a,void 0)}var Lj=!1,Jj=null,Mj=q("yt.mdx.remote.castapi.devices_")||[];ba("yt.mdx.remote.castapi.devices_",Mj,void 0);function Xj(a){this.b=new Bd;if(a){a=Gd(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function Yj(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ma(a):b.substr(0,1)+a}f=Xj.prototype;f.Na=function(){return this.b.Na()};f.add=function(a){this.b.set(Yj(a),a)};f.removeAll=function(a){a=Gd(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.b.remove(Yj(a))};f.clear=function(){this.b.clear()};f.isEmpty=function(){return this.b.isEmpty()};
f.contains=function(a){a=Yj(a);return Dd(this.b.g,a)};f.Qa=function(){return this.b.Qa()};f.clone=function(){return new Xj(this)};f.equals=function(a){return this.Na()==Fd(a)&&Zj(this,a)};function Zj(a,b){var c=Fd(b);if(a.Na()>c)return!1;!(b instanceof Xj)&&5<c&&(b=new Xj(b));return Jd(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.eg?c.eg(a):ia(c)||s(c)?C(c,a):Sb(c,a)})}f.Wb=function(){return this.b.Wb(!1)};function ak(){};function bk(){this.b=v()}new bk;bk.prototype.set=function(a){this.b=a};bk.prototype.reset=function(){this.set(v())};bk.prototype.get=function(){return this.b};function T(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1;this.Br=!0}T.prototype.J=function(){};T.prototype.dispose=function(){};T.prototype.stopPropagation=function(){this.g=!0};T.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Br=!1};function ck(a){a.stopPropagation()};var dk=!oc||Ac(9),ek=oc&&!zc("9");!qc||zc("528");pc&&zc("1.9b")||oc&&zc("8")||nc&&zc("9.5")||qc&&zc("528");pc&&!zc("8")||oc&&zc("9");var fk="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function gk(a,b){T.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.b=this.state=null;a&&this.init(a,b)}w(gk,T);f=gk.prototype;
f.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(pc){var e;t:{try{Af(d.nodeName);e=!0;break t}catch(g){}e=!1}e||(d=null)}}else"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.b=a;a.defaultPrevented&&this.preventDefault()};f.stopPropagation=function(){gk.G.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};
f.preventDefault=function(){gk.G.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,ek)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.fC=function(){return this.b};f.J=function(){};var hk="closure_listenable_"+(1E6*Math.random()|0);function ik(a){return!(!a||!a[hk])}var jk=0;function kk(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.Pf=!!d;this.Qc=e;this.key=++jk;this.removed=this.tj=!1}function lk(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Qc=null};function mk(a){this.src=a;this.b={};this.g=0}mk.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.b[g];a||(a=this.b[g]=[],this.g++);var h=nk(a,b,d,e);-1<h?(b=a[h],c||(b.tj=!1)):(b=new kk(b,this.src,g,!!d,e),b.tj=c,a.push(b));return b};mk.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=nk(e,b,c,d);return-1<b?(lk(e[b]),qb(e,b),0==e.length&&(delete this.b[a],this.g--),!0):!1};
function ok(a,b){var c=b.type;if(!(c in a.b))return!1;var d=pb(a.b[c],b);d&&(lk(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d}mk.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.b)if(!a||c==a){for(var d=this.b[c],e=0;e<d.length;e++)++b,lk(d[e]);delete this.b[c];this.g--}return b};function pk(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=nk(a,c,d,e));return-1<b?a[b]:null}
function nk(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.Pf==!!c&&g.Qc==d)return e}return-1};var qk="closure_lm_"+(1E6*Math.random()|0),rk={},sk=0;function tk(a,b,c,d,e){if(ha(b)){for(var g=0;g<b.length;g++)tk(a,b[g],c,d,e);return null}c=uk(c);return ik(a)?a.listen(b,c,d,e):vk(a,b,c,!1,d,e)}function vk(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=wk(a);k||(a[qk]=k=new mk(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=xk();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(yk(b.toString()),d);sk++;return c}
function xk(){var a=zk,b=dk?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function Ak(a,b,c,d,e){if(ha(b)){for(var g=0;g<b.length;g++)Ak(a,b[g],c,d,e);return null}c=uk(c);return ik(a)?a.Gd.add(String(b),c,!0,d,e):vk(a,b,c,!0,d,e)}function Bk(a,b,c,d,e){if(ha(b))for(var g=0;g<b.length;g++)Bk(a,b[g],c,d,e);else c=uk(c),ik(a)?a.Fa(b,c,d,e):a&&(a=wk(a))&&(b=pk(a,b,c,!!d,e))&&Ck(b)}
function Ck(a){if(ja(a)||!a||a.removed)return!1;var b=a.src;if(ik(b))return ok(b.Gd,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.Pf):b.detachEvent&&b.detachEvent(yk(c),d);sk--;(c=wk(b))?(ok(c,a),0==c.g&&(c.src=null,b[qk]=null)):lk(a);return!0}function yk(a){return a in rk?rk[a]:rk[a]="on"+a}function Dk(a,b,c,d){var e=1;if(a=wk(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Pf==c&&!g.removed&&(e&=!1!==Ek(g,d))}return Boolean(e)}
function Ek(a,b){var c=a.listener,d=a.Qc||a.src;a.tj&&Ck(a);return c.call(d,b)}
function zk(a,b){if(a.removed)return!0;if(!dk){var c=b||q("window.event"),d=new gk(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){t:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(h){g=!0}if(g||void 0==c.returnValue)c.returnValue=!0}c=[];for(g=d.currentTarget;g;g=g.parentNode)c.push(g);for(var g=a.type,k=c.length-1;!d.g&&0<=k;k--)d.currentTarget=c[k],e&=Dk(c[k],g,!0,d);for(k=0;!d.g&&k<c.length;k++)d.currentTarget=c[k],e&=Dk(c[k],g,!1,d)}return e}return Ek(a,new gk(b,this))}
function wk(a){a=a[qk];return a instanceof mk?a:null}var Fk="__closure_events_fn_"+(1E9*Math.random()>>>0);function uk(a){if(ka(a))return a;a[Fk]||(a[Fk]=function(b){return a.handleEvent(b)});return a[Fk]};function U(){this.Gd=new mk(this);this.ka=this;this.V=null}w(U,Gh);U.prototype[hk]=!0;f=U.prototype;f.ci=function(a){this.V=a};f.addEventListener=function(a,b,c,d){tk(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Bk(this,a,b,c,d)};
f.S=function(a){var b,c=this.V;if(c){b=[];for(var d=1;c;c=c.V)b.push(c),++d}c=this.ka;d=a.type||a;if(s(a))a=new T(a,c);else if(a instanceof T)a.target=a.target||c;else{var e=a;a=new T(d,c);bc(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.g&&0<=h;h--)g=a.currentTarget=b[h],e=Gk(g,d,!0,a)&&e;a.g||(g=a.currentTarget=c,e=Gk(g,d,!0,a)&&e,a.g||(e=Gk(g,d,!1,a)&&e));if(b)for(h=0;!a.g&&h<b.length;h++)g=a.currentTarget=b[h],e=Gk(g,d,!1,a)&&e;return e};
f.J=function(){U.G.J.call(this);this.removeAllListeners();this.V=null};f.listen=function(a,b,c,d){return this.Gd.add(String(a),b,!1,c,d)};f.Fa=function(a,b,c,d){return this.Gd.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.Gd?this.Gd.removeAll(a):0};
function Gk(a,b,c,d){b=a.Gd.b[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var h=b[g];if(h&&!h.removed&&h.Pf==c){var k=h.listener,l=h.Qc||h.src;h.tj&&ok(a.Gd,h);e=!1!==k.call(l,d)&&e}}return e&&!1!=d.Br};function Hk(a,b){this.g=new qf(a);this.b=b?nf:mf}Hk.prototype.stringify=function(a){return pf(this.g,a)};Hk.prototype.parse=function(a){return this.b(a)};function Ik(a){this.g=0;this.j=a||100;this.b=[]}f=Ik.prototype;f.add=function(a){var b=this.b[this.g];this.b[this.g]=a;this.g=(this.g+1)%this.j;return b};f.get=function(a){a=Jk(this,a);return this.b[a]};f.set=function(a,b){a=Jk(this,a);this.b[a]=b};f.Na=function(){return this.b.length};f.isEmpty=function(){return 0==this.b.length};f.clear=function(){this.g=this.b.length=0};f.Qa=function(){for(var a=this.Na(),b=this.Na(),c=[],a=this.Na()-a;a<b;a++)c.push(this.get(a));return c};
f.Ma=function(){for(var a=[],b=this.Na(),c=0;c<b;c++)a[c]=c;return a};f.eg=function(a){for(var b=this.Na(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Jk(a,b){if(b>=a.b.length)throw Error("Out of bounds exception");return a.b.length<a.j?b:(a.g+Number(b))%a.j};function Kk(a,b){U.call(this);this.b=a||1;this.g=b||m;this.j=u(this.by,this);this.k=v()}w(Kk,U);f=Kk.prototype;f.ed=!1;f.vc=null;function Lk(a,b){a.b=b;a.vc&&a.ed?(a.stop(),a.start()):a.vc&&a.stop()}f.by=function(){if(this.ed){var a=v()-this.k;0<a&&a<.8*this.b?this.vc=this.g.setTimeout(this.j,this.b-a):(this.vc&&(this.g.clearTimeout(this.vc),this.vc=null),this.S("tick"),this.ed&&(this.vc=this.g.setTimeout(this.j,this.b),this.k=v()))}};
f.start=function(){this.ed=!0;this.vc||(this.vc=this.g.setTimeout(this.j,this.b),this.k=v())};f.stop=function(){this.ed=!1;this.vc&&(this.g.clearTimeout(this.vc),this.vc=null)};f.J=function(){Kk.G.J.call(this);this.stop();delete this.g};function Mk(a,b,c){if(ka(a))c&&(a=u(a,c));else if(a&&"function"==typeof a.handleEvent)a=u(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function Nk(a){m.clearTimeout(a)};function Ok(a,b,c){this.k=a;this.j=b;this.g=c;this.b=u(this.fy,this)}w(Ok,Gh);f=Ok.prototype;f.gg=!1;f.Lh=0;f.Ve=null;function Pk(a){a.Ve||a.Lh?a.gg=!0:Qk(a)}f.stop=function(){this.Ve&&(Nk(this.Ve),this.Ve=null,this.gg=!1)};f.pause=function(){this.Lh++};f.resume=function(){this.Lh--;this.Lh||!this.gg||this.Ve||(this.gg=!1,Qk(this))};f.J=function(){Ok.G.J.call(this);this.stop()};f.fy=function(){this.Ve=null;this.gg&&!this.Lh&&(this.gg=!1,Qk(this))};function Qk(a){a.Ve=Mk(a.b,a.j);a.k.call(a.g)};function Rk(a){this.j=a;this.g={}}w(Rk,Gh);var Sk=[];f=Rk.prototype;f.listen=function(a,b,c,d){return Tk(this,a,b,c,d)};function Uk(a,b,c,d,e){Tk(a,b,c,d,!1,e)}function Tk(a,b,c,d,e,g){ha(c)||(c&&(Sk[0]=c.toString()),c=Sk);for(var h=0;h<c.length;h++){var k=tk(b,c[h],d||a.handleEvent,e||!1,g||a.j||a);if(!k)break;a.g[k.key]=k}return a}function Vk(a,b,c,d){Wk(a,b,c,d,void 0)}function Xk(a,b,c,d,e){Wk(a,b,c,d,!1,e)}
function Wk(a,b,c,d,e,g){if(ha(c))for(var h=0;h<c.length;h++)Wk(a,b,c[h],d,e,g);else(b=Ak(b,c,d||a.handleEvent,e,g||a.j||a))&&(a.g[b.key]=b)}f.Fa=function(a,b,c,d,e){if(ha(b))for(var g=0;g<b.length;g++)this.Fa(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.j||this,c=uk(c),d=!!d,b=ik(a)?pk(a.Gd,String(b),c,d,e):a?(a=wk(a))?pk(a,b,c,d,e):null:null,b&&(Ck(b),delete this.g[b.key]);return this};f.removeAll=function(){Lb(this.g,Ck);this.g={}};f.J=function(){Rk.G.J.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Yk(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 Zk(){}Zk.prototype.b=null;function $k(a){var b;(b=a.b)||(b={},al(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};var bl;function cl(){}w(cl,Zk);function dl(a){return(a=al(a))?new ActiveXObject(a):new XMLHttpRequest}function al(a){if(!a.g&&"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.g=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.g}bl=new cl;function el(a,b,c,d,e){this.b=a;this.j=c;this.B=d;this.A=e||1;this.kb=45E3;this.k=new Rk(this);this.g=new Kk;Lk(this.g,250)}f=el.prototype;f.Je=null;f.Nc=!1;f.$f=null;f.pn=null;f.nh=null;f.Uf=null;f.ge=null;f.je=null;f.Ie=null;f.jb=null;f.Ah=0;f.Oc=null;f.xj=null;f.Se=null;f.Tg=-1;f.pr=!0;f.Xe=!1;f.Hm=0;f.fj=null;var fl={},gl={};f=el.prototype;f.setTimeout=function(a){this.kb=a};function hl(a,b,c){a.Uf=1;a.ge=ve(b.clone());a.Ie=c;a.o=!0;il(a,null)}
function jl(a,b,c,d,e){a.Uf=1;a.ge=ve(b.clone());a.Ie=null;a.o=c;e&&(a.pr=!1);il(a,d)}function il(a,b){a.nh=v();kl(a);a.je=a.ge.clone();se(a.je,"t",a.A);a.Ah=0;a.jb=a.b.Xm(a.b.lh()?b:null);0<a.Hm&&(a.fj=new Ok(u(a.Gr,a,a.jb),a.Hm));a.k.listen(a.jb,"readystatechange",a.mB);var c=a.Je?Zb(a.Je):{};a.Ie?(a.xj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.jb.send(a.je,a.xj,a.Ie,c)):(a.xj="GET",a.pr&&!qc&&(c.Connection="close"),a.jb.send(a.je,a.xj,null,c));a.b.Lc(1)}
f.mB=function(a){a=a.target;var b=this.fj;b&&3==ll(a)?Pk(b):this.Gr(a)};
f.Gr=function(a){try{if(a==this.jb)t:{var b=ll(this.jb),c=this.jb.g,d=this.jb.getStatus();if(oc&&!Ac(10)||qc&&!zc("420+")){if(4>b)break t}else if(3>b||3==b&&!nc&&!ml(this.jb))break t;this.Xe||4!=b||7==c||(8==c||0>=d?this.b.Lc(3):this.b.Lc(2));nl(this);var e=this.jb.getStatus();this.Tg=e;var g=ml(this.jb);(this.Nc=200==e)?(4==b&&ol(this),this.o?(pl(this,b,g),nc&&this.Nc&&3==b&&(this.k.listen(this.g,"tick",this.Zy),this.g.start())):ql(this,g),this.Nc&&!this.Xe&&(4==b?this.b.ej(this):(this.Nc=!1,kl(this)))):
(this.Se=400==e&&0<g.indexOf("Unknown SID")?3:0,rl(),ol(this),sl(this))}}catch(h){this.jb&&ml(this.jb)}finally{}};function pl(a,b,c){for(var d=!0;!a.Xe&&a.Ah<c.length;){var e=tl(a,c);if(e==gl){4==b&&(a.Se=4,rl(),d=!1);break}else if(e==fl){a.Se=4;rl();d=!1;break}else ql(a,e)}4==b&&0==c.length&&(a.Se=1,rl(),d=!1);a.Nc=a.Nc&&d;d||(ol(a),sl(a))}f.Zy=function(){var a=ll(this.jb),b=ml(this.jb);this.Ah<b.length&&(nl(this),pl(this,a,b),this.Nc&&4!=a&&kl(this))};
function tl(a,b){var c=a.Ah,d=b.indexOf("\n",c);if(-1==d)return gl;c=Number(b.substring(c,d));if(isNaN(c))return fl;d+=1;if(d+c>b.length)return gl;var e=b.substr(d,c);a.Ah=d+c;return e}
function ul(a,b){a.nh=v();kl(a);var c=b?window.location.hostname:"";a.je=a.ge.clone();K(a.je,"DOMAIN",c);K(a.je,"t",a.A);try{a.Oc=new ActiveXObject("htmlfile")}catch(d){ol(a);a.Se=7;rl();sl(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.Oc.open();a.Oc.write(e);a.Oc.close();a.Oc.parentWindow.m=u(a.AB,a);a.Oc.parentWindow.d=u(a.Pr,a,!0);a.Oc.parentWindow.rpcClose=u(a.Pr,a,!1);c=a.Oc.createElement("div");a.Oc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.je+'"></iframe>';a.b.Lc(1)}f.AB=function(a){vl(u(this.EE,this,a),0)};f.EE=function(a){this.Xe||(nl(this),ql(this,a),kl(this))};f.Pr=function(a){vl(u(this.DE,this,a),0)};f.DE=function(a){this.Xe||(ol(this),this.Nc=a,this.b.ej(this),this.b.Lc(4))};f.cancel=function(){this.Xe=!0;ol(this)};function kl(a){a.pn=v()+a.kb;wl(a,a.kb)}function wl(a,b){if(null!=a.$f)throw Error("WatchDog timer not null");a.$f=vl(u(a.aE,a),b)}
function nl(a){a.$f&&(m.clearTimeout(a.$f),a.$f=null)}f.aE=function(){this.$f=null;var a=v();0<=a-this.pn?(2!=this.Uf&&this.b.Lc(3),ol(this),this.Se=2,rl(),sl(this)):wl(this,this.pn-a)};function sl(a){a.b.Tr()||a.Xe||a.b.ej(a)}function ol(a){nl(a);Ih(a.fj);a.fj=null;a.g.stop();a.k.removeAll();if(a.jb){var b=a.jb;a.jb=null;xl(b);b.dispose()}a.Oc&&(a.Oc=null)}function ql(a,b){try{a.b.Vr(a,b),a.b.Lc(4)}catch(c){}};function yl(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;zl(a,b,function(e){e?c(!0):m.setTimeout(function(){yl(a,b,c,d,g)},g)})}}function zl(a,b,c){var d=new Image;d.onload=function(){try{Al(d),c(!0)}catch(a){}};d.onerror=function(){try{Al(d),c(!1)}catch(a){}};d.onabort=function(){try{Al(d),c(!1)}catch(a){}};d.ontimeout=function(){try{Al(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function Al(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function Bl(a){this.b=a;this.g=new Hk(null,!0)}f=Bl.prototype;f.tm=null;f.Zb=null;f.sj=!1;f.mr=null;f.rj=null;f.Qm=null;f.gn=null;f.wc=null;f.Jd=-1;f.rh=null;f.xh=null;f.connect=function(a){this.gn=a;a=Cl(this.b,null,this.gn);rl();this.mr=v();var b=this.b.C;null!=b?(this.rh=b[0],(this.xh=b[1])?(this.wc=1,Dl(this)):(this.wc=2,El(this))):(se(a,"MODE","init"),this.Zb=new el(this,0,void 0,void 0,void 0),this.Zb.Je=this.tm,jl(this.Zb,a,!1,null,!0),this.wc=0)};
function Dl(a){var b=Cl(a.b,a.xh,"/mail/images/cleardot.gif");ve(b);yl(b.toString(),5E3,u(a.NB,a),3,2E3);a.Lc(1)}f.NB=function(a){if(a)this.wc=2,El(this);else{rl();var b=this.b;b.Hc=b.ie.Jd;Fl(b,9)}a&&this.Lc(2)};
function El(a){var b=a.b.D;if(null!=b)rl(),b?(rl(),Gl(a.b,a,!1)):(rl(),Gl(a.b,a,!0));else if(a.Zb=new el(a,0,void 0,void 0,void 0),a.Zb.Je=a.tm,b=a.b,b=Cl(b,b.lh()?a.rh:null,a.gn),rl(),!oc||Ac(10))se(b,"TYPE","xmlhttp"),jl(a.Zb,b,!1,a.rh,!1);else{se(b,"TYPE","html");var c=a.Zb;a=Boolean(a.rh);c.Uf=3;c.ge=ve(b.clone());ul(c,a)}}f.Xm=function(a){return this.b.Xm(a)};f.Tr=function(){return!1};
f.Vr=function(a,b){this.Jd=a.Tg;if(0==this.wc)if(b){try{var c=this.g.parse(b)}catch(d){c=this.b;c.Hc=this.Jd;Fl(c,2);return}this.rh=c[0];this.xh=c[1]}else c=this.b,c.Hc=this.Jd,Fl(c,2);else if(2==this.wc)if(this.sj)rl(),this.Qm=v();else if("11111"==b){if(rl(),this.sj=!0,this.rj=v(),c=this.rj-this.mr,!oc||Ac(10)||500>c)this.Jd=200,this.Zb.cancel(),rl(),Gl(this.b,this,!0)}else rl(),this.rj=this.Qm=v(),this.sj=!1};
f.ej=function(){this.Jd=this.Zb.Tg;if(this.Zb.Nc)0==this.wc?this.xh?(this.wc=1,Dl(this)):(this.wc=2,El(this)):2==this.wc&&(a=!1,(a=!oc||Ac(10)?this.sj:200>this.Qm-this.rj?!1:!0)?(rl(),Gl(this.b,this,!0)):(rl(),Gl(this.b,this,!1)));else{0==this.wc?rl():2==this.wc&&rl();var a=this.b;a.Hc=this.Jd;Fl(a,2)}};f.lh=function(){return this.b.lh()};f.Lc=function(a){this.b.Lc(a)};function Hl(a){U.call(this);this.headers=new Bd;this.M=a||null;this.j=!1;this.I=this.b=null;this.P=this.C="";this.g=0;this.A="";this.k=this.N=this.B=this.L=!1;this.o=0;this.D=null;this.T="";this.F=this.O=!1}w(Hl,U);var Il=/^https?$/i,Jl=["POST","PUT"];function Kl(a,b){a.o=Math.max(0,b)}f=Hl.prototype;
f.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.C+"; newUri="+a);b=b?b.toUpperCase():"GET";this.C=a;this.A="";this.g=0;this.P=b;this.L=!1;this.j=!0;this.b=this.M?dl(this.M):dl(bl);this.I=this.M?$k(this.M):$k(bl);this.b.onreadystatechange=u(this.Fo,this);try{ak(Ll(this,"Opening Xhr")),this.N=!0,this.b.open(b,String(a),!0),this.N=!1}catch(e){ak(Ll(this,"Error opening Xhr: "+e.message));Ml(this,e);return}a=c||"";var g=this.headers.clone();
d&&Id(d,function(a,b){g.set(b,a)});d=B(g.Ma(),Nl);c=m.FormData&&a instanceof m.FormData;!C(Jl,b)||d||c||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g.forEach(function(a,b){this.b.setRequestHeader(b,a)},this);this.T&&(this.b.responseType=this.T);"withCredentials"in this.b&&(this.b.withCredentials=this.O);try{Ol(this),0<this.o&&(this.F=Pl(this.b),ak(Ll(this,"Will abort after "+this.o+"ms if incomplete, xhr2 "+this.F)),this.F?(this.b.timeout=this.o,this.b.ontimeout=u(this.kb,
this)):this.D=Mk(this.kb,this.o,this)),ak(Ll(this,"Sending request")),this.B=!0,this.b.send(a),this.B=!1}catch(h){ak(Ll(this,"Send error: "+h.message)),Ml(this,h)}};function Pl(a){return oc&&zc(9)&&ja(a.timeout)&&n(a.ontimeout)}function Nl(a){return"content-type"==a.toLowerCase()}f.kb=function(){"undefined"!=typeof aa&&this.b&&(this.A="Timed out after "+this.o+"ms, aborting",this.g=8,Ll(this,this.A),this.S("timeout"),xl(this,8))};
function Ml(a,b){a.j=!1;a.b&&(a.k=!0,a.b.abort(),a.k=!1);a.A=b;a.g=5;Ql(a);Rl(a)}function Ql(a){a.L||(a.L=!0,a.S("complete"),a.S("error"))}function xl(a,b){a.b&&a.j&&(Ll(a,"Aborting"),a.j=!1,a.k=!0,a.b.abort(),a.k=!1,a.g=b||7,a.S("complete"),a.S("abort"),Rl(a))}f.J=function(){this.b&&(this.j&&(this.j=!1,this.k=!0,this.b.abort(),this.k=!1),Rl(this,!0));Hl.G.J.call(this)};f.Fo=function(){this.fa()||(this.N||this.B||this.k?Sl(this):this.yC())};f.yC=function(){Sl(this)};
function Sl(a){if(a.j&&"undefined"!=typeof aa)if(a.I[1]&&4==ll(a)&&2==a.getStatus())Ll(a,"Local request error detected and ignored");else if(a.B&&4==ll(a))Mk(a.Fo,0,a);else if(a.S("readystatechange"),4==ll(a)){Ll(a,"Request complete");a.j=!1;try{var b=a.getStatus(),c,d;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break t;default:d=!1}if(!(c=d)){var e;if(e=0===b){var g=Md(String(a.C))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!Il.test(g?g.toLowerCase():"")}c=e}if(c)a.S("complete"),a.S("success");else{a.g=6;var k;try{k=2<ll(a)?a.b.statusText:""}catch(l){k=""}a.A=k+" ["+a.getStatus()+"]";Ql(a)}}finally{Rl(a)}}}function Rl(a,b){if(a.b){Ol(a);var c=a.b,d=a.I[0]?ca:null;a.b=null;a.I=null;b||a.S("ready");try{c.onreadystatechange=d}catch(e){}}}function Ol(a){a.b&&a.F&&(a.b.ontimeout=null);ja(a.D)&&(Nk(a.D),a.D=null)}function ll(a){return a.b?a.b.readyState:0}f.getStatus=function(){try{return 2<ll(this)?this.b.status:-1}catch(a){return-1}};
function ml(a){try{return a.b?a.b.responseText:""}catch(b){return""}}function Ll(a,b){return b+" ["+a.P+" "+a.C+" "+a.getStatus()+"]"};function Tl(a,b,c){this.B=a||null;this.b=1;this.g=[];this.k=[];this.o=new Hk(null,!0);this.C=b||null;this.D=null!=c?c:null}function Ul(a,b){this.b=a;this.map=b;this.context=null}f=Tl.prototype;f.Ih=null;f.Hb=null;f.ab=null;f.jm=null;f.Yi=null;f.ar=null;f.oj=null;f.Yg=0;f.hB=0;f.Cb=null;f.le=null;f.Id=null;f.$e=null;f.ie=null;f.Si=null;f.Ef=-1;f.yr=-1;f.Hc=-1;f.Wg=0;f.Wf=0;f.Ne=8;var Vl=new U;function Wl(a){T.call(this,"statevent",a)}w(Wl,T);
function Xl(a,b){T.call(this,"timingevent",a);this.size=b}w(Xl,T);function Yl(a){T.call(this,"serverreachability",a)}w(Yl,T);f=Tl.prototype;f.connect=function(a,b,c,d,e){rl();this.jm=b;this.Ih=c||{};d&&n(e)&&(this.Ih.OSID=d,this.Ih.OAID=e);this.ie=new Bl(this);this.ie.tm=null;this.ie.g=this.o;this.ie.connect(a)};
f.disconnect=function(){Zl(this);if(3==this.b){var a=this.Yg++,b=this.Yi.clone();K(b,"SID",this.j);K(b,"RID",a);K(b,"TYPE","terminate");$l(this,b);a=new el(this,0,this.j,a,void 0);a.Uf=2;a.ge=ve(b.clone());(new Image).src=a.ge;a.nh=v();kl(a)}am(this)};function Zl(a){if(a.ie){var b=a.ie;b.Zb&&(b.Zb.cancel(),b.Zb=null);b.Jd=-1;a.ie=null}a.ab&&(a.ab.cancel(),a.ab=null);a.Id&&(m.clearTimeout(a.Id),a.Id=null);bm(a);a.Hb&&(a.Hb.cancel(),a.Hb=null);a.le&&(m.clearTimeout(a.le),a.le=null)}
function cm(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");a.g.push(new Ul(a.hB++,b));2!=a.b&&3!=a.b||dm(a)}f.Tr=function(){return 0==this.b};function dm(a){a.Hb||a.le||(a.le=vl(u(a.Or,a),0),a.Wg=0)}f.Or=function(a){this.le=null;em(this,a)};
function em(a,b){if(1==a.b){if(!b){a.Yg=Math.floor(1E5*Math.random());var c=a.Yg++,d=new el(a,0,"",c,void 0);d.Je=null;var e=fm(a),g=a.Yi.clone();K(g,"RID",c);a.B&&K(g,"CVER",a.B);$l(a,g);hl(d,g,e);a.Hb=d;a.b=2}}else 3==a.b&&(b?gm(a,b):0!=a.g.length&&(a.Hb||gm(a)))}
function gm(a,b){var c,d;b?6<a.Ne?(a.g=a.k.concat(a.g),a.k.length=0,c=a.Yg-1,d=fm(a)):(c=b.B,d=b.Ie):(c=a.Yg++,d=fm(a));var e=a.Yi.clone();K(e,"SID",a.j);K(e,"RID",c);K(e,"AID",a.Ef);$l(a,e);c=new el(a,0,a.j,c,a.Wg+1);c.Je=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Hb=c;hl(c,e,d)}function $l(a,b){if(a.Cb){var c=a.Cb.dt(a);c&&Lb(c,function(a,c){K(b,c,a)})}}
function fm(a){var b=Math.min(a.g.length,1E3),c=["count="+b],d;6<a.Ne&&0<b?(d=a.g[0].b,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var g=a.g[e].b,h=a.g[e].map,g=6>=a.Ne?e:g-d;try{Id(h,function(a,b){c.push("req"+g+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+g+"_type="+encodeURIComponent("_badmap"))}}a.k=a.k.concat(a.g.splice(0,b));return c.join("&")}function hm(a){a.ab||a.Id||(a.A=1,a.Id=vl(u(a.Gs,a),0),a.Wf=0)}
function im(a){if(a.ab||a.Id||3<=a.Wf)return!1;a.A++;a.Id=vl(u(a.Gs,a),jm(a,a.Wf));a.Wf++;return!0}f.Gs=function(){this.Id=null;this.ab=new el(this,0,this.j,"rpc",this.A);this.ab.Je=null;this.ab.Hm=0;var a=this.ar.clone();K(a,"RID","rpc");K(a,"SID",this.j);K(a,"CI",this.Si?"0":"1");K(a,"AID",this.Ef);$l(this,a);if(!oc||Ac(10))K(a,"TYPE","xmlhttp"),jl(this.ab,a,!0,this.oj,!1);else{K(a,"TYPE","html");var b=this.ab,c=Boolean(this.oj);b.Uf=3;b.ge=ve(a.clone());ul(b,c)}};
function Gl(a,b,c){a.Si=c;a.Hc=b.Jd;a.ED(1,0);a.Yi=Cl(a,null,a.jm);dm(a)}
f.Vr=function(a,b){if(0!=this.b&&(this.ab==a||this.Hb==a))if(this.Hc=a.Tg,this.Hb==a&&3==this.b)if(7<this.Ne){var c;try{c=this.o.parse(b)}catch(d){c=null}if(ha(c)&&3==c.length)if(0==c[0])t:{if(!this.Id){if(this.ab)if(this.ab.nh+3E3<this.Hb.nh)bm(this),this.ab.cancel(),this.ab=null;else break t;im(this);rl()}}else this.yr=c[1],0<this.yr-this.Ef&&37500>c[2]&&this.Si&&0==this.Wf&&!this.$e&&(this.$e=vl(u(this.tA,this),6E3));else Fl(this,11)}else"y2f%"!=b&&Fl(this,11);else if(this.ab==a&&bm(this),!xa(b)){c=
this.o.parse(b);ha(c);for(var e=0;e<c.length;e++){var g=c[e];this.Ef=g[0];g=g[1];2==this.b?"c"==g[0]?(this.j=g[1],this.oj=g[2],g=g[3],null!=g?this.Ne=g:this.Ne=6,this.b=3,this.Cb&&this.Cb.xr(this),this.ar=Cl(this,this.lh()?this.oj:null,this.jm),hm(this)):"stop"==g[0]&&Fl(this,7):3==this.b&&("stop"==g[0]?Fl(this,7):"noop"!=g[0]&&this.Cb&&this.Cb.wr(this,g),this.Wf=0)}}};f.tA=function(){null!=this.$e&&(this.$e=null,this.ab.cancel(),this.ab=null,im(this),rl())};
function bm(a){null!=a.$e&&(m.clearTimeout(a.$e),a.$e=null)}
f.ej=function(a){var b;if(this.ab==a)bm(this),this.ab=null,b=2;else if(this.Hb==a)this.Hb=null,b=1;else return;this.Hc=a.Tg;if(0!=this.b)if(a.Nc)1==b?(v(),Vl.S(new Xl(Vl,a.Ie?a.Ie.length:0)),dm(this),this.k.length=0):hm(this);else{var c=a.Se,d;if(!(d=3==c||7==c||0==c&&0<this.Hc)){if(d=1==b)this.Hb||this.le||1==this.b||2<=this.Wg?d=!1:(this.le=vl(u(this.Or,this,a),jm(this,this.Wg)),this.Wg++,d=!0);d=!(d||2==b&&im(this))}if(d)switch(c){case 1:Fl(this,5);break;case 4:Fl(this,10);break;case 3:Fl(this,
6);break;case 7:Fl(this,12);break;default:Fl(this,2)}}};function jm(a,b){var c=5E3+Math.floor(1E4*Math.random());a.Cb||(c*=2);return c*b}f.ED=function(a){if(!C(arguments,this.b))throw Error("Unexpected channel state: "+this.b);};function Fl(a,b){if(2==b||9==b){var c=null;a.Cb&&(c=null);var d=u(a.ND,a);c||(c=new J("//www.google.com/images/cleardot.gif"),ve(c));zl(c.toString(),1E4,d)}else rl();km(a,b)}f.ND=function(a){a?rl():(rl(),km(this,8))};function km(a,b){a.b=0;a.Cb&&a.Cb.Sr(a,b);am(a);Zl(a)}
function am(a){a.b=0;a.Hc=-1;if(a.Cb)if(0==a.k.length&&0==a.g.length)a.Cb.Gm(a);else{var b=tb(a.k),c=tb(a.g);a.k.length=0;a.g.length=0;a.Cb.Gm(a,b,c)}}function Cl(a,b,c){var d=we(c);if(""!=d.Bb)b&&be(d,b+"."+d.Bb),ce(d,d.bf);else var e=window.location,d=xe(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Ih&&Lb(a.Ih,function(a,b){K(d,b,a)});K(d,"VER",a.Ne);$l(a,d);return d}f.Xm=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Hl;a.O=!1;return a};
function vl(a,b){if(!ka(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Lc=function(){Vl.S(new Yl(Vl))};function rl(){Vl.S(new Wl(Vl))}f.lh=function(){return!(!oc||Ac(10))};function lm(){}f=lm.prototype;f.xr=function(){};f.wr=function(){};f.Sr=function(){};f.Gm=function(){};f.dt=function(){return{}};function mm(a,b){Kk.call(this);if(ka(a))b&&(a=u(a,b));else if(a&&ka(a.handleEvent))a=u(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a;tk(this,"tick",u(this.A,this));this.stop();Lk(this,5E3+2E4*Math.random())}w(mm,Kk);mm.prototype.o=0;mm.prototype.A=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);Lk(this,a)}this.B()};mm.prototype.start=function(){mm.G.start.call(this);this.o=v()+this.b};mm.prototype.stop=function(){this.o=0;mm.G.stop.call(this)};function nm(a,b){this.I=a;this.k=b;this.j=new Lh;this.g=new mm(this.Mu,this);this.b=null;this.F=!1;this.A=null;this.D="";this.C=this.o=0;this.B=[]}w(nm,lm);f=nm.prototype;f.subscribe=function(a,b,c){return this.j.subscribe(a,b,c)};f.ja=function(a,b,c){return this.j.ja(a,b,c)};f.Ib=function(a){return this.j.Ib(a)};f.H=function(a,b){return this.j.H.apply(this.j,arguments)};f.dispose=function(){this.F||(this.F=!0,this.j.clear(),this.disconnect(),Ih(this.j))};f.fa=function(){return this.F};
f.connect=function(a,b,c){if(!this.b||2!=this.b.b){this.D="";this.g.stop();this.A=a||null;this.o=b||0;a=this.I+"/test";b=this.I+"/bind";var d=new Tl("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.Cb=null);d.Cb=this;this.b=d;e?this.b.connect(a,b,this.k,e.j,e.Ef):c?this.b.connect(a,b,this.k,c.sessionId,c.arrayId):this.b.connect(a,b,this.k)}};f.disconnect=function(a){this.C=a||0;this.g.stop();this.b&&(3==this.b.b&&em(this.b),this.b.disconnect());this.C=0};
f.sendMessage=function(a,b){var c={_sc:a};b&&bc(c,b);this.g.ed||2==(this.b?this.b.b:0)?this.B.push(c):this.b&&3==this.b.b&&cm(this.b,c)};f.xr=function(){var a=this.g;a.stop();Lk(a,5E3+2E4*Math.random());this.A=null;this.o=0;if(this.B.length){a=this.B;this.B=[];for(var b=0,c=a.length;b<c;++b)cm(this.b,a[b])}this.H("handlerOpened")};f.Sr=function(a,b){var c=2==b&&401==this.b.Hc;if(4!=b&&!c){if(6==b||410==this.b.Hc)c=this.g,c.stop(),Lk(c,500);this.g.start()}this.H("handlerError",b)};
f.Gm=function(a,b,c){if(!this.g.ed)this.H("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.B.push(c[a].map)};f.dt=function(){var a={v:2};this.D&&(a.gsessionid=this.D);0!=this.o&&(a.ui=""+this.o);0!=this.C&&(a.ui=""+this.C);this.A&&bc(a,this.A);return a};f.wr=function(a,b){if("S"==b[0])this.D=b[1];else if("gracefulReconnect"==b[0]){var c=this.g;c.stop();Lk(c,500);this.g.start();this.b.disconnect()}else this.H("handlerMessage",new Ej(b[0],b[1]))};f.getDeviceId=function(){return this.k.id};
f.Mu=function(){this.g.stop();var a=this.b,b=0;a.ab&&b++;a.Hb&&b++;0!=b?this.g.start():this.connect(this.A,this.o)};function om(){this.b=[];this.g=[]}function pm(a){E(a.b)&&(a.b=a.g,a.b.reverse(),a.g=[])}function qm(a,b){a.g.push(b)}function rm(a){pm(a);return a.b.pop()}f=om.prototype;f.Na=function(){return this.b.length+this.g.length};f.isEmpty=function(){return E(this.b)&&E(this.g)};f.clear=function(){this.b=[];this.g=[]};f.contains=function(a){return C(this.b,a)||C(this.g,a)};f.remove=function(a){var b=fb(this.b,a);if(0>b)return pb(this.g,a);qb(this.b,b);return!0};
f.Qa=function(){for(var a=[],b=this.b.length-1;0<=b;--b)a.push(this.b[b]);for(var c=this.g.length,b=0;b<c;++b)a.push(this.g[b]);return a};function sm(a){this.reset(a)}function tm(a,b){if(a.g)throw Error(b+" is not allowed in V3.");}function um(a){a.volume=-1;a.muted=!1;a.j=null;a.b=-1;a.k=null;a.o=0;a.A=v()}sm.prototype.reset=function(a){this.Va=[];this.g="";vm(this);a&&(this.Va=a.videoIds,this.index=a.index,this.g=a.listId,this.videoId=a.videoId,this.b=a.playerState,this.k=a.errorReason,this.volume=a.volume,this.muted=a.muted,this.j=a.trackData,this.o=a.playerTime,this.A=a.playerTimeAt)};
function vm(a){a.index=-1;a.videoId="";um(a)}function wm(a){return a.g?a.videoId:a.Va[a.index]}function xm(a,b){a.o=b;a.A=v()}function ym(a){switch(a.b){case 1:return(v()-a.A)/1E3+a.o;case -1E3:return 0}return a.o}function zm(a,b){tm(a,"setVideoId");var c=a.index;a.index=eb(a.Va,b);c!=a.index&&um(a)}function Am(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&um(a)}function Bm(a,b,c){tm(a,"setPlaylist");c=c||wm(a);Cb(a.Va,b)&&c==wm(a)||(a.Va=tb(b),zm(a,c))}
sm.prototype.add=function(a){tm(this,"add");return a&&!C(this.Va,a)?(this.Va.push(a),!0):!1};sm.prototype.remove=function(a){tm(this,"remove");var b=wm(this);return pb(this.Va,a)?(this.index=eb(this.Va,b),!0):!1};function Cm(a){var b={};b.videoIds=tb(a.Va);b.index=a.index;b.listId=a.g;b.videoId=a.videoId;b.playerState=a.b;b.errorReason=a.k;b.volume=a.volume;b.muted=a.muted;b.trackData=$b(a.j);b.playerTime=a.o;b.playerTimeAt=a.A;return b}sm.prototype.clone=function(){return new sm(Cm(this))};function Dm(a){Zi.call(this);this.b=0;this.k=a;this.B=[];this.A=new om;this.o=NaN;this.j=this.g=null;this.F=u(this.Wu,this);this.C=u(this.Ik,this);this.D=u(this.Vu,this);var b=0;a?(b=a.getProxyState(),3!=b&&(a.subscribe("proxyStateChange",this.Go,this),Em(this))):b=3;0!=b&&L(u(function(){this.Go(b)},this),0);Fm(this,vj())}w(Dm,Zi);function Gm(a){return new sm(a.k.getPlayerContextData())}f=Dm.prototype;
f.play=function(){1==this.b?(this.g?this.g.play(null,ca,u(function(){this.zh("Failed to play video with cast v2 channel.");Hm(this,"play")},this)):Hm(this,"play"),Im(this,1,ym(Gm(this))),Jm(this)):Km(this,this.play)};f.pause=function(){1==this.b?(this.g?this.g.pause(null,ca,u(function(){this.zh("Failed to pause video with cast v2 channel.");Hm(this,"pause")},this)):Hm(this,"pause"),Im(this,2,ym(Gm(this))),Jm(this)):Km(this,this.pause)};
f.tr=function(a){if(1==this.b){if(this.g){var b=Gm(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=1==b.b||3==b.b?chrome.cast.media.ResumeState.PLAYBACK_START:chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.g.seek(c,ca,u(function(){this.zh("Failed to seek in video with cast v2 channel.");Hm(this,"seekTo",{newTime:a})},this))}else Hm(this,"seekTo",{newTime:a});Im(this,3,a);Jm(this)}else Km(this,ra(this.tr,a))};
f.stop=function(){if(1==this.b){this.g?this.g.stop(null,ca,u(function(){this.zh("Failed to stop video with cast v2 channel.");Hm(this,"stopVideo")},this)):Hm(this,"stopVideo");var a=Gm(this);vm(a);Lm(this,a);Jm(this)}else Km(this,this.stop)};
f.setVolume=function(a,b){if(1==this.b){var c=Gm(this);if(this.j)c.volume!=a&&this.j.setReceiverVolumeLevel(a,ca,ca),c.muted!=b&&this.j.setReceiverMuted(b,ca,ca);else{var d={volume:a,muted:b};-1!=c.volume&&(d.delta=a-c.volume);Hm(this,"setVolume",d)}c.muted=b;c.volume=a;Lm(this,c);Jm(this)}else Km(this,ra(this.setVolume,a,b))};
f.hm=function(a,b){if(1==this.b){var c=Gm(this);if(b){c.j={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:of(b.style)};bc(d,c.j);Hm(this,"setSubtitlesTrack",d)}else d={videoId:a},Hm(this,"setSubtitlesTrack",d);Lm(this,c)}else Km(this,ra(this.hm,a,b))};
function Mm(a,b,c,d,e){var g=Gm(a);d=d||0;e={videoId:b,currentIndex:d,listId:e||g.g};Am(g,b,d);n(c)&&(xm(g,c),e.currentTime=c);Hm(a,"setPlaylist",e);Lm(a,g)}f.mi=function(a,b){if(1==this.b){var c=Gm(this);if(a!=wm(c)){var d;tm(c,"insert");a&&!C(c.Va,a)?(-1<c.index&&c.index>=c.Va.length-1?c.Va.push(a):c.Va.splice(c.index+1,0,a),d=!0):d=!1;d&&(d={videoId:a},Hm(this,"insertVideo",d));zm(c,a);d={videoId:a};n(b)&&(xm(c,b),d.currentTime=b);Hm(this,"setVideo",d);Lm(this,c)}}else Km(this,ra(this.mi,a,b))};
f.Fk=function(a,b,c){if(1==this.b){var d=Gm(this),e=a==wm(d),d=Cb(b,d.Va);e?d||(Hm(this,"updatePlaylist",{videoIds:b.join(",")}),a=Gm(this),Bm(a,b),Lm(this,a)):d?this.mi(a,c):(Hm(this,"setPlaylist",{videoIds:b.join(","),videoId:a,currentTime:c}),e=Gm(this),xm(e,c),Bm(e,b,a),Lm(this,e))}else Km(this,ra(this.Fk,a,b,c))};f.dispose=function(){if(3!=this.b){var a=this.b;this.b=3;this.H("proxyStateChange",a,this.b)}Dm.G.dispose.call(this)};
f.J=function(){N(this.o);this.o=NaN;Nm(this);this.k=null;this.A.clear();Fm(this,null);Dm.G.J.call(this)};function Em(a){z(["remotePlayerChange","remoteQueueChange"],function(a){this.B.push(this.k.subscribe(a,ra(this.zC,a),this))},a)}function Nm(a){z(a.B,function(a){this.k.unsubscribeByKey(a)},a);a.B.length=0}function Km(a,b){50>a.A.Na()&&qm(a.A,b)}function Im(a,b,c){var d=Gm(a);xm(d,c);-1E3!=d.b&&(d.b=b);Lm(a,d)}function Hm(a,b,c){a.k.sendMessage(b,c)}
function Lm(a,b){Nm(a);a.k.setPlayerContextData(Cm(b));Em(a)}f.Go=function(a){if((a!=this.b||2==a)&&3!=this.b&&0!=a){var b=this.b;this.b=a;this.H("proxyStateChange",b,a);if(1==a)for(;!this.A.isEmpty();)rm(this.A).apply(this);else 3==a&&this.dispose()}};function Jm(a){N(a.o);a.o=L(u(function(){this.H("remotePlayerChange");this.o=NaN},a),2E3)}f.zC=function(a){("remotePlayerChange"!=a||isNaN(this.o))&&this.H(a)};
function Fm(a,b){a.j&&(a.j.removeUpdateListener(a.F),a.j.removeMediaListener(a.C));a.j=b;a.j&&(a.j.addUpdateListener(a.F),a.j.addMediaListener(a.C))}f.Wu=function(a){if(!a)this.Ik(null),Fm(this,null);else if(this.j.receiver.volume){a=this.j.receiver.volume;var b=Gm(this);if(b.volume!=a.level||b.muted!=a.muted)b.volume=a.level||0,b.muted=!!a.muted,Lm(this,b),Jm(this)}};f.Ik=function(a){this.g&&this.g.removeUpdateListener(this.D);if(this.g=a)this.g.addUpdateListener(this.D),Om(this),Jm(this)};
function Om(a){var b=a.g.customData;if(a.g.media){var c=a.g.media,d=Gm(a);c.contentId!=d.videoId&&wh("CP","Cast changing video to: "+c.contentId);var e=c.customData;d.index=e.currentIndex;d.g=e.listId;d.videoId=c.contentId;d.b=b.playerState;xm(d,a.g.getEstimatedTime());Lm(a,d)}else wh("CP","No cast media. Ignoring.")}f.Vu=function(a){a?(Om(this),Jm(this)):this.Ik(null)};f.zh=function(a){wh("CP",a)};function Pm(a,b,c){Zi.call(this);this.O=a;this.kd=[];this.kd.push(R(window,"beforeunload",u(this.Bx,this)));this.j=[];this.b=new sm;3==c["mdx-version"]&&(this.b.g="RQ"+b.token);this.D=b.id;this.g=new nm(Ni(this.O,"/bc",void 0,!1),c);this.g.subscribe("handlerOpened",this.Hx,this);this.g.subscribe("handlerClosed",this.Cx,this);this.g.subscribe("handlerError",this.Ex,this);this.b.g?this.g.subscribe("handlerMessage",this.Fx,this):this.g.subscribe("handlerMessage",this.Gx,this);a=this.g;b=b.token;(a.k.loungeIdToken=
b)||a.g.stop()}w(Pm,Zi);f=Pm.prototype;f.uh=NaN;f.Bn=NaN;f.Xi=NaN;
f.connect=function(a,b){if(b){if(this.b.g){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.b.g=c);this.b.videoId=d;this.b.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.b.Va=[d];this.b.index=0}this.b.state=3;xm(this.b,g);this.log_("Connecting with setPlaylist and params: "+of(h));this.g.connect({method:"setPlaylist",params:of(h)},
a,mj())}else this.log_("Connecting without params"),this.g.connect({},a,mj());Qm(this)};f.dispose=function(){this.fa()||Rm(this,3);Pm.G.dispose.call(this)};f.J=function(){Sm(this);Tm(this);N(this.Xi);this.Xi=NaN;this.k=null;Ng(this.kd);this.kd.length=0;this.g.dispose();Pm.G.J.call(this);this.j=this.b=this.g=null};f.log_=function(a){wh("conn",a)};f.Bx=function(){this.A(2)};function Rm(a,b){a.H("proxyStateChange",b)}
function Qm(a){a.uh=L(u(function(){this.log_("Connecting timeout");this.A(1)},a),1E4)}function Sm(a){N(a.uh);a.uh=NaN}function Um(a){Tm(a);a.Bn=L(u(function(){this.o("getNowPlaying")},a),2E4)}function Tm(a){N(a.Bn);a.Bn=NaN}function Vm(a){var b=a.g;return!!b.b&&3==b.b.b&&isNaN(a.uh)}
f.Hx=function(){this.log_("Channel opened");var a=this.g,b=this.D;li("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.b.Si,sessionId:a.b.j,arrayId:a.b.Ef});li("yt-remote-session-screen-id",b);a=gj();b=hj();C(a,b)||a.push(b);kj(a);fj()};f.Cx=function(){this.log_("Channel closed");isNaN(this.uh)?sj(!0):sj();this.dispose()};
f.Ex=function(a){sj();isNaN(this.B())?(this.log_("Channel error: "+a+" without reconnection"),this.dispose()):(this.log_("Channel error: "+a+" with reconnection in "+this.B()+" ms"),Rm(this,2))};function Wm(a,b){b==Vm(a)?b&&Rm(a,1):b?(Sm(a),a.C()&&a.b.reset(),Rm(a,1),a.o("getNowPlaying")):a.A(1)}function Xm(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.b.videoId&&(Wb(b.params)?a.b.j=null:a.b.j=b.params,a.H("remotePlayerChange"))}
function Ym(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.b.g=b.params.listId;Am(a.b,c,d);a.H("remoteQueueChange")}function Zm(a,b){Ym(a,b);$m(a,b)}
function $m(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);xm(a.b,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.b.b&&(c=-1E3);a.b.b=c;var d=null;-1E3==c&&(d=a.b.k||"unknown",n(b.params.currentError)&&(d=mf(b.params.currentError).reason||d));a.b.k=d;1==a.b.b?Um(a):Tm(a);a.H("remotePlayerChange")}function an(a,b){var c="true"==b.params.muted;a.b.volume=parseInt(b.params.volume,10);a.b.muted=c;a.H("remotePlayerChange")}
f.Fx=function(a){a.params?this.log_("Received: action="+a.action+", params="+of(a.params)):this.log_("Received: action="+a.action);switch(a.action){case "loungeStatus":a=mf(a.params.devices);this.j=A(a,function(a){return new Dj(a)});a=!!B(this.j,function(a){return"LOUNGE_SCREEN"==a.type});Wm(this,a);break;case "loungeScreenConnected":Wm(this,!0);break;case "loungeScreenDisconnected":rb(this.j,function(a){return"LOUNGE_SCREEN"==a.type});Wm(this,!1);break;case "remoteConnected":var b=new Dj(mf(a.params.device));
B(this.j,function(a){return a.equals(b)})||ob(this.j,b);break;case "remoteDisconnected":b=new Dj(mf(a.params.device));rb(this.j,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":Ym(this,a);break;case "nowPlaying":Zm(this,a);break;case "onStateChange":$m(this,a);break;case "onVolumeChanged":an(this,a);break;case "onSubtitlesTrackChanged":Xm(this,a);break;default:this.log_("Unrecognized action: "+a.action)}};
f.Gx=function(a){a.params?this.log_("Received: action="+a.action+", params="+of(a.params)):this.log_("Received: action="+a.action);bn(this,a);cn(this,a);if(Vm(this)){var b=this.b.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=mf(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==wm(this.b)&&
(delete a.params.videoId,Wb(a.params)?this.b.j=null:this.b.j=a.params,this.H("remotePlayerChange"));else if(wm(this.b)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=wm(this.b)):zm(this.b,""),e&&(e=e.split(","),Bm(this.b,e,d))):Bm(this.b,[]),this.b.add(d)&&this.o("getPlaylist"),d&&zm(this.b,d),b.index==this.b.index&&Cb(b.Va,this.b.Va)||this.H("remoteQueueChange"),n(g)&&(b=parseInt(g,10),b=
isNaN(b)?-1:b,-1==b&&-1E3==this.b.b&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.b.b,this.b.b=b,d=null,-1E3==b&&(d=this.b.k||"unknown",p&&(d=p.reason||d)),c=c||this.b.k!=d,this.b.k=d,1==this.b.b?Um(this):Tm(this)),"onError"!=a.action||-1!=this.b.b&&-1E3!=this.b.b||(a=mf(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==wm(this.b)&&(this.b.b=-1E3,this.b.k=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),xm(this.b,isNaN(b)?0:b),c=!0),n(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||
this.b.volume!=b,this.b.volume=b),n(l)&&(l="true"==l,c=c||this.b.muted!=l,this.b.muted=l)),c&&this.H("remotePlayerChange")}};
function bn(a,b){switch(b.action){case "loungeStatus":var c=mf(b.params.devices);a.j=A(c,function(a){return new Dj(a)});break;case "loungeScreenDisconnected":rb(a.j,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new Dj(mf(b.params.device));B(a.j,function(a){return a.equals(d)})||ob(a.j,d);break;case "remoteDisconnected":d=new Dj(mf(b.params.device)),rb(a.j,function(a){return a.equals(d)})}}
function cn(a,b){var c=!1;if("loungeStatus"==b.action)c=!!B(a.j,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;c==Vm(a)?c&&Rm(a,1):c?(Sm(a),a.C()&&a.b.reset(),Rm(a,1),a.o("getNowPlaying")):a.A(1)}f.Lx=function(){if(this.k){var a=this.k;this.k=null;this.b.videoId!=a&&this.o("getNowPlaying")}};Pm.prototype.subscribe=Pm.prototype.subscribe;Pm.prototype.unsubscribeByKey=Pm.prototype.Ib;
Pm.prototype.L=function(){var a=3;this.fa()||(a=0,isNaN(this.B())?Vm(this)&&(a=1):a=2);return a};Pm.prototype.getProxyState=Pm.prototype.L;Pm.prototype.A=function(a){this.log_("Disconnecting with "+a);1==a&&sj();this.g.disconnect(a);this.dispose()};Pm.prototype.disconnect=Pm.prototype.A;Pm.prototype.I=function(){var a=this.b;this.k&&(a=this.b.clone(),Am(a,this.k,a.index));return Cm(a)};Pm.prototype.getPlayerContextData=Pm.prototype.I;
Pm.prototype.N=function(a){var b=new sm(a);b.videoId&&b.videoId!=this.b.videoId&&(this.k=b.videoId,N(this.Xi),this.Xi=L(u(this.Lx,this),5E3));var c=[];this.b.g==b.g&&this.b.videoId==b.videoId&&this.b.index==b.index&&Cb(this.b.Va,b.Va)||c.push("remoteQueueChange");this.b.b==b.b&&this.b.volume==b.volume&&this.b.muted==b.muted&&ym(this.b)==ym(b)&&of(this.b.j)==of(b.j)||c.push("remotePlayerChange");this.b.reset(a);z(c,function(a){this.H(a)},this)};Pm.prototype.setPlayerContextData=Pm.prototype.N;
Pm.prototype.F=function(){return this.g.k.loungeIdToken};Pm.prototype.getLoungeToken=Pm.prototype.F;Pm.prototype.C=function(){var a=this.g.getDeviceId(),b=B(this.j,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};Pm.prototype.getOtherConnectedRemoteId=Pm.prototype.C;Pm.prototype.B=function(){var a=this.g;return a.g.ed?a.g.o-v():NaN};Pm.prototype.getReconnectTimeout=Pm.prototype.B;Pm.prototype.P=function(){if(!isNaN(this.B())){var a=this.g.g;a.ed&&(a.stop(),a.start(),a.A())}};
Pm.prototype.reconnect=Pm.prototype.P;Pm.prototype.o=function(a,b){b?this.log_("Sending: action="+a+", params="+of(b)):this.log_("Sending: action="+a);this.g.sendMessage(a,b)};Pm.prototype.sendMessage=Pm.prototype.o;function dn(a){Zi.call(this);this.k=a;this.Jc=Dh(oj());this.log_("Initializing local screens: "+Fh(this.Jc));this.j=en();this.log_("Initializing account screens: "+Fh(this.j));this.Sl=null;this.b=[];this.g=[];fn(this,Sj()||[]);this.log_("Initializing DIAL devices: "+Qi(this.g));a=Dh(pj());gn(this,a);this.log_("Initializing online screens: "+Fh(this.b));this.o=v()+3E5;hn(this)}w(dn,Zi);var jn=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=dn.prototype;f.Fh=NaN;f.Dj="";f.log_=function(a){wh("RM",a)};
f.zh=function(a){wh("RM",a)};function en(){var a=Dh(oj()),b=Dh(pj());return gb(b,function(b){return!Xi(a,b)})}function hn(a){Rh("yt-remote-cast-device-list-update",function(){var a=Sj();fn(this,a||[])},a);Rh("yt-remote-cast-device-status-update",a.UC,a);a.Es();var b=v()>a.o?2E4:1E4;Se(u(a.Es,a),b)}f.H=function(a,b){if(this.fa())return!1;this.log_("Firing "+a);return this.M.H.apply(this.M,arguments)};
f.Es=function(){var a=Sj()||[];E(a)||fn(this,a);a=kn(this);E(a)||(hb(a,function(a){return!Xi(this.j,a)},this)&&!oi("yt-remote-lounge-token-expiration")?ln(this):mn(this,a))};function nn(a,b){var c=kn(a);return gb(b,function(a){return a.uuid?(a=Wi(this.g,a.uuid),!!a&&"RUNNING"==a.status):!!Xi(c,a)},a)}
function fn(a,b){var c=!1;z(b,function(a){var b=Yi(this.Jc,a.id);b&&b.name!=a.name&&(this.log_("Renaming screen id "+b.id+" from "+b.name+" to "+a.name),b.name=a.name,c=!0)},a);c&&(a.log_("Renaming due to DIAL."),on(a));qj(Ti(b));var d=!Cb(a.g,b,Vi);d&&a.log_("Updating DIAL devices: "+Qi(a.g)+" to "+Qi(b));a.g=b;gn(a,a.b);d&&a.H("onlineReceiverChange")}
f.UC=function(a){var b=Wi(this.g,a.id);b&&(this.log_("Updating DIAL device: "+b.id+"("+b.name+") from status: "+b.status+" to status: "+a.status+" and from activityId: "+b.activityId+" to activityId: "+a.activityId),b.activityId=a.activityId,b.status=a.status,qj(Ti(this.g)));gn(this,this.b)};function gn(a,b,c){var d=nn(a,b),e=!Cb(a.b,d,Ah);!e&&!c||E(b)||(b=A(d,Bh),li("yt-remote-online-screens",b,60));e&&(a.log_("Updating online screens: "+Fh(a.b)+" -> "+Fh(d)),a.b=d,a.H("onlineReceiverChange"))}
function mn(a,b){var c=[],d={};z(b,function(a){a.token&&(d[a.token]=a,c.push(a.token))});var e={method:"POST",gd:{lounge_token:c.join(",")},context:a,onSuccess:function(a,b){var c=[];z(b.screens||[],function(a){"online"==a.status&&c.push(d[a.loungeToken])});var e=this.Sl?pn(this,this.Sl):null;e&&!Xi(c,e)&&c.push(e);gn(this,c,!0)}};Fi(Ni(a.k,"/pairing/get_screen_availability"),e)}
function ln(a){var b=kn(a),c=A(b,function(a){return a.id});E(c)||(a.log_("Updating lounge tokens for: "+of(c)),Fi(Ni(a.k,"/pairing/get_lounge_token_batch"),{gd:{screen_ids:c.join(",")},method:"POST",context:a,onSuccess:function(a,c){qn(this,c.screens||[]);this.Jc=gb(this.Jc,function(a){return!!a.token});on(this);mn(this,b)}}))}function qn(a,b){z(sb(a.Jc,a.j),function(a){var d=B(b,function(b){return a.id==b.screenId});d&&(a.token=d.loungeToken)})}
function on(a){var b=Dh(oj());Cb(a.Jc,b,Ah)||(a.log_("Saving local screens: "+Fh(b)+" to "+Fh(a.Jc)),nj(A(a.Jc,Bh)),gn(a,a.b,!0),fn(a,Sj()||[]),a.H("managedScreenChange",kn(a)))}function rn(a,b,c){var d=kb(b,function(a){return c||a?!c!=!a?!1:c.id==a.id:!0}),e=0>d;0>d?b.push(c):b[d]=c;Xi(a.b,c)||a.b.push(c);return e}
f.bs=function(a,b,c){var d=!1;b>=jn.length&&(this.log_("Pairing DIAL device "+a+" with "+c+" timed out."),d=!0);var e=Wi(this.g,a);if(!e)this.log_("Pairing DIAL device "+a+" with "+c+" failed: no device for "+a),d=!0;else if("ERROR"==e.status||"STOPPED"==e.status)this.log_("Pairing DIAL device "+a+" with "+c+" failed: launch error on "+a),d=!0;d?(sn(this),this.H("screenPair",null)):Fi(Ni(this.k,"/pairing/get_screen"),{method:"POST",gd:{pairing_code:c},context:this,onSuccess:function(a,b){if(c==this.Dj){sn(this);
var d=new zh(b.screen);d.name=e.name;d.uuid=e.id;this.log_("Pairing "+c+" succeeded.");var l=rn(this,this.Jc,d);this.log_("Paired with "+(l?"a new":"an old")+" local screen:"+Eh(d));on(this);this.H("screenPair",d)}},onError:function(){c==this.Dj&&(this.log_("Polling pairing code: "+c),N(this.Fh),this.Fh=L(u(this.bs,this,a,b+1,c),jn[b]))}})};
function tn(a,b,c){var d=un,e="";sn(d);if(Wi(d.g,a)){if(!e){var g=e=Ri();Kj();var h=Uj(a),k=Hj();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",Qj(h),Uh("yt-remote-cast-device-status-update",h));
Gj("Sending a cast launch request with params: "+l.parameters);k.launch(l,ra(Vj,a))}else Gj("No cast API or no cast device. Dropping cast launch.")}d.Dj=e;d.Fh=L(u(d.bs,d,a,0,e),jn[0])}else d.log_("No DIAL device with id: "+a)}function sn(a){N(a.Fh);a.Fh=NaN;a.Dj=""}function pn(a,b){var c=Yi(kn(a),b);a.log_("Found screen: "+Eh(c)+" with key: "+b);return c}function vn(a){var b=un,c=Yi(b.b,a);b.log_("Found online screen: "+Eh(c)+" with key: "+a);return c}
function wn(a){var b=un,c=Wi(b.g,a);if(!c){var d=Yi(b.Jc,a);d&&(c=Wi(b.g,d.uuid))}b.log_("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function kn(a){return sb(a.j,gb(a.Jc,function(a){return!Xi(this.j,a)},a))};function xn(a){$i.call(this,"ScreenServiceProxy");this.Db=a;this.b=[];this.b.push(this.Db.$_s("screenChange",u(this.PB,this)));this.b.push(this.Db.$_s("onlineScreenChange",u(this.OB,this)))}w(xn,$i);f=xn.prototype;f.On=function(a){return this.Db.$_gos(a)};f.contains=function(a){return!!this.Db.$_c(a)};f.get=function(a){return this.Db.$_g(a)};f.start=function(){};f.add=function(a,b,c){this.Db.$_a(a,b,c)};f.remove=function(a,b,c){this.Db.$_r(a,b,c)};
f.J=function(){for(var a=0,b=this.b.length;a<b;++a)this.Db.$_ubk(this.b[a]);this.b.length=0;this.Db=null;xn.G.J.call(this)};f.PB=function(){this.H("screenChange")};f.OB=function(){this.H("onlineScreenChange")};function yn(a){a?ba("yt.mdx.remote.castv2_",!0,void 0):Kj();mi&&mi.j();fj();zn||(zn=new Mi);un||a||(un=new dn(zn),un.subscribe("screenPair",An),un.subscribe("managedScreenChange",Bn),un.subscribe("onlineReceiverChange",function(){Uh("yt-remote-receiver-availability-change")}));Cn||(Cn=q("yt.mdx.remote.deferredProxies_")||[],ba("yt.mdx.remote.deferredProxies_",Cn,void 0));Wb(Dn)&&(Dn=q("yt.mdx.remote.channelParams_")||{})}
function En(){Th(Fn);Fn.length=0;Ih(Gn);Gn=null;Cn&&(z(Cn,function(a){a(null)}),Cn.length=0,Cn=null,ba("yt.mdx.remote.deferredProxies_",null,void 0));un&&(Ih(un),un=null);zn=null;Dn={};Pj()}
function Hn(){if(In()&&tj()){var a=[];if(oi("yt-remote-cast-available")||oi("yt-remote-cloudview-cast-button-shown")||Jn())a.push({key:"cast-selector-receiver",name:Kn()}),li("yt-remote-cloudview-cast-button-shown",!0);return a}var b=[],b=Ln()?Mn().Db.$_gos(!0):Dh(pj());(a=Nn())&&Jn()&&(Xi(b,a)||b.push(a));Ln()||(a=Ui(rj()),a=gb(a,function(a){return!Yi(b,a.id)}),b=sb(b,a));return Si(b)}
function On(){if(In()&&tj()){var a=uj();return a?{key:"cast-selector-receiver",name:a}:null}var a=Hn(),b=Pn(),c=Nn();c||(c=Qn());return B(a,function(a){var e;if(e=c)e=a.key,e=c.id==e||c.uuid==e;return e||b&&(a=wn(a.key))&&a.id==b?!0:!1})}function Kn(){if(In()&&tj())return uj();var a=Nn();return a?a.name:null}function Nn(){var a=Rn();if(!a)return null;if(!un){var b=Mn().On();return Yi(b,a)}return pn(un,a)}
function Sn(a,b){Tn("Connecting to: "+of(a));if("cast-selector-receiver"==a.key)Un(b||null),Cj(b||null);else{Vn();Un(b||null);var c=null;un?c=vn(a.key):(c=Mn().Db.$_gos(void 0),c=Yi(c,a.key));if(c)Wn(c);else{if(un&&(c=wn(a.key))){Xn(c);return}L(function(){Yn(null)},0)}}}
function Vn(){un&&sn(un);t:{var a=Jn();if(a&&(a=a.getOtherConnectedRemoteId())){Tn("Do not stop DIAL due to "+a);Zn("");break t}(a=Pn())?(Tn("Stopping DIAL: "+a),Wj(a),Zn("")):(a=Nn())&&a.uuid&&(Tn("Stopping DIAL: "+a.uuid),Wj(a.uuid))}Aj()?xj().stopSession():wj("stopSession called before API ready.");(a=Jn())&&a.disconnect(1);Yn(null)}function $n(){var a=ao(),a=a?a.currentTime:0,b=bo();0==a&&b&&(a=ym(Gm(b)));return a}function bo(){var a=Jn();return a?new Dm(a):null}
function Tn(a){wh("remote",a)}function In(){return!!q("yt.mdx.remote.castv2_")}function Ln(){return q("yt.mdx.remote.screenService_")}function Mn(){if(!Gn){var a=Ln();a&&(Gn=new xn(a))}return Gn}function Rn(){return q("yt.mdx.remote.currentScreenId_")}function co(a){ba("yt.mdx.remote.currentScreenId_",a,void 0);if(un){var b=un;b.o=v()+3E5;if((b.Sl=a)&&(a=pn(b,a))&&!Xi(b.b,a)){var c=tb(b.b);c.push(a);gn(b,c,!0)}}}function Pn(){return q("yt.mdx.remote.currentDialId_")}
function Zn(a){ba("yt.mdx.remote.currentDialId_",a,void 0)}function ao(){return q("yt.mdx.remote.connectData_")}function Un(a){ba("yt.mdx.remote.connectData_",a,void 0)}function Jn(){return q("yt.mdx.remote.connection_")}function Yn(a){var b=Jn();Un(null);a?bb(!Jn()):(co(""),Zn(""));ba("yt.mdx.remote.connection_",a,void 0);z(Cn,function(b){b(a)});Cn.length=0;b&&!a?Uh("yt-remote-connection-change",!1):!b&&a&&Uh("yt-remote-connection-change",!0)}
function Qn(){var a=ij();if(!a)return null;if(Ln()){var b=Mn().On();return Yi(b,a)}return un?pn(un,a):null}function Wn(a){bb(!Rn());co(a.id);var b=q("yt.mdx.remote.channelParams_");a=new Pm(zn,a,b);a.connect(1,ao());Hh(a,function(){Jn()&&(Jn(),Yn(null))});Yn(a)}function Xn(a){Pn();Tn("Connecting to: "+(a?a.toString():"null"));Zn(a.id);var b=ao();b?tn(a.id,b.videoIds[b.index],b.currentTime):tn(a.id)}function An(a){Tn("Paired with: "+Eh(a));a?Wn(a):Yn(null)}
function Bn(){var a=Rn();a&&!Nn()&&(Tn("Dropping current screen with id: "+a),Vn());Qn()||sj()}var zn=null,Cn=null,Gn=null,un=null,Dn={},Fn=[];var eo={XG:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c;return a},NZ:function(a){return a.reverse()},PL:function(a,b){return a.slice(b)}};function fo(a){a=a.split("");a=eo.XG(a,15);a=eo.XG(a,44);a=eo.NZ(a,66);a=eo.XG(a,24);a=eo.PL(a,3);a=eo.NZ(a,51);a=eo.XG(a,2);a=eo.XG(a,50);return a.join("")};function go(){};var ho={160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",138:"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",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",272:"9",171:"v",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",277:"("};function io(a,b,c,d,e,g,h){this.id=""+a;this.g=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.ra=h||0;this.b=c||null;this.video=d||null;this.k=e||null;this.o=g||null;this.j=ho[this.id.split(":")[0]]||""}function jo(a){return 2==a.g}function ko(a){return!(a.b&&a.video)}function lo(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function mo(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function no(a,b,c){this.name=a;this.b="original"==c}no.prototype.toString=function(){return this.name};var Vb={mE:"auto",JJ:"tiny",fI:"light",SMALL:"small",uE:"medium",LARGE:"large",GH:"hd720",EH:"hd1080",FH:"hd1440",PH:"highres",UNKNOWN:"unknown"},oo={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,highres:2160};function po(a,b,c,d){this.width=a;this.height=b;if(!d)t:{for(d=2;d<qo.length;d++){var e=ro[qo[d]];if(a>e[0]&&b>=e[1]||a>=e[0]&&b>e[1]){d=qo[d-1];break t}}d="tiny"}this.b=d;this.g=c||0}var qo="auto highres hd1440 hd1080 hd720 large medium small tiny".split(" "),ro={auto:[0,0],tiny:[256,144],light:[426,240],small:[426,240],medium:[640,360],large:[854,480],hd720:[1280,720],hd1080:[1920,1080],hd1440:[2560,1440],highres:[3840,2160]};function so(a,b){this.start=a;this.end=b;this.length=b-a+1}function to(a){a=a.split("-");return 2==a.length&&(a=new so(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function uo(a,b){return new so(a,a+b-1)}so.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function vo(a,b){var c=Md(a),d=c[6];if(d&&(d=d.match(new RegExp("(^|&)"+b+"=([^&]*)&?"))))return decodeURIComponent(d[2]);if(c=c[5])for(c=c.split("/"),c[c.length-1]||c.pop(),d=c.length-2;0<d;d-=2)if(c[d]==b)return decodeURIComponent(c[d+1])}
function wo(a,b){var c=Md(a),d=c[6];d&&(d=d.replace(new RegExp("(^|&)"+b+"=[^&]*&?"),"$1"),"&"==d.charAt(d.length-1)&&(d=d.substring(0,d.length-1)));var e=c[5];if(e){e=e.split("/");e[e.length-1]||e.pop();for(var g=e.length-2;0<g;g-=2)if(e[g]==b){e.splice(g,2);break}e=e.join("/")}return Kd(c[1],c[2],c[3],c[4],e,d,c[7])}
function xo(a,b,c){a=Md(a);var d=!1,e=a[6];if(e){var g=new RegExp("((^|&)"+b+"=)[^&]*");0<=e.search(g)&&(e=e.replace(g,"$1"+c),d=!0)}if(g=a[5]){g=g.split("/");g[g.length-1]||g.pop();for(var h=g.length-2;0<h;h-=2)if(g[h]==b){g[h+1]=c;d=!0;break}g=g.join("/")}d||(e=e?e+"&"+b+"="+c:b+"="+c);return Kd(a[1],a[2],a[3],a[4],g,e,a[7])}function yo(a,b){var c=a,d;for(d in b)null!=b[d]&&(c=xo(c,d,b[d]));return c};function zo(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.b=a;this.sourceURL=d;this.startTime=b;this.Z=e||null};function Ao(){this.ba=[]}f=Ao.prototype;f.ym=function(a){return(a=Bo(this,a))?a.duration:0};f.Ds=function(){return this.ba[0].b};f.kc=function(){return this.ba[this.ba.length-1].b};f.zf=function(){return this.ba[this.ba.length-1].endTime};f.en=function(){return this.ba[0].startTime};f.yj=function(){return 0};f.Jn=function(a){return(a=Co(this,a))?a.b:-1};f.us=function(a){return Bo(this,a).sourceURL};f.Ti=function(a){return(a=Bo(this,a))?a.startTime:0};f.qn=function(){return 0<this.ba.length};
function Bo(a,b){var c=yb(a.ba,new zo(b,0,0,""),function(a,b){return a.b-b.b});return 0<=c?a.ba[c]:null}function Co(a,b){var c=yb(a.ba,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.ba[c]:a.ba[Math.max(0,-c-2)]}f.append=function(a){if(0!=a.length)if(a=tb(a),0==this.ba.length)this.ba=a;else{var b=a[0].b-this.kc();1<b&&nb(this.ba);for(b=0<b?0:-b+1;b<a.length;b++)this.ba.push(a[b])}};function Do(a,b){var c=kb(a.ba,function(a){return a.b>=b},a);0<c&&a.ba.splice(0,c)};function Eo(a){this.b=a;this.g=0;this.j=-1}var Fo=0;function Go(a,b){this.index=null;this.info=b;this.b=null;this.o=this.j=!1;this.A=new Eo(a)}Go.prototype.Ml=function(){return!1};Go.prototype.mc=function(){return!1};Go.prototype.zq=function(a){return[a]};Go.prototype.Gi=function(a){return[a]};function Ho(a,b,c,d,e,g,h,k,l){this.b=b;this.Z=c;this.type=a;this.k=0<=d?d:-1;this.startTime=e||0;this.duration=g||0;this.j=h||0;this.g=0<=k?k:this.Z?this.Z.length:NaN;this.B=!!l;this.Z?(this.A=this.j+this.g==this.Z.length,this.o=this.startTime+this.duration*this.j/this.Z.length,this.D=this.duration*this.g/this.Z.length):(this.A=0!=this.g,this.o=this.startTime,this.D=this.duration);this.C=this.o+this.D}function Io(a){return 1==a.type||2==a.type}
function Jo(a,b){return a.b==b.b&&a.Z.start+a.j+a.g==b.Z.start+b.j}function Ko(a){bb(1==a.length||ib(a,function(a){return!!a.Z}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new so(a[0].Z.start+a[0].j,b.Z.start+b.j+b.g-1)}
function Lo(a,b){var c;c=a.b;var d=a;c.zg(d);if(c.mc()){4==d.type&&(d=c.Gi(d),d=d[d.length-1]);var e=0,g=d.Z.start+d.j+d.g;3==d.type&&(e=d.k,g==d.Z.end+1&&(e+=1));c=Mo(c,e,g,b)}else e=uo(d.Z.end+1,b),e.end+1>c.g&&(e=new so(e.start,c.g-1)),c=[new Ho(4,d.b,e)],c=new No(c);return c}function Oo(a){var b="i="+a.b.info.id;a.Z&&(b=b+",r="+(a.Z.start+a.j)+"-"+(a.Z.start+a.j+a.g-1));return b=b+",t="+a.o.toFixed(1)+","+(a.o+a.D).toFixed(1)};function No(a,b){this.j=a[0].b.A;this.g=b||"";this.b=a;this.Z=this.b[0].Z&&0<this.b[0].g?Ko(this.b):null}function Po(a){var b;if(wi(a.g))b=a.g;else{b=a.j.b;var c=a.g;if(c){b=b.split("?");var c=c.split("?"),d=[];b[1]&&d.push(b[1]);c[1]&&d.push(c[1]);d=d.join("&");b=b[0];c[0]&&(b=b+"/"+c[0]);b=d?b+"?"+d:b}}return a.Z?xo(b,"range",a.Z.toString()):b}function Qo(a){if(a.Z)return a.Z.length;a=a.b[0];return Math.round(a.D*a.b.info.ra)};function Ro(a,b,c,d,e){Go.call(this,a,b);this.index=e||new Ao;this.k=d||null;this.B=c;this.g=!0}w(Ro,Go);f=Ro.prototype;f.Dl=function(){return!1};f.Fr=function(){var a=new Ho(1,this,this.k);return[new No([a],this.B)]};function So(a,b){a.zg(b);return To(a,b.A?b.k+1:b.k,!1)}f.xi=function(a,b){var c=this.index.Jn(a);b&&(c=Math.min(this.index.kc(),c+1));return To(this,c,!0)};f.Np=function(a){this.b=new Uint8Array(Uo(a).buffer)};f.Ml=function(){return!1};f.mc=function(){return null!==this.b&&this.index.qn()};
f.zg=function(a){return this.index.kc()>a.k&&this.index.Ds()<=a.k+1};f.update=function(a,b,c){this.index.append(a);Do(this.index,c);this.g=b};function To(a,b,c){var d=a.index.us(b),e=a.index.Ti(b),g=a.index.ym(b);c?g=c=0:c=0<a.info.ra?a.info.ra*g:1E3;a=new Ho(3,a,null,b,e,g,0,c,b==a.index.kc()&&!a.g&&0<c);return new No([a],d)};function Vo(a,b,c){var d=a.getUint32(c);c+=4;var e=d&1,g=d&4,h=d&512,k=d&1024,l=d&2048;if(d&256&&(b||l))if(d=a.getUint32(c),c+=4,e&&(c+=4),g&&(c+=4),e=c,g=4,h&&(g+=4),k&&(g+=4),l&&(g+=4),b)for(b=0;b<d;b++)1023==a.getUint32(c)&&a.setUint32(c,1024),c+=g;else{var h=a.getUint32(c+g-4),k=[],l=[],p=0;for(b=0;b<d;b++){var r=a.getUint32(c),t=a.getUint32(c+g-4);l.push([p+t-h,b]);k.push(p);c+=g;p+=r}k.push(p);Ab(l,function(a,b){return a[0]-b[0]});t=[];for(b=0;b<l.length;b++)r=k[b+1]-k[b],c=l[b][1],a.setUint32(e+
g*c,r),t[c]=k[b];c=e;for(b=p=0;b<d;b++)r=a.getUint32(c),a.setUint32(c+g-4,h+t[b]-p),c+=g,p+=r}}function Wo(a,b,c){for(;Xo(a,b);){var d=Yo(a,b);if(d.type==c)return d;b+=d.size}return null}function Yo(a,b){var c=a.getUint32(b),d=a.getUint32(b+4),e=8;1==c&&(c=Zo(a,b+8),e=16);1836019558==d||1953653094==d||(e=0);return new $o(a,b,c,d,e)}function Zo(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}
function Xo(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(1==c){if(16>a.byteLength-b)return!1;c=Zo(a,b+8)}if(0>=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 $o(a,b,c,d,e){this.data=a;this.b=b;this.size=c;this.type=d;this.g=e};function ap(a,b,c,d){this.info=a;this.buffer=b;this.Z=c;this.b=d}function Uo(a){return a.Z?new DataView(a.buffer,a.Z.start,a.Z.length):new DataView(a.buffer)}function bp(a){if(a.info.g!=a.Z.length)return!1;if(1==a.info.b.info.g){if(8>a.info.g||4==a.info.type)return!0;var b=Uo(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.g&&1936286840==b;if(3==a.info.type&&0==a.info.j)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b}return!0}
function cp(a){var b;if(1==a.info.b.info.g){var c=NaN;b=NaN;var d=0;for(a=new DataView(a.buffer);Xo(a,d);){var e=Yo(a,d);1936286840==e.type?b=e.data.getUint32(e.b+16):1952867444==e.type&&(c=e,c=c.data.getUint8(c.b+8)?Zo(c.data,c.b+12):c.data.getUint32(c.b+12));var g=e.type,d=1836019558==g||1953653094==g?d+e.g:d+e.size}b=c/b}else b=NaN;return b};function dp(){this.ea=0;this.b=new Float64Array(128);this.g=new Float64Array(128);this.k=1;this.j=!1}f=dp.prototype;f.yj=function(a){return this.b[a]};f.Ti=function(a){return this.g[a]/this.k};f.ym=function(a){return a+1<this.ea||this.j?(this.g[a+1]-this.g[a])/this.k:-1};f.Ds=function(){return 0};f.kc=function(){return this.ea-1};f.zf=function(){return this.j?this.g[this.ea]/this.k:NaN};f.en=function(){return 0};f.us=function(){return""};
f.Jn=function(a){a=yb(this.g.subarray(0,this.ea),a*this.k);return 0<=a?a:Math.max(0,-a-2)};f.qn=function(){return 0<=this.kc()};function ep(a){if(a.b.length<a.ea+1){var b=2*a.b.length,b=b+2,c=a.b;a.b=new Float64Array(b+1);var d=a.g;a.g=new Float64Array(b+1);for(b=0;b<a.ea+1;b++)a.b[b]=c[b],a.g[b]=d[b]}}function fp(a,b){this.g=a;this.b=0;this.j=b||0}function gp(a){for(var b=hp(a,!1);236==b;)ip(a),b=hp(a,!1);return b}
function jp(a){var b=hp(a,!0),c=a.g.byteOffset+a.b,d=Math.min(b,a.g.buffer.byteLength-c),c=new DataView(a.g.buffer,c,d),c=new fp(c,a.j+a.b);a.b+=b;return c}function kp(a){for(var b=hp(a,!0),c=lp(a),d=1;d<b;d++)c=(c<<8)+lp(a);return c}function ip(a){var b=hp(a,!0);a.b+=b}function hp(a,b){var c=lp(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+lp(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+lp(a),e*=128;return b?c-e:c}function lp(a){return a.g.getUint8(a.b++)};function mp(a,b,c,d,e){Go.call(this,a,b);this.C=c;this.B=d;this.k=null;this.index=new dp;this.g=e}w(mp,Go);f=mp.prototype;f.mc=function(){return!(!this.b||!this.index.qn())};f.Fr=function(a){var b=new Ho(1,this,this.C),c=new Ho(2,this,this.B),d=[],e=[b];Jo(b,c)?e.push(c):(d.push(new No([c])),a=0);isNaN(this.g)?a=0:a>this.g&&(a=this.g);b=e[e.length-1];c=b.Z.end-e[0].Z.start+1;a>c&&(a=uo(b.Z.end+1,a-c),e.push(new Ho(4,this,a)));d.push(new No(e));return d};
f.Np=function(a){if(1==a.info.type){if(this.b)return;this.b=new Uint8Array(a.buffer,a.Z.start,a.Z.length)}else if(2==a.info.type){if(this.k||0<=this.index.kc())return;if(1==this.info.g){var b=this.index,c=Uo(a),d=a.info.Z.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.k=h;a+=8;0==g?(g=c.getUint32(a,!1),h=c.getUint32(a+4,!1),a+=8):(g=(c.getUint32(a,!1)<<32)+c.getUint32(a+4,!1),h=(c.getUint32(a+8,!1)<<32)+c.getUint32(a+12,!1),a+=16);b.b[0]=h+(e+d);b.g[0]=g;b.j=
!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.ea++;ep(g);g.b[g.ea]=g.b[g.ea-1]+k;g.g[g.ea]=g.g[g.ea-1]+h}}else this.k=Uo(a)}if(jo(this.info)&&this.b&&this.k){c=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength);b=this.index;g=this.k;c=new fp(c);if(440786851==gp(c)&&(ip(c),408125543==gp(c))){d=c;e=d.b;a=hp(d,!0);d.b=e;for(var c=jp(c),d=c.j+c.b,l=gp(c);357149030!=l;)ip(c),l=gp(c);c=jp(c);h=1E6;k=1E9;for(e=0;!(c.b>=c.g.byteLength);)if(l=
gp(c),2807729==l)h=kp(c);else if(2807730==l)k=kp(c);else if(17545==l){var e=c,l=hp(e,!0),p=0;4==l?p=e.g.getFloat32(e.b):8==l&&(p=e.g.getFloat64(e.b));e.b+=l;e=p}else ip(c);b.k=k/h;c=new fp(g);if(475249515==gp(c)){for(c=jp(c);!(c.b>=c.g.byteLength);)if(l=gp(c),187==l){g=jp(c);h=d;if(179!=gp(g))k=null;else if(k=kp(g),183!=gp(g))k=null;else{g=jp(g);for(l=h;!(g.b>=g.g.byteLength);)241==gp(g)?l=kp(g)+h:ip(g);k=[l,k]}g=b;h=k[0];k=k[1];ep(g);g.b[g.ea]=h;g.g[g.ea]=k;g.ea++}else ip(c);c=a+d;a=e;ep(b);b.j=
!0;b.g[b.ea]=a;b.b[b.ea]=c}}this.k=null}};function Mo(a,b,c,d){for(var e=[];b<=a.index.kc();b++){var g;g=a.index;var h=b;g=uo(g.yj(h),h+1<g.ea||g.j?g.b[h+1]-g.b[h]:-1);var h=a.index.Ti(b),k=a.index.ym(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new Ho(3,a,g,b,h,k,l,p,b==a.index.kc()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new No(e)}
f.zq=function(a){for(var b=this.Gi(a.info),c=[],d=a.b,e=0;e<b.length;e++){var g=uo(b[e].Z.start+b[e].j-a.info.Z.start+a.Z.start,b[e].g);c.push(new ap(b[e],a.buffer,g,d));d=!1}return c};f.Gi=function(a){for(var b=0;b<this.index.kc()&&a.Z.start>=this.index.yj(b+1);)b++;return Mo(this,b,a.Z.start,a.Z.length).b};f.zg=function(a){return this.mc()?!0:isNaN(this.g)?!1:a.Z.end+1<this.g};f.xi=function(a,b){var c=this.index.Jn(a);b&&(c=Math.min(this.index.kc(),c+1));return Mo(this,c,this.index.yj(c),0)};
f.Ml=function(){var a;if(a=this.mc()&&!isNaN(this.g))a=this.index,a=(a.j?a.b[a.ea]:-1)!=this.g;return a};f.Dl=function(){return!0};function np(a){this.A=this.duration=0;this.g=!1;this.B=v();this.o=Infinity;this.b={};this.D=a||"";this.j=this.k=!1}function op(a){return Mb(a.b,function(a){return!!a.info.o},a)}var pp=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function qp(a,b){var c=new np;z(a,function(a){var e=a.type,g=a.itag,h=null;mo(e)&&(h=a.size.split("x"),h=new po(parseInt(h[0],10),parseInt(h[1],10)));var k=null,l=null;if(lo(e)){var k=new go,p=a.lang,r=a.acont;p&&r&&(l=a.name,g=g+":"+p+":"+r,l=new no(l,0,r))}var p=parseInt(a.bitrate,10)/8,t=null;b&&a.drm_families&&(t={},z(a.drm_families.split(","),function(a){t[a]=b[a]}));e=new io(g,e,k,h,l,t,p);h=to(a.init);k=to(a.index);l=rp(a.url,e,a.s);a=parseInt(a.clen,10);l&&(c.b[g]=new mp(l,e,h,k,a))});return c}
function sp(a){if(!a)return 0;var b=pp.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function tp(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 up(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 rp(a,b,c){if(!bf(a))return"";var d={alr:"yes",ratebypass:"yes"};vo(a,"mime")||(d.mime=encodeURIComponent(b.mimeType.split(";")[0]));c&&(d.signature=fo(c));return yo(a,d)}
function vp(a){var b=tp(a,"id");"captions"==b&&(b=tp(a,"lang"));var c=tp(a,"mimeType"),d=tp(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(tp(a,"bandwidth"),10)/8,e=null;mo(c)&&(e=new po(parseInt(tp(a,"width"),10),parseInt(tp(a,"height"),10)));var g=null,h=null;if(lo(c)){g=new go;var h=tp(a,"lang")||"",k=up(a,"Role");if(k){var k=tp(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 no(b,
0,l):null}else h=null}k=null;if(a=up(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 io(b,c,g,e,h,k,d)}function wp(a,b,c,d){a.k=!0;a={format:"RAW",method:"GET",vb:u(a.C,a,c,d||null)};Fi(b,a)}
np.prototype.C=function(a,b,c){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)for(this.o=1E3*sp(tp(c,"minimumUpdatePeriod"))||Infinity,this.g=Infinity>this.o,this.j=!0,this.A=parseInt(tp(c,"yt:earliestMediaSequence"),10),c=0;c<b.length;c++){var d=vp(b[c]);if(!this.b[d.id]){var e=rp(up(b[c],"BaseURL").textContent,d),g=up(b[c],
"Initialization"),h=tp(g,"sourceURL"),g=to(tp(g,"range"));this.b[d.id]=new Ro(e,d,h,null===g?void 0:g)}var h=up(b[c],"SegmentList"),k=up(h,"SegmentTimeline"),e=k.getElementsByTagName("S"),h=h.getElementsByTagName("SegmentURL");g=this.g?(g=tp(k,"start"))?sp(g):0:0;var l;if(this.g){l=parseInt(tp(k,"startNumber"),10)||0;var p=parseInt(tp(k,"yt:earliestMediaSequence"),10);l<p&&(l=p)}else l=0;for(var k=parseInt(tp(k,"timescale"),10)||1,p=[],r=0;r<h.length;r++){var t;t=l+r;var y=g,D=k,M=h[r],D=parseFloat(e[r].getAttribute("d"))/
D,ea=M.getAttribute("media"),jb=null,M=M.getAttribute("mediaRange");null!=M&&(0<=parseInt(M.split("-")[1],10)?jb=to(M):ea=ea+"?range="+M);t=new zo(t,y,D,ea,jb);p.push(t);g+=t.duration}this.b[d.id].update(p,this.g,this.A)}else i:for(this.duration=sp(tp(c,"mediaPresentationDuration")),c=0;c<b.length;c++){g=b[c];d=vp(g);h=up(g,"BaseURL");e=rp(h.textContent,d);l=up(g,"SegmentBase");g=to(l.attributes.indexRange.value);l=to(l.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),
10);d=new mp(e,d,l,g,h);if(!d)break i;this.b[d.info.id]=d}this.B=v();a&&a(this)}else b&&b(c);this.k=!1};function xp(a){for(var b in a.b)if(a.b[b].index)return a.b[b].index.zf();return NaN}function yp(a){for(var b in a.b)if(a.b[b].index)return a.b[b].index.en();return 0}function zp(a,b){Lb(a.b,function(a){a=a.A;a.b=yo(a.b,b)})};function Ap(a,b){this.id=a;this.name=b}Ap.prototype.toString=function(){return this.name};function Bp(a,b,c){this.g=a||0;this.b=b||0;this.j=c}Bp.prototype.equals=function(a){return this.g==a.g&&this.b==a.b&&this.j==a.j};function Cp(a,b,c){return new Bp(oo[a]||0,oo[b]||0,c)}var Dp=Cp("auto","large",!1),Ep=Cp("auto","auto",!1);function Fp(a){var b=oo.auto;return a.g==b&&a.b==b}function Gp(a){return a.j&&!!a.g&&a.g==a.b}
function Hp(a,b){if(b.j&&Fp(b))return Ep;if(b.j||Fp(a))return b;if(a.j||Fp(b))return a;var c=a.g&&b.g?Math.max(a.g,b.g):a.g||b.g,d=a.b&&b.b?Math.min(a.b,b.b):a.b||b.b,c=Math.min(c,d);return c==a.g&&d==a.b?a:new Bp(c,d,!1)}function Ip(a){var b=a.b||a.g;return Ub(function(a){return oo[a]==b})||"auto"}Bp.prototype.k=function(a){if(!a.video)return!1;a=oo[a.video.b];return this.g<=a&&(!this.b||this.b>=a)};function Jp(a,b){this.g=a;this.b=b||null}function Kp(a,b){var c=b||Ep,c=gb(a.g,u(c.k,c)),c=A(c,function(a){return a.video.b});xb(c);return c}function Lp(a){if(!a.b)return[];var b=[];z(a.b,function(a){a.k&&b.push(new Ap(a.id,a.k.name))});xb(b);return b};function Mp(a,b,c,d,e,g,h,k,l){this.k={};this.B=a;this.D=b;this.g=c;this.b=d;this.j=e;this.C=g;this.o=h;this.A=k;this.F=l}function Np(a,b){var c=a.C,c=c.replace("$N",a.o),c=c.replace("$L",a.F.toString()),c=c.replace("$M",b.toString());a.A&&(c=Wd(c,{sigh:a.A}));return c}function Op(a,b){var c=Math.floor(b/(a.b*a.j)),d=a.b*a.j,e=b%d,g=e%a.b,e=Math.floor(e/a.b),h=a.j,k=a.g-d*c;k<d&&(h=Math.ceil(k/a.b));return{url:Np(a,c),hy:g,dj:a.b,row:e,rows:h,uq:a.B*a.b,tq:a.D*h}};function Pp(a){var b=[];a=a.split("|");for(var c=a[0],d,e,g,h,k,l,p,r,t=1;t<a.length;t++)d=a[t].split("#"),e=t-1,g=parseInt(d[0],10),h=parseInt(d[1],10),180<=h||(k=parseInt(d[2],10),l=parseInt(d[3],10),p=parseInt(d[4],10),r=d[6],d=d[7],b.push(new Mp(g,h,k,l,p,c,r,d,e)));this.b=b;this.g={};1<this.b.length&&-1!=this.b[0].o.indexOf("default")&&this.b.splice(0,1)}function Qp(a,b){var c=a.b[0].g-1;return Gb(Math.round(c*b),0,c)}
function Rp(a,b){var c=a.g[b];if(c)return c;for(var c=a.b.length,d=0;d<c;d++)if(a.b[d].B>=b)return a.g[b]=d;a.g[b]=c-1;return c-1};var Sp={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};var Tp={kI:1,lI:2,mI:3};var Up;var Vp=dc,Vp=Vp.toLowerCase();if(La(Vp,"android")){var Wp=Vp.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Wp)Up=Number(Wp[1]);else{var Xp={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},Yp=Vp.match("("+Rb(Xp).join("|")+")");Up=Yp?Xp[Yp[0]]:0}}else Up=void 0;var Zp,$p;function aq(){var a=q("yt.player.utils.videoElement_");a||(a=document.createElement("video"),ba("yt.player.utils.videoElement_",a,void 0));return a}function bq(){if(2.2==Up)return!0;var a=aq();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 cq(){var a=I("div",{"class":"html5-player-css-loaded"});document.body.appendChild(a);var b="none"==Hf(a,"display");cd(a);return b};function dq(){var a;if(void 0==Zp&&(Zp=!1,window.crypto&&window.crypto.getRandomValues))try{a=new Uint8Array(1),window.crypto.getRandomValues(a),Zp=!0}catch(b){}if(Zp){a=Array(16);var 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=v(),e=0;e<d%23;e++)a[c]=Math.random();a[c]=Math.floor(256*Math.random())}return a}
function eq(){for(var a=dq(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function fq(){return A(dq(),function(a){return(a&15).toString(16)}).join("")};function gq(a,b,c){b={cpn:b};c&&(b.ibw="1369843");return{url:Wd(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};function hq(a,b){return void 0==b?a:"1"==b?!0:!1}function iq(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function jq(a,b){return void 0==b?a:Number(b)}function kq(a,b){return void 0==b?a:b.toString()}function lq(a,b){var c=kq(a,b);c&&(c=ef(c));return c}var mq=/^([0-9\.]+)\:([0-9\.]+)$/;function nq(a){if(a&&(a=a.match(mq))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function oq(a,b){var c=oo.auto,d=oo[b];return d>=oo.medium?new Bp(d,c,!1):d>=c?new Bp(c,d,!1):a};var pq,qq=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},rq=u(qq.clearResourceTimings||qq.webkitClearResourceTimings||qq.mozClearResourceTimings||qq.msClearResourceTimings||qq.oClearResourceTimings||ca,qq),sq=qq.mark?function(a){qq.mark(a)}:ca;function tq(a,b,c){uq(c).tick[a]=b||v();b||sq(a)}function vq(a,b){var c=uq(b).tick;return a in c}
var xq="https:"===window.location.protocol&&ka(qq.getEntriesByType)?function(a){var b={};qq.getEntriesByType("resource").forEach(function(a){if(0===a.name.indexOf("https://s.ytimg.com/yts/")){var d=wq[a.initiatorType];if(d&&d.extension.test(a.name)){var e=d.Qj,d=e+"t",e=e+"c";void 0===b[d]&&(b[d]=0,b[e]=0);b[d]++;0!==a.responseStart&&a.responseStart!==a.requestStart||b[e]++}}});Object.keys(b).forEach(function(c){a["cs"+c]=b[c]})}:ca;
function yq(a){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];kf(b+"?"+c.substring(1))}function zq(a){return uq(a).info}function uq(a){return q("ytcsi."+(a||"")+"data_")||Aq(a)}function Aq(a){var b={tick:{},span:{},info:{}};ba("ytcsi."+(a||"")+"data_",b,void 0);return b}var wq={link:{Qj:"c",extension:/\.css$/},script:{Qj:"j",extension:/\.js$/},css:{Qj:"s",extension:/\.(?:webp|png)$/},"":{Qj:"f",extension:/\.swf$/}};var Bq,Cq;var Dq=dc,Eq=Dq.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Eq||2>Eq.length)Bq=void 0;else{var Fq=Dq.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Bq=Fq&&6==Fq.length?Number(Fq[5].replace("_",".")):0}(Cq=0<=Bq)&&0<=dc.search("Safari")&&dc.search("Version");var Gq={gI:0,qH:1,WH:2};function Hq(a,b,c){c=c||{};Li(c.Sa,c.Za,u(Iq,m,a,b,c),c.onError)}
function Iq(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.yb;c.La&&(d.list=c.La);c.Sa&&(d.authuser=c.Sa);c.Za&&(d.pageid=c.Za);a={screen:Ud({h:screen.height,w:screen.width,d:screen.colorDepth}),session_token:Qe("XSRF_TOKEN")};c.lD&&(a.station_id=c.lD);Fi("/watch_actions_ajax",{format:"XML",method:"POST",Gh:d,gd:a,onSuccess:c.onSuccess,onError:c.onError,vb:c.vb})};var Jq=[.25,.5,1,1.25,1.5,2];function Kq(a){this.b=(a||"").split(",");var b={};z(this.b,function(a){b[a]=!0});this.Ba=!!b["925900"];this.D=!!b["913424"];this.B=!!b["932250"];this.wa=!!b["945000"];this.qb=!!b["945004"];this.N=!!b["945005"];this.aa=!!b["945025"];this.T=!!b["945035"];this.I=!!b["945042"];this.O=!!b["945045"];this.M=!!b["945056"];this.xa=!!b["945058"];this.la=!!b["945059"];this.pa=!!b["945060"];this.Ca=!!b["945062"];this.za=!!b["945063"];this.Uc=!!b["945064"];this.ca=!!b["927845"];this.P=!!b["936926"];this.C=!!b["913430"];
this.o=!(!b["926301"]&&!b["926305"]);this.j=!!b["926304"];this.g=!!(b["931959"]||b["931960"]||b["931961"]||b["931962"]||b["931963"]||b["931973"]||b["931974"]||b["931979"]||b["931981"]);this.V=!(!b["931974"]&&!b["931960"]);this.F=!!b["931972"];this.k=!!b["907252"];this.ka=!!b["927877"];this.U=!!b["943602"];this.L=!!b["907253"];this.da=!!b["939937"];this.A=!(!b["924220"]&&!b["924222"])};function Lq(a,b){this.b=a;this.g=b}Lq.prototype.clone=function(){return new Lq(this.b,this.g)};function Mq(a){this.b=[];if(a)t:{var b,c;if(a instanceof Mq){if(b=a.Ma(),c=a.Qa(),0>=a.Na()){a=this.b;for(var d=0;d<b.length;d++)a.push(new Lq(b[d],c[d]));break t}}else b=Rb(a),c=Qb(a);for(d=0;d<b.length;d++)Nq(this,b[d],c[d])}}function Nq(a,b,c){var d=a.b;d.push(new Lq(b,c));b=d.length-1;a=a.b;for(c=a[b];0<b;)if(d=b-1>>1,a[d].b>c.b)a[b]=a[d],b=d;else break;a[b]=c}f=Mq.prototype;
f.remove=function(){var a=this.b,b=a.length,c=a[0];if(!(0>=b)){if(1==b)nb(a);else{a[0]=a.pop();for(var a=0,b=this.b,d=b.length,e=b[a];a<d>>1;){var g=2*a+1,h=2*a+2,g=h<d&&b[h].b<b[g].b?h:g;if(b[g].b>e.b)break;b[a]=b[g];a=g}b[a]=e}return c.g}};f.Qa=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].g);return b};f.Ma=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].b);return b};f.eg=function(a){return hb(this.b,function(b){return b.g==a})};f.clone=function(){return new Mq(this)};
f.Na=function(){return this.b.length};f.isEmpty=function(){return E(this.b)};f.clear=function(){nb(this.b)};function Oq(){Mq.call(this)}w(Oq,Mq);function Pq(a,b){Zi.call(this);this.b=a;this.j=new Oq;this.o={};this.k=b||""}w(Pq,Zi);Pq.prototype.g=!1;function Qq(a,b,c){var d;for(c=Rp(a.b,c);0<=c;){d=a.b.b[c];if(d=d.k[Math.floor(b/(d.b*d.j))]?Op(d,b):null)return d;c--}return Op(a.b.b[0],b)}function Rq(a){if(!a.g)if(a.j.isEmpty())a.g=!1;else{a.g=!0;var b=a.j.remove(),c=new Image;a.k&&(c.crossOrigin=a.k);c.src=Np(a.b.b[b.Cp],b.Dp);c.onload=u(a.A,a,b.Cp,b.Dp)}}
Pq.prototype.A=function(a,b){this.g=!1;var c=this.b.b[a];c.k[b]=!0;Rq(this);var d,e=c.b*c.j;d=b*e;c=Math.min(d+e-1,c.g-1);d=[d,c];this.H("l",d[0],d[1])};function Sq(a,b,c){this.g=a;this.b=b;this.j=c}var Tq={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},Uq=["widevine","playready"];function Vq(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}
function Wq(a,b,c){var d,e=Vq();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<Uq.length;g++){var h=Uq[g];if(c[h])for(var k=Tq[h],l=0;l<k.length;l++){var p=k[l];if(d(b,p)||0==b.indexOf("audio/mp4")&&"widevine"==h&&a.canPlayType(b)&&a.canPlayType('video/mp4; codecs="avc1"',p))return new Sq(h,p,c[h])}}return null};function Xq(a,b){this.b=a;this.j=b;this.k=0;Object.defineProperty(this,"timestampOffset",{get:this.kA,set:this.lA});Object.defineProperty(this,"buffered",{get:this.jA})}f=Xq.prototype;f.append=function(a){this.b.webkitSourceAppend(this.j,a)};f.abort=function(){this.b.webkitSourceAbort(this.j)};f.jA=function(){return this.b.webkitSourceState==this.b.SOURCE_CLOSED?new Yq:this.b.webkitSourceBuffered(this.j)};f.kA=function(){return this.k};
f.lA=function(a){this.k=a;this.b.webkitSourceTimestampOffset(this.j,a)};function Yq(){this.length=0};function Zq(a){this.activeSourceBuffers=this.sourceBuffers=[];this.b=a;this.g=NaN;this.j=0;Object.defineProperty(this,"duration",{get:this.Jz,set:this.Mz});Object.defineProperty(this,"readyState",{get:this.Kz});this.b.addEventListener("webkitsourceclose",u(this.Lz,this),!0)}f=Zq.prototype;f.addEventListener=function(a,b,c){this.b.addEventListener(a,b,c)};f.iB=function(){return this.b.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.j++).toString();this.b.webkitSourceAddId(b,a);a=new Xq(this.b,b);this.sourceBuffers.push(a);return a};f.Kz=function(){switch(this.b.webkitSourceState){case this.b.SOURCE_CLOSED:return"closed";case this.b.SOURCE_OPEN:return"open";case this.b.SOURCE_ENDED:return"ended"}return""};f.endOfStream=function(a){var b=this.b.EOS_NO_ERROR;"network"==a?b=this.b.EOS_NETWORK_ERR:"decode"==a&&(b=this.b.EOS_DECODE_ERR);this.b.webkitSourceEndOfStream(b)};f.Lz=function(){nb(this.sourceBuffers)};
f.Jz=function(){return this.g};f.Mz=function(a){this.g=a;this.b.webkitSourceSetDuration&&this.b.webkitSourceSetDuration(a)};function $q(a){this.k=[];this.F=a||null}function ar(a,b,c,d){for(var e=0;e<c.length;e++)a.listen(b,c[e],d)}$q.prototype.listen=function(a,b,c){c=u(c,this.F||this);a.addEventListener(b,c,!1);this.k.push(a,b,c)};$q.prototype.removeAll=function(){if(this.k)for(;this.k.length;){var a=this.k.shift(),b=this.k.shift(),c=this.k.shift();a.removeEventListener&&a.removeEventListener(b,c)}};$q.prototype.fa=function(){return null===this.k};$q.prototype.dispose=function(){this.removeAll();this.k=null};function br(a,b,c,d){$q.call(this);this.g=this.b=null;this.A=b;this.j=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Zq(a);this.o="";this.B=null;ar(this,this.j,["sourceopen","webkitsourceopen"],ra(this.D,d,c));ar(this,this.j,["sourceclose","webkitsourceclose"],this.C)}w(br,$q);function cr(a,b){a.B=b}function dr(a){if(!a.o){var b;b=a.j;b=b.iB?b.b.webkitMediaSourceURL:window.URL.createObjectURL(b);a.o=b}return a.o}
br.prototype.xf=function(a){er(this)?this.j.duration=a:this.A=a};function er(a){return"open"==a.j.readyState}function fr(a){return"closed"==a.j.readyState}function gr(a){return a.b.updating||a.g.updating}function hr(a){return a.b?!!a.b.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}br.prototype.D=function(a,b){isNaN(this.A)||(this.j.duration=this.A,this.A=NaN,this.b=this.j.addSourceBuffer(a),this.g=this.j.addSourceBuffer(b),this.B&&(this.B(this),this.B=null))};
br.prototype.C=function(){this.dispose()};br.prototype.dispose=function(){var a=this.o;if(a)try{window.URL.revokeObjectURL(a)}catch(b){}this.o="";br.G.dispose.call(this)};function ir(a){if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if('video/webm; codecs="vp9"'==a)return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!aq().canPlayType(a)};var jr=ih||jh;function kr(){return lr("(ps3; leanback shell)")}function lr(a){var b=dc;return b?0<=b.toLowerCase().indexOf(a.toLowerCase()):!1};function mr(a,b,c,d){this.b=c;this.j=a;this.o=d||"";this.k=b;this.g={}}function nr(a){if(a.b)a=a.j;else if(a.k){var b=ue(new J(a.j),"id"),b="http://www.youtube.com/api/manifest/t2b/source/youtube/id/"+encodeURIComponent(b),b=b+("/itag/"+a.o),b=b+"/mfmt/amf";a=fe(new J(Wd(a.j,a.g)),b).toString()}else a=Wd(a.j,a.g);return a};function or(a,b){this.b=new mr(a,b.id in pr&&kr(),!1,b.id);this.Xf=b}var qr="9h8(H*".split(""),rr="h98(H*".split(""),sr=["M","a","v","A","V"];or.prototype.getInfo=function(){return this.Xf};or.prototype.Gn=function(){return this.Xf.video.b};var tr={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},ur={"application/x-mpegURL":"maybe"},vr={"application/x-mpegURL":"maybe"};
function wr(a,b){if(!bq())return[];var c=xr(a,b);a=!c.length&&b?xr(a,!1):c;for(var d={},c=aq(),e=0;e<a.length;e++){var g=a[e];if(yr(c,g.getInfo().mimeType)&&!(g.Xf.id in zr||kr()&&"5"==g.Xf.id)){var h=g.Gn();if(!d[h]||jo(d[h].getInfo()))d[h]=g}}var k=[];z(qo,function(a){(g=d[a])&&k.push(g)});return k}function yr(a,b){var c;if(!(c=a.canPlayType(b))){var d;jh?d=vr[b]:2.2==Up?d=tr[b]:lr("android")&&lr("chrome")&&(d=ur[b]);c=d||""}return c}
function Ar(){return lr("android")&&lr("chrome")&&!zc(29)?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var pr={5:!0,34:!0,35:!0},zr={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function Br(a){var b=[];z(a,function(a){a.url&&b.push(Cr(a.url,a.type,"medium","0"))});return b}
function Cr(a,b,c,d,e){var g=new go,h=ro[c];h||(c="small",h=ro.small);c=new po(h[0],h[1],e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new or(a,new io(d,b,g,c))}function xr(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],g;if(g=pc&&0!=e.Xf.video.g)g=1==e.getInfo().g;g||0!=e.Xf.video.g==b&&c.push(e)}return c}
function Dr(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||fo(e.s);e.url=yi(e.url,{signature:g})}e.url&&c.push(Cr(e.url,e.type,e.quality,e.itag,e.stereo3d))}return wr(c,!!b)}function Er(a){a=Br(a);return wr(a,!1)}function Fr(a,b){if(!b.b)return a[0];for(var c=0;c<a.length;c++){var d=a[c].getInfo();if(oo[d.video.b]<=b.b)return a[c]}return a[a.length-1]}
function Gr(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.b){var g=a.b[e];if(ir(g.info.mimeType)){if(g.info.o){d||(d=aq());if(!Wq(d,g.info.mimeType,g.info.o))continue;if(261==g.info.id&&(kr()||!d.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))continue}c[g.info.j]=c[g.info.j]||[];c[g.info.j].push(g.info)}}a=qr;if(lr("cros armv7")||lr("windows nt 5.1"))a=rr;d=B(a,b);a=B(sr,b);if(!d||!a)return null;d=c[d];a=c[a];Ab(d,function(a,b){return b.video.width-a.video.width||b.ra-a.ra});
Ab(a,function(a,b){return b.ra-a.ra});return new Jp(d,a)};function Hr(a){Zi.call(this);this.Wa=new G(0,0);this.ka=!1;this.D=[];this.k={};this.Ia={};this.o={};Ir(this,a)}w(Hr,Zi);Hr.A=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Hr.b=1;Hr.j=-21;Hr.o=18E3;Hr.k="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords 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(" ");
Hr.g=["www.youtube.com","manifest.googlevideo.com"];f=Hr.prototype;f.ga=!1;f.Jm="";f.ir=null;f.fq=!0;f.tb=!1;f.Pm="";f.Om="";f.Uk=!1;f.dq=Hr.b;f.Oh=null;f.Eo=null;f.th="";f.jg=0;f.Rl=!1;f.Sn=3;f.hr=!1;f.Mf="";f.Da="";f.qe=0;f.qk=!1;f.Th=!1;f.lk=!1;f.yf=0;f.Le=!1;f.ip=!1;f.Mh=0;f.lg=!1;f.Tn=!0;f.ck=!1;f.vm=!1;f.Yl=!1;f.ib=!1;f.wm=!1;f.Ul=!1;f.re=!1;f.Wo=!1;f.xm=!1;f.av=0;f.Oa=0;f.Sj=0;f.zs=!1;f.Bm="";f.$j=!1;f.$l=Ep;f.Do=0;f.rk=!1;f.Ta=0;f.Rj=null;f.am=2;f.tf=Ep;f.Nr=!1;f.Lf=!1;f.te=null;f.title="";
f.ue="";f.An=null;f.Uj="vvt";f.As=!1;f.Un=!1;f.clipStart=0;f.clipEnd=Infinity;
function Jr(a,b){var c=b||{};c.iv_invideo_url&&(a.Pm=ef(c.iv_invideo_url));c.iv_cta_url&&(a.Om=ef(c.iv_cta_url));c.cta_conversion_urls&&(a.nb=c.cta_conversion_urls);a.th=kq(a.th,c.author);a.Rl=hq(a.Rl,c.cc_asr);var d=c.ttsurl||a.Mf;d&&$e(d)?a.Mf=d:a.Mf=lq(a.Mf,c.ttsurl);a.Da=kq(a.Da,c.cpn);a.I=kq(a.I,c.subscribed);a.am=iq(a.am,c.sentiment,Gq);a.title=kq(a.title,c.title);a.za=kq(a.za,c.ypc_preview);a.zs=hq(a.zs,c.paygated);a.As=hq(a.As,c.requires_purchase);c.keywords&&(a.Ia=Kr(c.keywords));c.rvs&&
(a.da=Lr(c.rvs));c.poster&&(a.Bm=c.poster);z(Hr.k,function(a){a in c&&(this.k[a]=c[a])},a)}
function Ir(a,b){var c=b||{};a.tb="1"!=c.hlsdvr||mh||jh&&5>Bq?!1:!0;a.Uk="1"==c.infringe||"1"==c.muted;a.xb=c.authkey;a.Sa=c.authuser;a.Da||(a.Da=c.cpn||eq());a.ux=v();a.Tj=c.t;a.qk=hq(a.qk,c.cenchd);a.Th=hq(a.Th,c.enable_cardio);a.lk=hq(a.lk,c.enable_cardio_before_playback);a.yf=jq(a.yf,c.end||c.endSeconds);a.Tn="1"!=c.no_get_video_log;a.ck="1"==c.tmi;a.vm=hq(a.vm,c.noiba);a.Yl="1"==c.livemonitor;a.ib="1"==c.live_playback;a.wm=hq(a.wm,c.mdx);a.Ul=hq(a.Ul,c.on3g);a.xm=hq(a.xm,c.utpsa);a.bc=c.iurlmaxres_webp||
c.iurlmaxres;a.B=kq(a.B,c.oauth_token);a.C=kq(a.C,c.vvt);a.Xj=c.osig;a.qd=c.ptchn;a.Md=c.oid;a.L=c.ptk;a.hf=c.pltype;a.yb=c.plid;a.A=c.eventid;a.cb=c.osid;a.La=kq(a.La,c.list);a.of=c.pyv_view_beacon_url;a.ak=c.pyv_quartile25_beacon_url;a.Zj=c.pyv_quartile50_beacon_url;a.Vj=c.pyv_quartile75_beacon_url;a.Yj=c.pyv_quartile100_beacon_url;a.Aw=c.purchase_id;a.fb=c.sdetail;a.az=c.sourceid;!a.Ha&&c.session_data&&(a.Ha=si(c.session_data,"&").feature);a.ac=1==jq(a.ac?1:0,c.is_fling);a.hb=kq(a.hb,c.ctrl);a.gb=
kq(a.gb,c.ytr);a.qf=c.iurlsd_webp||c.iurlsd;a.Un="1"==c.skip_kansas_logging;a.$l=oq(a.$l,c.vq);a.tf=oq(a.tf,c.suggestedQuality);a.oB=c.approx_threed_layout||0;a.Nr="1"==c.threed_converted;a.wa=c.iurl_webp||c.iurl;a.Ta=jq(a.Ta,c.start||c.startSeconds);a.Nh=hq(a.Nh,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId;a.pf=kq(a.pf,c.vss_credentials_token);a.Uj=kq(a.Uj,c.vss_credentials_token_type);Mr(a,c.watermark);a.nf=kq(a.nf,c.ypc_gid);a.lf=kq(a.lf,c.ypc_license_session_token);if(c.ad3_module||c.ad_module)"1"==
c.allow_html5_ads?(a.ga=!0,"1"==c.ad_preroll&&a.D.push("ad")):"1"!=c.supported_without_ads&&(a.ip=!0);c.adaptive_fmts&&(a.Jm=c.adaptive_fmts);c.license_info&&(a.ir=Nr(c.license_info));c.allow_embed&&(a.fq="1"==c.allow_embed);c.autoplay&&(a.lg="1"==c.autoplay);c.iv_load_policy&&(a.Ba=Or(c.iv_load_policy,a.Ba));c.cc_load_policy&&(a.Sn=Or(c.cc_load_policy,2));"0"==c.dash&&(a.hr=!0);if(c.dashmpd){a.O=Wd(c.dashmpd,{cpn:a.Da});var d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O);e&&(e=fo(e[1]),a.O=a.O.replace(d,"/signature/"+
e))}c.delay&&(a.qe=Za(c.delay));c.idpj&&(a.Mh=Za(c.idpj));c.url_encoded_fmt_stream_map&&(a.ue=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.U=c.hlsvp);c.length_seconds&&(a.Oa=Za(c.length_seconds));c.ldpj&&(a.Sj=Za(c.ldpj));c.loudness&&(a.kf=c.loudness,a.dq=Pr(a));c.partnerid&&(a.T=Za(c.partnerid));c.probe_url&&(a.mf=ff(Wd(c.probe_url,{cpn:a.Da})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(He)&&(a.V=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(He)&&(a.pa=c.pyv_conv_url);c.url_encoded_third_party_media&&
(a.te=Lr(c.url_encoded_third_party_media));c.threed_module&&!c.threed_converted&&(a.xa=c.threed_module,a.yx=6);if("1"==c.track_embed||c.tk)a.$j=!0;c.two_stage_token&&(a.Oh=c.two_stage_token);c.watch_ajax_token&&(a.Eo=c.watch_ajax_token);c.fresca_preroll&&a.D.push("fresca");c.ypc_module&&a.D.push("ypc");c.ypc_clickwrap_module&&a.D.push("ypc_clickwrap");c.spacecast_address&&(a.D.push("spacecast"),a.Ra=c.spacecast_address);void 0!=c.start&&(a.clipStart=c.start);void 0!=c.end&&(a.clipEnd=c.end);void 0!=
c.atc&&(a.ca=c.atc);a.jf=kq(a.jf,c.ucid);z("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.o[a]=c[a])},a);a.o.focEnabled=hq(a.o.focEnabled,c.focEnabled);a.o.rmktEnabled=hq(a.o.rmktEnabled,c.rmktEnabled);a.k=c;Jr(a,c);Qr(a)}function Qr(a){(a.ib||a.Yl)&&"1"==a.k.as3fb||!Ar()||a.hr||(a.Jm?a.j=qp(Rr(a,a.Jm),a.ir):a.O&&(a.Le=!0,a.ka=!0))}f.Gz=function(a){if(!this.fa()){if(this.j=a)this.Oa=this.j.duration||this.Oa;this.Xl()}};
f.Xl=function(){this.fa()||(this.Le=!1,this.H("dataloaded",this.k))};function Sr(a){if(!a.fa()){a.g=null;a.P=null;a.F=null;if(a.aa){var b=Rr(a,a.aa);a.F=Dr(b,!1);a.g=new Jp(A(a.F,function(a){return a.getInfo()}))}!a.g&&a.j&&(a.g=Gr(a.j));if(!a.g){if(a.te&&a.Wo)a.F=Er(a.te);else{b=Rr(a,a.ue);if(a.U){var c=gq(a.U,a.Da,!a.Ul);b.push(c)}a.F=Dr(b,!!a.xa||a.Lf)}a.F.length&&(a.g=new Jp(A(a.F,function(a){return a.getInfo()})))}a.Do=Math.min(.8*a.Oa,180)}}function Tr(a){return a.b&&a.b.o||null}
function Ur(a,b){return s(a.Ia[b])?a.Ia[b]:null}function Vr(a){!a.An&&a.k.storyboard_spec&&(a.An=new Pp(a.k.storyboard_spec));return a.An}function Wr(a){var b=Vr(a);!a.Rj&&b&&(a.Rj=new Pq(b),S(a,a.Rj));return a.Rj}function Xr(a){return!a.fa()&&!(!a.videoId&&!a.te)}function Yr(a){return Xr(a)&&!a.Le&&!a.ka&&(!!(a.j||a.ue||a.te||a.aa||a.U)||C(a.D,"fresca")||C(a.D,"ypc"))}function Zr(a,b){var c={format:"RAW",method:"GET",context:a,onSuccess:a.QD,onError:a.PD};a.Le=!0;Fi(b,c);tq("vir")}
function Pr(a){return a.kf?(a=Math.min(Hr.j-a.kf,0),Math.pow(10,a/20)):Hr.b}f.QD=function(a){this.fa()||(this.Le=!1,a=ui(a.responseText),"fail"==a.status?this.H("onStatusFail",a):(tq("virc"),Ir(this,a),this.Xl()))};f.PD=function(){this.fa()||(this.Le=!1,this.H("onStatusFail",{errorcode:"manifest.net",reason:""}))};function Or(a,b){var c=parseInt(a,10);return Sb(Tp,c)?c:b}function Lr(a){a=a.split(",");return a=a.map(function(a){return ui(a)})}
function Rr(a,b){var c=Lr(b);z(c,function(a){a.url&&(a.url=Wd(a.url,{cpn:this.Da}))},a);return c}function Kr(a){var b={};z(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}function Mr(a,b){if(b){var c=b.split(",");2<=c.length&&(a.la=c[1],-1!=a.la.search(Hr.A)&&(a.la=""))}}function Nr(a){a=Lr(a);var b={};z(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}function $r(a,b){return!!a.k[b]}function as(a){return a.ib&&!a.tb}
function bs(a){return a.ib&&a.tb};function cs(a,b){this.type=a||"";this.id=b||""}function ds(a){return new cs(a.substr(0,2),a.substr(2))}cs.prototype.toString=function(){return this.type+this.id};function es(a){Zi.call(this);this.views=0;this.b=[];this.g=[];this.Ga=Math.max(0,a.index||0);this.Qf=!!a.loop;this.Am=a.startSeconds||0;this.Fq="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";a.video_id&&(this.b[this.Ga]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);if(a.list)switch(a.listType){case "user_uploads":fs(this,a.list);break;case "user_favorites":gs(this,a.list);break;case "search":hs(this,a.list);break;default:a.playlist_length&&
(this.tc=a.playlist_length),this.j=ds(a.list),0==a.fetch&&a.videoList?is(this,a.videoList):js(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Ga&&(this.b=[]);z(b,function(a){a&&this.b.push({video_id:a})},this);this.tc=this.b.length;b=A(this.b,function(a){return a.video_id});ks(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.be=!0}else a.videoList&&is(this,a.videoList);ls(this,!!a.shuffle)}w(es,Zi);f=es.prototype;f.Qf=!1;f.Am=0;f.rr=!1;
f.Ga=0;f.title="";f.tc=0;f.Fq=!1;f.be=!1;f.Bh=!1;f.Me=null;function ms(a){return a.Qf||a.Ga+1<a.tc}function ns(a){if(++a.Ga>=a.tc)if(a.Qf)a.Ga=0;else return null;os(a,a.Ga);return ps(a,a.Ga)}function qs(a){if(0>--a.Ga)if(a.Qf)a.Ga=a.tc-1;else return null;os(a,a.Ga);return ps(a,a.Ga)}function ps(a,b){var c=void 0!=b?b:a.Ga,c=a.b&&c in a.b?a.b[a.g[c]]:null,d=null;c&&(d=new Hr(c),d.Ta=a.Am||d.clipStart||0,a.j&&(d.La=a.j.toString()));return d}
function ls(a,b){a.rr=b;var c=a.g&&null!=a.g[a.Ga]?a.g[a.Ga]:a.Ga;a.g=[];for(var d=0;d<a.b.length;d++)a.g.push(d);a.Ga=c;if(a.rr){c=a.g[a.Ga];for(d=1;d<a.g.length;d++){var e=Math.floor(Math.random()*(d+1)),g=a.g[d];a.g[d]=a.g[e];a.g[e]=g}for(d=0;d<a.g.length;d++)a.g[d]==c&&(a.Ga=d)}a.H("shuffle")}function os(a,b){a.Ga=Gb(b,0,a.tc-1);a.Am=0}function fs(a,b){a.Bh||(a.j=new cs("UU","PLAYER_"+b),ks(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}
function gs(a,b){a.Bh||(a.j=new cs("FL","PLAYER_"+b),ks(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function hs(a,b){if(!a.Bh){a.j=new cs("SR",b);var c={search_query:b};a.Fq&&(c.mob="1");ks(a,"/search_ajax?style=json&embeddable=1",c)}}function js(a){if(!a.Bh){var b={list:a.j},c=ps(a);c&&c.videoId&&(b.v=c.videoId);ks(a,"/list_ajax?style=json&action_get_list=1",b)}}function ks(a,b,c){Fi(Wd(b,c),{format:"JSON",onSuccess:function(a,b){rs(this,b)},context:a})}
function rs(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;var c=ps(a);a.b=[];z(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.b.push(a))},a);a.tc=a.b.length;ss(a,c);ls(a,!1);a.Bh=!1;a.be=!0;a.Me&&a.Me()}}function is(a,b){0<a.Ga&&(a.b=[]);z(b,function(a){this.b.push(a)},a);a.tc=a.b.length;a.be=!0}function ss(a,b){if(b){var c=b.videoId;if(!a.b[a.Ga]||a.b[a.Ga].video_id!=c)for(var d=0;d<a.b.length;d++)if(a.b[d].video_id==c){a.Ga=d;break}}}
f.J=function(){this.Me=null;Kh(this.b);es.G.J.call(this)};function ts(){var a={volume:100,muted:!1},b=oi("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Gb(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a};function us(a,b,c){s(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 vs(a)}function vs(a,b,c){if(la(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 ws(a,b){this.app=a;this.g=null;this.k={};this.o={};this.B={};this.A={};this.j=null;this.b=b;V(this,"cueVideoById",this.uv);V(this,"loadVideoById",this.Tk);V(this,"cueVideoByUrl",this.vv);V(this,"loadVideoByUrl",this.Ov);V(this,"playVideo",this.Jg);V(this,"pauseVideo",this.pauseVideo);V(this,"stopVideo",this.yk);V(this,"clearVideo",this.sv);V(this,"getVideoBytesLoaded",this.Fv);V(this,"getVideoBytesTotal",this.Gv);V(this,"getVideoLoadedFraction",this.xl);V(this,"getVideoStartBytes",this.Iv);
V(this,"cuePlaylist",this.tv);V(this,"loadPlaylist",this.Nv);V(this,"nextVideo",this.Pv);V(this,"previousVideo",this.Qv);V(this,"playVideoAt",this.jp);V(this,"setShuffle",this.Xv);V(this,"setLoop",this.Uv);V(this,"getPlaylist",this.jc);V(this,"getPlaylistIndex",this.ep);V(this,"getPlaylistId",this.fp);V(this,"loadModule",this.Mv);V(this,"unloadModule",this.hp);V(this,"setOption",this.gp);V(this,"getOption",this.ki);V(this,"getOptions",this.Bv);V(this,"mute",this.Mo);V(this,"unMute",this.No);V(this,
"isMuted",this.Lo);V(this,"setVolume",this.setVolume);V(this,"getVolume",this.Ko);V(this,"seekTo",this.Kg);V(this,"getPlayerState",this.getPlayerState);V(this,"getPlaybackRate",this.Dv);V(this,"setPlaybackRate",this.Wv);V(this,"getAvailablePlaybackRates",this.xv);V(this,"getPlaybackQuality",this.Cv);V(this,"setPlaybackQuality",this.dp);V(this,"getAvailableQualityLevels",this.yv);V(this,"getCurrentTime",this.getCurrentTime);V(this,"getDuration",this.ug);V(this,"addEventListener",this.addEventListener);
V(this,"removeEventListener",this.removeEventListener);V(this,"getVideoUrl",this.Jv);V(this,"getDebugText",this.zv);V(this,"getVideoEmbedCode",this.Hv);V(this,"getVideoData",this.getVideoData);V(this,"addCueRange",this.kp);V(this,"removeCueRange",this.Rv);V(this,"setSize",this.Yv);V(this,"getApiInterface",this.wv);V(this,"destroy",this.destroy);V(this,"showVideoInfo",this.Zv);V(this,"hideVideoInfo",this.Kv);xs(this,"getInternalApiInterface",this.Av);xs(this,"getAdState",this.getAdState);xs(this,"isNotServable",
this.Lv);xs(this,"getUpdatedConfigurationData",this.Ev);xs(this,"updateRemoteReceivers",this.$v);xs(this,"sendAbandonmentPing",this.Sv);xs(this,"setAutonav",this.Tv);xs(this,"setMinimized",this.Vv);xs(this,"channelSubscribed",ca);xs(this,"channelUnsubscribed",ca)}w(ws,Gh);function V(a,b,c){a.k[b]=u(c,a)}function xs(a,b,c){a.o[b]=u(c,a)}f=ws.prototype;f.wv=function(){return Rb(this.k)};f.Av=function(){return Rb(this.o)};f.K=function(){return this.g};
f.addEventListener=function(a,b){var c=b;s(b)&&(c=function(){q(b).apply(window,arguments)},this.B[b]=c);this.app.subscribe(a,c)};f.Nu=function(a,b){var c=s(b)?a+b:a+ma(b);if(!this.A[c]){s(b)&&(b=function(){q(b).apply(window,arguments)});var d=u(function(a){b({target:this.j,data:a})},this);this.A[c]=d;this.addEventListener(a,d)}};f.removeEventListener=function(a,b){var c=b;if(s(b)&&b in this.B){var c=this.B[b],d=this.B;b in d&&delete d[b]}this.app.ja(a,c)};
f.Ou=function(a,b){var c=s(b)?a+b:a+ma(b);this.A[c]&&this.removeEventListener(a,this.A[c])};f.getPlayerState=function(){return this.app.pa};f.Kg=function(a,b){ys(this.app,!0,this.b);zs(this.app,a,b,void 0,this.b)};f.getCurrentTime=function(){return this.app.getCurrentTime(this.b)};f.ug=function(){return As(this.app)};f.Ko=function(){return this.app.D.volume};f.setVolume=function(a){this.app.setVolume(a)};f.Lo=function(){return this.app.D.muted};f.Mo=function(){Bs(this.app)};f.No=function(){Cs(this.app)};
f.Jg=function(){ys(this.app,!0,this.b);Ds(this.app,this.b)};f.pauseVideo=function(){Es(this.app,this.b)};f.yk=function(){var a=this.app;Fs(a,"play_pause")||Gs(a,this.b)};f.sv=function(){};f.Dv=function(){return this.app.la};f.Wv=function(a){Hs(this.app,a)};f.xv=function(){return this.app.b.vg?Jq:[1]};f.Cv=function(){return Is(this.app,this.b)};f.dp=function(a){Js(this.app,a,this.b)};f.yv=function(){var a=Ks(this.app,this.b);return a?Ls(a):[]};f.Fv=function(){return this.xl()};f.Gv=function(){return 1};
f.xl=function(){return Ms(this.app.aa)};f.Iv=function(){return 0};f.Yv=function(){this.app.g.oh()};f.Tv=function(){};f.Vv=function(a){this.app.b.Xq=a};f.Mv=function(a){this.app.C.isAvailable(a)&&(a=Ns(this.app.C,a))&&!a.loaded&&a.load()};f.hp=function(a){this.app.C.isAvailable(a)&&(a=Ns(this.app.C,a))&&a.loaded&&a.unload()};f.Tk=function(a,b,c){a=Os(this.app,vs(a,b,c),this.b);ys(this.app,a,this.b)};f.uv=function(a,b,c){Ps(this.app,vs(a,b,c),this.b)};
f.Ov=function(a,b,c){a=us(a,b,c);b=Os(this.app,a,this.b);ys(this.app,b,this.b);b=this.app;(a=re(new J(a.mediaContentUrl)))&&Qs(b.b,a)};f.vv=function(a,b,c){b=us(a,b,c);Ps(this.app,b,this.b);a=this.app;(b=re(new J(b.mediaContentUrl)))&&Qs(a.b,b)};f.Jv=function(){return Rs(this.app)};f.zv=function(){return Ss(this.app)};f.Hv=function(){return""};f.kp=function(a,b,c){return Ts(this.app,a,b,c)};
f.Rv=function(a){t:{for(var b=this.app,c=b.j.A.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){e.$a.clear();b.j.A.Ag(e);b.H("cuerangesremoved",[e]);a=!0;break t}}a=!1}return a};f.Nv=function(a,b,c,d){var e=this.app;e.P=!1;Us(e,a,b,c,d)};f.tv=function(a,b,c,d){var e=this.app;e.P=!0;Us(e,a,b,c,d)};f.Pv=function(){Vs(this.app)};f.Qv=function(){Ws(this.app)};f.jp=function(a){var b=this.app;b.o&&(b.o.be?Xs(b,ps(b.o,a)):b.P=!1,os(b.o,a))};f.Xv=function(a){var b=this.app;b.o&&ls(b.o,a)};
f.Uv=function(a){var b=this.app;b.o&&(b.o.Qf=a)};f.jc=function(){var a=this.app.o;if(!a)return null;for(var b=[],c=0;c<a.tc;c++)b[c]=ps(a,c).videoId;return b};f.ep=function(){var a;a=this.app;a=a.o?a.o.Ga:null;return null==a?-1:a};f.fp=function(){return Ys(this.app)};f.gp=function(a,b,c){return Zs(this.app,a,b,c)};f.ki=function(a,b,c){return Zs(this.app,a,b,c)};f.Bv=function(a){var b;b=this.app;a?b=b.B&&a==b.B.ua?b.B.Bj():$s(b.C,a):(a=$s(b.C),b.B&&a.push(b.B.ua),b=a);return b};
f.getVideoData=function(){var a=Ks(this.app,this.b),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.th,title:a.title},b=this.fp();b&&(a.list=b);return a};f.Zv=function(){at(this.app.g)};f.Kv=function(){this.app.g.om()};f.getAdState=function(){return this.app.getAdState()};f.Lv=function(){var a=this.app.getPlayerState();return!(!a||!W(a,128)||5!=bt[a.b.errorCode])};f.Ev=function(){var a=this.app,b=a.O.clone(),c=b.args,a=ct(a),d=Zb(a.k);!a.ib&&0<a.Ta&&(d.start=a.Ta);sa(c,d);return b};
f.$v=function(a,b){var c=this.app;c.F&&dt(c.F,a,b);et(c.b)&&6!=c.I&&(c.b.Cg=!E(a),c.b.Cg?(1!=c.I&&3!=c.I||!b||ft(c.B),a.length&&1!=c.I&&gt(c)):ft(c.F))};f.destroy=function(){this.app.dispose()};f.Sv=function(){var a=Ks(this.app);if(a){var b=a.getPlayerState();W(b,2)||W(b,128)||(ht(a),it(a))}};f.J=function(){if(this.g){for(var a in this.k)this.g[a]=null;for(a in this.o)this.g[a]=null}this.B=this.A=this.g=null;ws.G.J.call(this)};function jt(a,b){ws.call(this,a,b);V(this,"cueVideoByPlayerVars",this.rD);V(this,"loadVideoByPlayerVars",this.$p);V(this,"preloadVideoByPlayerVars",this.wD);V(this,"seekBy",this.Ns);V(this,"enableLicenseIntercept",this.sD);V(this,"updatePlaylist",this.BD);V(this,"resumeLicenseSession",this.xD);V(this,"updateLastActiveTime",this.AD);V(this,"updateVideoData",this.CD);V(this,"getStoryboardFormat",this.uD);V(this,"getProgressState",this.Mg);V(this,"hideUserInterface",this.vD);V(this,"showUserInterface",
this.zD);V(this,"getHousebrandProperties",this.tD);V(this,"setPlaybackQualityRange",this.yD)}w(jt,ws);f=jt.prototype;f.kp=function(a,b,c,d,e){return Ts(this.app,a,b,c,d,e)};f.rD=function(a){Ps(this.app,a,this.b)};f.getPlayerState=function(a){var b=this.app;return 2==a?b.Ba:b.pa};f.$p=function(a){Os(this.app,a,this.b)};f.wD=function(){};f.Jg=function(){Ds(this.app,this.b)};f.Kg=function(a,b){zs(this.app,a,b,void 0,this.b)};
f.Ns=function(a,b,c){var d=this.app,e=this.b;zs(d,d.getCurrentTime()+a,b,c,e)};f.sD=function(){var a=this.app;a.Ha||(a.Ha=!0,a.xa={})};f.BD=function(){var a=this.app;kt(a);a.Ua("onPlaylistUpdate")};f.xD=function(a,b){var c=this.app,d=c.xa[a];d&&(lt(d,b),d.start(),delete c.xa[a])};f.AD=function(){this.app.b.Zf=v()};f.CD=function(a){var b=Ks(this.app,this.b||1);b&&(b=b.b,Jr(b,a),b.H("dataupdated"))};f.uD=function(){return this.app.getVideoData().k.storyboard_spec};f.vD=function(){this.app.g.Ej(!1)};
f.zD=function(){this.app.g.Ej(!0)};f.tD=function(){var a=this.app.R();return{yc:a.yc,zb:a.zb(),dc:a.dc}};f.getVideoData=function(){var a=jt.G.getVideoData.call(this),b=Ks(this.app,this.b),b=b?b.getVideoData():{};a.cpn=b.Da;a.isLive=b.ib;return a};f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):jt.G.getCurrentTime.call(this)};f.ug=function(a){return a?As(this.app,a):jt.G.ug.call(this)};
f.Mg=function(){var a=this.app.getVideoData(),b=!a.ib||a.tb,c=a.clipEnd,d=a.clipStart,e=this.getCurrentTime(),g=this.ug(),h;h=(h=Ks(this.app,void 0))?mt(h.g):0;return{allowSeeking:b,clipEnd:c,clipStart:d,current:e,displayedStart:-1,duration:g,loaded:h,seekableEnd:a.j&&!isNaN(xp(a.j))?xp(a.j):a.Oa,seekableStart:a.j&&!isNaN(yp(a.j))?yp(a.j):0}};f.xl=function(a){var b=this.app;return(b.A&&2==b.A.getPlayerType())==(2==a)?Ms(b.aa):0};f.yD=function(a,b){Js(this.app,a,this.b,b)};function nt(a,b){jt.call(this,a,b)}w(nt,jt);f=nt.prototype;f.getPlayerType=function(){return this.b};f.Tk=function(a,b,c){Os(this.app,vs(a,b,c),this.b)};f.Jg=function(){Ds(this.app,this.b)};f.Kg=function(a,b){zs(this.app,a,b,void 0,this.b)};function ot(a,b){a.app.g.g.appendChild(b)}function pt(a){return a.app.g.element}f.R=function(){return this.app.R()};f.jc=function(){return this.app.o};f.getVideoData=function(){var a=Ks(this.app,this.b);return a&&a.getVideoData()};f.isFullscreen=function(){return this.app.R().mb};function qt(a,b){this.fg=a;this.ff=b+"::"}w(qt,Zh);f=qt.prototype;f.fg=null;f.ff="";f.set=function(a,b){this.fg.set(this.ff+a,b)};f.get=function(a){return this.fg.get(this.ff+a)};f.remove=function(a){this.fg.remove(this.ff+a)};f.Wb=function(a){var b=this.fg.Wb(!0),c=this,d=new xd;d.next=function(){for(var d=b.next();d.substr(0,c.ff.length)!=c.ff;)d=b.next();return a?d.substr(c.ff.length):c.fg.get(d)};return d};function rt(a,b){this.start=a;this.end=b;this.b=ma(this)}function st(a,b){return a.start!=b.start?a.start-b.start:a.end!=b.end?a.end-b.end:a.b!=b.b?a.b-b.b:0}rt.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)};rt.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function tt(){this.b=[]}function ut(a,b){for(var c=[],d=0;d<a.b.length;++d){var e=a.b[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c}function vt(a,b,c){for(var d=[],e=0;e<a.b.length;++e){var g=a.b[e];if(null!=c&&g.start>c)break;g.start>b&&d.push(g)}return d}function wt(a,b){for(var c=[],d=0;d<a.b.length;++d){var e=a.b[d];e.contains(b)&&c.push(e.end);if(e.start>b){c.push(e.start);break}}c.sort(zb);return c[0]};function xt(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 zt(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 At(a,b){var c=zt(a,b);return 0<=c?a.end(c):NaN}function Bt(a){return a&&a.length?a.end(a.length-1):NaN}function Ct(a,b){var c=At(a,b);return 0<=c?c-b:0};function Dt(){}var Et=Cq&&4>Bq?.1:0,Ft=new Dt;f=Dt.prototype;f.xd=null;f.Zl=!1;function Gt(a,b){var c="";b&&(a.xd=b,c=nr(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.b||a.load())}function Ht(a,b){0<a.readyState&&(a.currentTime=Math.max(Et,b))}f.getCurrentTime=function(){return this.currentTime||0};function mt(a){return 0<Bt(a.buffered)&&a.duration?At(a.buffered,a.currentTime):0}function Ms(a){var b=a.duration||0;return Infinity==b?1:b?mt(a)/b:0}function It(a){return a.paused||a.ended}
function Jt(a){a.ended&&Ht(a,0);!a.hasAttribute("src")&&a.xd&&(a.src=nr(a.xd),a.xd.b||a.load());a.play();Cq&&7<=Bq&&Mg(a,u(function(){L(u(this.Wr,this,this.currentTime,0),500)},a))}f.Wr=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),L(u(this.Wr,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function Kt(a){a.currentSrc&&(jr&&Ht(a,0),ad(a),a.removeAttribute("src"),a.load(),a.xd&&a.xd.b&&(a.xd=null))}function Lt(a){Kt(a);a.xd=null}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function Mt(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.vC=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.wC=function(){this.Zl&&!this.muted&&(this.muted=!0)};
Dt.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:xt(this.played),vbu:xt(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 Nt(a,b){for(var c=0;c<b.length;c++)a.appendChild(b[c])};function Ot(a,b){a=a||64;a&128&&!b||a&2&&a&16||(this.g=a,this.b=b||null)}Ot.prototype.g=64;Ot.prototype.b=null;
function Pt(a,b,c){if(W(a,128))return a;var d=a.g,e=a.b,g=b.target;switch(b.type){case "ended":if(0>=g.networkState||!g.src)break;d=Qt();e=null;break;case "pause":W(a,256)?d^=256:W(a,32)||W(a,2)||(d=4,W(a,1)&&W(a,8)&&(d|=1),e=null);break;case "playing":d=8;e=null;break;case "abort":if(64==d)break;case "error":t: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 t}b={errorCode:b}}else b=null;b&&(e=b,d|=128);break;case "canplay":d&=-2;break;case "progress":W(a,8)&&Rt(c,g)&&(d|=1);break;case "seeked":d&=-18;break;case "seeking":d|=16;0>=Ct(g.buffered,g.currentTime)&&(d|=1);d&=-3;break;case "waiting":W(a,2)||(d|=1);break;case "timeupdate":W(a,16)||(d=Rt(c,g)?d|1:d&-2);1<g.readyState&&0<g.currentTime&&(d&=-65);break;default:return a}return St(a,d,e)}
function Rt(a,b){if(!a)return!1;var c=Ct(b.buffered,b.currentTime);return Tt(a,b.currentTime,v(),c)}function St(a,b,c){return b==a.g&&c==a.b||b&128&&!c||b&2&&b&16?a:new Ot(b,c)}function Ut(a,b){return St(a,a.g|b)}function W(a,b){return!!(a.g&b)}function Vt(a){return W(a,128)?-1:W(a,2)?0:W(a,1)&&!W(a,32)?3:W(a,64)?-1:W(a,8)?1:W(a,4)?2:-1}function Qt(){var a;return a=14};function Wt(a,b,c){rt.call(this,a,b);a=c||{};this.ta=a.id||"";void 0!=a.priority&&(this.Jh=a.priority);this.namespace=a.namespace||"";this.$a=new Lh;this.g=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.Wd=a.visible)}w(Wt,rt);f=Wt.prototype;f.ta="";f.Jh=7;f.active=!0;f.Wd=!1;f.style="ytp-ad-progress";f.$a=null;f.namespace="";f.getId=function(){return this.ta};function Xt(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}
function Yt(a,b){return a.start==b.start?a.Jh==b.Jh?0:a.Jh<b.Jh?-1:1:a.start<b.start?-1:1};function Zt(a,b,c){Zi.call(this);this.C=a;this.B=b;this.D=c;this.o=new Kk(250);tk(this.o,"tick",this.lc,!1,this);S(this,this.o);this.j=[];this.b=[];this.g=new tt}w(Zt,Zi);f=Zt.prototype;f.ti=!1;f.wg=!1;f.gm=!1;f.fm=!1;f.Dg=null;f.wi=function(a){this.lc();z(arguments,function(a){this.j.push(a);var c=this.g.b;!c.length||0<st(a,c[c.length-1])?c.push(a):Eb(c,a,st);this.H("onAdd",a)},this);this.lc()};f.Ag=function(a){z(arguments,function(a){a=this.j.indexOf(a);0<=a&&$t(this,a)},this);this.lc()};
function $t(a,b){var c=a.j.splice(b,1)[0],d=a.g.b,e=yb(d,c,st);0<=e&&qb(d,e);b=a.b.indexOf(c);0<=b&&a.b.splice(b,1);a.H("onRemove",c)}f.Lg=function(){this.k=au(this);this.wg=!0;this.lc()};f.reset=function(){this.wg=this.ti=!1;bu(this);for(var a=this.j.length-1;0<=a;a--)$t(this,a);this.lc();this.A=null};function cu(a,b){var c=[];if(!b.length)return c;b.sort(Yt);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.b.indexOf(e)&&(a.b.push(e),c.push(["onEnter",e]))}return c}
function du(a,b){var c=[];if(!b.length)return c;b.sort(Yt);for(var d=0;d<b.length;d++){var e=b[d],g=a.b.indexOf(e);0>g||(a.b.splice(g,1),c.push(["onExit",e]))}return c}
f.lc=function(){this.fm=!0;if(!this.gm)for(var a=3;this.fm&&a;){this.fm=!1;this.gm=!0;if(this.wg&&!this.ti){bu(this);for(var b=au(this),c=[],d=[],e=0;e<this.b.length;e++){var g=this.b[e];g.active&&!g.contains(b)&&d.push(g)}c=c.concat(du(this,d));d=ut(this.g,b);e=this.B();!W(e,48)&&b>this.k&&(d=d.concat(vt(this.g,this.k,b)));c=c.concat(cu(this,d));this.k=b;!this.ti&&this.A&&(c.unshift(["onLockBlockExit",this.A]),this.A=null,W(e,2)&&(this.k=2147483647));this.D()&&(b=wt(this.g,this.k),null!=b&&(this.Dg=
Mk(u(this.lc,this),b-this.k)));eu(this,c)}this.gm=!1;a--}};function eu(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];"onLockBlockExit"==d[0]||"onLockBlockEnter"==d[0]?a.H.apply(a,d):e.$a.H.apply(e.$a,d)}}function bu(a){null!=a.Dg&&(Nk(a.Dg),a.Dg=null)}function au(a){return W(a.B(),2)?2147483647:1E3*a.C()}f.J=function(){Bk(this.o,"tick",this.lc,!1,this);bu(this);this.A=this.g=this.b=this.j=null;Zt.G.J.call(this)};function fu(a){Zi.call(this);this.b=a;if(this.nn){a="yt-html5-player-modules::"+this.nn;var b=new ai;if(a=b.isAvailable()?a?new qt(b,a):b:null)this.aa=new ci(a)}}w(fu,Zi);f=fu.prototype;f.ua="";f.hc="";f.Ac=!1;f.loaded=!1;f.ek=!1;f.nc=null;f.Hf=function(a){var b=tb(arguments),c=u(this.Ec,this),d=u(this.ld,this);z(b,function(a){a.namespace=this.ua;a.$a.subscribe("onEnter",c);a.$a.subscribe("onExit",d)},this);this.H("command_add_cuerange",b,this.b.getPlayerType())};
f.sB=function(a){var b=tb(arguments);this.H("command_remove_cuerange",b,this.b.getPlayerType())};function gu(a){a.H("command_remove_cuerange_all",a.ua,a.b.getPlayerType())}function hu(a){a.H("command_preroll_ready",a.ua,a.b.getPlayerType())}function iu(a,b){O(b,a.ua);a.b.app.g.N.K().appendChild(b)}function ju(a,b){a.H("command_show_dialog",b)}f.pg=function(){ju(this)};f.create=function(){this.Ac||(this.Ja(this.b),O(pt(this.b),this.ua+"-created"),this.Ac=!0)};
f.destroy=function(){this.loaded&&this.unload();P(pt(this.b),this.ua+"-created");this.Ac=!1};f.load=function(){this.loaded=!0;O(pt(this.b),this.ua+"-loaded");this.H("loaded",this.ua)};f.unload=function(){this.loaded=!1;P(pt(this.b),this.ua+"-loaded");this.H("unloaded",this.ua)};f.Ec=function(){};f.ld=function(){};f.ke=function(){};function ku(a,b,c){a.H("command_navigate_to_url",b,c)}f.log=function(a){this.H("command_log",this.hc,a)};
function lu(a,b,c){var d={},e;for(e in b)d[a.ua+"_"+e]=b[e];b={};for(var g in c)b[a.ua+"_"+g]=c[g];a.H("command_log_timing",d,b)}f.$g=function(){return null};function mu(a,b){if(!a.aa)return null;var c;try{c=a.aa.get(b)}catch(d){a.aa&&a.aa.remove(b)}return c}function nu(a,b,c){if(a.aa)try{a.aa.set(b,c)}catch(d){}}function ou(a,b){a.H("command_disable_controls",b,a.ua)}function pu(a,b){a.H("command_enable_controls",b,a.ua)}function qu(a){a.H("command_stop_redirect_controls")}
function ru(a){a.H("command_play",!1,a.b.getPlayerType())}f.pauseVideo=function(){this.H("command_pause",!1,this.b.getPlayerType())};function su(a,b){a.H("command_redirected_show_is_playing",b)}function tu(a){return a.b.app.g.j}function uu(a,b){a.H("module_menu_item_add",b)}function vu(a,b){a.H("module_menu_item_remove",b)}function wu(a){a.H("module_menu_show",void 0)}f.Fj=function(){};f.Bj=function(){return[]};f.Ja=function(){return!1};f.Dm=function(){return!0};
f.Jl=function(a,b){this.nc&&this.nc.ke&&this.nc.ke.apply(this.nc,arguments)};f.Hi=function(){};var xu={bG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",gG:"ERROR_AUTHENTICATION_EXPIRED",hG:"ERROR_AUTHENTICATION_MALFORMED",iG:"ERROR_AUTHENTICATION_MISSING",lG:"ERROR_BAD_REQUEST",rG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",zG:"ERROR_CGI_PARAMS_MALFORMED",AG:"ERROR_CGI_PARAMS_MISSING",pH:"YTP_DEVICE_FALLBACK",xH:"YTP_ERROR_LICENSE",AH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",DH:"YTP_ERROR_GEO_FAILURE",RH:"YTP_ERROR_GENERIC",SH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",aI:"YTP_ERROR_INVALID_DRM_MESSAGE",
eI:"LEARN_MORE",HI:"YTP_ERROR_NOT_SIGNED_IN",XI:"YTP_ERROR_PURCHASE_NOT_FOUND",YI:"YTP_ERROR_PURCHASE_REFUNDED",aJ:"YTP_ERROR_RENTAL_EXPIRED",tG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",uG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",wG:"YTP_ERROR_CAST_TOKEN_FAILED",vG:"YTP_ERROR_CAST_TOKEN_EXPIRED",xG:"YTP_ERROR_CAST_TOKEN_MALFORMED",lJ:"YTP_ERROR_SERVER_ERROR",AJ:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",CJ:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",DJ:"YTP_ERROR_STREAMING_NOT_ALLOWED",EJ:"YTP_ERROR_STREAMING_UNAVAILABLE",
dJ:"YTP_ERROR_RETRYABLE_ERROR",MJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",LJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",RJ:"YTP_ERROR_UNSUPPORTED_DEVICE",TJ:"YTP_ERROR_UNUSUAL_ACTIVITY",bK:"YTP_ERROR_VIDEO_FORBIDDEN",dK:"YTP_ERROR_VIDEO_NOT_FOUND"},yu={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 zu(a){return(a=yu[a.toString()])?a:"YTP_ERROR_LICENSE"};var Au={created:1,ready:2,testing:4,"testing-starting":3,live:6,"live-starting":5,complete:8,"complete-starting":7};function Bu(a){m.setTimeout(function(){throw a;},0)}var Cu;
function Du(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();return function(b){a.then(function(){try{b()}catch(a){Bu(a)}})}}var b=m.MessageChannel;"undefined"===typeof b&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(b=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=b.location.protocol+
"//"+b.location.host,a=u(function(a){if(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 b){var c=new b,d={},e=d;c.port1.onmessage=function(){d=d.next;var a=d.kt;d.kt=null;a()};return function(a){e.next={kt:a};e=e.next;c.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 Eu(a,b){if(!Fu){var c=Gu;ka(m.setImmediate)?m.setImmediate(c):(Cu||(Cu=Du()),Cu(c));Fu=!0}Hu.push(new Iu(a,b))}var Fu=!1,Hu=[];function Gu(){for(;Hu.length;){var a=Hu;Hu=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.b.call(c.scope)}catch(d){Bu(d)}}}Fu=!1}function Iu(a,b){this.b=a;this.scope=b};function Ju(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Ku(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Lu(a,b){this.g=0;this.A=void 0;this.b=this.j=null;this.k=this.o=!1;try{var c=this;a.call(b,function(a){Mu(c,2,a)},function(a){Mu(c,3,a)})}catch(d){Mu(this,3,d)}}Lu.prototype.then=function(a,b,c){return Nu(this,ka(a)?a:null,ka(b)?b:null,c)};Ju(Lu);Lu.prototype.cancel=function(a){0==this.g&&Eu(function(){var b=new Ou(a);Pu(this,b)},this)};
function Pu(a,b){if(0==a.g)if(a.j){var c=a.j;if(c.b){for(var d=0,e=-1,g=0,h;h=c.b[g];g++)if(h=h.hj)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(0==c.g&&1==d?Pu(c,b):(d=c.b.splice(e,1)[0],Qu(c,d,3,b)))}}else Mu(a,3,b)}function Ru(a,b){a.b&&a.b.length||2!=a.g&&3!=a.g||Su(a);a.b||(a.b=[]);a.b.push(b)}
function Nu(a,b,c,d){var e={hj:null,ms:null,os:null};e.hj=new Lu(function(a,h){e.ms=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.os=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof Ou?h(b):a(e)}catch(p){h(p)}}:h});e.hj.j=a;Ru(a,e);return e.hj}Lu.prototype.B=function(a){this.g=0;Mu(this,2,a)};Lu.prototype.C=function(a){this.g=0;Mu(this,3,a)};
function Mu(a,b,c){if(0==a.g){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(Ku(c)){a.g=1;c.then(a.B,a.C,a);return}if(la(c))try{var d=c.then;if(ka(d)){Tu(a,c,d);return}}catch(e){b=3,c=e}}a.A=c;a.g=b;Su(a);3!=b||c instanceof Ou||Uu(a,c)}}function Tu(a,b,c){function d(b){g||(g=!0,a.C(b))}function e(b){g||(g=!0,a.B(b))}a.g=1;var g=!1;try{c.call(b,e,d)}catch(h){d(h)}}function Su(a){a.o||(a.o=!0,Eu(a.D,a))}
Lu.prototype.D=function(){for(;this.b&&this.b.length;){var a=this.b;this.b=[];for(var b=0;b<a.length;b++)Qu(this,a[b],this.g,this.A)}this.o=!1};function Qu(a,b,c,d){if(2==c)b.ms(d);else{for(;a&&a.k;a=a.j)a.k=!1;b.os(d)}}function Uu(a,b){a.k=!0;Eu(function(){a.k&&Vu.call(null,b)})}var Vu=Bu;function Ou(a){ta.call(this,a)}w(Ou,ta);Ou.prototype.name="cancel";/*
 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 Wu(a,b){this.o=[];this.I=a;this.F=b||null;this.k=this.b=!1;this.j=void 0;this.D=this.M=this.B=!1;this.A=0;this.g=null;this.C=0}f=Wu.prototype;f.cancel=function(a){if(this.b)this.j instanceof Wu&&this.j.cancel();else{if(this.g){var b=this.g;delete this.g;a?b.cancel(a):(b.C--,0>=b.C&&b.cancel())}this.I?this.I.call(this.F,this):this.D=!0;this.b||this.bh(new Xu)}};f.Qo=function(a,b){this.B=!1;Yu(this,a,b)};function Yu(a,b,c){a.b=!0;a.j=c;a.k=!b;Zu(a)}
function $u(a){if(a.b){if(!a.D)throw new av;a.D=!1}}f.Os=function(a){$u(this);Yu(this,!0,a)};f.bh=function(a){$u(this);Yu(this,!1,a)};function bv(a,b,c){cv(a,b,null,c)}function cv(a,b,c,d){a.o.push([b,c,d]);a.b&&Zu(a)}f.then=function(a,b,c){var d,e,g=new Lu(function(a,b){d=a;e=b});cv(this,d,function(a){a instanceof Xu?g.cancel():e(a)});return g.then(a,b,c)};Ju(Wu);function dv(a){return hb(a.o,function(a){return ka(a[1])})}
function Zu(a){if(a.A&&a.b&&dv(a)){var b=a.A,c=ev[b];c&&(m.clearTimeout(c.ta),delete ev[b]);a.A=0}a.g&&(a.g.C--,delete a.g);for(var b=a.j,d=c=!1;a.o.length&&!a.B;){var e=a.o.shift(),g=e[0],h=e[1],e=e[2];if(g=a.k?h:g)try{var k=g.call(e||a.F,b);n(k)&&(a.k=a.k&&(k==b||k instanceof Error),a.j=b=k);Ku(b)&&(d=!0,a.B=!0)}catch(l){b=l,a.k=!0,dv(a)||(c=!0)}}a.j=b;d&&(k=u(a.Qo,a,!0),d=u(a.Qo,a,!1),b instanceof Wu?(cv(b,k,d),b.M=!0):b.then(k,d));c&&(b=new fv(b),ev[b.ta]=b,a.A=b.ta)}
function av(){ta.call(this)}w(av,ta);av.prototype.message="Deferred has already fired";av.prototype.name="AlreadyCalledError";function Xu(){ta.call(this)}w(Xu,ta);Xu.prototype.message="Deferred was canceled";Xu.prototype.name="CanceledError";function fv(a){this.ta=m.setTimeout(u(this.g,this),0);this.b=a}fv.prototype.g=function(){delete ev[this.ta];throw this.b;};var ev={};function gv(a,b){var c=b||{},d=c.document||document,e=Xc("SCRIPT"),g={Ps:e,kb:void 0},h=new Wu(hv,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){iv(e,!0);h.bh(new jv(1,"Timeout reached for loading script "+a))},l),g.kb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(iv(e,c.uA||!1,k),h.Os(null))};e.onerror=function(){iv(e,!0,k);h.bh(new jv(0,"Error while loading script "+a))};Nc(e,{type:"text/javascript",charset:"UTF-8",
src:a});kv(d).appendChild(e);return h}function kv(a){var b=a.getElementsByTagName("HEAD");return!b||E(b)?a.documentElement:b[0]}function hv(){if(this&&this.Ps){var a=this.Ps;a&&"SCRIPT"==a.tagName&&iv(a,!0,this.kb)}}function iv(a,b,c){null!=c&&m.clearTimeout(c);a.onload=ca;a.onerror=ca;a.onreadystatechange=ca;b&&window.setTimeout(function(){cd(a)},0)}function jv(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ta.call(this,c);this.code=a}w(jv,ta);function lv(a,b){this.g=new J(a);this.b=b?b:"callback";this.kb=5E3}var mv=0;lv.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(mv++).toString(36)+v().toString(36);m._callbacks_||(m._callbacks_={});var e=this.g.clone();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||se(e,g,a[g]);b&&(m._callbacks_[d]=nv(d,b),se(e,this.b,"_callbacks_."+d));b=gv(e.toString(),{timeout:this.kb,uA:!0});cv(b,null,ov(d,a,c),void 0);return{ta:d,zr:b}};
lv.prototype.cancel=function(a){a&&(a.zr&&a.zr.cancel(),a.ta&&pv(a.ta,!1))};function ov(a,b,c){return function(){pv(a,!1);c&&c(b)}}function nv(a,b){return function(c){pv(a,!0);b.apply(void 0,arguments)}}function pv(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=ca)};function qv(a){this.b=a;a=null;a=rv(this.b);a="("+a.join("|")+")";a=wa("__%s__",a);this.j=new RegExp(a,"g");this.g={}}var sv=/__([a-z]+(?:_[a-z]+)*)__/g;function rv(a){var b=[],c={};a.replace(sv,function(a,e){e in c||(c[e]=!0,b.push(e))});return b}function tv(a,b){var c=u(function(a,c){return Ca(b[c]||this.g[c]||"")},a);return a.b.replace(a.j,c)};function uv(a,b){Zi.call(this);this.j=tv(new qv(b),{video_id:a});this.b=new Kk(15E3+Math.floor(3E4*Math.random()));tk(this.b,"tick",u(this.g,this));this.g();this.b.start()}w(uv,Zi);uv.prototype.J=function(){this.b.dispose();uv.G.J.call(this)};uv.prototype.g=function(){(new lv(this.j)).send(null,u(this.o,this),u(this.k,this))};uv.prototype.o=function(a){this.H("payload",a);Lk(this.b,15E3+Math.floor(3E4*Math.random()))};uv.prototype.k=function(){this.H("error");var a=this.b.b;192E4>a&&Lk(this.b,2*a)};function vv(a){this.b={};this.j={};this.k={};this.g=wv(this,a)}w(vv,Gh);function wv(a,b,c){var d=0,e=Xc(b[d++]);if(s(b[d])||ha(b[d])||null===b[d]){var g=b[d++];ha(g)&&(g=g.join(" "));if(g=xv(a,e,"className",g))yv(a,e,"className",g),zv(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ha(h))wv(a,h,e);else if(la(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&yv(g,k,l,xv(g,k,l,h[l]))}else s(h)&&(g=xv(a,e,"child",h),null!=g&&e.appendChild(Yc(g)))}c&&c.appendChild(e);return e}f=vv.prototype;f.K=function(){return this.g};
function zv(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)zv(a,d[b],c);else a.b[b]=c}f.X=function(a,b){n(b)?bd(a,this.g,b):a.appendChild(this.g)};f.dd=function(){cd(this.g)};function xv(a,b,c,d){return s(d)&&"{{"==d.substr(0,2)?(a.j[d]=[b,c],null):d}f.update=function(a){for(var b in a)Av(this,b,a[b])};function Av(a,b,c){if(c!=a.k[b]){var d=a.j["{{"+b+"}}"];d&&(a.k[b]=c,yv(a,d[0],d[1],c))}}function Bv(a){return ha(a)&&s(a[0])}
function yv(a,b,c,d){if("child"==c){ad(b);if(!ha(d)||Bv(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ja(g)||s(g)||la(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?Bv(g)?c.push(wv(a,g)):g.K?c.push(g.K()):c.push(Yc(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.J=function(){this.b={};this.j={};this.k={};this.dd();delete this.g;vv.G.J.call(this)};function Cv(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 Dv(a){return Math.round(1E3*a)/10};var Ev={BJ:"html5-stop-propagation",CG:"html5-chromeless",hI:"html5-live-dvr-disabled",iI:"html5-live-dvr-engaged",jI:"html5-live-playback",uI:"html5-mobile",wI:"modest-branding",FI:"html5-native-controls",GJ:"html5-tablet",FJ:"html5-tablet-body",pI:"html5-main-video",XJ:"html5-video-container",YJ:"html5-video-content",ZJ:"html5-video-controls",$J:"ytp-fallback",aK:"ytp-fallback-content",cK:"html5-video-loader",jK:"html5-watermark",nG:"html5-branded-watermark",IG:"html5-context-menu",cz:"html5-context-menu-copy-debug-info",
dz:"html5-context-menu-copy-embed-html",ez:"html5-context-menu-copy-video-url",fz:"html5-context-menu-copy-video-url-at-current-time",gz:"html5-context-menu-link",hz:"html5-context-menu-report-playback-issue",iz:"html5-context-menu-show-video-info",JG:"html5-show-video-info-template",vI:"html5-modal-panel",TH:"ideal-aspect",rI:"autominimize-controls",sI:"autominimize-controls-aspect",HH:"autohide-controls",IH:"autohide-controls-fullscreenonly",tI:"autominimize-progress-bar",BH:"hide-controls-when-cued",
VJ:"ytp-user-idle",JH:"hide-info-bar",KH:"html5-hide-share",LH:"html5-hide-volume",jG:"ytp-autohide-fade",fK:"video-thumbnail",RI:"ytp-dialog",dG:"html5-async-progress",eG:"html5-async-success",cG:"html5-async-error",yG:"html5-center-overlay",gJ:"ytp-scalable-icon-shrink",fJ:"ytp-scalable-icon-grow",QH:"house-brand",kJ:"sentiment-like",jJ:"sentiment-dislike"};function Fv(){this.j=new vv(["div","html5-fresca-module",["div","html5-fresca-band-slate",["hgroup","html5-fresca-message",["h2","html5-fresca-heading","{{heading}}"],["h3","html5-fresca-subheading","{{subheading}}"],["h4","html5-fresca-long-test","{{long_text}}"]],["span","html5-fresca-countdown","{{countdown}}"]]]);S(this,this.j);this.g=this.j.b["html5-fresca-module"];O(this.g,"html5-stop-propagation");this.k=0;this.b=null}w(Fv,Gh);Fv.prototype.K=function(){return this.g};
Fv.prototype.update=function(a){this.A&&this.b.state==a.state&&this.b.startTime==a.startTime&&this.b.g==a.g&&this.b.b.join()==a.b.join()||(this.b=a,this.g.style.backgroundImage=this.b.g||"none",a=this.b.getMessage(),this.j.update({heading:a[0]||"",subheading:a[1]||"",long_text:a[2]||""}),this.o())};function Gv(a){var b=Math.floor((new Date).valueOf()/1E3);return b>a?We("YTP_FRESCA_STARTING_SOON_MESSAGE"):Cv(a-b)}
Fv.prototype.o=function(){var a;a=this.b;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;Q(this.g,"html5-fresca-show-countdown",a);a&&(this.j.update({countdown:Gv(this.b.startTime)}),N(this.k),this.k=L(u(this.o,this),1E3))};Fv.prototype.J=function(){N(this.k);this.g=null;Fv.G.J.call(this)};function Hv(a){this.b=[];this.j=!1;a&&Iv(this,a)}Hv.prototype.state=-1;function Jv(a){return{imageUrl:a.g,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function Iv(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=Au[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.g="url("+d.imgUrl+")"),(d=d.content)&&d.length&&(d=d.splice(0,3),a.b=A(d,function(a){return a.$t}));if(c=c.entry)a.j=0<=kb(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}Hv.prototype.getMessage=function(){return this.b.length?this.b:Kv(this)};
function Kv(a){switch(a.state){case 6:return a.j?[]:[We("YTP_FRESCA_STAND_BY_MESSAGE"),We("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[We("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[We("YTP_FRESCA_EVENT_OVER_MESSAGE"),We("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[We("YTP_FRESCA_STAND_BY_MESSAGE")]}};function Lv(a){fu.call(this,a);Ve({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."})}w(Lv,fu);f=Lv.prototype;f.ua="fresca";f.hc="fresca";
f.Zi=!1;f.Zg=!1;f.Ja=function(){return $r(this.b.getVideoData(),"fresca_module")};
f.create=function(a){Lv.G.create.call(this);yr(aq(),"application/x-mpegURL")||Ar()?(this.Zi=this.Zg=!1,ou(this,["play_pause","seek"]),this.j=new Fv,ot(this.b,this.j.K()),this.k=a||new uv(this.b.getVideoData().videoId,this.b.R().Ro+(this.b.R(),"feeds/api/users/live/broadcasts/__video_id__/states?v=2&alt=json-in-script")),this.k.subscribe("payload",this.Zz,this),this.k.subscribe("error",this.Yz,this),this.subscribe("onStateChange",this.Zq,this)):Mv(this.b.app.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
void 0)};f.destroy=function(){this.ja("onStateChange",this.Zq,this);Kh(this.k,this.j);Lv.G.destroy.call(this)};f.Zq=function(a){this.g&&(this.Zi=W(a.state,2),(Nv(a,16)||this.Zi)&&Ov(this,this.g))};f.Yz=function(){this.Zg||(Pv(this,new Hv),Ov(this,this.g))};f.Zz=function(a){Pv(this,new Hv(a));a=this.b.getVideoData();6!=this.g.state||a.U||a.O?Ov(this,this.g):this.b.Tk(a.videoId)};
function Ov(a,b){var c=6>b.state;!c&&a.b.app.j.xa&&(b.g||b.b.length)&&(c=!0);a.Zi&&!a.b.R().Ic&&(c=!0);b.j||(c=!0);if(!a.Zg)switch(b.state){case 6:b.j&&(a.Zg=!0,pu(a,["play_pause","seek"]),hu(a));break;case 8:case 7:c=a.Zg=!0}c&&a.j.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function Qv(a){return $r(a.getVideoData(),"fresca_module")?new Lv(a):null}function Pv(a,b){a.g!=b&&(a.g=b,a.b.R().zb()&&a.H("publish_external_event","onFrescaStateChange",Jv(a.g)))};function Rv(a){this.Mn=a||window;this.kd=[]}f=Rv.prototype;f.Mn=null;f.kd=null;f.listen=function(a,b,c,d){c=u(c,d||this.Mn);a=R(a,b,c);this.kd.push(a);return a};function Sv(a,b,c,d,e,g){d=u(d,g||a.Mn);b=Og(b,c,d,e);a.kd.push(b)}f.Fa=function(a){Ng(a);pb(this.kd,a)};f.removeAll=function(){Ng(this.kd);this.kd=[]};function Tv(a,b,c){this.b=a;this.k=b||0;this.g=c;this.j=u(this.ey,this)}w(Tv,Gh);f=Tv.prototype;f.ta=0;f.J=function(){Tv.G.J.call(this);this.stop();delete this.b;delete this.g};f.start=function(a){this.stop();this.ta=Mk(this.j,n(a)?a:this.k)};f.stop=function(){0!=this.ta&&Nk(this.ta);this.ta=0};f.ey=function(){this.ta=0;this.b&&this.b.call(this.g)};function Uv(){U.call(this);this.b=0;this.endTime=this.startTime=null}w(Uv,U);f=Uv.prototype;f.Kc=function(){this.Jb("begin")};f.Dd=function(){this.Jb("end")};f.vb=function(){this.Jb("finish")};f.onStop=function(){this.Jb("stop")};f.Jb=function(a){this.S(a)};function Vv(){Uv.call(this);this.g=[]}w(Vv,Uv);Vv.prototype.add=function(a){C(this.g,a)||(this.g.push(a),tk(a,"finish",this.k,!1,this))};Vv.prototype.remove=function(a){pb(this.g,a)&&Bk(a,"finish",this.k,!1,this)};Vv.prototype.J=function(){z(this.g,function(a){a.dispose()});this.g.length=0;Vv.G.J.call(this)};function Wv(){Vv.call(this);this.j=0}w(Wv,Vv);
Wv.prototype.play=function(a){if(0==this.g.length)return!1;if(a||0==this.b)this.j=0,this.Kc();else if(1==this.b)return!1;this.Jb("play");-1==this.b&&this.Jb("resume");var b=-1==this.b&&!a;this.startTime=v();this.endTime=null;this.b=1;z(this.g,function(c){b&&-1!=c.b||c.play(a)});return!0};Wv.prototype.pause=function(){1==this.b&&(z(this.g,function(a){1==a.b&&a.pause()}),this.b=-1,this.Jb("pause"))};
Wv.prototype.stop=function(a){z(this.g,function(b){0==b.b||b.stop(a)});this.b=0;this.endTime=v();this.onStop();this.Dd()};Wv.prototype.k=function(){this.j++;this.j==this.g.length&&(this.endTime=v(),this.b=0,this.vb(),this.Dd())};var Xv=/#(.)(.)(.)/;function Yv(a){if(!Zv.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Xv,"#$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 Zv=/^#(?:[0-9a-f]{3}){1,2}$/i;var $v={},aw=null;function bw(a){a=ma(a);delete $v[a];Wb($v)&&aw&&aw.stop()}function cw(){aw||(aw=new Tv(function(){dw()},20));var a=aw;0!=a.ta||a.start()}function dw(){var a=v();Lb($v,function(b){ew(b,a)});Wb($v)||cw()};function fw(a,b,c,d){Uv.call(this);if(!ha(a)||!ha(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.k=a;this.A=b;this.duration=c;this.o=d;this.g=[]}w(fw,Uv);f=fw.prototype;f.nd=0;
f.play=function(a){if(a||0==this.b)this.nd=0,this.g=this.k;else if(1==this.b)return!1;bw(this);this.startTime=a=v();-1==this.b&&(this.startTime-=this.duration*this.nd);this.endTime=this.startTime+this.duration;this.nd||this.Kc();this.Jb("play");-1==this.b&&this.Jb("resume");this.b=1;var b=ma(this);b in $v||($v[b]=this);cw();ew(this,a);return!0};f.stop=function(a){bw(this);this.b=0;a&&(this.nd=1);gw(this,this.nd);this.onStop();this.Dd()};f.pause=function(){1==this.b&&(bw(this),this.b=-1,this.Jb("pause"))};
f.J=function(){0==this.b||this.stop(!1);this.Jb("destroy");fw.G.J.call(this)};f.destroy=function(){this.dispose()};function ew(a,b){a.nd=(b-a.startTime)/(a.endTime-a.startTime);1<=a.nd&&(a.nd=1);gw(a,a.nd);1==a.nd?(a.b=0,bw(a),a.vb(),a.Dd()):1==a.b&&a.$m()}function gw(a,b){ka(a.o)&&(b=a.o(b));a.g=Array(a.k.length);for(var c=0;c<a.k.length;c++)a.g[c]=(a.A[c]-a.k[c])*b+a.k[c]}f.$m=function(){this.Jb("animate")};f.Jb=function(a){this.S(new hw(a,this))};
function hw(a,b){T.call(this,a);this.x=b.g[0];this.y=b.g[1];this.duration=b.duration;this.state=b.b}w(hw,T);function iw(a,b,c,d,e){fw.call(this,b,c,d,e);this.element=a}w(iw,fw);iw.prototype.j=ca;iw.prototype.$m=function(){this.j();iw.G.$m.call(this)};iw.prototype.Dd=function(){this.j();iw.G.Dd.call(this)};iw.prototype.Kc=function(){this.j();iw.G.Kc.call(this)};function jw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");iw.apply(this,arguments)}w(jw,iw);
jw.prototype.j=function(){this.element.style.left=Math.round(this.g[0])+"px";this.element.style.top=Math.round(this.g[1])+"px"};function kw(a,b,c,d){jw.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}w(kw,jw);kw.prototype.Kc=function(){this.k=[this.element.offsetLeft,this.element.offsetTop];kw.G.Kc.call(this)};function lw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");iw.apply(this,arguments)}w(lw,iw);
lw.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px";this.element.style.height=Math.round(this.g[1])+"px"};function mw(a,b,c,d,e){iw.call(this,a,[b],[c],d,e)}w(mw,iw);mw.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px"};function nw(a,b,c,d,e){ja(b)&&(b=[b]);ja(c)&&(c=[c]);iw.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");}w(nw,iw);nw.prototype.j=function(){$f(this.element,this.g[0])};
nw.prototype.show=function(){this.element.style.display=""};nw.prototype.hide=function(){this.element.style.display="none"};function ow(a,b,c){nw.call(this,a,1,0,b,c)}w(ow,nw);ow.prototype.Kc=function(){this.show();ow.G.Kc.call(this)};ow.prototype.Dd=function(){this.hide();ow.G.Dd.call(this)};function pw(a,b,c){nw.call(this,a,0,1,b,c)}w(pw,nw);pw.prototype.Kc=function(){this.show();pw.G.Kc.call(this)};function qw(a){return Math.pow(a,3)}function rw(a){return 3*a*a-2*a*a*a};function sw(a){return ha(a)&&a.length?a[0]:a}function tw(a){var b=/.+/;return s(a)&&null!=b&&null!=a&&a.match(b)?a:""}function uw(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 vw(a){return s(a)?a:""}function ww(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function xw(a,b){return"true"==a||"false"==a?"true"==a:b}function yw(a,b){return s(a)?parseFloat(a):b}
function zw(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Gb(a,c,d);if(a>=c&&a<=d)return a}return g}function Aw(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;z(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function Bw(a,b){if(null==a)return null;if(ia(a)){var c=[];z(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function Cw(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new vf(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 Dw(a){function b(a){return gb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function Ew(a){this.value=a};function Fw(a,b,c){this.value=a;this.target=b;this.b=c}var Gw={NG:"current",GI:"new"};function Hw(a){return a.value?a.value:null};function Iw(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var Jw={CLOSE:"close",LI:"openUrl",PAUSE:"pause",yE:"subscribe"},Kw={CLICK:"click",CLOSE:"close",sE:"hidden",eJ:"rollOut",wE:"rollOver",xE:"shown"};
function Lw(a){if(!a)return null;var b=ww(a.type,Jw),c=ww(a.trigger,Kw),d;if(d=sw(a.url)){var e=vw(d.value);if(e&&null!=vi(e)){var g=ww(d.target,Gw,"current");d=null==g?null:new Fw(e,g,xw(d.show_link_icon,!0))}else d=null}else d=null;sw(a.subscribeData);(a=sw(a.duration))?(a=Aw(a.value),a=new Ew(a)):a=null;return b?new Iw(b,c,d,a):null};function Mw(a,b,c,d,e,g,h,k,l,p,r,t,y,D){this.A=a;this.o=b;this.B=c;this.C=d;this.j=e;this.I=g;this.k=h;this.textAlign=k;this.M=l;this.D=p;this.F=r;this.b=t;this.g=y;this.L=D}
function Nw(a){if(!a)return null;var b=uw(a.fgColor,"#1A1A1A"),c=uw(a.bgColor,"#FFF"),d=uw(a.borderColor,"#000"),e=zw(a.borderWidth,10,0,5,!1,0),g=zw(a.bgAlpha,10,0,1,!1,.8);zw(a.borderAlpha,10,0,1,!1,.2);zw(a.gloss,16,0,255,!1,0);var h=uw(a.highlightFontColor,"#F2F2F2"),k=zw(a.highlightWidth,10,0,5,!1,3),l=vw(a.textAlign),p=zw(a.textSize,10,3.3,30.1,!0,3.6107),r=vw(a.fontWeight),t=Cw(a.padding),y=Dw(a.effects),D=zw(a.cornerRadius,10,0,10,!0,0);var M=sw(a.gradient);if(M){a=zw(M.x1,10,0,100,!0,0);
var ea=zw(M.y1,10,0,100,!0,0),jb=zw(M.x2,10,0,100,!0,100),bg=zw(M.y2,10,0,100,!0,100),$w=uw(M.color1,"#FFF"),DU=uw(M.color2,"#000"),EU=zw(M.opacity1,10,0,100,!0,100),M=zw(M.opacity2,10,0,100,!0,0);a=new Ow(a,ea,jb,bg,$w,DU,EU,M)}else a=null;return new Mw(b,c,d,e,g,h,k,l,p,r,t,y,D,a)}function Ow(a,b,c,d,e,g,h,k){this.o=a;this.B=b;this.A=c;this.C=d;this.b=e;this.g=g;this.j=h;this.k=k};function Pw(a,b){this.b=a;this.videoId=b};var Qw={pK:"xx",qK:"xy",uK:"yx",vK:"yy"};var Rw=cc("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var Sw=/<[^>]*>|&[^;]+;/g;function Tw(a,b){return b?a.replace(Sw,""):a}
var Uw=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Vw=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Ww=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]"),Xw=/^http:\/\/.*/,Yw=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,Zw=
/\s+/,ax=/\d/;function bx(){this.b=cx}bx.prototype.Pj=!0;bx.prototype.Oj=function(){return""};bx.prototype.toString=function(){return"Const{}"};function dx(a){return a instanceof bx&&a.constructor===bx&&a.b===cx?"":"type_error:Const"}var cx={};function ex(){this.b="";this.g=fx}ex.prototype.Pj=!0;var fx={};ex.prototype.Oj=function(){return this.b};function gx(a){var b=new ex;b.b=a;return b}var hx=gx(""),ix=/^[-.%_!# a-zA-Z0-9]+$/;function jx(){this.b=kx}jx.prototype.Pj=!0;jx.prototype.Oj=function(){return""};jx.prototype.bt=!0;jx.prototype.yh=function(){return 1};var kx={};function lx(){this.b="";this.j=mx;this.g=null}lx.prototype.bt=!0;lx.prototype.yh=function(){return this.g};lx.prototype.Pj=!0;lx.prototype.Oj=function(){return this.b};function nx(a){return a instanceof lx&&a.constructor===lx&&a.j===mx?a.b:"type_error:SafeHtml"}var ox=/^[a-zA-Z0-9-]+$/,px=cc("action","cite","data","formaction","href","manifest","poster","src"),qx=cc("link","script","style");
function rx(a){function b(a){if(ha(a))z(a,b);else{if(!(a instanceof lx)){var g=null;a.bt&&(g=a.yh());a=sx(Ca(a.Pj?a.Oj():String(a)),g)}d+=nx(a);a=a.yh();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";z(arguments,b);return sx(d,c)}var mx={};function sx(a,b){var c=new lx;c.b=a;c.g=b;return c}sx("",0);function tx(a,b){ha(b)||(b=[b]);var c=A(b,function(a){return s(a)?a:a.qp+" "+a.duration+"s "+a.timing+" "+a.pp+"s"});ux(a,c.join(","))}
var vx=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(oc)return zc("10.0");var a=document.createElement("div"),b=Cf(),c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!ox.test("div"))throw Error("Invalid tag name <div>.");if("div"in qx)throw Error("Tag name <div> is not allowed for SafeHtml.");var d=null,b="<div";if(c)for(var e in c){if(!ox.test(e))throw Error('Invalid attribute name "'+e+'".');var g=c[e];if(null!=g){if(g instanceof
bx)g=dx(g);else if("style"==e.toLowerCase()){if(!la(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof ex)){var h="",k=void 0;for(k in g){if(!/^[-_a-zA-Z0-9]+$/.test(k))throw Error("Name allows only [-_a-zA-Z0-9], got: "+k);var l=g[k];null!=l&&(l instanceof bx?l=dx(l):ix.test(l)||(l="zClosurez"),h+=k+":"+l+";")}g=h?gx(h):hx}h=void 0;h=g instanceof ex&&g.constructor===ex&&g.g===fx?g.b:"type_error:SafeStyle";g=h}else{if(/^on/i.test(e))throw Error('Attribute "'+
e+'" requires goog.string.Const value, "'+g+'" given.');if(g instanceof jx)g=g instanceof jx&&g.constructor===jx&&g.b===kx?"":"type_error:SafeUrl";else if(e.toLowerCase()in px)throw Error('Attribute "'+e+'" requires goog.string.Const or goog.html.SafeUrl value, "'+g+'" given.');}b+=" "+e+'="'+Ca(String(g))+'"'}}e=void 0;n(e)?ha(e)||(e=[e]):e=[];!0===Rw.div?b+=">":(d=rx(e),b+=">"+nx(d)+"</div>",d=d.yh());(c=c&&c.dir)&&(/^(ltr|rtl|auto)$/i.test(c)?d=0:d=null);b=sx(b,d);a.innerHTML=nx(b);a=a.firstChild;
b=a.style[$a("transition")];return""!=("undefined"!==typeof b?b:a.style[Gf(a,"transition")]||"")});function ux(a,b){Ef(a,"transition",b)};function wx(a,b){(a=Kc(a))&&a.style&&(ag(a,b),Q(a,"hid",!b))}function xx(a){return(a=Kc(a))?!("none"==a.style.display||mg(a,"hid")):!1}function yx(a){z(arguments,function(a){wx(a,!0)})}function zx(a){z(arguments,function(a){wx(a,!1)})}var Ax={};function Bx(a){if(a in Ax)return Ax[a];var b=Df(a,document.body.style);return Ax[a]=b}function Cx(a,b,c){(a=Kc(a))&&a.style&&(b=Bx(b))&&(a.style[b]=c)};function Dx(a,b,c){var d=a.B,e=a.C,g=a.b?a.b:"xy",h=Ex(c,a.k,g);a=Fx(c,a.j,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new wf(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 Ex(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function Fx(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function Gx(a,b,c,d,e,g,h,k,l,p,r){this.x=a;this.y=b;this.o=c;this.h=d;this.g=e;this.A=g;this.B=h;this.C=k;this.k=l;this.j=p;this.b=r}function Hx(a,b){if(!a)return null;var c=yw(a.x,0),d=yw(a.y,0),e=yw(a.w,0),g=yw(a.h,0),h=Aw(a.t),k=yw(a.scaleSlope,1);return b(c,d,e,g,h,yw(a.d,0),yw(a.px,0),yw(a.py,0),yw(a.scaleSlopeX,k),yw(a.scaleSlopeY,k),ww(a.scaleDimension,Qw,"xy"))}
function Ix(a,b,c){c=c?Ix(c,b):null;a=Dx(a,new wf(a.x,a.y,a.o,a.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);c=a.clone();b&&!b.contains(a)&&(a.width<b.width?c.left=Gb(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Gb(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function Jx(a){return a?Hx(a,function(a,c,d,e,g,h,k,l,p,r,t){return new Gx(a,c,d,e,g,h,k,l,p,r,t)}):null};function Kx(a,b,c,d,e,g,h,k,l,p,r,t,y){Gx.call(this,a,b,c,d,e,k,l,p,r,t,y);this.D=g;this.F=h}w(Kx,Gx);function Lx(a){if(!a)return null;var b=yw(a.sx,0),c=yw(a.sy,0);return Hx(a,function(a,e,g,h,k,l,p,r,t,y,D){return new Kx(a,e,g,h,k,b,c,l,p,r,t,y,D)})};function Mx(a,b,c,d){this.type=a;this.g=b;this.b=c;this.j=d}var Nx={lE:"anchored",ZI:"rect",mJ:"shapeless"};function Ox(a){if(!a)return null;var b=ww(a.type,Nx,"rect"),c=Bw(a.rectRegion,Jx),d=Bw(a.anchoredRegion,Lx);a=Bw(a.shapelessRegion,Jx);return new Mx(b,c,d,a)}function Px(a){return a.g&&a.g.length?a.g[0]:a.b&&a.b.length?a.b[0]:a.j&&a.j.length?a.j[0]:null};function Qx(a,b){this.g=a;this.b=b};function Rx(a,b){this.state=a;this.b=b}var Sx={CLOSED:"closed",MI:"playerControlShow",wE:"rollOver",xE:"shown"};function Tx(a){if(!a)return null;var b=ww(a.state,Sx);a=tw(a.ref);return b?new Rx(b,a):null};function Ux(a,b,c,d){this.b=a||[];this.j=b||[];this.k=c;this.g=d;this.value=!1}function Vx(a){if(!a)return null;var b=Bw(a.condition,Tx),c=Bw(a.notCondition,Tx),d=xw(a.show_delay,!1);a=xw(a.hide_delay,!1);return b||c?new Ux(b,c,d,a):null}function Wx(a,b,c){z(a.b,ra(b,!1),c);z(a.j,ra(b,!0),c)};function Xx(a,b,c,d,e,g,h,k,l,p,r,t,y,D){this.id=a;this.type=b;this.style=c;this.A=d;this.g=e;this.o=g||[];this.C=h||[];this.b=k;this.D=l;this.k=p;this.B=r;this.j=t;this.data=y;this.Sb=D}
var Yx={lE:"anchored",jt:"branding",BG:"channel",LG:"cta",OH:"highlightText",dI:"label",OI:"playlist",QI:"popup",uJ:"speech",yE:"subscribe",KJ:"title",VIDEO:"video",iK:"vote",lK:"website"},Zx={jt:"branding",sG:"card",NH:"highlight",IMAGE:"image",MARKER:"marker",PAUSE:"pause",UI:"promotion",Vm:"survey",TEXT:"text",mK:"widget"},$x={eK:"video_relative",NI:"player_relative"};
function ay(a){if(!a)return null;var b=tw(a.id);tw(a.author);var c=ww(a.type,Zx),d=ww(a.style,Yx),e=vw(sw(a.TEXT)),g=vw(a.data),g=0!=g.length?mf(g):{},h;var k=sw(a.segment);k?(tw(k.timeRelative),h=tw(k.spaceRelative),h=(k=Bw(k.movingRegion,Ox))?new Qx(h,k):null):h=null;var k=Bw(a.action,Lw),l=Bw(a.trigger,Vx),p=Nw(sw(a.appearance));p||(p=Nw({}));var r=ww(a.coordinate_system,$x,"video_relative"),t;t=(t=sw(a.image_source))?new Pw(vw(t.standard_url),vw(t.video_id)):null;var y=xw(a.closeable,!0),D=vw(a.html_blob);
a=vw(a.log_data);return b&&c?new Xx(b,c,d,e,h,k,l,p,r,t,y,D,g,a):null}function by(a){return(a=cy(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}function dy(a){return ey(a,function(a){return null!=a.url&&a.url.b})}function fy(a){return ey(a,function(a){return"click"==a.trigger})}function ey(a,b){return hb(a.o,b,void 0)}function gy(a,b,c){z(a.o,b,c)}function cy(a,b){return B(a.o,b,void 0)}function hy(a,b,c){z(a.C,b,c)}function iy(a,b){A(a.C,b,void 0)}
function jy(a){return(a=ky(a))?Px(a):null}function ky(a){a.g?(a=a.g,a=a.b.length?a.b[0]:null):a=null;return a}function ly(a,b){var c=jy(a);return c&&b?Fx(b,c.j,c.b?c.b:"xy"):1};function my(a){if(!a)return!1;var b=ny(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function ny(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function oy(a,b){if("new"==a.target)return-1;var c=Hw(a);if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!my(c))||(d=Pd(c)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=vi(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=ui(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 py(a,b,c,d){(a=Hw(a))?my(a)?d=yi(a,{src_vid:c,feature:"iv",annotation_id:b}):(a?(b=ny(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=ra(qy,d.Za,d.Sa),a=new J(a),de(a,d(a.Mb)),d=a.toString()):d=a):d=null;return d}function qy(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 ry(a){return a.target?"new"==a.target?"_blank":"_top":my(Hw(a))?"_top":"_blank"};function sy(a,b){this.j=a;this.g=b;this.b={}}function ty(a,b,c,d){b&&(c=uy(a,b,c),a.b[b]=c["p-time"],c["iv-event"]=c.link||c["l-class"]||c["link-id"]?2:7,bc(c,d||{}),a.log_(c))}function vy(a,b,c,d,e){b&&(d=uy(a,b,d),d["iv-event"]=3,d["i-time"]=a.b[b]||"",bc(d,e||{}),a.log_(d,c))}function wy(a,b,c,d){b&&(c=uy(a,b,c),c["iv-event"]=4,c["i-time"]=a.b[b]||"",bc(c,d||{}),a.log_(c))}
function xy(a,b,c){a=a.g.getVideoData();a.nb?(c=a.nb[c])&&-1!=c.search(He)&&(a=Aa("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),kf(c)):a.pa&&kf(yi(a.pa,{label:c,value:"a_id="+b}))}function uy(a,b,c){var d={},e=new he(b);z(e.Ma(),function(a){d[a]=escape(e.get(a,""))});d["p-time"]=a.g.getCurrentTime().toFixed(2);d.ps=a.g.R().ob;d["a-type"]=c||d["a-type"];return d}sy.prototype.log_=function(a,b){this.j.H("command_log","iv",a,b)};function yy(a,b){this.T=a;this.context=b;this.O=this.N=this.M=null;this.C=0}function zy(a,b,c,d,e,g){b=new Wt(b,c,{id:d});b.namespace="iv-module";e&&b.$a.subscribe("onEnter",e,a);g&&b.$a.subscribe("onExit",g,a);a.context.$a.H("command_add_cuerange",[b],a.context.g.getPlayerType())}f=yy.prototype;f.wj=function(){this.context.$a.subscribe("onResize",this.wd,this)};f.K=function(){return this.T};
function Ay(a,b,c,d,e){Sv(a.context.b,b,"click",ra(a.Sg,b,c,d,e),"iv-click-target",a);Sv(a.context.b,b,"touchend",ra(a.Sg,b,c,d,e),"iv-click-target",a)}f.Sg=function(a,b,c,d,e){e.stopPropagation();e.preventDefault();var g=py(b,c,this.context.k.videoId);a=u(function(){this.context.g.pauseVideo();window.open(g,ry(b))},this);my(Hw(b))&&"new"!=b.target||(a(),a=null);c={};c.interval=v()-this.C;vy(this.context.logger,d.Sb,a,null,c);"cta"==d.style&&xy(this.context.logger,d.id,"cta_annotation_clicked");return!1};
f.show=function(){this.C=v()};f.hide=function(){};f.destroy=function(){cd(this.K())};function By(a){a.O||(a.O=sd(a.K(),"html5-video-player"));return a.O}
function Cy(a){var b=a.context.j.Yc;if(!b)return null;var c=a.context.j.Cf||new wf(0,0,b.width,b.height),d=-c.top,e=b.height-c.top,g;a.N||(a.N=H("html5-video-container",By(a)));g=a.N;if(!g)return null;g=35-(parseInt(Hf(g,"bottom"),10)||0);var h;a.M||(a.M=H("html5-info-bar",By(a)));(h=a.M)&&a.context.j.Vb&&"none"!=Hf(h,"display")&&(d+=Xf(h).height);return new vf(d,b.width-c.left,e-g,-c.left)}f.wd=function(){};function Dy(a,b,c){this.id=a;this.type=b.card_type;this.A=b.teaser_text||b.title;this.k=b.teaser_image_url||b.image_url;this.ud=b.start_ms;this.g=b.end_ms;this.ha=c};function Ey(a,b,c,d){Dy.call(this,a,b,d);this.b=b.banner_image_url;this.B=b.image_url;this.j=b.g_plus_url;this.title=b.title;this.description=b.description;this.o=b.html_blobs;this.url=c}w(Ey,Dy);function Fy(a,b,c,d){Dy.call(this,a,b,d);this.B=b.profile_image_url;this.j=b.intro;this.C=b.image_url;this.b=b.playlist_video_count;this.title=b.title;this.o=b.meta_info;this.url=c}w(Fy,Dy);function Gy(a,b,c,d){Dy.call(this,a,b,d);this.F=b.image_url;this.b=b.button_icon_url;this.title=b.title;this.description=b.description;this.j=b.custom_message;this.url=c}w(Gy,Dy);function Hy(a,b,c,d){Gy.call(this,a,b,c,d);this.D=b.ypc_item_type;this.C=b.ypc_item_id;this.B=b.ypc_flow_type;this.o="true"==b.logged_in_user}w(Hy,Gy);function Iy(a,b,c,d){Dy.call(this,a,b,d);this.B=b.profile_image_url;this.j=b.intro;this.C=b.image_url;this.b=b.video_duration;this.title=b.title;this.o=b.meta_info;this.description=b.description;this.url=c}w(Iy,Dy);function Jy(a){a&&(a.style.display="block")}function Ky(a){a&&(a.style.display="none")}function Ly(a,b){var c=Ag("requestAnimationFrame",window);return L(function(){c?c.call(window,a):a()},b||0)};function X(a){this.template=new vv(a);S(this,this.template);this.element=this.template.K();this.aa="block";this.P=!0;this.qd=[];this.da={}}w(X,Gh);f=X.prototype;f.K=function(){return this.element};f.X=function(a,b){this.template.X(a,b)};f.dd=function(){this.template.dd()};f.oa=function(a,b){Av(this.template,b||"content",a)};f.show=function(){var a=this.element;a&&(a.style.display=this.aa);this.P=!0;this.element.removeAttribute("aria-hidden")};
f.hide=function(){Ky(this.element);this.P=!1;this.element.setAttribute("aria-hidden","true")};f.wb=function(a){Sg(this.element,a)};f.listen=function(a,b,c,d){return My(this,this.element,a,b,c,d)};function My(a,b,c,d,e,g,h){b=R(b,c,u(d,e||a),h);a.qd.push(b);s(g)&&(a.da[g]?a.da[g].push(b):a.da[g]=[b]);return b}f.Fa=function(a){Ng(a)};function Ny(a,b){a.Fa(a.da[b]);a.da[b]=[]}f.stopPropagation=function(a){this.listen(a,this.FE)};f.FE=function(a){a.stopPropagation()};
f.J=function(){this.Fa(this.qd);delete this.element;X.G.J.call(this)};function Oy(a){var b=Qe("YPC_LOADER_JS");if(window.spf){var c="";if(b){var d=b.indexOf("jsbin/"),e=b.lastIndexOf(".js"),g=d+6;-1<d&&-1<e&&e>g&&(c=b.substring(g,e),c=c.replace(Py,""),c=c.replace(Qy,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(b,c,a)}else Ry(b,a)}function Ry(a,b){var c=Sy(a),d=document.getElementById(c),e=d&&sg(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Rh(c,b),ma(b)),g||(d=Ty(a,c,function(){sg(d,"loaded")||(qg(d,"loaded","true"),Uh(c),L(ra(Xh,c),0))})))}
function Ty(a,b,c){var d=document.createElement("script");d.id=b;d.onload=function(){c&&setTimeout(c,0)};d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};d.src=a;a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(d,a.firstChild);return d}function Sy(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Wa(a)}var Py=/-vfl[a-zA-Z0-9_+=-]+/,Qy=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function Uy(){var a=Qe("YPC_LOADER_CSS");if(window.spf){var b=a.match(Vy);spf.style.load(a,b?b[1]:"",void 0)}else Wy(a)}function Wy(a){var b=Xy(a),c=document.getElementById(b),d=c&&sg(c,"loaded");d||c&&!d||(c=Yy(a,b,function(){sg(c,"loaded")||(qg(c,"loaded","true"),Uh(b),L(ra(Xh,b),0))}))}
function Yy(a,b,c){var d=document.createElement("link");d.id=b;d.rel="stylesheet";d.onload=function(){c&&setTimeout(c,0)};d.href=a;(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d}function Xy(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Wa(a)}var Vy=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;function Zy(){return!!q("yt.scheduler.instance")}function $y(a,b){void 0===b&&(b=NaN);var c=q("yt.scheduler.instance.addJob");return c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?(a(),NaN):L(a,b||0)}function az(a,b){return $y(a,b)}function bz(a){var b=q("yt.scheduler.instance.cancelJob");b?b(a):N(a)}function cz(){var a=q("yt.scheduler.instance.start");a&&(vq("jsp")&&!vq("jsr")&&tq("jsr"),N(dz),a())}var dz=0;
function ez(){var a=q("yt.scheduler.instance.pause");a&&(a(),vq("jsp")||tq("jsp"),N(dz),dz=L(cz,800))};var fz=q("yt.pubsub2.instance_")||new Lh;Lh.prototype.subscribe=Lh.prototype.subscribe;Lh.prototype.unsubscribeByKey=Lh.prototype.Ib;Lh.prototype.publish=Lh.prototype.H;Lh.prototype.clear=Lh.prototype.clear;ba("yt.pubsub2.instance_",fz,void 0);var gz=q("yt.pubsub2.subscribedKeys_")||{};ba("yt.pubsub2.subscribedKeys_",gz,void 0);var hz=q("yt.pubsub2.topicToKeys_")||{};ba("yt.pubsub2.topicToKeys_",hz,void 0);var iz=q("yt.pubsub2.isAsync_")||{};ba("yt.pubsub2.isAsync_",iz,void 0);
ba("yt.pubsub2.skipSubKey_",null,void 0);var jz=2;function kz(a,b,c,d){lz(function(){q("yt.www.ypc.checkout.showYpcOverlay")(a,b,c,d)})}function lz(a){if(jz){Uy();var b=Qe("YPC_LOADER_CONFIGS"),c=function(){(jz-=1)||mz(a)};Oy(c);Fi(b,{onSuccess:function(a,b){Oe(b.configs);Ve(b.messages);c()}})}else a&&a()}function mz(a){z(Qe("YPC_LOADER_CALLBACKS"),function(a){(a=q(a))&&a()});a&&a()};function nz(a){this.b=a}
function oz(a,b){var c=pz(a,b.url,b.id),d=["div","iv-card-channel-banner",""];b.b&&(d=["div",["iv-card-channel-banner","iv-card-channel-banner-custom"],{style:"background-image: url("+b.b+");"}]);var e=b.j?["a","iv-card-gplus",{href:b.j,target:"_blank",title:We("YTP_ON_GOOGLE_PLUS")}]:null,c=new X(["article","iv-card-channel",d,["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.B}]],["div","iv-card-content",e,["h1","iv-click-target",b.title],["div","iv-card-subscribe",""],["p","",b.description]]]),
g=c.K();g&&Lb(b.o,function(a,b){var c=Lc(b,g);z(c,function(b){b.innerHTML=a})},c);return c}
function qz(a,b){var c=pz(a,b.url,b.id),d=["ul","iv-card-meta-info"];z(b.o,function(a){d.push(["li","",a])});c=["article",["iv-card-watchable","iv-card-playlist"],["h1",{style:"background-image: url("+b.B+");"},b.j],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.C}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.b.toString()],["span","iv-card-playlist-play-all",We("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2",
"",b.title],d]]];return new X(c)}
function rz(a,b){var c=pz(a,b.url,b.id),d=["iv-click-target","yt-uix-button","yt-uix-button-primary","yt-uix-button-size-large"],e="";b.b&&(d.push("yt-uix-button-has-icon"),e=["span","yt-uix-button-icon-wrapper",["img",["yt-uix-button-icon","iv-card-button-icon"],{src:b.b}]]);return new X(["article","iv-card-simple",["div","iv-card-image",{style:"background-image: url("+b.F+");"}],["div","iv-card-content",["h1","",b.title],["p","",b.description],["a",d,{href:c,role:"button"},e,["span","yt-uix-button-content",
b.j]]]])}function sz(a,b,c){var d=rz(a,b),e=d.K();Sv(a.b.b,e,"click",ra(a.g,b,c),"iv-click-target",a);return d}
function tz(a,b){var c=pz(a,b.url,b.id),d=["ul","iv-card-meta-info"];z(b.o,function(a){d.push(["li","",a])});return new X(["article",["iv-card-watchable","iv-card-video"],["h1",{style:"background-image: url("+b.B+");"},b.j],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.C}],["span","iv-card-video-duration",b.b]],["div",["iv-card-content","iv-click-target"],["h2","",b.title],d]]])}
nz.prototype.g=function(a,b,c){c.stopPropagation();c.preventDefault();Qe("YPC_LOADER_ENABLED")?(this.b.g.pauseVideo(),this.b.g.isFullscreen()&&uz(this.b.g.app),this.b.$a.H("external_overlay_activated"),kz(a.D,a.C,a.B,a.o)):b(c.target,a.url,a.id,a.ha,c)};function pz(a,b,c){return b?py(b,c,a.b.k.videoId,a.b.j):null};function vz(a,b){yy.call(this,a,b);this.V=!1;this.F=I("div",["iv-cards-thumbnails","hid"]);this.P=I("button",void 0,I("div"));this.o=I("div","iv-cards-background",I("div"),this.P);this.Ae=I("div");this.k=I("div",["iv-cards-notif","iv-cards-notif-inactive"],void 0,this.Ae,I("button",{type:"button"},I("div")));this.j=I("div","iv-cards-details");this.B=new nz(this.context);this.b=[];this.I=null;this.L=0;this.g=-1;this.Rb=null;this.D=this.A=!1;O(this.K(),"iv-cards");zy(this,1E3*this.context.k.Oa-1200,
2147483647,"",this.Iu);this.context.g.addEventListener("onStateChange",u(this.Qd,this));this.context.g.addEventListener("onAdStateChange",u(this.Qd,this))}w(vz,yy);var wz={channel:Ey,fundraising:Gy,merch:Gy,playlist:Fy,product:Gy,tip:Hy,video:Iy};function xz(a,b){return new kw(a,[b,a.offsetTop],200,rw)}function yz(a,b,c){a=new ow(a,200,rw);b&&Ak(a,"end",b,!1,c);return a}function zz(a){var b=new pw(a,200,rw);Ak(b,"end",ra(function(a,b){Ef(a,"opacity","");b.target.J()},a));return b}
function Az(a){ag(a.o,!1);a.K().appendChild(a.o);tk(a.o,"click",a.Ni,!1,a);tk(a.o,"touchend",a.Ni,!1,a);a.K().appendChild(a.F);ag(a.j,!1);a.K().appendChild(a.j);a.K().appendChild(a.k);Bz(a);a.context.b.listen(a.k,"click",a.Dq,a);a.context.b.listen(a.k,"touchend",a.Dq,a);a.context.b.listen(a.k,"mouseover",function(){Cz(this);this.Rb&&this.Rb.zm.stop()},a);a.context.b.listen(a.k,"mouseout",function(){this.Rb&&this.Rb.zm.start(200)},a);a.context.$a.subscribe("external_overlay_activated",a.Ni,a);var b=
Cy(a);wx(a.K(),b?445<b.right-b.left&&243<b.bottom-b.top:!1)}f=vz.prototype;
f.add=function(a){this.V||(Az(this),this.V=!0);var b=(new X(["button",{type:"button",style:"background-image: url("+a.k+");"}])).K();ag(b,!1);var c,d;switch(a.type){case "fundraising":case "merch":case "product":if(c=rz(this.B,a))d=c.K(),Ay(this,d,a.url,a.id,a.ha);break;case "tip":(c=sz(this.B,a,u(this.Sg,this)))&&(d=c.K());break;case "video":if(c=tz(this.B,a))d=c.K(),Ay(this,d,a.url,a.id,a.ha);break;case "playlist":if(c=qz(this.B,a))d=c.K(),Ay(this,d,a.url,a.id,a.ha);break;case "channel":if(c=oz(this.B,
a))d=c.K(),Ay(this,d,a.url,a.id,a.ha)}if(d){var e={Vd:a,zk:d,tg:b},g=yb(this.b,e,function(a,b){return a.Vd.ud-b.Vd.ud});0>g&&(g=-(g+1));vb(this.b,g,0,e);bd(this.F,b,g);1<this.b.length&&yx(this.F);c.X(this.j,g);c=ra(this.Qw,e);this.context.b.listen(b,"click",c,this);this.context.b.listen(d,"click",c,this);this.context.b.listen(b,"touchend",c,this);this.context.b.listen(d,"touchend",c,this);zy(this,a.ud,a.g,a.id,ra(this.Rw,a),this.Sw)}};
f.Sg=function(a,b,c,d,e){qd(a,"article","iv-card-active")?vz.G.Sg.call(this,a,b,c,d,e):e.preventDefault()};f.Qw=function(a,b){var c=kb(this.b,function(b){return b===a});Dz(this,c,!0);qd(b.target,"button","yt-uix-button")||b.stopPropagation()};f.Rw=function(){++this.L;Ez(this)?Cz(this):this.D=!0;P(this.k,"iv-cards-notif-inactive")};f.Sw=function(){--this.L;0==this.L&&O(this.k,"iv-cards-notif-inactive")};
function Fz(a,b){if(!a.Rb){a.wd();var c=new X(["div","",["span","",b.A],["span","iv-card-image",{style:"background-image: url("+b.k+");"}]]);a.Ae.innerHTML="";$c(a.Ae,ed(c.K()));ty(a.context.logger,b.ha.Sb,50)}}function Cz(a){if(!a.Rb){var b=Gz(a);if(!(0>b)){Fz(a,a.b[b].Vd);Vf(a.Ae,"");var c=a.Ae.offsetWidth;(new mw(a.Ae,0,c,400,rw)).play();a.Rb={zm:new Tv(function(){this.Rb&&((new mw(this.Ae,c,0,200,rw)).play(),this.Rb=null)},4E3,a),Ux:b};a.Rb.zm.start()}}}function Bz(a){a.wd();zz(a.k)}
f.Dq=function(a){a&&a.stopPropagation();if(!this.A){a=new Wv;Uf(this.K(),this.context.j.Yc);for(var b=0;b<this.b.length;++b){var c=this.b[b].tg;a.add(zz(c));$f(c,0);ag(c,!0);a.add(xz(c,b*(c.offsetWidth+15)))}a.add(yz(this.k));a.add(zz(this.o));for(b=0;b<this.b.length;++b)a.add(zz(this.b[b].zk));this.A=!0;Ak(a,"end",this.$o,!1,this);a.play();this.C=v();this.j.style.width=445*this.b.length+"px";ag(this.j,!0);$f(this.j,1);this.wd();a=this.Rb?this.Rb.Ux:Math.max(0,Gz(this));Dz(this,a,!1);b={};b.notif=
this.Rb?"1":"0";vy(this.context.logger,this.b[a].Vd.ha.Sb,null,50,b);this.I=this.context.b.listen(this.K(),"keydown",this.Vx,this)}};f.$o=function(){this.A=!1};f.Vx=function(a){switch(a.keyCode){case 27:this.Ni();break;case 37:0<this.g&&Dz(this,this.g-1,!0);break;case 39:this.g+1<this.b.length&&Dz(this,this.g+1,!0);break;case 9:Dz(this,this.g+1<this.b.length?this.g+1:0,!0)}a.stopPropagation();a.preventDefault();return!1};
f.Ni=function(a){a&&a.stopPropagation();if(!this.A){var b=new Wv;z(this.b,function(a){b.add(yz(a.tg));b.add(xz(a.tg,0))});b.add(yz(this.o));b.add(zz(this.k));b.add(yz(this.j,function(){Uf(this.K(),"","")},this));this.A=!0;Ak(b,"end",this.$o,!1,this);b.play();a={};a.interval=v()-this.C;this.b[this.g]&&wy(this.context.logger,this.b[this.g].Vd.ha.Sb,null,a);this.I&&this.context.b.Fa(this.I)}};f.Iu=function(){"none"!=this.j.style.display&&this.context.g.pauseVideo()};
function Dz(a,b,c){var d=a.b[b];a.P.focus();if(a.g!=b){if(0<=a.g){var e=a.b[a.g];P(e.tg,"yt-uix-button-toggled");P(e.zk,"iv-card-active")}a.g=b;O(d.tg,"yt-uix-button-toggled");O(d.zk,"iv-card-active");xz(a.j,Hz(a).x).play();b={};b.nav=c?"1":"0";ty(a.context.logger,d.Vd.ha.Sb,null,b)}}function Hz(a){var b=Cy(a),c=b.right-b.left,b=b.bottom-b.top,d=Xf(a.j);return new F(445*-(isNaN(void 0)?a.g||0:NaN)+(c-445)/2,(b-d.height+(1<a.b.length?63:0))/2)}
f.wd=function(){var a=Cy(this);a&&(wx(this.K(),a?445<a.right-a.left&&243<a.bottom-a.top:!1),xx(this.j)&&(Uf(this.K(),this.context.j.Yc),Jf(this.j,Hz(this))),Jf(this.K(),a.left,a.top))};f.Qd=function(a){Ez(this,a)&&this.D&&(this.D=!1,Cz(this))};function Ez(a,b){return 2==Ks(a.context.g.app).getPlayerType()?1==(isNaN(b)?a.context.g.getAdState():b):1==(isNaN(b)?a.context.g.getPlayerState():b)}
function Gz(a){var b=1E3*a.context.g.getCurrentTime();return mb(a.b,function(a){return a.Vd.ud<=b&&b<a.Vd.g})};function Iz(a,b,c){yy.call(this,a,b);this.ha=c;this.g=!1}w(Iz,yy);Iz.prototype.wj=function(){Iz.G.wj.call(this);var a=this.ha.data;"start_ms"in a&&"end_ms"in a&&zy(this,this.ha.data.start_ms,this.ha.data.end_ms,this.ha.id,this.show,this.hide)};function Jz(a,b,c){Iz.call(this,a,b,c);this.j=null;this.k=!1;this.pj=null;this.zd=!1;this.b=0}w(Jz,Iz);
function Kz(a){var b=a.ha.data;a.b=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.K().appendChild(c);var d=I("div","iv-branding-context-name");kd(d,b.channel_name);var e=I("div","iv-branding-context-subscribe");a.ha.j?e.innerHTML=a.ha.j:b.num_subscribers&&kd(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);Ef(e,"right",a.b+"px");a.K().appendChild(e);Ay(a,a.K(),by(a.ha),a.ha.id,a.ha);a.pj=new Tv(ra(function(a){var b=Xf(a.parentElement);(new lw(a.parentElement,[b.width,b.height],[0,0],200,qw)).play();this.zd=!1},d),500,a);Sv(a.context.b,a.K(),"mouseover",ra(function(a,b,c){this.pj.stop();if(!this.zd){var d=Xf(a);Vf(a,d.width);c=Math.min(d.height,c);c=Math.max(c/2-10,0);Jf(b,d.width,c);this.zd=!0;b=9;d=Xf(a);c=Xf(a.parentElement);
(new lw(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,qw)).play()}},d,c,b.image_height),"iv-view-target",a);Sv(a.context.b,a.K(),"mouseout",u(a.pj.start,a.pj),"iv-view-target",a)}Jz.prototype.show=function(){if(!this.g){Jz.G.show.call(this);this.k||(Kz(this),this.k=!0);this.wd();ty(this.context.logger,this.ha.Sb);yx(this.K());this.g=!0;var a=this.j,b,c=Zf(a).width,d=ja(void 0)?void 0:c;b=b||0;Jf(a,d);b=new jw(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,qw);tk(b,"begin",ra(yx,a));b.play()}};
Jz.prototype.hide=function(){this.g&&(zx(this.K()),this.g=!1)};Jz.prototype.wd=function(){var a=Cy(this);if(a){var b=a.right-this.b-20,a=a.top+20;Jf(this.K(),b,a)}};function Lz(a,b,c,d,e,g){this.b=a;this.j=b;this.k=c;this.logger=d;this.g=e;this.$a=g};function Mz(a,b,c){Iz.call(this,a,b,c);this.ij=this.j=this.o=!1;this.k=5E3;this.b=null;this.Tf=I("div","iv-promo-contents")}w(Mz,Iz);
function Nz(a){var b=a.ha.data;a.k=b.collapse_delay_ms||a.k;var c=["iv-promo","iv-promo-inactive"];a.context.j.b.U&&c.push("iv-promo-exp");var 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?(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.ha.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);O(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));O(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"),
b=I("button",["yt-uix-button","yt-uix-button-primary"],I("span","yt-uix-button-content",b.button_text)),a.context.b.listen(b,"click",function(a){a.stopPropagation();vy(this.context.logger,this.ha.Sb,null,null,{contest_vote:"1"});var b=this.ha.data;a=H("iv-promo-txt",this.Tf);var c=H("iv-promo-button",this.Tf),d=I("div",["iv-promo-txt","iv-click-target"]),e=I("p","iv-click-target",I("strong",null,b.text_line_3)),b=I("p","iv-click-target",b.text_line_4);$c(d,e,b);cd(c);dd(d,a);Ay(this,this.Tf,by(this.ha),
this.ha.id,this.ha)},a),k.appendChild(b),c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.Tf.appendChild(e);k&&a.Tf.appendChild(k);g=I("div","iv-promo-actions");h=I("div","iv-promo-expand");g.appendChild(h);a.context.b.listen(a.K(),"mouseover",a.jr,a);a.context.b.listen(h,"touchend",function(a){a.stopPropagation();this.jr();this.ij=!1},a);a.context.b.listen(a.K(),"mouseout",a.eA,a);h=I("div","iv-promo-close");g.appendChild(h);Oz(a,u(function(){this.hide()},a),h);ng(a.K(),c);
d&&Zc(a.K(),d);Zc(a.K(),a.Tf);Zc(a.K(),g);Ay(a,a.K(),by(a.ha),a.ha.id,a.ha)}f=Mz.prototype;f.show=function(){this.g||(Mz.G.show.call(this),this.o||(Nz(this),this.o=!0),this.wd(),yx(this.K()),this.ha&&this.ha.Sb&&ty(this.context.logger,this.ha.Sb),"cta"==this.ha.style&&xy(this.context.logger,this.ha.id,"cta_annotation_shown"),P(this.K(),"iv-promo-inactive"),this.g=!0,this.b&&(Nk(this.b),this.b=null),Pz(this),Qz(this,this.k))};f.hide=function(){this.g&&(O(this.K(),"iv-promo-inactive"),this.g=!1)};
f.jr=function(){this.ij=!0;Pz(this);Qz(this,500)};f.eA=function(){this.ij=!1;Rz(this)};function Rz(a){a.j||a.ij||a.b||(O(a.K(),"iv-promo-collapsed"),a.j=!0)}function Pz(a){a.j&&(P(a.K(),"iv-promo-collapsed"),a.j=!1)}function Qz(a,b){a.b||(a.b=Mk(function(){this.b&&(Nk(this.b),this.b=null);Rz(this)},b,a))}f.wd=function(){var a=Cy(this);if(a){var b=Wf(this.K()),b=b.width<a.right-a.left&&b.height<a.bottom-a.top?a.bottom-b.height- -8-25:a.bottom;Jf(this.K(),a.left,b)}};
function Oz(a,b,c){function d(a){wy(this.context.logger,this.ha.Sb);"cta"==this.ha.style&&xy(this.context.logger,this.ha.id,"cta_annotation_closed");b(a);a.stopPropagation()}a.context.b.listen(c,"click",u(d,a));a.context.b.listen(c,"touchend",u(d,a))};function Sz(a,b,c){this.b={};this.g=!1;this.o="ivTrigger:"+a;this.j=c;Wx(b,function(a,b){var c=Tz(b.state,b.b);this.j.subscribe(c,u(this.k,this,c,a));this.b[c]=a},this)}Sz.prototype.k=function(a,b,c,d){this.b[a]=b?!c:c;a=Nb(this.b,function(a){return a});this.g!=a&&(this.g=a,this.j.H(this.o,a,d))};function Tz(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function Uz(a,b,c){this.j=a;this.ha=b;this.b=c;this.g=null;this.o=this.isVisible=!1;Vz(b,a)}function Vz(a,b){iy(a,function(c){return new Sz(a.id,c,b)})}Uz.prototype.hide=function(){this.isVisible=!1;this.j.ja("onResize",this.k,this);this.b&&this.b.hide()};Uz.prototype.show=function(){this.isVisible=!0;this.b&&this.b.show();this.j.subscribe("onResize",this.k,this)};Uz.prototype.destroy=function(){this.j.ja("onResize",this.k,this);if(this.b){var a=this.b;a.C.removeAll();a.g&&cd(a.g);a.j&&a.j.K()&&cd(a.j.K())}Wz(this)};
function Wz(a){a.g&&(a.g.stop(),a.g=null)}Uz.prototype.k=function(){this.b&&Xz(this.b)};function Yz(){};function Zz(a,b,c,d,e,g,h,k){this.o=a;this.B=b;this.A=c;this.C=d;this.b=e;this.g=g;this.j=n(h)?h:null;this.k=n(k)?k:null}w(Zz,Yz);function $z(){this.ba=[];this.ea=[];this.Kd=[]}$z.prototype.dg=null;$z.prototype.pd=null;$z.prototype.Jj=!0;var aA=[2,2,6,6,0];f=$z.prototype;f.clear=function(){this.ba.length=0;this.ea.length=0;this.Kd.length=0;delete this.dg;delete this.pd;delete this.Jj;return this};function bA(a,b,c){0==cb(a.ba)?a.Kd.length-=2:(a.ba.push(0),a.ea.push(1));a.Kd.push(b,c);a.pd=a.dg=[b,c]}
f.Xa=function(a){var b=cb(this.ba);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ba.push(1),this.ea.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Kd.push(c,d)}this.ea[this.ea.length-1]+=b/2;this.pd=[c,d]};f.close=function(){var a=cb(this.ba);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ba.push(4),this.ea.push(1),this.pd=this.dg);return this};
function cA(a,b,c,d,e){var g=a.pd[0]-b*Math.cos(d*Math.PI/180),h=a.pd[1]-c*Math.sin(d*Math.PI/180),g=g+b*Math.cos((d+e)*Math.PI/180),h=h+c*Math.sin((d+e)*Math.PI/180);a.ba.push(3);a.ea.push(1);a.Kd.push(b,c,d,e,g,h);a.Jj=!1;a.pd=[g,h]}function dA(a,b){for(var c=a.Kd,d=0,e=0,g=a.ba.length;e<g;e++){var h=a.ba[e],k=aA[h]*a.ea[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.ba=this.ba.concat();a.ea=this.ea.concat();a.Kd=this.Kd.concat();a.dg=this.dg&&this.dg.concat();a.pd=this.pd&&this.pd.concat();a.Jj=this.Jj;return a};f.isEmpty=function(){return 0==this.ba.length};function eA(a,b){this.D=a;this.F=null==b?1:b}w(eA,Yz);function fA(a,b){this.b=a;this.g=b};function gA(){}da(gA);gA.prototype.b=0;function hA(a){U.call(this);this.I=a||Hc();this.ta=null;this.Pe=!1;this.b=null;this.o=void 0;this.A=this.C=this.D=null}w(hA,U);f=hA.prototype;f.JB=gA.getInstance();f.getId=function(){return this.ta||(this.ta=":"+(this.JB.b++).toString(36))};f.K=function(){return this.b};f.ci=function(a){if(this.D&&this.D!=a)throw Error("Method not supported");hA.G.ci.call(this,a)};f.rs=function(){this.b=this.I.createElement("div")};
f.sh=function(){iA(this,function(a){a.Pe&&a.sh()});this.o&&this.o.removeAll();this.Pe=!1};f.J=function(){this.Pe&&this.sh();this.o&&(this.o.dispose(),delete this.o);iA(this,function(a){a.dispose()});this.b&&cd(this.b);this.D=this.b=this.A=this.C=null;hA.G.J.call(this)};f.od=function(){return this.b};function iA(a,b){a.C&&z(a.C,b,void 0)}
f.removeChild=function(a,b){if(a){var c=s(a)?a:a.getId();a=this.A&&c?Yb(this.A,c)||null:null;if(c&&a){var d=this.A;c in d&&delete d[c];pb(this.C,a);b&&(a.sh(),a.b&&cd(a.b));c=a;if(null==c)throw Error("Unable to set parent component");c.D=null;hA.G.ci.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function jA(a,b,c,d,e){hA.call(this,e);this.width=a;this.height=b;this.k=c||null;this.F=d||null}w(jA,hA);jA.prototype.j=null;jA.prototype.Hh=function(){return this.Pe?Wf(this.K()):ja(this.width)&&ja(this.height)?new G(this.width,this.height):null};function kA(a){var b=a.Hh();return b?b.width/(a.k?new G(a.k,a.F):a.Hh()).width:0}jA.prototype.resume=function(){};function lA(a,b){U.call(this);this.Dh=a;this.Hk=b;this[hk]=!1}w(lA,U);f=lA.prototype;f.Hk=null;f.Dh=null;f.K=function(){return this.Dh};f.addEventListener=function(a,b,c,d){tk(this.Dh,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Bk(this.Dh,a,b,c,d)};f.J=function(){lA.G.J.call(this);var a=this.Dh;if(a)if(ik(a))a.removeAllListeners(void 0);else if(a=wk(a)){var b=0,c;for(c in a.b)for(var d=a.b[c].concat(),e=0;e<d.length;++e)Ck(d[e])&&++b}};function mA(a,b,c,d){lA.call(this,a,b);a=this.Hk;b=this.K();c?(b.setAttribute("stroke",c.g),c=c.b,s(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/kA(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.Hk;a=this.K();if(d instanceof eA)a.setAttribute("fill",d.D),a.setAttribute("fill-opacity",d.F);else if(d instanceof Zz){b="lg-"+d.o+"-"+d.B+"-"+d.A+"-"+d.C+"-"+d.b+"-"+d.g;var e=nA(c,b);if(!e){var e=oA(c,"linearGradient",{x1:d.o,y1:d.B,x2:d.A,y2:d.C,gradientUnits:"userSpaceOnUse"}),
g="stop-color:"+d.b;ja(d.j)&&(g+=";stop-opacity:"+d.j);g=oA(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.g;ja(d.k)&&(g+=";stop-opacity:"+d.k);d=oA(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=pA(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}w(mA,lA);function qA(a,b){lA.call(this,a,b)}w(qA,lA);function rA(a,b){lA.call(this,a,b)}w(rA,lA);function sA(a,b,c,d){mA.call(this,a,b,c,d)}w(sA,mA);function tA(a,b){lA.call(this,a,b)}w(tA,qA);tA.prototype.clear=function(){ad(this.K())};function uA(a,b,c,d){mA.call(this,a,b,c,d)}w(uA,sA);function vA(a,b){lA.call(this,a,b)}w(vA,rA);function wA(a,b,c,d,e){jA.call(this,a,b,c,d,e);this.g={};this.M=qc&&!zc(526);this.L=new Rk(this)}var xA;w(wA,jA);var yA=0;function oA(a,b,c){a=a.I.b.createElementNS("http://www.w3.org/2000/svg",b);if(c)for(var d in c)a.setAttribute(d,c[d]);return a}f=wA.prototype;
f.rs=function(){var a=oA(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=oA(this,"g");this.B=oA(this,"defs");this.j=new tA(b,this);a.appendChild(this.B);a.appendChild(b);this.b=a;this.k&&(this.K().setAttribute("preserveAspectRatio","none"),this.M?this.Bq():this.K().setAttribute("viewBox","0 0 "+(this.k?this.k+" "+this.F:"")))};
f.Bq=function(){if(this.Pe){var a=this.Hh();if(0==a.width)this.K().style.visibility="hidden";else{this.K().style.visibility="";var b=a.width/this.k,a=a.height/this.F;this.j.K().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.Hh=function(){if(!pc)return this.Pe?Wf(this.K()):wA.G.Hh.call(this);var a=this.width,b=this.height,c=s(a)&&-1!=a.indexOf("%"),d=s(b)&&-1!=b.indexOf("%");if(!this.Pe&&(c||d))return null;var e,g;c&&(e=this.K().parentNode,g=Xf(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.K().parentNode,g=g||Xf(e),b=parseFloat(b)*g.height/100);return new G(a,b)};f.clear=function(){this.j.clear();ad(this.B);this.g={}};function zA(a,b,c,d){b=oA(a,"path",{d:AA(b)});c=new uA(b,a,c,d);a.j.K().appendChild(c.K())}
function AA(a){var b=[];dA(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 pA(a,b,c){if(b in a.g)return a.g[b];var d="_svgdef_"+yA++;c.setAttribute("id",d);a.g[b]=d;a.B.appendChild(c);return d}
function nA(a,b){return b in a.g?a.g[b]:null}f.sh=function(){wA.G.sh.call(this);this.M&&this.L.Fa(BA(),"tick",this.Bq)};f.J=function(){delete this.g;delete this.B;delete this.j;wA.G.J.call(this)};function BA(){xA||(xA=new Kk(400),xA.start());return xA};function CA(a,b,c){this.b=a;this.g=0;this.B=b;this.C=c||70;this.j=!1}CA.prototype.start=function(a){this.A=v();this.g=a;this.o=this.A+this.g;this.j=!0;yx(this.b);Te(this.k);this.k=Se(u(this.D,this),this.C)};CA.prototype.stop=function(){this.j=!1;zx(this.b);this.k&&Te(this.k)};
CA.prototype.D=function(){if(this.j){var a=v(),b;b=0==this.g||a>=this.o?0:1-(a-this.A)/this.g;var c=H("countdowntimer-diminishing-pieslice",this.b),d=zg("svg",this.b);!d&&this.b.querySelectorAll&&(d=this.b.querySelectorAll("svg"),d=d.length?d[0]:null);var d=parseInt(d.getAttribute("width"),10),e=new $z,g=d/2-5;bA(e,d/2,d/2);e.Xa(d/2,5);cA(e,g,g,-90,360*-b);e.Xa(d/2,d/2);e.close();c.setAttribute("d",AA(e));a>=this.o&&(this.stop(),this.B&&this.B())}};function DA(){this.element=this.b=null;this.priority=0;this.o=this.C=!1;this.A=null}w(DA,Gh);DA.prototype.listen=function(a,b,c){return this.element.listen(a,b,c||this)};DA.prototype.Fa=function(a){this.element.Fa(a)};function EA(a,b,c,d){X.call(this,["div",{className:"ytp-button",role:"button","aria-label":"{{label}}","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.aa="inline-block";this.D=a;this.I=this.g=this.o=null;this.k=!1;this.listen("click",this.xB);this.listen("keypress",this.yB);this.D.Og(this.element,u(this.wB,this));b&&FA(this,b);c&&GA(this,c);d&&(this.g=d)}w(EA,X);function FA(a,b){b&&""!=b&&(a.o&&P(a.element,a.o),a.o=b,O(a.element,b))}
function GA(a,b){Av(a.template,"label",b)}function HA(a,b){a.I=b;Av(a.template,"tabindex",b)}f=EA.prototype;f.wB=function(){return this.k?null:this.g?this.g:null};f.enable=function(){this.k=!1;this.template.update({disabled:null,tabindex:this.I});P(this.element,"ytp-disabled")};f.disable=function(){this.k=!0;this.template.update({disabled:"true",tabindex:null});O(this.element,"ytp-disabled")};f.xB=function(a){this.k&&(a.stopImmediatePropagation(),a.preventDefault())};
f.yB=function(a){if(13==a.keyCode||32==a.keyCode)a.stopPropagation(),a.preventDefault(),this.wb("click")};f.J=function(){this.D.jn(this.element);this.D=null;EA.G.J.call(this)};function IA(a,b,c){X.call(this,["div","ytp-segmented-control"]);this.k=a;this.g=-1;this.b=[];if(null!=b)for(Kh(this.b),this.b=[],a=0;a<b.length;a++){var d=new EA(this.k);this.b.push(d);c?d.oa(["div",b[a]]):d.oa(b[a]);0!=a&&O(d.K(),"ytp-segmented-control-other");JA(d,a==this.g);d.listen("click",ra(this.j,a),this);d.X(this.element)}}w(IA,X);
IA.prototype.X=function(a,b){IA.G.X.call(this,a,b);for(var c=0,d=0;d<this.b.length;d++)c=Math.max(c,Wf(this.b[d].K()).width);if(c)for(d=0;d<this.b.length;d++)Vf(this.b[d].K(),c)};function KA(a,b){a.g=b;for(var c=0;c<a.b.length;c++)JA(a.b[c],c==b)}IA.prototype.getSelected=function(){return this.g};function LA(a,b){for(var c=0;c<a.b.length;c++)HA(a.b[c],b)}
function JA(a,b){if(b){var c=a.K();P(c,"ytp-segmented-control-deselected");O(c,"ytp-segmented-control-selected")}else c=a.K(),P(c,"ytp-segmented-control-selected"),O(c,"ytp-segmented-control-deselected")}IA.prototype.j=function(a){a!=this.g&&(KA(this,a),this.wb("change"))};IA.prototype.J=function(){Kh(this.b);this.b=[];IA.G.J.call(this)};function MA(a){DA.call(this);this.b=Y(0,"YTP_ANNOTATIONS");this.element=new IA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);LA(this.element,2400);this.priority=2;KA(this.element,1)}w(MA,DA);MA.prototype.getSelected=function(){return this.element.getSelected()};function NA(a,b){this.start=a<b?a:b;this.end=a<b?b:a}NA.prototype.clone=function(){return new NA(this.start,this.end)};function OA(){this.b=!1;this.o=this.j=null}function PA(a,b,c){a.j?(Uf(a.j.K(),b,c),a.j.clear()):(b=new wA(b,c,void 0,void 0,void 0),a.j=b,a.j.rs(),a.o=I("div"),b=a.j.K(),a.o.appendChild(b));return a.j}OA.prototype.K=function(){return this.o};OA.prototype.g=function(){};function QA(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Lb(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function RA(a,b){var c;c=":"+(gA.getInstance().b++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function SA(a,b){var c=RA(a,QA("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=RA(a,QA("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},QA("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=RA(a,QA("feComposite",{"in":c,in2:b,operator:"in"}));return RA(a,QA("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function TA(a,b){var c=RA(a,QA("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=RA(a,QA("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=RA(a,QA("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=RA(a,QA("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=RA(a,QA("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=RA(a,QA("feComposite",{operator:"out","in":c,in2:d}));return RA(a,QA("feComposite",{operator:"over","in":b,in2:c}))}
function UA(a,b){return b}function VA(a){var b=QA("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";z(a,function(a){t:{switch(a){case "bevel":a=SA;break t;case "dropshadow":a=TA;break t}a=UA}c=a(b,c)});return b}function WA(a){a=gb(a,function(a){return a in XA});Ab(a,function(a,c){return XA[a]-XA[c]});return a}function YA(a){return B(a,function(a){return"dropshadow"==a})?new vf(0,7,7,0):new vf(0,0,0,0)}var XA={bevel:1,dropshadow:2};function ZA(a,b,c,d,e){b=$A(b,c,d?d.b/2+1:0);zA(a,b,d,e)}function $A(a,b,c){var d=new $z;bA(d,a.left+b+c,a.top+c);d.Xa(a.left+a.width-b-c,a.top+c);cA(d,b,b,-90,90);d.Xa(a.left+a.width-c,a.top+a.height-b-c);cA(d,b,b,0,90);d.Xa(a.left+b+c,a.top+a.height-c);cA(d,b,b,90,90);d.Xa(a.left+c,a.top+b+c);cA(d,b,b,180,90);d.close();return d}function aB(a,b,c,d){var e=a.L;e?a=new Zz(e.o*b/100,e.B*c/100,e.A*b/100,e.C*c/100,e.b,e.g,e.j,e.k):(b=bB(d,a.j),a=new eA(a.o,b));return a}
function bB(a,b){return a?Math.max(b,.9):b}function cB(a,b){var c=new vf(a.top,a.left+a.width,a.top+a.height,a.left),d=YA(b);la(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 xf(c)}
function dB(a,b,c){if(c.length&&(b=Mc("g",void 0,b),b.length)){var d=WA(c);if(d){c="effects:"+(d?d.join("|"):"");var e=nA(a,c);e?a=e:(d=VA(d),a=0<d.childNodes.length?pA(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function eB(){OA.call(this);this.k=0}w(eB,OA);
eB.prototype.g=function(a,b,c){var d=a.b,e=d.C,g=this.b&&fy(a),e=(e+=g?1:0)?new fA(e,g?d.A:d.B):null;if(g=jy(a)){var h=Ix(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=ky(a))&&a.b?a.b:null)&&a.length?a[0]:null){var l;c=c?Ix(c,b):null;a=Dx(k,new wf(k.D,k.F,k.o,k.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);l=new F(a.left,a.top);c=h.clone();a=new wf(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=cB(c,d.b);a=PA(this,c.width,c.height);var g=aB(d,c.width,c.height,this.b),h=new wf(h.left-c.left,h.top-c.top,h.width,h.height),r=new F(l.x-c.left,l.y-c.top);this.k=17*Fx(b,k.j,k.b?k.b:"xy");b=d.g;k=e?e.b/2:0;l=fB(h,r);var p=this.A(h,b,r,l),t=r.x,r=r.y,y=h.width,D=h.height,M=h.left,h=h.top,ea=new $z;bA(ea,M+b+k,h+k);"t"==l&&(ea.Xa(p.start,h+k),ea.Xa(t,r),ea.Xa(p.end,h+k));ea.Xa(M+y-b-k,h+k);cA(ea,b,b,-90,90);"r"==l&&(ea.Xa(M+y-
k,p.start),ea.Xa(t,r),ea.Xa(M+y-k,p.end));ea.Xa(M+y-k,h+D-b-k);cA(ea,b,b,0,90);"b"==l&&(ea.Xa(p.end,h+D-k),ea.Xa(t,r),ea.Xa(p.start,h+D-k));ea.Xa(M+b+k,h+D-k);cA(ea,b,b,90,90);"l"==l&&(ea.Xa(M+k,p.end),ea.Xa(t,r),ea.Xa(M+k,p.start));ea.Xa(M+k,h+b+k);cA(ea,b,b,180,90);ea.close();zA(a,ea,e,g);if(e=this.K())O(e,"annotation-shape"),O(e,"annotation-speech-shape"),Jf(e,c.left,c.top),Uf(e,c.width,c.height),dB(a,e,d.b)}}}};
function fB(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"}eB.prototype.A=function(a,b,c,d){function e(a,c,d){h=Math.min(Math.max(d-2*b,0),g);k=Gb(a-h/2,c+b,c+d-h-b)}var g=this.k,h=0,k=0;"t"==d||"b"==d?e(c.x,a.left,a.width):"l"!=d&&"r"!=d||e(c.y,a.top,a.height);return new NA(k,k+h)};function gB(){OA.call(this)}w(gB,OA);gB.prototype.g=function(a,b,c){var d=jy(a);d&&(b=Ix(d,b,c),0>=b.width||0>=b.height||(a=a.b,c=cB(b,a.b),d=PA(this,c.width,c.height),ZA(d,new wf(0,0,b.width,b.height),a.g,new fA(!a.k&&this.b?1:a.k,a.o),new eA("#000",0)),b=this.K(),O(b,"annotation-shape"),$f(b,bB(this.b,a.j)),Jf(b,c.left,c.top),Uf(b,c.width,c.height)))};var hB=window.location.protocol+"//i.ytimg.com/",iB=4/3;function jB(a,b,c){var d;switch(b.T){case 30:d=kB;break;default:d=lB}return d(a,b,c)}function lB(a,b,c){if(!c){c=a.clientHeight;a=a.clientWidth;if((900<a||600<c)&&b.bc)return b.bc;if((430<a||320<c)&&b.qf)return b.qf}return b.wa?b.wa:b.videoId?mB(b.videoId):""}function kB(a,b){return b.wa?b.wa:b.videoId?Wd("//docs.google.com/vt",{id:b.videoId,authuser:b.Sa,authkey:b.xb}):"//docs.google.com/images/doclist/cleardot.gif"}
function mB(a,b){return(hB+"vi/"+escape(a)+"/"+escape(b||"hqdefault.jpg")).replace("i.","i"+(a.charCodeAt(0)%1+1)+".")};function nB(a,b,c){OA.call(this);this.k=a||0;this.B=b||0;this.A=c||!1}w(nB,OA);function oB(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 wf(e,g,c,d)}
nB.prototype.g=function(a,b,c){var d=Ix(jy(a),b,c);if(!(0>=d.width||0>=d.height)){var e=oB(d,this.B);e.left+=d.left;e.top+=d.top;b=a.b;c=cB(e,b.b);var g=PA(this,c.width,c.height),h=new eA("#000",0),e=oB(e,this.k);a=a.k?a.k.b?a.k.b:a.k.videoId?mB(a.k.videoId,"hqdefault.jpg"):"":"";e=oA(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 vA(e,g);g.j.K().appendChild(e.K());
if(a=this.K()){var k=bB(this.b,b.j);$f(a,k);if(this.A&&0<b.k){var k=new fA(b.k,b.o),d=new wf(0,0,d.width,d.height),l;l=$A(d,b.g,k.b/2+1);var p=nA(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",AA(l));r.setAttribute("fill","#FFF");p.appendChild(r);l=pA(g,"mask",p)}e=e.K();l&&e.setAttribute("mask","url(#"+l+")");ZA(g,d,b.g,k,h)}O(a,"annotation-shape");O(a,"annotation-image-shape");
Jf(a,c.left,c.top);Uf(a,c.width,c.height);dB(g,a,b.b)}}};function pB(){OA.call(this)}w(pB,OA);pB.prototype.g=function(a,b,c){var d=jy(a);if(d){var e=Ix(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.b;c=cB(e,b.b);var d=PA(this,c.width,c.height),g=b.C;a=this.b&&fy(a);a=(g+=a?1:0)?new fA(g,a?b.A:b.B):null;g=new wf(0,0,e.width,e.height);e=aB(b,e.width,e.height,this.b);ZA(d,g,b.g,a,e);if(a=this.K())O(a,"annotation-shape"),O(a,"annotation-popup-shape"),Jf(a,c.left,c.top),Uf(a,c.width,c.height),dB(d,a,b.b)}}};function qB(){eB.call(this)}w(qB,eB);qB.prototype.A=function(a,b,c,d){function e(a,c,d){h=Math.min(Math.max(d-2*b,0),g);k=a<=c+d/2?Math.max(c+d/4-h/2,c+b):Math.min(c+3*d/4-h/2,c+d-h-b)}var g=this.k,h=0,k=0;"t"==d||"b"==d?e(c.x,a.left,a.width):"l"!=d&&"r"!=d||e(c.y,a.top,a.height);return new NA(k,k+h)};function rB(a,b,c,d,e){this.b=a;this.F=b;this.B=c;this.M=d;this.I=e;this.C=new Rv(this);this.D=this.j=this.o=this.k=this.A=this.g=null}function sB(a,b){var c=u(function(a,c,g){c=g?tB(this,c,u(g,this)):tB(this,c);this.C.listen(b,a,c)},a);c("mouseover","d",a.N);c("mouseout","c",a.L);c("click","a");c("touchend","a")}
function uB(a){if(a.b.B){var b;ey(a.b,function(a){return"close"==a.type})?b=a.g:(a.o=I("div",["annotation-close-button","hid"]),qg(a.o,"annotation_id",a.b.id),a.g.appendChild(a.o),b=a.o);var c=function(a){a.stopPropagation()};a.C.listen(b,"click",tB(a,"b",c));a.C.listen(b,"touchend",tB(a,"b",c))}}
function tB(a,b,c){return u(function(a){if(this.I)c&&c(a);else if(a.target instanceof Element){var e=a.target;zx(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(sd(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{yx(e)}}e=Zf(a.target);a=new F(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.M.H(b,this.b)},a)}rB.prototype.N=function(){this.o&&yx(this.o);this.k&&$f(this.k,1);var a=vB(this);this.j&&(this.j.b=!0,$f(this.g,wB(this)?1:0),a&&this.j.g(this.b,a,xB(this)))};rB.prototype.L=function(){this.o&&zx(this.o);this.k&&$f(this.k,0);var a=vB(this);this.j&&(this.j.b=!1,$f(this.g,wB(this)?1:0),a&&this.j.g(this.b,a,xB(this)))};function xB(a){return a.D?jy(a.D):null}
function Xz(a){if(a.g||a.j){var b=jy(a.b);if(b){var c=vB(a),d=xB(a);if(a.g&&c){b=Ix(b,c,d);Uf(a.g,b.width,b.height);Jf(a.g,b.left,b.top);var e=a.B.Cf;if(e){var g;g=(g=jy(a.b))&&e?Ex(e,g.k,g.b?g.b:"xy"):1;var e=ly(a.b,e),h;h=a.b.b;h.F?h=h.F:(h="speech"==a.b.style?1.6:.8,h=new vf(h,h,h,h));h=new vf(360*h.top*e/100,640*h.right*g/100,360*h.bottom*e/100,640*h.left*g/100);a.k&&(h.right+=1.5*c.height/100);a.g.style.padding=h.top+"px "+h.right+"px "+h.bottom+"px "+h.left+"px";"label"==a.b.style&&a.A&&(a.A.style.padding=
a.g.style.padding);a.k&&(g=g/e*c.height*4.2/100,g=new G(g,g),Uf(a.k,g),"highlight"==a.b.type||"label"==a.b.style?(e=1.5*c.height/100,g=new F(b.width-g.width-e,b.height-g.height-e)):g=new F(b.width-g.width-3*c.height/100,(b.height-g.height)/2),Jf(a.k,g));a.o&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Jf(a.o,g&&e?new F(b.width-9,-9):g?new F(b.width-9,45<b.height?9:b.height-9):e?new F(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new F(45<b.width?b.width-9-18:-9,b.height-
9):new F(-9,45<b.height?9:b.height-9)))}}a.j&&c&&a.j.g(a.b,c,d);if(a.g){c=a.g;d=a.b.b;c.style.color="highlightText"==a.b.style?d.I:d.A;c.style.fontSize=360*d.M*ly(a.b,a.B.Cf)/100+"px";b=a.b.style;c.style.textAlign=d.textAlign?d.textAlign:"title"==b||"highlightText"==b?"center":"left";d.D&&(c.style.fontWeight=d.D);a=a.g;c=a.style.overflow;d=H("annotation-link-icon",a);b=xx(d);g=H("annotation-close-button",a);e=xx(g);d&&b&&zx(d);g&&e&&zx(g);var k=h="",l=H("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=kg(a),r=p,t=5,y=Math.floor(p/2);y;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(t=r,r=Math.min(r+y,p)):r=Math.max(r-y,t),y=Math.floor(y/2),a.style.fontSize=r+"px";r!=t&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=t+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=k);g&&e&&yx(g);
d&&b&&yx(d)}}}}
rB.prototype.show=function(){var a=this.b.b,a=(a&&0==a.j||"title"==this.b.style||"highlightText"==this.b.style||"pause"==this.b.type?!1:!0)&&!this.j,b=!this.g,c="widget"==this.b.type;if(a){var d=vB(this);if(d){var e=null;"highlight"==this.b.type||"label"==this.b.style?e=new gB:"popup"==this.b.style?e=new pB:"anchored"==this.b.style?e=new eB:"speech"==this.b.style?e=new qB:"image"==this.b.type&&("video"==this.b.style?e=new nB(4/3,16/9,!0):"channel"==this.b.style&&(e=new nB));e&&(e.g(this.b,d,xB(this)),
this.j=e,d=e.K())&&(zx(d),O(d,"annotation-type-"+this.b.type.toLowerCase()),this.F(d))}}if(b){d=["annotation","hid"];"highlightText"!=this.b.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.b.type.toLowerCase());this.g=I("div",d);this.b.A&&(this.A=I("div","inner-text"),"label"==this.b.style&&(O(this.A,"label-text"),this.A.style.backgroundColor=this.b.b.o),kd(this.A,this.b.A),this.g.appendChild(this.A));qg(this.g,"annotation_id",this.b.id);this.F(this.g);sB(this,this.g);if(fy(this.b)&&
"image"!=this.b.type&&dy(this.b)){if(d=by(this.b))this.g.title=Hw(d);this.k=I("span","annotation-link-icon");this.g.appendChild(this.k)}uB(this);fy(this.b)||(this.g.style.cursor="default")}c&&("subscribe"==this.b.style?H("yt-uix-subscription-button",this.g)||(this.g.innerHTML=this.b.j):this.b.j&&(this.g.innerHTML=this.b.j));if(a||b){t:{a=this.b.g.b;if(a.length&&(a=Px(a[0]))){a=a.A;break t}a=0}this.g&&(this.g.style.zIndex=a);this.j&&this.j.K()&&(this.j.K().style.zIndex=a)}yx(this.g);$f(this.g,wB(this)?
1:0);Xz(this);this.j&&yx(this.j.K())};rB.prototype.hide=function(){zx(this.g);this.j&&zx(this.j.K())};function wB(a){return"label"!=a.b.style||a.j.b}function vB(a){var b=a.B.Cf;return b?"player_relative"==a.b.D?(a=a.B.Yc)?new wf(-b.left,-b.top,a.width,a.height):null:new wf(0,0,b.width,b.height):null};function yB(a){fu.call(this,a);this.ek=!0;this.ua="iv-module";this.hc="iv";this.L=!1;this.P=!0;this.B=!1;this.k=0;this.g={};this.F={};this.A=new sy(this.M,this.b);a=zB;this.o=new MA(tu(this));S(this,this.o);this.o.listen("change",this.gu,this);this.subscribe("onHideControls",this.du,this);this.subscribe("onShowControls",this.fu,this);this.subscribe("onStateChange",this.eu,this);this.subscribe("d",this.iu,this);this.subscribe("c",this.hu,this);this.subscribe("a",this.bu,this);this.subscribe("b",this.cu,
this);var b=new vv(["div",[a.Yt,"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"}]]]]);S(this,b);b=b.K();this.O=I("DIV",[a.au,"html5-stop-propagation"]);this.C=I("DIV",a.Zt);iu(this,I("DIV",a.Xt,this.O,this.C));iu(this,b);this.D=new CA(b,u(this.kk,this));this.j=null;this.N=[];this.I=null}w(yB,fu);yB.o="AnnotationsModule";
var zB={Xt:"video-annotations",Yt:"countdowntimer",Zt:"video-custom-annotations",au:"video-legacy-annotations"};yB.k=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};yB.j=function(a){return"card"==a.type};yB.g=function(a){return yB.Ja(a)?new yB(a):null};yB.Ja=function(a){return"leanback"==a.R().$?!1:$r(a.getVideoData(),"iv3_module")};yB.b=function(){return I("div",["annotation","annotation-type-custom","hid"])};f=yB.prototype;f.Ja=function(){return yB.Ja(this.b)};
f.create=function(){yB.G.create.call(this);uu(this,this.o);1==(this.b.R().pa||this.b.getVideoData().Ba)&&this.load()};f.destroy=function(){vu(this,this.o);yB.G.destroy.call(this)};f.gu=function(){var a=this.B||this.k,b=0==this.o.getSelected();a&&!b?(this.unload(),this.log({toggle:0})):!a&&b&&(this.load(),this.log({toggle:1}))};f.eu=function(a){this.P=W(a.state,8);0>Nv(a,4)&&this.D.stop()};
f.load=function(){yB.G.load.call(this);var a=this.b.getVideoData(),b=u(this.Er,this,a.videoId);Zy()&&(b=AB(this,b));b={format:"XML",method:"GET",vb:b};a.Pm&&(this.k++,Fi(a.Pm,b));a.Om&&(b=u(this.Er,this,a.videoId),Zy()&&(b=AB(this,b)),b={format:"XML",method:"GET",vb:b},this.k++,Fi(a.Om,b));KA(this.o.element,0)};
f.unload=function(){KA(this.o.element,1);this.A.log_({"iv-event":1});this.kk();gu(this);Lb(this.g,function(a){a.destroy()});Lb(this.F,function(a){a.destroy()});this.j&&(this.j.destroy(),this.j=null);this.k=0;this.B=!1;this.g={};this.F={};yB.G.unload.call(this)};
function BB(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&&(c[e.tagName]=e.childNodes[0].nodeValue.trim());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(BB(a,e))}return c}
f.Er=function(a,b){if(this.k&&!this.B&&this.b.getVideoData().videoId==a){this.k--;var c=b.responseXML?b.responseXML.getElementsByTagName("annotations"):null;if(Ai(b)&&c){CB(this,c[0]);O(pt(this.b),this.ua+"-loaded");0==this.k&&(this.B=!0);var c=[],d;for(d in this.g){var e=this.g[d].ha,g;if(e.g)if(g=e.g,g.b.length)if(g=g.b[0].g||g.b[0].b||g.b[0].j,!g||2>g.length)g=null;else{var h=g.length-1;g=0>=g[0].g&&0>=g[h].g?null:{start:g[0].g,end:g[h].g}}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.A,k.visible=!0);e=new Wt(g,h,k);c.push(e)}}this.Hf.apply(this,c)}}};function DB(a,b){var c=EB(a,b);if(!c&&"marker"!=b.type)return null;hy(b,function(a){a=u(this.kD,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new Uz(a.M,b,c)}
function FB(a,b){var c=yB.b(),d=null;switch(b.type){case "branding":a.C.appendChild(c);d=new Jz(c,GB(a),b);break;case "promotion":a.C.appendChild(c),d=new Mz(c,GB(a),b)}d&&d.wj();return d}function HB(a,b){if(!a.j){var c=yB.b();a.C.appendChild(c);a.j=new vz(c,GB(a));a.j.wj()}var c=a.j,d=b&&b.data&&b.data.card_type;if(d){var e=by(b);e&&wz[d]&&c.add(new wz[d](b.id,b.data,e,b))}}function GB(a){a.I||(a.I=new Lz(new Rv(a),a.b.R(),a.b.getVideoData(),a.A,a.b,a.M));return a.I}
function CB(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=BB(a,c[d]),g=null;try{g=ay(e)}catch(h){}g&&(yB.k(g)?(e=FB(a,g))&&(a.F[g.id]=e):yB.j(g)?HB(a,g):(e=DB(a,g))&&(a.g[g.id]=e))}Lb(a.g,function(a){var b=a.ha;b.g&&b.g.g&&(b=this.g[b.g.g])&&(a.b.D=b.ha)},a)}f.Ec=function(a){yB.G.Ec.call(this,a);a=a.getId();var b=this.g[a];b&&!b.o&&(b=b.ha,"pause"==b.type?IB(this,b):(JB(this,a),ty(this.A,b.Sb)))};f.ld=function(a){yB.G.ld.call(this,a);KB(this,a.getId())};
function IB(a,b){if(a.P){var c=cy(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.L=!0,a.H("command_pause"),a.D.start(1E3*c.duration.value))}}function LB(a,b,c,d){d?JB(a,b,c):KB(a,b,c)}function KB(a,b,c){if(b=a.g[b])Wz(b),c&&c.g?(a=u(a.xs,a,b),b.g=new Tv(a,2E3),b.g.start()):a.xs(b)}f.xs=function(a){a&&(a.hide(),MB(this,"shown",!1,a.ha.id),NB(this,a.ha,"hidden"))};function JB(a,b,c){if(b=a.g[b])Wz(b),c&&c.k?(a=u(a.gs,a,b),b.g=new Tv(a,2E3),b.g.start()):a.gs(b)}
f.gs=function(a){a&&(a.show(),MB(this,"shown",!0,a.ha.id),NB(this,a.ha,"shown"))};f.kD=function(a,b,c){var d=this.g[a];if(d&&b.value!=c){b.value=c;var e=!1;hy(d.ha,function(a){e|=a.value});LB(this,a,b,e)}};f.bu=function(a){if(a&&a.id){var b=by(a);if(b){var c=u(function(){NB(this,a,"click")},this);my(Hw(b))&&"new"!=b.target||(c(),c=null);vy(this.A,a.Sb,c)}}};
function NB(a,b,c){gy(b,function(a){if(a.trigger==c&&"openUrl"==a.type){var e=this.b.getVideoData(),g=oy(a.url,e.videoId);if(-1!=g)this.H("command_seek",g),this.kk();else if(e=py(a.url,b.id,e.videoId,this.b.R()))this.pauseVideo(),window.open(e,ry(a.url))}},a)}f.du=function(){MB(this,"playerControlShow",!1)};f.fu=function(){MB(this,"playerControlShow",!0)};f.iu=function(a){MB(this,"rollOver",!0,a.id)};f.hu=function(a){MB(this,"rollOver",!1,a.id)};
f.cu=function(a){if(a||a.id)this.g[a.id].o=!0,KB(this,a.id),a&&(wy(this.A,a.Sb),NB(this,a,"close")),MB(this,"closed",!0,a.id)};f.kk=function(){this.D.stop();this.L&&(this.L=!1,this.H("command_play"))};function EB(a,b){if(OB(b)){var c=b.B||ey(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new rB(b,u(a.O.appendChild,a.O),a.b.R(),a.M,c)}return null}
function OB(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in Yx)if(a.style==Yx[b])return!0;return!1}function MB(a,b,c,d){a.H(Tz(b,d),c,d)}function AB(a,b){return u(function(){if(!this.fa()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=ra.apply(window,a);this.N.push($y(b,void 0))}},a)}f.J=function(){for(var a=this.N,b=0,c=a.length;b<c;b++)bz(a[b]);this.N.length=0;yB.G.J.call(this)};function PB(a,b,c){c=c||{};var d=c.hd;d||(d=document.createElement("style"),d.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(d),d=d.sheet||d.styleSheet);c.reset&&QB(d);b=b instanceof Array?b.join(";"):b;d.insertRule?d.insertRule(a+"{"+b+"}",d.cssRules.length):d.addRule(a,b,-1);return d}function QB(a){for(var b=(a.cssRules||a.rules).length;0<b;b--){var c=a;c.deleteRule?c.deleteRule(0):c.removeRule(0)}};function RB(a,b,c){X.call(this,["div","ytp-drop-down","{{content}}"]);this.o=!1;this.B=0;this.D=this.C=null;this.g=new X(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);S(this,this.g);this.b=new EA(a,"ytp-drop-down-label");S(this,this.b);this.b.listen("click",this.F,this);this.A=new X(["div","ytp-drop-down-label-content","{{content}}"]);S(this,this.A);this.b.oa([this.A,["div","ytp-drop-down-arrow"]]);this.oa([this.g,this.b]);this.stopPropagation("click");n(b)&&this.k(b);n(c)&&this.D!=c&&
(this.g.oa(c),this.D=c,SB(this));SB(this)}w(RB,X);RB.prototype.k=function(a){this.C!=a&&(this.A.oa(a),this.C=a,SB(this))};RB.prototype.j=function(){this.o=!1;SB(this)};RB.prototype.F=function(){this.o=!this.o;SB(this);this.o&&this.g.K().focus()};function TB(a,b){b>a.B&&(a.B=b,a.element.style.minWidth=a.B+"px")}
function SB(a){a.o?(a.g.show(),My(a,window,"blur",a.j,a,"menu"),My(a,document,"click",a.j,a,"menu")):(a.g.hide(),Ny(a,"menu"));var b=Wf(a.b.K());a.g.K().style.bottom=b.height-1+"px";TB(a,b.width)};function UB(a,b){EA.call(this,a,"ytp-drop-down-menu-button");this.b=new X(["div","ytp-drop-down-menu-button-check"]);S(this,this.b);this.j=!!b}w(UB,EA);UB.prototype.oa=function(a){UB.G.oa.call(this,[this.b,a])};function VB(a,b){Q(a.element,"ytp-drop-down-menu-button-selected",b);a.j||Q(a.element,"ytp-drop-down-menu-button-checked",b)}function WB(a,b){Q(a.element,"ytp-drop-down-menu-button-separated",b)}function XB(a,b){Q(a.element,"ytp-drop-down-menu-button-checked",b)};function YB(a,b,c,d){X.call(this,["div","ytp-drop-down-menu-content","{{content}}"]);this.C=a;this.o=!!d;this.j={};this.k=[];this.b=this.g=null;this.A=b;this.B=c}w(YB,X);function ZB(a,b){Cb(a.k,b)||(Lb(a.j,function(a){a.dd()}),a.k=[],b&&z(b,function(a){this.k.push(a);var b=$B(this,a);this.o&&XB(b,a==this.b);VB(b,a==this.g);b.X(this.element)},a))}function aC(a,b){null!=a.g&&VB($B(a,a.g),!1);null!=b&&VB($B(a,b),!0);a.g=b;a.o||(a.b=b)}YB.prototype.getSelected=function(){return this.g};
function bC(a,b){Lb(a.j,function(a){HA(a,b)})}function $B(a,b){var c=a.j[b.toString()];if(c)return c;c=new UB(a.C,a.o);S(a,c);a.j[b.toString()]=c;c.oa(a.A(b));c.listen("click",u(a.B,a,b));return c};function cC(a){DA.call(this);this.D=this.j;this.k={};this.k[this.j]=Y(0,"YTP_TRANSLATE_MENU_ITEM");this.k.contribute=Y(0,"YTP_CONTRIBUTE_MENU_ITEM");this.F=!0;this.b=Y(0,"YTP_SUBTITLES");this.g=new YB(a,u(this.I,this),u(this.N,this));S(this,this.g);this.element=new RB(a,void 0,this.g);S(this,this.element);TB(this.element,150);this.priority=2;this.o=!0;this.A="captions";this.B=this.L=!1}w(cC,DA);cC.prototype.j="translate";
function dC(a,b){var c=[a.j];a.B&&c.push("contribute");for(var d=0;d<b.length;d++){var e=b[d],g=e.toString();a.k[g]||(a.k[g]=eC(e));c.push(g)}ZB(a.g,c);c=!a.L;d=$B(a.g,a.j);c?d.disable():d.enable();c=!a.B;WB($B(a.g,a.j),c);a.B&&WB($B(a.g,"contribute"),!0);c=2100;bC(a.g,c++);c=c++;HA(a.element.b,c)}function fC(a,b){a.k[b]&&(a.D=b,aC(a.g,b),a.element.k(a.I(b)))}function gC(a,b){a.L=b;var c=!b,d=$B(a.g,a.j);c?d.disable():d.enable()}cC.prototype.I=function(a){return this.k[a]};
cC.prototype.N=function(a){this.element.j();a==this.j?(this.F=!0,this.element.wb("select")):"contribute"==a?(this.F=!1,this.element.wb("select")):(fC(this,a),this.element.wb("change"))};function hC(a){DA.call(this);this.b=Y(0,"YTP_SUBTITLES");this.element=new IA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);LA(this.element,2200);this.priority=1;this.C=!0;this.A="captions";KA(this.element,1)}w(hC,DA);hC.prototype.M=function(){this.element.wb("select")};hC.prototype.getSelected=function(){return this.element.getSelected()};function iC(a){X.call(this,a)}w(iC,X);iC.prototype.A=function(){};var jC={yI:"monoSerif",WI:"propSerif",xI:"monoSans",VI:"propSans",CASUAL:"casual",CURSIVE:"cursive",tJ:"smallCaps"},kC={NONE:"none",DROP_SHADOW:"dropShadow",RAISED:"raised",DEPRESSED:"depressed",QJ:"uniform"},lC=["left","right","center"],mC={id:0,priority:0,anchorPoint:7,bj:50,GE:80,ee:95,yd:15,km:100,isVisible:!0,textAlign:lC[2],Qe:0,backgroundColor:"#080808",foregroundColor:"#fff",AE:1,Hn:1},nC={id:98},oC={id:99,priority:1,anchorPoint:0,bj:5,ee:7,yd:2,km:32,textAlign:lC[0]},pC=["CA","MX","US"];var qC=[{ia:"#fff",message:"YTP_COLOR_WHITE"},{ia:"#ff0",message:"YTP_COLOR_YELLOW"},{ia:"#0f0",message:"YTP_COLOR_GREEN"},{ia:"#0ff",message:"YTP_COLOR_CYAN"},{ia:"#00f",message:"YTP_COLOR_BLUE"},{ia:"#f0f",message:"YTP_COLOR_MAGENTA"},{ia:"#f00",message:"YTP_COLOR_RED"},{ia:"#080808",message:"YTP_COLOR_BLACK"}],rC=[{ia:0,text:"0%"},{ia:.25,text:"25%"},{ia:.5,text:"50%"},{ia:.75,text:"75%"},{ia:1,text:"100%"}],sC=[{ia:"fontFamilyOption",message:"YTP_FONT_FAMILY",options:[{ia:"monoSerif",message:"YTP_FONT_FAMILY_MONO_SERIF"},
{ia:"propSerif",message:"YTP_FONT_FAMILY_PROP_SERIF"},{ia:"monoSans",message:"YTP_FONT_FAMILY_MONO_SANS"},{ia:"propSans",message:"YTP_FONT_FAMILY_PROP_SANS"},{ia:"casual",message:"YTP_FONT_FAMILY_CASUAL"},{ia:"cursive",message:"YTP_FONT_FAMILY_CURSIVE"},{ia:"smallCaps",message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{ia:"color",message:"YTP_FONT_COLOR",options:qC},{ia:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{ia:-2,text:"50%"},{ia:-1,text:"75%"},{ia:0,text:"100%"},{ia:1,text:"150%"},{ia:2,text:"200%"},
{ia:3,text:"300%"},{ia:4,text:"400%"}]},{ia:"background",message:"YTP_BACKGROUND_COLOR",options:qC},{ia:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:rC},{ia:"windowColor",message:"YTP_WINDOW_COLOR",options:qC},{ia:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:rC},{ia:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{ia:"none",message:"YTP_EDGE_STYLE_NONE"},{ia:"dropShadow",message:"YTP_EDGE_STYLE_DROP_SHADOW"},{ia:"raised",message:"YTP_EDGE_STYLE_RAISED"},{ia:"depressed",
message:"YTP_EDGE_STYLE_DEPRESSED"},{ia:"uniform",message:"YTP_EDGE_STYLE_OUTLINE"}]},{ia:"textOpacity",message:"YTP_FONT_OPACITY",options:[{ia:.25,text:"25%"},{ia:.5,text:"50%"},{ia:.75,text:"75%"},{ia:1,text:"100%"}]}];function tC(a,b,c,d){X.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Y(0,b.message):""),e=[new vv(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new vv(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.K().style.background=b.ia,e.unshift(d));c?e.unshift(new vv(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new vv(["div","ytp-subtitles-settings-dialog-list-check"]));this.b=new EA(a);S(this,this.b);this.b.oa(e);
this.oa(this.b)}w(tC,X);tC.prototype.setEnabled=function(a){Q(this.b.K(),"ytp-subtitles-settings-dialog-list-selected",a)};function uC(a){X.call(this,["div",["ytp-subtitles-settings-dialog","ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body",["div","ytp-subtitles-settings-dialog-top-level","{{top}}"],["div","ytp-subtitles-settings-dialog-sub-level","{{sub}}"]],["div","ytp-dialog-buttons","{{buttons}}"]]);this.o=a;this.g=null;var b=Y(0,"YTP_DONE"),c=new EA(a,"ytp-dialog-button",b);S(this,c);c.oa(b);c.listen("click",ra(this.wb,"cancel"),this);b=Y(0,"YTP_RESET");a=new EA(a,"ytp-dialog-button",b);S(this,a);a.oa(b);
O(a.K(),"ytp-dialog-button-left");a.listen("click",ra(this.wb,"select"),this);this.j={};this.b={};this.template.update({top:vC(this,sC),buttons:[a,c]})}w(uC,iC);function vC(a,b,c){var d=new X(["ul","ytp-subtitles-settings-dialog-list"]),e,g=!1;n(c)?(a.b={},e=a.b):(a.j={},e=a.j,g=!0);for(var h=0;h<b.length;h++){var k=b[h],l=new tC(a.o,k,g,b==qC);g?l.listen("click",u(a.k,a,k.options,k.ia)):c&&l.listen("click",u(a.B,a,c,k.ia));e[k.ia]=l;l.X(d.K())}return d}
uC.prototype.k=function(a,b){this.template.update({sub:vC(this,a,b)});wC(this,this.j,b);wC(this,this.b,this.g[b])};function wC(a,b,c){Lb(b,function(a,b){a.setEnabled(b==c)},a)}function xC(a,b){a.g=b;var c=sC[0];c&&c.options&&a.k(c.options,c.ia)}uC.prototype.B=function(a,b){this.g&&(this.g[a]=b,this.wb("change"));wC(this,this.b,b)};
uC.prototype.A=function(){var a=this.o.Vc(),b=2*Math.floor(Math.min(560,Math.max(230,.65*a.width))/2);this.K().style.width=b+"px";this.template.b["ytp-dialog-body"].style.height=a.height-140+"px"};uC.prototype.J=function(){this.j=[];this.b=[];uC.G.J.call(this)};function yC(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);var c=Y(0,"YTP_DISMISS"),b=new EA(a,"ytp-dialog-button",c);S(this,b);b.oa(c);b.listen("click",ra(this.wb,"change"),this);var c=Y(0,"YTP_CANCEL"),d=new EA(a,"ytp-dialog-button",c);S(this,d);d.oa(c);d.listen("click",ra(this.wb,"cancel"),this);this.g=new YB(a,u(this.j,this),u(this.o,
this),!0);S(this,this.g);this.g.element.style.maxHeight="100px";this.b=new RB(a,void 0,this.g);S(this,this.b);TB(this.b,200);this.k=null;this.template.update({content:this.b,buttons:[b,d]})}w(yC,iC);function zC(a,b){a.k=b;a.b.k(b?a.j(b):null)}yC.prototype.getSelected=function(){return this.k};yC.prototype.o=function(a){this.b.j();zC(this,a)};yC.prototype.j=function(a){return a.ri+" -- "+a.Nk};var AC;function BC(a,b){ia(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;AC||(AC={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=AC;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function CC(a,b,c,d,e){EA.call(this,a,b,c,c);this.F=b;this.L=this.M=c;this.A=d||null;this.B=e||null;this.C=e||null;this.b=!1}w(CC,EA);function DC(a){FA(a,a.b&&a.A?a.A:a.F);GA(a,a.b&&a.B?a.B:a.M);a.g=a.b&&a.C?a.C:a.L;Q(a.element,"ytp-button-pressed",a.b)}function EC(a){a.b=!0;BC(a.element,!0);DC(a)}function FC(a){a.b=!1;BC(a.element,!1);DC(a)}function GC(a,b){a.F=b;DC(a)}CC.prototype.J=function(){this.C=this.B=this.A=null;CC.G.J.call(this)};function HC(a){a=a||mC;sa(this,a)}f=HC.prototype;f.anchorPoint=7;f.bj=50;f.ee=95;f.GE=80;f.Qe=0;f.textAlign="center";f.backgroundColor="#080808";f.foregroundColor="#fff";f.AE=1;f.Hn=1;f.yd=15;f.km=32;f.isVisible=!0;f.Ls='"Arial Unicode Ms", Arial';f.mD="100%";function IC(a,b){this.id=a;this.Ea=new HC(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.ya=I("div",{id:"caption-window-"+this.id,"class":c});this.Ob=I("span",{"class":"captions-text",style:"visibility: hidden"});this.Ob.innerHTML="C";this.Aa=I("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.Kj=I("div",{"class":"caption-window-transform"});this.Kj.appendChild(this.Aa);this.ya.appendChild(this.Kj)}IC.prototype.id=0;f=IC.prototype;f.Ea=null;
f.gh="";f.Sc=null;f.ya=null;f.Kj=null;f.Aa=null;f.Ob=null;f.type=1;f.Gj=function(){var a;this.Ob.style.fontFamily=this.Aa.style.fontFamily;this.ya.appendChild(this.Ob);a=this.Ob.offsetHeight;this.ya.removeChild(this.Ob);return a};f.Ze=function(){this.Aa&&(0!=this.id&&(Vf(this.ya,"100%"),Vf(this.ya,this.Aa.offsetWidth)),JC(this),wx(this.ya,this.Ea.isVisible))};function JC(a){Jf(a.ya,a.Ea.bj+"%",a.Ea.ee+"%");for(var b=0;8>=b;b++)P(a.ya,"anchor-point-"+b);O(a.ya,"anchor-point-"+a.Ea.anchorPoint)}
f.nr=function(a){var b=[];z(a,function(a){a.Ij?b[b.length-1]+=a.fe:b.push(a.fe)});this.We(b.join("\n"));this.Sc=a};f.We=function(a){this.gh=a=KC(a);this.Aa.innerHTML=this.gh;this.In();this.Ze()};function LC(a,b){b&&(b=b.replace(/<[^>]*>?/g,""),a.We(b))}
f.In=function(){this.ya.style.textAlign=this.Ea.textAlign;this.Aa.style.backgroundColor=this.Ea.backgroundColor;this.Aa.style.color=this.Ea.foregroundColor;this.Aa.style.opacity=this.Ea.Hn;this.Aa.style.fontFamily=this.Ea.Ls;this.Aa.style.fontSize=this.Ea.mD;1==this.Ea.Qe?this.Aa.setAttribute("dir","rtl"):this.Aa.removeAttribute("dir")};f.toString=function(){var a="Caption window ("+this.id+"): "+this.gh,b;for(b in this.Ea)a+=b+" "+this.Ea[b]+" | ";return a};
function KC(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.Lj=function(){this.Sc=[];this.We("")};function MC(){this.o=20971520;this.k=8388608;this.g=5242880;this.ra=NaN;this.A=this.C=2;this.N=25;this.F=2097152;this.b=!0;this.j=1800;this.P=this.L=!1;this.B=1.15;this.ai=oo.auto;this.M=!0;this.V=lr("xboxone");this.D=0;this.T=this.I=this.O=!1};function NC(){this.ba=[]}NC.prototype.contains=function(a){a=yb(this.ba,a);return 0<=a||0>a&&1==(-a-1)%2};NC.prototype.length=function(){return this.ba.length/2};function OC(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=PC();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function QC(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 PC(){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 RC(){this.g=[];this.j=[]};function SC(a){this.b=a.ud;this.k=a.priority;this.uc=a.uc||this.uc}SC.prototype.b=0;SC.prototype.k=0;SC.prototype.uc=0;SC.prototype.toString=function(){return this.b+", "+this.uc};function TC(a){SC.call(this,a);this.fe=a.text||this.fe;this.Ui=a.windowId||this.Ui;this.Ij=a.params.append||this.Ij;this.Vs=a.params.row||this.Vs;this.Us=a.params.oD||this.Us}w(TC,SC);f=TC.prototype;f.fe="";f.Ij=!1;f.Vs=0;f.Us=0;f.Ui=0;f.toString=function(){return this.b+", "+this.uc+": "+this.fe};
function UC(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=1E3*parseFloat(a.getAttribute("start")||0);a.getAttribute("t")&&(c=parseInt(a.getAttribute("t"),10));var d=1E3*parseFloat(a.getAttribute("dur")||0);a.getAttribute("d")&&(d=parseFloat(a.getAttribute("d")));var e=parseInt(a.getAttribute("w"),10)||0,b={ud:c,uc:d,text:b,windowId:e,priority:5,params:{}};a.getAttribute("r")&&(b.params.row=parseInt(a.getAttribute("r"),10));a.getAttribute("c")&&(b.params.oD=parseInt(a.getAttribute("c"),10));
a.getAttribute("append")&&(b.priority=6,b.params.append=!0);return new TC(b)}function VC(a){SC.call(this,a);this.id=a.windowId||this.id;this.params=a.params}w(VC,SC);VC.prototype.id=0;VC.prototype.params=null;VC.prototype.j="";VC.prototype.g=!1;function WC(){return new VC({ud:-2147483648,uc:4294967295,params:mC})};function XC(a){RC.call(this);this.j.push(WC());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=UC(a[b]);this.g.push(d)}}w(XC,RC);function YC(a){RC.call(this);this.b={};a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)switch(a[b].tagName){case "window":var d=a[b],e=parseInt(d.getAttribute("id"),10);t:{var g=this.b[e];if(d.getAttribute("t")||d.getAttribute("start")){var h=parseInt(d.getAttribute("t"),10);d.getAttribute("start")&&(h=1E3*parseFloat(d.getAttribute("start")));g&&(g.b+g.uc>=h?g.uc=h:g=null);switch(d.getAttribute("op")){case "kill":d=null;break t;case "define":g=null}g?g.o=!0:g=WC();var k={};sa(k,g?g.params:
mC);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.HE=d.getAttribute("op"));d.getAttribute("rc")&&(k.yd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.km=parseInt(d.getAttribute("cc"),10));d.getAttribute("ap")&&(g=parseInt(d.getAttribute("ap"),10),k.anchorPoint=0>g||8<g?7:g);d.getAttribute("ah")&&(k.bj=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(k.ee=parseInt(d.getAttribute("av"),10));d.getAttribute("id")&&(k.id=parseInt(d.getAttribute("id"),
10)||0);d.getAttribute("vs")&&(k.isVisible=Boolean(d.getAttribute("vs")));d.getAttribute("ju")&&(k.textAlign=lC[parseInt(d.getAttribute("ju"),10)]);d.getAttribute("pd")&&(k.Qe=1,0==parseInt(d.getAttribute("pd"),10)&&(k.Qe=0));d.getAttribute("bc")&&(k.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(k.opacity=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(k.foregroundColor=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(k.Tl=parseInt(d.getAttribute("sd"),
10));g=parseInt(d.getAttribute("d"),10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d={ud:h,uc:g,params:k,windowId:parseInt(d.getAttribute("id"),10)};d=new VC(d)}else d=null}this.b[e]=d;this.j.push(d);break;case "text":e=UC(a[b]),this.g.push(e),d=e.Ui,this.b[d]&&(d=this.b[d],e=e.fe,""!=d.j&&(d.g=!0),d.j+=e)}}w(YC,RC);function ZC(){RC.call(this)}w(ZC,RC);function $C(a){this.b=a.languageCode;this.ri=a.languageName||null;this.Nk=a.languageOriginal||null;this.id=a.id||null;this.g=a.is_default||!1}$C.prototype.toString=function(){return this.b+"_"+this.ri+"_"+this.Nk+"_"+this.id+"_"+this.g};function aD(a){a=a||{};this.F=a.formats||"";this.o=a.format||1;if(1==this.o)for(var b=this.F.split(","),c=0;c<b.length;c++){var d=parseInt(b[c],10);isNaN(d)||(this.o=Math.max(d,this.o))}this.g=a.languageCode||"";this.A=a.languageName;this.j=a.kind||"";this.k=a.name;this.ta=a.id;this.I=a.is_servable;this.B=a.is_default;this.C=a.is_translateable;this.D=a.vss_id||"";this.b=null;a.translationLanguage&&(this.b=new $C(a.translationLanguage))}
function bD(a){var b={format:a.o,languageCode:a.g,languageName:a.A,displayName:eC(a),kind:a.j,name:a.k,id:a.ta,is_servable:a.I,is_default:a.B,is_translateable:a.C};a.b&&(a=a.b,b.translationLanguage={languageCode:a.b,languageName:a.ri,languageOriginal:a.Nk,id:a.id,is_default:a.g});return b}function eC(a){var b=[a.A];if("asr"==a.j){var c=We("YTP_ASR_SETTINGS_LABEL");b.push(" (",c,")")}a.k&&b.push(" - ",a.k);a.b&&b.push(" >> ",a.b.ri);return b.join("")}
aD.prototype.toString=function(){var a=[this.g,": ",this.k," (",this.j,")"];this.b&&a.push(" >> ",this.b.b);return a.join("")};aD.prototype.equals=function(a){if(!a)return!1;var b=this.b,c=a.b;if(b&&c){if(b.b!=c.b)return!1}else if(b||c)return!1;return this.g==a.g&&this.k==a.k&&this.j==a.j};function cD(a,b){RC.call(this);this.j.push(WC());for(var c=a.split(dD),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(eD))e=null;else{var h=e.split(fD),k=0,l=h[k++].match(gD);l||(l=h[k++].match(gD));l?(e=hD(l[1],g),g=hD(l[3],g),h=h.slice(k).join("\n"),e=new TC({ud:e,uc:g-e,text:h,windowId:0,priority:5,params:{}})):e=null}e&&this.g.push(e)}}w(cD,RC);var eD=/NOTE/,dD=/[\r\n|\r|\n]{2,}/,fD=/\r\n|\r|\n/,gD=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function hD(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 iD(a,b){this.b=[];this.g=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new cD(a,b||0):(c=OC(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new ZC:new YC(c):new XC(c):null:null;c&&(this.g=c.j,this.b=c.g)};function jD(a,b){this.va=a;this.W=b;this.A=new NC;this.k=!0;this.B=this.j=this.o=this.b=null;this.g=0}w(jD,Gh);jD.prototype.J=function(){Te(this.g);this.g=0;this.k=!0};jD.prototype.resume=function(){this.k=!1;Te(this.g);this.seek(this.W.getCurrentTime());kD(this)};jD.prototype.seek=function(a){this.b=cb(this.B.xi(a).b)};function lD(a,b){a.o=b}function mD(a){var b;if(b=!a.k&&null!==a.b)b=a.b,b=b.b.zg(b);return b&&!a.j&&!(a.b&&30<a.b.startTime-a.W.getCurrentTime())}
function nD(a){var b;b=a.b;b=So(b.b,b);if(!a.A.contains(b.b[0].k)){Fi(Po(b),{format:"RAW",vb:u(a.C,a),withCredentials:!0});a.j=b;var c=a.A,d=a.j.b[0].k,e=yb(c.ba,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ba[e-1]&&e<c.ba.length&&1==c.ba[e]-d?(qb(c.ba,e),qb(c.ba,e-1)):0<e&&1==d-c.ba[e-1]?c.ba[e-1]=d:e<c.ba.length&&1==c.ba[e]-d?c.ba[e]=d:(vb(c.ba,e,0,d),vb(c.ba,e+1,0,d)))}a.b=cb(b.b)}
jD.prototype.C=function(a){null==a.responseText||400<=a.status||this.k||null===this.o||(a=new iD(a.responseText,1E3*this.j.b[0].startTime),this.o(a));this.j=null};function kD(a){a.g=Se(u(function(){mD(this)&&nD(this)},a),1E3);mD(a)&&nD(a)};function oD(){this.j=[];this.g=[];this.b=-1}function pD(a,b){return b?a.g.concat(a.j):a.g}function qD(a,b){switch(b.j){case "asr":return rD(b,a.j);default:if(b.B||0>a.b)a.b=a.g.length;return rD(b,a.g)}}function rD(a,b){return B(b,u(a.equals,a))?!1:(b.push(a),!0)};function sD(a){this.nq=!!a;this.b=new oD;this.A=[]}function tD(a,b){return B(pD(a.b,!0),function(a){return a.toString()==b})}sD.prototype.seek=function(){};sD.prototype.B=function(){};function uD(a,b){sD.call(this);this.j=a;this.g=new jD(new MC,b)}w(uD,sD);uD.prototype.k=function(a,b){lD(this.g,function(c){b(c,a)});this.g.B=this.j.b[a.g];this.g.resume()};uD.prototype.o=function(a){qD(this.b,new aD({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};uD.prototype.seek=function(a){this.g.seek(a)};uD.prototype.B=function(){var a=this.g;Te(a.g);a.g=0;a.k=!0};function vD(a,b){IC.call(this,a,b);this.Aa.style.display="block";this.Aa.style.padding="0";this.Yb=[];var c=this.Aa;P(c,"captions-text");O(c,"caption-painton-text-rows")}w(vD,IC);f=vD.prototype;f.type=0;f.sq="";f.dh=!1;f.Lb=null;f.Yb=null;f.Gj=function(){return this.Yb[0]?this.Yb[0].offsetHeight:0};function wD(a){return a.Yb.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.Ze=function(){0!=this.id&&(Vf(this.ya,"100%"),Vf(this.ya,this.dh?wD(this):this.Lb.width));var a=Math.round(this.Ea.yd*this.Gj());this.ya.style.maxHeight=a+"px";JC(this);wx(this.ya,this.Ea.isVisible)};
f.We=function(a){this.Lj();a=KC(a);this.dh||(this.gh=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"});d.appendChild(e);e.innerHTML=a[b];this.dh||(this.Aa.style.height=this.Lb.height+"px",this.Aa.style.width=this.Lb.width+"px",d.style.position="absolute",d.style.top=this.Lb.rq[b]+"px",d.style.left=this.Lb.qq[b]+"px");this.Aa.appendChild(d);this.Yb.push(e)}this.In();this.Ze()};
f.Lj=function(){for(var a=0,b=this.Yb.length;a<b;a++){var c=sd(this.Yb[a],"caption-row-holder");cd(c)}this.Yb=[]};f.In=function(){this.ya.style.textAlign=this.Ea.textAlign;for(var a=0,b=this.Yb.length;a<b;a++)this.Yb[a].style.backgroundColor=this.Ea.backgroundColor;this.Aa.style.color=this.Ea.foregroundColor;this.Aa.style.opacity=this.Ea.Hn;this.Aa.style.fontFamily=this.Ea.Ls;1==this.Ea.Qe?this.Aa.setAttribute("dir","rtl"):this.Aa.removeAttribute("dir")};function xD(a,b){IC.call(this,a,b);this.Sc=[];this.ne=[];this.Nb=[];this.cg=new Kk(433);this.cg.stop();R(this.cg,"tick",u(this.DD,this))}w(xD,IC);f=xD.prototype;f.type=2;f.qD=32;f.Nb=null;f.oe=0;f.ne=null;f.cg=null;f.Ze=function(){Vf(this.ya,"100%");var a=this.ya.offsetWidth,a=Math.min(yD(this),a);Vf(this.ya,a+"px");Vf(this.Kj,"100%");this.Aa.style.whiteSpace="nowrap";JC(this);wx(this.ya,this.Ea.isVisible)};
f.nr=function(a){var b=a.length;if(0>=b)this.Lj();else{for(var c=0;c<b&&0<=this.Sc.indexOf(a[c]);)c++;this.Sc=this.Sc.concat(a.slice(c));zD(this)}};f.Lj=function(){this.Sc=[];this.Nb=[];this.oe=0;this.Nb=[];this.ne=[];AD(this)};
function zD(a){if(!BD(a))if(a.oe>=a.Sc.length)AD(a);else{var b=a.Nb.length-1;0>b&&(a.ne.push(0),a.oe=0,a.Nb.push(""),b=0);for(var c=a.Sc.length,d=a.oe;d<c;d++){var e=a.Sc[d];if("\n"==e.fe){a.oe++;a.ne[b]++;break}if(e.Ij||0==a.Nb[b].length)a.Nb[b]+=e.fe,a.oe++,a.ne[b]++;else break}AD(a);d<c&&!BD(a)&&(b=a.Gj(),O(a.Aa,"caption-rollup"),a.ya.style.overflow="hidden",a.Aa.style.top=-b+"px",a.cg.start())}}function BD(a){return a.cg.ed||mg(a.Aa,"caption-rollup")}
f.DD=function(){this.ya.style.overflow="visible";this.Aa.style.top=0;this.cg.stop();P(this.Aa,"caption-rollup");this.Nb.push("");this.ne.push(0);zD(this)};function AD(a){if(!BD(a)){for(;a.Nb.length<a.Ea.yd;)a.Nb.unshift(""),a.ne.unshift(0);for(;a.Nb.length>a.Ea.yd;){a.Nb.shift();var b=a.ne.shift();0<b&&(a.oe-=b,a.Sc.splice(0,b))}a.We(a.Nb.join("\n"))}}
function yD(a){a.Ob.style.fontFamily=a.Aa.style.fontFamily;a.Ob.style.fontSize=a.Aa.style.fontSize;a.Aa.appendChild(a.Ob);a.Ob.innerHTML="\u2014";var b=a.Ob.offsetWidth;a.Ob.innerHTML="&nbsp;";b=2*a.Ob.offsetWidth+b*a.qD;a.Aa.removeChild(a.Ob);return b};function CD(a,b,c,d){sD.call(this,d);c||(c=vi(a).hl||"",c=c.split("_").join("-"));this.g=yi(a,{hl:c});this.j=b;this.C={}}w(CD,sD);CD.prototype.k=function(a,b){var c=DD(this,a);Fi(c,{format:"RAW",onSuccess:function(c){c=new iD(c.responseText);b(c,a)},withCredentials:!0})};
CD.prototype.o=function(a,b,c){var d=this.g;b={type:"list",tlangs:1,v:this.j,fmts:Number(b||!1),vssids:1};this.nq&&(b.asrs=1);d=yi(d,b);b=u(function(b){if((b=b.responseXML)&&b.firstChild){for(var d=this.b,h=b.getElementsByTagName("track"),k=h.length,l=0;l<k;l++){var p=h[l].getAttribute("formats"),r=c,t=h[l].getAttribute("lang_code"),y=h[l].getAttribute("lang_translated"),D=h[l].getAttribute("name"),M=h[l].getAttribute("kind"),ea=h[l].getAttribute("id"),jb="true"==h[l].getAttribute("lang_default"),
bg="true"==h[l].getAttribute("cantran"),$w=h[l].getAttribute("vss_id"),p=new aD({formats:p,format:r,languageCode:t,languageName:y,name:D,kind:M,id:ea,is_servable:!0,is_default:jb,is_translateable:bg,vss_id:$w});qD(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"),t="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:p,
id:r,is_default:t},this.C[k.languageCode]=k.languageName,this.A.push(new $C(k))}a()},this);Fi(d,{format:"RAW",onSuccess:b,withCredentials:!0})};function DD(a,b){var c=a.g,d={v:a.j,type:"track",lang:b.g,name:b.k,kind:b.j,fmt:b.o};b.b&&(d.tlang=b.b.b);return c=yi(c,d)};function ED(a){fu.call(this,a);Ve({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_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"});this.ek=!0;this.A=this.V=!1;this.xb=new Rv(this);this.D=a.R();this.B=null;this.ca=a.app.g;this.pa={};
this.da=[];this.Ha=0;this.C={};this.U={};this.la=this.Ba=this.za=this.wa=!1;this.xa=new IC(99,oC);this.j=this.k=this.I=null;this.Ca=!1;this.P=this.L=0;this.O=new CC(tu(this),"ytp-subtitles-button",Y(tu(this),"YTP_SUBTITLES"),"ytp-subtitles-button-active");this.O.listen("click",this.gx,this);HA(this.O,6500);this.F=new hC(tu(this));S(this,this.F);KA(this.F.element,1);this.F.listen("change",this.qx,this);this.F.listen("select",this.rx,this);this.o=new cC(tu(this));S(this,this.o);this.o.listen("change",
this.Wp,this);this.o.listen("select",this.fx,this);gC(this.o,!1);this.N=new uC(tu(this));S(this,this.N);this.N.listen("change",u(this.ve,this,!0));this.N.listen("cancel",this.bx,this);this.N.listen("select",this.Yp,this);this.T=new yC(tu(this));S(this,this.T);this.T.listen("change",this.lx,this);this.T.listen("cancel",this.pg,this);this.subscribe("onResize",u(this.ko,this));this.subscribe("onBackgroundChange",u(this.mx,this));this.subscribe("onTextOpacityChange",u(this.nx,this));this.subscribe("onWindowOpacityChange",
u(this.ox,this));this.subscribe("onFontSizeIncrease",u(this.kx,this));this.subscribe("onFontSizeDecrease",u(this.jx,this));this.subscribe("onShowControls",u(this.ix,this));this.subscribe("onHideControls",u(this.hx,this));"detailpage"==this.D.$&&(a=H("captions-account-settings-link",pt(a)))&&yx(a)}w(ED,fu);ED.prototype.ua="captions";ED.prototype.hc="cc";ED.prototype.nn="subtitlesModuleData";ED.prototype.Ia=1;
var FD={background:"#080808",backgroundOpacity:1,charEdgeStyle:"uniform",color:"#fff",fontFamily:'"Arial Unicode Ms", Arial',fontFamilyOption:"propSans",fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function GD(a){return a.D.Qb?!!a.ca.b.textTracks:!1}f=ED.prototype;
f.create=function(){ED.G.create.call(this);this.B=this.b.getVideoData();-1==pC.indexOf(this.D.U)&&O(pt(this.b),"cc-international");this.g=Zb(FD);sa(this.g,mu(this,"display-settings"));xC(this.N,this.g);GD(this)||(this.H("module_menu_button_add",this.ua,this.O),uu(this,this.F));var a;1==this.D.j.cc_load_policy||1==this.B.Sn||"alwayson"==Ur(this.B,"yt:cc")||GD(this)?a=!0:(a=mu(this,"module-enabled"),a=null!=a?!!a:"on"==Ur(this.B,"yt:cc")||this.D.j.cc_prefer_on);a&&this.load()};
function HD(a){vu(a,a.o);vu(a,a.F);a.H("module_menu_button_remove",a.ua)}f.destroy=function(){HD(this);ED.G.destroy.call(this)};function ID(a){a.k.o(u(a.xC,a),!0,GD(a)?"vtt":void 0)}
f.load=function(){this.la="alwayson"==Ur(this.B,"yt:cc");this.Ba="1"==this.B.k.cc_auto_caps||"1"==this.D.j.cc_auto_caps;this.o.B="1"==this.B.k.cc_contribute||"1"==this.D.j.cc_contribute;if(this.V||this.A)this.A&&(ED.G.load.call(this),this.V=!1,GD(this)||(this.ve(),this.ko()));else{this.V=!0;this.A=!1;if(this.B.ib)this.k=new uD(this.B.j,this.b),this.subscribe("seekto",this.bq,this);else{var a=this.B.k.cc_lang_pref||this.D.j.cc_lang_pref||Ur(this.B,"yt:cc_default_lang")||this.D.A,a=a&&a.split("_").join("-");
this.k=new CD(this.B.Mf,this.B.videoId,a,this.B.Rl)}ID(this)}};f.unload=function(){this.nc&&(JD(this,!1),this.Jl("control_subtitles_set_track"));if(GD(this)){var a;a=Mc("track",void 0,void 0);for(var b=0;b<a.length;b++)cd(a[b])}else KD(this,!1),LD(this),this.ja("seekto",this.bq,this),this.k=null,this.pg();this.za=this.V=!1;this.A&&(this.A=!1,ED.G.unload.call(this))};f.log_=function(){};
f.xC=function(){if(this.k)if(this.V=!1,GD(this)){for(var a=this.ca.b,b=this.k,c=[],d=pD(b.b,void 0),e=0;e<d.length;e++){var g=d[e],h=DD(b,g),h={kind:"subtitles",label:g.k,srclang:g.g,src:h};g.B&&(h["default"]=1);c.push(I("track",h))}Nt(a,c)}else a=this.T,b=this.k.A,ZB(a.g,b),b.length?zC(a,b[0]):zC(a,null),a=pD(this.k.b,!0),0<a.length?(this.log_("Caption track list loaded, found "+a.length+" tracks."),uu(this,this.o),dC(this.o,a),b=this.k.b.b,(a=a[b]&&a[b].toString())&&fC(this.o,a),b=this.k,a=b.b.b,
b=pD(b.b,!0),(a=0>a?null:b[a])?(this.wa=!0,MD(this,a)):this.A||(this.A=!0,this.load(),a=this.k.b.j,a.length&&(a=a[0].toString(),fC(this.o,a),(this.za||this.Ba)&&ND(this,a))),this.H("publish_external_event","onCaptionsTrackListChanged")):(this.log_("No captions found."),HD(this),this.unload())};f.Vw=function(a,b){this.k&&(this.A||(this.A=!0,this.load()),this.wa&&(this.wa=!1,this.H("publish_external_event","onCaptionsTrackListChanged")),!b||this.j&&b.equals(this.j)||OD(this,b),PD(this,a.g.concat(a.b)))};
function OD(a,b){LD(a);a.j=b;a.Ca=Yw.test(b.g);var c={trackName:b.k,trackKind:b.j};b.b?(c.trackLangCode=b.b.b,c.fromLangCode=b.g):c.trackLangCode=b.g;a.log(c);LC(a.xa,eC(b));iu(a,a.xa.ya);a.P||(a.P=L(u(a.Dw,a),0));a.H("publish_external_event","captionschanged",bD(b));GC(a.O,"ytp-subtitles-button-active");KA(a.F.element,0);gC(a.o,!0);nu(a,"module-enabled",!0);a.H("vss_segment")}
function PD(a,b){a.log_("Caption track loaded with "+b.length+" events.");var c=[];z(b,function(a){var b;this.Ha++;b="caption"+this.Ha.toString();c.push(new Wt(a.b,a.b+a.uc,{id:b}));this.pa[b]=a},a);a.Hf.apply(a,c)}f.Ec=function(a){if(a=QD(this,a))this.da.push(a),this.L||(this.L=L(u(this.kj,this),0))};f.ld=function(a){if(a=QD(this,a))pb(this.da,a),this.L||(this.L=L(u(this.kj,this),0))};function QD(a,b){var c=b.getId();return 0!=c.indexOf("caption")?null:a.pa[c]}
f.fA=function(a){if(a instanceof VC){var b=this.C[a.id];sa(a.params,this.g);b&&b.type!=(a.params.Tl?2:a.g?0:1)&&(cd(b.ya),delete this.C[a.id]);if(!this.C[a.id]){var b=this.C,c=a.id,d;t:{d=a.id;var e=a.params;switch(a.params.Tl?2:a.g?0:1){case 0:d=new vD(d,e);break t;case 2:d=new xD(d,e);break t;default:d=new IC(d,e)}}b[c]=d;b=this.C[a.id].ya;Q(b,"captions-asr","asr"==this.j.j);null!=a.params.Qe&&(a.params.Qe=this.Ca?1:0);0==this.C[a.id].id?(O(b,this.ua),bd(this.b.app.g.F,b,0)):iu(this,b)}sa(this.C[a.id].Ea,
a.params);if(0==(a.params.Tl?2:a.g?0:1)){b=this.C[a.id];b.sq=a.j;b.Lb={};b.dh=!0;b.We(b.sq);b.Lb.yd=b.Yb.length;b.Lb.width=b.ya.offsetWidth;b.Lb.height=b.ya.offsetHeight;b.Lb.qq=[];b.Lb.rq=[];for(a=0;a<b.Lb.yd;a++)b.Lb.rq.push(b.Yb[a].offsetTop),b.Lb.qq.push(b.Yb[a].offsetLeft);b.dh=!1;b.We(b.gh)}}else b=a.Ui,this.U[b]||(this.U[b]=[]),this.U[b].push(a)};f.ko=function(){this.A&&(this.Ia=RD(this.ca).height/360,this.ve(),Lb(this.C,function(a){a.Ze()},this))};
function SD(a){var b=[];Lb(a.C,function(a){a instanceof vD&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Ea.ee-a.Ea.ee});var c=RD(a.ca).height,d=b[0].Ea.ee;z(b,function(a){a.Ea.ee=d;var b=Math.round(a.Ea.yd*a.Gj());d-=Math.round(b/c*100);a.Ze()},a)}}f.Dw=function(){this.P=0;cd(this.xa.ya)};
f.kj=function(){this.L=0;this.A&&(Xb(this.U),this.da.sort(function(a,b){return a.b==b.b?a.k-b.k:a.b-b.b}),z(this.da,this.fA,this),Lb(this.C,function(a,b){this.U[b]?a.nr(this.U[b]):(cd(a.ya),delete this.C[b])},this),SD(this),this.I&&this.I.Ze(),this.log_("Refreshing caption display..."))};function TD(a,b){var c=H(a).querySelectorAll("."+b+" input[type=radio]"),d=mb(c,function(a){return a.checked}),d=(-1==d?1:d+1)%c.length;c[d].click()}f.mx=function(){TD("captions-settings-background-opacity","captions-settings-background-opacity-radio")};
f.nx=function(){TD("captions-settings-text-opacity","captions-settings-text-opacity-radio")};f.ox=function(){TD("captions-settings-window-opacity","captions-settings-window-opacity-radio")};f.ix=function(){var a=this.C[0];a&&a.ya&&(a=a.ya,P(a,"controls-hidden"),O(a,"controls-visible"))};f.hx=function(){var a=this.C[0];a&&a.ya&&(a=a.ya,mg(a,"controls-visible")&&(P(a,"controls-visible"),O(a,"controls-hidden")))};f.jx=function(){UD(this,-1)};f.kx=function(){UD(this,1)};
function UD(a,b){var c=a.g.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.g.fontSizeIncrement=c;a.ve()}function VD(a,b){var c=H(b);c&&(c.querySelector('input[value="'+a.toFixed(1)+'"]').checked=!0)}function WD(a,b,c){var d=H(b);d&&(b=d.querySelector("span.yt-uix-form-input-select-value"),d=d.querySelector("select"),d.value=a.g[c],kd(b,d.options[d.selectedIndex].text))}
function LD(a){a.j&&(a.j=null,gu(a),a.da=[],a.pa={},a.j=null,a.kj(),GC(a.O,"ytp-subtitles-button"),KA(a.F.element,1),gC(a.o,!1),a.k.B())}function ND(a,b){var c=tD(a.k,b);MD(a,c);a.log_("Caption change failed for "+b)}
function MD(a,b){if(b&&(!a.j||!b.equals(a.j)))if(a.nc)a.j=b,JD(a,!0),a.Jl("control_subtitles_set_track",bD(b)),a.A||(a.A=!0,a.load());else if(a.D.b.Ba){var c=a.ca.b,d=a.k,e={v:d.j,type:"track",lang:b.g,name:b.k,kind:b.j,fmt:"vtt"};b.b&&(e.tlang=b.b.b);var g=document.createElement("track");g.src=yi(d.g,e);g.mode="showing";g.setAttribute("kind","captions");g.setAttribute("default","");Nt(c,[g]);OD(a,b)}else a.k.k(b,u(a.Vw,a)),a.V=!0}
f.lx=function(){if(!this.la){this.pg();var a=this.T.getSelected();if(a){var b=this.j,c=new aD;c.g=b.g;c.A=b.A;c.k=b.k;c.j=b.j;c.B=!1;c.C=b.C;c.D=b.D;c.b=a;qD(this.k.b,c)&&(a=c.toString(),uu(this,this.o),dC(this.o,pD(this.k.b,!0)),fC(this.o,a));MD(this,c)}}};f.bx=function(){this.pg();this.nc&&this.j&&this.Jl("control_subtitles_set_track",bD(this.j))};f.Yp=function(){delete this.g;this.g=Zb(FD);xC(this.N,this.g);nu(this,"display-settings",this.g);this.ve()};
f.ve=function(a){XD(this);var b=Yv(this.g.background),c=this.g.backgroundOpacity;this.Ra=PB(".captions-text, .caption-row","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{hd:this.Ra,reset:!0});VD(c,"captions-settings-background-opacity");b=Yv(this.g.color);c=this.g.textOpacity;this.hb=PB(".captions-text","color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{hd:this.hb,reset:!0});VD(c,"captions-settings-text-opacity");b=Yv(this.g.windowColor);c=this.g.windowOpacity;this.nb=
PB(".caption-window-transform","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{hd:this.nb,reset:!0});VD(c,"captions-settings-window-opacity");var b=this.g.charEdgeStyle,d=this.g.textOpacity;if("none"==b)this.ka&&QB(this.ka);else{var c="",e="rgba(34, 34, 34, "+d+")",d="rgba(204, 204, 204, "+d+")";switch(b){case "dropShadow":c="text-shadow: 2px 2px 3px "+e+", 2px 2px 4px "+e+", 2px 2px 5px "+e+";";break;case "raised":c="text-shadow: 1px 1px "+e+", 2px 2px "+e+", 3px 3px "+e+
";";break;case "depressed":c="text-shadow: 1px 1px "+d+", 0 1px "+d+", -1px -1px "+e+", 0 -1px "+e+";";break;case "uniform":c="text-shadow: 0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e+";"}this.ka=PB(".captions-text",c,{hd:this.ka,reset:!0})}WD(this,"captions-settings-char-edge-style","charEdgeStyle");c=b="";switch(this.g.fontFamilyOption){case "monoSerif":b='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case "propSerif":b='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';
break;case "monoSans":b='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case "propSans":b='"Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif';break;case "casual":b='"Comic Sans MS", Impact, Handlee, fantasy';break;case "cursive":b='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case "smallCaps":b='"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif',c="font-variant: small-caps;"}this.cb=
PB(".captions-text",c+"font-family: "+b+" !important;",{hd:this.cb,reset:!0});this.g.fontFamily=b;WD(this,"captions-settings-font-family","fontFamilyOption");b="font-size: "+Math.round(16*(1+.25*(this.g.fontSizeIncrement||0))*this.Ia)+"px;";this.fb=PB(".caption-window-transform",b,{hd:this.fb,reset:!0});this.kj();n(a)&&!a||nu(this,"display-settings",this.g)};
function XD(a){var b=[],c=u(function(a){var c=this.g[a];c&&b.push(a+": "+c+" !important")},a);c("color");c("background");c={hd:a.Wa,reset:!0};a.Wa=PB(".captions-text",b,c);var d=Yv(a.g.windowColor),c={hd:a.gb,reset:!0};a.gb=PB(".caption-window-transform","background-color: rgba("+d[0]+","+d[1]+","+d[2]+", 1)",c)}f.gx=function(){this.A||this.load()};
f.qx=function(){var a=0==this.F.getSelected();this.A&&!a?(this.unload(),nu(this,"module-enabled",!1),wu(this),this.H("vss_segment")):!this.A&&a?(this.za=!0,this.load()):this.o.D&&this.Wp()};f.rx=function(){ju(this,this.N);wu(this)};f.Wp=function(){ND(this,this.o.D)};f.fx=function(){this.o.F?this.la||ju(this,this.T):ku(this,this.D.rb+"timedtext_video?v="+this.B.videoId);wu(this)};function YD(a){return ED.prototype.Ja(a)?new ED(a):null}
f.Fj=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.g.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.ve()),this.g.fontSizeIncrement;case "reload":b&&ID(this);break;case "stickyLoading":this.D.zb()&&nu(this,"module-enabled",!!b);break;case "track":if(b){if(!la(b))break;var c=new aD(b);c.equals(this.j)||(MD(this,c),fC(this.o,c.toString()))}else return this.j?bD(this.j):{};return"";case "tracklist":return this.A?A(pD(this.k.b,b&&b.includeAsr),function(a){return bD(a)}):[];case "displaySettings":return b&&
la(b)&&ZD(this,b),c=Zb(this.g),delete c.fontFamily,c;case "sampleSubtitles":KD(this,!!b)}};function KD(a,b){if(b&&!a.I){a.I=new IC(98,nC);var c=a.I.ya;O(c,a.ua);bd(a.b.app.g.F,c,0);LC(a.I,Y(tu(a),"YTP_SAMPLE_SUBTITLES"))}else!b&&a.I&&(cd(a.I.ya),a.I=null)}f.Bj=function(){var a="reload fontSize track tracklist displaySettings sampleSubtitle".split(" ");this.D.zb()&&a.push("stickyLoading");return a};var $D=/^#(?:[0-9a-f]{3}){1,2}$/i;f=ED.prototype;f.vn=function(a,b){return a&&s(a)&&$D.test(a)?a:b};
f.wn=function(a,b){return ja(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.lC=function(a,b){return a&&s(a)&&Sb(kC,a)?a:b};f.mC=function(a,b){return a&&s(a)&&Sb(jC,a)?a:b};f.nC=function(a,b){return ja(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var aE=null;
function ZD(a,b){if(b)if(Yb(b,"reset"))a.Yp();else{if(!aE){var c={};c.color=a.vn;c.textOpacity=a.wn;c.background=a.vn;c.backgroundOpacity=a.wn;c.windowColor=a.vn;c.windowOpacity=a.wn;c.charEdgeStyle=a.lC;c.fontFamilyOption=a.mC;c.fontSizeIncrement=a.nC;aE=c}var c=aE,d;for(d in c)a.g[d]=c[d](b[d],a.g[d]);a.ve(bE(a.D))}}f=ED.prototype;f.Ja=function(a){return!!a.getVideoData().Mf};f.Hi=function(a){a?(a=this.j,LD(this),this.j=a):(JD(this,this.A),this.j&&MD(this,this.j))};
function JD(a,b){b?(GC(a.O,"ytp-subtitles-button-active"),KA(a.F.element,0)):(GC(a.O,"ytp-subtitles-button"),KA(a.F.element,1))}f.bq=function(){this.k.seek(this.b.getCurrentTime())};f.$g=function(){var a=this.j;return a?{cc:a.D}:null};f.J=function(){this.xb.removeAll();this.L&&(N(this.L),this.L=0);this.P&&(Te(this.P),this.P=0);ED.G.J.call(this)};function cE(a){fu.call(this,a);this.ua="ypc_license_checker";this.hc="ypc_license";this.A=!1;this.o=0;this.k=!1;this.g=NaN;this.C=fq();this.B=a.R().rb+"ypc_license_server";this.j=null}w(cE,fu);
var dE={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 eE(a){return $r(a.getVideoData(),"ypc_license_checker_module")}f=cE.prototype;f.Ja=function(){return eE(this.b)};f.create=function(){cE.G.create.call(this);var a=new Wt(1E3,2147483646,{priority:0});this.Hf(a);this.subscribe("heartbeatparams",this.gD,this);this.subscribe("onStateChange",this.hD,this)};function fE(a){return eE(a)?new cE(a):null}f.Ec=function(){this.A=!0;gE(this,6E4)};f.gD=function(a){this.j=a;gE(this,6E4)};
f.hD=function(a){W(a.state,2)?(this.o=0,this.g&&(N(this.g),this.g=NaN),this.k=!1):(W(a.state,1)||W(a.state,8))&&gE(this,6E4)};function gE(a,b){if(!a.g&&a.A){var c=a.b.getVideoData();if(!Tr(c)||a.j)if(Tr(c)||!bE(a.b.R()))c=b,void 0==c&&(c=a.k?a.j?1E3*a.j.b:6E4:1E3),a.g=L(u(a.tx,a),c)}}
f.tx=function(){var a,b,c,d=this.b.getVideoData();Tr(d)?(b="GET",a={},c=Wd(this.j.url,{request_id:fq()}),d.C&&(c=Wd(c,{vvt:d.C})),d.B&&(c=Wd(c,{access_token:d.B}))):(b="POST",a={video_id:d.videoId,player_id:this.C,request_id:fq(),purchase_id:d.Aw,version:"4",player_time_seconds:this.b.getCurrentTime().toString(),gid:d.nf,ypc_token:d.lf},d.C&&(a.vvt=d.C),d.B&&(a.access_token=d.B),c=this.B);c=Wd(c,{cpn:d.Da});Fi(c,{format:"RAW",method:b,gd:a,timeout:3E4,onSuccess:u(this.oA,this),onError:u(this.nA,this),
jh:u(this.pA,this),withCredentials:!0})};f.oA=function(a){if(this.g){a=a.responseText;var b;t:{b=a;var c=b.match(hE);if(c){if("0"!=c[1]){b=1;break t}b=c[3]}b=b in dE?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?iE(this,"decode"):(this.o=0,this.g=NaN,1==b?(this.k=!1,b="YTP_ERROR_LICENSE",(c=a.match(hE))?(a=parseInt(c[1],10))&&(b=zu(a)):a in dE&&(b=dE[a]),a=We(b),Mv(this.b.app.j,"heartbeat",a,void 0)):(this.k=!0,gE(this)))}};f.nA=function(a){iE(this,"net-"+a.status)};f.pA=function(){iE(this,"timeout")};
function iE(a,b){if(a.g)if(a.log({errorType:b}),a.g=NaN,5<++a.o){var c=We("YTP_ERROR_LICENSE");Mv(a.b.app.j,"heartbeat",c,void 0)}else gE(a)}var hE=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function jE(){this.b=[];this.g=[]}da(jE);var kE=q("yt.player.utils.VideoTagPool.instance_")||jE.getInstance();ba("yt.player.utils.VideoTagPool.instance_",kE,void 0);jE.prototype.j=function(a){if(!(this.b.length>=a)){a-=this.b.length;for(var b=0;b<a;b++){var c=lE(this);this.b.push(c)}}};function lE(a,b){var c=document.createElement("video");sa(c,Ft);R(c,"loadeddata",u(c.vC,c));R(c,"volumechange",u(c.wC,c));ih&&6<=Bq&&R(c,"webkitbeginfullscreen",u(c.play,c));b||Gt(c);a.g.push(c);return c}
jE.prototype.A=function(a){return this.b.length?this.b.pop():lE(this,a)};jE.prototype.o=function(a){a&&C(this.g,a)&&(Lt(a),Rg(a),pb(this.g,a))};jE.prototype.k=function(a){return this.b.length>=(a||1)};jE.prototype.fillPool=jE.prototype.j;jE.prototype.getTag=jE.prototype.A;jE.prototype.releaseTag=jE.prototype.o;jE.prototype.hasTags=jE.prototype.k;var mE={II:"0",KI:"1",mE:"2",EI:"3"};function nE(){X.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.b=NaN;this.hide()}w(nE,X);nE.prototype.g=function(){O(this.element,"html5-bezel-fade");this.b=L(u(this.hide,this),300)};nE.prototype.hide=function(){nE.G.hide.call(this);oE(this)};nE.prototype.setIcon=function(a){Av(this.template,"icon",a)};nE.prototype.show=function(a){oE(this);a&&this.setIcon(a);nE.G.show.call(this)};function oE(a){N(a.b);P(a.element,"html5-bezel-fade")};function pE(a){X.call(this,a);this.T=new Zi;S(this,this.T)}w(pE,X);pE.prototype.subscribe=function(a,b,c){return this.T.subscribe(a,b,c)};pE.prototype.ja=function(a,b,c){return this.T.ja(a,b,c)};pE.prototype.Ib=function(a){return this.T.Ib(a)};pE.prototype.H=function(a,b){return this.T.H.apply(this.T,arguments)};function qE(){this.g=this.b=null}function Y(a,b,c){return We(b,c,void 0)}f=qE.prototype;f.Og=function(a,b){this.b&&this.b.Og(a,b)};f.Bf=function(a,b,c){this.b&&this.b.Bf(a,b,c)};f.jn=function(a){this.b&&this.b.jn(a)};f.Vc=function(){return this.g.Vc()};f.Fb=function(){return this.g.Fb()};function rE(a){X.call(this,["span"]);this.element.innerHTML=a}w(rE,X);function sE(a,b){X.call(this,["span","","{{sparkline_container}}"]);this.j=a;this.g=b;this.b=new rE("");S(this,this.b);Av(this.template,"sparkline_container",this.b)}w(sE,X);function tE(){X.call(this,["div","html5-video-info-panel",["span","html5-video-info-panel-close",{role:"button",title:"close"},"[x]"],["div","html5-video-info-panel-content",["table","html5-video-info-table",["tr","",["th","","Video ID:"],["td","","{{video_id}}"]],["tr","",["th","","Dimensions:"],["td","","{{dimensions}}"]],["tr","",["th","","Resolution:"],["td","","{{resolution}}"]],["tr","",["th","","Volume:"],["td","","{{volume}}"]],["tr","",["th","","Stream Type:"],["td","","{{stream_type}}"]],
["tr",{style:"{{cpn_style}}"},["th","","CPN:"],["td","","{{cpn}}"]],["tr","",["th","","Mime Type:"],["td","","{{mime}}"]],["tr","",["th","","DASH:"],["td","","{{dash}}"]],["tr",{style:"{{drm_style}}"},["th","","Protected:"],["td","","{{drm}}"]],["tr","",["th","","Bandwidth:"],["td","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]]],["table",["html5-video-info-table","html5-video-element-info-table"],["tr","",["th","","Decoded Frames"],["th","","Dropped Frames"],["th","",
"Parsed Frames"],["th","","Presented Frames"]],["tr","",["td","","{{decoded_frames}}"],["td","","{{dropped_frames}}"],["td","","{{parsed_frames}}"],["td","","{{presented_frames}}"]],["tr","",["th","","Video Bytes Decoded"],["th","","Audio Bytes Decoded"],["th","","Painted Frames"],["th","","Paint Delay"]],["tr","",["td","","{{video_bytes_decoded}}"],["td","","{{audio_bytes_decoded}}"],["td","","{{painted_frames}}"],["td","","{{paint_delay}}"]]]]]);this.g=this.template.b["html5-video-info-panel-close"];
this.b=new sE(200,14);S(this,this.b);Av(this.template,"bandwidth_sparkline",this.b)}w(tE,X);
tE.prototype.update=function(a){a.dimensions=a.video_element_width+" x "+a.video_element_height;1<a.device_pixel_ratio&&(a.dimensions+=" * "+a.device_pixel_ratio);a.resolution=a.video_width+" x "+a.video_height;a.volume+="%";a.drm_flavor?(a.drm_style="",a.drm=a.drm_flavor+" / "+a.drm_key_system):(a.drm_style="display:none",a.drm="");var b=a.bandwidth_history;a.bandwidth_kbps=(8*cb(b)/1024).toFixed(0)+" Kbps";for(var c=this.b,d=c.b,e=Math.max.apply(Math,b)||1,g=[],h=0;h<b.length;h++)g.push(h/b.length*
c.j+","+c.g*(1-b[h]/e));b='<svg width="'+c.j+'" height="'+c.g+'" viewbox="0 0 '+c.j+" "+c.g+'"><g><polyline stroke="white" fill="none" points="'+g.join(" ")+'"/></g></svg>';d.element.innerHTML=b;a.cpn_style=a.cpn?"":"display:none";this.template.update(a)};tE.prototype.J=function(){this.g=null;tE.G.J.call(this)};function uE(a){pE.call(this,["div","html5-video-player",{tabindex:-1}]);this.app=a;this.g=this.Wa=null;this.L=new wf(0,0,0,0);this.b=null;this.pa=new wf(0,0,0,0);this.F=this.N=null;this.hb=this.ac=0;this.ca=null;this.U=0;this.za=null;a=a.R();this.xb=cf()||"blazer"==a.ob;this.cb=0;this.A=null;this.j=new qE;this.Vg()}w(uE,pE);f=uE.prototype;
f.Vg=function(){this.app.subscribe("initializingmode",this.bE,this);this.app.subscribe("videoplayerreset",this.dE,this);this.app.subscribe("videodatachange",this.cE,this)};
f.initialize=function(a){this.Wa=Kc(a);this.element.setAttribute("id",this.app.O.attrs.id);qg(this.element,"version",this.app.O.assets.js);this.element.style.display="none";this.X(this.Wa);Ve({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_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_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_LARGE_PLAYER:"\u0411\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c",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_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_SETTINGS:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",YTP_SHARE:"\u043f\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_SMALL_PLAYER:"\u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c",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:"\u0422\u0438\u0442\u0440\u044b",YTP_THEATER_MODE:"\u0428\u0438\u0440\u043e\u043a\u0438\u0439 \u044d\u043a\u0440\u0430\u043d",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_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 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043e\u0444\u043b\u0430\u0439\u043d.",
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\u0438\u0434\u0435\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\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\u044b\u0445 \u043f\u0440\u0430\u0432\u043e\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c. \u041e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u0435 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0435\u0433\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",
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_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_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_MORE_INFO:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435\u2026",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_RESUME_MESSAGE:"\u041f\u043e\u043a\u0430\u0437 \u0432\u0438\u0434\u0435\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u043a\u043b\u0430\u043c\u044b.",
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"});this.Ks()};f.Ks=function(){this.H("templateready")};f.bE=function(){this.pa=new wf(0,0,0,0);this.L=new wf(0,0,0,0)};f.addClass=function(a){ng(this.element,arguments)};f.removeClass=function(a){og(this.element,arguments)};
f.Qg=function(){this.Vl();var a=this.app.R();this.addClass("el-"+a.$);this.addClass("ps-"+a.ob);Q(this.element,"html5-native-controls",a.Qb);Q(this.element,"html5-mobile",a.Pb);a.Pd||this.addClass("html5-chromeless");a.Tb||this.addClass("tag-pool-enabled");this.element.style.display="";a=new vv(["div","html5-video-container"]);S(this,a);a.X(this.element);this.g=a.K();this.N=new vv(["div","html5-video-content"]);S(this,this.N);this.N.X(this.g);a=new vv(["div","html5-video-controls"]);S(this,a);a.X(this.element);
this.F=a.K();this.A=new tE;this.A.X(this.element);My(this,this.A.g,"click",this.om);S(this,this.A);this.xb?this.ca=R(window,"resize",u(this.oh,this)):(a=Zy()?u(this.IB,this):u(this.oh,this),this.ca=Se(a,250))};f.Ej=function(a){a?Jy(this.F):Ky(this.F)};f.IB=function(){this.U&&bz(this.U);this.U=az(u(this.oh,this),0)};f.oh=function(){Jb(this.Fb(),zf(this.L))||this.Vf()};
f.Vf=function(){if(this.b){var a=this.Fb();if(!a.isEmpty()){var b=!Jb(a,zf(this.L)),c,d=vE(this),e=this.Fb();c=1;var g=wE(this),h=!1,k;g?(k=xE(this,e,d,g,!1),c=yE(new G(k.width,k.height))/yE(d),k=new wf(k.left+k.width/2*(1-1/c),k.top,k.width/c,k.height)):k=new wf(0,0,e.width,e.height);yf(this.pa,k)||(this.pa=k,Uf(this.b,zf(k)),Jf(this.b,new F(k.left,k.top)),h=!0);d=xE(this,e,d,g);yf(this.L,d)||(this.L=d,Uf(this.N.K(),d.width,d.height),Jf(this.N.K(),d.left,d.top),h=!0);Cx(this.b,"transform",1==c?"none":
"scaleX("+c+")");c=h;b&&(this.L.width=a.width,this.L.height=a.height,this.Wm(a));(c||b)&&this.H("resize")}}};f.Wm=function(){};f.Fl=function(){};f.cE=function(a,b){this.Aj(b)};f.dE=function(a){a.getVideoData()&&this.Aj(a.getVideoData())};
f.Aj=function(a){this.b&&(this.b.setAttribute("data-youtube-id",a.videoId),jr&&(a.title?this.b.setAttribute("title",a.title):this.b.removeAttribute("title")),a.Bm&&(this.b.poster=a.Bm));var b=Ur(a,"yt:bgcolor");this.g.style.backgroundColor=b?b:"";this.ac=nq(Ur(a,"yt:stretch"));a=Ur(a,"yt:crop");this.hb="fullwidth"==a?Infinity:nq(a)};f.Rg=function(){};f.sm=function(){};f.Vc=function(){return this.element?new G(this.element.clientWidth,this.element.clientHeight):new G(0,0)};
f.Fb=function(){return this.g?new G(this.g.clientWidth,this.g.clientHeight):new G(0,0)};f.ws=function(){return this.Fb()};function RD(a){return a.b?new G(a.b.clientWidth,a.b.clientHeight):new G(0,0)}function vE(a){return a.b?new G(a.b.videoWidth,a.b.videoHeight):new G(0,0)}function zE(a){return xE(a,a.Fb(),vE(a),wE(a),void 0)}
function xE(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.ac||yE(c),a=a.hb||c,d=yE(b),d=a>d?new G(b.width,b.width/(isFinite(a)?a:c)):a<d?new G(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(Kb(e)>Kb(b)?b.width/e.width:b.height/e.height));return new wf((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}function yE(a){var b=16/9;return 1>Math.abs(b*a.height-a.width)||1>Math.abs(b/a.width-a.height)?b:Kb(a)}
function wE(a){return!a.app.R().Qb&&!vE(a).isEmpty()}f.hk=function(){};function at(a){a.A&&(a.A.show(),a.Hs(),Te(a.cb),a.cb=Se(u(a.Hs,a),500))}
f.Hs=function(){var a=Ks(this.app),b=this.app.getVideoData(),c=this.app.ng(),d=this.b,e=this.app.R(),g=b.videoId,h=d.videoWidth,k=d.videoHeight,l=d.clientWidth,d=d.clientHeight,p=window.devicePixelRatio,r=Math.round(this.app.D.volume),t;t:{if(b.ue&&(t=b.ue.match(/url=(https?)/))&&2==t.length){t=t[1];break t}t=""}t=t||e.protocol;var y=this.app;if(y.wa){var D=[];y.wa.M.forEach(u(D.push,D));y=D}else y=[0];c={video_id:g,video_width:h,video_height:k,video_element_width:l,video_element_height:d,device_pixel_ratio:p,
cpn:"",mime:"",dash:"no",drm_flavor:"",drm_key_system:"",volume:r,stream_type:t,bandwidth_history:y,decoded_frames:c.hmewdfc||c.hmemdf||"-",dropped_frames:c.hmewdrop||"-",parsed_frames:c.hmempf||"-",presented_frames:c.hmempresented||"-",video_bytes_decoded:c.hmewvdbc||"-",audio_bytes_decoded:c.hmewadbc||"-",painted_frames:c.hmempainted||"-",paint_delay:c.hmempaintdelay||"-"};b.b&&(g=ko(b.b)?"yes":"no",g+=" ("+b.b.id,b.N&&ko(b.b)&&(g+="/"+b.N.id),c.dash=g+")",c.mime=b.b.mimeType);if(a=a.C?a.C.b:null)c.drm_flavor=
a.g,c.drm_key_system=a.b;bE(e)&&(c.cpn=b.Da);this.A.update(c)};f.om=function(a){a&&a.stopPropagation();this.A&&(Te(this.cb),this.A.hide())};f.Vl=function(){this.j.g=this};f.J=function(){this.ca&&(this.xb?Ng(this.ca):Te(this.ca),this.U&&bz(this.U));this.za&&Ng(this.za);this.om();this.A&&Rg(this.A.g);this.F=this.N=this.b=this.g=this.Wa=null;uE.G.J.call(this)};function AE(a){X.call(this,["div","ytp-dialog-holder","{{content}}"]);this.g=a;this.b=null}w(AE,X);AE.prototype.show=function(){AE.G.show.call(this);BE(this)};function BE(a){if(a.b){a.b.A();var b=a.g.Vc(),c=Wf(a.b.K());a=a.b;b=new F(Math.floor((b.width-c.width)/2),Math.floor((b.height-c.height)/2));a.K().style.marginLeft=b.x+"px";a.K().style.marginTop=b.y+"px"}}AE.prototype.J=function(){this.b=null;AE.G.J.call(this)};function CE(a,b){X.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.b=0;this.o=null}w(CE,X);CE.prototype.j=function(a,b){N(this.b);this.context&&(this.b=Ly(u(this.j,this,a,b),b),a.call(this,new Date-this.o))};CE.prototype.J=function(){N(this.b);this.context=null;CE.G.J.call(this)};function DE(a,b){CE.call(this,a,b);this.A=null;this.B=this.C=this.k=this.g=0;O(this.element,"ytp-tv-static");EE(this,a,b)}w(DE,CE);function FE(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 EE(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.A=d;a.C=FE(b);a.B=FE(c/10);a.context.scale(1.5,1.5)}}DE.prototype.show=function(){DE.G.show.call(this);var a=this.D;this.o=new Date;this.j(a,75)};
DE.prototype.D=function(){var a=1-1/1.5;this.g=(this.g+this.C)%(this.width*a);this.k=(this.k+this.B)%(this.height*a);this.context.drawImage(this.A,-1*this.g,-1*this.k)};DE.prototype.hide=function(){N(this.b);DE.G.hide.call(this)};function GE(){X.call(this,["div",["ytp-error","html5-stop-propagation"],["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.aa="table";this.g=[];if(void 0==$p){var a=document.createElement("canvas");$p=!(!a.getContext||!a.getContext("2d"))}$p&&(this.b=new DE(1,1),this.b.X(this.element,0),S(this,this.b))}w(GE,X);GE.prototype.show=function(){GE.G.show.call(this);HE(this);this.b&&this.b.show()};GE.prototype.hide=function(){GE.G.hide.call(this);this.b&&this.b.hide()};
function HE(a){a.b&&EE(a.b,a.element.clientWidth,a.element.clientHeight)}GE.prototype.J=function(){Ng(this.g);this.g=[];GE.G.J.call(this)};function IE(a,b){var c=["ytp-large-play-button","html5-center-overlay","ytp-scalable-icon-shrink"],d;b&&c.push("ytp-housebrand-large-play-button");a?b?c.push("ytp-housebrand-large-play-button-image"):c.push("ytp-large-play-button-image"):d=b?'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-housebrand-large-play-button-svg" d="M59.6,1.35c0.267,0.5,0.4,1.133,0.4,1.9v53.5c0,0.767-0.133,1.4-0.4,1.9c-0.5,0.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.333-0.433-2.8-1.3C0.15,58.167,0,57.517,0,56.75V3.25c0-0.833,0.167-1.5,0.5-2C1,0.417,1.917,0,3.25,0h53.5C58.15,0,59.1,0.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="21,41.65 21,18 43.7,29.85"/></svg>':
'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-large-play-button-svg" d="M84.15,26.4v6.35c0,2.833-0.15,5.967-0.45,9.4c-0.133,1.7-0.267,3.117-0.4,4.25l-0.15,0.95c-0.167,0.767-0.367,1.517-0.6,2.25c-0.667,2.367-1.533,4.083-2.6,5.15c-1.367,1.4-2.967,2.383-4.8,2.95c-0.633,0.2-1.316,0.333-2.05,0.4c-0.767,0.1-1.3,0.167-1.6,0.2c-4.9,0.367-11.283,0.617-19.15,0.75c-2.434,0.034-4.883,0.067-7.35,0.1h-2.95C38.417,59.117,34.5,59.067,30.3,59c-8.433-0.167-14.05-0.383-16.85-0.65c-0.067-0.033-0.667-0.117-1.8-0.25c-0.9-0.133-1.683-0.283-2.35-0.45c-2.066-0.533-3.783-1.5-5.15-2.9c-1.033-1.067-1.9-2.783-2.6-5.15C1.317,48.867,1.133,48.117,1,47.35L0.8,46.4c-0.133-1.133-0.267-2.55-0.4-4.25C0.133,38.717,0,35.583,0,32.75V26.4c0-2.833,0.133-5.95,0.4-9.35l0.4-4.25c0.167-0.966,0.417-2.05,0.75-3.25c0.7-2.333,1.567-4.033,2.6-5.1c1.367-1.434,2.967-2.434,4.8-3c0.633-0.167,1.333-0.3,2.1-0.4c0.4-0.066,0.917-0.133,1.55-0.2c4.9-0.333,11.283-0.567,19.15-0.7C35.65,0.05,39.083,0,42.05,0L45,0.05c2.467,0,4.933,0.034,7.4,0.1c7.833,0.133,14.2,0.367,19.1,0.7c0.3,0.033,0.833,0.1,1.6,0.2c0.733,0.1,1.417,0.233,2.05,0.4c1.833,0.566,3.434,1.566,4.8,3c1.066,1.066,1.933,2.767,2.6,5.1c0.367,1.2,0.617,2.284,0.75,3.25l0.4,4.25C84,20.45,84.15,23.567,84.15,26.4z M33.3,41.4L56,29.6L33.3,17.75V41.4z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="33.3,41.4 33.3,17.75 56,29.6"/></svg>';
X.call(this,["div",c]);d&&(this.element.innerHTML=d)}w(IE,X);function JE(a){this.g=a||30;CE.call(this,this.g,this.g);this.A=this.width/2;this.k=this.height/2;this.B=0;this.context.translate(this.A,this.k);this.hide()}w(JE,CE);JE.prototype.show=function(){JE.G.show.call(this);var a=this.C;this.o=new Date;this.j(a,125)};
JE.prototype.C=function(){this.context.clearRect(-this.A,-this.k,this.width,this.height);for(var a=this.B++%8,b=0;8>b;b++){var c=2*Math.PI/8*(a+b),d=11/30*this.g,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.g,0,2*Math.PI,!1);this.context.fillStyle="rgba(189, 189, 189, "+d+")";this.context.fill()}};JE.prototype.hide=function(){N(this.b);JE.G.hide.call(this)};function KE(a){X.call(this,["div","ytp-thumbnail"]);this.b=a}w(KE,X);
KE.prototype.show=function(a){if(a||this.element.childNodes.length){if(a){ad(this.element);var b=this.element,c=this.b;if(null!=Bx("backgroundSize")){if(d=document.createElement("div"),b=jB(b,a,c))d.style.backgroundImage="url("+b+")"}else{var d=document.createElement("img");d.src=jB(b,a,c);a=d;b.clientWidth/b.clientHeight<iB?(a.style.height="100%",a.style.width="auto"):(a.style.height="auto",a.style.width="100%")}O(d,"video-thumbnail");this.element.appendChild(d)}KE.G.show.call(this)}};function LE(a,b,c,d,e,g,h){var k,l;if(k=c.offsetParent){var p="HTML"==k.tagName||"BODY"==k.tagName;p&&"static"==If(k,"position")||(l=Pf(k),p||(p=(p=Qf(k))&&pc?-k.scrollLeft:!p||oc&&zc("8")||"visible"==If(k,"overflowX")?k.scrollLeft:k.scrollWidth-k.clientWidth-k.scrollLeft,l=Ib(l,new F(p,k.scrollTop))))}k=l||new F;l=Zf(a);if(p=Of(a)){var r=xf(p),p=Math.max(l.left,r.left),t=Math.min(l.left+l.width,r.left+r.width);if(p<=t){var y=Math.max(l.top,r.top),r=Math.min(l.top+l.height,r.top+r.height);y<=r&&(l.left=
p,l.top=y,l.width=t-p,l.height=r-y)}}p=Hc(a);y=Hc(c);if(p.b!=y.b){var t=p.b.body,y=ud(y),r=new F(0,0),D=Tc(Jc(t)),M=t;do{var ea=D==y?Pf(M):Rf(M);r.x+=ea.x;r.y+=ea.y}while(D&&D!=y&&(M=D.frameElement)&&(D=D.parent));t=Ib(r,Pf(t));oc&&!td(p)&&(t=Ib(t,vd(p)));l.left+=t.x;l.top+=t.y}a=ME(a,b);b=new F(a&2?l.left+l.width:l.left,a&1?l.top+l.height:l.top);b=Ib(b,k);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var jb;h&&(jb=Of(c))&&(jb.top-=k.y,jb.right-=k.x,jb.bottom-=k.y,jb.left-=k.x);return NE(b,c,d,g,jb,
h,void 0)}
function NE(a,b,c,d,e,g,h){a=a.clone();var k=0,l=ME(b,c);c=Xf(b);h=h?h.clone():c.clone();if(d||0!=l)l&2?a.x-=h.width+(d?d.right:0):d&&(a.x+=d.left),l&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(g&&(e?(k=a,d=0,65==(g&65)&&(k.x<e.left||k.x>=e.right)&&(g&=-2),132==(g&132)&&(k.y<e.top||k.y>=e.bottom)&&(g&=-5),k.x<e.left&&g&1&&(k.x=e.left,d|=1),k.x<e.left&&k.x+h.width>e.right&&g&16&&(h.width=Math.max(h.width-(k.x+h.width-e.right),0),d|=4),k.x+h.width>e.right&&g&1&&(k.x=Math.max(e.right-h.width,e.left),
d|=1),g&2&&(d=d|(k.x<e.left?16:0)|(k.x+h.width>e.right?32:0)),k.y<e.top&&g&4&&(k.y=e.top,d|=2),k.y<=e.top&&k.y+h.height<e.bottom&&g&32&&(h.height=Math.max(h.height-(e.top-k.y),0),k.y=e.top,d|=8),k.y>=e.top&&k.y+h.height>e.bottom&&g&32&&(h.height=Math.max(h.height-(k.y+h.height-e.bottom),0),d|=8),k.y+h.height>e.bottom&&g&4&&(k.y=Math.max(e.bottom-h.height,e.top),d|=2),g&8&&(d=d|(k.y<e.top?64:0)|(k.y+h.height>e.bottom?128:0)),k=d):k=256,k&496))return k;Jf(b,a);Jb(c,h)||(a=Jc(b),e=td(Hc(a)),!oc||e&&
zc("8")?(b=b.style,pc?b.MozBoxSizing="border-box":qc?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(h.width,0)+"px",b.height=Math.max(h.height,0)+"px"):(a=b.style,e?(oc?(e=dg(b,"paddingLeft"),c=dg(b,"paddingRight"),g=dg(b,"paddingTop"),d=dg(b,"paddingBottom"),e=new vf(g,c,d,e)):(e=Hf(b,"paddingLeft"),c=Hf(b,"paddingRight"),g=Hf(b,"paddingTop"),d=Hf(b,"paddingBottom"),e=new vf(parseFloat(g),parseFloat(c),parseFloat(d),parseFloat(e))),b=gg(b),a.pixelWidth=h.width-b.left-e.left-
e.right-b.right,a.pixelHeight=h.height-b.top-e.top-e.bottom-b.bottom):(a.pixelWidth=h.width,a.pixelHeight=h.height)));return k}function ME(a,b){return(b&4&&Qf(a)?b^2:b)&-5};var OE={},PE="ontouchstart"in document;function QE(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return rd(c,function(a){return mg(a,b)},!0,d)}
function RE(a){var b="mouseover"==a.type&&"mouseenter"in OE||"mouseout"==a.type&&"mouseleave"in OE,c=a.type in OE||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=OE[b],d;for(d in c.$b){var e=QE(b,d,a.target);e&&!rd(a.relatedTarget,function(a){return a==e},!0)&&c.H(d,e,b,a)}}if(b=OE[a.type])for(d in b.$b)(e=QE(a.type,d,a.target))&&b.H(d,e,a.type,a)}}R(document,"blur",RE,!0);R(document,"change",RE,!0);R(document,"click",RE);R(document,"focus",RE,!0);
R(document,"mouseover",RE);R(document,"mouseout",RE);R(document,"mousedown",RE);R(document,"keydown",RE);R(document,"keyup",RE);R(document,"keypress",RE);R(document,"cut",RE);R(document,"paste",RE);PE&&(R(document,"touchstart",RE),R(document,"touchend",RE),R(document,"touchcancel",RE));function SE(){this.o={};this.A=[]}SE.prototype.md=function(a){return sd(a,Z(this))};function Z(a,b){return"yt-uix"+(a.Ld?"-"+a.Ld:"")+(b?"-"+b:"")}function TE(a,b,c){b=Rh(b,c,a);a.A.push(b)}function UE(a,b,c,d){d=Z(a,d);var e=u(c,a);b in OE||(OE[b]=new Lh);OE[b].subscribe(d,e);a.o[c]=e}SE.prototype.b=function(a,b,c){var d=this.Y(a,b);if(d&&(d=q(d))){var e=wb(arguments,2);vb(e,0,0,a);d.apply(null,e)}};SE.prototype.Y=function(a,b){return sg(a,b)};function VE(a,b){qg(a,"tooltip-text",b)}
SE.prototype.removeData=function(a,b){tg(a,b)};function WE(){SE.call(this)}w(WE,SE);da(WE);f=WE.prototype;f.Ld="tooltip";f.Mj=0;f.register=function(){UE(this,"mouseover",this.ct);UE(this,"mouseout",this.Kn);UE(this,"click",this.Kn);UE(this,"touchstart",this.OD);UE(this,"touchend",this.ft);UE(this,"touchcancel",this.ft)};
f.ct=function(a){if(!(this.Mj&&1E3>v()-this.Mj)){var b=parseInt(this.Y(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),N(b));var b=u(function(){XE(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(this.Y(a,"tooltip-show-delay"),10)||0,b=L(b,c);qg(a,"tooltip-show-timer",b.toString());a.title&&(VE(a,YE(this,a)),a.title="")}};
f.Kn=function(a){var b=parseInt(this.Y(a,"tooltip-show-timer"),10);b&&(N(b),this.removeData(a,"tooltip-show-timer"));b=u(function(){ZE(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=L(b,50);qg(a,"tooltip-hide-timer",b.toString());if(b=this.Y(a,"tooltip-text"))a.title=b};f.OD=function(a,b,c){this.Mj=0;a=QE(b,Z(this),c.changedTouches[0].target);this.ct(a)};f.ft=function(a,b,c){this.Mj=v();a=QE(b,Z(this),c.changedTouches[0].target);this.Kn(a)};
function $E(a,b,c){VE(b,c);a=a.Y(b,"content-id");if(a=Kc(a))a.innerHTML=c}function YE(a,b){return a.Y(b,"tooltip-text")||b.title}
function XE(a,b){if(b){var c=YE(a,b);if(c){var d=Kc(aF(a,b));if(!d){d=document.createElement("div");d.id=aF(a,b);d.className=Z(a,"tip");var e=document.createElement("div");e.className=Z(a,"tip-body");var g=document.createElement("div");g.className=Z(a,"tip-arrow");var h=document.createElement("div");h.className=Z(a,"tip-content");var k=bF(a,b),l=aF(a,b,"content");h.id=l;qg(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Ug()||document.body).appendChild(d);
$E(a,b,c);(c=parseInt(a.Y(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",O(h,Z(a,"normal-wrap")));h=mg(b,Z(a,"reverse"));cF(a,b,d,e,k,h)||cF(a,b,d,e,k,!h);var p=Z(a,"tip-visible");L(function(){O(d,p)},0)}}}}
function cF(a,b,c,d,e,g){Q(c,Z(a,"tip-reverse"),g);var h=0;g&&(h=1);var k=Xf(b);g=new F((k.width-10)/2,g?k.height:0);var l=Pf(b);NE(new F(l.x+g.x,l.y+g.y),c,h);var l=Pc(window),p=Tf(c);c=Xf(d);var r=Math.floor(c.width/2),h=!!(l.height<p.y+k.height),k=!!(p.y<k.height);g=!!(p.x<r);l=!!(l.width<p.x+r);p=(c.width+3)/-2- -5;a=a.Y(b,"force-tooltip-direction");if("left"==a||g)p=-5;else if("right"==a||l)p=20-c.width-3;a=Math.floor(p)+"px";d.style.left=a;e&&(e.style.left=a,e.style.height=c.height+"px",e.style.width=
c.width+"px");return!(h||k)}function ZE(a,b){if(b){var c=Kc(aF(a,b));c&&(dF(c),cd(c),a.removeData(b,"content-id"))}}function aF(a,b,c){a=Z(a)+wg(b);c&&(a+="-"+c);return a}function bF(a,b){var c=null;ic&&mg(b,Z(a,"masked"))&&((c=Kc("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),yx(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=Z(a,"tip-mask")));return c}
function dF(a){var b=Kc("yt-uix-tooltip-shared-mask"),c=b&&rd(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),zx(b),document.body.appendChild(b))};function eF(a,b){og(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&O(a,b);ZE(WE.getInstance(),a)};function fF(a){DA.call(this);this.j=null;this.g=new YB(a,u(this.k,this),u(this.B,this));S(this,this.g);this.b=Y(0,"YTP_AUDIO_TRACK_TITLE");this.element=new RB(a,void 0,this.g);S(this,this.element);TB(this.element,100);this.priority=0;this.o=!0}w(fF,DA);function gF(a,b){a.j!=b&&(a.j=b,aC(a.g,b),a.element.k(a.k(b)))}fF.prototype.k=function(a){return a.name};fF.prototype.B=function(a){this.element.j();gF(this,a);this.element.wb("change")};function hF(a){this.bb=a;this.ef=0;this.Ka=new Rv(this);iF(this,"focusin","focusout",1,this.bb);iF(this,"mouseover","mouseout",2,this.bb);iF(this,"mousedown","mouseup",4,document)}function iF(a,b,c,d,e){function g(){this.ef|=d;Q(this.bb,"ytp-block-autohide",!!this.ef);this.Ka.Fa(h);h=this.Ka.listen(e,c,k)}var h,k;k=function(){this.ef&=~d;Q(this.bb,"ytp-block-autohide",!!this.ef);this.Ka.Fa(h);h=this.Ka.listen(this.bb,b,g)};h=a.Ka.listen(a.bb,b,g)}
hF.prototype.J=function(){this.ef&&P(this.bb,"ytp-block-autohide");this.Ka.removeAll();hF.G.J.call(this)};function jF(a){EA.call(this,a);HA(this,6900);kF(this)}w(jF,EA);function kF(a){FA(a,"ytp-button-fullscreen-enter");var b=Y(0,"YTP_FULLSCREEN");GA(a,b);a.g=b};function lF(a,b){X.call(this,["div",["ytp-menu-container","html5-stop-propagation"],{tabindex:-1},["div","ytp-menu",["div","ytp-menu-content","{{content}}"]]]);this.k=a;this.j=b||!1;this.b=[];this.g=[];this.stopPropagation("click")}w(lF,X);lF.prototype.add=function(a){for(var b=this.b.length,c=0;c<this.b.length;c++){if(this.b[c]==a)return;if(c<b&&this.b[c].priority<a.priority){b=c;break}}vb(this.b,b,0,a);mF(this)};lF.prototype.remove=function(a){pb(this.b,a);mF(this)};
function mF(a){Kh(a.g);a.g=[];var b,c,d=[],e=1==a.b.length||a.j;e&&a.b.length&&(c=new X(["div","ytp-menu-row",["div","ytp-menu-cell",a.b[0].b]]),d.push(c));var g=!1;for(b=0;b<a.b.length;b++)g=g||a.b[b].C;var h=g?["ytp-menu-cell","ytp-menu-cell-span"]:"ytp-menu-cell";for(b=0;b<a.b.length;b++){var k=a.b[b];c=k.o;c=e?!g||c?new X(["div","ytp-menu-row",["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.o?new X(["div","ytp-menu-row",
["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.oa(k.element);c.oa(nF(a,k),"more");d.push(c)}a.oa(d)}function nF(a,b){if(b.C){var c=Y(0,"YTP_OPTIONS"),d=new EA(a.k,"ytp-menu-more-options",c);HA(d,2700);d.oa(c);a.g.push(d);d.listen("click",b.M,b);return d}return null}lF.prototype.J=function(){this.b=[];mF(this);lF.G.J.call(this)};function oF(a){EA.call(this,a);HA(this,6E3);pF(this)}w(oF,EA);function pF(a){FA(a,"ytp-button-play");var b=Y(0,"YTP_PLAY");GA(a,b)};function qF(a){X.call(this,["div","ytp-playlist-controls","{{content}}"]);this.g=new EA(a,"ytp-button-prev",Y(0,"YTP_PREVIOUS"),Y(0,"YTP_PREVIOUS"));S(this,this.g);HA(this.g,6050);this.b=new EA(a,"ytp-button-next",Y(0,"YTP_NEXT"),Y(0,"YTP_NEXT"));S(this,this.b);HA(this.b,6051);this.oa([this.g,this.b])}w(qF,X);function rF(a,b){Zi.call(this);this.g=!!b;this.bb=a;this.Ka=new Rv(this);this.b=this.j=null;sF(this)}w(rF,Zi);function sF(a){a.b=null;a.j=null;a.Ka.listen(a.bb,tF("over"),a.pB);a.Ka.listen(a.bb,"touchstart",a.qB)}f=rF.prototype;f.pB=function(a){this.Ka.removeAll();this.Ka.listen(this.bb,tF("move"),this.ks);this.Ka.listen(this.bb,tF("out"),this.ls);this.g&&this.Ka.listen(this.bb,tF("down"),this.is);this.H("hoverstart",Hg(a),Ig(a),a.target);this.H("hovermove",Hg(a),Ig(a),a.target)};
f.ks=function(a){this.b&&Hg(this.b)==Hg(a)&&Ig(this.b)==Ig(a)&&this.b.relatedTarget==a.target||this.H("hovermove",Hg(a),Ig(a),a.target);this.b=null};f.ls=function(a){a.relatedTarget&&id(this.bb,a.relatedTarget)?(this.b=a,this.H("hovermove",Hg(a),Ig(a),a.relatedTarget)):(this.Ka.removeAll(),sF(this),this.H("hoverend",Hg(a),Ig(a),a.relatedTarget))};
f.is=function(a){ja(a.button)&&0!=a.button||(a.preventDefault(),this.Ka.removeAll(),this.Ka.listen(document,tF("move"),this.eD),this.Ka.listen(document,tF("up"),this.fD),this.H("dragstart",Hg(a),Ig(a),a.target),this.H("dragmove",Hg(a),Ig(a),a.target))};f.eD=function(a){this.H("hovermove",Hg(a),Ig(a),a.target);this.H("dragmove",Hg(a),Ig(a),a.target)};
f.fD=function(a){this.Ka.removeAll();a.target&&id(this.bb,a.target)?(this.Ka.listen(this.bb,tF("move"),this.ks),this.Ka.listen(this.bb,tF("out"),this.ls),this.Ka.listen(this.bb,tF("down"),this.is),this.H("dragend",Hg(a),Ig(a),a.target)):(sF(this),this.H("dragend",Hg(a),Ig(a),a.target),this.H("hoverend",Hg(a),Ig(a),a.target))};
f.qB=function(a){var b=a.changedTouches[0];b&&(this.Ka.removeAll(),this.Ka.listen(this.bb,"touchmove",this.GB),this.Ka.listen(this.bb,"touchend",this.Rr),this.Ka.listen(this.bb,"touchcancel",this.Rr),this.j=b.identifier,this.H("hoverstart",b.pageX,b.pageY,a.target),this.H("hovermove",b.pageX,b.pageY,a.target),this.g&&(this.H("dragstart",b.pageX,b.pageY,a.target),this.H("dragmove",b.pageX,b.pageY,a.target)))};
f.GB=function(a){var b=uF(this,a);b&&(a.preventDefault(),this.H("hovermove",b.pageX,b.pageY,a.target),this.g&&this.H("dragmove",b.pageX,b.pageY,a.target))};f.Rr=function(a){var b=uF(this,a);b&&(a.preventDefault(),this.Ka.removeAll(),sF(this),this.g&&this.H("dragend",b.pageX,b.pageY,a.target),this.H("hoverend",b.pageX,b.pageY,a.target))};function uF(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.j)return d}return null}
function tF(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.J=function(){this.Ka.removeAll();rF.G.J.call(this)};function vF(a,b,c,d,e,g,h,k){this.b=a;this.B=b;this.j=c;this.o=d;this.k=e;this.A=g;this.g=h;this.C=k}vF.prototype.clone=function(){return new vF(this.b,this.B,this.j,this.o,this.k,this.A,this.g,this.C)};vF.prototype.equals=function(a){return this.b==a.b&&this.B==a.B&&this.j==a.j&&this.o==a.o&&this.k==a.k&&this.A==a.A&&this.g==a.g&&this.C==a.C};function wF(a,b){if(0==b)return a.b;if(1==b)return a.g;var c=Hb(a.b,a.j,b),d=Hb(a.j,a.k,b),e=Hb(a.k,a.g,b),c=Hb(c,d,b),d=Hb(d,e,b);return Hb(c,d,b)}
function xF(a,b){var c=(b-a.b)/(a.g-a.b);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,g=0;8>g;g++){var h=wF(a,c),k=(wF(a,c+1E-6)-h)/1E-6;if(1E-6>Math.abs(h-b))return c;if(1E-6>Math.abs(k))break;else h<b?d=c:e=c,c-=(h-b)/k}for(g=0;1E-6<Math.abs(h-b)&&8>g;g++)h<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),h=wF(a,c);return c};var yF=new function(){this.b=new vF(0,0,0,0,.58,1,1,1)};function zF(a,b){this.g=a;this.b=b}function AF(a){return a.b-a.g}function BF(a,b){return a.g+b*AF(a)}function CF(a,b){return AF(a)?Gb((b-a.g)/AF(a),0,1):Infinity};function DF(a,b,c,d){var e=Math.min(c/(b.uq/b.dj),d/(b.tq/b.rows)),g=b.uq*e,e=b.tq*e,g=Math.floor(g/b.dj)*b.dj,e=Math.floor(e/b.rows)*b.rows,h=g/b.dj,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.hy*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 EF(a){pE.call(this,["div","html5-storyboard",["div","html5-storyboard-filmstrip",["img","html5-storyboard-thumbnail",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]],["div","html5-storyboard-lens",["img","html5-storyboard-lens-thumbnail",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}],["span","html5-storyboard-lens-timestamp"]]]);this.B=!1;this.o=new Ok(this.cv,250,this);S(this,this.o);this.Xd=a;this.b=this.template.b["html5-storyboard-filmstrip"];
this.A=this.template.b["html5-storyboard-lens"];this.C=this.template.b["html5-storyboard-lens-thumbnail"];this.D=this.template.b["html5-storyboard-lens-timestamp"];this.j=this.template.b["html5-storyboard-thumbnail"];cd(this.j);this.g=0;this.k=new zF(0,0)}w(EF,pE);f=EF.prototype;f.jq=!1;f.Xd=0;f.El=0;f.Qk=0;f.Lq=10;f.Ub=0;f.Vi=0;f.pm=0;f.Bc=null;f.Ke=null;f.disable=function(){this.jq=!0};
f.Mx=function(){for(var a=this.b.cloneNode(!0),b=this.Bc.b[0].g,c,d,e=0;e<b;e++)d=this.j.cloneNode(!1),c=Qq(this.Ke,e,this.Ub),DF(d,c,this.Ub,this.Vi),a.appendChild(d);dd(a,this.b);this.b=a};f.Mp=function(a,b){ag(this.b,!1);for(var c,d,e=a;e<=b;e++)if(d=this.b.children[e])c=Qq(this.Ke,e,this.Ub),DF(d,c,this.Ub,this.Vi);ag(this.b,!0)};function FF(a,b){if(b!=a.pm){var c=Qq(a.Ke,b,2*a.Ub),d=Math.round(2*a.Ub),e=Math.round(2*a.Vi);DF(a.C,c,d,e);a.pm=b}}
f.cv=function(){for(var a=this.El,b=Math.max(Math.floor(a/this.Ub),0),a=Math.min(Math.ceil((a+this.Xd)/this.Ub),this.Bc.b[0].g-1);b<=a;b++){for(var c=this.Ke,d=b,e=Rp(c.b,2*this.Ub),g=void 0,h=void 0;0<=e;e--)if(g=c.b.b[e],h=Math.floor(d/(g.b*g.j)),!g.k[h]){var g=c,k=e,l=k+"-"+h;g.o[l]||(g.o[l]=!0,Nq(g.j,k,{Cp:k,Dp:h}))}Rq(c)}};
function GF(a,b){a.Lq=Math.min(10,Math.ceil(a.Xd/72));a.Ub=Math.floor(a.Xd/a.Lq);a.Vi=.555*a.Ub;a.Qk=a.Ub*a.Bc.b[0].g;Vf(a.b,a.Qk);var c=Math.round(2*a.Ub),d=.555*c+12;Uf(a.A,c,d);Jf(a.A,(a.Xd-c)/2);c=d+20;a.K().style.height=Kf(c,!0);b&&(a.Mp(0,a.Bc.b[0].g-1),FF(a,a.pm),a.B=!0)}f.show=function(){this.Bc&&EF.G.show.call(this)};f.J=function(){this.Ke=this.Bc=null;bz(this.g);EF.G.J.call(this)};function HF(a,b,c,d){this.width=b;this.g=c;this.A=d;this.b=b-c-d;this.o=Gb(a-c,0,this.b);this.j=this.o+c;this.k=this.o/this.b};function IF(){X.call(this,["div","ytp-progress-tooltip",["div","ytp-progress-tooltip-thumbnail-container",["div","ytp-progress-tooltip-thumbnail"]],["div","ytp-progress-tooltip-text-container",["div","ytp-progress-tooltip-text","{{text}}"]],["div","ytp-progress-tooltip-timestamp-container",["div","ytp-progress-tooltip-timestamp","{{timestamp}}"]],["div","ytp-progress-tooltip-arrow"]]);this.j=this.template.b["ytp-progress-tooltip-arrow"];this.b=-1;this.aa="";this.g=new zF(0,0);this.hide()}w(IF,X);
f=IF.prototype;f.Ki=!1;f.If=null;f.Xg=null;f.disable=function(){this.Ki=!0};f.show=function(){this.Ki||IF.G.show.call(this)};f.reset=function(){P(this.K(),"with-thumbnail");this.Xg=this.If=null};f.Nx=function(a,b){(a<=this.b||this.b<=b)&&JF(this)};function JF(a){var b=Qq(a.Xg,a.b,108);DF(a.template.b["ytp-progress-tooltip-thumbnail"],b,108,60)}f.J=function(){this.j=this.Xg=this.If=null;IF.G.J.call(this)};function KF(a,b){var c=["div","ytp-progress-bar-container",["div",["html5-progress-bar","html5-stop-propagation","ytp-force-transform"],["div","ytp-progress-bar-padding"],["div","ytp-progress-list",["div","ytp-unloaded-progress"],["div","ytp-play-progress"],["div","ytp-load-progress"],["div","ytp-spacecast-load-progress"],["div","ytp-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","html5-scrubber-button"]],["div","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div",["ytp-clip-start","html5-clip-marker","yt-uix-tooltip"],{title:Y(0,"YTP_TOOLTIP_CLIP_MARKER")}],["div",["ytp-clip-end","html5-clip-marker","yt-uix-tooltip"],{title:Y(0,"YTP_TOOLTIP_CLIP_MARKER")}],["div","html5-progress-screenreader",{"aria-live":"assertive"}]];pE.call(this,c);this.k=a.Vc().width;this.C=1;this.M=this.U=this.A=
this.gb=this.I=0;this.xa=this.template.b["html5-ad-progress-list"];this.ac=this.template.b["ytp-marker-progress-list"];this.fb=this.template.b["ytp-marker-crenellation-list"];this.F={};this.V={};this.N=Infinity;this.ka=this.template.b["ytp-clip-end"];this.za=new rF(this.ka,!0);S(this,this.za);this.za.subscribe("hoverstart",this.no,this);this.za.subscribe("hoverend",this.lo,this);My(this,this.ka,"click",this.jk);this.wa=this.template.b["ytp-clip-end-exclude"];this.cb=this.template.b["ytp-clip-start-exclude"];
this.O=0;this.la=this.template.b["ytp-clip-start"];this.Ba=new rF(this.la,!0);S(this,this.Ba);this.Ba.subscribe("hoverstart",this.no,this);this.Ba.subscribe("hoverend",this.lo,this);My(this,this.la,"click",this.jk);this.j=null;this.Ra=this.template.b["ytp-unloaded-progress"];this.Ha=this.template.b["ytp-load-progress"];this.D=0;this.Wa=this.template.b["ytp-play-progress"];this.B=0;this.L=this.template.b["html5-progress-bar"];this.o=null;this.Md=new hF(this.K());S(this,this.Md);this.hb=this.template.b["html5-progress-screenreader"];
this.g=null;this.pa=this.template.b["html5-scrubber-button"];this.bc=this.template.b["ytp-scrubber-pull-indicator"];this.nb=0;this.Ca=!1;this.Ia=new F;this.b=new zF(0,0);this.xb=!1;this.ca=b;LF(this)}w(KF,pE);f=KF.prototype;f.Px=function(){this.g&&this.g.show()};f.Rx=function(a,b,c){var d=Pf(this.K()),e=MF(this).b,g=c?c.getAttribute("data-tooltip"):null;g&&(a=CF(this.b,Number(c.getAttribute("data-position")))*e+Pf(this.L).x);this.Ia.x=a-d.x;this.Ia.y=b-d.y;g?NF(this,g):NF(this)};
function NF(a,b){if(a.g){var c=a.xb?a.b.b:0,d=MF(a),e=a.g;if(!e.Ki){var g=50;e.If?(g=108,b&&(g*=2)):b&&(g=108);e.K().style.padding="2px";e.K().style.width=g+"px";g=g/2+2;g=(new HF(d.j,d.width,g,g)).j-g;e.K().style.left=g+"px";e.j.style.left=Gb(d.j,0,d.width)-g-5+"px";c=Cv(BF(e.g,d.k)-c);e.oa(c,"timestamp");e.If&&(d=Qp(e.If,d.k),d!=e.b&&(e.b=d,JF(e)));b?(O(e.K(),"with-text"),e.oa(b,"text")):P(e.K(),"with-text")}}}f.Qx=function(){this.g&&this.g.hide()};
f.Ox=function(a,b){var c=OF(this);this.nb=c.g-MF(this).k*(c.g+c.A);this.g&&this.j&&(this.g.hide(),this.j.show());this.A&&(Te(this.A),this.A=0);this.gb=b;this.Ca=!0;this.H("beginseeking")};f.Sx=function(){this.U=0;P(this.K(),"ytp-pull-ui");P(this.K(),"ytp-pulling");if(0<this.I){var a=v(),b=this.I,c=MF(this).j;this.A&&Te(this.A);this.A=Ly(u(this.Co,this,a,b,c),0)}this.g&&this.j&&(this.g.show(),this.j.hide());this.Ca=!1;this.H("endseeking")};
f.Co=function(a,b,c){var d,e=(v()-a)/200;d=yF.b;e=xF(d,e);if(0==e)d=d.B;else if(1==e)d=d.C;else{var g=Hb(d.B,d.o,e),h=Hb(d.o,d.A,e);d=Hb(d.A,d.C,e);g=Hb(g,h,e);h=Hb(h,d,e);d=Hb(g,h,e)}e=c+d*(this.B*this.k-c);if(0>d||1<d)d=1;PF(this,(1-d)*b,e,this.B);this.A=1>d?Ly(u(this.Co,this,a,b,c),0):0};function PF(a,b,c,d){b=Gb(b,0,40);a.I=b;var e=a.C,g=Math.max(AF(a.b)/a.k,1);a.C=b/40*(g-1)+1;b=a.k*a.C;a.M=Gb(d*b-c,0,b-a.k);e!=a.C&&LF(a)}
f.Tx=function(a,b){var c=!1,d=!1,e=MF(this);3600<=AF(this.b)&&(PF(this,this.gb-b-10,e.j,e.k),d=!0,c=4<this.I,e=MF(this));Q(this.K(),"ytp-pull-ui",d);c&&O(this.K(),"ytp-pulling");c=0;e.g&&0>=e.j?c=-1:e.A&&e.j>=e.width&&(c=1);!this.A||c&&c==this.U||N(this.A);c&&(this.A=Ly(u(this.wp,this,v(),this.M),0));this.U=c;this.H("seekto",BF(this.b,e.k),!1)};
f.wp=function(a,b){if(this.U){var c=this.k*(this.C-1);this.M=Gb(b+this.U*(v()-a)*.3,0,c);LF(this);this.H("seekto",BF(this.b,MF(this).k),!1);0<this.M&&this.M<c&&(this.A=Ly(u(this.wp,this,a,b),0))}};
function LF(a){var b=MF(a),c=ed(a.fb),d=0;if(8<a.I)for(var e=(-b.g+b.width)/b.b*(AF(a.b)/60),g=Math.ceil(-b.g/b.b*(AF(a.b)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),h.style.width="1px",a.fb.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/AF(a.b)*b.b+"px"}for(e=c.length-1;e>=d;e--)cd(c[e]);c=(-b.g+b.width)/b.b;a.oa(Cv(BF(a.b,-b.g/b.b)),"boundTimeLeft");a.oa(Cv(BF(a.b,c)),"boundTimeRight");
a.L.style.width=b.b+"px";a.K().style.height=a.I+(a.ca?20:8)+"px";b=b.g;Cx(a.L,"transform",b?"translatex("+b+"px)":"");a.pa.style.height=a.I+(a.ca?12:6)+"px";for(var k in a.F)QF(a,a.F[k],a.V[k]);RF(a);SF(a,a.B,a.D)}function MF(a){var b=a.Ia.x;if(a.Ca)var c=a.ca?32:16,b=(b+a.nb-c/2)/(a.k-c)*a.k;c=a.k*a.C;b=Gb(b,0,a.k);return new HF(b,a.k,-a.M,-(c-a.M-a.k))}function OF(a){var b=a.ca?32:16,c=a.k*a.C;return new HF(a.B*(c-b)+b/2,c,b/2,b/2)}
function SF(a,b,c){if(b<a.O||b>a.N)a.jk();else{a.B=b;a.D=Math.max(a.B,c);var d=CF(a.b,a.O),e=CF(a.b,a.N),g=Gb(b,d,e);c=Gb(c,d,e);var h=g;g<e&&(h=a.k*a.C,h=(g*h-g)/h);a.Wa.style.left=Dv(d)+"%";Cx(a.Wa,"transform","scalex("+(h-d)+")");Cx(a.pa,"transformOrigin",Dv(b)+"%");b=OF(a).j+"px";a.pa.style.left=b;a.bc.style.left=b;a.Ha.style.left=Dv(d)+"%";Cx(a.Ha,"transform","scalex("+(c-d)+")");a.Ra.style.left=Dv(d)+"%";Cx(a.Ra,"transform","scalex("+(e-d)+")")}}
function RF(a){var b=a.O>a.b.g,c=0<a.b.b&&a.N<a.b.b;Q(a.K(),"ytp-clip-start-enabled",b);Q(a.K(),"ytp-clip-end-enabled",c);b=b?CF(a.b,a.O):0;c=c?CF(a.b,a.N):1;a.la.style.left=Dv(b)+"%";a.ka.style.left=Dv(c)+"%";a.cb.style.width=Dv(b)+"%";a.wa.style.left=Dv(c)+"%";a.wa.style.width=Dv(1-c)+"%"}f.no=function(){O(this.K(),"ytp-clip-hover")};f.lo=function(){P(this.K(),"ytp-clip-hover")};f.jk=function(){this.O=0;this.N=Infinity;RF(this);SF(this,this.B,this.D)};
function QF(a,b,c){var d=MF(a).b,e=CF(a.b,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=Xt(b);var g=a/2,d=Gb(e,g,d-g)-g;break;default:a=Math.min(Math.min(CF(a.b,b.end/1E3)*d,d)-e,Xt(b)),d=Gb(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function TF(a,b){z(b,function(a){if(a.Wd){var b=a.getId();if(!this.F[b]){var e=document.createElement("div");a.g&&(e.setAttribute("data-tooltip",a.g),e.setAttribute("data-position",a.start/1E3));this.F[b]=a;this.V[b]=e;QF(this,a,e);"ytp-chapter-marker"==a.style?this.ac.appendChild(e):this.xa.appendChild(e)}}else UF(this,a)},a)}function VF(a,b){z(b,function(a){UF(this,a)},a)}function UF(a,b){var c=b.getId();a.F[c]==b&&(cd(a.V[c]),delete a.F[c],delete a.V[c])}
function WF(a,b){var c=a.L;P(c,"spacecast-cached");b&&L(function(){O(c,"spacecast-cached")},100)}f.J=function(){this.A&&(N(this.A),this.A=0);this.o&&(this.o.dispose(),this.o=null);this.Ha=this.la=this.cb=this.ka=this.wa=this.xa=null;this.V={};this.Ra=this.pa=this.hb=this.L=this.Wa=null;this.ca=!1;KF.G.J.call(this)};function XF(a){DA.call(this);this.B=this.k="unknown";this.b=Y(0,"YTP_QUALITY_TITLE");this.j=new YB(a,u(this.D,this),u(this.F,this),!0);S(this,this.j);this.g=NaN;this.element=new RB(a,void 0,this.j);S(this,this.element);TB(this.element,100);this.priority=-1;this.o=!0}w(XF,DA);XF.prototype.Gn=function(){return this.k};
function YF(a,b,c){if(a.k!=b||a.B!=c){a.k=b;a.B=c;aC(a.j,c);var d=a.j;null!=d.b&&XB($B(d,d.b),!1);null!=b&&XB($B(d,b),!0);d.b=b;"auto"==c&&c!=b?(b=Y(0,"YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:ZF(b)}),b=new rE(b)):b=a.D(b);isNaN(a.g)||(Zy()?bz(a.g):N(a.g));Zy()?a.g=az(u(a.element.k,a.element,b),0):a.g=L(u(a.element.k,a.element,b),0)}}
function ZF(a){switch(a){case "highres":return"2160p";case "hd1440":return"1440p";case "hd1080":return"1080p";case "hd720":return"720p";case "large":return"480p";case "medium":return"360p";case "small":return"240p";case "tiny":return"144p";case "auto":return We("YTP_AUTO")}return""}XF.prototype.D=function(a){var b=["span","",ZF(a)];"highres"==a?(b.push(" "),b.push(["sup","","4K"])):0==a.indexOf("hd")&&(b.push(" "),b.push(["sup","","HD"]));return new vv(b)};
XF.prototype.F=function(a){this.element.j();this.element.wb("blur");if("auto"!=this.B||"auto"!=a)YF(this,a,a),this.element.wb("change")};XF.prototype.J=function(){Zy()?bz(this.g):N(this.g);XF.G.J.call(this)};function $F(a){CC.call(this,a,"ytp-settings-button",Y(0,"YTP_SETTINGS"),"ytp-settings-button-active");HA(this,6600);this.j=new X(["div","{{content}}"]);S(this,this.j);this.oa(this.j);aG(this,"")}w($F,CC);function aG(a,b){"highres"==b?a.j.oa("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.j.oa("ytp-settings-hd-quality-badge"):a.j.oa("")};function bG(a,b){var c=b?Y(0,"YTP_THEATER_MODE"):Y(0,"YTP_LARGE_PLAYER"),d=b?Y(0,"YTP_DEFAULT_VIEW"):Y(0,"YTP_SMALL_PLAYER");CC.call(this,a,"ytp-size-toggle-large",c,"ytp-size-toggle-small",d);HA(this,6800)}w(bG,CC);function cG(a){DA.call(this);this.j=1;this.b=Y(0,"YTP_SPEED_TITLE");this.g=new YB(a,u(this.k,this),u(this.B,this));S(this,this.g);this.element=new RB(a,void 0,this.g);S(this,this.element);TB(this.element,100);dG(this,this.j);this.priority=1;this.o=!0}w(cG,DA);function dG(a,b){a.j=b;aC(a.g,b);a.element.k(a.k(b))}cG.prototype.k=function(a){return 1==a?Y(0,"YTP_NORMAL_SPEED"):a.toString()};cG.prototype.B=function(a){this.element.j();dG(this,a);this.element.wb("change")};function eG(){X.call(this,["div",["ytp-time-display","html5-control"],["span","ytp-time-current","{{current}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"],["span","ytp-time-live-badge","Live"]]);this.b=this.template.b["ytp-time-live-badge"]}w(eG,X);eG.prototype.xf=function(a){Av(this.template,"duration",Cv(a))};function fG(a,b,c){Q(a.element,"ytp-time-liveonly",b&&!c);Q(a.element,"ytp-time-live",b&&c)}eG.prototype.J=function(){this.b=null;eG.G.J.call(this)};function gG(a){this.C=a;X.call(this,["div","ytp-volume-control",["div","ytp-volume-panel",{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:6200},["div","ytp-volume-slider",["div","ytp-volume-slider-foreground"]]]]);this.b=new EA(this.C,"ytp-button-volume",Y(0,"YTP_BUTTON_VOLUME"));S(this,this.b);this.b.X(this.element,0);HA(this.b,6100);this.A=this.template.b["ytp-volume-panel"];this.g=this.template.b["ytp-volume-slider"];
this.o=this.template.b["ytp-volume-slider-foreground"];this.k=this.j=0;this.B=new hF(this.A);S(this,this.B)}w(gG,X);function hG(a){a.j||(a.j=a.g.clientWidth);return a.j}
gG.prototype.setVolume=function(a,b){var c=Y(0,b?"YTP_UNMUTE":"YTP_MUTE");this.b.g=c;var c=Math.round(a),d=c+"% "+Y(0,"YTP_SCREENREADER_VOLUME_SETTING")+(b?" "+Y(0,"YTP_SCREENREADER_VOLUME_MUTED"):""),e=Y(0,b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+Y(0,"YTP_SCREENREADER_CONTROL_TOGGLE");GA(this.b,e);Av(this.template,"valuenow",c);Av(this.template,"valuetext",d);c="max";b||0==a?c="off":20>a?c="min":40>a?c="quiet":60>a?c="normal":80>a&&(c="loud");qg(this.b.K(),"value",c);
c=hG(this);this.k||(this.k=this.o.clientWidth);c=c-this.k;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.o.style.left=c+"px"};function iG(a,b,c){Zi.call(this);this.ub=a;this.bk=new Rv(this);this.xu=!!c;this.yu=b;this.Wc=null;this.b={};this.g={};this.k=this.j=this.Od=this.zc=this.Sd=null;this.o=new Rv(this);this.to=this.fc=null;this.B=-1;this.A=null;this.C=!1;this.uf=new X(["div","ytp-video-controls-clickguard"]);this.uf.hide();S(this,this.uf)}w(iG,Zi);f=iG.prototype;f.bd=null;f.Fc=null;f.Ee=null;f.Fi=null;f.li=null;f.um=!1;f.ad=null;f.disable=function(a){jG(this,a,!0)};f.enable=function(a){jG(this,a,!1)};
function jG(a,b,c){for(var d=0;d<b.length;d++)switch(b[d]){case "audio":Q(a.bd,"disabled-control-audio",c);break;case "play_pause":var e=a.Fc;c?e.disable():e.enable();break;case "seek":Q(a.bd,"disabled-control-seek",c)}}f.setVolume=function(a,b){if(this.B!=a||this.A!=b)this.$c.setVolume(a,b),this.B=a,this.A=b};f.xf=function(a){this.fd.xf(a)};f.Pw=function(){this.H("mutetoggled")};
function kG(a,b){if(b){if(a.um){var c=a.Fc;FA(c,"ytp-button-stop");var d=Y(0,"YTP_STOP")}else c=a.Fc,FA(c,"ytp-button-pause"),d=Y(0,"YTP_PAUSE");GA(c,d)}else pF(a.Fc)}f.Ow=function(){this.H("playpausetoggled")};f.Lw=function(a){a=(a-Pf(this.$c.g).x)/hG(this.$c)*100;a={volume:Gb(a,0,100),muted:!1};this.H("volumechanged",a)};f.Kw=function(){this.H("fullscreentoggled")};function lG(a,b){var c=a.g[b.A||"__default__"];c&&c.add(b)}function mG(a,b){var c=a.g[b.A||"__default__"];c&&c.remove(b)}
function nG(a,b,c,d){if(!a.b[b]){a.b[b]=c;if("remote"==b)bd(hd(a.Wc.K()),c.K(),0);else{var e=c.K();d=d||a.Wc.K();d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling)}c.listen("click",ra(a.iA,b),a,"menuButtonClick");c=new lF(a.ub,"__default__"!=b);S(a,c);c.hide();c.X(a.bd);a.g[b]=c}}f.Mw=function(){var a=this.Ab.K();if(!mg(a,"html5-async-progress")){var b=mg(a,"html5-async-success");eF(a,"html5-async-progress");this.H("watchlater",b)}};f.Nw=function(){this.H("watchonyoutube")};
function oG(a,b,c){a.Ud();a.H("showdialog");var d=a.ub.Vc();Uf(a.uf.K(),d);a.uf.show();c&&(a.k=c,EC(a.k));a.j=b;a.j.show();a.j.K().focus();a.o.listen(window,"blur",a.Ud);a.o.listen(document,"click",a.Ud)}f.Ud=function(){this.o.removeAll();this.j&&(this.j.hide(),this.j=null);this.k&&(FC(this.k),this.k=null);this.uf.hide()};f.iA=function(a,b){b.stopPropagation();var c=this.b[a];c&&(c.b?this.Ud():oG(this,this.g[a],c))};f.Fw=function(){this.H("audiotrackchanged",this.Sd.j)};
f.Hw=function(){var a=this.zc.Gn();this.H("qualitychanged",a);this.H("controlclick","quality-"+a)};f.Gw=function(){this.Ud()};f.Iw=function(){var a=this.fc;a.b?FC(a):EC(a);this.H("sizechangerequested",1==this.fc.b)};f.Jw=function(){var a=this.Od.j;this.H("speedchanged",a);this.H("controlclick","speed-"+a)};
f.Oy=function(a){var b=a.target;a=b==this.Fc.K()?"playpause":b==this.$c?"volume":b==this.fd?"time":b==this.Wc?"settings":b==this.Ab?"watchlater":b==this.ad?"youtube":b==this.Zd.K()?"fullscreen":b==this.fc?"size":a.target.className;this.H("controlclick",a)};
f.J=function(){this.wo.dispose();this.bk.removeAll();this.o.removeAll();this.Ud();this.Ab=this.ad=this.li=this.$c=this.bd=null;for(var a in this.b){var b=this.b[a];b&&(b.dd(),Ny(b,"menuButtonClick"))}this.b={};this.g={};this.fc=this.Wc=this.Od=this.zc=null;this.C||(this.B=-1,this.A=null);iG.G.J.call(this)};function pG(a){Fi("/playlist_video_ajax?action_add_to_watch_later_list=1",{method:"POST",Gh:{privacy:a.privacy||null,feature:a.LE||null,authuser:a.Sa||null,pageid:a.Za||null},gd:{video_ids:a.Va,src_playlist_id:a.OE,full_list_id:a.ME||null,new_playlist_name:a.NE||null,plid:Qe("PLAYBACK_ID")||null},context:a.context,onError:a.onError,onSuccess:a.onSuccess,vb:a.vb})}
function qG(a){Fi("/playlist_video_ajax?action_delete_from_watch_later_list=1",{method:"POST",gd:{video_ids:a.Va,session_token:Qe("XSRF_TOKEN")},context:a.context,onError:a.onError,onSuccess:a.onSuccess,vb:a.vb})};function rG(a,b){this.A=a;this.k=[];this.B=b;this.o=[]}w(rG,Gh);function sG(a,b,c){a.k.push(a.A.subscribe(b,c,a))}function tG(a,b,c){a.o.push(a.B.subscribe(b,c,a))}function uG(a){for(var b=0;b<a.k.length;b++)a.A.Ib(a.k[b]);for(b=0;b<a.o.length;b++)a.B.Ib(a.o[b])}rG.prototype.J=function(){uG(this);rG.G.J.call(this)};function vG(a,b){rG.call(this,a,b);this.j=!1;this.g=a;this.b=b;var c=a.R();c.color&&O(this.b.L,c.color);c.aj&&(c=this.b,c.g=new IF,c.g.X(c.K()),S(c,c.g),c.j=new EF(c.k),c.j.hide(),c.j.X(c.K(),0),S(c,c.j));wG(this)}w(vG,rG);
function wG(a){uG(a);a.j=!0;sG(a,"cuerangesadded",a.FC);sG(a,"cuerangesremoved",a.GC);sG(a,"cuerangemarkersupdated",a.EC);sG(a,"presentingplayerstatechange",a.KC);sG(a,"progresssync",a.pq);sG(a,"resize",a.IC);sG(a,"seekto",a.LC);sG(a,"videodatachange",a.MC);sG(a,"videoplayerreset",a.oq);sG(a,"videoready",a.JC);tG(a,"beginseeking",a.DC);tG(a,"endseeking",a.HC);tG(a,"seekto",a.CC)}f=vG.prototype;f.FC=function(a){TF(this.b,a)};f.GC=function(a){VF(this.b,a)};f.EC=function(a){TF(this.b,a)};
f.IC=function(a){var b=this.b;b.k=a.width;LF(b);b.j&&(b=b.j,a=a.width,!b.Bc||b.Xd==a&&b.B||(b.Xd=a,GF(b,!0)))};f.LC=function(a){var b=this.g.Eb.Mg();a=CF(new zF(b.seekableStart,b.seekableEnd),a);b=this.b;SF(b,n(a)?a:b.B,n(void 0)?void 0:b.D);if(this.b.j&&(b=this.b.j,b.Bc)){b.El=b.Qk*a-b.Xd/2;Jf(b.b,-1*b.El);var c=Qp(b.Bc,a);FF(b,c);a=BF(b.k,a);kd(b.D,Cv(a));Pk(b.o)}};
f.KC=function(a){if(0>Nv(a,16)){a=this.b;var b=this.g.getCurrentTime();a.hb.innerHTML=Math.floor(100*a.B)+"% at "+Math.floor(b)+" of "+Math.floor(a.b.b)+" seconds"}};f.oq=function(a){if(1!=a.getPlayerType()){if(!this.j)return;uG(this);this.j=!1;sG(this,"videoplayerreset",this.oq)}else if(!this.j){wG(this);var b=this.b;ad(b.xa);b.F={};b.V={};TF(this.b,a.A.j||[]);this.b.g&&this.b.g.reset()}this.pq()};
f.MC=function(a,b){var c=new zF(0,b.Oa),d=this.b;d.b=c;LF(d);this.b.g&&(this.b.g.g=c);this.b.j&&(this.b.j.k=c);c=this.b;c.O=b.clipStart;RF(c);SF(c,c.B,c.D);c=this.b;c.N=b.clipEnd;RF(c);SF(c,c.B,c.D);WF(this.b,!!b.aa)};
f.JC=function(a){if(this.b.g){var b=this.b.g;if(!b.Ki)if(Vr(a)){O(b.K(),"with-thumbnail");b.If=Vr(a);b.Xg=Wr(a);var c=u(b.Nx,b);b.Xg.subscribe("l",c)}else b.reset()}this.b.j&&(b=this.b.j,b.j&&ad(b.b),P(b.K(),"enabled"),bz(b.g),b.Bc=Vr(a),b.Ke=Wr(a),b.Bc&&!b.jq&&(O(b.K(),"enabled"),c=u(b.Mp,b),b.Ke.subscribe("l",c),GF(b),bz(b.g),b.g=az(u(b.Mx,b))));this.b.xb=a.tb?!0:!1;as(a)?(a=this.b,a.o&&(a.o.dispose(),a.o=null)):(a=this.b,a.o||(a.o=new rF(a.L,!0),a.o.subscribe("hoverstart",a.Px,a),a.o.subscribe("hovermove",
a.Rx,a),a.o.subscribe("hoverend",a.Qx,a),a.o.subscribe("dragstart",a.Ox,a),a.o.subscribe("dragmove",a.Tx,a),a.o.subscribe("dragend",a.Sx,a)))};f.pq=function(a,b){var c=this.g.Eb.Mg(),d=n(a)?a:c.current,e=new zF(c.seekableStart,n(b)?b:c.seekableEnd),c=CF(e,c.loaded),d=CF(e,d),g=this.b;g.b=e;LF(g);g=this.b;SF(g,n(d)?d:g.B,n(c)?c:g.D);this.b.g&&(this.b.g.g=e);this.b.j&&(this.b.j.k=e)};f.DC=function(){xG(this.g.j)};f.HC=function(){this.g.j.Mi()};f.CC=function(a,b){zs(this.g,a,b)};f.J=function(){vG.G.J.call(this)};function yG(a,b){rG.call(this,a,b);sG(this,"applicationplayerstatechange",this.ly);sG(this,"controlsdisabled",this.oy);sG(this,"controlsenabled",this.qy);sG(this,"liveviewshift",this.uy);sG(this,"fullscreentoggled",this.ty);sG(this,"presentingplayerstatechange",this.Qy);sG(this,"progresssync",this.Uy);sG(this,"threedenabled",this.Jy);sG(this,"videoplayerreset",this.Ty);sG(this,"videodatachange",this.Sy);sG(this,"onPlaybackQualityChange",this.Fy);sG(this,"onVolumeChange",this.Ky);sG(this,"menu_button_add",
this.vy);sG(this,"menu_button_remove",this.wy);sG(this,"menu_item_add",this.xy);sG(this,"menu_item_remove",this.yy);sG(this,"menu_show",this.zy);tG(this,"fullscreentoggled",this.ry);tG(this,"mutetoggled",this.Ay);tG(this,"nextvideo",this.By);tG(this,"playpausetoggled",this.Cy);tG(this,"previousvideo",this.Ey);tG(this,"qualitychanged",this.Gy);tG(this,"audiotrackchanged",this.my);tG(this,"seekto",this.Ry);tG(this,"sizechangerequested",this.Hy);tG(this,"speedchanged",this.Iy);tG(this,"volumechanged",
this.Ly);tG(this,"watchlater",this.My);tG(this,"watchonyoutube",this.Ny);tG(this,"controlclick",this.ny);tG(this,"showdialog",this.Py);this.b=a;this.g=b;this.j=new vG(a,b.Fi);S(this,this.j);var c=a.R();if(c.oc){var d=this.g;this.b.R().rd?EC(d.fc):FC(d.fc);d.fc.show()}c.Rf||this.g.Ab.hide();c.Gf&&this.g.Zd.show();if(c.vg){var d=this.g,e=d.Od;ZB(e.g,this.b.b.vg?Jq:[1]);var g=2500;bC(e.g,g++);g=g++;HA(e.element.b,g);lG(d,d.Od)}if(c.b.D)for(d=this.g,e=[d.Fc,d.$c,d.fd,d.Ab,d.ad,d.Zd,d.Wc],g=0;g<e.length;g++)d.bk.listen(e[g],
"click",d.Oy);d=null!=c.ye&&0==c.ye.search("^https?://www.youtube.com");("detailpage"==c.$||"profilepage"==c.$||d)&&this.g.ad.hide()}w(yG,rG);f=yG.prototype;f.oy=function(a){this.g.disable(a)};f.qy=function(a){this.g.enable(a)};f.uy=function(a){Q(this.g.fd.element,"ytp-time-live-dvr",!a)};f.ty=function(a){var b=this.g;this.b.R();a?(a=b.Zd,FA(a,"ytp-button-fullscreen-exit"),b=Y(0,"YTP_EXIT_FULLSCREEN"),GA(a,b),a.g=b):kF(b.Zd);zG(this)};
f.Qy=function(a){W(a.state,2)||(0<Nv(a,8)?kG(this.g,!0):0>Nv(a,8)?kG(this.g,!1):0>Nv(a,2)&&kG(this.g,W(a.state,8)));0>Nv(a,16)&&AG(this,this.b.getCurrentTime())};f.ly=function(a){if(W(a.state,2)){a=this.g.Fc;FA(a,"ytp-button-replay");var b=Y(0,"YTP_REPLAY");GA(a,b)}};f.Jy=function(){var a=this.g,b=this.b.getVideoData().Lf,c=H("html5-threed-conversion-on",a.li),a=H("html5-threed-conversion-off",a.li);wx(c,!b);wx(a,b)};
f.Ty=function(a){BG(this)&&(AG(this,a.getCurrentTime()),eF(this.g.Ab.K()),dG(this.g.Od,1),a.getVideoData()&&CG(this,a.getVideoData()))};f.Sy=function(a,b){BG(this)&&CG(this,b)};function zG(a){a.b.o&&("detailpage"!=a.b.R().$||a.b.R().mb)?a.g.Ee.show():a.g.Ee.hide()}
function CG(a,b){a.g.xf(b.Oa);var c=Ks(a.b),d=a.g,e=Ls(c),g=d.zc;ZB(g.j,e);bC(g.j,2600);HA(g.element.b,2601);e.length?lG(d,d.zc):mG(d,d.zc);d=a.g;e=Is(a.b);g=DG(a.b);YF(d.zc,e,g);aG(d.Wc,e);d=a.g;c.b.g?(c.la||(c.la=Lp(c.b.g)),c=c.la):c=[];ZB(d.Sd.g,c);1<c.length?lG(d,d.Sd):mG(d,d.Sd);c=a.g;(d=(d=Ks(a.b,void 0))?EG(d):null)&&gF(c.Sd,d);c=a.g;d=b.ib;e=b.tb;c.um=d&&!e;fG(c.fd,d,e);W(a.b.getPlayerState(),2)||kG(a.g,W(a.b.getPlayerState(),8));zG(a)}
f.Fy=function(a){if(BG(this)){var b=this.g,c=DG(this.b);YF(b.zc,a,c);aG(b.Wc,a)}};f.Ky=function(a){this.g.setVolume(a.volume,a.muted)};f.xy=function(a){lG(this.g,a)};f.yy=function(a){mG(this.g,a)};f.vy=function(a,b){nG(this.g,a,b)};f.wy=function(a){var b=this.g,c=b.b[a];c&&(c.dd(),Ny(c,"menuButtonClick"),b.b[a]=null,b.g[a].dispose(),b.g[a]=null)};f.zy=function(a){var b=this.g;a&&b.g[a]?oG(b,b.g[a],b.b[a]):b.Ud()};f.Uy=function(a){AG(this,n(a)?a:this.b.Eb.Mg().current)};f.ry=function(){FG(this.b,!this.b.R().mb)};
f.Ay=function(){this.b.D.muted?Cs(this.b):Bs(this.b)};f.By=function(){Vs(this.b)};f.Cy=function(){GG(this.b)};f.Ey=function(){Ws(this.b)};f.Gy=function(a){Js(this.b,a,1)};f.my=function(a){var b=Ks(this.b,1);if(b&&!b.fa()&&!W(b.j,128)&&b.b.g.b&&(b=b.k,!b.fa())){var c=b.o;a=a.id;c.o="m";c.g=c.B.b[a];c.C=c.g;HG(b,new IG(c.C,c.j,c.o));JG(b,b.j,b.o.g);KG(b.j,!1);b.j.g=null;b.j.B=!0;LG(b)}};f.Py=function(a){this.b.fk(a)};f.Ry=function(a){zs(this.b,a,!0)};f.Hy=function(a){MG(this.b,a)};
f.Iy=function(a){Hs(this.b,a)};f.Ly=function(a){NG(this.b,a)};f.Ny=function(){OG(this.b)};f.ny=function(a){PG(this.b,a)};f.My=function(a){(a?qG:pG).call(this,QG(this,a?this.iE:this.jE))};function QG(a,b){return{Va:ct(a.b).videoId,Sa:a.b.R().Sa,Za:a.b.R().Za,onSuccess:b,onError:a.FB,context:a}}f.jE=function(){var a=this.g.Ab.K();eF(a,"html5-async-success");this.b.H("WATCH_LATER_VIDEO_ADDED")};f.iE=function(){eF(this.g.Ab.K());this.b.H("WATCH_LATER_VIDEO_REMOVED")};
f.FB=function(a,b){var c=b&&b.error_message,d=this.g.Ab.K();eF(d,"html5-async-error");if(c){var e=WE.getInstance(),g=YE(e,d);$E(e,d,c);XE(e,d);VE(d,g)}};function BG(a){return 1==Ks(a.b).getPlayerType()}function AG(a,b){if(BG(a)&&(Av(a.g.fd.template,"current",Cv(b)),43200<b&&a.b.getVideoData().tb)){var c=a.g;c.um=!0;fG(c.fd,!0,!1)}};var RG={0:[],1:["autohide-controls","autominimize-progress-bar"],2:["autominimize-controls-aspect","autohide-controls-fullscreenonly","autominimize-progress-bar"],3:["autominimize-progress-bar"]};function SG(a){uE.call(this,a);this.V=this.I=this.M=this.D=null;this.wa=[];this.xa=this.fb=this.B=this.nb=null;this.Ia=this.ka=!1;this.Ra={x:0,y:0};this.Ha=null;this.C=new AE(this.j);S(this,this.C);a=this.app.R().gc?4E3:3E3;this.la=new Tv(this.Vp,a,this);S(this,this.la);this.la.start()}w(SG,uE);f=SG.prototype;
f.Vg=function(){SG.G.Vg.call(this);this.app.subscribe("appstatechange",this.$C,this);this.app.subscribe("applicationplayerstatechange",this.aD,this);this.app.subscribe("initializingmode",this.cD,this);this.app.subscribe("presentingplayerstatechange",this.bD,this);this.app.subscribe("onDetailedError",this.dD,this)};f.Qg=function(){SG.G.Qg.call(this);var a=this.app.R();this.Fn(a);this.ln(a);this.zn()};
f.Fn=function(a){a.I&&this.addClass(a.I+"-theme");a.yc&&this.addClass("house-brand");!a.Jf&&a.Pd||this.addClass("modest-branding");a.Ll&&this.addClass("html5-hide-share");a.Gp||this.addClass("html5-hide-volume");a.gc&&(this.addClass("html5-tablet"),O(document.body,"html5-tablet-body"));a.Qb||(this.wa=RG[a.Li],0<=this.wa.indexOf("autohide-controls")&&this.addClass("hide-controls-when-cued"));TG(this)&&this.addClass("ideal-aspect");a.b.L&&this.addClass("ytp-autohide-fade")};
f.ln=function(a){if(a.Pd&&!a.Qb){this.B=new iG(this.j,a.gc,a.b.g);a.b.ca&&(this.B.C=!0);var b=this.B;b.bd=this.F;b.to=new hF(b.bd);S(b,b.to);b.uf.X(b.bd);b.Fi||(b.Fi=new KF(b.ub,b.yu));b.Fi.X(b.bd);var c=new vv(["div",["html5-player-chrome","html5-stop-propagation"]]);S(b,c);c.X(b.bd);c=c.K();b.Fc=new oF(b.ub);S(b,b.Fc);b.Fc.X(c);b.Fc.listen("click",b.Ow,b);b.Ee=new qF(b.ub);S(b,b.Ee);b.Ee.X(c);b.Ee.b.listen("click",ra(b.H,"nextvideo"),b);b.Ee.g.listen("click",ra(b.H,"previousvideo"),b);b.$c=new gG(b.ub);
S(b,b.$c);b.$c.X(c);b.$c.b.listen("click",b.Pw,b);b.wo=new rF(b.$c.g,!0);b.wo.subscribe("dragmove",b.Lw,b);b.fd=new eG;S(b,b.fd);b.fd.X(c);b.bk.listen(b.fd.b,"click",ra(b.H,"seekto",Infinity));b.li=H("html5-threed-popup-menu",b.bd);b.Zd=new jF(b.ub);b.Zd.X(c);S(b,b.Zd);b.Zd.listen("click",b.Kw,b);b.fc=new bG(b.ub,b.xu);b.fc.hide();b.fc.X(c);S(b,b.fc);b.fc.listen("click",b.Iw,b);b.ad=new EA(b.ub,"ytp-button-watch-on-youtube",Y(0,"YTP_URL_NAVIGATE"),Y(0,"YTP_URL_NAVIGATE"));HA(b.ad,6700);b.ad.X(c);
S(b,b.ad);b.ad.listen("click",b.Nw,b);b.Wc=new $F(b.ub);S(b,b.Wc);nG(b,"__default__",b.Wc,b.ad.K());b.Kl=new EA(b.ub,"ytp-button-playlist",Y(0,"YTP_PLAYLIST"),Y(0,"YTP_PLAYLIST"));HA(b.Kl,6400);b.Kl.X(c);S(b,b.Kl);b.Ab=new EA(b.ub,"ytp-button-watch-later",Y(0,"YTP_WATCH_LATER"));b.ub.Bf(b.Ab.K(),"YTP_WATCH_LATER_AS_2",Y(0,"YTP_WATCH_LATER"));b.Ab.X(c);HA(b.Ab,6300);GA(b.Ab,Y(0,"YTP_WATCH_LATER"));S(b,b.Ab);b.Ab.listen("click",b.Mw,b);b.zc=new XF(b.ub);S(b,b.zc);b.zc.listen("change",b.Hw,b);b.zc.listen("blur",
b.Gw,b);b.Od=new cG(b.ub);S(b,b.Od);b.Od.listen("change",b.Jw,b);b.Sd=new fF(b.ub);S(b,b.Sd);b.Sd.listen("change",b.Fw,b);S(this,this.B);this.fb=new yG(this.app,this.B);S(this,this.fb)}a.Fp&&(this.Ha=new IE(a.Pb,a.yc),this.Ha.X(this.g),S(this,this.Ha));this.M=new JE(60);O(this.M.element,"html5-video-loader");O(this.M.element,"html5-center-overlay");O(this.M.element,"ytp-scalable-icon-grow");this.M.X(this.g);S(this,this.M);this.I=new KE(a.Pb);this.I.X(this.g);S(this,this.I);this.V=new nE;this.V.X(this.g);
S(this,this.V);this.C.hide();this.C.X(this.element)};f.Wm=function(a){SG.G.Wm.call(this,a);UG(this,a);this.D&&HE(this.D);Q(this.element,"ideal-aspect",TG(this));this.C.P&&BE(this.C)};f.Fl=function(){SG.G.Fl.call(this);UG(this,this.Fb())};f.$C=function(a){2==a?VG(this):WG(this);this.app.R().b.k&&3==a&&this.I.show(this.app.getVideoData())};
f.bD=function(a){if(this.element){var b;b=a.state;if(W(b,2))b=["ended-mode"];else{var c=[];W(b,8)?c.push("playing-mode"):W(b,4)&&c.push("paused-mode");W(b,1)&&!W(b,32)&&c.push("buffering-mode");W(b,32)&&c.push("seeking-mode");W(b,64)&&c.push("unstarted-mode");b=c}W(a.state,2)||(b=b.concat(this.wa));this.xa&&og(this.element,this.xa);ng(this.element,b);this.xa=b;W(Ks(this.app).j,1)?this.M.show():this.M.hide();b=Ks(this.app);this.app.R().b.k&&b.Vh()&&!W(b.j,1)&&this.I.hide();0>Nv(a,64)&&XG(this.app)}};
f.aD=function(a){!W(a.state,2)||this.app.R().yc||YG()?0>Nv(a,2)&&WG(this):VG(this)};
f.zn=function(){var a=this.app.R();if(a.Lp){a.gc&&(My(this,this.element,"gesturechange",this.qA),My(this,this.element,"gestureend",this.rA));jr?this.g.onclick=u(function(a){this.Lm(new Eg(a))},this):this.Mm();My(this,this.element,"click",this.ur);My(this,this.element,"mousemove",this.ur);My(this,this.element,"mouseout",this.Vp);var b,a=u(function(){var a=this.b;a&&(Gt(a),kE.fillPool(4),this.Fa(b))},this);b=My(this,this.element,"click",a,void 0,void 0,!0)}};
f.Mm=function(){My(this,this.g,"click",this.Lm);My(this,this.g,"dblclick",this.hs)};f.Lm=function(a){ZG(a)&&(this.element.focus(),mg(this.element,"cued-mode")||!this.app.R().Qb)&&($G(this),GG(this.app));PG(this.app,"screenclick")};f.hs=function(a){6!=this.app.I&&this.app.R().Gf&&(ZG(a)&&uz(this.app),PG(this.app,"screendoubleclick"))};f.qA=function(a){var b=a.scale,c=this.app.R().mb;b*(c?-1:1)>(c?-.7:1.3)&&uz(this.app);a.preventDefault()};
f.rA=function(a){a=a.scale;var b=this.app.R().mb;a*(b?-1:1)>(b?-.9:1.1)&&uz(this.app)};function ZG(a){return!sd(a.target,"html5-stop-propagation")}function TG(a){a=Kb(new G(a.element.clientWidth,a.element.clientHeight)).toFixed(1);return"1.3"==a||"1.8"==a}f.ur=function(a){if(a){var b=a.x||a.screenX;a=a.y||a.screenY;if(this.Ra.x==b&&this.Ra.y==a)return;this.Ra={x:b,y:a}}this.app.b.Zf=v();this.Ia=!1;this.la.start();this.ka&&(this.ka=!1,this.removeClass("ytp-user-idle"),this.app.Ua("onShowControls"))};
f.Vp=function(a){if(a&&(a=a.relatedTarget)&&id(this.element,a))return;this.Ia=!0;this.la.stop();if(!this.ka){a=this.B&&null!=this.B.j;var b=Ns(this.app.C,"playlist"),b=b&&b.loaded;!this.Ia||a||b||(this.ka=!0,this.addClass("ytp-user-idle"),this.app.Ua("onHideControls"))}};function VG(a){a.I.show(a.app.getVideoData());a.addClass("cued-mode")}function WG(a){a.app.R().b.k||a.I.hide();a.removeClass("cued-mode")}
f.Rg=function(a){if(a){var b=this.C;b.b=a;b.oa(a);this.C.show()}else a=this.C,a.b=null,a.oa(null),this.C.hide()};
f.dD=function(a){if(this.element){this.D||(this.D=new GE,this.D.X(this.element),S(this,this.D));var b=this.app.R(),c=a.message,d="embedded"==b.$;a=a.messageKey;var e;"YTP_ERROR_GENERIC"!=a||b.yc?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==a?(e="https://get.adobe.com/flashplayer/",d=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=a||b.yc||(e="/html5",a="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(e="//support.google.com/youtube/?p=player_error1",a="YTP_ERROR_GENERIC_WITH_LINK_2");e&&(c=
We(a,{BEGIN_LINK:'<br/><a href="'+e+'"'+(d?' target="_blank"':"")+">",END_LINK:"</a>"}));b=this.D;Ng(b.g);b.g=[];Av(b.template,"content",new rE(c));this.D.show()}};f.cD=function(){this.D&&this.D.hide()};function $G(a){var b=a.app.getPlayerState(),c=a.app.getVideoData(),d="html5-bezel-pause";W(b,8)?c.ib&&!c.tb&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.V;a.show(d);a.b=L(u(a.g,a),10)}
f.Vf=function(){var a=this.app.R();qg(document.documentElement,"player-size",a.mb?"fullscreen":a.rd?"large":"small");SG.G.Vf.call(this)};function UG(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=Gb(e/g,.5,1),d=Lc("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++)Cx(d[h],"transform","scale("+c+")");c=Gb(e/g*.33,.5,1);d=Lc("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)Cx(d[h],"transform","scale("+c+")")}}
f.hk=function(a){this.B&&kG(this.B,a)};f.J=function(){Rg(this.element);cd(this.nb);SG.G.J.call(this);this.I=this.V=this.nb=null};function aH(a,b,c){pE.call(this,["div",["html5-endscreen",c||"base-endscreen","html5-stop-propagation"],["div","html5-endscreen-content"]]);this.aa="";this.b=this.template.b["html5-endscreen-content"];this.j=a;this.$a=b;this.Ac=!1}w(aH,pE);aH.prototype.create=function(){this.Ac=!0};aH.prototype.destroy=function(){this.Ac=!1};function bH(a,b){var c=!!a.featured,d="1"==a.is_episodic,e=!!a.endscreen_autoplay_session_data;return b&&(c||d)||e};function cH(){X.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}w(cH,X);function dH(){X.call(this,["div","ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])}w(dH,X);function eH(a,b){pE.call(this,b);this.D=a;this.videoId=null}w(eH,pE);
eH.prototype.xg=function(a,b){this.videoId=a?a.id||a.video_id:"";Q(this.element,"ytp-suggestion-set",!!this.videoId);if(this.videoId){var c;b&&a.iurlhq_webp?c=a.iurlhq_webp:!b&&a.iurlmq_webp?c=a.iurlmq_webp:c=mB(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:this.videoId,b?"hqdefault.jpg":"mqdefault.jpg");var d=Zb(a);d.playlist_length=d.playlist_length||0;d.title=d.title||d.playlist_title;d.author=d.author||d.playlist_author;d.image=c;d.background="background-image: url("+c+")";d.duration=Cv(a.length_seconds);
d.episodic_title=d.title;d.episodic_index=parseInt(d.index,10)+1;d.episodic_length=d.playlist_length;this.template.update(d)}};function fH(a){var b=["div","ytp-watch-next-card",["div","ytp-watch-next-content",["div","ytp-watch-next-header",Y(0,"YTP_WATCH_NEXT")],["img","ytp-watch-next-thumbnail",{src:"{{image}}"}],["div","ytp-watch-next-title","{{title}}"],["div","ytp-watch-next-views","{{view_count_string}}"],["div","ytp-watch-next-uploaded","{{uploaded}}"]]];eH.call(this,a,b)}w(fH,eH);function gH(a,b,c,d,e,g,h){a&&(a={video_id:a,html5:1,page_subscribe:b?1:0},g&&(a.authuser=g),h&&(a.pageid=h),Fi("/get_video_metadata",{method:"GET",onError:d,onSuccess:c,Gh:a,context:e}))};function hH(a,b,c){aH.call(this,a,b,"subscribecard-endscreen");this.o=new cH;S(this,this.o);this.A=new vv(["div","ytp-channel-curtain"]);S(this,this.A);this.k=new dH;S(this,this.k);(this.g=c?new fH(this.j.app.g.j):null)&&S(this,this.g);this.hide()}w(hH,aH);
hH.prototype.create=function(){hH.G.create.call(this);ad(this.b);this.o.X(this.b);this.A.X(this.b);this.k.X(this.b);if(this.g){var a=this.j.getVideoData().da;a&&bH(a[0])&&(this.g.xg(a[0]),this.g.X(this.b))}gH(this.j.getVideoData().videoId,!0,this.B,ca,this,this.j.R().Sa,this.j.R().Za)};
hH.prototype.B=function(a,b){if(this.Ac){var c=b.user_info,d=this.j.getVideoData();d&&(d.Ca=c.external_id);d=c.channel_logo_url||c.image_url;Av(this.o.template,"banner",c.channel_banner_url);Av(this.k.template,"image",d);Av(this.k.template,"author",c.channel_title||c.username);this.g&&b.watch_next&&(this.g.xg(b.watch_next),this.g.X(this.b));c=c.subscription_button_html;this.k.template.b["html5-subscribe-button-container"].innerHTML=c?c:""}};function iH(a,b){return C(a.b.b,b)};function jH(a,b){var c=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",Y(0,"YTP_AD_RESUME_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",Y(0,"YTP_ADVERTISEMENT")],["div","video-ad-time-left"],["div",["html5-progress-bar","html5-stop-propagation"],["div",["html5-ad-progress-list","html5-progress-list"]]]],["div","ad-container",{id:"osd-id"}]];X.call(this,c);this.W=b}w(jH,X);jH.prototype.g=null;jH.prototype.j=null;jH.prototype.b=null;
function kH(a){if(!a.g&&(a.g=a.template.b["ad-container"],a.W.R().Tb)){var b=iH(a.W.R(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";O(a.g,b)}return a.g}function lH(a){a.b&&(a.W.R().Tb?(P(a.b,"ad-video"),mH(a.W.app,a.b),a.b=null):(cd(a.b),Lt(a.b)))}
function nH(a){if(!a.j){if(a.W.R().gc){var b=Xc("button");O(b,"video-click-tracking");$c(b,We("YTP_VISIT_ADVERTISERS_SITE"));var c=Xc("div");O(c,"video-click-tracking-container");c.appendChild(b);kH(a).appendChild(c)}else b=Xc("div"),ng(b,["video-click-tracking","ad-video"]),kH(a).appendChild(b);a.j=b}return a.j}jH.prototype.J=function(){jH.G.J.call(this);this.b&&(mH(this.W.app,this.b),this.b=null);lH(this);ad(kH(this));ad(nH(this));this.j=this.g=null;delete this.W};
function oH(a){if(!a.b){var b;b=a.W.app;if(b.b.Tb){var c=Lf(b.k),d=Xf(b.k);b.U=new wf(c.x,c.y,d.width,d.height);pH(b.A);Mt(b.k,1);Lt(b.k);b=b.k}else b=kE.getTag(void 0);a.b=b;ng(a.b,["video-stream","ad-video"])}return a.b};function qH(){CE.call(this,84,84);this.g=this.width/2;this.k=this.height/2}w(qH,CE);var rH=3*Math.PI/2,sH=2*Math.PI;function tH(a,b){eH.call(this,a.app.g.j,["a","videowall-still",{tabIndex:0,style:"{{background}}"},["span","videowall-still-featured-label",Y(0,"YTP_FEATURED")],["span","videowall-still-info",["span","videowall-still-info-bg"],["span","videowall-still-info-title","{{title}}"],["span","videowall-still-info-author","{{author}}"],["span","videowall-still-info-duration","{{duration}}"],["span","videowall-still-info-view-count","{{view_count_string}}"]],["div",["videowall-still-listlabel-episodic","videowall-still-listlabel"],
["div","videowall-still-listlabel-episodic-heading",Y(0,"YTP_PLAYLIST_UP_NEXT")],["span","videowall-still-listlabel-episodic-icon"],["div","videowall-still-listlabel-episodic-info",["span","videowall-still-listlabel-episodic-index",["span","","{{episodic_index}}"]," / ",["span","","{{episodic_length}}"]],["span","","{{episodic_title}}"]]],["span",["videowall-still-listlabel-regular","videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],Y(0,"YTP_PLAYLIST"),["span","videowall-still-listlabel-length",
" (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix","videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],Y(0,"YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]]);this.W=a;this.C=b;this.A={};this.k={};this.B=this.o=null;this.g=0;this.b=this.j=null;this.listen("click",this.iv);this.listen("keypress",this.jv)}w(tH,eH);f=tH.prototype;
f.xg=function(a,b){tH.G.xg.call(this,a,b);this.A=a.session_data;this.k=a.endscreen_autoplay_session_data;this.k||"1"!=a.endscreen_autoplay||(this.k={autonav:"1",feature:"related-auto",playnext:"1"});this.o=a.list;var c=!1,d=!1,e=!1;"1"==a.is_episodic?d=!0:this.o&&"RD"==ds(this.o).type?e=!0:this.o&&(c=!0);Q(this.element,"videowall-still-featured",!!a.featured);Q(this.element,"videowall-still-list",c);Q(this.element,"videowall-still-episodic",d);Q(this.element,"videowall-still-mix",e)};
f.select=function(a,b){uH(this);var c=this.W.app,d=this.videoId,e=a?this.k:this.A,g=this.o||void 0;if(!d&&!g)throw Error("Playback source is invalid");d={video_id:d,list:g};c.b.mb||"detailpage"!=c.b.$?g?(c.P=!1,Us(c,d,void 0,void 0,void 0)):Os(c,d,1):(g=new Hr(d),g=vH(c.b,g,{}),q("yt.player.exports.navigate")(g,e,!0),c.dk(g,b))};
f.yp=function(){var a=new Date-this.B,b=this.j,c=a/1E4;b.context.clearRect(0,0,b.width,b.height);b.context.beginPath();b.context.arc(b.g,b.k,42,0,sH);b.context.fillStyle="rgba(0, 0, 0, 0.6)";b.context.fill();var d=Math.sqrt(3)/2*35;b.context.save();b.context.fillStyle="#fff";b.context.translate(d,b.g);b.context.beginPath();b.context.lineTo(0,d/2);b.context.lineTo(28,0);b.context.lineTo(0,-d/2);b.context.closePath();b.context.fill();b.context.restore();b.context.beginPath();b.context.arc(b.g,b.k,40,
rH,c*sH+rH,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();b=Math.max(1E4-a,0);Av(this.b,"autoplay",We("YTP_AUTOPLAY_COUNTDOWN_2",{SECONDS_LEFT:Math.ceil(b/1E3)}));1E4<=a&&this.select(!0)};f.Cw=function(a){a.stopPropagation();this.g&&(this.C.log({cancelButtonClick:"1"}),uH(this))};function uH(a){a.g&&(Te(a.g),a.g=0,Q(a.element,"videowall-still-autoplay",!1))}f.iv=function(a){this.select(!1,a.ctrlKey);a.stopPropagation()};
f.jv=function(a){switch(a.keyCode){case 13:case 32:this.select(),a.preventDefault()}};f.J=function(){uH(this);tH.G.J.call(this)};function wH(a,b,c){aH.call(this,a,b,"videowall-endscreen");this.C=c;this.A=[];this.g=this.k=null;this.B=!1;this.o=0;this.$a.subscribe("onResize",this.kB,this);this.$a.subscribe("videodatachange",this.lB,this);this.hide()}w(wH,aH);wH.b="feature-video";f=wH.prototype;f.create=function(){wH.G.create.call(this);var a=this.j.getVideoData();a&&(this.g=a.da);xH(this)};f.destroy=function(){ad(this.b);this.g=[];wH.G.destroy.call(this)};
f.show=function(){wH.G.show.call(this);var a;if(a=this.g&&this.g.length)a=!!yH(this,0).k;if(a){a=yH(this,0);uH(a);if(!a.b){a.b=new vv(["div",["videowall-still-listlabel-autoplay","videowall-still-listlabel"],["div","videowall-still-listlabel-autoplay-label",["span","videowall-still-listlabel-autoplay-label-message",Y(0,"YTP_AUTOPLAY")]," ",["span","","{{autoplay}}"]]]);S(a,a.b);a.b.X(a.element);var b=new EA(a.D);S(a,b);b.listen("click",a.Cw,a);b.X(a.b.K(),0);FA(b,"videowall-still-listlabel-autoplay-cancel");
b.oa(Y(0,"YTP_CANCEL"));a.j=new qH;S(a,a.j);O(a.j.K(),"autoplay-play-canvas");a.j.X(a.element)}Q(a.element,"videowall-still-autoplay",!0);a.C.log({cancelButtonShow:"1"});a.B=new Date;a.g=Se(u(a.yp,a),50);a.yp()}};f.hide=function(){wH.G.hide.call(this);var a=this.A[0];a&&uH(a)};
function xH(a){if(a.Ac){ad(a.b);var b=Wf(a.K()),c=b.height,d;t:{if(mg(pt(a.j),"ad-showing")&&(d=H("ad-container"))){d=Xf(d).height;break t}d=0}b.height=c-d;d=Math.floor(b.width/158);var e=Math.floor(b.height/(158/1.45));if(1>e||1>d)a.o=0;else{var g=a.g.length,c=!1;bH(a.g[0],2<e&&2<d)&&(c=!0,g+=3);Q(a.b,wH.b,c);for(var h=0,k=0,l=Kb(b),p=!0;0<=g&&(h<d||k<e);){var r=g>=k,t=g>=h;if(p&&t||!r&&t)g-=h,k++;else if(r)g-=k,h++;else break;p=h/k*1.45>l}a.B=p;d=new G(h,k);a.B?(e=1/d.width,e*=b.width,g=e/1.45):
(e=1/d.height,g=b.height*e,e=1.45*g);e=new G(Math.floor(e),Math.floor(g));a.o=d.width*d.height;c&&(a.o-=3);a.k&&QB(a.k);c=zH(e);g={hd:a.k};a.k=PB(".videowall-still",c,g);c=zH(e.clone().scale(2));g.hd=a.k;h="."+wH.b+" .videowall-still:first-child";PB(h,c,g);c=e.width*d.width;d=e.height*d.height;Uf(a.b,c,d);Jf(a.b,(b.width-c)/2,(b.height-d)/2)}b=0;for(c=a.o;b<c;b++)yH(a,b).X(a.b)}}function yH(a,b){var c=a.A[b];c||(c=new tH(a.j,a.C),S(a,c),a.A[b]=c);c.xg(a.g[b],0==b&&a.g[0].featured);return c}
function zH(a){return["width:"+a.width+"px","height:"+a.height+"px"]}f.kB=function(){xH(this)};f.lB=function(){var a=this.j.getVideoData().da;this.g!=a&&(this.g=a,xH(this))};function AH(a){fu.call(this,a);Ve({});this.ua="endscreen";this.hc="end";this.g=null;var b=a.R();BH(a)?this.g=new wH(this.b,this.M,this):b.qh?(a=b.b.C,b=new hH(this.b,this.M,a),a&&R(b.g.K(),"click",u(this.Vz,this)),this.g=b):this.g=new aH(this.b,this.M);this.g.X(pt(this.b))}w(AH,fu);function CH(a){return DH(a.R())&&1==Ks(a.app).getPlayerType()}function BH(a){a=a.R();return a.Ic&&!a.qh}f=AH.prototype;f.Ja=function(a){return CH(a)};
f.create=function(){AH.G.create.call(this);var a=Math.max(1E3*(this.b.getVideoData().Oa-10),0),a=new Wt(a,2147483647,{id:"preload"}),b=new Wt(2147483647,2147483647,{id:"load",priority:6});this.Hf(a,b)};f.destroy=function(){gu(this);this.g.destroy();AH.G.destroy.call(this)};f.load=function(){AH.G.load.call(this);this.g.show();if(this.b.R().qh&&.01>Math.random()){var a=this.b.R().b.C;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){AH.G.unload.call(this);this.g.hide()};
f.Ec=function(a){AH.G.Ec.call(this,a);var b=this.b.getVideoData(),c=!BH(this.b)||!(!b.da||!b.da.length);this.b.R();b=$r(b,"ypc_module");c&&!b&&("preload"==a.getId()?this.g.create():EH(this.b.app)||this.load())};f.ld=function(a){"load"==a.getId()&&this.loaded&&this.unload();AH.G.ld.call(this,a)};f.Vz=function(a){var b=this.g.g.videoId,b=FH(this.b.R(),b,null);ku(this,b,a.ctrlKey)};function GH(a){return CH(a)?new AH(a):null};function HH(a){kf("/gen_204?"+a,void 0)}function IH(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=Wd("/sharing_services",a);kf(h)};function JH(a){var b=document.location.protocol+"//"+document.domain+"/post_login",b=Vd(b,"mode","subscribe"),b=Vd("/signin?context=popup","next",b),b=Vd(b,"feature","sub_button");if(b=window.open(b,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var c=Rh("LOGGED_IN",function(b){Th(Qe("LOGGED_IN_PUBSUB_KEY"));Oe("LOGGED_IN",!0);a(b)});Oe("LOGGED_IN_PUBSUB_KEY",c);b.moveTo((screen.width-375)/2,(screen.height-440)/2)}}ba("yt.pubsub.publish",Uh,void 0);function KH(){SE.call(this)}w(KH,SE);da(KH);f=KH.prototype;f.Ld="subscription-button";
f.register=function(){UE(this,"click",this.Zs);TE(this,"subscription-subscribe-loading",this.Ys);TE(this,"subscription-subscribe-loaded",this.Xs);TE(this,"subscription-unsubscirbe-loading",this.Ys);TE(this,"subscription-unsubscribe-loaded",this.Xs);TE(this,"subscription-subscribe-success",this.KD);TE(this,"subscription-unsubscribe-success",this.LD);TE(this,"subscription-enable-ypc",this.JD);TE(this,"subscription-disable-ypc",this.ID)};
f.Zs=function(a){var b=this.Y(a,"href"),c;c=(c=Qe("PLAYER_CONFIG"))&&c.args&&void 0!==c.args.authuser?!0:!(!Qe("SESSION_INDEX")&&!Qe("LOGGED_IN"));if(b)a=this.Y(a,"target")||"_self",window.open(b,a);else if(c){b=this.Y(a,"channel-external-id");c=this.Y(a,"sessionlink");var d;if(this.Y(a,"ypc-enabled")){d=this.Y(a,"ypc-item-type");var e=this.Y(a,"ypc-item-id"),g=this.Y(a,"ypc-offers-url");d={itemType:d,itemId:e,offersUrl:g,subscriptionElement:a}}else d=null;e=this.Y(a,"parent-url");this.Y(a,"is-subscribed")?
(g=this.Y(a,"subscription-id"),Uh("subscription-unsubscribe",b,g,d,a,c,e)):Uh("subscription-subscribe",b,d,a,c,e)}else LH(this,a)};f.Ys=function(a){this.hg(a,this.gt,!0)};f.Xs=function(a){this.hg(a,this.gt,!1)};f.KD=function(a,b){this.hg(a,this.ht,!0,b)};f.LD=function(a){this.hg(a,this.ht,!1)};f.JD=function(a){this.hg(a,this.$D)};f.ID=function(a){this.hg(a,this.ZD)};
f.ht=function(a,b,c){b?(qg(a,"is-subscribed","true"),c&&qg(a,"subscription-id",c)):(this.removeData(a,"is-subscribed"),this.removeData(a,"subscription-id"));MH(this,a)};f.gt=function(a,b){var c=sd(a,"yt-uix-button-subscription-container");Q(c,"yt-subscription-button-disabled-mask-container",b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b};
function MH(a,b){var c=a.Y(b,"style-type"),d=!!a.Y(b,"is-subscribed"),c="-"+c,e="yt-uix-button-subscribed"+c;Q(b,"yt-uix-button-subscribe"+c,!d);Q(b,e,d);a.Y(b,"subscriber-count-tooltip")&&!a.Y(b,"subscriber-count-show-when-subscribed")&&(c=Z(WE.getInstance()),Q(b,c,!d),b.title=d?"":a.Y(b,"subscriber-count-title"));d?L(function(){O(b,"hover-enabled")},1E3):P(b,"hover-enabled")}
f.$D=function(a){var b=!!this.Y(a,"ypc-item-type"),c=!!this.Y(a,"ypc-item-id"),d=!!this.Y(a,"ypc-offers-url");!this.Y(a,"ypc-enabled")&&b&&c&&d&&(O(a,"ypc-enabled"),qg(a,"ypc-enabled","true"))};f.ZD=function(a){this.Y(a,"ypc-enabled")&&(P(a,"ypc-enabled"),this.removeData(a,"ypc-enabled"))};function NH(a,b){var c=Lc(Z(a));return gb(c,function(a){return b==this.Y(a,"channel-external-id")},a)}f.zE=function(a,b,c){var d=wb(arguments,2);z(a,function(a){b.apply(this,sb(a,d))},this)};
f.hg=function(a,b,c){var d=NH(this,a),d=sb([d],wb(arguments,1));this.zE.apply(this,d)};function LH(a,b){var c=u(function(a){a.discoverable_subscriptions&&Oe("SUBSCRIBE_EMBED_DISCOVERABLE_SUBSCRIPTIONS",a.discoverable_subscriptions);this.Zs(b)},a);JH(c)};function OH(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))oc&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=Ca(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 PH(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=OH(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function QH(a){X.call(this,["div","ytp-action-buttons"]);this.j=new EA(a,"ytp-button-info",Y(0,"YTP_MORE_INFO"));S(this,this.j);this.j.X(this.element);HA(this.j,3500);this.k=new EA(a,"ytp-button-share",Y(0,"YTP_SHARE"));S(this,this.k);this.k.X(this.element);HA(this.k,3400);this.b=new EA(a,"ytp-button-dislike",Y(0,"YTP_DISLIKE"));S(this,this.b);HA(this.b,3300);qg(this.b.K(),"tooltip-below","1");a.Bf(this.b.K(),"YTP_DISLIKE_AS",Y(0,"YTP_DISLIKE"));this.g=new EA(a,"ytp-button-like",Y(0,"YTP_LIKE"));
S(this,this.g);HA(this.g,3200);qg(this.g.K(),"tooltip-below","1");a.Bf(this.g.K(),"YTP_LIKE_AS",Y(0,"YTP_LIKE"))}w(QH,X);function RH(){X.call(this,["div","ytp-sentiment-display",["div","ytp-sentiment-bar",["div","ytp-sentiment-bar-likes"],["div","ytp-sentiment-bar-dislikes"]]]);this.g=this.template.b["ytp-sentiment-bar-likes"];this.b=this.template.b["ytp-sentiment-bar-dislikes"]}w(RH,X);RH.prototype.J=function(){this.b=this.g=null;RH.G.J.call(this)};function SH(){var a=["button","ytp-button-share-more",{tabIndex:3800},["div",["ytp-button-share-more-icon","yt-uix-button-icon-new-window"]],["span","ytp-button-share-more-content",Y(0,"YTP_MORE")]];X.call(this,a)}w(SH,X);function TH(a,b,c,d){EA.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);O(this.element,"share-service-icon-sharebar");HA(this,3700)}w(TH,EA);function UH(){X.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.b=this.template.b["ytp-share-url"]}w(UH,X);UH.prototype.J=function(){this.b=null;UH.G.J.call(this)};function VH(a,b){var c=["div","share-bar",["div","share-bar-content"],["div","share-bar-playlist",["input",["ytp-share-bar-checkbox","ytp-share-bar-checked"],{type:"checkbox",checked:"checked"}],["div","share-bar-playlist-message",Y(0,"YTP_SHARE_WITH_PLAYLIST")]]];pE.call(this,c);this.k=b;this.B=a;this.b=null;this.o=[];this.j=this.g=null;this.A=new EA(this.B,"yt-uix-button-icon-share-bar-close",Y(0,"YTP_CLOSE"),Y(0,"YTP_CLOSE"));this.A.X(this.template.b["share-bar-content"]);HA(this.A,3900)}
w(VH,pE);function WH(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.j?a.j.videoId:void 0};a.k.Sa&&(b.authuser=a.k.Sa);a.k.Za&&(b.pageid=a.k.Za);var c;XH(a)?(c=H("ytp-share-bar-checkbox"),c=!c||mg(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=XH(a));Fi("/share_ajax",{context:a,method:"GET",onError:a.F,onSuccess:a.C,Gh:b})}
VH.prototype.C=function(a,b){if(!this.fa()){YH(this);var c=this.template.b["share-bar-content"];this.b=new UH;S(this,this.b);Nc(this.b.b,{value:b.url_short});this.b.X(c);for(var d=b.links,e=0;e<Math.min(3,d.length);e++){var g=new TH(this.B,d[e].name,d[e].sname,d[e].img);S(this,g);g.X(c);g.listen("click",ra(PH,d[e].url,{}));this.o.push(g)}this.g=new SH;S(this,this.g);this.g.listen("click",u(this.I,this,b.more));this.g.X(c);My(this,this.template.b["ytp-share-bar-checkbox"],"click",this.D,this);this.H("menu_show")}};
VH.prototype.F=function(){};VH.prototype.I=function(a){OH(a)};function XH(a){return a.j?a.j.La:void 0}VH.prototype.D=function(){var a=H("ytp-share-bar-checkbox");pg(a,"ytp-share-bar-checked");WH(this)};function YH(a){a.b&&(a.b.dd(),a.b=null);a.g&&(a.g.dd(),a.g=null);z(a.o,function(a){cd(a.K())});a.o=[]};function ZH(a,b){pE.call(this,["div",["html5-info-bar","html5-stop-propagation"],["div","html5-title",["div",["html5-like-dislike-buttons","hid"]],["div","","{{titlelogobutton}}"],["div","html5-title-text-wrapper","{{titlebutton}}"]],["div","html5-info-panel",["div","html5-info-panel-loading-icon"],["div",["html5-info-panel-content","hid"],["div","",["div","html5-author-img",["img","",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]],["div","html5-author-info",
["div","html5-author-name"]],["div","html5-subscribe-button-container"]],["div","",["div","html5-video-info",["div","html5-view-count"]],["p","html5-description-text",{dir:"auto"}]]]]]);this.j=b;this.B=a;this.M=new hF(this.K());S(this,this.M);this.b=null;var c=this.template.b["html5-title"];this.A=new EA(this.B);O(this.A.K(),"html5-title-text");S(this,this.A);HA(this.A,3100);this.A.listen("click",this.Mk,this);Av(this.template,"titlebutton",this.A);var d=new EA(this.B,"html5-title-logo",Y(0,"YTP_URL_NAVIGATE"),
Y(0,"YTP_URL_NAVIGATE"));S(this,d);d.oa("YouTube");HA(d,3550);qg(d.K(),"tooltip-below","1");d.listen("click",this.Mk,this);Av(this.template,"titlelogobutton",d);this.k=new QH(this.B);S(this,this.k);this.k.X(c,1);this.k.k.listen("click",this.ni,this);this.k.j.listen("click",this.Ak,this);this.j.yc&&this.k.j.hide();this.o=null;this.F=!1;this.g=null}w(ZH,pE);f=ZH.prototype;f.update=function(a){this.b=a;if(this.g){var b=this.g;b.j=a;WH(b)}a=a.title||"";this.A.oa(a);GA(this.A,a)};f.Mk=function(){this.nt()};
f.Ak=function(){if(!this.F){this.F=!0;gH(this.b?this.b.videoId:void 0,!1,this.gA,ca,this,this.j.Sa,this.j.Za);if(!this.o){var a=this.template.b["html5-info-panel-loading-icon"];this.o=new JE;S(this,this.o);O(this.o.element,"html5-info-panel-loader");this.o.X(a);S(this,this.o)}this.o.show()}P(this.element,"show-share");return pg(this.element,"show-more-info")};
f.ni=function(a){P(this.element,"show-more-info");if("detailpage"!=this.j.$){if(!this.g){var b=this.g=new VH(this.B,this.j);b.j=this.b;WH(b);this.g.X(this.template.b["html5-info-bar"]);this.g.A.listen("click",this.ni,this);this.g.subscribe("menu_show",u(this.iq,this))}pg(this.element,"show-share");this.iq();a&&a.stopPropagation();Q(this.element,"share-with-playlist",!!XH(this.g))}};f.iq=function(){mg(this.element,"show-share")&&this.g.b&&this.g.b.K().focus()};
f.gA=function(a,b){if(!this.fa()){var c=this.template.b["html5-info-panel"],d=b.user_info;this.b&&(this.b.Ca=d.external_id);var e=H("html5-author-img",c).getElementsByTagName("img")[0];e.src=d.image_url;My(this,e,"click",this.Jq);e=H("html5-author-name",c);kd(e,d.channel_title||d.public_name||d.username);My(this,e,"click",this.Jq);var e=b.video_info,g=H("html5-subscribe-button-container",c);g.innerHTML=d.subscription_button_html?d.subscription_button_html:"";d=KH.getInstance();(d=H(Z(d),g))&&this.B.Bf(d,
"YTP_SUBSCRIBE_AS");H("html5-view-count",c).innerHTML=e.view_count_string;var d=parseInt(e.likes_count_unformatted,10),g=parseInt(e.dislikes_count_unformatted,10),h=new RH;S(this,h);var k=0,l=0;0<d+g&&(k=100*d/(d+g),l=100*g/(d+g));h.g.style.width=k+"%";h.b.style.width=l+"%";h.X(H("html5-video-info",c),2);d=H("html5-description-text",c);kd(d,e.description);this.o.hide();c=H("html5-info-panel-content",c);yx(c)}};
f.Jq=function(){var a=this.j,b=this.b,c="",c=b.Ca?a.rb+"channel/UC"+b.Ca:a.rb+"user/"+b.th;this.bn(c)};f.bn=function(a){OH(a)};f.nt=function(){this.bn(vH(this.j,this.b))};f.J=function(){this.b=this.j=null;ZH.G.J.call(this)};function $H(){X.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}w($H,X);$H.prototype.Qi=function(a){Av(this.template,"index",a+1)};function aI(a){CC.call(this,a,"ytp-button-expand",Y(0,"YTP_ST_EXPAND"),"ytp-button-collapse",Y(0,"YTP_ST_COLLAPSE"));this.oa([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Y(0,"YTP_PLAYLIST")]])}w(aI,CC);function bI(a){X.call(this,["div","ytp-playlist-tray-controller"]);this.b=new aI(a);this.b.X(this.template.K());S(this,this.b);this.g=new $H;this.g.X(this.template.K());S(this,this.g)}w(bI,X);function cI(a,b){X.call(this,["div","ytp-playlist-tray-item",["span","ytp-playlist-tray-item-index","{{index}}"],["span","ytp-playlist-tray-item-now-playing","\u25b6"],["img","ytp-playlist-tray-item-thumbnail",{src:"{{image}}"}],["span","ytp-playlist-tray-item-title","{{title}}"],["span","ytp-playlist-tray-item-author","{{author}}"]]);this.b=b;this.template.update({index:b+1,title:a.title,author:a.th,image:mB(a.videoId,"default.jpg")})}w(cI,X);
cI.prototype.Qi=function(a){Q(this.element,"ytp-playlist-tray-item-current",this.b==a)};function dI(){pE.call(this,["div","ytp-playlist-tray-tray"]);this.b=null;this.g=[]}w(dI,pE);function eI(a,b){a.b&&a.b.ja("shuffle",a.j,a);a.b=b;a.b.subscribe("shuffle",a.j,a);a.j()}dI.prototype.j=function(){Kh(this.g);this.g=[];ad(this.element);for(var a=0;a<=this.b.tc-1;++a){var b=ps(this.b,a);b&&(b=new cI(b,a),b.Qi(this.b.Ga),this.g.push(b),b.listen("click",u(this.k,this,a)),b.X(this.element))}};dI.prototype.k=function(a){this.H("playvideoat",a)};
dI.prototype.J=function(){Kh(this.g);this.g=[];ad(this.element);dI.G.J.call(this)};function fI(a){fu.call(this,a);var b=pt(a);this.B=a.app.g.j;this.o=!1;this.j=null;this.A=H("ytp-button-playlist",b);R(this.A,"click",u(this.Yo,this));this.g=this.k=null}w(fI,fu);f=fI.prototype;f.ua="playlist";
f.create=function(){fI.G.create.call(this);var a=this.b.jc();this.k=new vv(["div",["ytp-playlist-tray-container","html5-stop-propagation"]]);ot(this.b,this.k.K());this.j=new dI;this.j.subscribe("playvideoat",this.xp,this);this.j.X(this.k.K(),0);this.g=new bI(this.B);this.g.X(H("html5-title",void 0),0);this.g.b.listen("click",this.Yo,this);this.subscribe("fullscreentoggled",this.Sp,this);this.subscribe("videodatachange",this.Up,this);this.subscribe("clearvideooverlays",this.Tp,this);this.Ng();a.subscribe("shuffle",
this.Ng,this)};f.Ng=function(){var a=this.b.ep(),b=this.g.g;null!=a?b.show():b.hide();this.g.g.Qi(a);a=this.g.g;b=this.b.jc();Av(a.template,"length",b.tc)};f.destroy=function(){fI.G.destroy.call(this);var a=this.b.jc();a&&a.ja("shuffle",this.Ng,this);this.ja("fullscreentoggled",this.Sp,this);this.ja("videodatachange",this.Up,this);this.ja("clearvideooverlays",this.Tp,this);cd(this.k.K());this.j.dispose();this.j=null;this.k.dispose();this.k=null;cd(this.g.K());this.g.dispose();this.g=null};
f.load=function(){fI.G.load.call(this);var a=this.b.jc();this.o||(eI(this.j,a),this.Ng(),this.o=!0);for(var a=this.j,b=0;b<a.g.length;b++)a.g[b].Qi(a.b.Ga);EC(this.g.b)};f.unload=function(){fI.G.unload.call(this);this.o=!1;FC(this.g.b)};f.Tp=function(){this.loaded&&this.unload()};f.xp=function(a){this.b.jp(a);this.unload()};f.Yo=function(){this.loaded?this.unload():(this.H("command_clear_video_overlays"),this.load())};f.hide=function(){var a=H("ytp-playlist-tray-info");P(a,"show-more-info");P(a,"show-share")};
f.Sp=function(a){var b=this.b.R().$;this.loaded&&!a&&"detailpage"==b&&this.unload()};f.Up=function(){var a=this.b.jc();eI(this.j,a);this.Ng()};fI.Ja=function(a){return!!a.jc()};fI.prototype.Ja=function(a){return fI.Ja(a)};fI.prototype.Dm=function(a){return!fI.Ja(a)};fI.b=function(a){return fI.Ja(a)?new fI(a):null};fI.prototype.J=function(){this.j.ja("playvideoat",this.xp,this);Rg(this.A);fI.G.J.call(this)};function gI(a,b){this.b=a;this.g=!!b}w(gI,Gh);
function hI(a,b,c){if(c)if(a.g)iI(b,c);else{var d;a.b&&(d=jI(a.b));d&&b.length?(d=[d,"/cache/videos?q=",b.join("&q=")].join(""),Fi(d,{format:"JSON",method:"GET",context:a,timeout:2E3,onSuccess:function(a,d){var h=0;d&&d.ids&&(h=d.ids.length);kI("search","success",{"num-requested":b.length,"num-cached":h});c(d)},onError:function(){kI("search","error",{"num-requested":b.length});c({})},jh:function(){kI("search","timeout",{"num-requested":b.length});lI("__notfound__");c({})}})):c({})}}
function mI(a,b,c){if(c)if(a.g)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.b&&(d=jI(a.b));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Fi(d,{format:"JSON",method:"GET",context:a,timeout:600,onSuccess:function(a,d){c(d);kI("meta","success",{v:b})},onError:function(){kI("meta","error",{v:b});c({})},jh:function(){kI("meta","timeout",{v:b});lI("__notfound__");c({})}})):c({})}}function kI(a,b,c){a={a:"spacecast",module:"cache",request:a,status:b};bc(a,c);HH(Ud(a))}
function iI(a,b){a.length?b({ids:a}):b({})}gI.prototype.J=function(){this.b=null;gI.G.J.call(this)};function nI(a){(this.b=a)&&lI("http://"+a)}w(nI,Gh);function jI(a){var b;(b=(b=oi("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.b?"http://"+a.b:null;return b}nI.prototype.reset=function(){pi("yt-spacecast-uri")};function lI(a){var b=oi("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;li("yt-spacecast-uri",b)};var oI=q("yt.prefs.UserPrefs.prefs_")||{};ba("yt.prefs.UserPrefs.prefs_",oI,void 0);function pI(){SE.call(this)}w(pI,SE);f=pI.prototype;f.md=function(a){var b=SE.prototype.md.call(this,a);return b?b:a};f.Y=function(a,b){var c=pI.G.Y.call(this,a,b);return c?c:(c=pI.G.Y.call(this,a,"card-config"))&&(c=q(c))&&c[b]?c[b]:null};
f.show=function(a){var b=this.md(a);if(b){O(b,Z(this,"active"));var c=qI(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;rI(this,a,c);var d=Z(this,"card-visible"),e=this.Y(a,"card-delegate-show")&&this.Y(b,"card-action");this.b(b,"card-action",a);this.j=a;zx(c);L(u(function(){e||yx(c);sI(c);O(c,d)},this),10)}}};
function qI(a,b,c){var d=c||b,e=Z(a,"card");c=a.od(d);var g=Kc(Z(a,"card")+wg(d));if(g)return a=H(Z(a,"card-body"),g),id(a,c)||(cd(c),a.appendChild(c)),g;g=document.createElement("div");g.id=Z(a,"card")+wg(d);g.className=e;(d=a.Y(d,"card-class"))&&ng(g,d.split(/\s+/));d=document.createElement("div");d.className=Z(a,"card-border");b=a.Y(b,"orientation")||"horizontal";e=document.createElement("div");e.className="yt-uix-card-border-arrow yt-uix-card-border-arrow-"+b;var h=document.createElement("div");
h.className=Z(a,"card-body");a=document.createElement("div");a.className="yt-uix-card-body-arrow yt-uix-card-body-arrow-"+b;cd(c);h.appendChild(c);d.appendChild(a);d.appendChild(h);g.appendChild(e);g.appendChild(d);document.body.appendChild(g);return g}
function rI(a,b,c){var d=a.Y(b,"orientation")||"horizontal",e=a.Y(b,"position"),g=!!a.Y(b,"force-position"),h=a.Y(b,"position-fixed"),d="horizontal"==d,k="bottomright"==e||"bottomleft"==e,l="topright"==e||"bottomright"==e,p,r;l&&k?(r=7,p=4):l&&!k?(r=6,p=5):!l&&k?(r=5,p=6):(r=4,p=7);var t=Qf(document.body),e=Qf(b);t!=e&&(r^=2);var y;d?(e=b.offsetHeight/2-12,y=new F(-12,b.offsetHeight+6)):(e=b.offsetWidth/2-6,y=new F(b.offsetWidth+6,-12));h&&(Cx(c,"position","fixed"),y.y+=Rc(document).y);h=Xf(c);e=
Math.min(e,(d?h.height:h.width)-24-6);6>e&&(e=6,d?y.y+=12-b.offsetHeight/2:y.x+=12-b.offsetWidth/2);var D=null;g||(D=10);h=Z(a,"card-flip");a=Z(a,"card-reverse");Q(c,h,l);Q(c,a,k);D=LE(b,r,c,p,y,null,D);!g&&D&&(D&48&&(l=!l,r^=2,p^=2),D&192&&(k=!k,r^=1,p^=1),Q(c,h,l),Q(c,a,k),LE(b,r,c,p,y));t&&(b=Zf(c),g=Pc(window),c.style.left="",c.style.right=g.width-b.left-b.width+"px");b=H("yt-uix-card-body-arrow",c);g=H("yt-uix-card-border-arrow",c);d=d?k?"top":"bottom":!t&&l||t&&!l?"left":"right";b.setAttribute("style",
"");g.setAttribute("style","");b.style[d]=e+"px";g.style[d]=e+"px";k=H("yt-uix-card-arrow",c);l=H("yt-uix-card-arrow-background",c);k&&l&&(c="right"==d?Xf(c).width-e-13:e+11,e=c/Math.sqrt(2),k.style.left=c+"px",k.style.marginLeft="1px",l.style.marginLeft=-e+"px",l.style.marginTop=e+"px")}
f.hide=function(a){if(a=this.md(a)){var b=Kc(Z(this,"card")+wg(a));b&&(P(a,Z(this,"active")),P(b,Z(this,"card-visible")),zx(b),this.j=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(cd(b.cardMask),b.cardMask=null))}};function tI(a){a.j&&a.hide(a.j)}f.kC=function(a,b){var c=this.md(a);if(c){if(b){var d=this.od(c);if(!d)return;d.innerHTML=b}mg(c,Z(this,"active"))&&(c=qI(this,a,c),rI(this,a,c),yx(c),sI(c))}};
f.od=function(a){var b=a.cardContentNode;if(!b){var c=Z(this,"content"),d=Z(this,"card-content");(b=(b=this.Y(a,"card-id"))?Kc(b):H(c,a))||(b=document.createElement("div"));var e=b;P(e,c);O(e,d);a.cardContentNode=b}return b};function sI(a){var b=a.cardMask;b||(b=document.createElement("iframe"),b.src='javascript:""',ng(b,["yt-uix-card-iframe-mask"]),a.cardMask=b);document.body.appendChild(b);b.style.top=a.offsetTop+"px";b.style.left=a.offsetLeft+"px";b.style.height=a.clientHeight+"px"};function uI(){SE.call(this);this.g={};this.k={}}w(uI,pI);da(uI);f=uI.prototype;f.Ld="clickcard";f.register=function(){UE(this,"click",this.fE,"target");UE(this,"click",this.eE,"close")};f.fE=function(a,b,c){b=qd(c.target,"button");b&&b.disabled||(a=(b=this.Y(a,"card-target"))?Kc(b):a,b=this.md(a),this.Y(b,"disabled")||(mg(b,Z(this,"active"))?(this.hide(a),P(b,Z(this,"active"))):(this.show(a),O(b,Z(this,"active")))))};
f.show=function(a){uI.G.show.call(this,a);var b=this.md(a);if(!sg(b,"click-outside-persists")){var c=ma(a);if(this.g[c])return;b=R(document,"click",u(this.jC,this,a));this.g[c]=b}a=R(window,"resize",u(this.kC,this,a,void 0));this.k[c]=a};f.hide=function(a){uI.G.hide.call(this,a);a=ma(a);var b=this.g[a];b&&(Ng(b),this.g[a]=null);if(b=this.k[a])Ng(b),this.k[a]=null};f.jC=function(a,b){sd(b.target,"yt-uix"+(this.Ld?"-"+this.Ld:"")+"-card")||this.hide(a)};f.eE=function(a){(a=sd(a,Z(this,"card")))&&this.hide(a.cardTargetNode)};function vI(){SE.call(this)}w(vI,pI);da(vI);f=vI.prototype;f.Ld="hovercard";f.register=function(){UE(this,"mouseenter",this.UD,"target");UE(this,"mouseleave",this.WD,"target");UE(this,"mouseenter",this.VD,"card");UE(this,"mouseleave",this.XD,"card")};
f.UD=function(a){if(wI!=a){wI&&(this.hide(wI),wI=null);var b=u(this.show,this,a),c=parseInt(this.Y(a,"delay-show"),10),b=L(b,-1<c?c:200);qg(a,"card-timer",b.toString());wI=a;a.alt&&(qg(a,"card-alt",a.alt),a.alt="");a.title&&(qg(a,"card-title",a.title),a.title="")}};
f.WD=function(a){var b=parseInt(this.Y(a,"card-timer"),10);N(b);this.md(a).isCardHidable=!0;b=parseInt(this.Y(a,"delay-hide"),10);b=-1<b?b:200;L(u(this.nD,this,a),b);if(b=this.Y(a,"card-alt"))a.alt=b;if(b=this.Y(a,"card-title"))a.title=b};f.nD=function(a){this.md(a).isCardHidable&&(this.hide(a),wI=null)};f.VD=function(a){a&&(a.cardRootNode.isCardHidable=!1)};f.XD=function(a){a&&this.hide(a.cardTargetNode)};var wI=null;function xI(a,b,c){this.Gc=a;this.o=!1;this.g=new Lh;this.A=Og(this.Gc,"click",u(this.sA,this),"yt-dialog-dismiss");yI(this);this.j=b;this.k=c}var zI={LOADING:"loading",nE:"content",nK:"working"};function AI(a,b){a.fa()||a.g.subscribe("post-all",b)}function yI(a){a=H("yt-dialog-fg-content",a.Gc);var b=[];Lb(zI,function(a){b.push("yt-dialog-show-"+a)});og(a,b);O(a,"yt-dialog-show-content")}f=xI.prototype;
f.show=function(){if(!this.fa()){document.activeElement&&document.activeElement!=document.body&&document.activeElement.blur();this.b||(this.b=Kc("yt-dialog-bg"),this.b||(this.b=Xc("div"),this.b.id="yt-dialog-bg",this.b.className="yt-dialog-bg",document.body.appendChild(this.b)));var a;t:{var b=window,c=b.document;a=0;if(c){a=c.body;var d=c.documentElement;if(!a&&!d){a=0;break t}b=Pc(b).height;if(Qc(c)&&d.scrollHeight)a=d.scrollHeight!=b?d.scrollHeight:d.offsetHeight;else{var c=d.scrollHeight,e=d.offsetHeight;
d.clientHeight!=e&&(c=a.scrollHeight,e=a.offsetHeight);a=c>b?c>e?c:e:c<e?c:e}}}this.b.style.height=a+"px";yx(this.b);Cg(this.Gc);a=BI(this);CI(a);this.j||R(document,"keydown",u(this.gq,this));a=this.Gc;d=Rh("player-added",this.hA,this);qg(a,"player-ready-pubsub-key",d);this.k&&R(document,"click",u(this.hq,this));yx(this.Gc);O(document.body,"yt-dialog-active");tI(uI.getInstance());tI(vI.getInstance())}};function DI(){var a=Lc("yt-dialog");return hb(a,function(a){return xx(a)})}f.hA=function(){Cg(this.Gc)};
function BI(a){var b=Mc("iframe",null,a.Gc);z(b,function(a){var b=sg(a,"onload");b&&(b=q(b))&&R(a,"load",b);if(b=sg(a,"src"))a.src=b},a);return tb(b)}function CI(a){z(document.getElementsByTagName("iframe"),function(b){-1==eb(a,b)&&O(b,"iframe-hid")})}function EI(){var a=Lc("iframe-hid");z(a,function(a){P(a,"iframe-hid")})}f.sA=function(a){a=a.currentTarget;a.disabled||(a=sg(a,"action")||"",FI(this,a))};
function FI(a,b){if(!a.fa()){a.g.H("pre-all");a.g.H("pre-"+b);zx(a.Gc);tI(uI.getInstance());tI(vI.getInstance());DI()||(zx(a.b),P(document.body,"yt-dialog-active"),Dg(),EI());a.j||Qg(document,"keydown",u(a.gq,a));a.k&&Qg(document,"click",u(a.hq,a));var c=a.Gc;if(c){var d=sg(c,"player-ready-pubsub-key");d&&(Th(d),tg(c,"player-ready-pubsub-key"))}a.g.H("post-all");Uh("yt-ui-dialog-hide-complete",a);"cancel"==b&&Uh("yt-ui-dialog-cancelled",a);a.g&&a.g.H("post-"+b)}}
f.gq=function(a){L(u(function(){27==a.keyCode&&FI(this,"cancel")},this),0)};f.hq=function(a){"yt-dialog-base"==a.target.className&&FI(this,"cancel")};f.fa=function(){return this.o};f.dispose=function(){xx(this.Gc)&&FI(this,"dispose");Ng(this.A);this.g.dispose();this.g=null;this.o=!0};ba("yt.ui.Dialog",xI,void 0);function GI(){SE.call(this);this.g=[];this.j={}}w(GI,SE);da(GI);f=GI.prototype;f.Ld="button";f.Sf=null;f.register=function(){UE(this,"click",this.YD);UE(this,"keydown",this.SD);UE(this,"keypress",this.TD);TE(this,"page-scroll",this.RD)};f.YD=function(a){a&&!a.disabled&&(HI(this,a),this.click(a))};
f.SD=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=II(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=ld(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.hE:"table"==e&&(g=this.gE);g&&JI(this,a,b,c,u(g,this))}}};f.RD=function(){var a=this.j;if(0!=Ob(a))for(var b in a){var c=a[b],d=sd(c.activeButtonNode||c.parentNode,Z(this));if(void 0==d||void 0==c)break;KI(this,d,c,!0)}};
function JI(a,b,c,d,e){var g=xx(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=LI(a,c))?(b=fd(d),"a"==b.tagName.toLowerCase()?window.location=b.href:Sg(b,"click")):h&&MI(a,b):g?27==d.keyCode?(LI(a,c),MI(a,b)):e(b,c,d):(a=mg(b,Z(a,"reverse"))?38:40,d.keyCode==a&&(Sg(b,"click"),d.preventDefault()))}f.TD=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=II(this,a),xx(a)&&c.preventDefault())};function LI(a,b){var c=Z(a,"menu-item-highlight"),d=H(c,b);d&&P(d,c);return d}
function NI(a,b,c){O(c,Z(a,"menu-item-highlight"));b.setAttribute("aria-activedescendant",c.getAttribute("id"))}f.gE=function(a,b,c){var d=LI(this,b);b=zg("table",b);var e=zg("tr",b),e=Mc("td",null,e).length;b=Mc("td",null,b);d=OI(d,b,e,c);-1!=d&&(NI(this,a,b[d]),c.preventDefault())};f.hE=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=LI(this,b);b=gb(Mc("li",null,b),xx);d=OI(d,b,1,c);NI(this,a,b[d]);c.preventDefault()}};
function OI(a,b,c,d){var e=b.length;a=eb(b,a);if(-1==a)if(38==d.keyCode)a=e-c;else{if(37==d.keyCode||38==d.keyCode||40==d.keyCode)a=0}else 39==d.keyCode?(a%c==c-1&&(a-=c),a+=1):37==d.keyCode?(0==a%c&&(a+=c),a-=1):38==d.keyCode?(a<c&&(a+=e),a-=c):40==d.keyCode&&(a>=e-c&&(a-=e),a+=c);return a}function PI(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=Z(a,"menu-mask"),b.iframeMask=c);return c}
function KI(a,b,c,d){var e=sd(b,Z(a,"group")),g=!!a.Y(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=Zf(b);if(mg(b,Z(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}mg(b,"flip")&&(mg(b,Z(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;a.Y(b,"button-has-sibling-menu")?p=Nf(e):a.Y(b,"button-menu-root-container")&&(p=QI(a,b));oc&&!zc("8")&&(p=null);var r;p&&(r=Zf(p),r=new vf(-r.top,r.left,r.top,-r.left));p=new F(0,1);mg(b,Z(a,"center-menu"))&&(p.x-=Math.round((Xf(c).width-Xf(b).width)/
2));d&&(p.y+=Rc(document).y);if(a=PI(a,b))b=Xf(c),a.style.width=b.width+"px",a.style.height=b.height+"px",LE(e,g,a,h,p,r,65),d&&Cx(a,"position","fixed");LE(e,g,c,h,p,r,65)}function QI(a,b){if(a.Y(b,"button-menu-root-container")){var c=a.Y(b,"button-menu-root-container");return sd(b,c)}return document.body}
f.as=function(a){if(a){var b=II(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;this.Y(a,"button-has-sibling-menu")?c=a.parentNode:c=QI(this,a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=PI(this,a);d&&c.appendChild(d);(c=!!this.Y(a,"button-menu-fixed"))&&(this.j[wg(a).toString()]=b);KI(this,a,b,c);Vh("yt-uix-button-menu-before-show",a,b);yx(b);this.b(a,
"button-menu-action",!0);O(a,Z(this,"active"));b=u(this.Eq,this,a,!1);c=u(this.Eq,this,a,!0);d=u(this.qz,this,a,void 0);this.Sf&&II(this,this.Sf)==II(this,a)||RI(this);Uh("yt-uix-button-menu-show",a);Ng(this.g);this.g=[R(document,"click",c),R(document,"contextmenu",b),R(window,"resize",d)];this.Sf=a}}};
function MI(a,b){if(b){var c=II(a,b);if(c){a.Sf=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");zx(c);a.b(b,"button-menu-action",!1);var d=PI(a,b),e=wg(c).toString();delete a.j[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=sd(b,Z(a,"group")),g=[Z(a,"active")];
e&&g.push(Z(a,"group-active"));og(b,g);Uh("yt-uix-button-menu-hide",b);Ng(a.g);a.g.length=0}}f.qz=function(a,b){var c=II(this,a);if(c){b&&(c.innerHTML=b);var d=!!this.Y(a,"button-menu-fixed");KI(this,a,c,d)}};
f.Eq=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=sd(c,Z(this));if(d){var d=II(this,d),e=II(this,a);if(d==e)return}var d=sd(c,Z(this,"menu")),e=d==II(this,a),g=mg(c,Z(this,"menu-item")),h=mg(c,Z(this,"menu-close"));if(!d||e&&(g||h))if(MI(this,a),d&&b&&this.Y(a,"button-menu-indicate-selected")){if(a=H(Z(this,"content"),a))Fc&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],pd(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,
""),b=b.replace(/\u200B/g,""),Fc||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),kd(a,b);SI(this,d,c)}};function SI(a,b,c){var d=Z(a,"menu-item-selected");a=Lc(d,b);z(a,function(a){P(a,d)});O(c.parentNode,d)}function II(a,b){if(!b.widgetMenu){var c=a.Y(b,"button-menu-id"),c=c&&Kc(c),d=Z(a,"menu");c?ng(c,[d,Z(a,"menu-external")]):c=H(d,b);b.widgetMenu=c}return b.widgetMenu}
function HI(a,b){if(a.Y(b,"button-toggle")){var c=sd(b,Z(a,"group"));if(c&&a.Y(c,"button-toggle-group")){var d=a.Y(c,"button-toggle-group"),c=Lc(Z(a),c),e=Z(a,"toggled"),g=mg(b,e);z(c,function(a){a!=b||"optional"==d&&g?P(a,e):O(b,e)})}else pg(b,Z(a,"toggled"))}}f.click=function(a){if(II(this,a)){var b=II(this,a),c=sd(b.activeButtonNode||b.parentNode,Z(this));c&&c!=a?(MI(this,c),L(u(this.as,this,a),1)):xx(b)?MI(this,a):this.as(a);a.focus()}this.b(a,"button-action")};
function RI(a){a.Sf&&MI(a,a.Sf)};function TI(){SE.call(this)}w(TI,SE);da(TI);f=TI.prototype;f.Pc=null;f.gj=null;f.Ld="overlay";f.register=function(){UE(this,"click",this.lt,"target");UE(this,"click",this.hide,"close");UI(this)};
f.lt=function(a){if(!this.Pc||!xx(this.Pc.Gc)){var b=this.md(a);a=VI(b,a);b||(b=a?a.overlayParentNode:null);if(b&&a){var c=!!this.Y(b,"disable-shortcuts")||!1;this.Pc=new xI(a,c);this.gj=b;var d=H("yt-dialog-fg",a);if(d){var e=this.Y(b,"overlay-class")||"",g=this.Y(b,"overlay-style")||"default",h=this.Y(b,"overlay-shape")||"default",e=e?e.split(" "):[];e.push(Z(this,g));e.push(Z(this,h));ng(d,e)}this.Pc.show();UI(this);c||(c=u(function(a){mg(a.target,"yt-dialog-base")&&WI(this)},this),a=H("yt-dialog-base",
a),this.g=R(a,"click",c));this.b(b,"overlay-shown");tI(uI.getInstance());RI(GI.getInstance())}}};function UI(a){a.j||(a.j=Rh("yt-uix-overlay-hide",XI));a.Pc&&AI(a.Pc,function(){var a=TI.getInstance();a.gj=null;a.Pc.dispose();a.Pc=null})}function WI(a){if(a.Pc){var b=a.gj;FI(a.Pc,"overlayhide");a.b(b,"overlay-hidden");a.gj=null;a.g&&(Ng(a.g),a.g=null);a.Pc=null}}
function VI(a,b){var c;if(a)if(c=H("yt-dialog",a)){var d=Kc("body-container");d&&(d.appendChild(c),a.overlayContentNode=c,c.overlayParentNode=a)}else c=a.overlayContentNode;else b&&(c=sd(b,"yt-dialog"));return c}f.od=function(a){return H("yt-dialog-content",a.overlayContentNode||a)};f.hide=function(){Uh("yt-uix-overlay-hide")};function XI(){WI(TI.getInstance())}f.show=function(a){this.lt(a)};function YI(a){this.g=a;this.b=[];this.b.push(Rh("yt-uix-load-more-success",this.j,this))}w(YI,Gh);var ZI=!1;YI.prototype.j=function(){var a={},b=sb(tb(Lc("spacecast-item")),tb(Lc("yt-lockup-video")));z(b,function(b){var c=b.getAttributeNode("data-context-item-id");if(c&&c.value){var c=c.value,g=a[c];g||(g=[],a[c]=g);g.push(b)}});var b=Rb(a),c=v();hI(this.g,b,u(this.k,this,a,c))};
YI.prototype.k=function(a,b,c){b=v()-b;var d=0;c&&c.ids&&($I(),z(c.ids,function(b){z(a[b],function(a){O(a,"spacecast-cached")})}),d=c.ids.length);HH(Ud({a:"spacecast",module:"highlight",count:Rb(a).length,cached:d,"cache-latency":b}));d&&aJ()};function aJ(){if(Qe("INIT_SPACECAST_PROMO")&&!ZI){var a=H("spacecast-promo-overlay");a&&(ZI=!0,TI.getInstance().show(a))}}function $I(){var a=q("yt.player.getPlayerByElement");a&&a("player-api")}
YI.prototype.J=function(){this.g=null;this.b.length&&(Th(this.b),this.b=[]);YI.G.J.call(this)};function bJ(){this.j=this.g=this.b=null}w(bJ,Gh);da(bJ);bJ.prototype.init=function(a){this.b||(this.b=new nI(a||null),this.g=new gI(this.b),this.j=new YI(this.g))};bJ.prototype.J=function(){this.k&&(this.j.dispose(),this.j=null);this.g&&(this.g.dispose(),this.g=null);this.b&&(this.b.dispose(),this.b=null);bJ.G.J.call(this);delete bJ.Db};function cJ(a){fu.call(this,a);this.hc=this.ua="spacecast";this.g=null}w(cJ,fu);f=cJ.prototype;f.Ja=function(){return!!this.b.getVideoData().Ra};function dJ(a){return a.getVideoData().Ra?new cJ(a):null}f.create=function(){cJ.G.create.call(this);var a=this.b.getVideoData().Ra,b=bJ.getInstance();b&&b.init(a);this.g=b;this.load()};f.destroy=function(){cJ.G.destroy.call(this);this.g=null};
f.load=function(){cJ.G.load.call(this);var a=this.b.getVideoData().videoId,b=this.g.g,c=v(),c=u(this.mA,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),kI("meta","prefetch",{v:a})):mI(b,a,c)};f.mA=function(a,b,c){b=v()-b;var d=0;if(c){var e=c.id;c=c.fmt_list;if(e&&c){var g={};z(c,function(a){a.itag&&(g[a.itag.toString()]=!0)});if(c=eJ(this,jI(this.g.b),e,g))d=this.b.getVideoData(),d.aa=c,Sr(d),this.b.dp("auto"),d=1}}hu(this);HH(Ud({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))};
function eJ(a,b,c,d){if(!b)return null;a=a.b.getVideoData();a=Lr(a.ue);a=gb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=wi(b)||"",g=Number(Md(b)[4]||null)||null;return A(a,function(a){var b=K(K(ce(be(ae(we(a.url),"http"),e),g),"orig_host",xi(a.url)),"scid",c);a.url=b.toString();return Ud(a)}).join(",")};function fJ(){var a=dc,b;if(b=bq())t:{if(navigator.plugins&&0<navigator.plugins.length)for(b=0;b<navigator.plugins.length;b++)if(0<=navigator.plugins[b].name.indexOf("NVIDIA 3D Vision")){b=!0;break t}b=!1}if(b)t:{var c=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);if(c&&1<c.length&&4<=c[1]){c=document.createElement("embed");c.setAttribute("id","NvImageDetectionFFID");c.setAttribute("style","visibility: hidden");c.setAttribute("width",25);c.setAttribute("height",25);c.setAttribute("type","image/jps");
$c(document.documentElement,c);c=Kc("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break t}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function gJ(a){DA.call(this);this.b="3D";this.element=new IA(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);S(this,this.element);LA(this.element,2300);this.priority=10;this.C=!0;KA(this.element,1)}w(gJ,DA);gJ.prototype.M=function(){this.element.wb("select")};gJ.prototype.getSelected=function(){return this.element.getSelected()};function hJ(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.b=new EA(a,"ytp-dialog-button",b);S(this,this.b);this.b.oa(b);b=Y(0,"YTP_CLOSE");this.g=new EA(a,"ytp-dialog-button",b);this.g.oa(b);S(this,this.g);this.template.update({content:new rE(Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE",
{BEGIN_LINK:'<a href="//support.google.com/youtube/bin/answer.py?answer=1229982">',END_LINK:"</a>"})),buttons:[this.b,this.g]})}w(hJ,iC);function iJ(a){fu.call(this,a);Ve({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.g=new gJ(tu(this));S(this,this.g);KA(this.g.element,1);this.g.listen("change",this.Hz,this);this.g.listen("select",this.Iz,this);this.j=new hJ(tu(this));S(this,this.j);this.j.b.listen("click",this.Kq,this);this.j.g.listen("click",this.pg,this)}w(iJ,fu);f=iJ.prototype;f.nn="threeDModuleData";
f.ua="threed";f.hc="threed";f.create=function(){jJ(this.b.app,void 0);uu(this,this.g);iJ.G.create.call(this)};f.destroy=function(){vu(this,this.g);jJ(this.b.app,!0);iJ.G.destroy.call(this)};function kJ(a){return iJ.prototype.Ja(a)?new iJ(a):null}f.Ja=function(a){a=a.getVideoData();return!!a.xa||!!a.Nr};function lJ(a,b){if(a.b.getVideoData().Lf!=b)if(ju(a),fJ()){var c=a.b.app,d=Ks(c);d.b.g&&d.b.g.b||(d.b.Lf=!d.b.Lf,Sr(d.b),mJ(d,"r"));jJ(c)}else b&&(ju(a,a.j),KA(a.g.element,1),wu(a))}
f.Kq=function(){ku(this,"/select_3d_mode?video_id="+this.b.getVideoData().videoId)};f.Hz=function(){0==this.g.getSelected()?lJ(this,!0):lJ(this,!1)};f.Iz=function(){wu(this);this.Kq()};function nJ(a){fu.call(this,a);Ve({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.g=new vv(["div","ytp-ypc-clickwrap-overlay",
["h2","header",We("YTP_YPC_START_RENTAL_HEADER")],["div","description",this.b.getVideoData().k.ypc_clickwrap_message],["button","confirm-button",We("YTP_YPC_START_RENTAL_BUTTON")]]);Ky(this.g.K());ot(this.b,this.g.K());S(this,this.g);this.j=this.g.b["confirm-button"]}w(nJ,fu);f=nJ.prototype;f.ua="ypc_clickwrap";f.hc="ypc-clickwrap";f.Ja=function(){return $r(this.b.getVideoData(),"ypc_clickwrap_module")};function oJ(a){return $r(a.getVideoData(),"ypc_clickwrap_module")?new nJ(a):null}
f.create=function(){nJ.G.create.call(this);this.load()};f.load=function(){nJ.G.load.call(this);Jy(this.g.K());R(this.j,"click",u(this.EB,this))};f.unload=function(){Ky(this.g.K());Rg(this.j);nJ.G.unload.call(this)};f.EB=function(){hu(this);this.destroy()};function pJ(a){a=a.k;this.o=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.B=a.ypc_offer_headline;this.A=a.ypc_full_video_message;this.k=a.ypc_offer_id;this.b=a.ypc_buy_url;this.g=a.ypc_item_thumbnail;this.title=a.ypc_item_title;this.j=a.ypc_item_url;this.videoId=a.ypc_vid};function qJ(){X.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["a","ytp-drawer-close-button"],["a","ytp-drawer-open-button"]]);this.g=this.template.b["ytp-drawer-close-button"];My(this,this.g,"click",this.hide);this.b=this.template.b["ytp-drawer-open-button"];My(this,this.b,"click",this.show);this.oa(null);this.hide()}w(qJ,X);qJ.prototype.hide=function(){O(this.element,"ytp-drawer-closed")};
qJ.prototype.oa=function(a){a?(qJ.G.oa.call(this,a),Jy(this.element)):Ky(this.element)};qJ.prototype.show=function(){L(ra(P,this.element,"ytp-drawer-closed"),0)};qJ.prototype.J=function(){Rg(this.g);Rg(this.b);this.b=this.g=null;qJ.G.J.call(this)};function rJ(a,b){Zi.call(this);this.b=new qJ;S(this,this.b);this.g=document.createElement("div");ng(this.g,["html5-stop-propagation","html5-ypc-endscreen"]);this.k=document.createElement("div");O(this.k,"html5-ypc-overlay");this.j=new vv(["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}}"]]);
S(this,this.j);this.o=this.j.b["html5-ypc-purchase"];R(this.o,"click",u(this.A,this));kd(this.k,b.A);var c=b.title;b.j&&(c=["a",{href:b.j,target:"blank_"},b.title]);var d="";b.g&&(d=["img",{src:b.g}]);this.j.update({heading:b.B,title:c,thumbnail_element:d,description:b.description,button_label:b.o});this.X(a)}w(rJ,Zi);rJ.prototype.J=function(){rJ.G.J.call(this);this.o&&Rg(this.o);cd(this.g);cd(this.k);this.k=this.g=this.b=null};rJ.prototype.X=function(a){this.b.X(a);this.b.oa(this.j.K());a.appendChild(this.g)};
function sJ(a){var b=a.j.K();a.g.appendChild(b);a.b.oa(null);Jy(a.g)}rJ.prototype.A=function(){this.H("ypcContentRequest")};function tJ(a){fu.call(this,a);this.j=this.g=null;this.k=NaN}w(tJ,fu);f=tJ.prototype;f.ua="ypc";f.hc="ypc";f.Ja=function(){return $r(this.b.getVideoData(),"ypc_module")};function uJ(a){return $r(a.getVideoData(),"ypc_module")?new tJ(a):null}f.create=function(){tJ.G.create.call(this);this.g=new pJ(this.b.getVideoData());L(u(this.load,this),0)};f.destroy=function(){tJ.G.destroy.call(this);this.g=null};
f.load=function(){if(this.g){tJ.G.load.call(this);var a=this.b.getVideoData();if(this.g.videoId&&!a.za)this.b.$p({video_id:this.g.videoId,ypc_preview:1});else{var b=H("html5-video-container",pt(this.b));this.j=new rJ(b,this.g);this.j.subscribe("ypcContentRequest",this.xx,this);this.g.videoId&&bd(this.b.app.g.F,this.j.k,0);DH(this.b.R())&&(b=new Wt(2147483647,2147483647,{priority:2}),this.Hf(b));this.j.b.show();N(this.k);this.k=L(u(function(){this.j.b.hide()},this),1E4);this.g.videoId?a.za&&hu(this):
sJ(this.j)}}};f.unload=function(){gu(this);Kh(this.j);this.j=null;tJ.G.unload.call(this)};f.Ec=function(a){tJ.G.Ec.call(this,a);sJ(this.j)};f.ld=function(a){tJ.G.ld.call(this,a);a=this.j;Ky(a.g);a.b.oa(a.j.K())};f.xx=function(){if(this.g.b)"embedded"==this.b.R().$?OH(this.g.b):window.location=Wd(this.g.b,{})+"";else if(this.g.k){var a=q("yt.www.watch.player.handleEndPreview");a&&(this.b.isFullscreen()&&uz(this.b.app),a(this.g.k))}};function vJ(a,b,c){this.o=R(a,"click",u(this.F,this));this.A=R(a,"dblclick",u(this.C,this));this.D=b;this.j=c;this.g=new Tv(this.B,200,this);S(this,this.g);this.b=!0;this.k=null}w(vJ,Gh);vJ.prototype.F=function(a){0!=this.g.ta?(this.g.stop(),this.j(a),this.b=!1):(this.k=a,this.g.start(),this.b=!0)};vJ.prototype.C=function(a){this.b&&this.j(a)};vJ.prototype.B=function(){this.D(this.k);this.b=!0};vJ.prototype.J=function(){Ng(this.o);Ng(this.A);vJ.G.J.call(this)};var wJ=new G(1294,630),xJ=new G(1320,870),yJ=new G(1280,720),zJ=new G(854,480),AJ=new G(640,360);function BJ(a){var b;b=lh?new G(window.innerWidth,window.innerHeight):Pc(window);return a.mb?b:a.rd?b.width>=xJ.width&&b.height>=xJ.height?yJ.clone():zJ.clone():b.width>=wJ.width&&b.height>=wJ.height?zJ.clone():AJ.clone()};function CJ(a){X.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.b=new X(["input","html5-modal-panel-input",{type:"text",readonly:"readonly"}]);S(this,this.b);rc&&this.b.K().removeAttribute("readonly");this.b.listen("click",this.j,this);var b=Y(0,"YTP_CLOSE");this.g=new EA(a,"ytp-dialog-button",b);this.g.oa(b);S(this,this.g);this.template.update({content:this.b,buttons:this.g});this.listen("contextmenu",
this.k)}w(CJ,iC);CJ.prototype.k=function(a){a.stopPropagation()};CJ.prototype.j=function(){this.b.K().select()};function DJ(a,b,c){X.call(this,["ul",["html5-context-menu","yt-uix-button-menu"],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url"],Y(0,"YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],Y(0,"YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],Y(0,"YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"],
Y(0,"YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],Y(0,"YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],Y(0,"YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},Y(0,"YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.W=a;this.W.subscribe("internalvideodatachange",this.xq,this);this.j=new Rv(this);this.j.listen(b,"contextmenu",
this.kz);this.b=new Rv(this);this.g=new CJ(c);S(this,this.g);this.g.g.listen("click",this.jz,this);a={cz:this.lz,dz:this.mz,ez:u(this.Cq,this,!1),fz:u(this.Cq,this,!0),hz:this.oz,iz:this.pz,gz:this.nz};for(var d in a)EJ(this,d,a[d]);this.hide()}w(DJ,X);f=DJ.prototype;f.jz=function(){this.W.g.Rg()};function FJ(a,b){var c=a.g;c.b.K().value=b;c.b.K().focus();L(u(c.j,c),100);a.W.g.Rg(a.g)}
function EJ(a,b,c){a.j.listen(a.template.b[Ev[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.hide();a=b.replace("CONTEXT_MENU_","").toLowerCase();PG(this.W,"contextmenu."+a)})}f.xq=function(a,b){wx(this.template.b["html5-context-menu-copy-embed-html"],b.fq)};f.Cq=function(a){FJ(this,Rs(this.W,a))};
f.mz=function(){var a=Qe("EMBED_HTML_TEMPLATE"),b=Qe("EMBED_HTML_URL"),c=this.W.g.Vc(),d=this.W.getVideoData().videoId,b=b.replace(/__videoid__/g,d),a=a.replace(/__url__/g,Ca(b)),a=a.replace(/__width__/g,c.width),a=a.replace(/__height__/g,c.height);FJ(this,a)};f.nz=function(a){GJ(this.W,a.target.getAttribute("href"))};
f.oz=function(){var a=this.W.getVideoData(),b=this.W.R(),c=this.W.g,d=c.Vc(),c=RD(c),d={cr:b.U,csipt:b.aa,ec:"108",feature:b.B,h:c.height,hl:b.A,playerh:d.height,playerw:d.width,ptk:a.L,referrer:b.D,screenh:window.screen.height,screenw:window.screen.width,sdetail:a.fb,sourceid:a.az,vid:b.la,vq:b.vi,w:c.width};sa(d,this.W.ng());(c=Ks(this.W))&&sa(d,c.getDebugInfo(!0));d.videoId&&(d.v=d.videoId,delete d.videoId);b.Pb&&(d.mobile="1");this.W.Zh("streamingerror",d);d=!0;"detailpage"==b.$&&(d=q("yt.player.exports.feedbackStart")("59",
{html5:!0,player:!0}));d&&(this.W.pauseVideo(),window.open(HJ(b,a)))};f.lz=function(){FJ(this,Ss(this.W,!0))};f.pz=function(){at(this.W.g)};f.kz=function(a){a.preventDefault();var b=Hg(a);a=Ig(a);var c=Of(document.body);NE(new F(b,a),this.element,0,null,c,5);this.show()};f.CB=function(a){!1===a.Rc.returnValue||this.hide()};f.show=function(){this.P||(this.b.removeAll(),this.b.listen(window,"blur",this.hide),this.b.listen(document,"click",this.DB),this.b.listen(document,"contextmenu",this.CB),DJ.G.show.call(this))};
f.DB=function(a){2==a.button||a.target&&id(this.element,a.target)||this.hide()};f.hide=function(){DJ.G.hide.call(this);this.b.removeAll()};f.J=function(){this.j.removeAll();this.b.removeAll();this.W.ja("internalvideodatachange",this.xq,this);this.W=null;DJ.G.J.call(this)};function IJ(a,b){ZH.call(this,a,b.R());this.W=b;this.D=2;this.I=this.C=!1;this.k.g.listen("click",this.ky,this);this.k.b.listen("click",this.jy,this);this.W.subscribe("presentingplayerstatechange",this.Qd,this)}w(IJ,ZH);f=IJ.prototype;f.update=function(a){IJ.G.update.call(this,a);JJ(this,a.am);a&&a.Eo&&!this.W.o?(a=this.k,a.b.X(a.element),a.g.X(a.element)):(a=this.k,a.g.dd(),a.b.dd())};f.ni=function(a){var b=mg(this.element,"show-share");this.H("share-click");b||IJ.G.ni.call(this,a)};
f.Mk=function(a){this.H("title-click",a)};f.Ak=function(){var a=mg(this.element,"show-more-info");this.H("info-click");if(a)this.I&&this.W.Nd();else{IJ.G.Ak.call(this);var b=this.W.getPlayerState();this.I=W(b,8)&&!W(b,2);this.W.pauseVideo()}return!a};f.ky=function(){KJ(this,0)};f.jy=function(){KJ(this,1)};f.Qd=function(a){W(a.state,8)&&P(this.element,"show-more-info")};
function KJ(a,b){if(!a.C&&(a.D==b&&(b=2),JJ(a,b),a.b)){if("detailpage"!=a.j.$){a.C=!0;var c={yb:a.b.yb,onSuccess:u(function(){this.C=!1},a),onError:u(function(){this.C=!1},a),Sa:a.j.Sa,Za:a.j.Za};Hq(a.b.videoId,b,c)}a.W.H("RATE_SENTIMENT",{videoId:a.b.videoId,sentiment:b})}}function JJ(a,b){a.D=b;Q(a.element,"sentiment-like",0==b);Q(a.element,"sentiment-dislike",1==b)}f.bn=function(a){GJ(this.W,a)};f.nt=function(){OG(this.W)};
f.J=function(){this.W.ja("presentingplayerstatechange",this.Qd,this);this.W=null;IJ.G.J.call(this)};function LJ(a,b,c,d,e,g,h,k){this.o=[];z(Fb(b),function(b){this.o.push(R(a,b,u(this.Yu,this)))},this);z(Fb(d),function(b){this.o.push(R(a,b,u(this.Xu,this)))},this);this.A=g||null;this.F=c;this.D=h||0;this.j=0;this.k=!1;this.C=e;this.B=k||0;this.b=0;this.g=!1}f=LJ.prototype;f.Yu=function(a){N(this.b);this.b=0;this.j=L(u(this.nB,this,a),this.D)};f.Xu=function(a){N(this.j);this.j=0;this.b=L(u(this.jB,this,a),this.B)};f.nB=function(a){this.g||this.k||(this.k=!0,this.F.call(this.A||m,a))};
f.jB=function(a){!this.g&&this.k&&(this.k=!1,this.C.call(this.A||m,a))};f.dispose=function(){this.g=!0;N(this.j);N(this.b);Ng(this.o)};f.fa=function(){return this.g};function MJ(){X.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.b=this.template.b["ytp-tooltip-body"]}w(MJ,X);MJ.prototype.hide=function(){MJ.G.hide.call(this);Jf(this.b,0)};MJ.prototype.J=function(){ad(this.b);this.b=null;MJ.G.J.call(this)};function NJ(a,b){this.b={};this.Km=a;this.g=b}w(NJ,Gh);
NJ.prototype.Og=function(a,b){var c,d=new LJ(a,"mouseover",function(){if(this.Km){var d=new MJ;d.X(this.Km);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||sg(a,"tooltip")||"";if(s(d)){var g=Yc(d),d=Xc("span");d.className="ytp-text-tooltip";d.appendChild(g)}Av(c.template,"content",d);var g=!!sg(a,"tooltip-below"),d=c,h=Xf(a),h=new F(h.width/2,g?h.height:0),k=Pf(a),h=new F(k.x+h.x,k.y+h.y),g=!!g;Q(d.element,"ytp-tooltip-below",g);if(k=Nf(d.element))var l=Pf(k),p=gg(k),h=Ib(h,new F(l.x+p.left,l.y+p.top));
NE(h,d.element,g?1:0);d.show();var p=Xf(d.b),g=p.width/2*-1,r=Pc(window),t=Rc(document),h=t.x,r=r.width+t.x,t=h,y=r;k&&(k=Xf(k),t=l.x,y=k.width+l.x);k=Pf(d.b);l=k.x+g;k=k.x+p.width+g;l<Math.max(h,t)?g-=l-Math.max(h,t):k>Math.min(r,y)&&(g-=k-Math.min(r,y));Jf(d.b,g)}},["mouseout","mousedown"],function(){c&&(c.hide(),Ih(c),c=null)},this,10,50);this.b[ma(a)]=d};
NJ.prototype.Bf=function(a,b,c){var d=this.g;this.Og(a,function(){if(d){var a="detailpage"==d.$;if(!d.ka||a)return c}else return c;var g=d.ka,h=d.za,a=Xc("div");O(a,"ytp-identity-tooltip");var k=Xc("img");k.src=h;h=Xc("span");g=Yc(We(b,{USER_NAME:g}));$c(h,g);$c(a,k,h);return a})};NJ.prototype.jn=function(a){a=ma(a);Ih(this.b[a]);this.b[a]=null};NJ.prototype.J=function(){this.g=this.Km=null;for(var a in this.b)Ih(this.b[a]);this.b={};NJ.G.J.call(this)};function OJ(a){SG.call(this,a);this.o=this.Ca=this.k=this.O=null;this.bc=this.Ba=!1;this.gb={"watch-small":new G(640,360),"watch-medium":new G(854,480),"watch-large":new G(1280,720)}}w(OJ,SG);OJ.b=50;OJ.g=200;f=OJ.prototype;f.Vg=function(){OJ.G.Vg.call(this);this.app.subscribe("clearvideooverlays",this.iD,this)};
f.Ks=function(){var a=this.app.O.assets;if(a.css&&!cq()){var a={rel:"stylesheet",type:"text/css",href:a.css},b=document.getElementById("www-player-css");a.id="www-player-css";var c=b||document.createElement("link");Nc(c,a);b||document.getElementsByTagName("head")[0].appendChild(c);this.or(OJ.g)}else this.Ba=!0;this.H("templateready")};f.or=function(a){0>=a||cq()?(this.Ba=!0,this.element&&Jy(this.element)):L(u(this.or,this,a-1),OJ.b)};f.Qg=function(){this.Ba||Ky(this.element);OJ.G.Qg.call(this)};
f.Fn=function(a){OJ.G.Fn.call(this,a);a.Vb||this.addClass("hide-info-bar");a.oc&&this.Vf()};
f.ln=function(a){OJ.G.ln.call(this,a);var b=new X(["img",["html5-watermark","html5-stop-propagation","ytp-scalable-icon-shrink","hid"],{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:Y(0,"YTP_WATERMARK")}]);this.O=b.K();b.X(this.element);this.k=new DJ(this.app,this.element,this.j);S(this,this.k);this.k.X(document.body);this.o=new IJ(this.j,this.app);this.o.X(this.element);S(this,this.o);a.yc&&O(this.k.K(),"house-brand")};
f.Mm=function(){this.app.R().Gf?this.Ca||(this.Ca=new vJ(this.g,u(this.Lm,this),u(this.hs,this)),S(this,this.Ca)):OJ.G.Mm.call(this)};f.Ej=function(a){OJ.G.Ej.call(this,a);a?Jy(this.o.K()):Ky(this.o.K())};f.Aj=function(a){OJ.G.Aj.call(this,a);this.o&&this.o.update(a);var b=this.app;if(b.b.Sk?0:b.getVideoData().la||b.b.Dc){if(a=a.la)this.O.src=a;yx(this.O)}};
f.zn=function(){OJ.G.zn.call(this);var a=this.app.R();a.gc||(My(this,this.element,"click",u(this.Cs,this,!1),void 0,void 0,!0),My(this,this.element,"keydown",u(this.Cs,this,!0),void 0,void 0,!0),My(this,this.element,"focus",this.PC,void 0,void 0,!0));a.Pk||(My(this,this.element,"keypress",this.TC),My(this,this.element,"keydown",this.SC));My(this,this.O,"click",this.Bs);this.o.subscribe("title-click",u(this.Bs,this));this.o.subscribe("share-click",u(this.RC,this));this.o.subscribe("info-click",u(this.QC,
this))};
f.TC=function(a){this.app.b.Zf=v();var b=!1,c=a.keyCode;if(179==c||178==c)179==c&&(this.H("playpausetoggled",!0),a.preventDefault(),b=!0),178==c&&(this.app.b.Zf=v(),Es(this.app),a.preventDefault(),b=!0);98==c&&(this.app.af("onBackgroundChange"),b=!0);111==c&&(this.app.af("onTextOpacityChange"),b=!0);119==c&&(this.app.af("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.app.af("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.app.af("onFontSizeDecrease"),b=!0;32==c&&ZG(a)&&($G(this),GG(this.app),a.preventDefault(),
b=!0);48<=c&&57>=c&&(zs(this.app,(c-48)/10*As(this.app)),a.preventDefault(),b=!0);this.app.R().zb()&&this.app.Sh("onKeyPress",{keyCode:c,handled:b})};
f.SC=function(a){var b=!1,c=a.keyCode;if(38==c||40==c||37==c||39==c){b=5;a.ctrlKey&&(b*=2);if(38==c)b=this.app,NG(b,{volume:b.D.volume+5,muted:!1});else if(40==c)b=this.app,NG(b,{volume:b.D.volume-5,muted:!1});else if(37==c){var d=this.app,b=-1*b;zs(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.app,zs(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(zs(this.app,0),b=!0);35==c&&(zs(this.app,Infinity),b=!0);27==c&&(Ug()?(FG(this.app,!1),b=!0):this.k&&this.k.P?(this.k.hide(),b=!0):null!=
this.B.j?(this.B.Ud(),b=!0):this.C.P&&(this.Rg(),b=!0));b&&a.preventDefault();this.app.R().zb()&&this.app.Sh("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.app.R().mb})};f.Bs=function(a){a.preventDefault();OG(this.app)};f.RC=function(){this.app.Uh();if("detailpage"==this.app.R().$){FG(this.app,!1);var a=this.app,b=a.getVideoData();a.H("SHARE_CLICKED",{videoId:b.videoId,listId:b.La,feature:"player_"+a.b.$})}};f.QC=function(){this.app.Uh()};
f.iD=function(){var a=this.o;P(a.element,"show-share");P(a.element,"show-more-info")};f.Cs=function(a){this.bc=a};f.PC=function(){Q(this.element,"ytp-keyboard-focus",this.bc)};f.sm=function(a){OJ.G.sm.call(this,a);this.k&&(a?this.k.X(this.element):this.k.X(document.body),this.k.hide());a&&this.element.focus()};f.Vl=function(){OJ.G.Vl.call(this);if(!this.app.R().Pb){var a=new NJ(this.element,this.app.R());S(this,a);this.j.b=a;var b=Lc("ytp-tooltip-anchor",this.element);z(b,function(b){a.Og(b)})}};
f.Fb=function(){var a=this.app.R(),b=Ks(this.app)&&2==Ks(this.app).getPlayerType();if("detailpage"==a.$&&!b){if(a.b.F)return BJ(a);b=Kc("player");if(!b||a.mb||a.b.g)return OJ.G.Fb.call(this);for(var c in this.gb)if(mg(b,c))return this.gb[c]}return OJ.G.Fb.call(this)};f.ws=function(){var a=this.Fb();this.app.R().Pd&&(a=a.clone(),a.height+=3);return a};f.J=function(){OJ.G.J.call(this);Rg(this.O);this.O=null};function PJ(a){this.k=Math.exp(Math.log(.5)/a);this.g=this.j=0}PJ.prototype.b=function(a,b){var c=Math.pow(this.k,a);this.g=b*(1-c)+c*this.g;this.j+=a};PJ.prototype.o=function(){return this.g/(1-Math.pow(this.k,this.j))};function QJ(a){this.g=window.Float32Array?new Float32Array(a):Array(a);this.b=a-1}QJ.prototype.add=function(a){this.b=(this.b+1)%this.g.length;this.g[this.b]=a};QJ.prototype.forEach=function(a){for(var b=this.b+1;b<this.g.length;b++)a(this.g[b]||0);for(b=0;b<=this.b;b++)a(this.g[b]||0)};function RJ(a,b,c){this.D=0;this.B=a;this.k=b||.5;this.A=c||0;this.C="index";this.g=0;this.j=[]}RJ.prototype.b=function(a,b){SJ(this,"index");this.j.push({index:this.D++,weight:a,value:b});this.g+=a;for(SJ(this,"index");this.g>this.B;){var c=this.g-this.B,d=this.j[0];d.weight<=c?(this.g-=d.weight,this.j.shift()):(this.g-=c,d.weight-=c)}};function TJ(a,b){SJ(a,"value");var c=b*a.g,d=0,e=NaN;a.j.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}
RJ.prototype.o=function(){return this.A?(TJ(this,this.k-this.A)+TJ(this,this.k)+TJ(this,this.k+this.A))/3:TJ(this,this.k)};function SJ(a,b){a.C!=b&&(a.C=b,Bb(a.j,b))};function UJ(a){this.b=a;this.A=this.D=this.F=0;this.M=new QJ(100);this.I=0;this.B=new RJ(16,.6);this.C=new PJ(4);this.b.j?this.j=new PJ(this.b.g):this.j=new RJ(this.b.g,.5,.1);this.g=this.o=this.k=0;a=oi("yt-player-bandwidth")||{};this.j.b(this.b.B,0<a.byterate?a.byterate:13E4);0<a.delay&&this.B.b(1,Math.min(+a.delay,2));0<a.tailDelay&&this.C.b(1,+a.tailDelay);this.A=v()}function VJ(a,b,c){a.b.b||(b=Math.max(b,.05),a.j.b(b,c/b),WJ(a))}
function XJ(a,b,c){a.B.b(1,c);1E4<v()-a.A&&YJ(a);0==a.k&&(a.o=b/1E3);a.k++}function ZJ(a,b,c){isNaN(c)||(a.D+=c);isNaN(b)||(a.F+=b/1E3);WJ(a)}function $J(a,b,c){b=Math.max(b,8192);a.C.b(1,c/b);1E4<v()-a.A&&YJ(a)}function aK(a){var b=a.B.o(),b=isNaN(b)?.5:b;0<=a.b.k&&(b=Math.min(b,a.b.k));return b}function bK(a){return a.C.o()||0}function cK(a){a=a.j.o()*a.b.o-a.b.A;return 0<a?a:1}function dK(a){var b={};b.delay=aK(a);b.tailDelay=bK(a);b.byterate=cK(a);return b}
function YJ(a){var b=dK(a);li("yt-player-bandwidth",b,2592E3);a.A=v()}function WJ(a){var b=v();500<b-a.I&&(a.M.add(1/(1/cK(a)+bK(a))),a.I=b)};function eK(){this.g=17;this.k=-1;this.B=.5;this.C=this.b=this.j=!1;this.A=0;this.o=1};function fK(){this.b=[];this.k={};this.B={};this.C={};this.g=this.o=null;this.j=[];this.A=null}w(fK,Gh);fK.prototype.Iq=function(a){if(this.g){var b;var c=ma(a);b=this.k[c];if(!b)if(this.g){if(b=a(this.g)){a=this.k[c]=b;for(var d in this.o)a.subscribe(d,this.o[d]);a.subscribe("command_log_timing",this.D,this);S(this,b)}}else b=null;b&&b.Ja(this.g)&&!C(this.b,b)&&(b.create(),this.b.push(b),C(this.j,b.ua)&&(b.nc=this.A,b.Hi(!!b.nc)))}};
function gK(a){a.b=gb(a.b,function(a){return!this.g||a.Dm(this.g)?(a.destroy(),!1):!0},a)}function hK(a,b,c){iK(a);a.A=b;a.j=tb(c);z(a.b,function(a){0<=eb(c,a.ua)&&(a.nc=b,a.Hi(!!a.nc))})}function iK(a){z(a.j,function(a){if(a=Ns(this,a))a.nc=null,a.Hi(!1)},a);a.A=null;a.j=[]}function $s(a,b){if(!b)return A(a.b,function(a){return a.ua});var c=Ns(a,b);return c?c.Bj():[]}function Ns(a,b){return B(a.b,function(a){return a.ua==b})}fK.prototype.F=function(a,b){z(this.b,function(c){c.H(a,b)})};
function jK(a){var b={};z(a.b,function(a){sa(b,a.$g())});return b}fK.prototype.D=function(a,b){sa(this.C,a||null);sa(this.B,b||null)};fK.prototype.isAvailable=function(a){return(a=Ns(this,a))?a.ek:!1};function kK(a){this.b={};for(var b=0;b<a.length;b++){var c=a[b];this.b[c.b]=c}}function lK(a){a=Qb(a.b);Ab(a,function(a,c){return a.b-c.b});return a};function mK(a,b,c){this.j=a;this.b=b;this.k=!!c.Ue;this.g=c.qa};function nK(){this.Mc={};this.g=this.Xb().b;this.b=null}f=nK.prototype;f.Xb=function(){var a=this.constructor,b;if(!(b=a.$s)){var c;b=a.MD;var d=[];for(c in b)0!=c&&d.push(new mK(a,c,b[c]));c=new kK(d);b=a.$s=c}return b};f.get=function(a,b){a.j.Xb();this.Xb();var c;c=a.b;var d=oK(this,c);c=this.g[c].k?d[b||0]:d;return c};f.set=function(a,b){a.j.Xb();this.Xb();pK(this,a.b,b)};f.add=function(a,b){a.j.Xb();this.Xb();qK(this,a.b,b)};
f.clear=function(a){a.j.Xb();this.Xb();a=a.b;delete this.Mc[a];this.b&&delete this.b[a]};f.equals=function(a){if(!a||this.constructor!=a.constructor)return!1;for(var b=lK(this.Xb()),c=0;c<b.length;c++){var d=b[c],e=d.b;if(null!=this.Mc[e]!=(null!=a.Mc[e]))return!1;if(null!=this.Mc[e]){var g=11==d.g||10==d.g,h=oK(this,e),e=oK(a,e);if(d.k){if(h.length!=e.length)return!1;for(d=0;d<h.length;d++){var k=h[d],l=e[d];if(g?!k.equals(l):k!=l)return!1}}else if(g?!h.equals(e):h!=e)return!1}}return!0};
function rK(a,b){for(var c=lK(a.Xb()),d=0;d<c.length;d++){var e=c[d],g=e.b;if(null!=b.Mc[g]){a.b&&delete a.b[e.b];var h=11==e.g||10==e.g;if(e.k)for(var e=oK(b,g)||[],k=0;k<e.length;k++)qK(a,g,h?e[k].clone():e[k]);else e=oK(b,g),h?(h=oK(a,g))?rK(h,e):pK(a,g,e.clone()):pK(a,g,e)}}}f.clone=function(){var a=new this.constructor;a!=this&&(a.Mc={},a.b&&(a.b={}),rK(a,this));return a};function oK(a,b){var c=a.Mc[b];return null==c?null:c}function pK(a,b,c){a.Mc[b]=c;a.b&&(a.b[b]=c)}
function qK(a,b,c){a.Mc[b]||(a.Mc[b]=[]);a.Mc[b].push(c);a.b&&delete a.b[b]}function sK(a,b){a.MD=b;a.Xb=function(){return a.$s||(new a).Xb()}};function tK(){nK.apply(this)}w(tK,nK);function uK(){nK.apply(this)}w(uK,nK);sK(tK,{0:{name:"MessageDetails",gf:"logs_proto.MessageDetails"},1:{name:"may_appear_in",Ue:!0,qa:11,type:uK}});sK(uK,{0:{name:"Type",xK:tK,gf:"logs_proto.MessageDetails.Type"},1:{name:"source_type",required:!0,qa:9,type:String},2:{name:"log_type",required:!0,qa:9,type:String}});var vK={gF:0,QG:1,bH:2,fF:3,oF:4,OG:5,$G:6,WG:7,YG:8,ZG:9,UG:10,VG:11,qF:12,pF:13,eF:14,ZE:15,PG:20,dH:21,YE:22,RG:23,cH:24,aH:25,lF:30,eH:31,kF:32,mF:33,TG:40,SG:41,rF:42,sF:43,$E:50,cF:51,hF:52,iF:53,jF:54,VE:55,WE:56,nF:57,dF:58,bF:60,aF:61,XE:70,UE:80,tF:90};function wK(){nK.apply(this)}w(wK,nK);function xK(){nK.apply(this)}w(xK,nK);function yK(){nK.apply(this)}w(yK,nK);function zK(){nK.apply(this)}w(zK,nK);function AK(){nK.apply(this)}w(AK,nK);function BK(){nK.apply(this)}w(BK,nK);
sK(wK,{0:{name:"YtAdType",gf:"video.YtAdType"},1:{name:"ad_namespace",required:!0,qa:14,defaultValue:0,type:{TF:0,rH:1,UF:2,jH:3,CH:4,oH:5,nH:6,jt:7,lH:8,pG:9,iH:10,mH:11,fG:12,oK:13}},2:{name:"ad_format",required:!0,qa:14,defaultValue:0,type:{PF:0,bI:1,$H:2,DI:3,UJ:4,cI:5,XH:6,ZH:7,tK:8,wH:9}},3:{name:"ad_invideo",qa:14,defaultValue:0,type:{RF:0,EG:1,FG:2,GG:3,kH:4,DG:5,qG:6}},4:{name:"invideo_autoplay",qa:14,defaultValue:0,type:{kG:0,vE:1}},5:{name:"ad_instream",qa:14,defaultValue:0,type:{QF:0,
OJ:1,SJ:2,Vm:3,oG:4}},6:{name:"ad_instream_long",qa:8,type:Boolean}});sK(xK,{0:{name:"AdId",gf:"video.AdId"},1:{name:"ad_network",qa:14,defaultValue:1,type:{OTHER:1,SE:2}},2:{name:"ad_network_name",qa:9,type:String},3:{name:"ad_id",required:!0,qa:9,type:String}});
sK(yK,{0:{name:"YtAdEvent",gf:"video.YtAdEvent"},1:{name:"ad_event_type",required:!0,qa:14,defaultValue:0,type:{BF:0,IF:1,CF:2,LF:3,DF:4,EF:5,yF:6,wF:7,fH:8,uF:9,JF:10,KF:11,vF:12,hH:13,MF:14,zF:15,gH:16,AF:17,xF:18,NF:100,OF:101,GF:130,FF:131,HF:132}},2:{name:"wall_time",required:!0,qa:2,type:Number},3:{name:"media_time",required:!0,qa:2,type:Number},4:{name:"logentry_time_usec",required:!0,qa:3,type:String},5:{name:"ad_error_type",qa:14,defaultValue:0,type:vK}});
sK(zK,{0:{name:"YtAdSlot",gf:"video.YtAdSlot"},1:{name:"slot_time",required:!0,qa:2,type:Number},2:{name:"ad_type",required:!0,qa:11,type:wK},3:{name:"ad_events",Ue:!0,qa:11,type:yK},4:{name:"ad_video_duration",qa:2,type:Number},5:{name:"ad_id",qa:9,type:String},6:{name:"slot_index",qa:5,type:Number}});
sK(AK,{0:{name:"YtVideoMetadata",gf:"video.YtVideoMetadata"},1:{name:"content_owner_ids",Ue:!0,qa:9,type:String},2:{name:"video_duration_seconds",qa:2,type:Number},3:{name:"all_content_owner_ids",qa:9,type:String}});
sK(BK,{0:{name:"YtWatchAdInfo",gf:"video.YtWatchAdInfo"},1:{name:"video_id",required:!0,qa:9,type:String},2:{name:"allowed_ads",Ue:!0,qa:11,type:wK},3:{name:"ad_slots",Ue:!0,qa:11,type:zK},4:{name:"ps",qa:9,type:String},5:{name:"el",qa:9,type:String},6:{name:"country",qa:9,type:String},7:{name:"feature",qa:9,type:String},8:{name:"blocked",qa:8,type:Boolean},9:{name:"plid",qa:9,type:String},10:{name:"video_metadata",qa:11,type:AK},11:{name:"experiment_id",Ue:!0,qa:3,type:String},12:{name:"ad_flags",
qa:4,type:String},13:{name:"all_experiment_ids",qa:9,type:String},14:{name:"no_ads_returned",qa:8,type:Boolean},15:{name:"ad_errors",Ue:!0,qa:14,defaultValue:0,type:vK},16:{name:"ad_slot_with_event",qa:11,type:zK}});function CK(a,b){jt.call(this,a,b)}w(CK,jt);f=CK.prototype;f.Jg=function(){ys(this.app,!0,this.b);this.app.Nd(this.b)};f.pauseVideo=function(){this.app.pauseVideo(this.b)};f.Ns=function(a,b,c){ys(this.app,!0,this.b);var d=this.app,e=this.b;d.sf(d.getCurrentTime()+a,b,c,e)};f.Kg=function(a,b){ys(this.app,!0,this.b);this.app.sf(a,b,void 0,this.b)};f.yk=function(){Gs(this.app,this.b)};function DK(a){this.app=a;fu.call(this,a.Eb)}w(DK,fu);DK.prototype.getAdState=function(){return-1};var EK={$I:"red",WHITE:"white"};var FK={sE:"0",vJ:"1",MG:"2"};var GK={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},HK={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},IK={adunit:{Vb:!1,Fp:!1,Dc:!1},detailpage:{oc:!0}};IK.embedded={Gf:Tg(),Dc:!0};IK.profilepage={qh:!0};
var JK="blogger books docs google-live play picasaweb".split(" "),KK={blazer:{wK:"youtube_mobile",xc:!1,BE:!1,aj:!1,Nn:!1,Pb:!0,oc:!1,Ck:!0,Qb:!1,Tb:!1,gc:!0},blogger:{xe:!1,ig:!1,dc:!1,Vb:!1,Ic:!1,oc:!1,Rf:!1,Dc:!1,Xc:"bl"},books:{xe:!1,ig:!1,dc:!1,Vb:!1,Ic:!1,oc:!0,Rf:!1,Dc:!1,Xc:"gb"},docs:{xe:!1,ig:!1,dc:!1,Vb:!1,Ic:!1,oc:!1,Rf:!1,Dc:!1,Xc:"gd"},"google-live":{xe:!1,ig:!1,dc:!1,Vb:!1,Ic:!1,oc:!1,Rf:!1,Dc:!1,Xc:"gl"},play:{Vb:!1,Ic:!1,oc:!1,Dc:!1,Xc:"gp"},"native":{aj:!1,Nn:!1,Qb:!0},picasaweb:{xe:!1,
ig:!1,dc:!1,Vb:!1,Ic:!1,oc:!1,Rf:!1,Dc:!1,Xc:"pw"},touch:{aj:!1,Nn:!1,gc:!0}};
function LK(a){a=Zb(a);this.j={};this.b=new Kq(a.fexp);this.wa=a.forced_experiments||null;this.origin=kq(this.origin,a.origin);this.ye=kq(this.ye,a.loaderUrl);if("adunit"!=a.el||df(this.ye))this.$=a.el||this.$;var b=IK[this.$];b&&sa(this,b);b=a.ps;if(!C(JK,b)||this.zb())this.ob=b||this.ob;(b=KK[this.ob])&&sa(this,b);this.yc=this.zb()&&C(JK,this.ob);this.vg=!(!aq().defaultPlaybackRate||nc||jh||ih||kh);if(a.use_media_volume)b=!1;else{var b=aq(),c=b.muted;b.muted=!c;b=b.muted!=c}this.Gp=b;this.lp=kh;
if(jh||ih||mh)this.po="blazer"!=this.ob;this.Lp="0"!=a.add_player_event_listeners;b=hq(this.Gf,a.fs);this.Gf="detailpage"==this.$?b:b&&Tg();this.Sa=kq(this.Sa,a.authuser);this.Li=iq(this.Li,a.autohide,mE);this.xc=hq(this.xc,a.autoplay);this.Nl=hq(this.Nl,a.autoplayoverride);this.color=iq(this.color,a.color,EK);this.C=kq(this.C,a.content_v);this.Ol=iq(this.Ol,a.controls,FK);this.Pk=hq(this.Pk,a.disablekb);this.Oi=hq(this.Oi,a.edu_mode);this.g=kq(this.g,a.eurl);this.F=kq(this.F,a.framer);this.pa=iq(this.pa,
a.iv_load_policy,Tp);this.A=kq(this.A,a.hl);this.Op=hq(this.Op,a.bwlogging);this.Pb=hq(this.Pb,a.is_html5_mobile_device);this.rd=hq(this.rd,a.player_wide);this.Pp=hq(this.Pp,a.is_playground);this.$h=hq(this.$h,a.privembed);this.Rp=hq(this.Rp,a.loop);this.Jf=hq(this.Jf,a.modestbranding);"red"!=this.color&&(this.Jf=!1);this.Qp=hq(this.Qp,a.on3g);this.Za=kq(this.Za,a.pageid);this.vi=oq(this.vi,a.vq);this.wk=kq(this.wk,a.playerapiid);this.pi=hq(this.pi,a.playsinline);this.Lk=hq(this.Lk,a.playonclick);
this.U=kq(this.U,a.cr);this.dc=hq(this.dc,a.logwatch);this.ok=hq(this.ok,a.canplaylive);this.Vb=hq(this.Vb,a.showinfo);this.Ic=hq(this.Ic,a.rel);this.oc=hq(this.oc,a.enablesizebutton);this.Ll=hq(this.Ll,a.ss);this.I=kq(this.I,a.theme);this.Qb=hq(this.Qb,a.use_native_controls);this.Tb=!ih&&hq(this.Tb,a.svt);this.zb()&&(this.mk=hq(this.mk,a.retryneterr),this.Sk=hq(this.Sk,a.nologo));this.Qb&&(this.Jf=!0,this.pa=3);this.Pi=hq(this.Pi,a.ssl);if(this.oi=hq(this.oi,a.ssl_stream))this.Pi=!0;if(this.gc=hq(this.gc,
a.use_tablet_controls))this.I="dark",this.Li="blazer"==this.ob?"3":"1";b=this.og;if(c=a.video_container_override){var d=c.split("x");2==d.length&&(c=parseInt(d[0],10),d=parseInt(d[1],10),b=isNaN(c)||isNaN(d)||0>=c*d?b:new G(c,d))}this.og=b;this.Ha=kq(this.Ha,a.attrib);this.la=kq(this.la,a.sk);this.protocol=this.Pi?"https":"http";this.Pd="0"!=this.Ol;this.Wj=hq(this.Pd,a.store_user_volume);this.Rd=hq(this.Rd,a.use_media_volume);if(b=a.BASE_YT_URL)c=(c=b&&b.match(Ce))?c[0]:"",d=$e(b)?b:"",c!=d&&Ue(Error(b+
" behavior is not consistent")),d&&(this.rb=d);if(c=b=a.gdatabaseurl)c=!!b&&-1!=b.search(Fe),d=$e(b),c!=d&&Ue(Error(b+" behavior is not consistent")),c=d;c&&(this.Ro=b);MK(this,a);b=!this.b.da;("detailpage"==this.$||b&&"unknown"==this.g||"undefined"==this.g)&&delete this.g;this.Dc=this.Jf&&!this.Qb?!this.Vb:this.Vb||this.Pd?!1:this.Dc;b=this.xc||"detailpage"==this.$;c=!0;this.Pb&&(c=!1);lr("nintendo wiiu")&&(c=!1);this.Nl&&(c=!0);this.Ph=b&&c;this.j=a}w(LK,Gh);f=LK.prototype;f.vf=null;f.Lp=!0;
f.Gf=!0;f.Sa="";f.Li="2";f.xc=!1;f.Nl=!1;f.rb="/";f.Ro="//gdata.youtube.com/";f.BE=!0;f.color="red";f.Ol="1";f.rf="web";f.se="html5";f.Pk=!1;f.Oi=!1;f.aj=!0;f.Nn=!0;f.vg=!1;f.Gp=!1;f.$="detailpage";f.Op=!1;f.yc=!1;f.Pb=!1;f.mb=!1;f.Xq=!1;f.rd=!1;f.xe=!0;f.Pp=!1;f.$h=!1;f.ig=!0;f.Zf=0;f.Cg=!1;f.ye="";f.Rp=!1;f.Jf=!1;f.vi=Ep;f.wk="";f.Qp=!1;f.Za="";f.ob=null;f.pi=!1;f.lp=!1;f.mk=!1;f.Ph=!1;f.dc=!1;f.ok=!0;f.Pd=!0;f.Wj=!0;f.Rd=!1;f.Vb=!0;f.Fp=!0;f.Ic=!0;f.qh=!1;f.oc=!1;f.Rf=!0;f.Dc=!1;f.Ll=!1;f.Sk=!1;
f.po=!1;f.Qb=!1;f.Tb=!0;f.Pi=!1;f.oi=!1;f.gc=!1;f.Yc=null;f.og=null;f.yq=null;f.Cf=null;f.Pa=null;f.gi=null;f.Xc="yt";f.Lk=!1;function Qs(a,b){a.xa=b.get("d",a.xa);a.ca=b.get("f",a.ca)}
function MK(a,b){if(b){var c;(c=b.adformat)||(c=(c=b.attrib)&&c in GK&&c in HK?HK[c]+"_"+GK[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.zb()||d)&&(a.k=c,a.j.adformat=b.adformat,d||(a.$="adunit"))}}a.vf=(b&&b.adpings?ui(b.adpings):null)||a.vf;c=b.agcid;a.Ia=c;a.j.agcid=c;c=b.feature;a.B=c;a.j.feature=c;c=b.referrer;a.D=c;a.j.referrer=c;a.Ra=b.q;a.M=kq(a.M,b.cbrand);a.L=kq(a.L,b.cbr);a.N=kq(a.N,b.cbrver);a.rf=kq(a.rf,b.c);a.se=kq(a.se,
b.cver);a.O=kq(a.O,b.cmodel);a.P=kq(a.P,b.cnetwork);a.V=kq(a.V,b.cos);a.T=kq(a.T,b.cosver);a.o=kq(a.o,b.cplatform);a.b.g=hq(a.b.g,b.flexwatch_enabled);a.dc=hq(a.dc,b.logwatch);a.Ba=jq(a.Ba,b.user_age);a.za=kq(a.za,b.user_display_image);a.ka=kq(a.ka,b.user_display_name);a.Ca=kq(a.Ca,b.user_gender);a.da=kq(a.da,b.eventid);a.aa=kq(a.aa,b.csi_page_type);a.Ck=hq(a.Ck,b.enablecsi)}
function NK(a){var b={};b.c=a.rf;a.se&&(b.cver=a.se);a.o&&(b.cplatform=a.o);a.M&&(b.cbrand=a.M);a.O&&(b.cmodel=a.O);a.P&&(b.cnetwork=a.P);a.L&&(b.cbr=a.L);a.N&&(b.cbrver=a.N);a.V&&(b.cos=a.V);a.T&&(b.cosver=a.T);return b}
function OK(a,b){switch(b.T){case 38:var c=b.videoId.indexOf(":");return Wd("//play.google.com/books/volumes/"+b.videoId.slice(0,c)+"/content/media",{aid:b.videoId.slice(c+1),sig:b.Xj});case 30:return c="//docs.google.com/",a.rb!=LK.prototype.rb&&(c=a.rb),Wd(c+"get_video_info",{docid:b.videoId,authuser:b.Sa,authkey:b.xb,eurl:a.g});case 33:return Wd("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});default:c={html5:"1",video_id:b.videoId,cpn:b.Da,eurl:a.g,ps:a.ob,el:a.$,hl:a.A,list:b.La,
agcid:a.Ia,sts:16265};a.wa&&(c.forced_experiments=a.wa);b.C?c.vvt=b.C:b.B&&(c.access_token=b.B);a.k&&(c.adformat=a.k);b.Ba&&(c.iv_load_policy=b.Ba);b.lg&&(c.autoplay="1");b.vm&&(c.noiba="1");b.wm&&(c.mdx="1");b.xm&&(c.utpsa="1");b.ac&&(c.is_fling="1");var d;d=(d=a.gi)?new G(d.clientWidth,d.clientHeight):new G(Number.NaN,Number.NaN);d.width&&(c.width=d.width);d.height&&(c.height=d.height);b.za&&(c.ypc_preview="1");b.re&&(c.splay="1");a.C&&(c.content_v=a.C);b.Yl&&(c.livemonitor=1);a.Sa&&(c.authuser=
a.Sa);a.Za&&(c.pageid=a.Za);a.da&&(c.ei=a.da);a.oi&&(c.ssl_stream="1");cf()&&(c.iframe="1");b.Oh&&(c.tst=b.Oh);sa(c,NK(a));return Wd(a.rb+"get_video_info",c)}}function PK(a){return a.Oi?"//s.youtubeeducation.com/":a.ig?"//s.youtube.com/":"//video.google.com/"}function QK(a){return PK(a)+(a.b.M?"api/stats/qoe":"stream_204")}function RK(a){return a.D?a.D.slice(0,128):""}function vH(a,b,c,d){return FH(a,b.videoId,b.La,c,d)}
function FH(a,b,c,d,e){b={v:b,list:c};d&&sa(b,d);a=Wd(a.protocol+"://"+("www.youtube-nocookie.com"==window.location.host||a.Oi?"www.youtube.com":window.location.host)+"/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=ui(b);for(var g in e)b[g]=e[g];e=d+Ud(b);a=a+e}return a}
function HJ(a,b){if("play"!=a.ob)return"https://support.google.com/youtube/?p=report_playback";var c={contact_type:"playbackissue",html5:1,plid:b.yb,ei:b.A,v:b.videoId,p:"movies_playback"};b.b&&(c.fmt=b.b.id);b.Da&&(c.cpn=b.Da);b.T&&(c.partnerid=b.T);return Wd("//support.google.com/googleplay/",c)}
function SK(a){var b={};if(!a.Pa)return b;a.Pa.webkitDecodedFrameCount&&(b.hmewdfc=a.Pa.webkitDecodedFrameCount,b.hmewdrop=a.Pa.webkitDroppedFrameCount,b.hmewvdbc=a.Pa.webkitVideoDecodedByteCount,b.hmewadbc=a.Pa.webkitAudioDecodedByteCount);a.Pa.mozParsedFrames&&(b.hmempf=a.Pa.mozParsedFrames,b.hmemdf=a.Pa.mozDecodedFrames,b.hmempresented=a.Pa.mozPresentedFrames,b.hmempainted=a.Pa.mozPaintedFrames,b.hmempaintdelay=a.Pa.mozPaintDelay);return b}
function TK(a){var b=q("yt.www.watch.activity.getTimeSinceActive",window);if("detailpage"==a.$&&b)return b();b=0;a.Zf&&(b=v()-a.Zf);return b}function DH(a){return"leanback"==a.$||a.yc||!a.Ic&&!a.qh?!1:!0}function et(a){return"detailpage"!=a.$&&"embedded"!=a.$&&"profilepage"!=a.$?!1:!0}
f.zb=function(){var a=document.location.toString(),b=!!a&&-1!=a.search(De),c=$e(a);b!=c&&Ue(Error(a+" behavior is not consistent"));a=c&&!cf();if(c=c&&cf()){var c=this.ye,b=!!c&&-1!=c.search(Le),d=$e(c)||af(c,Ye);b!=d&&Ue(Error(c+" behavior is not consistent"));c=d}return c||a};function bE(a){return lh&&lr("crkey")||"tv"==a.o}f.J=function(){this.gi=this.Pa=null;LK.G.J.call(this)};function UK(a,b){this.b=a;this.va=b;this.g=1}function VK(a,b,c,d){d/=a.g;var e=bK(a.b)+1/cK(a.b),g;g=Math.max(.9*(d-3),aK(a.b)+8192*e);c=g/e/(b+c);c=Math.max(a.va.A,Math.min(a.va.N,c));c=Math.min(c,d);a=Math.max(a.va.F,Math.ceil(a.va.A*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function WK(a){if(a.va.P)return 1/(bK(a.b)+1/cK(a.b));var b=cK(a.b);a=aK(a.b)+1048576*bK(a.b);return b*Math.min(1,1048576/(b*a))}function XK(a){return WK(a)/a.g};function IG(a,b,c){this.b=a;this.video=b;this.g=c};function YK(a,b,c,d){this.N=a;this.va=b;this.B=c;this.D=d;this.j=this.C=this.b=null;this.o="i";this.I=-1;this.A=this.g=null;this.k=[];this.F=this.M=0;this.L=null}function ZK(a,b,c){"m"==c&&Gp(a.b)&&!Gp(b)&&(c="a");if("m"==c&&Gp(b))return a.o=c,$K(a,b),a.j=aL(a),new IG(a.g,a.j,c);var d=a.b.equals(b);if("m"==a.o&&Gp(a.b)&&d)return null;"r"!=c||d||(a.I=-1);$K(a,b);b=aL(a);if("r"==c&&!d&&b==a.j)return a.j=b,new IG(a.g,b,c);a.o=c;return null}function bL(a,b){cL(a);a.L=b;a.F=v();a.I=-1;$K(a,a.b)}
function cL(a){return!!a.F&&9E4>=v()-a.F}function aL(a){if(Gp(a.b)||!(8E3>v()-a.I)){a.F&&!cL(a)&&(a.F=0,$K(a,a.b));var b=XK(a.N);if(Gp(a.b))a.A=a.B.b[a.k[a.k.length-1].id];else{for(var c=Math.min(a.M,a.k.length-1),d=b/1.05-a.g.info.ra;0<c&&!(a.k[c].ra<=d);c--);for(b=b/a.va.B-a.g.info.ra;c<a.k.length-1&&!(a.k[c+1].ra>=b);c++);a.M=c;a.A=a.B.b[a.k[c].id]}}return a.A}function dL(a){var b=a.o;a.o="a";a.I=v();return new IG(a.C,a.j,b)}
function $K(a,b){a.b=b;var c=a.D.g;if(!Gp(a.b)&&(c=gb(c,function(a){return a.ra>this.va.ra?!1:!this.B.b[a.id].o},a),cL(a))){var c=gb(c,function(a){return a.id!=this.L.id},a),d=gb(c,function(a){return"140"==a.id||"134"==a.id||"243"==a.id});d.length&&(c=d)}c.length||(c=a.D.g);c=gb(c,a.b.k,a.b);c.length||(c=[a.D.g[0]]);c.sort(function(a,b){return a.ra-b.ra});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.ra*a.va.B>g.ra&&(qb(c,e.video.width<=g.video.width?d-1:d),d--)}a.k=c}
function eL(a){var b=B(a.D.b,function(a){return!!a.k&&a.k.b});b||(b=a.D.b[0]);a.g=a.B.b[b.id]}function fL(a){var b=XK(a.N)/1.05-a.g.info.ra,c=mb(a.k,function(a){return this.va.ai&&this.va.ai<oo[a.video.b]?!1:a.ra<b},a);0>c&&(c=0);a.M=c;a.A=a.B.b[a.k[c].id]};function gL(a,b){this.va=a;this.j=b;this.pendingRequests_=[];this.b=[];this.k=this.g=null;this.o=0;this.ra=b.info.ra;this.B=this.A=this.C=!1}function hL(a,b){a.pendingRequests_.push(b);a.g=cb(b.info.b);a.o+=Qo(b.info)}function iL(a){for(;a.pendingRequests_.length&&5==a.pendingRequests_[0].state;){var b=a.pendingRequests_.shift();a.o-=Qo(b.info);a.o+=cb(b.k).buffer.byteLength;z(b.k,a.F,a)}}
gL.prototype.F=function(a){if(4==a.info.type){var b=a.info.b.zq(a);a.info==this.g&&(this.g=cb(b).info);z(b,this.F,this)}else if(3==a.info.type){var c=a.info.b.info;if(this.va.O&&0==a.info.j&&1==c.g){var b=Uo(a),c=!!c.b,d=Wo(b,0,1836019558);d&&(d=Wo(b,d.b+d.g,1953653094))&&(d=Wo(b,d.b+d.g,1953658222))&&Vo(b,c,d.b+8)}this.b.push(a)}};
function jL(a,b){if(a.va.I?a.b.length&&!kL(a):a.C)return a.b[0].Z;var c=a.j.info.b;if(a.b[0].info.o>=b)return null;var d;for(d=1;d<a.b.length;d++){var e=a.b[d].buffer!=a.b[d-1].buffer;if(a.b[d].info.o>b||e)break}d--;var e=a.b[d].Z.end,g=a.b[d].info.C-b;if(c&&1<g){c=Math.floor((b-a.b[d].info.o)/a.b[d].info.D*a.b[d].info.g);if(0==c)return null;e=a.b[d].Z.start+c-1}return new so(a.b[0].b?0:a.b[0].Z.start,e)}
function lL(a){a.pendingRequests_.length?a.g=cb(a.pendingRequests_[a.pendingRequests_.length-1].info.b):a.b.length?a.g=cb(a.b).info:a.g=a.k}function mL(a,b){var c=nL(a,b);if(0<=c)return c;a.g=a.j.xi(b).b[0];a.k&&a.k.B&&(a.k=null);return a.g.startTime}
function KG(a,b){oL(a);if(a.j.info.video&&a.k&&!a.k.A&&b){var c=kb(a.b,function(a){return a.info.A});a.b=wb(a.b,0,c+1);a.C=!0}else a.b=[];if(a.b.length)for(a.o=a.b[0].buffer.byteLength,c=1;c<a.b.length;c++)a.b[c].buffer!=a.b[c-1].buffer&&(a.o+=a.b[c].buffer.byteLength);else a.o=0}function pL(a){var b=!1,c;for(c=0;c<a.pendingRequests_.length;c++)if(7==a.pendingRequests_[c].state){b=!0;break}if(b){for(;c<a.pendingRequests_.length;)a.D(a.pendingRequests_.pop());lL(a)}}
function qL(a){return hb(a.b,function(a){return a.info.A})}function rL(a){return!!a.k&&a.k.B}function sL(a){var b=[];a.k&&b.push(a.k);z(a.b,function(a){b.push(a.info)});z(a.pendingRequests_,function(a){z(a.info.b,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.g&&a.g!=cb(b)&&b.push(a.g);return b}function kL(a){if(!a.g||!a.g.g)return!1;a=sL(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].o-a[b-1].C)))return!1;return!0}
function nL(a,b){if(kL(a)){var c;t:{c=sL(a);for(var d=0;d<c.length;d++)if(c[d].o<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break t}c=null}if(c)return c.startTime}return NaN}function tL(a){return hb(a.pendingRequests_,function(a){return 1==a.timing.priority&&3<=a.state})}function uL(a){return!!(a.g&&a.j.mc()&&a.g.b!=a.j&&a.g.b.info.ra<a.j.info.ra)}function vL(a,b){return!!(a.g&&!a.g.B&&a.g.C<b)}gL.prototype.D=function(a){Io(a.info.b[0])||a.dispose();this.o-=Qo(a.info)};
function oL(a){z(a.pendingRequests_,a.D,a);a.pendingRequests_=[];a.g=null};function wL(a,b,c){this.va=a;this.info=b;this.timing=c;this.state=1;this.b=this.k=null;this.F=NaN;this.A=this.j=0;this.g=NaN;this.B=null;this.D="";this.o=null;this.C=0}wL.g=!1;wL.b=1E4;f=wL.prototype;f.getErrorCode=function(){return this.o};function xL(a){var b;b=a.timing;b={rt:((v()-b.j)/1E3).toFixed(2),lb:b.g,pt:(b.M/1E3).toFixed(2),pb:b.I};b.shost=wi(a.D)||"";a.C&&(b.rc=a.C.toString());return b}
f.start=function(){var a=1==this.state,b=6==this.state;1==this.state||4==this.state||b&&yL(this);zL(this,2);if(b){if(2>this.j){this.j++;a=wL.b*(.5+Math.random());1==this.j&&(a=2E3);L(u(this.rm,this),a);return}b=this.info.j;if(!(this.F<=b.j)){b.g++;b.j=Fo-1;var c=ef(b.b);b.b=xo(c,"cmo",encodeURIComponent("pf="+b.g));c.match("c\\.youtube\\.com/")&&(b.b+="&cmo=sensitive_content%3Dyes")}this.j=0}a?this.rm():L(u(this.rm,this),0)};
f.rm=function(){if(!this.fa()){this.F=Fo++;var a;a=Po(this.info);a=xo(a,"keepalive","yes");this.j&&(a=xo(a,"playerretry",this.j.toString()));this.D=a;this.b=new XMLHttpRequest;this.b.open("GET",a);this.b.responseType="arraybuffer";this.b.withCredentials=!0;var b=u(this.Ku,this);this.b.addEventListener("load",b,!1);this.b.addEventListener("error",b,!1);this.b.send();this.A=0;b=this.timing;b.j=v();b.o=b.j;b.g=0;b.D=!1;b.F=!1;b.k=0;b.C=dK(b.b);AL(b);b.M=b.B-b.j;this.b.addEventListener("progress",u(this.Lu,
this),!1);0<this.va.j&&(this.g=L(u(this.vo,this),this.va.j));vo(a,"itag");vo(a,"range");Math.round(this.info.b[0].o);Math.round(cb(this.info.b).C);v()}};f.Lu=function(a){if(!this.fa()){this.b&&(this.C=this.b.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.j&&4E12>c?c:v();20>c-b.o||BL(b,c,a);b=this.timing;b.g>b.L&&8192<b.g&&3>this.state&&zL(this,3)}};
f.Ku=function(a){var b=this.b;if(!this.fa()&&a.target==b){this.g&&(N(this.g),this.g=NaN);this.C=b.status;a=!1;400<=b.status?(a=!0,this.o="net.badstatus"):null==b.response&&(a=!0,this.o="net.connect");if(!a){var b=b.response,c;t:{if(2048>b.byteLength&&(c=String.fromCharCode.apply(String,new Uint8Array(b)),bf(c)))break t;c=""}if(c){c=wo(c,"keepalive");c=wo(c,"playerretry");b=this.info;if(b.g){var d=b.g;if(d){var e=d.split("?");if(0<e.length)for(var g=e[0].split("/"),d=0;d<g.length;d+=2)c=wo(c,g[d]);
if(1<e.length)for(e=e[1].split("&"),d=0;d<e.length;d++)c=wo(c,e[d].split("=")[0])}}c=wo(c,"range");b.j.b=c;zL(this,4)}else if(this.info.Z&&b.byteLength!=this.info.Z.length)a=!0,this.o="fmt.unparseable";else{c=this.info.b;1!=c.length||c[0].Z||(d=c[0],e=uo(0,b.byteLength),d=new Ho(d.type,d.b,e,d.k,d.startTime,d.duration,d.j,e.length,d.B),c[0]=d);for(var d=[],e=0,h=!1,g=!1,k=0;k<c.length;k++){var l=c[k],p=b,r=uo(e,l.g),t=!1;if(1==l.type)b.slice?p=b.slice(e,e+l.g):(h=new Uint8Array(b,e,e+l.g),p=(new Uint8Array(h)).buffer),
r=uo(0,l.g),h=!0;else if(3==l.type||4==l.type)t=h&&!g,g=!0;d.push(new ap(l,p,r,t));e+=l.g}this.k=d;c=this.timing;d=v();b=b.byteLength;c.D||(c.D=!0,d=d>c.j&&4E12>d?d:v(),BL(c,d,b),e=(d-c.j)/1E3,c.F||!(8192<=c.g)||c.b.b.b||VJ(c.b,e,b),8192<=c.g&&$J(c.b,b,c.k),ZJ(c.b,d-c.j,c.g),CL(c));v();zL(this,5)}}a&&(yL(this),zL(this,6))}};function yL(a){if(2>a.j)a=!0;else{var b=a.info.j;a=!(a.F>b.j&&1<=b.g)}return a}function zL(a,b){a.state=b;4<=a.state&&CL(a.timing);a.B&&a.B(a)}
f.vo=function(){this.g=NaN;if(!this.fa()){var a=v(),b=!1;if(8192<=this.timing.g){var c=this.timing.B;AL(this.timing);this.timing.B-c>=.8*this.va.j?(this.A++,b=5<=this.A):this.A=0}else b=this.timing,b=5E3<a-(b.j+1E3*b.C.delay);b?(b=this.timing,a=a>b.j&&4E12>a?a:v(),8192<=b.g||b.b.b.C?(b.k+=(a-b.o)/1E3,$J(b.b,b.I,b.k)):XJ(b.b,a,(a-b.j)/1E3),ZJ(b.b,a-b.j,b.g),DL(this),this.o="net.timeout",zL(this,Io(this.info.b[0])?6:7)):this.g=L(u(this.vo,this),this.va.j)}};f.fa=function(){return-1==this.state};
f.dispose=function(){zL(this,-1);this.B=this.k=null;DL(this);N(this.g);this.g=NaN};function DL(a){if(a.b){var b=a.b;a.b=null;b.abort()}CL(a.timing)};function EL(a,b,c,d){this.b=a;this.priority=b;this.I=c;this.L=d;this.g=this.o=this.j=NaN;this.F=this.D=this.A=!1;this.k=0;this.B=this.M=NaN}function CL(a){if(a.A){var b=a.b;b.k--;0==b.k&&b.g&&(b.j.b(.1,b.g/.1),b.g=0);a.A=!1}}
function BL(a,b,c){if(!a.A)8192<=c&&(XJ(a.b,b,(b-a.j)/1E3),a.A=!0);else if(!a.b.b.b){var d=(b-a.o)/1E3,e=c-a.g;0<e&&(.2<d||1024>e?(a.k+=d,.2<d&&VJ(a.b,.05,e)):VJ(a.b,d,e),a.F=!0)}if(a.A&&a.b.b.b&&(e=c-a.g,d=a.b,d.b.b)){if(0<d.k){for(var g=b/1E3,h=0;d.o+.1<g&&10>h;h++)d.j.b(.1,d.g/.1),d.g=0,d.o+=.1;d.g+=e}WJ(d)}a.o=b;a.g=c}function AL(a){var b=a.I-a.g,b=1E3*(b*a.C.tailDelay+b/a.C.byterate),c=v(),b=8192<=a.g?b+c:b+Math.max(c,a.j+1E3*a.C.delay);a.B=b};function FL(a,b,c,d){Zi.call(this);this.A=a;this.va=b;this.D=c;this.g=this.j=null;this.B=new UK(a,b);this.b=null;this.o=new YK(this.B,b,this.D,d);this.k=this.aa=this.O=this.P=NaN;this.F=!1;this.L=NaN;this.T=0;this.C=!1;this.da={};this.N="";this.U=!1;this.I=0}w(FL,Zi);FL.k=!1;FL.b=2/24;FL.g=1E3;FL.j=1E4;f=FL.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.o;d.o="i";eL(d);d.C=d.g;$K(d,b);fL(d);d.j=d.A;b=dL(d);this.j=new gL(this.va,b.b);this.g=new gL(this.va,b.video);this.H("formatchange",b);0!=a||c||(this.j.j.j||GL(this,this.j,!0),this.g.j.j||GL(this,this.g,!0));this.seek(a);HL(this,"gv")};f.resume=function(){this.C=!1};
f.Nz=function(a){this.resume();this.b=a;hr(a)&&(a.b.addEventListener("updateend",u(this.qc,this),!1),a.g.addEventListener("updateend",u(this.qc,this),!1));HL(this,"msa");this.qc();this.aa=Se(u(this.qc,this),FL.j)};function IL(a){a.b&&a.b.b&&a.b.b.removeEventListener&&(a.b.b.removeEventListener("updateend",u(a.qc,a),!1),a.b.g.removeEventListener("updateend",u(a.qc,a),!1));a.b=null;a.C=!0;a.j&&(KG(a.g,!1),KG(a.j,!1))}function JL(a){a.b&&fr(a.b)&&IL(a)}
function KL(a,b,c){if(!b.B||!c.remove)return!1;if(c.updating)return!0;if(c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),!0;b.B=!1;a.H("seekrequired");return!1}
function LL(a,b,c){if(!b.g){if(!b.j.mc())return b.j.j||GL(a,b,!1),!1;mL(b,a.k)}if(a.C)return!1;var d=b.pendingRequests_.length+c.pendingRequests_.length;if(tL(b)||tL(c))d-=1;if(2<=d+1)return!1;d=b.g;4==d.type&&d.b.mc()&&(b.g=cb(d.b.Gi(d)),d=b.g);!d.B&&!d.b.zg(d)||d.b.info.b&&4==d.type?a=!1:uL(b)&&a.va.b?a=!0:(!(c=d.B||b.o+c.o>a.va.g||vL(c,d.C))&&(c=3==d.type)&&(d=d.C,b=ML(a,b,!0),Gp(a.o.b)||(c=(v()-a.T)/1E3,b=Math.min(b,30+2*c)),c=d>a.k+b),a=c?!1:!0);return a}
function NL(a,b,c){if(!a.b||er(a.b)||hr(a.b)){var d=a.k,e;e=a.B;c=VK(e,b.j.info.ra,c.j.info.ra,0);e=aK(e.b)+c*bK(e.b)+c/cK(e.b);e=Math.max(e,e+5-c/b.j.info.ra);d=d+e;(e=a.va.L)||(a=a.o,e=!!(a.j&&a.A&&a.j.info.ra<a.A.info.ra&&"r"==a.o));t:if(a=e,!b.va.I||kL(b)){if(b.pendingRequests_.length){if(b.pendingRequests_[0].info.b[0].startTime<=d)break t;oL(b)}for(e=b.b.length-1;0<=e;e--)c=b.b[e],c.info.startTime>d&&(b.b.pop(),b.b.length&&b.b[e-1].buffer==c.buffer||(b.o-=c.buffer.byteLength));lL(b);a&&b.g&&
d<b.g.startTime&&(b.g=b.j.xi(d,!0).b[0])}}}
function OL(a,b,c){LL(a,b,c);var d=b.g;if(b.g.b.mc()){uL(b)&&a.va.b&&(NL(a,b,c),b.g||mL(b,a.k));var d=b.g,e=d.C-a.k,g;(g=b.j.mc()&&b.g.b!=b.j)&&!uL(b)&&(g=15>=e);var h=!d.Z||0==d.g&&0==d.j?0:d.Z.length-(d.j+d.g);g&&0==h&&(g=d.startTime+FL.b,d.g&&(g+=d.duration),mL(b,g),d=b.g,g=!1);d.b.Dl()?(c=VK(a.B,d.b.info.ra,c.j.info.ra,e),e=g,c=Lo(d,c),c.Z&&1<c.b.length&&(e?c=Lo(d,c.b[0].g):(e=c.b[c.b.length-1],g=e.g/c.Z.length,!e.A&&.4>g&&(c=Lo(d,c.Z.length-e.g)))),d=c):d=So(d.b,d)}else d.b.Dl()?(c=VK(a.B,b.j.info.ra,
c.j.info.ra,0),d=Lo(d,c)):d=So(d.b,d);hL(b,PL(a,d,!1))}function PL(a,b,c){if(3==b.b[b.b.length-1].type){var d;t:{d=a.o;var e=b.b[0].b;if(e.info.video){if(d.j!=e){d.j=e;d=dL(d);break t}}else d.C=e;d=null}HG(a,d)}e=c?2:1;a.C&&(e=0);c=Qo(b);d=a.A;var g=a.B,h=Math.min(2.5,aK(g.b)),g=WK(g);b=new wL(a.va,b,new EL(d,e,c,c-h*g));a=u(a.bz,a);b.B=a;b.start();return b}function HG(a,b){b&&a.H("formatchange",b)}
f.bz=function(a){if(!this.fa()&&3<=a.state){var b=a.info.b[0].b,c=!this.ca&&b.info.video,d=!this.V&&b.info.b;6==a.state&&yL(a)?(this.wf(!1,a.getErrorCode(),xL(a)),b.info.video&&0<a.j&&!cL(this.o)?(bL(this.o,b.info),oL(this.g),Io(a.info.b[0])&&GL(this,this.g,!1),this.qc()):a.start()):4==a.state?(c?HL(this,"vrr"):d&&HL(this,"arr"),a.start()):5==a.state?(c?(this.ca=a.D,Zy()&&ez()):d&&(this.V=a.D),z(a.k,function(a){Io(a.info)&&a.info.b.Np(a)}),ib(a.k,function(a){return bp(a)})&&!a.k[0].info.b.Ml()?this.qc():
this.wf(!0,"fmt.unparseable",xL(a))):7==a.state?(this.wf(!1,a.getErrorCode(),xL(a)),LG(this)):3==a.state?(this.qc(),c&&Zy()&&mg(document.body,"exp-js-scheduler-aggressive")&&ez()):Io(a.info.b[0])?(b.o=!0,this.qc()):this.wf(!0,"net.retryexhausted",xL(a))}};function LG(a){if(isNaN(a.P)){var b=u(a.qc,a);a.P=L(b,0)}}function QL(a){if(isNaN(a.O)){var b=u(function(){this.O=NaN;this.qc()},a);a.O=L(b,FL.g)}}
f.qc=function(){this.P=NaN;JL(this);if(this.b&&!gr(this.b))if(this.D.g)Infinity!=this.L&&(this.L=Infinity,this.b.xf(Infinity));else if(!isFinite(this.L)){var a=Math.floor(Math.max(this.j.j.index.zf(),this.g.j.index.zf()));0<a&&(this.b.xf(a),this.L=a)}if(!this.fa())if(a=this.D,v()-a.B>=a.o){a=this.D;if(!a.k){var b=xo(a.D,"start_seq",(Pb(a.b).index.kc()+1).toString());wp(a,b)}QL(this)}else if("prerender"==window.document.webkitVisibilityState)QL(this);else if(JL(this),iL(this.g),iL(this.j),pL(this.g),
pL(this.j),!this.b||KL(this,this.j,this.b.b)||KL(this,this.g,this.b.g)||((a=RL(this,this.g,this.b.g))&&!this.I&&(this.I=v(),HL(this,"vda")),b=At(this.b.g.buffered,this.k),isNaN(b)&&!rL(this.g)&&this.b.b.buffered.length||(rL(this.g)&&(b=NaN),a|=RL(this,this.j,this.b.b,b)),rL(this.g)&&rL(this.j)&&er(this.b)&&!gr(this.b)&&(b=this.b,er(b)&&b.j.endOfStream(),YJ(this.A)),a&&!hr(this.b)&&LG(this)),JG(this,this.g,aL(this.o)),JG(this,this.j,this.o.g),this.g.j.o||this.j.j.o)this.wf(!0,"net.retryexhausted");
else{a=this.I?v()-this.I:0;if(this.U||a>=this.va.D)LL(this,this.g,this.j)&&OL(this,this.g,this.j),LL(this,this.j,this.g)&&OL(this,this.j,this.g);!this.va.M||!this.N||this.C||this.g.pendingRequests_.length||this.j.pendingRequests_.length||(a=30+this.k,vL(this.g,a)||vL(this.j,a)||(a=this.N,this.N="",b=wi(a),Fi(a,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:u(this.wf,this,!1,"pathprobe.net",{shost:b})})))}};
function RL(a,b,c,d){if(c.updating)return!0;var e=b.b.length?b.b[0]:null;if(!e)return!1;!b.k||b.k.A||Jo(b.k,e.info)||(b.k=null,er(a.b)&&c.abort(),c.g=null);var g;e.b?g=!1:(g=e.info.b.b,c.g==g?g=!1:(SL(a,c,g),c.g=g,a.H("initsegment",c.g),g=!0));if(g&&c.updating)return!0;g=ML(a,b,!1);g=a.k+g;0<=d&&(g=Math.min(g,d));d=jL(b,g);if(!d)return!1;g=new Uint8Array(e.buffer,d.start,d.length);if(a.D.j&&3==e.info.type&&ja(c.timestampOffset)){var h=0,h=a.va.V&&!b.A?-cp(e):-(cp(e)-e.info.startTime);c.timestampOffset==
h||isNaN(h)||(c.timestampOffset=h)}if(!SL(a,c,g))return!1;if(!a.D.j||!a.va.V||b.A){for(var k;b.b.length;){if(b.b[0].Z.end>d.end){k=b.b[0];var l=d.end-b.b[0].Z.start+1,l=Math.min(l,k.info.g),h=new Ho(k.info.type,k.info.b,k.info.Z,k.info.k,k.info.startTime,k.info.duration,k.info.j,l,!1);g=uo(k.Z.start,l);h=new ap(h,k.buffer,g,k.b);l=new Ho(k.info.type,k.info.b,k.info.Z,k.info.k,k.info.startTime,k.info.duration,k.info.j+l,k.info.g-l,k.info.B);g=new so(g.end+1,k.Z.end);g=[h,new ap(l,k.buffer,g,!1)];k=
g[0];b.b[0]=g[1]}else k=b.b.shift();g=b;h=k.info;g.k=h;g.C&&g.k.A&&(g.C=!1);g.ra=Math.max(g.ra,h.b.info.ra);if(k.Z.end==d.end)break}b.b.length&&k.buffer==b.b[0].buffer||(b.o-=k.buffer.byteLength)}b.A||(b.A=!0);e.b&&(c.g=e.info.b.b,a.H("initsegment",c.g));return!hr(a.b)||c.updating}function SL(a,b,c){if(hr(a.b))try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!fr(a.b)}
function ML(a,b,c){var d;d=Gp(a.o.b)&&a.va.b?b.j.info.b?10485760:62914560:b.j.info.b?a.va.k:a.va.o;c&&(d+=a.va.g);return d/(Gp(a.o.b)?b.g?b.g.b.info.ra:b.j.info.ra:b.ra)}f.seek=function(a){if(!this.fa()){JL(this);this.T=v();this.g.j=aL(this.o);var b=TL(this,this.g,a,this.b&&this.b.g);this.j.j=this.o.g;var c=TL(this,this.j,b,this.b&&this.b.b);this.k=Math.max(a,b,c);this.F=!0;LG(this)}};
function TL(a,b,c,d){if(b.j.mc())if(d){var e=At(d.buffered,c),g=NaN,h=b.k;h&&(g=At(d.buffered,h.b.index.Ti(h.k)));if(e==g&&kL(b))return c;d=nL(b,c);if(0<=d)return d;KG(b,!0);b.j.info.video&&b.k&&!b.k.A&&!qL(b)&&(d=b.k,b.b.length&&(d=cb(b.b).info),d=b.g||d,d=Lo(d,d.Z.length-(d.g+d.j)),hL(b,PL(a,d,!0)));if(isNaN(e))return mL(b,c);mL(b,e+FL.b)}else mL(b,c);else b.j.j||GL(a,b,!1),0!=c&&oL(b);return c}function JG(a,b,c){b.j!=c&&(b.j=c,c.j||GL(a,b,!1))}
function GL(a,b,c){var d=c?65536:0;c&&!isNaN(a.va.C)&&(d=Math.floor(Math.max(d,a.va.C*b.j.info.ra)));c=b.j.Fr(d);z(c,function(a){var c=PL(this,a,!0);!Io(a.b[a.b.length-1])&&hL(b,c)},a);b.j.j=!0}f.J=function(){IL(this);this.j&&(oL(this.j),oL(this.g));Te(this.aa);this.g=this.j=null;FL.G.J.call(this)};f.wf=function(a,b,c){var d;if(c)for(var e in c)d=(d?d+";":"")+e+"."+c[e];this.H(a?"fatalerror":"softerror",b,d);a&&(this.b&&er(this.b)&&(a=this.b,er(a)&&a.j.endOfStream("network")),this.dispose())};
FL.prototype.getDebugInfo=function(){var a={lct:this.k.toFixed(3),lsk:this.F,lmf:Gp(this.o.b),lbw:cK(this.A).toFixed(3),lhd:aK(this.A).toFixed(3),ltd:(1E9*bK(this.A)).toFixed(3),laa:this.j.k?Oo(this.j.k):"",lva:this.g.k?Oo(this.g.k):"",lar:this.j.g?Oo(this.j.g):"",lvr:this.g.g?Oo(this.g.g):""};this.b&&!fr(this.b)&&(a.lab=xt(this.b.b.buffered),a.lvb=xt(this.b.g.buffered));return a};function HL(a,b,c){a.da[b]=c?window.performance.timing.navigationStart+c:v()};function UL(a,b,c,d){this.j=a;this.F=b;this.A=c;this.b=d;this.o="";this.g=this.B=this.C=this.D=null;this.k=new $q(this);S(this,this.k);this.b&&(ar(this.k,this.b,["message","mskeymessage"],this.Jo),ar(this.k,this.b,["error","mskeyerror"],this.Io),ar(this.k,this.b,["ready","mskeyadded"],this.Ho))}w(UL,Gh);f=UL.prototype;f.setCallbacks=function(a,b,c,d){this.D=a;this.C=b;this.B=c;this.g=d};f.Jo=function(a){this.D.call(this.g,a)};
f.Io=function(a){var b;this.b?(b=this.b.error.code,a=this.b.error.systemCode):(b=a.errorCode.code,a=a.systemCode);this.C.call(this.g,b,a)};f.Ho=function(a){this.B.call(this.g,a)};f.update=function(a){this.b?this.b.update(a):this.j.addKey?this.j.addKey(this.F.b,a,this.A,this.o):this.j.webkitAddKey(this.F.b,a,this.A,this.o)};f.J=function(){this.j=null;UL.G.J.call(this)};function VL(a,b){this.b=a;this.k=b;this.A={};this.j=null;this.o=new $q(this);S(this,this.o);Vq()||(ar(this.o,this.b,["keymessage","webkitkeymessage"],this.D),ar(this.o,this.b,["keyerror","webkitkeyerror"],this.C),ar(this.o,this.b,["keyadded","webkitkeyadded"],this.B));this.g=null}w(VL,Gh);function WL(a){a.g=new (Vq())(a.k.b);a.b&&(a.b.msSetMediaKeys?a.b.msSetMediaKeys(a.g):a.b.setMediaKeys(a.g))}
function XL(a,b){var c=a.A[b.sessionId];!c&&a.j&&(c=a.j,a.j=null,c.o=b.sessionId,a.A[b.sessionId]=c);return c}VL.prototype.D=function(a){var b=XL(this,a);b&&b.Jo(a)};VL.prototype.C=function(a){var b=XL(this,a);b&&b.Io(a)};VL.prototype.B=function(a){var b=XL(this,a);b&&b.Ho(a)};VL.prototype.J=function(){this.b=null;VL.G.J.call(this)};var YL=null,ZL=null;function $L(a,b){this.url=a;this.b=b};function aM(a,b,c){this.b=a;this.headers=b;this.message=c};function bM(a,b,c,d,e,g){this.F=a;this.g=d;this.C=e;this.o={session_id:g};lt(this,a.j);this.b=[];this.k=this.B=this.D=!1;var h;try{var k=c.b;if(Vq()){b.g||WL(b);var l=c.g||"video/mp4",p;if("com.microsoft.playready"==b.k.b){var r=new Uint8Array(270);for(a=0;135>a;a++)r[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);p=b.g.createSession(l,k,r)}else p=b.g.createSession(l,k);h=new UL(null,null,
null,p)}else b.b.generateKeyRequest?b.b.generateKeyRequest(b.k.b,k):b.b.webkitGenerateKeyRequest(b.k.b,k),b.j=new UL(b.b,b.k,k,null),h=b.j}catch(t){b="g",t instanceof DOMException&&(b+=t.code),this.g.H("licenseerror","html5.missingapi.drm",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),h=null}if(this.j=h)this.j.setCallbacks(this.Ok,this.ev,this.dv,this),S(this,this.j)}w(bM,Gh);function lt(a,b){if($e(b)){for(var c in a.o)b=$d(b,c,a.o[c]);a.A=b}else cM(a,"drm.auth","u")}f=bM.prototype;
f.start=function(){this.fa()||(this.D=!0,this.b.length&&this.Ok(this.b.shift()))};
f.Ok=function(a){if(!this.fa())if(this.k&&a.defaultURL&&lt(this,a.defaultURL),this.D){a=a.message;if("com.microsoft.playready"==this.F.b){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(!YL)for(YL={},ZL={},c=0;65>c;c++)YL[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),ZL[YL[c]]=c;for(var c=ZL,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",Ww:a,responseType:"arraybuffer",withCredentials:!0,onSuccess:this.Xw,onError:this.Zo,context:this};b=this.A;this.C&&(b=$d(b,"access_token",this.C));Fi(b,a)}else this.b.push(a),this.B||(this.B=!0,this.g.H("newsession",this))};
f.dv=function(){this.fa()||(this.k||(this.g.H("sessionready"),this.k=!0),this.b.length&&this.Ok(this.b.shift()))};
f.Xw=function(a){if(!this.fa())if(0!=a.status&&a.response){t:{a=new Uint8Array(a.response);var b=0,c=String.fromCharCode.apply(String,a.subarray(0,16384)).split("\r\n"),d=c[0];qb(c,0);c.pop();var b=b+(d.length+2),e=d.match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null!=e){d=e[1];isFinite(d)&&(d=String(d));for(var d=s(d)?/^\s*-?0x/i.test(d)?parseInt(d,16):parseInt(d,10):NaN,g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new aM(d,g,a.subarray(b));break t}e=e.match(/([^:]+):\s+([^]+)/);
if(null==e)break;g[e[1]]=e[2]}}a=null}a?0!=a.b?cM(this,"drm.auth","f"+a.b,zu(a.b)):(b=(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new $L(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60)),(b||c)&&this.g.H("newlicense",b,c),this.j.update(a.message)):cM(this,"drm.net","r0","YTP_ERROR_SERVER_ERROR")}else this.Zo(a)};f.ev=function(a,b){this.fa()||cM(this,"drm.keyerror","s"+a+"."+b)};f.Zo=function(a){cM(this,"drm.net","r"+a.status)};
function cM(a,b,c,d){a.fa()||a.g.H("licenseerror",b,c,d);a.dispose()}f.J=function(){this.g=null;bM.G.J.call(this)};function dM(a,b){this.b=a;this.g=b||null};function eM(a,b){Zi.call(this);this.C=a;this.b=b;this.subscribe("newlicense",this.Cu,this);this.subscribe("newsession",this.Du,this);this.subscribe("sessionready",this.Eu,this);this.N=fq();this.L=null;this.B={};this.g=[];this.j=Dp;this.I=new VL("com.microsoft.playready"==b.b?null:a,b);S(this,this.I);this.o=new VL(a,b);S(this,this.o);this.A=2;this.D=new $q(this);S(this,this.D);this.k=!1;this.F=null;ar(this.D,this.C,Vq()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.Bu)}w(eM,Zi);f=eM.prototype;
f.Bu=function(a){fM(this,new dM(a.initData,a.contentType),!0)};
function fM(a,b,c){if(!(a.fa()||"com.microsoft.playready"==a.b.b^!c||(c=b.b,a.k&&"widevine"==a.b.g))){var d=String.fromCharCode.apply(String,c);if(!a.B[d]){a.B[d]=!0;d="clearkey"==a.b.g;if(112==c[4]&&115==c[5]&&115==c[6]&&104==c[7]&&d){t:{for(var e=new DataView(c.buffer),d=0;d<e.byteLength;){var g=e.getUint32(d,!1);if(1886614376!=e.getUint32(d+4,!1))break;if(1477738184==e.getUint32(d+12,!1)&&69420633==e.getUint32(d+16,!1)&&2464609580==e.getUint32(d+20,!1)&&1558758348==e.getUint32(d+24,!1)){e=e.getUint32(d+
28,!1);if(16!=e)break;c=c.subarray(d+32,d+32+e);break t}d+=g}c=null}if(!c)return}a.g.push(b);1<a.g.length||(gM(a,b),a.k=!0)}}}function gM(a,b){var c=new bM(a.b,a.I,b,a,a.L,a.N);S(a,c)}f.Cu=function(a,b){a&&C(a,"HD")&&!Fp(this.j)&&"com.microsoft.playready"!=this.b.b&&(this.j=Ep,this.H("qualitychange"));b&&!this.F&&(this.F=b,this.H("heartbeatparams",b))};f.Du=function(){this.fa()||(this.g.shift(),this.g.length&&gM(this,this.g[0]))};f.Eu=function(){this.A--;0==this.A&&WL(this.o)};
f.J=function(){this.C=null;this.g=[];eM.G.J.call(this)};function hM(a){this.j={};this.j.c1a=u(this.k,this);this.j.c3a=u(this.o,this);(this.b=a)&&this.b.ca?this.g=ui(this.b.ca):this.g=[]}hM.prototype.k=function(){var a=q("yt.abuse.botguardInitialized");return a&&a()?(a=q("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};hM.prototype.o=function(a){return"r3a="+Math.floor(this.b.Oa%Za(a.c3a))};function iM(a,b,c){this.b=a;this.j=b;this.g=c};function jM(a){this.b=a}function kM(a,b){return Hp(Hp(a.b.vi,b.$l),b.tf)}
function lM(a,b){var c;c=!!b.g.b;var d;!a.b.b.F||"detailpage"!=a.b.$&&"adunit"!=a.b.$||(d=BJ(a.b).clone());d||(a.b.og?d=a.b.og.clone():ih&&!a.b.pi?d=window.screen&&window.screen.width?new G(window.screen.width,window.screen.height):null:a.b.Yc&&(d=a.b.Yc.clone()));d?((ih||hc||c)&&d.scale(window.devicePixelRatio||1),c=d):c=new G(640,360);var e;d=b.g.g;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=Cp("auto",e.b,!1)}else e=Ep;c=e.b;a.b.b.N&&
(c=Math.max(c,oo.large));lh&&lr("crkey")&&(c=Math.max(c,oo.hd1080));if(d=(lr("armv7")||lr("android"))&&!bE(a.b))d=b.g.g[0],d="9"==d.j||"("==d.j;d&&(c=Math.min(c,oo.large));a.b.b.V&&a.b.Yc&&540==a.b.Yc.height&&(c=Math.max(c,oo.hd720));c=Math.max(c,oo.medium);e.b!=c&&(e=new Bp(e.g,c,e.j));return e};function mM(){this.k=this.b=NaN;this.j=this.g=!1}function Tt(a,b,c,d){if(d=1<d)a.j=!0;if(a.g)b!=a.b&&(a.g=!1);else if(0<b&&a.b==b)return c-a.k>(d||!a.j?1500:400);a.b=b;a.k=c;return!1};function nM(){this.b=this.g=!1}nM.prototype.start=function(){this.g=!0};function oM(){this.g=0;this.b=this.o=this.j=this.k=NaN};var pM={};function qM(a){return a?24==a.length&&"UC"==a.slice(0,2)?a.substr(2):22==a.length?a:null:null};var rM;
rM={o:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],k:["\u0434\u043e \u043d.\u044d.","\u043d.\u044d."],B:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),N:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),A:"\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(" "),L:"\u042f\u043d\u0432\u0430\u0440\u044c \u0424\u0435\u0432\u0440\u0430\u043b\u044c \u041c\u0430\u0440\u0442 \u0410\u043f\u0440\u0435\u043b\u044c \u041c\u0430\u0439 \u0418\u044e\u043d\u044c \u0418\u044e\u043b\u044c \u0410\u0432\u0433\u0443\u0441\u0442 \u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c \u041e\u043a\u0442\u044f\u0431\u0440\u044c \u041d\u043e\u044f\u0431\u0440\u044c \u0414\u0435\u043a\u0430\u0431\u0440\u044c".split(" "),
F:"\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(" "),P:"\u042f\u043d\u0432. \u0424\u0435\u0432\u0440. \u041c\u0430\u0440\u0442 \u0410\u043f\u0440. \u041c\u0430\u0439 \u0418\u044e\u043d\u044c \u0418\u044e\u043b\u044c \u0410\u0432\u0433. \u0421\u0435\u043d\u0442. \u041e\u043a\u0442. \u041d\u043e\u044f\u0431. \u0414\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(" "),T:"\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(" "),
M:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),V:"\u0412\u0441 \u041f\u043d \u0412\u0442 \u0421\u0440 \u0427\u0442 \u041f\u0442 \u0421\u0431".split(" "),C:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),O:"\u0412\u041f\u0412\u0421\u0427\u041f\u0421".split(""),I:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],D:["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"],b:["AM","PM"],g:["EEEE, d MMMM y '\u0433'.","d MMMM y '\u0433'.","d MMM y '\u0433'.","dd.MM.yy"],U:["H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm"],j:["{1}, {0}","{1}, {0}","{1}, {0}","{1}, {0}"],pE:0,da:[5,6],qE:6};function sM(a,b,c,d,e,g){s(a)?(this.j="y"==a?b:0,this.g="m"==a?b:0,this.b="d"==a?b:0,this.k="h"==a?b:0,this.o="n"==a?b:0,this.A="s"==a?b:0):(this.j=a||0,this.g=b||0,this.b=c||0,this.k=d||0,this.o=e||0,this.A=g||0)}sM.prototype.equals=function(a){return a.j==this.j&&a.g==this.g&&a.b==this.b&&a.k==this.k&&a.o==this.o&&a.A==this.A};sM.prototype.clone=function(){return new sM(this.j,this.g,this.b,this.k,this.o,this.A)};
sM.prototype.add=function(a){this.j+=a.j;this.g+=a.g;this.b+=a.b;this.k+=a.k;this.o+=a.o;this.A+=a.A};function tM(a,b,c){ja(a)?(this.b=uM(a,b||0,c||1),vM(this,c||1)):la(a)?(this.b=uM(a.getFullYear(),a.getMonth(),a.getDate()),vM(this,a.getDate())):(this.b=new Date(v()),this.b.setHours(0),this.b.setMinutes(0),this.b.setSeconds(0),this.b.setMilliseconds(0))}function uM(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=tM.prototype;f.Xr=rM.pE;f.Yr=rM.qE;
f.clone=function(){var a=new tM(this.b);a.Xr=this.Xr;a.Yr=this.Yr;return a};f.getFullYear=function(){return this.b.getFullYear()};f.getMonth=function(){return this.b.getMonth()};f.getDate=function(){return this.b.getDate()};f.getTime=function(){return this.b.getTime()};f.set=function(a){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
f.add=function(a){if(a.j||a.g){var b=this.getMonth()+a.g+12*a.j,c=this.getFullYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d;t:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break t;case 5:case 8:case 10:case 3:d=30;break t}d=31}d=Math.min(d,this.getDate());this.b.setDate(1);this.b.setFullYear(c);this.b.setMonth(b);this.b.setDate(d)}a.b&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.b),this.b.setDate(1),this.b.setFullYear(a.getFullYear()),
this.b.setMonth(a.getMonth()),this.b.setDate(a.getDate()),vM(this,a.getDate()))};f.CE=function(){return[this.getFullYear(),Sa(this.getMonth()+1),Sa(this.getDate())].join("")+""};f.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};f.toString=function(){return this.CE()};function vM(a,b){a.getDate()!=b&&a.b.setUTCHours(a.b.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.b.valueOf()};var wM=["3djj8jS0370cu_ghKs_Ong","LsooMJoIpl_7ux2jvdPB-Q","JkWoS4RsldA1coEIot5yDA","jVkjd2VWCWO-9DHRQER3Yg","L8ZULXASCc1I_oaOT0NaOQ"];function xM(a){this.g=a;this.b=0;this.o=NaN;this.j=0;this.ba=[];this.k=yM(this.g);this.A=this.B=0}function zM(a){a.k.startTime=a.j;a.k.endTime=a.b;a.ba.length&&cb(a.ba).isEmpty()?a.ba[a.ba.length-1]=a.k:a.ba.length&&a.k.isEmpty()||a.ba.push(a.k);a.B+=a.b-a.j;a.k=yM(a.g);a.j=a.b}function AM(a){return a.B+a.g.j()-a.j}function BM(a){a.ba.length&&a.b==a.j||zM(a);var b=a.ba;a.ba=[];return b}
xM.prototype.update=function(){var a=this.g.j()||0,b=CM(this.g);if(a!=this.b||DM(this,a,b)){if(a<this.b||a-this.b>b-this.o+.5||DM(this,a,b))zM(this),this.j=a;this.o=b;this.b=a}};function DM(a,b,c){c-=a.o;return b==a.b&&.5<c};function EM(a,b){this.b=b;this.k=!1;this.g=a}EM.prototype.j=function(){return{ps:this.b.ob,el:this.b.$}};EM.prototype.send=function(){this.k||(kf(Wd(this.b.rb+"set_awesome",this.j())),this.k=!0)};function FM(a,b,c){EM.call(this,b,c);this.o=a}w(FM,EM);
FM.prototype.j=function(){var a=FM.G.j.call(this);sa(a,NK(this.b));var b=Gb(this.g.jg/this.g.Oa,0,1);sa(a,{html5:"1",video_id:this.g.videoId,eurl:this.b.g,framer:this.b.F,feature:this.b.B,list:this.g.La,w:b,l:this.g.Oa,plid:this.g.yb,ei:this.g.A,access_token:this.g.B,tpmt:AM(this.o),cpn:this.g.Da});this.b.k&&(a.adformat=this.b.k);this.b.D&&(a.referrer=RK(this.b));this.b.xc&&(a.autoplay="1");this.b.Sa&&(a.authuser=this.b.Sa);this.b.Za&&(a.pageid=this.b.Za);this.g.re&&(a.splay="1");this.g.I&&(a.subscribed=
this.g.I);sa(a,FM.G.j.call(this));sa(a,NK(this.b));return a};function GM(a){this.b=a;this.j={};this.M=NaN;this.o=new Tv(this.Au,3E4,this);S(this,this.o);this.A=new Tv(this.vk,100,this);S(this,this.A);this.g="N";this.k=0;this.D=this.L=NaN;this.N="";this.C=this.F=0;this.I=this.B=!1}w(GM,Gh);var HM={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function IM(a,b,c,d){var e=a.j[b];e||(e=[],a.j[b]=e);a=0<=d?d:CM(a.b);e.push(a.toFixed(3)+":"+c.join(":"))}f=GM.prototype;
f.vk=function(a){a=a||CM(this.b);var b=this.b.B();if(!isNaN(this.O)&&!isNaN(b.j)){var c=b.j-this.O;0<c&&IM(this,"bwm",[c,(b.o-this.P).toFixed(3)],a)}this.O=b.j;this.P=b.o;isNaN(b.b)||IM(this,"bwe",[b.b.toFixed(0)],a);isNaN(b.g)||(c=b.g,b.k<c&&(c=b.k),this.L!=c&&(IM(this,"bh",[c.toFixed(3)],a),this.L=c),this.b.g.b.B&&3>c&&("PL"==this.g||"B"==this.g)&&this.A.start());IM(this,"cmt",[this.b.j()],a)};
function JM(a){var b={event:"streamingstats"};a.b.b.b&&(b.fmt=a.b.b.b.id);b.cpn=a.b.b.Da;b.ei=a.b.b.A;b.el=a.b.g.$;b.docid=a.b.b.videoId;b.ns=a.b.g.Xc;b.fexp=a.b.g.b.b.toString();a.b.g.k&&(b.adformat=a.b.g.k);a.b.b.ib&&(b.live=a.b.b.tb?"dvr":"live");b.html5="1";return b}
f.sg=function(a){if(!this.fa()&&!Wb(this.j)){0!=this.A.ta||this.vk(a);a=SK(this.b.g).hmewdrop;0<=a&&a!=this.D&&IM(this,"df",[a-(this.D||0)]);this.D=a;a=JM(this);bc(a,NK(this.b.g));a=Wd(QK(this.b.g),a);for(var b in this.j)a+="&"+b+"="+this.j[b].join(",");kf(a);this.j={};this.o.start()}};f.Lg=function(){IM(this,"vps",["N"]);this.M=Se(u(this.sg,this),1E4);this.o.start()};f.onError=function(a,b){var c=this.b.j(),c=[a,c.toFixed(3)];b&&c.push(b);IM(this,"error",c)};
f.Au=function(){"PL"==this.g&&(IM(this,"vps",[this.g]),this.sg())};f.J=function(){GM.G.J.call(this);Te(this.M)};function KM(a,b,c,d){this.b=[];this.o=[];this.I=!1;this.g="watchtime"==c;this.ka="playback"==c;this.qb="delayplay"==c;this.Ba=(this.F="atr"==c)?"/api/stats/"+c:PK(b)+"api/stats/"+c;d&&(this.Qn=d.fs,d.rtn&&(this.kg=d.rtn),this.g?(this.of=d.state,0<d.rti&&(this.Rh=d.rti)):(this.la=d.mos,this.xa=d.volume,d.at&&(this.L=d.at),d.allowed&&(this.A=d.allowed),d.ex_ads&&(this.D=d.ex_ads)));this.Ca=b.k;this.Wh=b.xc;this.Ia=b.C;this.Ha=b.M;this.Ra=b.L;this.Wa=b.N;this.cb=b.rf;this.fb=b.se;this.hb=b.O;this.gb=
b.P;this.nb=b.V;this.xb=b.T;this.ac=b.o;this.bc=b.g;this.Md=b.$;this.o=b.b.b;this.O=b.A;this.Pn=b.Xc;this.qf=b.D;this.P=b.U;this.j=b.B;this.jf=b.Ra;this.aa=b.Ba;this.da=b.Ca;this.za=TK(b);!a.b||a.Wa.isEmpty();this.Wh=a.lg||this.Wh;this.U=a.Oh;this.Uc=a.Da;this.C=a.pf;this.ca=a.Uj;this.k=a.jg;this.N=a.qe;this.lf=a.b.id;this.Rn=a.re;this.hf=a.Mh;a.ib&&(this.pa=a.tb?"dvr":"live");this.kf=a.Sj;this.yb=a.yb;this.qd=a.A;this.La=a.La;this.j=a.Ha||this.j;this.V=a.hb;this.T=a.gb;this.pf=a.Nh;this.nf=a.I;this.videoId=
a.videoId;this.mf=a.cb}f=KM.prototype;f.Wh=!1;f.$u=!1;f.uo=!1;f.Qn=!1;f.ou=!1;f.Rn=!1;f.Pn="yt";f.Rh=null;f.kg=null;f.send=function(){if(!this.I){var a=LM(this),a=Wd(this.Ba,a);this.F?this.B&&Fi(a,{method:"POST",gd:{atr:this.B}}):this.C?Fi(a,{headers:{Authorization:"CredentialTransfer type="+this.ca+",token="+this.C}}):kf(a);this.I=!0}};
function LM(a){var b={ns:a.Pn,el:a.Md,cpn:a.Uc,docid:a.videoId,ver:2,referrer:a.qf,cmt:a.Af(a.k),plid:a.yb,ei:a.qd,fmt:a.lf,fs:a.Qn?"1":"0",rt:a.Af(a.wa),c:a.cb,cver:a.fb,adformat:a.Ca,content_v:a.Ia,euri:a.bc,subscribed:a.nf,lact:a.za,live:a.pa,cplatform:a.ac,cbrand:a.Ha,cmodel:a.hb,cnetwork:a.gb,cbr:a.Ra,cbrver:a.Wa,cos:a.nb,cosver:a.xb,mos:a.la,q:a.jf,osid:a.mf,state:a.of,volume:a.xa};a.Wh&&(b.autoplay="1");a.uo&&(b["final"]="1");a.Rn&&(b.splay="1");a.N&&(b.delay=a.N);a.O&&(b.hl=a.O);a.P&&(b.cr=
a.P);n(a.aa)&&a.da&&(b.uga=a.da+a.aa);n(a.M)&&(b.len=a.Af(a.M));!a.g&&0<a.o.length&&(b.fexp=a.o.toString());null!=a.kg&&(b.rtn=a.Af(a.kg));a.j&&(b.feature=a.j);a.La&&(b.list=a.La);a.V&&(b.ctrl=a.V);a.T&&(b.ytr=a.T);a.pf&&(b.ssrt="1");a.g?(b.idpj=a.hf,b.ldpj=a.kf,null!=a.Rh&&(b.rti=a.Af(a.Rh))):(n(a.L)&&(b.at=a.L),n(a.A)&&(b.allowed=a.A),n(a.D)&&(b.ex_ads=a.D));(a.ka||a.qb)&&a.U&&(b.tst=a.U);a.g&&(b.st=MM(a,A(a.b,function(a){return a.startTime})),b.et=MM(a,A(a.b,function(a){return a.endTime})));hb(a.b,
function(a){return 0!=a.visibilityState})&&(b.vis=MM(a,A(a.b,function(a){return a.visibilityState})));hb(a.b,function(a){return 1!=a.playbackRate})&&(b.rate=MM(a,A(a.b,function(a){return a.playbackRate})));hb(a.b,function(a){return"-"!=a.xk})&&(b.cc=A(a.b,function(a){return a.xk}).join(","));return b}f.Af=function(a){return(1*a.toFixed(3)).toString()};function MM(a,b){return A(b,a.Af).join(",")};function NM(a){this.b=a;this.k=new GM(a);S(this,this.k);this.g=new xM(a);this.A="paused";this.B=NaN;this.D=[10,10,10,40];this.F=this.C=0;this.L=this.M=this.I=this.j=!1;this.o=NaN;this.N=new FM(this.g,this.b.b,this.b.g)}w(NM,Gh);function OM(a,b,c){var d=CM(a.b);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.D[a.C];a.C+1<a.D.length&&a.C++;c=c+e;d=1E3*(c-d);a.B=L(u(a.rB,a,c,b),d);return c}f=NM.prototype;
f.rB=function(a,b){if(!this.fa()){this.B=NaN;this.g.update();var c=BM(this.g),d=PM(this,c);b&&(d.Rh=a);var e=400<this.F;!(1<c.length)&&c[0].isEmpty()||e||(d.kg=OM(this,!0,a));d.send();this.F++}};function QM(a,b){var c=RM(a.b);sa(c,{state:a.A});c=new KM(a.b.b,a.b.g,b,c);c.k=a.b.j();c.M=a.b.A();c.wa=CM(a.b);c.b=[yM(a.b)];return c}function PM(a,b){var c=QM(a,"watchtime");c.b=b;c.k=a.g.b;return c}function SM(a){a.g.update();return PM(a,BM(a.g))}
function TM(a){var b=a.b.g;a=a.b.b;var c=a.Ha||b.B,c={ns:b.Xc,html5:"1",el:b.$,ps:b.ob,fexp:b.b.b.join(",")||void 0,feature:c||void 0,ctrl:a.hb||void 0,ytr:a.gb||void 0,list:a.La,d:b.xa,f:b.ca};b.xc&&(c.autoplay="1");a.I&&(c.subscribed=a.I);return c}f.Lg=function(){this.k.Lg()};f.onError=function(a,b){this.k.onError(a,b)};
function UM(a,b){if(!a.fa()){W(b.state,2)?(a.A="paused",a.j&&SM(a).send()):W(b.state,8)?(a.A="playing",a.j&&isNaN(a.B)&&OM(a,!1)):a.A="paused";var c=a.k,d=b.state,e;e=b.state;if(W(e,128))e="ER";else if(W(e,16)||W(e,32))e="S";else{var g=HM[Vt(e)];"B"==g&&W(e,4)&&(g="PB");e=g}if(e!=c.g){var g=e,h=CM(c.b);if(!(h<c.k)){if("PL"==c.g)c.C+=h-c.k;else if("B"==c.g&&c.B&&(c.B=!1,c.F+=h-c.k,!c.I&&10<=c.F&&180>=c.C)){c.b.C();if(!c.fa()){var k=JM(c);k.qoealert="1";k=Wd(QK(c.b.g),k);kf(k)}c.I=!0}"B"!=g||"PL"!=
c.g&&"PB"!=c.g||(c.B=!0);c.k=h}!c.b.g.b.B||"B"!=e&&"PB"!=e?IM(c,"cmt",[c.b.j().toFixed(3)]):c.vk();IM(c,"vps",[e]);c.g=e}if(W(d,128))c.onError(d.b.errorCode,d.b.errorDetail);(W(d,2)||W(d,128))&&c.sg();a.o&&W(b.state,128)&&(a.bi("error-100"),N(a.o))}}function VM(a){a.o=Se(u(a.bi,a,"heartbeat"),3E4)}
f.bi=function(a){var b=this.b.g,c=this.b.b,d={ns:b.Xc,el:b.$,eurl:b.g,fmt:c.b?c.b.id:0,html5:1,list:c.La,plid:c.yb,cpn:c.Da,ei:c.A,ps:b.ob,noflv:1,st:this.b.j(),video_id:c.videoId,metric:a};b.xc&&(d.autoplay="1");c.ck&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=AM(this.g));sa(d,NK(b));kf(Wd("//www.youtube.com/live_204",d))};f.J=function(){NM.G.J.call(this);N(this.B);this.B=NaN;var a=this.g;Te(a.A);a.A=NaN};NM.prototype.getDebugInfo=function(){return LM(QM(this,"playback"))};
function WM(a){if(!a.M){a.b.b.o.eventLabel=a.b.g.$;a.b.b.o.playerStyle=a.b.g.ob;a.b.b.V&&(a.b.b.o.feature="pyv");a.b.b.o.vid=a.b.b.videoId;a.b.b.o.isAd=!("adunit"!=a.b.g.$&&!a.b.b.V);var b=a.b.b.o;b&&b.uid&&(pM[b.uid]=b);t:{b=a.b.b.o.uid;if(!b){b=Qe("CONVERSION_CONFIG_DICT");if(!b)break t;b=b.uid||null;if(!b)break t}i:{var c=Qe("CONVERSION_CONFIG_DICT");if(s(b)){var d=qM(b);if(!c||c.uid!=d)if(c=pM[d],!c||c.uid!=d)break i}var e;if(c&&c.baseUrl&&c.uid){var g=c.rmktEnabled,d=c.focEnabled&&(!c.isAd||
!1);if(g||d){var h={};if(g){g={utuid:c.uid,type:"view",client_name:"html5"};c.vid&&(g.utvid=c.vid);c.eventLabel&&(g.el=c.eventLabel);c.playerStyle&&(g.ps=c.playerStyle);c.feature&&(g.feature=c.feature);c.ppe&&(g.ppe=c.ppe);c.subscribed&&(g.subscribed=c.subscribed);c.engaged&&(g.engaged=c.engaged);var k=[];for(e in g)k.push(encodeURIComponent(e)+"="+encodeURIComponent(g[e]));e=k.join(";");h.data=e}d&&c.vid&&c.uid&&(c.oeid||c.ieid)&&(c.oeid&&(h.oeid=c.oeid),c.ieid&&(h.ieid=c.ieid),h.evid=c.vid);d&&
(h.label="followon_view",h.foc_id=c.uid);e=Wd(c.baseUrl,h)}else e=null}else e=null;e&&kf(e)}(e=Qe("CONVERSION_CONFIG_DICT"))&&(!s(b)||e.uid==qM(b))&&Sb(wM,e.uid)&&e.baseUrl&&e.uid&&e.focEnabled&&!e.isAd&&(b={label_no_cache:"followon_view",foc_id_no_cache:e.uid,random_no_cache:Math.round(1E4*Math.random())},(b=Wd(e.baseUrl,b))&&kf(b))}a.M=!0}};function XM(){this.endTime=this.startTime=-1;this.xk="-";this.playbackRate=1;this.visibilityState=0}XM.prototype.isEmpty=function(){return this.endTime==this.startTime};function YM(a,b,c,d,e,g,h){this.b=a;this.g=b;this.o=c;this.A=d;this.j=e;this.B=g;this.C=h||function(){};this.k=-1}function CM(a){var b=window.performance&&window.performance.now?window.performance.now():v();0>a.k&&(a.k=b);return Math.round(b-a.k)/1E3}
function RM(a){var b=a.o();a=a.b;var c={};a.b&&(c.fmt=a.b.id,a.N&&(c.afmt=a.N.id));a.xa&&(c.threed=a.yx);c.plid=a.yb;c.ei=a.A;c.list=a.La;c.cpn=a.Da;a.videoId&&(c.v=a.videoId);a.Uk&&(c.infringe=1);a.re&&(c.splay=1);a.ib&&(c.live=a.tb?"dvr":"live");a.lg&&(c.autoplay=1);a.fb&&(c.sdetail=a.fb);a.T&&(c.partnerid=a.T);a.cb&&(c.osid=a.cb);sa(b,c);return b}
function yM(a){var b=new XM;b.xk=a.o().cc||"-";var c=a.g;b.playbackRate=c.Pa&&c.Pa.playbackRate||1;(c=Ag("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.g.mb?b.visibilityState=2:a.g.Xq&&(b.visibilityState=1);return b};function ZM(a,b){this.state=a;this.b=b}function Nv(a,b){return W(a.state,b)&&!W(a.b,b)?1:!W(a.state,b)&&W(a.b,b)?-1:0};function $M(a,b){Zi.call(this);this.za=new mM;this.A=new Zt(u(this.getCurrentTime,this),u(this.getPlayerState,this),u(this.Vh,this));S(this,this.A);this.T=NaN;this.I=this.C=null;this.B=a;this.pa=new jM(a);this.xa=!1;this.D=this.k=null;this.L=[];this.P=new nM;this.N=new nM;this.wa=NaN;this.j=new Ot;this.Ha=b;this.V=this.ca=null;this.F=NaN;this.U=new Rv(this);this.b=new Hr;this.g=this.O=null;this.da=NaN;this.o=null;this.Ca=!1;this.aa=0;this.Ia=null;this.ka=!1;this.la=null}w($M,Zi);
function it(a){Zy()?bz(a.aa):N(a.aa)}f=$M.prototype;f.J=function(){N(this.da);Te(this.wa);ht(this);aN(this);it(this);pH(this);Kh(this.V,this.U,this.b);this.U=this.I=null;this.ka=!1};
function bN(a,b,c){a.L.length=0;a.P=new nM;a.N=new nM;a.T=NaN;a.F=NaN;a.O=null;a.Ca=!1;a.g&&Lt(a.g);cN(a);ht(a);aN(a);it(a);Ih(a.b);a.A.reset();if(2==a.Ha||df(a.B.ye))b.Wo=!0;a.b=b;a.b.subscribe("dataupdated",a.ax,a);a.b.subscribe("dataloaded",a.Xp,a);a.b.subscribe("onStatusFail",a.$w,a);b.yf&&b.yf>b.Ta&&(b=b.yf,a.I&&(a.A.Ag(a.I),a.I=null),a.I=new Wt(1E3*b,2147483646),a.I.$a.subscribe("onEnter",a.rg,a),a.A.wi(a.I));ht(a);a.b.te||(c=new YM(a.b,a.B,c,u(a.Td,a),u(a.getCurrentTime,a),u(a.Yw,a),u(a.Zw,
a)),a.o=new NM(c));a.ka=!1;dN(a,"newdata");eN(a,new Ot)}function ht(a){if(a.o){var b=a.o;if(!b.fa()&&b.j){b.A="paused";var c=SM(b);c.uo=!0;c.send();c=b.k;"PL"==c.g&&(c.g="N");IM(c,"vps",[c.g]);c.sg();N(b.o);b.dispose()}Ih(a.o);a.o=null}}f.getVideoData=function(){return this.b};f.R=function(){return this.B};function fN(a){return!(!a.b.g||!a.b.g.g.length)}function gN(a){if(Xr(a.b))return!0;Mv(a,"api.invalidparam");return!1}function hN(a){gN(a)&&!a.P.g&&(a.P.start(),a.o&&a.o.Lg(),a.Xp())}
f.Xp=function(){if(Yr(this.b))Yr(this.b),this.P.b=!0,this.L=tb(this.b.D),Sr(this.b),fN(this)&&(this.b.tb&&(iN(this,this.b.Oa),jN(this,!0)),this.b.g.b&&kN(this),mJ(this,"i")),dN(this,"dataloaded"),this.N.g&&lN(this);else if(this.b.ka){var a=this.b;a.ka=!1;var b=a.O,c=wi(b),b=0>Hr.g.indexOf(c)?ef(b):ff(b),c=u(a.Gz,a),a=u(a.Xl,a);wp(new np(b),b,c,a)}else this.b.Le||(a=OK(this.B,this.b),Zr(this.b,a))};function mN(a){hN(a);gN(a)&&(a.N.g||(a.N.start(),eN(a,Ut(a.j,8))),lN(a))}
function lN(a){if(!(a.N.b||!a.P.b||W(a.j,128)||a.L.length||(a.A.wg||a.A.Lg(),a.L.length||0<ut(a.A.g,-2147483648).length))){a.b.ib&&nN(a,Infinity,!0);a.N.b=!0;if(a.o){var b=a.o;b.b.b.Th&&b.b.b.lk&&(b.bi("connected"),VM(b))}a.H("playbackready",a)}}f.rg=function(a){this.pauseVideo();eN(this,!1==a?new Ot:new Ot(Qt()))};
function oN(a,b,c,d){a.b.b=c;a.b.N=d||c;if(a.o){d=a.b;var e=lM(a.pa,d),e=B(d.g.g,u(e.k,e));d=a.o.k;e=new iM(c,b,e?e.id:"");c=CM(d.b);IM(d,"vfs",[e.b.id,e.g,d.N,e.j],c);d.N=e.b.id;e=d.b.g;e=e.Pa?new G(0<e.Pa.style.width.indexOf("px")?parseInt(e.Pa.style.width,10):e.Pa.clientWidth,0<e.Pa.style.height.indexOf("px")?parseInt(e.Pa.style.height,10):e.Pa.clientHeight):new G(Number.NaN,Number.NaN);0<e.width&&0<e.height&&IM(d,"view",[Math.round(e.width),Math.round(e.height)],c);IM(d,"vps",[d.g],c);d.sg(c)}a.H("internalvideoformatchange",
a.b,"m"==b)}function Mv(a,b,c,d){if(Sb(xu,c))var e=c;else var g=c;eN(a,St(a.j,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));pN(a)}function qN(a,b){a.L=a.L.filter(function(a){return b!=a});a.N.g&&lN(a)}f.Vh=function(){return W(this.j,8)&&!W(this.j,64)&&!W(this.j,2)};f.getPlayerState=function(){return this.j};f.getPlayerType=function(){return this.Ha};function rN(a,b){a.g&&pH(a);a.g=b;sN(a)}
function pH(a){a.D=null;a.k&&(a.k.C=!0);a.g&&(a.o&&a.P.g&&W(a.j,64)&&UM(a.o,new ZM(new Ot(4),a.j)),cN(a),a.U.removeAll(),Lt(a.g),a.g=null)}
function tN(a){mN(a);W(a.j,64)&&eN(a,Ut(a.j,8));if(a.N.b&&a.g)if(a.b.g){var b;if(a.b.g.b)uN(a),b=a.Ia,a.k.resume();else{aN(a);b=a.b.P.b;var c=a.b,d={};c.L&&(d.ptk=c.L,d.oid=c.Md,d.ptchn=c.qd,d.pltype=c.hf);sa(b.g,d);sa(b.g,{c:a.B.rf,cver:a.B.se})}a.g.xd!=b?vN(a,b):(as(a.b)&&It(a.g)&&nN(a,Infinity,!0),Jt(a.g))}else Mv(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function Ls(a){if(!a.b.g)return[];var b=wN(a);a=Kp(a.b.g,b);a.length&&(a=a.concat(["auto"]));return a}
function xN(a){return Hp(Hp(kM(a.pa,a.b),lM(a.pa,a.b)),wN(a))}function wN(a){return a.b.qk?Ep:a.C?a.C.j:fN(a)&&a.b.g.b&&op(a.b.j)?Dp:Ep}function mJ(a,b,c){if(!a.fa()&&!W(a.j,128)&&(c&&(a.b.tf=c),fN(a))){"m"==b&&c&&Fp(c)&&(b="a");c=xN(a);if(a.b.g.b){if("i"!=b){var d=a.k;d.fa()||(HG(d,ZK(d.o,c,b)),JG(d,d.g,aL(d.o)),Gp(d.o.b)&&"m"==b&&(d.va.T?(KG(d.g,!1),d.g.B=!0):KG(d.g,!0),d.g.j.mc()&&mL(d.g,d.k)),uL(d.g)&&NL(d,d.g,d.j),LG(d))}}else a.b.P=Fr(a.b.F,c),oN(a,b,a.b.P.getInfo());a.Vh()&&tN(a)}}
function EG(a){if(!a.getVideoData().N)return null;var b=a.getVideoData().N;return B(a.la,function(a){return a.id==b.id})}
function kN(a){zp(a.b.j,{c:a.B.rf,cver:a.B.se});var b=a.B,c=new MC;if(lr("safari/")&&lr(" version/8")||b.b.xa)c.O=!0;b.b.wa&&(c.P=!0);b.b.qb&&(c.L=!0,c.B=1.25);b.b.aa&&(c.A=1.5);b.b.T&&(c.C=3.5);b.b.ka&&(c.D=300);b.b.Ca&&(c.I=!0);b.b.Uc&&(c.T=!0);bE(b)&&(c.o=8388608,c.k=524288,c.g=2097152,c.F=1048576,c.A=1.5,c.N=15,c.b=!1,c.M=!1,c.D=0,c.ai=oo.hd720,kr()&&(c.ra=3E5));lh&&lr("crkey")&&(c.o=20971520,c.k=1572864,c.g=20971520,c.b=!0,c.j=1E3);var b=b.og||new G(window.screen.width,window.screen.height),
d=window.devicePixelRatio||1;2560<=b.width*d&&1440<=b.height*d&&(c.o=52428800,c.k=5242880,c.g=20971520,c.F=8388608,c.ai=oo.auto);a.k=new FL(a.ca,c,a.b.j,a.b.g);a.k.subscribe("initsegment",a.St,a);a.k.subscribe("formatchange",a.Ut,a);a.k.subscribe("fatalerror",a.Tt,a);a.k.subscribe("softerror",a.Vt,a);a.k.subscribe("seekrequired",a.Wt,a);c=C(a.L,"spacecast");a.k.initialize(a.b.Ta,xN(a),c);a.b.mf&&(a.k.N=a.b.mf);a.L.length&&(a.k.C=!0)}
function aN(a){a.k&&(a.k.dispose(),a.k=null);a.D&&(a.D.dispose(),a.D=null)}function uN(a){if(!a.D){a.k?a.k.seek(a.getCurrentTime()):kN(a);a.D=new br(a.g,a.b.Oa,a.b.g.g[0].mimeType,a.b.g.b[0].mimeType);try{var b=dr(a.D)}catch(c){c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);Mv(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Ia=new mr(b,!1,!0);cr(a.D,u(a.k.Nz,a.k))}}
f.St=function(a){if(this.C){var b=this.C;if("com.microsoft.playready"==b.b.b){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&&fM(b,new dM(a),!1)}}};f.Ut=function(a){oN(this,a.g,a.video.info,a.b.info)};
f.Tt=function(a,b){Mv(this,a,void 0,b);aN(this)};f.Vt=function(a,b){this.o.onError(a,b);var c;if(c="net.badstatus"==a)if(c=this.B.b.P)c=this.b,c=v()-c.ux>Hr.o;c&&(this.o.onError("staleconfig"),this.H("urlauthexpired"))};f.pauseVideo=function(a){if(W(this.j,64)){var b=this.j;eN(this,St(b,b.g&-9))}this.g&&(a&&eN(this,Ut(this.j,256)),this.g.pauseVideo())};
function pN(a){a.pauseVideo(!0);a.g&&(cN(a),a.D&&(a.D.dispose(),a.D=null),a.b&&(a.b.Ta=a.getCurrentTime()),a.F=NaN,Kt(a.g),W(a.j,128)||eN(a,St(a.j)))}function nN(a,b,c,d){if(a.g){b=Gb(b||0,0,yN(a));b>=yN(a)?jN(a,!0):jN(a,!1);a.b.Ta=b;a.F=b;var e=a.za;e.b=b;e.g=!0;c?a.Mi():(xG(a),d&&(a.V||(a.V=new Tv(a.Mi,d,a)),a.V.start()),zN(a,!0));a.I&&b>a.b.yf&&(a.A.Ag(a.I),a.I=null);a.H("seekto",a,b)}else a.b.Ta=b||0}
function xG(a){W(a.j,32)||(eN(a,Ut(a.j,32)),W(a.j,8)&&a.pauseVideo(!0),a.H("beginseeking",a))}f.Mi=function(){if(!isNaN(this.F)&&this.g){var a=this.Td();!this.b.ib&&this.F>=Math.floor(a)?(this.F=a,this.H("endseeking",this),this.pauseVideo(!0),this.rg()):(this.k&&this.k.seek(this.F),Ht(this.g,this.F))}this.V&&(this.V.dispose(),this.V=null);W(this.j,32)&&(a=this.j,eN(this,Ut(St(a,a.g&-33),16)),this.H("endseeking",this))};
f.getCurrentTime=function(){if(!isNaN(this.F))return this.F;var a=0;this.g&&1<=this.g.readyState?a=this.g.getCurrentTime():this.b&&(a=this.b.jg||this.b.Ta||0);return a};f.Td=function(){return as(this.b)?Infinity:this.b&&this.b.Oa?this.b.Oa:yN(this)?yN(this):0};
f.Yw=function(){var a=new oM;if(this.ca&&this.k){var b=this.ca;a.j=b.D;a.o=b.F;a.b=cK(b);b=this.k;b.b&&!fr(b.b)&&(a.g=Ct(b.b.g.buffered,b.k),a.k=Ct(b.b.b.buffered,b.k));a.b=WK(b.B);cK(b.A);aK(b.A);bK(b.A)}else this.g&&(a.g=Ct(this.g.buffered,this.getCurrentTime()));return a};function AN(a){if(a.g)if(as(a.b))a=1;else if(bs(a.b))if(a.xa)a=0;else{var b=a.g;a=(0<Bt(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.Td()}else a=Ms(a.g);else a=0;return a}
$M.prototype.getDebugInfo=function(a){var b={};a&&(this.o&&sa(b,this.o.getDebugInfo()),this.g&&sa(b,this.g.getDebugInfo()),this.k&&sa(b,this.k.getDebugInfo()),W(this.j,128)&&(b.debug_error=this.j.b));b.debug_videoId=this.b.videoId;return b};f=$M.prototype;f.ax=function(){dN(this)};f.$w=function(a){Mv(this,"auth",unescape(a.reason),a.errordetail)};function dN(a,b){a.H("internalvideodatachange",b||"dataupdated",a,a.b)}
function sN(a){z("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.U.listen(this.g,a,this.rC)},a)}
f.rC=function(a){var b=a.target;if(b==this.g&&b.currentSrc){switch(a.type){case "error":if(this.B.mk&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(u(function(){this.g&&(this.b.P&&this.g.load(),tN(this))},this),500);if(this.o)this.o.onError("progressive.net");return}break;case "durationchange":if(!this.b.tb||this.b.j&&!this.b.j.g)b=b.duration||0,(!this.D||isFinite(b)&&0<b)&&iN(this,b);break;case "ratechange":this.k&&(this.k.B.g=Math.max(1,this.g.playbackRate));break;case "ended":eN(this,
St(this.j,4));this.nk();break;case "loadedmetadata":this.b.Ta&&(this.g.currentTime=this.b.Ta),this.B.po&&this.b.Ta&&(this.T=this.b.Ta,this.pauseVideo(!0));case "loadeddata":this.da&&N(this.da);break;case "loadstart":Te(this.wa);this.fi()||(this.wa=Se(u(this.fi,this),100));break;case "progress":this.T&&this.g.seekable.length&&this.g.seekable.end(0)>this.T&&(this.g.currentTime=this.T,this.T=NaN,this.Ba=this.U.listen(this.g,"canplay",this.rv));case "suspend":zN(this);this.H("onLoadProgress",this,AN(this));
break;case "seeked":BN(this);break;case "playing":tq("plev");break;case "timeupdate":this.Ca=!0,this.fi(),BN(this),zN(this),this.H("onVideoProgress",this,b.getCurrentTime())}this.H("videoelementevent",a);a=Pt(this.j,a,this.za);eN(this,a)}};
f.fi=function(){var a=this.g;a&&this.Ca&&!this.b.rk&&!vq("vfp")&&2<=a.readyState&&!a.ended&&0<Bt(a.buffered)&&tq("vfp");if((a=this.g)&&!this.b.rk&&0<(a.duration||0)&&(!vq("paft")&&vq("plev")&&It(a)&&2<=a.readyState&&0<Bt(a.buffered)&&tq("pbr"),0<a.getCurrentTime())){Te(this.wa);this.b.rk=!0;CN(this);if(this.o){a=this.o;if(!a.j){var b=QM(a,"playback");a.D=[10+a.b.b.Mh,10,10,40+a.b.b.Sj-a.b.b.Mh,40];var c=a.g;Te(c.A);c.A=NaN;c.A=Se(u(c.update,c),100);c.o=CM(c.g);c.k=yM(c.g);b.kg=OM(a,!0);b.ou=!0;b.send();
!a.b.g.dc||a.b.g.$h||a.j||(b=a.b.g,c=a.b.b,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.Da,plid:c.yb,ei:c.A,referrer:RK(b),eurl:b.g,framer:b.F,feature:b.B,fmt:c.b?c.b.id:0,ptk:c.L,skl:c.Un,access_token:c.B,ucid:c.jf},sa(b,TM(a)),delete b.fexp,b=Wd(a.b.g.rb+"user_watch",b),kf(b));a.b.b.L&&(b=a.b.g,c=a.b.b,b=Wd(b.rb+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.Da,plid:c.yb,ei:c.A,ptk:c.L,oid:c.Md,ptchn:c.qd,pltype:c.hf,content_v:b.C}),kf(b));if(a.b.b.Tn&&a.b.g.xe&&!a.j){var b=a.b.g,c=a.b.b,d=
{noflv:1,video_id:c.videoId,cpn:c.Da,el:b.$,ps:b.ob,referrer:RK(b),eurl:b.g,framer:b.F,fmt:c.b?c.b.id:0,ptk:c.L,subscribed:c.I,t:c.Tj};b.xc&&(d.autoplay="1");c.re&&(d.splay="1");0<c.Ta&&(d.start=1E3*c.Ta);c.ck&&(d.tmi="1");b=Wd(a.b.g.rb+"get_video",d);kf(b)}a.b.b.Th&&(a.bi("playback"),a.o||VM(a));a.b.b.qe||WM(a);a.j=!0;a=a.g;a.b=a.g.j();a.o=CM(a.g);.5<a.b-a.j&&(a.j=a.b)}L(u(this.nk,this),4500)}this.H("playbackstarted");this.k&&(this.k.U=!0);Zy()&&cz();return!0}return!1};
function CN(a){var b=v(),c=a.getCurrentTime(),d=a.b;if(!vq("pbs")){var e=1E3*(c-d.Ta);0>e&&(e=0);tq("pbs",b-e);qq.measure&&qq.getEntriesByName&&(qq.getEntriesByName("mark_navigation_requested")[0]?qq.measure("measure_above_the_fold","mark_navigation_requested"):qq.measure("measure_above_the_fold"))}d.videoId&&(b=d.videoId,zq(void 0).docid=b);d.A&&(b=d.A,zq(void 0).ei=b);d.Da&&(b=d.Da,zq(void 0).cpn=b);0<d.Ta&&(b=d.Ta.toString(),zq(void 0).start=b);a.g&&It(a.g)&&(zq(void 0).paused=1);d.b?(d=d.b.id,
zq(void 0).fmt=d):zq(void 0).fmt="-1";d=Math.round(AN(a)*a.Td()).toString();zq(void 0).tds=d;c=c.toFixed(3);zq(void 0).cmt=c;if(a.k){a=a.k;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(a.ca),c.length&&(c=c[0],HL(a,"vri",c.fetchStart),HL(a,"vdns",c.domainLookupEnd),HL(a,"vreq",c.requestStart),HL(a,"fvb",c.responseStart),HL(a,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(a.V),c.length&&(c=c[0],HL(a,"ari",c.fetchStart),HL(a,"adns",
c.domainLookupEnd),HL(a,"areq",c.requestStart),HL(a,"fab",c.responseStart),HL(a,"arc",c.responseEnd)));a=a.da;for(var g in a)tq(g,a[g])}}f.rv=function(){this.Ba&&(this.U.Fa(this.Ba),this.Ba=void 0,Jt(this.g))};
function zN(a,b){if(a.g&&a.b){var c=a.getCurrentTime();if(c<DN(a))nN(a,yN(a),!0);else{if(a.k){var d=a.k;if(d.b){d.resume();if(d.F&&!fr(d.b)){var e=d.k<=c&&c<d.k+10,g=0<=zt(d.b.b.buffered,d.k)&&0<=zt(d.b.g.buffered,d.k);e&&g&&(d.F=!1)}d.F||(d.k=c);QL(d)}}bs(a.b)&&c>a.Td()&&(d=a.Td(),0==d&&(d=c),iN(a,1.2*d));5<c&&(a.b.Ta=c);(d=Zy())?bz(a.aa):N(a.aa);It(a.g)||(e=u(a.Zu,a),a.aa=a.g.played&&0==a.g.played.length?d?$y(e,100):L(e,100):d?$y(e,500):L(e,500));a.b.jg=c;!b&&a.Vh()&&a.o&&(d=a.o,d.g.update(),d.b.b.Oa&&
d.b.b.qe&&!d.L&&AM(d.g)>=d.b.b.qe&&(d.j&&d.b.b.qe&&(e=QM(d,"delayplay"),e.$u=!0,e.send(),d.L=!0),WM(d)),e=d.N,!e.k&&e.b.xe&&!e.b.$h&&e.g.Oa&&AM(e.o)>=e.g.Do&&d.N.send());a.fi()&&a.b.$j&&0<a.b.jg&&(d=a.o,d.j&&(e=d.b.g,g=d.b.b,d={ns:"yt",docid:g.videoId,plid:g.yb,ei:g.A,cpn:g.Da,fmt:g.b?g.b.id:0,el:e.$,ps:e.ob,subscribed:g.I,yttk:"1",st:d.b.j(),et:d.b.j(),ctp:"1",vid:e.la},d=Wd("//s2.youtube.com/s",d),kf(d)),a.b.$j=!1);a.H("progresssync",a,b);a.b.av=c}}}
f.Zu=function(){this.g&&(W(this.j,8)&&Tt(this.za,this.getCurrentTime(),Date.now(),Ct(this.g.buffered,this.g.getCurrentTime()))&&eN(this,Ut(this.j,1)),zN(this))};
function eN(a,b){var c=a.j;if(b.g!=c.g||b.b!=c.b){c=new ZM(b,a.j);a.j=b;0>Nv(c,8)&&jN(a,!1);0<Nv(c,32)&&jN(a,!1);bs(a.b)&&W(c.state,2)&&(iN(a,a.getCurrentTime()),zN(a,!0));a.o&&UM(a.o,c);var d=a.A;if(d.wg&&!d.ti)if(bu(d),W(c.state,2)){d.A=null;for(var e=[],g=0;g<d.b.length;g++){var h=d.b[g];h.active&&2147483647>h.end&&e.push(h)}g=ut(d.g,2147483646);g=g.concat(vt(d.g,2147483646));e=du(d,e).concat(cu(d,g));eu(d,e)}else W(c.state,16)?(d.k=au(d),d.o.stop(),d.o.start(),d.lc()):(d.o.stop(),W(c.b,16)?(d.k=
au(d),null!=wt(d.g,Math.max(d.k-2E3,0))&&(d.Dg=Mk(u(d.lc,d)))):d.lc());a.H("statechange",c)}}f.Zw=function(){this.b.ib||this.H("connectionissue")};f.Wt=function(){Ht(this.g,Math.max(0,this.g.currentTime+.1))};function BN(a){W(a.j,2)||W(a.j,32)||(a.F=NaN)}function jN(a,b){a.b.tb&&a.xa!=b&&(a.xa=b,a.H("liveviewshift",b))}function vN(a,b){Gt(a.g,b);a.D&&!b.b&&(a.D=null);Tr(a.b)&&EN(a);N(a.da);a.da=L(u(a.Wz,a),15E3);a.B.lp?L(u(function(){Jt(this.g)},a),0):Jt(a.g)}
function EN(a){var b=Tr(a.b);b&&!a.C&&a.g&&((b=Wq(a.g,a.b.b.mimeType,b))?(a.C=new eM(a.g,b),a.C.subscribe("newsession",a.Tz,a),a.C.subscribe("licenseerror",a.Qz,a),a.C.subscribe("qualitychange",a.Rz,a),a.C.subscribe("heartbeatparams",a.Sz,a),a.C.L=a.b.B,S(a,a.C)):Mv(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"))}function cN(a){a.C&&(a.C.dispose(),a.C=null)}
f.Tz=function(a){var b=NK(this.B);b.cpn=this.b.Da;this.b.C&&(b.vvt=this.b.C);this.B.Sa&&(b.authuser=this.B.Sa);this.B.Za&&(b.pageid=this.B.Za);bc(a.o,b);lt(a,a.A);this.H("newlicensesession",a)};f.Qz=function(a,b,c){Mv(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.Rz=function(){mJ(this,"r");dN(this)};f.Sz=function(a){this.H("heartbeatparams",a)};f.Wz=function(){this.o.onError("qoe.start15s");this.H("loadsofttimeout")};function iN(a,b){a.b.Oa!=b&&(a.b.Oa=b,dN(a))}
f.nk=function(){if(!this.ka){var a=new hM(this.b),b;"c1a"in a.g?(b=q("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)L(u(this.nk,this),4500);else{this.ka=!0;var c;if(a.b&&a.b.ca){b=[a.b.ca];for(c in a.j)if(a.g[c]){var d=a.j[c](a.g);d&&b.push(d)}c=b.join("&")}else c=null;c&&(a=this.o,a.I||(b=QM(a,"atr"),b.B=c,b.send(),a.I=!0))}}};
function yN(a){if(!a.g)return 0;if(a.k){var b=a.k,c=Math.floor(Math.min(b.j.j.index.zf(),b.g.j.index.zf()));return Math.max(b.D.g?c-14:c,DN(a))}a=a.g;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}function DN(a){return a.b.j?(a=Pb(a.b.j.b))?a.index.en():0:0};function FN(){this.j=!1;this.g=0;this.b=""};function GN(a,b,c){this.k=b;this.b=c;this.j=a}GN.prototype.getMessage=function(){return this.k};GN.prototype.getErrorCode=function(){return this.b};GN.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.g?" Caused by: "+this.g:"")};function HN(a,b){T.call(this,"adError");this.j=a;this.k=b?b:null}w(HN,T);var IN="creativeview start firstquartile midpoint thirdquartile complete mute unmute pause rewind resume fullscreen exitfullscreen expand collapse close acceptinvitation acceptinvitationlinear engagedview videoShareClicked videoShareShown skipshown skip replay stop click progress userClose".split(" ");function JN(a,b){T.call(this,a);this.j=b}w(JN,T);JN.prototype.getAd=function(){return this.j};
var KN={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",vH:"engagedview",zH:"expandedChanged",STARTED:"start",Ar:"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",sJ:"skipshown",qJ:"skippableStateChanged",SF:"adMetadata",TE:"adBreakReady",nI:"log",VOLUME_CHANGED:"volumeChange",
hK:"mute",HG:"companionBackfill",sK:"youTubeVideoMetadata",rK:"youTubeChannelMetadata"};var LN=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"];function MN(a){return x(a)?!1:null!=B(LN,function(b){return null!=a.match(b)})}
function NN(a){a=MN(a)?'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"':a;var b=I("iframe",{src:a,style:"display:none"});a=Jc(b).body;var c,d=Mk(function(){Ck(c);cd(b)},15E3);c=Ak(b,["load","error"],function(){Mk(function(){Nk(d);cd(b)},5E3)});a.appendChild(b)};var ON=["google-developers.appspot.com","devsite.googleplex.com"],PN=["*.googlesyndication.com"],QN=["*.youtu.be","*.youtube.com"],RN="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(" "),
SN=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function TN(a){var b;if(b=null!=a)(b=UN(ON,a))||(b=ne(new J(a)),b=null!=b?va(b,".corp.google.com")||"corp.google.com"==b:!1),b=b||(null!=a?UN(QN,a):!1);return b}function UN(a,b){try{var c=ne(new J(b)),c=c.replace(/^www./i,"");return hb(a,function(a){return VN(a,c)})}catch(d){return!1}}
function VN(a,b){if(x(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 WN(a){if("https:"==window.location.protocol){var b=new J(a);if((new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+RN.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a))return ae(b,"https"),b.toString()}return a};function XN(a){window.open(WN(a),"_blank")}function YN(a,b,c){null!=a?(K(a,"label",b),null!=c&&K(a,"value",c.join(";")),a=a.toString()):a="";ZN(a)}function ZN(a,b,c){null!=b&&(a=$N(a,b));null!=c&&(x(c)||(b=new J(a),Be(b.b,"label")&&(K(b,"acvw",c),a=b.toString())));a=WN(a);NN(a)}function aO(a,b){null!=a&&z(a,function(a){ZN(a,b)})}
function $N(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=Yb(b,a),d=d.toString();if(!x(d))return encodeURIComponent(d).replace("%2C",",")}catch(e){}return a})};function bO(a,b){this.message=a;this.errorCode=b}bO.prototype.getErrorCode=function(){return this.errorCode};bO.prototype.getMessage=function(){return this.message};
var cO=new bO("Unable to request ads from server. Cause: {0}.",1005),dO=new bO("Unable to request ads from server due to network error.",1012),eO=new bO("Cannot parse the {0} value for the adslist response: {1}.",900),fO=new bO("Invalid usage of the API. Cause: {0}",900),gO=new bO("Unable to display one or more required companions.",602),hO=new bO("There was a problem requesting ads from the server.",1005),iO=new bO("The provided ad type: {0} is not supported.",1005),jO=new bO("The provided {0} information: {1} is invalid.",
1101),kO=new bO("The response does not contain any valid ads.",1009),lO=new bO("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),mO=new bO("The ad playlist response was malformed or empty.",1010),nO=new bO("The ad response was not understood and cannot be parsed.",1010),oO=new bO("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),pO=new bO("The ad response contains unexpected element. Cause {0}.",
1010),qO=new bO("No assets were found in the VAST ad response.",200),rO=new bO("Duplicate node in <{0}>: {1}",101),sO=new bO("The VAST response document is empty.",1009),tO=new bO("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),uO=new bO("Ad request reached a timeout.",301),vO=new bO("VAST response was malformed and could not be parsed.",100),wO=new bO("VAST media file loading reached a timeout of {0} seconds.",402),xO=new bO("Ad request could not be completed due to a network error.",
301),yO=new bO("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),zO=new bO("The maximum number of VAST wrappers ({0}) has been reached.",302),AO=new bO("VAST media file duration differs from the VAST response duration by {0} seconds.",202),BO=new bO("Video player received an ad with unexpected or incompatible linearity",201),CO=new bO("Unknown node in <{0}>: {1}",101),DO=new bO("Invalid VAST resource type: {0}",101),EO=new bO("Invalid VAST version",
102),FO=new bO("No additional VAST wrappers allowed.",300),GO=new bO("No Ads VAST response after one or more Wrappers",303),HO=new bO("There was an error playing the video ad.",400),IO=new bO("VMAP unsupported node in <{0}>: {1}",1010),JO=new bO("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);function KO(a,b,c){return LO("adLoadError",a,b||null,wb(arguments,2))}function MO(a,b,c){return LO("adPlayError",a,b||null,wb(arguments,2))}
function NO(a,b,c,d,e){a.apply(null,sb([c,d],wb(arguments,3)));b.S(new JN("log",null))}function LO(a,b,c,d){if(c instanceof GN)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 GN(a,b,e);a.g=c;return a}function OO(a,b,c,d){var e=MO.apply(null,sb([b,c],wb(arguments,3)));a.S(new HN(e))};function PO(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};var QO=new function(){this.j="always";this.b=this.k=this.g=!1};function RO(a){return(a=a.exec(dc))?a[1]:""}var SO=function(){if(gh)return RO(/Firefox\/([0-9.]+)/);if(oc||nc)return xc;if(lh)return RO(/Chrome\/([0-9.]+)/);if(mh)return RO(/Version\/([0-9.]+)/);if(ih||jh){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(dc))return a[1]+"."+a[2]}else{if(kh)return(a=RO(/Android\s+([0-9.]+)/))?a:RO(/Version\/([0-9.]+)/);if(hh)return RO(/Camino\/([0-9.]+)/)}return""}();var TO={},UO="",VO=/OS (\S+) like/,WO=/Android (\S+);/;function XO(){return kc||Pa(dc,"Mobile")}function YO(a,b){if(null==TO[b]){var c;xa(UO)&&(c=a.exec(dc))&&(UO=c[1]);(c=UO)?(c.replace(/_/g,"."),TO[b]=0<=Ua(c,b)):TO[b]=!1}return TO[b]}function ZO(){return lc&&XO()&&Pa(dc,"Safari")||kc&&(!kc||!YO(WO,4))?!1:!0};function $O(){this.g=.05>Math.random();this.b=Math.floor(4503599627370496*Math.random())}da($O);function aP(a,b,c,d){if(a.g||d){c=c||{};c.lid=b;c=bP(a,c);var e=new J("http://pagead2.googlesyndication.com/pagead/gen_204");Lb(c,function(a,b){K(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=cP();ae(e,a.Gb);ZN(e.toString())}}function bP(a,b){b.id="";var c=cP();b.c=a.b;b.domain=c.Bb;return b}function cP(){var a=Tc(),b=document;return new J(a.parent==a?a.location.href:b.referrer)};function dP(){}f=dP.prototype;f.XC=!1;f.Is=!1;f.wq=!0;f.baseYouTubeUrl=null;f.Of=-1;f.contentId=null;f.uk=!1;f.ih=null;f.un=null;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.loadVideoTimeout=15E3;var eP={"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"},fP=["ADSENSE","ADSENSE/ADX"],gP=["DART","DART_DFA","DART_DFP"],hP=["GDFP"],iP={AI:"video/mp4",CI:"video/mpeg",oI:"application/x-mpegURL",JI:"video/ogg",HJ:"video/3gpp",kK:"video/webm",zI:"audio/mpeg",BI:"audio/mp4"};function jP(a,b,c){if(E(a))return null;a=gb(a,function(a){var b=a.j;return"application/x-mpegurl"==ya(a.b).toLowerCase()||"progressive"==b});E(c)||(c=A(c,function(a){return a.toLowerCase()}),a=gb(a,function(a){return C(c,ya(a.b).toLowerCase())}));if(!ja(b)||0>=b)b=gc("iPad")||gc("Android")&&!gc("Mobile")||gc("Silk")||!(gc("iPod")||gc("iPhone")||gc("Android"))?1E3:500;return kP(a,b)}function kP(a,b){return lP(a,b)||mP(a,b)||nP(a,b)}
function lP(a,b){var c=null;z(a,function(a){var e=a.Re,g=a.ce;e>b||g<b||!(null==c||c.Re>e)||(c=a)});return c}function mP(a,b){var c=null;z(a,function(a){var e=a.Re,g=a.ce;g>b||(null==c||c.ce<g?c=a:null!=c&&c.ce==g&&c.Re>e&&(c=a))});return c}function nP(a,b){var c=null;z(a,function(a){var e=a.Re,g=a.ce;if(!(e<b))if(null!=c&&c.Re==e&&c.ce<g)c=a;else if(null==c||c.Re>e)c=a});return c};function oP(){U.call(this);this.k=this.o=this.j=!1;this.g=0;this.A=[];this.B=!1}w(oP,U);function pP(a,b){null==b||a.j||(a.b=b,a.C=!lc&&!vc,a.D=lc||vc,a.j=!0,a.b instanceof U||a.C?a.b.addEventListener("click",u(a.So,a),!1):a.D?(a.b.addEventListener("touchstart",u(a.Vo,a),!1),a.b.addEventListener("touchmove",u(a.Uo,a),!1),a.b.addEventListener("touchend",u(a.To,a),!1)):a.j=!1)}
function qP(a){null!=a.b&&a.j&&(a.C?a.b.removeEventListener("click",u(a.So,a),!1):a.D&&(a.b.removeEventListener("touchstart",u(a.Vo,a),!1),a.b.removeEventListener("touchmove",u(a.Uo,a),!1),a.b.removeEventListener("touchend",u(a.To,a),!1)),a.j=!1,a.o=!1,a.k=!1,a.g=0,a.A=[],a.B=!1)}f=oP.prototype;f.Vo=function(a){this.o=!0;this.g=a.touches.length;this.B=rP(this,a.touches)||1!=a.touches.length;sP(this,a.touches)};f.Uo=function(a){this.k=!0;this.g=a.touches.length};
f.To=function(a){this.o&&1==this.g&&!this.k&&!this.B&&rP(this,a.changedTouches)&&this.S(new T("click"));this.g=a.touches.length;0==this.g&&(this.k=this.o=!1)};f.So=function(){this.S(new T("click"))};function sP(a,b){a.A=[];z(b,function(a){ob(this.A,a.identifier)},a)}function rP(a,b){return hb(b,function(a){return C(this.A,a.identifier)},a)}f.J=function(){qP(this);oP.G.J.call(this)};function tP(a,b,c,d,e,g,h,k,l){this.j=a;this.b=b;isNaN(c)&&isNaN(d)&&isNaN(e)?e=d=0:isNaN(d)&&!isNaN(e)?d=e:!isNaN(d)&&isNaN(e)?e=d:!isNaN(c)&&isNaN(d)&&isNaN(e)&&(d=e=c);this.Re=d;this.ce=e;this.o=h;this.g=k;this.k=l}tP.prototype.getHeight=function(){return this.o};function uP(a,b,c,d,e,g,h){this.b=a;this.g=b;this.j=c;this.k=h;this.o=d;this.A=e;this.kb=g};function vP(){U.call(this)}w(vP,U);var wP={mG:"beginFullscreen",CLICK:"click",sH:"end",uH:"endFullscreen",ERROR:"error",qI:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",pJ:"skip",xJ:"start",IJ:"timeUpdate",gK:"volumeChange"};function xP(a){U.call(this);this.b=a;this.M=new Ik(4);this.C=this.N=0;this.I=this.j=this.B=!1;this.size=this.Cm();this.D=this.$i();this.O=15E3;this.F=!1}w(xP,vP);f=xP.prototype;
f.Rq=function(a,b,c,d){a=gb(a,function(a){if(!d&&x(a.g))a=!1;else{var b=a.b;"progressive"!=a.j&&"application/x-mpegurl"!=ya(b).toLowerCase()?a=!1:(b=ya(b).toLowerCase(),a=xa(b)||kc&&YO(WO,2.3)&&La(b,"application/ogg")?!1:kc&&(La(b,"video/mp4")||La(b,"video/3gpp"))||(lc||vc)&&(La(b,"application/x-mpegurl")||La(b,"application/vnd.apple.mpegurl"))?!0:!xa(this.b.canPlayType(b)))}return a},this);return jP(a,b,c)};f.ds=function(){return gb(Qb(iP),function(a){return!xa(this.b.canPlayType(a))},this)};
f.zl=function(a){this.O=0<a.kb?a.kb:15E3};f.Bg=function(a){yP(this);this.b.src=a;this.b.load()};f.tn=function(){return this.b.src};f.setVolume=function(a){this.b.volume=a};f.$d=function(){return this.b.volume};f.play=function(){this.F=!1;Mk(this.b.play,0,this.b);this.L=Mk(this.BB,this.O,this)};f.pause=function(){this.F=!0;this.b.pause()};f.ah=function(){return this.b.paused?lc||vc||lh?this.b.currentTime<this.b.duration:!0:!1};f.Ii=function(){return this.b.muted};
f.Ym=function(){lc&&this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen&&this.b.webkitExitFullscreen()};f.$i=function(){if(lc)return this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen;var a=window.screen.availWidth||window.screen.width,b=window.screen.availHeight||window.screen.height,c=ka(this.b.getBoundingClientRect)?this.b.getBoundingClientRect():{width:this.b.offsetWidth,height:this.b.offsetHeight};return c.width>=a&&c.height>=b};
f.ph=function(a){var b;t:{for(b=this.M.Qa();b.length;){var c=b.pop();if(0<c){b=c;break t}}b=-1}return b>=a};f.Kf=function(a){this.b.currentTime=a};f.getCurrentTime=function(){return this.b.currentTime};f.sd=function(){return isNaN(this.b.duration)?-1:this.b.duration};f.Fe=function(){return this.b.ended};f.Cm=function(){return new G(this.b.offsetWidth,this.b.offsetHeight)};f.Tq=function(){return this.b.seeking};f.J=function(){this.Df();this.b=null;xP.G.J.call(this)};f.Zr=function(){return this.b.error};
f.Ei=function(){this.Df();this.g=new Rk(this);this.g.listen(this.b,"canplay",this.Cz);this.g.listen(this.b,"ended",this.zz);this.g.listen(this.b,"webkitbeginfullscreen",this.Ql);this.g.listen(this.b,"webkitendfullscreen",this.Aq);this.g.listen(this.b,"pause",this.Az);this.g.listen(this.b,"playing",this.Ez);this.g.listen(this.b,"timeupdate",this.Fz);this.g.listen(this.b,"volumechange",this.Bz);this.g.listen(this.b,"error",this.zp);this.o=new oP;this.g.listen(this.o,"click",this.yz);pP(this.o,this.b);
this.A=new Kk(1E3);this.g.listen(this.A,"tick",this.Dz);this.A.start()};f.Df=function(){null!=this.o&&(qP(this.o),this.o=null);null!=this.A&&this.A.dispose();null!=this.g&&(this.g.dispose(),this.g=null);yP(this)};function yP(a){a.j=!1;a.I=!1;a.M.clear();Nk(a.L);Ih(a.k)}function zP(a){a.j||(a.j=!0,Nk(a.L),a.S("start"),(!kc||kc&&YO(WO,3))&&(!lc||(lc||vc)&&YO(VO,4))||a.Ql())}f.Cz=function(){var a;if(a=mh)a=dc,a=!(null!=a&&Pa(a,"Samsung")&&Pa(a,"SMART-TV"));a&&!this.I&&(this.Kf(.001),this.I=!0)};
f.Ez=function(){this.S("play");lc||vc||kh||zP(this)};f.Fz=function(){if(!this.j&&(lc||vc||kh)){if(0>=this.getCurrentTime())return;if(kh&&this.Fe()&&1==this.sd()){this.zp();return}zP(this)}if(lc||vc){if(!this.B&&1.5<this.getCurrentTime()-this.N){this.B=!0;this.Kf(this.C);return}this.N=this.getCurrentTime();this.B=!1;this.getCurrentTime()>this.C&&(this.C=this.getCurrentTime())}this.M.add(this.b.currentTime);this.S("timeUpdate")};f.Bz=function(){this.S("volumeChange")};
f.Az=function(){var a;this.j&&(lc||vc)&&!this.F&&2>AP(this)-this.b.currentTime?(this.k=new Kk(250),this.g.listen(this.k,"tick",this.Ix),this.k.start(),a=!0):a=!1;a||this.S("pause")};f.zz=function(){var a=!0;(lc||vc)&&(a=this.C>=this.b.duration-1.5);!this.B&&a&&this.S("end")};f.Ql=function(){this.S("beginFullscreen")};f.Aq=function(){this.S("endFullscreen")};f.zp=function(){Nk(this.L);this.S("error")};f.yz=function(){this.S("click")};
f.Dz=function(){var a=this.Cm(),b=this.$i();if(a.width!=this.size.width||a.height!=this.size.height)!this.D&&b?this.Ql():this.D&&!b&&this.Aq(),this.D=b,this.size=a};f.BB=function(){if(!this.j){try{aP($O.getInstance(),16)}catch(a){}yP(this);this.S("mediaLoadTimeout")}};f.Ix=function(){if(this.Fe()||!this.ah())Ih(this.k);else{var a=this.b.duration-this.b.currentTime,b=AP(this)-this.b.currentTime;0<b&&(2<=b||2>a)&&(Ih(this.k),this.play())}};
function AP(a){for(var b=a.b.buffered.length-1;0<=b;){if(a.b.buffered.start(b)<=a.b.currentTime)return a.b.buffered.end(b);b--}return 0};function BP(a,b){if(null==a||!id(Jc(a),a))throw MO(jO,null,"containerElement","element");this.o=a;this.g=this.b=null;this.k=b;this.j=null;this.b=I("div",{style:"display:none;"});var c=I("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;"});c.setAttribute("webkit-playsinline",!0);this.g=c;this.j=I("div",{style:"position:absolute;width:100%;height:100%;"});this.o.appendChild(this.b);this.b.appendChild(this.g);this.k&&(c=I("div",{id:this.k,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),
this.b.appendChild(c));this.b.appendChild(this.j)}w(BP,Gh);BP.prototype.initialize=function(){XO()&&this.g.load()};BP.prototype.dispose=function(){cd(this.b)};BP.prototype.show=function(){var a=this.b;null!=a&&(a.style.display="block")};BP.prototype.hide=function(){var a=this.b;null!=a&&(a.style.display="none")};function CP(a){null!=a?UN(PN,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&UN(QN,a)?DP(a):null:a=null;return a}function EP(a,b,c){if(null==a)return null;c=new J((null!=c?c:"//www.youtube.com/")+"watch");var d=c.b;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");ee(c,d);return c.toString()}
function DP(a){if(x(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=re(new J(a));return Be(a,"v")?a.get("v").toString():Be(a,"video_id")?a.get("video_id").toString():null};function FP(a){U.call(this);this.N="ima-chromeless-video";var b=null;null!=a&&(s(a)?this.N=a:b=a);this.O=new Rk(this);this.k=null;this.j=!1;this.B=-1;this.I=!1;this.o=-1;this.g=this.F=this.C=null;this.L="";this.b=!1;this.P=null!=b;this.D=this.M=this.W=null;this.A=void 0;null!=b?(this.b=!0,this.W=b,this.A=2):(a=u(this.zu,this),GP?a():(HP.push(a),a=Xc("script"),a.src="//www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))}w(FP,vP);
var IP=["video/mp4","video/webm"],JP={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},HP=[],GP=!1;f=FP.prototype;f.Rq=function(a,b,c){var d=B(a,function(a){return null!==CP(a.g)});return null!==d||!E(c)&&(c=gb(c,function(a){return C(IP,a)}),d=jP(a,b,c),null!==d)?d:B(a,function(a){return C(IP,a.b)})};f.zl=function(a){this.g=a};f.Bg=function(a,b){null!==a&&(this.L=a,this.b?KP(this,a,b):(this.C=a,this.F=b))};f.tn=function(){return this.L};
f.setVolume=function(a){this.P?this.S("volumeChange"):this.b?(a=Gb(100*a,0,100),this.W.setVolume(a),this.o=-1,this.S("volumeChange")):this.o=a};f.$d=function(){return this.b?this.W.getVolume()/100:this.o};f.play=function(){if(!x(this.L)){if(!this.j){LP(this);var a=15E3;null!=this.g&&0<this.g.kb&&(a=this.g.kb);this.T=Mk(this.wx,a,this)}this.b?(this.I=!1,MP(this),this.k=new Kk(100),this.O.listen(this.k,"tick",this.Zp),this.k.start(),this.W.playVideo()):this.I=!0}};
f.pause=function(){this.b&&this.j&&(MP(this),this.W.pauseVideo())};f.ah=function(){return this.b?2==this.W.getPlayerState(this.A):!1};f.Ii=function(){return this.U?this.W.isMuted():0==this.$d()};f.Ym=function(){};f.$i=function(){return!1};f.ph=function(a){return this.b?this.W.getCurrentTime(this.A)>=a:!1};f.Kf=function(a){this.b?this.W.seekTo(a,!1):this.B=a};f.getCurrentTime=function(){return this.b?this.W.getCurrentTime(this.A):-1};
f.sd=function(){return this.b&&this.j?this.W.getDuration(this.A):-1};f.Zr=function(){return null};f.ds=function(){return Qb(iP)};f.Fe=function(){return this.b?0==this.W.getPlayerState(this.A):!1};f.Cm=function(){var a=document.getElementById(this.N);return new G(a.offsetWidth,a.offsetHeight)};f.Tq=function(){return!1};
f.Ei=function(){this.M=u(this.Fs,this);this.D=u(this.Dn,this);this.P&&(this.W.addEventListener("onAdStateChange",this.D),this.W.addEventListener("onReady",this.M),this.W.addEventListener("onStateChange",this.D))};f.Df=function(){this.P&&(this.W.removeEventListener("onAdStateChange",this.D),this.W.removeEventListener("onReady",this.M),this.W.removeEventListener("onStateChange",this.D))};
f.zu=function(){var a=this.N,b={playerVars:Zb(JP),events:{onError:u(this.jD,this),onReady:u(this.Fs,this),onAdStateChange:u(this.Dn,this),onStateChange:u(this.Dn,this)}},c=q("YT");this.W=null!=c&&null!=c.Player?new c.Player(a,b):null};
function KP(a,b,c){var d={};if(null!=a.g){var e=a.g.g;null!=e&&(d.agcid=e);e=a.g.b;null!=e&&(d.adformat=e);(e=a.g.j)&&(d.cta_conversion_urls=e);d.iv_load_policy=a.g.o?1:3;a.g.k&&(d.noiba=1);a.g.A&&(d.utpsa=1)}e=CP(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.j=!1;a.W.cueVideoByPlayerVars(d)}f.jD=function(){this.S("error")};
f.Fs=function(){this.b=!0;-1!=this.o&&(this.setVolume(this.o),this.o=-1);null!=this.C&&(KP(this,this.C,this.F),this.F=this.C=null);-1!=this.B&&(this.Kf(this.B),this.B=-1);this.I&&this.play()};f.Dn=function(a){switch(a.data){case 0:this.j?this.S("end"):this.S("error");break;case 1:this.j||(LP(this),this.j=!0,this.S("start"));this.S("play");break;case 2:this.S("pause")}};function MP(a){a.O.Fa(a.k,"tick",a.Zp);null!=a.k&&(a.k.stop(),a.k=null)}function LP(a){null!=a.T&&Nk(a.T)}f.Zp=function(){this.S("timeUpdate")};
f.wx=function(){this.S("mediaLoadTimeout")};f.J=function(){MP(this);LP(this);this.Df();this.b=!1;this.O.dispose();this.B=-1;this.F=null;this.I=!1;this.C=null;this.o=-1;this.M=this.W=this.g=null;this.j=!1;this.L="";FP.G.J.call(this)};ba("onYouTubeIframeAPIReady",function(){GP=!0;z(HP,function(a){a()});nb(HP)},window);function NP(a){U.call(this);this.b=a||Ya();this.g=[]}w(NP,U);NP.prototype.j=!1;NP.prototype.connect=function(){for(this.j=!0;!E(this.g);){var a=this.g.shift();this.sendMessage(a.name,a.type,a.data)}};NP.prototype.send=function(a,b,c){this.j?this.sendMessage(a,b,c):this.g.push({name:a,type:b,data:c})};function OP(a,b,c,d,e){T.call(this,a);this.jd=b;this.Ye=c;this.Qq=d;this.k=e}w(OP,T);OP.prototype.getOrigin=function(){return this.k};OP.prototype.toString=function(){return""};function PP(a,b){NP.call(this,b);this.k=a;this.Cc=null;this.o=new Rk(this);this.logger=null;this.o.listen(Tc(),"message",this.receive)}w(PP,NP);function QP(a){if(null==a||!s(a)||0!=a.lastIndexOf("ima://",0))return null;a=a.substr(6);try{return mf(a)}catch(b){return null}}PP.prototype.sendMessage=function(a,b,c){null!=this.Cc&&null!=this.Cc.postMessage&&this.Cc.postMessage(RP(this,a,b,c),"*");null!=this.Cc&&null==this.Cc.postMessage&&aP($O.getInstance(),11)};
PP.prototype.J=function(){this.o.dispose();PP.G.J.call(this)};PP.prototype.receive=function(a){a=a.b;var b=QP(a.data);if(null!=b){if(null==this.Cc)this.Cc=a.source;else if(this.Cc!=a.source)return;var c=b.channel;null!=c&&c==this.k&&(c=b.sid,null!=c&&("*"!=this.b&&c!=this.b||this.S(new OP(b.name,b.type,b.data||{},b.sid,a.origin))))}};function RP(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.b;e.channel=a.k;return"ima://"+of(e)};function SP(a,b){U.call(this);this.k=a;this.j=b;this.b={};this.g=new Rk(this);this.g.listen(Tc(),"message",this.o)}w(SP,U);SP.prototype.send=function(a){var b=a.getChannelId();this.b.hasOwnProperty(b)?this.b[b].send(a.type,a.jd,a.Ye):a.getChannelId()};function TP(a,b,c,d){a.b.hasOwnProperty(b)||(c=new PP(b,c),a.g.listen(c,a.k,function(a){a=new UP(a.type,a.jd,a.Ye,a.Qq,a.getOrigin(),b);this.S(a)}),c.Cc=d,c.connect(),a.b[b]=c)}SP.prototype.J=function(){this.g.dispose();Kh(this.b);SP.G.J.call(this)};
SP.prototype.o=function(a){a=a.b;var b=QP(a.data);if(null!=b){var c=b.channel;if(this.j&&!this.b.hasOwnProperty(c)){var d=b.sid;TP(this,c,d,a.source);this.S(new UP(b.name,b.type,b.data||{},d,a.origin,c))}}};function UP(a,b,c,d,e,g){OP.call(this,a,b,c,d,e);this.j=g}w(UP,OP);UP.prototype.getChannelId=function(){return this.j};function VP(){var a=q("google.ima.gptProxyInstance",Tc());if(null!=a)return a;Rk.call(this);this.k=new SP("gpt",!0);this.listen(this.k,"gpt",this.A);this.b=null;WP()||Tc().top===Tc()||(this.b=new SP("gpt",!1),this.listen(this.b,"gpt",this.o))}w(VP,Rk);function WP(){return!!q("googletag.cmd",Tc())}function XP(){var a=q("googletag.console",Tc());return null!=a?a:null}
VP.prototype.A=function(a){var b=a.getOrigin(),c=Md("//imasdk.googleapis.com"),b=Md(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.b)TP(this.b,a.getChannelId(),a.Qq,Tc().parent),null!=this.b&&this.b.send(a);else if(c=a.Ye,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.jd,"isGptPresent"==c?d=WP():"isConsolePresent"==c&&(d=null!=XP());else if(WP())if("pubads"==b||"companionAds"==b){d=a.jd;var e,g=Tc().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.jd,e=XP(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.jd;d=Tc();if(C(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}n(d)&&(a.Ye.returnValue=d,this.k.send(a))}};VP.prototype.o=function(a){this.k.send(a)};function YP(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,t){if("%"==p)return"%";var y=c.shift();if("undefined"==typeof y)throw Error("[goog.string.format] Not enough arguments");arguments[0]=y;return ZP[p].apply(null,arguments)})}
var ZP={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Ra(" ",c-a.length):Ra(" ",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+Ra(" ",a):g+Ra(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,g,h,k){return ZP.f(parseInt(a,
10),b,c,d,0,g,h,k)}};ZP.i=ZP.d;ZP.u=ZP.d;function $P(a,b){U.call(this);this.j=new Rk(this);this.B=!1;this.C=Ya();this.o=new Bd;var c=this.C,c=I("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+YP("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});Vk(this.j,c,"load",this.kv);a.appendChild(c);this.eb=c;c=this.o.get("*");null==c&&(c=new PP(this.C,"*"),this.B&&(c.Cc=jd(this.eb),c.connect()),this.o.set("*",c));this.k=c;this.A=b;this.b=this.A.j;
this.g=null;this.j.listen(this.k,"mouse",this.mv);this.j.listen(this.k,"touch",this.ov);null!=this.b&&(this.j.listen(this.k,"displayContainer",this.lv),this.j.listen(this.k,"videoDisplay",this.nv),this.j.listen(this.b,Qb(wP),this.pv));var c=Tc(),d=q("google.ima.gptProxyInstance",c);null==d&&(d=new VP,ba("google.ima.gptProxyInstance",d,c))}w($P,U);f=$P.prototype;
f.J=function(){this.j.dispose();null!==this.g&&(this.g.dispose(),this.g=null);zd(this.o.Wb(!1),function(a){a.dispose()});this.o.clear();cd(this.eb);$P.G.J.call(this)};f.mv=function(a){var b=a.Ye,c=Pf(this.eb),d=document.createEvent("MouseEvent");d.initMouseEvent(a.jd,!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(!mh||lc||vc||!1==document.webkitIsFullScreen)this.eb.blur(),window.focus();this.eb.dispatchEvent(d)};
function aQ(a,b){var c=Pf(a.eb),d=A(b,function(a){return document.createTouch(window,this.eb,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
f.ov=function(a){var b=a.Ye,c=Pf(this.eb),d=document.createEvent("TouchEvent");d.initTouchEvent(a.jd,!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,aQ(this,b.touches),aQ(this,b.targetTouches),aQ(this,b.changedTouches),b.scale,b.rotation);this.eb.dispatchEvent(d)};
f.nv=function(a){if(null!=this.b){var b=a.Ye;switch(a.jd){case "startTracking":this.b.Ei();break;case "stopTracking":this.b.Df();break;case "exitFullscreen":this.b.Ym();break;case "play":this.b.play();break;case "pause":this.b.pause();break;case "load":this.b.Bg(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.b.Kf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.b.zl(new uP(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled))}}};
f.pv=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.b.Fe();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.b.getCurrentTime();b.duration=this.b.sd();break;case "volumeChange":a=
"volumeChange";b.volume=this.b.$d();break;default:return}this.k.send("videoDisplay",a,b)};f.lv=function(a){switch(a.jd){case "showVideo":null!=this.g?qP(this.g):(this.g=new oP,this.j.listen(this.g,"click",this.ay));a=this.A;pP(this.g,null!=a.B?a.B:null!=a.b?a.b.j:null);a=this.A;null!=a.b&&a.b.show();break;case "hide":null!==this.g&&(this.g.dispose(),this.g=null),this.A.hide()}};f.ay=function(){this.k.send("displayContainer","videoClick")};
f.kv=function(){zd(this.o.Wb(!1),function(a){a.Cc=jd(this.eb);a.connect()},this);this.B=!0};function bQ(a,b,c,d){if(null==a||!id(Jc(a),a))throw MO(jO,null,"containerElement","element");this.C=a;var e=null!=b||null!=d;this.A=(this.k=e)&&null!=d;aP($O.getInstance(),8,{enabled:this.k,yt:null!=d,customClick:null!=c});QO.g?a=null:(e=I("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.g=a;this.b=this.k||null==this.g||QO.g||!XO()?null:new BP(this.g,null);a=null;this.k?null!=d?a=new FP(d):null!=b&&(a=new xP(b)):null!=this.b&&(a=new xP(this.b.g));this.j=a;this.B=c||null;
this.o=null==this.g||QO.g?null:new $P(this.g,this)}bQ.prototype.initialize=function(){null!=this.b&&this.b.initialize()};bQ.prototype.destroy=function(){Ih(this.b);Ih(this.o);Ih(this.j);cd(this.g)};bQ.prototype.hide=function(){null!=this.b&&this.b.hide()};function cQ(){U.call(this);this.currentTime=0}w(cQ,U);function dQ(a){cQ.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw MO(jO,null,"content","currentTime");this.g=a;this.b=new Kk(250);this.j=new Rk(this);Uk(this.j,this.b,"tick",this.k,this)}w(dQ,cQ);dQ.prototype.start=function(){this.b.start()};dQ.prototype.stop=function(){this.b.stop()};dQ.prototype.J=function(){dQ.G.J.call(this);this.j.dispose();this.b.dispose()};
dQ.prototype.k=function(){if("currentTime"in this.g&&!isNaN(this.g.currentTime)){var a=this.currentTime;this.currentTime=this.g.currentTime;a!=this.currentTime&&this.S(new T("currentTimeUpdate"))}else this.S(new T("contentWrapperError")),this.stop()};function eQ(){this.reset()}eQ.prototype.reset=function(){this.b=0;this.g=null};function fQ(){this.g=this.b=null}fQ.prototype.reset=function(){this.g=this.b=null};function gQ(){this.b=hQ();this.M=this.L=this.j=this.B=this.k=null;this.I=hQ();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null}function hQ(){return Math.floor(4503599627370496*Math.random())}var iQ=new gQ;gQ.prototype.clear=function(){this.b=hQ();this.j=this.B=this.k=null;this.I=hQ();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null};function jQ(a){if(QO.g)return"h.3.0.0";var b="h."+a.N;null!=a.o&&(b+="/n."+a.o,null!=a.k&&(b+="/"+a.k));return b};function kQ(a,b){this.A=a;this.o=A(b,function(a){return a.clone()});this.k="";this.b=this.j=0;this.g=!0}function lQ(a){a.k="";a.j=0;a.b=0;a.g=!0}kQ.prototype.clone=function(){var a=new kQ(this.A,this.o),b=this.j,c=this.b,d=this.g;a.k=this.k;a.j=b;a.b=c;a.g=d;return a};function mQ(){U.call(this);this.k=!1}w(mQ,U);function nQ(a){T.call(this,a)}w(nQ,T);function oQ(){mQ.call(this);this.B=[];this.o=!1;this.j="not_loaded";this.g=null;this.A=0;this.b=null;this.C=new Ic}w(oQ,mQ);da(oQ);function pQ(a){var b=["googletag","googletag.cmd"];return B(a,function(a){return ib(b,function(b){return null!==q(b,a)})})||null}f=oQ.prototype;f.J=function(){this.g&&this.g.dispose()};f.initialize=function(){if(!this.k){var a;var b=ud(new Ic);try{q("googletag"),pQ([b,b.top]),a=!0}catch(c){a=!1}a?qQ(this):(this.k=!0,this.j="not_available")}};
function rQ(a){return a.k?A(a.B,function(a){return a.clone()}):[]}function sQ(a){a=rQ(a);return null!=a?A(a,function(a){return a.o}):void 0}function tQ(a,b,c){var d=0,e=0;null!=b&&(b=new J(b.adTagUrl),d=Number(ue(b,"pod")||0),e=Number(ue(b,"ppos")||0));if(null!=a.setVideoSessionInfo)try{a.setVideoSessionInfo(iQ.b,"","","",d,e,c)}catch(g){}}function uQ(a,b){var c=vQ(a);if(null!==c){tQ(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}
f.setVideoContent=function(a,b){var c=wQ(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};function vQ(a){null==a.b&&xQ(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.companionAds?a.b.googletag.companionAds():null}function wQ(a){null==a.b&&xQ(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.pubads?a.b.googletag.pubads():null}f.ap=function(){0<this.A&&v()>=this.A?(this.k=!0,yQ(this),zQ(this)):qQ(this)};
function yQ(a){a.g&&(a.g.stop(),a.g.Fa("tick",a.ap,!1,a),a.g.dispose(),a.g=null)}
function qQ(a){var b;if(b=!a.o)xQ(a),b=null!=a.b&&null!=a.b.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.b)a.o=!0,c=[];else{var d=a.b.googleGetCompanionAdSlots();c=A(d,a.qv,a)}}catch(e){a.o=!0,c=[]}a.B=c;a.o=!0}if(b="retrieved"!=a.j&&"not_available"!=a.j)b=null!==vQ(a);if(b){var g;b=vQ(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.j=g;break;default:g=Number(g),isNaN(g)?a.j="not_available":
(a.D=g,a.j="retrieved")}}a.o&&"retrieved"==a.j?(a.k=!0,yQ(a),a.S(new nQ("companions_success"))):a.o&&"not_available"==a.j?(a.k=!0,yQ(a),zQ(a)):a.g||(a.A=v()+5E3,a.g=new Kk(100),a.g.listen("tick",a.ap,!1,a),a.g.start())}function xQ(a){var b=ud(a.C);try{a.b=pQ([b,b.top])}catch(c){a.b=null}}function zQ(a){a.S(new nQ("companion_initialization_failed"))}f.qv=function(a){var b=A(a.adSizes,function(a){return new G(a.adWidth,a.adHeight)});return new kQ(a.slotId,b)};
f.iy=function(a){var b={};b.slotId=a.A;b.adContent=a.k;b.adWidth=a.j;b.adHeight=a.b;b.friendlyIframeRendering=a.g;return b};function AQ(a){T.call(this,a)}w(AQ,T);function BQ(){U.call(this);this.j=[]}w(BQ,U);BQ.prototype.qi=function(){return null};BQ.prototype.Js=function(){return!0};function CQ(){return new DQ("empty-ad","GDFP",0,"",0,0,0,[],[],[],[],new Bd)};function EQ(a){BQ.call(this);this.b=a;this.A=null;this.B=!1;this.g=null;this.o=new Rk;Uk(this.o,this.b,["companions_success","companion_initialization_failed"],this.Ax,this);Uk(this.o,this.b,"companion_display_error",this.zx,this);this.b.k?this.B=!0:this.b.initialize()}w(EQ,BQ);f=EQ.prototype;f.destroy=function(){null!=this.o&&this.o.dispose();this.g=null};function FQ(a,b){a.g=b;a.k=!0;a.B?GQ(a):(a.k=HQ(IQ(b),[]),a.k||(a.g=null))}
function GQ(a){var b=a.g;a.g=null;if(null!=a.b)if(E(a.j))JQ(a);else if(null!=b){var c=KQ(a,b),d=a.b;try{d.b.googleSetCompanionAdContents(A(a.j,d.iy,d))}catch(e){d.S(new nQ("companion_display_error"))}if(0<c.length&&b.T&&(d=a.b,0!=c.length&&"GDFP"==LQ(b)[0])){a=[];for(var g=0;g<c.length;g++)a.push(c[g].A);b=b.j;c=vQ(d);if(null!==c){tQ(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else JQ(a)}function JQ(a){a.S(new AQ("companion_display_error"))}f.Js=function(){return this.k};
f.Ax=function(){null!=this.A&&(this.A.stop(),this.A.dispose(),this.A=null);if(null!=this.b){var a=rQ(this.b);null!=a&&(this.j=a)}this.B=!0;null!=this.g&&GQ(this);this.S(new T("initialized"))};f.zx=function(){JQ(this)};
function KQ(a,b){var c=[],d=[];z(a.j,function(a){lQ(a);hb(a.o,function(d){t:{var e=MQ(b);d=NQ(new OQ(new G(d.width,d.height)),e);if(!E(d)&&(d=PQ(d,c),null!=d)){e=d.j;if(null!=e&&0!=a.A.indexOf(e)){d=!1;break t}c.push(d);var e=d.b.wl(),l=d.b.td(),p=d.getHeight();d="IFrame"!=d.b.P;a.k=e;a.j=l;a.b=p;a.g=d;d=!0;break t}d=!1}return d},this)||d.push(a)},a);var e=IQ(b);a.k=HQ(e,c);a.k||z(a.j,function(a){lQ(a)},a);return d}
function HQ(a,b){if(null==a)return!0;var c=a.b;return"all"==a.g?QQ(c,b):"any"==a.g?RQ(c,b):!0}function IQ(a){return null!=a&&ga(a.getSelectedCreative())&&!isNaN(SQ(a.getSelectedCreative()))?B(TQ(a,!0),function(a){a=a.b;return E(a)?!1:isNaN(a[0].b.b)?!1:a[0].b.b==UQ(a[0])}):null}function QQ(a,b){return ib(a,function(a){return C(b,a)})}function RQ(a,b){return hb(a,function(a){return C(b,a)})}function PQ(a,b){return B(a,function(a){return!C(b,a)})}f.qi=function(){return this.b};function VQ(a){T.call(this,a);this.o=[];this.k={};this.j=null}w(VQ,T);function WQ(){this.ta="";this.g=this.b=!1}var XQ=null;function YQ(){null!=XQ||(XQ=new WQ);return XQ}f=WQ.prototype;f.init=function(){this.b||(cv(gv("//pagead2.googlesyndication.com/pagead/js/lidar.js",{timeout:3E4}),this.bC,this.aC,this),this.b=!0)};f.start=function(){this.b&&(this.ta=String(1E9*Math.random()))};function ZQ(a,b){if(a.b&&a.g){var c={},d;d=QO.o;QO.b&&null!=d&&(c.opt_videoAdElement=Kc(d));return Goog_AdSense_Lidar_sendVastMessage(b,a.ta,c)}return""}
f.destroy=function(){this.ta="";this.g=this.b=!1};f.bC=function(){this.g=!0};f.aC=function(){this.g=!1};ba("ima.common.triggerViewEvent",function(){},void 0);function $Q(a,b,c){this.A=b;this.k=c;this.o=null;this.g=new Rk(this);this.F=a;this.j=this.b=null;this.B=!1}$Q.prototype.start=function(a,b){this.o=a;this.D=b;aR(this);this.A.B?this.C():Xk(this.g,this.A,"initialized",this.C,this)};$Q.prototype.C=function(){var a=this.A.qi(),b;b=a.k?"retrieved"!=a.j?void 0:a.D:void 0;a=sQ(a);null!=b&&(this.k.I=b);null!=a&&(this.k.A=a);bR(this)};
function bR(a){if(null===a.o)cR(a);else{var b=new J(a.o.adTagUrl),c=ya(ue(b,"vid")),b=ya(ue(b,"cmsid")),d=a.k.D,e=a.k.C;a.k.D=c;a.k.C=b;if(x(c)||x(b))cR(a);else if(c==d&&b==e)cR(a);else{var g=a.A.qi();g.setVideoContent(c,b);uQ(g,a.o);a.j=new Kk(100);Uk(a.g,a.j,"tick",function(){var a;t:{var b=wQ(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break t}catch(c){a=!0;break t}a=!1}a&&cR(this)},a);a.j.start()}}}
function aR(a){a.b=new Kk;Xk(a.g,a.b,"tick",function(){cR(this)},a);Lk(a.b,a.F);a.b.start()}function cR(a){null!=a.g&&(a.g.dispose(),a.g=null);null!=a.b&&(a.b.stop(),a.b=null);null!=a.j&&(a.j.stop(),a.j=null);a.B=!0;null===a.D||a.D()};function dR(){};function eR(a){return KO(CO,null,a.parentNode.nodeName,a.nodeName)}function fR(a){return KO(rO,null,a.parentNode.nodeName,a.nodeName)}function gR(a,b){return null!=a?gb(ed(a),function(a){return a.nodeName==b}):[]}function hR(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function iR(a,b){if(null==a)return null;var c="";z(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=za(c);return b?Ka(c):c}
function jR(a,b,c,d){null!=a&&z(ed(a),function(a){if(a.nodeName==b)c.call(d,a);else throw eR(a);})}function kR(a){return x(a)?NaN:Za(ya(a))}function lR(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new sM(0,0,0,Za(c[0]),Za(c[1]),Za(c[2])),60*(60*(24*c.b+c.k)+c.o)+c.A}return null!=b?b:-1}function mR(a,b){if(!x(a))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};function nR(a,b,c){this.g=a;this.b=c;this.j=b};function oR(a){this.j=a};function pR(a){this.j=a;this.g=this.b=!1}w(pR,oR);function qR(a,b,c){this.b=a;this.g=b;this.j=c};function rR(){this.b=new Bd}function sR(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];Dd(a.b.g,c)&&(d=a.b.get(c,[]));z(b,function(a){null!=a&&ob(d,a)});a.b.set(c,d)};function tR(a,b){this.b=a;this.g=b}w(tR,dR);tR.prototype.j=function(){return new nR(this.b,null,uR(this))};
function uR(a){var b=new rR;z(ed(fd(a.b)),function(a){switch(a.nodeName){case "Preroll":a=vR(this,a);sR(b,a,0);break;case "Midroll":var d=hR(a,"timeOffset"),e=lR(d);if(-1==e)throw KO(eO,null,"timeOffset",ya(d));a=vR(this,a);sR(b,a,e);break;case "Postroll":a=vR(this,a);sR(b,a,-1);break;default:throw KO(nO,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.b.Ma().length)throw KO(mO);return b}
function vR(a,b){var c=[];z(ed(b),function(a){switch(a.nodeName){case "Ad":var b=ya(iR(a));if(!xa(b)){a=hR(a,"bumper");var g=this.g.clone();g.adTagUrl=b;b=new pR(g);b.b=null!=a;b.g="always"==a;ob(c,b)}break;default:throw KO(nO,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function wR(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 xR(a){var b={};z(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=za(d[0]),d=za(d[1]),0<a.length&&(b[a]=d))});return b};var yR=["ai","sigh"];function zR(a){var b;b=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?La(a,"/pagead/adview")?AR(a)?0:2:La(a,"/pagead/conversion")?AR(a)?1:2:2:2;if(2==b)return a;switch(b){case 0:return b=iQ.F,a=null!=b?BR(a,"&ppid="+b):a,BR(a,"&sdkv="+jQ(iQ));case 1:return BR(a,"&sdkv="+jQ(iQ))}return a}function BR(a,b){var c=a.indexOf("&adurl=");return-1!=c?Ta(a.substr(0,c),b,a.substr(c,a.length)):a+b}
function AR(a){return ib(yR,function(b){var c=a||"";return 0<=Xd(c,0,b,c.search(Yd))})};function CR(a,b){this.b=a;this.g=b}function DR(a){return a.g?-1:a.b};function ER(){this.b=new Bd}function FR(a,b){this.g=a;this.b=b}function GR(a,b){FR.call(this,"progress",a);this.j=b}w(GR,FR);function HR(a,b){z(b,function(a){this.b.set(a.g,b)},a)}function IR(a,b,c,d){var e=b.toLowerCase();b=JR(a,b);null!=d?(d=new GR(c,d),null!=d?b.push(d):b.push(new FR(e,c))):b.push(new FR(e,c));a.b.set(e,b)}function KR(a,b){z(b,function(a){var d=JR(this,a.g);b=sb(d,b);this.b.set(a.g,b)},a)}function JR(a,b){return null!=b?a.b.get(b.toLowerCase())||[]:[]}
function LR(a,b){var c=JR(a,"progress");z(c,function(a){a=a.j;a.g&&(a.g=!1,a.b=a.b*b/100)});Ab(c,function(a,b){return DR(a.j)-DR(b.j)})}ER.prototype.isEmpty=function(){return this.b.isEmpty()};function MR(a,b){return A(JR(a,b)||[],function(a){return a.b})};function NR(a){var b=new ER;jR(a,"Tracking",function(a){var d=hR(a,"event"),e=zR(iR(a));OR(e)&&null!=d&&("progress"==d?(a=hR(a,"offset"),a=PR(a),null!=a&&IR(b,d,e,a)):IR(b,d,e))});return b}function QR(a){if(x(a))return null;a=new J(a);if("thismessage"!=a.Gb||"extensions"!=a.Bb)return null;a=a.Mb;if(0!=a.lastIndexOf("/",0))return null;a=a.substr(1);return x(a)?null:a}
function PR(a){if(x(a))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new CR(a,!0))):(a=lR(a),0<=a&&(b=new CR(a,!1)));return b}function OR(a){var b=!0;if(x(a))b=!1;else try{new J(a)}catch(c){b=!1}return b};function RR(a){this.b=null!=a?a:new ER}function SR(a,b){var c=b.b;z(c.Ma(),function(a){KR(this.b,c.get(a))},a)}function TR(a,b){var c=MR(a.b,b);return null!=c?c:[]};function UR(){this.b="Ads by Google";this.g="http://www.google.com/adsense/support";this.j=0};function VR(a,b,c,d,e,g,h,k,l){RR.call(this,l);this.k=a;this.o=b;this.g=c;this.j=e;this.A=g;this.B=h}w(VR,RR);function WR(){}WR.prototype.parse=function(a){var b;jR(a,"config",function(a){null!=b||(b=XR(this,a))},this);return b};function XR(a,b){var c;z(ed(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new UR:null;break;case "params":null!=c&&YR(this,c,a)}},a);return c}function YR(a,b,c){z(ed(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.g=c;break;case "attribution_text":b.b=c;break;case "signals":b.j=parseInt(c,10)}},a)};function ZR(){}
ZR.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k=!1;z(ed(a),function(a){switch(a.nodeName){case "AttributionText":b=iR(a);break;case "AttributionUrl":c=iR(a);break;case "ConversionUrl":e=iR(a);break;case "CustomTracking":null!=ed(a)&&(d=NR(a));break;case "PreviousAdInformation":iR(a);break;case "VisibleUrl":g=iR(a);break;case "UI":h=(new WR).parse(a);break;case "ShowYouTubeAnnotations":var p=iR(a);k=mR(ya(p),!1);case "QueryId":iR(a)}},this);null!=h||(h=new UR);return new VR(b,
c,e,0,g,h,k,0,d)};function $R(a,b){RR.call(this,b);this.g=a}w($R,RR);function aS(){}aS.prototype.parse=function(a){if(null==a)return null;var b;z(ed(a),function(a){switch(a.nodeName){case "CustomTracking":null!=ed(a)&&(b=NR(a))}});a=null;null!=b&&0<JR(b,"skip").length&&(a="Generic");return new $R(a,b)};function bS(){}bS.prototype.parse=function(a){if(null==a)return null;var b,c;z(ed(a),function(a){switch(a.nodeName){case "SkippableAdType":b=iR(a);break;case "CustomTracking":null!=ed(a)&&(c=NR(a))}});return new $R(b,c)};function cS(){}cS.prototype.parse=function(a){if(null==a)return null;var b;z(ed(a),function(a){switch(a.nodeName){case "CustomTracking":null!=ed(a)&&(b=NR(a))}},this);return new RR(b)};function dS(){RR.call(this)}w(dS,RR);function eS(){}eS.prototype.parse=function(a){a=QC(a);return x(a)?null:new dS};function fS(a){RR.call(this);this.g=a}w(fS,RR);function gS(){RR.call(this)}w(gS,RR);function hS(){}hS.prototype.b={dC:"TEMPLATE_PARAMETERS",eC:"TEMPLATE_URL"};hS.prototype.parse=function(a){if(null==a)return null;z(ed(a),function(a){switch(a.nodeName){case this.b.dC:iS(this,a)}},this);return new gS};function iS(a,b){z(ed(b),function(a){a.nodeName==this.b.eC&&iR(a)},a)};function jS(a,b,c,d){RR.call(this);this.j=a;this.k=b;this.o=c;this.g=d}w(jS,RR);function kS(){}kS.prototype.b={UB:"Line1",VB:"Line2",WB:"Line3",TB:"ImageUrl"};kS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;z(ed(a),function(a){switch(a.nodeName){case this.b.UB:b=iR(a,!0);break;case this.b.VB:c=iR(a,!0);break;case this.b.WB:d=iR(a,!0);break;case this.b.TB:e=iR(a)}},this);return new jS(b,c,d,e)};function lS(a){RR.call(this);this.g=a}w(lS,RR);function mS(){}mS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Za(a):NaN;a=isNaN(a)?-1:a;return new lS(a)};function nS(){RR.call(this)}w(nS,RR);function oS(){}oS.prototype.parse=function(a){return null!=a?new nS:null};function pS(a){RR.call(this);this.g=isNaN(a)?-1:a}w(pS,RR);function qS(){}qS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Za(a):NaN;return new pS(a)};function rS(){}var sS={IMAGE:"Image",rE:"Flash",kE:"All"},tS={HTML:"Html",UH:"IFrame",yJ:"Static",kE:"All"},uS={VH:"IgnoreSize",hJ:"SelectExactMatch",iJ:"SelectNearMatch"};var vS=!1,wS="";function xS(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var yS=navigator.plugins["Shockwave Flash"];yS&&(vS=!0,yS.description&&(wS=xS(yS.description)));navigator.plugins["Shockwave Flash 2.0"]&&(vS=!0,wS="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var zS=navigator.mimeTypes["application/x-shockwave-flash"];(vS=zS&&zS.enabledPlugin)&&(wS=xS(zS.enabledPlugin.description))}else try{var AS=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),vS=!0,wS=xS(AS.GetVariable("$version"))}catch(BS){try{AS=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),vS=!0,wS="6.0.21"}catch(CS){try{AS=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),vS=!0,wS=xS(AS.GetVariable("$version"))}catch(DS){}}}var ES=vS,FS=wS;function OQ(a){if(null==a||0>=a.width||0>=a.height)throw MO(jO,null,"ad slot size",a.toString());this.g=a;this.b=new rS;this.o=GS(tS,this.b.k)?this.b.k:"All";this.k=GS(sS,this.b.j)?this.b.j:"All";this.B=GS(uS,this.b.o)?this.b.o:"SelectExactMatch";this.j=null!=this.b.g?this.b.g:[];this.A=ja(this.b.b)&&0<this.b.b&&100>=this.b.b?this.b.b:90}
function NQ(a,b){var c=[];z(b,function(a){!x(a.b.k)&&(isNaN(a.b.b)||isNaN(UQ(a))||UQ(a)==a.b.b)&&HS(this,a)?c.push(a):(a=IS(this,a),null!=a&&!x(a.b.k)&&c.push(a))},a);return c}
function HS(a,b){var c;if(c="Flash"!=b.getContentType()||ES){if(c="All"==a.o||a.o==b.b.P)c=b.getContentType(),c=null!=c?"All"==a.k||a.k==c:!0;c&&(c=b.j,c=E(a.j)?!0:null!=c?0<=eb(a.j,c):!1)}c?(c=b.b.Yd(),c="IgnoreSize"==a.B||Jb(a.g,c)?!0:"SelectNearMatch"==a.B&&(c.width>a.g.width||c.height>a.g.height||c.width<a.A/100*a.g.width||c.height<a.A/100*a.g.height?!1:!0)):c=!1;return c}function IS(a,b){var c=b.g;return null!=c?B(c,function(a){return HS(this,a)},a):null}
function GS(a,b){return null!=b&&Sb(a,b)};function JS(a,b,c,d){this.ta=a;this.b=Gb(c||0,0,1);this.g=null!=d?d:!0}JS.prototype.getId=function(){return this.ta};function KS(a){this.ta=a;this.g=new Bd;this.b=null}function LS(a){var b=Math.random(),c=0,d=a.g.Qa();z(d,function(a){c+=a.b},a);var e=1<c?c:1;a.b=null;for(var g=0,h=0;h<d.length;++h)if(g+=d[h].b,g/e>=b){a.b=d[h];break}};function MS(){this.b=new Bd;NS(this,41351021,0);NS(this,41351022,1);OS(this)}var PS=null;function QS(){PS||(PS=new MS);return PS}function NS(a,b,c){x("GvnExternalLayer")||isNaN(b)||0>=b||(b=new JS(b,0,c),RS(a,"GvnExternalLayer").g.set(b.getId(),b))}function OS(a){z(a.b.Qa(),function(a){LS(a)},a)}function SS(a,b){z(b,function(a){var b=Number(a);a="forcedLayer"+a;isNaN(b)||0>=b||x(a)||(a=RS(this,a),b=new JS(b),a.b=b)},a)}
function TS(a){var b=QS();return hb(b.b.Qa(),function(b){return!!b.b&&b.b.getId()==a})}function US(a){var b=[];z(a.b.Qa(),function(a){(a=a.b)&&a.g&&b.push(a.getId())});return b.sort().join(",")}function RS(a,b){var c=a.b.get(b);null==c&&(c=new KS(b),a.b.set(b,c));return c};function VS(a){J.call(this,a);this.g=new Bd;a=this.Mb;var b=a.indexOf(";"),c=null;0<=b?(de(this,a.substring(0,b)),c=a.substring(b+1)):de(this,a);WS(this,c)}w(VS,J);VS.prototype.toString=function(){return XS(this,VS.G.toString.call(this))};VS.prototype.Pg=function(){return""};function WS(a,b){x(b)||z(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=Ba(a.substring(0,b));a=Ba(a.substring(b+1));b=this.g.get(e);null!=b?C(b,a)||b.push(a):b=[ya(a)];this.g.set(e,b)}},a)}
function YS(a){if(x("ord"))return null;a=a.g.get("ord");return null!=a?a:null}function ZS(a,b,c){x(b)||(c=A(c,ya),a.g.set(b,c))}function XS(a,b){var c=[ya(b)];ub(c,$S(a));return c.join(";")}function $S(a){var b=YS(a);null!=b?x("ord")||a.g.remove("ord"):b=[ya(v())];var c=[];z(a.g.Ma(),function(a){z(this.g.get(a),function(b){ub(c,a+"="+b)})},a);ub(c,"ord="+b[0]);ZS(a,"ord",b);return c}VS.prototype.clone=function(){return new VS(this.toString())};var aT=["iu","sz"];function bT(a){if(null==a.adTagUrl)return!1;a=new J(a.adTagUrl);return"googleads.g.doubleclick.net"==a.Bb&&"/pagead/ads"==a.Mb}function cT(a){var b=a.adTagUrl;if(null==b)return!1;a=oe(new J(b));return(x(a)?0:/\/gampad\/ads/.test(a))?ib(aT,function(a){return 0<=Xd(b,0,a,b.search(Yd))}):!1}
function dT(a){a=a.adTagUrl;if(null==a)return!1;a=new VS(a);var b=a.Bb,c;if(c=!va(b,".g.doubleclick.net")){if(b=va(b,"doubleclick.net"))a=XS(a,a.Mb),b=x(a)?!1:/\/(ad|pfad)[x|i|j]?\//.test(a);c=b}return c?!0:!1}function eT(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==ne(new J(a)):!1};function fT(){this.b=1;this.k=this.j=0;this.g=1};function gT(){this.L={};this.T="";this.he=new ER}function SQ(a){return a.b}gT.prototype.xn=function(){return null};function hT(a,b,c){a.T=b;a.L=c}gT.prototype.qg=function(a){this.aa=a};gT.prototype.getAd=function(){return this.aa};function iT(a,b){for(var c=JR(a.he,b)||[],d=a.aa.b;null!=d;){var e=jT(a,d)||jT(a,d,!0);null!=e&&(e=JR(e.he,b)||[],c=sb(e,c));d=d.b}return c}gT.prototype.En=function(a){a=iT(this,a);return A(a||[],function(a){return a.b})};
function jT(a,b,c){var d=c||!1;return B(b.k,function(a){var b=a.b==this.b;return a instanceof this.constructor&&(d||b)},a)};function kT(a,b,c,d,e){gT.call(this);this.da=a;this.j=b;this.g=c;this.D=tb(d);this.ca=this.la=null;this.k=e}w(kT,gT);kT.prototype.Fd=function(){return this.j};kT.prototype.getMediaUrl=function(a){var b="";hb(this.D,function(c){var d=c.g;return!x(a)&&a!=c.b||null==d||x(d)?!1:(b=d,!0)},this);return b};kT.prototype.setMediaUrl=function(a){this.ca=a};
kT.prototype.xn=function(){var a=B(this.D,function(a){return!x(a.b)&&-1!=a.b.indexOf("javascript")&&("VPAID"==a.k||"surveys"==a.k)});return null!=a?a.g:null};function lT(a,b,c){this.g=a;this.j=b;this.k=c;this.A=0;this.b=new Rk(this);mT(this)}w(lT,Gh);function mT(a){a.k.forEach(function(a,c){this.b.listen(c,"mousedown",this.B);this.b.listen(c,"mouseup",this.D)},a);a.b.listen(a.j,"mouseover",a.C)}lT.prototype.B=function(){this.o=v()};
lT.prototype.D=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.g&1&&c.push("nm="+this.A);this.g&2&&c.push("nb="+this.k.get(b));if(this.g&8){var d=Pf(this.j);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.g&16&&null!=this.o&&c.push("clkt="+(v()-this.o));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};lT.prototype.C=function(){this.A++};lT.prototype.J=function(){lT.G.J.call(this);this.b.dispose()};function nT(a,b,c,d,e){gT.call(this);x(a)&&(a=Ya()+"_ima");this.ta=ya(a);this.pa=b;this.P=c;this.O=d;this.k=e;null!=this.O?this.U=eP[this.O]||"Other":this.U=null}w(nT,gT);f=nT.prototype;f.wl=function(){var a;a=this.od();if("outerHTML"in a)a=a.outerHTML;else{var b=Jc(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.U};f.Yd=function(){return this.pa};f.td=function(){return this.Yd().width};f.getHeight=function(){return this.Yd().height};
f.xn=function(){return"VPAID"==this.B?this.k:null};f.Fd=function(){return this.I};function oT(a,b,c,d,e){nT.call(this,a,b,c,d,e);this.qb=-2;this.j=null;new Rk(this);this.M=this.F=ca;this.N=[];this.ka=!0;this.V=[];this.C=!1}w(oT,nT);function pT(a,b){a.j=b;null!=a.g&&null!=b&&(qT(a,a.F),rT(a,a.M))}function qT(a,b){null!=a.j&&null!=a.g&&z(a.N,function(a){this.j.Fa(a,"click",this.F);x(this.Fd())||this.j.listen(a,"click",b)},a);a.F=b}function rT(a,b){null!=a.j&&null!=a.g&&(a.j.Fa(a.g,"creativeview",a.M),a.j.listen(a.g,"creativeview",b));a.M=b}
function sT(a){z(a.V,function(a){cd(Kc(a))},a);a.V=[]}oT.prototype.o=function(a){null==this.j||x(this.Fd())||(this.j.listen(a,"click",this.F),this.N.push(a))};oT.prototype.od=function(){null==this.g&&(this.g=this.Eh(),$c(this.g,tT(this)));null!=this.j&&this.j.listen(this.g,"creativeview",this.M);return this.g};
function uT(a,b){var c=a.ta,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.td()+"px");x(c)||(d.id=c);return I("div",d,b)}oT.prototype.ts=function(){return 2};
function tT(a){if(!a.ka)return null;var b=iT(a,"start");ub(b,iT(a,"creativeview"));if(null!=b&&!E(b)){var c=[];z(b,function(a){if(!x(a)){var b;b=Hc().HB("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});Ef(b,{display:"block",height:"0px",width:"0px"});var g="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",WN(a.b));b.setAttribute("id",g);this.V.push(g);ob(c,b)}},a);return c}return null}
function vT(a,b){if(null!=a.g){var c=new Bd;z(a.N,function(a){c.set(a,this.ts(a))},a);new lT(b,a.g,c)}};function DQ(a,b,c,d,e,g,h,k,l,p,r,t,y,D,M,ea){this.N=a;this.A=b;this.pa=d;this.aa=isNaN(h)||""==h||0==h?-1:h;this.F=k?tb(k):[];this.U=l?tb(l):[];this.k=p?tb(p):[];this.L=r?tb(r):[];this.o=[];z(this.L,function(a){ub(this.o,tb(a.b))},this);this.T=!0;this.b=this.g=null;this.B=new Bd(t);this.O=null!=ea;this.ca=(this.C=null!=y)?D||!1:!1;this.qb=this.Rt?M||!1:!1;this.ka=ya(y);this.la=ya(ea);this.da=this.j=null;this.D=new fT;this.V=new G(0,0);this.I=this.M=this.P=null;z(sb(this.k,this.o),function(a){a.qg(this)},
this);QO.b&&wT(this)&&(this.o=gb(this.o,function(a){return 60>=a.getHeight()}))}function xT(a){var b;b=yT(a)?zT(a)?"2_1":"2_2":"2";return(AT(a,gP)||AT(a,hP)?1:AT(a,fP)?2:0)+"_"+b}function BT(a){return null!=a.A?a.A:""}function CT(a){return null!=a.b?sb(CT(a.b),a.F):a.F}function DT(a){return null!=a.b?sb(DT(a.b),a.U):a.U}f=DQ.prototype;
f.getContentType=function(){var a=this.getSelectedCreative(),b="";if(null===a)return b;if(a instanceof kT)a=a.la,null===a||(b=ya(a.b));else if(a instanceof oT)switch(a.P){case "IFrame":case "Html":case "Static":b=ya(a.O)}return b};function MQ(a){return null!=a.b?sb(a.o,MQ(a.b)):a.o}function ET(a){return null!=a.g?a.g.T:""}f.getExtension=function(a){return this.B.get(a)};function FT(a,b){a.g=b;a.V=null!=a.g&&a.g instanceof oT?a.g.Yd():new G(0,0)}f.getSelectedCreative=function(){return this.g};
function GT(a){return null!=a.N?a.N:""}function HT(a){if(null==a.b)return[];var b=[GT(a.b)];ub(b,HT(a.b));return b}function IT(a){var b=HT(a).reverse();b.push(GT(a));return b}function JT(a){if(null==a.b)return[];var b=[BT(a.b)];ub(b,JT(a.b));return b}function LQ(a){var b=JT(a).reverse();b.push(BT(a));return b}function KT(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.g?a.g:-1}function LT(a){if(-1!=a.aa)return a.aa;a=a.getExtension("pod");return null!=a&&-1!=a.g?a.g:-1}
function TQ(a,b){return b||null==a.b?a.L:sb(a.L,TQ(a.b))}function MT(a,b){return hb(a.k,function(a){return a instanceof kT&&"linear"==b||a instanceof oT&&"nonlinear"==b?!0:!1})}function wT(a){return NT(a)?"video"==a.pa:MT(a,"linear")}function yT(a){return null!=OT(a)}
function OT(a){if(TS(919139)||TS(919140))return new CR(0,!1);var b=new CR(5,!1),c=PT(a);if("implicit"==c)return b;a=a.getSelectedCreative();var d=null;null!=a&&a instanceof kT&&(d=a.k);null!=d||"explicit"!=c||(d=b);return null!=d&&QO.b?b:d}
function PT(a){if(null!=B(a.B.Qa(),function(a){return!E(TR(a,"skip"))}))return"implicit";var b=a.B.get("DFP");if(b instanceof $R)switch(b.g){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.getSelectedCreative();return null==a||(a=a.he,null==a||E(JR(a,"skip")))?"none":"explicit"}function zT(a){if(null==a.A||null==a.j)return!1;var b=bT(a.j),c=null!=a.b,d=cT(a.j);if(!c&&(b||d&&QT(a)))return!0;a=AT(a,["ADSENSE/ADX"])||AT(a,fP)&&c;return QO.b&&!a}f.Rt=function(){return this.C};
function RT(a){return null===a.g?null:a.g.Fd()}function ST(a){return null==a.g||a.g instanceof oT?-1:a.g.da}function TT(a){return null===a.g?null:a.g.xn()}function NT(a){return UT(a,fP)}f.getHeight=function(){return this.V.height};function VT(a){return a.P}function QT(a){if(!UT(a,hP))return!1;a=a.B.get("DFP");return null!=a?"InstreamSelect"==a.g:!1}f.toString=function(){return"Ad: "+this.N};function UT(a,b){return null!=a.A?C(b,a.A.toUpperCase()):!1}
function AT(a,b){return C(b,LQ(a)[0].toUpperCase())};function WT(a,b){this.b=a;this.g=b};function XT(a,b,c){this.b=a;this.g=b;this.j=c}XT.prototype.getContentType=function(){return this.b.getContentType()};XT.prototype.getHeight=function(){return this.b.getHeight()};function UQ(a){a=a.b.getAd().getSelectedCreative();return null!=a?a.b:NaN}XT.prototype.En=function(a){return MR(this.b.he,a)};XT.prototype.qg=function(a){this.b.qg(a);z(this.g,function(b){b.qg(a)},this)};function ZT(a,b,c){this.g=a;this.b=b;this.j=c}ZT.prototype.getContentType=function(){return null!=this.b?eP[this.b]||"Other":null};oc&&zc(8);function $T(){};var aU={},bU={},cU={};function dU(){throw Error("Do not instantiate directly");}dU.prototype.pe=null;dU.prototype.toString=function(){return this.content};function eU(a,b){var c=Hc().createElement("DIV"),d=fU(a(b||gU,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function fU(a){if(!la(a))return String(a);if(a instanceof dU){if(a.Tc===aU)return a.content;if(a.Tc===cU)return Ca(a.content)}return"zSoyz"}var gU={};function hU(a){if(null!=a)switch(a.pe){case 1:return 1;case -1:return-1;case 0:return 0}return null}function iU(){dU.call(this)}w(iU,dU);iU.prototype.Tc=aU;function jU(a){return null!=a&&a.Tc===aU?a:a instanceof lx?kU(nx(a),a.yh()):kU(Ca(String(String(a))),hU(a))}function lU(){dU.call(this)}w(lU,dU);lU.prototype.Tc={};lU.prototype.pe=1;function mU(){dU.call(this)}w(mU,dU);mU.prototype.Tc={};function nU(){dU.call(this)}w(nU,dU);nU.prototype.Tc=bU;nU.prototype.pe=1;function oU(){dU.call(this)}
w(oU,dU);oU.prototype.Tc={};oU.prototype.pe=1;function pU(){dU.call(this)}w(pU,dU);pU.prototype.Tc={};pU.prototype.pe=1;function qU(a,b){this.content=String(a);this.pe=null!=b?b:null}w(qU,dU);qU.prototype.Tc=cU;function rU(a){function b(){}b.prototype=a.prototype;return function(a,d){var e=new b;e.content=String(a);void 0!==d&&(e.pe=d);return e}}function sU(a){function b(){}b.prototype=a.prototype;return function(a){var d=new b;d.content=String(a);return d}}var kU=rU(iU);sU(lU);rU(mU);sU(nU);
var tU=sU(oU);sU(pU);(function(a){function b(){}b.prototype=a.prototype;return function(a,d){if(!String(a))return"";var e=new b;e.content=String(a);void 0!==d&&(e.pe=d);return e}})(iU);var uU=/['()]/g;function vU(a){return"%"+a.charCodeAt(0).toString(16)}function wU(a){if(null!=a&&a.Tc===bU)return String(a).replace(xU,yU);a=Aa(String(a));uU.lastIndex=0;return uU.test(a)?a.replace(uU,vU):a}var zU={};
function AU(a){zU[1]||(zU[1]=new $T);var b=hU(a);if(null==b){var c=b=0,d=!1;a=Tw(a+"",null!=a&&a.Tc===aU).split(Zw);for(var e=0;e<a.length;e++){var g=a[e];Ww.test(Tw(g,void 0))?(b++,c++):Xw.test(g)?d=!0:Vw.test(Tw(g,void 0))?c++:ax.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return tU(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var BU={"\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 yU(a){return BU[a]}var xU=/[\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 CU(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+jU(a.Hd)+'"><img src="'+jU(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+jU(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+jU(a.Hd)+'" target="_blank" dir='+jU(a.dir)+">"+jU(a.title)+'</a><div class="text-description" dir='+jU(a.dir)+">"+jU(a.text)+"</div>"+(a.sr?'<a target="_blank" href="'+
jU(a.Hd)+'" class="text-ad-channel">'+jU(a.sr)+"</a>":"")+"</div></div>"}
function FU(a){return'<div class="flash-container '+(a.Pf?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+jU(a.Hd)+'"></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="'+jU(a.width)+'" height="'+jU(a.height)+'"><param name="movie" value="'+jU(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+wU(a.Hd)+
'"><embed width="'+jU(a.width)+'" height="'+jU(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+jU(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+wU(a.Hd)+'"></object></div>'}function GU(a){return'<div class="image-container" id="'+jU(a.id)+'" style="width:'+jU(a.width)+";height:"+jU(a.height)+'"><a target="_blank" href="'+jU(a.Hd)+'"><img src="'+jU(a.url)+'" border="0"></a></div>'};function HU(a,b,c,d){oT.call(this,a,b,"Static",c,d);this.Qr=!1}w(HU,oT);HU.prototype.Eh=function(){var a=this.B,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:WN(ya(this.k)),width:this.td(),height:this.getHeight(),Hd:this.Fd(),Pf:this.Qr||!a},a=eU(FU,a);a.style.width=this.td()+"px";a.style.height=this.getHeight()+"px";a.id=this.ta;z(a.getElementsByTagName("object"),this.o,this);z(a.getElementsByTagName("a"),this.o,this);return a};function IU(a,b,c,d){oT.call(this,a,b,"Html",c,d)}w(IU,oT);IU.prototype.Eh=function(){var a=I("div");a.innerHTML=this.k;this.o(a);return uT(this,a)};function JU(a,b,c,d){oT.call(this,a,b,"Static",c,d)}w(JU,oT);JU.prototype.wl=function(){var a=JU.G.wl.call(this);this.C&&(a=a.replace('<img src=""','<img src="'+WN(ya(this.k))+'"'));return a};JU.prototype.Eh=function(){var a="";this.C||(a=WN(ya(this.k)));a={id:this.ta,url:a,Hd:this.Fd(),width:this.td()+"px",height:this.getHeight()+"px"};a=eU(GU,a);z(a.getElementsByTagName("a"),this.o,this);return a};function KU(a){a=a.className;return s(a)&&a.match(/\S+/g)||[]}function LU(a,b){for(var c=KU(a),d=wb(arguments,1),e=c,g=0;g<d.length;g++)C(e,d[g])||e.push(d[g]);c=c.join(" ");a.className=c}function MU(a,b){var c=KU(a),d=wb(arguments,1),c=NU(c,d).join(" ");a.className=c}function NU(a,b){return gb(a,function(a){return!C(b,a)})}function OU(a,b,c){c?LU(a,b):MU(a,b)};function PU(a,b){oT.call(this,a,b,"Static","text","")}w(PU,oT);f=PU.prototype;f.Yd=function(){return new G(this.td(),this.getHeight())};f.getHeight=function(){return 63};f.td=function(){return null!=this.A?Zf(this.A).width:0};f.ts=function(a){return C(KU(a),"text-image")?9:C(KU(a),"text-ad-channel")?1:0};
f.Eh=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.j,e="rtl";null!=d&&(e=Uw.test(Tw(d,void 0))?"rtl":"ltr");d={title:d,text:c.k+" "+c.o,dir:e,Hd:this.Fd()};if(c=c.g)d.image=WN(c),a=B(a.k,function(a){return a instanceof kT}),null!=a&&(d.duration=wR(a.da));b.j&&(d.sr=b.j);this.A=eU(CU,d);z(this.A.getElementsByTagName("a"),this.o,this);this.A.id=this.ta;this.A.style.height=this.getHeight()+"px";return this.A};function QU(a,b,c,d,e){oT.call(this,a,b,c,d,e)}w(QU,oT);QU.prototype.Eh=function(){var a=ya(this.k);x(this.Fd())||(a=new J(a),K(a,"clickTAG",Aa(this.Fd())),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.td());b.setAttribute("src",WN(a));this.o(b);return uT(this,b)};function RU(a,b,c){var d=SU(c);c=d.g;var e=d.b,d=d.j;switch(c){case "Html":return new IU(a,b,e,d);case "Static":switch(eP[e]){case "Image":return new JU(a,b,e,d);case "Flash":return new HU(a,b,e,d);case "Text":return new PU(a,b)}}return new QU(a,b,c,e,d)}
function SU(a){var b=B(a,function(a){return"Static"==a.g&&"Flash"==eP[a.b]}),c=B(a,function(a){return"IFrame"==a.g}),d=B(a,function(a){return"Html"==a.g}),e=B(a,function(a){return"Static"==a.g&&"Image"==eP[a.b]}),g=B(a,function(a){return"Static"==a.g&&"Text"==eP[a.b]});return ES&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function TU(a,b,c,d,e){var g=SU(e),h=RU(a.id,a.size,[g]);h.C=!0;h.B=a.Em;h.I=b;h.b=c;null!=d&&(h.he=d);pb(e,g);var k=[];z(e,function(e){e=RU(a.id,a.size,[e]);e.C=!0;e.B=a.Em;e.I=b;e.b=c;null!=d&&(e.he=d);k.push(new XT(e,[],a.Pq))});return new XT(h,k,a.Pq)};function UU(){};function VU(a,b,c,d){a=RU("icon",a,d);a.B=b;a.I=c.zB;return new UU};function WU(a){this.k=a;this.logger=null}w(WU,dR);
WU.prototype.b={Uz:"Ad",Im:"AdParameters",KA:"AdSystem",LA:"AdTitle",RE:"Advertiser",KB:"AltText",YA:"ClickThrough",ZA:"ClickTracking",fB:"Companion",bB:"CompanionAds",LB:"CompanionClickThrough",MB:"CompanionClickTracking",cB:"Creative",KG:"CreativeExtensions",NA:"Creatives",$A:"CustomClick",OA:"Description",Tm:"Duration",ERROR:"Error",eB:"Extension",PA:"Extensions",lj:"HTMLResource",cC:"Icon",GA:"Icons",AA:"IconClicks",XB:"IconClickThrough",YB:"IconClickTracking",BA:"IconViewTracking",mj:"IFrameResource",
Ar:"Impression",YH:"InLine",LINEAR:"Linear",WA:"MediaFile",HA:"MediaFiles",SB:"NonLinear",dB:"NonLinearAds",bA:"NonLinearClickThrough",cA:"NonLinearClickTracking",TI:"Pricing",nj:"StaticResource",Vm:"Survey",NJ:"Tracking",Um:"TrackingEvents",WJ:"VAST",RA:"VASTAdTagURI",JA:"VideoClicks",SA:"Wrapper"};
WU.prototype.g={sC:"adSlotID",MA:"allowMultipleAds",jj:"apiFramework",TA:"bitrate",aB:"creativeType",UA:"delivery",Tm:"duration",yH:"event",QA:"followAdditionalWrappers",tC:"expandedHeight",uC:"expandedWidth",Rm:"height",Fm:"id",$z:"maintainAspectRatio",VA:"maxBitrate",XA:"minBitrate",aA:"minSuggestedDuration",CA:"offset",DA:"program",gB:"required",dA:"scalable",Sq:"sequence",IA:"skipoffset",Cr:"type",VERSION:"version",Sm:"width",EA:"xPosition",FA:"yPosition"};
function XU(a){if(null==a)return!1;a=fd(a);return null!=a&&"VAST"==a.nodeName}function YU(a){var b=[];jR(fd(a.k),a.b.Uz,function(a){var d;d=ZU(a);if(null==d)throw eR(a);var e=a.getAttribute(this.g.Fm);a=Number(a.getAttribute(this.g.Sq));d=$U(this,d,e||null,a||0);null!=d&&b.push(d)},a);return b}WU.prototype.j=function(){return new nR(this.k,YU(this),null)};function ZU(a){var b=null;z(ed(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw eR(a);}});return b}
function $U(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],r=new Bd,t,y=b.nodeName==a.b.SA,D=y,M=y,ea;z(ed(b),function(a){switch(a.nodeName){case this.b.RA:if(y){if(null!=t)throw fR(a);t=iR(a);ea=QR(t);D=mR(b.getAttribute(this.g.MA),D);M=mR(b.getAttribute(this.g.QA),M)}else throw eR(a);break;case this.b.KA:e=iR(a);break;case this.b.LA:g=iR(a);break;case this.b.OA:iR(a);break;case this.b.Vm:iR(a);break;case this.b.Ar:a=iR(a);OR(a)&&h.push(zR(a));break;case this.b.ERROR:a=iR(a);k.push(a);break;case this.b.NA:a=
aV(this,a);l=a.zA;p=a.yA;break;case this.b.PA:r=bV(this,a,ea)}},a);return new DQ(ya(c),e,0,g,0,0,d,k,h,l,p,r,t,D,M,cV(r))}function cV(a){var b=null;a=a.get("AdSense");null!=a&&(a=TR(a,"vast2tracking"),null!=a&&!E(a)&&(b=a[0]));return b}function dV(a){if(x(a))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function bV(a,b,c){var d=new Bd;try{var e=gR(b,a.b.eB);z(e,function(a){var b=a.getAttribute(this.g.Cr);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new oS).parse(a);break;case "pod":a=(new mS).parse(a);break;case "waterfall":a=(new qS).parse(a);break;case "dart":a=(new aS).parse(a);break;case "dfp":b="DFP";a=(new bS).parse(a);break;case "adsense":b="AdSense";a=(new ZR).parse(a);break;case "textad":b="TextAd";a=(new kS).parse(a);break;case "templatead":b="TemplateAd";a=(new hS).parse(a);break;
case "infocards":b="InfoCards";a=(new eS).parse(a);break;case c:b="LocalRedirect";if(null!=a){var e=null;a=gR(a,"AdXml");1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+QC(fd(a[0])));a=new fS(e)}else a=null;break;default:e=new cS,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(SR(e,a.b),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function aV(a,b){var c=[],d=[];jR(b,a.b.cB,function(a){var b=a.getAttribute(this.g.Sq),h;x(b)||(h=parseFloat(b));var k=!1;z(ed(a),function(a){switch(a.nodeName){case this.b.LINEAR:if(k)throw fR(a);a=eV(this,a,isNaN(h)?0:h);ub(c,a);k=!0;break;case this.b.bB:if(k)throw fR(a);a=fV(this,a,isNaN(h)?void 0:h);ub(d,a);k=!0;break;case this.b.dB:if(k)throw fR(a);a=gV(this,a,isNaN(h)?0:h);ub(c,a);k=!0}},this)},a);return{zA:c,yA:d}}
function gV(a,b,c){var d=[],e=new ER;z(ed(b),function(a){switch(a.nodeName){case this.b.SB:a=hV(this,a,c);null!=a&&d.push(a);break;case this.b.Um:e=NR(a);break;default:throw eR(a);}},a);0!=d.length||e.isEmpty()||(a=new oT(null,new G(-1,-1),"",null,""),a.b=c,d.push(a));z(d,function(a){null!=e&&(a.he=e)});return d}
function iV(a,b){var c={};c.id=b.getAttribute(a.g.Fm);c.Pq=b.getAttribute(a.g.sC);c.Em=b.getAttribute(a.g.jj);var d=Za(b.getAttribute(a.g.Sm)),e=Za(b.getAttribute(a.g.Rm));c.size=new G(d,e);d=b.getAttribute(a.g.uC);e=b.getAttribute(a.g.tC);x(d)||x(e)||(c.JE=new G(Za(d),Za(e)));return c}
function hV(a,b,c){var d=iV(a,b);b.getAttribute(a.g.jj);b.getAttribute(a.g.dA);b.getAttribute(a.g.$z);var e=b.getAttribute(a.g.aA),e=lR(e,-1),g=[];new Bd;var h={},k="",l;z(ed(b),function(a){switch(a.nodeName){case this.b.cA:break;case this.b.bA:l=iR(a);break;case this.b.Im:h=jV(a);k=ya(iR(a));break;case this.b.mj:case this.b.nj:case this.b.lj:g.push(kV(this,a));break;default:throw eR(a);}},a);if(E(g))return null;a=RU(d.id,d.size,g);hT(a,k,h);a.B=d.Em;a.I=l;a.qb=e;a.b=c;return a}
function kV(a,b){var c=hR(b,a.g.aB),d;t:switch(d=b.nodeName,d){case a.b.nj:d="Static";break t;case a.b.mj:d="IFrame";break t;case a.b.lj:d="Html";break t;default:throw KO(DO,null,d);}var e=iR(b);null!=e||(e="");return new ZT(d,c,e)}function fV(a,b,c){var d=[],e=dV(hR(b,a.g.gB));jR(b,a.b.fB,function(a){a=lV(this,a,c);null!=a&&d.push(a)},a);return new WT(d,e)}
function lV(a,b,c){var d=iV(a,b),e=[],g=new ER,h;z(ed(b),function(a){switch(a.nodeName){case this.b.MB:break;case this.b.Um:g=NR(a);break;case this.b.LB:h=iR(a);break;case this.b.KB:iR(a);break;case this.b.Im:iR(a);break;case this.b.mj:case this.b.nj:case this.b.lj:e.push(kV(this,a));break;default:throw eR(a);}},a);return E(e)?null:TU(d,h,c,g,e)}
function eV(a,b,c){var d=new ER,e={},g="",h=[],k,l=new Bd,p=[],r,t=PR(hR(b,a.g.IA));z(ed(b),function(a){switch(a.nodeName){case this.b.GA:mV(this,a);break;case this.b.Im:e=jV(a);g=ya(iR(a));break;case this.b.Tm:r=lR(iR(a),0);break;case this.b.Um:d=NR(a);break;case this.b.HA:p=nV(this,a);break;case this.b.JA:a=oV(this,a);l=a.xA;k=a.vA;h=a.wA;break;default:throw eR(a);}},a);z(h,function(a){IR(d,"click",a)});a=new kT(r,k,l,p,t);hT(a,g,e);a.b=c;null!=d&&(a.he=d);return a}
function oV(a,b){var c,d=[],e=new Bd;z(ed(b),function(a){switch(a.nodeName){case this.b.YA:c=iR(a);break;case this.b.ZA:a=iR(a);d.push(a);break;case this.b.$A:var b=hR(a,this.g.Fm);null!=b||(b="");var k=e.get(b,[]);k.push(iR(a));e.set(b,k);break;default:throw eR(a);}},a);return{vA:c,wA:d,xA:e}}
function nV(a,b){var c=[];jR(b,a.b.WA,function(a){var b=hR(a,this.g.UA),g=hR(a,this.g.Cr);a.getAttribute(this.g.Sm);var h=Za(a.getAttribute(this.g.Rm)),k=a.getAttribute(this.g.jj),l=iR(a),p=kR(a.getAttribute(this.g.TA)),r=kR(a.getAttribute(this.g.XA));a=kR(a.getAttribute(this.g.VA));c.push(new tP(b,g,p,r,a,0,h,l,k))},a);return c}function mV(a,b){var c=[];jR(b,a.b.cC,function(a){a=pV(this,a);null!=a&&c.push(a)},a)}
function pV(a,b){hR(b,a.g.DA);hR(b,a.g.EA);hR(b,a.g.FA);var c=Za(b.getAttribute(a.g.Sm)),d=Za(b.getAttribute(a.g.Rm)),c=new G(c,d),d=b.getAttribute(a.g.jj);PR(hR(b,a.g.CA));var e=b.getAttribute(a.g.Tm);lR(e,-1);var g=[],h=[],k;z(ed(b),function(a){switch(a.nodeName){case this.b.BA:h.push(iR(a));break;case this.b.AA:k=qV(this,a);break;case this.b.mj:case this.b.nj:case this.b.lj:g.push(kV(this,a));break;default:throw eR(a);}},a);return E(g)?null:VU(c,d,k,g)}
function qV(a,b){var c=[],d;z(ed(b),function(a){switch(a.nodeName){case this.b.XB:d=iR(a);break;case this.b.YB:c.push(iR(a));break;default:throw eR(a);}},a);return{zB:d,IE:c}}function jV(a){a=iR(a);return null!=a?xR(a):{}};function rV(a,b){this.b=a;this.g=b}w(rV,dR);rV.prototype.j=function(){return new nR(this.b,null,sV(this))};function sV(a){var b=new rR;z(ed(fd(a.b)),function(a){if("vmap:AdBreak"==a.nodeName){var d=hR(a,"timeOffset"),e=lR(d);a=tV(this,a);if("start"==d||0==e)sR(b,a,0);else if("end"==d)sR(b,a,-1);else{if(-1==e)throw KO(eO,null,"timeOffset",ya(d));sR(b,a,e)}}},a);if(0==b.b.Ma().length)throw KO(kO);return b}
function tV(a,b){var c=[],d="",e=!1,g=!1;z(ed(b),function(a){switch(a.nodeName){case "vmap:AdSource":var b=gR(a,"vmap:AdTagURI"),c="";b.length&&(c=ya(iR(b[0])));if(xa(c))throw KO(IO,null,a.parentNode.nodeName,a.nodeName);d=c;break;case "vmap:Extensions":a=gR(a,"vmap:Extension"),a=uV(this,a),null!=a&&(e=!0,a=hR(a,"suppress_bumper"),g=null!=a?"true"==a:!0)}},a);if(!xa(d)){var h=new pR(vV(a,d));h.b=e;h.g=e&&!g;ob(c,h)}return c}
function uV(a,b){return B(b,function(a){return"bumper"==hR(a,"type")},a)}function vV(a,b){var c=a.g.clone();c.adTagUrl=b;return c};function wV(a,b){if(null!=a){var c;null!=a?(c=fd(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return new tR(a,b);null!=a?(c=fd(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return new rV(a,b);if(XU(a)){if(!XU(a))throw KO(nO);c=fd(a);var d;null==c?d=0:(d=parseInt(c.getAttribute("version"),10),d=ja(d)?d:0);if(1>d||3<d)throw KO(EO);c=gR(c,"Ad");if(E(c))throw KO(sO);c=ZU(c[0]);if(null==c)throw KO(vO);if(1!=gR(c,"AdSystem").length)throw KO(vO);return new WU(a)}}return null};function xV(a,b){this.g=a;this.j=b}function yV(a,b){var c=a.j.o;null!=c&&b.set("js","ima-"+c)}function zV(a){return a.k(a.A())}function AV(a){return QO.g?"h.3.0.0":null!=a.j?jQ(a.j):null}xV.prototype.o=function(){var a=0;this.g.mh&&(a+=1);ZO()&&(a+=4);return a};function BV(){this.b=["video"]}var CV={PJ:"ultrahigh",MH:"high",uE:"medium"},DV={VF:1E3,WF:1001,XF:1002,YF:1003,ZF:1004,$F:1005,aG:1006},EV={tE:1,oE:2},FV={nE:"content",nJ:"site",oJ:"site_content"};f=BV.prototype;f.yi="high";f.bl=!1;f.Wk=1;f.Xk=null;f.He="video";f.Vk=1;f.Yk=null;f.dl=null;f.Zk=!1;f.$k=null;f.al=null;f.Ig=null;f.sc=null;f.fl=null;f.host=null;f.gl=null;f.il=!1;f.jl=null;f.Ip=null;f.Hp=null;f.zi=1E5;f.Bi=null;f.Kp=null;f.Jp=null;f.nl=0;f.Ff=null;f.Ci=null;f.Ji=null;f.pl=null;f.Di=-1;
f.url=null;f.Ai=null;f.kl=null;f.ll=null;f.ul=null;f.ql=null;f.rl=null;f.tl=null;var GV=(new Date).getTime();var HV={rE:"flash",IMAGE:"image",rJ:"skippablevideo",wJ:"standardvideo",zJ:"staticimage",TEXT:"text",VIDEO:"video"},IV=["flash","image","staticimage"],JV=[new G(200,200),new G(250,250),new G(300,250),new G(336,280),new G(450,50),new G(468,60),new G(480,70),new G(728,90)];
function KV(a,b){var c=null!=b.linearAdSlotHeight?b.linearAdSlotHeight:0,d=null!=b.nonLinearAdSlotHeight?b.nonLinearAdSlotHeight:0;a.set("sz",Math.max(null!=b.linearAdSlotWidth?b.nonLinearAdSlotWidth:0,null!=b.nonLinearAdSlotWidth?b.nonLinearAdSlotWidth:0)+"x"+Math.max(c,d))}
function LV(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",GV);t:{var h;try{h=
window.top.location.href}catch(k){b=2;break t}b=null!=h?h==window.document.location.href?0:1:2}a.set("frm",b)}function MV(a,b,c){var d=new Bd;d.set("ad_type",b.He);ES&&d.set("flash",FS);KV(d,a);NV(b)&&(d.set("ea","0"),null!=a.nonLinearAdSlotWidth&&null!=a.nonLinearAdSlotHeight&&d.set("image_size",OV(b,a.nonLinearAdSlotWidth,a.nonLinearAdSlotHeight)));PV(d,c);d.set("lact",a.lastActivity);d.set("videoad_start_delay",a.youTubeVideoAdStartDelay);LV(d);x(a.b)||QV("ref",a.b,d);return d}
function RV(a,b){if(null==b)return a;var c=b.split("_");z(c,function(a){if(!Sb(HV,a))throw KO(jO,null,"ad_type",String(b));});if(!ZO()){var d=[];z(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw KO(iO,null,"skippablevideo");return d}return c}function SV(a,b){return null!=b?b.split(/[+, ]/):a}function OV(a,b,c){a.k&&(c=Math.min(c,90));var d=[];z(JV,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}
function TV(a,b){return null==b||isNaN(b)?a:Number(b)}function UV(a,b){return null!=b?String(b):null!=a?a:null}function VV(a,b){if(null==b)return a;switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a}function WV(a,b,c){return null!=b&&Sb(c,b)?b:a}function NV(a){return hb(IV,function(b){return C(a.b,b)})}
function PV(a,b){ES?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.j;null!=c&&0<c.length&&(c=c[0].o,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}function QV(a,b,c){null!=b&&c.set(a,b)};function XV(a,b,c){xV.call(this,a,b);b=new BV;a=re(new J(a.adTagUrl));b.dl=WV(b.dl,a.get("cust_age"),DV);b.yi=WV(b.yi,a.get("adsafe"),CV);b.b=RV(b.b,a.get("ad_type"));b.He=b.b.join("_");b.Wk=TV(b.Wk,a.get("videoad_start_delay"));b.Xk=UV(b.Xk,a.get("slotname"));b.bl=VV(b.bl,a.get("adtest"));b.Yk=UV(b.Yk,a.get("afi_url"));b.Zk=VV(b.Zk,a.get("scs"));b.$k=UV(b.$k,a.get("alternate_ad_url"));b.g=SV(b.g,a.get("channel"));b.al=TV(b.al,a.get("cpm"));b.Ig=UV(b.Ig,a.get("description_url"));b.sc=UV(b.sc,a.get("eid"));
b.fl=WV(b.fl,a.get("cust_gender"),EV);b.k=VV(b.k,a.get("overlay"));b.host=UV(b.host,a.get("host"));b.j=SV(b.j,a.get("hostChannels"));b.gl=TV(b.gl,a.get("hostTierId"));b.il=VV(b.il,a.get("lsv"));var d;null!=this.g.g?d=this.g.g:(d=mc(),d=PO(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=UV(e,d);var g;null!=d&&!x(d)&&(g=PO(d));b.jl=UV(b.jl,g);b.Ip=TV(b.Ip,a.get("linearAdSlotWidth"));b.Hp=TV(b.Hp,a.get("linearAdSlotHeight"));b.zi=
TV(b.zi,a.get("max_ad_duration"));b.nl=TV(b.nl,a.get("min_ad_duration"));b.Bi=TV(b.Bi,a.get("sdmax"));b.Kp=TV(b.Kp,a.get("nonLinearAdSlotWidth"));b.Jp=TV(b.Jp,a.get("nonLinearAdSlotHeight"));b.Ff=UV(b.Ff,a.get("client"));b.Ci=UV(b.Ci,a.get("t_pyv"));b.Ji=TV(b.Ji,a.get("sdki"));b.Di=TV(b.Di,a.get("tfcd"));b.pl=WV(b.pl,a.get("targeting"),FV);b.Ai=TV(b.Ai,a.get("video_format"));b.kl=TV(b.kl,a.get("video_cpm"));b.ll=UV(b.ll,a.get("loeid"));b.ul=UV(b.ul,a.get("yt_pt"));b.ql=UV(b.ql,a.get("ytdevice"));
b.rl=UV(b.rl,a.get("ytdevicever"));b.tl=UV(b.tl,a.get("as_dbp"));b.o=UV(b.o,a.get("ms"));b.Vk=TV(b.Vk,a.get("adBlock"));b.url=UV(b.url,a.get("url"));this.b=b;this.C=c;x(this.b.sc)||(c=this.b.sc.split(","),SS(QS(),c))}w(XV,xV);var YV=["skippablevideo","standardvideo","video"];XV.prototype.B={Tw:"allow",Uw:"exclude",bJ:"require"};function ZV(a){return null!=a.b.g?-1<a.b.g.indexOf("afitc"):!1}XV.prototype.o=function(){var a=XV.G.o.call(this);this.b.Ji&&(a+=this.b.Ji&2);return a};
XV.prototype.k=function(a){var b=new J("//googleads.g.doubleclick.net/pagead/ads"),c=a.Ma();z(c,function(c){K(b,c,a.get(c))});return b};
XV.prototype.A=function(){var a=new Bd;a.set("sdkv",AV(this));a.set("sdki",this.o().toString(16));a.set("video_product_type",null!=this.b.Ff?QO.b?5:ZV(this)?7:0==this.b.Ff.lastIndexOf("ca-games-",0)?4:0==this.b.Ff.lastIndexOf("ca-video-",0)?0:-1:-1);a.set("correlator",this.j.b);a.set("client",this.b.Ff);QO.b&&!x(this.b.url)?a.set("url",this.b.url):a.set("url",this.g.location?this.g.location:this.g.b);a.set("num_ads",$V(this));a.set("channel",aW(this));a.set("ad_type",this.b.He);a.set("output","xml_vast2");
this.b.bl&&a.set("adtest","on");ES&&a.set("flash",FS);QV("alternate_ad_url",this.b.$k,a);QV("cpm",this.b.al,a);KV(a,this.g);QO.b||Sb(CV,this.b.yi)&&a.set("adsafe",this.b.yi);this.b.host&&(a.set("host",this.b.host),QV("ht_id",this.b.gl,a),null!=this.b.j&&QV("h_ch",this.b.j.join("+"),a));QV("hl",this.b.jl,a);QV("cust_age",this.b.dl,a);QV("cust_gender",this.b.fl,a);-1!=this.b.Di&&QV("tfcd",this.b.Di,a);ZV(this)?QV("afi_url",this.b.Yk,a):QV("slotname",this.b.Xk,a);var b=US(QS());x(b)||a.set("eid",b);
LV(a);b=this.b.Ig;if(null!=b){var c,d;d=this.j;null==d.j&&(d.j=new eQ);d=d.j;ZV(this)?c=this.b.Vk:(null!=b&&d.g!=b?(d.b=1,d.g=b):d.b=null!=b?d.b+1:1,c=d.b);1!=c&&a.set("ad_block",c);c=this.j;null==c.M&&(c.M=new fQ);c=c.M;var e=b!=this.j.L;(d=0==d.b%100||e)||(d=36E5<(null===c.b?0:(new tM).getTime()-c.b));d&&c.reset();this.j.L=b;b=c.g;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");b=this.b.Wk;a.set("videoad_start_delay",null!=b?b:1);yV(this,a);NV(this.b)&&(a.set("ea","0"),null!=this.g.nonLinearAdSlotWidth&&
null!=this.g.nonLinearAdSlotHeight&&a.set("image_size",OV(this.b,this.g.nonLinearAdSlotWidth,this.g.nonLinearAdSlotHeight)));bW(this)&&a.set("video_format",null!=this.b.Ai&&QO.b?this.b.Ai:lh&&0<=Ua(SO,6)||gh&&0<=Ua(SO,4)||kc&&YO(WO,2.3)?43:18);b=null!=this.b.Ci?this.b.Ci:C(this.b.He.split("_"),"text")?this.B.Tw:this.B.Uw;a.set("t_pyv",b);QV("min_ad_duration",this.b.nl,a);0<this.b.zi&&a.set("max_ad_duration",cW(this.b.zi,$V(this)));0<this.b.Bi&&a.set("sdmax",cW(this.b.Bi,$V(this)));PV(a,this.C);QO.b&&
(b=CP(this.b.Ig),null!=b&&a.set("video_doc_id","yt_"+b));QV("description_url",this.b.Ig,a);QO.b&&(QV("lact",this.g.lastActivity,a),QV("loeid",this.b.ll,a),QV("lsv",this.b.il,a),QV("scs",this.b.Zk,a),QV("targeting",this.b.pl,a),QV("video_cpm",this.b.kl,a),QV("yt_pt",this.b.ul,a),QV("ytdevice",this.b.ql,a),QV("ytdevicever",this.b.rl,a),QV("as_dbp",this.b.tl,a));QV("ms",this.b.o,a);b=this.g;x(b.b)||QV("ref",b.b,a);null!=this.g.Ce&&QV("loc",this.g.Ce.page_location,a);return a};
function bW(a){return hb(YV,function(a){return C(this.b.b,a)},a)}function $V(a){return ZV(a)||QO.b?1:C(a.b.He.split("_"),"text")?3:1}function aW(a){a=a.b.g?a.b.g:[];xb(a);a=wb(a,0,30);return a.join("+")}function cW(a,b){return Math.round(1.1*(a||0)+0*b)};function dW(){}f=dW.prototype;
f.clone=function(){var a=new dW;a.adTagUrl=this.adTagUrl;a.Ce=Zb(this.Ce);a.adsResponse=this.adsResponse;a.Ug=Zb(this.Ug);a.Dr=this.Dr;a.isYouTube=this.isYouTube;a.location=this.location;a.b=this.b;a.lastActivity=this.lastActivity;a.g=this.g;a.linearAdSlotWidth=this.linearAdSlotWidth;a.linearAdSlotHeight=this.linearAdSlotHeight;a.nonLinearAdSlotWidth=this.nonLinearAdSlotWidth;a.nonLinearAdSlotHeight=this.nonLinearAdSlotHeight;a.tagForChildDirectedContent=this.tagForChildDirectedContent;a.Ri=this.Ri;
a.mh=this.mh;a.youTubeAdType=this.youTubeAdType;a.youTubeExperimentIds=this.youTubeExperimentIds;a.youTubeVideoAdStartDelay=this.youTubeVideoAdStartDelay;return a};f.Ce=null;f.Ug=null;f.Dr=!1;f.isYouTube=!1;f.linearAdSlotWidth=0;f.linearAdSlotHeight=0;f.nonLinearAdSlotWidth=0;f.nonLinearAdSlotHeight=0;f.tagForChildDirectedContent=!1;f.Ri=!1;f.mh=!0;f.youTubeVideoAdStartDelay=0;function eW(a,b){xV.call(this,a,b)}w(eW,xV);eW.prototype.k=function(a){var b=new J(this.g.adTagUrl);z(a.Ma(),function(c){xa(a.get(c))?b.b.remove(c):K(b,c,a.get(c))});return b};eW.prototype.A=function(){var a=new Bd;a.set("sdkv",AV(this));return a};function fW(a,b){xV.call(this,a,b)}w(fW,xV);fW.prototype.A=function(){return null};fW.prototype.k=function(){var a=new VS(this.g.adTagUrl),b=AV(this);b&&ZS(a,"dc_sdkv",[b]);(b=this.o().toString(16))&&ZS(a,"dc_sdki",[b]);(b=this.j.B)&&ZS(a,"dc_submodel",[b]);b=new Bd;yV(this,b);Dd(b.g,"js")&&ZS(a,"dc_js",[b.get("js")]);Dd(b.g,"msid")&&ZS(a,"dc_msid",[b.get("msid")]);return a};function gW(a){xV.call(this,a,null)}w(gW,xV);gW.prototype.k=function(a){return new J(a.get("adTagUrl"))};gW.prototype.A=function(){var a=new Bd;a.set("adTagUrl",this.g.adTagUrl);a.set("adsResponse",this.g.adsResponse);return a};function hW(a,b){xV.call(this,a,b)}w(hW,xV);hW.prototype.k=function(a){var b=new J(this.g.adTagUrl);z(a.Ma(),function(c){xa(a.get(c))?b.b.remove(c):K(b,c,a.get(c))});return b};
hW.prototype.A=function(){var a=new Bd;a.set("sdkv",AV(this));a.set("sdki",this.o().toString(16));a.set("correlator",this.j.I);a.set("scor",this.j.b);yV(this,a);var b=this.j.g;null!=b&&(this.j.g=null,a.set("fbidx",b));b=this.j.F;null!=b&&a.set("ppid",b);var b="null",c=this.j.k;null!=c?b=c:(c=this.g.location,x(c)?c=!1:(c=new J(c),!c.Gb||"http"!=c.Gb&&"https"!=c.Gb?c=!1:(c=c.Bb,c=-1==c.indexOf(".")||c.match(/^[\.0-9]*$/)?!1:!0)),c&&(b=this.g.location));a.set("url",b);b=this.j.B;null!=b&&a.set("submodel",
b);b=this.j.A;null!=b&&(b=iW(b),a.set("ciu_szs",b));a.set("impl","");return a};function iW(a){var b=[];z(a,function(a){0<a.length&&b.push(A(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function jW(a,b,c){xV.call(this,a,b);this.C=x(a.youTubeAdType);a=new BV;a.b=RV(a.b,this.g.youTubeAdType);a.He=a.b.join("_");a.sc=UV(a.sc,this.g.youTubeExperimentIds);this.b=a;this.B=c;x(this.b.sc)||(c=this.b.sc.split(","),SS(QS(),c))}w(jW,hW);jW.prototype.k=function(a){a=jW.G.k.call(this,a);this.C||kW(this,a);return a};function lW(a){var b=MV(a.g,a.b,a.B);b.set("sdkv",AV(a));b.set("sdki",a.o().toString(16));return b}
function kW(a,b){var c=lW(a),d=A(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});se(b,"afvparams",[Aa(d.join("&"))])};function mW(a,b,c){xV.call(this,a,b);this.C=x(a.youTubeAdType);a=new BV;a.b=RV(a.b,this.g.youTubeAdType);a.He=a.b.join("_");a.sc=UV(a.sc,this.g.youTubeExperimentIds);this.b=a;this.B=c;x(this.b.sc)||(c=this.b.sc.split(","),SS(QS(),c))}w(mW,fW);mW.prototype.k=function(a){a=mW.G.k.call(this,a);this.C||nW(this,a);return a};function oW(a){var b=MV(a.g,a.b,a.B);b.set("sdkv",AV(a));b.set("sdki",a.o().toString(16));return b}
function nW(a,b){var c=oW(a),d=A(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});ZS(b,"afvparams",[Aa(d.join("&"))])};function pW(a,b){return!dT(a)&&!cT(a)||x(a.youTubeAdType)?dT(a)?new fW(a,iQ):bT(a)?new XV(a,iQ,b):cT(a)?new hW(a,iQ):eT(a)?new eW(a,iQ):new gW(a):dT(a)?new mW(a,iQ,b):new jW(a,iQ,b)};function qW(a){a=gb(a,function(a){return 0<LT(a)});Ab(a,function(a,c){return LT(a)-LT(c)});return a}function rW(a){return gb(a,function(a){return-1==LT(a)})};function sW(a){this.b=a};function tW(){}function uW(a,b,c,d,e,g){var h=u(function(a){d(a,Error(Yk(a)))},a),k=u(function(a){6==a?vW(this,b,!1,c,h,e,g):h(a)},a);vW(a,b,!0,c,k,e,g)}
function vW(a,b,c,d,e,g,h){var k=new Hl;k.O=c;Kl(k,wW(g));var l=new Rk,p=u(function(){l.dispose();k.dispose()},a);c=u(function(){e(k.g);p()},a);Xk(l,k,"success",function(){var a;try{a=k.b?k.b.responseXML:null}catch(b){a=null}if(null==a){var c=ml(k);try{a=OC(c)}catch(e){t:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=PC())){a.appendChild(a.createNode(1,"parsererror",""));
break t}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);Xk(l,k,["error","timeout"],c,a);var r;"POST"==h&&(a=new J(b),r=a.b.toString(),ee(a,""),b=a.toString());k.send(WN(b),h,r)};function xW(a,b,c){var d=null,e=c+b;z(a.k,function(a){var h;if(h=a instanceof oT)0==c&&0==b||a instanceof PU?h=!0:(h=a.Yd(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-a.Yd().height+b-a.Yd().width,"Flash"!=a.getContentType()||ES))if(null==d)d=a,e=h;else if(h==e&&a.b<d.b||h<e)d=a,e=h});FT(a,d)}function yW(a){var b=null;z(a.k,function(a){a instanceof kT&&(null===b||a.b<b.b)&&(b=a)});FT(a,b)};var zW=[202,1009],AW=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"];function BW(a,b,c){var d={};a=new CW(a,n(b)?b:null,n(c)?c:null);DW(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.b?b.b:900;EW(d);FW(d,a);GW(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=eb(zW,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function HW(a,b){var c={},d=new CW(null,a,n(b)?b:null);DW(c,d);EW(c);FW(c,d);GW(c,d);c["[BREAK_TYPE]"]="0";c["[SLOT_POS]"]="0";c["[MIDROLL_POS]"]="0";if(null!=d.b){var e=d.b.j;null!=e&&null!=e.Ce&&null!=e.Ce.video_start_delay?(e=e.Ce.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.b.D,c["[BREAK_TYPE]"]=0==e.j?"1":-1==e.j?"3":"2",c["[SLOT_POS]"]=e.b-1,0<e.k&&(c["[MIDROLL_POS]"]=Math.round(1E3*e.k)))}IW(c,d);return c}
function CW(a,b,c){this.error=a;this.b=b;this.display=c}function DW(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.tn():""}}}function EW(a){a["[SDKV]"]="h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";a["[VIEWABILITY]"]={toString:function(){var a=YQ();return ZQ(a,"metric")}};a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}
function FW(a,b){if(null!=b.b&&null!=b.b.j&&null!=b.b.j.Ug&&QO.b){var c=b.b.j.Ug;z(AW,function(b){b in c&&(a[b]=c[b])})}}
function GW(a,b){if(null!=b.b){a["[AD_ID]"]=IT(b.b);a["[AD_SYS]"]=LQ(b.b);a["[AD_V]"]={toString:function(){return null!=b.display?CP(b.display.tn()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=xT(b.b).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 IW(a,b){null!=b.b&&(a["[AD_LEN]"]={toString:function(){var a=ST(b.b);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.$d()).toString():""}})};function JW(a,b,c,d){this.o=a;this.F=b;this.g=0<this.o.length?this.o:this.F;this.B=c;this.A=this.M=!0;this.j=-1;this.b=null;this.C=0;this.N=d;this.logger=null}JW.prototype.Cd=function(){return null!=this.b&&this.b.Cd()?!0:0<this.g.length&&this.j<this.g.length-1};function KW(a,b,c){null!=a.b?LW(a,b,c):a.Cd()?MW(a,b,u(function(a){this.Cd()&&301!=a.getErrorCode()?KW(this,b,c):c(a)},a)):c(new GN("adLoadError","The ad source contains no more ads.",1005))}
JW.prototype.I=function(a,b){return this.A?0<a.length?a:b:wb(b,0,1)};JW.prototype.k=function(a,b,c){var d;if(!(d=null!=a.getSelectedCreative())){var e=this.B;d=e.nonLinearAdSlotWidth||0;e=e.nonLinearAdSlotHeight||0;NT(a)&&!a.C?MT(a,"nonlinear")?xW(a,d,e):yW(a):MT(a,"linear")?yW(a):MT(a,"nonlinear")&&xW(a,d,e);d=null!=a.getSelectedCreative()}d?(this.C++,b(a)):(b=E(a.k)?KO(vO):wT(a)?KO(qO):KO(yO),d=BW(b,a),aO(a.F,d),c(b))};
JW.prototype.D=function(a,b,c){var d=this.B.clone();d.adsResponse="";d.adTagUrl=a.ka;NW(this,a,d,b,c)};function OW(a,b,c,d){var e=a.B.clone();e.adsResponse="";e.adTagUrl=b.la;NW(a,b,e,c,d)}
function NW(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.g,null!=g&&(c.adsResponse=g));a.N.g(c,u(function(a){if(a instanceof JW){var c=this.A&&b.ca,g=b.qb,p;for(p in a.g){var r=a.g[p],t=b;if(!QO.b&&t&&NT(r)){var y={loc:document.URL,ref:document.referrer,skippable:yT(r)};try{aP($O.getInstance(),23,y,!0)}catch(D){}}r.b=t}a.A=c;a.g=a.I(a.o,a.F);a.j=-1;a.M=g;d(a)}else a instanceof sW?e(new GN("adLoadError","Ad source cannot contain playlist response.",2)):e(new GN("adLoadError","Unknown ad source.",
2))},a),e)}function PW(a){var b=0;for(a=a.b;null!=a;)a=a.b,b++;return b}function LW(a,b,c){a.b.Cd()?KW(a.b,u(function(a){this.k(a,b,u(function(a){this.Cd()?KW(this,b,c):c(a)},this))},a),u(function(a){QW(this.g[this.j],a);this.b=null;301==a.getErrorCode()?c(a):this.Cd()?KW(this,b,c):c(a)},a)):(0==a.b.C&&QW(a.g[a.j],KO(GO)),a.b=null,KW(a,b,c))}function QW(a,b){1012==b.getErrorCode()&&(b=KO(xO));var c=BW(b,a);aO(a.F,c)}
function MW(a,b,c){a.j++;var d=a.g[a.j];d.C||d.O?d.O?OW(a,d,u(function(a){this.b=a;KW(this,b,c)},a),u(function(a){a=RW(a);QW(d,a);c(a)},a)):4<=PW(d)?(a=KO(zO,null,"4"),QW(d,a),c(a)):a.M?a.D(d,u(function(a){this.b=a;KW(this,b,c)},a),u(function(a){a=RW(a);QW(d,a);c(a)},a)):c(KO(FO)):a.k(d,b,c)}function RW(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=KO(GO)}return a};function SW(a,b,c,d){JW.call(this,[],a,b,c);this.L=d}w(SW,JW);SW.prototype.Cd=function(){return null!=this.b&&this.b.Cd()?!0:0<this.g.length&&this.j<this.g.length-1&&0==this.C};SW.prototype.I=function(a,b){return b};SW.prototype.k=function(a,b,c){var d=-1,d=null==this.b?KT(a):KT(this.g[this.j]);this.L.g=d;SW.G.k.call(this,a,b,c)};SW.prototype.D=function(a,b,c){this.L.g=-1;SW.G.D.call(this,a,b,c)};function TW(a,b,c,d,e){this.k=a;this.o=b;this.j=c;this.b=d;this.kb=e}TW.prototype.g=function(a,b,c){x(a.adsResponse)?cT(a)&&null!=this.b&&!this.b.B?this.b.start(a,u(function(){UW(this,a,b,c)},this)):UW(this,a,b,c):VW(this,a,b,c)};function VW(a,b,c,d){var e;try{e=OC(b.adsResponse)}catch(g){d(KO(nO,g));return}null!=e?WW(a,e,b,c,d):d(KO(nO))}
function UW(a,b,c,d){var e=zV(pW(b,a.j)).toString(),g=b.Ri&&UN(SN,e)?"POST":"GET";uW(a.o,e,u(function(a){WW(this,a,b,c,d)},a),u(function(a,c){var e;e=8==a?KO(uO):5==a||6==a?KO(dO):KO(hO,c);d(e);e="third_party";bT(b)?e="adsense":dT(b)?e="dart":cT(b)&&(e="xfp");e={rt:e,ec:a};aP($O.getInstance(),18,e,!0)},a),a.kb,g);XW(b)}function XW(a){var b="third_party";bT(a)?b="adsense":dT(a)?b="dart":cT(a)?b="xfp":eT(a)&&(b="dbm");a={rt:b};aP($O.getInstance(),17,a,!0)}
function WW(a,b,c,d,e){var g;try{var h=wV(b,c);if(!h)throw KO(nO);g=h.j();YW(a,g,c,d)}catch(k){k instanceof GN?e(k):e(KO(oO,k))}}function YW(a,b,c,d){var e=b.b;if(null!=e)d(new sW(e));else{var g=b.j;if(null==g)throw KO(sO);z(g,function(a){a.j=c;QO.b&&(a.da=b.g)});e=qW(g);g=rW(g);0<g.length&&0<=KT(g[0])?d(new SW(g,c,a,a.k)):d(new JW(e,g,c,a))}};function ZW(a){this.b=a+v()}ZW.prototype.reset=function(a){this.b=a+v()};function wW(a){var b=v();a=a.b-b;return 0<a?a:0};function $W(a,b){this.b=a;this.g=b;QO.k&&YQ().init()}function aX(a,b,c,d){var e=null;null!=a.b&&(e=new $Q(1E3,a.b,a.g));(new TW(a.g,new tW,a.b,e,new ZW(8E3))).g(b,u(function(a){a instanceof sW?c(a):bX(this,a,c,d)},a),d)}function bX(a,b,c,d){var e=[],g=u(function(a,b){a.Cd()?KW(a,u(function(b){e.push(b);g(a,null)},this),u(function(b){301==b.getErrorCode()?d(KO(uO)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=KO(kO)),1012==b.getErrorCode()&&(b=KO(xO)),d(b))},a);g(b,null)};function cX(a){this.g=a;this.b=new om}function dX(a,b,c,d){var e=u(function(a){c(a);rm(this.b);eX(this)},a),g=u(function(a){d(a);rm(this.b);eX(this)},a);qm(a.b,u(function(){aX(this.g,b,e,g)},a));eX(a)}function eX(a){1==a.b.Na()?(a=a.b,pm(a),a=cb(a.b),null!=a&&a()):a.b.Na()};function fX(a,b,c){U.call(this);this.g=new cX(new $W(b,c));this.b=b;this.ze=!0}w(fX,U);function gX(a,b,c){if(a.ze){var d=null!=c?c:{};dX(a.g,b,u(function(a){hX(this,a,d)},a),u(function(a){iX(this,a,d)},a))}}function jX(a,b,c){if(!a.ze){var d=null!=c?c:{};dX(a.g,b,u(function(a){hX(this,a,d)},a),u(function(a){iX(this,a,d)},a))}}
function hX(a,b,c){if(a.ze)b instanceof sW?(b=new kX(b.b,a),b.D=a.b,a.S(new lX(b,c))):(b=mX(b),b.D=a.b,null!=b?a.S(new lX(b,c)):iX(a,KO(qO,null),c));else if(b instanceof sW)iX(a,KO(cO,null,"Unsupported ad format."),c);else{var d=new VQ("adsLoaderSdkAdLoaded");d.o=b;d.k=c;a.S(d)}}function iX(a,b,c){a.ze?("always"==QO.j&&null!=a.b&&FQ(a.b,CQ()),a.S(new HN(b,c))):(c=new VQ("adsLoaderSdkAdError"),c.j=b,a.S(c))};var nX={NORMAL:"normal",FULLSCREEN:"fullscreen"};function oX(){return'<div class="close-padding"><div class="close-button"></div></div>'}function pX(a){return'<div class="recall-button '+(a.YC?"auto-hide":"")+'"></div>'}function qX(a){return'<a target="_blank" href="'+jU(a.url)+'" class="attribution-button">'+jU(a.text)+"</a>"};function rX(a,b){this.A=a;this.b=I("div",{"class":"controls"});this.O=b||ca;this.Qc=new Rk(this)}w(rX,Gh);f=rX.prototype;f.zd=!1;f.Ir=1E3;f.qr=30;f.Uq=45E3;f.Vq=15E3;f.vs=!1;function sX(a){var b=I("div",{"class":"container"});tx(b,"opacity 0.4s");a.Qc.listen(b,"mouseover",a.QB);a.Qc.listen(b,"mouseout",a.RB);b.appendChild(a.b);return b}f.Hj=function(){var a=sX(this);this.b.appendChild(this.A);this.display(this.A);this.play();return a};f.K=function(){null==this.I&&(this.I=this.Hj());return this.I};
f.play=function(){null==this.g&&(this.g=Mk(function(){this.zd||(this.hide(),this.vs=!0);this.g=null},this.vs?this.Vq:this.Uq,this))};f.stop=function(){null!=this.g&&(Nk(this.g),this.g=null)};f.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};f.show=function(){$f(this.K(),1);null!=this.j&&(Nk(this.j),this.j=null)};f.hide=function(){$f(this.K(),this.qr/100);null==this.j&&(this.j=Mk(function(){this.O();this.j=null},400,this))};
f.QB=function(){this.show();this.zd=!0;this.B=Mk(function(){this.zd&&this.stop();this.B=null},this.Ir,this)};f.RB=function(){null!=this.B&&(Nk(this.B),this.B=null);this.zd&&this.play();this.zd=!1};f.J=function(){rX.G.J.call(this);this.stop();Ih(this.Qc)};function tX(a,b){this.F=a;this.N=new Bd;this.L=15E3;this.C=I("span");rX.call(this,a[0],b);this.b.appendChild(this.C)}w(tX,rX);
tX.prototype.Hj=function(){var a=sX(this);LU(a,"container-rotator");this.D=I("div");this.b.appendChild(this.D);z(this.F,function(a,c){LU(a,"container-highlight");var d=63/this.F.length*(c+.5)-5,e=I("div",{id:Ya(),"class":"container-selector"});e.style.top=d+"px";this.Qc.listen(e,"click",function(a){uX(this,a.target)});this.N.set(e.id,a);this.C.appendChild(e)},this);uX(this,fd(this.C));this.play();return a};
tX.prototype.play=function(){null==this.k&&(this.k=new Kk(this.L),this.Qc.listen(this.k,"tick",this.P));tX.G.play.call(this);this.k.start()};tX.prototype.stop=function(){null!=this.k&&this.k.stop();tX.G.stop.call(this)};tX.prototype.P=function(){var a=this.o;uX(this,(void 0!=a.nextElementSibling?a.nextElementSibling:gd(a.nextSibling))||fd(this.o.parentNode))};function uX(a,b){a.o&&MU(a.o,"container-active");LU(b,"container-active");var c=a.N.get(b.id);dd(c,a.D);a.o=b;a.D=c;a.display(c)};function vX(a,b){rX.call(this,a,b)}w(vX,rX);rX.prototype.M=!1;vX.prototype.Hj=function(){var a=sX(this);LU(a,"container-slider");this.b.appendChild(this.A);this.Qc.listen(this.b,"click",this.k);this.play();return a};vX.prototype.show=function(){this.display(this.A);wX(this);MU(this.K(),"hidden")};vX.prototype.hide=function(){wX(this);LU(this.K(),"hidden")};vX.prototype.k=function(a){0!=Lf(this.b).y&&(a.preventDefault(),a.stopPropagation())};function wX(a){a.M?LU(a.K(),"animated"):a.M=!0};function xX(a,b){rX.call(this,a[0],b);this.k=a;LU(this.b,"container-stack")}w(xX,rX);xX.prototype.hide=ca;xX.prototype.Hj=function(){var a=sX(this);z(this.k,function(a){LU(a,"container-highlight");this.b.appendChild(a);this.display(a)},this);this.play();return a};function yX(a){U.call(this);this.B=a;this.o=null;this.I="normal";this.k=this.volume=null;this.g=new dP;this.ca=!1;this.content={};this.N=!1;z(a,function(){});z(a,function(a,c){var d=a.D,e=c+1;d.b=e;d.g=e})}w(yX,U);function $(a){if(null!=a.o){if(yT(a.o)&&!ZO())throw MO(iO,null,"skippablevideo");return a.o}throw MO(fO,null,"An ad has not been selected.");}f=yX.prototype;f.Eg=function(){var a=eb(this.B,this.o);-1!=a&&++a<this.B.length?this.o=this.B[a]:this.o=null};
f.cs=function(){if(null==this.o){if(E(this.B))throw MO(qO);this.o=this.B[0];if(null==this.o.getSelectedCreative())throw KO(qO);}};f.na=function(a){null!=this.o?this.S(new JN(a,$(this))):this.S(new JN(a,null))};function zX(a){null==a.j&&(a.j=new Rk(a));return a.j}function AX(a,b){if(null!=a.D&&(Vk(zX(a),a.D,"companion_display_error",function(){}),FQ(a.D,b),!a.D.Js()))throw MO(gO);}f.destroy=function(){this.dispose()};
f.J=function(){null!=this.o&&(FT(this.o,null),this.o=null);Ih(this.j);this.j=null;Ih(this.D);this.D=null;this.N=!1;yX.G.J.call(this)};f.Ms=function(){return[]};f.getCurrentAd=function(){return this.B[0]};f.init=function(a){BX(this);this.zj(a);this.ca=!0;this.Nj()};f.Nj=function(){this.na("loaded")};f.sendImpressionUrls=function(a){null!=this.o&&QO.b&&aO(DT($(this)),a)};
f.Zc=function(a,b,c){if(!this.N){if(null==a)throw MO(jO,null,"displayContainer");if(null!=c){var d=new Xj(Rb(this.g));if(!Jd(Rb(c),d.contains,d))throw MO(jO,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.g;if(null==c.Of||0>=c.Of)c.Of=-1;null==c.ih&&(c.ih=[]);CX(c.ih);ja(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);bc(d,c)}this.content=b;this.k=a;this.cs();this.N=!0}};f.getRemainingTime=function(){return-1};f.Ch=ca;f.pause=function(){};f.resume=function(){};
f.skip=function(){};f.start=function(){BX(this);if(!this.ca)throw KO(fO,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&OO(this,jO,null,"volume",String(a));this.volume=a};f.zj=function(a){if(!Sb(nX,a))throw MO(jO,null,"view mode",a);this.I=a};f.setMediaUrl=function(){};function BX(a){if(!a.N)throw MO(fO,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
function CX(a){if(!ha(a))throw MO(fO,null,"adsRenderingSettings.mimeTypes should be an array");var b=sb(Qb(iP),Qb(eP));z(a,function(a){if(!C(b,a))throw MO(fO,null,"Invalid or unsuppoted mime type "+a);})};function DX(a){yX.call(this,a);this.A=null;this.P=!1;this.O=I("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"})}w(DX,yX);f=DX.prototype;f.start=function(){DX.G.start.call(this);this.k.ji();this.A=this.k.Nf();if(null!=this.A){ad(this.A);var a=this.yn();this.A.appendChild(a);EX(this);this.na("start")}};f.Ch=function(){DX.G.Ch.call(this);EX(this)};f.getSelectedCreative=function(){return $(this).getSelectedCreative()};
f.J=function(){Ih(this.b);this.k=this.b=null;null!=this.A&&(ad(this.A),this.A=null);DX.G.J.call(this)};f.yn=function(){var a=$(this).getSelectedCreative();if(null==a)throw a=MO(qO),FX(this,a),a;pT(a,zX(this));qT(a,ck);try{AX(this,$(this))}catch(b){throw FX(this,b),b;}var c=HW($(this));aO(DT($(this)),c);this.na("impression");return GX(this,[a.od()])};f.Nq=function(a,b){return new rX(a[0],b)};
function GX(a,b){null!=a.b&&a.b.stop();a.b=a.Nq(b,u(a.Mq,a));var c=a.b.K();if(QO.g){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{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%}.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}.afi .text-container .text-inner-container{background-image:none;border:none;border-radius:0;box-shadow:none}.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}.afi .text-title{text-decoration:none}.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%}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;opacity:.9;padding:0;position:absolute;width:100%}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%}.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%}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;font:normal 13px arial,sans-serif;margin-bottom:5px;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttribution{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}");
c.appendChild(d)}OU(c,"autoalign",a.g.wq);OU(c,"viewmode-fullscreen","fullscreen"==a.I);c.appendChild(a.O);zX(a).listen(c,"click",ck);(null!=a.o&&NT($(a))||a.g.useStyledNonLinearAds)&&a.Wl(a.b.b);return c}f.Wl=function(a){var b=zX(this);this.L=eU(pX,{YC:this.P});b.listen(this.L,"click",this.ZC);var c=eU(oX);b.listen(c,"click",this.Cn);a.appendChild(c)};function EX(a){if(null!=a.b){var b=Xf(a.k.Nf()),c=Xf(fd(a.b.b));if(c.width>b.width||c.height>b.height)throw b=MO(lO,null),FX(a,b),a.stop(),b;}}
function FX(a,b){var c=BW(b,$(a)),d=CT($(a));aO(d,c)}f.Cn=function(){this.Mq();this.na("userClose")};f.Mq=function(){this.b.stop();var a=this.getSelectedCreative();null!=a&&sT(a);dd(this.L,this.b.b)};f.ZC=function(a){ck(a);this.b.show();this.b.play();dd(this.b.b,this.L);Mk(function(){ag(this.O,!1)},500,this);ag(this.O,!0)};function HX(a){DX.call(this,a);this.C=!1;this.F=this.T=null;!E(a)&&null!=a[0].j&&(this.T=a[0].j,a=ue(new J(this.T.adTagUrl),"channel"),this.wh=null!=a&&-1<a.split("+").indexOf("afitc"))&&(this.P=!0)}w(HX,DX);f=HX.prototype;f.wh=!1;
f.Nq=function(a,b){if(this.C||null==b)b=ca;var c;this.wh?c=new vX(a[0]):QO.b&&this.C?c=new rX(a[0],b):"fullscreen"==this.I?c=new xX(a):1<a.length?(c=new tX(a),c.L=15E3):c=new rX(a[0],b);c.Ir=100;this.C&&(c.qr=30);c.Uq=this.wh?1E4:45E3;c.Vq=6E3;OU(c.b,"scalable",this.C);OU(c.K(),"afi",this.wh);OU(c.K(),"yt-text-overlay",QO.b&&this.C);return c};
f.oC=function(a){var b=a.getSelectedCreative();null!=b?(null==this.M&&(this.M=a.getExtension("AdSense").A),rT(b,ra(this.BC,a,b)),qT(b,ra(this.AC,a,b)),b.ka=!1,"Text"==b.getContentType()&&(this.C=!0),this.F.push(b)):(b=KO(qO),b=BW(b,a),aO(CT(a),b))};f.Zc=function(a,b,c){HX.G.Zc.call(this,a,b,c);this.g.wq=!0;null!=this.B[0]&&0<MQ(this.B[0]).length?AX(this,this.B[0]):this.na("companionBackfill")};
f.yn=function(){null==this.F&&(this.F=[],z(this.B,this.oC,this));if(0==this.F.length)throw MO(qO);var a=[];z(this.F,function(b){pT(b,zX(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.Qr=!0);a.push(b.od());vT(b,this.M.j)},this);if(0==a.length)throw MO(qO);return GX(this,a)};f.Cn=function(a){z(this.F,function(a){var c=HW(a.getAd());aO(a.En("close"),c)},this);HX.G.Cn.call(this,a)};
f.Wl=function(a){HX.G.Wl.call(this,a);var b=this.B[0].getExtension("AdSense"),c=b.k,b=b.o,c=eU(qX,{text:null!=c?c:this.M.b,url:null!=b?b:this.M.g});a.appendChild(c)};f.BC=function(a,b){var c=HW(a);aO(DT(a),c);aO(b.En("creativeview"),c);rT(b,ca)};
f.AC=function(a,b,c){c=Tf(c);a=a.getExtension("AdSense");a=new J(a.g);var d=b.td();isNaN(d)&&(d=Wf(b.od()).width);var e=b.getHeight();isNaN(e)&&(e=Wf(b.od()).height);b=QS();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.I,"sdkv=h.0.0.0","eids="+US(b)];YN(a,"elementclick",b);this.na("click")};f.zj=function(a){this.I!=a&&(HX.G.zj.call(this,a),null!=this.A&&(ad(this.A),a=this.yn(),this.A.appendChild(a)),this.na("expandedChanged"))};function IX(a){JN.call(this,"adMetadata",a)}w(IX,JN);function JX(a,b,c){var d=ca;a=new J("https://gdata.youtube.com/feeds/api/videos/"+a);null!=c&&(b=u(b,c),d=u(d,c));KX(new Hl,a,b,d)}function LX(a,b,c){var d=ca;a=new J("https://gdata.youtube.com/feeds/api/channels/"+a);null!=c&&(b=u(b,c),d=u(d,c));KX(new Hl,a,b,d)}
function KX(a,b,c,d){MX(b);Kl(a,2E3);var e=new Rk(a);Vk(e,a,"success",function(a){a=a.target;var b;b=a.b?mf(a.b.responseText):void 0;c(b||{});e.dispose();a.dispose()});Vk(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.g&&(b=Error(Yk(a.g)));d(b);e.dispose();a.dispose()});a.send(b)}function MX(a){K(a,"alt","json");K(a,"v","2")};function NX(a){OX(this,a)}function OX(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&hb(d.$t.split(":"),function(a,b,c){return"channel"==a?(this.b=c[b+1],!0):!1},a);(d=c.author)&&d[0]&&d[0].name&&(a.j=d[0].name.$t);(c=c.media$thumbnail)&&c[0]&&(a.g=c[0].url)}}};function PX(a){QX(this,a)}PX.prototype.b=!0;function QX(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&hb(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.g=d.$t;c.yt$accessControl&&(c=B(c.yt$accessControl,function(a){return"list"==a.action}))&&(a.b="denied"!=c.permission)}}};function RX(a,b,c,d,e){Uv.call(this);this.g=a;this.o=b;this.A=c;this.j=d;this.B=ha(e)?e:[e]}w(RX,Uv);f=RX.prototype;f.play=function(){if(1==this.b)return!1;this.Kc();this.Jb("play");this.startTime=v();this.b=1;if(vx())return Ef(this.g,this.A),this.k=Mk(this.$y,void 0,this),!0;this.Al(!1);return!1};f.$y=function(){tx(this.g,this.B);Ef(this.g,this.j);this.k=Mk(u(this.Al,this,!1),1E3*this.o)};f.stop=function(){1==this.b&&this.Al(!0)};
f.Al=function(a){ux(this.g,"");Nk(this.k);Ef(this.g,this.j);this.endTime=v();this.b=0;if(a)this.onStop();else this.vb();this.Dd()};f.J=function(){this.stop();RX.G.J.call(this)};f.pause=function(){};function SX(a,b,c,d){return new RX(a,.5,{opacity:c},{opacity:d},{qp:"opacity",duration:.5,timing:b,pp:0})};function TX(a,b){U.call(this);this.j=a;this.M=0;this.D=!1;this.g=1;this.b=this.P=this.F=this.N=this.k=null;this.o=new Rk(this);this.O=!1;this.U=this.T=this.L=0;this.A=this.C=this.B=null;this.I=!1;this.j.j&&(this.o.listen(b,"touchstart",this.lu),this.o.listen(b,"touchmove",this.ku),this.o.listen(b,"touchend",this.ju));this.k=eU(UX);this.N=H("videoAdUiPreSkipButton",this.k);this.F=H("videoAdUiPreSkipText",this.N);this.P=H("videoAdUiPreSkipThumbnail",this.N);kd(this.F,VX({ro:WX(this)}));var c=this.j.V,
c=(x(c)?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.j.O&&!x(c)){var d=Xc("img");d.setAttribute("src",c);LU(d,"videoAdUiPreSkipThumbnailImage");this.P.appendChild(d)}else LU(this.F,"videoAdUiPreSkipTextOnly");this.j.j?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(Qa("\u00bb"),""),c=c.replace(d,""),c=za(c));this.b=eU(XX,{nu:c});ag(this.k,!1);b.appendChild(this.k);ag(this.b,!1);$f(this.b,
0);b.appendChild(this.b);this.o.listen(this.b,"click",this.mu)}w(TX,U);f=TX.prototype;f.J=function(){null!=this.B&&(this.B.dispose(),this.B=null);null!=this.C&&(this.C.dispose(),this.C=null);YX(this);null!=this.k&&(cd(this.k),this.k=null);null!=this.b&&(cd(this.b),this.b=null);this.o.dispose();this.o=null;this.I=!1;TX.G.J.call(this)};
f.update=function(a,b){this.M=b;if(!(0>=this.M||null==this.j.b||0>DR(this.j.b))){var c=DR(this.j.b);c>=this.M||3==this.g||(0>a?this.g=1:a<=c?(2!=this.g&&(ZX(this,0),SX(this.k,"ease-out",0,1).play(),ag(this.k,!0)),this.g=2):(3!=this.g&&(ag(this.b,!0),this.C=new RX(this.k,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{qp:"opacity",duration:.5,timing:"ease-out",pp:0}),this.B=SX(this.b,"ease-out",0,1),this.C.play(),this.B.play(),this.o.listen(hd(this.b),"mouseover",this.bw),this.o.listen(hd(this.b),
"mouseout",this.rp),this.rp()),this.g=3,this.S("skipshown")))}2==this.g&&ZX(this,a)};f.skip=function(){return null==this.j.b||3!=this.g||this.D?!1:(this.D=!0,this.S("PUBLISHER_INVOKED_SKIP"),!0)};f.lu=function(a){var b=a.b;3==this.g&&1==b.touches.length&&(this.O=!0,this.U=b.touches[0].pageX,a.preventDefault())};f.ku=function(a){var b=a.b;3==this.g&&1==b.touches.length&&this.O&&(b=b.touches[0].pageX,this.L=this.T-b,this.T=b,b=this.U-b,0<b&&(this.b.style.right=b+"px"),a.preventDefault())};
f.ju=function(){this.O=!1;if(3==this.g){var a=Wf(hd(this.b));if(parseInt(this.b.style.right,10)+4*this.L>.25*a.width&&0<this.L){ag(this.b,!1);this.D=!0;this.S("skip");return}}this.b.style.right=0};function WX(a){return null!=a.j.b&&-1!=DR(a.j.b)?DR(a.j.b):-1}function ZX(a,b){var c=WX(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+wR(c));c=VX({ro:d});kd(a.F,c)}}f.mu=function(a){a.stopPropagation();3!=this.g||this.D||(this.D=!0,this.S("skip"))};
f.rp=function(){null==this.A&&(this.A=Mk(function(){this.I=!0;SX(this.b,"ease-in",1,.5).play();this.A=null},this.I?5E3:15E3,this))};f.bw=function(){$f(this.b,1);YX(this)};function YX(a){null!=a.A&&(Nk(a.A),a.A=null)};function $X(a,b,c){U.call(this);this.b=a;this.T=c;this.P=this.N=this.L=this.C=this.B=this.F=this.g=null;this.O=!1;this.D=this.k=this.A=this.M=this.I=this.o=null;this.j=new Rk(this);a=this.b.C;c="";var d="\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435... "+jU("");this.g=eU(this.b.B,{ii:a,pu:c+d});this.j.listen(this.g,"touchmove",this.su);this.M=H("videoAdUiProgress",this.g);this.F=H("videoAdUiAttribution",this.g);this.B=H("videoAdUiAuthorIcon",this.g);this.C=H("videoAdUiAuthorName",this.g);
this.L=H("videoAdUiLearnMore",this.g);this.N=H("videoAdUiLearnMoreText",this.g);this.D=H("videoAdUiShare",this.g);this.o=H("videoAdUiTitle",this.g);this.I=H("videoAdUiTopBar",this.g);this.P=H("videoAdUiBottomBar",this.g);null!=this.B&&this.j.listen(this.B,"click",this.qu);null!=this.C&&this.j.listen(this.C,"click",this.ru);null!=this.L&&this.j.listen(this.L,"click",this.tu);null!=this.N&&this.j.listen(this.N,"click",this.pk);null!=this.D&&this.j.listen(this.D,"click",this.vu);null!=this.o&&this.j.listen(this.o,
"click",this.wu);null!=this.I&&this.j.listen(this.g,"mouseover",this.uu);null!=this.b.b&&(this.k=new TX(this.b,this.g),this.k.ci(this));400>=(parseInt(Hf(b,"width"),10)||b.width)&&LU(this.g,"videoAdUi-mobile");this.b.j&&LU(this.g,"videoAdUi-swipeable");ag(this.g,!1);b.appendChild(this.g);this.b.g||(this.A=I("div",{style:"width:100%;height:100%"}),this.g.appendChild(this.A));aY(this)}w($X,U);f=$X.prototype;f.show=function(){null!=this.g&&ag(this.g,!0)};
f.skip=function(){var a;if(a=null!=this.k)a=this.k,a=null!=a.j.b&&3==a.g;return a?this.k.skip():!1};f.J=function(){null!=this.g&&(cd(this.g),this.g=null);null!=this.k&&(this.k.dispose(),this.k=null);this.A=null;this.j.dispose();this.j=null;this.O=!1;$X.G.J.call(this)};
f.update=function(a,b){this.O=!0;if(null!=this.g){if(null!=this.F){var c=this.b.C,d=wR(b-a);kd(this.F,c+(" ("+d+")"));ag(this.F,this.b.k&&this.O)}null!=this.M&&Vf(this.M,a/b*100+"%");0<b&&null!=this.b.b&&null!=this.k&&(c=this.b.b,c.g&&(c.g=!1,c.b=c.b*b/100),this.k.update(a,b));this.b.A&&0<b&&5>b-a&&LU(this.I,"videoAdUiTopBarNoFade")}};
function aY(a){var b=a.b.I&&(6E3<a.T||0==a.T),c=b&&a.b.L,d=b&&a.b.N,e=b&&a.b.o,g=b&&a.b.F,b=b&&a.b.A,h=a.b.D&&!0,k="0px";null!=a.o&&(ag(a.o,b),null!=a.B&&ag(a.B,c),null!=a.C&&ag(a.C,d),null!=a.L&&ag(a.L,e),null!=a.D&&(ag(a.D,g),g&&a.S("videoShareShown")),null!=a.I&&ag(a.I,b||c||d||e));null!=a.F&&ag(a.F,a.b.k&&a.O);null!=a.M&&(ag(a.M,h),h&&(k=Hf(a.M,"height")));null!=a.P&&Ef(a.P,"bottom",k);null!=a.N&&ag(a.N,a.b.g)}f.qu=function(){this.S("videoAuthorIconClicked")};f.ru=function(){this.S("videoAuthorClicked")};
f.tu=function(){this.S("videoLearnMoreClicked")};f.vu=function(){this.S("videoShareClicked")};f.wu=function(){this.S("videoTitleClicked")};f.su=function(a){a.preventDefault()};f.pk=function(){this.S("click")};f.uu=function(){LU(this.I,"videoAdUiTopBarTransitions")};function bY(a){var b='<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+jU(a.pu)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">Learn More<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttribution"',c;c=AU(a.ii);
c=jU(c);return b+c+">"+jU(a.ii)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}function cY(a){var b=AU(a.ii);return'<div class="videoAdUi videoAdUi-gvn"><div class="videoAdUiTopBar"><div class="videoAdUiAttribution videoAdUiAttribution-gvn"'+jU(b)+">"+jU(a.ii)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}
function UX(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail"></div></div></div>'}function VX(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 "+jU(a.ro);return b+a}
function XX(a){return'<div class="videoAdUiSkipContainer"><div class="videoAdUiSkipButton">'+jU(a.nu)+'<div class="videoAdUiSkipIcon"></div></div></div>'};function dY(){this.C="\u0420\u0435\u043a\u043b\u0430\u043c\u0430:";this.b=null;this.k=this.I=!0;this.F=this.o=!1;this.D=!0;this.g=!1;this.M=!0;this.A=this.N=this.L=!1;this.B=null;this.j=!1;this.O=!0}function eY(a,b,c,d,e,g,h,k){var l=new dY;l.P=b;l.V=e;l.M=g;l.o=!1;l.F=h;l.D=k;l.b=c;l.g=a;l.B=bY;l.U=EP(b,null!=c,d.baseYouTubeUrl);l.j=fk&&TS(0);l.O=null!=e&&(null!=d?d.showContentThumbnail:!0);return l};function fY(){this.b=new ER;this.o=new Bd;this.g=[];this.A=!1;this.j={};this.k=-1}w(fY,Gh);fY.prototype.J=function(){this.g=[];this.j={}};function gY(a,b){a.j=b}function hY(a,b){var c=ZQ(YQ(),b.type);"impression"==b.type&&!a.A&&null!=a.g&&0<a.g.length&&(iY(a,a.g),a.A=!0);var d;t:switch(d=b.type,d){case "click":d=!0;break t;default:d=!Dd(a.o.g,d)}d&&(d=MR(a.b,b.type),0<d.length&&(iY(a,d,c),a.o.set(b.type,!0)))}function iY(a,b,c){z(b,function(a){ZN(a,this.j,c)},a)};function jY(a){T.call(this,a)}w(jY,T);function kY(a){U.call(this);this.I=a;this.C=new Bd;this.B=-1;this.D=!1}w(kY,U);function lY(a){this.g=!1;this.b=a.Ii();this.volume=a.$d()}lY.prototype.muted=function(a,b){return!this.b&&a||0<this.volume&&0==b};f=kY.prototype;f.J=function(){mY(this);kY.G.J.call(this)};function mY(a){null!=a.g&&a.g.dispose();null!=a.b&&a.b.Df();null!=a.o&&a.o.dispose();a.o=null;null!=a.A&&a.A.dispose();a.A=null;a.C.clear();a.B=-1;a.D=!1}
function nY(a,b,c){c&&null!=a.C.get(b)||(a.C.set(b,!0),hY(a.I,new T(b)),a.S(b))}f.lw=function(){var a=this.b.sd();if(-1!=a){this.b.ph(.25*a)&&nY(this,"firstquartile",!0);this.b.ph(.5*a)&&nY(this,"midpoint",!0);this.b.ph(.75*a)&&nY(this,"thirdquartile",!0);var b=this.I,c=this.b.getCurrentTime();0>b.k&&(LR(b.b,a),b.k=0);for(var a=JR(b.b,"progress"),d=b.k;d<a.length;d++){var e=a[d];if(DR(e.j)>c)break;b.k=d+1;ZN(e.b,b.j)}}oY(this)};
function oY(a){0>a.B||a.D||!a.b.ph(a.B)&&!a.b.Fe()||(a.D=!0,nY(a,"engagedview",!0),a.S(new jY("viewCount")))}f.kw=function(){nY(this,"impression",!0);nY(this,"creativeview",!0);null!=this.F||null!=this.j||this.g.listen(this.b,"click",this.vx);null!=this.F&&(this.o=new oP,this.g.listen(this.o,"click",this.aq,!1),pP(this.o,this.F));null!=this.j&&(this.A=new oP,this.g.listen(this.A,"click",this.aq,!1),pP(this.A,this.j));nY(this,"start",!0);(this.b.Ii()||0==this.b.$d())&&nY(this,"mute",!1)};
f.mw=function(){var a=this.b.Ii(),b=this.b.$d(),c=this.k;c.b&&!a||!a&&0==c.volume&&0<b?nY(this,"unmute",!1):this.k.muted(a,b)&&nY(this,"mute",!1);this.k.b=a;this.k.volume=b};f.iw=function(){this.b.Fe()?(oY(this),nY(this,"complete",!0)):this.b.ah()&&!this.b.Tq()&&(this.k.g=!0,nY(this,"pause",!1))};f.jw=function(){this.k.g&&(this.k.g=!1,nY(this,"resume",!1))};f.ew=function(){oY(this);nY(this,"complete",!0)};f.aq=function(){nY(this,"click",!1)};f.fw=function(){nY(this,"error",!1)};
f.hw=function(){nY(this,"mediaLoadTimeout",!1)};f.rw=function(){nY(this,"skipshown",!0)};f.tw=function(){nY(this,"videoAuthorIconClicked",!1)};f.sw=function(){nY(this,"videoAuthorClicked",!1)};f.uw=function(){nY(this,"videoLearnMoreClicked",!1)};f.ww=function(){nY(this,"videoShareClicked",!1)};f.xw=function(){nY(this,"videoShareShown",!0)};f.zw=function(){nY(this,"videoTitleClicked",!0)};f.vp=function(){nY(this,"skip",!0)};f.qw=function(){nY(this,"skip",!0)};f.vx=function(){nY(this,"click",!1)};
f.gw=function(){nY(this,"fullscreen",!1)};f.ow=function(){nY(this,"exitfullscreen",!1)};function pY(a){yX.call(this,a);this.M=this.A=null;this.F=new fY;this.C=new kY(this.F);this.P=this.T=this.L=!1;this.O=1}w(pY,yX);f=pY.prototype;f.J=function(){qY(this);var a=!1;null!=this.k&&(a=this.k.Zm(),this.k.hide(),this.k=null);this.L&&(this.L=!1,this.b.ah()||this.b.Fe()||this.b.pause(),!lc&&!vc||a||(this.b.Kf(.001),this.b.Bg("","")),this.na("contentResumeRequested"),this.na("allAdsCompleted"),lc&&this.b.$i()&&!a&&this.b.Ym());pY.G.J.call(this)};
function qY(a){Ih(a.A);a.A=null;a.M=null;Ih(a.C);Ih(a.F);a.U=null}function rY(a){a.Eg();null!=a.o?a.start():a.stop()}f.Eg=function(){qY(this);pY.G.Eg.call(this);null!=this.o&&(this.F=new fY,this.C=new kY(this.F))};
f.Bw=function(a,b,c){this.T||(this.T=!0,this.na("contentPauseRequested"));this.L=!0;var d=this.C,e=this.b,g=this.U,h=this.A;mY(d);d.b=e;d.j=h||null;d.b.Ei();d.k=new lY(d.b);d.F=g||null;d.g=new Rk(d);d.g.listen(d.b,"timeUpdate",d.lw);d.g.listen(d.b,"volumeChange",d.mw);d.g.listen(d.b,"pause",d.iw);d.g.listen(d.b,"play",d.jw);d.g.listen(d.b,"end",d.ew);d.g.listen(d.b,"beginFullscreen",d.gw);d.g.listen(d.b,"endFullscreen",d.ow);d.g.listen(d.b,"skip",d.vp);d.g.listen(d.b,"start",d.kw);d.g.listen(d.b,
"error",d.fw);d.g.listen(d.b,"mediaLoadTimeout",d.hw);null!=d.j&&(d.g.listen(d.j,"videoAuthorIconClicked",d.tw),d.g.listen(d.j,"videoAuthorClicked",d.sw),d.g.listen(d.j,"videoLearnMoreClicked",d.uw),d.g.listen(d.j,"videoTitleClicked",d.zw),d.g.listen(d.j,"videoShareClicked",d.ww),d.g.listen(d.j,"videoShareShown",d.xw),d.g.listen(d.j,"skipshown",d.rw),d.g.listen(d.j,"skip",d.vp),d.g.listen(d.j,"PUBLISHER_INVOKED_SKIP",d.qw));zX(this).listen(this.C,"engagedview",this.ae);zX(this).listen(this.C,"videoAuthorIconClicked",
this.ae);zX(this).listen(this.C,"videoAuthorClicked",this.ae);zX(this).listen(this.C,"videoLearnMoreClicked",this.ae);zX(this).listen(this.C,"videoShareClicked",this.ae);zX(this).listen(this.C,"videoShareShown",this.ae);zX(this).listen(this.C,"videoTitleClicked",this.ae);zX(this).listen(this.b,"timeUpdate",this.yw);zX(this).listen(this.b,"volumeChange",this.dw);this.setVolume(this.O);sY(this,a);tY(this,a);this.k.hi();this.A&&(x(RT(a))?(d=this.A,null!=d.A&&(d.j.Fa(d.A,"click",d.pk),Ef(d.A,"cursor",
"default"))):(d=this.A,null!=d.A&&(d.j.listen(d.A,"click",d.pk),Ef(d.A,"cursor","pointer"))),this.b.zl(uY(this,a)));this.b.Bg(b,c);try{AX(this,a)}catch(k){vY(this,gO,k);return}this.b.play()};function wY(a,b,c,d){b=JR(b.b,c);E(b)||(a[d]=b[0].b)}function xY(a,b,c){b=c.getExtension(b);null!=b&&(wY(a,b,"annotation_click","cta_annotation_clicked"),wY(a,b,"annotation_close","cta_annotation_closed"),wY(a,b,"annotation_start","cta_annotation_shown"))}
function uY(a,b){var c=NT(b)&&!b.C?GT(b):null,d=yT(b)&&!zT(b),e=a.g.uk&&a.M.g,g=xT(b),h={};xY(h,"AdSense",b);xY(h,"dart",b);xY(h,"DFP",b);return new uP(g,c,h,e,d,a.g.loadVideoTimeout,b.j.tagForChildDirectedContent)}function yY(a){var b=0;z(a.B,function(a){zY(a)&&b++},a);var c=1;z(a.B,function(a){var b=a.D;zY(a)&&(b.b=c,b.g=c,c++)},a)}function zY(a){a=a.getSelectedCreative();return null!=a&&a instanceof kT}
function AY(a){return hb(a.B,function(a){a=BY(a);return hb(a,function(a){return!x(CP(a.g))})},a)}function BY(a){var b=a.b;if(null!=b&&b.O&&(b=b.k,!E(b)&&b[0]instanceof kT))return b[0].D;b=a.getSelectedCreative();return zY(a)?b.D:[]}function CY(a,b){if(!zY(b))throw MO(BO);var c=b.getSelectedCreative(),d=c.ca;if(!x(d))return new tP("","",0,0,0,0,0,d,"");var e=null!=b&&(QO.b||a.k.cj()),d=BY(b),e=a.b.Rq(d,a.g.Of,a.g.ih||[],e);DY(d,a.g.Of,e);if(null!=e)return c.la=e;throw MO(tO);}
function DY(a,b,c){try{var d=A(a,function(a){return a.ce}),e=A(a,function(a){return a.b}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.ce,selmt:null===c?"":c.b,nat:!1};aP($O.getInstance(),22,g)}catch(h){}}f.Nj=function(){this.na("loaded");this.S(new IX($(this)))};f.Zc=function(a,b,c){pY.G.Zc.call(this,a,b,c);this.b=this.k.qj(AY(this))};f.skip=function(){null!=this.o&&yT($(this))&&(null!=this.A?this.A.skip():(hY(this.F,new T("skip")),EY(this)))};
f.start=function(){pY.G.start.call(this);yY(this);this.U=this.k.Bl();try{var a=CY(this,$(this));this.P=!1;if(this.g.useVideoAdUi){var b=$(this),c;c=CY(this,b).g;var d=b.getExtension("AdSense"),e=this.g.uk&&((null===c?!1:"modules"==(new J(c)).Pg().toLowerCase())||null!=d&&d.B),g=CP(c),h;if(QO.b)h=eY(e,g,OT(b),this.g,this.g.contentId,!0,this.g.useShareButton,!0);else{var k;if(!UT(b,gP)&&!UT(b,hP)||QT(b)){var l=OT(b),p=eY(e,g,l,this.g,this.g.contentId,!1,!1,!1);p.B=cY;k=p}else{var r=OT(b),t=eY(e,g,r,
this.g,this.g.contentId,!1,!1,!1);t.k=!1;t.I=!1;k=t}h=k}var y=this.M=h,D=this.k.Cl();if(null===D)D=document.body;else{ad(D);var M=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{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%}.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}.afi .text-container .text-inner-container{background-image:none;border:none;border-radius:0;box-shadow:none}.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}.afi .text-title{text-decoration:none}.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%}.videoAdUi{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;opacity:.9;padding:0;position:absolute;width:100%}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%}.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%}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;font:normal 13px arial,sans-serif;margin-bottom:5px;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAACgAAAAoATqZ25QAAAJdJREFUGNN1j70NwkAMRp+PMAXKBGmgvQWYAOYgMAjMQRZggoiOC0UWQFmAFoEp4EIOzGss+Ud+n2CggTWw6RtC7axFHJf0Ei/aUKH4/njKBEDPLHiwi/0Mxcdhwh0P7BGWryeW44ktI2qZUeJYRfFuEGKugU4Dx1/tlOJdcwBtqD6OQ8YcuAHKNaY1F6WgBVrLO/v2/McTvRgrpKpY5XsAAAAASUVORK5CYII=);display:inline-block;height:10px;margin-left:3px;width:10px}.videoAdUiTitle{color:#fff;cursor:pointer;display:inline-block;font:normal 13px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:50%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttribution{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute}.videoAdUiAttribution-gvn{color:#e5bb00;font-size:12px}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}");
D.appendChild(M)}var ea=1E3*ST($(this));this.A=new $X(y,D,ea);var jb=y.P;null!=jb&&($(this).P=jb,y.M&&FY(this,jb));this.A.show()}Mk(u(pY.prototype.Bw,this,$(this),a.g,a.b))}catch(bg){GY(this,bg),this.Eg(),null!=this.o?(NO(MO,this,HO,bg,void 0),this.start()):(this.L?NO(MO,this,HO,bg,void 0):(null!=this.D&&FQ(this.D,CQ()),OO(this,HO,bg)),this.stop())}};f.setVolume=function(a){BX(this);this.L?this.b.setVolume(a):this.O=a};
f.setMediaUrl=function(a){BX(this);var b;if(b=null!=this.o)b=null!=$(this).j;b&&(b=$(this),(TN(b.j.location)||QO.b)&&null!=b.getSelectedCreative()&&b.getSelectedCreative()instanceof kT&&b.getSelectedCreative().setMediaUrl(a))};f.pause=function(){BX(this);this.b.pause()};f.resume=function(){BX(this);this.b.play()};f.getRemainingTime=function(){BX(this);var a=this.b.sd(),b=this.b.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.Oz=function(){vY(this,HO,MO(HO,this.b.Zr()))};
f.Pz=function(){vY(this,wO,MO(wO,null,(this.g.loadVideoTimeout/1E3).toString()))};function vY(a,b,c){GY(a,c);a.Eg();null!=a.o?(NO(MO,a,b,c,void 0),a.start()):(OO(a,b,c),a.stop())}function GY(a,b){var c=MO(HO,b),c=BW(c,$(a),a.b),d=CT($(a));aO(d,c)}
function tY(a,b){gY(a.F,HW(b,a.b));var c=b.getSelectedCreative();if(null!=c&&c instanceof kT){HY(a,c.g);z(IN,function(a){var b=iT(c,a);HR(this.F.b,b);IY(this,a)},a);var d=zX(a);Uk(d,a.C,"error",a.Oz,a);Uk(d,a.C,"mediaLoadTimeout",a.Pz,a)}JY(a,b);yT(b)&&(a.C.B=30)}function HY(a,b){z(b.Ma(),function(a){var d=b.get(a);z(d,function(b){IR(this.F.b,a,b);IY(this,a)},this)},a)}function KY(a){if(QO.g){var b=RT($(a));null!=b&&XN(b)}a.na("click")}
function JY(a,b){b.B.forEach(function(a){z(IN,function(b){var e=JR(a.b,b);E(e)||LY(this,b,e)},this)},a)}function LY(a,b,c){z(c,function(a){IR(this.F.b,a.g,a.b)},a);IY(a,b)}function sY(a,b){z(DT(b),function(a){ob(this.F.g,a)},a);IY(a,"impression")}function IY(a,b){Sb(KN,b)&&Uk(zX(a),a.C,b,a.ae,a)}
f.ae=function(a){switch(a.type){case "start":this.na("start");break;case "impression":this.na("impression");break;case "pause":this.na("pause");break;case "resume":this.na("resume");break;case "firstquartile":this.na("firstquartile");break;case "midpoint":this.na("midpoint");break;case "thirdquartile":this.na("thirdquartile");break;case "complete":this.na("complete");rY(this);break;case "click":null!=this.M&&this.M.o?this.b.ah()?this.resume():this.pause():KY(this);break;case "engagedview":this.na("engagedview");
var b=$(this);a=b.P;if(zT(b)&&!QO.b&&!this.k.cj()&&a){var b=this.b.getCurrentTime(),c=this.b.sd(),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));ZN(d.toString())}break;case "videoAuthorIconClicked":MY(this);break;case "videoAuthorClicked":MY(this);break;case "videoLearnMoreClicked":this.b.pause();KY(this);break;
case "videoShareClicked":a=$(this).M;null!=a&&(a=a.videoId,b=this.g.baseYouTubeUrl,x(a)?a=null:(b=new J((null!=b?b:"//www.youtube.com/")+"share_popup"),c=b.b,c.set("v",a),ee(b,c),a=b.toString()),null===a||window.open(a,"_blank","width="+(550).toString()+",height="+(500).toString()),a=NY(this),null!=a&&YN(a,"sharebuttonclicked"));break;case "videoShareShown":a=NY(this);null!=a&&YN(a,"sharebuttondisplayed");break;case "videoTitleClicked":a=$(this);b=a.M;null!=b&&(a=EP(b.videoId,null!=OT(a),this.g.baseYouTubeUrl),
null!==a&&(this.b.pause(),XN(a)));break;case "skipshown":this.na("skippableStateChanged");break;case "skip":EY(this)}};function NY(a){var b;b=$(a).getExtension("AdSense");if(!(b=null!=b?new J(b.g):null))t:{a=$(a).getSelectedCreative();if(null!=a&&(a=iT(a,"start"),!E(a))){b=new J(a[0].b);break t}b=null}return b}function EY(a){Mk(function(){this.na("skip");rY(this)},0,a)}f.getSelectedCreative=function(){var a=$(this);return TN(a.j.location)?$(this).getSelectedCreative():null};
f.getMediaUrl=function(){if(null==this.o)return null;var a=$(this);if(!zY(a))throw MO(BO);a=a.getSelectedCreative().D;return E(a)?null:a[0].g};f.yw=function(){var a=this.b.sd(),b=this.b.getCurrentTime();if(null!=this.A&&0<=a&&0<=b){if(!this.P){var c=this.b.sd(),d=ST($(this)),c=Math.abs(c-d);2<c&&(c=MO(AO,null,Number(c).toFixed(2)),c=BW(c,$(this),this.b),d=CT($(this)),aO(d,c));this.P=!0}this.A.update(b,a)}};f.dw=function(){var a=this.b.$d();a!=this.O&&(this.O=a,this.na("volumeChange"),0==a&&this.na("mute"))};
function FY(a,b){null!=a.A&&JX(b,function(a){a=new PX(a);VT($(this))==a.videoId&&(OY(this,a),!x(a.g)&&a.b&&LX(a.g,function(a){a=new NX(a);if(null!=this.A){var b=this.A,c=a.j;b.b.N=!x(c);b.b.T=c;null!=b.C&&(c="\u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f "+b.b.T,kd(b.C,(new qU(c,void 0)).content));aY(b);b=this.A;c=a.g;b.b.L=!x(c);if(null!=b.B){var h=Xc("img");h.setAttribute("src",c);LU(h,"videoAdUiAuthorIconImage");b.B.appendChild(h);null!=b.o&&LU(b.o,"videoAdUiTitleWithAuthorIcon")}aY(b)}$(this).I=
a;this.na("youTubeChannelMetadata");a=$(this);b=a.M;if(QO.b&&NT(a)&&E(MQ(a))&&null!=a.I&&null!=b&&b.b){a=$(this);zX(this).listen(window,"message",this.aw);var b=$(this),c=b.I.b,h=xT(b),k=this.g.baseYouTubeUrl,k=new J((null!=k?k:"//www.youtube.com/")+"ad_companion"),l=k.b;l.set("adformat",h);l.set("p",c);l.set("render","video_wall_companion");c=new QU("1",new G(300,250),"IFrame",null,k.toString());c.qg(b);c.C=!0;a.o=[new XT(c,[],null)];AX(this,a)}},this))},a)}
f.aw=function(a){var b=a.b;if("companion-setup-complete"==b.data){a=$(this);var c=encodeURIComponent(ya(RT(a)))+","+encodeURIComponent(NY(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=RT(a)?210:185}else"pause-video"==b.data&&this.pause()};
function OY(a,b){if(null!=a.A&&b.b){var c=a.A,d=b.title;c.b.A=!x(d);c.b.title=d;Uw.test(Tw(c.b.title,void 0));null!=c.o&&kd(c.o,c.b.title);aY(c);c=a.A;null!=c.D&&kd(c.D,"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f")}$(a).M=b;a.na("youTubeVideoMetadata")}function MY(a){var b;b=$(a).I;if(null!=b){b=b.b;var c=a.g.baseYouTubeUrl;b=x(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/UC"+b;null!==b&&(a.b.pause(),XN(b))}};function PY(a){this.b=a}f=PY.prototype;f.Bl=function(){return this.b.Bl()};f.Cl=function(){return this.b.Cl()};f.Nf=function(){return this.b.Nf()};f.qj=function(a){return this.b.qj(a)};f.Zm=function(){return this.b.Zm()};f.cj=function(){return this.b.cj()};f.hide=ca;f.hi=ca;f.ji=ca;function QY(a,b,c,d,e,g,h){U.call(this);this.k=this.A=0;this.B=a;this.D=b;this.aa=c;this.o=null;this.N=d;this.da=g;this.L=QO.j;this.b=null;this.T="normal";this.M=null;this.F=e;this.j=[];this.U=this.P=this.I=!1;this.O=h;RY(this)}w(QY,U);f=QY.prototype;f.init=function(a,b,c){SY(this,c);null==this.C&&(this.C=new Rk(this),Uk(this.C,this.N,"adsLoaderSdkAdLoaded",this.WC,this),Uk(this.C,this.N,"adsLoaderSdkAdError",this.VC,this));TY(this)};
f.start=function(){this.I=!0;UY(this);0<this.j.length?VY(this):("always"==QO.j&&null!=this.O&&FQ(this.O,CQ()),NO(KO,this,kO,void 0,void 0),0==this.D&&this.S("contentResumeRequested"),WY(this))};f.destroy=function(){null!=this.C&&(this.C.dispose(),this.C=null);this.F.hide();XY(this);QO.j=this.L;this.I=!1};f.getCurrentAd=function(){return this.k<this.j.length?this.j[this.k].b[0]:null};f.pause=function(){null!=this.b&&this.b.pause()};f.resume=function(){null!=this.b&&this.b.resume()};
f.skip=function(){null!=this.b&&this.b.skip()};f.getRemainingTime=function(){return null!=this.b?this.b.getRemainingTime():-1};f.setVolume=function(a){null!=a&&(this.M=a,null!=this.b&&this.b.setVolume(this.M))};function SY(a,b){null!=b&&(a.T=b);null!=a.b&&(a.b.zj(b),a.b.Ch())}function RY(a){z(a.B,function(a){a=new J(a.j.adTagUrl);var c=ue(a,"max_ad_duration");n(c)||ue(a,"pmxd")})}
f.WC=function(a){QO.j=this.L;var b=a.o;E(b)||(a=a.k,a.b&&z(b,function(a){a.T=!1},this),ob(this.j,new qR(b,a.b,a.g)));this.A++;TY(this)};f.VC=function(a){a=a.j;QO.j=this.L;a.getMessage();NO(KO,this,kO,void 0,void 0);this.A++;TY(this)};function TY(a){a.A<a.B.length&&null!=a.B[a.A]&&!(2<=a.j.length-a.k)?YY(a):a.P||(a.S("adBreakInitialized"),a.P=!0)}function YY(a){var b=a.B[a.A];QO.j="on_master_ad";jX(a.N,b.j,b)}
function UY(a){null==a.D||hb(a.j,function(a){return!a.g})||(a.j=gb(a.j,function(a){return!(a.g&&!a.j)}))}
function VY(a){if(a.k<a.j.length){var b=a.j[a.k];XY(a);try{var c=b.b,b=null;if(wT(c[0]))b=new pY(c);else{var d=c[0];if(null!=d&&MT(d,"nonlinear"))b=new DX(c);else throw Error("No valid creative type found.");}b.D=a.O;b.Zc(new PY(a.F),{currentTime:0},a.da);a.b=b;if(null==a.b)throw Error("The current ads manager is not defined");null!=a.g&&(a.g.dispose(),a.g=null);a.g=new Rk(a);var e=a.b;Uk(a.g,e,"adError",a.Su,a);Uk(a.g,e,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),
a.Tu,a);a.g.listen(e,["allAdsCompleted"],ca);Uk(a.g,e,"contentPauseRequested",a.Qu,a);Uk(a.g,e,"contentResumeRequested",a.Ru,a);if(ZY(a.b)){var g;g=a.b.getSelectedCreative().qb;g=0<g?g:15;null!=a.o&&a.o.dispose();a.o=new Kk(1E3*g);Xk(a.g,a.o,"tick",a.Uu,a)}a.b.init(a.T);null!=a.M&&a.b.setVolume(a.M);if(ZY(a.b))a.S("contentResumeRequested"),a.F.ji(),a.b.start(),null!=a.o&&a.o.start();else{var h=a.b;if(null!=h&&h instanceof pY)a.F.hi(),a.b.start();else throw Error("Unknown ads manager type.");}}catch(k){a.k++,
VY(a)}a.A<a.B.length&&null!=a.B[a.A]&&YY(a)}else a.S("contentResumeRequested"),WY(a)}function XY(a){null!=a.o&&(a.o.dispose(),a.o=null);null!=a.g&&(a.g.dispose(),a.g=null);null!=a.b&&(a.b.destroy(),a.b=null)}f.Uu=function(){XY(this);WY(this)};f.Su=function(){this.k++;VY(this)};f.Ru=function(){this.k++;VY(this)};f.Qu=function(){this.U||(this.S("contentPauseRequested"),this.U=!0)};function ZY(a){return null!=a&&a instanceof DX}function WY(a){a.I=!1;a.S("allAdsCompleted")}
f.Tu=function(a){$Y(this,a.type,a.getAd());this.S(a)};function $Y(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0;z(a.j,function(a,b){var h=a.b;eb(h,c);b<this.k&&(d+=h.length)},a);b=c.D;b.b=d+b.g;b.j=a.aa;b.k=a.D}};function aZ(a){T.call(this,a);this.j=null}w(aZ,T);function bZ(a,b,c){U.call(this);this.g=a;this.b=[];this.A=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.C=null!=c&&ja(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.j=null;this.k=!1;cZ(this,b)}w(bZ,U);function dZ(a){this.b=a;this.j=this.g=!1}function eZ(a){null!=a.j&&(a.j.dispose(),a.j=null);a.g.stop();a.k=!1}function fZ(a){if(a.k){var b=B(a.b,function(a){return-1==a.b},a);null!=b&&gZ(a,!0,b)}}
function cZ(a,b){z(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Eb(this.b,new dZ(a),function(a,b){return zb(a.b,b.b)})},a)}bZ.prototype.o=function(){if(this.k){var a=this.g.currentTime;if(isNaN(a)||0>a)hZ(this);else{var b=iZ(this,a);this.A?z(b,function(a){gZ(this,!0,a)},this):gZ(this,!0,cb(b));gZ(this,!1,jZ(this,a))}}};function iZ(a,b){for(var c=[],d=0;d<a.b.length;d++){var e=a.b[d];-1!=e.b&&e.b<=b&&ob(c,e)}return c}
function jZ(a,b){for(var c=0;c<a.b.length;c++){var d=a.b[c];if(-1!=d.b&&b>=d.b-a.C&&b<d.b&&!a.b[c].g)return d}return null}bZ.prototype.B=function(){hZ(this)};function hZ(a){a.S(new aZ("contentTrackingError"))}function gZ(a,b,c){if(null!=c){if(!c.g){var d=new aZ("requestAds");d.j=c.b;a.S(d);c.g=!0}b&&!c.j&&(b=new aZ("playAds"),b.j=c.b,a.S(b),c.j=!0)}};function kX(a,b){yX.call(this,[]);this.P=a;this.F=new Bd;this.A=this.b=null;this.U=new om;this.C=null;this.L=b;this.T=this.O=!1;this.M=null;this.aa=this.da=-1}w(kX,yX);f=kX.prototype;
f.Zc=function(a,b,c){null!=this.A&&(eZ(this.A),this.A.dispose(),this.A=null);kX.G.Zc.call(this,a,b,c);c=this.P.b.Ma();b=new dQ(b);this.A=new bZ(b,c,{prefetch:4});z(c,function(b,c){if(isNaN(b))throw KO(eO,null,"timeOffset",b+"");var g=ja(b)&&!isNaN(b)?this.P.b.get(b,[]):[];if(!E(g)){g=new QY(g,b,0==b||-1==b?b:c,this.L,a,this.g,this.D);if(Dd(this.F.g,b))throw KO(pO,null,"Multiple ad breaks cannot share same ad play time.");this.F.set(b,g)}},this);this.M=cb(c);hb(c,function(a){if(-1==a)return this.M=
a,!0;this.M=this.M<a?a:this.M;return!1},this)};
f.init=function(a){kX.G.init.call(this,a);null!=this.A&&(kZ(this),this.j=new Rk(this),Uk(this.j,this.A,"requestAds",this,this),Uk(this.j,this.A,"playAds",this,this),Uk(this.j,this.A,"contentTrackingError",this,this),Uk(this.j,this.A,"adBreakReady",this.fv,this),Uk(this.j,this.L,"contentComplete",this.hv,this),this.L.ze=!1,a=this.A,a.k||(null==a.j&&(a.j=new Rk(a)),a.j.listen(a.g,"currentTimeUpdate",a.o,!1),a.j.listen(a.g,"contentWrapperError",a.B,!1)),a.g.start(),a.k=!0,this.A.o(),a=ja(0)&&!isNaN(0)?
this.P.b.get(0,[]):[],E(a)&&this.na("contentResumeRequested"))};f.Nj=function(){this.Ms();this.S(new IX(null))};f.destroy=function(){this.dispose()};f.J=function(){this.L.ze=!0;if(0<this.F.Na()){var a=this.F.Qa();z(a,this.nm,this);this.F.clear()}kZ(this);lZ(this);null!=this.k&&(this.k.hide(),this.k=null);kX.G.J.call(this)};f.start=function(){kX.G.start.call(this)};f.stop=function(){null!=this.b&&this.b.destroy()};f.pause=function(){null!=this.b&&this.b.pause()};f.resume=function(){null!=this.b&&this.b.resume()};
f.skip=function(){null!=this.b&&this.b.skip()};f.setVolume=function(a){kX.G.setVolume.call(this,a);null!=this.b&&this.b.setVolume(a)};f.Ch=function(){kX.G.Ch.call(this);var a=Pc(window);this.da=a.width;this.aa=a.height;null!=this.b&&SY(this.b,this.I)};f.getRemainingTime=function(){return null!=this.b?this.b.getRemainingTime():-1};f.Ms=function(){return this.P.b.Ma()};f.getCurrentAd=function(){return null!=this.b?this.b.getCurrentAd():null};f.cs=function(){};
f.handleEvent=function(a){"contentTrackingError"!=a.type&&(qm(this.U,a),mZ(this))};function kZ(a){null!=a.j&&(a.j.dispose(),a.j=null);a.O=!1;null!=a.A&&eZ(a.A)}
function mZ(a){if(null==a.C){var b=rm(a.U);if(null!=b){a.C=b;var c=a.F.get(a.C.j);null!=c?"requestAds"==b.type?(null==a.j&&(a.j=new Rk(a)),Uk(a.j,c,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),a.S,a),Uk(a.j,c,"allAdsCompleted",a.er,a),Uk(a.j,c,"contentPauseRequested",a.br,a),Uk(a.j,c,"contentResumeRequested",a.dr,a),Uk(a.j,c,"adBreakInitialized",a.fr,a),c.init(a.da,a.aa,a.I)):"playAds"==b.type?(null!=a.b&&a.b.I&&a.nm(a.b),a.b=c,a.b.setVolume(a.volume),
SY(a.b,a.I),a.b.start()):(a.C=null,mZ(a)):(a.C=null,mZ(a))}}}f.nm=function(a){a.destroy();this.F.remove(a.D);this.b=null;null!=this.j&&(this.j.Fa(a,"click start pause firstquartile midpoint thirdquartile complete loaded adMetadata".split(" "),this.S,!1,this),this.j.Fa(a,"allAdsCompleted",this.er,!1,this),this.j.Fa(a,"contentPauseRequested",this.br,!1,this),this.j.Fa(a,"contentResumeRequested",this.dr,!1,this),this.j.Fa(a,"adBreakInitialized",this.fr,!1,this))};
f.hv=function(){this.O=!0;-1==this.M||nZ(this);fZ(this.A)};f.fv=function(a){a=a.j;-1==a?Mk(function(){nZ(this)},500,this):0==a&&Mk(function(){this.na("contentResumeRequested")},100,this);this.S(new JN("adBreakReady",null))};f.er=function(a){this.nm(a.target);(0==this.F.Qa().length||this.O)&&nZ(this);this.C=null;mZ(this)};function nZ(a){a.T||(a.T=!0,a.L.ze=!0,a.na("allAdsCompleted"),-1==a.M&&lZ(a))}function lZ(a){iQ.clear();null!=a.D&&(a=a.D.qi(),null!=a&&a.F(iQ.b))}
f.br=function(){var a=this.A;a.g.stop();a.k=!1;this.na("contentPauseRequested")};f.dr=function(){this.na("contentResumeRequested");if(!this.O){var a=this.A;a.g.start();a.k=!0}this.C=null};f.fr=function(){this.C=null;mZ(this)};f.na=function(a){var b=null;null!=this.b&&(b=this.b.getCurrentAd());this.S(new JN(a,b))};function oZ(a){yX.call(this,a);this.U=this.T=this.L=!1;this.M=[];this.P=Ya();this.A=null;this.b=new fY;this.C=!0;this.O=-1;this.F=1}w(oZ,yX);f=oZ.prototype;
f.init=function(a){oZ.G.init.call(this,a);a=TT($(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.g.contentId&&(a=$d(a,"v",this.g.contentId))}a=ya(a)}else{var b=new J(a),c=new J("http://tpc.googlesyndication.com/pagead/js/loader5.html");"https"==b.Gb&&ae(c,"https");a=ee(c,a||"",void 0).toString()}this.eb=I("iframe",{src:WN(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});
zX(this).listen(window,"message",this.iC);zX(this).listen(this.eb,"load",this.gC);zX(this).listen(this.eb,"error",this.hC);this.k.Nf().appendChild(this.eb)};f.Zc=function(a,b,c){oZ.G.Zc.call(this,a,b,c);this.C=$(this).getSelectedCreative()instanceof kT;this.A=a.qj(!1);zX(this).listen(this.A,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.OC)};f.stop=function(){this.k.hide();oZ.G.stop.call(this)};
function pZ(a,b){gY(a.b,HW(b,a.A));var c=b.getSelectedCreative();null!=c&&(c instanceof kT&&qZ(a,c.g),z(IN,function(a){a=iT(c,a);HR(this.b.b,a)},a),z(DT(b),function(a){ob(this.b.g,a)},a))}function qZ(a,b){z(b.Ma(),function(a){var d=b.get(a);z(d,function(b){IR(this.b.b,a,b)},this)},a)}f.start=function(){oZ.G.start.call(this);pZ(this,$(this));this.A.Ei();this.k.ji();this.eb.style.opacity=1;this.U=!0;this.C&&this.na("contentPauseRequested");rZ(this)};f.pause=function(){sZ(this,"pauseAd")};
f.resume=function(){sZ(this,"resumeAd")};f.setVolume=function(a){oZ.G.setVolume.call(this,a);sZ(this,"setAdVolume",{value:a})};f.J=function(){var a=this.k.Nf();null!=a&&ad(a);this.C&&this.na("contentResumeRequested");this.na("allAdsCompleted");this.L=!1;this.M=[];oZ.G.J.call(this)};f.Nj=function(){};
f.gC=function(){var a=this.A.ds();E(a)&&(a=this.g.ih);tZ(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=ET($(this)),b={desiredBitrate:this.g.Of,creativeData:a,viewMode:this.I};TT($(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.g.un&&(b.creativeData=this.g.un);tZ(this,"initAd",b);z(this.M,function(a){tZ(this,a.type,a.params)},this);this.L=!0;this.M=[]};
function sZ(a,b,c){a.L?tZ(a,b,c):a.M.push({type:b,params:c})}function tZ(a,b,c){null!=a.eb?(null!=c||(c={}),c.session=a.P,c.type=b,a.eb.contentWindow.postMessage(of(c),"*")):(uZ(a,JO,null),a.stop())}
f.iC=function(a){a=a.b;if(a.source==this.eb.contentWindow&&(a=mf(a.data),a.session==this.P&&s(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.k.hi();this.A.Bg(a.src,a.mimetype);this.A.play();break;case "pause":this.A.pause()}break;case "getAdRemainingTime":a=a.remainingTime;this.C||(Nk(this.O),ja(a)&&-1!=a||(a=30),this.O=Mk(this.Jx,1E3*a,this));break;case "AdClickThru":hY(this.b,new T("click"));a.url&&ZN(a.url);n(a.Kx)&&!1==a.Kx&&QO.g&&(a=RT($(this)),null!=a&&XN(a));this.na("click");
break;case "AdError":uZ(this,JO,null);this.stop();break;case "AdExpandedChange":this.na("expandedChanged");break;case "AdImpression":this.na("impression");break;case "AdLinearChange":a=a.isLinear;!this.C&&a?(this.na("contentPauseRequested"),Nk(this.O)):!a&&this.C&&(this.na("contentResumeRequested"),this.C=a,sZ(this,"getAdRemainingTime"));this.C=a;break;case "AdLoaded":this.T=!0;rZ(this);vZ(this,"loaded");break;case "AdPaused":vZ(this,"pause");break;case "AdPlaying":vZ(this,"resume");break;case "AdRemainingTimeChange":this.C||
sZ(this,"getAdRemainingTime");break;case "AdSkipped":vZ(this,"skip");break;case "AdStarted":hY(this.b,new T("impression"));hY(this.b,new T("creativeview"));this.na("start");break;case "AdStopped":hY(this.b,new T("stop"));this.stop();break;case "AdUserAcceptInvitation":this.C?hY(this.b,new T("acceptinvitationlinear")):hY(this.b,new T("acceptinvitation"));break;case "AdUserMinimize":hY(this.b,new T("collapse"));break;case "AdUserClose":vZ(this,"userClose");break;case "AdVideoComplete":vZ(this,"complete");
break;case "AdVideoFirstQuartile":vZ(this,"firstquartile");break;case "AdVideoMidpoint":vZ(this,"midpoint");break;case "AdVideoStart":hY(this.b,new T("start"));break;case "AdVideoThirdQuartile":vZ(this,"thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.F&&this.na("volumeChange");0==a&&0!=this.F?(hY(this.b,new T("mute")),this.na("mute")):0==this.F&&0!=a&&hY(this.b,new T("unmute"));this.F=a;this.A.setVolume(a);break;case "Ping":ZN(a.url)}};f.hC=function(a){uZ(this,qO,a);this.stop()};
function uZ(a,b,c){var d=MO(b,c),d=BW(d,$(a)),e=CT($(a));aO(e,d);OO(a,b,c)}function vZ(a,b){hY(a.b,new T(b));a.na(b)}f.OC=function(a){switch(a.type){case "timeUpdate":a=this.A.sd();var b=this.A.getCurrentTime();tZ(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":wZ(this,"ended");break;case "mediaLoadTimeout":wZ(this,"stalled");break;default:wZ(this,a.type)}};function wZ(a,b){tZ(a,"wrapperCall",{messageType:b})}
function rZ(a){a.T&&a.U&&(sZ(a,"startAd"),a.C||sZ(a,"getAdRemainingTime"))}f.Jx=function(){sZ(this,"stopAd")};function xZ(){}function mX(a){if(!E(a)){var b=a[0],c=UT(b,["402"])&&QO.b;switch(null!=TT(b)&&c?"vpaid":NT(b)&&MT(b,"nonlinear")?"overlay":MT(b,"linear")?"video":MT(b,"nonlinear")?"overlay":null){case "overlay":return NT(b)?new HX(a):new DX(a);case "video":return new pY(a);case "vpaid":return new oZ(a)}}return null};function yZ(){try{return window.top.location.href}catch(a){return window.location.href}};function zZ(a){U.call(this);this.g=a;a=new EQ(new oQ);this.b=new fX(new xZ,a,iQ);this.b.listen("adsManagerLoaded",this.S,!1,this);this.b.listen("adError",this.S,!1,this);this.b.listen("adLoadError",this.S,!1,this)}w(zZ,U);zZ.prototype.J=function(){null!=this.b&&(this.b.Fa("adsManagerLoaded",this.S),this.b.Fa("adError",this.S),this.b.Fa("adLoadError",this.S),this.b=null);zZ.G.J.call(this)};var AZ={SI:0,vE:-1,tH:-2};function BZ(a){this.b=a}f=BZ.prototype;f.Bl=function(){return null};f.Cl=function(){return this.b.C};f.Nf=function(){return this.b.C};f.qj=function(){var a=this.b.j;return null!=a?a:new FP};f.hi=function(){var a=this.b;null!=a.b&&a.b.show()};f.ji=function(){};f.Zm=function(){return this.b.k};f.cj=function(){return this.b.A};f.hide=function(){};function lX(a,b){T.call(this,"adsManagerLoaded");this.j=a;this.k=b}w(lX,T);function CZ(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function DZ(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null;c?b.error_code=c:(c=("getMessage"in a&&ka(a.getMessage)?a.getMessage():a.message)||"",50<c.length&&(c=c.substring(0,47)+"..."),b.error_message=c)}}function EZ(a,b){if(a){var c=GT(a);if(c){var d=HT(a)||[];b.ad_id=sb(d,c).join(",");if(c=BT(a))d=JT(a)||[],b.ad_sys=sb(d,c).join(",");yT(a)&&(b.skip=1)}}}
function FZ(a,b){if(a[b])return CZ(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return CZ(a[d]);return!1}function GZ(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 HZ(a,b,c,d){this.k=a;this.o=b;this.b=c;this.A=d}HZ.prototype.j="";HZ.prototype.g="";function IZ(a){JZ(a.b,9,KZ(a))}function KZ(a){var b={};b.l_ns=a.o;b.l_state=a.A;b.sst=a.k;b.sidx=0;a.j&&(b.at=a.j);a.g&&(b.ad_id=a.g);return b};var LZ=!1;function MZ(){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 NZ(){var a=q("window.google_show_companion_ad");ka(a)?a():LZ=!0}function OZ(){var a=q("yt.www.watch.ads.setCompanion");a&&a()}function PZ(a){var b=q("yt.www.watch.ads.showForcedMpu");b&&b(a)}Rh("showCompanionAdLoaded",function(){LZ&&(NZ(),LZ=!1)});function QZ(a,b,c,d){Zi.call(this);this.b=a;this.type=b+"_"+c;this.g=d;this.j=null}w(QZ,Zi);QZ.prototype.A=function(){return this.type};QZ.prototype.getCurrentAd=function(){return this.g?this.g.getCurrentAd():null};function RZ(a,b,c){this.isSkippable=b;this.skip=c;this.skipTime=5;this.videoId=a};function SZ(a){this.b=a}function TZ(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 UZ(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 VZ(a,b){this.b=a;this.k=b}VZ.prototype.o=null;VZ.prototype.g=NaN;function WZ(a,b,c){a.b.H("AD_LOGGING_EVENT",b,c)}function XZ(a){YZ(a);var b=ZZ(a);if(a.j){var c=$Z(a.k),d=a.j.y-c.top,d=Math.round(a.j.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}WZ(a,15,b)}function a_(a){YZ(a);var b=ZZ(a);if(isNaN(a.g))YZ(a);else{var c=v()-a.g;b.ad_stl=c}WZ(a,4,b)}function b_(a){YZ(a);var b=ZZ(a),c=a.b.rn();c?b.ad_fmt=c:YZ(a);WZ(a,5,b)}
function c_(a){var b=ZZ(a),c=a.b.rn();c?b.ad_fmt=c:YZ(a);WZ(a,14,b)}function ZZ(a){var b={},c=a.b.j,d=a.b.Wi(),e=a.b.Wq();EZ(a.b.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);c&&c.videoId?b.ad_v=c.videoId:e&&(c=wi(e),b.ad_dom=c,a.k.ma.A&&(b.ad_v_url=e.substr(0,512)));b.at=a.b.A();return b}function YZ(a){a.o||(a.o="InstreamAdDisplay ("+a.b.A()+")")};function d_(a,b,c,d,e){QZ.call(this,b,a,2,c);this.b.subscribe("onVolumeChange",this.Ap,this);this.b.subscribe("control_toggle_play_pause",this.Bp,this);this.b.subscribe("control_play",this.Hl,this);this.b.subscribe("control_pause",this.Gl,this);this.F=d;this.o=new VZ(this,this.b);this.k=new Rv(this);this.D=this.B=!1;this.C=0;this.I=e}w(d_,QZ);d_.b=2E3;f=d_.prototype;f.Kb=null;f.Yf=!1;f.fh=null;f.eh=null;f.hh=null;
f.show=function(){this.o.g=v();var a;if(a=this.F){var b=vi(a),b=b.v||b.video_id;if(!b){var c=Pd(a).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 Hr({video_id:b,dash:"0"}):null}else a=null;this.j=a;var d,e;this.j?(this.j.re=!0,d={video_id:this.j.videoId},e=new RZ(this.j.videoId,this.I,u(this.cw,this)),this.j.subscribe("onStatusFail",this.mp,this),this.j.subscribe("dataloaded",this.np,this),a=this.b.R(),a=new LK(a.j),a.$=
"adunit",a.xc=!0,a.k=this.type,a=OK(a,this.j),Zr(this.j,a)):e_(this);this.B||(f_(this.b,-1,d,e),this.bp())};f.cw=function(){this.b.k.j.S("skip")};function g_(a){a.j&&(a.j.ja("onStatusFail",a.mp,a),a.j.ja("dataloaded",a.np,a))}f.np=function(){g_(this);Sr(this.j);var a=new jM(this.b.R());(a=Fr(this.j.F,lM(a,this.j)))?(a=a.b)?(a=new J(nr(a)),a.b.set("autoplay","1"),this.g.setMediaUrl(a.toString()),e_(this)):h_(this,Error("Failed to determine ad media resource.")):h_(this,Error("Failed to determine ad media format."))};
function e_(a){if(ih||2.2<=Up&&3>Up){var b=v()-a.o.g,b=d_.b-b;a.C=L(u(a.Oq,a),Math.max(0,b));O(pt(a.b.b),"ad-interstitial-showing")}else a.Oq()}
f.Oq=function(){i_(this);this.Kb=j_(this.b,!0);this.hh=pt(this.b.b);if(this.b.ma.M)cd(H("video-ad-status-bar"));else{var a=pt(this.b.b);this.fh=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=Xc("div");O(b,"ytp-ad-progress");a.appendChild(b);this.eh=b;this.k.listen(this.Kb,"timeupdate",this.xz)}ng(this.hh,["ad-showing","ad-interrupting"]);this.k.listen(nH(this.b.g),"mouseup",this.vz);this.k.listen(this.Kb,"waiting",this.bp);this.b.subscribe("onResize",this.im,this);try{this.k.listen(this.g,
"adError",this.uz);this.k.listen(this.g,"click",this.rz);this.k.listen(this.g,"complete",this.lm);this.k.listen(this.g,"pause",this.Gq);this.k.listen(this.g,"start",this.Hq);this.k.listen(this.g,"skip",this.wz);this.im();var c=this.b,d=c.g,e=k_(c);d.W.R().Tb&&(Uf(d.b,e),Jf(d.b,0,0));this.g.start()}catch(g){h_(this,g)}};f.Hq=function(){this.Yf=!0;this.B=!1;this.D||(this.D=!0,a_(this.o),l_(this.b,1));su(this.b,!0);f_(this.b,1);this.H("adPlay",this)};
f.Gq=function(){this.Yf=!1;su(this.b,!1);f_(this.b,2)};f.wz=function(){c_(this.o);this.lm()};f.lm=function(){this.B||(b_(this.o),this.Yf=!1,this.B=!0,f_(this.b,0),l_(this.b,0),this.H("adEnd",this))};f.uz=function(a){h_(this,a.j)};function h_(a,b){a.Yf=!1;a.B=!0;f_(a.b,0);a.H("adError",b)}f.mp=function(){g_(this);h_(this,Error("Request to get video data failed."))};f.rz=function(){XZ(this.o);this.H("select")};f.vz=function(a){a=new F(Hg(a),Ig(a));this.o.j=a};
f.xz=function(a){var b=Cv(this.g.getRemainingTime());this.fh.innerHTML=b;b=this.Wi()?this.Kb.getCurrentTime()/this.Wi():0;b=Dv(b);this.eh.style.width=b+"%";this.Kb.ended&&L(u(this.lm,this,a),50)};f.bp=function(){!this.Yf&&this.D||f_(this.b,3)};
f.J=function(){this.b.ja("control_toggle_play_pause",this.Bp,this);this.b.ja("control_play",this.Hl,this);this.b.ja("control_pause",this.Gl,this);this.b.ja("onResize",this.im,this);this.b.ja("onVolumeChange",this.Ap,this);this.k.removeAll();g_(this);this.g.destroy();this.Kb&&(lH(this.b.g),this.Kb=null);i_(this);this.fh&&(this.fh.innerHTML="",this.fh=null);this.eh&&(cd(this.eh),this.eh=null);this.hh&&(og(this.hh,["ad-showing","ad-interrupting"]),this.hh=null);this.B=!0;d_.G.J.call(this)};
function i_(a){a.C&&(N(a.C),a.C=0,P(pt(a.b.b),"ad-interstitial-showing"))}f.Wi=function(){return this.Kb?this.Kb.duration||0:null};f.rn=function(){return null};f.Wq=function(){return this.Kb&&this.Kb.currentSrc?this.Kb.currentSrc:null};f.Ap=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Gb(a/100,0,1),this.g.setVolume(a))};f.Bp=function(){this.Yf?this.Gl():this.Hl()};f.Hl=function(){this.Kb&&(this.g.resume(),this.Hq())};f.Gl=function(){this.Kb&&(this.g.pause(),this.Gq())};f.im=function(){k_(this.b)};function m_(a,b,c,d){QZ.call(this,b,a,2,c);this.b.subscribe("control_toggle_play_pause",this.Po,this);this.b.subscribe("control_play",this.Kk,this);this.b.subscribe("control_pause",this.Jk,this);this.B=new VZ(this,this.b);this.k=new Rv(this);this.o=n_(b);this.o.subscribe("statechange",this.Qd,this);this.o.subscribe("internalvideodatachange",this.Oo,this);this.C=this.D=!1;this.F=d}w(m_,QZ);f=m_.prototype;f.cn=!1;f.Gg=null;f.Fg=null;f.Hg=null;
f.show=function(){var a=this.b;o_(a.app,n_(a));this.B.g=v();this.Hg=pt(this.b.b);this.o.subscribe("progresssync",this.Xo,this);if(this.b.ma.M)cd(H("video-ad-status-bar"));else{a=pt(this.b.b);this.Gg=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=Xc("div");O(b,"ytp-ad-progress");a.appendChild(b);this.Fg=b}ng(this.Hg,["ad-showing","ad-interrupting"]);this.b.subscribe("onResize",this.Rk,this);try{this.k.listen(this.g,"adError",this.Zx),this.k.listen(this.g,"click",this.Yx),this.k.listen(this.g,
"complete",this.Wx),this.k.listen(this.g,"engagedview",this.Xx),this.k.listen(this.g,"pause",this.kq),this.k.listen(this.g,"start",this.lq),this.k.listen(this.g,"skip",this.$x),this.Rk(),this.g.start()}catch(c){p_(this,c)}};f.Oo=function(a,b,c){"newdata"==a&&this.j!=c&&(a={video_id:c.videoId},b=new RZ(c.videoId,this.F,u(this.g.skip,this.g)),f_(this.b,-1,a,b));this.j=c};f.Qd=function(a){a=a.state;W(a,128)&&p_(this,Error(a.b.message||"Video player error."))};
f.lq=function(){this.cn=!0;this.C=!1;this.D||(this.D=!0,a_(this.B),l_(this.b,1));f_(this.b,1);this.H("adPlay",this)};f.kq=function(){this.cn=!1;f_(this.b,2)};f.Wx=function(){b_(this.B);q_(this)};function q_(a){var b=new FN;b.j=a.C;b.g=v();a.j&&a.j.Da&&(b.b=a.j.Da);pN(n_(a.b));f_(a.b,0,b);l_(a.b,0);a.H("adEnd",a)}f.Xx=function(){var a=this.B;a.b.H("AD_LOGGING_EVENT",777,ZZ(a))};f.$x=function(){this.C=!0;c_(this.B);q_(this)};
f.Zx=function(a){var b={};b.error_code=a.j.getErrorCode();var c=this.B;YZ(c);var d=ZZ(c);b&&sa(d,b);d.ad_error=32;WZ(c,7,d);p_(this,a.j)};function p_(a,b){a.o.rg();f_(a.b,0);a.H("adError",b)}f.Yx=function(){XZ(this.B);this.g.pause();this.H("select")};f.Xo=function(){var a=this.b.b.Mg();this.b.ma.M||(this.Gg.innerHTML=Cv(a.duration-a.current),a=Dv(a.current/a.duration),this.Fg.style.width=a+"%")};
f.J=function(){this.b.ja("control_toggle_play_pause",this.Po,this);this.b.ja("control_play",this.Kk,this);this.b.ja("control_pause",this.Jk,this);this.b.ja("onResize",this.Rk,this);this.k.removeAll();this.o.subscribe("statechange",this.Qd,this);this.o.ja("internalvideodatachange",this.Oo,this);this.o.ja("progresssync",this.Xo,this);var a=this.b;if(a.j){var b=a.app,a=a.j;r_(b);a!=b.j&&o_(b,b.j)}this.g.destroy();this.Gg&&(this.Gg.innerHTML="",this.Gg=null);this.Fg&&(cd(this.Fg),this.Fg=null);this.Hg&&
(og(this.Hg,["ad-showing","ad-interrupting"]),this.Hg=null);this.C=!1;m_.G.J.call(this)};f.Wi=function(){return this.o.Td()};f.rn=function(){return this.j&&this.j.b?this.j.b.mimeType:null};f.Wq=function(){return this.j&&this.j.P?nr(this.j.P.b):null};f.Po=function(){this.cn?this.Jk():this.Kk()};f.Kk=function(){this.g.resume();this.lq()};f.Jk=function(){this.g.pause();this.kq()};f.Rk=function(){Uf(kH(this.b.g),k_(this.b))};function s_(a,b){this.g=a;this.b=b}function t_(a,b,c){a.g.H("AD_LOGGING_EVENT",b,c)}function u_(a){var b={};EZ(a.g.getCurrentAd(),b);a.o&&a.k&&(b.ot=a.k-a.o);var c;c=a.b.isFullscreen()?2:a.b.R().rd?1:0;b.ad_ps=c;b.at=a.g.A();return b};function v_(a,b,c){QZ.call(this,b,a,1,c);this.o=new s_(this,b);this.k=new Rv(this)}w(v_,QZ);f=v_.prototype;f.Ed=null;f.bm=!1;
f.show=function(){if(!this.bm||!w_(this.b)){var a=pt(this.b.b);O(a,"ad-showing");this.Ed=kH(this.b.g);a=this.g.getCurrentAd().getHeight();this.Ed.style.height=Kf(a,!0);O(this.Ed,"ad-overlay");this.k.listen(this.Ed,"mouseup",this.Xy);try{this.k.listen(this.g,"userClose",this.Yy);this.k.listen(this.g,"click",this.Wy);this.k.listen(this.g,"adError",this.Vy);x_(this,"normal");this.g.start();var b=this.o;b.o=v();var c=u_(b);t_(b,3,c);this.b.subscribe("onResize",this.dm,this);this.b.subscribe("onStateChange",
this.mq,this);this.H("adEnd",this)}catch(d){this.H("adError",d)}}};f.J=function(){this.k.removeAll();this.b.ja("onResize",this.dm,this);this.b.ja("onStateChange",this.mq,this);var a=pt(this.b.b);P(a,"ad-showing");this.g&&(this.g.destroy(),this.g=null);this.Ed&&P(this.Ed,"ad-overlay");this.Ed=null;this.bm=!1;v_.G.J.call(this)};f.Yy=function(){this.Ed&&this.g&&this.g.getCurrentAd()&&(this.Ed.style.height=Kf(0,!0));this.bm=!0;var a=this.o;a.k=v();var b=u_(a);t_(a,6,b)};
f.Wy=function(){this.b.pauseVideo();var a=this.o;a.k=v();var b=u_(a);if(a.j){var c=$Z(a.b),d=a.j.y-c.top,d=Math.round(a.j.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}t_(a,100,b)};f.Xy=function(a){this.o.j=a.target==a.currentTarget?null:new F(a.pageX,a.pageY)};f.Vy=function(a){this.H("adError",a.j)};f.mq=function(a){W(a.state,16)&&x_(this,"normal")};function x_(a,b){a.B!=b&&(a.B=b)}f.dm=function(){};function y_(a,b,c,d){this.I=a;this.b=b.g;this.B=b;this.M=b.getId();this.ga=c;this.j=d;this.k=new HZ(this.b,this.De(),c,d);this.o=null;this.F=new Rk(this);this.g=new Rk(this)}w(y_,Gh);y_.b="rm";y_.g=10;y_.A=200;y_.k=200;y_.o=190;y_.j=100;f=y_.prototype;f.Il=null;f.load=function(){var a;a=this.ga;a=a.ma.A?k_(a):a.app.g.j.Vc();var b;this.ga.ma.g?b=!1:(b=0<(this.j&3)?y_.o:y_.k,b=a.width<y_.A||a.height<b);if(b){b=this.k;var c=KZ(b);c.ck_wh=a.width+"x"+a.height;z_(b.b,14,c);OZ();this.Ge(Error("The player size is too small."))}else A_(this)};
f.fn=function(){var a=new dP;a.baseYouTubeUrl=this.ga.R().rb;a.contentId=ct(this.ga.app).videoId;a.uk=iH(this.ga.R(),"927622");a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=this.ga.ma.M;a.youTubeAdNamespace=this.De();a.showContentThumbnail=this.ga.ma.qo;a.un=this.ga.ma.Vj;return a};f.De=function(){return this.I};function B_(a){var b=y_.g;a.b=b;a.k.k=b}function C_(a,b){a.Il=b;a.k.j=b.A()}function D_(a,b){var c=q("yt.www.watch.ads.setAdId");c&&c(b);a.k.g=b}
function E_(a){a=a.b;return 0==a||-1==a?a:1E3*a}
function A_(a){a.o=a.ga.Bk;if(a.o){IZ(a.k);var b=new dW;b.adTagUrl=a.ag();var c=a.ga.ma.hf;c&&(b.adsResponse=c);c=k_(a.ga);b.linearAdSlotWidth=c.width;b.linearAdSlotHeight=c.height;b.nonLinearAdSlotWidth=c.width;b.nonLinearAdSlotHeight=y_.j;if(c=TK(a.ga.R()))b.lastActivity=c;a.ga.ma.xb&&(b.tagForChildDirectedContent=!0);iH(a.ga.R(),"937420")&&(b.Ri=!0);var c=ct(a.ga.app),d=a.ga;b.Ug={"[CONTENT_V]":c.videoId,"[CPN]":c.Da,"[LACT]":{toString:function(){return null==d||d.fa()?d=null:TK(d.R()).toString()}}};
a.o.listen("adsManagerLoaded",a.lr,!1,a);a.o.listen("adError",a.kr,!1,a);a.Cj(a.o,b)}}
f.lr=function(a){if(a.k===this){tq("aml");try{var b=this.fn(),c=a.j}catch(d){this.de(d);return}this.g.listen(c,"companionBackfill",u(this.tB,this,c));this.g.listen(c,"loaded",u(this.vB,this,c));this.g.listen(c,"adError",u(this.uB,this,c));this.g.listen(c,"allAdsCompleted",ca);this.g.listen(c,"contentPauseRequested",ca);this.g.listen(c,"contentResumeRequested",ca);a.j.Zc(new BZ(this.ga.k),{},b);c=a.j;try{c.init("normal")}catch(e){c.destroy(),this.de(e)}}};
f.vB=function(a,b){this.g.removeAll();var c=b.getAd(),d=wT(c),e=this.k,g=KZ(e);g.ad_man=d?"instream":"overlay";JZ(e.b,12,g);e=a.getMediaUrl();switch(d?this.kh(a,c,e):this.Te(a,c)){case 0:F_(this.B,this.Il,this.b);break;case 1:a.destroy();this.Ge(Error("Unable to create a display state."));break;case 2:c=this.k;z_(c.b,21,KZ(c));a.destroy();this.Ge(Error("Fallback to next ad."));break;default:a.destroy()}};f.uB=function(a,b){this.g.removeAll();a.destroy();this.de(b.j)};
f.kr=function(a){var b=a.j;"adLoadError"==b.j&&a.k===this&&this.de(b)};f.tB=function(){NZ()};f.kh=function(a,b,c){D_(this,GT(b));var d;this.ga.ma.T?d=new m_(this.De(),this.ga,a,yT(b)):d=new d_(this.De(),this.ga,a,c,yT(b));C_(this,d);return 0};f.Te=function(a,b){D_(this,GT(b));C_(this,new v_(this.De(),this.ga,a));return 0};f.de=function(a){if(a){var b=this.k,c=KZ(b);a&&DZ(a,c);z_(b.b,32,c);this.Ge(a)}};f.Ge=function(){G_(this.B)};
f.J=function(){this.o&&(this.o.Fa("adsManagerLoaded",this.lr,!1,this),this.o.Fa("adError",this.kr,!1,this));this.F.removeAll();this.g.removeAll();y_.G.J.call(this)};f.Cj=function(a,b){try{b.location=yZ(),b.mh=a.g.A,gX(a.b,b,this),tq("ra")}catch(c){this.de(c)}};function H_(a,b){this.b=a;this.g=b};function I_(a){QZ.call(this,a,2,3,null);this.k=this.o=0}w(I_,QZ);I_.prototype.show=function(){var a=q("yt.www.watch.ads.loadAfc");a&&a();this.H("adEnd",this);this.o=Se(u(this.B,this),1E3)};I_.prototype.J=function(){J_(this);I_.G.J.call(this)};function J_(a){a.o&&(Te(a.o),a.k=0)}I_.prototype.B=function(){var a=q("yt.www.watch.ads.isAfcAdVisible");this.k++;var b={};b.at=this.A();10<=this.k||!a?(J_(this),this.H("AD_LOGGING_EVENT",2,b)):a()&&(J_(this),this.H("AD_LOGGING_EVENT",3,b))};function K_(a,b,c){y_.call(this,2,a,b,c);this.A=new H_(this.ga.ma,this.ga.R());MZ()}w(K_,y_);K_.prototype.fn=function(){var a=K_.G.fn.call(this);a.Is=0==this.M;a.XC=w_(this.ga)?a.Is:!0;return a};
K_.prototype.ag=function(){var a=this.A,b=this.j,c=E_(this),d={},e;if(a.b.cq&&(e=4==b&&a.b.pa?a.b.pa:a.b.qf)){0==e.lastIndexOf("http:",0)&&(e=e.substr(5));bc(d,vi(e));var g=e.indexOf("?");-1!=g&&(e=e.substring(0,g+1))}e||(e="//googleads.g.doubleclick.net/pagead/ads?",d.eid=a.b.ka,d.scs=a.b.Xj,d.client=a.b.Zj,d.description_url=a.b.wa,d.loeid=a.b.Yj,d.cust_gender=a.b.mf,d.host=a.b.host,d.hl=a.g.A,d.max_ad_duration=a.b.qd,a.b.of&&(d.adtest="on"),isNaN(a.b.qb)||(d.cust_age=a.b.qb),isNaN(a.b.Ca)||(d.hostTierId=
a.b.Ca),a.b.gb&&(d.yt_pt=a.b.gb),a.b.bc&&(d.video_cpm=a.b.bc),a.b.L&&(d.as_dbp=a.b.L),d.ytdevice=a.b.nb,d.ad_type=GZ(b),0<(b&3)?a.b.Uc&&(d.channel=a.b.Uc.join("+")):b&4&&a.b.hb&&(d.channel=a.b.hb.join("+")),a.b.cb&&(d.lsv=1),a.b.xb&&(d.tfcd=1));d.videoad_start_delay=c;d.url="embedded"==a.g.$&&a.g.g?a.g.g:a.b.wa;var a=d,b={},h;for(h in a)ga.call(void 0,a[h])&&(b[h]=a[h]);return e+ti(b,"&")};
K_.prototype.Te=function(a,b){if(this.ga.ma.g)return 1;0==this.b&&(B_(this),JZ(this.ga,1));return K_.G.Te.call(this,a,b)};K_.prototype.Ge=function(a){var b=this.ga.ma;b.g?K_.G.Ge.call(this,a):b.Ia||this.j&4?(C_(this,new I_(this.ga)),F_(this.B,this.Il,this.b)):K_.G.Ge.call(this,a)};function L_(a,b){if(a){this.Ws=a;this.Rs=b;var c,d=this.Ws,e=d.indexOf(";sz=");c=si(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{FD:d[0],GD:d[1],HD:c})this.Qs=c.FD,this.Ss=c.GD,this.Ts=c.HD}}f=L_.prototype;f.Ws="";f.Qs="";f.Rs=!1;f.Ln="";f.Ss="";f.Ts=null;
f.vj=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=$b(this.Ts);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.Rs&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.Ln||(this.Ln=Math.floor(999999999*Math.random()).toString());
k.ord=this.Ln;d&&d.length&&"sz"in k&&delete k.sz;e=ti(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.Qs,"pfadx",this.Ss,";",e,"?"].join("")};function M_(a){this.b=a?a:""}M_.prototype.vj=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.b),g=e.b,h=g.get("scp",""),c=(h?h+"&":"")+("pos="+c);g.set("scp",c);g.set("vpos",d);return e.toString()}return this.b};function N_(a,b){v_.call(this,1,a,b)}w(N_,v_);N_.prototype.dm=function(){};N_.prototype.A=function(){return"1_3"};function O_(a,b,c){y_.call(this,1,a,b,c);a=this.ga.ma;this.L=a.di?new M_(a.la):new L_(a.la,a.Ba)}w(O_,y_);O_.prototype.ag=function(){return this.L.vj(this.b,this.j)};
O_.prototype.Te=function(a,b){D_(this,GT(b));var c=null!=b.g?b.g.L:{};if(FZ(c,y_.b))return 1==this.j||w_(this.ga)||OZ(),a.sendImpressionUrls(),this.ga.ma.ik?(C_(this,new I_(this.ga)),0):2;if(FZ(c,"blockAllAds"))return a.sendImpressionUrls(),C_(this,new N_(this.ga,a)),0;if(FZ(c,"hideMaster"))return C_(this,new N_(this.ga,a)),0;if(this.ga.ma.g)return 1;C_(this,new v_(this.De(),this.ga,a));return 0};function P_(a,b,c,d){O_.call(this,a,b,c|d);this.D=c;this.C=d;this.A=null;MZ()}w(P_,O_);var Q_={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=P_.prototype;f.ag=function(){if(this.ga.ma.di){var a=new M_(this.ga.ma.N);return a.vj(this.b,this.D)}a=new L_(this.ga.ma.N,this.ga.ma.Ba);return a.vj(this.b,this.D)};f.Cj=function(a,b){if(this.C){b.youTubeAdType=GZ(this.C);var c=this.ga.ma.ka;c&&(b.youTubeExperimentIds=c);b.youTubeVideoAdStartDelay=E_(this)}P_.G.Cj.call(this,a,b)};
f.kh=function(a,b,c){R_(this,a);return 1!=this.A&&2!=this.A?1:P_.G.kh.call(this,a,b,c)};f.Te=function(a,b){R_(this,a);switch(this.A){case 1:return P_.G.Te.call(this,a,b);case 2:var c;this.ga.ma.g?c=1:(0==this.b&&(B_(this),JZ(this.ga,1)),D_(this,GT(b)),C_(this,new v_(2,this.ga,a)),c=0);return c;default:return 1}};f.De=function(){return this.A||0};function R_(a,b){var c=JT(b.getCurrentAd()),c=E(c)?BT(b.getCurrentAd()):c[0],c=Q_[c.toUpperCase()];a.A=c?c:0};function S_(a,b){var c=b.ma;this.A=c.nf;var d=0,c=c.pf.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);y_.call(this,2,a,b,d)}w(S_,y_);S_.g="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";S_.j="43";
S_.b=function(a){var b=new Wu;Fi(a,{format:"RAW",method:"GET",timeout:5E3,jh:function(){b.bh(Error(a+" timed out"))},onError:function(c){b.bh(Error("Problem loading "+a+" with status code "+c.status))},onSuccess:function(a){b.Os(a)}});return b};S_.prototype.ag=function(){return""};
S_.prototype.Cj=function(a,b){var c=this.j;c&1||c&4||c&8?this.A?c&8?PZ(this.A):("goo.gl"==wi(this.A)?(c=S_.b(S_.g+this.A),bv(c,function(a){a=mf(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",S_.j);return S_.b(a.toString())},this)):c=S_.b(this.A),bv(c,function(c){b.adsResponse=c.responseText;b.location=yZ();b.mh=a.g.A;gX(a.b,b,this)},this),cv(c,null,this.de,this)):this.de(Error("Invalid empty URL")):
this.de(Error("Invalid request type: "+c))};function T_(a,b,c){this.b=a;this.j=b;this.g=ih||jh?"html5_ios":kh?"html5_android":kr()?"html5_ps3":"leanback"==c?"html5_tv_leanback":"html5"};function U_(a,b,c){y_.call(this,4,a,b,c);this.A=new T_(this.ga.ma,ct(this.ga.app).Oa,this.ga.R().$)}w(U_,y_);
U_.prototype.ag=function(){var a;a=this.A;if(a.b.aa&&a.b.ac){var b="10613:10613_youtube_"+a.g,c="youtube_watch_"+a.g,d="10613:10613_youtube_"+a.g.split("_")[0],e={nw:"10613"};e.asnw=a.b.aa;e.ssnw=a.b.aa;e.caid=a.b.ac;e.prof=b;e.vdur=a.j;e.csid=c;e.resp="vast2";e.crtp="vast2s";e.flag="+emcr";b={};isNaN(a.b.xa)||(b._fw_d_001=a.b.xa);a.b.za&&(b._fw_d_002=a.b.za);a.b.fb&&(b["_fwu:10613:lang"]=a.b.fb);a.b.L&&(b._fw_dbp=a.b.L);b._fw_yt_type=a.b.B?"short":"long";var c={ptgt:"a",slid:"preroll"},g="";a.b.j&&
!a.b.b?g=";linear-skippable":!a.b.j&&a.b.b&&(g=";video");c.slau="preroll"+g;c.w="480";c.h="360";c.tpos="0";c.tpcl="preroll";c.envp=d;c.cd="1440,900";a="//2975c.v.fwmrm.net/ad/g/1?"+ti(e,"&")+";"+ti(b,"&")+";"+ti(c,"&")}else a="";return a};U_.prototype.kh=function(a,b){return 0!=this.b?1:U_.G.kh.call(this,a,b,null)};U_.prototype.Te=function(a,b){return FZ(null!=b.g?b.g.L:{},y_.b)?(this.B.k=a,2):1};function V_(a,b,c){y_.call(this,13,a,b,c)}w(V_,y_);var W_=[{an:4,size:"480x70",Hr:"300x250"},{an:1,size:"480x360",Hr:"300x60"}];
V_.prototype.ag=function(){var a=new J(this.ga.ma.Md,!0),b=this.j,c=W_.filter(function(a){return(b&a.an)==a.an}),d=c.map(function(a){return a.size}).join("|");K(a,"sz",d);c=c.map(function(a){return a.Hr}).join(",");K(a,"ciu_szs",c);c=4==(this.j&4);1==(this.j&1)?(c||K(a,"vad_type","linear"),c="midroll",0==this.b?c="preroll":-1==this.b&&(c="postroll"),K(a,"vpos",c)):c&&K(a,"vad_type","nonlinear");return a.toString()};function X_(a,b,c){this.j=a;this.b=b;this.g=c||0}X_.prototype.create=function(a,b){switch(this.j){case 1:return new K_(a,b,this.b);case 2:return new O_(a,b,this.b);case 3:return new P_(a,b,this.b,this.g);case 5:return new U_(a,b,this.b);case 4:return new S_(a,b);case 6:return new V_(a,b,this.b);default:return null}};function Y_(a){return 0<((a.b|a.g)&3)};function Z_(a,b,c,d){Zi.call(this);this.ta=b;this.j=a;this.g=c;this.o=d;this.k=this.b=null}w(Z_,Zi);f=Z_.prototype;f.Pl=!0;f.Be=!1;f.isVisible=!0;f.Oe="unloaded";f.Nm=!1;function $_(a){return 0==a.g?a0(a)&&b0(a)?-2147483648:0:-1==a.g||-2==a.g?2147483647:1E3*a.g}function a0(a){return"loaded"==a.Oe||"error"==a.Oe}function b0(a){if(!a0(a))throw Error("Preroll status is undefined before ad load.");return 0==a.g&&a.Be}
function G_(a){a.Oe="loading";0==a.g&&!hb(a.o,Y_)&&hu(a.j);var b=a.o.shift();b?(0==a.g&&c0(a.j,"nl"),b=b.create(a,a.j),S(a,b),b.load()):(JZ(a.j,2,d0(a,{})),e0(a,!1),a.Oe="error",f0(a))}f.getId=function(){return this.ta};function g0(a){a.b&&(a.b.ja("adEnd",a.Kr,a),a.b.ja("adError",a.Lr,a),a.b.ja("AD_LOGGING_EVENT",a.Mr,a),a.b.ja("select",a.Jr,a))}
function F_(a,b,c){a.b=b;a.g=c;S(a,a.b);0==a.ta&&(a.j.A.at=a.b.A());a.b instanceof d_||a.b instanceof m_?a.Be=!0:a.b instanceof I_?a.isVisible=!1:a.b instanceof N_&&(a.isVisible=!1);a.Oe="loaded";f0(a)}function f0(a){a.H("adBreakComplete",a)}
f.show=function(){this.Nm?this.b instanceof v_&&x_(this.b,"normal"):(this.Nm=!0,(this.b instanceof d_||this.b instanceof m_)&&c0(this.j,"bs"),this.b.subscribe("adEnd",this.Kr,this),this.b.subscribe("adError",this.Lr,this),this.b.subscribe("AD_LOGGING_EVENT",this.Mr,this),this.b.subscribe("select",this.Jr,this),this.b.show(),e0(this,!0))};function e0(a,b){a.k&&(a.k.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.k=null)}
f.Kr=function(){if(this.Be){g0(this);var a=this.j;if(a.ma.Tj&&!a.Gk){var b=a.R().rb;kf(b+"mac_204?action_fcts=1");ej("CLAD","tlip="+v());a.Gk=!0}}f0(this)};f.Lr=function(a){if(a){var b={};DZ(a,b);d0(this,b);z_(this.j,32,b)}g0(this);f0(this)};f.Mr=function(a,b){d0(this,b);JZ(this.j,a,b)};f.Jr=function(){this.Pl=!1};function d0(a,b){b.sst=a.g;b.sidx=0}f.J=function(){g0(this);this.k=this.b=null;Z_.G.J.call(this)};function h0(a){this.Pu=a}function i0(a){try{var b=OC(a).getElementsByTagName("AdBreak"),c=A(b,function(a){a=a.getAttribute("time");return Za(a)});return new h0(c)}catch(d){return new h0([0])}};function j0(a){this.b=a};function k0(a,b){this.P=a;this.Ha=this.P.Pb;this.A="leanback"==this.P.$;this.g=this.Ha||this.A;var c=iH(a,"927619"),c=this.A&&c,d=this.Ha&&iH(this.P,"947202");this.M=!this.g||d;this.T=a.Tb&&(!this.g||c)||d;this.cq=iH(a,"906369");this.apply(b)}var l0={tE:"m",oE:"f"};f=k0.prototype;
f.apply=function(a){var b=CZ(a.instream),c=CZ(a.trueview),d=CZ(a.aftv);this.da=a.ad_slots;this.ca=a.ad_breaks;this.kf=a.ad_flags||0;this.qb=parseInt(a.cust_age,10);this.ka=a.cafe_experiment_id;var e=parseInt(a.cust_gender,10);isNaN(e)||(this.mf=e);this.la=a.ad_tag;this.of=!!a.adtest;this.qf=a.afv_ad_tag;this.pa=a.afv_invideo_ad_tag;this.xa=parseInt(a.ad_age,10);this.jf=a.cid;this.wa=a.ad_eurl;this.N=a.dynamic_allocation_ad_tag;this.V=a.excluded_ads;this.pf=a.force_ad_type;this.nf=a.force_ad_url;this.za=
Tb(l0,function(b){return b==a.ad_gender});this.L=a.dbp;this.ik=CZ(a.afc_rm_fallback);this.Ba=!!a.mpu;this.host=a.ad_host;this.Ca=parseInt(a.ad_host_tier,10);this.D=CZ(a.afv)&&!this.g;this.k=d&&c;this.o=d&&b&&!CZ(a.no_afv_instream);this.F=CZ(a.dclk);this.di=CZ(a.gpt_migration);this.cb=1==a.livestream;this.Wa=CZ(a.forced_ad)&&!this.g;this.O=1==parseInt(a.tpas_ad_type_id,10);this.Nh=!!a.fqsf;this.b=b;this.I=CZ(a.invideo)&&!this.g;this.U=CZ(a.mpu)&&!this.g;this.Tj=CZ(a.shortform);this.B=CZ(a.sffb);this.Qh=
CZ(a.xfp);this.Md=a.xfp_tag;this.Xj="1"==a.as_launched_in_country;this.oo=!this.g&&!this.O;this.j=c;b=a.ad_channel_code_instream;this.Uc=s(b)?b.split(","):[];this.fb=a.ad_language_iso639_2;this.Yj=a.loeid;b=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(b)&&(b=2E3);this.ak=b;b=parseInt(a.afv_instream_max,10);isNaN(b)&&(b=15E3);this.qd=b;this.C=parseInt(a.midroll_freqcap,10);isNaN(this.C)&&(this.C=-1);b=a.ad_channel_code_overlay;this.hb=s(b)?b.split(","):[];this.gb=a.yt_pt;this.Zj=a.ad_video_pub_id;
"boolean"==typeof a.show_content_thumbnail&&(this.qo=a.show_content_thumbnail);this.xb=CZ(a.tag_for_child_directed);this.hf=a.server_prefetched_vast;this.Vj=a.surveyCreativeData;this.bc=parseInt(a.afv_video_min_cpm,10);this.Ia=d&&this.B&&!this.D;this.lf=this.D||this.Ia;this.nb=parseInt(a.ad_device,10);this.ac=a.tpas_video_id;this.aa=a.tpas_partner_id;this.Ra=m0(this)};
function m0(a){if(x(a.N)||!a.T)return!1;var b=(a.b||a.j)&&a.F;a.B&&a.F&&(b=b||a.I||a.U);if(!b)return!1;b=a.k||a.o;if(!(b||a.B&&a.D))return!1;var c=a.N.length+330+(a.di?25:102);window.document.referrer&&(c+=Aa("ref="+window.document.referrer).length);b||(c+=41);return c<=a.ak}f.oo=!0;f.ik=!1;f.di=!1;f.Qh=!1;f.qo=!0;f.cq=!1;function n0(a,b,c){this.b=a;this.A=b;this.j=c;this.o=this.g=-1;this.j&&0<this.b.ma.C&&this.b.subscribe("endseeking",this.k,this)}w(n0,Gh);function o0(a,b){p0(a);0<b&&(a.o=L(u(a.k,a),1E3*b))}function p0(a){-1!=a.o&&(N(a.o),a.o=-1)}
n0.prototype.k=function(){var a=this.b.ma.C;if(this.j&&!(0>=a)){var b=this.b.b.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Lb(this.A.o,function(a){if(a.isVisible&&!(0>=q0(this,a))){var g;g=a.getId();g=this.A.k[g];if(q0(this,a)>b){var l=!r0(this,a);l!=g.Wd&&(g.Wd=l,c.push(g));l||(g=q0(this,a)-b,g<e&&(e=g,d=a))}else g.Wd||(g.Wd=!0,c.push(g))}},this);0<c.length&&s0(this.b,c);if(d){var g=0;0<this.g&&(g=v()/1E3-this.g);o0(this,a-g-e+2)}else p0(this)}};
function r0(a,b){if(!a.j||!(0<b.g)&&-1!=b.g)return!1;var c=a.b.ma.C;if(0>=c||0>=a.g)return!1;var d=v()/1E3,e=q0(a,b)-a.b.b.getCurrentTime();0<e&&(d+=e);return d-a.g<=c}function q0(a,b){return-1==b.g?a.b.b.getVideoData().Oa:b.g}n0.prototype.J=function(){p0(this)};function t0(a,b){this.g=b;this.j=[];this.o={};this.k={};this.b=a;var c=!a.ma.cb&&hb(this.g,function(a){return 0<a.g||-1==a.g});this.A=new n0(this.b,this,c)}w(t0,Gh);f=t0.prototype;f.Bd=null;function u0(a){a.j.length||(a.j=gb(a.g,function(a){return"unloaded"==a.Oe}),0==a.j.length?hu(a.b):(null===B(a.j,function(a){return 0==a.g})&&hu(a.b),v0(a)))}function v0(a){if(a.j.length){var b=a.j.shift();b.subscribe("adBreakComplete",a.hn,a);G_(b)}}
f.hn=function(a){a.ja("adBreakComplete",this.hn,this);L(u(this.pD,this,a),0)};f.pD=function(a){var b=eb(this.g,a),c=this.g[b+1],b=this.g[b-1],d=2147483646;-2==a.g||-1==a.g?d=2147483647:c&&2147483647!=c.g&&(d=$_(c)-1);0==a.ta&&(c0(this.b,"bl"),b0(a)||c0(this.b,"fb"));if(c="loaded"!=a.Oe||0==a.ta&&b0(a)&&c&&this.b.b.getCurrentTime()>c.g){if(b&&a0(b)){var e=$_(b);e>d&&(d=e);w0(this,b);x0(this,b,d)}}else this.o[a.getId()]=a,x0(this,a,d);hu(this.b);c&&this.yg(a);Ob(this.o)==this.g.length&&this.A.k();v0(this)};
function x0(a,b,c){var d=$_(b);if(!isNaN(d)){var e={};e.priority=-2!=b.g?2:3;e.id=String(b.getId());e.visible=b.isVisible;c=new Wt(d,c,e);a.k[b.getId()]=c;a.b.Hf(c)}}function w0(a,b){a.k[b.getId()]&&(a.b.sB(a.k[b.getId()]),delete a.k[b.getId()])}f.yg=function(a){a.ja("adBreakComplete",this.hn,this);this.Bd&&a==this.Bd&&(this.Bd=null);w0(this,a);pb(this.g,a);delete this.o[a.getId()];Ih(a)};
f.Xz=function(a){if(a.Be){if(-1!=a.g&&a.Pl){var b=this.b;y0(b);ru(b)}else b0(a)&&!a.Pl?(b=this.b,y0(b),ru(b)):(y0(this.b),su(this.b,!1));this.yg(a)}else a.isVisible||this.yg(a);a=this.A;a.j&&0<a.b.ma.C&&(a.g=v()/1E3,a.k())};f.J=function(){Ih(this.A);z(this.g,this.yg,this);t0.G.J.call(this)};function z0(a,b){this.B=a;this.W=b;this.C=v();this.b=a.ma;this.k={};this.A=new SZ(a);var c=[];this.b.O&&this.b.b&&c.push("4_2");this.b.Qh&&(this.b.b&&c.push("13_2"),this.b.I&&c.push("13_1"));this.b.F&&(this.b.b&&c.push("1_2"),this.b.j&&c.push("1_2_1"),this.b.I&&c.push("1_1"),this.b.U&&c.push("1_3"));this.b.k&&c.push("2_2_1");this.b.o&&c.push("2_2");this.b.D&&c.push("2_1");(this.b.lf||this.b.ik)&&c.push("2_3");this.j=c.join(",");this.g="";this.k.allowed=this.j;(c=this.b.V)&&(this.k.ex_ads=c)}
z0.prototype.o=0;function A0(a){DK.call(this,a);QO.g=!0;QO.b=!0;QO.o="osd-id";QO.k=!0;this.k=null;this.B={};this.A={at:"0"};this.g=new jH(0,this.b);ot(this.b,this.g.K());this.j=null;this.o=-1}w(A0,DK);f=A0.prototype;f.ua="ad";f.hc="ad";f.we=null;f.ic=null;f.ma=null;f.Gk=!1;f.yl=!1;f.Bk=null;A0.Ja=function(a){return!!a.Eb.getVideoData().ga};f=A0.prototype;f.Ja=function(){return A0.Ja(this.app)};
f.create=function(){A0.G.create.call(this);c0(this,"i");this.ma=new k0(this.R(),this.b.getVideoData().k||{});this.we=new z0(this,this.b);this.Gk=!1;t:if(!this.Bk){var a=this.ma.M?void 0:nH(this.g);if(this.ma.T){var b=new CK(this.app,2),c=kH(this.g);b.j||(b.j=Zb(b.k),b.j.addEventListener=u(b.Nu,b),b.j.removeEventListener=u(b.Ou,b));this.k=new bQ(c,void 0,a,b.j)}else{b=j_(this,!1);if(!b)break t;this.k=new bQ(kH(this.g),b,a,void 0)}a=this.k;b=a.g;null!=b&&(b.style.right=0,b.style.left=0,b.style.bottom=
0,b.style.top=0);null!=a.o&&(a=a.o,a.eb.width="100%",a.eb.height="100%");this.Bk=new zZ(this.k)}a=new j0(this);t:{b=[];try{var d=a.b.ma,e;if(d.oo){var g;if(d.ca)g=i0(d.ca);else{var h;if(d.da){var k=A(d.da.split(","),Za);h=new h0(k)}else h=new h0([0]);g=h}e=g}else e=new h0([0]);for(var l=e.Pu,d=0;d<l.length;d++){var p=a.b;e=d;var r=l[d],t=a.b,y;if(t.ma.B){g=[];var D=t.ma;if(D.Wa)g.push(new X_(4,0));else{D.O&&(D.b||D.j)&&g.push(new X_(5,1));D.Qh&&(h=0,D.b&&(h|=1),D.I&&(h|=4),g.push(new X_(6,h)));h=
0;D.F&&(D.b&&(h|=1),D.j&&(h|=2),D.I&&(h|=4),D.U&&(h|=8));k=0;if(D.o||D.k)D.o&&(k|=1),D.k&&(k|=2);c=0;D.D&&(c=4);k||(k=c,c=0);D.Ra&&h&&(k||c)?g.push(new X_(3,h,k)):(h&&g.push(new X_(2,h)),k&&g.push(new X_(1,k)));c&&g.push(new X_(1,c))}}else{g=[];var M=t.ma;if(M.Wa)g.push(new X_(4,0));else{M.O&&M.b&&g.push(new X_(5,1));M.Qh&&M.b&&g.push(new X_(6,1));h=0;M.F&&(M.b&&(h|=1),M.j&&(h|=2));k=0;if(M.o||M.k)M.o&&(k|=1),M.k&&(k|=2);M.Ra&&h&&k?g.push(new X_(3,h,k)):(h&&g.push(new X_(2,h)),k&&g.push(new X_(1,
k)))}}y=g;var ea=new Z_(p,e,r,y);b.push(ea)}}catch(jb){}finally{break t}}l=b;c0(this,"bd");this.ic=new t0(this,l);u0(this.ic);l={};l.allowed=this.we.j;lu(this,{},l)};f.destroy=function(){this.yl&&y0(this);if(this.j){var a=this.app,b=this.j;r_(a);b!=a.j&&o_(a,a.j)}Kh(this.ic,this.j);this.we=this.j=this.ic=null;lH(this.g);LZ=!1;A0.G.destroy.call(this)};f.R=function(){return this.app.R()};f.isFullscreen=function(){return this.b.isFullscreen()||this.ma.A};
function JZ(a,b,c){a=a.we;c=c||{};var d=(v()-a.C)/1E3;c.art=d;d=a.B.R();d.B&&(c.feature=d.ca);c.ad_flags=a.b.kf;var e=a.b.jf;e&&(c.cid=e);c.mt=a.W.getCurrentTime();(d=TK(d))&&(c.lact=d);(d=a.W.ug())&&(c.len=d);a.b.Nh&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.g=c.at;b=a.A;t:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break t}a=c&&c.ad_event?UZ(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var g;c.at&&(g=c.at);var h;c.sst&&(h=c.sst);"2_1"==g&&
10==h&&(c.sst=0);g={};g.device=b.b.ma.nb;g.ns=1;g.sdkv="h.3.0";g.ver="2.0";for(var k in c)switch(h=g,a=k,d=c[k],e=c,a){case "at":h.format=d;e.skip&&(h.format+="_1");break;case "sst":0==d?h.break_type=1:-1==d||-2==AZ?h.break_type=3:(h.break_type=2,h.m_pos=d);break;case "trsp":h.slot_pos=d;break;case "ad_id":case "ad_v":case "ad_sys":h[a]=d;break;case "ad_len":h[a]=Math.round(1E3*d);break;case "ad_error":h.error_code=TZ(d);break;case "error_code":h.ima_error=d;case "error_message":h.error_msg=d;break;
case "ad_event":h.event=UZ(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(h.i_x=a[0],h.i_y=a[1])}k=n_(b.b);c=ct(b.b.app);g.cpn=c.Da;g.content_v=c.videoId;g.mt=Math.round(1E3*k.getCurrentTime());g.ei=c.A;g.lact=TK(b.b.R());k=$Z(b.b);g.p_w=k.width;g.p_h=k.height;g.rt=(new Date).getTime();c=Hd(g);if("undefined"==typeof c)throw Error("Keys are undefined");k=new he(null,0,void 0);g=Gd(g);for(h=0;h<c.length;h++)a=c[h],d=g[h],ha(d)?te(k,a,d):k.add(a,d);b=b.b.R().rb+"api/stats/ads";b=new J(b);ee(b,k);
kf(b.toString())}}function z_(a,b,c){c=c||{};c.ad_error=b;JZ(a,7,c)}f.$g=function(){var a;if(this.we){a=this.we;var b={allowed:a.j};a.b.V&&(b.ex_ad=a.b.V);a.g&&(b.at=a.g);a=b}else a=A0.G.$g.call(this);return a};function j_(a,b){var c;if(b){c=a.g;var d=oH(c);c.W.R().Tb||hd(d)||kH(c).appendChild(d);c=d}else c=a.g,c=c.W.R().Tb?c.W.app.g.b:oH(c);return c}function n_(a){if(!a.j){var b=new LK(a.R().j);b.$="adunit";b.xc=!0;b.gi=a.app.g.element;var c=j_(a,!1);b.Pa=c;a.j=new $M(b,2)}return a.j}
function $Z(a){return a.ma.A?(a=k_(a),new wf(0,0,a.width,a.height)):Zf(pt(a.b))}function k_(a){return a.app.g.ws()}function y0(a){lH(a.g);a.yl=!1;qu(a);pu(a,["seek"]);a.R().Rd&&pu(a,["audio"])}f.getAdState=function(){return this.o};function l_(a,b){switch(b){case 1:a.o=1;a.H("publish_external_event","onAdStart");break;case 0:a.o=0,a.H("publish_external_event","onAdEnd")}}
function f_(a,b,c,d){d&&a.H("publish_external_event","onAdInfoChange",d);a.H("publish_external_event","onAdStateChange",b,j_(a,!1),c)}
f.Ec=function(a){A0.G.Ec.call(this,a);var b=parseInt(a.getId(),10);this.ic&&!isNaN(b)&&(a=this.ic,n(b)&&(b=a.o[b]))&&(a.Bd==b&&!b.Be&&b.isVisible?b.show():(a.Bd&&a.yg(a.Bd),r0(a.A,b)?(a.Bd=null,b=a.k[b.getId()],b.Wd||(b.Wd=!0,s0(a.b,[b]))):(a.Bd=b,b.subscribe("adBreakComplete",a.Xz,a),b.Be&&(a=a.b,a.yl=!0,a.H("command_redirect_controls",a,["play_pause"],void 0),ou(a,["seek"]),a.R().Rd&&ou(a,["audio"]),a.pauseVideo()),b.show())))};
f.ld=function(a){A0.G.ld.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.b.getCurrentTime();this.ic&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(a=this.ic,(b=a.o[b])&&a.Bd==b&&!b.Be&&b.isVisible&&b.Nm&&b.b instanceof v_&&x_(b.b,"fullscreen"))};function c0(a,b){var c=b;"nl"==b&&(c=a.we,c.o++,c=c.o.toString());a.B[c]=v();"bs"!=c&&"fb"!=c||lu(a,a.B,a.A)}function s0(a,b){a.H("command_update_cuerange_markers",b,a.b.getPlayerType())}
function w_(a){return Boolean(a.ma.B&&a.ic&&1<a.ic.g.length)}f.ke=function(a){this.H(a)};f.Fj=function(a){switch(a){case "breaks":return this.ic?this.ic.g.length:0}};f.Bj=function(){var a=[];this.R().zb()&&a.push("breaks");return a};function B0(a,b,c){var d=["html5-center-transform","html5-center-overlay"];pE.call(this,["div","html5-remote-module",["div","ytp-remote-display-thumbnail","{{thumbnail}}"],["div",d.concat("ytp-remote-display-controls"),["div",d.concat("ytp-remote-display-error"),["div","ytp-remote-display-error-icon"],["p","ytp-remote-display-error-text","{{error}}"],["div","","{{reconnectbutton}}"]],["div","","{{loadingicon}}"]],["div","ytp-remote-display-status",["div","ytp-remote-display-status-icon"],["div","ytp-remote-display-status-text",
"{{statustext}}"],["div","ytp-remote-display-status-receiver","{{receiver}}"]],["div","ytp-remote-display-watch-while",["div","","{{maximizebutton}}"]]]);this.j=c;this.g=this.b=null;C0(this,a,b)}w(B0,pE);function D0(a){E0(a,Y(0,"YTP_MDX_STATUS_CONNECTING"));F0(a,2)}function G0(a,b){E0(a,Y(0,"YTP_MDX_STATUS_ERROR"));Av(a.template,"error",b);F0(a,0)}function F0(a,b){var c=a.template.b["ytp-remote-display-error"];zx(c);a.g.hide();a.b.hide();switch(b){case 0:yx(c);break;case 2:a.g.show()}}
function C0(a,b,c){var d=new KE(b.b.R().Pb);d.show(b.b.getVideoData());S(a,d);a.g=new JE;O(a.g.element,"html5-center-overlay");O(a.g.element,"html5-center-transform");S(a,a.g);a.b=new EA(a.j,"ytp-button-remote-reconnect");a.b.oa(Y(0,"YTP_MDX_PLAYER_RECONNECT_BUTTON"));S(a,a.b);b=new EA(a.j,"ytp-button-remote-maximize");b.oa(["div",["html5-center-transform","html5-center-overlay","ytp-button-remote-maximize-icon"]]);S(a,b);Av(a.template,"reconnectbutton",a.b);Av(a.template,"thumbnail",d);Av(a.template,
"loadingicon",a.g);Av(a.template,"maximizebutton",b);a.b.listen("click",function(){this.H("reconnect-button-click")},a);b.listen("click",function(a){a.stopPropagation();this.H("maximize-button-click")},a);D0(a);Av(a.template,"receiver",c)}function E0(a,b){Av(a.template,"statustext",b)};function H0(a,b,c,d){this.g=a;a.subscribe("onVolumeChange",this.yo,this);d||a.subscribe("onPlaylistUpdate",this.xo,this);this.j=b;b.subscribe("reconnect-button-click",this.Ao,this);b.subscribe("maximize-button-click",this.zo,this);this.b=c;c.subscribe("proxyStateChange",this.Bo,this);c.subscribe("remotePlayerChange",this.Dk,this);c.subscribe("remoteQueueChange",this.Ek,this);this.F=new Ot;this.B=this.A=NaN;this.D=0;this.k={};this.C=new Ok(this.Ju,1E3,this);S(this,this.C);this.I=0;this.o=d;this.o||
(a=oi("yt-player-remoteservice-listid"),b=this.g.b,b.getVideoData().La&&b.getVideoData().La!=a?this.b.Fk(b.getVideoData().videoId,I0(this.g),b.getCurrentTime()):this.b.mi(b.getVideoData().videoId,b.getCurrentTime()),b.jc()?li("yt-player-remoteservice-listid",b.getVideoData().La):pi("yt-player-remoteservice-listid"));(a=this.g.b.ki("captions","track"))&&J0(this,a);this.Ek();this.Dk()}w(H0,Gh);f=H0.prototype;
f.J=function(){K0(this,new Ot);L0(this);M0(this);this.g.ja("onVolumeChange",this.yo,this);this.o||this.g.ja("onPlaylistUpdate",this.xo,this);Jh(this.j)||(this.j.ja("reconnect-button-click",this.Ao,this),this.j.ja("maximize-button-click",this.zo,this));Jh(this.b)||(this.b.ja("proxyStateChange",this.Bo,this),this.b.ja("remotePlayerChange",this.Dk,this),this.b.ja("remoteQueueChange",this.Ek,this));N0(this,this.k);this.b=this.j=this.g=null};
f.NC=function(a,b){2==this.b.b||(O0(this)?this.$B.apply(this,arguments):this.ZB.apply(this,arguments))};function P0(a,b){var c=a.g.b.getVideoData().Oa;a.g.H("command_progress",b,c)}f.ZB=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":Q0(this,this.g.b.getCurrentTime());break;case "control_seek":Q0(this,c[0])}};
f.$B=function(a,b){if(1081==Gm(this.b).b)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":1==Gm(this.b).b?R0(this):S0(this);break;case "control_play":S0(this);break;case "control_pause":R0(this);break;case "control_seek":this.I=c[0];Pk(this.C);break;case "control_subtitles_set_track":J0(this,c[0])}};
f.yo=function(a){if(O0(this)){var b=Math.round(a.volume);a=!!a.muted;var c=Gm(this.b);b==c.volume&&a==c.muted||this.b.setVolume(b,a)}};f.xo=function(){var a=oi("yt-player-remoteservice-listid"),b=this.g.b;b.getVideoData().La!=a&&(this.b.Fk(T0(this),I0(this.g),b.getCurrentTime()),li("yt-player-remoteservice-listid",b.getVideoData().La))};f.Ao=function(){M0(this);this.b.k.reconnect();D0(this.j)};
f.zo=function(){var a=this.g,b={video_id:a.b.getVideoData().videoId},b=new Hr(b),b=vH(a.app.Eb.R(),b,{});ku(a,b)};f.Bo=function(a,b){M0(this);2==b&&this.gr()};
f.Dk=function(){if(O0(this)){L0(this);var a=Gm(this.b);switch(a.b){case 1:U0(this);K0(this,new Ot(8));break;case 3:K0(this,new Ot(1));break;case 0:K0(this,new Ot(2));this.C.stop();var b=this.g.b;(b=Ks(b.app,b.b||1))&&b.rg(!0);P0(this,this.g.b.getVideoData().Oa);break;case 2:K0(this,new Ot(4));P0(this,ym(a));break;case -1:K0(this,new Ot);break;case -1E3:K0(this,new Ot(128))}0==this.D&&(b=this.g.b,(b=Ks(b.app,b.b||1))&&b.rg(!1));this.D=a.b;a=Gm(this.b).j;b=this.k;(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.k=a,N0(this,a));a=Gm(this.b);-1==a.volume||Math.round(this.g.b.Ko())==a.volume&&this.g.b.Lo()==a.muted||(this.g.b.setVolume(a.volume),a.muted?this.g.b.Mo():this.g.b.No())}else K0(this,new Ot)};f.Ek=function(){O0(this)||(P0(this,0),L0(this),K0(this,new Ot))};
function J0(a,b){if(O0(a)){if(b){var c={style:a.g.b.ki("captions","displaySettings")};bc(c,b);a.b.hm(T0(a),c)}else a.b.hm(T0(a),null);a.k=Gm(a.b).j}}function R0(a){a.b.pause();var b=Gm(a.b);P0(a,ym(b));L0(a);K0(a,new Ot(4))}function S0(a){a.b.play();U0(a);K0(a,new Ot(8))}function Q0(a,b){if(a.o){var c=a.g.b.jc();c?Mm(a.b,T0(a),b,c.Ga,a.g.b.getVideoData().La):Mm(a.b,T0(a),b)}else a.b.mi(T0(a),b);K0(a,new Ot(1))}
function N0(a,b){if(b){var c=a.g.b.ki("captions","tracklist",{nq:1}),c=B(c,function(a){return a.languageCode==b.languageCode&&a.name==b.trackName});a.g.b.gp("captions","track",c)}else a.g.b.hp("captions")}f.Ju=function(){var a=this.I;L0(this);P0(this,a);-1==Gm(this.b).b?Q0(this,a):this.b.tr(a);K0(this,new Ot(1))};function O0(a){return wm(Gm(a.b))==T0(a)}function T0(a){return a.g.b.getVideoData().videoId}
function U0(a){L0(a);var b=Gm(a.b);1==b.b&&K0(a,new Ot(8));P0(a,ym(b));a.A=L(u(function(){U0(this)},a),500)}function L0(a){N(a.A);a.A=NaN}f.gr=function(){M0(this);L0(this);var a=this.b.k.getReconnectTimeout();if(2!=this.b.b||isNaN(a))D0(this.j);else{var b=this.j;G0(b,Y(0,"YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:Cv(a/1E3)}));b.b.show();this.B=L(u(this.gr,this),1E3)}};function M0(a){N(a.B);a.B=NaN}
function K0(a,b){M0(a);var c=a.F;a.F=b;var d=a.j;E0(d,Y(0,"YTP_MDX_STATUS_CONNECTED"));F0(d,1);W(b,1)&&(d=a.j,E0(d,Y(0,"YTP_MDX_STATUS_CONNECTED")),F0(d,2));W(b,128)&&G0(a.j,We("YTP_MDX_PLAYER_ERROR"));d=a.g;su(d,W(b,8));d.app.H("presentingplayerstatechange",new ZM(b,c))};function V0(a){DK.call(this,a);this.F=a.g.j;this.A={key:Ri(),name:Y(0,"YTP_MDX_MY_COMPUTER")};this.k=this.j=null;this.I=[];this.g=null;this.B=new CC(this.F,"ytp-remote-button",Y(0,"YTP_MDX_TOOLTIP"),"ytp-remote-button-active");S(this,this.B);this.B.listen("click",this.Hu,this);this.o=new YB(this.F,u(this.Fu,this),u(this.Gu,this));O(this.o.K(),"ytp-drop-down-background");S(this,this.o);this.C=new DA;this.C.b=Y(0,"YTP_MDX_TITLE");this.C.element=this.o;this.C.A=this.ua;S(this,this.C);this.D=!1}
w(V0,DK);var W0=["play_pause","seek"],X0=["captions"];f=V0.prototype;f.ua="remote";f.hc="remote";f.Ja=function(){return this.app.Eb.R().Cg};f.create=function(){V0.G.create.call(this);this.I.push(Rh("yt-remote-connection-change",this.Yq,this));this.Yq();this.H("module_menu_button_add",this.ua,this.B);uu(this,this.C);var a=this.b.app.I;this.o.getSelected()&&this.o.getSelected()!=this.A&&1!=a&&3!=a&&this.load()};f.destroy=function(){Th(this.I);this.I.length=0;Ih(this.g);this.g=null;V0.G.destroy.call(this)};
f.load=function(){if(!this.loaded){V0.G.load.call(this);this.app.Eb.R().rd&&(this.D=!0);MG(this.app,!1);GC(this.B,"ytp-remote-button-active");var a=this.o.getSelected();this.k=new B0(this,a.name,this.F);ot(this.b,this.k.K());this.g&&(a=this.app.Eb.R(),this.j=new H0(this,this.k,this.g,a.b.o||a.b.j));this.b.yk();this.H("command_redirect_controls",this,W0,X0);var b=$n();0!=b&&((a=this.g?wm(Gm(this.g)):null)&&a!=this.b.getVideoData().videoId||L(u(function(){this.H("command_progress",b,void 0)},this),
0))}};f.unload=function(){if(this.loaded){var a=Jn();a&&a.getLoungeToken()||(MG(this.app,this.D),this.D=!1);GC(this.B,"ytp-remote-button");aC(this.o,this.A);qu(this);Kh(this.j,this.k);this.k=this.j=null;V0.G.unload.call(this)}};f.J=function(){this.destroy();Kh(this.j,this.k,this.g);this.g=this.k=this.j=null;V0.G.J.call(this)};f.ke=function(a,b){this.j&&this.j.NC.apply(this.j,arguments)};
function dt(a,b,c){var d=c||a.A;b.unshift(a.A);Y0(a,b);d=B(b,function(a){return a.key==d.key});aC(a.o,d);a.k&&Av(a.k.template,"receiver",d.name)}function I0(a){var b=a.b.jc();if(b){a=[];for(var c=0;c<b.tc;c++)a[c]=ps(b,c).videoId;return a}return[a.b.getVideoData().videoId]}f.Yq=function(){var a=bo();a?(this.g=a,this.load(),this.j||(a=this.app.Eb.R(),this.j=new H0(this,this.k,this.g,a.b.o||a.b.j))):(Ih(this.g),this.g=null,this.unload())};
f.Gu=function(a){wu(this);if(a!=this.o.getSelected())if(aC(this.o,a),a.key==this.A.key)a=this.g?Gm(this.g):null,Vn(),this.unload(),a&&wm(a)==this.b.getVideoData().videoId&&(0<ym(a)&&this.b.Kg(ym(a)),1==a.b&&this.b.Jg());else{var b=0,c="",d=this.b.jc();d&&(b=d.Ga,c=this.b.getVideoData().La);b={videoIds:I0(this),listId:c,videoId:this.b.getVideoData().videoId,index:b,currentTime:this.b.getCurrentTime()};Sn(a,b);this.k&&Av(this.k.template,"receiver",a.name);Ih(this.j);this.j=null;this.load()}};
function Y0(a,b){z(b,function(a){a.toString=function(){return a.key}},a);ZB(a.o,b)}f.Hu=function(a){var b=Hn();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),zj())};f.Fu=function(a){return a.name};function Z0(a,b){this.j=a;this.k=b;this.b=!1}function $0(a,b){var c;if(c=vq("grc",""))uq(""),c=!0;if(c){c=uq("").span;var d=uq("").tick;"grc"in d&&(c[b]=v()-d.grc)}else vq(b,"")||a.g(b)}Z0.prototype.g=function(a){tq(a,void 0,"")};Z0.prototype.info=function(a,b){zq("")[a]=b};
function a1(a){var b=a.j;if(!b.Ck||!("detailpage"==b.$||"leanback"==b.$||"embedded"==b.$&&b.Ph)||a.b)return NaN;a.b=!0;Qe("TIMING_ACTION")||Oe("TIMING_ACTION",a.j.aa);var b=a.k.C,c;for(c in b)tq(c,b[c],"");a=a.k.B;for(var d in a)c=d,b=a[d],zq("")[c]=b;if(d=Ag("visibilityState",document)){a=-1;switch(d){case "hidden":a=0;break;case "visible":a=1;break;case "prerender":a=2;break;case "unloaded":a=3}d=a;zq("").yt_vis=d}zq("").yt_pt="html5";var e;if(vq("_start",""))if(c=uq("").tick,d=uq("").span,b=zq(""),
a=q("yt.timing.reportbuilder_")){if(a=a(c,d,b,""))yq(a),Aq(""),rq();e=NaN}else{a={v:2,s:"youtube",action:Qe("TIMING_ACTION")};var g=Qe("TIMING_INFO")||{},h;for(h in g)b[h]=g[h];h=b.srt;delete b.srt;var k;h||0===h||(k=qq.timing||{},h=Math.max(0,k.responseStart-k.navigationStart),isNaN(h)&&b.pt&&(h=b.pt));if(h||0===h)b.srt=h;b.h5jse&&(g=window.location.protocol+q("ytplayer.config.assets.js"),(g=qq.getEntriesByName?qq.getEntriesByName(g)[0]:null)?b.h5jse=Math.round(b.h5jse-g.responseEnd):delete b.h5jse);
c.aft||(c.aft=c.pbr&&c.pbs>c.pbr?c.pbr:c.pbs?c.pbs:c.vr&&c.cl&&c.cl>c.vr?c.cl:c.vr?c.vr:c.ol);c.vr&&c.gv&&(d.vl=Math.round(c.vr-c.gv));g=c._start;if(!pq){k||(k=qq.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,ka(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&&(c.fpt=l);l=k.redirectEnd-
k.redirectStart;0<l&&(d.rtime_=l);l=k.domainLookupEnd-k.domainLookupStart;0<l&&(d.dns_=l);l=k.connectEnd-k.connectStart;0<l&&(d.tcp_=l);l=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart&&0<l&&(d.stcp_=l);l=k.responseStart-k.requestStart;0<l&&(d.req_=l);l=k.responseEnd-k.responseStart;0<l&&(d.rcv_=l);pq=!0}.001>Math.random()&&xq(d);for(var t in b)"_"!=t.charAt(0)&&(a[t]=b[t]);t={};k=[];for(var y in c)"_"!=y.charAt(0)&&(l=Math.max(Math.round(c[y]-g),0),t[y]=l,k.push(y+"."+l));a.rt=k.join(",");
y={};k=[];for(e in d)"_"!=e.charAt(0)&&(y[e]=d[e],k.push(e+"."+d[e]));a.it=k.join(",");yq(a);(e=q("ytdebug.logTiming"))&&e(a,t,y);Aq("");rq();e=t.aft+(h||0)}else e=NaN;return e}Df("hidden",window.document);var bt={"api.invalidparam":2,auth:150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"html5.missingapi.drm":5};function b1(a,b){Zi.call(this);var c=b;c instanceof Vg||(c=new Vg(c));this.O=c;this.b=new LK(this.O.args||{});S(this,this.b);this.g=new OJ(this);S(this,this.g);this.g.subscribe("templateready",this.Gt,this);this.g.subscribe("resize",this.Mt,this);this.I=1;this.za={};this.T=null;this.D=this.b.Wj?ts():{volume:100,muted:!1};this.gb=this.b.zb()?new jt(this,1):new ws(this,1);S(this,this.gb);this.fb=new nt(this);S(this,this.fb);this.Eb=new nt(this,1);S(this,this.Eb);this.aa=this.k=null;this.ka={};var c=
this.b,d=new eK;bE(c)&&(d.j=!0,d.B=.1);c.b.I&&(d.g=8,d.b=!0,d.j=!0);c.b.O&&(d.g=8,d.j=!0);c.b.za&&(d.k=5,d.C=!0);c.b.la&&(d.A=12500);c.b.pa&&(d.o=.9);this.wa=new UJ(d);c=new $M(this.b,1);d={};d.internalvideodatachange=this.qt;d.liveviewshift=this.At;d.playbackready=this.tt;d.playbackstarted=this.ut;d.statechange=this.vt;d.urlauthexpired=this.Ht;for(var e in d)c.subscribe(e,d[e],this);this.j=c;this.j.ca=this.wa;S(this,this.j);this.hb={beginseeking:this.wt,endseeking:this.zt,internalvideodatachange:this.Ot,
internalvideoformatchange:this.It,progresssync:this.Ft,seekto:this.Nt,onLoadProgress:this.Bt,onVideoProgress:this.Jt,newlicensesession:this.Lt,playbackready:this.Ct,statechange:this.Et,connectionissue:this.xt,heartbeatparams:this.Kt,videoelementevent:this.Pt};this.A=null;this.Ba=this.pa=-1;e=new fK;c=this.fb;e.g!=c&&(gK(e),e.k={},e.g=c);c={};c.loaded=u(this.$n,this);c.unloaded=u(this.ao,this);c.command_pause=c1(this.pauseVideo,this);c.command_play=c1(this.Nd,this);c.command_seek=c1(this.sf,this);
c.command_disable_controls=u(this.mg,this);c.command_enable_controls=u(this.Xh,this);c.command_redirect_controls=u(this.eo,this);c.command_stop_redirect_controls=u(this.Yh,this);c.command_redirected_show_is_playing=u(this.g.hk,this.g);c.command_progress=u(this.gk,this);c.command_add_cuerange=u(this.co,this);c.command_remove_cuerange=u(this.fo,this);c.command_remove_cuerange_all=u(this.bo,this);c.command_preroll_ready=u(this.ho,this);c.command_update_cuerange_markers=u(this.jo,this);c.command_show_dialog=
u(this.fk,this);c.command_clear_video_overlays=u(this.Uh,this);c.command_navigate_to_url=u(this.dk,this);c.command_log=u(this.Zh,this);c.publish_external_event=u(this.Sh,this);c.module_menu_button_add=u(this.Vn,this);c.module_menu_button_remove=u(this.Wn,this);c.module_menu_item_add=u(this.Xn,this);c.module_menu_item_remove=u(this.Yn,this);c.module_menu_show=u(this.Zn,this);c.vss_segment=u(this.Qt,this);e.o=c;this.C=e;S(this,this.C);this.L=new Z0(this.b,this.C);this.F=this.B=null;this.N={};this.U=
null;this.V={};this.ca=null;this.Wa=0;this.Ra=!1;this.P=!0;this.o=null;this.la=1;this.da=this.Ca=null;this.Ha=this.Ia=!1;this.xa=null;this.cb=0;this.nb=R(window,"popstate",u(this.Dt,this),!1);e=new Hr(this.O.args);Xr(e)&&(bN(this.j,e,u(this.ng,this)),"detailpage"==this.b.$&&(c=e.videoId,c=(d=oi("yt-player-restore-playhead"))?d[c]:void 0,c&&(e.Ta=c)),pi("yt-player-restore-playhead"),this.b.Ph&&hN(this.j));$0(this.L,"fs");this.g.initialize(a);PG(this,"init")}w(b1,Zi);b1.g="defaultcontext";b1.b={};
b1.create=function(a,b){try{var c=b1.j(a);if(b1.b[c]){try{b1.b[c].dispose()}catch(d){Ue(d)}b1.b[c]=null}var e=new b1(a,b);Hh(e,function(){b1.b[c]=null});return b1.b[c]=e}catch(g){throw Ue(g),g;}};b1.j=function(a){return s(a)?a:"player"+ma(a)};
function d1(a){a.k=kE.getTag(!0);a.aa=a.k;a.A&&rN(a.A,a.k);Mt(a.k,a.la);a.b.Rd?(a.da&&Ng(a.da),a.da=R(a.k,"volumechange",u(a.gy,a),!1)):a.k.setVolume(a.D.volume,a.D.muted);var b=a.g;b.b=a.k;b.pa=new wf(0,0,0,0);b.b.parentNode||b.g.appendChild(b.b);O(b.b,"video-stream");O(b.b,"html5-main-video");var c=b.app.R();c.Qb&&c.Pd&&b.b.setAttribute("controls",!0);c.pi&&b.b.setAttribute("webkit-playsinline","");b.b.setAttribute("x-webkit-airplay","allow");c.Lk&&(b.za=R(b.b,"click",u(b.b.play,b.b)));a.b.Pa=a.k;
Gt(a.k)}function e1(a){if(a.k){a.da&&(Ng(a.da),a.da=null);a.A&&pH(a.A);var b=a.g;b.b&&(cd(b.b),b.b=null);a.b.Pa=null;kE.releaseTag(a.k);a.k=null}}function mH(a,b){a.b.Tb?(a.U&&(Jf(a.k,a.U.left,a.U.top),Uf(a.k,zf(a.U)),a.U=null),Lt(a.k),pH(a.A),rN(a.A,a.k),Mt(a.k,a.la)):kE.releaseTag(b)}
function o_(a,b){if(a.A!=b){a.A&&(gK(a.C),r_(a));if(b!=a.j){var c=b.getPlayerType();a.ka[c]=b}a.A=b;b.ca=a.wa;a.k&&rN(b,a.k);var c=a.hb,d;for(d in c)b.subscribe(d,c[d],a);f1(a,b,b.getVideoData());b.P.b&&g1(a,"dataloaded",b,b.getVideoData())}}function r_(a){pH(a.A);var b=a.A,c=a.hb,d;for(d in c)b.ja(d,c[d],a);b=a.A;b!=a.j&&(c=b.getPlayerType(),a.ka[c]==b&&delete a.ka[c]);a.A=null}function Ks(a,b){return b?1==b?a.j:a.ka[b]||null:a.A}
function h1(a){var b=a.C,c=[yB.g,GH,Qv,dJ,YD,kJ,oJ,fE,uJ];c.push(fI.b);z(c,b.Iq,b);a.H("videoready",a.getVideoData())}f=b1.prototype;f.tt=function(){i1(this,5)};f.Ct=function(a){6!=this.I&&(j1(this),a=a.getPlayerState(),W(a,8)&&!W(a,2)&&this.Nd())};function gt(a){!a.F&&a.Eb.R().Cg&&(a.F=new V0(a),k1(a,a.F));if(a.F){var b=On();dt(a.F,Hn(),b);var c=a.F;c&&!c.Ac&&c.Ja(a.Eb)&&c.create();b&&a.F.load()}}
function k1(a,b){S(a,b);b.subscribe("loaded",a.$n,a);b.subscribe("unloaded",a.ao,a);b.subscribe("command_pause",c1(a.pauseVideo,a));b.subscribe("command_play",c1(a.Nd,a));b.subscribe("command_seek",c1(a.sf,a));b.subscribe("command_disable_controls",a.mg,a);b.subscribe("command_enable_controls",a.Xh,a);b.subscribe("command_redirect_controls",a.eo,a);b.subscribe("command_stop_redirect_controls",a.Yh,a);b.subscribe("command_redirected_show_is_playing",a.g.hk,a.g);b.subscribe("command_progress",a.gk,
a);b.subscribe("command_add_cuerange",a.co,a);b.subscribe("command_remove_cuerange",a.fo,a);b.subscribe("command_remove_cuerange_all",a.bo,a);b.subscribe("command_update_cuerange_markers",a.jo,a);b.subscribe("command_preroll_ready",a.ho,a);b.subscribe("command_show_dialog",a.fk,a);b.subscribe("command_clear_video_overlays",a.Uh,a);b.subscribe("command_log",a.Zh,a);b.subscribe("command_navigate_to_url",a.dk,a);b.subscribe("publish_external_event",a.Sh,a);b.subscribe("module_menu_button_add",a.Vn,a);
b.subscribe("module_menu_button_remove",a.Wn,a);b.subscribe("module_menu_item_add",a.Xn,a);b.subscribe("module_menu_item_remove",a.Yn,a);b.subscribe("module_menu_show",a.Zn,a);b.subscribe("command_log_timing",a.C.D,a.C)}function ft(a){a&&a.Ac&&a.destroy()}f.Ua=function(a,b){this.H.apply(this,arguments);this.af.apply(this,arguments)};f.Kh=function(a,b){var c=tb(arguments);this.b.zb()&&this.A&&c.push(this.A.getPlayerType());this.H.apply(this,c)};f.R=function(){return this.b};f.getVideoData=function(){return this.A.getVideoData()};
function ct(a){return a.j.getVideoData()}f.ng=function(){var a=SK(this.b);sa(a,jK(this.C));this.B&&sa(a,this.B.$g());a.fs=this.b.mb;a.volume=Math.round(this.D.volume);a.mos=this.D.muted?1:0;return a};f.fk=function(a){this.g.Rg(a)};
f.Gt=function(){this.b.gi=this.g.element;this.g.Qg();var a=this.gb;a.g=this.g.element;for(var b in a.k)a.g[b]=a.k[b];for(b in a.o)a.g[b]=a.o[b];a=u(this.Ew,this);b=document;var c;"onfullscreenchange"in b?c="fullscreenchange":(c=vg+"fullscreenchange",c="on"+c in b?c:null);"msfullscreenchange"==c&&(c="MSFullscreenChange");this.Ca=c?R(b,c,a):null;b=this.O.args;if(bq()){d1(this);a=ct(this);c=this.g.Fb();this.b.Yc=c;this.Ua("onVolumeChange",this.D);"detailpage"==this.b.$?kt(this):b&&(b.playlist||b.list||
b.api)&&(l1(this,b),Xr(a)||(b=this.o,c=u(this.Ep,this),b.Me=c,b.be&&L(b.Me,0)));if(b=this.O.args.jsapicallback)ka(b)||(b=q(b)),b&&c1(u(b,m,this.b.wk),m);yn(this.b.b.j);this.b.Cg=et(this.b)&&!E(Hn());o_(this,this.j);this.b.Ph&&Xr(a)?m1(this):"leanback"!=this.b.$&&n1(this)}else Mv(this.j,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.g.Fl()};function n1(a){a.H("initializingmode");i1(a,2)}
function m1(a){W(a.getPlayerState(),128)||(a.H("initializingmode"),o_(a,a.j),i1(a,3),a.b.Tb||(e1(a),d1(a),rN(a.j,a.k)),mN(a.j),o1(a,3))}function c1(a,b){return function(){var c=Array.prototype.slice.call(arguments);L(function(){a.apply(b||this,c)},0)}}f.dk=function(a,b){b?GJ(this,a):(window.ytspf||{}).enabled?spf.navigate(a):window.location=Wd(a,{})+""};
f.Zh=function(a,b,c){var d=Ks(this);b.event=a;d.o&&(a=d.o,b.rt=CM(a.b).toFixed(3),sa(b,RM(a.b)),sa(b,TM(a)),delete b.fexp,a=a.b.g.rb+"player_204","streamingerror"==b.event&&(a="//s.youtube.com/stream_204"),b=yi(a,b),kf(b,c))};function Hs(a,b){if(!isNaN(b)&&a.k){var c=1,c=a.b.vg?Jq:[1],c=1>b?B(c,function(a){return a>=b}):lb(c,function(a){return a<=b});a.la!=c&&(a.la=c,a.j==a.A&&Mt(a.k,c),a.H("onPlaybackRateChange",c))}}
function Is(a,b){var c=Ks(a,b);return c&&c.getVideoData().b?c.getVideoData().b.video.b:"unknown"}function DG(a){return(a=Ks(a,void 0))?Ip(kM(a.pa,a.b)):"unknown"}function Js(a,b,c,d){if(c=Ks(a,c))a=a.b.o,"mobile"!=a&&"tablet"!=a&&(b=Cp(b,d||b,!0),mJ(c,"m",b))}f.getCurrentTime=function(a){return(a=Ks(this,a))?a.getCurrentTime():0};function As(a,b){var c=Ks(a,b);return c?c.Td():0}
function Ss(a,b){var c=a.j.getDebugInfo(b);c.debug_playbackQuality=Is(a);c.debug_date=(new Date).toString();delete c.uga;return of(c)}function jJ(a,b){var c=a.getVideoData(),d=!!c.xa||!!c.Lf||!b;a.H("threedenabled",d);d&&a.k.setAttribute("mozStereoMode","1");fJ()&&(a.k.setAttribute("mozStereoMode",d?"1":"0"),c=Sp[d?c.oB:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),$c(document.documentElement,d),Sg(d,"3DModeEvent"))}
f.getPlayerState=function(a){return(a=Ks(this,a||1))&&a.getPlayerState()};f.Pt=function(a){var b=a.target;switch(a.type){case "loadedmetadata":$0(this.L,"fvb");this.Wa=L(u(this.g.Vf,this.g),16);break;case "loadstart":$0(this.L,"gv");break;case "progress":case "timeupdate":$0(this.L,"1pb"),2<=Bt(b.buffered)&&$0(this.L,"l2s")}};
f.Lt=function(a){if(this.Ha){var b=this.cb.toString();this.cb++;this.xa[b]=a;a={request:tb(a.b[0]?a.b[0].message:null),sessionId:b,system:a.F.b,url:a.A};this.H("onNewLicenseSession",a)}else a.start()};f.Bt=function(a,b){this.Kh("onLoadProgress",b)};f.Jt=function(a,b){this.Kh("onVideoProgress",b)};f.Ft=function(){this.gk()};f.gk=function(a,b){this.H("progresssync",a,b)};
f.vt=function(a){var b;(b=!W(a.state,2))||(this.o&&("embedded"==this.b.$||this.b.mb)&&EH(this)?(Vs(this),b=!0):b=!1,b=!b);b&&(W(a.state,2)&&(this.pauseVideo(),W(a.b,32)&&this.j.Mi(),this.b.Pb&&FG(this,!1)),W(a.state,128)&&(b=a.state,Gs(this),b=b.b,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=We(b.messageKey)),this.H("onError",bt[b.errorCode]||5),this.H("onDetailedError",b)),this.H("applicationplayerstatechange",a),W(a.state,2)&&(a=this.getVideoData(),a.ib&&!a.tb&&
this.mg(["play_pause"])))};f.Et=function(a){!W(a.state,32)&&0>Nv(a,16)&&(!W(a.state,8)||this.k.ended&&!W(a.state,2)||this.Nd());this.H("presentingplayerstatechange",a);this.af("onStateChange",a);o1(this,Vt(a.state))};function f1(a,b){gK(a.C);Hs(a,1);a.Ua("videoplayerreset",b)}
function g1(a,b,c,d){if(a.k){if("dataloaded"==b)if(MK(c.R(),d.k),a.A==a.j){yn(a.b.b.j);var e=et(a.b)&&!!On(),g;if(g=!e)g=ct(a).ip&&!a.b.Pb;if(g){var h="YTP_DEVICE_FALLBACK";rc||lr("iemobile")||lr("xbox")&&lr("trident")||lr("nintendo wiiu")||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");Mv(a.j,"html5.unsupportedads",h,void 0)}else if(g=ct(a),!(g.j||g.ue||g.te||g.aa||g.U)||e||fN(a.j)){Yr(g);e&&i1(a,6);e=A0.Ja;!a.B&&e(a)&&(a.B=new A0(a),a.B&&k1(a,a.B));try{(h=a.B)&&!h.Ac&&h.Ja(a.Eb)&&h.create()}catch(k){Ue(k),
a.j&&qN(a.j,"ad")}gt(a);h1(a)}else Mv(a.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else h1(a);1==c.getPlayerType()&&(a.getVideoData().Uk?(a.T=Zb(a.D),a.mg(["audio"]),h=a.k,h.Zl=!0,h.muted=!0):(Fs(a,"audio")&&a.Xh(["audio"]),a.k.Zl=!1,a.T&&(NG(a,a.T),a.T=null)),h=a.getVideoData(),h.ib&&!a.b.ok?Mv(a.j,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0):h.ib&&!h.tb?a.mg(["seek"]):a.Xh(["seek"]),d.V||d.o.focEnabled||d.o.rmktEnabled||a.b.vf)&&(h=a.getVideoData(),e=1E3*h.Oa,
p1(a,"part2viewed",1,e),a.b.b.A&&p1(a,"engagedview",Math.max(1,1E3*h.qe),e),p1(a,"videoplaytime25",.25*e,e),p1(a,"videoplaytime50",.5*e,e),p1(a,"videoplaytime75",.75*e,e),p1(a,"videoplaytime100",e,2147483647),p1(a,"conversionview",e,2147483647));a.Ua("videodatachange",b,d,c.getPlayerType())}}f.qt=function(a){if("newdata"==a){ft(this.B);ft(this.F);this.Ia=!1;a=[];for(var b in this.N)Fs(this,b)&&a.push(b);this.N={};0<a.length&&this.H("controlsenabled",a);this.Yh();this.za={};this.L.b=!1}};
f.Ot=function(a,b,c){"newdata"==a?f1(this,b):g1(this,a,b,c)};f.It=function(a,b){var c=this.A.getVideoData();a==c&&this.H("onPlaybackQualityChange",a.b.video.b,b)};function kt(a){var b=YG();if(b&&0<=b.index){var c=[];z(b.videoIds,function(a){if(a=b.videoData?b.videoData[a]:void 0)a.video_id=a.id,c.push(a)});l1(a,{videoList:c,loop:b.autoPlay,index:b.index,list:b.list,playlist_title:b.listTitle,playlist_description:b.listDescription,author:b.author,fetch:0})}}
function l1(a,b){if(a.o){var c=Ns(a.C,"playlist");if(c){var d=a.C;if(!d.g||c.Dm(d.g))c.destroy(),pb(d.b,c)}}Ih(a.o);b?(a.o=new es(b),a.C&&(c=a.C,z([fI.b],c.Iq,c))):a.o=null}function p1(a,b,c,d){b in a.za||(c=new Wt(c,d,{id:b,priority:1}),c.$a.subscribe("onEnter",a.ys,a),c.$a.subscribe("onExit",a.ys,a),a.j.A.wi(c),a.za[b]=c)}
f.ys=function(a){var b=a.getId(),c=ct(this);"part2viewed"==b?(c.V&&!this.b.b.A&&kf(c.V),c.of&&kf(c.of)):"conversionview"==b?WM(this.j.o):"engagedview"==b&&this.b.b.A&&kf(c.V);if(c.pa){var d;d=a.getId();d=yi(c.pa,{label:d});kf(d)}switch(b){case "videoplaytime25":kf(c.ak);break;case "videoplaytime50":kf(c.Zj);break;case "videoplaytime75":kf(c.Vj);break;case "videoplaytime100":kf(c.Yj)}this.b.vf&&this.b.vf[a.getId()]&&(b=this.b.vf[a.getId()],c=x(b)?!1:-1!=b.search(Ie)||-1!=b.search(Ge),kf(b,void 0,c));
this.j.A.Ag(a)};function i1(a,b){b!=a.I&&(2==b&&(o1(a,-1),o1(a,5)),a.I=b,a.H("appstatechange",b))}function o1(a,b){a.A&&2==a.A.getPlayerType()?a.Ba!=b&&(a.Ba=b,a.Kh("onAdStateChange",b)):a.pa!=b&&(a.pa=b,a.Kh("onStateChange",b))}function PG(a,b){if(a.b.b.D){var c={controlClicked:b};a.b.mb&&(c.fs=1);a.Zh("controlclicked",c)}}f.sf=function(a,b,c,d){(d=Ks(this,d))&&nN(d,a,!1!=b,c)};f.Nt=function(a,b){var c=a.getVideoData();if(1==this.I||2==this.I)c.Ta=b;2==this.I?m1(this):this.Ua("seekto",b)};f.wt=function(){this.Ua("beginseeking")};
f.zt=function(){this.Ua("endseeking")};f.setVolume=function(a){var b=this.D;b.volume=a;NG(this,b)};function NG(a,b){a.D=b;b.volume=Gb(b.volume,0,100);if(a.b.Wj&&!a.b.Rd){var c={};c.volume=isNaN(b.volume)?ts().volume:Gb(b.volume,0,100);c.muted=void 0==b.muted?ts().muted:b.muted;li("yt-player-volume",c,2592E3)}Fs(a,"audio")?a.T&&(a.T=Zb(b),a.Ua("onVolumeChange",b)):(j1(a),a.b.Rd||a.Ua("onVolumeChange",b))}function Bs(a){var b=a.D;b.muted=!0;NG(a,b)}
function Cs(a){var b=a.D;b.muted=!1;5>b.volume&&(b.volume=5);NG(a,b)}function Os(a,b,c){b.list=b.list||null;b=new Hr(b);var d;if(d=a.b.b.o&&"detailpage"==a.b.$&&a.F&&a.F.loaded){d=b.videoId;var e;e=a.F;e=e.g?wm(Gm(e.g)):"";d=d!=e}if(d)return!1;(d=a.getVideoData())&&d.La!=b.La&&l1(a,null);b.La&&"detailpage"==a.b.$&&kt(a);return q1(a,b,void 0,c)}
function q1(a,b,c,d){vq("_start","")||(a.L.g("_start"),a.L.info("srt",0));var e=Ks(a,d);if(!e)return!1;N(a.Wa);b.tf=oq(b.tf,c);Gs(a,d);bN(e,b,u(a.ng,a));if(!gN(e))return!1;e==a.j?(i1(a,1),m1(a)):mN(e);return!0}function Xs(a,b){var c=q1(a,b);ys(a,c,void 0)}function ys(a,b,c){c=Ks(a,c);b&&c==a.j&&(c.getVideoData().re=!0)}function Ps(a,b,c){b.list=b.list||null;r1(a,new Hr(b),c)}function r1(a,b,c){var d=Ks(a,c);d&&(Gs(a,c),bN(d,b,u(a.ng,a)),gN(d)&&(MK(d.R(),b.k),d==a.j&&(i1(a,1),n1(a))))}
function Us(a,b,c,d,e){if(la(b)&&!ha(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},s(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;l1(a,b);b=a.o;a=u(a.Ep,a);b.Me=a;b.be&&L(b.Me,0)}f.Ep=function(){var a=ps(this.o);this.getVideoData().lg||!this.P?Xs(this,a):a&&r1(this,a)};function EH(a){var b=YG();return!(!a.o||!ms(a.o)||b&&!b.autoPlay)}
function Vs(a){a.o&&(a.o.be?ms(a.o)&&Xs(a,ns(a.o)):(ns(a.o),a.P=!1))}function Ws(a){if(a.o)if(a.o.be){var b=a.o;(b.Qf||0<=b.Ga-1)&&Xs(a,qs(a.o))}else qs(a.o),a.P=!1}function YG(){var a=q("yt.www.watch.lists.getState");return a?a():null}function Ys(a){return a.o&&a.o.j?a.o.j.toString():null}function Rs(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=As(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return vH(a.b,ct(a),null,c)}
function Ts(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 Wt(1E3*c,1E3*d,b);c.$a.subscribe("onEnter",a.pC,a);c.$a.subscribe("onExit",a.qC,a);a.j.A.wi(c);a.H("cuerangesadded",[c]);return!0}f.pC=function(a){this.H("onCueRangeEnter",a.getId())};f.qC=function(a){this.H("onCueRangeExit",a.getId())};f.co=function(a,b){var c=Ks(this,b);c&&(c.A.wi.apply(c.A,a),this.H("cuerangesadded",a))};
f.fo=function(a,b){var c=Ks(this,b);c&&(c.A.Ag.apply(c.A,a),this.H("cuerangesremoved",a))};f.bo=function(a,b){var c=Ks(this,b);if(c){for(var c=c.A,d=c.j.length-1;0<=d;d--)c.j[d].namespace==a&&$t(c,d);c.lc()}};f.jo=function(a){this.H("cuerangemarkersupdated",a)};f.ho=function(a,b){var c=Ks(this,b);c&&qN(c,a)};
f.ut=function(){s1(this,a1(this.L));if(!this.Ia&&"detailpage"==this.b.$){this.Ia=!0;var a=this.j;if(a.O&&a.O.b){var b={},c={};a.b.videoId&&(b.docid=a.b.videoId);a.b.yb&&(b.plid=a.b.yb);b.cpn=a.b.Da;b.ad_cpn=a.O.b;var d=v()-a.O.g;a.O.j?c.astv=d:c.actv=d;var a={v:2,s:"youtube",action:"watch7ad_html5"},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=Qe("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);yq(a)}}this.Ra=!1};
function s1(a,b){if(!isNaN(b)&&0<b&&a.j){var c=a.j;c.o&&0<b&&(c.o.k.j.aft=[b])}}f.$n=function(a){"remote"==a?(i1(this,6),ft(this.B)):this.Kh("onApiChange")};f.ao=function(a){"remote"==a&&n1(this)};f.gy=function(){if(!Fs(this,"audio")){var a={volume:100*this.k.volume,muted:this.k.muted};this.D=Zb(a);this.Ua("onVolumeChange",a)}};function j1(a){var b=a.b.Rd?Hr.b:a.getVideoData().dq;a.k.setVolume(a.D.volume*b,a.D.muted)}f.Ew=function(){t1(this,!!Ug())};f.Dt=function(){t1(this,!1)};
function t1(a,b){a.g.sm(b);if("detailpage"==a.b.$&&!b){var c=ct(a);if(Qe("VIDEO_ID")!=c.videoId){var d=a.getCurrentTime(),e={};e[c.videoId]=d;li("yt-player-restore-playhead",e,172800);a.pauseVideo()}}a.b.mb=b;a.g.Vf();a.Ua("fullscreentoggled",b);c={fullscreen:b,videoId:ct(a).videoId};Ys(a)&&(c.listId=Ys(a));a.H("onFullscreenChange",c)}f.Mt=function(){XG(this)};f.Uh=function(){this.Ua("clearvideooverlays")};f.Vn=function(a,b){this.Ua("menu_button_add",a,b)};
f.Wn=function(a){this.Ua("menu_button_remove",a)};f.Xn=function(a){this.Ua("menu_item_add",a)};f.Yn=function(a){this.Ua("menu_item_remove",a)};f.Zn=function(a){this.Ua("menu_show",a)};f.Qt=function(a){(a=Ks(this,a))&&a.o&&zM(a.o.g)};f.At=function(a){this.Ua("liveviewshift",a)};
f.Sh=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&($0(this.L,"vr"),CN(this.A),s1(this,a1(this.L)));0==c&&e&&(this.j.O=e);var g=this.b;"leanback"==g.$&&g.zb()&&(0==c?this.aa=this.k:this.aa=d,this.H("onAdStateChange",c,e.video_id))}else this.H.apply(this,arguments)};f.af=function(a,b){this.C.F.apply(this.C,arguments);this.B&&this.B.H.apply(this.B,arguments);this.F&&this.F.H.apply(this.F,arguments)};
f.Nd=function(a){(a=Ks(this,a))&&(2==this.I?m1(this):W(a.getPlayerState(),2)?this.sf(0):tN(a))};f.pauseVideo=function(a){(a=Ks(this,a))&&a.pauseVideo()};function Gs(a,b){var c=Ks(a,b);c&&1!=a.I&&2!=a.I&&(pN(c),1==b&&ft(a.B))}function Ds(a,b){if(!Fs(a,"play_pause")){var c=a.V.play_pause?a.ca:null;c?c.ke("control_play"):a.Nd(b)}}function Es(a,b){if(!Fs(a,"play_pause")){var c=a.V.play_pause?a.ca:null;c?c.ke("control_pause"):a.pauseVideo(b)}}
function GG(a){var b;if(b=!Fs(a,"play_pause"))(b=!a.b.gc||2!=a.I)||(b=kE.hasTags(void 0));b&&((b=a.V.play_pause?a.ca:null)?b.ke("control_toggle_play_pause"):(b=Ks(a,void 0))&&(W(b.j,8)&&!W(b.j,2)?a.pauseVideo(void 0):a.Nd(void 0)))}function zs(a,b,c,d,e){if(!Fs(a,"seek")){var g=a.V.seek?a.ca:null;g?g.ke("control_seek",b):a.sf(b,c,d,e)}}function MG(a,b){FG(a,!1);b!=a.b.rd&&(a.b.rd=b,a.H("SIZE_CLICKED",b),a.g.oh())}
function FG(a,b){if(a.b.mb!=b)if(Tg())if(b){var c=a.g.element,d=Bg(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Bg(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else t1(a,b)}function uz(a){FG(a,!a.b.mb)}function GJ(a,b){FG(a,!1);a.pauseVideo();OH(b)}function OG(a){var b=a.getVideoData();"detailpage"==a.b.$&&a.b.mb&&Qe("VIDEO_ID")==b.videoId?FG(a,!1):GJ(a,Rs(a,!0))}f.getAdState=function(){return this.B?this.B.getAdState():-1};
function XG(a){var b=a.g.Fb();a.b.Yc=b;if(a.k){b=!1;if(0!=a.k.readyState&&a.A){var c=new G(a.k.videoWidth,a.k.videoHeight),d=a.getVideoData();Jb(d.Wa,c)||(d.Wa=c,b=!0)}c=zE(a.g);yf(a.b.yq,c)||(a.b.yq=c,b=!0);c=zE(a.g);yf(a.b.Cf,c)||(a.b.Cf=c,b=!0);b&&(mJ(Ks(a),"r"),a.H("resize",a.g.Vc()),a.Ua("onResize"))}}function Fs(a,b){return!(!a.N[b]||!a.N[b].length)}
f.mg=function(a,b){b=b||b1.g;var c=[];z(a,function(a){this.N[a]?0>this.N[a].indexOf(b)&&this.N[a].push(b):(this.N[a]=[b],c.push(a))},this);0<c.length&&this.H("controlsdisabled",c)};f.Xh=function(a,b){b=b||b1.g;var c=[];z(a,function(a){if(Fs(this,a)){var e=this.N[a].indexOf(b);0<=e&&this.N[a].splice(e,1);0==this.N[a].length&&c.push(a)}},this);0<c.length&&this.H("controlsenabled",c)};f.eo=function(a,b,c){this.Yh();this.ca=a;b&&z(b,function(a){this.V[a]=!0},this);c&&hK(this.C,a,c)};
f.Yh=function(){this.ca=null;this.V={};iK(this.C)};function Zs(a,b,c,d){c=a.B&&b==a.B.ua?a.B.Fj(c,d):b&&c?(a=Ns(a.C,b))?a.Fj(c,d):null:null;return c}f.Ht=function(){if(!this.Ra){this.Ra=!0;var a=this.getVideoData(),b=Ks(this).getCurrentTime();Os(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.xt=function(){this.Ua("CONNECTION_ISSUE")};f.Kt=function(a){this.Ua("heartbeatparams",a)};
f.J=function(){En();e1(this);this.Ca&&Ng(this.Ca);Ng(this.nb);Kh(Qb(this.ka),this.o);this.aa=null;N(this.Wa);b1.G.J.call(this)};var u1=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};ba("yt.uix.widgets_",u1,void 0);function v1(a){a=a.getInstance();var b=Z(a);b in u1||(a.register(),u1[b]=a)};v1(GI);v1(WE);q("yt.tracking.share")||ba("yt.tracking.share",IH,void 0);q("yt.net.ping")||ba("yt.net.ping.send",kf,void 0);q("yt.window.popup")||(ba("yt.window.popup",PH,void 0),ba("yt.window.open",OH,void 0));ba("yt.player.Application.create",b1.create,void 0);var w1=q("ytcsi.tick");w1&&w1("pe");})();
