(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.Kb?a.Kb:a.Kb=new a}}
function ea(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 fa(a){return null!=a}function ga(a){return"array"==ea(a)}function ha(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function r(a){return"string"==typeof a}function ia(a){return"number"==typeof a}function ja(a){return"function"==ea(a)}function ka(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function la(a){return a[ma]||(a[ma]=++na)}
var ma="closure_uid_"+(1E9*Math.random()>>>0),na=0;function oa(a,b,c){return a.call.apply(a.bind,arguments)}function pa(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 t(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?oa:pa;return t.apply(null,arguments)}function qa(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 ra(a,b){for(var c in b)a[c]=b[c]}var v=Date.now||function(){return+new Date};function sa(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return d in b?b[d]:a}));return a}
function w(a,b){function c(){}c.prototype=b.prototype;a.G=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.eF=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 t.apply(null,c)}return t(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(Ia,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ja,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ka,"&#0;"));return a}var Ea=/&/g,Fa=/</g,Ga=/>/g,Ia=/"/g,Ja=/'/g,Ka=/\x00/g,Da=/[\x00&<>"']/;function La(a){return Ma(a,"&")?"document"in m?Na(a):Oa(a):a}
function Na(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Pa,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 Oa(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 Pa=/&([^;\s<&]+);?/g;function Ma(a,b){return-1!=a.indexOf(b)}function Qa(a,b){return Ma(a.toLowerCase(),b.toLowerCase())}function Ra(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}
function Sa(a,b){return Array(b+1).join(a)}function Ta(a){a=n(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return Sa("0",Math.max(0,2-b))+a}function ya(a){return null==a?"":String(a)}function Ua(a){return Array.prototype.join.call(arguments,"")}
function Va(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"),s=RegExp("(\\d*)(\\D*)","g");do{var u=p.exec(k)||["","",""],y=s.exec(l)||["","",""];if(0==u[0].length&&0==y[0].length)break;c=Wa(0==u[1].length?0:parseInt(u[1],10),0==y[1].length?0:parseInt(y[1],10))||Wa(0==u[2].length,0==y[2].length)||Wa(u[2],y[2])}while(0==c)}return c}function Wa(a,b){return a<b?-1:a>b?1:0}
function Xa(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b}var Ya=2147483648*Math.random()|0;function Za(){return"goog_"+Ya++}function $a(a){var b=Number(a);return 0==b&&xa(a)?NaN:b}function ab(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function bb(a){var b=r(void 0)?Ra(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};function cb(){};function db(a){return a[a.length-1]}
var eb=Array.prototype,fb=eb.indexOf?function(a,b,c){return eb.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(r(a))return r(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},gb=eb.lastIndexOf?function(a,b,c){return eb.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(r(a))return r(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=eb.forEach?function(a,b,c){eb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},hb=eb.filter?function(a,b,c){return eb.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=r(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},B=eb.map?function(a,b,c){return eb.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=r(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,
g[h],h,a));return e},ib=eb.reduce?function(a,b,c,d){d&&(b=t(b,d));return eb.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;z(a,function(c,h){e=b.call(d,e,c,h,a)});return e},jb=eb.some?function(a,b,c){return eb.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},kb=eb.every?function(a,b,c){return eb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(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 lb(a,b,c){b=mb(a,b,c);return 0>b?null:r(a)?a.charAt(b):a[b]}function mb(a,b,c){for(var d=a.length,e=r(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 nb(a,b){var c=ob(a,b,void 0);return 0>c?null:r(a)?a.charAt(c):a[c]}function ob(a,b,c){for(var d=r(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<=fb(a,b)}function D(a){return 0==a.length}
function pb(a){if(!ga(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function qb(a,b){C(a,b)||a.push(b)}function rb(a,b){var c=fb(a,b),d;(d=0<=c)&&sb(a,c);return d}function sb(a,b){eb.splice.call(a,b,1)}function tb(a,b){var c=mb(a,b,void 0);0<=c&&sb(a,c)}function ub(a){return eb.concat.apply(eb,arguments)}function vb(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 wb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(ga(d)||(e=ha(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 xb(a,b,c,d){eb.splice.apply(a,yb(arguments,1))}function yb(a,b,c){return 2>=arguments.length?eb.slice.call(a,b):eb.slice.call(a,b,c)}
function zb(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++],g=ka(e)?"o"+la(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,g)||(b[g]=!0,a[c++]=e)}a.length=c}function Ab(a,b,c){c=c||Bb;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 Cb(a,b){a.sort(b||Bb)}function Eb(a,b){var c=Bb;Cb(a,function(a,e){return c(a[b],e[b])})}
function Fb(a,b,c){if(!ha(a)||!ha(b)||a.length!=b.length)return!1;var d=a.length;c=c||Gb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Bb(a,b){return a>b?1:a<b?-1:0}function Gb(a,b){return a===b}function Hb(a,b,c){c=Ab(a,b,c);0>c&&xb(a,-(c+1),0,b)}function Ib(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];ga(d)?b.push.apply(b,Ib.apply(null,d)):b.push(d)}return b};function Jb(a,b,c){return Math.min(Math.max(a,b),c)}function Kb(a,b,c){return a+c*(b-a)};function E(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=E.prototype;f.clone=function(){return new E(this.x,this.y)};function Lb(a,b){return new E(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=ia(b)?b:a;this.x*=a;this.y*=c;return this};function F(a,b){this.width=a;this.height=b}function Mb(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=F.prototype;f.clone=function(){return new F(this.width,this.height)};function Nb(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=ia(b)?b:a;this.width*=a;this.height*=c;return this};function Ob(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Pb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Qb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Rb(a){var b=0,c;for(c in a)b++;return b}function Sb(a){for(var b in a)return a[b]}function Tb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ub(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Vb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}
function Wb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Xb(a){var b=Yb;return(a=Wb(b,a,void 0))&&b[a]}function Zb(a){for(var b in a)return!1;return!0}function $b(a){for(var b in a)delete a[b]}function ac(a,b){return b in a?a[b]:void 0}function bc(a){var b={},c;for(c in a)b[c]=a[c];return b}function cc(a){var b=ea(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=cc(a[c]);return b}return a}var dc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function ec(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<dc.length;g++)c=dc[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function fc(a){var b=arguments.length;if(1==b&&ga(arguments[0]))return fc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var gc;t:{var hc=m.navigator;if(hc){var ic=hc.userAgent;if(ic){gc=ic;break t}}gc=""}function jc(a){return Ma(gc,a)};var kc,lc,mc,nc,oc;function pc(){return m.navigator||null}var qc=jc("Opera")||jc("OPR"),rc=jc("Trident")||jc("MSIE"),sc=jc("Gecko")&&!Qa(gc,"WebKit")&&!(jc("Trident")||jc("MSIE")),tc=Qa(gc,"WebKit"),uc=tc&&jc("Mobile"),vc=pc(),wc=vc&&vc.platform||"";kc=Ma(wc,"Mac");lc=Ma(wc,"Win");mc=!!pc()&&Ma(pc().appVersion||"","X11");var xc=gc;nc=!!xc&&Ma(xc,"Android");oc=!!xc&&Ma(xc,"iPhone");var yc=!!xc&&Ma(xc,"iPad");function zc(){var a=m.document;return a?a.documentMode:void 0}
var Ac=function(){var a="",b;if(qc&&m.opera)return a=m.opera.version,ja(a)?a():a;sc?b=/rv\:([^\);]+)(\)|;)/:rc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:tc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(gc))?a[1]:"");return rc&&(b=zc(),b>parseFloat(a))?String(b):a}(),Bc={};function Cc(a){return Bc[a]||(Bc[a]=0<=Va(Ac,a))}function Dc(a){return rc&&Ec>=a}var Fc=m.document,Ec=Fc&&rc?zc()||("CSS1Compat"==Fc.compatMode?parseInt(Ac,10):5):void 0;var Gc=!rc||Dc(9),Hc=!sc&&!rc||rc&&Dc(9)||sc&&Cc("1.9.1"),Ic=rc&&!Cc("9"),Jc=rc||qc||tc;function Kc(a){return a?new Lc(Mc(a)):ua||(ua=new Lc)}function Nc(a){return r(a)?document.getElementById(a):a}function Oc(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Pc("*",a,b)}function H(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Pc("*",a,b)[0];return d||null}
function Pc(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 Qc(a,b){Ob(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Rc?a.setAttribute(Rc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Rc={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 Sc(a){a=a.document;a=Tc(a)?a.documentElement:a.body;return new F(a.clientWidth,a.clientHeight)}function Uc(a){var b=Vc(a);a=a.parentWindow||a.defaultView;return rc&&Cc("10")&&a.pageYOffset!=b.scrollTop?new E(b.scrollLeft,b.scrollTop):new E(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Vc(a){return!tc&&Tc(a)?a.documentElement:a.body||a.documentElement}function Wc(a){return a?a.parentWindow||a.defaultView:window}function I(a,b,c){return Xc(document,arguments)}
function Xc(a,b){var c=b[0],d=b[1];if(!Gc&&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={};ec(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(r(d)?c.className=d:ga(d)?c.className=d.join(" "):Qc(c,d));2<b.length&&Yc(a,c,b,2);return c}function Yc(a,b,c,d){function e(c){c&&b.appendChild(r(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ha(g)||ka(g)&&0<g.nodeType?e(g):z(Zc(g)?vb(g):g,e)}}
function $c(a){return document.createElement(a)}function ad(a){return document.createTextNode(String(a))}function Tc(a){return"CSS1Compat"==a.compatMode}function bd(a,b){a.appendChild(b)}function cd(a,b){Yc(Mc(a),a,arguments,1)}function dd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function ed(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function fd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function gd(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}
function hd(a){return Hc&&void 0!=a.children?a.children:hb(a.childNodes,function(a){return 1==a.nodeType})}function id(a){return void 0!=a.firstElementChild?a.firstElementChild:jd(a.firstChild)}function jd(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function kd(a){var b;if(Jc&&!(rc&&Cc("9")&&!Cc("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ka(b)&&1==b.nodeType?b:null}
function ld(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 Mc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function md(a){return a.contentWindow||Wc(a.contentDocument||a.contentWindow.document)}
function nd(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{dd(a);var c=Mc(a);a.appendChild(c.createTextNode(String(b)))}}function od(a,b){var c=[];return pd(a,b,c,!0)?c[0]:void 0}function pd(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||pd(a,b,c,d))return!0;a=a.nextSibling}return!1}
var qd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},rd={IMG:" ",BR:"\n"};function sd(a,b,c){if(!(a.nodeName in qd))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 rd)b.push(rd[a.nodeName]);else for(a=a.firstChild;a;)sd(a,b,c),a=a.nextSibling}function Zc(a){if(a&&"number"==typeof a.length){if(ka(a))return"function"==typeof a.item||"string"==typeof a.item;if(ja(a))return"function"==typeof a.item}return!1}
function td(a,b,c){if(!b&&!c)return null;var d=b?b.toUpperCase():null;return ud(a,function(a){return(!d||a.nodeName==d)&&(!c||r(a.className)&&C(a.className.split(/\s+/),c))},!0)}function vd(a,b){return td(a,null,b)}function ud(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 Lc(a){this.b=a||m.document||document}f=Lc.prototype;f.K=function(a){return r(a)?this.b.getElementById(a):a};f.WB=function(a,b,c){return Xc(this.b,arguments)};
f.createElement=function(a){return this.b.createElement(a)};function wd(a){return Tc(a.b)}function xd(a){a=a.b;return a.parentWindow||a.defaultView}function yd(a){return Uc(a.b)}f.appendChild=bd;f.append=cd;f.contains=ld;var zd="StopIteration"in m?m.StopIteration:Error("StopIteration");function Ad(){}Ad.prototype.next=function(){throw zd;};Ad.prototype.Wb=function(){return this};function Bd(a){if(a instanceof Ad)return a;if("function"==typeof a.Wb)return a.Wb(!1);if(ha(a)){var b=0,c=new Ad;c.next=function(){for(;;){if(b>=a.length)throw zd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function Cd(a,b,c){if(ha(a))try{z(a,b,c)}catch(d){if(d!==zd)throw d;}else{a=Bd(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==zd)throw e;}}}function Dd(a){if(ha(a))return vb(a);a=Bd(a);var b=[];Cd(a,function(a){b.push(a)});return b};function Ed(a,b){this.g={};this.b=[];this.j=this.fa=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 Ed?(c=a.Ma(),d=a.Qa()):(c=Ub(a),d=Tb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=Ed.prototype;f.Na=function(){return this.fa};f.Qa=function(){Fd(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};f.Ma=function(){Fd(this);return this.b.concat()};
function Gd(a,b){return Hd(a.g,b)}f.kg=function(a){for(var b=0;b<this.b.length;b++){var c=this.b[b];if(Hd(this.g,c)&&this.g[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.fa!=a.Na())return!1;var c=b||Id;Fd(this);for(var d,e=0;d=this.b[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function Id(a,b){return a===b}f.isEmpty=function(){return 0==this.fa};f.clear=function(){this.g={};this.j=this.fa=this.b.length=0};
f.remove=function(a){return Hd(this.g,a)?(delete this.g[a],this.fa--,this.j++,this.b.length>2*this.fa&&Fd(this),!0):!1};function Fd(a){if(a.fa!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];Hd(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.fa!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],Hd(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}f.get=function(a,b){return Hd(this.g,a)?this.g[a]:b};f.set=function(a,b){Hd(this.g,a)||(this.fa++,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 Ed(this)};f.Wb=function(a){Fd(this);var b=0,c=this.b,d=this.g,e=this.j,g=this,h=new Ad;h.next=function(){for(;;){if(e!=g.j)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw zd;var h=c[b++];return a?h:d[h]}};return h};function Hd(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Jd(a){return"function"==typeof a.Na?a.Na():ha(a)||r(a)?a.length:Rb(a)}function Kd(a){if("function"==typeof a.Qa)return a.Qa();if(r(a))return a.split("");if(ha(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Tb(a)}function Ld(a){if("function"==typeof a.Ma)return a.Ma();if("function"!=typeof a.Qa){if(ha(a)||r(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Ub(a)}}
function Md(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(ha(a)||r(a))z(a,b,void 0);else for(var c=Ld(a),d=Kd(a),e=d.length,g=0;g<e;g++)b.call(void 0,d[g],c&&c[g],a)}function Nd(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ha(a)||r(a))return kb(a,b,c);for(var d=Ld(a),e=Kd(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};function Od(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 Pd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Qd(a){if(Rd){Rd=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Sd(c))&&c!=b.hostname)throw Rd=!0,Error();}}return a.match(Pd)}var Rd=tc;function Sd(a){return(a=Qd(a)[3]||null)&&decodeURIComponent(a)}
function Td(a){return(a=Qd(a)[5]||null)&&decodeURIComponent(a)}function Ud(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 Vd(a,b,c){if(ga(b))for(var d=0;d<b.length;d++)Vd(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",Aa(b))}function Wd(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Vd(b[c],b[c+1],a);return a}
function Xd(a,b){for(var c in b)Vd(c,b[c],a);return a}function Yd(a){a=Xd([],a);a[0]="";return a.join("")}function Zd(a,b){return Ud(2==arguments.length?Wd([a],arguments[1],0):Wd([a],arguments,1))}function $d(a,b){return Ud(Xd([a],b))}function ae(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 be=/#|$/,ce=/[?&]($|#)/;
function de(a,b,c){for(var d=a.search(be),e=0,g,h=[];0<=(g=ae(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(ce,"$1"),"&",b];null!=c&&a.push("=",Aa(c));return Ud(a)};function J(a,b){var c;a instanceof J?(this.cf=n(b)?b:a.cf,ee(this,a.Gb),this.bf=a.bf,fe(this,a.Cb),ge(this,a.af),he(this,a.Nb),ie(this,a.b.clone()),this.Fh=a.Qg()):a&&(c=Qd(String(a)))?(this.cf=!!b,ee(this,c[1]||"",!0),this.bf=je(c[2]||""),fe(this,c[3]||"",!0),ge(this,c[4]),he(this,c[5]||"",!0),ie(this,c[6]||"",!0),this.Fh=je(c[7]||"")):(this.cf=!!b,this.b=new ke(null,0,this.cf))}f=J.prototype;f.Gb="";f.bf="";f.Cb="";f.af=null;f.Nb="";f.Fh="";f.cf=!1;
f.toString=function(){var a=[],b=this.Gb;b&&a.push(le(b,me),":");if(b=this.Cb){a.push("//");var c=this.bf;c&&a.push(le(c,me),"@");a.push(Aa(b));b=this.af;null!=b&&a.push(":",String(b))}if(b=this.Nb)this.Cb&&"/"!=b.charAt(0)&&a.push("/"),a.push(le(b,"/"==b.charAt(0)?oe:pe));(b=this.b.toString())&&a.push("?",b);(b=this.Qg())&&a.push("#",le(b,qe));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Gb;c?ee(b,a.Gb):c=!!a.bf;c?b.bf=a.bf:c=!!a.Cb;c?fe(b,a.Cb):c=null!=a.af;var d=a.Nb;if(c)ge(b,a.af);else if(c=!!a.Nb){if("/"!=d.charAt(0))if(this.Cb&&!this.Nb)d="/"+d;else{var e=b.Nb.lastIndexOf("/");-1!=e&&(d=b.Nb.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Ma(e,"./")||Ma(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?he(b,d):c=""!==a.b.toString();c?ie(b,je(a.b.toString())):c=!!a.Fh;c&&(b.Fh=a.Qg());return b};f.clone=function(){return new J(this)};function ee(a,b,c){a.Gb=c?je(b):b;a.Gb&&(a.Gb=a.Gb.replace(/:$/,""));return a}function re(a){return a.Cb}function fe(a,b,c){a.Cb=c?je(b):b;return a}function ge(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.af=b}else a.af=null;return a}
function se(a){return a.Nb}function he(a,b,c){a.Nb=c?je(b):b}function ie(a,b,c){b instanceof ke?(a.b=b,te(a.b,a.cf)):(c||(b=le(b,ue)),a.b=new ke(b,0,a.cf));return a}function ve(a){return a.b}function K(a,b,c){a.b.set(b,c);return a}function we(a,b,c){ga(c)||(c=[String(c)]);xe(a.b,b,c)}f.Qg=function(){return this.Fh};function ye(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^v()).toString(36));return a}
function ze(a){return a instanceof J?a.clone():new J(a,void 0)}function Ae(a,b,c,d){var e=new J(null,void 0);a&&ee(e,a);b&&fe(e,b);c&&ge(e,c);d&&he(e,d);return e}function je(a){return a?decodeURIComponent(a):""}function le(a,b){return r(a)?encodeURI(a).replace(b,Be):null}function Be(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var me=/[#\/\?@]/g,pe=/[\#\?:]/g,oe=/[\#\?]/g,ue=/[\#\?@]/g,qe=/#/g;function ke(a,b,c){this.b=a||null;this.g=!!c}
function Ce(a){if(!a.Ya&&(a.Ya=new Ed,a.fa=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=De(a,e);a.add(e,g?Ba(g):"")}}f=ke.prototype;f.Ya=null;f.fa=null;f.Na=function(){Ce(this);return this.fa};f.add=function(a,b){Ce(this);this.b=null;a=De(this,a);var c=this.Ya.get(a);c||this.Ya.set(a,c=[]);c.push(b);this.fa++;return this};
f.remove=function(a){Ce(this);a=De(this,a);return Gd(this.Ya,a)?(this.b=null,this.fa-=this.Ya.get(a).length,this.Ya.remove(a)):!1};f.clear=function(){this.Ya=this.b=null;this.fa=0};f.isEmpty=function(){Ce(this);return 0==this.fa};function Ee(a,b){Ce(a);b=De(a,b);return Gd(a.Ya,b)}f.kg=function(a){var b=this.Qa();return C(b,a)};f.Ma=function(){Ce(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){Ce(this);var b=[];if(r(a))Ee(this,a)&&(b=ub(b,this.Ya.get(De(this,a))));else{a=this.Ya.Qa();for(var c=0;c<a.length;c++)b=ub(b,a[c])}return b};f.set=function(a,b){Ce(this);this.b=null;a=De(this,a);Ee(this,a)&&(this.fa-=this.Ya.get(a).length);this.Ya.set(a,[b]);this.fa++;return this};f.get=function(a,b){var c=a?this.Qa(a):[];return 0<c.length?String(c[0]):b};function xe(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.Ya.set(De(a,b),vb(c)),a.fa+=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 ke;a.b=this.b;this.Ya&&(a.Ya=this.Ya.clone(),a.fa=this.fa);return a};function De(a,b){var c=String(b);a.g&&(c=c.toLowerCase());return c}
function te(a,b){b&&!a.g&&(Ce(a),a.b=null,a.Ya.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),xe(this,e,a))},a));a.g=b};var Fe=/^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\/)/,Ge=/^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]+)?([\/\?\#]|$)/,He=/^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\//,
Ie=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,Je=/^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Ke=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,Le=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Me=/^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]+)?([\/\?\#]|$)/,
Ne=/^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]+)?([\/\?\#]|$))/,Oe=/^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 Pe=window.yt&&window.yt.config_||{};ba("yt.config_",Pe,void 0);ba("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Qe=window.yt&&window.yt.msgs_||{};ba("yt.msgs_",Qe,void 0);function Re(a){Se(Pe,arguments)}function Te(a){return a in Pe?Pe[a]:void 0}function L(a,b){ja(a)&&(a=Ue(a));return window.setTimeout(a,b)}function Ve(a,b){ja(a)&&(a=Ue(a));return window.setInterval(a,b)}function M(a){window.clearTimeout(a)}function We(a){window.clearInterval(a)}
function Ue(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Xe(b),b;}}:a}function Xe(a){if(window&&window.yterr){var b=q("yt.www.errors.log");b?b(a,void 0):(b=Te("ERRORS")||[],b.push([a,void 0]),Re("ERRORS",b))}}function Ye(a){Se(Qe,arguments)}function Ze(a,b,c){var d=b||{};if(a=a in Qe?Qe[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}
sa=function(a,b){var c=b||{},d=a in Qe?Qe[a]:a;if(d)for(var e in c)var g=(""+c[e]).replace(/\$/g,"$$$$"),d=d.replace(new RegExp("\\{\\$"+e+"\\}","gi"),g),d=d.replace(new RegExp("\\$"+e,"gi"),g);return d};function Se(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 $e="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(" "),
af="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(" "),bf="";function cf(a){return a&&a==bf?!0:df(a,$e)?(bf=a,!0):!1}function ef(a){var b=!!a&&-1!=a.search(Me),c=cf(a);b!=c&&Xe(Error(a+" behavior is not consistent"));return c}
function ff(){var a=document.location.toString(),b=!!a&&-1!=a.search(He),c=-1!=a.indexOf("/embed/");b!=c&&Xe(Error(a+" behavior is not consistent"));return c}function gf(a){var b=!!a&&-1!=a.search(Ne),c=df(a,af);c&&!b&&Xe(Error(a+" behavior is not consistent"));return c}function df(a,b){return(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}
function hf(a){a=new J(a);ee(a,document.location.protocol);fe(a,document.location.hostname);document.location.port&&ge(a,document.location.port);return a.toString()}function jf(a){a=new J(a);ee(a,document.location.protocol);return a.toString()};var kf={},lf=0,mf=q("yt.net.ping.workerUrl_")||null;ba("yt.net.ping.workerUrl_",mf,void 0);function nf(a,b,c){a&&(c?a&&(a=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Mc(a).body.appendChild(a)):of(a,b))}function of(a,b){var c=new Image,d=""+lf++;kf[d]=c;c.onload=c.onerror=function(){b&&kf[d]&&b();delete kf[d]};c.src=a;c=eval("null")};function pf(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 qf(a){return eval("("+a+")")}function rf(a){return sf(new tf(void 0),a)}function tf(a){this.b=a}
function sf(a,b){var c=[];uf(a,b,c);return c.join("")}
function uf(a,b,c){switch(typeof b){case "string":vf(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(ga(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],uf(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),vf(g,c),
c.push(":"),uf(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 wf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},xf=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function vf(a,b){b.push('"',a.replace(xf,function(a){if(a in wf)return wf[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return wf[a]=e+b.toString(16)}),'"')};function yf(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=yf.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new yf(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof yf?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=ia(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function zf(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=zf.prototype;f.clone=function(){return new zf(this.left,this.top,this.width,this.height)};function Af(a){return new zf(a.left,a.top,a.right-a.left,a.bottom-a.top)}function Bf(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 zf?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 Cf(a){return new F(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=ia(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Df(a){Df[" "](a);return a}Df[" "]=ca;function Ef(){return tc?"Webkit":sc?"Moz":rc?"ms":qc?"O":null}function Ff(){return tc?"-webkit":sc?"-moz":rc?"-ms":qc?"-o":null}function Gf(a,b){if(b&&a in b)return a;var c=Ef();return c?(c=c.toLowerCase(),c+=bb(a),!n(b)||c in b?c:null):null};function Hf(a,b,c){r(b)?If(a,c,b):Ob(b,qa(If,a))}function If(a,b,c){(c=Jf(a,c))&&(a.style[c]=b)}function Jf(a,b){var c=ab(b);if(void 0===a.style[c]){var d=Ef()+bb(c);if(void 0!==a.style[d])return d}return c}function Kf(a,b){var c=Mc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Lf(a,b){return Kf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Mf(a,b,c){var d,e=sc&&(kc||mc)&&Cc("1.9");b instanceof E?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Nf(d,e);a.style.top=Nf(b,e)}function Of(a){return new E(a.offsetLeft,a.offsetTop)}function Pf(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}rc&&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 Qf(a){if(rc&&!Dc(8))return a.offsetParent;var b=Mc(a),c=Lf(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Lf(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 Rf(a){for(var b=new yf(0,Infinity,Infinity,0),c=Kc(a),d=c.b.body,e=c.b.documentElement,g=Vc(c.b);a=Qf(a);)if(!(rc&&0==a.clientWidth||tc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Lf(a,"overflow")){var h=Sf(a),k;k=a;if(sc&&!Cc("1.9")){var l=parseFloat(Kf(k,"borderLeftWidth"));if(Tf(k))var p=k.offsetWidth-k.clientWidth-l-parseFloat(Kf(k,"borderRightWidth")),l=l+p;k=new E(l,parseFloat(Kf(k,"borderTopWidth")))}else k=new E(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=Sc(xd(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 Sf(a){var b,c=Mc(a),d=Lf(a,"position"),e=sc&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),g=new E(0,0),h;b=c?Mc(c):document;h=!rc||Dc(9)||wd(Kc(b))?b.documentElement:b.body;if(a==h)return g;if(a.getBoundingClientRect)b=Pf(a),a=yd(Kc(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(tc&&"fixed"==Lf(b,"position")){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(qc||tc&&"absolute"==d)g.y-=c.body.offsetTop;for(b=a;(b=Qf(b))&&b!=c.body&&b!=h;)g.x-=b.scrollLeft,qc&&"TR"==b.tagName||(g.y-=b.scrollTop)}return g}
function Uf(a){var b;if(a.getBoundingClientRect)b=Pf(a),b=new E(b.left,b.top);else{b=yd(Kc(a));var c=Sf(a);b=new E(c.x-b.x,c.y-b.y)}if(sc&&!Cc(12)){i:{c=ab("transform");if(void 0===a.style[c]&&(c=Ef()+bb(c),void 0!==a.style[c])){c=Ff()+"-transform";break i}c="transform"}a=(a=Lf(a,c)||Lf(a,"transform"))?(a=a.match(Vf))?new E(parseFloat(a[1]),parseFloat(a[2])):new E(0,0):new E(0,0);a=new E(b.x+a.x,b.y+a.y)}else a=b;return a}
function Wf(a){if(1==a.nodeType)return Uf(a);var b=ja(a.uC),c=a;a.targetTouches?c=a.targetTouches[0]:b&&a.b.targetTouches&&(c=a.b.targetTouches[0]);return new E(c.clientX,c.clientY)}function Xf(a,b,c){if(b instanceof F)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Yf(a,b);a.style.height=Nf(c,!0)}function Nf(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Yf(a,b){a.style.width=Nf(b,!0)}function Zf(a){return bg(a)}
function bg(a){var b=cg;if("none"!=Lf(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 cg(a){var b=a.offsetWidth,c=a.offsetHeight,d=tc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new F(b,c):(a=Pf(a),new F(a.right-a.left,a.bottom-a.top))}function dg(a){var b=Sf(a);a=bg(a);return new zf(b.x,b.y,a.width,a.height)}
function eg(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 fg(a,b){a.style.display=b?"":"none"}function Tf(a){return"rtl"==Lf(a,"direction")}function gg(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 hg(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?gg(a,c):0}var ig={thin:2,medium:4,thick:6};function jg(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 ig?ig[c]:gg(a,c)}
function kg(a){if(rc&&!Dc(9)){var b=jg(a,"borderLeft"),c=jg(a,"borderRight"),d=jg(a,"borderTop");a=jg(a,"borderBottom");return new yf(d,c,a,b)}b=Kf(a,"borderLeftWidth");c=Kf(a,"borderRightWidth");d=Kf(a,"borderTopWidth");a=Kf(a,"borderBottomWidth");return new yf(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var lg=/[^\d]+$/,mg={cm:1,"in":1,mm:1,pc:1,pt:1},ng={em:1,ex:1};
function og(a){var b=Lf(a,"fontSize"),c;c=(c=b.match(lg))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(rc){if(c in mg)return gg(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in ng)return a=a.parentNode,c=Lf(a,"fontSize"),gg(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;fd(c);return b}var Vf=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function pg(a){if(a.classList)return a.classList;a=a.className;return r(a)&&a.match(/\S+/g)||[]}function qg(a,b){return a.classList?a.classList.contains(b):C(pg(a),b)}function N(a,b){a.classList?a.classList.add(b):qg(a,b)||(a.className+=0<a.className.length?" "+b:b)}function rg(a,b){if(a.classList)z(b,function(b){N(a,b)});else{var c={};z(pg(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 O(a,b){a.classList?a.classList.remove(b):qg(a,b)&&(a.className=hb(pg(a),function(a){return a!=b}).join(" "))}function sg(a,b){a.classList?z(b,function(b){O(a,b)}):a.className=hb(pg(a),function(a){return!C(b,a)}).join(" ")}function P(a,b,c){c?N(a,b):O(a,b)}function tg(a,b){var c=!qg(a,b);P(a,b,c);return c};function ug(a,b,c){a&&(a.dataset?a.dataset[vg(b)]=c:a.setAttribute("data-"+b,c))}function wg(a,b){return a?a.dataset?a.dataset[vg(b)]:a.getAttribute("data-"+b):null}function xg(a,b){a&&(a.dataset?delete a.dataset[vg(b)]:a.removeAttribute("data-"+b))}var yg={};function vg(a){return yg[a]||(yg[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var zg=tc?"webkit":sc?"moz":rc?"ms":qc?"o":"";function Ag(a){var b=a.__yt_uid_key;b||(b=Bg(),a.__yt_uid_key=b);return b}var Bg=q("yt.dom.getNextId_");if(!Bg){Bg=function(){return++Cg};ba("yt.dom.getNextId_",Bg,void 0);var Cg=0}function Dg(a,b){var c=Pc(a,null,b);return c.length?c[0]:null}function Eg(a,b){if(a in b)return b[a];var c=zg+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function Fg(a,b){var c;jb(a,function(a){c=Eg(a,b);return!!c});return c}
function Gg(a){P(document.body,"hide-players",!0);a&&P(a,"preserve-players",!0)}function Hg(){P(document.body,"hide-players",!1);var a=Oc("preserve-players");z(a,function(a){O(a,"preserve-players")})};function Ig(a){if(a=a||window.event){for(var b in a)b in Jg||(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 Kg(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 Lg(a){n(a.b)||Kg(a);return a.b}function Mg(a){n(a.g)||Kg(a);return a.g}f=Ig.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 Jg={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Ng=q("yt.events.listeners_")||{};ba("yt.events.listeners_",Ng,void 0);var Og=q("yt.events.counter_")||{count:0};ba("yt.events.counter_",Og,void 0);function Pg(a,b,c,d){return Wb(Ng,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function Q(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Pg(a,b,c,d);if(e)return e;var e=++Og.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new Ig(d);if(!ud(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Ig(b);b.currentTarget=a;return c.call(a,b)};h=Ue(h);Ng[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 Qg(a,b){var c;c=Q(a,"playing",function(){Rg(c);b.apply(a,arguments)},void 0)}function Sg(a,b,c,d){return Tg(a,b,c,function(a){return qg(a,d)})}
function Tg(a,b,c,d){var e=a||document;return Q(e,b,function(a){var b=ud(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Ug(a,b,c){(a=Pg(a,b,c,!1))&&Rg(a)}function Rg(a){a&&("string"==typeof a&&(a=[a]),z(a,function(a){if(a in Ng){var c=Ng[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 Ng[a]}}))}function Vg(a){for(var b in Ng)Ng[b][0]==a&&Rg(b)}
function Wg(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 Xg(){return!!Fg(["fullscreenEnabled","fullScreenEnabled"],document)}function Yg(){return Fg(["fullscreenElement","fullScreenElement"],document)};function Zg(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||bc($g);this.assets=a.assets||{};this.attrs=a.attrs||bc(ah);this.params=a.params||bc(bh);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 $g={enablejsapi:1},ah={},bh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
Zg.prototype.clone=function(){var a=new Zg,b;for(b in this){var c=this[b];"object"==ea(c)?a[b]=bc(c):a[b]=c}return a};var ch,dh,eh,fh,gh,hh,ih;ih=hh=gh=fh=eh=dh=ch=!1;var jh=gc;jh&&(-1!=jh.indexOf("Firefox")?ch=!0:-1!=jh.indexOf("Camino")?dh=!0:-1!=jh.indexOf("iPhone")||-1!=jh.indexOf("iPod")?eh=!0:-1!=jh.indexOf("iPad")?fh=!0:-1!=jh.indexOf("Chrome")?hh=!0:-1!=jh.indexOf("Android")?gh=!0:-1!=jh.indexOf("Safari")&&(ih=!0));var kh=ch,lh=dh,mh=eh,nh=fh,oh=gh,ph=hh,qh=ih;var rh=v(),sh=null,th=Array(50),uh=-1,vh=!1;function wh(){var a=xh;yh();sh.push(a);zh(sh)}function Ah(a,b){yh();var c=sh,d=Bh(a,String(b));D(c)?Ch(d):(zh(c),z(c,function(a){a(d)}))}function yh(){sh||(sh=q("yt.mdx.remote.debug.handlers_")||[],ba("yt.mdx.remote.debug.handlers_",sh,void 0))}function Ch(a){var b=(uh+1)%50;uh=b;th[b]=a;vh||(vh=49==b)}function zh(a){var b=th;if(b[0]){var c=uh,d=vh?c:-1;do{var d=(d+1)%50,e=b[d];z(a,function(a){a(e)})}while(d!=c);th=Array(50);uh=-1;vh=!1}}
function Bh(a,b){var c=(v()-rh)/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 Dh(a){a=a||{};this.name=a.name||"";this.id=a.screenId||"";this.token=a.loungeToken||"";this.uuid=a.dialId||""}function Eh(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 Fh(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function Gh(a){return new Dh(a)}function Hh(a){return ga(a)?B(a,Gh):[]}
function Ih(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 Jh(a){return ga(a)?"["+B(a,Ih).join(",")+"]":"null"};function Kh(){}Kh.prototype.Nd=!1;Kh.prototype.ga=function(){return this.Nd};Kh.prototype.dispose=function(){this.Nd||(this.Nd=!0,this.J())};function R(a,b){Lh(a,qa(Mh,b))}function Lh(a,b){a.ub||(a.ub=[]);a.ub.push(n(void 0)?t(b,void 0):b)}Kh.prototype.J=function(){if(this.ub)for(;this.ub.length;)this.ub.shift()()};function Nh(a){return a&&"function"==typeof a.ga?a.ga():!1}function Mh(a){a&&"function"==typeof a.dispose&&a.dispose()}
function Oh(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ha(d)?Oh.apply(null,d):Mh(d)}};function Ph(){this.b=[];this.$b={}}w(Ph,Kh);f=Ph.prototype;f.ks=1;f.Aj=0;f.subscribe=function(a,b,c){var d=this.$b[a];d||(d=this.$b[a]=[]);var e=this.ks;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.ks=e+3;d.push(e);return e};f.ha=function(a,b,c){if(a=this.$b[a]){var d=this.b;if(a=lb(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.Aj)return this.g||(this.g=[]),this.g.push(a),!1;var b=this.b[a];if(b){var c=this.$b[b];c&&rb(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.Aj++;for(var d=yb(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.Aj--;if(this.g&&0==this.Aj)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(){Ph.G.J.call(this);delete this.b;delete this.$b;delete this.g};var Qh=q("yt.pubsub.instance_")||new Ph;Ph.prototype.subscribe=Ph.prototype.subscribe;Ph.prototype.unsubscribeByKey=Ph.prototype.Ib;Ph.prototype.publish=Ph.prototype.H;Ph.prototype.clear=Ph.prototype.clear;ba("yt.pubsub.instance_",Qh,void 0);var Rh=q("yt.pubsub.subscribedKeys_")||{};ba("yt.pubsub.subscribedKeys_",Rh,void 0);var Sh=q("yt.pubsub.topicToKeys_")||{};ba("yt.pubsub.topicToKeys_",Sh,void 0);var Th=q("yt.pubsub.isSynchronous_")||{};ba("yt.pubsub.isSynchronous_",Th,void 0);
var Uh=q("yt.pubsub.skipSubId_")||null;ba("yt.pubsub.skipSubId_",Uh,void 0);function Vh(a,b,c){var d=Wh();if(d){var e=d.subscribe(a,function(){if(!Uh||Uh!=e){var d=arguments,h=function(){Rh[e]&&b.apply(c||window,d)};try{Th[a]?h():L(h,0)}catch(k){Xe(k)}}},c);Rh[e]=!0;Sh[a]||(Sh[a]=[]);Sh[a].push(e);return e}return 0}function Xh(a){var b=Wh();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),z(a,function(a){b.unsubscribeByKey(a);delete Rh[a]}))}
function Yh(a,b){var c=Wh();return c?c.publish.apply(c,arguments):!1}function Zh(a,b){Th[a]=!0;var c=Wh();c&&c.publish.apply(c,arguments);Th[a]=!1}function $h(a){Sh[a]&&(a=Sh[a],z(a,function(a){Rh[a]&&delete Rh[a]}),a.length=0)}function ai(a){var b=Wh();if(b)if(b.clear(a),a)$h(a);else for(var c in Sh)$h(c)}function Wh(){return q("yt.pubsub.instance_")};function bi(){};function ci(){}w(ci,bi);ci.prototype.Na=function(){var a=0;Cd(this.Wb(!0),function(){a++});return a};ci.prototype.clear=function(){var a=Dd(this.Wb(!0)),b=this;z(a,function(a){b.remove(a)})};function di(a){this.b=a}w(di,ci);f=di.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(!r(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 Ad;d.next=function(){if(b>=c.length)throw zd;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!r(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 ei(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a}w(ei,di);function fi(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a}w(fi,di);function gi(a){this.b=a}gi.prototype.set=function(a,b){n(b)?this.b.set(a,rf(b)):this.b.remove(a)};gi.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return pf(b)}catch(d){throw"Storage: Invalid value was encountered";}};gi.prototype.remove=function(a){this.b.remove(a)};function hi(a){this.b=a}w(hi,gi);function ii(a){this.data=a}function ji(a){return!n(a)||a instanceof ii?a:new ii(a)}hi.prototype.set=function(a,b){hi.G.set.call(this,a,ji(b))};hi.prototype.g=function(a){a=hi.G.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};hi.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 ki(a){this.b=a}w(ki,hi);function li(a){var b=a.creation;a=a.expiration;return!!a&&a<v()||!!b&&b>v()}ki.prototype.set=function(a,b,c){if(b=ji(b)){if(c){if(c<v()){ki.prototype.remove.call(this,a);return}b.expiration=c}b.creation=v()}ki.G.set.call(this,a,b)};ki.prototype.g=function(a,b){var c=ki.G.g.call(this,a);if(c)if(!b&&li(c))ki.prototype.remove.call(this,a);else return c};function mi(a){this.b=a}w(mi,ki);function ni(a,b){var c=[];Cd(b,function(a){var b;try{b=mi.prototype.g.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?li(b)&&c.push(a):c.push(a)},a);return c}function oi(a,b){var c=ni(a,b);z(c,function(a){mi.prototype.remove.call(this,a)},a)}mi.prototype.j=function(){oi(this,this.b.Wb(!0))};function pi(a,b,c){var d=c&&0<c?c:0;c=d?v()+1E3*d:0;if((d=d?qi:ri)&&window.JSON){r(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function si(a){if(!ri&&!qi||!window.JSON)return null;var b;try{b=ri.get(a)}catch(c){}if(!r(b))try{b=qi.get(a)}catch(d){}if(!r(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function ti(a){ri&&ri.remove(a);qi&&qi.remove(a)}var qi,ui=new ei;qi=ui.isAvailable()?new mi(ui):null;var ri,vi=new fi;ri=vi.isAvailable()?new mi(vi):null;function wi(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?ga(d[k])?wb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function xi(a,b){var c=[];Ob(a,function(a,b){var g=Aa(b),h;ga(a)?h=a:h=[a];z(h,function(a){""==a?c.push(g):c.push(g+"="+Aa(a))})});return c.join(b)}function yi(a){"?"==a.charAt(0)&&(a=a.substr(1));return wi(a,"&")}
function zi(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),yi(1<a.length?a[1]:a[0])):{}}var Ai=Sd;function Bi(a){a=Qd(a);return Od(a[1],a[2],a[3],a[4])}function Ci(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=yi(d[1]||""),e;for(e in b)d[e]=b[e];return $d(a,d)+c};var Di=null;"undefined"!=typeof XMLHttpRequest?Di=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Di=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Ei(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 Fi(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Ue(b)(l)}var l=Di&&Di();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=Gi(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 Gi(a,b){b=b||{};var c;if(c=Te("PAGE_CL")&&Te("PAGE_BUILD_TIMESTAMP")){var d;d||(d=window.location.href);c=Qd(a)[1]||null;var e=Ai(a);c&&e?(c=d,d=Qd(a),c=Qd(c),d=d[3]==c[3]&&d[1]==c[1]&&d[4]==c[4]):d=e?Ai(d)==e&&(Number(Qd(d)[4]||null)||null)==(Number(Qd(a)[4]||null)||null):!0;c=d||Hi(a)}c&&(b["X-YouTube-Page-CL"]=Te("PAGE_CL"),b["X-YouTube-Page-Timestamp"]=Te("PAGE_BUILD_TIMESTAMP"));return b}
function Hi(a){var b=["X-YouTube-Page-CL","X-YouTube-Page-Timestamp"],c=Te("CORS_HEADER_WHITELIST")||{};a=Ai(a);if(!a)return!0;var d=c[a];return d?kb(b,function(a){return C(d,a)}):!1}function Ii(a,b){var c=Te("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.kF&&(!Ai(a)||Ai(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.ed&&b.ed[c])}
function Ji(a,b){var c=b.format||"JSON";b.jF&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=Te("XSRF_FIELD_NAME"),e=Te("XSRF_TOKEN"),g=b.Ih;g&&(g[d]&&delete g[d],a=Ci(a,g));var h=b.ox||"",g=b.ed;Ii(a,b)&&(g||(g={}),g[d]=e);g&&r(h)&&(d=yi(h),ec(d,g),h=Yd(d));var k=!1,l,p=Fi(a,function(a){if(!k){k=!0;l&&M(l);var d=Ei(a),e=null;if(d||400<=a.status&&500>a.status)e=Ki(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.bh&&0<b.timeout&&(l=L(function(){k||(k=!0,p.abort(),M(l),b.bh.call(b.context||m,p))},b.timeout))}
function Ki(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=qf(d));break;case "XML":if(d=(d=b.responseXML)?Li(d):null)c={},z(d.getElementsByTagName("*"),function(a){c[a.tagName]=Mi(a)})}return c}function Li(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Mi(a){var b="";z(a.childNodes,function(a){b+=a.nodeValue});return b}
var Ni={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"},Oi={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 Pi(a,b,c,d){if(Te("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=Bi(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Ni.watch_actions_ajax]=1;Ji(e,{format:"RAW",method:"GET",Ih:g,vb:function(a){var b=yi(a.responseText);b[Oi.watch_actions_ajax]?c&&c():d&&d(a,b)}})}};function Qi(){this.port=this.g="";this.b=!0;var a=document.location.href,b=Number(Qd(a)[4]||null)||null||"";b&&(this.port=":"+b);this.g=Sd(a)||"";a=gc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Va(a,"10.0")&&(this.b=!1))}function Ri(a,b,c,d){var e="/api/lounge";if(n(d)?d:a.b)e="https://"+a.g+a.port+"/api/lounge";return $d(e+b,c||{})};function Si(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Si.prototype.id="";Si.prototype.name="";Si.prototype.activityId="";Si.prototype.status="UNKNOWN";function Ti(a){return{id:a.id,name:a.name,activityId:a.activityId,status:a.status}}Si.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};
function Ui(a){a=a||[];return"["+B(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Vi(){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 Wi(a){return B(a,function(a){return{key:a.id,name:a.name}})}function Xi(a){return B(a,function(a){return Ti(a)})}function Yi(a){return B(a,function(a){return new Si(a)})}function Zi(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function $i(a,b){return lb(a,function(a){return a.id==b})}
function aj(a,b){return lb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function bj(a,b){return lb(a,function(a){return a.id==b||a.uuid==b})};function cj(){this.M=new Ph;R(this,this.M)}w(cj,Kh);cj.prototype.subscribe=function(a,b,c){return this.ga()?0:this.M.subscribe(a,b,c)};cj.prototype.ha=function(a,b,c){return this.ga()?!1:this.M.ha(a,b,c)};cj.prototype.Ib=function(a){return this.ga()?!1:this.M.Ib(a)};cj.prototype.H=function(a,b){return this.ga()?!1:this.M.H.apply(this.M,arguments)};function dj(a){cj.call(this);this.j=a;this.g=[]}w(dj,cj);dj.prototype.Xj=function(){return this.g};dj.prototype.contains=function(a){return!!aj(this.g,a)};dj.prototype.get=function(a){return bj(this.g,a)};dj.prototype.info=function(a){Ah(this.j,a)};function ej(a){this.b=a}var fj=/\s*;\s*/;f=ej.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(fj),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 gj(this).keys};f.Qa=function(){return gj(this).us};f.isEmpty=function(){return!this.b.cookie};f.Na=function(){return this.b.cookie?(this.b.cookie||"").split(fj).length:0};
f.kg=function(a){for(var b=gj(this).us,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=gj(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function gj(a){a=(a.b.cookie||"").split(fj);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,us:c}}var hj=new ej(document);hj.g=3950;function ij(a,b){hj.set(""+a,b,void 0,"/","youtube.com")};function jj(){var a=kj(),b=lj();C(a,b);mj()&&Hb(a,b);a=nj(a);D(a)?hj.remove("remote_sid","/","youtube.com"):ij("remote_sid",a.join(","))}function kj(){var a=si("yt-remote-connected-devices")||[];Cb(a);return a}function nj(a){if(D(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return B(a,function(a,b){return 0==b?a:a.substring(c.length)})}function oj(a){pi("yt-remote-connected-devices",a,86400)}
function lj(){if(pj)return pj;var a=si("yt-remote-device-id");a||(a=Vi(),pi("yt-remote-device-id",a,31536E3));for(var b=kj(),c=1,d=a;C(b,d);)c++,d=a+"#"+c;return pj=d}function qj(){return si("yt-remote-session-browser-channel")}function mj(){return si("yt-remote-session-screen-id")}
function rj(a){5<a.length&&(a=a.slice(a.length-5));var b=B(sj(),function(a){return a.loungeToken}),c=B(a,function(a){return a.loungeToken});kb(c,function(a){return!C(b,a)})&&pi("yt-remote-lounge-token-expiration",!0,86400);pi("yt-remote-local-screens",a,31536E3)}function sj(){return si("yt-remote-local-screens")||[]}function tj(){return si("yt-remote-online-screens")||[]}function vj(a){pi("yt-remote-online-dial-devices",a,30)}function wj(){return si("yt-remote-online-dial-devices")||[]}
function xj(a){a||ti("yt-remote-session-screen-id");jj();a=kj();rb(a,lj());oj(a)}var pj="";function yj(){return!!si("yt-remote-cast-installed")}function zj(){var a=si("yt-remote-cast-receiver");return a?a.friendlyName:null}function Aj(){return yj()?Cj()?Dj.getCastSession():(Bj("getCastSelector: Cast is not initialized."),null):(Bj("getCastSelector: Cast API is not installed!"),null)}
function Ej(){yj()?Cj()?Fj()?(Ah("cloudview","Requesting cast selector."),Dj.requestSession()):(Ah("cloudview","Wait for cast API to be ready to request the session."),Gj.push(Vh("yt-remote-cast2-api-ready",Ej))):Bj("requestCastSelector: Cast is not initialized."):Bj("requestCastSelector: Cast API is not installed!")}function Hj(a){Fj()?Cj().setLaunchParams(a):Bj("setLaunchParams called before ready.")}var Dj=null;function Cj(){Dj||(Dj=q("yt.mdx.remote.cloudview.instance_"));return Dj}
function Bj(a){Ah("cloudview",a)}function Fj(){return!!q("yt.mdx.remote.cloudview.apiReady_")}var Gj=[];function Ij(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||"")}Ij.prototype.id="";Ij.prototype.name="";Ij.prototype.app="";Ij.prototype.type="REMOTE_CONTROL";Ij.prototype.b="";Ij.prototype.equals=function(a){return a?this.id==a.id:!1};function Jj(a,b){this.action=a;this.params=b||null};function Kj(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Lj(a){Ah("CAST",a)}function xh(a){var b=Mj();b&&b.logMessage&&b.logMessage(a)}function Nj(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Oj.length;)Oj.shift()()}
function Pj(){if(!q("yt.mdx.remote.castv2_")&&!Qj&&(D(Rj)&&wb(Rj,wj()),Kj())){var a=Mj();a?(a.removeReceiverListener("YouTube",Sj),a.addReceiverListener("YouTube",Sj),Lj("API initialized in the other binary")):(a=new cast.Api,Tj(a),a.addReceiverListener("YouTube",Sj),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){L(function(){window.location.reload(!0)},1E3)}),wh(),Lj("API initialized"));Qj=!0}}
function Uj(){var a=Mj();if(a){Lj("API disposed");var b=q("yt.mdx.remote.debug.handlers_");rb(b||[],xh);a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(ca);a.removeReceiverListener("YouTube",Sj);Tj(null)}Qj=!1;Oj=null;Ug(window,"message",Nj)}function Vj(a){var b=mb(Rj,function(b){return b.id==a.id});0<=b&&(Rj[b]=Ti(a))}
function Sj(a){a.length&&Lj("Updating receivers: "+rf(a));Wj(a);Yh("yt-remote-cast-device-list-update");z(Xj(),function(a){Yj(a.id)});z(a,function(a){if(a.isTabProjected){var c=Zj(a.id);Lj("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");L(function(){Yh("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function ak(a,b){Lj("Updating "+a+" activity status: "+rf(b));var c=Zj(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=""),Vj(c),Yh("yt-remote-cast-device-status-update",c)):Lj("Device not found")}function Xj(){Pj();return Yi(Rj)}
function Wj(a){a=B(a,function(a){var c={id:a.id,name:La(a.name)};if(a=Zj(a.id))c.activityId=a.activityId,c.status=a.status;return c});pb(Rj);wb(Rj,a)}function Zj(a){var b=Xj();return lb(b,function(b){return b.id==a})||null}function Yj(a){var b=Zj(a),c=Mj();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");ak(a,b)})}
function bk(a){Pj();var b=Zj(a),c=Mj();c&&b&&b.activityId?(Lj("Stopping cast activity"),c.stopActivity(b.activityId,qa(ak,a))):Lj("Dropping cast activity stop")}function Mj(){return q("yt.mdx.remote.castapi.api_")}function Tj(a){ba("yt.mdx.remote.castapi.api_",a,void 0)}var Qj=!1,Oj=null,Rj=q("yt.mdx.remote.castapi.devices_")||[];ba("yt.mdx.remote.castapi.devices_",Rj,void 0);function ck(a){this.b=new Ed;if(a){a=Kd(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function dk(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+la(a):b.substr(0,1)+a}f=ck.prototype;f.Na=function(){return this.b.Na()};f.add=function(a){this.b.set(dk(a),a)};f.removeAll=function(a){a=Kd(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.b.remove(dk(a))};f.clear=function(){this.b.clear()};f.isEmpty=function(){return this.b.isEmpty()};
f.contains=function(a){return Gd(this.b,dk(a))};f.Qa=function(){return this.b.Qa()};f.clone=function(){return new ck(this)};f.equals=function(a){return this.Na()==Jd(a)&&ek(this,a)};function ek(a,b){var c=Jd(b);if(a.Na()>c)return!1;!(b instanceof ck)&&5<c&&(b=new ck(b));return Nd(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.kg?c.kg(a):ha(c)||r(c)?C(c,a):Vb(c,a)})}f.Wb=function(){return this.b.Wb(!1)};function fk(){};function gk(){this.b=v()}new gk;gk.prototype.set=function(a){this.b=a};gk.prototype.reset=function(){this.set(v())};gk.prototype.get=function(){return this.b};function S(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1;this.Rr=!0}S.prototype.J=function(){};S.prototype.dispose=function(){};S.prototype.stopPropagation=function(){this.g=!0};S.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Rr=!1};function hk(a){a.stopPropagation()};var ik=!rc||Dc(9),jk=rc&&!Cc("9");!tc||Cc("528");sc&&Cc("1.9b")||rc&&Cc("8")||qc&&Cc("9.5")||tc&&Cc("528");sc&&!Cc("8")||rc&&Cc("9");var kk="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function lk(a,b){S.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(lk,S);f=lk.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(sc){var e;t:{try{Df(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(){lk.G.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};
f.preventDefault=function(){lk.G.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,jk)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.uC=function(){return this.b};f.J=function(){};var mk="closure_listenable_"+(1E6*Math.random()|0);function nk(a){return!(!a||!a[mk])}var ok=0;function pk(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.Tf=!!d;this.Pc=e;this.key=++ok;this.removed=this.zj=!1}function qk(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Pc=null};function rk(a){this.src=a;this.b={};this.g=0}rk.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=sk(a,b,d,e);-1<h?(b=a[h],c||(b.zj=!1)):(b=new pk(b,this.src,g,!!d,e),b.zj=c,a.push(b));return b};rk.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=sk(e,b,c,d);return-1<b?(qk(e[b]),sb(e,b),0==e.length&&(delete this.b[a],this.g--),!0):!1};
function tk(a,b){var c=b.type;if(!(c in a.b))return!1;var d=rb(a.b[c],b);d&&(qk(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d}rk.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,qk(d[e]);delete this.b[c];this.g--}return b};function uk(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=sk(a,c,d,e));return-1<b?a[b]:null}
function sk(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.Tf==!!c&&g.Pc==d)return e}return-1};var vk="closure_lm_"+(1E6*Math.random()|0),wk={},xk=0;function yk(a,b,c,d,e){if(ga(b)){for(var g=0;g<b.length;g++)yk(a,b[g],c,d,e);return null}c=zk(c);return nk(a)?a.listen(b,c,d,e):Ak(a,b,c,!1,d,e)}function Ak(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=Bk(a);k||(a[vk]=k=new rk(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=Ck();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(Dk(b.toString()),d);xk++;return c}
function Ck(){var a=Ek,b=ik?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 Fk(a,b,c,d,e){if(ga(b)){for(var g=0;g<b.length;g++)Fk(a,b[g],c,d,e);return null}c=zk(c);return nk(a)?a.Fd.add(String(b),c,!0,d,e):Ak(a,b,c,!0,d,e)}function Gk(a,b,c,d,e){if(ga(b))for(var g=0;g<b.length;g++)Gk(a,b[g],c,d,e);else c=zk(c),nk(a)?a.Fa(b,c,d,e):a&&(a=Bk(a))&&(b=uk(a,b,c,!!d,e))&&Hk(b)}
function Hk(a){if(ia(a)||!a||a.removed)return!1;var b=a.src;if(nk(b))return tk(b.Fd,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.Tf):b.detachEvent&&b.detachEvent(Dk(c),d);xk--;(c=Bk(b))?(tk(c,a),0==c.g&&(c.src=null,b[vk]=null)):qk(a);return!0}function Dk(a){return a in wk?wk[a]:wk[a]="on"+a}function Ik(a,b,c,d){var e=1;if(a=Bk(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Tf==c&&!g.removed&&(e&=!1!==Jk(g,d))}return Boolean(e)}
function Jk(a,b){var c=a.listener,d=a.Pc||a.src;a.zj&&Hk(a);return c.call(d,b)}
function Ek(a,b){if(a.removed)return!0;if(!ik){var c=b||q("window.event"),d=new lk(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&=Ik(c[k],g,!0,d);for(k=0;!d.g&&k<c.length;k++)d.currentTarget=c[k],e&=Ik(c[k],g,!1,d)}return e}return Jk(a,new lk(b,this))}
function Bk(a){a=a[vk];return a instanceof rk?a:null}var Kk="__closure_events_fn_"+(1E9*Math.random()>>>0);function zk(a){if(ja(a))return a;a[Kk]||(a[Kk]=function(b){return a.handleEvent(b)});return a[Kk]};function T(){this.Fd=new rk(this);this.la=this;this.V=null}w(T,Kh);T.prototype[mk]=!0;f=T.prototype;f.gi=function(a){this.V=a};f.addEventListener=function(a,b,c,d){yk(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Gk(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.la;d=a.type||a;if(r(a))a=new S(a,c);else if(a instanceof S)a.target=a.target||c;else{var e=a;a=new S(d,c);ec(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=Lk(g,d,!0,a)&&e;a.g||(g=a.currentTarget=c,e=Lk(g,d,!0,a)&&e,a.g||(e=Lk(g,d,!1,a)&&e));if(b)for(h=0;!a.g&&h<b.length;h++)g=a.currentTarget=b[h],e=Lk(g,d,!1,a)&&e;return e};
f.J=function(){T.G.J.call(this);this.removeAllListeners();this.V=null};f.listen=function(a,b,c,d){return this.Fd.add(String(a),b,!1,c,d)};f.Fa=function(a,b,c,d){return this.Fd.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.Fd?this.Fd.removeAll(a):0};
function Lk(a,b,c,d){b=a.Fd.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.Tf==c){var k=h.listener,l=h.Pc||h.src;h.zj&&tk(a.Fd,h);e=!1!==k.call(l,d)&&e}}return e&&!1!=d.Rr};function Mk(a,b){this.g=new tf(a);this.b=b?qf:pf}Mk.prototype.stringify=function(a){return sf(this.g,a)};Mk.prototype.parse=function(a){return this.b(a)};function Nk(a){this.g=0;this.j=a||100;this.b=[]}f=Nk.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=Ok(this,a);return this.b[a]};f.set=function(a,b){a=Ok(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.kg=function(a){for(var b=this.Na(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Ok(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 Pk(a,b){T.call(this);this.b=a||1;this.g=b||m;this.j=t(this.bz,this);this.k=v()}w(Pk,T);f=Pk.prototype;f.dd=!1;f.wc=null;function Qk(a,b){a.b=b;a.wc&&a.dd?(a.stop(),a.start()):a.wc&&a.stop()}f.bz=function(){if(this.dd){var a=v()-this.k;0<a&&a<.8*this.b?this.wc=this.g.setTimeout(this.j,this.b-a):(this.wc&&(this.g.clearTimeout(this.wc),this.wc=null),this.S("tick"),this.dd&&(this.wc=this.g.setTimeout(this.j,this.b),this.k=v()))}};
f.start=function(){this.dd=!0;this.wc||(this.wc=this.g.setTimeout(this.j,this.b),this.k=v())};f.stop=function(){this.dd=!1;this.wc&&(this.g.clearTimeout(this.wc),this.wc=null)};f.J=function(){Pk.G.J.call(this);this.stop();delete this.g};function Rk(a,b,c){if(ja(a))c&&(a=t(a,c));else if(a&&"function"==typeof a.handleEvent)a=t(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function Sk(a){m.clearTimeout(a)};function Tk(a,b,c){this.k=a;this.j=b;this.g=c;this.b=t(this.dz,this)}w(Tk,Kh);f=Tk.prototype;f.mg=!1;f.Nh=0;f.We=null;function Uk(a){a.We||a.Nh?a.mg=!0:Vk(a)}f.stop=function(){this.We&&(Sk(this.We),this.We=null,this.mg=!1)};f.pause=function(){this.Nh++};f.resume=function(){this.Nh--;this.Nh||!this.mg||this.We||(this.mg=!1,Vk(this))};f.J=function(){Tk.G.J.call(this);this.stop()};f.dz=function(){this.We=null;this.mg&&!this.Nh&&(this.mg=!1,Vk(this))};function Vk(a){a.We=Rk(a.b,a.j);a.k.call(a.g)};function Wk(a){this.j=a;this.g={}}w(Wk,Kh);var Xk=[];f=Wk.prototype;f.listen=function(a,b,c,d){return Yk(this,a,b,c,d)};function Zk(a,b,c,d,e){Yk(a,b,c,d,!1,e)}function Yk(a,b,c,d,e,g){ga(c)||(c&&(Xk[0]=c.toString()),c=Xk);for(var h=0;h<c.length;h++){var k=yk(b,c[h],d||a.handleEvent,e||!1,g||a.j||a);if(!k)break;a.g[k.key]=k}return a}function $k(a,b,c,d){al(a,b,c,d,void 0)}function bl(a,b,c,d,e){al(a,b,c,d,!1,e)}
function al(a,b,c,d,e,g){if(ga(c))for(var h=0;h<c.length;h++)al(a,b,c[h],d,e,g);else(b=Fk(b,c,d||a.handleEvent,e,g||a.j||a))&&(a.g[b.key]=b)}f.Fa=function(a,b,c,d,e){if(ga(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=zk(c),d=!!d,b=nk(a)?uk(a.Fd,String(b),c,d,e):a?(a=Bk(a))?uk(a,b,c,d,e):null:null,b&&(Hk(b),delete this.g[b.key]);return this};f.removeAll=function(){Ob(this.g,Hk);this.g={}};f.J=function(){Wk.G.J.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function cl(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 dl(){}dl.prototype.b=null;function el(a){var b;(b=a.b)||(b={},fl(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};var gl;function hl(){}w(hl,dl);function il(a){return(a=fl(a))?new ActiveXObject(a):new XMLHttpRequest}function fl(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}gl=new hl;function jl(a,b,c,d,e){this.b=a;this.j=c;this.B=d;this.A=e||1;this.kb=45E3;this.k=new Wk(this);this.g=new Pk;Qk(this.g,250)}f=jl.prototype;f.Je=null;f.Nc=!1;f.gg=null;f.Cn=null;f.ph=null;f.Yf=null;f.ie=null;f.ne=null;f.Ie=null;f.ib=null;f.Bh=0;f.Oc=null;f.Dj=null;f.Se=null;f.Ug=-1;f.Cr=!0;f.Xe=!1;f.Xm=0;f.jj=null;var kl={},ll={};f=jl.prototype;f.setTimeout=function(a){this.kb=a};function ml(a,b,c){a.Yf=1;a.ie=ye(b.clone());a.Ie=c;a.o=!0;nl(a,null)}
function ol(a,b,c,d,e){a.Yf=1;a.ie=ye(b.clone());a.Ie=null;a.o=c;e&&(a.Cr=!1);nl(a,d)}function nl(a,b){a.ph=v();pl(a);a.ne=a.ie.clone();we(a.ne,"t",a.A);a.Bh=0;a.ib=a.b.nn(a.b.nh()?b:null);0<a.Xm&&(a.jj=new Tk(t(a.Yr,a,a.ib),a.Xm));a.k.listen(a.ib,"readystatechange",a.zB);var c=a.Je?bc(a.Je):{};a.Ie?(a.Dj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.ib.send(a.ne,a.Dj,a.Ie,c)):(a.Dj="GET",a.Cr&&!tc&&(c.Connection="close"),a.ib.send(a.ne,a.Dj,null,c));a.b.Mc(1)}
f.zB=function(a){a=a.target;var b=this.jj;b&&3==ql(a)?Uk(b):this.Yr(a)};
f.Yr=function(a){try{if(a==this.ib)t:{var b=ql(this.ib),c=this.ib.g,d=this.ib.getStatus();if(rc&&!Dc(10)||tc&&!Cc("420+")){if(4>b)break t}else if(3>b||3==b&&!qc&&!rl(this.ib))break t;this.Xe||4!=b||7==c||(8==c||0>=d?this.b.Mc(3):this.b.Mc(2));sl(this);var e=this.ib.getStatus();this.Ug=e;var g=rl(this.ib);(this.Nc=200==e)?(4==b&&tl(this),this.o?(ul(this,b,g),qc&&this.Nc&&3==b&&(this.k.listen(this.g,"tick",this.pz),this.g.start())):vl(this,g),this.Nc&&!this.Xe&&(4==b?this.b.ij(this):(this.Nc=!1,pl(this)))):
(this.Se=400==e&&0<g.indexOf("Unknown SID")?3:0,wl(),tl(this),xl(this))}}catch(h){this.ib&&rl(this.ib)}finally{}};function ul(a,b,c){for(var d=!0;!a.Xe&&a.Bh<c.length;){var e=yl(a,c);if(e==ll){4==b&&(a.Se=4,wl(),d=!1);break}else if(e==kl){a.Se=4;wl();d=!1;break}else vl(a,e)}4==b&&0==c.length&&(a.Se=1,wl(),d=!1);a.Nc=a.Nc&&d;d||(tl(a),xl(a))}f.pz=function(){var a=ql(this.ib),b=rl(this.ib);this.Bh<b.length&&(sl(this),ul(this,a,b),this.Nc&&4!=a&&pl(this))};
function yl(a,b){var c=a.Bh,d=b.indexOf("\n",c);if(-1==d)return ll;c=Number(b.substring(c,d));if(isNaN(c))return kl;d+=1;if(d+c>b.length)return ll;var e=b.substr(d,c);a.Bh=d+c;return e}
function zl(a,b){a.ph=v();pl(a);var c=b?window.location.hostname:"";a.ne=a.ie.clone();K(a.ne,"DOMAIN",c);K(a.ne,"t",a.A);try{a.Oc=new ActiveXObject("htmlfile")}catch(d){tl(a);a.Se=7;wl();xl(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=t(a.QB,a);a.Oc.parentWindow.d=t(a.bs,a,!0);a.Oc.parentWindow.rpcClose=t(a.bs,a,!1);c=a.Oc.createElement("div");a.Oc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.ne+'"></iframe>';a.b.Mc(1)}f.QB=function(a){Al(t(this.WE,this,a),0)};f.WE=function(a){this.Xe||(sl(this),vl(this,a),pl(this))};f.bs=function(a){Al(t(this.VE,this,a),0)};f.VE=function(a){this.Xe||(tl(this),this.Nc=a,this.b.ij(this),this.b.Mc(4))};f.cancel=function(){this.Xe=!0;tl(this)};function pl(a){a.Cn=v()+a.kb;Bl(a,a.kb)}function Bl(a,b){if(null!=a.gg)throw Error("WatchDog timer not null");a.gg=Al(t(a.pE,a),b)}
function sl(a){a.gg&&(m.clearTimeout(a.gg),a.gg=null)}f.pE=function(){this.gg=null;var a=v();0<=a-this.Cn?(2!=this.Yf&&this.b.Mc(3),tl(this),this.Se=2,wl(),xl(this)):Bl(this,this.Cn-a)};function xl(a){a.b.is()||a.Xe||a.b.ij(a)}function tl(a){sl(a);Mh(a.jj);a.jj=null;a.g.stop();a.k.removeAll();if(a.ib){var b=a.ib;a.ib=null;Cl(b);b.dispose()}a.Oc&&(a.Oc=null)}function vl(a,b){try{a.b.ls(a,b),a.b.Mc(4)}catch(c){}};function Dl(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;El(a,b,function(e){e?c(!0):m.setTimeout(function(){Dl(a,b,c,d,g)},g)})}}function El(a,b,c){var d=new Image;d.onload=function(){try{Fl(d),c(!0)}catch(a){}};d.onerror=function(){try{Fl(d),c(!1)}catch(a){}};d.onabort=function(){try{Fl(d),c(!1)}catch(a){}};d.ontimeout=function(){try{Fl(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function Fl(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function Gl(a){this.b=a;this.g=new Mk(null,!0)}f=Gl.prototype;f.Im=null;f.Zb=null;f.yj=!1;f.zr=null;f.xj=null;f.bn=null;f.yn=null;f.yc=null;f.Jd=-1;f.sh=null;f.yh=null;f.connect=function(a){this.yn=a;a=Hl(this.b,null,this.yn);wl();this.zr=v();var b=this.b.C;null!=b?(this.sh=b[0],(this.yh=b[1])?(this.yc=1,Il(this)):(this.yc=2,Jl(this))):(we(a,"MODE","init"),this.Zb=new jl(this,0,void 0,void 0,void 0),this.Zb.Je=this.Im,ol(this.Zb,a,!1,null,!0),this.yc=0)};
function Il(a){var b=Hl(a.b,a.yh,"/mail/images/cleardot.gif");ye(b);Dl(b.toString(),5E3,t(a.bC,a),3,2E3);a.Mc(1)}f.bC=function(a){if(a)this.yc=2,Jl(this);else{wl();var b=this.b;b.Jc=b.ke.Jd;Kl(b,9)}a&&this.Mc(2)};
function Jl(a){var b=a.b.D;if(null!=b)wl(),b?(wl(),Ll(a.b,a,!1)):(wl(),Ll(a.b,a,!0));else if(a.Zb=new jl(a,0,void 0,void 0,void 0),a.Zb.Je=a.Im,b=a.b,b=Hl(b,b.nh()?a.sh:null,a.yn),wl(),!rc||Dc(10))we(b,"TYPE","xmlhttp"),ol(a.Zb,b,!1,a.sh,!1);else{we(b,"TYPE","html");var c=a.Zb;a=Boolean(a.sh);c.Yf=3;c.ie=ye(b.clone());zl(c,a)}}f.nn=function(a){return this.b.nn(a)};f.is=function(){return!1};
f.ls=function(a,b){this.Jd=a.Ug;if(0==this.yc)if(b){try{var c=this.g.parse(b)}catch(d){c=this.b;c.Jc=this.Jd;Kl(c,2);return}this.sh=c[0];this.yh=c[1]}else c=this.b,c.Jc=this.Jd,Kl(c,2);else if(2==this.yc)if(this.yj)wl(),this.bn=v();else if("11111"==b){if(wl(),this.yj=!0,this.xj=v(),c=this.xj-this.zr,!rc||Dc(10)||500>c)this.Jd=200,this.Zb.cancel(),wl(),Ll(this.b,this,!0)}else wl(),this.xj=this.bn=v(),this.yj=!1};
f.ij=function(){this.Jd=this.Zb.Ug;if(this.Zb.Nc)0==this.yc?this.yh?(this.yc=1,Il(this)):(this.yc=2,Jl(this)):2==this.yc&&(a=!1,(a=!rc||Dc(10)?this.yj:200>this.bn-this.xj?!1:!0)?(wl(),Ll(this.b,this,!0)):(wl(),Ll(this.b,this,!1)));else{0==this.yc?wl():2==this.yc&&wl();var a=this.b;a.Jc=this.Jd;Kl(a,2)}};f.nh=function(){return this.b.nh()};f.Mc=function(a){this.b.Mc(a)};function Ml(a){T.call(this);this.headers=new Ed;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(Ml,T);var Nl=/^https?$/i,Ol=["POST","PUT"];function Pl(a,b){a.o=Math.max(0,b)}f=Ml.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?il(this.M):il(gl);this.I=this.M?el(this.M):el(gl);this.b.onreadystatechange=t(this.Qo,this);try{fk(Ql(this,"Opening Xhr")),this.N=!0,this.b.open(b,String(a),!0),this.N=!1}catch(e){fk(Ql(this,"Error opening Xhr: "+e.message));Rl(this,e);return}a=c||"";var g=this.headers.clone();
d&&Md(d,function(a,b){g.set(b,a)});d=lb(g.Ma(),Sl);c=m.FormData&&a instanceof m.FormData;!C(Ol,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{Tl(this),0<this.o&&(this.F=Ul(this.b),fk(Ql(this,"Will abort after "+this.o+"ms if incomplete, xhr2 "+this.F)),this.F?(this.b.timeout=this.o,this.b.ontimeout=t(this.kb,
this)):this.D=Rk(this.kb,this.o,this)),fk(Ql(this,"Sending request")),this.B=!0,this.b.send(a),this.B=!1}catch(h){fk(Ql(this,"Send error: "+h.message)),Rl(this,h)}};function Ul(a){return rc&&Cc(9)&&ia(a.timeout)&&n(a.ontimeout)}function Sl(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,Ql(this,this.A),this.S("timeout"),Cl(this,8))};
function Rl(a,b){a.j=!1;a.b&&(a.k=!0,a.b.abort(),a.k=!1);a.A=b;a.g=5;Vl(a);Wl(a)}function Vl(a){a.L||(a.L=!0,a.S("complete"),a.S("error"))}function Cl(a,b){a.b&&a.j&&(Ql(a,"Aborting"),a.j=!1,a.k=!0,a.b.abort(),a.k=!1,a.g=b||7,a.S("complete"),a.S("abort"),Wl(a))}f.J=function(){this.b&&(this.j&&(this.j=!1,this.k=!0,this.b.abort(),this.k=!1),Wl(this,!0));Ml.G.J.call(this)};f.Qo=function(){this.ga()||(this.N||this.B||this.k?Xl(this):this.MC())};f.MC=function(){Xl(this)};
function Xl(a){if(a.j&&"undefined"!=typeof aa)if(a.I[1]&&4==ql(a)&&2==a.getStatus())Ql(a,"Local request error detected and ignored");else if(a.B&&4==ql(a))Rk(a.Qo,0,a);else if(a.S("readystatechange"),4==ql(a)){Ql(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=Qd(String(a.C))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!Nl.test(g?g.toLowerCase():"")}c=e}if(c)a.S("complete"),a.S("success");else{a.g=6;var k;try{k=2<ql(a)?a.b.statusText:""}catch(l){k=""}a.A=k+" ["+a.getStatus()+"]";Vl(a)}}finally{Wl(a)}}}function Wl(a,b){if(a.b){Tl(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 Tl(a){a.b&&a.F&&(a.b.ontimeout=null);ia(a.D)&&(Sk(a.D),a.D=null)}function ql(a){return a.b?a.b.readyState:0}f.getStatus=function(){try{return 2<ql(this)?this.b.status:-1}catch(a){return-1}};
function rl(a){try{return a.b?a.b.responseText:""}catch(b){return""}}function Ql(a,b){return b+" ["+a.P+" "+a.C+" "+a.getStatus()+"]"};function Yl(a,b,c){this.B=a||null;this.b=1;this.g=[];this.k=[];this.o=new Mk(null,!0);this.C=b||null;this.D=null!=c?c:null}function Zl(a,b){this.b=a;this.map=b;this.context=null}f=Yl.prototype;f.Kh=null;f.Hb=null;f.bb=null;f.xm=null;f.aj=null;f.pr=null;f.rj=null;f.Zg=0;f.xB=0;f.Db=null;f.pe=null;f.Id=null;f.$e=null;f.ke=null;f.Wi=null;f.Ff=-1;f.Nr=-1;f.Jc=-1;f.Xg=0;f.$f=0;f.Oe=8;var $l=new T;function am(a){S.call(this,"statevent",a)}w(am,S);
function bm(a,b){S.call(this,"timingevent",a);this.size=b}w(bm,S);function cm(a){S.call(this,"serverreachability",a)}w(cm,S);f=Yl.prototype;f.connect=function(a,b,c,d,e){wl();this.xm=b;this.Kh=c||{};d&&n(e)&&(this.Kh.OSID=d,this.Kh.OAID=e);this.ke=new Gl(this);this.ke.Im=null;this.ke.g=this.o;this.ke.connect(a)};
f.disconnect=function(){dm(this);if(3==this.b){var a=this.Zg++,b=this.aj.clone();K(b,"SID",this.j);K(b,"RID",a);K(b,"TYPE","terminate");em(this,b);a=new jl(this,0,this.j,a,void 0);a.Yf=2;a.ie=ye(b.clone());(new Image).src=a.ie;a.ph=v();pl(a)}fm(this)};function dm(a){if(a.ke){var b=a.ke;b.Zb&&(b.Zb.cancel(),b.Zb=null);b.Jd=-1;a.ke=null}a.bb&&(a.bb.cancel(),a.bb=null);a.Id&&(m.clearTimeout(a.Id),a.Id=null);gm(a);a.Hb&&(a.Hb.cancel(),a.Hb=null);a.pe&&(m.clearTimeout(a.pe),a.pe=null)}
function hm(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");a.g.push(new Zl(a.xB++,b));2!=a.b&&3!=a.b||im(a)}f.is=function(){return 0==this.b};function im(a){a.Hb||a.pe||(a.pe=Al(t(a.as,a),0),a.Xg=0)}f.as=function(a){this.pe=null;jm(this,a)};
function jm(a,b){if(1==a.b){if(!b){a.Zg=Math.floor(1E5*Math.random());var c=a.Zg++,d=new jl(a,0,"",c,void 0);d.Je=null;var e=km(a),g=a.aj.clone();K(g,"RID",c);a.B&&K(g,"CVER",a.B);em(a,g);ml(d,g,e);a.Hb=d;a.b=2}}else 3==a.b&&(b?lm(a,b):0!=a.g.length&&(a.Hb||lm(a)))}
function lm(a,b){var c,d;b?6<a.Oe?(a.g=a.k.concat(a.g),a.k.length=0,c=a.Zg-1,d=km(a)):(c=b.B,d=b.Ie):(c=a.Zg++,d=km(a));var e=a.aj.clone();K(e,"SID",a.j);K(e,"RID",c);K(e,"AID",a.Ff);em(a,e);c=new jl(a,0,a.j,c,a.Xg+1);c.Je=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Hb=c;ml(c,e,d)}function em(a,b){if(a.Db){var c=a.Db.Dt(a);c&&Ob(c,function(a,c){K(b,c,a)})}}
function km(a){var b=Math.min(a.g.length,1E3),c=["count="+b],d;6<a.Oe&&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.Oe?e:g-d;try{Md(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 mm(a){a.bb||a.Id||(a.A=1,a.Id=Al(t(a.Ys,a),0),a.$f=0)}
function nm(a){if(a.bb||a.Id||3<=a.$f)return!1;a.A++;a.Id=Al(t(a.Ys,a),om(a,a.$f));a.$f++;return!0}f.Ys=function(){this.Id=null;this.bb=new jl(this,0,this.j,"rpc",this.A);this.bb.Je=null;this.bb.Xm=0;var a=this.pr.clone();K(a,"RID","rpc");K(a,"SID",this.j);K(a,"CI",this.Wi?"0":"1");K(a,"AID",this.Ff);em(this,a);if(!rc||Dc(10))K(a,"TYPE","xmlhttp"),ol(this.bb,a,!0,this.rj,!1);else{K(a,"TYPE","html");var b=this.bb,c=Boolean(this.rj);b.Yf=3;b.ie=ye(a.clone());zl(b,c)}};
function Ll(a,b,c){a.Wi=c;a.Jc=b.Jd;a.TD(1,0);a.aj=Hl(a,null,a.xm);im(a)}
f.ls=function(a,b){if(0!=this.b&&(this.bb==a||this.Hb==a))if(this.Jc=a.Ug,this.Hb==a&&3==this.b)if(7<this.Oe){var c;try{c=this.o.parse(b)}catch(d){c=null}if(ga(c)&&3==c.length)if(0==c[0])t:{if(!this.Id){if(this.bb)if(this.bb.ph+3E3<this.Hb.ph)gm(this),this.bb.cancel(),this.bb=null;else break t;nm(this);wl()}}else this.Nr=c[1],0<this.Nr-this.Ff&&37500>c[2]&&this.Wi&&0==this.$f&&!this.$e&&(this.$e=Al(t(this.GA,this),6E3));else Kl(this,11)}else"y2f%"!=b&&Kl(this,11);else if(this.bb==a&&gm(this),!xa(b)){c=
this.o.parse(b);ga(c);for(var e=0;e<c.length;e++){var g=c[e];this.Ff=g[0];g=g[1];2==this.b?"c"==g[0]?(this.j=g[1],this.rj=g[2],g=g[3],null!=g?this.Oe=g:this.Oe=6,this.b=3,this.Db&&this.Db.Mr(this),this.pr=Hl(this,this.nh()?this.rj:null,this.xm),mm(this)):"stop"==g[0]&&Kl(this,7):3==this.b&&("stop"==g[0]?Kl(this,7):"noop"!=g[0]&&this.Db&&this.Db.Lr(this,g),this.$f=0)}}};f.GA=function(){null!=this.$e&&(this.$e=null,this.bb.cancel(),this.bb=null,nm(this),wl())};
function gm(a){null!=a.$e&&(m.clearTimeout(a.$e),a.$e=null)}
f.ij=function(a){var b;if(this.bb==a)gm(this),this.bb=null,b=2;else if(this.Hb==a)this.Hb=null,b=1;else return;this.Jc=a.Ug;if(0!=this.b)if(a.Nc)1==b?(v(),$l.S(new bm($l,a.Ie?a.Ie.length:0)),im(this),this.k.length=0):mm(this);else{var c=a.Se,d;if(!(d=3==c||7==c||0==c&&0<this.Jc)){if(d=1==b)this.Hb||this.pe||1==this.b||2<=this.Xg?d=!1:(this.pe=Al(t(this.as,this,a),om(this,this.Xg)),this.Xg++,d=!0);d=!(d||2==b&&nm(this))}if(d)switch(c){case 1:Kl(this,5);break;case 4:Kl(this,10);break;case 3:Kl(this,
6);break;case 7:Kl(this,12);break;default:Kl(this,2)}}};function om(a,b){var c=5E3+Math.floor(1E4*Math.random());a.Db||(c*=2);return c*b}f.TD=function(a){if(!C(arguments,this.b))throw Error("Unexpected channel state: "+this.b);};function Kl(a,b){if(2==b||9==b){var c=null;a.Db&&(c=null);var d=t(a.bE,a);c||(c=new J("//www.google.com/images/cleardot.gif"),ye(c));El(c.toString(),1E4,d)}else wl();pm(a,b)}f.bE=function(a){a?wl():(wl(),pm(this,8))};function pm(a,b){a.b=0;a.Db&&a.Db.hs(a,b);fm(a);dm(a)}
function fm(a){a.b=0;a.Jc=-1;if(a.Db)if(0==a.k.length&&0==a.g.length)a.Db.Wm(a);else{var b=vb(a.k),c=vb(a.g);a.k.length=0;a.g.length=0;a.Db.Wm(a,b,c)}}function Hl(a,b,c){var d=ze(c);if(""!=d.Cb)b&&fe(d,b+"."+d.Cb),ge(d,d.af);else var e=window.location,d=Ae(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Kh&&Ob(a.Kh,function(a,b){K(d,b,a)});K(d,"VER",a.Oe);em(a,d);return d}f.nn=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Ml;a.O=!1;return a};
function Al(a,b){if(!ja(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Mc=function(){$l.S(new cm($l))};function wl(){$l.S(new am($l))}f.nh=function(){return!(!rc||Dc(10))};function qm(){}f=qm.prototype;f.Mr=function(){};f.Lr=function(){};f.hs=function(){};f.Wm=function(){};f.Dt=function(){return{}};function rm(a,b){Pk.call(this);if(ja(a))b&&(a=t(a,b));else if(a&&ja(a.handleEvent))a=t(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a;yk(this,"tick",t(this.A,this));this.stop();Qk(this,5E3+2E4*Math.random())}w(rm,Pk);rm.prototype.o=0;rm.prototype.A=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);Qk(this,a)}this.B()};rm.prototype.start=function(){rm.G.start.call(this);this.o=v()+this.b};rm.prototype.stop=function(){this.o=0;rm.G.stop.call(this)};function sm(a,b){this.I=a;this.k=b;this.j=new Ph;this.g=new rm(this.iv,this);this.b=null;this.F=!1;this.A=null;this.D="";this.C=this.o=0;this.B=[]}w(sm,qm);f=sm.prototype;f.subscribe=function(a,b,c){return this.j.subscribe(a,b,c)};f.ha=function(a,b,c){return this.j.ha(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(),Mh(this.j))};f.ga=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 Yl("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.Db=null);d.Db=this;this.b=d;e?this.b.connect(a,b,this.k,e.j,e.Ff):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&&jm(this.b),this.b.disconnect());this.C=0};
f.sendMessage=function(a,b){var c={_sc:a};b&&ec(c,b);this.g.dd||2==(this.b?this.b.b:0)?this.B.push(c):this.b&&3==this.b.b&&hm(this.b,c)};f.Mr=function(){var a=this.g;a.stop();Qk(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)hm(this.b,a[b])}this.H("handlerOpened")};f.hs=function(a,b){var c=2==b&&401==this.b.Jc;if(4!=b&&!c){if(6==b||410==this.b.Jc)c=this.g,c.stop(),Qk(c,500);this.g.start()}this.H("handlerError",b)};
f.Wm=function(a,b,c){if(!this.g.dd)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&&ec(a,this.A);return a};f.Lr=function(a,b){if("S"==b[0])this.D=b[1];else if("gracefulReconnect"==b[0]){var c=this.g;c.stop();Qk(c,500);this.g.start();this.b.disconnect()}else this.H("handlerMessage",new Jj(b[0],b[1]))};f.getDeviceId=function(){return this.k.id};
f.iv=function(){this.g.stop();var a=this.b,b=0;a.bb&&b++;a.Hb&&b++;0!=b?this.g.start():this.connect(this.A,this.o)};function tm(){this.b=[];this.g=[]}function um(a){D(a.b)&&(a.b=a.g,a.b.reverse(),a.g=[])}function vm(a,b){a.g.push(b)}function wm(a){um(a);return a.b.pop()}f=tm.prototype;f.Na=function(){return this.b.length+this.g.length};f.isEmpty=function(){return D(this.b)&&D(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=gb(this.b,a);if(0>b)return rb(this.g,a);sb(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 xm(a){this.reset(a)}function ym(a,b){if(a.g)throw Error(b+" is not allowed in V3.");}function zm(a){a.volume=-1;a.muted=!1;a.j=null;a.b=-1;a.k=null;a.o=0;a.A=v()}xm.prototype.reset=function(a){this.Va=[];this.g="";Am(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 Am(a){a.index=-1;a.videoId="";zm(a)}function Bm(a){return a.g?a.videoId:a.Va[a.index]}function Cm(a,b){a.o=b;a.A=v()}function Dm(a){switch(a.b){case 1:return(v()-a.A)/1E3+a.o;case -1E3:return 0}return a.o}function Em(a,b){ym(a,"setVideoId");var c=a.index;a.index=fb(a.Va,b);c!=a.index&&zm(a)}function Fm(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&zm(a)}function Gm(a,b,c){ym(a,"setPlaylist");c=c||Bm(a);Fb(a.Va,b)&&c==Bm(a)||(a.Va=vb(b),Em(a,c))}
xm.prototype.add=function(a){ym(this,"add");return a&&!C(this.Va,a)?(this.Va.push(a),!0):!1};xm.prototype.remove=function(a){ym(this,"remove");var b=Bm(this);return rb(this.Va,a)?(this.index=fb(this.Va,b),!0):!1};function Hm(a){var b={};b.videoIds=vb(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=cc(a.j);b.playerTime=a.o;b.playerTimeAt=a.A;return b}xm.prototype.clone=function(){return new xm(Hm(this))};function Im(a,b){cj.call(this);this.b=0;this.k=a;this.B=[];this.A=new tm;this.o=NaN;this.j=this.g=null;this.F=t(this.pv,this);this.C=t(this.qi,this);this.D=t(this.ov,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Tk,this),Jm(this))):c=3;0!=c&&(b?this.Tk(c):L(t(function(){this.Tk(c)},this),0));Km(this,Aj())}w(Im,cj);function Lm(a){return new xm(a.k.getPlayerContextData())}f=Im.prototype;
f.play=function(){1==this.b?(this.g?this.g.play(null,ca,t(function(){this.Ah("Failed to play video with cast v2 channel.");Mm(this,"play")},this)):Mm(this,"play"),Nm(this,1,Dm(Lm(this))),Om(this)):Pm(this,this.play)};f.pause=function(){1==this.b?(this.g?this.g.pause(null,ca,t(function(){this.Ah("Failed to pause video with cast v2 channel.");Mm(this,"pause")},this)):Mm(this,"pause"),Nm(this,2,Dm(Lm(this))),Om(this)):Pm(this,this.pause)};
f.Hr=function(a){if(1==this.b){if(this.g){var b=Lm(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,t(function(){this.Ah("Failed to seek in video with cast v2 channel.");Mm(this,"seekTo",{newTime:a})},this))}else Mm(this,"seekTo",{newTime:a});Nm(this,3,a);Om(this)}else Pm(this,qa(this.Hr,a))};
f.stop=function(){if(1==this.b){this.g?this.g.stop(null,ca,t(function(){this.Ah("Failed to stop video with cast v2 channel.");Mm(this,"stopVideo")},this)):Mm(this,"stopVideo");var a=Lm(this);Am(a);Qm(this,a);Om(this)}else Pm(this,this.stop)};
f.setVolume=function(a,b){if(1==this.b){var c=Lm(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);Mm(this,"setVolume",d)}c.muted=b;c.volume=a;Qm(this,c);Om(this)}else Pm(this,qa(this.setVolume,a,b))};
f.wm=function(a,b){if(1==this.b){var c=Lm(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:rf(b.style)};ec(d,c.j);Mm(this,"setSubtitlesTrack",d)}else d={videoId:a},Mm(this,"setSubtitlesTrack",d);Qm(this,c)}else Pm(this,qa(this.wm,a,b))};
function Rm(a,b,c,d,e){var g=Lm(a);d=d||0;e={videoId:b,currentIndex:d,listId:e||g.g};Fm(g,b,d);n(c)&&(Cm(g,c),e.currentTime=c);Mm(a,"setPlaylist",e);Qm(a,g)}f.oi=function(a,b){if(1==this.b){var c=Lm(this);if(a!=Bm(c)){var d;ym(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},Mm(this,"insertVideo",d));Em(c,a);d={videoId:a};n(b)&&(Cm(c,b),d.currentTime=b);Mm(this,"setVideo",d);Qm(this,c)}}else Pm(this,qa(this.oi,a,b))};
f.Qk=function(a,b,c){if(1==this.b){var d=Lm(this),e=a==Bm(d),d=Fb(b,d.Va);e?d||(Mm(this,"updatePlaylist",{videoIds:b.join(",")}),a=Lm(this),Gm(a,b),Qm(this,a)):d?this.oi(a,c):(Mm(this,"setPlaylist",{videoIds:b.join(","),videoId:a,currentTime:c}),e=Lm(this),Cm(e,c),Gm(e,b,a),Qm(this,e))}else Pm(this,qa(this.Qk,a,b,c))};f.dispose=function(){if(3!=this.b){var a=this.b;this.b=3;this.H("proxyStateChange",a,this.b)}Im.G.dispose.call(this)};
f.J=function(){M(this.o);this.o=NaN;Sm(this);this.k=null;this.A.clear();Km(this,null);Im.G.J.call(this)};function Jm(a){z(["remotePlayerChange","remoteQueueChange"],function(a){this.B.push(this.k.subscribe(a,qa(this.PC,a),this))},a)}function Sm(a){z(a.B,function(a){this.k.unsubscribeByKey(a)},a);a.B.length=0}function Pm(a,b){50>a.A.Na()&&vm(a.A,b)}function Nm(a,b,c){var d=Lm(a);Cm(d,c);-1E3!=d.b&&(d.b=b);Qm(a,d)}function Mm(a,b,c){a.k.sendMessage(b,c)}
function Qm(a,b){Sm(a);a.k.setPlayerContextData(Hm(b));Jm(a)}f.Tk=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();)wm(this.A).apply(this);else 3==a&&this.dispose()}};function Om(a){M(a.o);a.o=L(t(function(){this.H("remotePlayerChange");this.o=NaN},a),2E3)}f.PC=function(a){("remotePlayerChange"!=a||isNaN(this.o))&&this.H(a)};
function Km(a,b){a.j&&(a.j.removeUpdateListener(a.F),a.j.removeMediaListener(a.C));a.j=b;a.j&&(Ah("CP","Setting cast session: "+a.j.sessionId),a.j.addUpdateListener(a.F),a.j.addMediaListener(a.C),a.j.media.length&&a.qi(a.j.media[0]))}
f.pv=function(a){if(!a)this.qi(null),Km(this,null);else if(this.j.receiver.volume){a=this.j.receiver.volume;var b=Lm(this);if(b.volume!=a.level||b.muted!=a.muted)Ah("CP","Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=a.level||0,b.muted=!!a.muted,Qm(this,b),Om(this)}};f.qi=function(a){Ah("CP","Cast media: "+!!a);this.g&&this.g.removeUpdateListener(this.D);if(this.g=a)this.g.addUpdateListener(this.D),Tm(this),Om(this)};
function Tm(a){var b=a.g.customData;if(a.g.media){var c=a.g.media,d=Lm(a);c.contentId!=d.videoId&&Ah("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;Cm(d,a.g.getEstimatedTime());Qm(a,d)}else Ah("CP","No cast media. Ignoring.")}f.ov=function(a){a?(Tm(this),Om(this)):this.qi(null)};f.Ah=function(a){Ah("CP",a)};function Um(a,b,c){cj.call(this);this.O=a;this.hd=[];this.hd.push(Q(window,"beforeunload",t(this.Qx,this)));this.j=[];this.b=new xm;3==c["mdx-version"]&&(this.b.g="RQ"+b.token);this.D=b.id;this.g=new sm(Ri(this.O,"/bc",void 0,!1),c);this.g.subscribe("handlerOpened",this.Vx,this);this.g.subscribe("handlerClosed",this.Rx,this);this.g.subscribe("handlerError",this.Sx,this);this.b.g?this.g.subscribe("handlerMessage",this.Tx,this):this.g.subscribe("handlerMessage",this.Ux,this);a=this.g;b=b.token;(a.k.loungeIdToken=
b)||a.g.stop()}w(Um,cj);f=Um.prototype;f.xh=NaN;f.On=NaN;f.$i=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;Cm(this.b,g);this.log_("Connecting with setPlaylist and params: "+rf(h));this.g.connect({method:"setPlaylist",params:rf(h)},
a,qj())}else this.log_("Connecting without params"),this.g.connect({},a,qj());Vm(this)};f.dispose=function(){this.ga()||Wm(this,3);Um.G.dispose.call(this)};f.J=function(){Xm(this);Ym(this);M(this.$i);this.$i=NaN;this.k=null;Rg(this.hd);this.hd.length=0;this.g.dispose();Um.G.J.call(this);this.j=this.b=this.g=null};f.log_=function(a){Ah("conn",a)};f.Qx=function(){this.A(2)};function Wm(a,b){a.H("proxyStateChange",b)}
function Vm(a){a.xh=L(t(function(){this.log_("Connecting timeout");this.A(1)},a),1E4)}function Xm(a){M(a.xh);a.xh=NaN}function Zm(a){Ym(a);a.On=L(t(function(){this.o("getNowPlaying")},a),2E4)}function Ym(a){M(a.On);a.On=NaN}function $m(a){var b=a.g;return!!b.b&&3==b.b.b&&isNaN(a.xh)}
f.Vx=function(){this.log_("Channel opened");var a=this.g,b=this.D;pi("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.b.Wi,sessionId:a.b.j,arrayId:a.b.Ff});pi("yt-remote-session-screen-id",b);a=kj();b=lj();C(a,b)||a.push(b);oj(a);jj()};f.Rx=function(){this.log_("Channel closed");isNaN(this.xh)?xj(!0):xj();this.dispose()};
f.Sx=function(a){xj();isNaN(this.B())?(this.log_("Channel error: "+a+" without reconnection"),this.dispose()):(this.log_("Channel error: "+a+" with reconnection in "+this.B()+" ms"),Wm(this,2))};function an(a,b){b==$m(a)?b&&Wm(a,1):b?(Xm(a),a.C()&&a.b.reset(),Wm(a,1),a.o("getNowPlaying")):a.A(1)}function bn(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.b.videoId&&(Zb(b.params)?a.b.j=null:a.b.j=b.params,a.H("remotePlayerChange"))}
function cn(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.b.g=b.params.listId;Fm(a.b,c,d);a.H("remoteQueueChange")}function dn(a,b){cn(a,b);en(a,b)}
function en(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);Cm(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=pf(b.params.currentError).reason||d));a.b.k=d;1==a.b.b?Zm(a):Ym(a);a.H("remotePlayerChange")}function fn(a,b){var c="true"==b.params.muted;a.b.volume=parseInt(b.params.volume,10);a.b.muted=c;a.H("remotePlayerChange")}
f.Tx=function(a){a.params?this.log_("Received: action="+a.action+", params="+rf(a.params)):this.log_("Received: action="+a.action);switch(a.action){case "loungeStatus":a=pf(a.params.devices);this.j=B(a,function(a){return new Ij(a)});a=!!lb(this.j,function(a){return"LOUNGE_SCREEN"==a.type});an(this,a);break;case "loungeScreenConnected":an(this,!0);break;case "loungeScreenDisconnected":tb(this.j,function(a){return"LOUNGE_SCREEN"==a.type});an(this,!1);break;case "remoteConnected":var b=new Ij(pf(a.params.device));
lb(this.j,function(a){return a.equals(b)})||qb(this.j,b);break;case "remoteDisconnected":b=new Ij(pf(a.params.device));tb(this.j,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":cn(this,a);break;case "nowPlaying":dn(this,a);break;case "onStateChange":en(this,a);break;case "onVolumeChanged":fn(this,a);break;case "onSubtitlesTrackChanged":bn(this,a);break;default:this.log_("Unrecognized action: "+a.action)}};
f.Ux=function(a){a.params?this.log_("Received: action="+a.action+", params="+rf(a.params)):this.log_("Received: action="+a.action);gn(this,a);hn(this,a);if($m(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=pf(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==Bm(this.b)&&
(delete a.params.videoId,Zb(a.params)?this.b.j=null:this.b.j=a.params,this.H("remotePlayerChange"));else if(Bm(this.b)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=Bm(this.b)):Em(this.b,""),e&&(e=e.split(","),Gm(this.b,e,d))):Gm(this.b,[]),this.b.add(d)&&this.o("getPlaylist"),d&&Em(this.b,d),b.index==this.b.index&&Fb(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?Zm(this):Ym(this)),"onError"!=a.action||-1!=this.b.b&&-1E3!=this.b.b||(a=pf(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==Bm(this.b)&&(this.b.b=-1E3,this.b.k=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),Cm(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 gn(a,b){switch(b.action){case "loungeStatus":var c=pf(b.params.devices);a.j=B(c,function(a){return new Ij(a)});break;case "loungeScreenDisconnected":tb(a.j,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new Ij(pf(b.params.device));lb(a.j,function(a){return a.equals(d)})||qb(a.j,d);break;case "remoteDisconnected":d=new Ij(pf(b.params.device)),tb(a.j,function(a){return a.equals(d)})}}
function hn(a,b){var c=!1;if("loungeStatus"==b.action)c=!!lb(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==$m(a)?c&&Wm(a,1):c?(Xm(a),a.C()&&a.b.reset(),Wm(a,1),a.o("getNowPlaying")):a.A(1)}f.Ly=function(){if(this.k){var a=this.k;this.k=null;this.b.videoId!=a&&this.o("getNowPlaying")}};Um.prototype.subscribe=Um.prototype.subscribe;Um.prototype.unsubscribeByKey=Um.prototype.Ib;
Um.prototype.L=function(){var a=3;this.ga()||(a=0,isNaN(this.B())?$m(this)&&(a=1):a=2);return a};Um.prototype.getProxyState=Um.prototype.L;Um.prototype.A=function(a){this.log_("Disconnecting with "+a);1==a&&xj();this.g.disconnect(a);this.dispose()};Um.prototype.disconnect=Um.prototype.A;Um.prototype.I=function(){var a=this.b;this.k&&(a=this.b.clone(),Fm(a,this.k,a.index));return Hm(a)};Um.prototype.getPlayerContextData=Um.prototype.I;
Um.prototype.N=function(a){var b=new xm(a);b.videoId&&b.videoId!=this.b.videoId&&(this.k=b.videoId,M(this.$i),this.$i=L(t(this.Ly,this),5E3));var c=[];this.b.g==b.g&&this.b.videoId==b.videoId&&this.b.index==b.index&&Fb(this.b.Va,b.Va)||c.push("remoteQueueChange");this.b.b==b.b&&this.b.volume==b.volume&&this.b.muted==b.muted&&Dm(this.b)==Dm(b)&&rf(this.b.j)==rf(b.j)||c.push("remotePlayerChange");this.b.reset(a);z(c,function(a){this.H(a)},this)};Um.prototype.setPlayerContextData=Um.prototype.N;
Um.prototype.F=function(){return this.g.k.loungeIdToken};Um.prototype.getLoungeToken=Um.prototype.F;Um.prototype.C=function(){var a=this.g.getDeviceId(),b=lb(this.j,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};Um.prototype.getOtherConnectedRemoteId=Um.prototype.C;Um.prototype.B=function(){var a=this.g;return a.g.dd?a.g.o-v():NaN};Um.prototype.getReconnectTimeout=Um.prototype.B;Um.prototype.P=function(){if(!isNaN(this.B())){var a=this.g.g;a.dd&&(a.stop(),a.start(),a.A())}};
Um.prototype.reconnect=Um.prototype.P;Um.prototype.o=function(a,b){b?this.log_("Sending: action="+a+", params="+rf(b)):this.log_("Sending: action="+a);this.g.sendMessage(a,b)};Um.prototype.sendMessage=Um.prototype.o;function jn(a){cj.call(this);this.k=a;this.Kc=Hh(sj());this.log_("Initializing local screens: "+Jh(this.Kc));this.j=kn();this.log_("Initializing account screens: "+Jh(this.j));this.jm=null;this.b=[];this.g=[];ln(this,Xj()||[]);this.log_("Initializing DIAL devices: "+Ui(this.g));a=Hh(tj());mn(this,a);this.log_("Initializing online screens: "+Jh(this.b));this.o=v()+3E5;nn(this)}w(jn,cj);var on=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=jn.prototype;f.Hh=NaN;f.Lj="";f.log_=function(a){Ah("RM",a)};
f.Ah=function(a){Ah("RM",a)};function kn(){var a=Hh(sj()),b=Hh(tj());return hb(b,function(b){return!aj(a,b)})}function nn(a){Vh("yt-remote-cast-device-list-update",function(){var a=Xj();ln(this,a||[])},a);Vh("yt-remote-cast-device-status-update",a.iD,a);a.Ws();var b=v()>a.o?2E4:1E4;Ve(t(a.Ws,a),b)}f.H=function(a,b){if(this.ga())return!1;this.log_("Firing "+a);return this.M.H.apply(this.M,arguments)};
f.Ws=function(){var a=Xj()||[];D(a)||ln(this,a);a=pn(this);D(a)||(jb(a,function(a){return!aj(this.j,a)},this)&&!si("yt-remote-lounge-token-expiration")?qn(this):rn(this,a))};function sn(a,b){var c=pn(a);return hb(b,function(a){return a.uuid?(a=$i(this.g,a.uuid),!!a&&"RUNNING"==a.status):!!aj(c,a)},a)}
function ln(a,b){var c=!1;z(b,function(a){var b=bj(this.Kc,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."),tn(a));vj(Xi(b));var d=!Fb(a.g,b,Zi);d&&a.log_("Updating DIAL devices: "+Ui(a.g)+" to "+Ui(b));a.g=b;mn(a,a.b);d&&a.H("onlineReceiverChange")}
f.iD=function(a){var b=$i(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,vj(Xi(this.g)));mn(this,this.b)};function mn(a,b,c){var d=sn(a,b),e=!Fb(a.b,d,Eh);!e&&!c||D(b)||(b=B(d,Fh),pi("yt-remote-online-screens",b,60));e&&(a.log_("Updating online screens: "+Jh(a.b)+" -> "+Jh(d)),a.b=d,a.H("onlineReceiverChange"))}
function rn(a,b){var c=[],d={};z(b,function(a){a.token&&(d[a.token]=a,c.push(a.token))});var e={method:"POST",ed:{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.jm?un(this,this.jm):null;e&&!aj(c,e)&&c.push(e);mn(this,c,!0)}};Ji(Ri(a.k,"/pairing/get_screen_availability"),e)}
function qn(a){var b=pn(a),c=B(b,function(a){return a.id});D(c)||(a.log_("Updating lounge tokens for: "+rf(c)),Ji(Ri(a.k,"/pairing/get_lounge_token_batch"),{ed:{screen_ids:c.join(",")},method:"POST",context:a,onSuccess:function(a,c){vn(this,c.screens||[]);this.Kc=hb(this.Kc,function(a){return!!a.token});tn(this);rn(this,b)}}))}function vn(a,b){z(ub(a.Kc,a.j),function(a){var d=lb(b,function(b){return a.id==b.screenId});d&&(a.token=d.loungeToken)})}
function tn(a){var b=Hh(sj());Fb(a.Kc,b,Eh)||(a.log_("Saving local screens: "+Jh(b)+" to "+Jh(a.Kc)),rj(B(a.Kc,Fh)),mn(a,a.b,!0),ln(a,Xj()||[]),a.H("managedScreenChange",pn(a)))}function wn(a,b,c){var d=mb(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;aj(a.b,c)||a.b.push(c);return e}
f.zs=function(a,b,c){var d=!1;b>=on.length&&(this.log_("Pairing DIAL device "+a+" with "+c+" timed out."),d=!0);var e=$i(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?(xn(this),this.H("screenPair",null)):Ji(Ri(this.k,"/pairing/get_screen"),{method:"POST",ed:{pairing_code:c},context:this,onSuccess:function(a,b){if(c==this.Lj){xn(this);
var d=new Dh(b.screen);d.name=e.name;d.uuid=e.id;this.log_("Pairing "+c+" succeeded.");var l=wn(this,this.Kc,d);this.log_("Paired with "+(l?"a new":"an old")+" local screen:"+Ih(d));tn(this);this.H("screenPair",d)}},onError:function(){c==this.Lj&&(this.log_("Polling pairing code: "+c),M(this.Hh),this.Hh=L(t(this.zs,this,a,b+1,c),on[b]))}})};
function yn(a,b,c){var d=zn,e="";xn(d);if($i(d.g,a)){if(!e){var g=e=Vi();Pj();var h=Zj(a),k=Mj();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",Vj(h),Yh("yt-remote-cast-device-status-update",h));
Lj("Sending a cast launch request with params: "+l.parameters);k.launch(l,qa(ak,a))}else Lj("No cast API or no cast device. Dropping cast launch.")}d.Lj=e;d.Hh=L(t(d.zs,d,a,0,e),on[0])}else d.log_("No DIAL device with id: "+a)}function xn(a){M(a.Hh);a.Hh=NaN;a.Lj=""}function un(a,b){var c=bj(pn(a),b);a.log_("Found screen: "+Ih(c)+" with key: "+b);return c}function An(a){var b=zn,c=bj(b.b,a);b.log_("Found online screen: "+Ih(c)+" with key: "+a);return c}
function Bn(a){var b=zn,c=$i(b.g,a);if(!c){var d=bj(b.Kc,a);d&&(c=$i(b.g,d.uuid))}b.log_("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function pn(a){return ub(a.j,hb(a.Kc,function(a){return!aj(this.j,a)},a))};function Cn(a){dj.call(this,"ScreenServiceProxy");this.Kb=a;this.b=[];this.b.push(this.Kb.$_s("screenChange",t(this.dC,this)));this.b.push(this.Kb.$_s("onlineScreenChange",t(this.cC,this)))}w(Cn,dj);f=Cn.prototype;f.Xj=function(a){return this.Kb.$_gos(a)};f.contains=function(a){return!!this.Kb.$_c(a)};f.get=function(a){return this.Kb.$_g(a)};f.start=function(){};f.add=function(a,b,c){this.Kb.$_a(a,b,c)};f.remove=function(a,b,c){this.Kb.$_r(a,b,c)};
f.J=function(){for(var a=0,b=this.b.length;a<b;++a)this.Kb.$_ubk(this.b[a]);this.b.length=0;this.Kb=null;Cn.G.J.call(this)};f.dC=function(){this.H("screenChange")};f.cC=function(){this.H("onlineScreenChange")};function Dn(a){a?ba("yt.mdx.remote.castv2_",!0,void 0):Pj();qi&&qi.j();jj();En||(En=new Qi);zn||a||(zn=new jn(En),zn.subscribe("screenPair",Fn),zn.subscribe("managedScreenChange",Gn),zn.subscribe("onlineReceiverChange",function(){Yh("yt-remote-receiver-availability-change")}));Hn||(Hn=q("yt.mdx.remote.deferredProxies_")||[],ba("yt.mdx.remote.deferredProxies_",Hn,void 0));Zb(In)&&(In=q("yt.mdx.remote.channelParams_")||{})}
function Jn(){Xh(Kn);Kn.length=0;Mh(Ln);Ln=null;Hn&&(z(Hn,function(a){a(null)}),Hn.length=0,Hn=null,ba("yt.mdx.remote.deferredProxies_",null,void 0));zn&&(Mh(zn),zn=null);En=null;In={};Uj()}
function Mn(){if(Nn()&&yj()){var a=[];if(si("yt-remote-cast-available")||si("yt-remote-cloudview-cast-button-shown")||On())a.push({key:"cast-selector-receiver",name:Pn()}),pi("yt-remote-cloudview-cast-button-shown",!0);return a}if(q("yt.mdx.remote.cloudview.initializing_"))return[];var b=[],b=Qn()?Rn().Kb.$_gos(!0):Hh(tj());(a=Sn())&&On()&&(aj(b,a)||b.push(a));Qn()||(a=Yi(wj()),a=hb(a,function(a){return!bj(b,a.id)}),b=ub(b,a));return Wi(b)}
function Tn(){if(Nn()&&yj()){var a=zj();return a?{key:"cast-selector-receiver",name:a}:null}var a=Mn(),b=Un(),c=Sn();c||(c=Vn());return lb(a,function(a){var e;if(e=c)e=a.key,e=c.id==e||c.uuid==e;return e||b&&(a=Bn(a.key))&&a.id==b?!0:!1})}function Pn(){if(Nn()&&yj())return zj();var a=Sn();return a?a.name:null}function Sn(){var a=Wn();if(!a)return null;if(!zn){var b=Rn().Xj();return bj(b,a)}return un(zn,a)}
function Xn(a,b){Yn("Connecting to: "+rf(a));if("cast-selector-receiver"==a.key)Zn(b||null),Hj(b||null);else{$n();Zn(b||null);var c=null;zn?c=An(a.key):(c=Rn().Xj(),c=bj(c,a.key));if(c)ao(c);else{if(zn&&(c=Bn(a.key))){bo(c);return}L(function(){co(null)},0)}}}
function $n(){zn&&xn(zn);t:{var a=On();if(a&&(a=a.getOtherConnectedRemoteId())){Yn("Do not stop DIAL due to "+a);eo("");break t}(a=Un())?(Yn("Stopping DIAL: "+a),bk(a),eo("")):(a=Sn())&&a.uuid&&(Yn("Stopping DIAL: "+a.uuid),bk(a.uuid))}Fj()?Cj().stopSession():Bj("stopSession called before API ready.");(a=On())&&a.disconnect(1);co(null)}function fo(){var a=go(),a=a?a.currentTime:0,b=ho();0==a&&b&&(a=Dm(Lm(b)));return a}function ho(){var a=On();return a?new Im(a,void 0):null}
function Yn(a){Ah("remote",a)}function Nn(){return!!q("yt.mdx.remote.castv2_")}function Qn(){return q("yt.mdx.remote.screenService_")}function Rn(){if(!Ln){var a=Qn();a&&(Ln=new Cn(a))}return Ln}function Wn(){return q("yt.mdx.remote.currentScreenId_")}function io(a){ba("yt.mdx.remote.currentScreenId_",a,void 0);if(zn){var b=zn;b.o=v()+3E5;if((b.jm=a)&&(a=un(b,a))&&!aj(b.b,a)){var c=vb(b.b);c.push(a);mn(b,c,!0)}}}function Un(){return q("yt.mdx.remote.currentDialId_")}
function eo(a){ba("yt.mdx.remote.currentDialId_",a,void 0)}function go(){return q("yt.mdx.remote.connectData_")}function Zn(a){ba("yt.mdx.remote.connectData_",a,void 0)}function On(){return q("yt.mdx.remote.connection_")}function co(a){var b=On();Zn(null);a?cb(!On()):(io(""),eo(""));ba("yt.mdx.remote.connection_",a,void 0);z(Hn,function(b){b(a)});Hn.length=0;b&&!a?Yh("yt-remote-connection-change",!1):!b&&a&&Yh("yt-remote-connection-change",!0)}
function Vn(){var a=mj();if(!a)return null;if(Qn()){var b=Rn().Xj();return bj(b,a)}return zn?un(zn,a):null}function ao(a){cb(!Wn());io(a.id);var b=q("yt.mdx.remote.channelParams_");a=new Um(En,a,b);a.connect(1,go());Lh(a,function(){On()&&(On(),co(null))});co(a)}function bo(a){Un();Yn("Connecting to: "+(a?a.toString():"null"));eo(a.id);var b=go();b?yn(a.id,b.videoIds[b.index],b.currentTime):yn(a.id)}function Fn(a){Yn("Paired with: "+Ih(a));a?ao(a):co(null)}
function Gn(){var a=Wn();a&&!Sn()&&(Yn("Dropping current screen with id: "+a),$n());Vn()||xj()}var En=null,Hn=null,Ln=null,zn=null,In={},Kn=[];var jo={Dv:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},DO:function(a,b){a.splice(0,b)},A5:function(a){a.reverse()}};function ko(a){a=a.split("");jo.Dv(a,28);jo.A5(a,69);jo.DO(a,1);jo.Dv(a,26);jo.Dv(a,40);jo.A5(a,57);jo.DO(a,1);return a.join("")};function lo(){};var mo={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 no(a,b,c,d,e,g,h){this.id=""+a;this.b=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.ua=h||0;this.g=c||null;this.video=d||null;this.k=e||null;this.o=g||null;this.j=mo[this.id.split(":")[0]]||""}function oo(a){return 2==a.b}function po(a){return!(a.g&&a.video)}function qo(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function ro(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function so(a,b,c,d){this.name=a;this.b=d}so.prototype.toString=function(){return this.name};var Yb={BE:"auto",cK:"tiny",zI:"light",SMALL:"small",JE:"medium",LARGE:"large",$H:"hd720",YH:"hd1080",ZH:"hd1440",iI:"highres",UNKNOWN:"unknown"},to={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,highres:2160};function uo(a,b,c,d){this.width=a;this.height=b;if(!d)t:{for(d=2;d<vo.length;d++){var e=wo[vo[d]];if(a>e[0]&&b>=e[1]||a>=e[0]&&b>e[1]){d=vo[d-1];break t}}d="tiny"}this.b=d;this.g=c||0}var vo="auto highres hd1440 hd1080 hd720 large medium small tiny".split(" "),wo={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 xo(a,b){this.start=a;this.end=b;this.length=b-a+1}function yo(a){a=a.split("-");return 2==a.length&&(a=new xo(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function zo(a,b){return new xo(a,a+b-1)}xo.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function Ao(a,b){var c=Qd(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 Bo(a,b){var c=Qd(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 Od(c[1],c[2],c[3],c[4],e,d,c[7])}
function Co(a,b,c){a=Qd(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 Od(a[1],a[2],a[3],a[4],g,e,a[7])}function Do(a,b){var c=a,d;for(d in b)null!=b[d]&&(c=Co(c,d,b[d]));return c};function Eo(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.b=a;this.sourceURL=d;this.startTime=b;this.$=e||null};function Fo(){this.ea=[]}f=Fo.prototype;f.kj=function(a){return(a=Go(this,a))?a.duration:0};f.dm=function(a){return this.kj(a)};f.Vs=function(){return this.ea[0].b};f.lc=function(){return this.ea[this.ea.length-1].b};f.Bf=function(){return this.ea[this.ea.length-1].endTime};f.wn=function(){return this.ea[0].startTime};f.Ej=function(){return 0};f.Wn=function(a){return(a=Ho(this,a))?a.b:-1};f.Ms=function(a){return Go(this,a).sourceURL};f.Yi=function(a){return(a=Go(this,a))?a.startTime:0};
f.Dn=function(){return 0<this.ea.length};function Go(a,b){var c=Ab(a.ea,new Eo(b,0,0,""),function(a,b){return a.b-b.b});return 0<=c?a.ea[c]:null}function Ho(a,b){var c=Ab(a.ea,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.ea[c]:a.ea[Math.max(0,-c-2)]}f.append=function(a){if(0!=a.length)if(a=vb(a),0==this.ea.length)this.ea=a;else{var b=a[0].b-this.lc();1<b&&pb(this.ea);for(b=0<b?0:-b+1;b<a.length;b++)this.ea.push(a[b])}};
function Io(a,b){var c=mb(a.ea,function(a){return a.b>=b},a);0<c&&a.ea.splice(0,c)};function Jo(a){this.b=a;this.g=0;this.j=-1}var Ko=0;function Lo(a,b){this.index=null;this.info=b;this.b=null;this.o=this.j=!1;this.A=new Jo(a)}Lo.prototype.$l=function(){return!1};Lo.prototype.mc=function(){return!1};Lo.prototype.Fr=function(a){return[a]};Lo.prototype.ri=function(a){return[a]};function Mo(a,b,c,d,e,g,h,k,l){this.b=b;this.$=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.$?this.$.length:NaN;this.B=!!l;this.$?(this.A=this.j+this.g==this.$.length,this.o=this.startTime+this.duration*this.j/this.$.length,this.D=this.duration*this.g/this.$.length):(this.A=0!=this.g,this.o=this.startTime,this.D=this.duration);this.C=this.o+this.D}function No(a){return 1==a.type||2==a.type}
function Oo(a,b){return a.b==b.b&&a.$.start+a.j+a.g==b.$.start+b.j}function Po(a){cb(1==a.length||kb(a,function(a){return!!a.$}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new xo(a[0].$.start+a[0].j,b.$.start+b.j+b.g-1)}
function Qo(a,b){var c;c=a.b;var d=a;c.Bg(d);if(c.mc()){4==d.type&&(d=c.ri(d),d=d[d.length-1]);var e=0,g=d.$.start+d.j+d.g;3==d.type&&(e=d.k,g==d.$.end+1&&(e+=1));c=Ro(c,e,g,b)}else e=zo(d.$.end+1,b),e.end+1>c.g&&(e=new xo(e.start,c.g-1)),c=[new Mo(4,d.b,e)],c=new So(c);return c}function To(a){var b="i="+a.b.info.id;a.$&&(b=b+",r="+(a.$.start+a.j)+"-"+(a.$.start+a.j+a.g-1));return b=b+",t="+a.o.toFixed(1)+","+(a.o+a.D).toFixed(1)};function So(a,b){this.j=a[0].b.A;this.g=b||"";this.b=a;this.$=this.b[0].$&&0<this.b[0].g?Po(this.b):null}function Uo(a){var b;if(Ai(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.$?Co(b,"range",a.$.toString()):b}function Vo(a){if(a.$)return a.$.length;a=a.b[0];return Math.round(a.D*a.b.info.ua)};function Wo(a,b,c,d,e){Lo.call(this,a,b);this.index=e||new Fo;this.k=d||null;this.B=c;this.g=!0}w(Wo,Lo);f=Wo.prototype;f.am=function(){return!1};f.Xr=function(){var a=new Mo(1,this,this.k);return[new So([a],this.B)]};function Xo(a,b){a.Bg(b);return Yo(a,b.A?b.k+1:b.k,!1)}f.ti=function(a,b){var c=this.index.Wn(a);b&&(c=Math.min(this.index.lc(),c+1));return Yo(this,c,!0)};f.hq=function(a){this.b=new Uint8Array(Zo(a).buffer)};f.$l=function(){return!1};f.mc=function(){return null!==this.b&&this.index.Dn()};
f.Bg=function(a){return this.index.lc()>a.k&&this.index.Vs()<=a.k+1};f.update=function(a,b,c){this.index.append(a);Io(this.index,c);this.g=b};function Yo(a,b,c){var d=a.index.Ms(b),e=a.index.Yi(b),g=a.index.kj(b);c?g=c=0:c=0<a.info.ua?a.info.ua*g:1E3;a=new Mo(3,a,null,b,e,g,0,c,b==a.index.lc()&&!a.g&&0<c);return new So([a],d)};function $o(a,b){var c=ap(a,0,1836019558);if(!c)return null;var d=ap(a,c.b+8,1835427940),e=ap(a,c.b+8,1953653094);if(!d||!e)return null;var g=ap(a,e.b+8,1952868452),h=ap(a,e.b+8,1953658222),k=ap(a,e.b+8,1952867444);if(!g||!h||!k)return null;for(var l=ap(a,e.b+8,1935763823),e=ap(a,e.b+8,1935763834),p=bp(g),s=bp(g),u=p&2,y=p&1?cp(g):0,G=u?bp(g):0,A=p&8?bp(g):0,X=p&16?bp(g):0,Ha=p&32?bp(g):0,p=bp(h),$f=p&1,uj=p&4,pw=p&256,g=p&512,qw=p&1024,uT=p&2048,p=bp(h),vT=$f?bp(h):0,wT=uj?bp(h):0,$f=[],MF=[],rw=
[],sw=[],NF=0,ne=0,Db=0;Db<p;Db++){var xT=pw?bp(h):A;g&&$f.push(bp(h));var ag=Ha;uj&&0==Db?ag=wT:qw&&(ag=bp(h));MF.push(ag);ag=uT?bp(h):0;0==Db&&(NF=ag);rw.push(ne+ag);sw.push(Db);ne+=xT}Cb(sw,function(a,b){return rw[a]-rw[b]});h=[];for(Db=0;Db<p;Db++)h[sw[Db]]=Db;ne=u?4:0;Db=16*p;Ha=68+ne+k.size+Db+(l?l.size:0)+(e?e.size:0);A=new dp(Ha);ep(A,Ha);ep(A,1836019558);fp(A,d);ep(A,Ha-24);ep(A,1953653094);ep(A,16+ne);ep(A,1952868452);ep(A,131072|(u?2:0));ep(A,s);u&&ep(A,G);fp(A,k);ep(A,20+Db);ep(A,1953658222);
ep(A,16781057);ep(A,p);ep(A,y+vT+Ha-c.size);for(Db=ne=0;Db<p;Db++)d=h[Db],c=Math.round(b*d/p),d=Math.round(b*(d+1)/p)-c,ag=c-ne+NF,ep(A,d),ep(A,g?$f[Db]:X),ep(A,MF[Db]),ep(A,ag),ne+=d;l&&fp(A,l);e&&fp(A,e);return A.data.buffer}function ap(a,b,c){for(;gp(a,b);){var d=hp(a,b);if(d.type==c)return d;b+=d.size}return null}function hp(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new ip(a,b,c,d)}function jp(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}
function gp(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c)return!1;for(var d=4;8>d;d++){var e=a.getInt8(b+d);if(97>e||122<e)return!1}return a.byteLength-b>=c}function ip(a,b,c,d){this.data=a;this.b=b;this.size=c;this.type=d;this.g=8}function bp(a){var b=a.data.getInt32(a.b+a.g);a.g+=4;return b}function cp(a){var b=jp(a.data,a.b+a.g);a.g+=8;return b}ip.prototype.skip=function(a){this.g+=a};function dp(a){this.data=new DataView(new ArrayBuffer(a));this.b=0}
function ep(a,b){a.data.setInt32(a.b,b);a.b+=4}function fp(a,b){for(var c=0;c+4<=b.size;)ep(a,b.data.getUint32(b.b+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.b++,b.data.getUint8(b.b+c++))};function kp(a,b,c,d){this.info=a;this.buffer=b;this.$=c;this.b=d}function Zo(a){return a.$?new DataView(a.buffer,a.$.start,a.$.length):new DataView(a.buffer)}function lp(a){if(a.info.g!=a.$.length)return!1;if(1==a.info.b.info.b){if(8>a.info.g||4==a.info.type)return!0;var b=Zo(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 mp(a){var b;if(1==a.info.b.info.b){var c=NaN;b=NaN;var d=0;for(a=new DataView(a.buffer);gp(a,d);){var e=hp(a,d);1936286840==e.type?b=e.data.getUint32(e.b+16):1952867444==e.type&&(c=e,c=c.data.getUint8(c.b+8)?jp(c.data,c.b+12):c.data.getUint32(c.b+12));var g=e.type,d=1836019558==g||1953653094==g?d+8:d+e.size}b=c/b}else b=NaN;return b};function np(){this.fa=0;this.b=new Float64Array(128);this.g=new Float64Array(128);this.k=1;this.j=!1}f=np.prototype;f.Ej=function(a){return this.b[a]};f.Yi=function(a){return this.g[a]/this.k};f.kj=function(a){a=this.dm(a);return 0<=a?a/this.k:-1};f.dm=function(a){return a+1<this.fa||this.j?this.g[a+1]-this.g[a]:-1};f.Vs=function(){return 0};f.lc=function(){return this.fa-1};f.Bf=function(){return this.j?this.g[this.fa]/this.k:NaN};f.wn=function(){return 0};f.Ms=function(){return""};
f.Wn=function(a){a=Ab(this.g.subarray(0,this.fa),a*this.k);return 0<=a?a:Math.max(0,-a-2)};f.Dn=function(){return 0<=this.lc()};function op(a){if(a.b.length<a.fa+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.fa+1;b++)a.b[b]=c[b],a.g[b]=d[b]}}function pp(a,b){this.g=a;this.b=0;this.j=b||0}function qp(a){for(var b=rp(a,!1);236==b;)sp(a),b=rp(a,!1);return b}
function tp(a){var b=rp(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 pp(c,a.j+a.b);a.b+=b;return c}function up(a){for(var b=rp(a,!0),c=vp(a),d=1;d<b;d++)c=(c<<8)+vp(a);return c}function sp(a){var b=rp(a,!0);a.b+=b}function rp(a,b){var c=vp(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+vp(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+vp(a),e*=128;return b?c-e:c}function vp(a){return a.g.getUint8(a.b++)};function wp(a,b,c,d,e){Lo.call(this,a,b);this.C=c;this.B=d;this.k=null;this.index=new np;this.g=e}w(wp,Lo);f=wp.prototype;f.mc=function(){return!(!this.b||!this.index.Dn())};f.Xr=function(a){var b=new Mo(1,this,this.C),c=new Mo(2,this,this.B),d=[],e=[b];Oo(b,c)?e.push(c):(d.push(new So([c])),a=0);isNaN(this.g)?a=0:a>this.g&&(a=this.g);b=e[e.length-1];c=b.$.end-e[0].$.start+1;a>c&&(a=zo(b.$.end+1,a-c),e.push(new Mo(4,this,a)));d.push(new So(e));return d};
f.hq=function(a){if(1==a.info.type){if(this.b)return;this.b=new Uint8Array(a.buffer,a.$.start,a.$.length)}else if(2==a.info.type){if(this.k||0<=this.index.lc())return;if(1==this.info.b){var b=this.index,c=Zo(a),d=a.info.$.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.fa++;op(g);g.b[g.fa]=g.b[g.fa-1]+k;g.g[g.fa]=g.g[g.fa-1]+h}}else this.k=Zo(a)}if(oo(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 pp(c);if(440786851==qp(c)&&(sp(c),408125543==qp(c))){d=c;e=d.b;a=rp(d,!0);d.b=e;for(var c=tp(c),d=c.j+c.b,l=qp(c);357149030!=l;)sp(c),l=qp(c);c=tp(c);h=1E6;k=1E9;for(e=0;!(c.b>=c.g.byteLength);)if(l=
qp(c),2807729==l)h=up(c);else if(2807730==l)k=up(c);else if(17545==l){var e=c,l=rp(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 sp(c);b.k=k/h;c=new pp(g);if(475249515==qp(c)){for(c=tp(c);!(c.b>=c.g.byteLength);)if(l=qp(c),187==l){g=tp(c);h=d;if(179!=qp(g))k=null;else if(k=up(g),183!=qp(g))k=null;else{g=tp(g);for(l=h;!(g.b>=g.g.byteLength);)241==qp(g)?l=up(g)+h:sp(g);k=[l,k]}g=b;h=k[0];k=k[1];op(g);g.b[g.fa]=h;g.g[g.fa]=k;g.fa++}else sp(c);c=a+d;a=e;op(b);b.j=
!0;b.g[b.fa]=a;b.b[b.fa]=c}}this.k=null}};function Ro(a,b,c,d){for(var e=[];b<=a.index.lc();b++){var g;g=a.index;var h=b;g=zo(g.Ej(h),h+1<g.fa||g.j?g.b[h+1]-g.b[h]:-1);var h=a.index.Yi(b),k=a.index.kj(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new Mo(3,a,g,b,h,k,l,p,b==a.index.lc()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new So(e)}
f.Fr=function(a){for(var b=this.ri(a.info),c=[],d=a.b,e=0;e<b.length;e++){var g=zo(b[e].$.start+b[e].j-a.info.$.start+a.$.start,b[e].g);c.push(new kp(b[e],a.buffer,g,d));d=!1}return c};f.ri=function(a){for(var b=0;b<this.index.lc()&&a.$.start>=this.index.Ej(b+1);)b++;return Ro(this,b,a.$.start,a.$.length).b};f.Bg=function(a){return this.mc()?!0:isNaN(this.g)?!1:a.$.end+1<this.g};f.ti=function(a,b){var c=this.index.Wn(a);b&&(c=Math.min(this.index.lc(),c+1));return Ro(this,c,this.index.Ej(c),0)};
f.$l=function(){var a;if(a=this.mc()&&!isNaN(this.g))a=this.index,a=(a.j?a.b[a.fa]:-1)!=this.g;return a};f.am=function(){return!0};function xp(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 yp(a){return Pb(a.b,function(a){return!!a.info.o},a)}var zp=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function Ap(a,b){var c=new xp;z(a,function(a){var e=a.type,g=a.itag,h=null;ro(e)&&(h=a.size.split("x"),h=new uo(parseInt(h[0],10),parseInt(h[1],10)));var k=null,l=null;qo(e)&&(k=new lo,a.name&&(l=new so(a.name,0,0,"1"==a.isDefault)));a.xtags&&(g=a.itag+":"+a.xtags);var p=parseInt(a.bitrate,10)/8,s=null;b&&a.drm_families&&(s={},z(a.drm_families.split(","),function(a){s[a]=b[a]}));e=new no(g,e,k,h,l,s,p);h=yo(a.init);k=yo(a.index);l=Bp(a.url,e,a.s);a=parseInt(a.clen,10);l&&(c.b[g]=new wp(l,e,h,k,a))});
return c}function Cp(a){if(!a)return 0;var b=zp.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function Dp(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 Ep(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 Bp(a,b,c){if(!ef(a))return"";var d={alr:"yes",ratebypass:"yes"};Ao(a,"mime")||(d.mime=encodeURIComponent(b.mimeType.split(";")[0]));c&&(d.signature=ko(c));return Do(a,d)}
function Fp(a){var b=Dp(a,"id");"captions"==b&&(b=Dp(a,"lang"));var c=Dp(a,"mimeType"),d=Dp(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(Dp(a,"bandwidth"),10)/8,e=null;ro(c)&&(e=new uo(parseInt(Dp(a,"width"),10),parseInt(Dp(a,"height"),10)));var g=null,h=null;if(qo(c)){g=new lo;var h=Dp(a,"lang")||"",k=Ep(a,"Role");if(k){var k=Dp(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 so(b,
0,0,"original"==l):null}else h=null}k=null;if(a=Ep(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 no(b,c,g,e,h,k,d)}function Gp(a,b,c,d){a.k=!0;a={format:"RAW",method:"GET",vb:t(a.C,a,c,d||null)};Ji(b,a)}
xp.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*Cp(Dp(c,"minimumUpdatePeriod"))||Infinity,this.g=Infinity>this.o,this.j=!0,this.A=parseInt(Dp(c,"yt:earliestMediaSequence"),10),c=0;c<b.length;c++){var d=Fp(b[c]);if(!this.b[d.id]){var e=Bp(Ep(b[c],"BaseURL").textContent,d),g=Ep(b[c],
"Initialization"),h=Dp(g,"sourceURL"),g=yo(Dp(g,"range"));this.b[d.id]=new Wo(e,d,h,null===g?void 0:g)}var h=Ep(b[c],"SegmentList"),k=Ep(h,"SegmentTimeline"),e=k.getElementsByTagName("S"),h=h.getElementsByTagName("SegmentURL");g=this.g?(g=Dp(k,"start"))?Cp(g):0:0;var l;if(this.g){l=parseInt(Dp(k,"startNumber"),10)||0;var p=parseInt(Dp(k,"yt:earliestMediaSequence"),10);l<p&&(l=p)}else l=0;for(var k=parseInt(Dp(k,"timescale"),10)||1,p=[],s=0;s<h.length;s++){var u;u=l+s;var y=g,G=k,A=h[s],G=parseFloat(e[s].getAttribute("d"))/
G,X=A.getAttribute("media"),Ha=null,A=A.getAttribute("mediaRange");null!=A&&(0<=parseInt(A.split("-")[1],10)?Ha=yo(A):X=X+"?range="+A);u=new Eo(u,y,G,X,Ha);p.push(u);g+=u.duration}this.b[d.id].update(p,this.g,this.A)}else i:for(this.duration=Cp(Dp(c,"mediaPresentationDuration")),c=0;c<b.length;c++){g=b[c];d=Fp(g);h=Ep(g,"BaseURL");e=Bp(h.textContent,d);l=Ep(g,"SegmentBase");g=yo(l.attributes.indexRange.value);l=yo(l.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),
10);d=new wp(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 Hp(a){for(var b in a.b)if(a.b[b].index)return a.b[b].index.Bf();return NaN}function Ip(a){for(var b in a.b)if(a.b[b].index)return a.b[b].index.wn();return 0}function Jp(a,b){Ob(a.b,function(a){a=a.A;a.b=Do(a.b,b)})};function Kp(a,b){this.id=a;this.name=b}Kp.prototype.toString=function(){return this.name};function Lp(a,b,c){this.g=a||0;this.b=b||0;this.j=c}Lp.prototype.equals=function(a){return this.g==a.g&&this.b==a.b&&this.j==a.j};function Mp(a,b,c){return new Lp(to[a]||0,to[b]||0,c)}var Np=Mp("auto","large",!1),Op=Mp("auto","auto",!1);function Pp(a){var b=to.auto;return a.g==b&&a.b==b}function Qp(a){return a.j&&!!a.g&&a.g==a.b}
function Rp(a,b){if(b.j&&Pp(b))return Op;if(b.j||Pp(a))return b;if(a.j||Pp(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 Lp(c,d,!1)}function Sp(a){var b=a.b||a.g;return Xb(function(a){return to[a]==b})||"auto"}Lp.prototype.k=function(a){if(!a.video)return!1;a=to[a.video.b];return this.g<=a&&(!this.b||this.b>=a)};function Tp(a,b){this.g=a;this.b=b||null}function Up(a,b){var c=b||Op,c=hb(a.g,t(c.k,c)),c=B(c,function(a){return a.video.b});zb(c);return c}function Vp(a){if(!a.b)return[];var b=[];z(a.b,function(a){a.k&&b.push(new Kp(a.id,a.k.name))});zb(b);return b};function Wp(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 Xp(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=$d(c,{sigh:a.A}));return c}function Yp(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:Xp(a,c),hz:g,gj:a.b,row:e,rows:h,Jq:a.B*a.b,Iq:a.D*h}};function Zp(a){var b=[];a=a.split("|");for(var c=a[0],d,e,g,h,k,l,p,s,u=1;u<a.length;u++)d=a[u].split("#"),e=u-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),s=d[6],d=d[7],b.push(new Wp(g,h,k,l,p,c,s,d,e)));this.b=b;this.g={};1<this.b.length&&-1!=this.b[0].o.indexOf("default")&&this.b.splice(0,1)}function $p(a,b){var c=a.b[0].g-1;return Jb(Math.round(c*b),0,c)}
function aq(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 bq={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};var cq={EI:1,FI:2,GI:3};var dq;var eq=gc,eq=eq.toLowerCase();if(Ma(eq,"android")){var fq=eq.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(fq)dq=Number(fq[1]);else{var gq={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},hq=eq.match("("+Ub(gq).join("|")+")");dq=hq?gq[hq[0]]:0}}else dq=void 0;var iq,jq;function kq(){var a=q("yt.player.utils.videoElement_");a||(a=document.createElement("video"),ba("yt.player.utils.videoElement_",a,void 0));return a}function lq(){if(2.2==dq)return!0;var a=kq();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 mq(){var a=I("div",{"class":"html5-player-css-loaded"});document.body.appendChild(a);var b="none"==Kf(a,"display");fd(a);return b};function nq(){var a;if(void 0==iq&&(iq=!1,window.crypto&&window.crypto.getRandomValues))try{a=new Uint8Array(1),window.crypto.getRandomValues(a),iq=!0}catch(b){}if(iq){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 oq(){for(var a=nq(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function pq(){return B(nq(),function(a){return(a&15).toString(16)}).join("")};function qq(a,b,c){b={cpn:b};c&&(b.ibw="1369843");return{url:$d(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};function rq(a,b){return void 0==b?a:"1"==b?!0:!1}function sq(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function tq(a,b){return void 0==b?a:Number(b)}function uq(a,b){return void 0==b?a:b.toString()}function vq(a,b){var c=uq(a,b);c&&(c=hf(c));return c}var wq=/^([0-9\.]+)\:([0-9\.]+)$/;function xq(a){if(a&&(a=a.match(wq))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function yq(a,b){var c=to.auto,d=to[b];return d>=to.medium?new Lp(d,c,!1):d>=c?new Lp(c,d,!1):a};var zq,Aq=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},Bq=t(Aq.clearResourceTimings||Aq.webkitClearResourceTimings||Aq.mozClearResourceTimings||Aq.msClearResourceTimings||Aq.oClearResourceTimings||ca,Aq),Cq=Aq.mark?function(a){Aq.mark(a)}:ca;function Dq(a,b,c){Eq(c).tick[a]=b||v();b||Cq(a)}function Fq(a,b){var c=Eq(b).tick;return a in c}
var Hq="https:"===window.location.protocol&&ja(Aq.getEntriesByType)?function(a){var b={};Aq.getEntriesByType("resource").forEach(function(a){if(0===a.name.indexOf("https://s.ytimg.com/yts/")){var d=Gq[a.initiatorType];if(d&&d.extension.test(a.name)){var e=d.Yj,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 Iq(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];nf(b+"?"+c.substring(1))}function Jq(a){return Eq(a).info}function Eq(a){return q("ytcsi."+(a||"")+"data_")||Kq(a)}function Kq(a){var b={tick:{},span:{},info:{}};ba("ytcsi."+(a||"")+"data_",b,void 0);return b}var Gq={link:{Yj:"c",extension:/\.css$/},script:{Yj:"j",extension:/\.js$/},css:{Yj:"s",extension:/\.(?:webp|png)$/},"":{Yj:"f",extension:/\.swf$/}};var Lq,Mq;var Nq=gc,Oq=Nq.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Oq||2>Oq.length)Lq=void 0;else{var Pq=Nq.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Lq=Pq&&6==Pq.length?Number(Pq[5].replace("_",".")):0}(Mq=0<=Lq)&&0<=gc.search("Safari")&&gc.search("Version");var Qq={AI:0,KH:1,pI:2};function Rq(a,b,c){c=c||{};Pi(c.Ta,c.$a,t(Sq,m,a,b,c),c.onError)}
function Sq(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.Ta&&(d.authuser=c.Ta);c.$a&&(d.pageid=c.$a);a={screen:Yd({h:screen.height,w:screen.width,d:screen.colorDepth}),session_token:Te("XSRF_TOKEN")};c.AD&&(a.station_id=c.AD);Ji("/watch_actions_ajax",{format:"XML",method:"POST",Ih:d,ed:a,onSuccess:c.onSuccess,onError:c.onError,vb:c.vb})};var Tq=[.25,.5,1,1.25,1.5,2];function Uq(a){this.b=(a||"").split(",");var b={};z(this.b,function(a){b[a]=!0});this.xa=!!b["925900"];this.D=!!b["913424"];this.B=!!b["932250"];this.ra=!!b["945000"];this.da=!!b["945004"];this.T=!!b["945025"];this.P=!!b["945035"];this.I=!!b["945042"];this.N=!!b["945045"];this.M=!!b["945056"];this.oa=!!b["945066"];this.ca=!!b["945059"];this.la=!!b["945060"];this.za=!!b["945062"];this.wa=!!b["945063"];this.Ca=!!b["945064"];this.aa=!!b["927845"];this.O=!!b["936926"];this.C=!!b["913430"];this.k=!(!b["926301"]&&
!b["926305"]);this.g=!(!b["926304"]&&!b["932404"]);this.F=!(!b["931972"]&&!b["931983"]);this.j=!!b["907252"];this.ub=!!b["927877"];this.V=!!b["943602"];this.L=!!b["907253"];this.U=!!b["939937"];this.o=!(!b["924220"]&&!b["924222"]);this.ya=!!b["913436"];this.A=!!b["913437"]};function Vq(a,b){this.b=a;this.g=b}Vq.prototype.clone=function(){return new Vq(this.b,this.g)};function Wq(a){this.b=[];if(a)t:{var b,c;if(a instanceof Wq){if(b=a.Ma(),c=a.Qa(),0>=a.Na()){a=this.b;for(var d=0;d<b.length;d++)a.push(new Vq(b[d],c[d]));break t}}else b=Ub(a),c=Tb(a);for(d=0;d<b.length;d++)Xq(this,b[d],c[d])}}function Xq(a,b,c){var d=a.b;d.push(new Vq(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=Wq.prototype;
f.remove=function(){var a=this.b,b=a.length,c=a[0];if(!(0>=b)){if(1==b)pb(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.kg=function(a){return jb(this.b,function(b){return b.g==a})};f.clone=function(){return new Wq(this)};
f.Na=function(){return this.b.length};f.isEmpty=function(){return D(this.b)};f.clear=function(){pb(this.b)};function Yq(){Wq.call(this)}w(Yq,Wq);function Zq(a,b){cj.call(this);this.b=a;this.j=new Yq;this.o={};this.k=b||""}w(Zq,cj);Zq.prototype.g=!1;function $q(a,b,c){var d;for(c=aq(a.b,c);0<=c;){d=a.b.b[c];if(d=d.k[Math.floor(b/(d.b*d.j))]?Yp(d,b):null)return d;c--}return Yp(a.b.b[0],b)}function ar(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=Xp(a.b.b[b.Tp],b.Up);c.onload=t(a.A,a,b.Tp,b.Up)}}
Zq.prototype.A=function(a,b){this.g=!1;var c=this.b.b[a];c.k[b]=!0;ar(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 br(a,b,c){this.g=a;this.b=b;this.j=c}var cr={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},dr=["widevine","playready"];function er(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}
function fr(a,b,c){var d,e=er();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<dr.length;g++){var h=dr[g];if(c[h])for(var k=cr[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 br(h,p,c[h])}}return null};function gr(a,b){this.b=a;this.j=b;this.k=0;Object.defineProperty(this,"timestampOffset",{get:this.BA,set:this.CA});Object.defineProperty(this,"buffered",{get:this.AA})}f=gr.prototype;f.append=function(a){this.b.webkitSourceAppend(this.j,a)};f.abort=function(){this.b.webkitSourceAbort(this.j)};f.AA=function(){return this.b.webkitSourceState==this.b.SOURCE_CLOSED?new hr:this.b.webkitSourceBuffered(this.j)};f.BA=function(){return this.k};
f.CA=function(a){this.k=a;this.b.webkitSourceTimestampOffset(this.j,a)};function hr(){this.length=0};function ir(a){this.activeSourceBuffers=this.sourceBuffers=[];this.b=a;this.g=NaN;this.j=0;Object.defineProperty(this,"duration",{get:this.$z,set:this.cA});Object.defineProperty(this,"readyState",{get:this.aA});this.b.addEventListener("webkitsourceclose",t(this.bA,this),!0)}f=ir.prototype;f.addEventListener=function(a,b,c){this.b.addEventListener(a,b,c)};f.wB=function(){return this.b.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.j++).toString();this.b.webkitSourceAddId(b,a);a=new gr(this.b,b);this.sourceBuffers.push(a);return a};f.aA=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.bA=function(){pb(this.sourceBuffers)};
f.$z=function(){return this.g};f.cA=function(a){this.g=a;this.b.webkitSourceSetDuration&&this.b.webkitSourceSetDuration(a)};function jr(a){this.k=[];this.F=a||null}function kr(a,b,c,d){for(var e=0;e<c.length;e++)a.listen(b,c[e],d)}jr.prototype.listen=function(a,b,c){c=t(c,this.F||this);a.addEventListener(b,c,!1);this.k.push(a,b,c)};jr.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)}};jr.prototype.ga=function(){return null===this.k};jr.prototype.dispose=function(){this.removeAll();this.k=null};var lr=mh||nh;function mr(){return nr("(ps3; leanback shell)")}function or(){return nr("safari/")&&nr(" version/8")}function nr(a){var b=gc;return b?0<=b.toLowerCase().indexOf(a.toLowerCase()):!1};function pr(a,b,c,d){jr.call(this);this.g=this.b=null;this.A=b;this.j=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new ir(a);this.o="";this.B=null;kr(this,this.j,["sourceopen","webkitsourceopen"],qa(this.D,d,c));kr(this,this.j,["sourceclose","webkitsourceclose"],this.C)}w(pr,jr);function qr(a,b){a.B=b}function rr(a){if(!a.o){var b;b=a.j;b=b.wB?b.b.webkitMediaSourceURL:window.URL.createObjectURL(b);a.o=b}return a.o}
pr.prototype.wf=function(a){sr(this)?this.j.duration=a:this.A=a};function sr(a){return"open"==a.j.readyState}function tr(a){return"closed"==a.j.readyState}function ur(a){return a.b.updating||a.g.updating}function vr(a){return a.b?!!a.b.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}pr.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))};
pr.prototype.C=function(){this.dispose()};pr.prototype.dispose=function(){var a=this.o;if(a)try{window.URL.revokeObjectURL(a)}catch(b){}this.o="";pr.G.dispose.call(this)};function wr(a){if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if('video/webm; codecs="vp9"'==a&&!nr("(ps4; leanback shell)"))return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!kq().canPlayType(a)};function xr(a,b){this.j=a;this.b=b;this.g={}}function yr(a){return a.b?a.j:$d(a.j,a.g)};function zr(a,b){this.b=new xr(a,!1);this.dg=b}var Ar="9h8(H*".split(""),Br="h98(H*".split(""),Cr=["M","a","v","A","V"];zr.prototype.getInfo=function(){return this.dg};zr.prototype.Tn=function(){return this.dg.video.b};var Dr={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Er={"application/x-mpegURL":"maybe"},Fr={"application/x-mpegURL":"maybe"};
function Gr(a,b){if(!lq())return[];var c=Hr(a,b);a=!c.length&&b?Hr(a,!1):c;for(var d={},c=kq(),e=0;e<a.length;e++){var g=a[e];if(Ir(c,g.getInfo().mimeType)&&!(g.dg.id in Jr||mr()&&"5"==g.dg.id)){var h=g.Tn();if(!d[h]||oo(d[h].getInfo()))d[h]=g}}var k=[];z(vo,function(a){(g=d[a])&&k.push(g)});return k}function Ir(a,b){var c;if(!(c=a.canPlayType(b))){var d;nh?d=Fr[b]:2.2==dq?d=Dr[b]:nr("android")&&nr("chrome")&&(d=Er[b]);c=d||""}return c}
function Kr(){return nr("android")&&nr("chrome")&&!Cc(29)?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var Jr={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function Lr(a){var b=[];z(a,function(a){a.url&&b.push(Mr(a.url,a.type,"medium","0"))});return b}function Mr(a,b,c,d,e){var g=new lo,h=wo[c];h||(c="small",h=wo.small);c=new uo(h[0],h[1],e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new zr(a,new no(d,b,g,c))}
function Hr(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],g;if(g=sc&&0!=e.dg.video.g)g=1==e.getInfo().b;g||0!=e.dg.video.g==b&&c.push(e)}return c}function Nr(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||ko(e.s);e.url=Ci(e.url,{signature:g})}e.url&&c.push(Mr(e.url,e.type,e.quality,e.itag,e.stereo3d))}return Gr(c,!!b)}function Or(a){a=Lr(a);return Gr(a,!1)}
function Pr(a,b){if(!b.b)return a[0];for(var c=0;c<a.length;c++){var d=a[c].getInfo();if(to[d.video.b]<=b.b)return a[c]}return a[a.length-1]}
function Qr(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.b){var g=a.b[e];if(wr(g.info.mimeType)){if(g.info.o){d||(d=kq());if(!fr(d,g.info.mimeType,g.info.o))continue;if(261==g.info.id&&(mr()||!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=Ar;if(nr("cros armv7")||nr("windows nt 5.1"))a=Br;d=lb(a,b);a=lb(Cr,b);if(!d||!a)return null;"9"==d&&c.h&&(e=function(a,b){return Math.max(a,b.video.height)},g=ib(c["9"],
e,0),ib(c.h,e,0)>1.5*g&&(d="h"));d=c[d];a=c[a];Cb(d,function(a,b){return b.video.width-a.video.width||b.ua-a.ua});Cb(a,function(a,b){return b.ua-a.ua});return new Tp(d,a)};function Rr(a){cj.call(this);this.Wa=new F(0,0);this.la=!1;this.F=[];this.k={};this.Ia={};this.o={};Sr(this,a)}w(Rr,cj);Rr.A=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Rr.b=1;Rr.j=-21;Rr.o=18E3;Rr.k="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs sentiment subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");
Rr.g=["www.youtube.com","manifest.googlevideo.com"];f=Rr.prototype;f.Y=!1;f.jn="";f.Wr=null;f.Lq=!0;f.nb=!1;f.Um="";f.Tm="";f.vk=!1;f.Kq=Rr.b;f.Qh=null;f.vp=null;f.rh="";f.pg=0;f.bm=!1;f.Bo=3;f.Vr=!1;f.Nf="";f.Da="";f.te=0;f.Dk=!1;f.ai=!1;f.Ck=!1;f.zf=0;f.Ne=!1;f.Do=!1;f.Oh=0;f.rg=!1;f.vo=!0;f.nk=!1;f.Pm=!1;f.pm=!1;f.Za=!1;f.Qm=!1;f.ym=!1;f.Md=!1;f.lp=!1;f.Rm=!1;f.vv=0;f.Oa=0;f.ak=0;f.Ns=!1;f.zm="";f.Mi=!1;f.Ak=!1;f.Dm=Op;f.So=0;f.Ik=!1;f.Sa=0;f.Zj=null;f.im=2;f.tf=Op;f.cs=!1;f.Pf=!1;f.ue=null;
f.title="";f.xe="";f.Nn=null;f.bk="vvt";f.Os=!1;f.wo=!1;f.clipStart=0;f.clipEnd=Infinity;
function Tr(a,b){var c=b||{};c.iv_invideo_url&&(a.Um=hf(c.iv_invideo_url));c.iv_cta_url&&(a.Tm=hf(c.iv_cta_url));c.cta_conversion_urls&&(a.jb=c.cta_conversion_urls);a.rh=uq(a.rh,c.author);a.bm=rq(a.bm,c.cc_asr);var d=c.ttsurl||a.Nf;d&&cf(d)?a.Nf=d:a.Nf=vq(a.Nf,c.ttsurl);a.Da=uq(a.Da,c.cpn);a.L=uq(a.L,c.subscribed);a.im=sq(a.im,c.sentiment,Qq);a.title=uq(a.title,c.title);a.ya=uq(a.ya,c.ypc_preview);a.Ns=rq(a.Ns,c.paygated);a.Os=rq(a.Os,c.requires_purchase);c.keywords&&(a.Ia=Ur(c.keywords));c.rvs&&
(a.C=Vr(c.rvs));c.poster&&(a.zm=c.poster);a.B=uq(a.B,c.oauth_token);z(Rr.k,function(a){a in c&&(this.k[a]=c[a])},a)}
function Sr(a,b){var c=b||{};a.nb="1"!=c.hlsdvr||qh||nh&&5>Lq?!1:!0;a.vk="1"==c.infringe||"1"==c.muted;a.mb=c.authkey;a.Ta=c.authuser;a.Da||(a.Da=c.cpn||oq());a.Xx=v();a.$j=c.t;a.Dk=rq(a.Dk,c.cenchd);a.ai=rq(a.ai,c.enable_cardio);a.Ck=rq(a.Ck,c.enable_cardio_before_playback);a.zf=tq(a.zf,c.end||c.endSeconds);a.vo="1"!=c.no_get_video_log;a.nk="1"==c.tmi;a.Pm=rq(a.Pm,c.noiba);a.pm="1"==c.livemonitor;a.Za="1"==c.live_playback;a.Qm=rq(a.Qm,c.mdx);a.ym=rq(a.ym,c.on3g);a.Rm=rq(a.Rm,c.utpsa);a.dc=c.iurlmaxres_webp||
c.iurlmaxres;a.D=uq(a.D,c.vvt);a.dk=c.osig;a.Uc=c.ptchn;a.pd=c.oid;a.P=c.ptk;a.od=c.pltype;a.yb=c.plid;a.A=c.eventid;a.eb=c.osid;a.La=uq(a.La,c.list);a.lf=c.pyv_view_beacon_url;a.gk=c.pyv_quartile25_beacon_url;a.ik=c.pyv_quartile50_beacon_url;a.hk=c.pyv_quartile75_beacon_url;a.fk=c.pyv_quartile100_beacon_url;a.ck=c.purchase_id;a.mf=c.sdetail;!a.Ha&&c.session_data&&(a.Ha=wi(c.session_data,"&").feature);a.xb=1==tq(a.xb?1:0,c.is_fling);a.gb=uq(a.gb,c.ctrl);a.hb=uq(a.hb,c.ytr);a.kf=c.iurlsd_webp||c.iurlsd;
a.wo="1"==c.skip_kansas_logging;a.Dm=yq(a.Dm,c.vq);a.tf=yq(a.tf,c.suggestedQuality);a.OB=c.approx_threed_layout||0;a.cs="1"==c.threed_converted;a.xa=c.iurl_webp||c.iurl;a.Sa=tq(a.Sa,c.start||c.startSeconds);a.Ph=rq(a.Ph,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId;a.pf=uq(a.pf,c.vss_credentials_token);a.bk=uq(a.bk,c.vss_credentials_token_type);Wr(a,c.watermark);a.nf=uq(a.nf,c.ypc_gid);a.jf=uq(a.jf,c.ypc_license_session_token);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.Y=!0,"1"==c.ad_preroll&&
a.F.push("ad")):"1"!=c.supported_without_ads&&(a.Do=!0);c.adaptive_fmts&&(a.jn=c.adaptive_fmts);c.license_info&&(a.Wr=Xr(c.license_info));c.allow_embed&&(a.Lq="1"==c.allow_embed);c.autoplay&&(a.rg="1"==c.autoplay);c.iv_load_policy&&(a.za=Yr(c.iv_load_policy,a.za));c.cc_load_policy&&(a.Bo=Yr(c.cc_load_policy,2));"0"==c.dash&&(a.Vr=!0);if(c.dashmpd){a.O=$d(c.dashmpd,{cpn:a.Da});var d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O);e&&(e=ko(e[1]),a.O=a.O.replace(d,"/signature/"+e))}c.delay&&(a.te=$a(c.delay));c.idpj&&
(a.Oh=$a(c.idpj));c.url_encoded_fmt_stream_map&&(a.xe=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.aa=c.hlsvp);c.length_seconds&&(a.Oa=$a(c.length_seconds));c.ldpj&&(a.ak=$a(c.ldpj));c.loudness&&(a.of=c.loudness,a.Kq=Zr(a));c.partnerid&&(a.U=$a(c.partnerid));c.probe_url&&(a.hf=jf($d(c.probe_url,{cpn:a.Da})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(Ke)&&(a.T=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(Ke)&&(a.ra=c.pyv_conv_url);c.url_encoded_third_party_media&&(a.ue=Vr(c.url_encoded_third_party_media));
c.threed_module&&!c.threed_converted&&(a.wa=c.threed_module,a.gz=6);if("1"==c.track_embed||c.tk)a.Ak=!0;c.two_stage_token&&(a.Qh=c.two_stage_token);c.watch_ajax_token&&(a.vp=c.watch_ajax_token);c.fresca_preroll&&a.F.push("fresca");c.ypc_module&&a.F.push("ypc");c.ypc_clickwrap_module&&a.F.push("ypc_clickwrap");c.spacecast_address&&(a.F.push("spacecast"),a.Ra=c.spacecast_address);void 0==c.start||"1"==c.resume||a.Za||(a.clipStart=c.start);void 0!=c.end&&(a.clipEnd=c.end);void 0!=c.atc&&(a.ca=c.atc);
a.gf=uq(a.gf,c.ucid);z("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.o[a]=c[a])},a);a.o.focEnabled=rq(a.o.focEnabled,c.focEnabled);a.o.rmktEnabled=rq(a.o.rmktEnabled,c.rmktEnabled);a.k=c;Tr(a,c);$r(a)}function $r(a){(a.Za||a.pm)&&"1"==a.k.as3fb||!Kr()||a.Vr||(a.jn?a.j=Ap(as(a,a.jn),a.Wr):a.O&&(a.Ne=!0,a.la=!0))}f.eA=function(a){if(!this.ga()){if(this.j=a)this.Oa=this.j.duration||this.Oa;this.om()}};f.om=function(){this.ga()||(this.Ne=!1,this.H("dataloaded",this.k))};
function bs(a){if(!a.ga()){a.g=null;a.V=null;a.I=null;if(a.da){var b=as(a,a.da);a.I=Nr(b,!1);a.g=new Tp(B(a.I,function(a){return a.getInfo()}))}!a.g&&a.j&&(a.g=Qr(a.j));if(!a.g){if(a.ue&&a.lp)a.I=Or(a.ue);else{b=as(a,a.xe);if(a.aa){var c=qq(a.aa,a.Da,!a.ym);b.push(c)}a.I=Nr(b,!!a.wa||a.Pf)}a.I.length&&(a.g=new Tp(B(a.I,function(a){return a.getInfo()})))}a.So=Math.min(.8*a.Oa,180)}}function cs(a){return a.b&&a.b.o||null}function ds(a,b){return r(a.Ia[b])?a.Ia[b]:null}
function es(a){!a.Nn&&a.k.storyboard_spec&&(a.Nn=new Zp(a.k.storyboard_spec));return a.Nn}function fs(a){var b=es(a);!a.Zj&&b&&(a.Zj=new Zq(b),R(a,a.Zj));return a.Zj}function gs(a){return!a.ga()&&!(!a.videoId&&!a.ue)}function hs(a){return gs(a)&&!a.Ne&&!a.la&&(!!(a.j||a.xe||a.ue||a.da||a.aa)||C(a.F,"fresca")||C(a.F,"ypc"))}function is(a,b){var c={format:"RAW",method:"GET",context:a,onSuccess:a.eE,onError:a.dE};a.Ne=!0;Ji(b,c);Dq("vir")}
function Zr(a){return a.of?(a=Math.min(Rr.j-a.of,0),Math.pow(10,a/20)):Rr.b}f.eE=function(a){this.ga()||(this.Ne=!1,a=yi(a.responseText),"fail"==a.status?this.H("onStatusFail",a):(Dq("virc"),Sr(this,a),this.om()))};f.dE=function(){this.ga()||(this.Ne=!1,this.H("onStatusFail",{errorcode:"manifest.net",reason:""}))};function Yr(a,b){var c=parseInt(a,10);return Vb(cq,c)?c:b}function Vr(a){a=a.split(",");return a=a.map(function(a){return yi(a)})}
function as(a,b){var c=Vr(b);z(c,function(a){a.url&&(a.url=$d(a.url,{cpn:this.Da}))},a);return c}function Ur(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 Wr(a,b){if(b){var c=b.split(",");2<=c.length&&(a.oa=c[1],-1!=a.oa.search(Rr.A)&&(a.oa=""))}}function Xr(a){a=Vr(a);var b={};z(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}function js(a,b){return!!a.k[b]}function ks(a){return a.Za&&!a.nb}
function ls(a){return a.Za&&a.nb};function ms(a,b){this.type=a||"";this.id=b||""}function ns(a){return new ms(a.substr(0,2),a.substr(2))}ms.prototype.toString=function(){return this.type+this.id};function os(a){cj.call(this);this.views=0;this.b=[];this.g=[];this.Ga=Math.max(0,a.index||0);this.Uf=!!a.loop;this.Mm=a.startSeconds||0;this.Uq="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":ps(this,a.list);break;case "user_favorites":qs(this,a.list);break;case "search":rs(this,a.list);break;default:a.playlist_length&&
(this.uc=a.playlist_length),this.j=ns(a.list),0==a.fetch&&a.videoList?ss(this,a.videoList):ts(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.uc=this.b.length;b=B(this.b,function(a){return a.video_id});us(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.de=!0}else a.videoList&&ss(this,a.videoList);vs(this,!!a.shuffle)}w(os,cj);f=os.prototype;f.Uf=!1;f.Mm=0;f.Gr=!1;
f.Ga=0;f.title="";f.uc=0;f.Uq=!1;f.de=!1;f.Ch=!1;f.Me=null;function ws(a){return a.Uf||a.Ga+1<a.uc}function xs(a){if(++a.Ga>=a.uc)if(a.Uf)a.Ga=0;else return null;ys(a,a.Ga);return zs(a,a.Ga)}function As(a){if(0>--a.Ga)if(a.Uf)a.Ga=a.uc-1;else return null;ys(a,a.Ga);return zs(a,a.Ga)}function zs(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 Rr(c),d.Sa=a.Mm||d.clipStart||0,a.j&&(d.La=a.j.toString()));return d}
function vs(a,b){a.Gr=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.Gr){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 ys(a,b){a.Ga=Jb(b,0,a.uc-1);a.Mm=0}function ps(a,b){a.Ch||(a.j=new ms("UU","PLAYER_"+b),us(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}
function qs(a,b){a.Ch||(a.j=new ms("FL","PLAYER_"+b),us(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function rs(a,b){if(!a.Ch){a.j=new ms("SR",b);var c={search_query:b};a.Uq&&(c.mob="1");us(a,"/search_ajax?style=json&embeddable=1",c)}}function ts(a){if(!a.Ch){var b={list:a.j},c=zs(a);c&&c.videoId&&(b.v=c.videoId);us(a,"/list_ajax?style=json&action_get_list=1",b)}}function us(a,b,c){Ji($d(b,c),{format:"JSON",onSuccess:function(a,b){Bs(this,b)},context:a})}
function Bs(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;var c=zs(a);a.b=[];z(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.b.push(a))},a);a.uc=a.b.length;Cs(a,c);vs(a,!1);a.Ch=!1;a.de=!0;a.Me&&a.Me()}}function ss(a,b){0<a.Ga&&(a.b=[]);z(b,function(a){this.b.push(a)},a);a.uc=a.b.length;a.de=!0}function Cs(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;Oh(this.b);os.G.J.call(this)};function Ds(){var a={volume:100,muted:!1},b=si("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Jb(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a};function Es(a,b,c){r(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 Fs(a)}function Fs(a,b,c){if(ka(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 Gs(a,b){this.app=a;this.g=null;this.k={};this.o={};this.B={};this.A={};this.j=null;this.b=b;U(this,"cueVideoById",this.Ov);U(this,"loadVideoById",this.fl);U(this,"cueVideoByUrl",this.Pv);U(this,"loadVideoByUrl",this.gw);U(this,"playVideo",this.Mg);U(this,"pauseVideo",this.pauseVideo);U(this,"stopVideo",this.Lk);U(this,"clearVideo",this.Mv);U(this,"getVideoBytesLoaded",this.Zv);U(this,"getVideoBytesTotal",this.$v);U(this,"getVideoLoadedFraction",this.Jl);U(this,"getVideoStartBytes",this.bw);
U(this,"cuePlaylist",this.Nv);U(this,"loadPlaylist",this.Cp);U(this,"nextVideo",this.Dp);U(this,"previousVideo",this.Ep);U(this,"playVideoAt",this.Il);U(this,"setShuffle",this.ow);U(this,"setLoop",this.kw);U(this,"getPlaylist",this.Yc);U(this,"getPlaylistIndex",this.xp);U(this,"getPlaylistId",this.yp);U(this,"loadModule",this.fw);U(this,"unloadModule",this.Ap);U(this,"setOption",this.zp);U(this,"getOption",this.mi);U(this,"getOptions",this.Vv);U(this,"mute",this.Yo);U(this,"unMute",this.Zo);U(this,
"isMuted",this.Xo);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.Wo);U(this,"seekTo",this.Ng);U(this,"getPlayerState",this.getPlayerState);U(this,"getPlaybackRate",this.Xv);U(this,"setPlaybackRate",this.mw);U(this,"getAvailablePlaybackRates",this.Rv);U(this,"getPlaybackQuality",this.Wv);U(this,"setPlaybackQuality",this.wp);U(this,"getAvailableQualityLevels",this.Sv);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",this.zg);U(this,"addEventListener",this.addEventListener);
U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.cw);U(this,"getDebugText",this.Tv);U(this,"getVideoEmbedCode",this.aw);U(this,"getVideoData",this.getVideoData);U(this,"addCueRange",this.Bp);U(this,"removeCueRange",this.hw);U(this,"setSize",this.qw);U(this,"getApiInterface",this.Qv);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.rw);U(this,"hideVideoInfo",this.dw);Hs(this,"getInternalApiInterface",this.Uv);Hs(this,"getAdState",this.getAdState);Hs(this,"isNotServable",
this.ew);Hs(this,"getUpdatedConfigurationData",this.Yv);Hs(this,"updateRemoteReceivers",this.sw);Hs(this,"sendAbandonmentPing",this.iw);Hs(this,"setAutonav",this.jw);Hs(this,"setMinimized",this.lw);Hs(this,"channelSubscribed",ca);Hs(this,"channelUnsubscribed",ca)}w(Gs,Kh);function U(a,b,c){a.k[b]=t(c,a)}function Hs(a,b,c){a.o[b]=t(c,a)}f=Gs.prototype;f.Qv=function(){return Ub(this.k)};f.Uv=function(){return Ub(this.o)};f.K=function(){return this.g};
f.addEventListener=function(a,b){var c=b;r(b)&&(c=function(){q(b).apply(window,arguments)},this.B[b]=c);this.app.subscribe(a,c)};f.Tu=function(a,b){var c=r(b)?a+b:a+la(b);if(!this.A[c]){r(b)&&(b=function(){q(b).apply(window,arguments)});var d=t(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(r(b)&&b in this.B){var c=this.B[b],d=this.B;b in d&&delete d[b]}this.app.ha(a,c)};
f.Uu=function(a,b){var c=r(b)?a+b:a+la(b);this.A[c]&&this.removeEventListener(a,this.A[c])};f.getPlayerState=function(){return this.app.ra};f.Ng=function(a,b){Is(this.app,!0,this.b);Js(this.app,a,b,void 0,this.b)};f.getCurrentTime=function(){return this.app.getCurrentTime(this.b)};f.zg=function(){return Ks(this.app)};f.Wo=function(){return this.app.D.volume};f.setVolume=function(a){this.app.setVolume(a)};f.Xo=function(){return this.app.D.muted};f.Yo=function(){Ls(this.app)};f.Zo=function(){Ms(this.app)};
f.Mg=function(){Is(this.app,!0,this.b);Ns(this.app,this.b)};f.pauseVideo=function(){Os(this.app,this.b)};f.Lk=function(){var a=this.app;Ps(a,"play_pause")||Qs(a,this.b)};f.Mv=function(){};f.Xv=function(){return this.app.la};f.mw=function(a){Rs(this.app,a)};f.Rv=function(){return this.app.b.Ag?Tq:[1]};f.Wv=function(){return Ss(this.app,this.b)};f.wp=function(a){Ts(this.app,a,this.b)};f.Sv=function(){var a=Us(this.app,this.b);return a?Vs(a):[]};f.Zv=function(){return this.Jl()};f.$v=function(){return 1};
f.Jl=function(){return Ws(this.app.U)};f.bw=function(){return 0};f.qw=function(){this.app.g.qh()};f.jw=function(a){this.app.getVideoData().Mi=a};f.lw=function(a){this.app.b.nr=a};f.fw=function(a){this.app.C.isAvailable(a)&&(a=Xs(this.app.C,a))&&!a.loaded&&a.load()};f.Ap=function(a){this.app.C.isAvailable(a)&&(a=Xs(this.app.C,a))&&a.loaded&&a.unload()};f.fl=function(a,b,c){a=Ys(this.app,Fs(a,b,c),this.b);Is(this.app,a,this.b)};f.Ov=function(a,b,c){Zs(this.app,Fs(a,b,c),this.b)};
f.gw=function(a,b,c){a=Es(a,b,c);b=Ys(this.app,a,this.b);Is(this.app,b,this.b);b=this.app;(a=ve(new J(a.mediaContentUrl)))&&$s(b.b,a)};f.Pv=function(a,b,c){b=Es(a,b,c);Zs(this.app,b,this.b);a=this.app;(b=ve(new J(b.mediaContentUrl)))&&$s(a.b,b)};f.cw=function(){return at(this.app)};f.Tv=function(){return bt(this.app)};f.aw=function(){return""};f.Bp=function(a,b,c){return ct(this.app,a,b,c)};
f.hw=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.ab.clear();b.j.A.Fg(e);b.H("cuerangesremoved",[e]);a=!0;break t}}a=!1}return a};f.Cp=function(a,b,c,d){var e=this.app;e.N=!1;dt(e,a,b,c,d);Is(this.app,!0,this.b)};f.Nv=function(a,b,c,d){var e=this.app;e.N=!0;dt(e,a,b,c,d)};f.Dp=function(){et(this.app);Is(this.app,!0,this.b)};f.Ep=function(){ft(this.app);Is(this.app,!0,this.b)};f.Il=function(a){gt(this.app,a);Is(this.app,!0,this.b)};
f.ow=function(a){var b=this.app;b.o&&vs(b.o,a)};f.kw=function(a){var b=this.app;b.o&&(b.o.Uf=a)};f.Yc=function(){var a=this.app.o;if(!a)return null;for(var b=[],c=0;c<a.uc;c++)b[c]=zs(a,c).videoId;return b};f.xp=function(){var a;a=this.app;a=a.o?a.o.Ga:null;return null==a?-1:a};f.yp=function(){return ht(this.app)};f.zp=function(a,b,c){return it(this.app,a,b,c)};f.mi=function(a,b,c){return it(this.app,a,b,c)};
f.Vv=function(a){var b;b=this.app;a?b=b.B&&a==b.B.va?b.B.Hj():jt(b.C,a):(a=jt(b.C),b.B&&a.push(b.B.va),b=a);return b};f.getVideoData=function(){var a=Us(this.app,this.b),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.rh,title:a.title},b=this.yp();b&&(a.list=b);return a};f.rw=function(){kt(this.app.g)};f.dw=function(){this.app.g.Em()};f.getAdState=function(){return this.app.getAdState()};f.ew=function(){var a=this.app.getPlayerState();return!(!a||!V(a,128)||5!=lt[a.b.errorCode])};
f.Yv=function(){var a=this.app,b=a.O.clone(),c=b.args,a=mt(a),d=bc(a.k);!a.Za&&0<a.Sa&&(d.start=a.Sa);ra(c,d);return b};f.sw=function(a,b){var c=this.app;c.F&&nt(c.F,a,b);ot(c.b)&&6!=c.I&&(c.b.Eg=!D(a),c.b.Eg?(1!=c.I&&3!=c.I||!b||pt(c.B),a.length&&1!=c.I&&qt(c)):pt(c.F))};f.destroy=function(){this.app.dispose()};f.iw=function(){var a=Us(this.app);if(a){var b=a.getPlayerState();V(b,2)||V(b,128)||(rt(a),st(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;Gs.G.J.call(this)};function tt(a,b){Gs.call(this,a,b);U(this,"cueVideoByPlayerVars",this.GD);U(this,"loadVideoByPlayerVars",this.pq);U(this,"preloadVideoByPlayerVars",this.LD);U(this,"seekBy",this.gt);U(this,"enableLicenseIntercept",this.HD);U(this,"updatePlaylist",this.QD);U(this,"resumeLicenseSession",this.MD);U(this,"updateLastActiveTime",this.PD);U(this,"updateVideoData",this.RD);U(this,"getStoryboardFormat",this.JD);U(this,"getProgressState",this.Gf);U(this,"hideUserInterface",this.KD);U(this,"showUserInterface",
this.OD);U(this,"getHousebrandProperties",this.ID);U(this,"setPlaybackQualityRange",this.ND)}w(tt,Gs);f=tt.prototype;f.Bp=function(a,b,c,d,e){return ct(this.app,a,b,c,d,e)};f.GD=function(a){Zs(this.app,a,this.b)};f.getPlayerState=function(a){var b=this.app;return 2==a?b.za:b.ra};f.pq=function(a){Ys(this.app,a,this.b)};f.LD=function(){};f.Mg=function(){Ns(this.app,this.b)};f.Ng=function(a,b){Js(this.app,a,b,void 0,this.b)};f.Cp=function(a,b,c,d){var e=this.app;e.N=!1;dt(e,a,b,c,d)};f.Dp=function(){et(this.app)};
f.Ep=function(){ft(this.app)};f.Il=function(a){gt(this.app,a)};f.gt=function(a,b,c){var d=this.app,e=this.b;Js(d,d.getCurrentTime()+a,b,c,e)};f.HD=function(){var a=this.app;a.Ha||(a.Ha=!0,a.wa={})};f.QD=function(){var a=this.app;ut(a);a.Ua("onPlaylistUpdate")};f.MD=function(a,b){var c=this.app,d=c.wa[a];d&&(vt(d,b),d.start(),delete c.wa[a])};f.PD=function(){this.app.b.fg=v()};f.RD=function(a){var b=Us(this.app,this.b||1);b&&(b=b.b,Tr(b,a),b.H("dataupdated"))};f.JD=function(){return this.app.getVideoData().k.storyboard_spec};
f.KD=function(){this.app.g.Mj(!1)};f.OD=function(){this.app.g.Mj(!0)};f.ID=function(){var a=this.app.R();return{bc:a.bc,Ab:a.Ab(),fc:a.fc}};f.getVideoData=function(){var a=tt.G.getVideoData.call(this),b=Us(this.app,this.b),b=b?b.getVideoData():{};a.cpn=b.Da;a.isLive=b.Za;return a};f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):tt.G.getCurrentTime.call(this)};f.zg=function(a){return a?Ks(this.app,a):tt.G.zg.call(this)};
f.Gf=function(){var a=this.app.getVideoData(),b=a.Za&&!a.nb?this.getCurrentTime():a.j&&!isNaN(Hp(a.j))?Hp(a.j):a.Oa,c=!a.Za||a.nb,d=a.clipEnd,e=a.clipStart,g=this.getCurrentTime(),h=this.zg(),k;k=(k=Us(this.app,void 0))?wt(k.g):0;return{allowSeeking:c,clipEnd:d,clipStart:e,current:g,displayedStart:-1,duration:h,loaded:k,seekableEnd:b,seekableStart:a.j&&!isNaN(Ip(a.j))?Ip(a.j):0}};f.Jl=function(a){var b=this.app;return(b.A&&2==b.A.getPlayerType())==(2==a)?Ws(b.U):0};
f.ND=function(a,b){Ts(this.app,a,this.b,b)};function xt(a,b){tt.call(this,a,b)}w(xt,tt);f=xt.prototype;f.getPlayerType=function(){return this.b};f.fl=function(a,b,c){Ys(this.app,Fs(a,b,c),this.b)};f.Mg=function(){Ns(this.app,this.b)};f.Ng=function(a,b){Js(this.app,a,b,void 0,this.b)};function zt(a,b){a.app.g.g.appendChild(b)}function At(a){return a.app.g.element}f.R=function(){return this.app.R()};f.Yc=function(){return this.app.o};f.getVideoData=function(){var a=Us(this.app,this.b);return a&&a.getVideoData()};f.isFullscreen=function(){return this.app.R().tb};function Bt(a,b){this.lg=a;this.ef=b+"::"}w(Bt,ci);f=Bt.prototype;f.lg=null;f.ef="";f.set=function(a,b){this.lg.set(this.ef+a,b)};f.get=function(a){return this.lg.get(this.ef+a)};f.remove=function(a){this.lg.remove(this.ef+a)};f.Wb=function(a){var b=this.lg.Wb(!0),c=this,d=new Ad;d.next=function(){for(var d=b.next();d.substr(0,c.ef.length)!=c.ef;)d=b.next();return a?d.substr(c.ef.length):c.lg.get(d)};return d};function Ct(a,b){this.start=a;this.end=b;this.b=la(this)}function Dt(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}Ct.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)};Ct.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function Et(){this.b=[]}function Ft(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 Gt(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 Ht(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(Bb);return c[0]};function It(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 Jt(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 Kt(a,b){var c=Jt(a,b);return 0<=c?a.end(c):NaN}function Lt(a){return a&&a.length?a.end(a.length-1):NaN}function Mt(a,b){var c=Kt(a,b);return 0<=c?c-b:0};function Nt(){}var Ot=Mq&&4>Lq?.1:0,Pt=new Nt;f=Nt.prototype;f.yd=null;f.Wk=!1;function Qt(a,b){var c="";b&&(a.yd=b,c=yr(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.b||a.load())}function Rt(a,b){0<a.readyState&&(a.currentTime=Math.max(Ot,b))}f.getCurrentTime=function(){return this.currentTime||0};function wt(a){return 0<Lt(a.buffered)&&a.duration?Kt(a.buffered,a.currentTime):0}function Ws(a){var b=a.duration||0;return Infinity==b?1:b?wt(a)/b:0}function St(a){return a.paused||a.ended}
function Tt(a){a.ended&&Rt(a,0);!a.hasAttribute("src")&&a.yd&&(a.src=yr(a.yd),a.yd.b||a.load());a.play();Mq&&7<=Lq&&Qg(a,t(function(){L(t(this.ms,this,this.currentTime,0),500)},a))}f.ms=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),L(t(this.ms,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function Ut(a){a.currentSrc&&(lr&&Rt(a,0),dd(a),a.removeAttribute("src"),a.load(),a.yd&&a.yd.b&&(a.yd=null))}function Vt(a){Ut(a);a.yd=null}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function Wt(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.JC=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.KC=function(){this.Wk&&!this.muted&&(this.muted=!0)};
Nt.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:It(this.played),vbu:It(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 Xt(a,b){for(var c=0;c<b.length;c++)a.appendChild(b[c])};function Yt(a,b){a=a||64;a&128&&!b||a&2&&a&16||(this.g=a,this.b=b||null)}Yt.prototype.g=64;Yt.prototype.b=null;
function Zt(a,b,c){if(V(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=$t();e=null;break;case "pause":V(a,256)?d^=256:V(a,32)||V(a,2)||(d=4,V(a,1)&&V(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":V(a,8)&&au(c,g)&&(d|=1);break;case "seeked":d&=-18;break;case "seeking":d|=16;0>=Mt(g.buffered,g.currentTime)&&(d|=1);d&=-3;break;case "waiting":V(a,2)||(d|=1);break;case "timeupdate":V(a,16)||(d=au(c,g)?d|1:d&-2);1<g.readyState&&0<g.currentTime&&(d&=-65);break;default:return a}return bu(a,d,e)}
function au(a,b){if(!a)return!1;var c=Mt(b.buffered,b.currentTime);return cu(a,b.currentTime,v(),c)}function bu(a,b,c){return b==a.g&&c==a.b||b&128&&!c||b&2&&b&16?a:new Yt(b,c)}function du(a,b){return bu(a,a.g|b)}function V(a,b){return!!(a.g&b)}function eu(a){return V(a,128)?-1:V(a,2)?0:V(a,1)&&!V(a,32)?3:V(a,64)?-1:V(a,8)?1:V(a,4)?2:-1}function $t(){var a;return a=14};function fu(a,b,c){Ct.call(this,a,b);a=c||{};this.qa=a.id||"";void 0!=a.priority&&(this.Lh=a.priority);this.namespace=a.namespace||"";this.ab=new Ph;this.g=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.$d=a.visible)}w(fu,Ct);f=fu.prototype;f.qa="";f.Lh=7;f.active=!0;f.$d=!1;f.style="ytp-ad-progress";f.ab=null;f.namespace="";f.getId=function(){return this.qa};function gu(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}
function hu(a,b){return a.start==b.start?a.Lh==b.Lh?0:a.Lh<b.Lh?-1:1:a.start<b.start?-1:1};function iu(a,b,c){cj.call(this);this.C=a;this.B=b;this.D=c;this.o=new Pk(250);yk(this.o,"tick",this.nc,!1,this);R(this,this.o);this.j=[];this.b=[];this.g=new Et}w(iu,cj);f=iu.prototype;f.Ai=!1;f.Cg=!1;f.um=!1;f.tm=!1;f.Gg=null;f.Ci=function(a){this.nc();z(arguments,function(a){this.j.push(a);var c=this.g.b;!c.length||0<Dt(a,c[c.length-1])?c.push(a):Hb(c,a,Dt);this.H("onAdd",a)},this);this.nc()};f.Fg=function(a){z(arguments,function(a){a=this.j.indexOf(a);0<=a&&ju(this,a)},this);this.nc()};
function ju(a,b){var c=a.j.splice(b,1)[0],d=a.g.b,e=Ab(d,c,Dt);0<=e&&sb(d,e);b=a.b.indexOf(c);0<=b&&a.b.splice(b,1);a.H("onRemove",c)}f.Og=function(){this.k=ku(this);this.Cg=!0;this.nc()};f.reset=function(){this.Cg=this.Ai=!1;lu(this);for(var a=this.j.length-1;0<=a;a--)ju(this,a);this.nc();this.A=null};function mu(a,b){var c=[];if(!b.length)return c;b.sort(hu);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 nu(a,b){var c=[];if(!b.length)return c;b.sort(hu);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.nc=function(){this.tm=!0;if(!this.um)for(var a=3;this.tm&&a;){this.tm=!1;this.um=!0;if(this.Cg&&!this.Ai){lu(this);for(var b=ku(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(nu(this,d));d=Ft(this.g,b);e=this.B();!V(e,48)&&b>this.k&&(d=d.concat(Gt(this.g,this.k,b)));c=c.concat(mu(this,d));this.k=b;!this.Ai&&this.A&&(c.unshift(["onLockBlockExit",this.A]),this.A=null,V(e,2)&&(this.k=2147483647));this.D()&&(b=Ht(this.g,this.k),null!=b&&(this.Gg=
Rk(t(this.nc,this),b-this.k)));ou(this,c)}this.um=!1;a--}};function ou(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.ab.H.apply(e.ab,d)}}function lu(a){null!=a.Gg&&(Sk(a.Gg),a.Gg=null)}function ku(a){return V(a.B(),2)?2147483647:1E3*a.C()}f.J=function(){Gk(this.o,"tick",this.nc,!1,this);lu(this);this.A=this.g=this.b=this.j=null;iu.G.J.call(this)};function pu(a){cj.call(this);this.b=a;if(this.Bn){a="yt-html5-player-modules::"+this.Bn;var b=new ei;if(a=b.isAvailable()?a?new Bt(b,a):b:null)this.aa=new gi(a)}}w(pu,cj);f=pu.prototype;f.va="";f.ic="";f.jc=!1;f.loaded=!1;f.kk=!1;f.oc=null;f.Kf=function(a){var b=vb(arguments),c=t(this.Dc,this),d=t(this.jd,this);z(b,function(a){a.namespace=this.va;a.ab.subscribe("onEnter",c);a.ab.subscribe("onExit",d)},this);this.H("command_add_cuerange",b,this.b.getPlayerType())};
f.hD=function(a){var b=vb(arguments);this.H("command_remove_cuerange",b,this.b.getPlayerType())};function qu(a){a.H("command_remove_cuerange_all",a.va,a.b.getPlayerType())}function ru(a){a.H("command_preroll_ready",a.va,a.b.getPlayerType())}function su(a,b){N(b,a.va);a.b.app.g.N.K().appendChild(b)}function tu(a,b){a.H("command_show_dialog",b)}f.ug=function(){tu(this)};f.create=function(){this.jc||(this.Ja(this.b),N(At(this.b),this.va+"-created"),this.jc=!0)};
f.destroy=function(){this.loaded&&this.unload();O(At(this.b),this.va+"-created");this.jc=!1};f.load=function(){this.loaded=!0;N(At(this.b),this.va+"-loaded");this.H("loaded",this.va)};f.unload=function(){this.loaded=!1;O(At(this.b),this.va+"-loaded");this.H("unloaded",this.va)};f.Dc=function(){};f.jd=function(){};f.le=function(){};function uu(a,b,c){a.H("command_navigate_to_url",b,c)}f.log=function(a){this.H("command_log",this.ic,a)};
function vu(a,b,c){var d={},e;for(e in b)d[a.va+"_"+e]=b[e];b={};for(var g in c)b[a.va+"_"+g]=c[g];a.H("command_log_timing",d,b)}f.$g=function(){return null};function wu(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 xu(a,b,c){if(a.aa)try{a.aa.set(b,c)}catch(d){}}function yu(a,b){a.H("command_disable_controls",b,a.va)}function zu(a,b){a.H("command_enable_controls",b,a.va)}function Au(a){a.H("command_stop_redirect_controls")}
function Bu(a){a.H("command_play",!1,a.b.getPlayerType())}f.pauseVideo=function(){this.H("command_pause",!1,this.b.getPlayerType())};function Cu(a,b){a.H("command_redirected_show_is_playing",b)}function Du(a){return a.b.app.g.j}function Eu(a,b){a.H("module_menu_item_add",b)}function Fu(a,b){a.H("module_menu_item_remove",b)}function Gu(a){a.H("module_menu_show",void 0)}f.Nj=function(){};f.Hj=function(){return[]};f.Ja=function(){return!1};f.Sm=function(){return!0};
f.Wl=function(a,b){this.oc&&this.oc.le&&this.oc.le.apply(this.oc,arguments)};f.Ki=function(){};var Hu={wG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",BG:"ERROR_AUTHENTICATION_EXPIRED",CG:"ERROR_AUTHENTICATION_MALFORMED",DG:"ERROR_AUTHENTICATION_MISSING",GG:"ERROR_BAD_REQUEST",MG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",UG:"ERROR_CGI_PARAMS_MALFORMED",VG:"ERROR_CGI_PARAMS_MISSING",JH:"YTP_DEVICE_FALLBACK",RH:"YTP_ERROR_LICENSE",UH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",XH:"YTP_ERROR_GEO_FAILURE",kI:"YTP_ERROR_GENERIC",lI:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",uI:"YTP_ERROR_INVALID_DRM_MESSAGE",
yI:"LEARN_MORE",bJ:"YTP_ERROR_NOT_SIGNED_IN",qJ:"YTP_ERROR_PURCHASE_NOT_FOUND",rJ:"YTP_ERROR_PURCHASE_REFUNDED",uJ:"YTP_ERROR_RENTAL_EXPIRED",OG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",PG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",RG:"YTP_ERROR_CAST_TOKEN_FAILED",QG:"YTP_ERROR_CAST_TOKEN_EXPIRED",SG:"YTP_ERROR_CAST_TOKEN_MALFORMED",FJ:"YTP_ERROR_SERVER_ERROR",UJ:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",WJ:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",XJ:"YTP_ERROR_STREAMING_NOT_ALLOWED",YJ:"YTP_ERROR_STREAMING_UNAVAILABLE",
xJ:"YTP_ERROR_RETRYABLE_ERROR",fK:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",eK:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",kK:"YTP_ERROR_UNSUPPORTED_DEVICE",mK:"YTP_ERROR_UNUSUAL_ACTIVITY",vK:"YTP_ERROR_VIDEO_FORBIDDEN",xK:"YTP_ERROR_VIDEO_NOT_FOUND"},Iu={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 Ju(a){return(a=Iu[a.toString()])?a:"YTP_ERROR_LICENSE"};var Ku={created:1,ready:2,testing:4,"testing-starting":3,live:6,"live-starting":5,complete:8,"complete-starting":7};function Lu(a){m.setTimeout(function(){throw a;},0)}var Mu;
function Nu(){var a=m.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(a=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=t(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 a){var b=new a,c={},d=c;b.port1.onmessage=function(){c=c.next;var a=c.Jt;c.Jt=null;a()};return function(a){d.next={Jt:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);
b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){m.setTimeout(a,0)}};function Ou(a,b){Pu||Qu();Ru||(Pu(),Ru=!0);Su.push(new Tu(a,b))}var Pu;function Qu(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Pu=function(){a.then(Uu)}}else Pu=function(){var a=Uu;ja(m.setImmediate)?m.setImmediate(a):(Mu||(Mu=Nu()),Mu(a))}}var Ru=!1,Su=[];function Uu(){for(;Su.length;){var a=Su;Su=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.b.call(c.scope)}catch(d){Lu(d)}}}Ru=!1}function Tu(a,b){this.b=a;this.scope=b};function Vu(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Wu(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Xu(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){Yu(c,2,a)},function(a){Yu(c,3,a)})}catch(d){Yu(this,3,d)}}Xu.prototype.then=function(a,b,c){return Zu(this,ja(a)?a:null,ja(b)?b:null,c)};Vu(Xu);Xu.prototype.cancel=function(a){0==this.g&&Ou(function(){var b=new $u(a);av(this,b)},this)};
function av(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.lj)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(0==c.g&&1==d?av(c,b):(d=c.b.splice(e,1)[0],bv(c,d,3,b)))}}else Yu(a,3,b)}function cv(a,b){a.b&&a.b.length||2!=a.g&&3!=a.g||dv(a);a.b||(a.b=[]);a.b.push(b)}
function Zu(a,b,c,d){var e={lj:null,Is:null,Js:null};e.lj=new Xu(function(a,h){e.Is=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.Js=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof $u?h(b):a(e)}catch(p){h(p)}}:h});e.lj.j=a;cv(a,e);return e.lj}Xu.prototype.B=function(a){this.g=0;Yu(this,2,a)};Xu.prototype.C=function(a){this.g=0;Yu(this,3,a)};
function Yu(a,b,c){if(0==a.g){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(Wu(c)){a.g=1;c.then(a.B,a.C,a);return}if(ka(c))try{var d=c.then;if(ja(d)){ev(a,c,d);return}}catch(e){b=3,c=e}}a.A=c;a.g=b;dv(a);3!=b||c instanceof $u||fv(a,c)}}function ev(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 dv(a){a.o||(a.o=!0,Ou(a.D,a))}
Xu.prototype.D=function(){for(;this.b&&this.b.length;){var a=this.b;this.b=[];for(var b=0;b<a.length;b++)bv(this,a[b],this.g,this.A)}this.o=!1};function bv(a,b,c,d){if(2==c)b.Is(d);else{for(;a&&a.k;a=a.j)a.k=!1;b.Js(d)}}function fv(a,b){a.k=!0;Ou(function(){a.k&&gv.call(null,b)})}var gv=Lu;function $u(a){ta.call(this,a)}w($u,ta);$u.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 hv(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=hv.prototype;f.cancel=function(a){if(this.b)this.j instanceof hv&&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.eh(new iv)}};f.dp=function(a,b){this.B=!1;jv(this,a,b)};function jv(a,b,c){a.b=!0;a.j=c;a.k=!b;kv(a)}
function lv(a){if(a.b){if(!a.D)throw new mv;a.D=!1}}f.ht=function(a){lv(this);jv(this,!0,a)};f.eh=function(a){lv(this);jv(this,!1,a)};function nv(a,b,c){ov(a,b,null,c)}function ov(a,b,c,d){a.o.push([b,c,d]);a.b&&kv(a)}f.then=function(a,b,c){var d,e,g=new Xu(function(a,b){d=a;e=b});ov(this,d,function(a){a instanceof iv?g.cancel():e(a)});return g.then(a,b,c)};Vu(hv);function pv(a){return jb(a.o,function(a){return ja(a[1])})}
function kv(a){if(a.A&&a.b&&pv(a)){var b=a.A,c=qv[b];c&&(m.clearTimeout(c.qa),delete qv[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);Wu(b)&&(d=!0,a.B=!0)}catch(l){b=l,a.k=!0,pv(a)||(c=!0)}}a.j=b;d&&(k=t(a.dp,a,!0),d=t(a.dp,a,!1),b instanceof hv?(ov(b,k,d),b.M=!0):b.then(k,d));c&&(b=new rv(b),qv[b.qa]=b,a.A=b.qa)}
function mv(){ta.call(this)}w(mv,ta);mv.prototype.message="Deferred has already fired";mv.prototype.name="AlreadyCalledError";function iv(){ta.call(this)}w(iv,ta);iv.prototype.message="Deferred was canceled";iv.prototype.name="CanceledError";function rv(a){this.qa=m.setTimeout(t(this.g,this),0);this.b=a}rv.prototype.g=function(){delete qv[this.qa];throw this.b;};var qv={};function sv(a,b){var c=b||{},d=c.document||document,e=$c("SCRIPT"),g={jt:e,kb:void 0},h=new hv(tv,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){uv(e,!0);h.eh(new vv(1,"Timeout reached for loading script "+a))},l),g.kb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(uv(e,c.JA||!1,k),h.ht(null))};e.onerror=function(){uv(e,!0,k);h.eh(new vv(0,"Error while loading script "+a))};Qc(e,{type:"text/javascript",charset:"UTF-8",
src:a});wv(d).appendChild(e);return h}function wv(a){var b=a.getElementsByTagName("HEAD");return!b||D(b)?a.documentElement:b[0]}function tv(){if(this&&this.jt){var a=this.jt;a&&"SCRIPT"==a.tagName&&uv(a,!0,this.kb)}}function uv(a,b,c){null!=c&&m.clearTimeout(c);a.onload=ca;a.onerror=ca;a.onreadystatechange=ca;b&&window.setTimeout(function(){fd(a)},0)}function vv(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ta.call(this,c);this.code=a}w(vv,ta);function xv(a,b){this.g=new J(a);this.b=b?b:"callback";this.kb=5E3}var yv=0;xv.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(yv++).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)||we(e,g,a[g]);b&&(m._callbacks_[d]=zv(d,b),we(e,this.b,"_callbacks_."+d));b=sv(e.toString(),{timeout:this.kb,JA:!0});ov(b,null,Av(d,a,c),void 0);return{qa:d,Pr:b}};
xv.prototype.cancel=function(a){a&&(a.Pr&&a.Pr.cancel(),a.qa&&Bv(a.qa,!1))};function Av(a,b,c){return function(){Bv(a,!1);c&&c(b)}}function zv(a,b){return function(c){Bv(a,!0);b.apply(void 0,arguments)}}function Bv(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=ca)};function Cv(a){this.b=a;a=null;a=Dv(this.b);a="("+a.join("|")+")";a=wa("__%s__",a);this.j=new RegExp(a,"g");this.g={}}var Ev=/__([a-z]+(?:_[a-z]+)*)__/g;function Dv(a){var b=[],c={};a.replace(Ev,function(a,e){e in c||(c[e]=!0,b.push(e))});return b}function Fv(a,b){var c=t(function(a,c){return Ca(b[c]||this.g[c]||"")},a);return a.b.replace(a.j,c)};function Gv(a,b){cj.call(this);this.j=Fv(new Cv(b),{video_id:a});this.b=new Pk(15E3+Math.floor(3E4*Math.random()));yk(this.b,"tick",t(this.g,this));this.g();this.b.start()}w(Gv,cj);Gv.prototype.J=function(){this.b.dispose();Gv.G.J.call(this)};Gv.prototype.g=function(){(new xv(this.j)).send(null,t(this.o,this),t(this.k,this))};Gv.prototype.o=function(a){this.H("payload",a);Qk(this.b,15E3+Math.floor(3E4*Math.random()))};Gv.prototype.k=function(){this.H("error");var a=this.b.b;192E4>a&&Qk(this.b,2*a)};function Hv(a){this.b={};this.j={};this.k={};this.g=Iv(this,a)}w(Hv,Kh);function Iv(a,b,c){var d=0,e=$c(b[d++]);if(r(b[d])||ga(b[d])||null===b[d]){var g=b[d++];ga(g)&&(g=g.join(" "));if(g=Jv(a,e,"className",g))Kv(a,e,"className",g),Lv(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ga(h))Iv(a,h,e);else if(ka(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&Kv(g,k,l,Jv(g,k,l,h[l]))}else r(h)&&(g=Jv(a,e,"child",h),null!=g&&e.appendChild(ad(g)))}c&&c.appendChild(e);return e}f=Hv.prototype;f.K=function(){return this.g};
function Lv(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)Lv(a,d[b],c);else a.b[b]=c}f.W=function(a,b){n(b)?ed(a,this.g,b):a.appendChild(this.g)};f.ad=function(){fd(this.g)};function Jv(a,b,c,d){return r(d)&&"{{"==d.substr(0,2)?(a.j[d]=[b,c],null):d}f.update=function(a){for(var b in a)Mv(this,b,a[b])};function Mv(a,b,c){if(c!=a.k[b]){var d=a.j["{{"+b+"}}"];d&&(a.k[b]=c,Kv(a,d[0],d[1],c))}}function Nv(a){return ga(a)&&r(a[0])}
function Kv(a,b,c,d){if("child"==c){dd(b);if(!ga(d)||Nv(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ia(g)||r(g)||ka(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?Nv(g)?c.push(Iv(a,g)):g.K?c.push(g.K()):c.push(ad(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.ad();delete this.g;Hv.G.J.call(this)};function Ov(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 Pv(a){return Math.round(1E3*a)/10};var Qv={VJ:"html5-stop-propagation",XG:"html5-chromeless",BI:"html5-live-dvr-disabled",CI:"html5-live-dvr-engaged",DI:"html5-live-playback",OI:"html5-mobile",RI:"modest-branding",$I:"html5-native-controls",$J:"html5-tablet",ZJ:"html5-tablet-body",JI:"html5-main-video",qK:"html5-video-container",rK:"html5-video-content",sK:"html5-video-controls",tK:"ytp-fallback",uK:"ytp-fallback-content",wK:"html5-video-loader",EK:"html5-watermark",IG:"html5-branded-watermark",cH:"html5-context-menu",xz:"html5-context-menu-copy-debug-info",
yz:"html5-context-menu-copy-embed-html",zz:"html5-context-menu-copy-video-url",Az:"html5-context-menu-copy-video-url-at-current-time",Bz:"html5-context-menu-link",Cz:"html5-context-menu-report-playback-issue",Dz:"html5-context-menu-show-video-info",dH:"html5-show-video-info-template",QI:"html5-modal-panel",mI:"ideal-aspect",LI:"autominimize-controls",MI:"autominimize-controls-aspect",aI:"autohide-controls",bI:"autohide-controls-fullscreenonly",NI:"autominimize-progress-bar",VH:"hide-controls-when-cued",
oK:"ytp-user-idle",cI:"hide-info-bar",dI:"html5-hide-share",eI:"html5-hide-volume",EG:"ytp-autohide-fade",zK:"video-thumbnail",kJ:"ytp-dialog",yG:"html5-async-progress",zG:"html5-async-success",xG:"html5-async-error",TG:"html5-center-overlay",AJ:"ytp-scalable-icon-shrink",zJ:"ytp-scalable-icon-grow",jI:"house-brand",EJ:"sentiment-like",DJ:"sentiment-dislike"};function Rv(){this.j=new Hv(["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}}"]]]);R(this,this.j);this.g=this.j.b["html5-fresca-module"];N(this.g,"html5-stop-propagation");this.k=0;this.b=null}w(Rv,Kh);Rv.prototype.K=function(){return this.g};
Rv.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 Sv(a){var b=Math.floor((new Date).valueOf()/1E3);return b>a?Ze("YTP_FRESCA_STARTING_SOON_MESSAGE"):Ov(a-b)}
Rv.prototype.o=function(){var a;a=this.b;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;P(this.g,"html5-fresca-show-countdown",a);a&&(this.j.update({countdown:Sv(this.b.startTime)}),M(this.k),this.k=L(t(this.o,this),1E3))};Rv.prototype.J=function(){M(this.k);this.g=null;Rv.G.J.call(this)};function Tv(a){this.b=[];this.j=!1;a&&Uv(this,a)}Tv.prototype.state=-1;function Vv(a){return{imageUrl:a.g,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function Uv(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=Ku[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=B(d,function(a){return a.$t}));if(c=c.entry)a.j=0<=mb(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}Tv.prototype.getMessage=function(){return this.b.length?this.b:Wv(this)};
function Wv(a){switch(a.state){case 6:return a.j?[]:[Ze("YTP_FRESCA_STAND_BY_MESSAGE"),Ze("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[Ze("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[Ze("YTP_FRESCA_EVENT_OVER_MESSAGE"),Ze("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[Ze("YTP_FRESCA_STAND_BY_MESSAGE")]}};function Xv(a){pu.call(this,a);Ye({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starting soon...",YTP_FRESCA_EVENT_OVER_MESSAGE:"This live event is over.",YTP_FRESCA_COMPLETE_MESSAGE:"Thanks for watching!",YTP_FRESCA_STAND_BY_MESSAGE:"Please stand by.",YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE:"We're experiencing technical difficulties."})}w(Xv,pu);f=Xv.prototype;f.va="fresca";f.ic="fresca";f.bj=!1;f.ah=!1;f.Ja=function(){return js(this.b.getVideoData(),"fresca_module")};
f.create=function(a){Xv.G.create.call(this);Ir(kq(),"application/x-mpegURL")||Kr()?(this.bj=this.ah=!1,yu(this,["play_pause","seek"]),this.j=new Rv,zt(this.b,this.j.K()),this.k=a||new Gv(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.oA,this),this.k.subscribe("error",this.nA,this),this.subscribe("onStateChange",this.or,this)):Yv(this.b.app.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
void 0)};f.destroy=function(){this.ha("onStateChange",this.or,this);Oh(this.k,this.j);Xv.G.destroy.call(this)};f.or=function(a){this.g&&(this.bj=V(a.state,2),(Zv(a,16)||this.bj)&&$v(this,this.g))};f.nA=function(){this.ah||(aw(this,new Tv),$v(this,this.g))};f.oA=function(a){aw(this,new Tv(a));a=this.b.getVideoData();6!=this.g.state||a.aa||a.O?$v(this,this.g):this.b.fl(a.videoId)};
function $v(a,b){var c=6>b.state;!c&&a.b.app.j.wa&&(b.g||b.b.length)&&(c=!0);a.bj&&!a.b.R().Ic&&(c=!0);b.j||(c=!0);if(!a.ah)switch(b.state){case 6:b.j&&(a.ah=!0,zu(a,["play_pause","seek"]),ru(a));break;case 8:case 7:c=a.ah=!0}c&&a.j.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function bw(a){return js(a.getVideoData(),"fresca_module")?new Xv(a):null}function aw(a,b){a.g!=b&&(a.g=b,a.b.R().Ab()&&a.H("publish_external_event","onFrescaStateChange",Vv(a.g)))};function cw(a){this.Yn=a||window;this.hd=[]}f=cw.prototype;f.Yn=null;f.hd=null;f.listen=function(a,b,c,d){c=t(c,d||this.Yn);a=Q(a,b,c);this.hd.push(a);return a};function dw(a,b,c,d,e,g){d=t(d,g||a.Yn);b=Sg(b,c,d,e);a.hd.push(b)}f.Fa=function(a){Rg(a);rb(this.hd,a)};f.removeAll=function(){Rg(this.hd);this.hd=[]};function ew(a,b,c){this.b=a;this.k=b||0;this.g=c;this.j=t(this.cz,this)}w(ew,Kh);f=ew.prototype;f.qa=0;f.J=function(){ew.G.J.call(this);this.stop();delete this.b;delete this.g};f.start=function(a){this.stop();this.qa=Rk(this.j,n(a)?a:this.k)};f.stop=function(){0!=this.qa&&Sk(this.qa);this.qa=0};f.cz=function(){this.qa=0;this.b&&this.b.call(this.g)};function fw(){T.call(this);this.b=0;this.endTime=this.startTime=null}w(fw,T);f=fw.prototype;f.Lc=function(){this.Jb("begin")};f.Cd=function(){this.Jb("end")};f.vb=function(){this.Jb("finish")};f.onStop=function(){this.Jb("stop")};f.Jb=function(a){this.S(a)};function gw(){fw.call(this);this.g=[]}w(gw,fw);gw.prototype.add=function(a){C(this.g,a)||(this.g.push(a),yk(a,"finish",this.k,!1,this))};gw.prototype.remove=function(a){rb(this.g,a)&&Gk(a,"finish",this.k,!1,this)};gw.prototype.J=function(){z(this.g,function(a){a.dispose()});this.g.length=0;gw.G.J.call(this)};function hw(){gw.call(this);this.j=0}w(hw,gw);
hw.prototype.play=function(a){if(0==this.g.length)return!1;if(a||0==this.b)this.j=0,this.Lc();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};hw.prototype.pause=function(){1==this.b&&(z(this.g,function(a){1==a.b&&a.pause()}),this.b=-1,this.Jb("pause"))};
hw.prototype.stop=function(a){z(this.g,function(b){0==b.b||b.stop(a)});this.b=0;this.endTime=v();this.onStop();this.Cd()};hw.prototype.k=function(){this.j++;this.j==this.g.length&&(this.endTime=v(),this.b=0,this.vb(),this.Cd())};var iw=/#(.)(.)(.)/;function jw(a){if(!kw.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(iw,"#$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 kw=/^#(?:[0-9a-f]{3}){1,2}$/i;var lw={},mw=null;function nw(a){a=la(a);delete lw[a];Zb(lw)&&mw&&mw.stop()}function ow(){mw||(mw=new ew(function(){tw()},20));var a=mw;0!=a.qa||a.start()}function tw(){var a=v();Ob(lw,function(b){uw(b,a)});Zb(lw)||ow()};function vw(a,b,c,d){fw.call(this);if(!ga(a)||!ga(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(vw,fw);f=vw.prototype;f.ld=0;
f.play=function(a){if(a||0==this.b)this.ld=0,this.g=this.k;else if(1==this.b)return!1;nw(this);this.startTime=a=v();-1==this.b&&(this.startTime-=this.duration*this.ld);this.endTime=this.startTime+this.duration;this.ld||this.Lc();this.Jb("play");-1==this.b&&this.Jb("resume");this.b=1;var b=la(this);b in lw||(lw[b]=this);ow();uw(this,a);return!0};f.stop=function(a){nw(this);this.b=0;a&&(this.ld=1);ww(this,this.ld);this.onStop();this.Cd()};f.pause=function(){1==this.b&&(nw(this),this.b=-1,this.Jb("pause"))};
f.J=function(){0==this.b||this.stop(!1);this.Jb("destroy");vw.G.J.call(this)};f.destroy=function(){this.dispose()};function uw(a,b){a.ld=(b-a.startTime)/(a.endTime-a.startTime);1<=a.ld&&(a.ld=1);ww(a,a.ld);1==a.ld?(a.b=0,nw(a),a.vb(),a.Cd()):1==a.b&&a.qn()}function ww(a,b){ja(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.qn=function(){this.Jb("animate")};f.Jb=function(a){this.S(new xw(a,this))};
function xw(a,b){S.call(this,a);this.x=b.g[0];this.y=b.g[1];this.duration=b.duration;this.state=b.b}w(xw,S);function yw(a,b,c,d,e){vw.call(this,b,c,d,e);this.element=a}w(yw,vw);yw.prototype.j=ca;yw.prototype.qn=function(){this.j();yw.G.qn.call(this)};yw.prototype.Cd=function(){this.j();yw.G.Cd.call(this)};yw.prototype.Lc=function(){this.j();yw.G.Lc.call(this)};function zw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");yw.apply(this,arguments)}w(zw,yw);
zw.prototype.j=function(){this.element.style.left=Math.round(this.g[0])+"px";this.element.style.top=Math.round(this.g[1])+"px"};function Aw(a,b,c,d){zw.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}w(Aw,zw);Aw.prototype.Lc=function(){this.k=[this.element.offsetLeft,this.element.offsetTop];Aw.G.Lc.call(this)};function Bw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");yw.apply(this,arguments)}w(Bw,yw);
Bw.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px";this.element.style.height=Math.round(this.g[1])+"px"};function Cw(a,b,c,d,e){yw.call(this,a,[b],[c],d,e)}w(Cw,yw);Cw.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px"};function Dw(a,b,c,d,e){ia(b)&&(b=[b]);ia(c)&&(c=[c]);yw.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");}w(Dw,yw);Dw.prototype.j=function(){eg(this.element,this.g[0])};
Dw.prototype.show=function(){this.element.style.display=""};Dw.prototype.hide=function(){this.element.style.display="none"};function Ew(a,b,c){Dw.call(this,a,1,0,b,c)}w(Ew,Dw);Ew.prototype.Lc=function(){this.show();Ew.G.Lc.call(this)};Ew.prototype.Cd=function(){this.hide();Ew.G.Cd.call(this)};function Fw(a,b,c){Dw.call(this,a,0,1,b,c)}w(Fw,Dw);Fw.prototype.Lc=function(){this.show();Fw.G.Lc.call(this)};function Gw(a){return Math.pow(a,3)}function Hw(a){return 3*a*a-2*a*a*a};function Iw(a){return ga(a)&&a.length?a[0]:a}function Jw(a){var b=/.+/;return r(a)&&null!=b&&null!=a&&a.match(b)?a:""}function Kw(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 Lw(a){return r(a)?a:""}function Mw(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function Nw(a,b){return"true"==a||"false"==a?"true"==a:b}function Ow(a,b){return r(a)?parseFloat(a):b}
function Pw(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Jb(a,c,d);if(a>=c&&a<=d)return a}return g}function Qw(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 Rw(a,b){if(null==a)return null;if(ha(a)){var c=[];z(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function Sw(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new yf(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 Tw(a){function b(a){return hb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function Uw(a){this.value=a};function Vw(a,b,c){this.value=a;this.target=b;this.b=c}var Ww={hH:"current",aJ:"new"};function Xw(a){return a.value?a.value:null};function Yw(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var Zw={CLOSE:"close",fJ:"openUrl",PAUSE:"pause",NE:"subscribe"},$w={CLICK:"click",CLOSE:"close",HE:"hidden",yJ:"rollOut",LE:"rollOver",ME:"shown"};
function ax(a){if(!a)return null;var b=Mw(a.type,Zw),c=Mw(a.trigger,$w),d;if(d=Iw(a.url)){var e=Lw(d.value);if(e&&null!=zi(e)){var g=Mw(d.target,Ww,"current");d=null==g?null:new Vw(e,g,Nw(d.show_link_icon,!0))}else d=null}else d=null;Iw(a.subscribeData);(a=Iw(a.duration))?(a=Qw(a.value),a=new Uw(a)):a=null;return b?new Yw(b,c,d,a):null};function bx(a,b,c,d,e,g,h,k,l,p,s,u,y,G){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=s;this.b=u;this.g=y;this.L=G}
function cx(a){if(!a)return null;var b=Kw(a.fgColor,"#1A1A1A"),c=Kw(a.bgColor,"#FFF"),d=Kw(a.borderColor,"#000"),e=Pw(a.borderWidth,10,0,5,!1,0),g=Pw(a.bgAlpha,10,0,1,!1,.8);Pw(a.borderAlpha,10,0,1,!1,.2);Pw(a.gloss,16,0,255,!1,0);var h=Kw(a.highlightFontColor,"#F2F2F2"),k=Pw(a.highlightWidth,10,0,5,!1,3),l=Lw(a.textAlign),p=Pw(a.textSize,10,3.3,30.1,!0,3.6107),s=Lw(a.fontWeight),u=Sw(a.padding),y=Tw(a.effects),G=Pw(a.cornerRadius,10,0,10,!0,0);var A=Iw(a.gradient);if(A){a=Pw(A.x1,10,0,100,!0,0);
var X=Pw(A.y1,10,0,100,!0,0),Ha=Pw(A.x2,10,0,100,!0,100),$f=Pw(A.y2,10,0,100,!0,100),uj=Kw(A.color1,"#FFF"),pw=Kw(A.color2,"#000"),qw=Pw(A.opacity1,10,0,100,!0,100),A=Pw(A.opacity2,10,0,100,!0,0);a=new dx(a,X,Ha,$f,uj,pw,qw,A)}else a=null;return new bx(b,c,d,e,g,h,k,l,p,s,u,y,G,a)}function dx(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 ex(a,b){this.b=a;this.videoId=b};var fx={KK:"xx",LK:"xy",QK:"yx",RK:"yy"};var gx=fc("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var hx=/<[^>]*>|&[^;]+;/g;function ix(a,b){return b?a.replace(hx,""):a}
var jx=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),kx=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),lx=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]"),mx=/^http:\/\/.*/,nx=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,ox=
/\s+/,px=/\d/;function qx(){this.b=rx}qx.prototype.Wj=!0;qx.prototype.Vj=function(){return""};qx.prototype.toString=function(){return"Const{}"};function sx(a){return a instanceof qx&&a.constructor===qx&&a.b===rx?"":"type_error:Const"}var rx={};function tx(){this.b="";this.g=ux}tx.prototype.Wj=!0;var ux={};tx.prototype.Vj=function(){return this.b};function vx(a){var b=new tx;b.b=a;return b}var wx=vx(""),xx=/^[-.%_!# a-zA-Z0-9]+$/;function yx(){this.b=zx}yx.prototype.Wj=!0;yx.prototype.Vj=function(){return""};yx.prototype.Bt=!0;yx.prototype.zh=function(){return 1};var zx={};function Ax(){this.b="";this.j=Bx;this.g=null}Ax.prototype.Bt=!0;Ax.prototype.zh=function(){return this.g};Ax.prototype.Wj=!0;Ax.prototype.Vj=function(){return this.b};function Cx(a){return a instanceof Ax&&a.constructor===Ax&&a.j===Bx?a.b:"type_error:SafeHtml"}var Dx=/^[a-zA-Z0-9-]+$/,Ex=fc("action","cite","data","formaction","href","manifest","poster","src"),Fx=fc("link","script","style");
function Gx(a){function b(a){if(ga(a))z(a,b);else{if(!(a instanceof Ax)){var g=null;a.Bt&&(g=a.zh());a=Hx(Ca(a.Wj?a.Vj():String(a)),g)}d+=Cx(a);a=a.zh();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";z(arguments,b);return Hx(d,c)}var Bx={};function Hx(a,b){var c=new Ax;c.b=a;c.g=b;return c}Hx("",0);function Ix(a,b){ga(b)||(b=[b]);var c=B(b,function(a){return r(a)?a:a.Ip+" "+a.duration+"s "+a.timing+" "+a.Hp+"s"});Jx(a,c.join(","))}
var Kx=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(rc)return Cc("10.0");var a=document.createElement("div"),b=Ff(),c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!Dx.test("div"))throw Error("Invalid tag name <div>.");if("div"in Fx)throw Error("Tag name <div> is not allowed for SafeHtml.");var d=null,b="<div";if(c)for(var e in c){if(!Dx.test(e))throw Error('Invalid attribute name "'+e+'".');var g=c[e];if(null!=g){if(g instanceof
qx)g=sx(g);else if("style"==e.toLowerCase()){if(!ka(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof tx)){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 qx?l=sx(l):xx.test(l)||(l="zClosurez"),h+=k+":"+l+";")}g=h?vx(h):wx}h=void 0;h=g instanceof tx&&g.constructor===tx&&g.g===ux?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 yx)g=g instanceof yx&&g.constructor===yx&&g.b===zx?"":"type_error:SafeUrl";else if(e.toLowerCase()in Ex)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)?ga(e)||(e=[e]):e=[];!0===gx.div?b+=">":(d=Gx(e),b+=">"+Cx(d)+"</div>",d=d.zh());(c=c&&c.dir)&&(/^(ltr|rtl|auto)$/i.test(c)?d=0:d=null);b=Hx(b,d);a.innerHTML=Cx(b);a=a.firstChild;
b=a.style[ab("transition")];return""!=("undefined"!==typeof b?b:a.style[Jf(a,"transition")]||"")});function Jx(a,b){Hf(a,"transition",b)};function Lx(a,b){(a=Nc(a))&&a.style&&(fg(a,b),P(a,"hid",!b))}function Mx(a){return(a=Nc(a))?!("none"==a.style.display||qg(a,"hid")):!1}function Nx(a){z(arguments,function(a){Lx(a,!0)})}function Ox(a){z(arguments,function(a){Lx(a,!1)})}var Px={};function Qx(a){if(a in Px)return Px[a];var b=Gf(a,document.body.style);return Px[a]=b}function Rx(a,b,c){(a=Nc(a))&&a.style&&(b=Qx(b))&&(a.style[b]=c)};function Sx(a,b,c){var d=a.B,e=a.C,g=a.b?a.b:"xy",h=Tx(c,a.k,g);a=Ux(c,a.j,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new zf(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 Tx(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function Ux(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function Vx(a,b,c,d,e,g,h,k,l,p,s){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=s}function Wx(a,b){if(!a)return null;var c=Ow(a.x,0),d=Ow(a.y,0),e=Ow(a.w,0),g=Ow(a.h,0),h=Qw(a.t),k=Ow(a.scaleSlope,1);return b(c,d,e,g,h,Ow(a.d,0),Ow(a.px,0),Ow(a.py,0),Ow(a.scaleSlopeX,k),Ow(a.scaleSlopeY,k),Mw(a.scaleDimension,fx,"xy"))}
function Xx(a,b,c){c=c?Xx(c,b):null;a=Sx(a,new zf(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=Jb(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Jb(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function Yx(a){return a?Wx(a,function(a,c,d,e,g,h,k,l,p,s,u){return new Vx(a,c,d,e,g,h,k,l,p,s,u)}):null};function Zx(a,b,c,d,e,g,h,k,l,p,s,u,y){Vx.call(this,a,b,c,d,e,k,l,p,s,u,y);this.D=g;this.F=h}w(Zx,Vx);function $x(a){if(!a)return null;var b=Ow(a.sx,0),c=Ow(a.sy,0);return Wx(a,function(a,e,g,h,k,l,p,s,u,y,G){return new Zx(a,e,g,h,k,b,c,l,p,s,u,y,G)})};function ay(a,b,c,d){this.type=a;this.g=b;this.b=c;this.j=d}var by={AE:"anchored",sJ:"rect",GJ:"shapeless"};function cy(a){if(!a)return null;var b=Mw(a.type,by,"rect"),c=Rw(a.rectRegion,Yx),d=Rw(a.anchoredRegion,$x);a=Rw(a.shapelessRegion,Yx);return new ay(b,c,d,a)}function dy(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 ey(a,b){this.g=a;this.b=b};function fy(a,b){this.state=a;this.b=b}var gy={CLOSED:"closed",gJ:"playerControlShow",LE:"rollOver",ME:"shown"};function hy(a){if(!a)return null;var b=Mw(a.state,gy);a=Jw(a.ref);return b?new fy(b,a):null};function iy(a,b,c,d){this.b=a||[];this.j=b||[];this.k=c;this.g=d;this.value=!1}function jy(a){if(!a)return null;var b=Rw(a.condition,hy),c=Rw(a.notCondition,hy),d=Nw(a.show_delay,!1);a=Nw(a.hide_delay,!1);return b||c?new iy(b,c,d,a):null}function ky(a,b,c){z(a.b,qa(b,!1),c);z(a.j,qa(b,!0),c)};function ly(a,b,c,d,e,g,h,k,l,p,s,u,y,G){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=s;this.j=u;this.data=y;this.Fb=G}
var my={AE:"anchored",It:"branding",WG:"channel",fH:"cta",hI:"highlightText",xI:"label",iJ:"playlist",jJ:"popup",OJ:"speech",NE:"subscribe",dK:"title",VIDEO:"video",DK:"vote",GK:"website"},ny={It:"branding",NG:"card",gI:"highlight",IMAGE:"image",MARKER:"marker",PAUSE:"pause",nJ:"promotion",hn:"survey",TEXT:"text",HK:"widget"},oy={yK:"video_relative",hJ:"player_relative"};
function py(a){if(!a)return null;var b=Jw(a.id);Jw(a.author);var c=Mw(a.type,ny),d=Mw(a.style,my),e=Lw(Iw(a.TEXT)),g=Lw(a.data),g=0!=g.length?pf(g):{},h;var k=Iw(a.segment);k?(Jw(k.timeRelative),h=Jw(k.spaceRelative),h=(k=Rw(k.movingRegion,cy))?new ey(h,k):null):h=null;var k=Rw(a.action,ax),l=Rw(a.trigger,jy),p=cx(Iw(a.appearance));p||(p=cx({}));var s=Mw(a.coordinate_system,oy,"video_relative"),u;u=(u=Iw(a.image_source))?new ex(Lw(u.standard_url),Lw(u.video_id)):null;var y=Nw(a.closeable,!0),G=Lw(a.html_blob);
a=Lw(a.log_data);return b&&c?new ly(b,c,d,e,h,k,l,p,s,u,y,G,g,a):null}function qy(a){return(a=ry(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}function sy(a){return ty(a,function(a){return null!=a.url&&a.url.b})}function uy(a){return ty(a,function(a){return"click"==a.trigger})}function ty(a,b){return jb(a.o,b,void 0)}function vy(a,b,c){z(a.o,b,c)}function ry(a,b){return lb(a.o,b,void 0)}function wy(a,b,c){z(a.C,b,c)}function xy(a,b){B(a.C,b,void 0)}
function yy(a){return(a=zy(a))?dy(a):null}function zy(a){a.g?(a=a.g,a=a.b.length?a.b[0]:null):a=null;return a}function Ay(a,b){var c=yy(a);return c&&b?Ux(b,c.j,c.b?c.b:"xy"):1};function By(a){if(!a)return!1;var b=Cy(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function Cy(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function Dy(a,b){if("new"==a.target)return-1;var c=Xw(a);if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!By(c))||(d=Td(c)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=zi(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=yi(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 Ey(a,b,c,d){(a=Xw(a))?By(a)?d=Ci(a,{src_vid:c,feature:"iv",annotation_id:b}):(a?(b=Cy(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=qa(Fy,d.$a,d.Ta),a=new J(a),he(a,d(a.Nb)),d=a.toString()):d=a):d=null;return d}function Fy(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 Gy(a){return a.target?"new"==a.target?"_blank":"_top":By(Xw(a))?"_top":"_blank"};function Hy(a,b){this.j=a;this.g=b;this.b={}}function Iy(a,b,c,d){b&&(c=Jy(a,b,c),a.b[b]=c["p-time"],c["iv-event"]=c.link||c["l-class"]||c["link-id"]?2:7,ec(c,d||{}),a.log_(c))}function Ky(a,b,c,d,e){b&&(d=Jy(a,b,d),d["iv-event"]=3,d["i-time"]=a.b[b]||"",ec(d,e||{}),a.log_(d,c))}function Ly(a,b,c,d){b&&(c=Jy(a,b,c),c["iv-event"]=4,c["i-time"]=a.b[b]||"",ec(c,d||{}),a.log_(c))}
function My(a,b,c){a=a.g.getVideoData();a.jb?(c=a.jb[c])&&-1!=c.search(Ke)&&(a=Aa("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),nf(c)):a.ra&&nf(Ci(a.ra,{label:c,value:"a_id="+b}))}function Jy(a,b,c){var d={},e=new ke(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}Hy.prototype.log_=function(a,b){this.j.H("command_log","iv",a,b)};function Ny(a,b){this.T=a;this.context=b;this.O=this.N=this.M=null;this.C=0}function Oy(a,b,c,d,e,g){b=new fu(b,c,{id:d});b.namespace="iv-module";e&&b.ab.subscribe("onEnter",e,a);g&&b.ab.subscribe("onExit",g,a);a.context.ab.H("command_add_cuerange",[b],a.context.g.getPlayerType())}f=Ny.prototype;f.Cj=function(){this.context.ab.subscribe("onResize",this.ud,this)};f.K=function(){return this.T};
function Py(a,b,c,d,e){dw(a.context.b,b,"click",qa(a.Tg,b,c,d,e),"iv-click-target",a);dw(a.context.b,b,"touchend",qa(a.Tg,b,c,d,e),"iv-click-target",a)}f.Tg=function(a,b,c,d,e){e.stopPropagation();e.preventDefault();var g=Ey(b,c,this.context.k.videoId);a=t(function(){this.context.g.pauseVideo();window.open(g,Gy(b))},this);By(Xw(b))&&"new"!=b.target||(a(),a=null);c={};c.interval=v()-this.C;Ky(this.context.logger,d.Fb,a,null,c);"cta"==d.style&&My(this.context.logger,d.id,"cta_annotation_clicked");return!1};
f.show=function(){this.C=v()};f.hide=function(){};f.destroy=function(){fd(this.K())};function Qy(a){a.O||(a.O=vd(a.K(),"html5-video-player"));return a.O}
function Ry(a){var b=a.context.j.Sd;if(!b)return null;var c=a.context.j.Af||new zf(0,0,b.width,b.height),d=-c.top,e=b.height-c.top,g;a.N||(a.N=H("html5-video-container",Qy(a)));g=a.N;if(!g)return null;g=35-(parseInt(Kf(g,"bottom"),10)||0);var h;a.M||(a.M=H("html5-info-bar",Qy(a)));(h=a.M)&&a.context.j.Vb&&"none"!=Kf(h,"display")&&(d+=bg(h).height);return new yf(d,b.width-c.left,e-g,-c.left)}f.ud=function(){};function Sy(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.td=b.start_ms;this.g=b.end_ms;this.ia=c};function Ty(a,b,c,d){Sy.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(Ty,Sy);function Uy(a,b,c,d){Sy.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(Uy,Sy);function Vy(a,b,c,d){Sy.call(this,a,b,d);this.b=b.image_url;this.title=b.title;this.description=b.description;this.options=b.options}w(Vy,Sy);function Wy(a,b,c,d){Sy.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(Wy,Sy);function Xy(a,b,c,d){Wy.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(Xy,Wy);function Yy(a,b,c,d){Sy.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(Yy,Sy);function Zy(a){a&&(a.style.display="block")}function $y(a){a&&(a.style.display="none")}function az(a,b){var c=Eg("requestAnimationFrame",window);return L(function(){c?c.call(window,a):a()},b||0)};function W(a){this.template=new Hv(a);R(this,this.template);this.element=this.template.K();this.aa="block";this.P=!0;this.Uc=[];this.da={}}w(W,Kh);f=W.prototype;f.K=function(){return this.element};f.W=function(a,b){this.template.W(a,b)};f.ad=function(){this.template.ad()};f.na=function(a,b){Mv(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(){$y(this.element);this.P=!1;this.element.setAttribute("aria-hidden","true")};f.wb=function(a){Wg(this.element,a)};f.listen=function(a,b,c,d){return bz(this,this.element,a,b,c,d)};function bz(a,b,c,d,e,g,h){b=Q(b,c,t(d,e||a),h);a.Uc.push(b);r(g)&&(a.da[g]?a.da[g].push(b):a.da[g]=[b]);return b}f.Fa=function(a){Rg(a)};function cz(a,b){a.Fa(a.da[b]);a.da[b]=[]}f.stopPropagation=function(a){this.listen(a,this.YE)};f.YE=function(a){a.stopPropagation()};
f.J=function(){this.Fa(this.Uc);delete this.element;W.G.J.call(this)};function dz(a){var b=Te("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(ez,""),c=c.replace(fz,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(b,c,a)}else gz(b,a)}function gz(a,b){var c=hz(a),d=document.getElementById(c),e=d&&wg(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Vh(c,b),la(b)),g||(d=iz(a,c,function(){wg(d,"loaded")||(ug(d,"loaded","true"),Yh(c),L(qa(ai,c),0))})))}
function iz(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 hz(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Xa(a)}var ez=/-vfl[a-zA-Z0-9_+=-]+/,fz=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function jz(){var a=Te("YPC_LOADER_CSS");if(window.spf){var b=a.match(kz);spf.style.load(a,b?b[1]:"",void 0)}else lz(a)}function lz(a){var b=mz(a),c=document.getElementById(b),d=c&&wg(c,"loaded");d||c&&!d||(c=nz(a,b,function(){wg(c,"loaded")||(ug(c,"loaded","true"),Yh(b),L(qa(ai,b),0))}))}
function nz(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 mz(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Xa(a)}var kz=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;function oz(){return!!q("yt.scheduler.instance")}function pz(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 qz(a,b){return pz(a,b)}function rz(a){var b=q("yt.scheduler.instance.cancelJob");b?b(a):M(a)}function sz(){var a=q("yt.scheduler.instance.start");a&&(Fq("jsp")&&!Fq("jsr")&&Dq("jsr"),M(tz),a())}var tz=0;
function uz(){var a=q("yt.scheduler.instance.pause");a&&(a(),Fq("jsp")||Dq("jsp"),M(tz),tz=L(sz,800))};var vz=q("yt.pubsub2.instance_")||new Ph;Ph.prototype.subscribe=Ph.prototype.subscribe;Ph.prototype.unsubscribeByKey=Ph.prototype.Ib;Ph.prototype.publish=Ph.prototype.H;Ph.prototype.clear=Ph.prototype.clear;ba("yt.pubsub2.instance_",vz,void 0);var wz=q("yt.pubsub2.subscribedKeys_")||{};ba("yt.pubsub2.subscribedKeys_",wz,void 0);var xz=q("yt.pubsub2.topicToKeys_")||{};ba("yt.pubsub2.topicToKeys_",xz,void 0);var yz=q("yt.pubsub2.isAsync_")||{};ba("yt.pubsub2.isAsync_",yz,void 0);
ba("yt.pubsub2.skipSubKey_",null,void 0);var zz=2;function Az(a,b,c,d){Bz(function(){q("yt.www.ypc.checkout.showYpcOverlay")(a,b,c,d)})}function Bz(a){if(zz){jz();var b=Te("YPC_LOADER_CONFIGS"),c=function(){(zz-=1)||Cz(a)};dz(c);Ji(b,{onSuccess:function(a,b){Re(b.configs);Ye(b.messages);c()}})}else a&&a()}function Cz(a){z(Te("YPC_LOADER_CALLBACKS"),function(a){(a=q(a))&&a()});a&&a()};function Dz(a){this.b=a}
function Ez(a,b){var c=Fz(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:Ze("YTP_ON_GOOGLE_PLUS")}]:null,c=new W(["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&&Ob(b.o,function(a,b){var c=Oc(b,g);z(c,function(b){b.innerHTML=a})},c);return c}
function Gz(a,b){var c=Fz(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",Ze("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2",
"",b.title],d]]];return new W(c)}
function Hz(a,b){var c=Fz(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 W(["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 Iz(a,b,c){var d=Hz(a,b),e=d.K();dw(a.b.b,e,"click",qa(a.g,b,c),"iv-click-target",a);return d}
function Jz(a,b){var c=Fz(a,b.url,b.id),d=["ul","iv-card-meta-info"];z(b.o,function(a){d.push(["li","",a])});return new W(["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]]])}
function Kz(a){var b=["ul","iv-card-options"];z(a.options,function(a){b.push(["li","",a.desc])});return new W(["article","iv-card-poll",["div","iv-card-image",{style:"background-image: url("+a.b+");"}],["div","iv-card-content",["h1","",a.title],["p","",a.description],b]])}
Dz.prototype.g=function(a,b,c){c.stopPropagation();c.preventDefault();Te("YPC_LOADER_ENABLED")?(this.b.g.pauseVideo(),this.b.g.isFullscreen()&&Lz(this.b.g.app),this.b.ab.H("external_overlay_activated"),Ky(this.b.logger,a.ia.Fb),Az(a.D,a.C,a.B,a.o)):b(c.target,a.url,a.id,a.ia,c)};function Fz(a,b,c){return b?Ey(b,c,a.b.k.videoId,a.b.j):null};function Mz(a,b){Ny.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.Ce=I("div");this.k=I("div",["iv-cards-notif","iv-cards-notif-inactive"],void 0,this.Ce,I("button",{type:"button"},I("div")));this.j=I("div","iv-cards-details");this.B=new Dz(this.context);this.b=[];this.I=null;this.L=0;this.g=-1;this.Sb=null;this.D=this.A=!1;N(this.K(),"iv-cards");Oy(this,1E3*this.context.k.Oa-1200,
2147483647,"",this.dv);this.context.g.addEventListener("onStateChange",t(this.Rd,this));this.context.g.addEventListener("onAdStateChange",t(this.Rd,this))}w(Mz,Ny);var Nz={channel:Ty,fundraising:Wy,merch:Wy,playlist:Uy,poll:Vy,product:Wy,tip:Xy,video:Yy};function Oz(a,b){return new Aw(a,[b,a.offsetTop],200,Hw)}function Pz(a,b,c){a=new Ew(a,200,Hw);b&&Fk(a,"end",b,!1,c);return a}function Qz(a){var b=new Fw(a,200,Hw);Fk(b,"end",qa(function(a,b){Hf(a,"opacity","");b.target.J()},a));return b}
function Rz(a){fg(a.o,!1);a.K().appendChild(a.o);yk(a.o,"click",a.Ti,!1,a);yk(a.o,"touchend",a.Ti,!1,a);a.K().appendChild(a.F);fg(a.j,!1);a.K().appendChild(a.j);a.K().appendChild(a.k);Sz(a);a.context.b.listen(a.k,"click",a.Tq,a);a.context.b.listen(a.k,"touchend",a.Tq,a);a.context.b.listen(a.k,"mouseover",function(){Tz(this);this.Sb&&this.Sb.Lm.stop()},a);a.context.b.listen(a.k,"mouseout",function(){this.Sb&&this.Sb.Lm.start(200)},a);a.context.ab.subscribe("external_overlay_activated",a.Ti,a);Uz(a,
Ry(a))}f=Mz.prototype;
f.add=function(a){this.V||(Rz(this),this.V=!0);var b=(new W(["button",{type:"button",style:"background-image: url("+a.k+");"}])).K();fg(b,!1);var c,d;switch(a.type){case "fundraising":case "merch":case "product":if(c=Hz(this.B,a))d=c.K(),Py(this,d,a.url,a.id,a.ia);break;case "tip":(c=Iz(this.B,a,t(this.Tg,this)))&&(d=c.K());break;case "video":if(c=Jz(this.B,a))d=c.K(),Py(this,d,a.url,a.id,a.ia);break;case "playlist":if(c=Gz(this.B,a))d=c.K(),Py(this,d,a.url,a.id,a.ia);break;case "channel":if(c=Ez(this.B,
a))d=c.K(),Py(this,d,a.url,a.id,a.ia);break;case "poll":(c=Kz(a))&&(d=c.K())}if(d){var e={Wd:a,Mk:d,yg:b},g=Ab(this.b,e,function(a,b){return a.Wd.td-b.Wd.td});0>g&&(g=-(g+1));xb(this.b,g,0,e);ed(this.F,b,g);1<this.b.length&&Nx(this.F);c.W(this.j,g);c=qa(this.kx,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);Oy(this,a.td,a.g,a.id,qa(this.lx,a),this.mx);Uz(this,Ry(this))}};
f.Tg=function(a,b,c,d,e){td(a,"article","iv-card-active")?Mz.G.Tg.call(this,a,b,c,d,e):e.preventDefault()};f.kx=function(a,b){var c=mb(this.b,function(b){return b===a});Vz(this,c,!0);td(b.target,"button","yt-uix-button")||b.stopPropagation()};f.lx=function(){++this.L;Wz(this)?Tz(this):this.D=!0;O(this.k,"iv-cards-notif-inactive")};f.mx=function(){--this.L;0==this.L&&N(this.k,"iv-cards-notif-inactive")};
function Xz(a,b){if(!a.Sb){a.ud();var c=new W(["div","",["span","",b.A],["span","iv-card-image",{style:"background-image: url("+b.k+");"}]]);a.Ce.innerHTML="";cd(a.Ce,hd(c.K()));Iy(a.context.logger,b.ia.Fb,50)}}function Tz(a){if(!a.Sb){var b=Yz(a);if(!(0>b)){Xz(a,a.b[b].Wd);Yf(a.Ce,"");var c=a.Ce.offsetWidth;(new Cw(a.Ce,0,c,400,Hw)).play();a.Sb={Lm:new ew(function(){this.Sb&&((new Cw(this.Ce,c,0,200,Hw)).play(),this.Sb=null)},4E3,a),Uy:b};a.Sb.Lm.start()}}}function Sz(a){a.ud();Qz(a.k)}
f.Tq=function(a){a&&a.stopPropagation();if(!this.A){a=new hw;Xf(this.K(),this.context.j.Sd);for(var b=0;b<this.b.length;++b){var c=this.b[b].yg;a.add(Qz(c));eg(c,0);fg(c,!0);a.add(Oz(c,b*(c.offsetWidth+15)))}a.add(Pz(this.k));a.add(Qz(this.o));for(b=0;b<this.b.length;++b)a.add(Qz(this.b[b].Mk));this.A=!0;Fk(a,"end",this.pp,!1,this);a.play();this.C=v();this.j.style.width=445*this.b.length+"px";fg(this.j,!0);eg(this.j,1);this.ud();a=this.Sb?this.Sb.Uy:Math.max(0,Yz(this));Vz(this,a,!1);b={};b.notif=
this.Sb?"1":"0";Ky(this.context.logger,this.b[a].Wd.ia.Fb,null,50,b);this.I=this.context.b.listen(this.K(),"keydown",this.Vy,this)}};f.pp=function(){this.A=!1};f.Vy=function(a){switch(a.keyCode){case 27:this.Ti();break;case 37:0<this.g&&Vz(this,this.g-1,!0);break;case 39:this.g+1<this.b.length&&Vz(this,this.g+1,!0);break;case 9:Vz(this,this.g+1<this.b.length?this.g+1:0,!0)}a.stopPropagation();a.preventDefault();return!1};
f.Ti=function(a){a&&a.stopPropagation();if(!this.A){var b=new hw;z(this.b,function(a){b.add(Pz(a.yg));b.add(Oz(a.yg,0))});b.add(Pz(this.o));b.add(Qz(this.k));b.add(Pz(this.j,function(){Xf(this.K(),"","")},this));this.A=!0;Fk(b,"end",this.pp,!1,this);b.play();a={};a.interval=v()-this.C;this.b[this.g]&&Ly(this.context.logger,this.b[this.g].Wd.ia.Fb,null,a);this.I&&this.context.b.Fa(this.I)}};f.dv=function(){"none"!=this.j.style.display&&this.context.g.pauseVideo()};
function Vz(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];O(e.yg,"yt-uix-button-toggled");O(e.Mk,"iv-card-active")}a.g=b;N(d.yg,"yt-uix-button-toggled");N(d.Mk,"iv-card-active");Oz(a.j,Zz(a).x).play();b={};b.nav=c?"1":"0";Iy(a.context.logger,d.Wd.ia.Fb,null,b)}}function Zz(a){var b=Ry(a),c=b.right-b.left,b=b.bottom-b.top,d=bg(a.j);return new E(445*-(isNaN(void 0)?a.g||0:NaN)+(c-445)/2,(b-d.height+(1<a.b.length?63:0))/2)}
f.ud=function(){var a=Ry(this);a&&(Uz(this,a),Mx(this.j)&&(Xf(this.K(),this.context.j.Sd),Mf(this.j,Zz(this))),Mf(this.K(),a.left,a.top))};f.Rd=function(a){Wz(this,a)&&this.D&&(this.D=!1,Tz(this))};function Uz(a,b){var c=(b?445<b.right-b.left&&243<b.bottom-b.top:!1)&&!!a.b.length;Lx(a.K(),c)}function Wz(a,b){return 2==Us(a.context.g.app).getPlayerType()?1==(isNaN(b)?a.context.g.getAdState():b):1==(isNaN(b)?a.context.g.getPlayerState():b)}
function Yz(a){var b=1E3*a.context.g.getCurrentTime();return ob(a.b,function(a){return a.Wd.td<=b&&b<a.Wd.g})};function $z(a,b,c){Ny.call(this,a,b);this.ia=c;this.g=!1}w($z,Ny);$z.prototype.Cj=function(){$z.G.Cj.call(this);var a=this.ia.data;"start_ms"in a&&"end_ms"in a&&Oy(this,this.ia.data.start_ms,this.ia.data.end_ms,this.ia.id,this.show,this.hide)};function aA(a,b,c){$z.call(this,a,b,c);this.j=null;this.k=!1;this.tj=null;this.zd=!1;this.b=0}w(aA,$z);
function bA(a){var b=a.ia.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");nd(d,b.channel_name);var e=I("div","iv-branding-context-subscribe");a.ia.j?e.innerHTML=a.ia.j:b.num_subscribers&&nd(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);Hf(e,"right",a.b+"px");a.K().appendChild(e);Py(a,a.K(),qy(a.ia),a.ia.id,a.ia);a.tj=new ew(qa(function(a){var b=bg(a.parentElement);(new Bw(a.parentElement,[b.width,b.height],[0,0],200,Gw)).play();this.zd=!1},d),500,a);dw(a.context.b,a.K(),"mouseover",qa(function(a,b,c){this.tj.stop();if(!this.zd){var d=bg(a);Yf(a,d.width);c=Math.min(d.height,c);c=Math.max(c/2-10,0);Mf(b,d.width,c);this.zd=!0;b=9;d=bg(a);c=bg(a.parentElement);
(new Bw(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,Gw)).play()}},d,c,b.image_height),"iv-view-target",a);dw(a.context.b,a.K(),"mouseout",t(a.tj.start,a.tj),"iv-view-target",a)}aA.prototype.show=function(){if(!this.g){aA.G.show.call(this);this.k||(bA(this),this.k=!0);this.ud();Iy(this.context.logger,this.ia.Fb);Nx(this.K());this.g=!0;var a=this.j,b,c=dg(a).width,d=ia(void 0)?void 0:c;b=b||0;Mf(a,d);b=new zw(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,Gw);yk(b,"begin",qa(Nx,a));b.play()}};
aA.prototype.hide=function(){this.g&&(Ox(this.K()),this.g=!1)};aA.prototype.ud=function(){var a=Ry(this);if(a){var b=a.right-this.b-20,a=a.top+20;Mf(this.K(),b,a)}};function cA(a,b,c,d,e,g){this.b=a;this.j=b;this.k=c;this.logger=d;this.g=e;this.ab=g};function dA(a,b,c){$z.call(this,a,b,c);this.mj=this.j=this.o=!1;this.k=5E3;this.b=null;this.Xf=I("div","iv-promo-contents")}w(dA,$z);
function eA(a){var b=a.ia.data;a.k=b.collapse_delay_ms||a.k;var c=["iv-promo","iv-promo-inactive"];a.context.j.b.V&&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.ia.style){case "cta":case "website":g=I("p","iv-click-target",I("strong",null,b.text_line_1));h=I("p",["iv-promo-link","iv-click-target"],b.text_line_2);N(e,"iv-click-target");break;case "playlist":case "video":g=I("p","iv-click-target",b.text_line_1);h=I("p","iv-click-target",I("strong",null,b.text_line_2));N(e,"iv-click-target");c.push("iv-promo-video");break;case "vote":g=I("p",null,I("strong",null,b.text_line_1)),h=I("p",null,b.text_line_2),k=I("div","iv-promo-button"),
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();Ky(this.context.logger,this.ia.Fb,null,null,{contest_vote:"1"});var b=this.ia.data;a=H("iv-promo-txt",this.Xf);var c=H("iv-promo-button",this.Xf),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);cd(d,e,b);fd(c);gd(d,a);Py(this,this.Xf,qy(this.ia),
this.ia.id,this.ia)},a),k.appendChild(b),c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.Xf.appendChild(e);k&&a.Xf.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.wr,a);a.context.b.listen(h,"touchend",function(a){a.stopPropagation();this.wr();this.mj=!1},a);a.context.b.listen(a.K(),"mouseout",a.rA,a);h=I("div","iv-promo-close");g.appendChild(h);fA(a,t(function(){this.hide()},a),h);rg(a.K(),c);
d&&bd(a.K(),d);bd(a.K(),a.Xf);bd(a.K(),g);Py(a,a.K(),qy(a.ia),a.ia.id,a.ia)}f=dA.prototype;f.show=function(){this.g||(dA.G.show.call(this),this.o||(eA(this),this.o=!0),this.ud(),Nx(this.K()),this.ia&&this.ia.Fb&&Iy(this.context.logger,this.ia.Fb),"cta"==this.ia.style&&My(this.context.logger,this.ia.id,"cta_annotation_shown"),O(this.K(),"iv-promo-inactive"),this.g=!0,this.b&&(Sk(this.b),this.b=null),gA(this),hA(this,this.k))};f.hide=function(){this.g&&(N(this.K(),"iv-promo-inactive"),this.g=!1)};
f.wr=function(){this.mj=!0;gA(this);hA(this,500)};f.rA=function(){this.mj=!1;iA(this)};function iA(a){a.j||a.mj||a.b||(N(a.K(),"iv-promo-collapsed"),a.j=!0)}function gA(a){a.j&&(O(a.K(),"iv-promo-collapsed"),a.j=!1)}function hA(a,b){a.b||(a.b=Rk(function(){this.b&&(Sk(this.b),this.b=null);iA(this)},b,a))}f.ud=function(){var a=Ry(this);if(a){var b=Zf(this.K()),b=b.width<a.right-a.left&&b.height<a.bottom-a.top?a.bottom-b.height- -8-25:a.bottom;Mf(this.K(),a.left,b)}};
function fA(a,b,c){function d(a){Ly(this.context.logger,this.ia.Fb);"cta"==this.ia.style&&My(this.context.logger,this.ia.id,"cta_annotation_closed");b(a);a.stopPropagation()}a.context.b.listen(c,"click",t(d,a));a.context.b.listen(c,"touchend",t(d,a))};function jA(a,b,c){this.b={};this.g=!1;this.o="ivTrigger:"+a;this.j=c;ky(b,function(a,b){var c=kA(b.state,b.b);this.j.subscribe(c,t(this.k,this,c,a));this.b[c]=a},this)}jA.prototype.k=function(a,b,c,d){this.b[a]=b?!c:c;a=Qb(this.b,function(a){return a});this.g!=a&&(this.g=a,this.j.H(this.o,a,d))};function kA(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function lA(a,b,c){this.j=a;this.ia=b;this.b=c;this.g=null;this.o=this.isVisible=!1;mA(b,a)}function mA(a,b){xy(a,function(c){return new jA(a.id,c,b)})}lA.prototype.hide=function(){this.isVisible=!1;this.j.ha("onResize",this.k,this);this.b&&this.b.hide()};lA.prototype.show=function(){this.isVisible=!0;this.b&&this.b.show();this.j.subscribe("onResize",this.k,this)};lA.prototype.destroy=function(){this.j.ha("onResize",this.k,this);if(this.b){var a=this.b;a.C.removeAll();a.g&&fd(a.g);a.j&&a.j.K()&&fd(a.j.K())}nA(this)};
function nA(a){a.g&&(a.g.stop(),a.g=null)}lA.prototype.k=function(){this.b&&oA(this.b)};function pA(){};function qA(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(qA,pA);function rA(){this.ea=[];this.fa=[];this.Kd=[]}rA.prototype.jg=null;rA.prototype.nd=null;rA.prototype.Rj=!0;var sA=[2,2,6,6,0];f=rA.prototype;f.clear=function(){this.ea.length=0;this.fa.length=0;this.Kd.length=0;delete this.jg;delete this.nd;delete this.Rj;return this};function tA(a,b,c){0==db(a.ea)?a.Kd.length-=2:(a.ea.push(0),a.fa.push(1));a.Kd.push(b,c);a.nd=a.jg=[b,c]}
f.Xa=function(a){var b=db(this.ea);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ea.push(1),this.fa.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Kd.push(c,d)}this.fa[this.fa.length-1]+=b/2;this.nd=[c,d]};f.close=function(){var a=db(this.ea);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ea.push(4),this.fa.push(1),this.nd=this.jg);return this};
function uA(a,b,c,d,e){var g=a.nd[0]-b*Math.cos(d*Math.PI/180),h=a.nd[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.ea.push(3);a.fa.push(1);a.Kd.push(b,c,d,e,g,h);a.Rj=!1;a.nd=[g,h]}function vA(a,b){for(var c=a.Kd,d=0,e=0,g=a.ea.length;e<g;e++){var h=a.ea[e],k=sA[h]*a.fa[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.ea=this.ea.concat();a.fa=this.fa.concat();a.Kd=this.Kd.concat();a.jg=this.jg&&this.jg.concat();a.nd=this.nd&&this.nd.concat();a.Rj=this.Rj;return a};f.isEmpty=function(){return 0==this.ea.length};function wA(a,b){this.D=a;this.F=null==b?1:b}w(wA,pA);function xA(a,b){this.b=a;this.g=b};function yA(){}da(yA);yA.prototype.b=0;function zA(a){T.call(this);this.I=a||Kc();this.qa=null;this.Pe=!1;this.b=null;this.o=void 0;this.A=this.C=this.D=null}w(zA,T);f=zA.prototype;f.YB=yA.getInstance();f.getId=function(){return this.qa||(this.qa=":"+(this.YB.b++).toString(36))};f.K=function(){return this.b};f.gi=function(a){if(this.D&&this.D!=a)throw Error("Method not supported");zA.G.gi.call(this,a)};f.Ks=function(){this.b=this.I.createElement("div")};
f.th=function(){AA(this,function(a){a.Pe&&a.th()});this.o&&this.o.removeAll();this.Pe=!1};f.J=function(){this.Pe&&this.th();this.o&&(this.o.dispose(),delete this.o);AA(this,function(a){a.dispose()});this.b&&fd(this.b);this.D=this.b=this.A=this.C=null;zA.G.J.call(this)};f.md=function(){return this.b};function AA(a,b){a.C&&z(a.C,b,void 0)}
f.removeChild=function(a,b){if(a){var c=r(a)?a:a.getId();a=this.A&&c?ac(this.A,c)||null:null;if(c&&a){var d=this.A;c in d&&delete d[c];rb(this.C,a);b&&(a.th(),a.b&&fd(a.b));c=a;if(null==c)throw Error("Unable to set parent component");c.D=null;zA.G.gi.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function BA(a,b,c,d,e){zA.call(this,e);this.width=a;this.height=b;this.k=c||null;this.F=d||null}w(BA,zA);BA.prototype.j=null;BA.prototype.Jh=function(){return this.Pe?Zf(this.K()):ia(this.width)&&ia(this.height)?new F(this.width,this.height):null};function CA(a){var b=a.Jh();return b?b.width/(a.k?new F(a.k,a.F):a.Jh()).width:0}BA.prototype.resume=function(){};function DA(a,b){T.call(this);this.Eh=a;this.Sk=b;this[mk]=!1}w(DA,T);f=DA.prototype;f.Sk=null;f.Eh=null;f.K=function(){return this.Eh};f.addEventListener=function(a,b,c,d){yk(this.Eh,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Gk(this.Eh,a,b,c,d)};f.J=function(){DA.G.J.call(this);var a=this.Eh;if(a)if(nk(a))a.removeAllListeners(void 0);else if(a=Bk(a)){var b=0,c;for(c in a.b)for(var d=a.b[c].concat(),e=0;e<d.length;++e)Hk(d[e])&&++b}};function EA(a,b,c,d){DA.call(this,a,b);a=this.Sk;b=this.K();c?(b.setAttribute("stroke",c.g),c=c.b,r(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/CA(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.Sk;a=this.K();if(d instanceof wA)a.setAttribute("fill",d.D),a.setAttribute("fill-opacity",d.F);else if(d instanceof qA){b="lg-"+d.o+"-"+d.B+"-"+d.A+"-"+d.C+"-"+d.b+"-"+d.g;var e=FA(c,b);if(!e){var e=GA(c,"linearGradient",{x1:d.o,y1:d.B,x2:d.A,y2:d.C,gradientUnits:"userSpaceOnUse"}),
g="stop-color:"+d.b;ia(d.j)&&(g+=";stop-opacity:"+d.j);g=GA(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.g;ia(d.k)&&(g+=";stop-opacity:"+d.k);d=GA(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=HA(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}w(EA,DA);function IA(a,b){DA.call(this,a,b)}w(IA,DA);function JA(a,b){DA.call(this,a,b)}w(JA,DA);function KA(a,b,c,d){EA.call(this,a,b,c,d)}w(KA,EA);function LA(a,b){DA.call(this,a,b)}w(LA,IA);LA.prototype.clear=function(){dd(this.K())};function MA(a,b,c,d){EA.call(this,a,b,c,d)}w(MA,KA);function NA(a,b){DA.call(this,a,b)}w(NA,JA);function OA(a,b,c,d,e){BA.call(this,a,b,c,d,e);this.g={};this.M=tc&&!Cc(526);this.L=new Wk(this)}var PA;w(OA,BA);var QA=0;function GA(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=OA.prototype;
f.Ks=function(){var a=GA(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=GA(this,"g");this.B=GA(this,"defs");this.j=new LA(b,this);a.appendChild(this.B);a.appendChild(b);this.b=a;this.k&&(this.K().setAttribute("preserveAspectRatio","none"),this.M?this.Qq():this.K().setAttribute("viewBox","0 0 "+(this.k?this.k+" "+this.F:"")))};
f.Qq=function(){if(this.Pe){var a=this.Jh();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.Jh=function(){if(!sc)return this.Pe?Zf(this.K()):OA.G.Jh.call(this);var a=this.width,b=this.height,c=r(a)&&-1!=a.indexOf("%"),d=r(b)&&-1!=b.indexOf("%");if(!this.Pe&&(c||d))return null;var e,g;c&&(e=this.K().parentNode,g=bg(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.K().parentNode,g=g||bg(e),b=parseFloat(b)*g.height/100);return new F(a,b)};f.clear=function(){this.j.clear();dd(this.B);this.g={}};function RA(a,b,c,d){b=GA(a,"path",{d:SA(b)});c=new MA(b,a,c,d);a.j.K().appendChild(c.K())}
function SA(a){var b=[];vA(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 HA(a,b,c){if(b in a.g)return a.g[b];var d="_svgdef_"+QA++;c.setAttribute("id",d);a.g[b]=d;a.B.appendChild(c);return d}
function FA(a,b){return b in a.g?a.g[b]:null}f.th=function(){OA.G.th.call(this);this.M&&this.L.Fa(TA(),"tick",this.Qq)};f.J=function(){delete this.g;delete this.B;delete this.j;OA.G.J.call(this)};function TA(){PA||(PA=new Pk(400),PA.start());return PA};function UA(a,b,c){this.b=a;this.g=0;this.B=b;this.C=c||70;this.j=!1}UA.prototype.start=function(a){this.A=v();this.g=a;this.o=this.A+this.g;this.j=!0;Nx(this.b);We(this.k);this.k=Ve(t(this.D,this),this.C)};UA.prototype.stop=function(){this.j=!1;Ox(this.b);this.k&&We(this.k)};
UA.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=Dg("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 rA,g=d/2-5;tA(e,d/2,d/2);e.Xa(d/2,5);uA(e,g,g,-90,360*-b);e.Xa(d/2,d/2);e.close();c.setAttribute("d",SA(e));a>=this.o&&(this.stop(),this.B&&this.B())}};function VA(){this.element=this.b=null;this.priority=0;this.o=this.C=!1;this.A=null}w(VA,Kh);VA.prototype.listen=function(a,b,c){return this.element.listen(a,b,c||this)};VA.prototype.Fa=function(a){this.element.Fa(a)};function WA(a,b,c,d){W.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.MB);this.listen("keypress",this.NB);this.D.Pg(this.element,t(this.LB,this));b&&XA(this,b);c&&YA(this,c);d&&(this.g=d)}w(WA,W);function XA(a,b){b&&""!=b&&(a.o&&O(a.element,a.o),a.o=b,N(a.element,b))}
function YA(a,b){Mv(a.template,"label",b)}function ZA(a,b){a.I=b;Mv(a.template,"tabindex",b)}f=WA.prototype;f.LB=function(){return this.k?null:this.g?this.g:null};f.enable=function(){this.k=!1;this.template.update({disabled:null,tabindex:this.I});O(this.element,"ytp-disabled")};f.disable=function(){this.k=!0;this.template.update({disabled:"true",tabindex:null});N(this.element,"ytp-disabled")};f.MB=function(a){this.k&&(a.stopImmediatePropagation(),a.preventDefault())};
f.NB=function(a){if(13==a.keyCode||32==a.keyCode)a.stopPropagation(),a.preventDefault(),this.wb("click")};f.J=function(){this.D.zn(this.element);this.D=null;WA.G.J.call(this)};function $A(a,b,c){W.call(this,["div","ytp-segmented-control"]);this.k=a;this.g=-1;this.b=[];if(null!=b)for(Oh(this.b),this.b=[],a=0;a<b.length;a++){var d=new WA(this.k);this.b.push(d);c?d.na(["div",b[a]]):d.na(b[a]);0!=a&&N(d.K(),"ytp-segmented-control-other");aB(d,a==this.g);d.listen("click",qa(this.j,a),this);d.W(this.element)}}w($A,W);
$A.prototype.W=function(a,b){$A.G.W.call(this,a,b);for(var c=0,d=0;d<this.b.length;d++)c=Math.max(c,Zf(this.b[d].K()).width);if(c)for(d=0;d<this.b.length;d++)Yf(this.b[d].K(),c)};function bB(a,b){a.g=b;for(var c=0;c<a.b.length;c++)aB(a.b[c],c==b)}$A.prototype.getSelected=function(){return this.g};function cB(a,b){for(var c=0;c<a.b.length;c++)ZA(a.b[c],b)}
function aB(a,b){if(b){var c=a.K();O(c,"ytp-segmented-control-deselected");N(c,"ytp-segmented-control-selected")}else c=a.K(),O(c,"ytp-segmented-control-selected"),N(c,"ytp-segmented-control-deselected")}$A.prototype.j=function(a){a!=this.g&&(bB(this,a),this.wb("change"))};$A.prototype.J=function(){Oh(this.b);this.b=[];$A.G.J.call(this)};function dB(a){VA.call(this);this.b=Y(0,"YTP_ANNOTATIONS");this.element=new $A(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);R(this,this.element);cB(this.element,2400);this.priority=2;bB(this.element,1)}w(dB,VA);dB.prototype.getSelected=function(){return this.element.getSelected()};function eB(a,b){this.start=a<b?a:b;this.end=a<b?b:a}eB.prototype.clone=function(){return new eB(this.start,this.end)};function fB(){this.b=!1;this.o=this.j=null}function gB(a,b,c){a.j?(Xf(a.j.K(),b,c),a.j.clear()):(b=new OA(b,c,void 0,void 0,void 0),a.j=b,a.j.Ks(),a.o=I("div"),b=a.j.K(),a.o.appendChild(b));return a.j}fB.prototype.K=function(){return this.o};fB.prototype.g=function(){};function hB(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Ob(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function iB(a,b){var c;c=":"+(yA.getInstance().b++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function jB(a,b){var c=iB(a,hB("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=iB(a,hB("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},hB("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=iB(a,hB("feComposite",{"in":c,in2:b,operator:"in"}));return iB(a,hB("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function kB(a,b){var c=iB(a,hB("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=iB(a,hB("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=iB(a,hB("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=iB(a,hB("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=iB(a,hB("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=iB(a,hB("feComposite",{operator:"out","in":c,in2:d}));return iB(a,hB("feComposite",{operator:"over","in":b,in2:c}))}
function lB(a,b){return b}function mB(a){var b=hB("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";z(a,function(a){t:{switch(a){case "bevel":a=jB;break t;case "dropshadow":a=kB;break t}a=lB}c=a(b,c)});return b}function nB(a){a=hb(a,function(a){return a in oB});Cb(a,function(a,c){return oB[a]-oB[c]});return a}function pB(a){return lb(a,function(a){return"dropshadow"==a})?new yf(0,7,7,0):new yf(0,0,0,0)}var oB={bevel:1,dropshadow:2};function qB(a,b,c,d,e){b=rB(b,c,d?d.b/2+1:0);RA(a,b,d,e)}function rB(a,b,c){var d=new rA;tA(d,a.left+b+c,a.top+c);d.Xa(a.left+a.width-b-c,a.top+c);uA(d,b,b,-90,90);d.Xa(a.left+a.width-c,a.top+a.height-b-c);uA(d,b,b,0,90);d.Xa(a.left+b+c,a.top+a.height-c);uA(d,b,b,90,90);d.Xa(a.left+c,a.top+b+c);uA(d,b,b,180,90);d.close();return d}function sB(a,b,c,d){var e=a.L;e?a=new qA(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=tB(d,a.j),a=new wA(a.o,b));return a}
function tB(a,b){return a?Math.max(b,.9):b}function uB(a,b){var c=new yf(a.top,a.left+a.width,a.top+a.height,a.left),d=pB(b);ka(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 Af(c)}
function vB(a,b,c){if(c.length&&(b=Pc("g",void 0,b),b.length)){var d=nB(c);if(d){c="effects:"+(d?d.join("|"):"");var e=FA(a,c);e?a=e:(d=mB(d),a=0<d.childNodes.length?HA(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function wB(){fB.call(this);this.k=0}w(wB,fB);
wB.prototype.g=function(a,b,c){var d=a.b,e=d.C,g=this.b&&uy(a),e=(e+=g?1:0)?new xA(e,g?d.A:d.B):null;if(g=yy(a)){var h=Xx(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=zy(a))&&a.b?a.b:null)&&a.length?a[0]:null){var l;c=c?Xx(c,b):null;a=Sx(k,new zf(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 E(a.left,a.top);c=h.clone();a=new zf(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=uB(c,d.b);a=gB(this,c.width,c.height);var g=sB(d,c.width,c.height,this.b),h=new zf(h.left-c.left,h.top-c.top,h.width,h.height),s=new E(l.x-c.left,l.y-c.top);this.k=17*Ux(b,k.j,k.b?k.b:"xy");b=d.g;k=e?e.b/2:0;l=xB(h,s);var p=this.A(h,b,s,l),u=s.x,s=s.y,y=h.width,G=h.height,A=h.left,h=h.top,X=new rA;tA(X,A+b+k,h+k);"t"==l&&(X.Xa(p.start,h+k),X.Xa(u,s),X.Xa(p.end,h+k));X.Xa(A+y-b-k,h+k);uA(X,b,b,-90,90);"r"==l&&(X.Xa(A+y-k,p.start),
X.Xa(u,s),X.Xa(A+y-k,p.end));X.Xa(A+y-k,h+G-b-k);uA(X,b,b,0,90);"b"==l&&(X.Xa(p.end,h+G-k),X.Xa(u,s),X.Xa(p.start,h+G-k));X.Xa(A+b+k,h+G-k);uA(X,b,b,90,90);"l"==l&&(X.Xa(A+k,p.end),X.Xa(u,s),X.Xa(A+k,p.start));X.Xa(A+k,h+b+k);uA(X,b,b,180,90);X.close();RA(a,X,e,g);if(e=this.K())N(e,"annotation-shape"),N(e,"annotation-speech-shape"),Mf(e,c.left,c.top),Xf(e,c.width,c.height),vB(a,e,d.b)}}}};
function xB(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"}wB.prototype.A=function(a,b,c,d){function e(a,c,d){h=Math.min(Math.max(d-2*b,0),g);k=Jb(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 eB(k,k+h)};function yB(){fB.call(this)}w(yB,fB);yB.prototype.g=function(a,b,c){var d=yy(a);d&&(b=Xx(d,b,c),0>=b.width||0>=b.height||(a=a.b,c=uB(b,a.b),d=gB(this,c.width,c.height),qB(d,new zf(0,0,b.width,b.height),a.g,new xA(!a.k&&this.b?1:a.k,a.o),new wA("#000",0)),b=this.K(),N(b,"annotation-shape"),eg(b,tB(this.b,a.j)),Mf(b,c.left,c.top),Xf(b,c.width,c.height)))};var zB=window.location.protocol+"//i.ytimg.com/",AB=4/3;function BB(a,b,c){var d;switch(b.U){case 30:d=CB;break;default:d=DB}return d(a,b,c)}function DB(a,b,c){if(!c){c=a.clientHeight;a=a.clientWidth;if((900<a||600<c)&&b.dc)return b.dc;if((430<a||320<c)&&b.kf)return b.kf}return b.xa?b.xa:b.videoId?EB(b.videoId):""}function CB(a,b){return b.xa?b.xa:b.videoId?$d("//docs.google.com/vt",{id:b.videoId,authuser:b.Ta,authkey:b.mb}):"//docs.google.com/images/doclist/cleardot.gif"}
function EB(a,b){return(zB+"vi/"+escape(a)+"/"+escape(b||"hqdefault.jpg")).replace("i.","i"+(a.charCodeAt(0)%1+1)+".")};function FB(a,b,c){fB.call(this);this.k=a||0;this.B=b||0;this.A=c||!1}w(FB,fB);function GB(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 zf(e,g,c,d)}
FB.prototype.g=function(a,b,c){var d=Xx(yy(a),b,c);if(!(0>=d.width||0>=d.height)){var e=GB(d,this.B);e.left+=d.left;e.top+=d.top;b=a.b;c=uB(e,b.b);var g=gB(this,c.width,c.height),h=new wA("#000",0),e=GB(e,this.k);a=a.k?a.k.b?a.k.b:a.k.videoId?EB(a.k.videoId,"hqdefault.jpg"):"":"";e=GA(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 NA(e,g);g.j.K().appendChild(e.K());
if(a=this.K()){var k=tB(this.b,b.j);eg(a,k);if(this.A&&0<b.k){var k=new xA(b.k,b.o),d=new zf(0,0,d.width,d.height),l;l=rB(d,b.g,k.b/2+1);var p=FA(g,"mask");if(p)l=p;else{var p=document.createElementNS("http://www.w3.org/2000/svg","mask"),s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("d",SA(l));s.setAttribute("fill","#FFF");p.appendChild(s);l=HA(g,"mask",p)}e=e.K();l&&e.setAttribute("mask","url(#"+l+")");qB(g,d,b.g,k,h)}N(a,"annotation-shape");N(a,"annotation-image-shape");
Mf(a,c.left,c.top);Xf(a,c.width,c.height);vB(g,a,b.b)}}};function HB(){fB.call(this)}w(HB,fB);HB.prototype.g=function(a,b,c){var d=yy(a);if(d){var e=Xx(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.b;c=uB(e,b.b);var d=gB(this,c.width,c.height),g=b.C;a=this.b&&uy(a);a=(g+=a?1:0)?new xA(g,a?b.A:b.B):null;g=new zf(0,0,e.width,e.height);e=sB(b,e.width,e.height,this.b);qB(d,g,b.g,a,e);if(a=this.K())N(a,"annotation-shape"),N(a,"annotation-popup-shape"),Mf(a,c.left,c.top),Xf(a,c.width,c.height),vB(d,a,b.b)}}};function IB(){wB.call(this)}w(IB,wB);IB.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 eB(k,k+h)};function JB(a,b,c,d,e){this.b=a;this.F=b;this.B=c;this.M=d;this.I=e;this.C=new cw(this);this.D=this.j=this.o=this.k=this.A=this.g=null}function KB(a,b){var c=t(function(a,c,g){c=g?LB(this,c,t(g,this)):LB(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 MB(a){if(a.b.B){var b;ty(a.b,function(a){return"close"==a.type})?b=a.g:(a.o=I("div",["annotation-close-button","hid"]),ug(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",LB(a,"b",c));a.C.listen(b,"touchend",LB(a,"b",c))}}
function LB(a,b,c){return t(function(a){if(this.I)c&&c(a);else if(a.target instanceof Element){var e=a.target;Ox(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(vd(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{Nx(e)}}e=dg(a.target);a=new E(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.M.H(b,this.b)},a)}JB.prototype.N=function(){this.o&&Nx(this.o);this.k&&eg(this.k,1);var a=NB(this);this.j&&(this.j.b=!0,eg(this.g,OB(this)?1:0),a&&this.j.g(this.b,a,PB(this)))};JB.prototype.L=function(){this.o&&Ox(this.o);this.k&&eg(this.k,0);var a=NB(this);this.j&&(this.j.b=!1,eg(this.g,OB(this)?1:0),a&&this.j.g(this.b,a,PB(this)))};function PB(a){return a.D?yy(a.D):null}
function oA(a){if(a.g||a.j){var b=yy(a.b);if(b){var c=NB(a),d=PB(a);if(a.g&&c){b=Xx(b,c,d);Xf(a.g,b.width,b.height);Mf(a.g,b.left,b.top);var e=a.B.Af;if(e){var g;g=(g=yy(a.b))&&e?Tx(e,g.k,g.b?g.b:"xy"):1;var e=Ay(a.b,e),h;h=a.b.b;h.F?h=h.F:(h="speech"==a.b.style?1.6:.8,h=new yf(h,h,h,h));h=new yf(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 F(g,g),Xf(a.k,g),"highlight"==a.b.type||"label"==a.b.style?(e=1.5*c.height/100,g=new E(b.width-g.width-e,b.height-g.height-e)):g=new E(b.width-g.width-3*c.height/100,(b.height-g.height)/2),Mf(a.k,g));a.o&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Mf(a.o,g&&e?new E(b.width-9,-9):g?new E(b.width-9,45<b.height?9:b.height-9):e?new E(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new E(45<b.width?b.width-9-18:-9,b.height-
9):new E(-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*Ay(a.b,a.B.Af)/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=Mx(d);g=H("annotation-close-button",a);e=Mx(g);d&&b&&Ox(d);g&&e&&Ox(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=og(a),s=p,u=5,y=Math.floor(p/2);y;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(u=s,s=Math.min(s+y,p)):s=Math.max(s-y,u),y=Math.floor(y/2),a.style.fontSize=s+"px";s!=u&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=u+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=k);g&&e&&Nx(g);
d&&b&&Nx(d)}}}}
JB.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=NB(this);if(d){var e=null;"highlight"==this.b.type||"label"==this.b.style?e=new yB:"popup"==this.b.style?e=new HB:"anchored"==this.b.style?e=new wB:"speech"==this.b.style?e=new IB:"image"==this.b.type&&("video"==this.b.style?e=new FB(4/3,16/9,!0):"channel"==this.b.style&&(e=new FB));e&&(e.g(this.b,d,PB(this)),
this.j=e,d=e.K())&&(Ox(d),N(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&&(N(this.A,"label-text"),this.A.style.backgroundColor=this.b.b.o),nd(this.A,this.b.A),this.g.appendChild(this.A));ug(this.g,"annotation_id",this.b.id);this.F(this.g);KB(this,this.g);if(uy(this.b)&&
"image"!=this.b.type&&sy(this.b)){if(d=qy(this.b))this.g.title=Xw(d);this.k=I("span","annotation-link-icon");this.g.appendChild(this.k)}MB(this);uy(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=dy(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)}Nx(this.g);eg(this.g,OB(this)?
1:0);oA(this);this.j&&Nx(this.j.K())};JB.prototype.hide=function(){Ox(this.g);this.j&&Ox(this.j.K())};function OB(a){return"label"!=a.b.style||a.j.b}function NB(a){var b=a.B.Af;return b?"player_relative"==a.b.D?(a=a.B.Sd)?new zf(-b.left,-b.top,a.width,a.height):null:new zf(0,0,b.width,b.height):null};function QB(a){pu.call(this,a);this.kk=!0;this.va="iv-module";this.ic="iv";this.L=!1;this.P=!0;this.B=!1;this.k=0;this.g={};this.F={};this.A=new Hy(this.M,this.b);a=RB;this.o=new dB(Du(this));R(this,this.o);this.o.listen("change",this.zu,this);this.subscribe("onHideControls",this.wu,this);this.subscribe("onShowControls",this.yu,this);this.subscribe("onStateChange",this.xu,this);this.subscribe("d",this.Bu,this);this.subscribe("c",this.Au,this);this.subscribe("a",this.uu,this);this.subscribe("b",this.vu,
this);var b=new Hv(["div",[a.ru,"hid"],["svg",{width:"60",height:"60"},["g","",["circle","countdowntimer-background-circle",{cx:"30",cy:"30",r:"15"}],["path","countdowntimer-diminishing-pieslice",{d:"M30,30 z"}],["circle","countdowntimer-middle-dot",{cx:"30",cy:"30",r:"4"}]]]]);R(this,b);b=b.K();this.O=I("DIV",[a.tu,"html5-stop-propagation"]);this.C=I("DIV",a.su);su(this,I("DIV",a.qu,this.O,this.C));su(this,b);this.D=new UA(b,t(this.uk,this));this.j=null;this.N=[];this.I=null}w(QB,pu);QB.o="AnnotationsModule";
var RB={qu:"video-annotations",ru:"countdowntimer",su:"video-custom-annotations",tu:"video-legacy-annotations"};QB.k=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};QB.j=function(a){return"card"==a.type};QB.g=function(a){return QB.Ja(a)?new QB(a):null};QB.Ja=function(a){return"leanback"==a.R().ba?!1:js(a.getVideoData(),"iv3_module")};QB.b=function(){return I("div",["annotation","annotation-type-custom","hid"])};f=QB.prototype;f.Ja=function(){return QB.Ja(this.b)};
f.create=function(){QB.G.create.call(this);Eu(this,this.o);1==(this.b.R().ca||this.b.getVideoData().za)&&this.load()};f.destroy=function(){Fu(this,this.o);QB.G.destroy.call(this)};f.zu=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.xu=function(a){this.P=V(a.state,8);0>Zv(a,4)&&this.D.stop()};
f.load=function(){QB.G.load.call(this);var a=this.b.getVideoData(),b=t(this.Ur,this,a.videoId);oz()&&(b=SB(this,b));b={format:"XML",method:"GET",vb:b};a.Um&&(this.k++,Ji(a.Um,b));a.Tm&&(b=t(this.Ur,this,a.videoId),oz()&&(b=SB(this,b)),b={format:"XML",method:"GET",vb:b},this.k++,Ji(a.Tm,b));bB(this.o.element,0)};
f.unload=function(){bB(this.o.element,1);this.A.log_({"iv-event":1});this.uk();qu(this);Ob(this.g,function(a){a.destroy()});Ob(this.F,function(a){a.destroy()});this.j&&(this.j.destroy(),this.j=null);this.k=0;this.B=!1;this.g={};this.F={};QB.G.unload.call(this)};
function TB(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(TB(a,e))}return c}
f.Ur=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(Ei(b)&&c){UB(this,c[0]);N(At(this.b),this.va+"-loaded");0==this.k&&(this.B=!0);var c=[],d;for(d in this.g){var e=this.g[d].ia,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 fu(g,h,k);c.push(e)}}this.Kf.apply(this,c)}}};function VB(a,b){var c=WB(a,b);if(!c&&"marker"!=b.type)return null;wy(b,function(a){a=t(this.zD,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new lA(a.M,b,c)}
function XB(a,b){var c=QB.b(),d=null;switch(b.type){case "branding":a.C.appendChild(c);d=new aA(c,YB(a),b);break;case "promotion":a.C.appendChild(c),d=new dA(c,YB(a),b)}d&&d.Cj();return d}function ZB(a,b){if(!a.j){var c=QB.b();a.C.appendChild(c);a.j=new Mz(c,YB(a));a.j.Cj()}(c=b&&b.data&&b.data.card_type)&&Nz[c]&&a.j.add(new Nz[c](b.id,b.data,qy(b),b))}function YB(a){a.I||(a.I=new cA(new cw(a),a.b.R(),a.b.getVideoData(),a.A,a.b,a.M));return a.I}
function UB(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=TB(a,c[d]),g=null;try{g=py(e)}catch(h){}g&&(QB.k(g)?(e=XB(a,g))&&(a.F[g.id]=e):QB.j(g)?ZB(a,g):(e=VB(a,g))&&(a.g[g.id]=e))}Ob(a.g,function(a){var b=a.ia;b.g&&b.g.g&&(b=this.g[b.g.g])&&(a.b.D=b.ia)},a)}f.Dc=function(a){QB.G.Dc.call(this,a);a=a.getId();var b=this.g[a];b&&!b.o&&(b=b.ia,"pause"==b.type?$B(this,b):(aC(this,a),Iy(this.A,b.Fb)))};f.jd=function(a){QB.G.jd.call(this,a);bC(this,a.getId())};
function $B(a,b){if(a.P){var c=ry(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 cC(a,b,c,d){d?aC(a,b,c):bC(a,b,c)}function bC(a,b,c){if(b=a.g[b])nA(b),c&&c.g?(a=t(a.Rs,a,b),b.g=new ew(a,2E3),b.g.start()):a.Rs(b)}f.Rs=function(a){a&&(a.hide(),dC(this,"shown",!1,a.ia.id),eC(this,a.ia,"hidden"))};function aC(a,b,c){if(b=a.g[b])nA(b),c&&c.k?(a=t(a.Ds,a,b),b.g=new ew(a,2E3),b.g.start()):a.Ds(b)}
f.Ds=function(a){a&&(a.show(),dC(this,"shown",!0,a.ia.id),eC(this,a.ia,"shown"))};f.zD=function(a,b,c){var d=this.g[a];if(d&&b.value!=c){b.value=c;var e=!1;wy(d.ia,function(a){e|=a.value});cC(this,a,b,e)}};f.uu=function(a){if(a&&a.id){var b=qy(a);if(b){var c=t(function(){eC(this,a,"click")},this);By(Xw(b))&&"new"!=b.target||(c(),c=null);Ky(this.A,a.Fb,c)}}};
function eC(a,b,c){vy(b,function(a){if(a.trigger==c&&"openUrl"==a.type){var e=this.b.getVideoData(),g=Dy(a.url,e.videoId);if(-1!=g)this.H("command_seek",g),this.uk();else if(e=Ey(a.url,b.id,e.videoId,this.b.R()))this.pauseVideo(),window.open(e,Gy(a.url))}},a)}f.wu=function(){dC(this,"playerControlShow",!1)};f.yu=function(){dC(this,"playerControlShow",!0)};f.Bu=function(a){dC(this,"rollOver",!0,a.id)};f.Au=function(a){dC(this,"rollOver",!1,a.id)};
f.vu=function(a){if(a||a.id)this.g[a.id].o=!0,bC(this,a.id),a&&(Ly(this.A,a.Fb),eC(this,a,"close")),dC(this,"closed",!0,a.id)};f.uk=function(){this.D.stop();this.L&&(this.L=!1,this.H("command_play"))};function WB(a,b){if(fC(b)){var c=b.B||ty(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new JB(b,t(a.O.appendChild,a.O),a.b.R(),a.M,c)}return null}
function fC(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in my)if(a.style==my[b])return!0;return!1}function dC(a,b,c,d){a.H(kA(b,d),c,d)}function SB(a,b){return t(function(){if(!this.ga()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=qa.apply(window,a);this.N.push(pz(b,void 0))}},a)}f.J=function(){for(var a=this.N,b=0,c=a.length;b<c;b++)rz(a[b]);this.N.length=0;QB.G.J.call(this)};function gC(a,b,c){c=c||{};var d=c.fd;d||(d=document.createElement("style"),d.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(d),d=d.sheet||d.styleSheet);c.reset&&hC(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 hC(a){for(var b=(a.cssRules||a.rules).length;0<b;b--){var c=a;c.deleteRule?c.deleteRule(0):c.removeRule(0)}};function iC(a,b,c){W.call(this,["div","ytp-drop-down","{{content}}"]);this.o=!1;this.B=0;this.D=this.C=null;this.g=new W(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);R(this,this.g);this.b=new WA(a,"ytp-drop-down-label");R(this,this.b);this.b.listen("click",this.F,this);this.A=new W(["div","ytp-drop-down-label-content","{{content}}"]);R(this,this.A);this.b.na([this.A,["div","ytp-drop-down-arrow"]]);this.na([this.g,this.b]);this.stopPropagation("click");n(b)&&this.k(b);n(c)&&this.D!=c&&
(this.g.na(c),this.D=c,jC(this));jC(this)}w(iC,W);iC.prototype.k=function(a){this.C!=a&&(this.A.na(a),this.C=a,jC(this))};iC.prototype.j=function(){this.o=!1;jC(this)};iC.prototype.F=function(){this.o=!this.o;jC(this);this.o&&this.g.K().focus()};function kC(a,b){b>a.B&&(a.B=b,a.element.style.minWidth=a.B+"px")}
function jC(a){a.o?(a.g.show(),bz(a,window,"blur",a.j,a,"menu"),bz(a,document,"click",a.j,a,"menu")):(a.g.hide(),cz(a,"menu"));var b=Zf(a.b.K());a.g.K().style.bottom=b.height-1+"px";kC(a,b.width)};function lC(a,b){WA.call(this,a,"ytp-drop-down-menu-button");this.b=new W(["div","ytp-drop-down-menu-button-check"]);R(this,this.b);this.j=!!b}w(lC,WA);lC.prototype.na=function(a){lC.G.na.call(this,[this.b,a])};function mC(a,b){P(a.element,"ytp-drop-down-menu-button-selected",b);a.j||P(a.element,"ytp-drop-down-menu-button-checked",b)}function nC(a,b){P(a.element,"ytp-drop-down-menu-button-separated",b)}function oC(a,b){P(a.element,"ytp-drop-down-menu-button-checked",b)};function pC(a,b,c,d){W.call(this,["div","ytp-drop-down-menu-content",{tabindex:"{{tabindex}}"},"{{content}}"]);this.C=a;this.o=!!d;this.j={};this.k=[];this.b=this.g=null;this.A=b;this.B=c}w(pC,W);function qC(a,b){Fb(a.k,b)||(Ob(a.j,function(a){a.ad()}),a.k=[],b&&z(b,function(a){this.k.push(a);var b=rC(this,a);this.o&&oC(b,a==this.b);mC(b,a==this.g);b.W(this.element)},a))}function sC(a,b){null!=a.g&&mC(rC(a,a.g),!1);null!=b&&mC(rC(a,b),!0);a.g=b;a.o||(a.b=b)}pC.prototype.getSelected=function(){return this.g};
function tC(a,b){Ob(a.j,function(a){ZA(a,b)})}function rC(a,b){var c=a.j[b.toString()];if(c)return c;c=new lC(a.C,a.o);R(a,c);a.j[b.toString()]=c;c.na(a.A(b));c.listen("click",t(a.B,a,b));return c};function uC(a){VA.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 pC(a,t(this.I,this),t(this.N,this));R(this,this.g);this.element=new iC(a,void 0,this.g);R(this,this.element);kC(this.element,150);this.priority=2;this.o=!0;this.A="captions";this.B=this.L=!1}w(uC,VA);uC.prototype.j="translate";
function vC(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]=wC(e));c.push(g)}qC(a.g,c);c=!a.L;d=rC(a.g,a.j);c?d.disable():d.enable();c=!a.B;nC(rC(a.g,a.j),c);a.B&&nC(rC(a.g,"contribute"),!0);c=2100;tC(a.g,c++);c=c++;ZA(a.element.b,c)}function xC(a,b){a.k[b]&&(a.D=b,sC(a.g,b),a.element.k(a.I(b)))}function yC(a,b){a.L=b;var c=!b,d=rC(a.g,a.j);c?d.disable():d.enable()}uC.prototype.I=function(a){return this.k[a]};
uC.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")):(xC(this,a),this.element.wb("change"))};function zC(a){VA.call(this);this.b=Y(0,"YTP_SUBTITLES");this.element=new $A(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);R(this,this.element);cB(this.element,2200);this.priority=1;this.C=!0;this.A="captions";bB(this.element,1)}w(zC,VA);zC.prototype.M=function(){this.element.wb("select")};zC.prototype.getSelected=function(){return this.element.getSelected()};function AC(a){W.call(this,a)}w(AC,W);AC.prototype.Jr=function(){};AC.prototype.uj=function(){};var BC={TI:"monoSerif",pJ:"propSerif",SI:"monoSans",oJ:"propSans",CASUAL:"casual",CURSIVE:"cursive",NJ:"smallCaps"},CC={NONE:"none",DROP_SHADOW:"dropShadow",RAISED:"raised",DEPRESSED:"depressed",jK:"uniform"},DC=["left","right","center"],EC={id:0,priority:0,anchorPoint:7,fj:50,ZE:80,ge:95,xd:15,Am:100,isVisible:!0,textAlign:DC[2],Qe:0,backgroundColor:"#080808",foregroundColor:"#fff",QE:1,Un:1},FC={id:98},GC={id:99,priority:1,anchorPoint:0,fj:5,ge:7,xd:2,Am:32,textAlign:DC[0]},HC=["CA","MX","US"];var IC=[{ja:"#fff",message:"YTP_COLOR_WHITE"},{ja:"#ff0",message:"YTP_COLOR_YELLOW"},{ja:"#0f0",message:"YTP_COLOR_GREEN"},{ja:"#0ff",message:"YTP_COLOR_CYAN"},{ja:"#00f",message:"YTP_COLOR_BLUE"},{ja:"#f0f",message:"YTP_COLOR_MAGENTA"},{ja:"#f00",message:"YTP_COLOR_RED"},{ja:"#080808",message:"YTP_COLOR_BLACK"}],JC=[{ja:0,text:"0%"},{ja:.25,text:"25%"},{ja:.5,text:"50%"},{ja:.75,text:"75%"},{ja:1,text:"100%"}],KC=[{ja:"fontFamilyOption",message:"YTP_FONT_FAMILY",options:[{ja:"monoSerif",message:"YTP_FONT_FAMILY_MONO_SERIF"},
{ja:"propSerif",message:"YTP_FONT_FAMILY_PROP_SERIF"},{ja:"monoSans",message:"YTP_FONT_FAMILY_MONO_SANS"},{ja:"propSans",message:"YTP_FONT_FAMILY_PROP_SANS"},{ja:"casual",message:"YTP_FONT_FAMILY_CASUAL"},{ja:"cursive",message:"YTP_FONT_FAMILY_CURSIVE"},{ja:"smallCaps",message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{ja:"color",message:"YTP_FONT_COLOR",options:IC},{ja:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{ja:-2,text:"50%"},{ja:-1,text:"75%"},{ja:0,text:"100%"},{ja:1,text:"150%"},{ja:2,text:"200%"},
{ja:3,text:"300%"},{ja:4,text:"400%"}]},{ja:"background",message:"YTP_BACKGROUND_COLOR",options:IC},{ja:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:JC},{ja:"windowColor",message:"YTP_WINDOW_COLOR",options:IC},{ja:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:JC},{ja:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{ja:"none",message:"YTP_EDGE_STYLE_NONE"},{ja:"dropShadow",message:"YTP_EDGE_STYLE_DROP_SHADOW"},{ja:"raised",message:"YTP_EDGE_STYLE_RAISED"},{ja:"depressed",
message:"YTP_EDGE_STYLE_DEPRESSED"},{ja:"uniform",message:"YTP_EDGE_STYLE_OUTLINE"}]},{ja:"textOpacity",message:"YTP_FONT_OPACITY",options:[{ja:.25,text:"25%"},{ja:.5,text:"50%"},{ja:.75,text:"75%"},{ja:1,text:"100%"}]}];function LC(a,b,c,d){W.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Y(0,b.message):""),e=[new Hv(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new Hv(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.K().style.background=b.ja,e.unshift(d));c?e.unshift(new Hv(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new Hv(["div","ytp-subtitles-settings-dialog-list-check"]));this.b=new WA(a);R(this,this.b);this.b.na(e);
this.na(this.b)}w(LC,W);LC.prototype.setEnabled=function(a){P(this.b.K(),"ytp-subtitles-settings-dialog-list-selected",a)};function MC(a){W.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.k=a;this.g=null;var b=Y(0,"YTP_DONE"),c=new WA(a,"ytp-dialog-button",b);R(this,c);c.na(b);c.listen("click",qa(this.wb,"cancel"),this);ZA(c,1400);b=Y(0,"YTP_RESET");a=new WA(a,"ytp-dialog-button",b);R(this,
a);a.na(b);N(a.K(),"ytp-dialog-button-left");a.listen("click",qa(this.wb,"select"),this);ZA(a,1300);this.j={};this.b={};this.template.update({top:NC(this,KC),buttons:[a,c]})}w(MC,AC);
function NC(a,b,c){var d=new W(["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 LC(a.k,k,g,b==IC);g?(l.listen("click",t(a.tq,a,k.options,k.ja)),ZA(l.b,1100)):c&&(l.listen("click",t(a.vA,a,c,k.ja)),ZA(l.b,1200));e[k.ja]=l;l.W(d.K())}return d}f=MC.prototype;f.tq=function(a,b){this.template.update({sub:NC(this,a,b)});OC(this,this.j,b);OC(this,this.b,this.g[b]);PC(this.template.b["ytp-subtitles-settings-dialog-sub-level"])};
function PC(a){(a=H("ytp-subtitles-settings-dialog-list-selected",a))&&a.focus()}f.uj=function(){PC(this.template.b["ytp-subtitles-settings-dialog-top-level"])};function OC(a,b,c){Ob(b,function(a,b){a.setEnabled(b==c)},a)}function QC(a,b){a.g=b;var c=KC[0];c&&c.options&&a.tq(c.options,c.ja)}f.vA=function(a,b){this.g&&(this.g[a]=b,this.wb("change"));OC(this,this.b,b);this.uj()};
f.Jr=function(){var a=this.k.qd(),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"};f.J=function(){this.j=[];this.b=[];MC.G.J.call(this)};function RC(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}}"]];W.call(this,b);var c=Y(0,"YTP_DISMISS"),b=new WA(a,"ytp-dialog-button",c);R(this,b);b.na(c);b.listen("click",qa(this.wb,"change"),this);ZA(b,1400);var c=Y(0,"YTP_CANCEL"),d=new WA(a,"ytp-dialog-button",c);R(this,d);d.na(c);d.listen("click",qa(this.wb,"cancel"),this);ZA(d,1500);this.g=new pC(a,
t(this.j,this),t(this.o,this),!0);R(this,this.g);this.g.element.style.maxHeight="100px";this.b=new iC(a,void 0,this.g);R(this,this.b);kC(this.b,200);this.k=null;this.template.update({content:this.b,buttons:[b,d]})}w(RC,AC);function SC(a,b){a.k=b;a.b.k(b?a.j(b):null)}RC.prototype.getSelected=function(){return this.k};RC.prototype.o=function(a){this.b.j();SC(this,a)};RC.prototype.j=function(a){return a.zi+" -- "+a.al};RC.prototype.uj=function(){this.b.b.K().focus()};var TC;function UC(a,b){ha(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;TC||(TC={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=TC;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function VC(a,b,c,d,e){WA.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(VC,WA);function WC(a){XA(a,a.b&&a.A?a.A:a.F);YA(a,a.b&&a.B?a.B:a.M);a.g=a.b&&a.C?a.C:a.L;P(a.element,"ytp-button-pressed",a.b)}function XC(a){a.b=!0;UC(a.element,!0);WC(a)}function YC(a){a.b=!1;UC(a.element,!1);WC(a)}function ZC(a,b){a.F=b;WC(a)}VC.prototype.J=function(){this.C=this.B=this.A=null;VC.G.J.call(this)};function $C(a){a=a||EC;ra(this,a)}f=$C.prototype;f.anchorPoint=7;f.fj=50;f.ge=95;f.ZE=80;f.Qe=0;f.textAlign="center";f.backgroundColor="#080808";f.foregroundColor="#fff";f.QE=1;f.Un=1;f.xd=15;f.Am=32;f.isVisible=!0;f.dt='"Arial Unicode Ms", Arial';f.BD="100%";function aD(a,b){this.id=a;this.Ea=new $C(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.Aa=I("div",{id:"caption-window-"+this.id,"class":c});this.Pb=I("span",{"class":"captions-text",style:"visibility: hidden"});this.Pb.innerHTML="C";this.Ba=I("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.Sj=I("div",{"class":"caption-window-transform"});this.Sj.appendChild(this.Ba);this.Aa.appendChild(this.Sj)}aD.prototype.id=0;f=aD.prototype;f.Ea=null;
f.gh="";f.Sc=null;f.Aa=null;f.Sj=null;f.Ba=null;f.Pb=null;f.type=1;f.Oj=function(){var a;this.Pb.style.fontFamily=this.Ba.style.fontFamily;this.Aa.appendChild(this.Pb);a=this.Pb.offsetHeight;this.Aa.removeChild(this.Pb);return a};f.Ze=function(){this.Ba&&(0!=this.id&&(Yf(this.Aa,"100%"),Yf(this.Aa,this.Ba.offsetWidth)),bD(this),Lx(this.Aa,this.Ea.isVisible))};function bD(a){Mf(a.Aa,a.Ea.fj+"%",a.Ea.ge+"%");for(var b=0;8>=b;b++)O(a.Aa,"anchor-point-"+b);N(a.Aa,"anchor-point-"+a.Ea.anchorPoint)}
f.Ar=function(a){var b=[];z(a,function(a){a.Qj?b[b.length-1]+=a.he:b.push(a.he)});this.Ve(b.join("\n"));this.Sc=a};f.Ve=function(a){this.gh=a=cD(a);this.Ba.innerHTML=this.gh;this.Vn();this.Ze()};function dD(a,b){b&&(b=b.replace(/<[^>]*>?/g,""),a.Ve(b))}
f.Vn=function(){this.Aa.style.textAlign=this.Ea.textAlign;this.Ba.style.backgroundColor=this.Ea.backgroundColor;this.Ba.style.color=this.Ea.foregroundColor;this.Ba.style.opacity=this.Ea.Un;this.Ba.style.fontFamily=this.Ea.dt;this.Ba.style.fontSize=this.Ea.BD;1==this.Ea.Qe?this.Ba.setAttribute("dir","rtl"):this.Ba.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 cD(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.Tj=function(){this.Sc=[];this.Ve("")};function eD(){this.D=1;this.o=20971520;this.k=8388608;this.g=5242880;this.ua=NaN;this.A=this.C=2;this.P=25;this.I=2097152;this.b=!0;this.j=1800;this.V=this.O=!1;this.B=1.15;this.ci=to.auto;this.N=!0;this.T=nr("xboxone");this.F=0;this.U=this.L=this.M=!1};function fD(){this.ea=[]}fD.prototype.contains=function(a){a=Ab(this.ea,a);return 0<=a||0>a&&1==(-a-1)%2};fD.prototype.length=function(){return this.ea.length/2};function gD(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=hD();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function iD(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 jD(a){if("undefined"!=typeof a.selectNodes){var b=Mc(a);"undefined"!=typeof b.setProperty&&b.setProperty("SelectionLanguage","XPath");return a.selectNodes('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]')}if(document.implementation.hasFeature("XPath","3.0")){var b=Mc(a),c=b.createNSResolver(b.documentElement);a=b.evaluate('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]',a,c,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var b=
[],c=a.snapshotLength,d=0;d<c;d++)b.push(a.snapshotItem(d));return b}return[]}function hD(){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 kD(){this.g=[];this.j=[]};function lD(a){this.b=a.td;this.k=a.priority;this.vc=a.vc||this.vc}lD.prototype.b=0;lD.prototype.k=0;lD.prototype.vc=0;lD.prototype.toString=function(){return this.b+", "+this.vc};function mD(a){lD.call(this,a);this.he=a.text||this.he;this.Xi=a.windowId||this.Xi;this.Qj=a.params.append||this.Qj;this.ut=a.params.row||this.ut;this.tt=a.params.ED||this.tt}w(mD,lD);f=mD.prototype;f.he="";f.Qj=!1;f.ut=0;f.tt=0;f.Xi=0;f.toString=function(){return this.b+", "+this.vc+": "+this.he};
function nD(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={td:c,vc:d,text:b,windowId:e,priority:5,params:{}};a.getAttribute("r")&&(b.params.row=parseInt(a.getAttribute("r"),10));a.getAttribute("c")&&(b.params.ED=parseInt(a.getAttribute("c"),10));
a.getAttribute("append")&&(b.priority=6,b.params.append=!0);return new mD(b)}function oD(a){lD.call(this,a);this.id=a.windowId||this.id;this.params=a.params}w(oD,lD);oD.prototype.id=0;oD.prototype.params=null;oD.prototype.j="";oD.prototype.g=!1;function pD(){return new oD({td:-2147483648,vc:4294967295,params:EC})};function qD(a){kD.call(this);this.j.push(pD());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=nD(a[b]);this.g.push(d)}}w(qD,kD);function rD(a){kD.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.vc>=h?g.vc=h:g=null);switch(d.getAttribute("op")){case "kill":d=null;break t;case "define":g=null}g?g.o=!0:g=pD();var k={};ra(k,g?g.params:
EC);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.aF=d.getAttribute("op"));d.getAttribute("rc")&&(k.xd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.Am=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.fj=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(k.ge=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=DC[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.km=parseInt(d.getAttribute("sd"),
10));g=parseInt(d.getAttribute("d"),10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d={td:h,vc:g,params:k,windowId:parseInt(d.getAttribute("id"),10)};d=new oD(d)}else d=null}this.b[e]=d;this.j.push(d);break;case "text":e=nD(a[b]),this.g.push(e),d=e.Xi,this.b[d]&&(d=this.b[d],e=e.he,""!=d.j&&(d.g=!0),d.j+=e)}}w(rD,kD);function sD(){kD.call(this)}w(sD,kD);function tD(a){this.b=a.languageCode;this.zi=a.languageName||null;this.al=a.languageOriginal||null;this.id=a.id||null;this.g=a.is_default||!1}tD.prototype.toString=function(){return this.b+"_"+this.zi+"_"+this.al+"_"+this.id+"_"+this.g};function uD(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.qa=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 tD(a.translationLanguage))}
function vD(a){var b={format:a.o,languageCode:a.g,languageName:a.A,displayName:wC(a),kind:a.j,name:a.k,id:a.qa,is_servable:a.I,is_default:a.B,is_translateable:a.C};a.b&&(a=a.b,b.translationLanguage={languageCode:a.b,languageName:a.zi,languageOriginal:a.al,id:a.id,is_default:a.g});return b}function wC(a){var b=[a.A];if("asr"==a.j){var c=Ze("YTP_ASR_SETTINGS_LABEL");b.push(" (",c,")")}a.k&&b.push(" - ",a.k);a.b&&b.push(" >> ",a.b.zi);return b.join("")}
uD.prototype.toString=function(){var a=[this.g,": ",this.k," (",this.j,")"];this.b&&a.push(" >> ",this.b.b);return a.join("")};uD.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 wD(a,b){kD.call(this);this.j.push(pD());for(var c=a.split(xD),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(yD))e=null;else{var h=e.split(zD),k=0,l=h[k++].match(AD);l||(l=h[k++].match(AD));l?(e=BD(l[1],g),g=BD(l[3],g),h=h.slice(k).join("\n"),e=new mD({td:e,vc:g-e,text:h,windowId:0,priority:5,params:{}})):e=null}e&&this.g.push(e)}}w(wD,kD);var yD=/NOTE/,xD=/[\r\n|\r|\n]{2,}/,zD=/\r\n|\r|\n/,AD=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function BD(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 CD(a,b){this.b=[];this.g=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new wD(a,b||0):(c=gD(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new sD:new rD(c):new qD(c):null:null;c&&(this.g=c.j,this.b=c.g)};function DD(a,b){this.pa=a;this.X=b;this.A=new fD;this.k=!0;this.B=this.j=this.o=this.b=null;this.g=0}w(DD,Kh);DD.prototype.J=function(){We(this.g);this.g=0;this.k=!0};DD.prototype.resume=function(){this.k=!1;We(this.g);this.seek(this.X.getCurrentTime());ED(this)};DD.prototype.seek=function(a){this.b=db(this.B.ti(a).b)};function FD(a,b){a.o=b}function GD(a){var b;if(b=!a.k&&null!==a.b)b=a.b,b=b.b.Bg(b);return b&&!a.j&&!(a.b&&30<a.b.startTime-a.X.getCurrentTime())}
function HD(a){var b;b=a.b;b=Xo(b.b,b);if(!a.A.contains(b.b[0].k)){Ji(Uo(b),{format:"RAW",vb:t(a.C,a),withCredentials:!0});a.j=b;var c=a.A,d=a.j.b[0].k,e=Ab(c.ea,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ea[e-1]&&e<c.ea.length&&1==c.ea[e]-d?(sb(c.ea,e),sb(c.ea,e-1)):0<e&&1==d-c.ea[e-1]?c.ea[e-1]=d:e<c.ea.length&&1==c.ea[e]-d?c.ea[e]=d:(xb(c.ea,e,0,d),xb(c.ea,e+1,0,d)))}a.b=db(b.b)}
DD.prototype.C=function(a){null==a.responseText||400<=a.status||this.k||null===this.o||(a=new CD(a.responseText,1E3*this.j.b[0].startTime),this.o(a));this.j=null};function ED(a){a.g=Ve(t(function(){GD(this)&&HD(this)},a),1E3);GD(a)&&HD(a)};function ID(){this.j=[];this.g=[];this.b=-1}function JD(a,b){return b?a.g.concat(a.j):a.g}function KD(a,b){switch(b.j){case "asr":return LD(b,a.j);default:if(b.B||0>a.b)a.b=a.g.length;return LD(b,a.g)}}function LD(a,b){return lb(b,t(a.equals,a))?!1:(b.push(a),!0)};function MD(a){this.Cq=!!a;this.b=new ID;this.A=[]}function ND(a,b){return lb(JD(a.b,!0),function(a){return a.toString()==b})}MD.prototype.seek=function(){};MD.prototype.B=function(){};function OD(a,b){MD.call(this);this.j=a;this.g=new DD(new eD,b)}w(OD,MD);OD.prototype.k=function(a,b){FD(this.g,function(c){b(c,a)});this.g.B=this.j.b[a.g];this.g.resume()};OD.prototype.o=function(a){KD(this.b,new uD({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};OD.prototype.seek=function(a){this.g.seek(a)};OD.prototype.B=function(){var a=this.g;We(a.g);a.g=0;a.k=!0};function PD(a,b){aD.call(this,a,b);this.Ba.style.display="block";this.Ba.style.padding="0";this.Yb=[];var c=this.Ba;O(c,"captions-text");N(c,"caption-painton-text-rows")}w(PD,aD);f=PD.prototype;f.type=0;f.Hq="";f.fh=!1;f.Lb=null;f.Yb=null;f.Oj=function(){return this.Yb[0]?this.Yb[0].offsetHeight:0};function QD(a){return a.Yb.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.Ze=function(){0!=this.id&&(Yf(this.Aa,"100%"),Yf(this.Aa,this.fh?QD(this):this.Lb.width));var a=Math.round(this.Ea.xd*this.Oj());this.Aa.style.maxHeight=a+"px";bD(this);Lx(this.Aa,this.Ea.isVisible)};
f.Ve=function(a){this.Tj();a=cD(a);this.fh||(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.fh||(this.Ba.style.height=this.Lb.height+"px",this.Ba.style.width=this.Lb.width+"px",d.style.position="absolute",d.style.top=this.Lb.Eq[b]+"px",d.style.left=this.Lb.Dq[b]+"px");this.Ba.appendChild(d);this.Yb.push(e)}this.Vn();this.Ze()};
f.Tj=function(){for(var a=0,b=this.Yb.length;a<b;a++){var c=vd(this.Yb[a],"caption-row-holder");fd(c)}this.Yb=[]};f.Vn=function(){this.Aa.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.Ba.style.color=this.Ea.foregroundColor;this.Ba.style.opacity=this.Ea.Un;this.Ba.style.fontFamily=this.Ea.dt;1==this.Ea.Qe?this.Ba.setAttribute("dir","rtl"):this.Ba.removeAttribute("dir")};function RD(a,b){aD.call(this,a,b);this.Sc=[];this.qe=[];this.Ob=[];this.ig=new Pk(433);this.ig.stop();Q(this.ig,"tick",t(this.SD,this))}w(RD,aD);f=RD.prototype;f.type=2;f.FD=32;f.Ob=null;f.re=0;f.qe=null;f.ig=null;f.Ze=function(){Yf(this.Aa,"100%");var a=this.Aa.offsetWidth,a=Math.min(SD(this),a);Yf(this.Aa,a+"px");Yf(this.Sj,"100%");this.Ba.style.whiteSpace="nowrap";bD(this);Lx(this.Aa,this.Ea.isVisible)};
f.Ar=function(a){var b=a.length;if(0>=b)this.Tj();else{for(var c=0;c<b&&0<=this.Sc.indexOf(a[c]);)c++;this.Sc=this.Sc.concat(a.slice(c));TD(this)}};f.Tj=function(){this.Sc=[];this.Ob=[];this.re=0;this.Ob=[];this.qe=[];UD(this)};
function TD(a){if(!VD(a))if(a.re>=a.Sc.length)UD(a);else{var b=a.Ob.length-1;0>b&&(a.qe.push(0),a.re=0,a.Ob.push(""),b=0);for(var c=a.Sc.length,d=a.re;d<c;d++){var e=a.Sc[d];if("\n"==e.he){a.re++;a.qe[b]++;break}if(e.Qj||0==a.Ob[b].length)a.Ob[b]+=e.he,a.re++,a.qe[b]++;else break}UD(a);d<c&&!VD(a)&&(b=a.Oj(),N(a.Ba,"caption-rollup"),a.Aa.style.overflow="hidden",a.Ba.style.top=-b+"px",a.ig.start())}}function VD(a){return a.ig.dd||qg(a.Ba,"caption-rollup")}
f.SD=function(){this.Aa.style.overflow="visible";this.Ba.style.top=0;this.ig.stop();O(this.Ba,"caption-rollup");this.Ob.push("");this.qe.push(0);TD(this)};function UD(a){if(!VD(a)){for(;a.Ob.length<a.Ea.xd;)a.Ob.unshift(""),a.qe.unshift(0);for(;a.Ob.length>a.Ea.xd;){a.Ob.shift();var b=a.qe.shift();0<b&&(a.re-=b,a.Sc.splice(0,b))}a.Ve(a.Ob.join("\n"))}}
function SD(a){a.Pb.style.fontFamily=a.Ba.style.fontFamily;a.Pb.style.fontSize=a.Ba.style.fontSize;a.Ba.appendChild(a.Pb);a.Pb.innerHTML="\u2014";var b=a.Pb.offsetWidth;a.Pb.innerHTML="&nbsp;";b=2*a.Pb.offsetWidth+b*a.FD;a.Ba.removeChild(a.Pb);return b};function WD(a,b,c,d){MD.call(this,d);c||(c=zi(a).hl||"",c=c.split("_").join("-"));this.g=Ci(a,{hl:c});this.j=b;this.C={}}w(WD,MD);WD.prototype.k=function(a,b){var c=XD(this,a);Ji(c,{format:"RAW",onSuccess:function(c){c=new CD(c.responseText);b(c,a)},withCredentials:!0})};
WD.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.Cq&&(b.asrs=1);d=Ci(d,b);b=t(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"),s=c,u=h[l].getAttribute("lang_code"),y=h[l].getAttribute("lang_translated"),G=h[l].getAttribute("name"),A=h[l].getAttribute("kind"),X=h[l].getAttribute("id"),Ha="true"==h[l].getAttribute("lang_default"),
$f="true"==h[l].getAttribute("cantran"),uj=h[l].getAttribute("vss_id"),p=new uD({formats:p,format:s,languageCode:u,languageName:y,name:G,kind:A,id:X,is_servable:!0,is_default:Ha,is_translateable:$f,vss_id:uj});KD(d,p)}b=b.getElementsByTagName("target");d=b.length;for(h=0;h<d;h++)k=b[h].getAttribute("lang_code"),l=b[h].getAttribute("lang_translated"),p=b[h].getAttribute("lang_original"),s=b[h].getAttribute("id"),u="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:p,
id:s,is_default:u},this.C[k.languageCode]=k.languageName,this.A.push(new tD(k))}a()},this);Ji(d,{format:"RAW",onSuccess:b,withCredentials:!0})};function XD(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=Ci(c,d)};function YD(a){pu.call(this,a);Ye({YTP_TRANSLATE_MENU_ITEM:"Translate captions",YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_TRANSLATE_DIALOG_TITLE:"Translate...",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font color",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background color",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window color",YTP_WINDOW_OPACITY:"Window opacity",YTP_COLOR_WHITE:"White",
YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",
YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow"});this.kk=!0;this.A=this.V=!1;this.xb=new cw(this);this.D=a.R();this.B=null;this.ca=a.app.g;this.ra={};this.da=[];this.Ha=0;this.C={};this.U={};this.oa=this.za=this.ya=this.xa=!1;this.wa=new aD(99,GC);this.j=this.k=this.I=null;this.Ca=!1;this.P=this.L=0;this.O=new VC(Du(this),"ytp-subtitles-button",Y(Du(this),"YTP_SUBTITLES"),"ytp-subtitles-button-active");
this.O.listen("click",this.vx,this);ZA(this.O,6500);this.F=new zC(Du(this));R(this,this.F);bB(this.F.element,1);this.F.listen("change",this.Fx,this);this.F.listen("select",this.Gx,this);this.o=new uC(Du(this));R(this,this.o);this.o.listen("change",this.jq,this);this.o.listen("select",this.ux,this);yC(this.o,!1);this.N=new MC(Du(this));R(this,this.N);this.N.listen("change",t(this.we,this,!0));this.N.listen("cancel",this.tx,this);this.N.listen("select",this.nq,this);this.T=new RC(Du(this));R(this,this.T);
this.T.listen("change",this.Ax,this);this.T.listen("cancel",this.ug,this);this.subscribe("onResize",t(this.xo,this));this.subscribe("onBackgroundChange",t(this.Bx,this));this.subscribe("onTextOpacityChange",t(this.Cx,this));this.subscribe("onWindowOpacityChange",t(this.Ex,this));this.subscribe("onFontSizeIncrease",t(this.zx,this));this.subscribe("onFontSizeDecrease",t(this.yx,this));this.subscribe("onShowControls",t(this.xx,this));this.subscribe("onHideControls",t(this.wx,this));"detailpage"==this.D.ba&&
(a=H("captions-account-settings-link",At(a)))&&Nx(a)}w(YD,pu);YD.prototype.va="captions";YD.prototype.ic="cc";YD.prototype.Bn="subtitlesModuleData";YD.prototype.Ia=1;var ZD={background:"#080808",backgroundOpacity:1,charEdgeStyle:"uniform",color:"#fff",fontFamily:'"Arial Unicode Ms", Arial',fontFamilyOption:"propSans",fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function $D(a){return a.D.Qb?!!a.ca.b.textTracks:!1}f=YD.prototype;
f.create=function(){YD.G.create.call(this);this.B=this.b.getVideoData();-1==HC.indexOf(this.D.la)&&N(At(this.b),"cc-international");this.g=bc(ZD);ra(this.g,wu(this,"display-settings"));QC(this.N,this.g);$D(this)||(this.H("module_menu_button_add",this.va,this.O),Eu(this,this.F));var a;1==this.D.j.cc_load_policy||1==this.B.Bo||"alwayson"==ds(this.B,"yt:cc")||$D(this)?a=!0:(a=wu(this,"module-enabled"),a=null!=a?!!a:"on"==ds(this.B,"yt:cc")||this.D.j.cc_prefer_on);a&&this.load()};
function aE(a){Fu(a,a.o);Fu(a,a.F);a.H("module_menu_button_remove",a.va)}f.destroy=function(){aE(this);YD.G.destroy.call(this)};function bE(a){a.k.o(t(a.LC,a),!0,$D(a)?"vtt":void 0)}
f.load=function(){this.oa="alwayson"==ds(this.B,"yt:cc");this.za="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&&(YD.G.load.call(this),this.V=!1,$D(this)||(this.we(),this.xo()));else{this.V=!0;this.A=!1;if(this.B.Za)this.k=new OD(this.B.j,this.b),this.subscribe("seekto",this.rq,this);else{var a=this.B.k.cc_lang_pref||this.D.j.cc_lang_pref||ds(this.B,"yt:cc_default_lang")||this.D.B,a=a&&a.split("_").join("-");
this.k=new WD(this.B.Nf,this.B.videoId,a,this.B.bm)}bE(this)}};f.unload=function(){this.oc&&(cE(this,!1),this.Wl("control_subtitles_set_track"));if($D(this)){var a;a=Pc("track",void 0,void 0);for(var b=0;b<a.length;b++)fd(a[b])}else dE(this,!1),eE(this),this.ha("seekto",this.rq,this),this.k=null,this.ug();this.ya=this.V=!1;this.A&&(this.A=!1,YD.G.unload.call(this))};f.log_=function(){};
f.LC=function(){if(this.k)if(this.V=!1,$D(this)){for(var a=this.ca.b,b=this.k,c=[],d=JD(b.b,void 0),e=0;e<d.length;e++){var g=d[e],h=XD(b,g),h={kind:"subtitles",label:g.k,srclang:g.g,src:h};g.B&&(h["default"]=1);c.push(I("track",h))}Xt(a,c)}else a=this.T,b=this.k.A,qC(a.g,b),tC(a.g,1E3),Mv(a.g.template,"tabindex",1E3),ZA(a.b.b,1001),b.length?SC(a,b[0]):SC(a,null),a=JD(this.k.b,!0),0<a.length?(this.log_("Caption track list loaded, found "+a.length+" tracks."),Eu(this,this.o),vC(this.o,a),b=this.k.b.b,
(a=a[b]&&a[b].toString())&&xC(this.o,a),b=this.k,a=b.b.b,b=JD(b.b,!0),(a=0>a?null:b[a])?(this.xa=!0,fE(this,a)):this.A||(this.A=!0,this.load(),a=this.k.b.j,a.length&&(a=a[0].toString(),xC(this.o,a),(this.ya||this.za)&&gE(this,a))),this.H("publish_external_event","onCaptionsTrackListChanged")):(this.log_("No captions found."),aE(this),this.unload())};
f.nx=function(a,b){this.k&&(this.A||(this.A=!0,this.load()),this.xa&&(this.xa=!1,this.H("publish_external_event","onCaptionsTrackListChanged")),!b||this.j&&b.equals(this.j)||hE(this,b),iE(this,a.g.concat(a.b)))};
function hE(a,b){eE(a);a.j=b;a.Ca=nx.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);dD(a.wa,wC(b));su(a,a.wa.Aa);a.P||(a.P=L(t(a.Tw,a),0));a.H("publish_external_event","captionschanged",vD(b));ZC(a.O,"ytp-subtitles-button-active");bB(a.F.element,0);yC(a.o,!0);xu(a,"module-enabled",!0);a.H("vss_segment")}
function iE(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 fu(a.b,a.b+a.vc,{id:b}));this.ra[b]=a},a);a.Kf.apply(a,c)}f.Dc=function(a){if(a=jE(this,a))this.da.push(a),this.L||(this.L=L(t(this.sj,this),0))};f.jd=function(a){if(a=jE(this,a))rb(this.da,a),this.L||(this.L=L(t(this.sj,this),0))};function jE(a,b){var c=b.getId();return 0!=c.indexOf("caption")?null:a.ra[c]}
f.wA=function(a){if(a instanceof oD){var b=this.C[a.id];ra(a.params,this.g);b&&b.type!=(a.params.km?2:a.g?0:1)&&(fd(b.Aa),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.km?2:a.g?0:1){case 0:d=new PD(d,e);break t;case 2:d=new RD(d,e);break t;default:d=new aD(d,e)}}b[c]=d;b=this.C[a.id].Aa;P(b,"captions-asr","asr"==this.j.j);null!=a.params.Qe&&(a.params.Qe=this.Ca?1:0);0==this.C[a.id].id?(N(b,this.va),ed(this.b.app.g.F,b,0)):su(this,b)}ra(this.C[a.id].Ea,
a.params);if(0==(a.params.km?2:a.g?0:1)){b=this.C[a.id];b.Hq=a.j;b.Lb={};b.fh=!0;b.Ve(b.Hq);b.Lb.xd=b.Yb.length;b.Lb.width=b.Aa.offsetWidth;b.Lb.height=b.Aa.offsetHeight;b.Lb.Dq=[];b.Lb.Eq=[];for(a=0;a<b.Lb.xd;a++)b.Lb.Eq.push(b.Yb[a].offsetTop),b.Lb.Dq.push(b.Yb[a].offsetLeft);b.fh=!1;b.Ve(b.gh)}}else b=a.Xi,this.U[b]||(this.U[b]=[]),this.U[b].push(a)};f.xo=function(){this.A&&(this.Ia=kE(this.ca).height/360,this.we(),Ob(this.C,function(a){a.Ze()},this))};
function lE(a){var b=[];Ob(a.C,function(a){a instanceof PD&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Ea.ge-a.Ea.ge});var c=kE(a.ca).height,d=b[0].Ea.ge;z(b,function(a){a.Ea.ge=d;var b=Math.round(a.Ea.xd*a.Oj());d-=Math.round(b/c*100);a.Ze()},a)}}f.Tw=function(){this.P=0;fd(this.wa.Aa)};
f.sj=function(){this.L=0;this.A&&($b(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.wA,this),Ob(this.C,function(a,b){this.U[b]?a.Ar(this.U[b]):(fd(a.Aa),delete this.C[b])},this),lE(this),this.I&&this.I.Ze(),this.log_("Refreshing caption display..."))};function mE(a,b){var c=H(a).querySelectorAll("."+b+" input[type=radio]"),d=ob(c,function(a){return a.checked}),d=(-1==d?1:d+1)%c.length;c[d].click()}f.Bx=function(){mE("captions-settings-background-opacity","captions-settings-background-opacity-radio")};
f.Cx=function(){mE("captions-settings-text-opacity","captions-settings-text-opacity-radio")};f.Ex=function(){mE("captions-settings-window-opacity","captions-settings-window-opacity-radio")};f.xx=function(){var a=this.C[0];a&&a.Aa&&(a=a.Aa,O(a,"controls-hidden"),N(a,"controls-visible"))};f.wx=function(){var a=this.C[0];a&&a.Aa&&(a=a.Aa,qg(a,"controls-visible")&&(O(a,"controls-visible"),N(a,"controls-hidden")))};f.yx=function(){nE(this,-1)};f.zx=function(){nE(this,1)};
function nE(a,b){var c=a.g.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.g.fontSizeIncrement=c;a.we()}function oE(a,b){var c=H(b);c&&(c.querySelector('input[value="'+a.toFixed(1)+'"]').checked=!0)}function pE(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],nd(b,d.options[d.selectedIndex].text))}
function eE(a){a.j&&(a.j=null,qu(a),a.da=[],a.ra={},a.j=null,a.sj(),ZC(a.O,"ytp-subtitles-button"),bB(a.F.element,1),yC(a.o,!1),a.k.B())}function gE(a,b){var c=ND(a.k,b);fE(a,c);a.log_("Caption change failed for "+b)}
function fE(a,b){if(b&&(!a.j||!b.equals(a.j)))if(a.oc)a.j=b,cE(a,!0),a.Wl("control_subtitles_set_track",vD(b)),a.A||(a.A=!0,a.load());else if(a.D.b.xa){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=Ci(d.g,e);g.mode="showing";g.setAttribute("kind","captions");g.setAttribute("default","");Xt(c,[g]);hE(a,b)}else a.k.k(b,t(a.nx,a)),a.V=!0}
f.Ax=function(){if(!this.oa){this.ug();var a=this.T.getSelected();if(a){var b=this.j,c=new uD;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;KD(this.k.b,c)&&(a=c.toString(),Eu(this,this.o),vC(this.o,JD(this.k.b,!0)),xC(this.o,a));fE(this,c)}}};f.tx=function(){this.ug();this.oc&&this.j&&this.Wl("control_subtitles_set_track",vD(this.j))};f.nq=function(){delete this.g;this.g=bc(ZD);QC(this.N,this.g);xu(this,"display-settings",this.g);this.we()};
f.we=function(a){qE(this);var b=jw(this.g.background),c=this.g.backgroundOpacity;this.Ra=gC(".captions-text, .caption-row","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{fd:this.Ra,reset:!0});oE(c,"captions-settings-background-opacity");b=jw(this.g.color);c=this.g.textOpacity;this.hb=gC(".captions-text","color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{fd:this.hb,reset:!0});oE(c,"captions-settings-text-opacity");b=jw(this.g.windowColor);c=this.g.windowOpacity;this.mb=
gC(".caption-window-transform","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+c+") !important;",{fd:this.mb,reset:!0});oE(c,"captions-settings-window-opacity");var b=this.g.charEdgeStyle,d=this.g.textOpacity;if("none"==b)this.la&&hC(this.la);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.la=gC(".captions-text",c,{fd:this.la,reset:!0})}pE(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.eb=
gC(".captions-text",c+"font-family: "+b+" !important;",{fd:this.eb,reset:!0});this.g.fontFamily=b;pE(this,"captions-settings-font-family","fontFamilyOption");b="font-size: "+Math.round(16*(1+.25*(this.g.fontSizeIncrement||0))*this.Ia)+"px;";this.gb=gC(".caption-window-transform",b,{fd:this.gb,reset:!0});this.sj();n(a)&&!a||xu(this,"display-settings",this.g)};
function qE(a){var b=[],c=t(function(a){var c=this.g[a];c&&b.push(a+": "+c+" !important")},a);c("color");c("background");c={fd:a.Wa,reset:!0};a.Wa=gC(".captions-text",b,c);var d=jw(a.g.windowColor),c={fd:a.jb,reset:!0};a.jb=gC(".caption-window-transform","background-color: rgba("+d[0]+","+d[1]+","+d[2]+", 1)",c)}f.vx=function(){this.A||this.load()};
f.Fx=function(){var a=0==this.F.getSelected();this.A&&!a?(this.unload(),xu(this,"module-enabled",!1),Gu(this),this.H("vss_segment")):!this.A&&a?(this.ya=!0,this.load()):this.o.D&&this.jq()};f.Gx=function(){tu(this,this.N);Gu(this)};f.jq=function(){gE(this,this.o.D)};f.ux=function(){this.o.F?this.oa||tu(this,this.T):uu(this,this.D.qb+"timedtext_video?v="+this.B.videoId);Gu(this)};function rE(a){return YD.prototype.Ja(a)?new YD(a):null}
f.Nj=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.g.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.we()),this.g.fontSizeIncrement;case "reload":b&&bE(this);break;case "stickyLoading":this.D.Ab()&&xu(this,"module-enabled",!!b);break;case "track":if(b){if(!ka(b))break;var c=new uD(b);c.equals(this.j)||(fE(this,c),xC(this.o,c.toString()))}else return this.j?vD(this.j):{};return"";case "tracklist":return this.A?B(JD(this.k.b,b&&b.includeAsr),function(a){return vD(a)}):[];case "displaySettings":return b&&
ka(b)&&sE(this,b),c=bc(this.g),delete c.fontFamily,c;case "sampleSubtitles":dE(this,!!b)}};function dE(a,b){if(b&&!a.I){a.I=new aD(98,FC);var c=a.I.Aa;N(c,a.va);ed(a.b.app.g.F,c,0);dD(a.I,Y(Du(a),"YTP_SAMPLE_SUBTITLES"))}else!b&&a.I&&(fd(a.I.Aa),a.I=null)}f.Hj=function(){var a="reload fontSize track tracklist displaySettings sampleSubtitle".split(" ");this.D.Ab()&&a.push("stickyLoading");return a};var tE=/^#(?:[0-9a-f]{3}){1,2}$/i;f=YD.prototype;f.In=function(a,b){return a&&r(a)&&tE.test(a)?a:b};
f.Jn=function(a,b){return ia(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.zC=function(a,b){return a&&r(a)&&Vb(CC,a)?a:b};f.AC=function(a,b){return a&&r(a)&&Vb(BC,a)?a:b};f.BC=function(a,b){return ia(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var uE=null;
function sE(a,b){if(b)if(ac(b,"reset"))a.nq();else{if(!uE){var c={};c.color=a.In;c.textOpacity=a.Jn;c.background=a.In;c.backgroundOpacity=a.Jn;c.windowColor=a.In;c.windowOpacity=a.Jn;c.charEdgeStyle=a.zC;c.fontFamilyOption=a.AC;c.fontSizeIncrement=a.BC;uE=c}var c=uE,d;for(d in c)a.g[d]=c[d](b[d],a.g[d]);a.we(vE(a.D))}}f=YD.prototype;f.Ja=function(a){return!!a.getVideoData().Nf};f.Ki=function(a){a?(a=this.j,eE(this),this.j=a):(cE(this,this.A),this.j&&fE(this,this.j))};
function cE(a,b){b?(ZC(a.O,"ytp-subtitles-button-active"),bB(a.F.element,0)):(ZC(a.O,"ytp-subtitles-button"),bB(a.F.element,1))}f.rq=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&&(M(this.L),this.L=0);this.P&&(We(this.P),this.P=0);YD.G.J.call(this)};function wE(a){pu.call(this,a);this.va="ypc_license_checker";this.ic="ypc_license";this.A=!1;this.o=0;this.k=!1;this.g=NaN;this.C=pq();this.B=a.R().qb+"ypc_license_server";this.j=null}w(wE,pu);
var xE={LICENSE_DENIED_CANNOT_ACTIVATE_RENTAL:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",LICENSE_DENIED_NOT_SIGNED_IN:"YTP_ERROR_NOT_SIGNED_IN",LICENSE_DENIED_VIDEO_NOT_FOUND:"YTP_ERROR_VIDEO_NOT_FOUND",LICENSE_DENIED_NO_ACTIVE_PURCHASE_AGREEMENT:"YTP_ERROR_PURCHASE_REFUNDED",LICENSE_DENIED_PURCHASE_NOT_FOUND:"YTP_ERROR_PURCHASE_NOT_FOUND",LICENSE_DENIED_PURCHASE_EXPIRED:"YTP_ERROR_RENTAL_EXPIRED",LICENSE_DENIED_STREAMING_UNAVAILABLE:"YTP_ERROR_STREAMING_UNAVAILABLE",LICENSE_DENIED_ALREADY_PINNED_ON_A_DEVICE:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",
LICENSE_DENIED_CONCURRENT_PLAYBACK:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",LICENSE_DENIED_TOO_MANY_STREAMS_PER_USER:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",LICENSE_DENIED_TOO_MANY_STREAMS_PER_ENTITLEMENT:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",LICENSE_DENIED_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",LICENSE_DENIED_UNUSUAL_ACTIVITY:"YTP_ERROR_UNUSUAL_ACTIVITY",LICENSE_DENIED_UNKNOWN:"YTP_ERROR_RETRYABLE_ERROR",LICENSE_DENIED_PLAYBACK_CAP:"YTP_ERROR_LICENSE"};
function yE(a){return js(a.getVideoData(),"ypc_license_checker_module")}f=wE.prototype;f.Ja=function(){return yE(this.b)};f.create=function(){wE.G.create.call(this);var a=new fu(1E3,2147483646,{priority:0});this.Kf(a);this.subscribe("heartbeatparams",this.vD,this);this.subscribe("onStateChange",this.wD,this)};function zE(a){return yE(a)?new wE(a):null}f.Dc=function(){this.A=!0;AE(this,6E4)};f.vD=function(a){this.j=a;AE(this,6E4)};
f.wD=function(a){V(a.state,2)?(this.o=0,this.g&&(M(this.g),this.g=NaN),this.k=!1):(V(a.state,1)||V(a.state,8))&&AE(this,6E4)};function AE(a,b){if(!a.g&&a.A){var c=a.b.getVideoData();if(!cs(c)||a.j)if(cs(c)||!vE(a.b.R()))c=b,void 0==c&&(c=a.k?a.j?1E3*a.j.b:6E4:1E3),a.g=L(t(a.rx,a),c)}}
f.rx=function(){var a,b,c,d=this.b.getVideoData();cs(d)?(b="GET",a={},c=$d(this.j.url,{request_id:pq()}),d.D&&(c=$d(c,{vvt:d.D})),d.B&&(c=$d(c,{access_token:d.B}))):(b="POST",a={video_id:d.videoId,player_id:this.C,request_id:pq(),purchase_id:d.ck,version:"4",player_time_seconds:this.b.getCurrentTime().toString(),gid:d.nf,ypc_token:d.jf},d.D&&(a.vvt=d.D),d.B&&(a.access_token=d.B),c=this.B);c=$d(c,{cpn:d.Da});Ji(c,{format:"RAW",method:b,ed:a,timeout:3E4,onSuccess:t(this.tA,this),onError:t(this.sA,this),
bh:t(this.uA,this),withCredentials:!0})};f.tA=function(a){if(this.g){a=a.responseText;var b;t:{b=a;var c=b.match(BE);if(c){if("0"!=c[1]){b=1;break t}b=c[3]}b=b in xE?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?CE(this,"decode"):(this.o=0,this.g=NaN,1==b?(this.k=!1,b="YTP_ERROR_LICENSE",(c=a.match(BE))?(a=parseInt(c[1],10))&&(b=Ju(a)):a in xE&&(b=xE[a]),a=Ze(b),Yv(this.b.app.j,"heartbeat",a,void 0)):(this.k=!0,AE(this)))}};f.sA=function(a){CE(this,"net-"+a.status)};f.uA=function(){CE(this,"timeout")};
function CE(a,b){if(a.g)if(a.log({errorType:b}),a.g=NaN,5<++a.o){var c=Ze("YTP_ERROR_LICENSE");Yv(a.b.app.j,"heartbeat",c,void 0)}else AE(a)}var BE=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function DE(){this.b=[];this.g=[]}da(DE);var EE=q("yt.player.utils.VideoTagPool.instance_")||DE.getInstance();ba("yt.player.utils.VideoTagPool.instance_",EE,void 0);f=DE.prototype;f.SE=function(a){if(!(this.b.length>=a)){a-=this.b.length;for(var b=0;b<a;b++){var c=FE(this);this.b.push(c)}}};function FE(a,b){var c=document.createElement("video");ra(c,Pt);Q(c,"loadeddata",t(c.JC,c));Q(c,"volumechange",t(c.KC,c));mh&&6<=Lq&&Q(c,"webkitbeginfullscreen",t(c.play,c));b||Qt(c);a.g.push(c);return c}
f.$E=function(a){return this.b.length?this.b.pop():FE(this,a)};f.XE=function(a){a&&C(this.g,a)&&(Vt(a),Vg(a),rb(this.g,a))};f.UE=function(a){return this.b.length>=(a||1)};f.OE=function(){this.b=[];z(this.g,function(a){Qt(a);this.b.push(a)},this)};DE.prototype.fillPool=DE.prototype.SE;DE.prototype.getTag=DE.prototype.$E;DE.prototype.releaseTag=DE.prototype.XE;DE.prototype.hasTags=DE.prototype.UE;DE.prototype.activateTags=DE.prototype.OE;var GE={cJ:"0",eJ:"1",BE:"2",ZI:"3"};function HE(){W.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.b=NaN;this.hide()}w(HE,W);HE.prototype.g=function(){N(this.element,"html5-bezel-fade");this.b=L(t(this.hide,this),300)};HE.prototype.hide=function(){HE.G.hide.call(this);IE(this)};HE.prototype.setIcon=function(a){Mv(this.template,"icon",a)};HE.prototype.show=function(a){IE(this);a&&this.setIcon(a);HE.G.show.call(this)};function IE(a){M(a.b);O(a.element,"html5-bezel-fade")};function JE(a){W.call(this,a);this.T=new cj;R(this,this.T)}w(JE,W);JE.prototype.subscribe=function(a,b,c){return this.T.subscribe(a,b,c)};JE.prototype.ha=function(a,b,c){return this.T.ha(a,b,c)};JE.prototype.Ib=function(a){return this.T.Ib(a)};JE.prototype.H=function(a,b){return this.T.H.apply(this.T,arguments)};function KE(){this.g=this.b=null}function Y(a,b,c){return Ze(b,c,void 0)}f=KE.prototype;f.Pg=function(a,b){this.b&&this.b.Pg(a,b)};f.yf=function(a,b,c){this.b&&this.b.yf(a,b,c)};f.zn=function(a){this.b&&this.b.zn(a)};f.qd=function(){return this.g.qd()};f.Tb=function(){return this.g.Tb()};function LE(a){W.call(this,["span"]);this.element.innerHTML=a}w(LE,W);function ME(a,b){W.call(this,["span","","{{sparkline_container}}"]);this.j=a;this.g=b;this.b=new LE("");R(this,this.b);Mv(this.template,"sparkline_container",this.b)}w(ME,W);function NE(){W.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 ME(200,14);R(this,this.b);Mv(this.template,"bandwidth_sparkline",this.b)}w(NE,W);
NE.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*db(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)};NE.prototype.J=function(){this.g=null;NE.G.J.call(this)};function OE(a){JE.call(this,["div","html5-video-player",{tabindex:-1}]);this.app=a;this.g=this.Wa=null;this.L=new zf(0,0,0,0);this.b=null;this.ra=new zf(0,0,0,0);this.F=this.N=null;this.hb=this.xb=0;this.ca=null;this.U=0;this.ya=null;a=a.R();this.mb=ff()||"blazer"==a.ob;this.eb=0;this.A=null;this.j=new KE;this.Wg()}w(OE,JE);f=OE.prototype;
f.Wg=function(){this.app.subscribe("initializingmode",this.qE,this);this.app.subscribe("videoplayerreset",this.sE,this);this.app.subscribe("videodatachange",this.rE,this)};
f.initialize=function(a){this.Wa=Nc(a);this.element.setAttribute("id",this.app.O.attrs.id);ug(this.element,"version",this.app.O.assets.js);this.element.style.display="none";this.W(this.Wa);Ye({YTP_ADVERTISEMENT:"Advertisement",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",
YTP_GET_DEBUG_INFO:"Get debug info",YTP_GET_VIDEO_URL:"Get video URL",YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",YTP_GET_EMBED:"Get embed code",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC:"An error occurred, please try again later.",YTP_ERROR_GENERIC_WITH_LINK_2:"An error occurred, please try again later. $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FEATURED:"Featured",YTP_FULLSCREEN:"Full screen",YTP_MIX:"Mix",YTP_MORE:"More",
YTP_MDX_TITLE:"Play on",YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",YTP_PLAY_ALL:"Play all",YTP_PREVIOUS:"Previous",YTP_PLAYLIST:"Playlist",YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_REPLAY:"Replay",YTP_REPORT_ISSUE:"Report playback issue",YTP_SETTINGS:"Settings",YTP_SHARE:"share",YTP_SHARE_WITH_PLAYLIST:"Share with playlist",
YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBTITLES:"Captions",YTP_THEATER_MODE:"Theater mode",YTP_UNMUTE:"Unmute",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",YTP_LIKE_AS:"Like as $USER_NAME",YTP_DISLIKE_AS:"Dislike as $USER_NAME",YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",
YTP_WATERMARK:"Watermark",YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable right now because this video has been downloaded for offline viewing.",YTP_ERROR_LICENSE:"Sorry, there was an error licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video can not be found.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rental. Please reload this page or try again later.",YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",
YTP_UPLOADED_BY_2:"by $AUTHOR",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",YTP_CANCEL:"Cancel",YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",YTP_MORE_INFO:"More info",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",YTP_SCREENREADER_VOLUME_MUTE:"mute",
YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_CONTEXT_MENU_LINK:"About the HTML5 player",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$END_LINK.",
YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session was expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",
YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",
YTP_MDX_STATUS_CONNECTED:"Playing on",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error on",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",YTP_AD_RESUME_MESSAGE:"Your video will resume after the following ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site"});
this.ct()};f.ct=function(){this.H("templateready")};f.qE=function(){this.ra=new zf(0,0,0,0);this.L=new zf(0,0,0,0)};f.addClass=function(a){rg(this.element,arguments)};f.removeClass=function(a){sg(this.element,arguments)};
f.Rg=function(){this.lm();var a=this.app.R();this.addClass("el-"+a.ba);this.addClass("ps-"+a.ob);P(this.element,"html5-native-controls",a.Qb);P(this.element,"html5-mobile",a.ac);a.Qd||this.addClass("html5-chromeless");a.Rb||this.addClass("tag-pool-enabled");this.element.style.display="";a=new Hv(["div","html5-video-container"]);R(this,a);a.W(this.element);this.g=a.K();this.N=new Hv(["div","html5-video-content"]);R(this,this.N);this.N.W(this.g);a=new Hv(["div","html5-video-controls"]);R(this,a);a.W(this.element);
this.F=a.K();this.A=new NE;this.A.W(this.element);bz(this,this.A.g,"click",this.Em);R(this,this.A);this.mb?this.ca=Q(window,"resize",t(this.qh,this)):(a=oz()?t(this.vC,this):t(this.qh,this),this.ca=Ve(a,250))};f.Mj=function(a){a?Zy(this.F):$y(this.F)};f.vC=function(){this.U&&rz(this.U);this.U=qz(t(this.qh,this),0)};f.qh=function(){Mb(this.Tb(),Cf(this.L))||this.Zf()};
f.Zf=function(){if(this.b){var a=this.Tb();if(!a.isEmpty()){var b=!Mb(a,Cf(this.L)),c,d=PE(this),e=this.Tb();c=1;var g=QE(this),h=!1,k;g?(k=RE(this,e,d,g,!1),c=SE(new F(k.width,k.height))/SE(d),k=new zf(k.left+k.width/2*(1-1/c),k.top,k.width/c,k.height)):k=new zf(0,0,e.width,e.height);Bf(this.ra,k)||(this.ra=k,Xf(this.b,Cf(k)),Mf(this.b,new E(k.left,k.top)),h=!0);d=RE(this,e,d,g);Bf(this.L,d)||(this.L=d,Xf(this.N.K(),d.width,d.height),Mf(this.N.K(),d.left,d.top),h=!0);Rx(this.b,"transform",1==c?"none":
"scaleX("+c+")");c=h;b&&(this.L.width=a.width,this.L.height=a.height,this.mn(a));(c||b)&&this.H("resize")}}};f.mn=function(){};f.Ql=function(){};f.rE=function(a,b){this.Gj(b)};f.sE=function(a){a.getVideoData()&&this.Gj(a.getVideoData())};
f.Gj=function(a){this.b&&(this.b.setAttribute("data-youtube-id",a.videoId),lr&&(a.title?this.b.setAttribute("title",a.title):this.b.removeAttribute("title")),a.zm&&(this.b.poster=a.zm));var b=ds(a,"yt:bgcolor");this.g.style.backgroundColor=b?b:"";this.xb=xq(ds(a,"yt:stretch"));a=ds(a,"yt:crop");this.hb="fullwidth"==a?Infinity:xq(a)};f.Sg=function(){};f.Jm=function(){};f.qd=function(){return this.element?new F(this.element.clientWidth,this.element.clientHeight):new F(0,0)};
f.Tb=function(){return this.g?new F(this.g.clientWidth,this.g.clientHeight):new F(0,0)};f.Qs=function(){return this.Tb()};function kE(a){return a.b?new F(a.b.clientWidth,a.b.clientHeight):new F(0,0)}function PE(a){return a.b?new F(a.b.videoWidth,a.b.videoHeight):new F(0,0)}function TE(a){return RE(a,a.Tb(),PE(a),QE(a),void 0)}
function RE(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.xb||SE(c),a=a.hb||c,d=SE(b),d=a>d?new F(b.width,b.width/(isFinite(a)?a:c)):a<d?new F(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(Nb(e)>Nb(b)?b.width/e.width:b.height/e.height));return new zf((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}function SE(a){var b=16/9;return 1>Math.abs(b*a.height-a.width)||1>Math.abs(b/a.width-a.height)?b:Nb(a)}
function QE(a){return!a.app.R().Qb&&!PE(a).isEmpty()}f.qk=function(){};function kt(a){a.A&&(a.A.show(),a.Zs(),We(a.eb),a.eb=Ve(t(a.Zs,a),500))}
f.Zs=function(){var a=Us(this.app),b=this.app.getVideoData(),c=this.app.Zh(),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,s=Math.round(this.app.D.volume),u;t:{if(b.xe&&(u=b.xe.match(/url=(https?)/))&&2==u.length){u=u[1];break t}u=""}u=u||e.protocol;var y=this.app;if(y.xa){var G=[];y.xa.M.forEach(t(G.push,G));y=G}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:s,stream_type:u,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=po(b.b)?"yes":"no",g+=" ("+b.b.id,b.N&&po(b.b)&&(g+="/"+b.N.id),c.dash=g+")",c.mime=b.b.mimeType);if(a=a.B?a.B.b:null)c.drm_flavor=
a.g,c.drm_key_system=a.b;vE(e)&&(c.cpn=b.Da);this.A.update(c)};f.Em=function(a){a&&a.stopPropagation();this.A&&(We(this.eb),this.A.hide())};f.lm=function(){this.j.g=this};f.J=function(){this.ca&&(this.mb?Rg(this.ca):We(this.ca),this.U&&rz(this.U));this.ya&&Rg(this.ya);this.Em();this.A&&Vg(this.A.g);this.F=this.N=this.b=this.g=this.Wa=null;OE.G.J.call(this)};function UE(a){W.call(this,["div","ytp-dialog-holder","{{content}}"]);this.g=a;this.b=null}w(UE,W);UE.prototype.show=function(){UE.G.show.call(this);VE(this);this.b.uj()};function VE(a){if(a.b){a.b.Jr();var b=a.g.qd(),c=Zf(a.b.K());a=a.b;b=new E(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"}}UE.prototype.J=function(){this.b=null;UE.G.J.call(this)};function WE(a,b){W.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(WE,W);WE.prototype.j=function(a,b){M(this.b);this.context&&(this.b=az(t(this.j,this,a,b),b),a.call(this,new Date-this.o))};WE.prototype.J=function(){M(this.b);this.context=null;WE.G.J.call(this)};function XE(a,b){WE.call(this,a,b);this.A=null;this.B=this.C=this.k=this.g=0;N(this.element,"ytp-tv-static");YE(this,a,b)}w(XE,WE);function ZE(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 YE(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=ZE(b);a.B=ZE(c/10);a.context.scale(1.5,1.5)}}XE.prototype.show=function(){XE.G.show.call(this);var a=this.D;this.o=new Date;this.j(a,75)};
XE.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)};XE.prototype.hide=function(){M(this.b);XE.G.hide.call(this)};function $E(){W.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==jq){var a=document.createElement("canvas");jq=!(!a.getContext||!a.getContext("2d"))}jq&&(this.b=new XE(1,1),this.b.W(this.element,0),R(this,this.b))}w($E,W);$E.prototype.show=function(){$E.G.show.call(this);aF(this);this.b&&this.b.show()};$E.prototype.hide=function(){$E.G.hide.call(this);this.b&&this.b.hide()};
function aF(a){a.b&&YE(a.b,a.element.clientWidth,a.element.clientHeight)}$E.prototype.J=function(){Rg(this.g);this.g=[];$E.G.J.call(this)};function bF(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>';
W.call(this,["div",c]);d&&(this.element.innerHTML=d)}w(bF,W);function cF(a){this.g=a||30;WE.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(cF,WE);cF.prototype.show=function(){cF.G.show.call(this);var a=this.C;this.o=new Date;this.j(a,125)};
cF.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()}};cF.prototype.hide=function(){M(this.b);cF.G.hide.call(this)};function dF(a){W.call(this,["div","ytp-thumbnail"]);this.b=a}w(dF,W);
dF.prototype.show=function(a){if(a||this.element.childNodes.length){if(a){dd(this.element);var b=this.element,c=this.b;if(null!=Qx("backgroundSize")){if(d=document.createElement("div"),b=BB(b,a,c))d.style.backgroundImage="url("+b+")"}else{var d=document.createElement("img");d.src=BB(b,a,c);a=d;b.clientWidth/b.clientHeight<AB?(a.style.height="100%",a.style.width="auto"):(a.style.height="auto",a.style.width="100%")}N(d,"video-thumbnail");this.element.appendChild(d)}dF.G.show.call(this)}};function eF(a,b,c,d,e,g,h){var k,l;if(k=c.offsetParent){var p="HTML"==k.tagName||"BODY"==k.tagName;p&&"static"==Lf(k,"position")||(l=Sf(k),p||(p=(p=Tf(k))&&sc?-k.scrollLeft:!p||rc&&Cc("8")||"visible"==Lf(k,"overflowX")?k.scrollLeft:k.scrollWidth-k.clientWidth-k.scrollLeft,l=Lb(l,new E(p,k.scrollTop))))}k=l||new E;l=dg(a);if(p=Rf(a)){var s=Af(p),p=Math.max(l.left,s.left),u=Math.min(l.left+l.width,s.left+s.width);if(p<=u){var y=Math.max(l.top,s.top),s=Math.min(l.top+l.height,s.top+s.height);y<=s&&(l.left=
p,l.top=y,l.width=u-p,l.height=s-y)}}p=Kc(a);y=Kc(c);if(p.b!=y.b){var u=p.b.body,y=xd(y),s=new E(0,0),G=Wc(Mc(u)),A=u;do{var X=G==y?Sf(A):Uf(A);s.x+=X.x;s.y+=X.y}while(G&&G!=y&&(A=G.frameElement)&&(G=G.parent));u=Lb(s,Sf(u));!rc||Dc(9)||wd(p)||(u=Lb(u,yd(p)));l.left+=u.x;l.top+=u.y}a=fF(a,b);b=new E(a&2?l.left+l.width:l.left,a&1?l.top+l.height:l.top);b=Lb(b,k);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var Ha;h&&(Ha=Rf(c))&&(Ha.top-=k.y,Ha.right-=k.x,Ha.bottom-=k.y,Ha.left-=k.x);return gF(b,c,d,
g,Ha,h,void 0)}
function gF(a,b,c,d,e,g,h){a=a.clone();var k=0,l=fF(b,c);c=bg(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;Mf(b,a);Mb(c,h)||(a=Mc(b),e=wd(Kc(a)),!rc||Cc("10")||
e&&Cc("8")?(b=b.style,sc?b.MozBoxSizing="border-box":tc?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?(rc?(e=hg(b,"paddingLeft"),c=hg(b,"paddingRight"),g=hg(b,"paddingTop"),d=hg(b,"paddingBottom"),e=new yf(g,c,d,e)):(e=Kf(b,"paddingLeft"),c=Kf(b,"paddingRight"),g=Kf(b,"paddingTop"),d=Kf(b,"paddingBottom"),e=new yf(parseFloat(g),parseFloat(c),parseFloat(d),parseFloat(e))),b=kg(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 fF(a,b){return(b&4&&Tf(a)?b^2:b)&-5};var hF={},iF="ontouchstart"in document;function jF(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return ud(c,function(a){return qg(a,b)},!0,d)}
function kF(a){var b="mouseover"==a.type&&"mouseenter"in hF||"mouseout"==a.type&&"mouseleave"in hF,c=a.type in hF||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=hF[b],d;for(d in c.$b){var e=jF(b,d,a.target);e&&!ud(a.relatedTarget,function(a){return a==e},!0)&&c.H(d,e,b,a)}}if(b=hF[a.type])for(d in b.$b)(e=jF(a.type,d,a.target))&&b.H(d,e,a.type,a)}}Q(document,"blur",kF,!0);Q(document,"change",kF,!0);Q(document,"click",kF);Q(document,"focus",kF,!0);
Q(document,"mouseover",kF);Q(document,"mouseout",kF);Q(document,"mousedown",kF);Q(document,"keydown",kF);Q(document,"keyup",kF);Q(document,"keypress",kF);Q(document,"cut",kF);Q(document,"paste",kF);iF&&(Q(document,"touchstart",kF),Q(document,"touchend",kF),Q(document,"touchcancel",kF));function lF(){this.k={};this.o=[]}f=lF.prototype;f.kd=function(a){return vd(a,Z(this))};function Z(a,b){return"yt-uix"+(a.Ld?"-"+a.Ld:"")+(b?"-"+b:"")}f.dispose=ca;function mF(a,b,c){b=Vh(b,c,a);a.o.push(b)}function nF(a,b,c,d){d=Z(a,d);var e=t(c,a);b in hF||(hF[b]=new Ph);hF[b].subscribe(d,e);a.k[c]=e}f.ag=function(a,b,c){var d=this.Z(a,b);if(d&&(d=q(d))){var e=yb(arguments,2);xb(e,0,0,a);d.apply(null,e)}};f.Z=function(a,b){return wg(a,b)};function oF(a,b){ug(a,"tooltip-text",b)}
f.removeData=function(a,b){xg(a,b)};function pF(){lF.call(this);this.b={}}w(pF,lF);da(pF);f=pF.prototype;f.Ld="tooltip";f.Jj=0;f.register=function(){nF(this,"mouseover",this.Ct);nF(this,"mouseout",this.Kj);nF(this,"click",this.Kj);nF(this,"touchstart",this.cE);nF(this,"touchend",this.Et);nF(this,"touchcancel",this.Et)};f.dispose=function(){for(var a in this.b)this.Kj(this.b[a]);this.b={}};
f.Ct=function(a){if(!(this.Jj&&1E3>v()-this.Jj)){var b=parseInt(this.Z(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),M(b));var b=t(function(){qF(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(this.Z(a,"tooltip-show-delay"),10)||0,b=L(b,c);ug(a,"tooltip-show-timer",b.toString());a.title&&(oF(a,rF(this,a)),a.title="");b=la(a).toString();this.b[b]=a}};
f.Kj=function(a){var b=parseInt(this.Z(a,"tooltip-show-timer"),10);b&&(M(b),this.removeData(a,"tooltip-show-timer"));b=t(function(){sF(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=L(b,50);ug(a,"tooltip-hide-timer",b.toString());if(b=this.Z(a,"tooltip-text"))a.title=b;b=la(a).toString();delete this.b[b]};f.cE=function(a,b,c){this.Jj=0;a=jF(b,Z(this),c.changedTouches[0].target);this.Ct(a)};f.Et=function(a,b,c){this.Jj=v();a=jF(b,Z(this),c.changedTouches[0].target);this.Kj(a)};
function tF(a,b,c){oF(b,c);a=a.Z(b,"content-id");if(a=Nc(a))a.innerHTML=c}function rF(a,b){return a.Z(b,"tooltip-text")||b.title}
function qF(a,b){if(b){var c=rF(a,b);if(c){var d=Nc(uF(a,b));if(!d){d=document.createElement("div");d.id=uF(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=vF(a,b),l=uF(a,b,"content");h.id=l;ug(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Yg()||document.body).appendChild(d);
tF(a,b,c);(c=parseInt(a.Z(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",N(h,Z(a,"normal-wrap")));h=qg(b,Z(a,"reverse"));wF(a,b,d,e,k,h)||wF(a,b,d,e,k,!h);var p=Z(a,"tip-visible");L(function(){N(d,p)},0)}}}}
function wF(a,b,c,d,e,g){P(c,Z(a,"tip-reverse"),g);var h=0;g&&(h=1);var k=bg(b);g=new E((k.width-10)/2,g?k.height:0);var l=Sf(b);gF(new E(l.x+g.x,l.y+g.y),c,h);var l=Sc(window),p=Wf(c);c=bg(d);var s=Math.floor(c.width/2),h=!!(l.height<p.y+k.height),k=!!(p.y<k.height);g=!!(p.x<s);l=!!(l.width<p.x+s);p=(c.width+3)/-2- -5;a=a.Z(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 sF(a,b){if(b){var c=Nc(uF(a,b));c&&(xF(c),fd(c),a.removeData(b,"content-id"))}}function uF(a,b,c){a=Z(a)+Ag(b);c&&(a+="-"+c);return a}function vF(a,b){var c=null;lc&&qg(b,Z(a,"masked"))&&((c=Nc("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),Nx(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=Z(a,"tip-mask")));return c}
function xF(a){var b=Nc("yt-uix-tooltip-shared-mask"),c=b&&ud(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),Ox(b),document.body.appendChild(b))};function yF(a,b){sg(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&N(a,b);sF(pF.getInstance(),a)};function zF(a){VA.call(this);this.j=null;this.g=new pC(a,t(this.k,this),t(this.B,this));R(this,this.g);this.b=Y(0,"YTP_AUDIO_TRACK_TITLE");this.element=new iC(a,void 0,this.g);R(this,this.element);kC(this.element,100);this.priority=0;this.o=!0}w(zF,VA);function AF(a,b){a.j!=b&&(a.j=b,sC(a.g,b),a.element.k(a.k(b)))}zF.prototype.k=function(a){return a.name};zF.prototype.B=function(a){this.element.j();AF(this,a);this.element.wb("change")};function BF(a){this.cb=a;this.df=0;this.Ka=new cw(this);CF(this,"focusin","focusout",1,this.cb);CF(this,"mouseover","mouseout",2,this.cb);CF(this,"mousedown","mouseup",4,document)}function CF(a,b,c,d,e){function g(){this.df|=d;P(this.cb,"ytp-block-autohide",!!this.df);this.Ka.Fa(h);h=this.Ka.listen(e,c,k)}var h,k;k=function(){this.df&=~d;P(this.cb,"ytp-block-autohide",!!this.df);this.Ka.Fa(h);h=this.Ka.listen(this.cb,b,g)};h=a.Ka.listen(a.cb,b,g)}
BF.prototype.J=function(){this.df&&O(this.cb,"ytp-block-autohide");this.Ka.removeAll();BF.G.J.call(this)};function DF(a,b){JE.call(this,b);this.D=a;this.videoId=null}w(DF,JE);
DF.prototype.Cf=function(a,b){this.videoId=a?a.id||a.video_id:"";P(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=EB(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:this.videoId,b?"hqdefault.jpg":"mqdefault.jpg");var d=bc(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=Ov(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 EF(a){var b=["div","ytp-autonav-widget",["img","ytp-autonav-widget-thumbnail",{src:"{{image}}"}],["div","ytp-autonav-widget-info",["div","ytp-autonav-widget-header",Y(0,"YTP_AUTOPLAY")],["div","ytp-autonav-widget-next-video-in","{{next-video-in}}"]],["div","ytp-autonav-widget-divider"],["div","ytp-autonav-widget-cancel",Y(0,"YTP_CANCEL")]];DF.call(this,a,b);bz(this,this.template.b["ytp-autonav-widget-thumbnail"],"click",this.b,this);bz(this,this.template.b["ytp-autonav-widget-cancel"],"click",
this.g,this)}w(EF,DF);EF.prototype.g=function(a){a.stopPropagation();this.H("autonavcancel",a)};EF.prototype.b=function(a){a.stopPropagation();this.H("nextvideo",a)};function FF(a){WA.call(this,a);ZA(this,6900);GF(this)}w(FF,WA);function GF(a){XA(a,"ytp-button-fullscreen-enter");var b=Y(0,"YTP_FULLSCREEN");YA(a,b);a.g=b};function HF(a,b){W.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(HF,W);HF.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}}xb(this.b,b,0,a);IF(this)};HF.prototype.remove=function(a){rb(this.b,a);IF(this)};
function IF(a){Oh(a.g);a.g=[];var b,c,d=[],e=1==a.b.length||a.j;e&&a.b.length&&(c=new W(["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 W(["div","ytp-menu-row",["div",h,"{{content}}"]]):new W(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.o?new W(["div","ytp-menu-row",
["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div",h,"{{content}}"]]):new W(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.na(k.element);c.na(JF(a,k),"more");d.push(c)}a.na(d)}function JF(a,b){if(b.C){var c=Y(0,"YTP_OPTIONS"),d=new WA(a.k,"ytp-menu-more-options",c);ZA(d,2700);d.na(c);a.g.push(d);d.listen("click",b.M,b);return d}return null}HF.prototype.J=function(){this.b=[];IF(this);HF.G.J.call(this)};function KF(a){WA.call(this,a);ZA(this,6E3);LF(this)}w(KF,WA);function LF(a){XA(a,"ytp-button-play");var b=Y(0,"YTP_PLAY");YA(a,b)};function OF(a){W.call(this,["div","ytp-playlist-controls","{{content}}"]);this.g=new WA(a,"ytp-button-prev",Y(0,"YTP_PREVIOUS"),Y(0,"YTP_PREVIOUS"));R(this,this.g);ZA(this.g,6050);this.b=new WA(a,"ytp-button-next",Y(0,"YTP_NEXT"),Y(0,"YTP_NEXT"));R(this,this.b);ZA(this.b,6051);this.na([this.g,this.b])}w(OF,W);function PF(a,b){cj.call(this);this.g=!!b;this.cb=a;this.Ka=new cw(this);this.b=this.j=null;QF(this)}w(PF,cj);function QF(a){a.b=null;a.j=null;a.Ka.listen(a.cb,RF("over"),a.DB);a.Ka.listen(a.cb,"touchstart",a.EB)}f=PF.prototype;f.DB=function(a){this.Ka.removeAll();this.Ka.listen(this.cb,RF("move"),this.Gs);this.Ka.listen(this.cb,RF("out"),this.Hs);this.g&&this.Ka.listen(this.cb,RF("down"),this.Fs);this.H("hoverstart",Lg(a),Mg(a),a.target);this.H("hovermove",Lg(a),Mg(a),a.target)};
f.Gs=function(a){this.b&&Lg(this.b)==Lg(a)&&Mg(this.b)==Mg(a)&&this.b.relatedTarget==a.target||this.H("hovermove",Lg(a),Mg(a),a.target);this.b=null};f.Hs=function(a){a.relatedTarget&&ld(this.cb,a.relatedTarget)?(this.b=a,this.H("hovermove",Lg(a),Mg(a),a.relatedTarget)):(this.Ka.removeAll(),QF(this),this.H("hoverend",Lg(a),Mg(a),a.relatedTarget))};
f.Fs=function(a){ia(a.button)&&0!=a.button||(a.preventDefault(),this.Ka.removeAll(),this.Ka.listen(document,RF("move"),this.tD),this.Ka.listen(document,RF("up"),this.uD),this.H("dragstart",Lg(a),Mg(a),a.target),this.H("dragmove",Lg(a),Mg(a),a.target))};f.tD=function(a){this.H("hovermove",Lg(a),Mg(a),a.target);this.H("dragmove",Lg(a),Mg(a),a.target)};
f.uD=function(a){this.Ka.removeAll();a.target&&ld(this.cb,a.target)?(this.Ka.listen(this.cb,RF("move"),this.Gs),this.Ka.listen(this.cb,RF("out"),this.Hs),this.Ka.listen(this.cb,RF("down"),this.Fs),this.H("dragend",Lg(a),Mg(a),a.target)):(QF(this),this.H("dragend",Lg(a),Mg(a),a.target),this.H("hoverend",Lg(a),Mg(a),a.target))};
f.EB=function(a){var b=a.changedTouches[0];b&&(this.Ka.removeAll(),this.Ka.listen(this.cb,"touchmove",this.XB),this.Ka.listen(this.cb,"touchend",this.gs),this.Ka.listen(this.cb,"touchcancel",this.gs),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.XB=function(a){var b=SF(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.gs=function(a){var b=SF(this,a);b&&(a.preventDefault(),this.Ka.removeAll(),QF(this),this.g&&this.H("dragend",b.pageX,b.pageY,a.target),this.H("hoverend",b.pageX,b.pageY,a.target))};function SF(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 RF(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.J=function(){this.Ka.removeAll();PF.G.J.call(this)};function TF(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}TF.prototype.clone=function(){return new TF(this.b,this.B,this.j,this.o,this.k,this.A,this.g,this.C)};TF.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 UF(a,b){if(0==b)return a.b;if(1==b)return a.g;var c=Kb(a.b,a.j,b),d=Kb(a.j,a.k,b),e=Kb(a.k,a.g,b),c=Kb(c,d,b),d=Kb(d,e,b);return Kb(c,d,b)}
function VF(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=UF(a,c),k=(UF(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=UF(a,c);return c};var WF=new function(){this.b=new TF(0,0,0,0,.58,1,1,1)};function XF(a,b){this.g=a;this.b=b}function YF(a){return a.b-a.g}function ZF(a,b){return a.g+b*YF(a)}function $F(a,b){return YF(a)?Jb((b-a.g)/YF(a),0,1):Infinity};function aG(a,b,c,d){var e=Math.min(c/(b.Jq/b.gj),d/(b.Iq/b.rows)),g=b.Jq*e,e=b.Iq*e,g=Math.floor(g/b.gj)*b.gj,e=Math.floor(e/b.rows)*b.rows,h=g/b.gj,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.hz*h*-1;var s=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 "+s+"px";a.backgroundSize=g+"px "+e+"px"};function bG(a){JE.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 Tk(this.sv,250,this);R(this,this.o);this.Yd=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"];fd(this.j);this.g=0;this.k=new XF(0,0)}w(bG,JE);f=bG.prototype;f.yq=!1;f.Yd=0;f.Pl=0;f.bl=0;f.ar=10;f.Ub=0;f.Zi=0;f.Fm=0;f.Cc=null;f.Ke=null;f.disable=function(){this.yq=!0};
f.My=function(){for(var a=this.b.cloneNode(!0),b=this.Cc.b[0].g,c,d,e=0;e<b;e++)d=this.j.cloneNode(!1),c=$q(this.Ke,e,this.Ub),aG(d,c,this.Ub,this.Zi),a.appendChild(d);gd(a,this.b);this.b=a};f.gq=function(a,b){fg(this.b,!1);for(var c,d,e=a;e<=b;e++)if(d=this.b.children[e])c=$q(this.Ke,e,this.Ub),aG(d,c,this.Ub,this.Zi);fg(this.b,!0)};function cG(a,b){if(b!=a.Fm){var c=$q(a.Ke,b,2*a.Ub),d=Math.round(2*a.Ub),e=Math.round(2*a.Zi);aG(a.C,c,d,e);a.Fm=b}}
f.sv=function(){for(var a=this.Pl,b=Math.max(Math.floor(a/this.Ub),0),a=Math.min(Math.ceil((a+this.Yd)/this.Ub),this.Cc.b[0].g-1);b<=a;b++){for(var c=this.Ke,d=b,e=aq(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,Xq(g.j,k,{Tp:k,Up:h}))}ar(c)}};
function dG(a,b){a.ar=Math.min(10,Math.ceil(a.Yd/72));a.Ub=Math.floor(a.Yd/a.ar);a.Zi=.555*a.Ub;a.bl=a.Ub*a.Cc.b[0].g;Yf(a.b,a.bl);var c=Math.round(2*a.Ub),d=.555*c+12;Xf(a.A,c,d);Mf(a.A,(a.Yd-c)/2);c=d+20;a.K().style.height=Nf(c,!0);b&&(a.gq(0,a.Cc.b[0].g-1),cG(a,a.Fm),a.B=!0)}f.show=function(){this.Cc&&bG.G.show.call(this)};f.J=function(){this.Ke=this.Cc=null;rz(this.g);bG.G.J.call(this)};function eG(a,b,c,d){this.width=b;this.g=c;this.o=d;this.b=b-c-d;this.k=Jb(a-c,0,this.b);this.position=this.k+c;this.j=this.k/this.b};function fG(){W.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 XF(0,0);this.hide()}w(fG,W);
f=fG.prototype;f.dj=!1;f.Qf=null;f.Yg=null;f.disable=function(){this.dj=!0};f.show=function(){this.dj||fG.G.show.call(this)};f.reset=function(){O(this.K(),"with-thumbnail");this.Yg=this.Qf=null};f.Ny=function(a,b){(a<=this.b||this.b<=b)&&gG(this)};function gG(a){var b=$q(a.Yg,a.b,108);aG(a.template.b["ytp-progress-tooltip-thumbnail"],b,108,60)}f.J=function(){this.j=this.Yg=this.Qf=null;fG.G.J.call(this)};function hG(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"}]];JE.call(this,c);this.k=a.qd().width;this.C=1;this.M=this.U=this.A=
this.jb=this.I=0;this.wa=this.template.b["html5-ad-progress-list"];this.dc=this.template.b["ytp-marker-progress-list"];this.gb=this.template.b["ytp-marker-crenellation-list"];this.F={};this.V={};this.N=Infinity;this.la=this.template.b["ytp-clip-end"];this.ya=new PF(this.la,!0);R(this,this.ya);this.ya.subscribe("hoverstart",this.zo,this);this.ya.subscribe("hoverend",this.yo,this);bz(this,this.la,"click",this.rk);this.xa=this.template.b["ytp-clip-end-exclude"];this.eb=this.template.b["ytp-clip-start-exclude"];
this.O=0;this.oa=this.template.b["ytp-clip-start"];this.za=new PF(this.oa,!0);R(this,this.za);this.za.subscribe("hoverstart",this.zo,this);this.za.subscribe("hoverend",this.yo,this);bz(this,this.oa,"click",this.rk);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.od=new BF(this.K());R(this,this.od);this.hb=this.template.b["html5-progress-screenreader"];
this.g=null;this.ra=this.template.b["html5-scrubber-button"];this.pd=this.template.b["ytp-scrubber-pull-indicator"];this.mb=0;this.Ca=!1;this.Ia=new E;this.b=new XF(0,0);this.xb=!1;this.ca=b;iG(this)}w(hG,JE);f=hG.prototype;f.Py=function(){this.g&&this.g.show()};f.Ry=function(a,b,c){var d=Sf(this.K()),e=jG(this).b,g=c?c.getAttribute("data-tooltip"):null;g&&(a=$F(this.b,Number(c.getAttribute("data-position")))*e+Sf(this.L).x);this.Ia.x=a-d.x;this.Ia.y=b-d.y;g?kG(this,g):kG(this)};
function kG(a,b){if(a.g){var c=a.xb?a.b.b:0,d=jG(a),e=a.g;if(!e.dj){var g=50;e.Qf?(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 eG(d.position,d.width,g,g)).position-g;e.K().style.left=g+"px";e.j.style.left=Jb(d.position,0,d.width)-g-5+"px";c=Ov(ZF(e.g,d.j)-c);e.na(c,"timestamp");e.Qf&&(d=$p(e.Qf,d.j),d!=e.b&&(e.b=d,gG(e)));b?(N(e.K(),"with-text"),e.na(b,"text")):O(e.K(),"with-text")}}}f.Qy=function(){this.g&&this.g.hide()};
f.Oy=function(a,b){var c=lG(this);this.mb=c.g-jG(this).j*(c.g+c.o);this.g&&this.j&&(this.g.hide(),this.j.show());this.A&&(We(this.A),this.A=0);this.jb=b;this.Ca=!0;this.H("beginseeking")};f.Sy=function(){this.U=0;O(this.K(),"ytp-pull-ui");O(this.K(),"ytp-pulling");if(0<this.I){var a=v(),b=this.I,c=jG(this).position;this.A&&We(this.A);this.A=az(t(this.Po,this,a,b,c),0)}this.g&&this.j&&(this.g.show(),this.j.hide());this.Ca=!1;this.H("endseeking")};
f.Po=function(a,b,c){var d,e=(v()-a)/200;d=WF.b;e=VF(d,e);if(0==e)d=d.B;else if(1==e)d=d.C;else{var g=Kb(d.B,d.o,e),h=Kb(d.o,d.A,e);d=Kb(d.A,d.C,e);g=Kb(g,h,e);h=Kb(h,d,e);d=Kb(g,h,e)}e=c+d*(this.B*this.k-c);if(0>d||1<d)d=1;mG(this,(1-d)*b,e,this.B);this.A=1>d?az(t(this.Po,this,a,b,c),0):0};function mG(a,b,c,d){b=Jb(b,0,40);a.I=b;var e=a.C,g=Math.max(YF(a.b)/a.k,1);a.C=b/40*(g-1)+1;b=a.k*a.C;a.M=Jb(d*b-c,0,b-a.k);e!=a.C&&iG(a)}
f.Ty=function(a,b){var c=!1,d=!1,e=jG(this);3600<=YF(this.b)&&(mG(this,this.jb-b-10,e.position,e.j),d=!0,c=4<this.I,e=jG(this));P(this.K(),"ytp-pull-ui",d);c&&N(this.K(),"ytp-pulling");c=0;e.g&&0>=e.position?c=-1:e.o&&e.position>=e.width&&(c=1);!this.A||c&&c==this.U||M(this.A);c&&(this.A=az(t(this.fp,this,v(),this.M),0));this.U=c;this.H("seekto",ZF(this.b,e.j),!1)};
f.fp=function(a,b){if(this.U){var c=this.k*(this.C-1);this.M=Jb(b+this.U*(v()-a)*.3,0,c);iG(this);this.H("seekto",ZF(this.b,jG(this).j),!1);0<this.M&&this.M<c&&(this.A=az(t(this.fp,this,a,b),0))}};
function iG(a){var b=jG(a),c=hd(a.gb),d=0;if(8<a.I)for(var e=(-b.g+b.width)/b.b*(YF(a.b)/60),g=Math.ceil(-b.g/b.b*(YF(a.b)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),h.style.width="1px",a.gb.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/YF(a.b)*b.b+"px"}for(e=c.length-1;e>=d;e--)fd(c[e]);c=(-b.g+b.width)/b.b;a.na(Ov(ZF(a.b,-b.g/b.b)),"boundTimeLeft");a.na(Ov(ZF(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;Rx(a.L,"transform",b?"translatex("+b+"px)":"");a.ra.style.height=a.I+(a.ca?12:6)+"px";for(var k in a.F)nG(a,a.F[k],a.V[k]);oG(a);pG(a,a.B,a.D)}function jG(a){var b=a.Ia.x;if(a.Ca)var c=a.ca?32:16,b=(b+a.mb-c/2)/(a.k-c)*a.k;c=a.k*a.C;b=Jb(b,0,a.k);return new eG(b,a.k,-a.M,-(c-a.M-a.k))}function lG(a){var b=a.ca?32:16,c=a.k*a.C;return new eG(a.B*(c-b)+b/2,c,b/2,b/2)}
function pG(a,b,c){if(b<a.O||b>a.N)a.rk();else{a.B=b;a.D=Math.max(a.B,c);var d=$F(a.b,a.O),e=$F(a.b,a.N),g=Jb(b,d,e);c=Jb(c,d,e);var h=g;g<e&&(h=a.k*a.C,h=(g*h-g)/h);a.Wa.style.left=Pv(d)+"%";Rx(a.Wa,"transform","scalex("+(h-d)+")");Rx(a.ra,"transformOrigin",Pv(b)+"%");b=lG(a).position+"px";a.ra.style.left=b;a.pd.style.left=b;a.Ha.style.left=Pv(d)+"%";Rx(a.Ha,"transform","scalex("+(c-d)+")");a.Ra.style.left=Pv(d)+"%";Rx(a.Ra,"transform","scalex("+(e-d)+")")}}
function oG(a){var b=a.O>a.b.g,c=0<a.b.b&&a.N<a.b.b;P(a.K(),"ytp-clip-start-enabled",b);P(a.K(),"ytp-clip-end-enabled",c);b=b?$F(a.b,a.O):0;c=c?$F(a.b,a.N):1;a.oa.style.left=Pv(b)+"%";a.la.style.left=Pv(c)+"%";a.eb.style.width=Pv(b)+"%";a.xa.style.left=Pv(c)+"%";a.xa.style.width=Pv(1-c)+"%"}f.zo=function(){N(this.K(),"ytp-clip-hover")};f.yo=function(){O(this.K(),"ytp-clip-hover")};f.rk=function(){this.O=0;this.N=Infinity;oG(this);pG(this,this.B,this.D)};
function nG(a,b,c){var d=jG(a).b,e=$F(a.b,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=gu(b);var g=a/2,d=Jb(e,g,d-g)-g;break;default:a=Math.min(Math.min($F(a.b,b.end/1E3)*d,d)-e,gu(b)),d=Jb(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function qG(a,b){z(b,function(a){if(a.$d){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;nG(this,a,e);"ytp-chapter-marker"==a.style?this.dc.appendChild(e):this.wa.appendChild(e)}}else rG(this,a)},a)}function sG(a,b){z(b,function(a){rG(this,a)},a)}function rG(a,b){var c=b.getId();a.F[c]==b&&(fd(a.V[c]),delete a.F[c],delete a.V[c])}
function tG(a,b){var c=a.L;O(c,"spacecast-cached");b&&L(function(){N(c,"spacecast-cached")},100)}f.J=function(){this.A&&(M(this.A),this.A=0);this.o&&(this.o.dispose(),this.o=null);this.Ha=this.oa=this.eb=this.la=this.xa=this.wa=null;this.V={};this.Ra=this.ra=this.hb=this.L=this.Wa=null;this.ca=!1;hG.G.J.call(this)};function uG(a){VA.call(this);this.B=this.k="unknown";this.b=Y(0,"YTP_QUALITY_TITLE");this.j=new pC(a,t(this.D,this),t(this.F,this),!0);R(this,this.j);this.g=NaN;this.element=new iC(a,void 0,this.j);R(this,this.element);kC(this.element,100);this.priority=-1;this.o=!0}w(uG,VA);uG.prototype.Tn=function(){return this.k};
function vG(a,b,c){if(a.k!=b||a.B!=c){a.k=b;a.B=c;sC(a.j,c);var d=a.j;null!=d.b&&oC(rC(d,d.b),!1);null!=b&&oC(rC(d,b),!0);d.b=b;"auto"==c&&c!=b?(b=Y(0,"YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:wG(b)}),b=new LE(b)):b=a.D(b);isNaN(a.g)||(oz()?rz(a.g):M(a.g));oz()?a.g=qz(t(a.element.k,a.element,b),0):a.g=L(t(a.element.k,a.element,b),0)}}
function wG(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 Ze("YTP_AUTO")}return""}uG.prototype.D=function(a){var b=["span","",wG(a)];"highres"==a?(b.push(" "),b.push(["sup","","4K"])):0==a.indexOf("hd")&&(b.push(" "),b.push(["sup","","HD"]));return new Hv(b)};
uG.prototype.F=function(a){this.element.j();this.element.wb("blur");if("auto"!=this.B||"auto"!=a)vG(this,a,a),this.element.wb("change")};uG.prototype.J=function(){oz()?rz(this.g):M(this.g);uG.G.J.call(this)};function xG(a){VC.call(this,a,"ytp-settings-button",Y(0,"YTP_SETTINGS"),"ytp-settings-button-active");ZA(this,6600);this.j=new W(["div","{{content}}"]);R(this,this.j);this.na(this.j);yG(this,"")}w(xG,VC);function yG(a,b){"highres"==b?a.j.na("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.j.na("ytp-settings-hd-quality-badge"):a.j.na("")};function zG(a){VC.call(this,a,"ytp-size-toggle-large",Y(0,"YTP_THEATER_MODE"),"ytp-size-toggle-small",Y(0,"YTP_DEFAULT_VIEW"));ZA(this,6800)}w(zG,VC);function AG(a){VA.call(this);this.j=1;this.b=Y(0,"YTP_SPEED_TITLE");this.g=new pC(a,t(this.k,this),t(this.B,this));R(this,this.g);this.element=new iC(a,void 0,this.g);R(this,this.element);kC(this.element,100);BG(this,this.j);this.priority=1;this.o=!0}w(AG,VA);function BG(a,b){a.j=b;sC(a.g,b);a.element.k(a.k(b))}AG.prototype.k=function(a){return 1==a?Y(0,"YTP_NORMAL_SPEED"):a.toString()};AG.prototype.B=function(a){this.element.j();BG(this,a);this.element.wb("change")};function CG(){W.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(CG,W);CG.prototype.wf=function(a){Mv(this.template,"duration",Ov(a))};function DG(a,b,c){P(a.element,"ytp-time-liveonly",b&&!c);P(a.element,"ytp-time-live",b&&c)}CG.prototype.J=function(){this.b=null;CG.G.J.call(this)};function EG(a){this.C=a;W.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 WA(this.C,"ytp-button-volume",Y(0,"YTP_BUTTON_VOLUME"));R(this,this.b);this.b.W(this.element,0);ZA(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 BF(this.A);R(this,this.B)}w(EG,W);function FG(a){a.j||(a.j=a.g.clientWidth);return a.j}
EG.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");YA(this.b,e);Mv(this.template,"valuenow",c);Mv(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");ug(this.b.K(),"value",c);
c=FG(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 GG(a,b){cj.call(this);this.rb=a;this.jk=new cw(this);this.Pu=b;this.Vc=null;this.b={};this.g={};this.k=this.j=this.Pd=this.Ac=this.Td=null;this.o=new cw(this);this.Go=this.gc=null;this.B=-1;this.A=null;this.C=!1;this.uf=new W(["div","ytp-video-controls-clickguard"]);this.uf.hide();R(this,this.uf)}w(GG,cj);f=GG.prototype;f.Bc=null;f.Ec=null;f.Ee=null;f.vi=null;f.ni=null;f.Km=!1;f.$c=null;f.disable=function(a){HG(this,a,!0)};f.enable=function(a){HG(this,a,!1)};
function HG(a,b,c){for(var d=0;d<b.length;d++)switch(b[d]){case "audio":P(a.Bc,"disabled-control-audio",c);break;case "play_pause":var e=a.Ec;c?e.disable():e.enable();break;case "seek":P(a.Bc,"disabled-control-seek",c)}}f.setVolume=function(a,b){if(this.B!=a||this.A!=b)this.Zc.setVolume(a,b),this.B=a,this.A=b};f.wf=function(a){this.bd.wf(a)};f.gx=function(){this.H("mutetoggled")};
function IG(a,b){if(b){if(a.Km){var c=a.Ec;XA(c,"ytp-button-stop");var d=Y(0,"YTP_STOP")}else c=a.Ec,XA(c,"ytp-button-pause"),d=Y(0,"YTP_PAUSE");YA(c,d)}else LF(a.Ec)}f.fx=function(){this.H("playpausetoggled")};f.$w=function(a){a=(a-Sf(this.Zc.g).x)/FG(this.Zc)*100;a={volume:Jb(a,0,100),muted:!1};this.H("volumechanged",a)};f.Zw=function(){this.H("fullscreentoggled")};function JG(a,b){var c=a.g[b.A||"__default__"];c&&c.add(b)}function KG(a,b){var c=a.g[b.A||"__default__"];c&&c.remove(b)}
function LG(a,b,c,d){if(!a.b[b]){a.b[b]=c;if("remote"==b)ed(kd(a.Vc.K()),c.K(),0);else{var e=c.K();d=d||a.Vc.K();d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling)}c.listen("click",qa(a.zA,b),a,"menuButtonClick");c=new HF(a.rb,"__default__"!=b);R(a,c);c.hide();c.W(a.Bc);a.g[b]=c}}f.ax=function(){var a=this.Bb.K();if(!qg(a,"html5-async-progress")){var b=qg(a,"html5-async-success");yF(a,"html5-async-progress");this.H("watchlater",b)}};f.bx=function(){this.H("watchonyoutube")};
function MG(a,b,c){a.Ud();a.H("showdialog");var d=a.rb.qd();Xf(a.uf.K(),d);a.uf.show();c&&(a.k=c,XC(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&&(YC(this.k),this.k=null);this.uf.hide()};f.zA=function(a,b){b.stopPropagation();var c=this.b[a];c&&(c.b?this.Ud():MG(this,this.g[a],c))};f.Uw=function(){this.H("audiotrackchanged",this.Td.j)};
f.Ww=function(){var a=this.Ac.Tn();this.H("qualitychanged",a);this.H("controlclick","quality-"+a)};f.Vw=function(){this.Ud()};f.Xw=function(){var a=this.gc;a.b?YC(a):XC(a);this.H("sizechangerequested",1==this.gc.b)};f.Yw=function(){var a=this.Pd.j;this.H("speedchanged",a);this.H("controlclick","speed-"+a)};
f.By=function(a){var b=a.target;a=b==this.Ec.K()?"playpause":b==this.Zc?"volume":b==this.bd?"time":b==this.Vc?"settings":b==this.Bb?"watchlater":b==this.$c?"youtube":b==this.Zd.K()?"fullscreen":b==this.gc?"size":a.target.className;this.H("controlclick",a)};
f.J=function(){this.Jo.dispose();this.jk.removeAll();this.o.removeAll();this.Ud();this.Bb=this.$c=this.ni=this.Zc=this.Bc=null;for(var a in this.b){var b=this.b[a];b&&(b.ad(),cz(b,"menuButtonClick"))}this.b={};this.g={};this.gc=this.Vc=this.Pd=this.Ac=null;this.C||(this.B=-1,this.A=null);GG.G.J.call(this)};function NG(a){Ji("/playlist_video_ajax?action_add_to_watch_later_list=1",{method:"POST",Ih:{privacy:a.privacy||null,feature:a.fF||null,authuser:a.Ta||null,pageid:a.$a||null},ed:{video_ids:a.Va,src_playlist_id:a.iF,full_list_id:a.gF||null,new_playlist_name:a.hF||null,plid:Te("PLAYBACK_ID")||null},context:a.context,onError:a.onError,onSuccess:a.onSuccess,vb:a.vb})}
function OG(a){Ji("/playlist_video_ajax?action_delete_from_watch_later_list=1",{method:"POST",ed:{video_ids:a.Va,session_token:Te("XSRF_TOKEN")},context:a.context,onError:a.onError,onSuccess:a.onSuccess,vb:a.vb})};function PG(a,b){this.C=a;this.k=[];this.D=b;this.o=[]}w(PG,Kh);function QG(a,b,c){a.k.push(a.C.subscribe(b,c,a))}function RG(a,b,c){a.o.push(a.D.subscribe(b,c,a))}function SG(a){for(var b=0;b<a.k.length;b++)a.C.Ib(a.k[b]);for(b=0;b<a.o.length;b++)a.D.Ib(a.o[b])}PG.prototype.J=function(){SG(this);PG.G.J.call(this)};function TG(a,b){PG.call(this,a,b);QG(this,"videodatachange",this.I);QG(this,"presentingplayerstatechange",this.F);QG(this,"progresssync",this.M);this.b=a;this.g=b;this.B=!1;this.A=0;this.j=Infinity}w(TG,PG);function UG(a){a.b.b.b.A&&a.B&&5>a.j-a.A&&a.b.getVideoData().Mi?a.g.show():a.g.hide()}TG.prototype.F=function(a){this.B=V(a.state,8)&&!(V(a.state,16)||V(a.state,32)||V(a.state,2));UG(this)};
TG.prototype.M=function(a){var b=this.b.zb.Gf();this.j=Math.min(b.duration,b.clipEnd);this.A=n(a)?a:b.current;a=Math.max(0,Math.ceil(this.j-this.A));Mv(this.g.template,"next-video-in",Y(0,"YTP_NEXT_VIDEO_IN",{TIME_LEFT:a}));UG(this)};TG.prototype.I=function(a,b){b&&Us(this.b)&&1==Us(this.b).getPlayerType()&&(this.g.Cf(b&&b.C&&b.C.length?b.C[0]:null),UG(this))};function VG(a,b){PG.call(this,a,b);this.j=!1;this.g=a;this.b=b;var c=a.R();c.color&&N(this.b.L,c.color);c.cj&&(c=this.b,c.g=new fG,c.g.W(c.K()),R(c,c.g),c.j=new bG(c.k),c.j.hide(),c.j.W(c.K(),0),R(c,c.j));WG(this)}w(VG,PG);
function WG(a){SG(a);a.j=!0;QG(a,"cuerangesadded",a.TC);QG(a,"cuerangesremoved",a.UC);QG(a,"cuerangemarkersupdated",a.SC);QG(a,"presentingplayerstatechange",a.YC);QG(a,"progresssync",a.Gq);QG(a,"resize",a.WC);QG(a,"seekto",a.ZC);QG(a,"videodatachange",a.$C);QG(a,"videoplayerreset",a.Fq);QG(a,"videoready",a.XC);RG(a,"beginseeking",a.RC);RG(a,"endseeking",a.VC);RG(a,"seekto",a.QC)}f=VG.prototype;f.TC=function(a){qG(this.b,a)};f.UC=function(a){sG(this.b,a)};f.SC=function(a){qG(this.b,a)};
f.WC=function(a){var b=this.b;b.k=a.width;iG(b);b.j&&(b=b.j,a=a.width,!b.Cc||b.Yd==a&&b.B||(b.Yd=a,dG(b,!0)))};f.ZC=function(a){var b=this.g.zb.Gf();a=$F(new XF(b.seekableStart,b.seekableEnd),a);b=this.b;pG(b,n(a)?a:b.B,n(void 0)?void 0:b.D);if(this.b.j&&(b=this.b.j,b.Cc)){b.Pl=b.bl*a-b.Yd/2;Mf(b.b,-1*b.Pl);var c=$p(b.Cc,a);cG(b,c);a=ZF(b.k,a);nd(b.D,Ov(a));Uk(b.o)}};
f.YC=function(a){if(0>Zv(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.Fq=function(a){if(1!=a.getPlayerType()){if(!this.j)return;SG(this);this.j=!1;QG(this,"videoplayerreset",this.Fq)}else if(!this.j){WG(this);var b=this.b;dd(b.wa);b.F={};b.V={};qG(this.b,a.A.j||[]);this.b.g&&this.b.g.reset()}this.Gq()};
f.$C=function(a,b){var c=new XF(0,b.Oa),d=this.b;d.b=c;iG(d);this.b.g&&(this.b.g.g=c);this.b.j&&(this.b.j.k=c);c=this.b;c.O=b.clipStart;oG(c);pG(c,c.B,c.D);c=this.b;c.N=b.clipEnd;oG(c);pG(c,c.B,c.D);tG(this.b,!!b.da)};
f.XC=function(a){if(this.b.g){var b=this.b.g;if(!b.dj)if(es(a)){N(b.K(),"with-thumbnail");b.Qf=es(a);b.Yg=fs(a);var c=t(b.Ny,b);b.Yg.subscribe("l",c)}else b.reset()}this.b.j&&(b=this.b.j,b.j&&dd(b.b),O(b.K(),"enabled"),rz(b.g),b.Cc=es(a),b.Ke=fs(a),b.Cc&&!b.yq&&(N(b.K(),"enabled"),c=t(b.gq,b),b.Ke.subscribe("l",c),dG(b),rz(b.g),b.g=qz(t(b.My,b))));this.b.xb=a.nb?!0:!1;ks(a)?(a=this.b,a.o&&(a.o.dispose(),a.o=null)):(a=this.b,a.o||(a.o=new PF(a.L,!0),a.o.subscribe("hoverstart",a.Py,a),a.o.subscribe("hovermove",
a.Ry,a),a.o.subscribe("hoverend",a.Qy,a),a.o.subscribe("dragstart",a.Oy,a),a.o.subscribe("dragmove",a.Ty,a),a.o.subscribe("dragend",a.Sy,a)))};f.Gq=function(a,b){var c=this.g.zb.Gf(),d=n(a)?a:c.current,e=new XF(c.seekableStart,n(b)?b:c.seekableEnd),c=$F(e,c.loaded),d=$F(e,d),g=this.b;g.b=e;iG(g);g=this.b;pG(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.RC=function(){XG(this.g.j)};f.VC=function(){this.g.j.Li()};f.QC=function(a,b){Js(this.g,a,b)};f.J=function(){VG.G.J.call(this)};function YG(a,b){PG.call(this,a,b);QG(this,"applicationplayerstatechange",this.Yx);QG(this,"controlsdisabled",this.ay);QG(this,"controlsenabled",this.by);QG(this,"liveviewshift",this.gy);QG(this,"fullscreentoggled",this.fy);QG(this,"presentingplayerstatechange",this.Ey);QG(this,"progresssync",this.Iy);QG(this,"threedenabled",this.wy);QG(this,"videoplayerreset",this.Hy);QG(this,"videodatachange",this.Gy);QG(this,"onPlaybackQualityChange",this.ry);QG(this,"onVolumeChange",this.xy);QG(this,"menu_button_add",
this.hy);QG(this,"menu_button_remove",this.iy);QG(this,"menu_item_add",this.jy);QG(this,"menu_item_remove",this.ky);QG(this,"menu_show",this.ly);RG(this,"fullscreentoggled",this.ey);RG(this,"mutetoggled",this.my);RG(this,"nextvideo",this.ny);RG(this,"playpausetoggled",this.oy);RG(this,"previousvideo",this.qy);RG(this,"qualitychanged",this.ty);RG(this,"audiotrackchanged",this.Zx);RG(this,"seekto",this.Fy);RG(this,"sizechangerequested",this.uy);RG(this,"speedchanged",this.vy);RG(this,"volumechanged",
this.yy);RG(this,"watchlater",this.zy);RG(this,"watchonyoutube",this.Ay);RG(this,"controlclick",this.$x);RG(this,"showdialog",this.Cy);this.b=a;this.g=b;this.A=new VG(a,b.vi);R(this,this.A);this.j=new TG(a,b.ep);R(this,this.j);var c=a.R();if(c.qc){var d=this.g;this.b.R().rd?XC(d.gc):YC(d.gc);d.gc.show()}c.Sf||this.g.Bb.hide();c.Jf&&this.g.Zd.show();if(c.Ag){var d=this.g,e=d.Pd;qC(e.g,this.b.b.Ag?Tq:[1]);var g=2500;tC(e.g,g++);g=g++;ZA(e.element.b,g);JG(d,d.Pd)}if(c.b.D)for(d=this.g,e=[d.Ec,d.Zc,d.bd,
d.Bb,d.$c,d.Zd,d.Vc],g=0;g<e.length;g++)d.jk.listen(e[g],"click",d.By);d=null!=c.Ae&&0==c.Ae.search("^https?://www.youtube.com");("detailpage"==c.ba||"profilepage"==c.ba||d)&&this.g.$c.hide()}w(YG,PG);f=YG.prototype;f.ay=function(a){this.g.disable(a)};f.by=function(a){this.g.enable(a)};f.gy=function(a){P(this.g.bd.element,"ytp-time-live-dvr",!a)};f.fy=function(a){var b=this.g;this.b.R();a?(a=b.Zd,XA(a,"ytp-button-fullscreen-exit"),b=Y(0,"YTP_EXIT_FULLSCREEN"),YA(a,b),a.g=b):GF(b.Zd);ZG(this)};
f.Ey=function(a){V(a.state,2)||(0<Zv(a,8)?IG(this.g,!0):0>Zv(a,8)?IG(this.g,!1):0>Zv(a,2)&&IG(this.g,V(a.state,8)));0>Zv(a,16)&&$G(this,this.b.getCurrentTime())};f.Yx=function(a){if(V(a.state,2)){a=this.g.Ec;XA(a,"ytp-button-replay");var b=Y(0,"YTP_REPLAY");YA(a,b)}};f.wy=function(){var a=this.g,b=this.b.getVideoData().Pf,c=H("html5-threed-conversion-on",a.ni),a=H("html5-threed-conversion-off",a.ni);Lx(c,!b);Lx(a,b)};
f.Hy=function(a){aH(this)&&($G(this,a.getCurrentTime()),yF(this.g.Bb.K()),BG(this.g.Pd,1),a.getVideoData()&&bH(this,a.getVideoData()))};f.Gy=function(a,b){aH(this)&&bH(this,b)};function ZG(a){a.b.o&&("detailpage"!=a.b.R().ba||a.b.R().tb)?a.g.Ee.show():a.g.Ee.hide()}
function bH(a,b){a.g.wf(b.Oa);var c=Us(a.b),d=a.g,e=Vs(c),g=d.Ac;qC(g.j,e);tC(g.j,2600);ZA(g.element.b,2601);e.length?JG(d,d.Ac):KG(d,d.Ac);d=a.g;e=Ss(a.b);g=cH(a.b);vG(d.Ac,e,g);yG(d.Vc,e);d=a.g;c.b.g?(c.oa||(c.oa=Vp(c.b.g)),c=c.oa):c=[];qC(d.Td.g,c);1<c.length?JG(d,d.Td):KG(d,d.Td);c=a.g;(d=(d=Us(a.b,void 0))?dH(d):null)&&AF(c.Td,d);c=a.g;d=b.Za;e=b.nb;c.Km=d&&!e;DG(c.bd,d,e);V(a.b.getPlayerState(),2)||IG(a.g,V(a.b.getPlayerState(),8));ZG(a)}
f.ry=function(a){if(aH(this)){var b=this.g,c=cH(this.b);vG(b.Ac,a,c);yG(b.Vc,a)}};f.xy=function(a){this.g.setVolume(a.volume,a.muted)};f.jy=function(a){JG(this.g,a)};f.ky=function(a){KG(this.g,a)};f.hy=function(a,b){LG(this.g,a,b)};f.iy=function(a){var b=this.g,c=b.b[a];c&&(c.ad(),cz(c,"menuButtonClick"),b.b[a]=null,b.g[a].dispose(),b.g[a]=null)};f.ly=function(a){var b=this.g;a&&b.g[a]?MG(b,b.g[a],b.b[a]):b.Ud()};f.Iy=function(a){$G(this,n(a)?a:this.b.zb.Gf().current)};f.ey=function(){eH(this.b,!this.b.R().tb)};
f.my=function(){this.b.D.muted?Ms(this.b):Ls(this.b)};f.ny=function(){et(this.b)};f.oy=function(){fH(this.b)};f.qy=function(){ft(this.b)};f.ty=function(a){Ts(this.b,a,1)};f.Zx=function(a){var b=Us(this.b,1);if(b&&!b.ga()&&!V(b.j,128)&&b.b.g.b&&(b=b.k,!b.ga())){var c=b.o;a=a.id;c.o="m";c.g=c.B.b[a];c.C=c.g;gH(b,new hH(c.C,c.j,c.o));iH(b,b.j,b.o.g);jH(b.j,!1);b.j.g=null;b.j.B=!0;kH(b)}};f.Cy=function(a){this.b.ok(a)};f.Fy=function(a){Js(this.b,a,!0)};f.uy=function(a){lH(this.b,a)};
f.vy=function(a){Rs(this.b,a)};f.yy=function(a){mH(this.b,a)};f.Ay=function(){nH(this.b)};f.$x=function(a){oH(this.b,a)};f.zy=function(a){(a?OG:NG).call(this,pH(this,a?this.xE:this.yE))};function pH(a,b){return{Va:mt(a.b).videoId,Ta:a.b.R().Ta,$a:a.b.R().$a,onSuccess:b,onError:a.VB,context:a}}f.yE=function(){var a=this.g.Bb.K();yF(a,"html5-async-success");this.b.H("WATCH_LATER_VIDEO_ADDED")};f.xE=function(){yF(this.g.Bb.K());this.b.H("WATCH_LATER_VIDEO_REMOVED")};
f.VB=function(a,b){var c=b&&b.error_message,d=this.g.Bb.K();yF(d,"html5-async-error");if(c){var e=pF.getInstance(),g=rF(e,d);tF(e,d,c);qF(e,d);oF(d,g)}};function aH(a){return 1==Us(a.b).getPlayerType()}function $G(a,b){if(aH(a)&&(Mv(a.g.bd.template,"current",Ov(b)),43200<b&&a.b.getVideoData().nb)){var c=a.g;c.Km=!0;DG(c.bd,!0,!1)}};var qH={0:[],1:["autohide-controls","autominimize-progress-bar"],2:["autominimize-controls-aspect","autohide-controls-fullscreenonly","autominimize-progress-bar"],3:["autominimize-progress-bar"]};function rH(a){OE.call(this,a);this.V=this.I=this.M=this.D=null;this.xa=[];this.wa=this.gb=this.B=this.jb=null;this.Ia=this.la=!1;this.Ra={x:0,y:0};this.Ha=null;this.C=new UE(this.j);R(this,this.C);a=this.app.R().hc?4E3:3E3;this.oa=new ew(this.iq,a,this);R(this,this.oa);this.oa.start()}w(rH,OE);f=rH.prototype;
f.Wg=function(){rH.G.Wg.call(this);this.app.subscribe("appstatechange",this.oD,this);this.app.subscribe("applicationplayerstatechange",this.pD,this);this.app.subscribe("initializingmode",this.rD,this);this.app.subscribe("presentingplayerstatechange",this.qD,this);this.app.subscribe("onDetailedError",this.sD,this)};f.Rg=function(){rH.G.Rg.call(this);var a=this.app.R();this.Sn(a);this.An(a);this.Mn()};
f.Sn=function(a){a.F&&this.addClass(a.F+"-theme");a.bc&&this.addClass("house-brand");!a.Lf&&a.Qd||this.addClass("modest-branding");a.Tl&&this.addClass("html5-hide-share");a.Rp||this.addClass("html5-hide-volume");a.hc&&(this.addClass("html5-tablet"),N(document.body,"html5-tablet-body"));a.Qb||(this.xa=qH[a.Oi],0<=this.xa.indexOf("autohide-controls")&&this.addClass("hide-controls-when-cued"));sH(this)&&this.addClass("ideal-aspect");a.b.L&&this.addClass("ytp-autohide-fade")};
f.An=function(a){if(a.Qd&&!a.Qb){this.B=new GG(this.j,a.hc);a.b.aa&&(this.B.C=!0);var b=this.B;b.Bc=this.F;b.Go=new BF(b.Bc);R(b,b.Go);b.uf.W(b.Bc);b.vi||(b.vi=new hG(b.rb,b.Pu));b.vi.W(b.Bc);var c=new Hv(["div",["html5-player-chrome","html5-stop-propagation"]]);R(b,c);c.W(b.Bc);c=c.K();b.Ec=new KF(b.rb);R(b,b.Ec);b.Ec.W(c);b.Ec.listen("click",b.fx,b);b.Ee=new OF(b.rb);R(b,b.Ee);b.Ee.W(c);b.Ee.b.listen("click",qa(b.H,"nextvideo"),b);b.Ee.g.listen("click",qa(b.H,"previousvideo"),b);b.Zc=new EG(b.rb);
R(b,b.Zc);b.Zc.W(c);b.Zc.b.listen("click",b.gx,b);b.Jo=new PF(b.Zc.g,!0);b.Jo.subscribe("dragmove",b.$w,b);b.bd=new CG;R(b,b.bd);b.bd.W(c);b.jk.listen(b.bd.b,"click",qa(b.H,"seekto",Infinity));b.ni=H("html5-threed-popup-menu",b.Bc);b.Zd=new FF(b.rb);b.Zd.W(c);R(b,b.Zd);b.Zd.listen("click",b.Zw,b);b.gc=new zG(b.rb);b.gc.hide();b.gc.W(c);R(b,b.gc);b.gc.listen("click",b.Xw,b);b.$c=new WA(b.rb,"ytp-button-watch-on-youtube",Y(0,"YTP_URL_NAVIGATE"),Y(0,"YTP_URL_NAVIGATE"));ZA(b.$c,6700);b.$c.W(c);R(b,b.$c);
b.$c.listen("click",b.bx,b);b.Vc=new xG(b.rb);R(b,b.Vc);LG(b,"__default__",b.Vc,b.$c.K());b.Vl=new WA(b.rb,"ytp-button-playlist",Y(0,"YTP_PLAYLIST"),Y(0,"YTP_PLAYLIST"));ZA(b.Vl,6400);b.Vl.W(c);R(b,b.Vl);b.Bb=new WA(b.rb,"ytp-button-watch-later",Y(0,"YTP_WATCH_LATER"));b.rb.yf(b.Bb.K(),"YTP_WATCH_LATER_AS_2",Y(0,"YTP_WATCH_LATER"));b.Bb.W(c);ZA(b.Bb,6300);YA(b.Bb,Y(0,"YTP_WATCH_LATER"));R(b,b.Bb);b.Bb.listen("click",b.ax,b);b.ep=new EF(b.rb);b.ep.W(b.Bc);b.Ac=new uG(b.rb);R(b,b.Ac);b.Ac.listen("change",
b.Ww,b);b.Ac.listen("blur",b.Vw,b);b.Pd=new AG(b.rb);R(b,b.Pd);b.Pd.listen("change",b.Yw,b);b.Td=new zF(b.rb);R(b,b.Td);b.Td.listen("change",b.Uw,b);R(this,this.B);this.gb=new YG(this.app,this.B);R(this,this.gb)}a.Vp&&(this.Ha=new bF(a.ac,a.bc),this.Ha.W(this.g),R(this,this.Ha));this.M=new cF(60);N(this.M.element,"html5-video-loader");N(this.M.element,"html5-center-overlay");N(this.M.element,"ytp-scalable-icon-grow");this.M.W(this.g);R(this,this.M);this.I=new dF(a.ac);this.I.W(this.g);R(this,this.I);
this.V=new HE;this.V.W(this.g);R(this,this.V);this.C.hide();this.C.W(this.element)};f.mn=function(a){rH.G.mn.call(this,a);tH(this,a);this.D&&aF(this.D);P(this.element,"ideal-aspect",sH(this));this.C.P&&VE(this.C)};f.Ql=function(){rH.G.Ql.call(this);tH(this,this.Tb())};f.oD=function(a){2==a?uH(this):vH(this);this.app.R().b.j&&3==a&&this.I.show(this.app.getVideoData())};
f.qD=function(a){if(this.element){var b;b=a.state;if(V(b,2))b=["ended-mode"];else{var c=[];V(b,8)?c.push("playing-mode"):V(b,4)&&c.push("paused-mode");V(b,1)&&!V(b,32)&&c.push("buffering-mode");V(b,32)&&c.push("seeking-mode");V(b,64)&&c.push("unstarted-mode");b=c}V(a.state,2)||(b=b.concat(this.xa));this.wa&&sg(this.element,this.wa);rg(this.element,b);this.wa=b;V(Us(this.app).j,1)?this.M.show():this.M.hide();b=Us(this.app);this.app.R().b.j&&b.Wh()&&!V(b.j,1)&&this.I.hide();0>Zv(a,64)&&wH(this.app)}};
f.pD=function(a){!V(a.state,2)||this.app.R().bc||xH()?0>Zv(a,2)&&vH(this):uH(this)};
f.Mn=function(){var a=this.app.R();if(a.Sp){a.hc&&(bz(this,this.element,"gesturechange",this.EA),bz(this,this.element,"gestureend",this.FA));lr?this.g.onclick=t(function(a){this.$m(new Ig(a))},this):this.an();bz(this,this.element,"click",this.Kr);bz(this,this.element,"mousemove",this.Kr);bz(this,this.element,"mouseout",this.iq);var b,a=t(function(){var a=this.b;a&&(Qt(a),EE.fillPool(4),this.Fa(b))},this);b=bz(this,this.element,"click",a,void 0,void 0,!0)}};
f.an=function(){bz(this,this.g,"click",this.$m);bz(this,this.g,"dblclick",this.Es)};f.$m=function(a){yH(a)&&(this.element.focus(),qg(this.element,"cued-mode")||!this.app.R().Qb)&&(zH(this),fH(this.app));oH(this.app,"screenclick")};f.Es=function(a){6!=this.app.I&&this.app.R().Jf&&(yH(a)&&Lz(this.app),oH(this.app,"screendoubleclick"))};f.EA=function(a){var b=a.scale,c=this.app.R().tb;b*(c?-1:1)>(c?-.7:1.3)&&Lz(this.app);a.preventDefault()};
f.FA=function(a){a=a.scale;var b=this.app.R().tb;a*(b?-1:1)>(b?-.9:1.1)&&Lz(this.app)};function yH(a){return!vd(a.target,"html5-stop-propagation")}function sH(a){a=Nb(new F(a.element.clientWidth,a.element.clientHeight)).toFixed(1);return"1.3"==a||"1.8"==a}f.Kr=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.fg=v();this.Ia=!1;this.oa.start();this.la&&(this.la=!1,this.removeClass("ytp-user-idle"),this.app.Ua("onShowControls"))};
f.iq=function(a){if(a&&(a=a.relatedTarget)&&ld(this.element,a))return;this.Ia=!0;this.oa.stop();if(!this.la){a=this.B&&null!=this.B.j;var b=Xs(this.app.C,"playlist"),b=b&&b.loaded;!this.Ia||a||b||(this.la=!0,this.addClass("ytp-user-idle"),this.app.Ua("onHideControls"))}};function uH(a){a.I.show(a.app.getVideoData());a.addClass("cued-mode")}function vH(a){a.app.R().b.j||a.I.hide();a.removeClass("cued-mode")}
f.Sg=function(a){if(a){var b=this.C;b.b=a;b.na(a);this.C.show()}else a=this.C,a.b=null,a.na(null),this.C.hide()};
f.sD=function(a){if(this.element){this.D||(this.D=new $E,this.D.W(this.element),R(this,this.D));var b=this.app.R(),c=a.message,d="embedded"==b.ba;a=a.messageKey;var e;"YTP_ERROR_GENERIC"!=a||b.bc?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==a?(e="https://get.adobe.com/flashplayer/",d=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=a||b.bc||(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=Ze(a,{BEGIN_LINK:'<br/><a href="'+e+'"'+(d?' target="_blank"':"")+">",END_LINK:"</a>"}));b=this.D;Rg(b.g);b.g=[];Mv(b.template,"content",new LE(c));this.D.show()}};f.rD=function(){this.D&&this.D.hide()};function zH(a){var b=a.app.getPlayerState(),c=a.app.getVideoData(),d="html5-bezel-pause";V(b,8)?c.Za&&!c.nb&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.V;a.show(d);a.b=L(t(a.g,a),10)}
f.Zf=function(){var a=this.app.R();ug(document.documentElement,"player-size",a.tb?"fullscreen":a.rd?"large":"small");rH.G.Zf.call(this)};function tH(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=Jb(e/g,.5,1),d=Oc("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++)Rx(d[h],"transform","scale("+c+")");c=Jb(e/g*.33,.5,1);d=Oc("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)Rx(d[h],"transform","scale("+c+")")}}
f.qk=function(a){this.B&&IG(this.B,a)};f.J=function(){Vg(this.element);fd(this.jb);rH.G.J.call(this);this.I=this.V=this.jb=null};function AH(a,b,c,d){JE.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.g=a;this.ab=b;this.jc=!1;this.C=d||!1}w(AH,JE);AH.prototype.create=function(){this.jc=!0};AH.prototype.destroy=function(){this.jc=!1};function BH(a,b,c){var d=!!b.featured,e="1"==b.is_episodic;b=!!b.endscreen_autoplay_session_data;return c&&(d||e)||b||a.C&&a.Ml()}AH.prototype.Ml=function(){return!1};function CH(){W.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}w(CH,W);function DH(){W.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,W);function EH(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}}"]]];DF.call(this,a,b)}w(EH,DF);function FH(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),Ji("/get_video_metadata",{method:"GET",onError:d,onSuccess:c,Ih:a,context:e}))};function GH(a,b,c){AH.call(this,a,b,"subscribecard-endscreen");this.o=new CH;R(this,this.o);this.A=new Hv(["div","ytp-channel-curtain"]);R(this,this.A);this.k=new DH;R(this,this.k);(this.j=c?new EH(this.g.app.g.j):null)&&R(this,this.j);this.hide()}w(GH,AH);
GH.prototype.create=function(){GH.G.create.call(this);dd(this.b);this.o.W(this.b);this.A.W(this.b);this.k.W(this.b);if(this.j){var a=this.g.getVideoData().C;a&&BH(this,a[0])&&(this.j.Cf(a[0]),this.j.W(this.b))}FH(this.g.getVideoData().videoId,!0,this.B,ca,this,this.g.R().Ta,this.g.R().$a)};
GH.prototype.B=function(a,b){if(this.jc){var c=b.user_info,d=this.g.getVideoData();d&&(d.Ca=c.external_id);d=c.channel_logo_url||c.image_url;Mv(this.o.template,"banner",c.channel_banner_url);Mv(this.k.template,"image",d);Mv(this.k.template,"author",c.channel_title||c.username);this.j&&b.watch_next&&(this.j.Cf(b.watch_next),this.j.W(this.b));c=c.subscription_button_html;this.k.template.b["html5-subscribe-button-container"].innerHTML=c?c:""}};function HH(a,b){return C(a.b.b,b)};function IH(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"}]];W.call(this,c);this.X=b}w(IH,W);IH.prototype.g=null;IH.prototype.j=null;IH.prototype.b=null;
function JH(a){if(!a.g&&(a.g=a.template.b["ad-container"],a.X.R().Rb)){var b=HH(a.X.R(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";N(a.g,b)}return a.g}function KH(a){a.b&&(a.X.R().Rb?(O(a.b,"ad-video"),LH(a.X.app,a.b),a.b=null):(fd(a.b),Vt(a.b)))}
function MH(a){if(!a.j){if(a.X.R().hc){var b=$c("button");N(b,"video-click-tracking");cd(b,Ze("YTP_VISIT_ADVERTISERS_SITE"));var c=$c("div");N(c,"video-click-tracking-container");c.appendChild(b);JH(a).appendChild(c)}else b=$c("div"),rg(b,["video-click-tracking","ad-video"]),JH(a).appendChild(b);a.j=b}return a.j}IH.prototype.J=function(){IH.G.J.call(this);this.b&&(LH(this.X.app,this.b),this.b=null);KH(this);dd(JH(this));dd(MH(this));this.j=this.g=null;delete this.X};
function NH(a){if(!a.b){var b;b=a.X.app;if(b.b.Rb){var c=Of(b.k),d=bg(b.k);b.T=new zf(c.x,c.y,d.width,d.height);OH(b.A);Wt(b.k,1);Vt(b.k);b=b.k}else b=EE.getTag(void 0);a.b=b;rg(a.b,["video-stream","ad-video"])}return a.b};function PH(){WE.call(this,84,84);this.g=this.width/2;this.k=this.height/2}w(PH,WE);var QH=3*Math.PI/2,RH=2*Math.PI;function SH(a,b){DF.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.X=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.yv);this.listen("keypress",this.zv)}w(SH,DF);f=SH.prototype;
f.Cf=function(a,b){SH.G.Cf.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"==ns(this.o).type?e=!0:this.o&&(c=!0);P(this.element,"videowall-still-featured",!!a.featured);P(this.element,"videowall-still-list",c);P(this.element,"videowall-still-episodic",d);P(this.element,"videowall-still-mix",e)};
f.select=function(a,b){TH(this);UH(this.X.app,this.videoId,a?this.k:this.A,this.o||void 0,b)};
f.Np=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,RH);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,
QH,c*RH+QH,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();b=Math.max(1E4-a,0);Mv(this.b,"autoplay",Ze("YTP_AUTOPLAY_COUNTDOWN_2",{SECONDS_LEFT:Math.ceil(b/1E3)}));1E4<=a&&this.select(!0)};f.Rw=function(a){a.stopPropagation();this.g&&(this.C.log({cancelButtonClick:"1"}),TH(this))};function TH(a){a.g&&(We(a.g),a.g=0,P(a.element,"videowall-still-autoplay",!1))}f.yv=function(a){this.select(!1,a.ctrlKey);a.stopPropagation()};
f.zv=function(a){switch(a.keyCode){case 13:case 32:this.select(),a.preventDefault()}};f.J=function(){TH(this);SH.G.J.call(this)};function VH(a,b,c,d){AH.call(this,a,b,"videowall-endscreen",d);this.D=c;this.A=[];this.j=this.k=null;this.B=!1;this.o=0;this.ab.subscribe("onResize",this.JB,this);this.ab.subscribe("videodatachange",this.KB,this);this.hide()}w(VH,AH);VH.b="feature-video";f=VH.prototype;f.create=function(){VH.G.create.call(this);var a=this.g.getVideoData();a&&(this.j=a.C);WH(this)};f.destroy=function(){dd(this.b);this.j=[];VH.G.destroy.call(this)};f.Ml=function(){return this.g.getVideoData().Mi};
f.show=function(){VH.G.show.call(this);var a=this.j&&this.j.length,b=this.C?this.Ml():!!XH(this,0).k;a&&b&&(a=XH(this,0),TH(a),a.b||(a.b=new Hv(["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}}"]]]),R(a,a.b),a.b.W(a.element),b=new WA(a.D),R(a,b),b.listen("click",a.Rw,a),b.W(a.b.K(),0),XA(b,"videowall-still-listlabel-autoplay-cancel"),
b.na(Y(0,"YTP_CANCEL")),a.j=new PH,R(a,a.j),N(a.j.K(),"autoplay-play-canvas"),a.j.W(a.element)),P(a.element,"videowall-still-autoplay",!0),a.C.log({cancelButtonShow:"1"}),a.B=new Date,a.g=Ve(t(a.Np,a),50),a.Np())};f.hide=function(){VH.G.hide.call(this);var a=this.A[0];a&&TH(a)};
function WH(a){if(a.jc){dd(a.b);var b=Zf(a.K()),c=b.height,d;t:{if(qg(At(a.g),"ad-showing")&&(d=H("ad-container"))){d=bg(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.j.length,c=!1;BH(a,a.j[0],2<e&&2<d)&&(c=!0,g+=3);P(a.b,VH.b,c);for(var h=0,k=0,l=Nb(b),p=!0;0<=g&&(h<d||k<e);){var s=g>=k,u=g>=h;if(p&&u||!s&&u)g-=h,k++;else if(s)g-=k,h++;else break;p=h/k*1.45>l}a.B=p;d=new F(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 F(Math.floor(e),Math.floor(g));a.o=d.width*d.height;c&&(a.o-=3);a.k&&hC(a.k);c=YH(e);g={fd:a.k};a.k=gC(".videowall-still",c,g);c=YH(e.clone().scale(2));g.fd=a.k;h="."+VH.b+" .videowall-still:first-child";gC(h,c,g);c=e.width*d.width;d=e.height*d.height;Xf(a.b,c,d);Mf(a.b,(b.width-c)/2,(b.height-d)/2)}b=0;for(c=a.o;b<c;b++)XH(a,b).W(a.b)}}function XH(a,b){var c=a.A[b];c||(c=new SH(a.g,a.D),R(a,c),a.A[b]=c);c.Cf(a.j[b],0==b&&a.j[0].featured);return c}
function YH(a){return["width:"+a.width+"px","height:"+a.height+"px"]}f.JB=function(){WH(this)};f.KB=function(){var a=this.g.getVideoData().C;this.j!=a&&(this.j=a,WH(this))};function ZH(a){pu.call(this,a);Ye({});this.va="endscreen";this.ic="end";this.g=null;var b=a.R();$H(a)?this.g=new VH(this.b,this.M,this,b.b.ya):b.dh?(a=b.b.C,b=new GH(this.b,this.M,a),a&&Q(b.j.K(),"click",t(this.ez,this)),this.g=b):this.g=new AH(this.b,this.M);this.g.W(At(this.b))}w(ZH,pu);function aI(a){return bI(a.R())&&1==Us(a.app).getPlayerType()}function $H(a){a=a.R();return a.Ic&&!a.dh}f=ZH.prototype;f.Ja=function(a){return aI(a)};
f.create=function(){ZH.G.create.call(this);cI(this);this.b.getVideoData().subscribe("dataupdated",this.Er,this)};f.destroy=function(){this.b.getVideoData().ha("dataupdated",this.Er,this);qu(this);this.g.destroy();ZH.G.destroy.call(this)};f.load=function(){ZH.G.load.call(this);this.g.show();if(this.b.R().dh&&.01>Math.random()){var a=this.b.R().b.C;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){ZH.G.unload.call(this);this.g.hide()};
f.Dc=function(a){ZH.G.Dc.call(this,a);var b=this.b.getVideoData(),c=!$H(this.b)||!(!b.C||!b.C.length);this.b.R();b=js(b,"ypc_module");c&&!b&&("preload"==a.getId()?this.g.create():dI(this.b.app)||this.load())};f.jd=function(a){"load"==a.getId()&&this.loaded&&this.unload();ZH.G.jd.call(this,a)};f.Er=function(){qu(this);cI(this)};f.ez=function(a){var b=this.g.j.videoId,b=eI(this.b.R(),b,null);uu(this,b,a.ctrlKey)};
function cI(a){var b=Math.max(1E3*(a.b.getVideoData().Oa-10),0),b=new fu(b,2147483647,{id:"preload"}),c=new fu(2147483647,2147483647,{id:"load",priority:6});a.Kf(b,c)}function fI(a){return aI(a)?new ZH(a):null};function gI(a){nf("/gen_204?"+a,void 0)}function hI(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=$d("/sharing_services",a);nf(h)};function iI(a){var b=document.location.protocol+"//"+document.domain+"/post_login",b=Zd(b,"mode","subscribe"),b=Zd("/signin?context=popup","next",b),b=Zd(b,"feature","sub_button");if(b=window.open(b,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var c=Vh("LOGGED_IN",function(b){Xh(Te("LOGGED_IN_PUBSUB_KEY"));Re("LOGGED_IN",!0);a(b)});Re("LOGGED_IN_PUBSUB_KEY",c);b.moveTo((screen.width-375)/2,(screen.height-440)/2)}}ba("yt.pubsub.publish",Yh,void 0);function jI(){lF.call(this)}w(jI,lF);da(jI);f=jI.prototype;f.Ld="subscription-button";
f.register=function(){nF(this,"click",this.zt);mF(this,"subscription-subscribe-loading",this.xt);mF(this,"subscription-subscribe-loaded",this.wt);mF(this,"subscription-unsubscirbe-loading",this.xt);mF(this,"subscription-unsubscribe-loaded",this.wt);mF(this,"subscription-subscribe-success",this.ZD);mF(this,"subscription-unsubscribe-success",this.$D);mF(this,"subscription-enable-ypc",this.YD);mF(this,"subscription-disable-ypc",this.XD)};
f.zt=function(a){var b=this.Z(a,"href"),c;c=(c=Te("PLAYER_CONFIG"))&&c.args&&void 0!==c.args.authuser?!0:!(!Te("SESSION_INDEX")&&!Te("LOGGED_IN"));if(b)a=this.Z(a,"target")||"_self",window.open(b,a);else if(c){b=this.Z(a,"channel-external-id");c=this.Z(a,"sessionlink");var d;if(this.Z(a,"ypc-enabled")){d=this.Z(a,"ypc-item-type");var e=this.Z(a,"ypc-item-id"),g=this.Z(a,"ypc-offers-url");d={itemType:d,itemId:e,offersUrl:g,subscriptionElement:a}}else d=null;e=this.Z(a,"parent-url");this.Z(a,"is-subscribed")?
(g=this.Z(a,"subscription-id"),Yh("subscription-unsubscribe",b,g,d,a,c,e)):Yh("subscription-subscribe",b,d,a,c,e)}else kI(this,a)};f.xt=function(a){this.ng(a,this.Ft,!0)};f.wt=function(a){this.ng(a,this.Ft,!1)};f.ZD=function(a,b){this.ng(a,this.Gt,!0,b)};f.$D=function(a){this.ng(a,this.Gt,!1)};f.YD=function(a){this.ng(a,this.oE)};f.XD=function(a){this.ng(a,this.nE)};
f.Gt=function(a,b,c){b?(ug(a,"is-subscribed","true"),c&&ug(a,"subscription-id",c)):(this.removeData(a,"is-subscribed"),this.removeData(a,"subscription-id"));lI(this,a)};f.Ft=function(a,b){var c=vd(a,"yt-uix-button-subscription-container");P(c,"yt-subscription-button-disabled-mask-container",b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b};
function lI(a,b){var c=a.Z(b,"style-type"),d=!!a.Z(b,"is-subscribed"),c="-"+c,e="yt-uix-button-subscribed"+c;P(b,"yt-uix-button-subscribe"+c,!d);P(b,e,d);a.Z(b,"subscriber-count-tooltip")&&!a.Z(b,"subscriber-count-show-when-subscribed")&&(c=Z(pF.getInstance()),P(b,c,!d),b.title=d?"":a.Z(b,"subscriber-count-title"));d?L(function(){N(b,"hover-enabled")},1E3):O(b,"hover-enabled")}
f.oE=function(a){var b=!!this.Z(a,"ypc-item-type"),c=!!this.Z(a,"ypc-item-id"),d=!!this.Z(a,"ypc-offers-url");!this.Z(a,"ypc-enabled")&&b&&c&&d&&(N(a,"ypc-enabled"),ug(a,"ypc-enabled","true"))};f.nE=function(a){this.Z(a,"ypc-enabled")&&(O(a,"ypc-enabled"),this.removeData(a,"ypc-enabled"))};function mI(a,b){var c=Oc(Z(a));return hb(c,function(a){return b==this.Z(a,"channel-external-id")},a)}f.PE=function(a,b,c){var d=yb(arguments,2);z(a,function(a){b.apply(this,ub(a,d))},this)};
f.ng=function(a,b,c){var d=mI(this,a),d=ub([d],yb(arguments,1));this.PE.apply(this,d)};function kI(a,b){var c=t(function(a){a.discoverable_subscriptions&&Re("SUBSCRIBE_EMBED_DISCOVERABLE_SUBSCRIPTIONS",a.discoverable_subscriptions);this.zt(b)},a);iI(c)};function nI(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))rc&&-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 oI(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=nI(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function pI(a){W.call(this,["div","ytp-action-buttons"]);this.j=new WA(a,"ytp-button-info",Y(0,"YTP_MORE_INFO"));R(this,this.j);this.j.W(this.element);ZA(this.j,3500);this.k=new WA(a,"ytp-button-share",Y(0,"YTP_SHARE"));R(this,this.k);this.k.W(this.element);ZA(this.k,3400);this.b=new WA(a,"ytp-button-dislike",Y(0,"YTP_DISLIKE"));R(this,this.b);ZA(this.b,3300);ug(this.b.K(),"tooltip-below","1");a.yf(this.b.K(),"YTP_DISLIKE_AS",Y(0,"YTP_DISLIKE"));this.g=new WA(a,"ytp-button-like",Y(0,"YTP_LIKE"));
R(this,this.g);ZA(this.g,3200);ug(this.g.K(),"tooltip-below","1");a.yf(this.g.K(),"YTP_LIKE_AS",Y(0,"YTP_LIKE"))}w(pI,W);function qI(){W.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(qI,W);qI.prototype.J=function(){this.b=this.g=null;qI.G.J.call(this)};function rI(){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")]];W.call(this,a)}w(rI,W);function sI(a,b,c,d){WA.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);N(this.element,"share-service-icon-sharebar");ZA(this,3700)}w(sI,WA);function tI(){W.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.b=this.template.b["ytp-share-url"]}w(tI,W);tI.prototype.J=function(){this.b=null;tI.G.J.call(this)};function uI(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")]]];JE.call(this,c);this.k=b;this.B=a;this.b=null;this.o=[];this.j=this.g=null;this.A=new WA(this.B,"yt-uix-button-icon-share-bar-close",Y(0,"YTP_CLOSE"),Y(0,"YTP_CLOSE"));this.A.W(this.template.b["share-bar-content"]);ZA(this.A,3900)}
w(uI,JE);function vI(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.j?a.j.videoId:void 0};a.k.Ta&&(b.authuser=a.k.Ta);a.k.$a&&(b.pageid=a.k.$a);var c;wI(a)?(c=H("ytp-share-bar-checkbox"),c=!c||qg(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=wI(a));Ji("/share_ajax",{context:a,method:"GET",onError:a.F,onSuccess:a.C,Ih:b})}
uI.prototype.C=function(a,b){if(!this.ga()){xI(this);var c=this.template.b["share-bar-content"];this.b=new tI;R(this,this.b);Qc(this.b.b,{value:b.url_short});this.b.W(c);for(var d=b.links,e=0;e<Math.min(3,d.length);e++){var g=new sI(this.B,d[e].name,d[e].sname,d[e].img);R(this,g);g.W(c);g.listen("click",qa(oI,d[e].url,{}));this.o.push(g)}this.g=new rI;R(this,this.g);this.g.listen("click",t(this.I,this,b.more));this.g.W(c);bz(this,this.template.b["ytp-share-bar-checkbox"],"click",this.D,this);this.H("menu_show")}};
uI.prototype.F=function(){};uI.prototype.I=function(a){nI(a)};function wI(a){return a.j?a.j.La:void 0}uI.prototype.D=function(){var a=H("ytp-share-bar-checkbox");tg(a,"ytp-share-bar-checked");vI(this)};function xI(a){a.b&&(a.b.ad(),a.b=null);a.g&&(a.g.ad(),a.g=null);z(a.o,function(a){fd(a.K())});a.o=[]};function yI(a,b){JE.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 BF(this.K());R(this,this.M);this.b=null;var c=this.template.b["html5-title"];this.A=new WA(this.B);N(this.A.K(),"html5-title-text");R(this,this.A);ZA(this.A,3100);this.A.listen("click",this.Zk,this);Mv(this.template,"titlebutton",this.A);var d=new WA(this.B,"html5-title-logo",Y(0,"YTP_URL_NAVIGATE"),
Y(0,"YTP_URL_NAVIGATE"));R(this,d);d.na("YouTube");ZA(d,3550);ug(d.K(),"tooltip-below","1");d.listen("click",this.Zk,this);Mv(this.template,"titlelogobutton",d);this.k=new pI(this.B);R(this,this.k);this.k.W(c,1);this.k.k.listen("click",this.pi,this);this.k.j.listen("click",this.Nk,this);this.j.bc&&this.k.j.hide();this.o=null;this.F=!1;this.g=null}w(yI,JE);f=yI.prototype;f.update=function(a){this.b=a;if(this.g){var b=this.g;b.j=a;vI(b)}a=a.title||"";this.A.na(a);YA(this.A,a)};f.Zk=function(){this.Lt()};
f.Nk=function(){if(!this.F){this.F=!0;FH(this.b?this.b.videoId:void 0,!1,this.xA,ca,this,this.j.Ta,this.j.$a);if(!this.o){var a=this.template.b["html5-info-panel-loading-icon"];this.o=new cF;R(this,this.o);N(this.o.element,"html5-info-panel-loader");this.o.W(a);R(this,this.o)}this.o.show()}O(this.element,"show-share");return tg(this.element,"show-more-info")};
f.pi=function(a){O(this.element,"show-more-info");if("detailpage"!=this.j.ba){if(!this.g){var b=this.g=new uI(this.B,this.j);b.j=this.b;vI(b);this.g.W(this.template.b["html5-info-bar"]);this.g.A.listen("click",this.pi,this);this.g.subscribe("menu_show",t(this.xq,this))}tg(this.element,"show-share");this.xq();a&&a.stopPropagation();P(this.element,"share-with-playlist",!!wI(this.g))}};f.xq=function(){qg(this.element,"show-share")&&this.g.b&&this.g.b.K().focus()};
f.xA=function(a,b){if(!this.ga()){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;bz(this,e,"click",this.Yq);e=H("html5-author-name",c);nd(e,d.channel_title||d.public_name||d.username);bz(this,e,"click",this.Yq);var e=b.video_info,g=H("html5-subscribe-button-container",c);g.innerHTML=d.subscription_button_html?d.subscription_button_html:"";d=jI.getInstance();(d=H(Z(d),g))&&this.B.yf(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 qI;R(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.W(H("html5-video-info",c),2);d=H("html5-description-text",c);nd(d,e.description);this.o.hide();c=H("html5-info-panel-content",c);Nx(c)}};
f.Yq=function(){var a=this.j,b=this.b,c="",c=b.Ca?a.qb+"channel/UC"+b.Ca:a.qb+"user/"+b.rh;this.vn(c)};f.vn=function(a){nI(a)};f.Lt=function(){this.vn(zI(this.j,this.b))};f.J=function(){this.b=this.j=null;yI.G.J.call(this)};function AI(){W.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}w(AI,W);AI.prototype.Vi=function(a){Mv(this.template,"index",a+1)};function BI(a){VC.call(this,a,"ytp-button-expand",Y(0,"YTP_ST_EXPAND"),"ytp-button-collapse",Y(0,"YTP_ST_COLLAPSE"));this.na([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Y(0,"YTP_PLAYLIST")]])}w(BI,VC);function CI(a){W.call(this,["div","ytp-playlist-tray-controller"]);this.b=new BI(a);this.b.W(this.template.K());R(this,this.b);this.g=new AI;this.g.W(this.template.K());R(this,this.g)}w(CI,W);function DI(a,b){W.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.rh,image:EB(a.videoId,"default.jpg")})}w(DI,W);
DI.prototype.Vi=function(a){P(this.element,"ytp-playlist-tray-item-current",this.b==a)};function EI(){JE.call(this,["div","ytp-playlist-tray-tray"]);this.b=null;this.g=[]}w(EI,JE);function FI(a,b){a.b&&a.b.ha("shuffle",a.j,a);a.b=b;a.b.subscribe("shuffle",a.j,a);a.j()}EI.prototype.j=function(){Oh(this.g);this.g=[];dd(this.element);for(var a=0;a<=this.b.uc-1;++a){var b=zs(this.b,a);b&&(b=new DI(b,a),b.Vi(this.b.Ga),this.g.push(b),b.listen("click",t(this.k,this,a)),b.W(this.element))}};EI.prototype.k=function(a){this.H("playvideoat",a)};
EI.prototype.J=function(){Oh(this.g);this.g=[];dd(this.element);EI.G.J.call(this)};function GI(a){pu.call(this,a);var b=At(a);this.C=a.app.g.j;this.A=!1;this.j=this.k=null;this.B=H("ytp-button-playlist",b);Q(this.B,"click",t(this.$o,this));this.g=this.o=null}w(GI,pu);f=GI.prototype;f.va="playlist";
f.create=function(){GI.G.create.call(this);HI(this,this.b.Yc());this.o=new Hv(["div",["ytp-playlist-tray-container","html5-stop-propagation"]]);zt(this.b,this.o.K());this.j=new EI;this.j.subscribe("playvideoat",this.Wp,this);this.j.W(this.o.K(),0);this.g=new CI(this.C);this.g.W(H("html5-title",void 0),0);this.g.b.listen("click",this.$o,this);this.subscribe("fullscreentoggled",this.kq,this);this.subscribe("videodatachange",this.mq,this);this.subscribe("clearvideooverlays",this.lq,this);this.Bi()};
f.Bi=function(){var a=this.b.xp(),b=this.g.g;null!=a?b.show():b.hide();this.g.g.Vi(a);a=this.g.g;b=this.b.Yc();Mv(a.template,"length",b.uc)};f.destroy=function(){GI.G.destroy.call(this);HI(this,null);this.ha("fullscreentoggled",this.kq,this);this.ha("videodatachange",this.mq,this);this.ha("clearvideooverlays",this.lq,this);fd(this.o.K());this.j.dispose();this.j=null;this.o.dispose();this.o=null;fd(this.g.K());this.g.dispose();this.g=null};
f.load=function(){GI.G.load.call(this);this.A||(FI(this.j,this.k),this.A=!0);for(var a=this.j,b=0;b<a.g.length;b++)a.g[b].Vi(a.b.Ga);XC(this.g.b)};f.unload=function(){GI.G.unload.call(this);this.A=!1;YC(this.g.b)};f.lq=function(){this.loaded&&this.unload()};f.Wp=function(a){this.b.Il(a);this.unload()};f.$o=function(){this.loaded?this.unload():(this.H("command_clear_video_overlays"),this.load())};f.hide=function(){var a=H("ytp-playlist-tray-info");O(a,"show-more-info");O(a,"show-share")};
f.kq=function(a){var b=this.b.R().ba;this.loaded&&!a&&"detailpage"==b&&this.unload()};f.mq=function(){HI(this,this.b.Yc());this.A&&FI(this.j,this.k);this.Bi()};function HI(a,b){a.k&&a.k.ha("shuffle",a.Bi,a);a.k=b;a.k&&a.k.subscribe("shuffle",a.Bi,a)}GI.Ja=function(a){return!!a.Yc()};GI.prototype.Ja=function(a){return GI.Ja(a)};GI.prototype.Sm=function(a){return!GI.Ja(a)};GI.b=function(a){return GI.Ja(a)?new GI(a):null};GI.prototype.J=function(){this.j.ha("playvideoat",this.Wp,this);Vg(this.B);GI.G.J.call(this)};function II(a,b){this.b=a;this.g=!!b}w(II,Kh);
function JI(a,b,c){if(c)if(a.g)KI(b,c);else{var d;a.b&&(d=LI(a.b));d&&b.length?(d=[d,"/cache/videos?q=",b.join("&q=")].join(""),Ji(d,{format:"JSON",method:"GET",context:a,timeout:2E3,onSuccess:function(a,d){var h=0;d&&d.ids&&(h=d.ids.length);MI("search","success",{"num-requested":b.length,"num-cached":h});c(d)},onError:function(){MI("search","error",{"num-requested":b.length});c({})},bh:function(){MI("search","timeout",{"num-requested":b.length});NI("__notfound__");c({})}})):c({})}}
function OI(a,b,c){if(c)if(a.g)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.b&&(d=LI(a.b));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Ji(d,{format:"JSON",method:"GET",context:a,timeout:600,onSuccess:function(a,d){c(d);MI("meta","success",{v:b})},onError:function(){MI("meta","error",{v:b});c({})},bh:function(){MI("meta","timeout",{v:b});NI("__notfound__");c({})}})):c({})}}function MI(a,b,c){a={a:"spacecast",module:"cache",request:a,status:b};ec(a,c);gI(Yd(a))}
function KI(a,b){a.length?b({ids:a}):b({})}II.prototype.J=function(){this.b=null;II.G.J.call(this)};function PI(a){(this.b=a)&&NI("http://"+a)}w(PI,Kh);function LI(a){var b;(b=(b=si("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.b?"http://"+a.b:null;return b}PI.prototype.reset=function(){ti("yt-spacecast-uri")};function NI(a){var b=si("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;pi("yt-spacecast-uri",b)};var QI=q("yt.prefs.UserPrefs.prefs_")||{};ba("yt.prefs.UserPrefs.prefs_",QI,void 0);function RI(){lF.call(this)}w(RI,lF);f=RI.prototype;f.kd=function(a){var b=lF.prototype.kd.call(this,a);return b?b:a};f.Z=function(a,b){var c=RI.G.Z.call(this,a,b);return c?c:(c=RI.G.Z.call(this,a,"card-config"))&&(c=q(c))&&c[b]?c[b]:null};
f.show=function(a){var b=this.kd(a);if(b){N(b,Z(this,"active"));var c=SI(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;TI(this,a,c);var d=Z(this,"card-visible"),e=this.Z(a,"card-delegate-show")&&this.Z(b,"card-action");this.ag(b,"card-action",a);this.g=a;Ox(c);L(t(function(){e||Nx(c);UI(c);N(c,d)},this),10)}}};
function SI(a,b,c){var d=c||b,e=Z(a,"card");c=a.md(d);var g=Nc(Z(a,"card")+Ag(d));if(g)return a=H(Z(a,"card-body"),g),ld(a,c)||(fd(c),a.appendChild(c)),g;g=document.createElement("div");g.id=Z(a,"card")+Ag(d);g.className=e;(d=a.Z(d,"card-class"))&&rg(g,d.split(/\s+/));d=document.createElement("div");d.className=Z(a,"card-border");b=a.Z(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;fd(c);h.appendChild(c);d.appendChild(a);d.appendChild(h);g.appendChild(e);g.appendChild(d);document.body.appendChild(g);return g}
function TI(a,b,c){var d=a.Z(b,"orientation")||"horizontal",e=a.Z(b,"position"),g=!!a.Z(b,"force-position"),h=a.Z(b,"position-fixed"),d="horizontal"==d,k="bottomright"==e||"bottomleft"==e,l="topright"==e||"bottomright"==e,p,s;l&&k?(s=7,p=4):l&&!k?(s=6,p=5):!l&&k?(s=5,p=6):(s=4,p=7);var u=Tf(document.body),e=Tf(b);u!=e&&(s^=2);var y;d?(e=b.offsetHeight/2-12,y=new E(-12,b.offsetHeight+6)):(e=b.offsetWidth/2-6,y=new E(b.offsetWidth+6,-12));var G=bg(c),e=Math.min(e,(d?G.height:G.width)-24-6);6>e&&(e=
6,d?y.y+=12-b.offsetHeight/2:y.x+=12-b.offsetWidth/2);var A=null;g||(A=10);G=Z(a,"card-flip");a=Z(a,"card-reverse");P(c,G,l);P(c,a,k);A=eF(b,s,c,p,y,null,A);!g&&A&&(A&48&&(l=!l,s^=2,p^=2),A&192&&(k=!k,s^=1,p^=1),P(c,G,l),P(c,a,k),eF(b,s,c,p,y));h&&(b=parseInt(c.style.top,10),g=Uc(document).y,Rx(c,"position","fixed"),Rx(c,"top",b-g+"px"));u&&(b=dg(c),g=Sc(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":!u&&l||u&&!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?bg(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.kd(a)){var b=Nc(Z(this,"card")+Ag(a));b&&(O(a,Z(this,"active")),O(b,Z(this,"card-visible")),Ox(b),this.g=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(fd(b.cardMask),b.cardMask=null))}};function VI(a){a.g&&a.hide(a.g)}f.CB=function(a,b){var c=this.kd(a);if(c){if(b){var d=this.md(c);if(!d)return;d.innerHTML=b}qg(c,Z(this,"active"))&&(c=SI(this,a,c),TI(this,a,c),Nx(c),UI(c))}};
f.md=function(a){var b=a.cardContentNode;if(!b){var c=Z(this,"content"),d=Z(this,"card-content");(b=(b=this.Z(a,"card-id"))?Nc(b):H(c,a))||(b=document.createElement("div"));var e=b;O(e,c);N(e,d);a.cardContentNode=b}return b};
function UI(a){var b=a.cardMask;b||(b=document.createElement("iframe"),b.src='javascript:""',rg(b,["yt-uix-card-iframe-mask"]),a.cardMask=b);b.style.position=a.style.position;b.style.top=a.style.top;b.style.left=a.offsetLeft+"px";b.style.height=a.clientHeight+"px";b.style.width=a.clientWidth+"px";document.body.appendChild(b)};function WI(){lF.call(this);this.b={};this.j={}}w(WI,RI);da(WI);f=WI.prototype;f.Ld="clickcard";f.register=function(){nF(this,"click",this.uE,"target");nF(this,"click",this.tE,"close")};f.uE=function(a,b,c){b=td(c.target,"button");b&&b.disabled||(a=(b=this.Z(a,"card-target"))?Nc(b):a,b=this.kd(a),this.Z(b,"disabled")||(qg(b,Z(this,"active"))?(this.hide(a),O(b,Z(this,"active"))):(this.show(a),N(b,Z(this,"active")))))};
f.show=function(a){WI.G.show.call(this,a);var b=this.kd(a);if(!wg(b,"click-outside-persists")){var c=la(a);if(this.b[c])return;b=Q(document,"click",t(this.BB,this,a));this.b[c]=b}a=Q(window,"resize",t(this.CB,this,a,void 0));this.j[c]=a};f.hide=function(a){WI.G.hide.call(this,a);a=la(a);var b=this.b[a];b&&(Rg(b),this.b[a]=null);if(b=this.j[a])Rg(b),this.j[a]=null};f.BB=function(a,b){vd(b.target,"yt-uix"+(this.Ld?"-"+this.Ld:"")+"-card")||this.hide(a)};f.tE=function(a){(a=vd(a,Z(this,"card")))&&this.hide(a.cardTargetNode)};function XI(){lF.call(this)}w(XI,RI);da(XI);f=XI.prototype;f.Ld="hovercard";f.register=function(){nF(this,"mouseenter",this.iE,"target");nF(this,"mouseleave",this.kE,"target");nF(this,"mouseenter",this.jE,"card");nF(this,"mouseleave",this.lE,"card")};
f.iE=function(a){if(YI!=a){YI&&(this.hide(YI),YI=null);var b=t(this.show,this,a),c=parseInt(this.Z(a,"delay-show"),10),b=L(b,-1<c?c:200);ug(a,"card-timer",b.toString());YI=a;a.alt&&(ug(a,"card-alt",a.alt),a.alt="");a.title&&(ug(a,"card-title",a.title),a.title="")}};
f.kE=function(a){var b=parseInt(this.Z(a,"card-timer"),10);M(b);this.kd(a).isCardHidable=!0;b=parseInt(this.Z(a,"delay-hide"),10);b=-1<b?b:200;L(t(this.CD,this,a),b);if(b=this.Z(a,"card-alt"))a.alt=b;if(b=this.Z(a,"card-title"))a.title=b};f.CD=function(a){this.kd(a).isCardHidable&&(this.hide(a),YI=null)};f.jE=function(a){a&&(a.cardRootNode.isCardHidable=!1)};f.lE=function(a){a&&this.hide(a.cardTargetNode)};var YI=null;function ZI(a,b,c){this.Hc=a;this.o=!1;this.g=new Ph;this.A=Sg(this.Hc,"click",t(this.HA,this),"yt-dialog-dismiss");$I(this);this.j=b;this.k=c}var aJ={LOADING:"loading",CE:"content",IK:"working"};function bJ(a,b){a.ga()||a.g.subscribe("post-all",b)}function $I(a){a=H("yt-dialog-fg-content",a.Hc);var b=[];Ob(aJ,function(a){b.push("yt-dialog-show-"+a)});sg(a,b);N(a,"yt-dialog-show-content")}f=ZI.prototype;
f.show=function(){if(!this.ga()){document.activeElement&&document.activeElement!=document.body&&document.activeElement.blur();this.b||(this.b=Nc("yt-dialog-bg"),this.b||(this.b=$c("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(!d||!a){a=0;break t}b=Sc(b).height;if(Tc(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";Nx(this.b);Gg(this.Hc);a=cJ(this);dJ(a);this.j||Q(document,"keydown",t(this.uq,this));a=this.Hc;d=Vh("player-added",this.yA,this);ug(a,"player-ready-pubsub-key",d);this.k&&Q(document,"click",t(this.wq,this));Nx(this.Hc);N(document.body,"yt-dialog-active");VI(WI.getInstance());VI(XI.getInstance())}};function eJ(){var a=Oc("yt-dialog");return jb(a,function(a){return Mx(a)})}f.yA=function(){Gg(this.Hc)};
function cJ(a){var b=Pc("iframe",null,a.Hc);z(b,function(a){var b=wg(a,"onload");b&&(b=q(b))&&Q(a,"load",b);if(b=wg(a,"src"))a.src=b},a);return vb(b)}function dJ(a){z(document.getElementsByTagName("iframe"),function(b){-1==fb(a,b)&&N(b,"iframe-hid")})}function fJ(){var a=Oc("iframe-hid");z(a,function(a){O(a,"iframe-hid")})}f.HA=function(a){a=a.currentTarget;a.disabled||(a=wg(a,"action")||"",gJ(this,a))};
function gJ(a,b){if(!a.ga()){a.g.H("pre-all");a.g.H("pre-"+b);Ox(a.Hc);VI(WI.getInstance());VI(XI.getInstance());eJ()||(Ox(a.b),O(document.body,"yt-dialog-active"),Hg(),fJ());a.j||Ug(document,"keydown",t(a.uq,a));a.k&&Ug(document,"click",t(a.wq,a));var c=a.Hc;if(c){var d=wg(c,"player-ready-pubsub-key");d&&(Xh(d),xg(c,"player-ready-pubsub-key"))}a.g.H("post-all");Yh("yt-ui-dialog-hide-complete",a);"cancel"==b&&Yh("yt-ui-dialog-cancelled",a);a.g&&a.g.H("post-"+b)}}
f.uq=function(a){L(t(function(){27==a.keyCode&&gJ(this,"cancel")},this),0)};f.wq=function(a){"yt-dialog-base"==a.target.className&&gJ(this,"cancel")};f.ga=function(){return this.o};f.dispose=function(){Mx(this.Hc)&&gJ(this,"dispose");Rg(this.A);this.g.dispose();this.g=null;this.o=!0};ba("yt.ui.Dialog",ZI,void 0);function hJ(){lF.call(this);this.b=[];this.g={}}w(hJ,lF);da(hJ);f=hJ.prototype;f.Ld="button";f.cg=null;f.register=function(){nF(this,"click",this.mE);nF(this,"keydown",this.gE);nF(this,"keypress",this.hE);mF(this,"page-scroll",this.fE)};f.mE=function(a){a&&!a.disabled&&(iJ(this,a),this.click(a))};
f.gE=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=jJ(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=od(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.wE:"table"==e&&(g=this.vE);g&&kJ(this,a,b,c,t(g,this))}}};f.fE=function(){var a=this.g;if(0!=Rb(a))for(var b in a){var c=a[b],d=vd(c.activeButtonNode||c.parentNode,Z(this));if(void 0==d||void 0==c)break;lJ(this,d,c,!0)}};
function kJ(a,b,c,d,e){var g=Mx(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=mJ(a,c))?(b=id(d),"a"==b.tagName.toLowerCase()?window.location=b.href:Wg(b,"click")):h&&nJ(a,b):g?27==d.keyCode?(mJ(a,c),nJ(a,b)):e(b,c,d):(a=qg(b,Z(a,"reverse"))?38:40,d.keyCode==a&&(Wg(b,"click"),d.preventDefault()))}f.hE=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=jJ(this,a),Mx(a)&&c.preventDefault())};function mJ(a,b){var c=Z(a,"menu-item-highlight"),d=H(c,b);d&&O(d,c);return d}
function oJ(a,b,c){N(c,Z(a,"menu-item-highlight"));b.setAttribute("aria-activedescendant",c.getAttribute("id"))}f.vE=function(a,b,c){var d=mJ(this,b);b=Dg("table",b);var e=Dg("tr",b),e=Pc("td",null,e).length;b=Pc("td",null,b);d=pJ(d,b,e,c);-1!=d&&(oJ(this,a,b[d]),c.preventDefault())};f.wE=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=mJ(this,b);b=hb(Pc("li",null,b),Mx);d=pJ(d,b,1,c);oJ(this,a,b[d]);c.preventDefault()}};
function pJ(a,b,c,d){var e=b.length;a=fb(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 qJ(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 lJ(a,b,c,d){var e=vd(b,Z(a,"group")),g=!!a.Z(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=dg(b);if(qg(b,Z(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}qg(b,"flip")&&(qg(b,Z(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;a.Z(b,"button-has-sibling-menu")?p=Qf(e):a.Z(b,"button-menu-root-container")&&(p=rJ(a,b));rc&&!Cc("8")&&(p=null);var s;p&&(s=dg(p),s=new yf(-s.top,s.left,s.top,-s.left));p=new E(0,1);qg(b,Z(a,"center-menu"))&&(p.x-=Math.round((bg(c).width-bg(b).width)/
2));d&&(p.y+=Uc(document).y);if(a=qJ(a,b))b=bg(c),a.style.width=b.width+"px",a.style.height=b.height+"px",eF(e,g,a,h,p,s,65),d&&Rx(a,"position","fixed");eF(e,g,c,h,p,s,65)}function rJ(a,b){if(a.Z(b,"button-menu-root-container")){var c=a.Z(b,"button-menu-root-container");return vd(b,c)}return document.body}
f.Ht=function(a){if(a){var b=jJ(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.Z(a,"button-has-sibling-menu")?c=a.parentNode:c=rJ(this,a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=qJ(this,a);d&&c.appendChild(d);(c=!!this.Z(a,"button-menu-fixed"))&&(this.g[Ag(a).toString()]=b);lJ(this,a,b,c);Zh("yt-uix-button-menu-before-show",a,b);Nx(b);this.ag(a,
"button-menu-action",!0);N(a,Z(this,"active"));b=t(this.Or,this,a,!1);c=t(this.Or,this,a,!0);d=t(this.IA,this,a,void 0);this.cg&&jJ(this,this.cg)==jJ(this,a)||sJ(this);Yh("yt-uix-button-menu-show",a);Rg(this.b);this.b=[Q(document,"click",c),Q(document,"contextmenu",b),Q(window,"resize",d)];this.cg=a}}};
function nJ(a,b){if(b){var c=jJ(a,b);if(c){a.cg=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Ox(c);a.ag(b,"button-menu-action",!1);var d=qJ(a,b),e=Ag(c).toString();delete a.g[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=vd(b,Z(a,"group")),g=[Z(a,"active")];
e&&g.push(Z(a,"group-active"));sg(b,g);Yh("yt-uix-button-menu-hide",b);Rg(a.b);a.b.length=0}}f.IA=function(a,b){var c=jJ(this,a);if(c){b&&(c.innerHTML=b);var d=!!this.Z(a,"button-menu-fixed");lJ(this,a,c,d)}};
f.Or=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=vd(c,Z(this));if(d){var d=jJ(this,d),e=jJ(this,a);if(d==e)return}var d=vd(c,Z(this,"menu")),e=d==jJ(this,a),g=qg(c,Z(this,"menu-item")),h=qg(c,Z(this,"menu-close"));if(!d||e&&(g||h))if(nJ(this,a),d&&b&&this.Z(a,"button-menu-indicate-selected")){if(a=H(Z(this,"content"),a))Ic&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],sd(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,
""),b=b.replace(/\u200B/g,""),Ic||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),nd(a,b);tJ(this,d,c)}};function tJ(a,b,c){var d=Z(a,"menu-item-selected");a=Oc(d,b);z(a,function(a){O(a,d)});N(c.parentNode,d)}function jJ(a,b){if(!b.widgetMenu){var c=a.Z(b,"button-menu-id"),c=c&&Nc(c),d=Z(a,"menu");c?rg(c,[d,Z(a,"menu-external")]):c=H(d,b);b.widgetMenu=c}return b.widgetMenu}
function iJ(a,b){if(a.Z(b,"button-toggle")){var c=vd(b,Z(a,"group"));if(c&&a.Z(c,"button-toggle-group")){var d=a.Z(c,"button-toggle-group"),c=Oc(Z(a),c),e=Z(a,"toggled"),g=qg(b,e);z(c,function(a){a!=b||"optional"==d&&g?O(a,e):N(b,e)})}else tg(b,Z(a,"toggled"))}}f.click=function(a){if(jJ(this,a)){var b=jJ(this,a),c=vd(b.activeButtonNode||b.parentNode,Z(this));c&&c!=a?(nJ(this,c),L(t(this.Ht,this,a),1)):Mx(b)?nJ(this,a):this.Ht(a);a.focus()}this.ag(a,"button-action")};
function sJ(a){a.cg&&nJ(a,a.cg)};function uJ(){lF.call(this)}w(uJ,lF);da(uJ);f=uJ.prototype;f.Qc=null;f.wj=null;f.Ld="overlay";f.register=function(){nF(this,"click",this.Kt,"target");nF(this,"click",this.hide,"close");vJ(this)};
f.Kt=function(a){if(!this.Qc||!Mx(this.Qc.Hc)){var b=this.kd(a);a=wJ(b,a);b||(b=a?a.overlayParentNode:null);if(b&&a){var c=!!this.Z(b,"disable-shortcuts")||!1;this.Qc=new ZI(a,c);this.wj=b;var d=H("yt-dialog-fg",a);if(d){var e=this.Z(b,"overlay-class")||"",g=this.Z(b,"overlay-style")||"default",h=this.Z(b,"overlay-shape")||"default",e=e?e.split(" "):[];e.push(Z(this,g));e.push(Z(this,h));rg(d,e)}this.Qc.show();vJ(this);c||(c=t(function(a){qg(a.target,"yt-dialog-base")&&xJ(this)},this),a=H("yt-dialog-base",
a),this.b=Q(a,"click",c));this.ag(b,"overlay-shown");VI(WI.getInstance());sJ(hJ.getInstance())}}};function vJ(a){a.g||(a.g=Vh("yt-uix-overlay-hide",yJ));a.Qc&&bJ(a.Qc,function(){var a=uJ.getInstance();a.wj=null;a.Qc.dispose();a.Qc=null})}function xJ(a){if(a.Qc){var b=a.wj;gJ(a.Qc,"overlayhide");a.ag(b,"overlay-hidden");a.wj=null;a.b&&(Rg(a.b),a.b=null);a.Qc=null}}
function wJ(a,b){var c;if(a)if(c=H("yt-dialog",a)){var d=Nc("body-container");d&&(d.appendChild(c),a.overlayContentNode=c,c.overlayParentNode=a)}else c=a.overlayContentNode;else b&&(c=vd(b,"yt-dialog"));return c}f.md=function(a){return H("yt-dialog-content",a.overlayContentNode||a)};f.hide=function(){Yh("yt-uix-overlay-hide")};function yJ(){xJ(uJ.getInstance())}f.show=function(a){this.Kt(a)};function zJ(a){this.g=a;this.b=[];this.b.push(Vh("yt-uix-load-more-success",this.j,this))}w(zJ,Kh);var AJ=!1;zJ.prototype.j=function(){var a={},b=ub(vb(Oc("spacecast-item")),vb(Oc("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=Ub(a),c=v();JI(this.g,b,t(this.k,this,a,c))};
zJ.prototype.k=function(a,b,c){b=v()-b;var d=0;c&&c.ids&&(BJ(),z(c.ids,function(b){z(a[b],function(a){N(a,"spacecast-cached")})}),d=c.ids.length);gI(Yd({a:"spacecast",module:"highlight",count:Ub(a).length,cached:d,"cache-latency":b}));d&&CJ()};function CJ(){if(Te("INIT_SPACECAST_PROMO")&&!AJ){var a=H("spacecast-promo-overlay");a&&(AJ=!0,uJ.getInstance().show(a))}}function BJ(){var a=q("yt.player.getPlayerByElement");a&&a("player-api")}
zJ.prototype.J=function(){this.g=null;this.b.length&&(Xh(this.b),this.b=[]);zJ.G.J.call(this)};function DJ(){this.j=this.g=this.b=null}w(DJ,Kh);da(DJ);DJ.prototype.init=function(a){this.b||(this.b=new PI(a||null),this.g=new II(this.b),this.j=new zJ(this.g))};DJ.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);DJ.G.J.call(this);delete DJ.Kb};function EJ(a){pu.call(this,a);this.ic=this.va="spacecast";this.g=null}w(EJ,pu);f=EJ.prototype;f.Ja=function(){return!!this.b.getVideoData().Ra};function FJ(a){return a.getVideoData().Ra?new EJ(a):null}f.create=function(){EJ.G.create.call(this);var a=this.b.getVideoData().Ra,b=DJ.getInstance();b&&b.init(a);this.g=b;this.load()};f.destroy=function(){EJ.G.destroy.call(this);this.g=null};
f.load=function(){EJ.G.load.call(this);var a=this.b.getVideoData().videoId,b=this.g.g,c=v(),c=t(this.DA,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),MI("meta","prefetch",{v:a})):OI(b,a,c)};f.DA=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=GJ(this,LI(this.g.b),e,g))d=this.b.getVideoData(),d.da=c,bs(d),this.b.wp("auto"),d=1}}ru(this);gI(Yd({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))};
function GJ(a,b,c,d){if(!b)return null;a=a.b.getVideoData();a=Vr(a.xe);a=hb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=Ai(b)||"",g=Number(Qd(b)[4]||null)||null;return B(a,function(a){var b=K(K(ge(fe(ee(ze(a.url),"http"),e),g),"orig_host",Bi(a.url)),"scid",c);a.url=b.toString();return Yd(a)}).join(",")};function HJ(){var a=gc,b;if(b=lq())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");
cd(document.documentElement,c);c=Nc("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break t}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function IJ(a){VA.call(this);this.b="3D";this.element=new $A(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);R(this,this.element);cB(this.element,2300);this.priority=10;this.C=!0;bB(this.element,1)}w(IJ,VA);IJ.prototype.M=function(){this.element.wb("select")};IJ.prototype.getSelected=function(){return this.element.getSelected()};function JJ(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}}"]];W.call(this,b);b=Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.b=new WA(a,"ytp-dialog-button",b);R(this,this.b);this.b.na(b);b=Y(0,"YTP_CLOSE");this.g=new WA(a,"ytp-dialog-button",b);this.g.na(b);R(this,this.g);this.template.update({content:new LE(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(JJ,AC);function KJ(a){pu.call(this,a);Ye({YTP_THREED_HTML5_WARNING_DIALOG_TITLE:"No HTML5 3D hardware detected",YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE:"Get $BEGIN_LINKhelp setting up HTML5 3D$END_LINK, or change 3D viewing modes.",YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE:"Change 3D viewing mode"});this.g=new IJ(Du(this));R(this,this.g);bB(this.g.element,1);this.g.listen("change",this.Yz,this);this.g.listen("select",this.Zz,this);this.j=new JJ(Du(this));R(this,this.j);this.j.b.listen("click",this.Zq,
this);this.j.g.listen("click",this.ug,this)}w(KJ,pu);f=KJ.prototype;f.Bn="threeDModuleData";f.va="threed";f.ic="threed";f.create=function(){LJ(this.b.app,void 0);Eu(this,this.g);KJ.G.create.call(this)};f.destroy=function(){Fu(this,this.g);LJ(this.b.app,!0);KJ.G.destroy.call(this)};function MJ(a){return KJ.prototype.Ja(a)?new KJ(a):null}f.Ja=function(a){a=a.getVideoData();return!!a.wa||!!a.cs};
function NJ(a,b){if(a.b.getVideoData().Pf!=b)if(tu(a),HJ()){var c=a.b.app,d=Us(c);d.b.g&&d.b.g.b||(d.b.Pf=!d.b.Pf,bs(d.b),OJ(d,"r"));LJ(c)}else b&&(tu(a,a.j),bB(a.g.element,1),Gu(a))}f.Zq=function(){uu(this,"/select_3d_mode?video_id="+this.b.getVideoData().videoId)};f.Yz=function(){0==this.g.getSelected()?NJ(this,!0):NJ(this,!1)};f.Zz=function(){Gu(this);this.Zq()};function PJ(a){pu.call(this,a);Ye({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.g=new Hv(["div","ytp-ypc-clickwrap-overlay",["h2","header",Ze("YTP_YPC_START_RENTAL_HEADER")],["div","description",this.b.getVideoData().k.ypc_clickwrap_message],["button","confirm-button",Ze("YTP_YPC_START_RENTAL_BUTTON")]]);$y(this.g.K());zt(this.b,this.g.K());R(this,this.g);this.j=this.g.b["confirm-button"]}w(PJ,pu);f=PJ.prototype;f.va="ypc_clickwrap";
f.ic="ypc-clickwrap";f.Ja=function(){return js(this.b.getVideoData(),"ypc_clickwrap_module")};function QJ(a){return js(a.getVideoData(),"ypc_clickwrap_module")?new PJ(a):null}f.create=function(){PJ.G.create.call(this);this.load()};f.load=function(){PJ.G.load.call(this);Zy(this.g.K());Q(this.j,"click",t(this.UB,this))};f.unload=function(){$y(this.g.K());Vg(this.j);PJ.G.unload.call(this)};f.UB=function(){ru(this);this.destroy()};function RJ(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 SJ(){W.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"];bz(this,this.g,"click",this.hide);this.b=this.template.b["ytp-drawer-open-button"];bz(this,this.b,"click",this.show);this.na(null);this.hide()}w(SJ,W);SJ.prototype.hide=function(){N(this.element,"ytp-drawer-closed")};
SJ.prototype.na=function(a){a?(SJ.G.na.call(this,a),Zy(this.element)):$y(this.element)};SJ.prototype.show=function(){L(qa(O,this.element,"ytp-drawer-closed"),0)};SJ.prototype.J=function(){Vg(this.g);Vg(this.b);this.b=this.g=null;SJ.G.J.call(this)};function TJ(a,b){cj.call(this);this.b=new SJ;R(this,this.b);this.g=document.createElement("div");rg(this.g,["html5-stop-propagation","html5-ypc-endscreen"]);this.k=document.createElement("div");N(this.k,"html5-ypc-overlay");this.j=new Hv(["div","html5-ypc-module",["div","html5-ypc-action-heading","{{heading}}"],["div","html5-ypc-thumbnail","{{thumbnail_element}}"],["div","html5-ypc-title","{{title}}"],["div","html5-ypc-description","{{description}}"],["button","html5-ypc-purchase","{{button_label}}"]]);
R(this,this.j);this.o=this.j.b["html5-ypc-purchase"];Q(this.o,"click",t(this.A,this));nd(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.W(a)}w(TJ,cj);TJ.prototype.J=function(){TJ.G.J.call(this);this.o&&Vg(this.o);fd(this.g);fd(this.k);this.k=this.g=this.b=null};TJ.prototype.W=function(a){this.b.W(a);this.b.na(this.j.K());a.appendChild(this.g)};
function UJ(a){var b=a.j.K();a.g.appendChild(b);a.b.na(null);Zy(a.g)}TJ.prototype.A=function(){this.H("ypcContentRequest")};function VJ(a){pu.call(this,a);this.j=this.g=null;this.k=NaN}w(VJ,pu);f=VJ.prototype;f.va="ypc";f.ic="ypc";f.Ja=function(){return js(this.b.getVideoData(),"ypc_module")};function WJ(a){return js(a.getVideoData(),"ypc_module")?new VJ(a):null}f.create=function(){VJ.G.create.call(this);this.g=new RJ(this.b.getVideoData());L(t(this.load,this),0)};f.destroy=function(){VJ.G.destroy.call(this);this.g=null};
f.load=function(){if(this.g){VJ.G.load.call(this);var a=this.b.getVideoData();if(this.g.videoId&&!a.ya)this.b.pq({video_id:this.g.videoId,ypc_preview:1});else{var b=H("html5-video-container",At(this.b));this.j=new TJ(b,this.g);this.j.subscribe("ypcContentRequest",this.Mx,this);this.g.videoId&&ed(this.b.app.g.F,this.j.k,0);bI(this.b.R())&&(b=new fu(2147483647,2147483647,{priority:2}),this.Kf(b));this.j.b.show();M(this.k);this.k=L(t(function(){this.j.b.hide()},this),1E4);this.g.videoId?a.ya&&ru(this):
UJ(this.j)}}};f.unload=function(){qu(this);Oh(this.j);this.j=null;VJ.G.unload.call(this)};f.Dc=function(a){VJ.G.Dc.call(this,a);UJ(this.j)};f.jd=function(a){VJ.G.jd.call(this,a);a=this.j;$y(a.g);a.b.na(a.j.K())};f.Mx=function(){if(this.g.b)"embedded"==this.b.R().ba?nI(this.g.b):window.location=$d(this.g.b,{})+"";else if(this.g.k){var a=q("yt.www.watch.player.handleEndPreview");a&&(this.b.isFullscreen()&&Lz(this.b.app),a(this.g.k))}};function XJ(a,b,c){this.o=Q(a,"click",t(this.F,this));this.A=Q(a,"dblclick",t(this.C,this));this.D=b;this.j=c;this.g=new ew(this.B,200,this);R(this,this.g);this.b=!0;this.k=null}w(XJ,Kh);XJ.prototype.F=function(a){0!=this.g.qa?(this.g.stop(),this.j(a),this.b=!1):(this.k=a,this.g.start(),this.b=!0)};XJ.prototype.C=function(a){this.b&&this.j(a)};XJ.prototype.B=function(){this.D(this.k);this.b=!0};XJ.prototype.J=function(){Rg(this.o);Rg(this.A);XJ.G.J.call(this)};var YJ=new F(1294,630),ZJ=new F(1320,870),$J=new F(1280,720),aK=new F(854,480),bK=new F(640,360);function cK(a){var b;b=ph?new F(window.innerWidth,window.innerHeight):Sc(window);return a.tb?b:a.rd?b.width>=ZJ.width&&b.height>=ZJ.height?$J.clone():aK.clone():b.width>=YJ.width&&b.height>=YJ.height?aK.clone():bK.clone()};function dK(a){W.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.b=new W(["input","html5-modal-panel-input",{type:"text",readonly:"readonly"}]);R(this,this.b);uc&&this.b.K().removeAttribute("readonly");this.b.listen("click",this.j,this);var b=Y(0,"YTP_CLOSE");this.g=new WA(a,"ytp-dialog-button",b);this.g.na(b);R(this,this.g);this.template.update({content:this.b,buttons:this.g});this.listen("contextmenu",
this.k)}w(dK,AC);dK.prototype.k=function(a){a.stopPropagation()};dK.prototype.j=function(){this.b.K().select()};function eK(a,b,c){W.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.X=a;this.X.subscribe("internalvideodatachange",this.Nq,this);this.j=new cw(this);this.j.listen(b,"contextmenu",
this.Fz);this.b=new cw(this);this.g=new dK(c);R(this,this.g);this.g.g.listen("click",this.Ez,this);a={xz:this.Gz,yz:this.Hz,zz:t(this.Sq,this,!1),Az:t(this.Sq,this,!0),Cz:this.Jz,Dz:this.Kz,Bz:this.Iz};for(var d in a)fK(this,d,a[d]);this.hide()}w(eK,W);f=eK.prototype;f.Ez=function(){this.X.g.Sg()};function gK(a,b){var c=a.g;c.b.K().value=b;c.b.K().focus();L(t(c.j,c),100);a.X.g.Sg(a.g)}
function fK(a,b,c){a.j.listen(a.template.b[Qv[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.hide();a=b.replace("CONTEXT_MENU_","").toLowerCase();oH(this.X,"contextmenu."+a)})}f.Nq=function(a,b){Lx(this.template.b["html5-context-menu-copy-embed-html"],b.Lq)};f.Sq=function(a){gK(this,at(this.X,a))};
f.Hz=function(){var a=Te("EMBED_HTML_TEMPLATE"),b=Te("EMBED_HTML_URL"),c=this.X.g.qd(),d=this.X.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);gK(this,a)};f.Iz=function(a){hK(this.X,a.target.getAttribute("href"))};
f.Jz=function(){var a=Us(this.X);a&&a.Ao("feedback");var a=this.X.R(),b=!0;"detailpage"==a.ba&&(b=q("yt.player.exports.feedbackStart")("59",{html5:!0,player:!0}));b&&(this.X.pauseVideo(),window.open(iK(a,this.X.getVideoData())))};f.Gz=function(){gK(this,bt(this.X,!0))};f.Kz=function(){kt(this.X.g)};f.Fz=function(a){a.preventDefault();var b=Lg(a);a=Mg(a);var c=Rf(document.body);gF(new E(b,a),this.element,0,null,c,5);this.show()};f.SB=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.TB),this.b.listen(document,"contextmenu",this.SB),eK.G.show.call(this))};f.TB=function(a){2==a.button||a.target&&ld(this.element,a.target)||this.hide()};f.hide=function(){eK.G.hide.call(this);this.b.removeAll()};f.J=function(){this.j.removeAll();this.b.removeAll();this.X.ha("internalvideodatachange",this.Nq,this);this.X=null;eK.G.J.call(this)};function jK(a,b){yI.call(this,a,b.R());this.X=b;this.D=2;this.I=this.C=!1;this.k.g.listen("click",this.kz,this);this.k.b.listen("click",this.jz,this);this.X.subscribe("presentingplayerstatechange",this.Rd,this)}w(jK,yI);f=jK.prototype;f.update=function(a){jK.G.update.call(this,a);kK(this,a.im);a&&a.vp&&!this.X.o?(a=this.k,a.b.W(a.element),a.g.W(a.element)):(a=this.k,a.g.ad(),a.b.ad())};f.pi=function(a){var b=qg(this.element,"show-share");this.H("share-click");b||jK.G.pi.call(this,a)};
f.Zk=function(a){this.H("title-click",a)};f.Nk=function(){var a=qg(this.element,"show-more-info");this.H("info-click");if(a)this.I&&this.X.Od();else{jK.G.Nk.call(this);var b=this.X.getPlayerState();this.I=V(b,8)&&!V(b,2);this.X.pauseVideo()}return!a};f.kz=function(){lK(this,0)};f.jz=function(){lK(this,1)};f.Rd=function(a){V(a.state,8)&&O(this.element,"show-more-info")};
function lK(a,b){if(!a.C&&(a.D==b&&(b=2),kK(a,b),a.b)){if("detailpage"!=a.j.ba){a.C=!0;var c={yb:a.b.yb,onSuccess:t(function(){this.C=!1},a),onError:t(function(){this.C=!1},a),Ta:a.j.Ta,$a:a.j.$a};Rq(a.b.videoId,b,c)}a.X.H("RATE_SENTIMENT",{videoId:a.b.videoId,sentiment:b})}}function kK(a,b){a.D=b;P(a.element,"sentiment-like",0==b);P(a.element,"sentiment-dislike",1==b)}f.vn=function(a){hK(this.X,a)};f.Lt=function(){nH(this.X)};
f.J=function(){this.X.ha("presentingplayerstatechange",this.Rd,this);this.X=null;jK.G.J.call(this)};function mK(a,b,c,d,e,g,h,k){this.o=[];z(Ib(b),function(b){this.o.push(Q(a,b,t(this.rv,this)))},this);z(Ib(d),function(b){this.o.push(Q(a,b,t(this.qv,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=mK.prototype;f.rv=function(a){M(this.b);this.b=0;this.j=L(t(this.AB,this,a),this.D)};f.qv=function(a){M(this.j);this.j=0;this.b=L(t(this.yB,this,a),this.B)};f.AB=function(a){this.g||this.k||(this.k=!0,this.F.call(this.A||m,a))};
f.yB=function(a){!this.g&&this.k&&(this.k=!1,this.C.call(this.A||m,a))};f.dispose=function(){this.g=!0;M(this.j);M(this.b);Rg(this.o)};f.ga=function(){return this.g};function nK(){W.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.b=this.template.b["ytp-tooltip-body"]}w(nK,W);nK.prototype.hide=function(){nK.G.hide.call(this);Mf(this.b,0)};nK.prototype.J=function(){dd(this.b);this.b=null;nK.G.J.call(this)};function oK(a,b){this.b={};this.Zm=a;this.g=b}w(oK,Kh);
oK.prototype.Pg=function(a,b){var c,d=new mK(a,"mouseover",function(){if(this.Zm){var d=new nK;d.W(this.Zm);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||wg(a,"tooltip")||"";if(r(d)){var g=ad(d),d=$c("span");d.className="ytp-text-tooltip";d.appendChild(g)}Mv(c.template,"content",d);var g=!!wg(a,"tooltip-below"),d=c,h=bg(a),h=new E(h.width/2,g?h.height:0),k=Sf(a),h=new E(k.x+h.x,k.y+h.y),g=!!g;P(d.element,"ytp-tooltip-below",g);if(k=Qf(d.element))var l=Sf(k),p=kg(k),h=Lb(h,new E(l.x+p.left,l.y+p.top));
gF(h,d.element,g?1:0);d.show();var p=bg(d.b),g=p.width/2*-1,s=Sc(window),u=Uc(document),h=u.x,s=s.width+u.x,u=h,y=s;k&&(k=bg(k),u=l.x,y=k.width+l.x);k=Sf(d.b);l=k.x+g;k=k.x+p.width+g;l<Math.max(h,u)?g-=l-Math.max(h,u):k>Math.min(s,y)&&(g-=k-Math.min(s,y));Mf(d.b,g)}},["mouseout","mousedown"],function(){c&&(c.hide(),Mh(c),c=null)},this,10,50);this.b[la(a)]=d};
oK.prototype.yf=function(a,b,c){var d=this.g;this.Pg(a,function(){if(d){var a="detailpage"==d.ba;if(!d.da||a)return c}else return c;var g=d.da,h=d.xa,a=$c("div");N(a,"ytp-identity-tooltip");var k=$c("img");k.src=h;h=$c("span");g=ad(Ze(b,{USER_NAME:g}));cd(h,g);cd(a,k,h);return a})};oK.prototype.zn=function(a){a=la(a);Mh(this.b[a]);this.b[a]=null};oK.prototype.J=function(){this.g=this.Zm=null;for(var a in this.b)Mh(this.b[a]);this.b={};oK.G.J.call(this)};function pK(a){rH.call(this,a);this.o=this.Ca=this.k=this.O=null;this.dc=this.za=!1}w(pK,rH);pK.b=50;pK.g=200;f=pK.prototype;f.Wg=function(){pK.G.Wg.call(this);this.app.subscribe("clearvideooverlays",this.xD,this)};
f.ct=function(){var a=this.app.O.assets;if(a.css&&!mq()){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");Qc(c,a);b||document.getElementsByTagName("head")[0].appendChild(c);this.Br(pK.g)}else this.za=!0;this.H("templateready")};f.Br=function(a){0>=a||mq()?(this.za=!0,this.element&&Zy(this.element)):L(t(this.Br,this,a-1),pK.b)};f.Rg=function(){this.za||$y(this.element);pK.G.Rg.call(this)};
f.Sn=function(a){pK.G.Sn.call(this,a);a.Vb||this.addClass("hide-info-bar");a.qc&&this.Zf()};
f.An=function(a){pK.G.An.call(this,a);var b=new W(["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.W(this.element);this.k=new eK(this.app,this.element,this.j);R(this,this.k);this.k.W(document.body);this.o=new jK(this.j,this.app);this.o.W(this.element);R(this,this.o);a.bc&&N(this.k.K(),"house-brand")};
f.an=function(){this.app.R().Jf?this.Ca||(this.Ca=new XJ(this.g,t(this.$m,this),t(this.Es,this)),R(this,this.Ca)):pK.G.an.call(this)};f.Mj=function(a){pK.G.Mj.call(this,a);a?Zy(this.o.K()):$y(this.o.K())};f.Gj=function(a){pK.G.Gj.call(this,a);this.o&&this.o.update(a);var b=this.app;if(b.b.$k?0:b.getVideoData().oa||b.b.Fc){if(a=a.oa)this.O.src=a;Nx(this.O)}};
f.Mn=function(){pK.G.Mn.call(this);var a=this.app.R();a.hc||(bz(this,this.element,"click",t(this.Us,this,!1),void 0,void 0,!0),bz(this,this.element,"keydown",t(this.Us,this,!0),void 0,void 0,!0),bz(this,this.element,"focus",this.cD,void 0,void 0,!0));a.Xk||(bz(this,this.element,"keypress",this.gD),bz(this,this.element,"keydown",this.fD));bz(this,this.O,"click",this.Ts);this.o.subscribe("title-click",t(this.Ts,this));this.o.subscribe("share-click",t(this.eD,this));this.o.subscribe("info-click",t(this.dD,
this))};
f.gD=function(a){this.app.b.fg=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.fg=v(),Os(this.app),a.preventDefault(),b=!0);98==c&&(this.app.oe("onBackgroundChange"),b=!0);111==c&&(this.app.oe("onTextOpacityChange"),b=!0);119==c&&(this.app.oe("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.app.oe("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.app.oe("onFontSizeDecrease"),b=!0;32==c&&yH(a)&&(zH(this),fH(this.app),a.preventDefault(),
b=!0);48<=c&&57>=c&&(Js(this.app,(c-48)/10*Ks(this.app)),a.preventDefault(),b=!0);this.app.oe("onKeyPress",a);this.app.R().Ab()&&this.app.Uh("onKeyPress",{keyCode:c,handled:b})};
f.fD=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,mH(b,{volume:b.D.volume+5,muted:!1});else if(40==c)b=this.app,mH(b,{volume:b.D.volume-5,muted:!1});else if(37==c){var d=this.app,b=-1*b;Js(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.app,Js(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(Js(this.app,0),b=!0);35==c&&(Js(this.app,Infinity),b=!0);27==c&&(Yg()?(eH(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.Sg(),b=!0));b&&a.preventDefault();this.app.R().Ab()&&this.app.Uh("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.app.R().tb})};f.Ts=function(a){a.preventDefault();nH(this.app)};f.eD=function(){this.app.Vh();if("detailpage"==this.app.R().ba){eH(this.app,!1);var a=this.app,b=a.getVideoData();a.H("SHARE_CLICKED",{videoId:b.videoId,listId:b.La,feature:"player_"+a.b.ba})}};f.dD=function(){this.app.Vh()};
f.xD=function(){var a=this.o;O(a.element,"show-share");O(a.element,"show-more-info")};f.Us=function(a){this.dc=a};f.cD=function(){P(this.element,"ytp-keyboard-focus",this.dc)};f.Jm=function(a){pK.G.Jm.call(this,a);this.k&&(a?this.k.W(this.element):this.k.W(document.body),this.k.hide());a&&this.element.focus()};f.lm=function(){pK.G.lm.call(this);if(!this.app.R().ac){var a=new oK(this.element,this.app.R());R(this,a);this.j.b=a;var b=Oc("ytp-tooltip-anchor",this.element);z(b,function(b){a.Pg(b)})}};
f.Tb=function(){var a=this.app.R(),b=Us(this.app)&&2==Us(this.app).getPlayerType();return"detailpage"==a.ba&&!b&&a.b.F?cK(a):pK.G.Tb.call(this)};f.Qs=function(){var a=this.Tb();this.app.R().Qd&&(a=a.clone(),a.height+=3);return a};f.J=function(){pK.G.J.call(this);Vg(this.O);this.O=null};function qK(a){this.k=Math.exp(Math.log(.5)/a);this.g=this.j=0}qK.prototype.b=function(a,b){var c=Math.pow(this.k,a);this.g=b*(1-c)+c*this.g;this.j+=a};qK.prototype.o=function(){return this.g/(1-Math.pow(this.k,this.j))};function rK(a){this.g=window.Float32Array?new Float32Array(a):Array(a);this.b=a-1}rK.prototype.add=function(a){this.b=(this.b+1)%this.g.length;this.g[this.b]=a};rK.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 sK(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=[]}sK.prototype.b=function(a,b){tK(this,"index");this.j.push({index:this.D++,weight:a,value:b});this.g+=a;for(tK(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 uK(a,b){tK(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}
sK.prototype.o=function(){return this.A?(uK(this,this.k-this.A)+uK(this,this.k)+uK(this,this.k+this.A))/3:uK(this,this.k)};function tK(a,b){a.C!=b&&(a.C=b,Eb(a.j,b))};function vK(a){this.b=a;this.A=this.D=this.F=0;this.M=new rK(100);this.I=0;this.B=new sK(16,.6);this.C=new qK(4);this.b.j?this.j=new qK(this.b.g):this.j=new sK(this.b.g,.5,.1);this.g=this.o=this.k=0;a=si("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 wK(a,b,c){a.b.b||(b=Math.max(b,.05),a.j.b(b,c/b),xK(a))}
function yK(a,b,c){a.B.b(1,c);1E4<v()-a.A&&zK(a);0==a.k&&(a.o=b/1E3);a.k++}function AK(a,b,c){isNaN(c)||(a.D+=c);isNaN(b)||(a.F+=b/1E3);xK(a)}function BK(a,b,c){b=Math.max(b,8192);a.C.b(1,c/b);1E4<v()-a.A&&zK(a)}function CK(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 DK(a){return a.C.o()||0}function EK(a){a=a.j.o()*a.b.o-a.b.A;return 0<a?a:1}function FK(a){var b={};b.delay=CK(a);b.tailDelay=DK(a);b.byterate=EK(a);return b}
function zK(a){var b=FK(a);pi("yt-player-bandwidth",b,2592E3);a.A=v()}function xK(a){var b=v();500<b-a.I&&(a.M.add(1/(1/EK(a)+DK(a))),a.I=b)};function GK(){this.g=17;this.k=-1;this.B=.5;this.C=this.b=this.j=!1;this.A=0;this.o=1};function HK(){this.b=[];this.k={};this.B={};this.C={};this.g=this.o=null;this.j=[];this.A=null}w(HK,Kh);HK.prototype.Xq=function(a){if(this.g){var b;var c=la(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);R(this,b)}}else b=null;b&&b.Ja(this.g)&&!C(this.b,b)&&(b.create(),this.b.push(b),C(this.j,b.va)&&(b.oc=this.A,b.Ki(!!b.oc)))}};
function IK(a){a.b=hb(a.b,function(a){if(!this.g||a.Sm(this.g)){try{a.destroy()}catch(c){Xe(c)}return!1}return!0},a)}function JK(a,b,c){KK(a);a.A=b;a.j=vb(c);z(a.b,function(a){0<=fb(c,a.va)&&(a.oc=b,a.Ki(!!a.oc))})}function KK(a){z(a.j,function(a){if(a=Xs(this,a))a.oc=null,a.Ki(!1)},a);a.A=null;a.j=[]}function jt(a,b){if(!b)return B(a.b,function(a){return a.va});var c=Xs(a,b);return c?c.Hj():[]}function Xs(a,b){return lb(a.b,function(a){return a.va==b})}
HK.prototype.F=function(a,b){z(this.b,function(c){c.H(a,b)})};function LK(a){var b={};z(a.b,function(a){ra(b,a.$g())});return b}HK.prototype.D=function(a,b){ra(this.C,a||null);ra(this.B,b||null)};HK.prototype.isAvailable=function(a){return(a=Xs(this,a))?a.kk:!1};function MK(a){this.b={};for(var b=0;b<a.length;b++){var c=a[b];this.b[c.b]=c}}function NK(a){a=Tb(a.b);Cb(a,function(a,c){return a.b-c.b});return a};function OK(a,b,c){this.j=a;this.b=b;this.k=!!c.Ue;this.g=c.ta};function PK(){this.xc={};this.g=this.Xb().b;this.b=null}f=PK.prototype;f.Xb=function(){var a=this.constructor,b;if(!(b=a.At)){var c;b=a.aE;var d=[];for(c in b)0!=c&&d.push(new OK(a,c,b[c]));c=new MK(d);b=a.At=c}return b};f.get=function(a,b){a.j.Xb();this.Xb();var c;c=a.b;var d=QK(this,c);c=this.g[c].k?d[b||0]:d;return c};f.set=function(a,b){a.j.Xb();this.Xb();RK(this,a.b,b)};f.add=function(a,b){a.j.Xb();this.Xb();SK(this,a.b,b)};
f.clear=function(a){a.j.Xb();this.Xb();a=a.b;delete this.xc[a];this.b&&delete this.b[a]};f.equals=function(a){if(!a||this.constructor!=a.constructor)return!1;for(var b=NK(this.Xb()),c=0;c<b.length;c++){var d=b[c],e=d.b;if(null!=this.xc[e]!=(null!=a.xc[e]))return!1;if(null!=this.xc[e]){var g=11==d.g||10==d.g,h=QK(this,e),e=QK(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 TK(a,b){for(var c=NK(a.Xb()),d=0;d<c.length;d++){var e=c[d],g=e.b;if(null!=b.xc[g]){a.b&&delete a.b[e.b];var h=11==e.g||10==e.g;if(e.k)for(var e=QK(b,g)||[],k=0;k<e.length;k++)SK(a,g,h?e[k].clone():e[k]);else e=QK(b,g),h?(h=QK(a,g))?TK(h,e):RK(a,g,e.clone()):RK(a,g,e)}}}f.clone=function(){var a=new this.constructor;a!=this&&(a.xc={},a.b&&(a.b={}),TK(a,this));return a};function QK(a,b){var c=a.xc[b];return null==c?null:c}function RK(a,b,c){a.xc[b]=c;a.b&&(a.b[b]=c)}
function SK(a,b,c){a.xc[b]||(a.xc[b]=[]);a.xc[b].push(c);a.b&&delete a.b[b]}function UK(a,b){a.aE=b;a.Xb=function(){return a.At||(new a).Xb()}};function VK(){PK.apply(this)}w(VK,PK);function WK(){PK.apply(this)}w(WK,PK);UK(VK,{0:{name:"MessageDetails",ff:"logs_proto.MessageDetails"},1:{name:"may_appear_in",Ue:!0,ta:11,type:WK}});UK(WK,{0:{name:"Type",TK:VK,ff:"logs_proto.MessageDetails.Type"},1:{name:"source_type",required:!0,ta:9,type:String},2:{name:"log_type",required:!0,ta:9,type:String}});var XK={BF:0,kH:1,vH:2,AF:3,JF:4,iH:5,tH:6,qH:7,rH:8,sH:9,oH:10,pH:11,LF:12,KF:13,zF:14,tF:15,jH:20,xH:21,sF:22,lH:23,wH:24,uH:25,GF:30,yH:31,FF:32,HF:33,nH:40,mH:41,MF:42,NF:43,uF:50,xF:51,CF:52,DF:53,EF:54,pF:55,qF:56,IF:57,yF:58,wF:60,vF:61,rF:70,oF:80,OF:90};function YK(){PK.apply(this)}w(YK,PK);function ZK(){PK.apply(this)}w(ZK,PK);function $K(){PK.apply(this)}w($K,PK);function aL(){PK.apply(this)}w(aL,PK);function bL(){PK.apply(this)}w(bL,PK);function cL(){PK.apply(this)}w(cL,PK);
cL.prototype.hasFeature=function(){return null!=this.xc[7]};
UK(YK,{0:{name:"YtAdType",ff:"video.YtAdType"},1:{name:"ad_namespace",required:!0,ta:14,defaultValue:0,type:{nG:0,LH:1,oG:2,DH:3,WH:4,IH:5,HH:6,It:7,FH:8,KG:9,CH:10,GH:11,AG:12,JK:13}},2:{name:"ad_format",required:!0,ta:14,defaultValue:0,type:{jG:0,vI:1,tI:2,YI:3,nK:4,wI:5,qI:6,sI:7,PK:8,QH:9}},3:{name:"ad_invideo",ta:14,defaultValue:0,type:{lG:0,ZG:1,$G:2,aH:3,EH:4,YG:5,LG:6}},4:{name:"invideo_autoplay",ta:14,defaultValue:0,type:{FG:0,KE:1}},5:{name:"ad_instream",ta:14,defaultValue:0,type:{kG:0,
hK:1,lK:2,hn:3,JG:4}},6:{name:"ad_instream_long",ta:8,type:Boolean}});UK(ZK,{0:{name:"AdId",ff:"video.AdId"},1:{name:"ad_network",ta:14,defaultValue:1,type:{OTHER:1,mF:2}},2:{name:"ad_network_name",ta:9,type:String},3:{name:"ad_id",required:!0,ta:9,type:String}});
UK($K,{0:{name:"YtAdEvent",ff:"video.YtAdEvent"},1:{name:"ad_event_type",required:!0,ta:14,defaultValue:0,type:{WF:0,cG:1,XF:2,fG:3,YF:4,ZF:5,TF:6,RF:7,zH:8,PF:9,dG:10,eG:11,QF:12,BH:13,gG:14,UF:15,AH:16,VF:17,SF:18,hG:100,iG:101,aG:130,$F:131,bG:132}},2:{name:"wall_time",required:!0,ta:2,type:Number},3:{name:"media_time",required:!0,ta:2,type:Number},4:{name:"logentry_time_usec",required:!0,ta:3,type:String},5:{name:"ad_error_type",ta:14,defaultValue:0,type:XK}});
UK(aL,{0:{name:"YtAdSlot",ff:"video.YtAdSlot"},1:{name:"slot_time",required:!0,ta:2,type:Number},2:{name:"ad_type",required:!0,ta:11,type:YK},3:{name:"ad_events",Ue:!0,ta:11,type:$K},4:{name:"ad_video_duration",ta:2,type:Number},5:{name:"ad_id",ta:9,type:String},6:{name:"slot_index",ta:5,type:Number}});
UK(bL,{0:{name:"YtVideoMetadata",ff:"video.YtVideoMetadata"},1:{name:"content_owner_ids",Ue:!0,ta:9,type:String},2:{name:"video_duration_seconds",ta:2,type:Number},3:{name:"all_content_owner_ids",ta:9,type:String}});
UK(cL,{0:{name:"YtWatchAdInfo",ff:"video.YtWatchAdInfo"},1:{name:"video_id",required:!0,ta:9,type:String},2:{name:"allowed_ads",Ue:!0,ta:11,type:YK},3:{name:"ad_slots",Ue:!0,ta:11,type:aL},4:{name:"ps",ta:9,type:String},5:{name:"el",ta:9,type:String},6:{name:"country",ta:9,type:String},7:{name:"feature",ta:9,type:String},8:{name:"blocked",ta:8,type:Boolean},9:{name:"plid",ta:9,type:String},10:{name:"video_metadata",ta:11,type:bL},11:{name:"experiment_id",Ue:!0,ta:3,type:String},12:{name:"ad_flags",
ta:4,type:String},13:{name:"all_experiment_ids",ta:9,type:String},14:{name:"no_ads_returned",ta:8,type:Boolean},15:{name:"ad_errors",Ue:!0,ta:14,defaultValue:0,type:XK},16:{name:"ad_slot_with_event",ta:11,type:aL}});function dL(a,b){tt.call(this,a,b)}w(dL,tt);f=dL.prototype;f.Mg=function(){Is(this.app,!0,this.b);this.app.Od(this.b)};f.pauseVideo=function(){this.app.pauseVideo(this.b)};f.gt=function(a,b,c){Is(this.app,!0,this.b);var d=this.app,e=this.b;d.rf(d.getCurrentTime()+a,b,c,e)};f.Ng=function(a,b){Is(this.app,!0,this.b);this.app.rf(a,b,void 0,this.b)};f.Lk=function(){Qs(this.app,this.b)};function eL(a){this.app=a;pu.call(this,a.zb)}w(eL,pu);eL.prototype.getAdState=function(){return-1};var fL={tJ:"red",WHITE:"white"};var gL={HE:"0",PJ:"1",gH:"2"};var hL={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},iL={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},jL={adunit:{Vb:!1,Vp:!1,Fc:!1},detailpage:{qc:!0}};jL.embedded={Jf:Xg(),Fc:!0};jL.profilepage={dh:!0};
var kL="blogger books docs google-live play picasaweb".split(" "),lL={blazer:{SK:"youtube_mobile",zc:!1,RE:!1,cj:!1,Zn:!1,ac:!0,qc:!1,Rk:!0,Qb:!1,Rb:!1,hc:!0},blogger:{ze:!1,og:!1,fc:!1,Vb:!1,Ic:!1,qc:!1,Sf:!1,Fc:!1,Wc:"bl"},books:{ze:!1,og:!1,fc:!1,Vb:!1,Ic:!1,qc:!0,Sf:!1,Fc:!1,Wc:"gb"},docs:{ze:!1,og:!1,fc:!1,Vb:!1,Ic:!1,qc:!1,Sf:!1,Fc:!1,Wc:"gd"},"google-live":{ze:!1,og:!1,fc:!1,Vb:!1,Ic:!1,qc:!1,Sf:!1,Fc:!1,Wc:"gl"},play:{Vb:!1,Ic:!1,qc:!1,Fc:!1,Wc:"gp"},"native":{cj:!1,Zn:!1,Qb:!0},picasaweb:{ze:!1,
og:!1,fc:!1,Vb:!1,Ic:!1,qc:!1,Sf:!1,Fc:!1,Wc:"pw"},touch:{cj:!1,Zn:!1,hc:!0}};
function mL(a){a=bc(a);this.j={};this.b=new Uq(a.fexp);this.wa=a.forced_experiments||null;this.origin=uq(this.origin,a.origin);this.Ae=uq(this.Ae,a.loaderUrl);if("adunit"!=a.el||gf(this.Ae))this.ba=a.el||this.ba;var b=jL[this.ba];b&&ra(this,b);b=a.ps;if(!C(kL,b)||this.Ab())this.ob=b||this.ob;(b=lL[this.ob])&&ra(this,b);this.bc=this.Ab()&&C(kL,this.ob);this.Ag=!(!kq().defaultPlaybackRate||qc||nh||mh||oh);if(a.use_media_volume)b=!1;else{var b=kq(),c=b.muted;b.muted=!c;b=b.muted!=c}this.Rp=b;this.Lp=
oh;if(nh||mh||qh)this.Co="blazer"!=this.ob;this.Sp="0"!=a.add_player_event_listeners;b=rq(this.Jf,a.fs);this.Jf="detailpage"==this.ba?b:b&&Xg();this.Ta=uq(this.Ta,a.authuser);this.Oi=sq(this.Oi,a.autohide,GE);this.zc=rq(this.zc,a.autoplay);this.Yl=rq(this.Yl,a.autoplayoverride);this.color=sq(this.color,a.color,fL);this.A=uq(this.A,a.content_v);this.Zl=sq(this.Zl,a.controls,gL);this.Xk=rq(this.Xk,a.disablekb);this.Ri=rq(this.Ri,a.edu_mode);this.g=uq(this.g,a.eurl);this.D=uq(this.D,a.framer);this.ca=
sq(this.ca,a.iv_load_policy,cq);this.B=uq(this.B,a.hl);this.Yp=rq(this.Yp,a.bwlogging);this.ac=rq(this.ac,a.is_html5_mobile_device);this.rd=rq(this.rd,a.player_wide);this.Zp=rq(this.Zp,a.is_playground);this.bi=rq(this.bi,a.privembed);this.aq=rq(this.aq,a.loop);this.Lf=rq(this.Lf,a.modestbranding);"red"!=this.color&&(this.Lf=!1);this.$p=rq(this.$p,a.on3g);this.$a=uq(this.$a,a.pageid);this.Xl=yq(this.Xl,a.vq);this.Kk=uq(this.Kk,a.playerapiid);this.wi=rq(this.wi,a.playsinline);this.Yk=rq(this.Yk,a.playonclick);
this.la=uq(this.la,a.cr);this.fc=rq(this.fc,a.logwatch);this.Fk=rq(this.Fk,a.canplaylive);this.Vb=rq(this.Vb,a.showinfo);this.Ic=rq(this.Ic,a.rel);this.qc=rq(this.qc,a.enablesizebutton);this.Tl=rq(this.Tl,a.ss);this.F=uq(this.F,a.theme);this.Qb=rq(this.Qb,a.use_native_controls);this.Rb=!mh&&rq(this.Rb,a.svt);this.Ab()&&(this.wk=rq(this.wk,a.retryneterr),this.$k=rq(this.$k,a.nologo));this.Qb&&(this.Lf=!0,this.ca=3);this.Si=rq(this.Si,a.ssl);if(this.yi=rq(this.yi,a.ssl_stream))this.Si=!0;if(this.hc=
rq(this.hc,a.use_tablet_controls))this.F="dark",this.Oi="blazer"==this.ob?"3":"1";b=this.tg;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 F(c,d))}this.tg=b;this.Ha=uq(this.Ha,a.attrib);this.ya=uq(this.ya,a.sk);this.protocol=this.Si?"https":"http";this.Qd="0"!=this.Zl;this.ek=rq(this.Qd,a.store_user_volume);this.Xd=rq(this.Xd,a.use_media_volume);if(b=a.BASE_YT_URL)c=(c=b&&b.match(Fe))?c[0]:"",d=cf(b)?b:"",
c!=d&&Xe(Error(b+" behavior is not consistent")),d&&(this.qb=d);if(c=b=a.gdatabaseurl)c=!!b&&-1!=b.search(Ie),d=cf(b),c!=d&&Xe(Error(b+" behavior is not consistent")),c=d;c&&(this.Ro=b);nL(this,a);b=!this.b.U;("detailpage"==this.ba||b&&"unknown"==this.g||"undefined"==this.g)&&delete this.g;this.Fc=this.Lf&&!this.Qb?!this.Vb:this.Vb||this.Qd?!1:this.Fc;b=this.zc||"detailpage"==this.ba;c=!0;this.ac&&(c=!1);nr("nintendo wiiu")&&(c=!1);this.Yl&&(c=!0);this.Rh=b&&c;this.j=a}w(mL,Kh);f=mL.prototype;
f.sf=null;f.Sp=!0;f.Jf=!0;f.Ta="";f.Oi="2";f.zc=!1;f.Yl=!1;f.qb="/";f.Ro="//gdata.youtube.com/";f.RE=!0;f.color="red";f.Zl="1";f.qf="web";f.ve="html5";f.Xk=!1;f.Ri=!1;f.cj=!0;f.Zn=!0;f.Ag=!1;f.Rp=!1;f.ba="detailpage";f.Yp=!1;f.bc=!1;f.ac=!1;f.tb=!1;f.nr=!1;f.rd=!1;f.ze=!0;f.Zp=!1;f.bi=!1;f.og=!0;f.fg=0;f.Eg=!1;f.Ae="";f.aq=!1;f.Lf=!1;f.Xl=Op;f.Kk="";f.$p=!1;f.$a="";f.ob=null;f.wi=!1;f.Lp=!1;f.wk=!1;f.Rh=!1;f.fc=!1;f.Fk=!0;f.Qd=!0;f.ek=!0;f.Xd=!1;f.Vb=!0;f.Vp=!0;f.Ic=!0;f.dh=!1;f.qc=!1;f.Sf=!0;
f.Fc=!1;f.Tl=!1;f.$k=!1;f.Co=!1;f.Qb=!1;f.Rb=!0;f.Si=!1;f.yi=!1;f.hc=!1;f.Sd=null;f.tg=null;f.Oq=null;f.Af=null;f.Pa=null;f.li=null;f.Wc="yt";f.Yk=!1;function $s(a,b){a.ra=b.get("d",a.ra);a.aa=b.get("f",a.aa)}
function nL(a,b){if(b){var c;(c=b.adformat)||(c=(c=b.attrib)&&c in hL&&c in iL?iL[c]+"_"+hL[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.Ab()||d)&&(a.k=c,a.j.adformat=b.adformat,d||(a.ba="adunit"))}}a.sf=(b&&b.adpings?yi(b.adpings):null)||a.sf;c=b.agcid;a.Ia=c;a.j.agcid=c;c=b.feature;a.C=c;a.j.feature=c;c=b.referrer;a.T=c;a.j.referrer=c;a.Ra=b.q;a.I=uq(a.I,b.cbrand);a.M=uq(a.M,b.cbr);a.L=uq(a.L,b.cbrver);a.qf=uq(a.qf,b.c);a.ve=uq(a.ve,
b.cver);a.N=uq(a.N,b.cmodel);a.O=uq(a.O,b.cnetwork);a.P=uq(a.P,b.cos);a.V=uq(a.V,b.cosver);a.o=uq(a.o,b.cplatform);a.fc=rq(a.fc,b.logwatch);a.za=tq(a.za,b.user_age);a.xa=uq(a.xa,b.user_display_image);a.da=uq(a.da,b.user_display_name);a.Ca=uq(a.Ca,b.user_gender);a.U=uq(a.U,b.eventid);a.oa=uq(a.oa,b.csi_page_type);a.Rk=rq(a.Rk,b.enablecsi)}
function oL(a){var b={};b.c=a.qf;a.ve&&(b.cver=a.ve);a.o&&(b.cplatform=a.o);a.I&&(b.cbrand=a.I);a.N&&(b.cmodel=a.N);a.O&&(b.cnetwork=a.O);a.M&&(b.cbr=a.M);a.L&&(b.cbrver=a.L);a.P&&(b.cos=a.P);a.V&&(b.cosver=a.V);return b}
function pL(a,b){switch(b.U){case 38:var c=b.videoId.indexOf(":");return $d("//play.google.com/books/volumes/"+b.videoId.slice(0,c)+"/content/media",{aid:b.videoId.slice(c+1),sig:b.dk});case 30:return c="//docs.google.com/",a.qb!=mL.prototype.qb&&(c=a.qb),$d(c+"get_video_info",{docid:b.videoId,authuser:b.Ta,authkey:b.mb,eurl:a.g});case 33:return $d("//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.ba,hl:a.B,list:b.La,
agcid:a.Ia,sts:16273};a.wa&&(c.forced_experiments=a.wa);b.D?c.vvt=b.D:b.B&&(c.access_token=b.B);a.k&&(c.adformat=a.k);b.za&&(c.iv_load_policy=b.za);b.rg&&(c.autoplay="1");b.Pm&&(c.noiba="1");b.Qm&&(c.mdx="1");b.Rm&&(c.utpsa="1");b.xb&&(c.is_fling="1");var d;d=(d=a.li)?new F(d.clientWidth,d.clientHeight):new F(Number.NaN,Number.NaN);d.width&&(c.width=d.width);d.height&&(c.height=d.height);b.ya&&(c.ypc_preview="1");b.Md&&(c.splay="1");a.A&&(c.content_v=a.A);b.pm&&(c.livemonitor=1);a.Ta&&(c.authuser=
a.Ta);a.$a&&(c.pageid=a.$a);a.U&&(c.ei=a.U);a.yi&&(c.ssl_stream="1");ff()&&(c.iframe="1");b.Qh&&(c.tst=b.Qh);ra(c,oL(a));return $d(a.qb+"get_video_info",c)}}function qL(a){return a.Ri?"//s.youtubeeducation.com/":a.og?"//s.youtube.com/":"//video.google.com/"}function rL(a){return qL(a)+(a.b.M?"api/stats/qoe":"stream_204")}function sL(a){return a.T?a.T.slice(0,128):""}function zI(a,b,c,d){return eI(a,b.videoId,b.La,c,d)}
function eI(a,b,c,d,e){b={v:b,list:c};d&&ra(b,d);a=$d(a.protocol+"://"+("www.youtube-nocookie.com"==window.location.host||a.Ri?"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=yi(b);for(var g in e)b[g]=e[g];e=d+Yd(b);a=a+e}return a}
function iK(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.U&&(c.partnerid=b.U);return $d("//support.google.com/googleplay/",c)}
function tL(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 uL(a){var b=q("yt.www.watch.activity.getTimeSinceActive",window);if("detailpage"==a.ba&&b)return b();b=0;a.fg&&(b=v()-a.fg);return b}function bI(a){return"leanback"==a.ba||a.bc||!a.Ic&&!a.dh?!1:!0}function ot(a){return"detailpage"!=a.ba&&"embedded"!=a.ba&&"profilepage"!=a.ba?!1:!0}
f.Ab=function(){var a=document.location.toString(),b=!!a&&-1!=a.search(Ge),c=cf(a);b!=c&&Xe(Error(a+" behavior is not consistent"));a=c&&!ff();if(c=c&&ff()){var c=this.Ae,b=!!c&&-1!=c.search(Oe),d=cf(c)||df(c,af);b!=d&&Xe(Error(c+" behavior is not consistent"));c=d}return c||a};function vE(a){return ph&&nr("crkey")||"tv"==a.o}f.J=function(){this.li=this.Pa=null;mL.G.J.call(this)};function vL(a,b){this.b=a;this.pa=b;this.g=1}function wL(a,b,c,d){d/=a.g;var e=DK(a.b)+1/EK(a.b),g;g=Math.max(.9*(d-3),CK(a.b)+8192*e);c=g/e/(b+c);c=Math.max(a.pa.A,Math.min(a.pa.P,c));c=Math.min(c,d);a=Math.max(a.pa.I,Math.ceil(a.pa.A*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function xL(a){if(a.pa.V)return 1/(DK(a.b)+1/EK(a.b));var b=EK(a.b);a=CK(a.b)+1048576*DK(a.b);return b*Math.min(1,1048576/(b*a))}function yL(a){return xL(a)/a.g};function hH(a,b,c){this.b=a;this.video=b;this.g=c};function zL(a,b,c,d){this.N=a;this.pa=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 AL(a,b,c){"m"==c&&Qp(a.b)&&!Qp(b)&&(c="a");if("m"==c&&Qp(b))return a.o=c,BL(a,b),a.j=CL(a),new hH(a.g,a.j,c);var d=a.b.equals(b);if("m"==a.o&&Qp(a.b)&&d)return null;"r"!=c||d||(a.I=-1);BL(a,b);b=CL(a);if("r"==c&&!d&&b==a.j)return a.j=b,new hH(a.g,b,c);a.o=c;return null}function DL(a,b){EL(a);a.L=b;a.F=v();a.I=-1;BL(a,a.b)}
function EL(a){return!!a.F&&9E4>=v()-a.F}function CL(a){if(Qp(a.b)||!(8E3>v()-a.I)){a.F&&!EL(a)&&(a.F=0,BL(a,a.b));var b=yL(a.N);if(Qp(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.ua;0<c&&!(a.k[c].ua<=d);c--);for(b=b/a.pa.B-a.g.info.ua;c<a.k.length-1&&!(a.k[c+1].ua>=b);c++);a.M=c;a.A=a.B.b[a.k[c].id]}}return a.A}function FL(a){var b=a.o;a.o="a";a.I=v();return new hH(a.C,a.j,b)}
function BL(a,b){a.b=b;var c=a.D.g;if(!Qp(a.b)&&(c=hb(c,function(a){return a.ua>this.pa.ua?!1:!this.B.b[a.id].o},a),EL(a))){var c=hb(c,function(a){return a.id!=this.L.id},a),d=hb(c,function(a){return"140"==a.id||"134"==a.id||"243"==a.id});d.length&&(c=d)}c.length||(c=a.D.g);c=hb(c,a.b.k,a.b);c.length||(c=[a.D.g[0]]);c.sort(function(a,b){return a.ua-b.ua});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.ua*a.pa.B>g.ua&&(sb(c,e.video.width<=g.video.width?d-1:d),d--)}a.k=c}
function GL(a){var b=lb(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 HL(a){var b=yL(a.N)/1.05-a.g.info.ua,c=ob(a.k,function(a){return this.pa.ci&&this.pa.ci<to[a.video.b]?!1:a.ua<b},a);0>c&&(c=0);a.M=c;a.A=a.B.b[a.k[c].id]};function IL(a,b){this.pa=a;this.j=b;this.pendingRequests_=[];this.b=[];this.k=this.g=null;this.o=0;this.ua=b.info.ua;this.B=this.A=this.C=!1}function JL(a,b){a.pendingRequests_.push(b);a.g=db(b.info.b);a.o+=Vo(b.info)}function KL(a){for(;a.pendingRequests_.length&&5==a.pendingRequests_[0].state;){var b=a.pendingRequests_.shift();a.o-=Vo(b.info);a.o+=db(b.k).buffer.byteLength;z(b.k,a.F,a)}}
IL.prototype.F=function(a){if(4==a.info.type){var b=a.info.b.Fr(a);a.info==this.g&&(this.g=db(b).info);z(b,this.F,this)}else 3==a.info.type&&this.b.push(a)};
function LL(a,b){if(a.pa.L?a.b.length&&!ML(a):a.C)return a.b[0].$;var c=a.j.info.g;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||a.pa.M)break}d--;var e=a.b[d].$.end,g=a.b[d].info.C-b;if(c&&0<=a.pa.D&&g>a.pa.D){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].$.start+c-1}return new xo(a.b[0].b?0:a.b[0].$.start,e)}
function NL(a,b){for(var c;a.b.length;){if(a.b[0].$.end>b.end){var d;c=a.b[0];var e=b.end-a.b[0].$.start+1,e=Math.min(e,c.info.g),g=new Mo(c.info.type,c.info.b,c.info.$,c.info.k,c.info.startTime,c.info.duration,c.info.j,e,!1);d=zo(c.$.start,e);g=new kp(g,c.buffer,d,c.b);e=new Mo(c.info.type,c.info.b,c.info.$,c.info.k,c.info.startTime,c.info.duration,c.info.j+e,c.info.g-e,c.info.B);d=new xo(d.end+1,c.$.end);d=[g,new kp(e,c.buffer,d,!1)];c=d[0];a.b[0]=d[1]}else c=a.b.shift();d=a;g=c.info;d.k=g;d.C&&
d.k.A&&(d.C=!1);d.ua=Math.max(d.ua,g.b.info.ua);if(c.$.end==b.end)break}a.b.length&&c.buffer==a.b[0].buffer||(a.o-=c.buffer.byteLength)}function OL(a){a.pendingRequests_.length?a.g=db(a.pendingRequests_[a.pendingRequests_.length-1].info.b):a.b.length?a.g=db(a.b).info:a.g=a.k}function PL(a,b){var c=QL(a,b);if(0<=c)return c;a.g=a.j.ti(b).b[0];a.k&&a.k.B&&(a.k=null);return a.g.startTime}
function jH(a,b){RL(a);if(a.j.info.video&&a.k&&!a.k.A&&b){var c=mb(a.b,function(a){return a.info.A});a.b=yb(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 SL(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());OL(a)}}
function TL(a){return jb(a.b,function(a){return a.info.A})}function UL(a){return!!a.k&&a.k.B}function VL(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!=db(b)&&b.push(a.g);return b}function ML(a){if(!a.g||!a.g.g)return!1;a=VL(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 QL(a,b){if(ML(a)){var c;t:{c=VL(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 WL(a){return jb(a.pendingRequests_,function(a){return 1==a.timing.priority&&3<=a.state})}function XL(a){return!!(a.g&&a.j.mc()&&a.g.b!=a.j&&a.g.b.info.ua<a.j.info.ua)}function YL(a,b){return!!(a.g&&!a.g.B&&a.g.C<b)}IL.prototype.D=function(a){No(a.info.b[0])||a.dispose();this.o-=Vo(a.info)};
function RL(a){z(a.pendingRequests_,a.D,a);a.pendingRequests_=[];a.g=null};function ZL(a,b,c){this.pa=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}ZL.g=!1;ZL.b=1E4;f=ZL.prototype;f.getErrorCode=function(){return this.o};function $L(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=Ai(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&&aM(this);bM(this,2);if(b){if(2>this.j){this.j++;a=ZL.b*(.5+Math.random());1==this.j&&(a=2E3);L(t(this.Hm,this),a);return}b=this.info.j;if(!(this.F<=b.j)){b.g++;b.j=Ko-1;var c=hf(b.b);b.b=Co(c,"cmo",encodeURIComponent("pf="+b.g));c.match("c\\.youtube\\.com/")&&(b.b+="&cmo=sensitive_content%3Dyes")}this.j=0}a?this.Hm():L(t(this.Hm,this),0)};
f.Hm=function(){if(!this.ga()){this.F=Ko++;var a;a=Uo(this.info);a=Co(a,"keepalive","yes");this.j&&(a=Co(a,"playerretry",this.j.toString()));this.D=a;this.b=new XMLHttpRequest;try{this.b.open("GET",a)}catch(b){this.o="net.ssl";bM(this,6);return}this.b.responseType="arraybuffer";this.b.withCredentials=!0;var c=t(this.fv,this);this.b.addEventListener("load",c,!1);this.b.addEventListener("error",c,!1);this.b.send();this.A=0;c=this.timing;c.j=v();c.o=c.j;c.g=0;c.D=!1;c.F=!1;c.k=0;c.C=FK(c.b);cM(c);c.M=
c.B-c.j;this.b.addEventListener("progress",t(this.hv,this),!1);0<this.pa.j&&(this.g=L(t(this.Io,this),this.pa.j));Ao(a,"itag");Ao(a,"range");Math.round(this.info.b[0].o);Math.round(db(this.info.b).C);v()}};f.hv=function(a){if(!this.ga()){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||dM(b,c,a);b=this.timing;b.g>b.L&&8192<b.g&&3>this.state&&bM(this,3)}};
f.fv=function(a){var b=this.b;if(!this.ga()&&a.target==b){this.g&&(M(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)),ef(c)))break t;c=""}if(c){c=Bo(c,"keepalive");c=Bo(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=Bo(c,g[d]);
if(1<e.length)for(e=e[1].split("&"),d=0;d<e.length;d++)c=Bo(c,e[d].split("=")[0])}}c=Bo(c,"range");b.j.b=c;bM(this,4)}else if(this.info.$&&b.byteLength!=this.info.$.length)a=!0,this.o="fmt.unparseable";else{c=this.info.b;1!=c.length||c[0].$||(d=c[0],e=zo(0,b.byteLength),d=new Mo(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,s=zo(e,l.g),u=!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),
s=zo(0,l.g),h=!0;else if(3==l.type||4==l.type)u=h&&!g,g=!0;d.push(new kp(l,p,s,u));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(),dM(c,d,b),e=(d-c.j)/1E3,c.F||!(8192<=c.g)||c.b.b.b||wK(c.b,e,b),8192<=c.g&&BK(c.b,b,c.k),AK(c.b,d-c.j,c.g),eM(c));v();bM(this,5)}}a&&(aM(this),bM(this,6))}};function aM(a){if(2>a.j)a=!0;else{var b=a.info.j;a=!(a.F>b.j&&1<=b.g)}return a}function bM(a,b){a.state=b;4<=a.state&&eM(a.timing);a.B&&a.B(a)}
f.Io=function(){this.g=NaN;if(!this.ga()){var a=v(),b=!1;if(8192<=this.timing.g){var c=this.timing.B;cM(this.timing);this.timing.B-c>=.8*this.pa.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,BK(b.b,b.I,b.k)):yK(b.b,a,(a-b.j)/1E3),AK(b.b,a-b.j,b.g),fM(this),this.o="net.timeout",bM(this,No(this.info.b[0])?6:7)):this.g=L(t(this.Io,this),this.pa.j)}};f.ga=function(){return-1==this.state};
f.dispose=function(){bM(this,-1);this.B=this.k=null;fM(this);M(this.g);this.g=NaN};function fM(a){if(a.b){var b=a.b;a.b=null;b.abort()}eM(a.timing)};function gM(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 eM(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 dM(a,b,c){if(!a.A)8192<=c&&(yK(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&&wK(a.b,.05,e)):wK(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}xK(d)}a.o=b;a.g=c}function cM(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 hM(a,b,c,d){cj.call(this);this.B=a;this.pa=b;this.A=c;this.g=this.j=null;this.C=new vL(a,b);this.b=null;this.o=new zL(this.C,b,this.A,d);this.k=this.aa=this.O=this.P=NaN;this.F=!1;this.L=NaN;this.T=0;this.D=!1;this.da={};this.N="";this.U=!1;this.I=0}w(hM,cj);hM.k=!1;hM.b=2/24;hM.g=1E3;hM.j=1E4;f=hM.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.o;d.o="i";GL(d);d.C=d.g;BL(d,b);HL(d);d.j=d.A;b=FL(d);this.j=new IL(this.pa,b.b);this.g=new IL(this.pa,b.video);this.H("formatchange",b);0!=a||c||(this.j.j.j||iM(this,this.j,!0),this.g.j.j||iM(this,this.g,!0));this.seek(a);jM(this,"gv")};f.resume=function(){this.D=!1};
f.dA=function(a){this.resume();this.b=a;vr(a)&&(a.b.addEventListener("updateend",t(this.tc,this),!1),a.g.addEventListener("updateend",t(this.tc,this),!1));jM(this,"msa");this.tc();this.aa=Ve(t(this.tc,this),hM.j)};function kM(a){a.b&&a.b.b&&a.b.b.removeEventListener&&(a.b.b.removeEventListener("updateend",t(a.tc,a),!1),a.b.g.removeEventListener("updateend",t(a.tc,a),!1));a.b=null;a.D=!0;a.j&&(jH(a.g,!1),jH(a.j,!1))}function lM(a){a.b&&tr(a.b)&&kM(a)}
function mM(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 nM(a,b,c){if(!b.g){if(!b.j.mc())return b.j.j||iM(a,b,!1),!1;PL(b,a.k)}if(a.D)return!1;var d=b.pendingRequests_.length+c.pendingRequests_.length;if(WL(b)||WL(c)||a.A.g)d-=1;if(2<=d+1)return!1;d=b.g;4==d.type&&d.b.mc()&&(b.g=db(d.b.ri(d)),d=b.g);!d.B&&!d.b.Bg(d)||d.b.info.g&&4==d.type?a=!1:XL(b)&&a.pa.b?a=!0:(!(c=d.B||b.o+c.o>a.pa.g||YL(c,d.C))&&(c=3==d.type)&&(d=d.C,b=oM(a,b,!0),Qp(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 pM(a,b,c){if(!a.b||sr(a.b)||vr(a.b)){var d=a.k,e;e=a.C;c=wL(e,b.j.info.ua,c.j.info.ua,0);e=CK(e.b)+c*DK(e.b)+c/EK(e.b);e=Math.max(e,e+5-c/b.j.info.ua);d=d+e;(e=a.pa.O)||(a=a.o,e=!!(a.j&&a.A&&a.j.info.ua<a.A.info.ua&&"r"==a.o));t:if(a=e,!b.pa.L||ML(b)){if(b.pendingRequests_.length){if(b.pendingRequests_[0].info.b[0].startTime<=d)break t;RL(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));OL(b);a&&b.g&&
d<b.g.startTime&&(b.g=b.j.ti(d,!0).b[0])}}}
function qM(a,b,c){nM(a,b,c);var d=b.g;if(b.g.b.mc()){XL(b)&&a.pa.b&&(pM(a,b,c),b.g||PL(b,a.k));var d=b.g,e=d.C-a.k,g;(g=b.j.mc()&&b.g.b!=b.j)&&!XL(b)&&(g=15>=e);var h=!d.$||0==d.g&&0==d.j?0:d.$.length-(d.j+d.g);g&&0==h&&(g=d.startTime+hM.b,d.g&&(g+=d.duration),PL(b,g),d=b.g,g=!1);d.b.am()?(c=wL(a.C,d.b.info.ua,c.j.info.ua,e),e=g,c=Qo(d,c),c.$&&1<c.b.length&&(e?c=Qo(d,c.b[0].g):(e=c.b[c.b.length-1],g=e.g/c.$.length,!e.A&&.4>g&&(c=Qo(d,c.$.length-e.g)))),d=c):d=Xo(d.b,d)}else d.b.am()?(c=wL(a.C,b.j.info.ua,
c.j.info.ua,0),d=Qo(d,c)):d=Xo(d.b,d);JL(b,rM(a,d,!1))}function rM(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=FL(d);break t}}else d.C=e;d=null}gH(a,d)}e=c?2:1;a.D&&(e=0);c=Vo(b);d=a.B;var g=a.C,h=Math.min(2.5,CK(g.b)),g=xL(g);b=new ZL(a.pa,b,new gM(d,e,c,c-h*g));a=t(a.fA,a);b.B=a;b.start();return b}function gH(a,b){b&&a.H("formatchange",b)}
f.fA=function(a){if(!this.ga()&&3<=a.state){var b=a.info.b[0].b,c=!this.ca&&b.info.video,d=!this.V&&b.info.g;6==a.state&&aM(a)?(this.xf(!1,a.getErrorCode(),$L(a)),b.info.video&&0<a.j&&!EL(this.o)?(DL(this.o,b.info),RL(this.g),No(a.info.b[0])&&iM(this,this.g,!1),this.tc()):a.start()):4==a.state?(c?jM(this,"vrr"):d&&jM(this,"arr"),a.start()):5==a.state?(c?(this.ca=a.D,oz()&&uz()):d&&(this.V=a.D),z(a.k,function(a){No(a.info)&&a.info.b.hq(a)}),kb(a.k,function(a){return lp(a)})&&!a.k[0].info.b.$l()?this.tc():
this.xf(!0,"fmt.unparseable",$L(a))):7==a.state?(this.xf(!1,a.getErrorCode(),$L(a)),kH(this)):3==a.state?(this.tc(),c&&oz()&&qg(document.body,"exp-js-scheduler-aggressive")&&uz()):No(a.info.b[0])?(b.o=!0,this.tc()):this.xf(!0,"net.retryexhausted",$L(a))}};function kH(a){if(isNaN(a.P)){var b=t(a.tc,a);a.P=L(b,0)}}function sM(a){if(isNaN(a.O)){var b=t(function(){this.O=NaN;this.tc()},a);a.O=L(b,hM.g)}}
f.tc=function(){this.P=NaN;lM(this);if(this.b&&!ur(this.b))if(this.A.g)Infinity!=this.L&&(this.L=Infinity,this.b.wf(Infinity));else if(!isFinite(this.L)){var a=Math.floor(Math.max(this.j.j.index.Bf(),this.g.j.index.Bf()));0<a&&(this.b.wf(a),this.L=a)}if(!this.ga())if(a=this.A,v()-a.B>=a.o){a=this.A;if(!a.k){var b=Co(a.D,"start_seq",(Sb(a.b).index.lc()+1).toString());Gp(a,b)}sM(this)}else if("prerender"==window.document.webkitVisibilityState)sM(this);else if(lM(this),KL(this.g),KL(this.j),SL(this.g),
SL(this.j),!this.b||mM(this,this.j,this.b.b)||mM(this,this.g,this.b.g)||((a=tM(this,this.g,this.b.g))&&!this.I&&(this.I=v(),jM(this,"vda")),b=Kt(this.b.g.buffered,this.k),isNaN(b)&&!UL(this.g)&&this.b.b.buffered.length||(UL(this.g)&&(b=NaN),a|=tM(this,this.j,this.b.b,b)),UL(this.g)&&UL(this.j)&&sr(this.b)&&!ur(this.b)&&(b=this.b,sr(b)&&b.j.endOfStream(),zK(this.B)),a&&!vr(this.b)&&kH(this)),iH(this,this.g,CL(this.o)),iH(this,this.j,this.o.g),this.g.j.o||this.j.j.o)this.xf(!0,"net.retryexhausted");
else{a=this.I?v()-this.I:0;if(this.U||a>=this.pa.F)nM(this,this.g,this.j)&&qM(this,this.g,this.j),nM(this,this.j,this.g)&&qM(this,this.j,this.g);!this.pa.N||!this.N||this.D||this.g.pendingRequests_.length||this.j.pendingRequests_.length||(a=30+this.k,YL(this.g,a)||YL(this.j,a)||(a=this.N,this.N="",b=Ai(a),Ji(a,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:t(this.xf,this,!1,"pathprobe.net",{shost:b})})))}};
function tM(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||Oo(b.k,e.info)||(b.k=null,sr(a.b)&&c.abort(),c.g=null);var g=!(!b.pa.M||!b.b.length||1!=b.b[0].info.b.info.b||0!=b.b[0].info.j),h;if(h=g||!e.b)h=e.info.b.b,c.g==h?h=!1:(uM(a,c,h),c.g=h,a.H("initsegment",c.g),h=c.updating);if(h)return!0;h=oM(a,b,!1);h=a.k+h;0<=d&&(h=Math.min(h,d));d=LL(b,h);if(!d)return!1;if(g){g=b.b[0];h=Zo(g);var k=g.info.b.index.dm(g.info.k);(k=$o(h,k))?(h=h.getInt32(0),NL(b,zo(g.$.start,
h)),g=k):g=null;if(g)return uM(a,c,new Uint8Array(g)),!0}g=new Uint8Array(e.buffer,d.start,d.length);a.A.j&&3==e.info.type&&ia(c.timestampOffset)&&(h=0,h=a.pa.T&&!b.A?-mp(e):-(mp(e)-e.info.startTime),c.timestampOffset==h||isNaN(h)||(c.timestampOffset=h));if(!uM(a,c,g))return!1;a.A.j&&a.pa.T&&!b.A||NL(b,d);b.A||(b.A=!0);e.b&&(c.g=e.info.b.b,a.H("initsegment",c.g));return!0}function uM(a,b,c){if(vr(a.b))try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!tr(a.b)}
function oM(a,b,c){var d;d=Qp(a.o.b)&&a.pa.b?b.j.info.g?10485760:62914560:b.j.info.g?a.pa.k:a.pa.o;c&&(d+=a.pa.g);return d/(Qp(a.o.b)?b.g?b.g.b.info.ua:b.j.info.ua:b.ua)}f.seek=function(a){if(!this.ga()){lM(this);this.T=v();this.g.j=CL(this.o);var b=vM(this,this.g,a,this.b&&this.b.g);this.j.j=this.o.g;var c=vM(this,this.j,b,this.b&&this.b.b);this.k=Math.max(a,b,c);this.F=!0;kH(this)}};
function vM(a,b,c,d){if(b.j.mc())if(d){var e=Kt(d.buffered,c),g=NaN,h=b.k;h&&(g=Kt(d.buffered,h.b.index.Yi(h.k)));if(e==g&&ML(b))return c;d=QL(b,c);if(0<=d)return d;jH(b,!0);b.j.info.video&&b.k&&!b.k.A&&!TL(b)&&(d=b.k,b.b.length&&(d=db(b.b).info),d=b.g||d,d=Qo(d,d.$.length-(d.g+d.j)),JL(b,rM(a,d,!0)));if(isNaN(e))return PL(b,c);PL(b,e+hM.b)}else PL(b,c);else b.j.j||iM(a,b,!1),0!=c&&RL(b);return c}function iH(a,b,c){b.j!=c&&(b.j=c,c.j||iM(a,b,!1))}
function iM(a,b,c){var d=c?65536:0;c&&!isNaN(a.pa.C)&&(d=Math.floor(Math.max(d,a.pa.C*b.j.info.ua)));c=b.j.Xr(d);z(c,function(a){var c=rM(this,a,!0);!No(a.b[a.b.length-1])&&JL(b,c)},a);b.j.j=!0}f.J=function(){kM(this);this.j&&(RL(this.j),RL(this.g));We(this.aa);this.g=this.j=null;hM.G.J.call(this)};f.xf=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&&sr(this.b)&&(a=this.b,sr(a)&&a.j.endOfStream("network")),this.dispose())};
hM.prototype.getDebugInfo=function(){var a={lct:this.k.toFixed(3),lsk:this.F,lmf:Qp(this.o.b),lbw:EK(this.B).toFixed(3),lhd:CK(this.B).toFixed(3),ltd:(1E9*DK(this.B)).toFixed(3),laa:this.j.k?To(this.j.k):"",lva:this.g.k?To(this.g.k):"",lar:this.j.g?To(this.j.g):"",lvr:this.g.g?To(this.g.g):""};this.b&&!tr(this.b)&&(a.lab=It(this.b.b.buffered),a.lvb=It(this.b.g.buffered));return a};function jM(a,b,c){a.da[b]=c?window.performance.timing.navigationStart+c:v()};function wM(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 jr(this);R(this,this.k);this.b&&(kr(this.k,this.b,["message","mskeymessage"],this.Vo),kr(this.k,this.b,["error","mskeyerror"],this.Uo),kr(this.k,this.b,["ready","mskeyadded"],this.To))}w(wM,Kh);f=wM.prototype;f.setCallbacks=function(a,b,c,d){this.D=a;this.C=b;this.B=c;this.g=d};f.Vo=function(a){this.D.call(this.g,a)};
f.Uo=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.To=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;wM.G.J.call(this)};function xM(a,b){this.b=a;this.k=b;this.A={};this.j=null;this.o=new jr(this);R(this,this.o);er()||(kr(this.o,this.b,["keymessage","webkitkeymessage"],this.D),kr(this.o,this.b,["keyerror","webkitkeyerror"],this.C),kr(this.o,this.b,["keyadded","webkitkeyadded"],this.B));this.g=null}w(xM,Kh);function yM(a){a.g=new (er())(a.k.b);a.b&&(a.b.msSetMediaKeys?a.b.msSetMediaKeys(a.g):a.b.setMediaKeys(a.g))}
function zM(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}xM.prototype.D=function(a){var b=zM(this,a);b&&b.Vo(a)};xM.prototype.C=function(a){var b=zM(this,a);b&&b.Uo(a)};xM.prototype.B=function(a){var b=zM(this,a);b&&b.To(a)};xM.prototype.J=function(){this.b=null;xM.G.J.call(this)};var AM=null,BM=null;function CM(a,b){this.url=a;this.b=b};function DM(a,b,c){this.b=a;this.headers=b;this.message=c};function EM(a,b,c,d,e){this.F=a;this.g=d;this.g.subscribe("oauthtoken",this.np,this);this.o={session_id:e};vt(this,a.j);this.b=[];this.k=this.B=this.D=!1;var g;try{var h=c.b;if(er()){b.g||yM(b);var k=c.g||"video/mp4",l;if("com.microsoft.playready"==b.k.b){var p=new Uint8Array(270);for(a=0;135>a;a++)p[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);l=b.g.createSession(k,h,p)}else l=b.g.createSession(k,
h);g=new wM(null,null,null,l)}else b.b.generateKeyRequest?b.b.generateKeyRequest(b.k.b,h):b.b.webkitGenerateKeyRequest(b.k.b,h),b.j=new wM(b.b,b.k,h,null),g=b.j}catch(s){b="g",s instanceof DOMException&&(b+=s.code),this.g.H("licenseerror","html5.missingapi.drm",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),g=null}if(this.j=g)this.j.setCallbacks(this.Hl,this.Kv,this.Jv,this),R(this,this.j)}w(EM,Kh);f=EM.prototype;f.np=function(a){this.C=a};
function vt(a,b){if(cf(b)){for(var c in a.o)b=de(b,c,a.o[c]);a.A=b}else FM(a,"drm.net","u")}f.start=function(){this.ga()||(this.D=!0,this.b.length&&this.Hl(this.b.shift()))};
f.Hl=function(a){if(!this.ga())if(this.k&&a.defaultURL&&vt(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(!AM)for(AM={},BM={},c=0;65>c;c++)AM[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),BM[AM[c]]=c;for(var c=BM,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",ox:a,responseType:"arraybuffer",withCredentials:!0,onSuccess:this.qx,onError:this.mp,context:this};b=this.A;this.C&&(b=de(b,"access_token",this.C));Ji(b,a)}else this.b.push(a),this.B||(this.B=!0,this.g.H("newsession",this))};
f.Jv=function(){this.ga()||(this.k||(this.g.H("sessionready"),this.k=!0),this.b.length&&this.Hl(this.b.shift()))};
f.qx=function(a){if(!this.ga())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];sb(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=r(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 DM(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?FM(this,"drm.auth","f"+a.b,Ju(a.b)):(b=(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new CM(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60)),(b||c)&&this.g.H("newlicense",b,c),this.j.update(a.message)):FM(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.mp(a)};f.Kv=function(a,b){this.ga()||FM(this,"drm.keyerror","s"+a+"."+b)};f.mp=function(a){FM(this,"drm.net","r"+a.status)};
function FM(a,b,c,d){a.ga()||a.g.H("licenseerror",b,c,d);a.dispose()}f.J=function(){this.g=null;EM.G.J.call(this)};function GM(a,b){this.b=a;this.g=b||null};function HM(a,b){cj.call(this);this.D=a;this.b=b;this.subscribe("newlicense",this.Xu,this);this.subscribe("newsession",this.Yu,this);this.subscribe("sessionready",this.Zu,this);this.N=pq();this.k=null;this.C={};this.g=[];this.j=Np;this.L=new xM("com.microsoft.playready"==b.b?null:a,b);R(this,this.L);this.A=new xM(a,b);R(this,this.A);this.B=2;this.F=new jr(this);R(this,this.F);this.o=!1;this.I=null;kr(this.F,this.D,er()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.Wu)}w(HM,cj);f=HM.prototype;
f.Wu=function(a){IM(this,new GM(a.initData,a.contentType),!0)};
function IM(a,b,c){if(!(a.ga()||"com.microsoft.playready"==a.b.b^!c||(c=b.b,a.o&&"widevine"==a.b.g))){var d=String.fromCharCode.apply(String,c);if(!a.C[d]){a.C[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||(JM(a,b),a.o=!0)}}}function JM(a,b){var c=new EM(a.b,a.L,b,a,a.N);c.np(a.k);R(a,c)}f.Xu=function(a,b){a&&C(a,"HD")&&!Pp(this.j)&&"com.microsoft.playready"!=this.b.b&&(this.j=Op,this.H("qualitychange"));b&&!this.I&&(this.I=b,this.H("heartbeatparams",b))};f.Yu=function(){this.ga()||(this.g.shift(),this.g.length&&JM(this,this.g[0]))};f.Zu=function(){this.B--;0==this.B&&yM(this.A)};
f.J=function(){this.D=null;this.g=[];HM.G.J.call(this)};function KM(a){this.j={};this.j.c1a=t(this.k,this);this.j.c3a=t(this.o,this);(this.b=a)&&this.b.ca?this.g=yi(this.b.ca):this.g=[]}KM.prototype.k=function(){var a=q("yt.abuse.botguardInitialized");return a&&a()?(a=q("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};KM.prototype.o=function(a){return"r3a="+Math.floor(this.b.Oa%$a(a.c3a))};function LM(a,b,c){this.b=a;this.j=b;this.g=c};function MM(a){this.b=a}function NM(a,b){return Rp(Rp(a.b.Xl,b.Dm),b.tf)}
function OM(a,b){var c;c=!!b.g.b;var d;!a.b.b.F||"detailpage"!=a.b.ba&&"adunit"!=a.b.ba||(d=cK(a.b).clone());d||(a.b.tg?d=a.b.tg.clone():mh&&!a.b.wi?d=window.screen&&window.screen.width?new F(window.screen.width,window.screen.height):null:a.b.Sd&&(d=a.b.Sd.clone()));d?((mh||kc||c)&&d.scale(window.devicePixelRatio||1),c=d):c=new F(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=Mp("auto",e.b,!1)}else e=Op;c=e.b;
ph&&nr("crkey")&&(c=Math.max(c,to.hd1080));if(d=(nr("armv7")||nr("android"))&&!vE(a.b))d=b.g.g[0],d="9"==d.j||"("==d.j;d&&(c=Math.min(c,to.large));c=Math.max(c,to.medium);e.b!=c&&(e=new Lp(e.g,c,e.j));return e};function PM(){this.k=this.b=NaN;this.j=this.g=!1}function cu(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 QM(){this.b=this.g=!1}QM.prototype.start=function(){this.g=!0};function RM(){this.g=0;this.b=this.o=this.j=this.k=NaN};var SM={};function TM(a){return a?24==a.length&&"UC"==a.slice(0,2)?a.substr(2):22==a.length?a:null:null};var UM;
UM={o:["BC","AD"],k:["Before Christ","Anno Domini"],B:"JFMAMJJASOND".split(""),N:"JFMAMJJASOND".split(""),A:"January February March April May June July August September October November December".split(" "),L:"January February March April May June July August September October November December".split(" "),F:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),P:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),aa:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),T:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
M:"Sun Mon Tue Wed Thu Fri Sat".split(" "),V:"Sun Mon Tue Wed Thu Fri Sat".split(" "),C:"SMTWTFS".split(""),O:"SMTWTFS".split(""),I:["Q1","Q2","Q3","Q4"],D:["1st quarter","2nd quarter","3rd quarter","4th quarter"],b:["AM","PM"],g:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],U:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],j:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],EE:6,da:[5,6],FE:5};function VM(a,b,c,d,e,g){r(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)}VM.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};VM.prototype.clone=function(){return new VM(this.j,this.g,this.b,this.k,this.o,this.A)};
VM.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 WM(a,b,c){ia(a)?(this.b=XM(a,b||0,c||1),YM(this,c||1)):ka(a)?(this.b=XM(a.getFullYear(),a.getMonth(),a.getDate()),YM(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 XM(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=WM.prototype;f.os=UM.EE;f.rs=UM.FE;
f.clone=function(){var a=new WM(this.b);a.os=this.os;a.rs=this.rs;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()),YM(this,a.getDate()))};f.TE=function(){return[this.getFullYear(),Ta(this.getMonth()+1),Ta(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.TE()};function YM(a,b){a.getDate()!=b&&a.b.setUTCHours(a.b.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.b.valueOf()};var ZM=["3djj8jS0370cu_ghKs_Ong","LsooMJoIpl_7ux2jvdPB-Q","JkWoS4RsldA1coEIot5yDA","jVkjd2VWCWO-9DHRQER3Yg","L8ZULXASCc1I_oaOT0NaOQ"];function $M(a){this.g=a;this.b=0;this.o=NaN;this.j=0;this.ea=[];this.k=aN(this.g);this.A=this.B=0}function bN(a){a.k.startTime=a.j;a.k.endTime=a.b;a.ea.length&&db(a.ea).isEmpty()?a.ea[a.ea.length-1]=a.k:a.ea.length&&a.k.isEmpty()||a.ea.push(a.k);a.B+=a.b-a.j;a.k=aN(a.g);a.j=a.b}function cN(a){return a.B+a.g.j()-a.j}function dN(a){a.ea.length&&a.b==a.j||bN(a);var b=a.ea;a.ea=[];return b}
$M.prototype.update=function(){var a=this.g.j()||0,b=eN(this.g);if(a!=this.b||fN(this,a,b)){if(a<this.b||a-this.b>b-this.o+.5||fN(this,a,b))bN(this),this.j=a;this.o=b;this.b=a}};function fN(a,b,c){c-=a.o;return b==a.b&&.5<c};function gN(a,b){this.b=b;this.k=!1;this.g=a}gN.prototype.j=function(){return{ps:this.b.ob,el:this.b.ba}};gN.prototype.send=function(){this.k||(nf($d(this.b.qb+"set_awesome",this.j())),this.k=!0)};function hN(a,b,c){gN.call(this,b,c);this.o=a}w(hN,gN);
hN.prototype.j=function(){var a=hN.G.j.call(this);ra(a,oL(this.b));var b=Jb(this.g.pg/this.g.Oa,0,1);ra(a,{html5:"1",video_id:this.g.videoId,eurl:this.b.g,framer:this.b.D,feature:this.b.C,list:this.g.La,w:b,l:this.g.Oa,plid:this.g.yb,ei:this.g.A,access_token:this.g.B,tpmt:cN(this.o),cpn:this.g.Da});this.b.k&&(a.adformat=this.b.k);this.b.T&&(a.referrer=sL(this.b));this.b.zc&&(a.autoplay="1");this.b.Ta&&(a.authuser=this.b.Ta);this.b.$a&&(a.pageid=this.b.$a);this.g.Md&&(a.splay="1");this.g.L&&(a.subscribed=
this.g.L);ra(a,hN.G.j.call(this));ra(a,oL(this.b));return a};function iN(a){this.b=a;this.j={};this.M=NaN;this.o=new ew(this.Ru,3E4,this);R(this,this.o);this.A=new ew(this.Gk,100,this);R(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(iN,Kh);var jN={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function kN(a,b,c,d){var e=a.j[b];e||(e=[],a.j[b]=e);a=0<=d?d:eN(a.b);e.push(a.toFixed(3)+":"+c.join(":"))}f=iN.prototype;
f.Gk=function(a){a=a||eN(this.b);var b=this.b.B();if(!isNaN(this.O)&&!isNaN(b.j)){var c=b.j-this.O;0<c&&kN(this,"bwm",[c,(b.o-this.P).toFixed(3)],a)}this.O=b.j;this.P=b.o;isNaN(b.b)||kN(this,"bwe",[b.b.toFixed(0)],a);isNaN(b.g)||(c=b.g,b.k<c&&(c=b.k),this.L!=c&&(kN(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());kN(this,"cmt",[this.b.j()],a)};
function lN(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.ba;b.docid=a.b.b.videoId;b.ns=a.b.g.Wc;b.fexp=a.b.g.b.b.toString();a.b.g.k&&(b.adformat=a.b.g.k);a.b.b.Za&&(b.live=a.b.b.nb?"dvr":"live");b.html5="1";return b}
f.xg=function(a){if(!this.ga()&&!Zb(this.j)){0!=this.A.qa||this.Gk(a);a=tL(this.b.g).hmewdrop;0<=a&&a!=this.D&&kN(this,"df",[a-(this.D||0)]);this.D=a;a=lN(this);ec(a,oL(this.b.g));a=$d(rL(this.b.g),a);for(var b in this.j)a+="&"+b+"="+this.j[b].join(",");nf(a);this.j={};this.o.start()}};f.Og=function(){kN(this,"vps",["N"]);this.M=Ve(t(this.xg,this),1E4);this.o.start()};f.onError=function(a,b){var c=this.b.j(),c=[a,c.toFixed(3)];b&&c.push(b);kN(this,"error",c)};
f.Ru=function(){"PL"==this.g&&(kN(this,"vps",[this.g]),this.xg())};f.J=function(){iN.G.J.call(this);We(this.M)};function mN(a,b,c,d){this.b=[];this.o=[];this.I=!1;this.g="watchtime"==c;this.la="playback"==c;this.ca="delayplay"==c;this.za=(this.F="atr"==c)?"/api/stats/"+c:qL(b)+"api/stats/"+c;d&&(this.ao=d.fs,d.rtn&&(this.qg=d.rtn),this.g?(this.kf=d.state,0<d.rti&&(this.Th=d.rti)):(this.oa=d.mos,this.wa=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.Xh=b.zc;this.Ia=b.A;this.Ha=b.I;this.Ra=b.M;this.Wa=b.L;this.eb=b.qf;this.gb=b.ve;this.hb=b.N;this.jb=
b.O;this.mb=b.P;this.xb=b.V;this.dc=b.o;this.Uc=b.g;this.od=b.ba;this.o=b.b.b;this.O=b.B;this.$n=b.Wc;this.gf=b.T;this.P=b.la;this.j=b.C;this.pf=b.Ra;this.aa=b.za;this.da=b.Ca;this.ya=uL(b);!a.b||a.Wa.isEmpty();this.Xh=a.rg||this.Xh;this.U=a.Qh;this.Nd=a.Da;this.C=a.pf;this.ub=a.bk;this.k=a.pg;this.N=a.te;a.b&&(this.mf=a.b.id);this.bo=a.Md;this.of=a.Oh;a.Za&&(this.ra=a.nb?"dvr":"live");this.hf=a.ak;this.yb=a.yb;this.pd=a.A;this.La=a.La;this.j=a.Ha||this.j;this.V=a.gb;this.T=a.hb;this.nf=a.Ph;this.jf=
a.L;this.videoId=a.videoId;this.lf=a.eb}f=mN.prototype;f.Xh=!1;f.uv=!1;f.Ho=!1;f.ao=!1;f.Su=!1;f.bo=!1;f.$n="yt";f.Th=null;f.qg=null;f.send=function(){if(!this.I){var a=nN(this),a=$d(this.za,a);if(this.F)this.B&&Ji(a,{method:"POST",ed:{atr:this.B}});else{var b;b||(b=document.location.href);b=Qd(b)[1]||null;null!==b&&"https"==b&&this.C?Ji(a,{headers:{Authorization:"CredentialTransfer type="+this.ub+",token="+this.C}}):nf(a)}this.I=!0}};
function nN(a){var b={ns:a.$n,el:a.od,cpn:a.Nd,docid:a.videoId,ver:2,referrer:a.gf,cmt:a.vf(a.k),plid:a.yb,ei:a.pd,fmt:a.mf,fs:a.ao?"1":"0",rt:a.vf(a.xa),c:a.eb,cver:a.gb,adformat:a.Ca,content_v:a.Ia,euri:a.Uc,subscribed:a.jf,lact:a.ya,live:a.ra,cplatform:a.dc,cbrand:a.Ha,cmodel:a.hb,cnetwork:a.jb,cbr:a.Ra,cbrver:a.Wa,cos:a.mb,cosver:a.xb,mos:a.oa,q:a.pf,osid:a.lf,state:a.kf,volume:a.wa};a.Xh&&(b.autoplay="1");a.Ho&&(b["final"]="1");a.bo&&(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.vf(a.M));!a.g&&0<a.o.length&&(b.fexp=a.o.toString());null!=a.qg&&(b.rtn=a.vf(a.qg));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.nf&&(b.ssrt="1");a.g?(b.idpj=a.of,b.ldpj=a.hf,null!=a.Th&&(b.rti=a.vf(a.Th))):(n(a.L)&&(b.at=a.L),n(a.A)&&(b.allowed=a.A),n(a.D)&&(b.ex_ads=a.D));(a.la||a.ca)&&a.U&&(b.tst=a.U);a.g&&(b.st=oN(a,B(a.b,function(a){return a.startTime})),b.et=oN(a,B(a.b,function(a){return a.endTime})));jb(a.b,
function(a){return 0!=a.visibilityState})&&(b.vis=oN(a,B(a.b,function(a){return a.visibilityState})));jb(a.b,function(a){return 1!=a.playbackRate})&&(b.rate=oN(a,B(a.b,function(a){return a.playbackRate})));jb(a.b,function(a){return"-"!=a.Jk})&&(b.cc=B(a.b,function(a){return a.Jk}).join(","));return b}f.vf=function(a){return(1*a.toFixed(3)).toString()};function oN(a,b){return B(b,a.vf).join(",")};function pN(a){this.b=a;this.k=new iN(a);R(this,this.k);this.g=new $M(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 hN(this.g,this.b.b,this.b.g)}w(pN,Kh);function qN(a,b,c){var d=eN(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(t(a.FB,a,c,b),d);return c}f=pN.prototype;
f.FB=function(a,b){if(!this.ga()){this.B=NaN;this.g.update();var c=dN(this.g),d=rN(this,c);b&&(d.Th=a);var e=400<this.F;!(1<c.length)&&c[0].isEmpty()||e||(d.qg=qN(this,!0,a));d.send();this.F++}};function sN(a,b){var c=tN(a.b);ra(c,{state:a.A});c=new mN(a.b.b,a.b.g,b,c);c.k=a.b.j();c.M=a.b.A();c.xa=eN(a.b);c.b=[aN(a.b)];return c}function rN(a,b){var c=sN(a,"watchtime");c.b=b;c.k=a.g.b;return c}function uN(a){a.g.update();return rN(a,dN(a.g))}
function vN(a){var b=a.b.g;a=a.b.b;var c=a.Ha||b.C,c={ns:b.Wc,html5:"1",el:b.ba,ps:b.ob,fexp:b.b.b.join(",")||void 0,feature:c||void 0,ctrl:a.gb||void 0,ytr:a.hb||void 0,list:a.La,d:b.ra,f:b.aa};b.zc&&(c.autoplay="1");a.L&&(c.subscribed=a.L);return c}f.Og=function(){this.k.Og()};f.onError=function(a,b){this.k.onError(a,b)};
function wN(a,b){if(!a.ga()){V(b.state,2)?(a.A="paused",a.j&&uN(a).send()):V(b.state,8)?(a.A="playing",a.j&&isNaN(a.B)&&qN(a,!1)):a.A="paused";var c=a.k,d=b.state,e;e=b.state;if(V(e,128))e="ER";else if(V(e,16)||V(e,32))e="S";else{var g=jN[eu(e)];"B"==g&&V(e,4)&&(g="PB");e=g}if(e!=c.g){var g=e,h=eN(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.ga()){var k=lN(c);k.qoealert="1";k=$d(rL(c.b.g),k);nf(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?kN(c,"cmt",[c.b.j().toFixed(3)]):c.Gk();kN(c,"vps",[e]);c.g=e}if(V(d,128))c.onError(d.b.errorCode,d.b.errorDetail);(V(d,2)||V(d,128))&&c.xg();a.o&&V(b.state,128)&&(a.di("error-100"),M(a.o))}}function xN(a){a.o=Ve(t(a.di,a,"heartbeat"),3E4)}
f.di=function(a){var b=this.b.g,c=this.b.b,d={ns:b.Wc,el:b.ba,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.zc&&(d.autoplay="1");c.nk&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=cN(this.g));ra(d,oL(b));nf($d("//www.youtube.com/live_204",d))};f.J=function(){pN.G.J.call(this);M(this.B);this.B=NaN;var a=this.g;We(a.A);a.A=NaN};pN.prototype.getDebugInfo=function(){return nN(sN(this,"playback"))};
function yN(a){if(!a.M){a.b.b.o.eventLabel=a.b.g.ba;a.b.b.o.playerStyle=a.b.g.ob;a.b.b.T&&(a.b.b.o.feature="pyv");a.b.b.o.vid=a.b.b.videoId;a.b.b.o.isAd=!("adunit"!=a.b.g.ba&&!a.b.b.T);var b=a.b.b.o;b&&b.uid&&(SM[b.uid]=b);t:{b=a.b.b.o.uid;if(!b){b=Te("CONVERSION_CONFIG_DICT");if(!b)break t;b=b.uid||null;if(!b)break t}i:{var c=Te("CONVERSION_CONFIG_DICT");if(r(b)){var d=TM(b);if(!c||c.uid!=d)if(c=SM[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=$d(c.baseUrl,h)}else e=null}else e=null;e&&nf(e)}(e=Te("CONVERSION_CONFIG_DICT"))&&(!r(b)||e.uid==TM(b))&&Vb(ZM,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=$d(e.baseUrl,b))&&nf(b))}a.M=!0}};function zN(){this.endTime=this.startTime=-1;this.Jk="-";this.playbackRate=1;this.visibilityState=0}zN.prototype.isEmpty=function(){return this.endTime==this.startTime};function AN(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 eN(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 tN(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.wa&&(c.threed=a.gz);c.plid=a.yb;c.ei=a.A;c.list=a.La;c.cpn=a.Da;a.videoId&&(c.v=a.videoId);a.vk&&(c.infringe=1);a.Md&&(c.splay=1);a.Za&&(c.live=a.nb?"dvr":"live");a.rg&&(c.autoplay=1);a.mf&&(c.sdetail=a.mf);a.U&&(c.partnerid=a.U);a.eb&&(c.osid=a.eb);ra(b,c);return b}
function aN(a){var b=new zN;b.Jk=a.o().cc||"-";var c=a.g;b.playbackRate=c.Pa&&c.Pa.playbackRate||1;(c=Eg("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.g.tb?b.visibilityState=2:a.g.nr&&(b.visibilityState=1);return b};function BN(a,b){this.state=a;this.b=b}function Zv(a,b){return V(a.state,b)&&!V(a.b,b)?1:!V(a.state,b)&&V(a.b,b)?-1:0};function CN(a,b){cj.call(this);this.ya=new PM;this.A=new iu(t(this.getCurrentTime,this),t(this.getPlayerState,this),t(this.Wh,this));R(this,this.A);this.T=NaN;this.I=this.B=null;this.C=a;this.ra=new MM(a);this.wa=!1;this.D=this.k=null;this.L=[];this.P=new QM;this.N=new QM;this.xa=NaN;this.j=new Yt;this.Ha=b;this.V=this.ca=null;this.F=NaN;this.U=new cw(this);this.b=new Rr;this.g=this.O=null;this.da=NaN;this.o=null;this.Ca=!1;this.aa=0;this.Ia=null;this.la=!1;this.oa=null}w(CN,cj);
function st(a){oz()?rz(a.aa):M(a.aa)}f=CN.prototype;f.J=function(){M(this.da);We(this.xa);rt(this);DN(this);st(this);OH(this);Oh(this.V,this.U,this.b);this.U=this.I=null;this.la=!1};
function EN(a,b,c){a.L.length=0;a.P=new QM;a.N=new QM;a.T=NaN;a.F=NaN;a.O=null;a.Ca=!1;a.g&&Vt(a.g);FN(a);rt(a);DN(a);st(a);Mh(a.b);a.A.reset();if(2==a.Ha||gf(a.C.Ae))b.lp=!0;a.b=b;a.b.subscribe("dataupdated",a.Kx,a);a.b.subscribe("dataloaded",a.oq,a);a.b.subscribe("onStatusFail",a.Jx,a);b.zf&&b.zf>b.Sa&&(b=b.zf,a.I&&(a.A.Fg(a.I),a.I=null),a.I=new fu(1E3*b,2147483646),a.I.ab.subscribe("onEnter",a.wg,a),a.A.Ci(a.I));rt(a);a.b.ue||(c=new AN(a.b,a.C,c,t(a.Vd,a),t(a.getCurrentTime,a),t(a.Hx,a),t(a.Ix,
a)),a.o=new pN(c));a.la=!1;GN(a,"newdata");HN(a,new Yt)}function rt(a){if(a.o){var b=a.o;if(!b.ga()&&b.j){b.A="paused";var c=uN(b);c.Ho=!0;c.send();c=b.k;"PL"==c.g&&(c.g="N");kN(c,"vps",[c.g]);c.xg();M(b.o);b.dispose()}Mh(a.o);a.o=null}}f.getVideoData=function(){return this.b};f.R=function(){return this.C};function IN(a){return!(!a.b.g||!a.b.g.g.length)}function JN(a){if(gs(a.b))return!0;Yv(a,"api.invalidparam");return!1}function KN(a){JN(a)&&!a.P.g&&(a.P.start(),a.o&&a.o.Og(),a.oq())}
f.oq=function(){if(hs(this.b))hs(this.b),this.P.b=!0,this.L=vb(this.b.F),bs(this.b),IN(this)&&(this.b.nb&&(LN(this,this.b.Oa),MN(this,!0)),this.b.g.b&&NN(this),OJ(this,"i")),GN(this,"dataloaded"),this.N.g&&ON(this);else if(this.b.la){var a=this.b;a.la=!1;var b=a.O,c=Ai(b),b=0>Rr.g.indexOf(c)?hf(b):jf(b),c=t(a.eA,a),a=t(a.om,a);Gp(new xp(b),b,c,a)}else this.b.Ne||(a=pL(this.C,this.b),is(this.b,a))};function PN(a){KN(a);JN(a)&&(a.N.g||(a.N.start(),HN(a,du(a.j,8))),ON(a))}
function ON(a){if(!(a.N.b||!a.P.b||V(a.j,128)||a.L.length||(a.A.Cg||a.A.Og(),a.L.length||0<Ft(a.A.g,-2147483648).length))){a.b.Za&&QN(a,Infinity,!0);a.N.b=!0;if(a.o){var b=a.o;b.b.b.ai&&b.b.b.Ck&&(b.di("connected"),xN(b))}a.H("playbackready",a)}}f.wg=function(a){this.pauseVideo();HN(this,!1==a?new Yt:new Yt($t()))};
function RN(a,b,c,d){a.b.b=c;a.b.N=d||c;if(a.o){d=a.b;var e=OM(a.ra,d),e=lb(d.g.g,t(e.k,e));d=a.o.k;e=new LM(c,b,e?e.id:"");c=eN(d.b);kN(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 F(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 F(Number.NaN,Number.NaN);0<e.width&&0<e.height&&kN(d,"view",[Math.round(e.width),Math.round(e.height)],c);kN(d,"vps",[d.g],c);d.xg(c)}a.H("internalvideoformatchange",
a.b,"m"==b)}function Yv(a,b,c,d){if(Vb(Hu,c))var e=c;else var g=c;HN(a,bu(a.j,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));SN(a)}function TN(a,b){a.L=a.L.filter(function(a){return b!=a});a.N.g&&ON(a)}f.Wh=function(){return V(this.j,8)&&!V(this.j,64)&&!V(this.j,2)};f.getPlayerState=function(){return this.j};f.getPlayerType=function(){return this.Ha};function UN(a,b){a.g&&OH(a);a.g=b;VN(a)}
function OH(a){a.D=null;a.k&&(a.k.D=!0);a.g&&(a.o&&a.P.g&&V(a.j,64)&&wN(a.o,new BN(new Yt(4),a.j)),FN(a),a.U.removeAll(),Vt(a.g),a.g=null)}
function WN(a){PN(a);V(a.j,64)&&HN(a,du(a.j,8));if(a.N.b&&a.g)if(a.b.g){var b;if(a.b.g.b)XN(a),b=a.Ia,a.k.resume();else{DN(a);b=a.b.V.b;var c=a.b,d={};c.P&&(d.ptk=c.P,d.oid=c.pd,d.ptchn=c.Uc,d.pltype=c.od);ra(b.g,d);ra(b.g,{c:a.C.qf,cver:a.C.ve})}a.g.yd!=b?YN(a,b):(ks(a.b)&&St(a.g)&&QN(a,Infinity,!0),Tt(a.g))}else Yv(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function Vs(a){if(!a.b.g)return[];var b=ZN(a);a=Up(a.b.g,b);a.length&&(a=a.concat(["auto"]));return a}
function $N(a){return Rp(Rp(NM(a.ra,a.b),OM(a.ra,a.b)),ZN(a))}function ZN(a){return a.b.Dk?Op:a.B?a.B.j:IN(a)&&a.b.g.b&&yp(a.b.j)?Np:Op}function OJ(a,b,c){if(!a.ga()&&!V(a.j,128)&&(c&&(a.b.tf=c),IN(a))){"m"==b&&c&&Pp(c)&&(b="a");c=$N(a);if(a.b.g.b){if("i"!=b){var d=a.k;d.ga()||(gH(d,AL(d.o,c,b)),iH(d,d.g,CL(d.o)),Qp(d.o.b)&&"m"==b&&(d.pa.U?(jH(d.g,!1),d.g.B=!0):jH(d.g,!0),d.g.j.mc()&&PL(d.g,d.k)),XL(d.g)&&pM(d,d.g,d.j),kH(d))}}else a.b.V=Pr(a.b.I,c),RN(a,b,a.b.V.getInfo());a.Wh()&&WN(a)}}
function dH(a){if(!a.getVideoData().N)return null;var b=a.getVideoData().N;return lb(a.oa,function(a){return a.id==b.id})}
function NN(a){Jp(a.b.j,{c:a.C.qf,cver:a.C.ve});var b=a.C,c=new eD;if(or()||b.b.oa)c.M=!0;or()&&(c.D=-1);b.b.ra&&(c.V=!0);b.b.da&&(c.O=!0,c.B=1.25);b.b.T&&(c.A=1.5);b.b.P&&(c.C=3.5);b.b.ub&&(c.F=300);b.b.za&&(c.L=!0);b.b.Ca&&(c.U=!0);vE(b)&&(c.o=8388608,c.k=524288,c.g=2097152,c.I=1048576,c.A=1.5,c.P=15,c.b=!1,c.N=!1,c.F=0,c.ci=to.hd720,mr()&&(c.ua=3E5));ph&&nr("crkey")&&(c.o=20971520,c.k=1572864,c.g=20971520,c.b=!0,c.j=1E3);var b=b.tg||new F(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.I=8388608,c.ci=to.auto);a.k=new hM(a.ca,c,a.b.j,a.b.g);a.k.subscribe("initsegment",a.ku,a);a.k.subscribe("formatchange",a.mu,a);a.k.subscribe("fatalerror",a.lu,a);a.k.subscribe("softerror",a.Ao,a);a.k.subscribe("seekrequired",a.nu,a);c=C(a.L,"spacecast");a.k.initialize(a.b.Sa,$N(a),c);a.b.hf&&(a.k.N=a.b.hf);a.L.length&&(a.k.D=!0)}function DN(a){a.k&&(a.k.dispose(),a.k=null);a.D&&(a.D.dispose(),a.D=null)}
function XN(a){if(!a.D){a.k?a.k.seek(a.getCurrentTime()):NN(a);a.D=new pr(a.g,a.b.Oa,a.b.g.g[0].mimeType,a.b.g.b[0].mimeType);try{var b=rr(a.D)}catch(c){c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);Yv(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Ia=new xr(b,!0);qr(a.D,t(a.k.dA,a.k))}}
f.ku=function(a){if(this.B){var b=this.B;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&&IM(b,new GM(a),!1)}}};f.mu=function(a){RN(this,a.g,a.video.info,a.b.info)};
f.lu=function(a,b){Yv(this,a,void 0,b);DN(this)};f.Ao=function(a,b){if(this.o)this.o.onError(a,b);var c;if(c="net.badstatus"==a)if(c=this.C.b.O)c=this.b,c=v()-c.Xx>Rr.o;c&&(this.o.onError("staleconfig"),this.H("urlauthexpired"))};f.pauseVideo=function(a){if(V(this.j,64)&&!a){var b=this.j;HN(this,bu(b,b.g&-9))}this.g&&(a&&HN(this,du(this.j,256)),this.g.pauseVideo())};
function SN(a){a.pauseVideo(!0);a.g&&(FN(a),a.D&&(a.D.dispose(),a.D=null),a.b&&(a.b.Sa=a.getCurrentTime()),a.F=NaN,Ut(a.g),V(a.j,128)||HN(a,bu(a.j)))}function QN(a,b,c,d){if(a.g){b=Jb(b||0,0,aO(a));b>=aO(a)?MN(a,!0):MN(a,!1);a.b.Sa=b;a.F=b;var e=a.ya;e.b=b;e.g=!0;c?a.Li():(XG(a),d&&(a.V||(a.V=new ew(a.Li,d,a)),a.V.start()),bO(a,!0));a.I&&b>a.b.zf&&(a.A.Fg(a.I),a.I=null);a.H("seekto",a,b)}else a.b.Sa=b||0}
function XG(a){V(a.j,32)||(HN(a,du(a.j,32)),V(a.j,8)&&a.pauseVideo(!0),a.H("beginseeking",a))}f.Li=function(){if(!isNaN(this.F)&&this.g){var a=this.Vd();!this.b.Za&&this.F>=Math.floor(a)?(this.F=a,this.H("endseeking",this),this.pauseVideo(!0),this.wg()):(this.k&&this.k.seek(this.F),Rt(this.g,this.F))}this.V&&(this.V.dispose(),this.V=null);V(this.j,32)&&(a=this.j,HN(this,du(bu(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.pg||this.b.Sa||0);return a};f.Vd=function(){return ks(this.b)?Infinity:this.b&&this.b.Oa?this.b.Oa:aO(this)?aO(this):0};
f.Hx=function(){var a=new RM;if(this.ca&&this.k){var b=this.ca;a.j=b.D;a.o=b.F;a.b=EK(b);b=this.k;b.b&&!tr(b.b)&&(a.g=Mt(b.b.g.buffered,b.k),a.k=Mt(b.b.b.buffered,b.k));a.b=xL(b.C);EK(b.B);CK(b.B);DK(b.B)}else this.g&&(a.g=Mt(this.g.buffered,this.getCurrentTime()));return a};function cO(a){if(a.g)if(ks(a.b))a=1;else if(ls(a.b))if(a.wa)a=0;else{var b=a.g;a=(0<Lt(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.Vd()}else a=Ws(a.g);else a=0;return a}
CN.prototype.getDebugInfo=function(a){var b={};a&&(this.o&&ra(b,this.o.getDebugInfo()),this.g&&ra(b,this.g.getDebugInfo()),this.k&&ra(b,this.k.getDebugInfo()),V(this.j,128)&&(b.debug_error=this.j.b),(this.L.length||0<Ft(this.A.g,-2147483648).length)&&(b.preroll="1"));b.debug_videoId=this.b.videoId;return b};f=CN.prototype;f.Kx=function(){if(this.B){var a=this.B,b=this.b.B;a.k=b;a.H("oauthtoken",b)}GN(this)};f.Jx=function(a){Yv(this,"auth",unescape(a.reason),a.errordetail)};
function GN(a,b){a.H("internalvideodatachange",b||"dataupdated",a,a.b)}function VN(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.FC)},a)}
f.FC=function(a){var b=a.target;if(b==this.g&&b.currentSrc){switch(a.type){case "error":if(this.C.wk&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(t(function(){this.g&&(this.b.V&&this.g.load(),WN(this))},this),500);if(this.o)this.o.onError("progressive.net");return}break;case "durationchange":if(!this.b.nb||this.b.j&&!this.b.j.g)b=b.duration||0,(!this.D||isFinite(b)&&0<b)&&LN(this,b);break;case "ratechange":this.k&&(this.k.C.g=Math.max(1,this.g.playbackRate));break;case "ended":HN(this,
bu(this.j,4));this.xk();break;case "loadedmetadata":this.b.Sa&&(this.g.currentTime=this.b.Sa),this.C.Co&&this.b.Sa&&(this.T=this.b.Sa,this.pauseVideo(!0));case "loadeddata":this.da&&M(this.da);break;case "loadstart":We(this.xa);this.ki()||(this.xa=Ve(t(this.ki,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.za=this.U.listen(this.g,"canplay",this.Iv));case "suspend":bO(this);this.H("onLoadProgress",this,cO(this));
break;case "seeked":dO(this);break;case "playing":Dq("plev");break;case "timeupdate":this.Ca=!0,this.ki(),dO(this),bO(this),this.H("onVideoProgress",this,b.getCurrentTime())}this.H("videoelementevent",a);a=Zt(this.j,a,this.ya);HN(this,a)}};
f.ki=function(){var a=this.g;a&&this.Ca&&!this.b.Ik&&!Fq("vfp")&&2<=a.readyState&&!a.ended&&0<Lt(a.buffered)&&Dq("vfp");if((a=this.g)&&!this.b.Ik&&0<(a.duration||0)&&(!Fq("paft")&&Fq("plev")&&St(a)&&2<=a.readyState&&0<Lt(a.buffered)&&Dq("pbr"),0<a.getCurrentTime())){We(this.xa);this.b.Ik=!0;eO(this);if(this.o){a=this.o;if(!a.j){var b=sN(a,"playback");a.D=[10+a.b.b.Oh,10,10,40+a.b.b.ak-a.b.b.Oh,40];var c=a.g;We(c.A);c.A=NaN;c.A=Ve(t(c.update,c),100);c.o=eN(c.g);c.k=aN(c.g);b.qg=qN(a,!0);b.Su=!0;b.send();
!a.b.g.fc||a.b.g.bi||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:sL(b),eurl:b.g,framer:b.D,feature:b.C,fmt:c.b?c.b.id:0,ptk:c.P,skl:c.wo,access_token:c.B,ucid:c.gf},ra(b,vN(a)),delete b.fexp,b=$d(a.b.g.qb+"user_watch",b),nf(b));a.b.b.P&&(b=a.b.g,c=a.b.b,b=$d(b.qb+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.Da,plid:c.yb,ei:c.A,ptk:c.P,oid:c.pd,ptchn:c.Uc,pltype:c.od,content_v:b.A}),nf(b));if(a.b.b.vo&&a.b.g.ze&&!a.j){var b=a.b.g,c=a.b.b,d=
{noflv:1,video_id:c.videoId,cpn:c.Da,el:b.ba,ps:b.ob,referrer:sL(b),eurl:b.g,framer:b.D,fmt:c.b?c.b.id:0,ptk:c.P,subscribed:c.L,t:c.$j};b.zc&&(d.autoplay="1");c.Md&&(d.splay="1");0<c.Sa&&(d.start=1E3*c.Sa);c.nk&&(d.tmi="1");b=$d(a.b.g.qb+"get_video",d);nf(b)}a.b.b.ai&&(a.di("playback"),a.o||xN(a));a.b.b.te||yN(a);a.j=!0;a=a.g;a.b=a.g.j();a.o=eN(a.g);.5<a.b-a.j&&(a.j=a.b)}L(t(this.xk,this),4500)}this.H("playbackstarted");this.k&&(this.k.U=!0);oz()&&sz();return!0}return!1};
function eO(a){var b=v(),c=a.getCurrentTime(),d=a.b;if(!Fq("pbs")){var e=1E3*(c-d.Sa);0>e&&(e=0);Dq("pbs",b-e);Aq.measure&&Aq.getEntriesByName&&(Aq.getEntriesByName("mark_navigation_requested")[0]?Aq.measure("measure_above_the_fold","mark_navigation_requested"):Aq.measure("measure_above_the_fold"))}d.videoId&&(b=d.videoId,Jq(void 0).docid=b);d.A&&(b=d.A,Jq(void 0).ei=b);d.Da&&(b=d.Da,Jq(void 0).cpn=b);0<d.Sa&&(b=d.Sa.toString(),Jq(void 0).start=b);a.g&&St(a.g)&&(Jq(void 0).paused=1);d.b?(d=d.b.id,
Jq(void 0).fmt=d):Jq(void 0).fmt="-1";d=Math.round(cO(a)*a.Vd()).toString();Jq(void 0).tds=d;c=c.toFixed(3);Jq(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],jM(a,"vri",c.fetchStart),jM(a,"vdns",c.domainLookupEnd),jM(a,"vreq",c.requestStart),jM(a,"fvb",c.responseStart),jM(a,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(a.V),c.length&&(c=c[0],jM(a,"ari",c.fetchStart),jM(a,"adns",
c.domainLookupEnd),jM(a,"areq",c.requestStart),jM(a,"fab",c.responseStart),jM(a,"arc",c.responseEnd)));a=a.da;for(var g in a)Dq(g,a[g])}}f.Iv=function(){this.za&&(this.U.Fa(this.za),this.za=void 0,Tt(this.g))};
function bO(a,b){if(a.g&&a.b){var c=a.getCurrentTime();if(c<fO(a))QN(a,aO(a),!0);else{if(a.k){var d=a.k;if(d.b){d.resume();if(d.F&&!tr(d.b)){var e=d.k<=c&&c<d.k+10,g=0<=Jt(d.b.b.buffered,d.k)&&0<=Jt(d.b.g.buffered,d.k);e&&g&&(d.F=!1)}d.F||(d.k=c);sM(d)}}ls(a.b)&&c>a.Vd()&&(d=a.Vd(),0==d&&(d=c),LN(a,1.2*d));5<c&&(a.b.Sa=c);(d=oz())?rz(a.aa):M(a.aa);St(a.g)||(e=t(a.tv,a),a.aa=a.g.played&&0==a.g.played.length?d?pz(e,100):L(e,100):d?pz(e,500):L(e,500));a.b.pg=c;!b&&a.Wh()&&a.o&&(d=a.o,d.g.update(),d.b.b.Oa&&
d.b.b.te&&!d.L&&cN(d.g)>=d.b.b.te&&(d.j&&d.b.b.te&&(e=sN(d,"delayplay"),e.uv=!0,e.send(),d.L=!0),yN(d)),e=d.N,!e.k&&e.b.ze&&!e.b.bi&&e.g.Oa&&cN(e.o)>=e.g.So&&d.N.send());a.ki()&&a.b.Ak&&0<a.b.pg&&(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.ba,ps:e.ob,subscribed:g.L,yttk:"1",st:d.b.j(),et:d.b.j(),ctp:"1",vid:e.ya},d=$d("//s2.youtube.com/s",d),nf(d)),a.b.Ak=!1);a.H("progresssync",a,b);a.b.vv=c}}}
f.tv=function(){this.g&&(V(this.j,8)&&cu(this.ya,this.getCurrentTime(),Date.now(),Mt(this.g.buffered,this.g.getCurrentTime()))&&HN(this,du(this.j,1)),bO(this))};
function HN(a,b){var c=a.j;if(b.g!=c.g||b.b!=c.b){c=new BN(b,a.j);a.j=b;0>Zv(c,8)&&MN(a,!1);0<Zv(c,32)&&MN(a,!1);ls(a.b)&&V(c.state,2)&&(LN(a,a.getCurrentTime()),bO(a,!0));a.o&&wN(a.o,c);var d=a.A;if(d.Cg&&!d.Ai)if(lu(d),V(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=Ft(d.g,2147483646);g=g.concat(Gt(d.g,2147483646));e=nu(d,e).concat(mu(d,g));ou(d,e)}else V(c.state,16)?(d.k=ku(d),d.o.stop(),d.o.start(),d.nc()):(d.o.stop(),V(c.b,16)?(d.k=
ku(d),null!=Ht(d.g,Math.max(d.k-2E3,0))&&(d.Gg=Rk(t(d.nc,d)))):d.nc());a.H("statechange",c)}}f.Ix=function(){this.b.Za||this.H("connectionissue")};f.nu=function(){Rt(this.g,Math.max(0,this.g.currentTime+.1))};function dO(a){V(a.j,2)||V(a.j,32)||(a.F=NaN)}function MN(a,b){a.b.nb&&a.wa!=b&&(a.wa=b,a.H("liveviewshift",b))}function YN(a,b){Qt(a.g,b);a.D&&!b.b&&(a.D=null);cs(a.b)&&gO(a);M(a.da);a.da=L(t(a.hA,a),15E3);a.C.Lp?L(t(function(){Tt(this.g)},a),0):Tt(a.g)}
function gO(a){var b=cs(a.b);if(b&&!a.B&&a.g)if(b=fr(a.g,a.b.b.mimeType,b)){a.B=new HM(a.g,b);a.B.subscribe("newsession",a.vz,a);a.B.subscribe("licenseerror",a.qz,a);a.B.subscribe("qualitychange",a.rz,a);a.B.subscribe("heartbeatparams",a.uz,a);var b=a.B,c=a.b.B;b.k=c;b.H("oauthtoken",c);R(a,a.B)}else Yv(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function FN(a){a.B&&(a.B.dispose(),a.B=null)}
f.vz=function(a){var b=oL(this.C);b.cpn=this.b.Da;this.b.D&&(b.vvt=this.b.D);this.C.Ta&&(b.authuser=this.C.Ta);this.C.$a&&(b.pageid=this.C.$a);ec(a.o,b);vt(a,a.A);this.H("newlicensesession",a)};f.qz=function(a,b,c){Yv(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.rz=function(){OJ(this,"r");GN(this)};f.uz=function(a){this.H("heartbeatparams",a)};f.hA=function(){this.o.onError("qoe.start15s");this.H("loadsofttimeout")};function LN(a,b){a.b.Oa!=b&&(a.b.Oa=b,GN(a))}
f.xk=function(){if(!this.la){var a=new KM(this.b),b;"c1a"in a.g?(b=q("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)L(t(this.xk,this),4500);else{this.la=!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=sN(a,"atr"),b.B=c,b.send(),a.I=!0))}}};
function aO(a){if(!a.g)return 0;if(a.k){var b=a.k,c=Math.floor(Math.min(b.j.j.index.Bf(),b.g.j.index.Bf()));return Math.max(b.A.g?c-14:c,fO(a))}a=a.g;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}function fO(a){return a.b.j?(a=Sb(a.b.j.b))?a.index.wn():0:0};function hO(){this.j=!1;this.g=0;this.b=""};function iO(a,b,c){this.k=b;this.b=c;this.j=a}iO.prototype.getMessage=function(){return this.k};iO.prototype.getErrorCode=function(){return this.b};iO.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.g?" Caused by: "+this.g:"")};function jO(a,b){S.call(this,"adError");this.j=a;this.k=b?b:null}w(jO,S);var kO="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 viewable_impression".split(" ");function lO(a,b,c){S.call(this,a);this.k=b;this.j=null!=c?c:null}w(lO,S);lO.prototype.getAd=function(){return this.k};
var mO={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",PH:"engagedview",TH:"expandedChanged",STARTED:"start",Qr:"impression",AK:"viewable_impression",PAUSED:"pause",wJ:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",MJ:"skipshown",KJ:"skippableStateChanged",mG:"adMetadata",nF:"adBreakReady",
HI:"log",VOLUME_CHANGED:"volumeChange",CK:"mute",bH:"companionBackfill",NK:"youTubeVideoMetadata",MK:"youTubeChannelMetadata"};var nO=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"];function oO(a){return x(a)?!1:null!=lb(nO,function(b){return null!=a.match(b)})}
function pO(a){a=oO(a)?'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"':a;var b=I("iframe",{src:a,style:"display:none"});a=Mc(b).body;var c,d=Rk(function(){Hk(c);fd(b)},15E3);c=Fk(b,["load","error"],function(){Rk(function(){Sk(d);fd(b)},5E3)});a.appendChild(b)};var qO=["google-developers.appspot.com","devsite.googleplex.com"],rO=["*.googlesyndication.com"],sO=["*.youtu.be","*.youtube.com"],tO="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(" "),
uO=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function vO(a){var b;if(b=null!=a)(b=wO(qO,a))||(b=re(new J(a)),b=null!=b?va(b,".corp.google.com")||"corp.google.com"==b:!1),b=b||(null!=a?wO(sO,a):!1);return b}function wO(a,b){try{var c=re(new J(b)),c=c.replace(/^www./i,"");return jb(a,function(a){return xO(a,c)})}catch(d){return!1}}
function xO(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 yO(a){if("https:"==window.location.protocol){var b=new J(a);if((new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+tO.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a))return ee(b,"https"),b.toString()}return a};function zO(a){window.open(yO(a),"_blank")}function AO(a,b,c){null!=a?(K(a,"label",b),null!=c&&K(a,"value",c.join(";")),a=a.toString()):a="";BO(a)}function BO(a,b,c){null!=b&&(a=CO(a,b));null!=c&&(x(c)||(b=new J(a),Ee(b.b,"label")&&(K(b,"acvw",c),a=b.toString())));a=yO(a);pO(a)}function DO(a,b){null!=a&&z(a,function(a){BO(a,b)})}
function CO(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=ac(b,a),d=d.toString();if(!x(d))return encodeURIComponent(d).replace("%2C",",")}catch(e){}return a})};function EO(a,b){this.message=a;this.errorCode=b}EO.prototype.getErrorCode=function(){return this.errorCode};EO.prototype.getMessage=function(){return this.message};
var FO=new EO("Unable to request ads from server. Cause: {0}.",1005),GO=new EO("Unable to request ads from server due to network error.",1012),HO=new EO("Cannot parse the {0} value for the adslist response: {1}.",900),IO=new EO("Invalid usage of the API. Cause: {0}",900),JO=new EO("Unable to display one or more required companions.",602),KO=new EO("There was a problem requesting ads from the server.",1005),LO=new EO("The provided ad type: {0} is not supported.",1005),MO=new EO("The provided {0} information: {1} is invalid.",
1101),NO=new EO("The response does not contain any valid ads.",1009),OO=new EO("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),PO=new EO("The ad playlist response was malformed or empty.",1010),QO=new EO("The ad response was not understood and cannot be parsed.",1010),RO=new EO("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),SO=new EO("The ad response contains unexpected element. Cause {0}.",
1010),TO=new EO("No assets were found in the VAST ad response.",200),UO=new EO("Duplicate node in <{0}>: {1}",101),VO=new EO("The VAST response document is empty.",1009),WO=new EO("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),XO=new EO("Ad request reached a timeout.",301),YO=new EO("VAST response was malformed and could not be parsed.",100),ZO=new EO("VAST media file loading reached a timeout of {0} seconds.",402),$O=new EO("Ad request could not be completed due to a network error.",
301),aP=new EO("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),bP=new EO("The maximum number of VAST wrappers ({0}) has been reached.",302),cP=new EO("VAST media file duration differs from the VAST response duration by {0} seconds.",202),dP=new EO("Video player received an ad with unexpected or incompatible linearity",201),eP=new EO("Unknown node in <{0}>: {1}",101),fP=new EO("Invalid VAST resource type: {0}",101),gP=new EO("Invalid VAST version",
102),hP=new EO("No additional VAST wrappers allowed.",300),iP=new EO("No Ads VAST response after one or more Wrappers",303),jP=new EO("There was an error playing the video ad.",400),kP=new EO("VMAP unsupported node in <{0}>: {1}",1010),lP=new EO("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);function mP(a,b,c){return nP("adLoadError",a,b||null,yb(arguments,2))}function oP(a,b,c){return nP("adPlayError",a,b||null,yb(arguments,2))}
function pP(a,b,c,d,e){var g=a.apply(null,ub([c,d],yb(arguments,3)));b.S(new lO("log",null,g))}function nP(a,b,c,d){if(c instanceof iO)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 iO(a,b,e);a.g=c;return a}function qP(a,b,c,d){var e=oP.apply(null,ub([b,c],yb(arguments,3)));a.S(new jO(e))};function rP(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};var sP=new function(){this.j="always";this.b=this.k=this.g=!1};function tP(a){return(a=a.exec(gc))?a[1]:""}var uP=function(){if(kh)return tP(/Firefox\/([0-9.]+)/);if(rc||qc)return Ac;if(ph)return tP(/Chrome\/([0-9.]+)/);if(qh)return tP(/Version\/([0-9.]+)/);if(mh||nh){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(gc))return a[1]+"."+a[2]}else{if(oh)return(a=tP(/Android\s+([0-9.]+)/))?a:tP(/Version\/([0-9.]+)/);if(lh)return tP(/Camino\/([0-9.]+)/)}return""}();var vP={},wP="",xP=/OS (\S+) like/,yP=/Android (\S+);/;function zP(){return nc||Qa(gc,"Mobile")}function AP(a,b){if(null==vP[b]){var c;xa(wP)&&(c=a.exec(gc))&&(wP=c[1]);(c=wP)?(c.replace(/_/g,"."),vP[b]=0<=Va(c,b)):vP[b]=!1}return vP[b]}function BP(){return oc&&zP()&&Qa(gc,"Safari")||nc&&(!nc||!AP(yP,4))?!1:!0};function CP(){this.g=.05>Math.random();this.b=Math.floor(4503599627370496*Math.random())}da(CP);function DP(a,b,c,d){if(a.g||d){c=c||{};c.lid=b;c=EP(a,c);var e=new J("http://pagead2.googlesyndication.com/pagead/gen_204");Ob(c,function(a,b){K(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=FP();ee(e,a.Gb);BO(e.toString())}}function EP(a,b){b.id="";var c=FP();b.c=a.b;b.domain=c.Cb;return b}function FP(){var a=Wc(),b=document;return new J(a.parent==a?a.location.href:b.referrer)};function GP(){}f=GP.prototype;f.lD=!1;f.$s=!1;f.Mq=!0;f.baseYouTubeUrl=null;f.Vf=-1;f.contentId=null;f.Bk=!1;f.mh=null;f.Hn=null;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.loadVideoTimeout=15E3;var HP={"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"},IP=["ADSENSE","ADSENSE/ADX"],JP=["DART","DART_DFA","DART_DFP"],KP=["GDFP"],LP={VI:"video/mp4",XI:"video/mpeg",II:"application/x-mpegURL",dJ:"video/ogg",aK:"video/3gpp",FK:"video/webm",UI:"audio/mpeg",WI:"audio/mp4"};function MP(a,b,c){if(D(a))return null;a=hb(a,function(a){var b=a.j;return"application/x-mpegurl"==ya(a.b).toLowerCase()||"progressive"==b});D(c)||(c=B(c,function(a){return a.toLowerCase()}),a=hb(a,function(a){return C(c,ya(a.b).toLowerCase())}));if(!ia(b)||0>=b)b=jc("iPad")||jc("Android")&&!jc("Mobile")||jc("Silk")||!(jc("iPod")||jc("iPhone")||jc("Android")||jc("IEMobile"))?1E3:500;return NP(a,b)}function NP(a,b){return OP(a,b)||PP(a,b)||QP(a,b)}
function OP(a,b){var c=null;z(a,function(a){var e=a.Re,g=a.ee;e>b||g<b||!(null==c||c.Re>e)||(c=a)});return c}function PP(a,b){var c=null;z(a,function(a){var e=a.Re,g=a.ee;g>b||(null==c||c.ee<g?c=a:null!=c&&c.ee==g&&c.Re>e&&(c=a))});return c}function QP(a,b){var c=null;z(a,function(a){var e=a.Re,g=a.ee;if(!(e<b))if(null!=c&&c.Re==e&&c.ee<g)c=a;else if(null==c||c.Re>e)c=a});return c};function RP(){T.call(this);this.k=this.o=this.j=!1;this.g=0;this.A=[];this.B=!1}w(RP,T);function SP(a,b){null==b||a.j||(a.b=b,a.C=!oc&&!yc,a.D=oc||yc,a.j=!0,a.b instanceof T||a.C?a.b.addEventListener("click",t(a.gp,a),!1):a.D?(a.b.addEventListener("touchstart",t(a.jp,a),!1),a.b.addEventListener("touchmove",t(a.ip,a),!1),a.b.addEventListener("touchend",t(a.hp,a),!1)):a.j=!1)}
function TP(a){null!=a.b&&a.j&&(a.C?a.b.removeEventListener("click",t(a.gp,a),!1):a.D&&(a.b.removeEventListener("touchstart",t(a.jp,a),!1),a.b.removeEventListener("touchmove",t(a.ip,a),!1),a.b.removeEventListener("touchend",t(a.hp,a),!1)),a.j=!1,a.o=!1,a.k=!1,a.g=0,a.A=[],a.B=!1)}f=RP.prototype;f.jp=function(a){this.o=!0;this.g=a.touches.length;this.B=UP(this,a.touches)||1!=a.touches.length;VP(this,a.touches)};f.ip=function(a){this.k=!0;this.g=a.touches.length};
f.hp=function(a){this.o&&1==this.g&&!this.k&&!this.B&&UP(this,a.changedTouches)&&this.S(new S("click"));this.g=a.touches.length;0==this.g&&(this.k=this.o=!1)};f.gp=function(){this.S(new S("click"))};function VP(a,b){a.A=[];z(b,function(a){qb(this.A,a.identifier)},a)}function UP(a,b){return jb(b,function(a){return C(this.A,a.identifier)},a)}f.J=function(){TP(this);RP.G.J.call(this)};function WP(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.ee=e;this.o=h;this.g=k;this.k=l}WP.prototype.getHeight=function(){return this.o};function XP(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 YP(){T.call(this)}w(YP,T);var ZP={HG:"beginFullscreen",CLICK:"click",MH:"end",OH:"endFullscreen",ERROR:"error",KI:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",JJ:"skip",RJ:"start",bK:"timeUpdate",BK:"volumeChange"};function $P(a){T.call(this);this.b=a;this.M=new Nk(4);this.C=this.N=0;this.I=this.j=this.B=!1;this.size=this.Nm();this.D=this.ej();this.O=15E3;this.F=!1}w($P,YP);f=$P.prototype;
f.hr=function(a,b,c,d){a=hb(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)||nc&&AP(yP,2.3)&&Ma(b,"application/ogg")?!1:nc&&(Ma(b,"video/mp4")||Ma(b,"video/3gpp"))||(oc||yc)&&(Ma(b,"application/x-mpegurl")||Ma(b,"application/vnd.apple.mpegurl"))?!0:!xa(this.b.canPlayType(b)))}return a},this);return MP(a,b,c)};f.As=function(){return hb(Tb(LP),function(a){return!xa(this.b.canPlayType(a))},this)};
f.Kl=function(a){this.O=0<a.kb?a.kb:15E3};f.Dg=function(a){aQ(this);this.b.src=a;this.b.load()};f.Fn=function(){return this.b.src};f.setVolume=function(a){this.b.volume=a};f.ce=function(){return this.b.volume};f.play=function(){this.F=!1;Rk(this.b.play,0,this.b);this.L=Rk(this.RB,this.O,this)};f.pause=function(){this.F=!0;this.b.pause()};f.kh=function(){return this.b.paused?oc||yc||ph?this.b.currentTime<this.b.duration:!0:!1};f.Pi=function(){return this.b.muted};
f.pn=function(){oc&&this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen&&this.b.webkitExitFullscreen()};f.ej=function(){if(oc)return this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen;var a=window.screen.availWidth||window.screen.width,b=window.screen.availHeight||window.screen.height,c=ja(this.b.getBoundingClientRect)?this.b.getBoundingClientRect():{width:this.b.offsetWidth,height:this.b.offsetHeight};return c.width>=a&&c.height>=b};
f.wh=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.Of=function(a){this.b.currentTime=a};f.getCurrentTime=function(){return this.b.currentTime};f.wd=function(){return isNaN(this.b.duration)?-1:this.b.duration};f.Le=function(){return this.b.ended};f.Nm=function(){return new F(this.b.offsetWidth,this.b.offsetHeight)};f.jr=function(){return this.b.seeking};f.J=function(){this.Df();this.b=null;$P.G.J.call(this)};f.ts=function(){return this.b.error};
f.Di=function(){this.Df();this.g=new Wk(this);this.g.listen(this.b,"canplay",this.Uz);this.g.listen(this.b,"ended",this.Rz);this.g.listen(this.b,"webkitbeginfullscreen",this.hm);this.g.listen(this.b,"webkitendfullscreen",this.Pq);this.g.listen(this.b,"pause",this.Sz);this.g.listen(this.b,"playing",this.Wz);this.g.listen(this.b,"timeupdate",this.Xz);this.g.listen(this.b,"volumechange",this.Tz);this.g.listen(this.b,"error",this.Op);this.o=new RP;this.g.listen(this.o,"click",this.Qz);SP(this.o,this.b);
this.A=new Pk(1E3);this.g.listen(this.A,"tick",this.Vz);this.A.start()};f.Df=function(){null!=this.o&&(TP(this.o),this.o=null);null!=this.A&&this.A.dispose();null!=this.g&&(this.g.dispose(),this.g=null);aQ(this)};function aQ(a){a.j=!1;a.I=!1;a.M.clear();Sk(a.L);Mh(a.k)}function bQ(a){a.j||(a.j=!0,Sk(a.L),a.S("start"),(!nc||nc&&AP(yP,3))&&(!oc||(oc||yc)&&AP(xP,4))||a.hm())}f.Uz=function(){var a;if(a=qh)a=gc,a=!(null!=a&&Qa(a,"Samsung")&&Qa(a,"SMART-TV"));a&&!this.I&&(this.Of(.001),this.I=!0)};
f.Wz=function(){this.S("play");oc||yc||oh||bQ(this)};f.Xz=function(){if(!this.j&&(oc||yc||oh)){if(0>=this.getCurrentTime())return;if(oh&&this.Le()&&1==this.wd()){this.Op();return}bQ(this)}if(oc||yc){if(!this.B&&1.5<this.getCurrentTime()-this.N){this.B=!0;this.Of(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.Tz=function(){this.S("volumeChange")};
f.Sz=function(){var a;this.j&&(oc||yc)&&!this.F&&2>cQ(this)-this.b.currentTime?(this.k=new Pk(250),this.g.listen(this.k,"tick",this.Wx),this.k.start(),a=!0):a=!1;a||this.S("pause")};f.Rz=function(){var a=!0;(oc||yc)&&(a=this.C>=this.b.duration-1.5);!this.B&&a&&this.S("end")};f.hm=function(){this.S("beginFullscreen")};f.Pq=function(){this.S("endFullscreen")};f.Op=function(){Sk(this.L);this.S("error")};f.Qz=function(){this.S("click")};
f.Vz=function(){var a=this.Nm(),b=this.ej();if(a.width!=this.size.width||a.height!=this.size.height)!this.D&&b?this.hm():this.D&&!b&&this.Pq(),this.D=b,this.size=a};f.RB=function(){if(!this.j){try{DP(CP.getInstance(),16)}catch(a){}aQ(this);this.S("mediaLoadTimeout")}};f.Wx=function(){if(this.Le()||!this.kh())Mh(this.k);else{var a=this.b.duration-this.b.currentTime,b=cQ(this)-this.b.currentTime;0<b&&(2<=b||2>a)&&(Mh(this.k),this.play())}};
function cQ(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 dQ(a,b){if(null==a||!ld(Mc(a),a))throw oP(MO,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(dQ,Kh);dQ.prototype.initialize=function(){zP()&&this.g.load()};dQ.prototype.dispose=function(){fd(this.b)};dQ.prototype.show=function(){var a=this.b;null!=a&&(a.style.display="block")};dQ.prototype.hide=function(){var a=this.b;null!=a&&(a.style.display="none")};function eQ(a){null!=a?wO(rO,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&wO(sO,a)?fQ(a):null:a=null;return a}function gQ(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");ie(c,d);return c.toString()}
function fQ(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=ve(new J(a));return Ee(a,"v")?a.get("v").toString():Ee(a,"video_id")?a.get("video_id").toString():null};function hQ(a){T.call(this);this.N="ima-chromeless-video";var b=null;null!=a&&(r(a)?this.N=a:b=a);this.O=new Wk(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.X=null;this.A=void 0;null!=b?(this.b=!0,this.X=b,this.A=2):(a=t(this.Qu,this),iQ?a():(jQ.push(a),a=$c("script"),a.src="//www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))}w(hQ,YP);
var kQ=["video/mp4","video/webm"],lQ={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},jQ=[],iQ=!1;f=hQ.prototype;f.hr=function(a,b,c){var d=lb(a,function(a){return null!==eQ(a.g)});return null!==d||!D(c)&&(c=hb(c,function(a){return C(kQ,a)}),d=MP(a,b,c),null!==d)?d:lb(a,function(a){return C(kQ,a.b)})};f.Kl=function(a){this.g=a};f.Dg=function(a,b){null!==a&&(this.L=a,this.b?mQ(this,a,b):(this.C=a,this.F=b))};f.Fn=function(){return this.L};
f.setVolume=function(a){this.P?this.S("volumeChange"):this.b?(a=Jb(100*a,0,100),this.X.setVolume(a),this.o=-1,this.S("volumeChange")):this.o=a};f.ce=function(){return this.b?this.X.getVolume()/100:this.o};f.play=function(){if(!x(this.L)){if(!this.j){nQ(this);var a=15E3;null!=this.g&&0<this.g.kb&&(a=this.g.kb);this.T=Rk(this.Lx,a,this)}this.b?(this.I=!1,oQ(this),this.k=new Pk(100),this.O.listen(this.k,"tick",this.qq),this.k.start(),this.X.playVideo()):this.I=!0}};
f.pause=function(){this.b&&this.j&&(oQ(this),this.X.pauseVideo())};f.kh=function(){return this.b?2==this.X.getPlayerState(this.A):!1};f.Pi=function(){return this.U?this.X.isMuted():0==this.ce()};f.pn=function(){};f.ej=function(){return!1};f.wh=function(a){return this.b?this.X.getCurrentTime(this.A)>=a:!1};f.Of=function(a){this.b?this.X.seekTo(a,!1):this.B=a};f.getCurrentTime=function(){return this.b?this.X.getCurrentTime(this.A):-1};
f.wd=function(){return this.b&&this.j?this.X.getDuration(this.A):-1};f.ts=function(){return null};f.As=function(){return Tb(LP)};f.Le=function(){return this.b?0==this.X.getPlayerState(this.A):!1};f.Nm=function(){var a=document.getElementById(this.N);return new F(a.offsetWidth,a.offsetHeight)};f.jr=function(){return!1};
f.Di=function(){this.M=t(this.Xs,this);this.D=t(this.Qn,this);this.P&&(this.X.addEventListener("onAdStateChange",this.D),this.X.addEventListener("onReady",this.M),this.X.addEventListener("onStateChange",this.D))};f.Df=function(){this.P&&(this.X.removeEventListener("onAdStateChange",this.D),this.X.removeEventListener("onReady",this.M),this.X.removeEventListener("onStateChange",this.D))};
f.Qu=function(){var a=this.N,b={playerVars:bc(lQ),events:{onError:t(this.yD,this),onReady:t(this.Xs,this),onAdStateChange:t(this.Qn,this),onStateChange:t(this.Qn,this)}},c=q("YT");this.X=null!=c&&null!=c.Player?new c.Player(a,b):null};
function mQ(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=eQ(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.j=!1;a.X.cueVideoByPlayerVars(d)}f.yD=function(){this.S("error")};
f.Xs=function(){this.b=!0;-1!=this.o&&(this.setVolume(this.o),this.o=-1);null!=this.C&&(mQ(this,this.C,this.F),this.F=this.C=null);-1!=this.B&&(this.Of(this.B),this.B=-1);this.I&&this.play()};f.Qn=function(a){switch(a.data){case 0:this.j?this.S("end"):this.S("error");break;case 1:this.j||(nQ(this),this.j=!0,this.S("start"));this.S("play");break;case 2:this.S("pause")}};function oQ(a){a.O.Fa(a.k,"tick",a.qq);null!=a.k&&(a.k.stop(),a.k=null)}function nQ(a){null!=a.T&&Sk(a.T)}f.qq=function(){this.S("timeUpdate")};
f.Lx=function(){this.S("mediaLoadTimeout")};f.J=function(){oQ(this);nQ(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.X=this.g=null;this.j=!1;this.L="";hQ.G.J.call(this)};ba("onYouTubeIframeAPIReady",function(){iQ=!0;z(jQ,function(a){a()});pb(jQ)},window);function pQ(a){T.call(this);this.b=a||Za();this.g=[]}w(pQ,T);pQ.prototype.j=!1;pQ.prototype.connect=function(){for(this.j=!0;!D(this.g);){var a=this.g.shift();this.sendMessage(a.name,a.type,a.data)}};pQ.prototype.send=function(a,b,c){this.j?this.sendMessage(a,b,c):this.g.push({name:a,type:b,data:c})};function qQ(a,b,c,d,e){S.call(this,a);this.gd=b;this.Ye=c;this.gr=d;this.k=e}w(qQ,S);qQ.prototype.getOrigin=function(){return this.k};qQ.prototype.toString=function(){return""};function rQ(a,b){pQ.call(this,b);this.k=a;this.Gc=null;this.o=new Wk(this);this.logger=null;this.o.listen(Wc(),"message",this.receive)}w(rQ,pQ);function sQ(a){if(null==a||!r(a)||0!=a.lastIndexOf("ima://",0))return null;a=a.substr(6);try{return pf(a)}catch(b){return null}}rQ.prototype.sendMessage=function(a,b,c){null!=this.Gc&&null!=this.Gc.postMessage&&this.Gc.postMessage(tQ(this,a,b,c),"*");null!=this.Gc&&null==this.Gc.postMessage&&DP(CP.getInstance(),11)};
rQ.prototype.J=function(){this.o.dispose();rQ.G.J.call(this)};rQ.prototype.receive=function(a){a=a.b;var b=sQ(a.data);if(null!=b){if(null==this.Gc)this.Gc=a.source;else if(this.Gc!=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 qQ(b.name,b.type,b.data||{},b.sid,a.origin))))}};function tQ(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://"+rf(e)};function uQ(a,b){T.call(this);this.k=a;this.j=b;this.b={};this.g=new Wk(this);this.g.listen(Wc(),"message",this.o)}w(uQ,T);uQ.prototype.send=function(a){var b=a.getChannelId();this.b.hasOwnProperty(b)?this.b[b].send(a.type,a.gd,a.Ye):a.getChannelId()};function vQ(a,b,c,d){a.b.hasOwnProperty(b)||(c=new rQ(b,c),a.g.listen(c,a.k,function(a){a=new wQ(a.type,a.gd,a.Ye,a.gr,a.getOrigin(),b);this.S(a)}),c.Gc=d,c.connect(),a.b[b]=c)}uQ.prototype.J=function(){this.g.dispose();Oh(this.b);uQ.G.J.call(this)};
uQ.prototype.o=function(a){a=a.b;var b=sQ(a.data);if(null!=b){var c=b.channel;if(this.j&&!this.b.hasOwnProperty(c)){var d=b.sid;vQ(this,c,d,a.source);this.S(new wQ(b.name,b.type,b.data||{},d,a.origin,c))}}};function wQ(a,b,c,d,e,g){qQ.call(this,a,b,c,d,e);this.j=g}w(wQ,qQ);wQ.prototype.getChannelId=function(){return this.j};function xQ(){var a=q("google.ima.gptProxyInstance",Wc());if(null!=a)return a;Wk.call(this);this.k=new uQ("gpt",!0);this.listen(this.k,"gpt",this.A);this.b=null;yQ()||Wc().top===Wc()||(this.b=new uQ("gpt",!1),this.listen(this.b,"gpt",this.o))}w(xQ,Wk);function yQ(){return!!q("googletag.cmd",Wc())}function zQ(){var a=q("googletag.console",Wc());return null!=a?a:null}
xQ.prototype.A=function(a){var b=a.getOrigin(),c=Qd("//imasdk.googleapis.com"),b=Qd(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.b)vQ(this.b,a.getChannelId(),a.gr,Wc().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.gd,"isGptPresent"==c?d=yQ():"isConsolePresent"==c&&(d=null!=zQ());else if(yQ())if("pubads"==b||"companionAds"==b){d=a.gd;var e,g=Wc().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.gd,e=zQ(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.gd;d=Wc();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))}};xQ.prototype.o=function(a){this.k.send(a)};function AQ(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,s,u){if("%"==p)return"%";var y=c.shift();if("undefined"==typeof y)throw Error("[goog.string.format] Not enough arguments");arguments[0]=y;return BQ[p].apply(null,arguments)})}
var BQ={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Sa(" ",c-a.length):Sa(" ",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+Sa(" ",a):g+Sa(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,g,h,k){return BQ.f(parseInt(a,
10),b,c,d,0,g,h,k)}};BQ.i=BQ.d;BQ.u=BQ.d;function CQ(a,b){T.call(this);this.j=new Wk(this);this.B=!1;this.C=Za();this.o=new Ed;var c=this.C,c=I("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+AQ("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});$k(this.j,c,"load",this.Av);a.appendChild(c);this.fb=c;c=this.o.get("*");null==c&&(c=new rQ(this.C,"*"),this.B&&(c.Gc=md(this.fb),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.Cv);this.j.listen(this.k,"touch",this.Fv);null!=this.b&&(this.j.listen(this.k,"displayContainer",this.Bv),this.j.listen(this.k,"videoDisplay",this.Ev),this.j.listen(this.b,Tb(ZP),this.Gv));var c=Wc(),d=q("google.ima.gptProxyInstance",c);null==d&&(d=new xQ,ba("google.ima.gptProxyInstance",d,c))}w(CQ,T);f=CQ.prototype;
f.J=function(){this.j.dispose();null!==this.g&&(this.g.dispose(),this.g=null);Cd(this.o.Wb(!1),function(a){a.dispose()});this.o.clear();fd(this.fb);CQ.G.J.call(this)};f.Cv=function(a){var b=a.Ye,c=Sf(this.fb),d=document.createEvent("MouseEvent");d.initMouseEvent(a.gd,!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(!qh||oc||yc||!1==document.webkitIsFullScreen)this.fb.blur(),window.focus();this.fb.dispatchEvent(d)};
function DQ(a,b){var c=Sf(a.fb),d=B(b,function(a){return document.createTouch(window,this.fb,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
f.Fv=function(a){var b=a.Ye,c=Sf(this.fb),d=document.createEvent("TouchEvent");d.initTouchEvent(a.gd,!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,DQ(this,b.touches),DQ(this,b.targetTouches),DQ(this,b.changedTouches),b.scale,b.rotation);this.fb.dispatchEvent(d)};
f.Ev=function(a){if(null!=this.b){var b=a.Ye;switch(a.gd){case "startTracking":this.b.Di();break;case "stopTracking":this.b.Df();break;case "exitFullscreen":this.b.pn();break;case "play":this.b.play();break;case "pause":this.b.pause();break;case "load":this.b.Dg(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.b.Of(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.b.Kl(new XP(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled))}}};
f.Gv=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.Le();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.wd();break;case "volumeChange":a=
"volumeChange";b.volume=this.b.ce();break;default:return}this.k.send("videoDisplay",a,b)};f.Bv=function(a){switch(a.gd){case "showVideo":null!=this.g?TP(this.g):(this.g=new RP,this.j.listen(this.g,"click",this.az));a=this.A;SP(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.az=function(){this.k.send("displayContainer","videoClick")};
f.Av=function(){Cd(this.o.Wb(!1),function(a){a.Gc=md(this.fb);a.connect()},this);this.B=!0};function EQ(a,b,c,d){if(null==a||!ld(Mc(a),a))throw oP(MO,null,"containerElement","element");this.C=a;var e=null!=b||null!=d;this.A=(this.k=e)&&null!=d;DP(CP.getInstance(),8,{enabled:this.k,yt:null!=d,customClick:null!=c});sP.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||sP.g||!zP()?null:new dQ(this.g,null);a=null;this.k?null!=d?a=new hQ(d):null!=b&&(a=new $P(b)):null!=this.b&&(a=new $P(this.b.g));this.j=a;this.B=c||null;
this.o=null==this.g||sP.g?null:new CQ(this.g,this)}EQ.prototype.initialize=function(){null!=this.b&&this.b.initialize()};EQ.prototype.destroy=function(){Mh(this.b);Mh(this.o);Mh(this.j);fd(this.g)};EQ.prototype.hide=function(){null!=this.b&&this.b.hide()};function FQ(){T.call(this);this.currentTime=0}w(FQ,T);function GQ(a){FQ.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw oP(MO,null,"content","currentTime");this.g=a;this.b=new Pk(250);this.j=new Wk(this);Zk(this.j,this.b,"tick",this.k,this)}w(GQ,FQ);GQ.prototype.start=function(){this.b.start()};GQ.prototype.stop=function(){this.b.stop()};GQ.prototype.J=function(){GQ.G.J.call(this);this.j.dispose();this.b.dispose()};
GQ.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 S("currentTimeUpdate"))}else this.S(new S("contentWrapperError")),this.stop()};function HQ(){this.reset()}HQ.prototype.reset=function(){this.b=0;this.g=null};function IQ(){this.g=this.b=null}IQ.prototype.reset=function(){this.g=this.b=null};function JQ(){this.b=KQ();this.M=this.L=this.j=this.B=this.k=null;this.I=KQ();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null}function KQ(){return Math.floor(4503599627370496*Math.random())}var LQ=new JQ;JQ.prototype.clear=function(){this.b=KQ();this.j=this.B=this.k=null;this.I=KQ();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null};function MQ(a){if(sP.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 NQ(a,b){this.A=a;this.o=B(b,function(a){return a.clone()});this.k="";this.b=this.j=0;this.g=!0}function OQ(a){a.k="";a.j=0;a.b=0;a.g=!0}NQ.prototype.clone=function(){var a=new NQ(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 PQ(){T.call(this);this.k=!1}w(PQ,T);function QQ(a){S.call(this,a)}w(QQ,S);function RQ(){PQ.call(this);this.B=[];this.o=!1;this.j="not_loaded";this.g=null;this.A=0;this.b=null;this.C=new Lc}w(RQ,PQ);da(RQ);function SQ(a){var b=["googletag","googletag.cmd"];return lb(a,function(a){return kb(b,function(b){return null!==q(b,a)})})||null}f=RQ.prototype;f.J=function(){this.g&&this.g.dispose()};f.initialize=function(){if(!this.k){var a;var b=xd(new Lc);try{q("googletag"),SQ([b,b.top]),a=!0}catch(c){a=!1}a?TQ(this):(this.k=!0,this.j="not_available")}};
function UQ(a){return a.k?B(a.B,function(a){return a.clone()}):[]}function VQ(a){a=UQ(a);return null!=a?B(a,function(a){return a.o}):void 0}function WQ(a,b,c){var d=0,e=0;null!=b&&(b=new J(b.adTagUrl),d=Number(b.b.get("pod")||0),e=Number(b.b.get("ppos")||0));if(null!=a.setVideoSessionInfo)try{a.setVideoSessionInfo(LQ.b,"","","",d,e,c)}catch(g){}}function XQ(a,b){var c=YQ(a);if(null!==c){WQ(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}
f.setVideoContent=function(a,b){var c=ZQ(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};function YQ(a){null==a.b&&$Q(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.companionAds?a.b.googletag.companionAds():null}function ZQ(a){null==a.b&&$Q(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.pubads?a.b.googletag.pubads():null}f.qp=function(){0<this.A&&v()>=this.A?(this.k=!0,aR(this),bR(this)):TQ(this)};
function aR(a){a.g&&(a.g.stop(),a.g.Fa("tick",a.qp,!1,a),a.g.dispose(),a.g=null)}
function TQ(a){var b;if(b=!a.o)$Q(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=B(d,a.Hv,a)}}catch(e){a.o=!0,c=[]}a.B=c;a.o=!0}if(b="retrieved"!=a.j&&"not_available"!=a.j)b=null!==YQ(a);if(b){var g;b=YQ(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,aR(a),a.S(new QQ("companions_success"))):a.o&&"not_available"==a.j?(a.k=!0,aR(a),bR(a)):a.g||(a.A=v()+5E3,a.g=new Pk(100),a.g.listen("tick",a.qp,!1,a),a.g.start())}function $Q(a){var b=xd(a.C);try{a.b=SQ([b,b.top])}catch(c){a.b=null}}function bR(a){a.S(new QQ("companion_initialization_failed"))}f.Hv=function(a){var b=B(a.adSizes,function(a){return new F(a.adWidth,a.adHeight)});return new NQ(a.slotId,b)};
f.iz=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 cR(a){S.call(this,a)}w(cR,S);function dR(){T.call(this);this.j=[]}w(dR,T);dR.prototype.xi=function(){return null};dR.prototype.bt=function(){return!0};function eR(){return new fR("empty-ad","GDFP",0,"",0,0,0,[],[],[],[],new Ed)};function gR(a){dR.call(this);this.b=a;this.A=null;this.B=!1;this.g=null;this.o=new Wk;Zk(this.o,this.b,["companions_success","companion_initialization_failed"],this.Ox,this);Zk(this.o,this.b,"companion_display_error",this.Nx,this);this.b.k?this.B=!0:this.b.initialize()}w(gR,dR);f=gR.prototype;f.destroy=function(){null!=this.o&&this.o.dispose();this.g=null};function hR(a,b){a.g=b;a.k=!0;a.B?iR(a):(a.k=jR(kR(b),[]),a.k||(a.g=null))}
function iR(a){var b=a.g;a.g=null;if(null!=a.b)if(D(a.j))lR(a);else if(null!=b){var c=mR(a,b),d=a.b;try{d.b.googleSetCompanionAdContents(B(a.j,d.iz,d))}catch(e){d.S(new QQ("companion_display_error"))}if(0<c.length&&b.aa&&(d=a.b,0!=c.length&&"GDFP"==nR(b)[0])){a=[];for(var g=0;g<c.length;g++)a.push(c[g].A);b=b.j;c=YQ(d);if(null!==c){WQ(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else lR(a)}function lR(a){a.S(new cR("companion_display_error"))}f.bt=function(){return this.k};
f.Ox=function(){null!=this.A&&(this.A.stop(),this.A.dispose(),this.A=null);if(null!=this.b){var a=UQ(this.b);null!=a&&(this.j=a)}this.B=!0;null!=this.g&&iR(this);this.S(new S("initialized"))};f.Nx=function(){lR(this)};
function mR(a,b){var c=[],d=[];z(a.j,function(a){OQ(a);jb(a.o,function(d){t:{var e=oR(b);d=pR(new qR(new F(d.width,d.height)),e);if(!D(d)&&(d=rR(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.Gl(),l=d.b.sd(),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=kR(b);a.k=jR(e,c);a.k||z(a.j,function(a){OQ(a)},a);return d}
function jR(a,b){if(null==a)return!0;var c=a.b;return"all"==a.g?sR(c,b):"any"==a.g?tR(c,b):!0}function kR(a){return null!=a&&fa(a.getSelectedCreative())&&!isNaN(uR(a.getSelectedCreative()))?lb(vR(a,!0),function(a){a=a.b;return D(a)?!1:isNaN(a[0].b.b)?!1:a[0].b.b==wR(a[0])}):null}function sR(a,b){return kb(a,function(a){return C(b,a)})}function tR(a,b){return jb(a,function(a){return C(b,a)})}function rR(a,b){return lb(a,function(a){return!C(b,a)})}f.xi=function(){return this.b};function xR(a){S.call(this,a);this.o=[];this.k={};this.j=null}w(xR,S);function yR(){T.call(this);this.qa="";this.g=this.b=!1}w(yR,T);var zR=null;function AR(){null!=zR||(zR=new yR);return zR}f=yR.prototype;f.init=function(){this.b||(ov(sv("//pagead2.googlesyndication.com/pagead/js/lidar.js",{timeout:3E4}),this.qC,this.pC,this),this.b=!0)};f.start=function(){this.b&&(this.qa=String(1E9*Math.random()))};function BR(a,b){if(a.b&&a.g){var c={},d;d=sP.o;sP.b&&null!=d&&(c.opt_videoAdElement=Nc(d));return Goog_AdSense_Lidar_sendVastMessage(b,a.qa,c)}return""}
f.destroy=function(){this.qa="";this.g=this.b=!1};f.qC=function(){this.g=!0};f.pC=function(){this.g=!1};ba("ima.common.triggerViewEvent",function(a,b){var c={};c.viewability=b;AR().S(new lO("viewable_impression",null,c))},void 0);function CR(a,b,c){this.A=b;this.k=c;this.o=null;this.g=new Wk(this);this.F=a;this.j=this.b=null;this.B=!1}CR.prototype.start=function(a,b){this.o=a;this.D=b;DR(this);this.A.B?this.C():bl(this.g,this.A,"initialized",this.C,this)};CR.prototype.C=function(){var a=this.A.xi(),b;b=a.k?"retrieved"!=a.j?void 0:a.D:void 0;a=VQ(a);null!=b&&(this.k.I=b);null!=a&&(this.k.A=a);ER(this)};
function ER(a){if(null===a.o)FR(a);else{var b=new J(a.o.adTagUrl),c=ya(b.b.get("vid")),b=ya(b.b.get("cmsid")),d=a.k.D,e=a.k.C;a.k.D=c;a.k.C=b;if(x(c)||x(b))FR(a);else if(c==d&&b==e)FR(a);else{var g=a.A.xi();g.setVideoContent(c,b);XQ(g,a.o);a.j=new Pk(100);Zk(a.g,a.j,"tick",function(){var a;t:{var b=ZQ(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break t}catch(c){a=!0;break t}a=!1}a&&FR(this)},a);a.j.start()}}}
function DR(a){a.b=new Pk;bl(a.g,a.b,"tick",function(){FR(this)},a);Qk(a.b,a.F);a.b.start()}function FR(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 GR(){};function HR(a){return mP(eP,null,a.parentNode.nodeName,a.nodeName)}function IR(a){return mP(UO,null,a.parentNode.nodeName,a.nodeName)}function JR(a,b){return null!=a?hb(hd(a),function(a){return a.nodeName==b}):[]}function KR(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function LR(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?La(c):c}
function MR(a,b,c,d){null!=a&&z(hd(a),function(a){if(a.nodeName==b)c.call(d,a);else throw HR(a);})}function NR(a){return x(a)?NaN:$a(ya(a))}function OR(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new VM(0,0,0,$a(c[0]),$a(c[1]),$a(c[2])),60*(60*(24*c.b+c.k)+c.o)+c.A}return null!=b?b:-1}function PR(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 QR(a,b,c){this.g=a;this.b=c;this.j=b};function RR(a){this.j=a};function SR(a){this.j=a;this.g=this.b=!1}w(SR,RR);function TR(a,b,c){this.b=a;this.g=b;this.j=c};function UR(){this.b=new Ed}function VR(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];Gd(a.b,c)&&(d=a.b.get(c,[]));z(b,function(a){null!=a&&qb(d,a)});a.b.set(c,d)};function WR(a,b){this.b=a;this.g=b}w(WR,GR);WR.prototype.j=function(){return new QR(this.b,null,XR(this))};
function XR(a){var b=new UR;z(hd(id(a.b)),function(a){switch(a.nodeName){case "Preroll":a=YR(this,a);VR(b,a,0);break;case "Midroll":var d=KR(a,"timeOffset"),e=OR(d);if(-1==e)throw mP(HO,null,"timeOffset",ya(d));a=YR(this,a);VR(b,a,e);break;case "Postroll":a=YR(this,a);VR(b,a,-1);break;default:throw mP(QO,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.b.Ma().length)throw mP(PO);return b}
function YR(a,b){var c=[];z(hd(b),function(a){switch(a.nodeName){case "Ad":var b=ya(LR(a));if(!xa(b)){a=KR(a,"bumper");var g=this.g.clone();g.adTagUrl=b;b=new SR(g);b.b=null!=a;b.g="always"==a;qb(c,b)}break;default:throw mP(QO,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function ZR(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 $R(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 aS=["ai","sigh"];function bS(a,b){var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ma(a,"/pagead/adview")?cS(a)?0:2:Ma(a,"/pagead/conversion")?cS(a)?1:2:2:2;if(2==c)return a;switch(c){case 0:return c=LQ.F,c=null!=c?dS(a,"&ppid="+c):a,b?c:dS(c,"&sdkv="+MQ(LQ));case 1:return b?a:dS(a,"&sdkv="+MQ(LQ))}return a}function dS(a,b){var c=a.indexOf("&adurl=");return-1!=c?Ua(a.substr(0,c),b,a.substr(c,a.length)):a+b}
function cS(a){return kb(aS,function(b){var c=a||"";return 0<=ae(c,0,b,c.search(be))})};function eS(a,b){this.b=a;this.g=b}function fS(a){return a.g?-1:a.b};function gS(){this.b=new Ed}function hS(a,b){this.g=a;this.b=b}function iS(a,b){hS.call(this,"progress",a);this.j=b}w(iS,hS);function jS(a,b){z(b,function(a){this.b.set(a.g,b)},a)}function kS(a,b,c,d){var e=b.toLowerCase();b=lS(a,b);null!=d?(d=new iS(c,d),null!=d?b.push(d):b.push(new hS(e,c))):b.push(new hS(e,c));a.b.set(e,b)}function mS(a,b){z(b,function(a){var d=lS(this,a.g);b=ub(d,b);this.b.set(a.g,b)},a)}function lS(a,b){return null!=b?a.b.get(b.toLowerCase())||[]:[]}
function nS(a,b){var c=lS(a,"progress");z(c,function(a){a=a.j;a.g&&(a.g=!1,a.b=a.b*b/100)});Cb(c,function(a,b){return fS(a.j)-fS(b.j)})}gS.prototype.isEmpty=function(){return this.b.isEmpty()};function oS(a,b){return B(lS(a,b)||[],function(a){return a.b})};function pS(a,b){var c=new gS;MR(a,"Tracking",function(a){var e=KR(a,"event"),g=bS(LR(a),b);qS(g)&&null!=e&&("progress"==e?(a=KR(a,"offset"),a=rS(a),null!=a&&kS(c,e,g,a)):kS(c,e,g))});return c}function sS(a){if(x(a))return null;a=new J(a);if("thismessage"!=a.Gb||"extensions"!=a.Cb)return null;a=a.Nb;if(0!=a.lastIndexOf("/",0))return null;a=a.substr(1);return x(a)?null:a}
function rS(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 eS(a,!0))):(a=OR(a),0<=a&&(b=new eS(a,!1)));return b}function qS(a){var b=!0;if(x(a))b=!1;else try{new J(a)}catch(c){b=!1}return b};function tS(a){this.b=null!=a?a:new gS}function uS(a,b){var c=b.b;z(c.Ma(),function(a){mS(this.b,c.get(a))},a)}function vS(a,b){var c=oS(a.b,b);return null!=c?c:[]};function wS(){this.b="Ads by Google";this.g="http://www.google.com/adsense/support";this.j=0};function xS(a,b,c,d,e,g,h,k,l){tS.call(this,l);this.k=a;this.o=b;this.g=c;this.j=e;this.A=g;this.B=h}w(xS,tS);function yS(){}yS.prototype.parse=function(a){var b;MR(a,"config",function(a){null!=b||(b=zS(this,a))},this);return b};function zS(a,b){var c;z(hd(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new wS:null;break;case "params":null!=c&&AS(this,c,a)}},a);return c}function AS(a,b,c){z(hd(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 BS(){}
BS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k=!1;z(hd(a),function(a){switch(a.nodeName){case "AttributionText":b=LR(a);break;case "AttributionUrl":c=LR(a);break;case "ConversionUrl":e=LR(a);break;case "CustomTracking":null!=hd(a)&&(d=pS(a));break;case "PreviousAdInformation":LR(a);break;case "VisibleUrl":g=LR(a);break;case "UI":h=(new yS).parse(a);break;case "ShowYouTubeAnnotations":var p=LR(a);k=PR(ya(p),!1);case "QueryId":LR(a)}},this);null!=h||(h=new wS);return new xS(b,
c,e,0,g,h,k,0,d)};function CS(a,b){tS.call(this,b);this.g=a}w(CS,tS);function DS(){}DS.prototype.parse=function(a){if(null==a)return null;var b;z(hd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=hd(a)&&(b=pS(a))}});a=null;null!=b&&0<lS(b,"skip").length&&(a="Generic");return new CS(a,b)};function ES(){}ES.prototype.parse=function(a){if(null==a)return null;var b,c;z(hd(a),function(a){switch(a.nodeName){case "SkippableAdType":b=LR(a);break;case "CustomTracking":null!=hd(a)&&(c=pS(a))}});return new CS(b,c)};function FS(){}FS.prototype.parse=function(a){if(null==a)return null;var b;z(hd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=hd(a)&&(b=pS(a))}},this);return new tS(b)};function GS(){tS.call(this)}w(GS,tS);function HS(){}HS.prototype.parse=function(a){a=iD(a);return x(a)?null:new GS};function IS(a){tS.call(this);this.g=a}w(IS,tS);function JS(){tS.call(this)}w(JS,tS);function KS(){}KS.prototype.b={sC:"TEMPLATE_PARAMETERS",tC:"TEMPLATE_URL"};KS.prototype.parse=function(a){if(null==a)return null;z(hd(a),function(a){switch(a.nodeName){case this.b.sC:LS(this,a)}},this);return new JS};function LS(a,b){z(hd(b),function(a){a.nodeName==this.b.tC&&LR(a)},a)};function MS(a,b,c,d){tS.call(this);this.j=a;this.k=b;this.o=c;this.g=d}w(MS,tS);function NS(){}NS.prototype.b={iC:"Line1",jC:"Line2",kC:"Line3",hC:"ImageUrl"};NS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;z(hd(a),function(a){switch(a.nodeName){case this.b.iC:b=LR(a,!0);break;case this.b.jC:c=LR(a,!0);break;case this.b.kC:d=LR(a,!0);break;case this.b.hC:e=LR(a)}},this);return new MS(b,c,d,e)};function OS(a){tS.call(this);this.g=a}w(OS,tS);function PS(){}PS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?$a(a):NaN;a=isNaN(a)?-1:a;return new OS(a)};function QS(){tS.call(this)}w(QS,tS);function RS(){}RS.prototype.parse=function(a){return null!=a?new QS:null};function SS(a){tS.call(this);this.g=isNaN(a)?-1:a}w(SS,tS);function TS(){}TS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?$a(a):NaN;return new SS(a)};function US(){}var VS={IMAGE:"Image",GE:"Flash",zE:"All"},WS={HTML:"Html",nI:"IFrame",SJ:"Static",zE:"All"},XS={oI:"IgnoreSize",BJ:"SelectExactMatch",CJ:"SelectNearMatch"};var YS=!1,ZS="";function $S(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var aT=navigator.plugins["Shockwave Flash"];aT&&(YS=!0,aT.description&&(ZS=$S(aT.description)));navigator.plugins["Shockwave Flash 2.0"]&&(YS=!0,ZS="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var bT=navigator.mimeTypes["application/x-shockwave-flash"];(YS=bT&&bT.enabledPlugin)&&(ZS=$S(bT.enabledPlugin.description))}else try{var cT=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),YS=!0,ZS=$S(cT.GetVariable("$version"))}catch(dT){try{cT=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),YS=!0,ZS="6.0.21"}catch(eT){try{cT=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),YS=!0,ZS=$S(cT.GetVariable("$version"))}catch(fT){}}}var gT=YS,hT=ZS;function qR(a){if(null==a||0>=a.width||0>=a.height)throw oP(MO,null,"ad slot size",a.toString());this.g=a;this.b=new US;this.o=iT(WS,this.b.k)?this.b.k:"All";this.k=iT(VS,this.b.j)?this.b.j:"All";this.B=iT(XS,this.b.o)?this.b.o:"SelectExactMatch";this.j=null!=this.b.g?this.b.g:[];this.A=ia(this.b.b)&&0<this.b.b&&100>=this.b.b?this.b.b:90}
function pR(a,b){var c=[];z(b,function(a){!x(a.b.k)&&(isNaN(a.b.b)||isNaN(wR(a))||wR(a)==a.b.b)&&jT(this,a)?c.push(a):(a=kT(this,a),null!=a&&!x(a.b.k)&&c.push(a))},a);return c}
function jT(a,b){var c;if(c="Flash"!=b.getContentType()||gT){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=D(a.j)?!0:null!=c?0<=fb(a.j,c):!1)}c?(c=b.b.ae(),c="IgnoreSize"==a.B||Mb(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 kT(a,b){var c=b.g;return null!=c?lb(c,function(a){return jT(this,a)},a):null}
function iT(a,b){return null!=b&&Vb(a,b)};function lT(a,b,c,d){this.qa=a;this.b=Jb(c||0,0,1);this.g=null!=d?d:!0}lT.prototype.getId=function(){return this.qa};function mT(a){this.qa=a;this.g=new Ed;this.b=null}function nT(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 oT(){this.b=new Ed;pT(this,41351021,0);pT(this,41351022,1);qT(this)}var rT=null;function sT(){rT||(rT=new oT);return rT}function pT(a,b,c){x("GvnExternalLayer")||isNaN(b)||0>=b||(b=new lT(b,0,c),tT(a,"GvnExternalLayer").g.set(b.getId(),b))}function qT(a){z(a.b.Qa(),function(a){nT(a)},a)}function yT(a,b){z(b,function(a){var b=Number(a);a="forcedLayer"+a;isNaN(b)||0>=b||x(a)||(a=tT(this,a),b=new lT(b),a.b=b)},a)}
function zT(a){var b=sT();return jb(b.b.Qa(),function(b){return!!b.b&&b.b.getId()==a})}function AT(a){var b=[];z(a.b.Qa(),function(a){(a=a.b)&&a.g&&b.push(a.getId())});return b.sort().join(",")}function tT(a,b){var c=a.b.get(b);null==c&&(c=new mT(b),a.b.set(b,c));return c};function BT(a){J.call(this,a);this.g=new Ed;a=this.Nb;var b=a.indexOf(";"),c=null;0<=b?(he(this,a.substring(0,b)),c=a.substring(b+1)):he(this,a);CT(this,c)}w(BT,J);BT.prototype.toString=function(){return DT(this,BT.G.toString.call(this))};BT.prototype.Qg=function(){return""};function CT(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 ET(a){if(x("ord"))return null;a=a.g.get("ord");return null!=a?a:null}function FT(a,b,c){x(b)||(c=B(c,ya),a.g.set(b,c))}function DT(a,b){var c=[ya(b)];wb(c,GT(a));return c.join(";")}function GT(a){var b=ET(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){wb(c,a+"="+b)})},a);wb(c,"ord="+b[0]);FT(a,"ord",b);return c}BT.prototype.clone=function(){return new BT(this.toString())};var HT=["iu","sz"];function IT(a){if(null==a.adTagUrl)return!1;a=new J(a.adTagUrl);return"googleads.g.doubleclick.net"==a.Cb&&"/pagead/ads"==a.Nb}function JT(a){var b=a.adTagUrl;if(null==b)return!1;a=se(new J(b));return(x(a)?0:/\/gampad\/ads/.test(a))?kb(HT,function(a){return 0<=ae(b,0,a,b.search(be))}):!1}
function KT(a){a=a.adTagUrl;if(null==a)return!1;a=new BT(a);var b=a.Cb,c;if(c=!va(b,".g.doubleclick.net")){if(b=va(b,"doubleclick.net"))a=DT(a,a.Nb),b=x(a)?!1:/\/(ad|pfad)[x|i|j]?\//.test(a);c=b}return c?!0:!1}function LT(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==re(new J(a)):!1};function MT(){this.b=1;this.k=this.j=0;this.g=1};function NT(){this.L={};this.T="";this.je=new gS}function uR(a){return a.b}NT.prototype.Kn=function(){return null};function OT(a,b,c){a.T=b;a.L=c}NT.prototype.vg=function(a){this.aa=a};NT.prototype.getAd=function(){return this.aa};function PT(a,b){for(var c=lS(a.je,b)||[],d=a.aa.b;null!=d;){var e=QT(a,d)||QT(a,d,!0);null!=e&&(e=lS(e.je,b)||[],c=ub(e,c));d=d.b}return c}NT.prototype.Rn=function(a){a=PT(this,a);return B(a||[],function(a){return a.b})};
function QT(a,b,c){var d=c||!1;return lb(b.k,function(a){var b=a.b==this.b;return a instanceof this.constructor&&(d||b)},a)};function RT(a,b,c,d,e){NT.call(this);this.da=a;this.j=b;this.g=c;this.D=vb(d);this.ub=this.oa=null;this.k=e}w(RT,NT);RT.prototype.Gd=function(){return this.j};RT.prototype.getMediaUrl=function(a){var b="";jb(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};RT.prototype.setMediaUrl=function(a){this.ub=a};
RT.prototype.Kn=function(){var a=lb(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 ST(a,b,c){this.g=a;this.j=b;this.k=c;this.A=0;this.b=new Wk(this);TT(this)}w(ST,Kh);function TT(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)}ST.prototype.B=function(){this.o=v()};
ST.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=Sf(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("&"))};ST.prototype.C=function(){this.A++};ST.prototype.J=function(){ST.G.J.call(this);this.b.dispose()};function UT(a,b,c,d,e){NT.call(this);x(a)&&(a=Za()+"_ima");this.qa=ya(a);this.ra=b;this.P=c;this.O=d;this.k=e;null!=this.O?this.U=HP[this.O]||"Other":this.U=null}w(UT,NT);f=UT.prototype;f.Gl=function(){var a;a=this.md();if("outerHTML"in a)a=a.outerHTML;else{var b=Mc(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.U};f.ae=function(){return this.ra};f.sd=function(){return this.ae().width};f.getHeight=function(){return this.ae().height};
f.Kn=function(){return"VPAID"==this.B?this.k:null};f.Gd=function(){return this.I};function VT(a,b,c,d,e){UT.call(this,a,b,c,d,e);this.ca=-2;this.j=null;new Wk(this);this.M=this.F=ca;this.N=[];this.la=!0;this.V=[];this.C=!1}w(VT,UT);function WT(a,b){a.j=b;null!=a.g&&null!=b&&(XT(a,a.F),ZT(a,a.M))}function XT(a,b){null!=a.j&&null!=a.g&&z(a.N,function(a){this.j.Fa(a,"click",this.F);x(this.Gd())||this.j.listen(a,"click",b)},a);a.F=b}function ZT(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 $T(a){z(a.V,function(a){fd(Nc(a))},a);a.V=[]}VT.prototype.o=function(a){null==this.j||x(this.Gd())||(this.j.listen(a,"click",this.F),this.N.push(a))};VT.prototype.md=function(){null==this.g&&(this.g=this.Gh(),cd(this.g,aU(this)));null!=this.j&&this.j.listen(this.g,"creativeview",this.M);return this.g};
function bU(a,b){var c=a.qa,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.sd()+"px");x(c)||(d.id=c);return I("div",d,b)}VT.prototype.Ls=function(){return 2};
function aU(a){if(!a.la)return null;var b=PT(a,"start");wb(b,PT(a,"creativeview"));if(null!=b&&!D(b)){var c=[];z(b,function(a){if(!x(a)){var b;b=Kc().WB("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});Hf(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",yO(a.b));b.setAttribute("id",g);this.V.push(g);qb(c,b)}},a);return c}return null}
function cU(a,b){if(null!=a.g){var c=new Ed;z(a.N,function(a){c.set(a,this.Ls(a))},a);new ST(b,a.g,c)}};function fR(a,b,c,d,e,g,h,k,l,p,s,u,y,G,A,X){T.call(this);this.N=a;this.A=b;this.za=d;this.O=new Wk(this);this.O.listen(AR(),"viewable_impression",this.ou);this.ca=isNaN(h)||""==h||0==h?-1:h;this.F=k?vb(k):[];this.da=l?vb(l):[];this.k=p?vb(p):[];this.L=s?vb(s):[];this.o=[];z(this.L,function(a){wb(this.o,vb(a.b))},this);this.aa=!0;this.b=this.g=null;this.B=new Ed(u);this.P=null!=X;this.ra=(this.C=null!=y)?G||!1:!1;this.wa=this.pu?A||!1:!1;this.xa=ya(y);this.ya=ya(X);this.oa=this.j=null;this.D=new MT;
this.U=new F(0,0);this.I=this.M=this.T=null;z(ub(this.k,this.o),function(a){a.vg(this)},this);sP.b&&dU(this)&&(this.o=hb(this.o,function(a){return 60>=a.getHeight()}))}w(fR,T);function eU(a){var b;b=fU(a)?gU(a)?"2_1":"2_2":"2";return(hU(a,JP)||hU(a,KP)?1:hU(a,IP)?2:0)+"_"+b}function iU(a){return null!=a.A?a.A:""}function jU(a){return null!=a.b?ub(jU(a.b),a.F):a.F}function kU(a){return null!=a.b?ub(kU(a.b),a.da):a.da}f=fR.prototype;
f.getContentType=function(){var a=this.getSelectedCreative(),b="";if(null===a)return b;if(a instanceof RT)a=a.oa,null===a||(b=ya(a.b));else if(a instanceof VT)switch(a.P){case "IFrame":case "Html":case "Static":b=ya(a.O)}return b};function oR(a){return null!=a.b?ub(a.o,oR(a.b)):a.o}function lU(a){return null!=a.g?a.g.T:""}f.getExtension=function(a){return this.B.get(a)};function mU(a,b){a.g=b;a.U=null!=a.g&&a.g instanceof VT?a.g.ae():new F(0,0)}f.getSelectedCreative=function(){return this.g};
f.ou=function(a){this.S(new lO("viewable_impression",this,a.j))};function nU(a){return null!=a.N?a.N:""}function oU(a){if(null==a.b)return[];var b=[nU(a.b)];wb(b,oU(a.b));return b}function pU(a){var b=oU(a).reverse();b.push(nU(a));return b}function qU(a){if(null==a.b)return[];var b=[iU(a.b)];wb(b,qU(a.b));return b}function nR(a){var b=qU(a).reverse();b.push(iU(a));return b}function rU(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.g?a.g:-1}
function sU(a){if(-1!=a.ca)return a.ca;a=a.getExtension("pod");return null!=a&&-1!=a.g?a.g:-1}function vR(a,b){return b||null==a.b?a.L:ub(a.L,vR(a.b))}function tU(a,b){return jb(a.k,function(a){return a instanceof RT&&"linear"==b||a instanceof VT&&"nonlinear"==b?!0:!1})}function dU(a){return uU(a)?"video"==a.za:tU(a,"linear")}function fU(a){return null!=vU(a)}
function vU(a){if(zT(919139)||zT(919140))return new eS(0,!1);var b=new eS(5,!1),c=wU(a);if("implicit"==c)return b;a=a.getSelectedCreative();var d=null;null!=a&&a instanceof RT&&(d=a.k);null!=d||"explicit"!=c||(d=b);return null!=d&&sP.b?b:d}
function wU(a){if(null!=lb(a.B.Qa(),function(a){return!D(vS(a,"skip"))}))return"implicit";var b=a.B.get("DFP");if(b instanceof CS)switch(b.g){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.getSelectedCreative();return null==a||(a=a.je,null==a||D(lS(a,"skip")))?"none":"explicit"}function gU(a){if(null==a.A||null==a.j)return!1;var b=IT(a.j),c=null!=a.b,d=JT(a.j);if(!c&&(b||d&&xU(a)))return!0;a=hU(a,["ADSENSE/ADX"])||hU(a,IP)&&c;return sP.b&&!a}f.pu=function(){return this.C};
function yU(a){return null===a.g?null:a.g.Gd()}function zU(a){return null==a.g||a.g instanceof VT?-1:a.g.da}function AU(a){return null===a.g?null:a.g.Kn()}function uU(a){return BU(a,IP)}f.getHeight=function(){return this.U.height};function CU(a){return a.T}function xU(a){if(!BU(a,KP))return!1;a=a.B.get("DFP");return null!=a?"InstreamSelect"==a.g:!1}f.toString=function(){return"Ad: "+this.N};function BU(a,b){return null!=a.A?C(b,a.A.toUpperCase()):!1}
function hU(a,b){return C(b,nR(a)[0].toUpperCase())}f.J=function(){null!=this.O&&this.O.dispose();fR.G.J.call(this)};function DU(a,b){this.b=a;this.g=b};function EU(a,b,c){this.b=a;this.g=b;this.j=c}EU.prototype.getContentType=function(){return this.b.getContentType()};EU.prototype.getHeight=function(){return this.b.getHeight()};function wR(a){a=a.b.getAd().getSelectedCreative();return null!=a?a.b:NaN}EU.prototype.Rn=function(a){return oS(this.b.je,a)};EU.prototype.vg=function(a){this.b.vg(a);z(this.g,function(b){b.vg(a)},this)};function FU(a,b,c){this.g=a;this.b=b;this.j=c}FU.prototype.getContentType=function(){return null!=this.b?HP[this.b]||"Other":null};rc&&Cc(8);function GU(){};var HU={},IU={},JU={};function KU(){throw Error("Do not instantiate directly");}KU.prototype.se=null;KU.prototype.toString=function(){return this.content};function LU(a,b){var c=Kc().createElement("DIV"),d=MU(a(b||NU,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function MU(a){if(!ka(a))return String(a);if(a instanceof KU){if(a.Tc===HU)return a.content;if(a.Tc===JU)return Ca(a.content)}return"zSoyz"}var NU={};function OU(a){if(null!=a)switch(a.se){case 1:return 1;case -1:return-1;case 0:return 0}return null}function PU(){KU.call(this)}w(PU,KU);PU.prototype.Tc=HU;function QU(a){return null!=a&&a.Tc===HU?a:a instanceof Ax?RU(Cx(a),a.zh()):RU(Ca(String(String(a))),OU(a))}function SU(){KU.call(this)}w(SU,KU);SU.prototype.Tc={};SU.prototype.se=1;function TU(){KU.call(this)}w(TU,KU);TU.prototype.Tc={};function UU(){KU.call(this)}w(UU,KU);UU.prototype.Tc=IU;UU.prototype.se=1;function VU(){KU.call(this)}
w(VU,KU);VU.prototype.Tc={};VU.prototype.se=1;function WU(){KU.call(this)}w(WU,KU);WU.prototype.Tc={};WU.prototype.se=1;function XU(a,b){this.content=String(a);this.se=null!=b?b:null}w(XU,KU);XU.prototype.Tc=JU;function YU(a){function b(){}b.prototype=a.prototype;return function(a,d){var e=new b;e.content=String(a);void 0!==d&&(e.se=d);return e}}function ZU(a){function b(){}b.prototype=a.prototype;return function(a){var d=new b;d.content=String(a);return d}}var RU=YU(PU);ZU(SU);YU(TU);ZU(UU);
var $U=ZU(VU);ZU(WU);(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.se=d);return e}})(PU);var aV=/['()]/g;function bV(a){return"%"+a.charCodeAt(0).toString(16)}function cV(a){if(null!=a&&a.Tc===IU)return String(a).replace(dV,eV);a=Aa(String(a));aV.lastIndex=0;return aV.test(a)?a.replace(aV,bV):a}var fV={};
function gV(a){fV[1]||(fV[1]=new GU);var b=OU(a);if(null==b){var c=b=0,d=!1;a=ix(a+"",null!=a&&a.Tc===HU).split(ox);for(var e=0;e<a.length;e++){var g=a[e];lx.test(ix(g,void 0))?(b++,c++):mx.test(g)?d=!0:kx.test(ix(g,void 0))?c++:px.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return $U(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var hV={"\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 eV(a){return hV[a]}var dV=/[\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 iV(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+QU(a.Hd)+'"><img src="'+QU(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+QU(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+QU(a.Hd)+'" target="_blank" dir='+QU(a.dir)+">"+QU(a.title)+'</a><div class="text-description" dir='+QU(a.dir)+">"+QU(a.text)+"</div>"+(a.Ir?'<a target="_blank" href="'+
QU(a.Hd)+'" class="text-ad-channel">'+QU(a.Ir)+"</a>":"")+"</div></div>"}
function jV(a){return'<div class="flash-container '+(a.Tf?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+QU(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="'+QU(a.width)+'" height="'+QU(a.height)+'"><param name="movie" value="'+QU(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+cV(a.Hd)+
'"><embed width="'+QU(a.width)+'" height="'+QU(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+QU(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+cV(a.Hd)+'"></object></div>'}function kV(a){return'<div class="image-container" id="'+QU(a.id)+'" style="width:'+QU(a.width)+";height:"+QU(a.height)+'"><a target="_blank" href="'+QU(a.Hd)+'"><img src="'+QU(a.url)+'" border="0"></a></div>'};function lV(a,b,c,d){VT.call(this,a,b,"Static",c,d);this.ds=!1}w(lV,VT);lV.prototype.Gh=function(){var a=this.B,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:yO(ya(this.k)),width:this.sd(),height:this.getHeight(),Hd:this.Gd(),Tf:this.ds||!a},a=LU(jV,a);a.style.width=this.sd()+"px";a.style.height=this.getHeight()+"px";a.id=this.qa;z(a.getElementsByTagName("object"),this.o,this);z(a.getElementsByTagName("a"),this.o,this);return a};function mV(a,b,c,d){VT.call(this,a,b,"Html",c,d)}w(mV,VT);mV.prototype.Gh=function(){var a=I("div");a.innerHTML=this.k;this.o(a);return bU(this,a)};function nV(a,b,c,d){VT.call(this,a,b,"Static",c,d)}w(nV,VT);nV.prototype.Gl=function(){var a=nV.G.Gl.call(this);this.C&&(a=a.replace('<img src=""','<img src="'+yO(ya(this.k))+'"'));return a};nV.prototype.Gh=function(){var a="";this.C||(a=yO(ya(this.k)));a={id:this.qa,url:a,Hd:this.Gd(),width:this.sd()+"px",height:this.getHeight()+"px"};a=LU(kV,a);z(a.getElementsByTagName("a"),this.o,this);return a};function oV(a){a=a.className;return r(a)&&a.match(/\S+/g)||[]}function pV(a,b){for(var c=oV(a),d=yb(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 qV(a,b){var c=oV(a),d=yb(arguments,1),c=rV(c,d).join(" ");a.className=c}function rV(a,b){return hb(a,function(a){return!C(b,a)})}function sV(a,b,c){c?pV(a,b):qV(a,b)};function tV(a,b){VT.call(this,a,b,"Static","text","")}w(tV,VT);f=tV.prototype;f.ae=function(){return new F(this.sd(),this.getHeight())};f.getHeight=function(){return 63};f.sd=function(){return null!=this.A?dg(this.A).width:0};f.Ls=function(a){return C(oV(a),"text-image")?9:C(oV(a),"text-ad-channel")?1:0};
f.Gh=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.j,e="rtl";null!=d&&(e=jx.test(ix(d,void 0))?"rtl":"ltr");d={title:d,text:c.k+" "+c.o,dir:e,Hd:this.Gd()};if(c=c.g)d.image=yO(c),a=lb(a.k,function(a){return a instanceof RT}),null!=a&&(d.duration=ZR(a.da));b.j&&(d.Ir=b.j);this.A=LU(iV,d);z(this.A.getElementsByTagName("a"),this.o,this);this.A.id=this.qa;this.A.style.height=this.getHeight()+"px";return this.A};function uV(a,b,c,d,e){VT.call(this,a,b,c,d,e)}w(uV,VT);uV.prototype.Gh=function(){var a=ya(this.k);x(this.Gd())||(a=new J(a),K(a,"clickTAG",Aa(this.Gd())),a=a.toString());var b=I("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.sd());b.setAttribute("src",yO(a));this.o(b);return bU(this,b)};function vV(a,b,c){var d=wV(c);c=d.g;var e=d.b,d=d.j;switch(c){case "Html":return new mV(a,b,e,d);case "Static":switch(HP[e]){case "Image":return new nV(a,b,e,d);case "Flash":return new lV(a,b,e,d);case "Text":return new tV(a,b)}}return new uV(a,b,c,e,d)}
function wV(a){var b=lb(a,function(a){return"Static"==a.g&&"Flash"==HP[a.b]}),c=lb(a,function(a){return"IFrame"==a.g}),d=lb(a,function(a){return"Html"==a.g}),e=lb(a,function(a){return"Static"==a.g&&"Image"==HP[a.b]}),g=lb(a,function(a){return"Static"==a.g&&"Text"==HP[a.b]});return gT&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function xV(a,b,c,d,e){var g=wV(e),h=vV(a.id,a.size,[g]);h.C=!0;h.B=a.Om;h.I=b;h.b=c;null!=d&&(h.je=d);rb(e,g);var k=[];z(e,function(e){e=vV(a.id,a.size,[e]);e.C=!0;e.B=a.Om;e.I=b;e.b=c;null!=d&&(e.je=d);k.push(new EU(e,[],a.fr))});return new EU(h,k,a.fr)};function yV(){};function zV(a,b,c,d){a=vV("icon",a,d);a.B=b;a.I=c.PB;return new yV};function AV(a){this.k=a;this.logger=null}w(AV,GR);
AV.prototype.b={gA:"Ad",Ym:"AdParameters",ZA:"AdSystem",$A:"AdTitle",lF:"Advertiser",ZB:"AltText",mB:"ClickThrough",nB:"ClickTracking",uB:"Companion",qB:"CompanionAds",$B:"CompanionClickThrough",aC:"CompanionClickTracking",rB:"Creative",eH:"CreativeExtensions",bB:"Creatives",oB:"CustomClick",cB:"Description",fn:"Duration",ERROR:"Error",tB:"Extension",dB:"Extensions",oj:"HTMLResource",rC:"Icon",VA:"Icons",PA:"IconClicks",lC:"IconClickThrough",mC:"IconClickTracking",QA:"IconViewTracking",pj:"IFrameResource",
Qr:"Impression",rI:"InLine",LINEAR:"Linear",kB:"MediaFile",WA:"MediaFiles",gC:"NonLinear",sB:"NonLinearAds",kA:"NonLinearClickThrough",lA:"NonLinearClickTracking",mJ:"Pricing",qj:"StaticResource",hn:"Survey",gK:"Tracking",gn:"TrackingEvents",pK:"VAST",fB:"VASTAdTagURI",YA:"VideoClicks",gB:"Wrapper"};
AV.prototype.g={GC:"adSlotID",aB:"allowMultipleAds",nj:"apiFramework",hB:"bitrate",pB:"creativeType",iB:"delivery",fn:"duration",SH:"event",eB:"followAdditionalWrappers",HC:"expandedHeight",IC:"expandedWidth",cn:"height",Vm:"id",iA:"maintainAspectRatio",jB:"maxBitrate",lB:"minBitrate",jA:"minSuggestedDuration",RA:"offset",SA:"program",vB:"required",mA:"scalable",ir:"sequence",XA:"skipoffset",Sr:"type",VERSION:"version",en:"width",TA:"xPosition",UA:"yPosition"};
function BV(a){if(null==a)return!1;a=id(a);return null!=a&&"VAST"==a.nodeName}function CV(a){var b=[];MR(id(a.k),a.b.gA,function(a){var d;d=DV(a);if(null==d)throw HR(a);var e=a.getAttribute(this.g.Vm);a=Number(a.getAttribute(this.g.ir));d=EV(this,d,e||null,a||0);null!=d&&b.push(d)},a);return b}AV.prototype.j=function(){return new QR(this.k,CV(this),null)};function DV(a){var b=null;z(hd(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw HR(a);}});return b}
function EV(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],s=new Ed,u,y=b.nodeName==a.b.gB,G=y,A=y,X;z(hd(b),function(a){switch(a.nodeName){case this.b.fB:if(y){if(null!=u)throw IR(a);u=LR(a);X=sS(u);G=PR(b.getAttribute(this.g.aB),G);A=PR(b.getAttribute(this.g.eB),A)}else throw HR(a);break;case this.b.ZA:e=LR(a);break;case this.b.$A:g=LR(a);break;case this.b.cB:LR(a);break;case this.b.hn:LR(a);break;case this.b.Qr:a=LR(a);qS(a)&&h.push(bS(a));break;case this.b.ERROR:a=LR(a);k.push(a);break;case this.b.bB:a=
FV(this,a);l=a.OA;p=a.NA;break;case this.b.dB:s=GV(this,a,X)}},a);return new fR(ya(c),e,0,g,0,0,d,k,h,l,p,s,u,G,A,HV(s))}function HV(a){var b=null;a=a.get("AdSense");null!=a&&(a=vS(a,"vast2tracking"),null!=a&&!D(a)&&(b=a[0]));return b}function IV(a){if(x(a))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function GV(a,b,c){var d=new Ed;try{var e=JR(b,a.b.tB);z(e,function(a){var b=a.getAttribute(this.g.Sr);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new RS).parse(a);break;case "pod":a=(new PS).parse(a);break;case "waterfall":a=(new TS).parse(a);break;case "dart":a=(new DS).parse(a);break;case "dfp":b="DFP";a=(new ES).parse(a);break;case "adsense":b="AdSense";a=(new BS).parse(a);break;case "textad":b="TextAd";a=(new NS).parse(a);break;case "templatead":b="TemplateAd";a=(new KS).parse(a);break;
case "infocards":b="InfoCards";a=(new HS).parse(a);break;case c:b="LocalRedirect";if(null!=a){var e=null;a=JR(a,"AdXml");1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+iD(id(a[0])));a=new IS(e)}else a=null;break;default:e=new FS,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(uS(e,a.b),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function FV(a,b){var c=[],d=[];MR(b,a.b.rB,function(a){var b=a.getAttribute(this.g.ir),h;x(b)||(h=parseFloat(b));var k=!1;z(hd(a),function(a){switch(a.nodeName){case this.b.LINEAR:if(k)throw IR(a);a=JV(this,a,isNaN(h)?0:h);wb(c,a);k=!0;break;case this.b.qB:if(k)throw IR(a);a=KV(this,a,isNaN(h)?void 0:h);wb(d,a);k=!0;break;case this.b.sB:if(k)throw IR(a);a=LV(this,a,isNaN(h)?0:h);wb(c,a);k=!0}},this)},a);return{OA:c,NA:d}}
function LV(a,b,c){var d=[],e=new gS;z(hd(b),function(a){switch(a.nodeName){case this.b.gC:a=MV(this,a,c);null!=a&&d.push(a);break;case this.b.gn:e=pS(a);break;default:throw HR(a);}},a);0!=d.length||e.isEmpty()||(a=new VT(null,new F(-1,-1),"",null,""),a.b=c,d.push(a));z(d,function(a){null!=e&&(a.je=e)});return d}
function NV(a,b){var c={};c.id=b.getAttribute(a.g.Vm);c.fr=b.getAttribute(a.g.GC);c.Om=b.getAttribute(a.g.nj);var d=$a(b.getAttribute(a.g.en)),e=$a(b.getAttribute(a.g.cn));c.size=new F(d,e);d=b.getAttribute(a.g.IC);e=b.getAttribute(a.g.HC);x(d)||x(e)||(c.cF=new F($a(d),$a(e)));return c}
function MV(a,b,c){var d=NV(a,b);b.getAttribute(a.g.nj);b.getAttribute(a.g.mA);b.getAttribute(a.g.iA);var e=b.getAttribute(a.g.jA),e=OR(e,-1),g=[];new Ed;var h={},k="",l;z(hd(b),function(a){switch(a.nodeName){case this.b.lA:break;case this.b.kA:l=LR(a);break;case this.b.Ym:h=OV(a);k=ya(LR(a));break;case this.b.pj:case this.b.qj:case this.b.oj:g.push(PV(this,a));break;default:throw HR(a);}},a);if(D(g))return null;a=vV(d.id,d.size,g);OT(a,k,h);a.B=d.Om;a.I=l;a.ca=e;a.b=c;return a}
function PV(a,b){var c=KR(b,a.g.pB),d;t:switch(d=b.nodeName,d){case a.b.qj:d="Static";break t;case a.b.pj:d="IFrame";break t;case a.b.oj:d="Html";break t;default:throw mP(fP,null,d);}var e=LR(b);null!=e||(e="");return new FU(d,c,e)}function KV(a,b,c){var d=[],e=IV(KR(b,a.g.vB));MR(b,a.b.uB,function(a){a=QV(this,a,c);null!=a&&d.push(a)},a);return new DU(d,e)}
function QV(a,b,c){var d=NV(a,b),e=[],g=new gS,h;z(hd(b),function(a){switch(a.nodeName){case this.b.aC:break;case this.b.gn:g=pS(a,!0);break;case this.b.$B:h=LR(a);break;case this.b.ZB:LR(a);break;case this.b.Ym:LR(a);break;case this.b.pj:case this.b.qj:case this.b.oj:e.push(PV(this,a));break;default:throw HR(a);}},a);return D(e)?null:xV(d,h,c,g,e)}
function JV(a,b,c){var d=new gS,e={},g="",h=[],k,l=new Ed,p=[],s,u=rS(KR(b,a.g.XA));z(hd(b),function(a){switch(a.nodeName){case this.b.VA:RV(this,a);break;case this.b.Ym:e=OV(a);g=ya(LR(a));break;case this.b.fn:s=OR(LR(a),0);break;case this.b.gn:d=pS(a);break;case this.b.WA:p=SV(this,a);break;case this.b.YA:a=TV(this,a);l=a.MA;k=a.KA;h=a.LA;break;default:throw HR(a);}},a);z(h,function(a){kS(d,"click",a)});a=new RT(s,k,l,p,u);OT(a,g,e);a.b=c;null!=d&&(a.je=d);return a}
function TV(a,b){var c,d=[],e=new Ed;z(hd(b),function(a){switch(a.nodeName){case this.b.mB:c=LR(a);break;case this.b.nB:a=LR(a);d.push(a);break;case this.b.oB:var b=KR(a,this.g.Vm);null!=b||(b="");var k=e.get(b,[]);k.push(LR(a));e.set(b,k);break;default:throw HR(a);}},a);return{KA:c,LA:d,MA:e}}
function SV(a,b){var c=[];MR(b,a.b.kB,function(a){var b=KR(a,this.g.iB),g=KR(a,this.g.Sr);a.getAttribute(this.g.en);var h=$a(a.getAttribute(this.g.cn)),k=a.getAttribute(this.g.nj),l=LR(a),p=NR(a.getAttribute(this.g.hB)),s=NR(a.getAttribute(this.g.lB));a=NR(a.getAttribute(this.g.jB));c.push(new WP(b,g,p,s,a,0,h,l,k))},a);return c}function RV(a,b){var c=[];MR(b,a.b.rC,function(a){a=UV(this,a);null!=a&&c.push(a)},a)}
function UV(a,b){KR(b,a.g.SA);KR(b,a.g.TA);KR(b,a.g.UA);var c=$a(b.getAttribute(a.g.en)),d=$a(b.getAttribute(a.g.cn)),c=new F(c,d),d=b.getAttribute(a.g.nj);rS(KR(b,a.g.RA));var e=b.getAttribute(a.g.fn);OR(e,-1);var g=[],h=[],k;z(hd(b),function(a){switch(a.nodeName){case this.b.QA:h.push(LR(a));break;case this.b.PA:k=VV(this,a);break;case this.b.pj:case this.b.qj:case this.b.oj:g.push(PV(this,a));break;default:throw HR(a);}},a);return D(g)?null:zV(c,d,k,g)}
function VV(a,b){var c=[],d;z(hd(b),function(a){switch(a.nodeName){case this.b.lC:d=LR(a);break;case this.b.mC:c.push(LR(a));break;default:throw HR(a);}},a);return{PB:d,bF:c}}function OV(a){a=LR(a);return null!=a?$R(a):{}};function WV(a,b){this.g=a;this.b=b}w(WV,GR);WV.prototype.j=function(){return new QR(this.g,null,XV(this))};function YV(a){var b=jD(a);return D(b)?[KR(a,"timeOffset")]:B(b,function(a){return KR(a,"timeOffset")})}
function XV(a){var b=new UR;z(hd(id(a.g)),function(a){if("vmap:AdBreak"==a.nodeName){var d=ZV(this,a);a=YV(a);z(a,function(a,c){var h=OR(a);0<c&&(d=$V(this,d));if("start"==a||0==h)VR(b,d,0);else if("end"==a)VR(b,d,-1);else{if(-1==h)throw mP(HO,null,"timeOffset",ya(a));VR(b,d,h)}},this)}},a);if(0==b.b.Ma().length)throw mP(NO);return b}function $V(a,b){return B(b,function(a){var b=new SR(a.j.clone());b.b=a.b;b.g=a.g;return b},a)}
function ZV(a,b){var c=[],d="",e=null,g=!1,h=!1;z(hd(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){if("undefined"!=typeof a.selectSingleNode){var b=Mc(a);"undefined"!=typeof b.setProperty&&b.setProperty("SelectionLanguage","XPath");e=a.selectSingleNode("vmap:VASTData/VAST")}else if(document.implementation.hasFeature("XPath","3.0")){var b=Mc(a),c=b.createNSResolver(b.documentElement);e=b.evaluate("vmap:VASTData/VAST",a,c,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}else e=
null;if(!e){b=JR(a,"vmap:AdTagURI");c="";b.length&&(c=ya(LR(b[0])));if(xa(c))throw mP(kP,null,a.parentNode.nodeName,a.nodeName);d=c}}break;case "vmap:Extensions":a=JR(a,"vmap:Extension"),a=aW(this,a),null!=a&&(g=!0,a=KR(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=bW(a,e):xa(d)||(k=cW(a,d));k&&(k=new SR(k),k.b=g,k.g=g&&!h,qb(c,k));return c}function aW(a,b){return lb(b,function(a){return"bumper"==KR(a,"type")},a)}
function cW(a,b){var c=a.b.clone();xa(c.adsResponse)||(c.adsResponse="");c.adTagUrl=b;return c}function bW(a,b){var c=a.b.clone();c.adsResponse=iD(b);c.adTagUrl="";return c};function dW(a,b){if(null!=a){var c;null!=a?(c=id(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return new WR(a,b);null!=a?(c=id(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return new WV(a,b);if(BV(a)){if(!BV(a))throw mP(QO);c=id(a);var d;null==c?d=0:(d=parseInt(c.getAttribute("version"),10),d=ia(d)?d:0);if(1>d||3<d)throw mP(gP);c=JR(c,"Ad");if(D(c))throw mP(VO);c=DV(c[0]);if(null==c)throw mP(YO);if(1!=JR(c,"AdSystem").length)throw mP(YO);return new AV(a)}}return null};function eW(a,b){this.g=a;this.j=b}function fW(a,b){var c=a.j.o;null!=c&&b.set("js","ima-"+c)}function gW(a){sP.k&&a.set("osd",2)}function hW(a){return a.k(a.A())}function iW(a){return sP.g?"h.3.0.0":null!=a.j?MQ(a.j):null}eW.prototype.o=function(){var a=0;this.g.oh&&(a+=1);BP()&&(a+=4);return a};function jW(){this.b=["video"]}var kW={iK:"ultrahigh",fI:"high",JE:"medium"},lW={pG:1E3,qG:1001,rG:1002,sG:1003,tG:1004,uG:1005,vG:1006},mW={IE:1,DE:2},nW={CE:"content",HJ:"site",IJ:"site_content"};f=jW.prototype;f.Ei="high";f.ql=!1;f.il=1;f.jl=null;f.He="video";f.gl=1;f.kl=null;f.rl=null;f.ll=!1;f.nl=null;f.pl=null;f.Lg=null;f.sc=null;f.tl=null;f.host=null;f.ul=null;f.wl=!1;f.xl=null;f.cq=null;f.bq=null;f.Fi=1E5;f.Hi=null;f.fq=null;f.dq=null;f.Al=0;f.If=null;f.Ii=null;f.Ni=null;f.Bl=null;f.Ji=-1;
f.url=null;f.Gi=null;f.yl=null;f.zl=null;f.Fl=null;f.Cl=null;f.Dl=null;f.El=null;var oW=(new Date).getTime();var pW={GE:"flash",IMAGE:"image",LJ:"skippablevideo",QJ:"standardvideo",TJ:"staticimage",TEXT:"text",VIDEO:"video"},qW=["flash","image","staticimage"],rW=[new F(200,200),new F(250,250),new F(300,250),new F(336,280),new F(450,50),new F(468,60),new F(480,70),new F(728,90)];
function sW(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 tW(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",oW);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 uW(a,b,c){var d=new Ed;d.set("ad_type",b.He);gT&&d.set("flash",hT);sW(d,a);vW(b)&&(d.set("ea","0"),null!=a.nonLinearAdSlotWidth&&null!=a.nonLinearAdSlotHeight&&d.set("image_size",wW(b,a.nonLinearAdSlotWidth,a.nonLinearAdSlotHeight)));xW(d,c);d.set("lact",a.lastActivity);d.set("videoad_start_delay",a.youTubeVideoAdStartDelay);tW(d);x(a.b)||yW("ref",a.b,d);return d}
function zW(a,b){if(null==b)return a;var c=b.split("_");z(c,function(a){if(!Vb(pW,a))throw mP(MO,null,"ad_type",String(b));});if(!BP()){var d=[];z(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw mP(LO,null,"skippablevideo");return d}return c}function AW(a,b){return null!=b?b.split(/[+, ]/):a}function wW(a,b,c){a.k&&(c=Math.min(c,90));var d=[];z(rW,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}
function BW(a,b){return null==b||isNaN(b)?a:Number(b)}function CW(a,b){return null!=b?String(b):null!=a?a:null}function DW(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 EW(a,b,c){return null!=b&&Vb(c,b)?b:a}function vW(a){return jb(qW,function(b){return C(a.b,b)})}
function xW(a,b){gT?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 yW(a,b,c){null!=b&&c.set(a,b)};function FW(a,b,c){eW.call(this,a,b);b=new jW;a=ve(new J(a.adTagUrl));b.rl=EW(b.rl,a.get("cust_age"),lW);b.Ei=EW(b.Ei,a.get("adsafe"),kW);b.b=zW(b.b,a.get("ad_type"));b.He=b.b.join("_");b.il=BW(b.il,a.get("videoad_start_delay"));b.jl=CW(b.jl,a.get("slotname"));b.ql=DW(b.ql,a.get("adtest"));b.kl=CW(b.kl,a.get("afi_url"));b.ll=DW(b.ll,a.get("scs"));b.nl=CW(b.nl,a.get("alternate_ad_url"));b.g=AW(b.g,a.get("channel"));b.pl=BW(b.pl,a.get("cpm"));b.Lg=CW(b.Lg,a.get("description_url"));b.sc=CW(b.sc,a.get("eid"));
b.tl=EW(b.tl,a.get("cust_gender"),mW);b.k=DW(b.k,a.get("overlay"));b.host=CW(b.host,a.get("host"));b.j=AW(b.j,a.get("hostChannels"));b.ul=BW(b.ul,a.get("hostTierId"));b.wl=DW(b.wl,a.get("lsv"));var d;null!=this.g.g?d=this.g.g:(d=pc(),d=rP(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=CW(e,d);var g;null!=d&&!x(d)&&(g=rP(d));b.xl=CW(b.xl,g);b.cq=BW(b.cq,a.get("linearAdSlotWidth"));b.bq=BW(b.bq,a.get("linearAdSlotHeight"));b.Fi=
BW(b.Fi,a.get("max_ad_duration"));b.Al=BW(b.Al,a.get("min_ad_duration"));b.Hi=BW(b.Hi,a.get("sdmax"));b.fq=BW(b.fq,a.get("nonLinearAdSlotWidth"));b.dq=BW(b.dq,a.get("nonLinearAdSlotHeight"));b.If=CW(b.If,a.get("client"));b.Ii=CW(b.Ii,a.get("t_pyv"));b.Ni=BW(b.Ni,a.get("sdki"));b.Ji=BW(b.Ji,a.get("tfcd"));b.Bl=EW(b.Bl,a.get("targeting"),nW);b.Gi=BW(b.Gi,a.get("video_format"));b.yl=BW(b.yl,a.get("video_cpm"));b.zl=CW(b.zl,a.get("loeid"));b.Fl=CW(b.Fl,a.get("yt_pt"));b.Cl=CW(b.Cl,a.get("ytdevice"));
b.Dl=CW(b.Dl,a.get("ytdevicever"));b.El=CW(b.El,a.get("as_dbp"));b.o=CW(b.o,a.get("ms"));b.gl=BW(b.gl,a.get("adBlock"));b.url=CW(b.url,a.get("url"));this.b=b;this.C=c;x(this.b.sc)||(c=this.b.sc.split(","),yT(sT(),c))}w(FW,eW);var GW=["skippablevideo","standardvideo","video"];FW.prototype.B={ix:"allow",jx:"exclude",vJ:"require"};function HW(a){return null!=a.b.g?-1<a.b.g.indexOf("afitc"):!1}FW.prototype.o=function(){var a=FW.G.o.call(this);this.b.Ni&&(a+=this.b.Ni&2);return a};
FW.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};
FW.prototype.A=function(){var a=new Ed;a.set("sdkv",iW(this));a.set("sdki",this.o().toString(16));a.set("video_product_type",null!=this.b.If?sP.b?5:HW(this)?7:0==this.b.If.lastIndexOf("ca-games-",0)?4:0==this.b.If.lastIndexOf("ca-video-",0)?0:-1:-1);a.set("correlator",this.j.b);a.set("client",this.b.If);sP.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",IW(this));a.set("channel",JW(this));a.set("ad_type",this.b.He);a.set("output","xml_vast2");
this.b.ql&&a.set("adtest","on");gT&&a.set("flash",hT);yW("alternate_ad_url",this.b.nl,a);yW("cpm",this.b.pl,a);sW(a,this.g);sP.b||Vb(kW,this.b.Ei)&&a.set("adsafe",this.b.Ei);this.b.host&&(a.set("host",this.b.host),yW("ht_id",this.b.ul,a),null!=this.b.j&&yW("h_ch",this.b.j.join("+"),a));yW("hl",this.b.xl,a);yW("cust_age",this.b.rl,a);yW("cust_gender",this.b.tl,a);-1!=this.b.Ji&&yW("tfcd",this.b.Ji,a);HW(this)?yW("afi_url",this.b.kl,a):yW("slotname",this.b.jl,a);var b=AT(sT());x(b)||a.set("eid",b);
tW(a);b=this.b.Lg;if(null!=b){var c,d;d=this.j;null==d.j&&(d.j=new HQ);d=d.j;HW(this)?c=this.b.gl:(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 IQ);c=c.M;var e=b!=this.j.L;(d=0==d.b%100||e)||(d=36E5<(null===c.b?0:(new WM).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.il;a.set("videoad_start_delay",null!=b?b:1);fW(this,a);gW(a);vW(this.b)&&(a.set("ea","0"),null!=
this.g.nonLinearAdSlotWidth&&null!=this.g.nonLinearAdSlotHeight&&a.set("image_size",wW(this.b,this.g.nonLinearAdSlotWidth,this.g.nonLinearAdSlotHeight)));KW(this)&&a.set("video_format",null!=this.b.Gi&&sP.b?this.b.Gi:ph&&0<=Va(uP,6)||kh&&0<=Va(uP,4)||nc&&AP(yP,2.3)?43:18);b=null!=this.b.Ii?this.b.Ii:C(this.b.He.split("_"),"text")?this.B.ix:this.B.jx;a.set("t_pyv",b);yW("min_ad_duration",this.b.Al,a);0<this.b.Fi&&a.set("max_ad_duration",LW(this.b.Fi,IW(this)));0<this.b.Hi&&a.set("sdmax",LW(this.b.Hi,
IW(this)));xW(a,this.C);sP.b&&(b=eQ(this.b.Lg),null!=b&&a.set("video_doc_id","yt_"+b));yW("description_url",this.b.Lg,a);sP.b&&(yW("lact",this.g.lastActivity,a),yW("loeid",this.b.zl,a),yW("lsv",this.b.wl,a),yW("scs",this.b.ll,a),yW("targeting",this.b.Bl,a),yW("video_cpm",this.b.yl,a),yW("yt_pt",this.b.Fl,a),yW("ytdevice",this.b.Cl,a),yW("ytdevicever",this.b.Dl,a),yW("as_dbp",this.b.El,a));yW("ms",this.b.o,a);b=this.g;x(b.b)||yW("ref",b.b,a);null!=this.g.De&&yW("loc",this.g.De.page_location,a);return a};
function KW(a){return jb(GW,function(a){return C(this.b.b,a)},a)}function IW(a){return HW(a)||sP.b?1:C(a.b.He.split("_"),"text")?3:1}function JW(a){a=a.b.g?a.b.g:[];zb(a);a=yb(a,0,30);return a.join("+")}function LW(a,b){return Math.round(1.1*(a||0)+0*b)};function MW(){}f=MW.prototype;
f.clone=function(){var a=new MW;a.adTagUrl=this.adTagUrl;a.De=bc(this.De);a.adsResponse=this.adsResponse;a.Vg=bc(this.Vg);a.Tr=this.Tr;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.Ui=this.Ui;
a.oh=this.oh;a.youTubeAdType=this.youTubeAdType;a.youTubeExperimentIds=this.youTubeExperimentIds;a.youTubeVideoAdStartDelay=this.youTubeVideoAdStartDelay;return a};f.De=null;f.Vg=null;f.Tr=!1;f.isYouTube=!1;f.linearAdSlotWidth=0;f.linearAdSlotHeight=0;f.nonLinearAdSlotWidth=0;f.nonLinearAdSlotHeight=0;f.tagForChildDirectedContent=!1;f.Ui=!1;f.oh=!0;f.youTubeVideoAdStartDelay=0;function NW(a,b){eW.call(this,a,b)}w(NW,eW);NW.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};NW.prototype.A=function(){var a=new Ed;a.set("sdkv",iW(this));return a};function OW(a,b){eW.call(this,a,b)}w(OW,eW);OW.prototype.A=function(){return null};OW.prototype.k=function(){var a=new BT(this.g.adTagUrl),b=iW(this);b&&FT(a,"dc_sdkv",[b]);(b=this.o().toString(16))&&FT(a,"dc_sdki",[b]);(b=this.j.B)&&FT(a,"dc_submodel",[b]);b=new Ed;fW(this,b);gW(b);Gd(b,"js")&&FT(a,"dc_js",[b.get("js")]);Gd(b,"msid")&&FT(a,"dc_msid",[b.get("msid")]);Gd(b,"osd")&&FT(a,"osd",[b.get("osd")]);return a};function PW(a){eW.call(this,a,null)}w(PW,eW);PW.prototype.k=function(a){return new J(a.get("adTagUrl"))};PW.prototype.A=function(){var a=new Ed;a.set("adTagUrl",this.g.adTagUrl);a.set("adsResponse",this.g.adsResponse);return a};function QW(a,b){eW.call(this,a,b)}w(QW,eW);QW.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};
QW.prototype.A=function(){var a=new Ed;a.set("sdkv",iW(this));a.set("sdki",this.o().toString(16));a.set("correlator",this.j.I);a.set("scor",this.j.b);fW(this,a);gW(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.Cb,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=RW(b),a.set("ciu_szs",b));a.set("impl","");return a};function RW(a){var b=[];z(a,function(a){0<a.length&&b.push(B(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function SW(a,b,c){eW.call(this,a,b);this.C=x(a.youTubeAdType);a=new jW;a.b=zW(a.b,this.g.youTubeAdType);a.He=a.b.join("_");a.sc=CW(a.sc,this.g.youTubeExperimentIds);this.b=a;this.B=c;x(this.b.sc)||(c=this.b.sc.split(","),yT(sT(),c))}w(SW,QW);SW.prototype.k=function(a){a=SW.G.k.call(this,a);this.C||TW(this,a);return a};function UW(a){var b=uW(a.g,a.b,a.B);b.set("sdkv",iW(a));b.set("sdki",a.o().toString(16));return b}
function TW(a,b){var c=UW(a),d=B(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});we(b,"afvparams",[Aa(d.join("&"))])};function VW(a,b,c){eW.call(this,a,b);this.C=x(a.youTubeAdType);a=new jW;a.b=zW(a.b,this.g.youTubeAdType);a.He=a.b.join("_");a.sc=CW(a.sc,this.g.youTubeExperimentIds);this.b=a;this.B=c;x(this.b.sc)||(c=this.b.sc.split(","),yT(sT(),c))}w(VW,OW);VW.prototype.k=function(a){a=VW.G.k.call(this,a);this.C||WW(this,a);return a};function XW(a){var b=uW(a.g,a.b,a.B);b.set("sdkv",iW(a));b.set("sdki",a.o().toString(16));return b}
function WW(a,b){var c=XW(a),d=B(c.Ma(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});FT(b,"afvparams",[Aa(d.join("&"))])};function YW(a,b){return!KT(a)&&!JT(a)||x(a.youTubeAdType)?KT(a)?new OW(a,LQ):IT(a)?new FW(a,LQ,b):JT(a)?new QW(a,LQ):LT(a)?new NW(a,LQ):new PW(a):KT(a)?new VW(a,LQ,b):new SW(a,LQ,b)};function ZW(a){a=hb(a,function(a){return 0<sU(a)});Cb(a,function(a,c){return sU(a)-sU(c)});return a}function $W(a){return hb(a,function(a){return-1==sU(a)})};function aX(a){this.b=a};function bX(){}function cX(a,b,c,d,e,g){var h=t(function(a){d(a,Error(cl(a)))},a),k=t(function(a){6==a?dX(this,b,!1,c,h,e,g):h(a)},a);dX(a,b,!0,c,k,e,g)}
function dX(a,b,c,d,e,g,h){var k=new Ml;k.O=c;Pl(k,eX(g));var l=new Wk,p=t(function(){l.dispose();k.dispose()},a);c=t(function(){e(k.g);p()},a);bl(l,k,"success",function(){var a;try{a=k.b?k.b.responseXML:null}catch(b){a=null}if(null==a){var c=rl(k);try{a=gD(c)}catch(e){t:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=hD())){a.appendChild(a.createNode(1,"parsererror",""));
break t}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);bl(l,k,["error","timeout"],c,a);var s;"POST"==h&&(a=new J(b),s=a.b.toString(),ie(a,""),b=a.toString());k.send(yO(b),h,s)};function fX(a,b,c){var d=null,e=c+b;z(a.k,function(a){var h;if(h=a instanceof VT)0==c&&0==b||a instanceof tV?h=!0:(h=a.ae(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-a.ae().height+b-a.ae().width,"Flash"!=a.getContentType()||gT))if(null==d)d=a,e=h;else if(h==e&&a.b<d.b||h<e)d=a,e=h});mU(a,d)}function gX(a){var b=null;z(a.k,function(a){a instanceof RT&&(null===b||a.b<b.b)&&(b=a)});mU(a,b)};var hX=[202,1009],iX=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"],jX={toString:function(){var a=AR();return BR(a,"metric")}};function kX(a,b,c){var d={};a=new lX(a,n(b)?b:null,n(c)?c:null);mX(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.b?b.b:900;nX(d);oX(d,a);pX(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=fb(hX,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function qX(a,b){var c={},d=new lX(null,a,n(b)?b:null);mX(c,d);nX(c);oX(c,d);pX(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.De&&null!=e.De.video_start_delay?(e=e.De.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)))}rX(c,d);return c}
function lX(a,b,c){this.error=a;this.b=b;this.display=c}function mX(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.Fn():""}}}function nX(a){a["[SDKV]"]="h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";a["[VIEWABILITY]"]=jX;a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}
function oX(a,b){if(null!=b.b&&null!=b.b.j&&null!=b.b.j.Vg&&sP.b){var c=b.b.j.Vg;z(iX,function(b){b in c&&(a[b]=c[b])})}}
function pX(a,b){if(null!=b.b){a["[AD_ID]"]=pU(b.b);a["[AD_SYS]"]=nR(b.b);a["[AD_V]"]={toString:function(){return null!=b.display?eQ(b.display.Fn()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=eU(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 rX(a,b){null!=b.b&&(a["[AD_LEN]"]={toString:function(){var a=zU(b.b);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.ce()).toString():""}})};function sX(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}sX.prototype.Bd=function(){return null!=this.b&&this.b.Bd()?!0:0<this.g.length&&this.j<this.g.length-1};function tX(a,b,c){null!=a.b?uX(a,b,c):a.Bd()?vX(a,b,t(function(a){this.Bd()&&301!=a.getErrorCode()?tX(this,b,c):c(a)},a)):c(new iO("adLoadError","The ad source contains no more ads.",1005))}
sX.prototype.I=function(a,b){return this.A?0<a.length?a:b:yb(b,0,1)};sX.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;uU(a)&&!a.C?tU(a,"nonlinear")?fX(a,d,e):gX(a):tU(a,"linear")?gX(a):tU(a,"nonlinear")&&fX(a,d,e);d=null!=a.getSelectedCreative()}d?(this.C++,b(a)):(b=D(a.k)?mP(YO):dU(a)?mP(TO):mP(aP),d=kX(b,a),DO(a.F,d),c(b))};
sX.prototype.D=function(a,b,c){var d=this.B.clone();d.adsResponse="";d.adTagUrl=a.xa;wX(this,a,d,b,c)};function xX(a,b,c,d){var e=a.B.clone();e.adsResponse="";e.adTagUrl=b.ya;wX(a,b,e,c,d)}
function wX(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.g,null!=g&&(c.adsResponse=g));a.N.g(c,t(function(a){if(a instanceof sX){var c=this.A&&b.ra,g=b.wa,p;for(p in a.g){var s=a.g[p],u=b;if(!sP.b&&u&&uU(s)){var y={loc:document.URL,ref:document.referrer,skippable:fU(s)};try{DP(CP.getInstance(),23,y,!0)}catch(G){}}s.b=u}a.A=c;a.g=a.I(a.o,a.F);a.j=-1;a.M=g;d(a)}else a instanceof aX?e(new iO("adLoadError","Ad source cannot contain playlist response.",2)):e(new iO("adLoadError","Unknown ad source.",
2))},a),e)}function yX(a){var b=0;for(a=a.b;null!=a;)a=a.b,b++;return b}function uX(a,b,c){a.b.Bd()?tX(a.b,t(function(a){this.k(a,b,t(function(a){this.Bd()?tX(this,b,c):c(a)},this))},a),t(function(a){zX(this.g[this.j],a);this.b=null;301==a.getErrorCode()?c(a):this.Bd()?tX(this,b,c):c(a)},a)):(0==a.b.C&&zX(a.g[a.j],mP(iP)),a.b=null,tX(a,b,c))}function zX(a,b){1012==b.getErrorCode()&&(b=mP($O));var c=kX(b,a);DO(a.F,c)}
function vX(a,b,c){a.j++;var d=a.g[a.j];d.C||d.P?d.P?xX(a,d,t(function(a){this.b=a;tX(this,b,c)},a),t(function(a){a=AX(a);zX(d,a);c(a)},a)):4<=yX(d)?(a=mP(bP,null,"4"),zX(d,a),c(a)):a.M?a.D(d,t(function(a){this.b=a;tX(this,b,c)},a),t(function(a){a=AX(a);zX(d,a);c(a)},a)):c(mP(hP)):a.k(d,b,c)}function AX(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=mP(iP)}return a};function BX(a,b,c,d){sX.call(this,[],a,b,c);this.L=d}w(BX,sX);BX.prototype.Bd=function(){return null!=this.b&&this.b.Bd()?!0:0<this.g.length&&this.j<this.g.length-1&&0==this.C};BX.prototype.I=function(a,b){return b};BX.prototype.k=function(a,b,c){var d=-1,d=null==this.b?rU(a):rU(this.g[this.j]);this.L.g=d;BX.G.k.call(this,a,b,c)};BX.prototype.D=function(a,b,c){this.L.g=-1;BX.G.D.call(this,a,b,c)};function CX(a,b,c,d,e){this.k=a;this.o=b;this.j=c;this.b=d;this.kb=e}CX.prototype.g=function(a,b,c){x(a.adsResponse)?JT(a)&&null!=this.b&&!this.b.B?this.b.start(a,t(function(){DX(this,a,b,c)},this)):DX(this,a,b,c):EX(this,a,b,c)};function EX(a,b,c,d){var e;try{e=gD(b.adsResponse)}catch(g){d(mP(QO,g));return}null!=e?FX(a,e,b,c,d):d(mP(QO))}
function DX(a,b,c,d){var e=hW(YW(b,a.j)).toString(),g=b.Ui&&wO(uO,e)?"POST":"GET";cX(a.o,e,t(function(a){FX(this,a,b,c,d)},a),t(function(a,c){var e;e=8==a?mP(XO):5==a||6==a?mP(GO):mP(KO,c);d(e);e="third_party";IT(b)?e="adsense":KT(b)?e="dart":JT(b)&&(e="xfp");e={rt:e,ec:a};DP(CP.getInstance(),18,e,!0)},a),a.kb,g);GX(b)}function GX(a){var b="third_party";IT(a)?b="adsense":KT(a)?b="dart":JT(a)?b="xfp":LT(a)&&(b="dbm");a={rt:b};DP(CP.getInstance(),17,a,!0)}
function FX(a,b,c,d,e){var g;try{var h=dW(b,c);if(!h)throw mP(QO);g=h.j();HX(a,g,c,d)}catch(k){k instanceof iO?e(k):e(mP(RO,k))}}function HX(a,b,c,d){var e=b.b;if(null!=e)d(new aX(e));else{var g=b.j;if(null==g)throw mP(VO);z(g,function(a){a.j=c;sP.b&&(a.oa=b.g)});e=ZW(g);g=$W(g);0<g.length&&0<=rU(g[0])?d(new BX(g,c,a,a.k)):d(new sX(e,g,c,a))}};function IX(a){this.b=a+v()}IX.prototype.reset=function(a){this.b=a+v()};function eX(a){var b=v();a=a.b-b;return 0<a?a:0};function JX(a,b){this.b=a;this.g=b;sP.k&&AR().init()}function KX(a,b,c,d){var e=null;null!=a.b&&(e=new CR(1E3,a.b,a.g));(new CX(a.g,new bX,a.b,e,new IX(8E3))).g(b,t(function(a){a instanceof aX?c(a):LX(this,a,c,d)},a),d)}function LX(a,b,c,d){var e=[],g=t(function(a,b){a.Bd()?tX(a,t(function(b){e.push(b);g(a,null)},this),t(function(b){301==b.getErrorCode()?d(mP(XO)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=mP(NO)),1012==b.getErrorCode()&&(b=mP($O)),d(b))},a);g(b,null)};function MX(a){this.g=a;this.b=new tm}function NX(a,b,c,d){var e=t(function(a){c(a);wm(this.b);OX(this)},a),g=t(function(a){d(a);wm(this.b);OX(this)},a);vm(a.b,t(function(){KX(this.g,b,e,g)},a));OX(a)}function OX(a){1==a.b.Na()?(a=a.b,um(a),a=db(a.b),null!=a&&a()):a.b.Na()};function PX(a,b,c){T.call(this);this.g=new MX(new JX(b,c));this.b=b;this.Be=!0}w(PX,T);function QX(a,b,c){if(a.Be){var d=null!=c?c:{};NX(a.g,b,t(function(a){RX(this,a,d)},a),t(function(a){SX(this,a,d)},a))}}function TX(a,b,c){if(!a.Be){var d=null!=c?c:{};NX(a.g,b,t(function(a){RX(this,a,d)},a),t(function(a){SX(this,a,d)},a))}}
function RX(a,b,c){if(a.Be)b instanceof aX?(b=new UX(b.b,a),b.D=a.b,a.S(new VX(b,c))):(b=WX(b),b.D=a.b,null!=b?a.S(new VX(b,c)):SX(a,mP(TO,null),c));else if(b instanceof aX)SX(a,mP(FO,null,"Unsupported ad format."),c);else{var d=new xR("adsLoaderSdkAdLoaded");d.o=b;d.k=c;a.S(d)}}function SX(a,b,c){a.Be?("always"==sP.j&&null!=a.b&&hR(a.b,eR()),a.S(new jO(b,c))):(c=new xR("adsLoaderSdkAdError"),c.j=b,a.S(c))};var XX={NORMAL:"normal",FULLSCREEN:"fullscreen"};function YX(){return'<div class="close-padding"><div class="close-button"></div></div>'}function ZX(a){return'<div class="recall-button '+(a.mD?"auto-hide":"")+'"></div>'}function $X(a){return'<a target="_blank" href="'+QU(a.url)+'" class="attribution-button">'+QU(a.text)+"</a>"};function aY(a,b){this.A=a;this.b=I("div",{"class":"controls"});this.O=b||ca;this.Pc=new Wk(this)}w(aY,Kh);f=aY.prototype;f.zd=!1;f.$r=1E3;f.Dr=30;f.kr=45E3;f.lr=15E3;f.Ps=!1;function bY(a){var b=I("div",{"class":"container"});Ix(b,"opacity 0.4s");a.Pc.listen(b,"mouseover",a.eC);a.Pc.listen(b,"mouseout",a.fC);b.appendChild(a.b);return b}f.Pj=function(){var a=bY(this);this.b.appendChild(this.A);this.display(this.A);this.play();return a};f.K=function(){null==this.I&&(this.I=this.Pj());return this.I};
f.play=function(){null==this.g&&(this.g=Rk(function(){this.zd||(this.hide(),this.Ps=!0);this.g=null},this.Ps?this.lr:this.kr,this))};f.stop=function(){null!=this.g&&(Sk(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(){eg(this.K(),1);null!=this.j&&(Sk(this.j),this.j=null)};f.hide=function(){eg(this.K(),this.Dr/100);null==this.j&&(this.j=Rk(function(){this.O();this.j=null},400,this))};
f.eC=function(){this.show();this.zd=!0;this.B=Rk(function(){this.zd&&this.stop();this.B=null},this.$r,this)};f.fC=function(){null!=this.B&&(Sk(this.B),this.B=null);this.zd&&this.play();this.zd=!1};f.J=function(){aY.G.J.call(this);this.stop();Mh(this.Pc)};function cY(a,b){this.F=a;this.N=new Ed;this.L=15E3;this.C=I("span");aY.call(this,a[0],b);this.b.appendChild(this.C)}w(cY,aY);
cY.prototype.Pj=function(){var a=bY(this);pV(a,"container-rotator");this.D=I("div");this.b.appendChild(this.D);z(this.F,function(a,c){pV(a,"container-highlight");var d=63/this.F.length*(c+.5)-5,e=I("div",{id:Za(),"class":"container-selector"});e.style.top=d+"px";this.Pc.listen(e,"click",function(a){dY(this,a.target)});this.N.set(e.id,a);this.C.appendChild(e)},this);dY(this,id(this.C));this.play();return a};
cY.prototype.play=function(){null==this.k&&(this.k=new Pk(this.L),this.Pc.listen(this.k,"tick",this.P));cY.G.play.call(this);this.k.start()};cY.prototype.stop=function(){null!=this.k&&this.k.stop();cY.G.stop.call(this)};cY.prototype.P=function(){var a=this.o;dY(this,(void 0!=a.nextElementSibling?a.nextElementSibling:jd(a.nextSibling))||id(this.o.parentNode))};function dY(a,b){a.o&&qV(a.o,"container-active");pV(b,"container-active");var c=a.N.get(b.id);gd(c,a.D);a.o=b;a.D=c;a.display(c)};function eY(a,b){aY.call(this,a,b)}w(eY,aY);aY.prototype.M=!1;eY.prototype.Pj=function(){var a=bY(this);pV(a,"container-slider");this.b.appendChild(this.A);this.Pc.listen(this.b,"click",this.k);this.play();return a};eY.prototype.show=function(){this.display(this.A);fY(this);qV(this.K(),"hidden")};eY.prototype.hide=function(){fY(this);pV(this.K(),"hidden")};eY.prototype.k=function(a){0!=Of(this.b).y&&(a.preventDefault(),a.stopPropagation())};function fY(a){a.M?pV(a.K(),"animated"):a.M=!0};function gY(a,b){aY.call(this,a[0],b);this.k=a;pV(this.b,"container-stack")}w(gY,aY);gY.prototype.hide=ca;gY.prototype.Pj=function(){var a=bY(this);z(this.k,function(a){pV(a,"container-highlight");this.b.appendChild(a);this.display(a)},this);this.play();return a};function hY(a){T.call(this);this.B=a;this.o=null;this.I="normal";this.k=this.volume=null;this.g=new GP;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(hY,T);function $(a){if(null!=a.o){if(fU(a.o)&&!BP())throw oP(LO,null,"skippablevideo");return a.o}throw oP(IO,null,"An ad has not been selected.");}f=hY.prototype;f.Kg=function(){var a=fb(this.B,this.o);-1!=a&&++a<this.B.length?this.o=this.B[a]:this.o=null};
f.Bs=function(){if(null==this.o){if(D(this.B))throw oP(TO);this.o=this.B[0];if(null==this.o.getSelectedCreative())throw mP(TO);}};f.ma=function(a){null!=this.o?this.S(new lO(a,$(this))):this.S(new lO(a,null))};function iY(a){null==a.j&&(a.j=new Wk(a));return a.j}function jY(a,b){if(null!=a.D&&($k(iY(a),a.D,"companion_display_error",function(){}),hR(a.D,b),!a.D.bt()))throw oP(JO);}f.destroy=function(){this.dispose()};
f.J=function(){null!=this.o&&(mU(this.o,null),this.o=null);Mh(this.j);this.j=null;Mh(this.D);this.D=null;this.N=!1;hY.G.J.call(this)};f.ft=function(){return[]};f.getCurrentAd=function(){return this.B[0]};f.init=function(a){kY(this);this.Fj(a);this.ca=!0;this.Uj()};f.Uj=function(){this.ma("loaded")};f.sendImpressionUrls=function(a){null!=this.o&&sP.b&&DO(kU($(this)),a)};
f.Xc=function(a,b,c){if(!this.N){if(null==a)throw oP(MO,null,"displayContainer");if(null!=c){var d=new ck(Ub(this.g));if(!Nd(Ub(c),d.contains,d))throw oP(MO,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.g;if(null==c.Vf||0>=c.Vf)c.Vf=-1;null==c.mh&&(c.mh=[]);lY(c.mh);ia(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);ec(d,c)}this.content=b;this.k=a;this.Bs();this.N=!0}};f.getRemainingTime=function(){return-1};f.Dh=ca;f.pause=function(){};f.resume=function(){};
f.skip=function(){};f.start=function(){kY(this);if(!this.ca)throw mP(IO,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&qP(this,MO,null,"volume",String(a));this.volume=a};f.Fj=function(a){if(!Vb(XX,a))throw oP(MO,null,"view mode",a);this.I=a};f.setMediaUrl=function(){};function kY(a){if(!a.N)throw oP(IO,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
function lY(a){if(!ga(a))throw oP(IO,null,"adsRenderingSettings.mimeTypes should be an array");var b=ub(Tb(LP),Tb(HP));z(a,function(a){if(!C(b,a))throw oP(IO,null,"Invalid or unsuppoted mime type "+a);})};function mY(a){hY.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(mY,hY);f=mY.prototype;f.start=function(){mY.G.start.call(this);this.k.ji();this.A=this.k.Rf();if(null!=this.A){dd(this.A);var a=this.Ln();this.A.appendChild(a);nY(this);this.ma("start")}};f.Dh=function(){mY.G.Dh.call(this);nY(this)};f.getSelectedCreative=function(){return $(this).getSelectedCreative()};
f.J=function(){Mh(this.b);this.k=this.b=null;null!=this.A&&(dd(this.A),this.A=null);mY.G.J.call(this)};f.Ln=function(){var a=$(this).getSelectedCreative();if(null==a)throw a=oP(TO),oY(this,a),a;WT(a,iY(this));XT(a,hk);try{jY(this,$(this))}catch(b){throw oY(this,b),b;}var c=qX($(this));DO(kU($(this)),c);this.ma("impression");return pY(this,[a.md()])};f.dr=function(a,b){return new aY(a[0],b)};
function pY(a,b){null!=a.b&&a.b.stop();a.b=a.dr(b,t(a.br,a));var c=a.b.K();if(sP.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)}sV(c,"autoalign",a.g.Mq);sV(c,"viewmode-fullscreen","fullscreen"==a.I);c.appendChild(a.O);iY(a).listen(c,"click",hk);(null!=a.o&&uU($(a))||a.g.useStyledNonLinearAds)&&a.nm(a.b.b);return c}f.nm=function(a){var b=iY(this);this.L=LU(ZX,{mD:this.P});b.listen(this.L,"click",this.nD);var c=LU(YX);b.listen(c,"click",this.Pn);a.appendChild(c)};function nY(a){if(null!=a.b){var b=bg(a.k.Rf()),c=bg(id(a.b.b));if(c.width>b.width||c.height>b.height)throw b=oP(OO,null),oY(a,b),a.stop(),b;}}
function oY(a,b){var c=kX(b,$(a)),d=jU($(a));DO(d,c)}f.Pn=function(){this.br();this.ma("userClose")};f.br=function(){this.b.stop();var a=this.getSelectedCreative();null!=a&&$T(a);gd(this.L,this.b.b)};f.nD=function(a){hk(a);this.b.show();this.b.play();gd(this.b.b,this.L);Rk(function(){fg(this.O,!1)},500,this);fg(this.O,!0)};function qY(a){mY.call(this,a);this.C=!1;this.F=this.T=null;!D(a)&&null!=a[0].j&&(this.T=a[0].j,a=(new J(this.T.adTagUrl)).b.get("channel"),this.uh=null!=a&&-1<a.split("+").indexOf("afitc"))&&(this.P=!0)}w(qY,mY);f=qY.prototype;f.uh=!1;
f.dr=function(a,b){if(this.C||null==b)b=ca;var c;this.uh?c=new eY(a[0]):sP.b&&this.C?c=new aY(a[0],b):"fullscreen"==this.I?c=new gY(a):1<a.length?(c=new cY(a),c.L=15E3):c=new aY(a[0],b);c.$r=100;this.C&&(c.Dr=30);c.kr=this.uh?1E4:45E3;c.lr=6E3;sV(c.b,"scalable",this.C);sV(c.K(),"afi",this.uh);sV(c.K(),"yt-text-overlay",sP.b&&this.C);return c};
f.CC=function(a){var b=a.getSelectedCreative();null!=b?(null==this.M&&(this.M=a.getExtension("AdSense").A),ZT(b,qa(this.OC,a,b)),XT(b,qa(this.NC,a,b)),b.la=!1,"Text"==b.getContentType()&&(this.C=!0),this.F.push(b)):(b=mP(TO),b=kX(b,a),DO(jU(a),b))};f.Xc=function(a,b,c){qY.G.Xc.call(this,a,b,c);this.g.Mq=!0;null!=this.B[0]&&0<oR(this.B[0]).length?jY(this,this.B[0]):this.ma("companionBackfill")};
f.Ln=function(){null==this.F&&(this.F=[],z(this.B,this.CC,this));if(0==this.F.length)throw oP(TO);var a=[];z(this.F,function(b){WT(b,iY(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.ds=!0);a.push(b.md());cU(b,this.M.j)},this);if(0==a.length)throw oP(TO);return pY(this,a)};f.Pn=function(a){z(this.F,function(a){var c=qX(a.getAd());DO(a.Rn("close"),c)},this);qY.G.Pn.call(this,a)};
f.nm=function(a){qY.G.nm.call(this,a);var b=this.B[0].getExtension("AdSense"),c=b.k,b=b.o,c=LU($X,{text:null!=c?c:this.M.b,url:null!=b?b:this.M.g});a.appendChild(c)};f.OC=function(a,b){var c=qX(a);DO(kU(a),c);DO(b.Rn("creativeview"),c);ZT(b,ca)};
f.NC=function(a,b,c){c=Wf(c);a=a.getExtension("AdSense");a=new J(a.g);var d=b.sd();isNaN(d)&&(d=Zf(b.md()).width);var e=b.getHeight();isNaN(e)&&(e=Zf(b.md()).height);b=sT();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.I,"sdkv=h.0.0.0","eids="+AT(b)];AO(a,"elementclick",b);this.ma("click")};f.Fj=function(a){this.I!=a&&(qY.G.Fj.call(this,a),null!=this.A&&(dd(this.A),a=this.Ln(),this.A.appendChild(a)),this.ma("expandedChanged"))};function rY(a){lO.call(this,"adMetadata",a)}w(rY,lO);function sY(a,b,c){var d=ca;a=new J("https://gdata.youtube.com/feeds/api/videos/"+a);null!=c&&(b=t(b,c),d=t(d,c));tY(new Ml,a,b,d)}function uY(a,b,c){var d=ca;a=new J("https://gdata.youtube.com/feeds/api/channels/"+a);null!=c&&(b=t(b,c),d=t(d,c));tY(new Ml,a,b,d)}
function tY(a,b,c,d){vY(b);Pl(a,2E3);var e=new Wk(a);$k(e,a,"success",function(a){a=a.target;var b;b=a.b?pf(a.b.responseText):void 0;c(b||{});e.dispose();a.dispose()});$k(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.g&&(b=Error(cl(a.g)));d(b);e.dispose();a.dispose()});a.send(b)}function vY(a){K(a,"alt","json");K(a,"v","2")};function wY(a){xY(this,a)}function xY(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&jb(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 yY(a){zY(this,a)}yY.prototype.b=!0;function zY(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&jb(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=lb(c.yt$accessControl,function(a){return"list"==a.action}))&&(a.b="denied"!=c.permission)}}};function AY(a,b,c,d,e){fw.call(this);this.g=a;this.o=b;this.A=c;this.j=d;this.B=ga(e)?e:[e]}w(AY,fw);f=AY.prototype;f.play=function(){if(1==this.b)return!1;this.Lc();this.Jb("play");this.startTime=v();this.b=1;if(Kx())return Hf(this.g,this.A),this.k=Rk(this.wz,void 0,this),!0;this.Ll(!1);return!1};f.wz=function(){Ix(this.g,this.B);Hf(this.g,this.j);this.k=Rk(t(this.Ll,this,!1),1E3*this.o)};f.stop=function(){1==this.b&&this.Ll(!0)};
f.Ll=function(a){Jx(this.g,"");Sk(this.k);Hf(this.g,this.j);this.endTime=v();this.b=0;if(a)this.onStop();else this.vb();this.Cd()};f.J=function(){this.stop();AY.G.J.call(this)};f.pause=function(){};function BY(a,b,c,d){return new AY(a,.5,{opacity:c},{opacity:d},{Ip:"opacity",duration:.5,timing:b,Hp:0})};function CY(a,b){T.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 Wk(this);this.O=!1;this.U=this.T=this.L=0;this.A=this.C=this.B=null;this.I=!1;this.j.k&&(this.o.listen(b,"touchstart",this.Eu),this.o.listen(b,"touchmove",this.Du),this.o.listen(b,"touchend",this.Cu));this.k=LU(DY);this.N=H("videoAdUiPreSkipButton",this.k);this.F=H("videoAdUiPreSkipText",this.N);this.P=H("videoAdUiPreSkipThumbnail",this.N);nd(this.F,EY({Fo:FY(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=$c("img");d.setAttribute("src",c);pV(d,"videoAdUiPreSkipThumbnailImage");this.P.appendChild(d)}else pV(this.F,"videoAdUiPreSkipTextOnly");this.j.k?c="\u00ab Swipe to Skip":(c="",d=sa("Skip Ad \u00bb"),c=c+d,d=new RegExp(Ra("\u00bb"),""),c=c.replace(d,""),c=za(c));this.b=LU(GY,{Gu:c});fg(this.k,!1);b.appendChild(this.k);fg(this.b,!1);eg(this.b,0);b.appendChild(this.b);this.o.listen(this.b,"click",this.Fu)}w(CY,T);
f=CY.prototype;f.J=function(){null!=this.B&&(this.B.dispose(),this.B=null);null!=this.C&&(this.C.dispose(),this.C=null);HY(this);null!=this.k&&(fd(this.k),this.k=null);null!=this.b&&(fd(this.b),this.b=null);this.o.dispose();this.o=null;this.I=!1;CY.G.J.call(this)};
f.update=function(a,b){this.M=b;if(!(0>=this.M||null==this.j.b||0>fS(this.j.b))){var c=fS(this.j.b);c>=this.M||3==this.g||(0>a?this.g=1:a<=c?(2!=this.g&&(IY(this,0),BY(this.k,"ease-out",0,1).play(),fg(this.k,!0)),this.g=2):(3!=this.g&&(fg(this.b,!0),this.C=new AY(this.k,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{Ip:"opacity",duration:.5,timing:"ease-out",Hp:0}),this.B=BY(this.b,"ease-out",0,1),this.C.play(),this.B.play(),this.o.listen(kd(this.b),"mouseover",this.tw),this.o.listen(kd(this.b),
"mouseout",this.Jp),this.Jp()),this.g=3,this.S("skipshown")))}2==this.g&&IY(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.Eu=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.Du=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.Cu=function(){this.O=!1;if(3==this.g){var a=Zf(kd(this.b));if(parseInt(this.b.style.right,10)+4*this.L>.25*a.width&&0<this.L){fg(this.b,!1);this.D=!0;this.S("skip");return}}this.b.style.right=0};function FY(a){return null!=a.j.b&&-1!=fS(a.j.b)?fS(a.j.b):-1}function IY(a,b){var c=FY(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+ZR(c));c=EY({Fo:d});nd(a.F,c)}}f.Fu=function(a){a.stopPropagation();3!=this.g||this.D||(this.D=!0,this.S("skip"))};
f.Jp=function(){null==this.A&&(this.A=Rk(function(){this.I=!0;BY(this.b,"ease-in",1,.5).play();this.A=null},this.I?5E3:15E3,this))};f.tw=function(){eg(this.b,1);HY(this)};function HY(a){null!=a.A&&(Sk(a.A),a.A=null)};function JY(a,b,c){T.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 Wk(this);a=this.b.C;c="";var d=sa("Learn More {$suffix}",{suffix:QU("")});this.g=LU(this.b.B,{ii:a,Hu:c+d});this.j.listen(this.g,"touchmove",this.Ku);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.Iu);null!=this.C&&this.j.listen(this.C,"click",this.Ju);null!=this.L&&this.j.listen(this.L,"click",this.Lu);null!=this.N&&this.j.listen(this.N,"click",this.yk);null!=this.D&&this.j.listen(this.D,"click",this.Nu);null!=this.o&&this.j.listen(this.o,"click",this.Ou);
null!=this.I&&this.j.listen(this.g,"mouseover",this.Mu);null!=this.b.b&&(this.k=new CY(this.b,this.g),this.k.gi(this));400>=(parseInt(Kf(b,"width"),10)||b.width)&&pV(this.g,"videoAdUi-mobile");this.b.k&&pV(this.g,"videoAdUi-swipeable");fg(this.g,!1);b.appendChild(this.g);this.b.j||(this.A=I("div",{style:"width:100%;height:100%"}),this.g.appendChild(this.A));KY(this)}w(JY,T);f=JY.prototype;f.show=function(){null!=this.g&&fg(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&&(fd(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;JY.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=ZR(b-a);nd(this.F,c+(" ("+d+")"));fg(this.F,this.b.o&&this.O)}null!=this.M&&Yf(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&&pV(this.I,"videoAdUiTopBarNoFade")}};
function KY(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.g,g=b&&a.b.F,b=b&&a.b.A,h=a.b.D&&!0,k="0px";null!=a.o&&(fg(a.o,b),null!=a.B&&fg(a.B,c),null!=a.C&&fg(a.C,d),null!=a.L&&fg(a.L,e),null!=a.D&&(fg(a.D,g),g&&a.S("videoShareShown")),null!=a.I&&fg(a.I,b||c||d||e));null!=a.F&&fg(a.F,a.b.o&&a.O);null!=a.M&&(fg(a.M,h),h&&(k=Kf(a.M,"height")));null!=a.P&&Hf(a.P,"bottom",k);null!=a.N&&fg(a.N,a.b.j)}f.Iu=function(){this.S("videoAuthorIconClicked")};f.Ju=function(){this.S("videoAuthorClicked")};
f.Lu=function(){this.S("videoLearnMoreClicked")};f.Nu=function(){this.S("videoShareClicked")};f.Ou=function(){this.S("videoTitleClicked")};f.Ku=function(a){a.preventDefault()};f.yk=function(){this.S("click")};f.Mu=function(){pV(this.I,"videoAdUiTopBarTransitions")};function LY(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">'+QU(a.Hu)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">Learn More<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttribution"',c;c=gV(a.ii);
c=QU(c);return b+c+">"+QU(a.ii)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}function MY(a){var b=gV(a.ii);return'<div class="videoAdUi videoAdUi-gvn"><div class="videoAdUiTopBar"><div class="videoAdUiAttribution videoAdUiAttribution-gvn"'+QU(b)+">"+QU(a.ii)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}
function DY(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail"></div></div></div>'}function EY(a){var b="";a=sa("You can skip to video in {$xSeconds}",{xSeconds:QU(a.Fo)});return b+a}function GY(a){return'<div class="videoAdUiSkipContainer"><div class="videoAdUiSkipButton">'+QU(a.Gu)+'<div class="videoAdUiSkipIcon"></div></div></div>'};function NY(){var a="",b=sa("Advertisement");this.C=a+b+":";this.b=null;this.o=this.I=!0;this.F=this.g=!1;this.D=!0;this.j=!1;this.M=!0;this.A=this.N=this.L=!1;this.B=null;this.k=!1;this.O=!0}function OY(a,b,c,d,e,g,h,k){var l=new NY;l.P=b;l.V=e;l.M=g;l.g=!1;l.F=h;l.D=k;l.b=c;l.j=a;l.B=LY;l.U=gQ(b,null!=c,d.baseYouTubeUrl);l.k=kk&&zT(0);l.O=null!=e&&(null!=d?d.showContentThumbnail:!0);return l};function PY(){this.b=new gS;this.k=new Ed;this.g=[];this.o=!1;this.Mf={};this.j=-1}w(PY,Kh);PY.prototype.J=function(){this.g=[];this.Mf={}};function QY(a,b){a.Mf=b}function RY(a,b){var c=BR(AR(),b.type);"impression"==b.type&&!a.o&&null!=a.g&&0<a.g.length&&(SY(a,a.g),a.o=!0);var d;t:switch(d=b.type,d){case "click":d=!0;break t;default:d=!Gd(a.k,d)}d&&(d=oS(a.b,b.type),0<d.length&&(SY(a,d,c),a.k.set(b.type,!0)))}function SY(a,b,c){z(b,function(a){BO(a,this.Mf,c)},a)};function TY(a){S.call(this,a)}w(TY,S);function UY(a){T.call(this);this.A=a;this.D=new Ed;this.C=-1;this.F=!1}w(UY,T);function VY(a){this.g=!1;this.b=a.Pi();this.volume=a.ce()}VY.prototype.muted=function(a,b){return!this.b&&a||0<this.volume&&0==b};f=UY.prototype;f.J=function(){WY(this);UY.G.J.call(this)};function WY(a){null!=a.g&&a.g.dispose();null!=a.b&&a.b.Df();null!=a.o&&a.o.dispose();a.o=null;null!=a.B&&a.B.dispose();a.B=null;a.D.clear();a.C=-1;a.F=!1}
function XY(a,b,c){if(!c||null==a.D.get(b)){a.D.set(b,!0);t:{if(a.j&&a.j.b.g){if("click"==b)break t;"videoLearnMoreClicked"==b&&RY(a.A,new S("click"))}RY(a.A,new S(b))}a.S(b)}}f.Qw=function(a){var b=a.j;a=this.A;var c=this.A.Mf,b=null!=b?b.viewability:null;c["[VIEWABILITY]"]=null!=b?b:jX;a.Mf=c;XY(this,"viewable_impression",!1)};
f.Ew=function(){var a=this.b.wd();if(-1!=a){this.b.wh(.25*a)&&XY(this,"firstquartile",!0);this.b.wh(.5*a)&&XY(this,"midpoint",!0);this.b.wh(.75*a)&&XY(this,"thirdquartile",!0);var b=this.A,c=this.b.getCurrentTime();0>b.j&&(nS(b.b,a),b.j=0);for(var a=lS(b.b,"progress"),d=b.j;d<a.length;d++){var e=a[d];if(fS(e.j)>c)break;b.j=d+1;BO(e.b,b.Mf)}}YY(this)};function YY(a){0>a.C||a.F||!a.b.wh(a.C)&&!a.b.Le()||(a.F=!0,XY(a,"engagedview",!0),a.S(new TY("viewCount")))}
f.Dw=function(){XY(this,"impression",!0);XY(this,"creativeview",!0);null!=this.I||null!=this.j||this.g.listen(this.b,"click",this.Px);null!=this.I&&(this.o=new RP,this.g.listen(this.o,"click",this.sq,!1),SP(this.o,this.I));null!=this.j&&(this.B=new RP,this.g.listen(this.B,"click",this.sq,!1),SP(this.B,this.j));XY(this,"start",!0);(this.b.Pi()||0==this.b.ce())&&XY(this,"mute",!1)};
f.Fw=function(){var a=this.b.Pi(),b=this.b.ce(),c=this.k;c.b&&!a||!a&&0==c.volume&&0<b?XY(this,"unmute",!1):this.k.muted(a,b)&&XY(this,"mute",!1);this.k.b=a;this.k.volume=b};f.Bw=function(){this.b.Le()?(YY(this),XY(this,"complete",!0)):this.b.kh()&&!this.b.jr()&&(this.k.g=!0,XY(this,"pause",!1))};f.Cw=function(){this.k.g&&(this.k.g=!1,XY(this,"resume",!1))};f.xw=function(){YY(this);XY(this,"complete",!0)};f.sq=function(){XY(this,"click",!1)};f.yw=function(){XY(this,"error",!1)};
f.Aw=function(){XY(this,"mediaLoadTimeout",!1)};f.Iw=function(){XY(this,"skipshown",!0)};f.Kw=function(){XY(this,"videoAuthorIconClicked",!1)};f.Jw=function(){XY(this,"videoAuthorClicked",!1)};f.Lw=function(){XY(this,"videoLearnMoreClicked",!1)};f.Mw=function(){XY(this,"videoShareClicked",!1)};f.Nw=function(){XY(this,"videoShareShown",!0)};f.Pw=function(){XY(this,"videoTitleClicked",!0)};f.Kp=function(){XY(this,"skip",!0)};f.Hw=function(){XY(this,"skip",!0)};f.Px=function(){XY(this,"click",!1)};
f.zw=function(){XY(this,"fullscreen",!1)};f.Gw=function(){XY(this,"exitfullscreen",!1)};function ZY(a){hY.call(this,a);this.A=null;this.F=new PY;this.C=new UY(this.F);this.O=this.P=this.M=!1;this.L=1}w(ZY,hY);f=ZY.prototype;f.J=function(){$Y(this);var a=!1;null!=this.k&&(a=this.k.rn(),this.k.hide(),this.k=null);this.M&&(this.M=!1,this.b.kh()||this.b.Le()||this.b.pause(),!oc&&!yc||a||(this.b.Of(.001),this.b.Dg("","")),this.ma("contentResumeRequested"),this.ma("allAdsCompleted"),oc&&this.b.ej()&&!a&&this.b.pn());ZY.G.J.call(this)};
function $Y(a){Mh(a.A);a.A=null;Mh(a.C);Mh(a.F);Mh(a.o);a.T=null}function aZ(a){a.Kg();null!=a.o?a.start():a.stop()}f.Kg=function(){$Y(this);ZY.G.Kg.call(this);null!=this.o&&(this.F=new PY,this.C=new UY(this.F))};
f.Sw=function(a,b,c){this.P||(this.P=!0,this.ma("contentPauseRequested"));this.M=!0;var d=this.C,e=this.b,g=this.T,h=this.A;WY(d);d.b=e;d.j=h||null;d.b.Di();d.k=new VY(d.b);d.I=g||null;d.g=new Wk(d);d.g.listen(a,"viewable_impression",d.Qw);d.g.listen(d.b,"timeUpdate",d.Ew);d.g.listen(d.b,"volumeChange",d.Fw);d.g.listen(d.b,"pause",d.Bw);d.g.listen(d.b,"play",d.Cw);d.g.listen(d.b,"end",d.xw);d.g.listen(d.b,"beginFullscreen",d.zw);d.g.listen(d.b,"endFullscreen",d.Gw);d.g.listen(d.b,"skip",d.Kp);d.g.listen(d.b,
"start",d.Dw);d.g.listen(d.b,"error",d.yw);d.g.listen(d.b,"mediaLoadTimeout",d.Aw);null!=d.j&&(d.g.listen(d.j,"videoAuthorIconClicked",d.Kw),d.g.listen(d.j,"videoAuthorClicked",d.Jw),d.g.listen(d.j,"videoLearnMoreClicked",d.Lw),d.g.listen(d.j,"videoTitleClicked",d.Pw),d.g.listen(d.j,"videoShareClicked",d.Mw),d.g.listen(d.j,"videoShareShown",d.Nw),d.g.listen(d.j,"skipshown",d.Iw),d.g.listen(d.j,"skip",d.Kp),d.g.listen(d.j,"PUBLISHER_INVOKED_SKIP",d.Hw));iY(this).listen(this.C,"engagedview",this.be);
iY(this).listen(this.C,"videoAuthorIconClicked",this.be);iY(this).listen(this.C,"videoAuthorClicked",this.be);iY(this).listen(this.C,"videoLearnMoreClicked",this.be);iY(this).listen(this.C,"videoShareClicked",this.be);iY(this).listen(this.C,"videoShareShown",this.be);iY(this).listen(this.C,"videoTitleClicked",this.be);iY(this).listen(this.b,"timeUpdate",this.Ow);iY(this).listen(this.b,"volumeChange",this.ww);this.setVolume(this.L);bZ(this,a);cZ(this,a);this.k.fi();this.A&&(x(yU(a))?(d=this.A,null!=
d.A&&(d.j.Fa(d.A,"click",d.yk),Hf(d.A,"cursor","default"))):(d=this.A,null!=d.A&&(d.j.listen(d.A,"click",d.yk),Hf(d.A,"cursor","pointer"))),this.b.Kl(dZ(this,a)));this.b.Dg(b,c);try{jY(this,a)}catch(k){eZ(this,JO,k);return}this.b.play()};function fZ(a,b,c,d){b=lS(b.b,c);D(b)||(a[d]=b[0].b)}function gZ(a,b,c){b=c.getExtension(b);null!=b&&(fZ(a,b,"annotation_click","cta_annotation_clicked"),fZ(a,b,"annotation_close","cta_annotation_closed"),fZ(a,b,"annotation_start","cta_annotation_shown"))}
function dZ(a,b){var c=uU(b)&&!b.C?nU(b):null,d=fU(b)&&!gU(b),e=a.g.Bk&&a.A.b.j,g=eU(b),h={};gZ(h,"AdSense",b);gZ(h,"dart",b);gZ(h,"DFP",b);return new XP(g,c,h,e,d,a.g.loadVideoTimeout,b.j.tagForChildDirectedContent)}function hZ(a){var b=0;z(a.B,function(a){iZ(a)&&b++},a);var c=1;z(a.B,function(a){var b=a.D;iZ(a)&&(b.b=c,b.g=c,c++)},a)}function iZ(a){a=a.getSelectedCreative();return null!=a&&a instanceof RT}
function jZ(a){return jb(a.B,function(a){a=kZ(a);return jb(a,function(a){return!x(eQ(a.g))})},a)}function kZ(a){var b=a.b;if(null!=b&&b.P&&(b=b.k,!D(b)&&b[0]instanceof RT))return b[0].D;b=a.getSelectedCreative();return iZ(a)?b.D:[]}function lZ(a,b){if(!iZ(b))throw oP(dP);var c=b.getSelectedCreative(),d=c.ub;if(!x(d))return new WP("","",0,0,0,0,0,d,"");var e=null!=b&&(sP.b||a.k.hj()),d=kZ(b),e=a.b.hr(d,a.g.Vf,a.g.mh||[],e);mZ(d,a.g.Vf,e);if(null!=e)return c.oa=e;throw oP(WO);}
function mZ(a,b,c){try{var d=B(a,function(a){return a.ee}),e=B(a,function(a){return a.b}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.ee,selmt:null===c?"":c.b,nat:!1};DP(CP.getInstance(),22,g)}catch(h){}}f.Uj=function(){this.ma("loaded");this.S(new rY($(this)))};f.Xc=function(a,b,c){ZY.G.Xc.call(this,a,b,c);this.b=this.k.vj(jZ(this))};f.skip=function(){null!=this.o&&fU($(this))&&(null!=this.A?this.A.skip():(RY(this.F,new S("skip")),nZ(this)))};
f.start=function(){ZY.G.start.call(this);hZ(this);this.T=this.k.Nl();try{var a=lZ(this,$(this));this.O=!1;if(this.g.useVideoAdUi){var b=$(this),c;c=lZ(this,b).g;var d=b.getExtension("AdSense"),e=this.g.Bk&&((null===c?!1:"modules"==(new J(c)).Qg().toLowerCase())||null!=d&&d.B),g=eQ(c),h;if(sP.b)h=OY(e,g,vU(b),this.g,this.g.contentId,!0,this.g.useShareButton,!0);else{var k;if(!BU(b,JP)&&!BU(b,KP)||xU(b)){var l=vU(b),p=OY(e,g,l,this.g,this.g.contentId,!1,!1,!1);p.B=MY;k=p}else{var s=vU(b),u=OY(e,g,s,
this.g,this.g.contentId,!1,!1,!1);u.o=!1;u.I=!1;k=u}h=k}var b=h,y=this.k.Ol();if(null===y)y=document.body;else{dd(y);var G=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}}");
y.appendChild(G)}var A=1E3*zU($(this));this.A=new JY(b,y,A);var X=b.P;null!=X&&($(this).T=X,b.M&&oZ(this,X));this.A.show()}Rk(t(ZY.prototype.Sw,this,$(this),a.g,a.b))}catch(Ha){pZ(this,Ha),this.Kg(),null!=this.o?(pP(oP,this,jP,Ha,void 0),this.start()):(this.M?pP(oP,this,jP,Ha,void 0):(null!=this.D&&hR(this.D,eR()),qP(this,jP,Ha)),this.stop())}};f.setVolume=function(a){kY(this);this.M?this.b.setVolume(a):this.L=a};
f.setMediaUrl=function(a){kY(this);var b;if(b=null!=this.o)b=null!=$(this).j;b&&(b=$(this),(vO(b.j.location)||sP.b)&&null!=b.getSelectedCreative()&&b.getSelectedCreative()instanceof RT&&b.getSelectedCreative().setMediaUrl(a))};f.pause=function(){kY(this);this.b.pause()};f.resume=function(){kY(this);this.b.play()};f.getRemainingTime=function(){kY(this);var a=this.b.wd(),b=this.b.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.pA=function(){eZ(this,jP,oP(jP,this.b.ts()))};
f.qA=function(){eZ(this,ZO,oP(ZO,null,(this.g.loadVideoTimeout/1E3).toString()))};function eZ(a,b,c){pZ(a,c);a.Kg();null!=a.o?(pP(oP,a,b,c,void 0),a.start()):(qP(a,b,c),a.stop())}function pZ(a,b){var c=oP(jP,b),c=kX(c,$(a),a.b),d=jU($(a));DO(d,c)}
function cZ(a,b){QY(a.F,qX(b,a.b));var c=b.getSelectedCreative();if(null!=c&&c instanceof RT){qZ(a,c.g);z(kO,function(a){var b=PT(c,a);jS(this.F.b,b);rZ(this,a)},a);var d=iY(a);Zk(d,a.C,"error",a.pA,a);Zk(d,a.C,"mediaLoadTimeout",a.qA,a)}sZ(a,b);fU(b)&&(a.C.C=30)}function qZ(a,b){z(b.Ma(),function(a){var d=b.get(a);z(d,function(b){kS(this.F.b,a,b);rZ(this,a)},this)},a)}function tZ(a){if(sP.g){var b=yU($(a));null!=b&&zO(b)}a.ma("click")}
function sZ(a,b){var c=b;do c.B.forEach(function(a){z(kO,function(b){var c=lS(a.b,b);D(c)||uZ(this,b,c)},this)},a),c=c.b;while(c)}function uZ(a,b,c){z(c,function(a){kS(this.F.b,a.g,a.b)},a);rZ(a,b)}function bZ(a,b){z(kU(b),function(a){qb(this.F.g,a)},a);rZ(a,"impression")}function rZ(a,b){Vb(mO,b)&&Zk(iY(a),a.C,b,a.be,a)}
f.be=function(a){switch(a.type){case "start":this.ma("start");break;case "impression":this.ma("impression");break;case "pause":this.ma("pause");break;case "resume":this.ma("resume");break;case "firstquartile":this.ma("firstquartile");break;case "midpoint":this.ma("midpoint");break;case "thirdquartile":this.ma("thirdquartile");break;case "complete":this.ma("complete");aZ(this);break;case "click":this.A&&this.A.b.g?this.b.kh()?this.resume():this.pause():tZ(this);break;case "engagedview":this.ma("engagedview");
var b=$(this);a=b.T;if(gU(b)&&!sP.b&&!this.k.hj()&&a){var b=this.b.getCurrentTime(),c=this.b.wd(),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));BO(d.toString())}break;case "videoAuthorIconClicked":vZ(this);break;case "videoAuthorClicked":vZ(this);break;case "videoLearnMoreClicked":this.b.pause();tZ(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),ie(b,c),a=b.toString()),null===a||window.open(a,"_blank","width="+(550).toString()+",height="+(500).toString()),a=wZ(this),null!=a&&AO(a,"sharebuttonclicked"));break;case "videoShareShown":a=wZ(this);null!=a&&AO(a,"sharebuttondisplayed");break;case "videoTitleClicked":a=$(this);b=a.M;null!=b&&(a=gQ(b.videoId,null!=vU(a),this.g.baseYouTubeUrl),
null!==a&&(this.b.pause(),zO(a)));break;case "skipshown":this.ma("skippableStateChanged");break;case "skip":nZ(this)}};function wZ(a){var b;b=$(a).getExtension("AdSense");if(!(b=null!=b?new J(b.g):null))t:{a=$(a).getSelectedCreative();if(null!=a&&(a=PT(a,"start"),!D(a))){b=new J(a[0].b);break t}b=null}return b}function nZ(a){Rk(function(){this.ma("skip");aZ(this)},0,a)}f.getSelectedCreative=function(){var a=$(this);return vO(a.j.location)?$(this).getSelectedCreative():null};
f.getMediaUrl=function(){if(null==this.o)return null;var a=$(this);if(!iZ(a))throw oP(dP);a=a.getSelectedCreative().D;return D(a)?null:a[0].g};f.Ow=function(){var a=this.b.wd(),b=this.b.getCurrentTime();if(null!=this.A&&0<=a&&0<=b){if(!this.O){var c=this.b.wd(),d=zU($(this)),c=Math.abs(c-d);2<c&&(c=oP(cP,null,Number(c).toFixed(2)),c=kX(c,$(this),this.b),d=jU($(this)),DO(d,c));this.O=!0}this.A.update(b,a)}};f.ww=function(){var a=this.b.ce();a!=this.L&&(this.L=a,this.ma("volumeChange"),0==a&&this.ma("mute"))};
function oZ(a,b){null!=a.A&&sY(b,function(a){a=new yY(a);CU($(this))==a.videoId&&(xZ(this,a),!x(a.g)&&a.b&&uY(a.g,function(a){a=new wY(a);if(null!=this.A){var b=this.A,c=a.j;b.b.N=!x(c);b.b.T=c;if(null!=b.C){var c="",h=sa("by {$userDisplayName}",{userDisplayName:""+b.b.T});nd(b.C,(new XU(c+h,void 0)).content)}KY(b);b=this.A;c=a.g;b.b.L=!x(c);null!=b.B&&(h=$c("img"),h.setAttribute("src",c),pV(h,"videoAdUiAuthorIconImage"),b.B.appendChild(h),null!=b.o&&pV(b.o,"videoAdUiTitleWithAuthorIcon"));KY(b)}$(this).I=
a;this.ma("youTubeChannelMetadata");a=$(this);b=a.M;if(sP.b&&D(oR(a))&&null!=a.I&&null!=b&&b.b){a=$(this);iY(this).listen(window,"message",this.Lv);var b=$(this),c=b.I.b,h=eU(b),k=this.g.contentId,l=this.g.baseYouTubeUrl,l=new J((null!=l?l:"//www.youtube.com/")+"ad_companion"),p=l.b;p.set("adformat",h);p.set("p",c);p.set("render","video_wall_companion");k&&p.set("content",k);c=new uV("1",new F(300,250),"IFrame",null,l.toString());c.vg(b);c.C=!0;a.o=[new EU(c,[],null)];jY(this,a)}},this))},a)}
f.Lv=function(a){var b=a.b;if("companion-setup-complete"==b.data){a=$(this);var c=encodeURIComponent(ya(yU(a)))+","+encodeURIComponent(wZ(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=yU(a)?210:185}else"pause-video"==b.data&&this.pause()};
function xZ(a,b){if(null!=a.A&&b.b){var c=a.A,d=b.title;c.b.A=!x(d);c.b.title=d;jx.test(ix(c.b.title,void 0));null!=c.o&&nd(c.o,c.b.title);KY(c);c=a.A;if(null!=c.D){var c=c.D,d="",e=sa("Share");nd(c,d+e)}}$(a).M=b;a.ma("youTubeVideoMetadata")}function vZ(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(),zO(b))}};function yZ(a){this.b=a}f=yZ.prototype;f.Nl=function(){return this.b.Nl()};f.Ol=function(){return this.b.Ol()};f.Rf=function(){return this.b.Rf()};f.vj=function(a){return this.b.vj(a)};f.rn=function(){return this.b.rn()};f.hj=function(){return this.b.hj()};f.hide=ca;f.fi=ca;f.ji=ca;function zZ(a,b,c,d,e,g,h){T.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=sP.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;AZ(this)}w(zZ,T);f=zZ.prototype;f.init=function(a,b,c){BZ(this,c);null==this.C&&(this.C=new Wk(this),Zk(this.C,this.N,"adsLoaderSdkAdLoaded",this.kD,this),Zk(this.C,this.N,"adsLoaderSdkAdError",this.jD,this));CZ(this)};
f.start=function(){this.I=!0;DZ(this);0<this.j.length?EZ(this):("always"==sP.j&&null!=this.O&&hR(this.O,eR()),pP(mP,this,NO,void 0,void 0),0==this.D&&this.S("contentResumeRequested"),FZ(this))};f.destroy=function(){null!=this.C&&(this.C.dispose(),this.C=null);this.F.hide();GZ(this);sP.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 BZ(a,b){null!=b&&(a.T=b);null!=a.b&&(a.b.Fj(b),a.b.Dh())}function AZ(a){z(a.B,function(a){a=new J(a.j.adTagUrl);var c=a.b.get("max_ad_duration");n(c)||a.b.get("pmxd")})}
f.kD=function(a){sP.j=this.L;var b=a.o;D(b)||(a=a.k,a.b&&z(b,function(a){a.aa=!1},this),qb(this.j,new TR(b,a.b,a.g)));this.A++;CZ(this)};f.jD=function(a){a=a.j;sP.j=this.L;a.getMessage();pP(mP,this,NO,void 0,void 0);this.A++;CZ(this)};function CZ(a){a.A<a.B.length&&null!=a.B[a.A]&&!(2<=a.j.length-a.k)?HZ(a):a.P||(a.S("adBreakInitialized"),a.P=!0)}function HZ(a){var b=a.B[a.A];sP.j="on_master_ad";TX(a.N,b.j,b)}
function DZ(a){null==a.D||jb(a.j,function(a){return!a.g})||(a.j=hb(a.j,function(a){return!(a.g&&!a.j)}))}
function EZ(a){if(a.k<a.j.length){var b=a.j[a.k];GZ(a);try{var c=b.b,b=null;if(dU(c[0]))b=new ZY(c);else{var d=c[0];if(null!=d&&tU(d,"nonlinear"))b=new mY(c);else throw Error("No valid creative type found.");}b.D=a.O;b.Xc(new yZ(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 Wk(a);var e=a.b;Zk(a.g,e,"adError",a.lv,a);Zk(a.g,e,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),
a.mv,a);a.g.listen(e,["allAdsCompleted"],ca);Zk(a.g,e,"contentPauseRequested",a.jv,a);Zk(a.g,e,"contentResumeRequested",a.kv,a);if(IZ(a.b)){var g;g=a.b.getSelectedCreative().ca;g=0<g?g:15;null!=a.o&&a.o.dispose();a.o=new Pk(1E3*g);bl(a.g,a.o,"tick",a.nv,a)}a.b.init(a.T);null!=a.M&&a.b.setVolume(a.M);if(IZ(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 ZY)a.F.fi(),a.b.start();else throw Error("Unknown ads manager type.");}}catch(k){a.k++,
EZ(a)}a.A<a.B.length&&null!=a.B[a.A]&&HZ(a)}else a.S("contentResumeRequested"),FZ(a)}function GZ(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.nv=function(){GZ(this);FZ(this)};f.lv=function(){this.k++;EZ(this)};f.kv=function(){this.k++;EZ(this)};f.jv=function(){this.U||(this.S("contentPauseRequested"),this.U=!0)};function IZ(a){return null!=a&&a instanceof mY}function FZ(a){a.I=!1;a.S("allAdsCompleted")}
f.mv=function(a){JZ(this,a.type,a.getAd());this.S(a)};function JZ(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;fb(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 KZ(a){S.call(this,a);this.j=null}w(KZ,S);function LZ(a,b,c){T.call(this);this.g=a;this.b=[];this.A=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.C=null!=c&&ia(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.j=null;this.k=!1;MZ(this,b)}w(LZ,T);function NZ(a){this.b=a;this.j=this.g=!1}function OZ(a){null!=a.j&&(a.j.dispose(),a.j=null);a.g.stop();a.k=!1}function PZ(a){if(a.k){var b=lb(a.b,function(a){return-1==a.b},a);null!=b&&QZ(a,!0,b)}}
function MZ(a,b){z(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Hb(this.b,new NZ(a),function(a,b){return Bb(a.b,b.b)})},a)}LZ.prototype.o=function(){if(this.k){var a=this.g.currentTime;if(isNaN(a)||0>a)RZ(this);else{var b=SZ(this,a);this.A?z(b,function(a){QZ(this,!0,a)},this):QZ(this,!0,db(b));QZ(this,!1,TZ(this,a))}}};function SZ(a,b){for(var c=[],d=0;d<a.b.length;d++){var e=a.b[d];-1!=e.b&&e.b<=b&&qb(c,e)}return c}
function TZ(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}LZ.prototype.B=function(){RZ(this)};function RZ(a){a.S(new KZ("contentTrackingError"))}function QZ(a,b,c){if(null!=c){if(!c.g){var d=new KZ("requestAds");d.j=c.b;a.S(d);c.g=!0}b&&!c.j&&(b=new KZ("playAds"),b.j=c.b,a.S(b),c.j=!0)}};function UX(a,b){hY.call(this,[]);this.P=a;this.F=new Ed;this.A=this.b=null;this.U=new tm;this.C=null;this.L=b;this.T=this.O=!1;this.M=null;this.aa=this.da=-1}w(UX,hY);f=UX.prototype;
f.Xc=function(a,b,c){null!=this.A&&(OZ(this.A),this.A.dispose(),this.A=null);UX.G.Xc.call(this,a,b,c);c=this.P.b.Ma();b=new GQ(b);this.A=new LZ(b,c,{prefetch:4});z(c,function(b,c){if(isNaN(b))throw mP(HO,null,"timeOffset",b+"");var g=ia(b)&&!isNaN(b)?this.P.b.get(b,[]):[];if(!D(g)){g=new zZ(g,b,0==b||-1==b?b:c,this.L,a,this.g,this.D);if(Gd(this.F,b))throw mP(SO,null,"Multiple ad breaks cannot share same ad play time.");this.F.set(b,g)}},this);this.M=db(c);jb(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){UX.G.init.call(this,a);null!=this.A&&(UZ(this),this.j=new Wk(this),Zk(this.j,this.A,"requestAds",this,this),Zk(this.j,this.A,"playAds",this,this),Zk(this.j,this.A,"contentTrackingError",this,this),Zk(this.j,this.A,"adBreakReady",this.wv,this),Zk(this.j,this.L,"contentComplete",this.xv,this),this.L.Be=!1,a=this.A,a.k||(null==a.j&&(a.j=new Wk(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=ia(0)&&!isNaN(0)?
this.P.b.get(0,[]):[],D(a)&&this.ma("contentResumeRequested"))};f.Uj=function(){this.ft();this.S(new rY(null))};f.destroy=function(){this.dispose()};f.J=function(){this.L.Be=!0;if(0<this.F.Na()){var a=this.F.Qa();z(a,this.Cm,this);this.F.clear()}UZ(this);VZ(this);null!=this.k&&(this.k.hide(),this.k=null);UX.G.J.call(this)};f.start=function(){UX.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){UX.G.setVolume.call(this,a);null!=this.b&&this.b.setVolume(a)};f.Dh=function(){UX.G.Dh.call(this);var a=Sc(window);this.da=a.width;this.aa=a.height;null!=this.b&&BZ(this.b,this.I)};f.getRemainingTime=function(){return null!=this.b?this.b.getRemainingTime():-1};f.ft=function(){return this.P.b.Ma()};f.getCurrentAd=function(){return null!=this.b?this.b.getCurrentAd():null};f.Bs=function(){};
f.handleEvent=function(a){"contentTrackingError"!=a.type&&(vm(this.U,a),WZ(this))};function UZ(a){null!=a.j&&(a.j.dispose(),a.j=null);a.O=!1;null!=a.A&&OZ(a.A)}
function WZ(a){if(null==a.C){var b=wm(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 Wk(a)),Zk(a.j,c,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),a.S,a),Zk(a.j,c,"allAdsCompleted",a.sr,a),Zk(a.j,c,"contentPauseRequested",a.qr,a),Zk(a.j,c,"contentResumeRequested",a.rr,a),Zk(a.j,c,"adBreakInitialized",a.tr,a),c.init(a.da,a.aa,a.I)):"playAds"==b.type?(null!=a.b&&a.b.I&&a.Cm(a.b),a.b=c,a.b.setVolume(a.volume),
BZ(a.b,a.I),a.b.start()):(a.C=null,WZ(a)):(a.C=null,WZ(a))}}}f.Cm=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.sr,!1,this),this.j.Fa(a,"contentPauseRequested",this.qr,!1,this),this.j.Fa(a,"contentResumeRequested",this.rr,!1,this),this.j.Fa(a,"adBreakInitialized",this.tr,!1,this))};
f.xv=function(){this.O=!0;-1==this.M||XZ(this);PZ(this.A)};f.wv=function(a){a=a.j;-1==a?Rk(function(){XZ(this)},500,this):0==a&&Rk(function(){this.ma("contentResumeRequested")},100,this);this.S(new lO("adBreakReady",null,{dF:a}))};f.sr=function(a){this.Cm(a.target);(0==this.F.Qa().length||this.O)&&XZ(this);this.C=null;WZ(this)};function XZ(a){a.T||(a.T=!0,a.L.Be=!0,a.ma("allAdsCompleted"),-1==a.M&&VZ(a))}function VZ(a){LQ.clear();null!=a.D&&(a=a.D.xi(),null!=a&&a.F(LQ.b))}
f.qr=function(){var a=this.A;a.g.stop();a.k=!1;this.ma("contentPauseRequested")};f.rr=function(){this.ma("contentResumeRequested");if(!this.O){var a=this.A;a.g.start();a.k=!0}this.C=null};f.tr=function(){this.C=null;WZ(this)};f.ma=function(a){var b=null;null!=this.b&&(b=this.b.getCurrentAd());this.S(new lO(a,b))};function YZ(a){hY.call(this,a);this.U=this.T=this.L=!1;this.M=[];this.P=Za();this.A=null;this.b=new PY;this.C=!0;this.O=-1;this.F=1}w(YZ,hY);f=YZ.prototype;
f.init=function(a){YZ.G.init.call(this,a);a=AU($(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.g.contentId&&(a=de(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&&ee(c,"https");a=ie(c,a||"",void 0).toString()}this.fb=I("iframe",{src:yO(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});
iY(this).listen(window,"message",this.yC);iY(this).listen(this.fb,"load",this.wC);iY(this).listen(this.fb,"error",this.xC);this.k.Rf().appendChild(this.fb)};f.Xc=function(a,b,c){YZ.G.Xc.call(this,a,b,c);this.C=$(this).getSelectedCreative()instanceof RT;this.A=a.vj(!1);iY(this).listen(this.A,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.bD)};f.stop=function(){this.k.hide();YZ.G.stop.call(this)};
function ZZ(a,b){QY(a.b,qX(b,a.A));var c=b.getSelectedCreative();null!=c&&(c instanceof RT&&$Z(a,c.g),z(kO,function(a){a=PT(c,a);jS(this.b.b,a)},a),z(kU(b),function(a){qb(this.b.g,a)},a))}function $Z(a,b){z(b.Ma(),function(a){var d=b.get(a);z(d,function(b){kS(this.b.b,a,b)},this)},a)}f.start=function(){YZ.G.start.call(this);ZZ(this,$(this));this.A.Di();this.k.ji();this.fb.style.opacity=1;this.U=!0;this.C&&this.ma("contentPauseRequested");a_(this)};f.pause=function(){b_(this,"pauseAd")};
f.resume=function(){b_(this,"resumeAd")};f.setVolume=function(a){YZ.G.setVolume.call(this,a);b_(this,"setAdVolume",{value:a})};f.J=function(){var a=this.k.Rf();null!=a&&dd(a);this.C&&this.ma("contentResumeRequested");this.ma("allAdsCompleted");this.L=!1;this.M=[];YZ.G.J.call(this)};f.Uj=function(){};
f.wC=function(){var a=this.A.As();D(a)&&(a=this.g.mh);c_(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=lU($(this)),b={desiredBitrate:this.g.Vf,creativeData:a,viewMode:this.I};AU($(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.g.Hn&&(b.creativeData=this.g.Hn);c_(this,"initAd",b);z(this.M,function(a){c_(this,a.type,a.params)},this);this.L=!0;this.M=[]};
function b_(a,b,c){a.L?c_(a,b,c):a.M.push({type:b,params:c})}function c_(a,b,c){null!=a.fb?(null!=c||(c={}),c.session=a.P,c.type=b,a.fb.contentWindow.postMessage(rf(c),"*")):(d_(a,lP,null),a.stop())}
f.yC=function(a){a=a.b;if(a.source==this.fb.contentWindow&&(a=pf(a.data),a.session==this.P&&r(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.k.fi();this.A.Dg(a.src,a.mimetype);this.A.play();break;case "pause":this.A.pause()}break;case "getAdRemainingTime":a=a.remainingTime;this.C||(Sk(this.O),ia(a)&&-1!=a||(a=30),this.O=Rk(this.Jy,1E3*a,this));break;case "AdClickThru":RY(this.b,new S("click"));a.url&&BO(a.url);n(a.Ky)&&!1==a.Ky&&sP.g&&(a=yU($(this)),null!=a&&zO(a));this.ma("click");
break;case "AdError":d_(this,lP,null);this.stop();break;case "AdExpandedChange":this.ma("expandedChanged");break;case "AdImpression":this.ma("impression");break;case "AdLinearChange":a=a.isLinear;!this.C&&a?(this.ma("contentPauseRequested"),Sk(this.O)):!a&&this.C&&(this.ma("contentResumeRequested"),this.C=a,b_(this,"getAdRemainingTime"));this.C=a;break;case "AdLoaded":this.T=!0;a_(this);e_(this,"loaded");break;case "AdPaused":e_(this,"pause");break;case "AdPlaying":e_(this,"resume");break;case "AdRemainingTimeChange":this.C||
b_(this,"getAdRemainingTime");break;case "AdSkipped":e_(this,"skip");break;case "AdStarted":RY(this.b,new S("impression"));RY(this.b,new S("creativeview"));this.ma("start");break;case "AdStopped":RY(this.b,new S("stop"));this.stop();break;case "AdUserAcceptInvitation":this.C?RY(this.b,new S("acceptinvitationlinear")):RY(this.b,new S("acceptinvitation"));break;case "AdUserMinimize":RY(this.b,new S("collapse"));break;case "AdUserClose":e_(this,"userClose");break;case "AdVideoComplete":e_(this,"complete");
break;case "AdVideoFirstQuartile":e_(this,"firstquartile");break;case "AdVideoMidpoint":e_(this,"midpoint");break;case "AdVideoStart":RY(this.b,new S("start"));break;case "AdVideoThirdQuartile":e_(this,"thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.F&&this.ma("volumeChange");0==a&&0!=this.F?(RY(this.b,new S("mute")),this.ma("mute")):0==this.F&&0!=a&&RY(this.b,new S("unmute"));this.F=a;this.A.setVolume(a);break;case "Ping":BO(a.url)}};f.xC=function(a){d_(this,TO,a);this.stop()};
function d_(a,b,c){var d=oP(b,c),d=kX(d,$(a)),e=jU($(a));DO(e,d);qP(a,b,c)}function e_(a,b){RY(a.b,new S(b));a.ma(b)}f.bD=function(a){switch(a.type){case "timeUpdate":a=this.A.wd();var b=this.A.getCurrentTime();c_(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":f_(this,"ended");break;case "mediaLoadTimeout":f_(this,"stalled");break;default:f_(this,a.type)}};function f_(a,b){c_(a,"wrapperCall",{messageType:b})}
function a_(a){a.T&&a.U&&(b_(a,"startAd"),a.C||b_(a,"getAdRemainingTime"))}f.Jy=function(){b_(this,"stopAd")};function g_(){}function WX(a){if(!D(a)){var b=a[0],c=BU(b,["402"])&&sP.b;switch(null!=AU(b)&&c?"vpaid":uU(b)&&tU(b,"nonlinear")?"overlay":tU(b,"linear")?"video":tU(b,"nonlinear")?"overlay":null){case "overlay":return uU(b)?new qY(a):new mY(a);case "video":return new ZY(a);case "vpaid":return new YZ(a)}}return null};function h_(){try{return window.top.location.href}catch(a){return window.location.href}};function i_(a){T.call(this);this.g=a;a=new gR(new RQ);this.b=new PX(new g_,a,LQ);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(i_,T);i_.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);i_.G.J.call(this)};var j_={lJ:0,KE:-1,NH:-2};function k_(a){this.b=a}f=k_.prototype;f.Nl=function(){return null};f.Ol=function(){return this.b.C};f.Rf=function(){return this.b.C};f.vj=function(){var a=this.b.j;return null!=a?a:new hQ};f.fi=function(){var a=this.b;null!=a.b&&a.b.show()};f.ji=function(){};f.rn=function(){return this.b.k};f.hj=function(){return this.b.A};f.hide=function(){};function VX(a,b){S.call(this,"adsManagerLoaded");this.j=a;this.k=b}w(VX,S);function l_(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function m_(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null;c?b.error_code=c:(c=("getMessage"in a&&ja(a.getMessage)?a.getMessage():a.message)||"",50<c.length&&(c=c.substring(0,47)+"..."),b.error_message=c)}}function n_(a,b){if(a){var c=nU(a);if(c){var d=oU(a)||[];b.ad_id=ub(d,c).join(",");if(c=iU(a))d=qU(a)||[],b.ad_sys=ub(d,c).join(",");fU(a)&&(b.skip=1)}}}
function o_(a,b){if(a[b])return l_(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return l_(a[d]);return!1}function p_(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 q_(a,b,c,d){this.k=a;this.o=b;this.b=c;this.A=d}q_.prototype.j="";q_.prototype.g="";function r_(a){s_(a.b,9,t_(a))}function t_(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 u_=!1;function v_(){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 w_(){var a=q("window.google_show_companion_ad");ja(a)?a():u_=!0}function x_(){var a=q("yt.www.watch.ads.setCompanion");a&&a()}function y_(a){var b=q("yt.www.watch.ads.showForcedMpu");b&&b(a)}Vh("showCompanionAdLoaded",function(){u_&&(w_(),u_=!1)});function z_(a,b,c,d){cj.call(this);this.b=a;this.type=b+"_"+c;this.g=d;this.j=null}w(z_,cj);z_.prototype.A=function(){return this.type};z_.prototype.getCurrentAd=function(){return this.g?this.g.getCurrentAd():null};function A_(a,b,c){this.isSkippable=b;this.skip=c;this.skipTime=5;this.videoId=a};function B_(a){this.b=a}function C_(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 D_(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 E_(a,b){this.b=a;this.k=b}E_.prototype.o=null;E_.prototype.g=NaN;function F_(a,b,c){a.b.H("AD_LOGGING_EVENT",b,c)}function G_(a){H_(a);var b=I_(a);if(a.j){var c=J_(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}F_(a,15,b)}function K_(a){H_(a);var b=I_(a);if(isNaN(a.g))H_(a);else{var c=v()-a.g;b.ad_stl=c}F_(a,4,b)}function L_(a){H_(a);var b=I_(a),c=a.b.En();c?b.ad_fmt=c:H_(a);F_(a,5,b)}
function M_(a){var b=I_(a),c=a.b.En();c?b.ad_fmt=c:H_(a);F_(a,14,b)}function I_(a){var b={},c=a.b.j,d=a.b.Qi(),e=a.b.Rq();n_(a.b.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);c&&c.videoId?b.ad_v=c.videoId:e&&(c=Ai(e),b.ad_dom=c,a.k.ka.o&&(b.ad_v_url=e.substr(0,512)));b.at=a.b.A();return b}function H_(a){a.o||(a.o="InstreamAdDisplay ("+a.b.A()+")")};function N_(a,b,c,d,e){z_.call(this,b,a,2,c);this.b.subscribe("onVolumeChange",this.Pp,this);this.b.subscribe("control_toggle_play_pause",this.Qp,this);this.b.subscribe("control_play",this.Sl,this);this.b.subscribe("control_pause",this.Rl,this);this.F=d;this.o=new E_(this,this.b);this.k=new cw(this);this.D=this.B=!1;this.C=0;this.I=e}w(N_,z_);N_.b=2E3;f=N_.prototype;f.Mb=null;f.eg=!1;f.ih=null;f.hh=null;f.jh=null;
f.show=function(){this.o.g=v();var a;if(a=this.F){var b=zi(a),b=b.v||b.video_id;if(!b){var c=Td(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 Rr({video_id:b,dash:"0"}):null}else a=null;this.j=a;var d,e;this.j?(this.j.Md=!0,d={video_id:this.j.videoId},e=new A_(this.j.videoId,this.I,t(this.uw,this)),this.j.subscribe("onStatusFail",this.Fp,this),this.j.subscribe("dataloaded",this.Gp,this),a=this.b.R(),a=new mL(a.j),a.ba=
"adunit",a.zc=!0,a.k=this.type,a=pL(a,this.j),is(this.j,a)):O_(this);this.B||(P_(this.b,-1,d,e),this.rp())};f.uw=function(){this.b.k.j.S("skip")};function Q_(a){a.j&&(a.j.ha("onStatusFail",a.Fp,a),a.j.ha("dataloaded",a.Gp,a))}f.Gp=function(){Q_(this);bs(this.j);var a=new MM(this.b.R());(a=Pr(this.j.I,OM(a,this.j)))?(a=a.b)?(a=new J(yr(a)),a.b.set("autoplay","1"),this.g.setMediaUrl(a.toString()),O_(this)):R_(this,Error("Failed to determine ad media resource.")):R_(this,Error("Failed to determine ad media format."))};
function O_(a){if(mh||2.2<=dq&&3>dq){var b=v()-a.o.g,b=N_.b-b;a.C=L(t(a.er,a),Math.max(0,b));N(At(a.b.b),"ad-interstitial-showing")}else a.er()}
f.er=function(){S_(this);this.Mb=T_(this.b,!0);this.jh=At(this.b.b);if(this.b.ka.L)fd(H("video-ad-status-bar"));else{var a=At(this.b.b);this.ih=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=$c("div");N(b,"ytp-ad-progress");a.appendChild(b);this.hh=b;this.k.listen(this.Mb,"timeupdate",this.Pz)}rg(this.jh,["ad-showing","ad-interrupting"]);this.k.listen(MH(this.b.g),"mouseup",this.Nz);this.k.listen(this.Mb,"waiting",this.rp);this.b.subscribe("onResize",this.vm,this);try{this.k.listen(this.g,
"adError",this.Mz);this.k.listen(this.g,"click",this.Lz);this.k.listen(this.g,"complete",this.Bm);this.k.listen(this.g,"pause",this.Vq);this.k.listen(this.g,"start",this.Wq);this.k.listen(this.g,"skip",this.Oz);this.vm();var c=this.b,d=c.g,e=U_(c);d.X.R().Rb&&(Xf(d.b,e),Mf(d.b,0,0));this.g.start()}catch(g){R_(this,g)}};f.Wq=function(){this.eg=!0;this.B=!1;this.D||(this.D=!0,K_(this.o),V_(this.b,1));Cu(this.b,!0);P_(this.b,1);this.H("adPlay",this)};
f.Vq=function(){this.eg=!1;Cu(this.b,!1);P_(this.b,2)};f.Oz=function(){M_(this.o);this.Bm()};f.Bm=function(){this.B||(L_(this.o),this.eg=!1,this.B=!0,P_(this.b,0),V_(this.b,0),this.H("adEnd",this))};f.Mz=function(a){R_(this,a.j)};function R_(a,b){a.eg=!1;a.B=!0;P_(a.b,0);a.H("adError",b)}f.Fp=function(){Q_(this);R_(this,Error("Request to get video data failed."))};f.Lz=function(){G_(this.o);this.H("select")};f.Nz=function(a){a=new E(Lg(a),Mg(a));this.o.j=a};
f.Pz=function(a){var b=Ov(this.g.getRemainingTime());this.ih.innerHTML=b;b=this.Qi()?this.Mb.getCurrentTime()/this.Qi():0;b=Pv(b);this.hh.style.width=b+"%";this.Mb.ended&&L(t(this.Bm,this,a),50)};f.rp=function(){!this.eg&&this.D||P_(this.b,3)};
f.J=function(){this.b.ha("control_toggle_play_pause",this.Qp,this);this.b.ha("control_play",this.Sl,this);this.b.ha("control_pause",this.Rl,this);this.b.ha("onResize",this.vm,this);this.b.ha("onVolumeChange",this.Pp,this);this.k.removeAll();Q_(this);this.g.destroy();this.Mb&&(KH(this.b.g),this.Mb=null);S_(this);this.ih&&(this.ih.innerHTML="",this.ih=null);this.hh&&(fd(this.hh),this.hh=null);this.jh&&(sg(this.jh,["ad-showing","ad-interrupting"]),this.jh=null);this.B=!0;N_.G.J.call(this)};
function S_(a){a.C&&(M(a.C),a.C=0,O(At(a.b.b),"ad-interstitial-showing"))}f.Qi=function(){return this.Mb?this.Mb.duration||0:null};f.En=function(){return null};f.Rq=function(){return this.Mb&&this.Mb.currentSrc?this.Mb.currentSrc:null};f.Pp=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Jb(a/100,0,1),this.g.setVolume(a))};f.Qp=function(){this.eg?this.Rl():this.Sl()};f.Sl=function(){this.Mb&&(this.g.resume(),this.Wq())};f.Rl=function(){this.Mb&&(this.g.pause(),this.Vq())};f.vm=function(){U_(this.b)};function W_(a,b,c,d){z_.call(this,b,a,2,c);this.b.subscribe("control_toggle_play_pause",this.bp,this);this.b.subscribe("control_play",this.Vk,this);this.b.subscribe("control_pause",this.Uk,this);this.B=new E_(this,this.b);this.k=new cw(this);this.o=X_(b);this.o.subscribe("statechange",this.Rd,this);this.o.subscribe("internalvideodatachange",this.ap,this);this.C=this.D=!1;this.F=d}w(W_,z_);f=W_.prototype;f.un=!1;f.Ig=null;f.Hg=null;f.Jg=null;
f.show=function(){var a=this.b;Y_(a.app,X_(a));this.B.g=v();this.Jg=At(this.b.b);this.o.subscribe("progresssync",this.kp,this);if(this.b.ka.L)fd(H("video-ad-status-bar"));else{a=At(this.b.b);this.Ig=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=$c("div");N(b,"ytp-ad-progress");a.appendChild(b);this.Hg=b}rg(this.Jg,["ad-showing","ad-interrupting"]);this.b.subscribe("onResize",this.dl,this);try{this.k.listen(this.g,"adError",this.Zy),this.k.listen(this.g,"click",this.Yy),this.k.listen(this.g,
"complete",this.Wy),this.k.listen(this.g,"engagedview",this.Xy),this.k.listen(this.g,"pause",this.zq),this.k.listen(this.g,"start",this.Aq),this.k.listen(this.g,"skip",this.$y),this.dl(),this.g.start()}catch(c){Z_(this,c)}};f.ap=function(a,b,c){"newdata"==a&&this.j!=c&&(a={video_id:c.videoId},b=new A_(c.videoId,this.F,t(this.g.skip,this.g)),P_(this.b,-1,a,b));this.j=c};f.Rd=function(a){a=a.state;V(a,128)&&Z_(this,Error(a.b.message||"Video player error."))};
f.Aq=function(){this.un=!0;this.C=!1;this.D||(this.D=!0,K_(this.B),V_(this.b,1));P_(this.b,1);this.H("adPlay",this)};f.zq=function(){this.un=!1;P_(this.b,2)};f.Wy=function(){L_(this.B);$_(this)};function $_(a){var b=new hO;b.j=a.C;b.g=v();a.j&&a.j.Da&&(b.b=a.j.Da);SN(X_(a.b));P_(a.b,0,b);V_(a.b,0);a.H("adEnd",a)}f.Xy=function(){var a=this.B;a.b.H("AD_LOGGING_EVENT",777,I_(a))};f.$y=function(){this.C=!0;M_(this.B);$_(this)};
f.Zy=function(a){var b={};b.error_code=a.j.getErrorCode();var c=this.B;H_(c);var d=I_(c);b&&ra(d,b);d.ad_error=32;F_(c,7,d);Z_(this,a.j)};function Z_(a,b){a.o.wg();P_(a.b,0);a.H("adError",b)}f.Yy=function(){G_(this.B);this.g.pause();this.H("select")};f.kp=function(){var a=this.b.b.Gf();this.b.ka.L||(this.Ig.innerHTML=Ov(a.duration-a.current),a=Pv(a.current/a.duration),this.Hg.style.width=a+"%")};
f.J=function(){this.b.ha("control_toggle_play_pause",this.bp,this);this.b.ha("control_play",this.Vk,this);this.b.ha("control_pause",this.Uk,this);this.b.ha("onResize",this.dl,this);this.k.removeAll();this.o.subscribe("statechange",this.Rd,this);this.o.ha("internalvideodatachange",this.ap,this);this.o.ha("progresssync",this.kp,this);var a=this.b;if(a.j){var b=a.app,a=a.j;a0(b);a!=b.j&&Y_(b,b.j)}this.g.destroy();this.Ig&&(this.Ig.innerHTML="",this.Ig=null);this.Hg&&(fd(this.Hg),this.Hg=null);this.Jg&&
(sg(this.Jg,["ad-showing","ad-interrupting"]),this.Jg=null);this.C=!1;W_.G.J.call(this)};f.Qi=function(){return this.o.Vd()};f.En=function(){return this.j&&this.j.b?this.j.b.mimeType:null};f.Rq=function(){return this.j&&this.j.V?yr(this.j.V.b):null};f.bp=function(){this.un?this.Uk():this.Vk()};f.Vk=function(){this.g.resume();this.Aq()};f.Uk=function(){this.g.pause();this.zq()};f.dl=function(){Xf(JH(this.b.g),U_(this.b))};function b0(a,b){this.g=a;this.b=b}function c0(a,b,c){a.g.H("AD_LOGGING_EVENT",b,c)}function d0(a){var b={};n_(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 e0(a,b,c){z_.call(this,b,a,1,c);this.o=new b0(this,b);this.k=new cw(this)}w(e0,z_);f=e0.prototype;f.Dd=null;f.rm=!1;
f.show=function(){if(!this.rm||!f0(this.b)){var a=At(this.b.b);N(a,"ad-showing");this.Dd=JH(this.b.g);a=this.g.getCurrentAd().getHeight();this.Dd.style.height=Nf(a,!0);N(this.Dd,"ad-overlay");this.k.listen(this.Dd,"mouseup",this.nz);try{this.k.listen(this.g,"userClose",this.oz);this.k.listen(this.g,"click",this.mz);this.k.listen(this.g,"adError",this.lz);g0(this,"normal");this.g.start();var b=this.o;b.o=v();var c=d0(b);c0(b,3,c);this.b.subscribe("onResize",this.sm,this);this.b.subscribe("onStateChange",
this.Bq,this);this.H("adEnd",this)}catch(d){this.H("adError",d)}}};f.J=function(){this.k.removeAll();this.b.ha("onResize",this.sm,this);this.b.ha("onStateChange",this.Bq,this);var a=At(this.b.b);O(a,"ad-showing");this.g&&(this.g.destroy(),this.g=null);this.Dd&&O(this.Dd,"ad-overlay");this.Dd=null;this.rm=!1;e0.G.J.call(this)};f.oz=function(){this.Dd&&this.g&&this.g.getCurrentAd()&&(this.Dd.style.height=Nf(0,!0));this.rm=!0;var a=this.o;a.k=v();var b=d0(a);c0(a,6,b)};
f.mz=function(){this.b.pauseVideo();var a=this.o;a.k=v();var b=d0(a);if(a.j){var c=J_(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}c0(a,100,b)};f.nz=function(a){this.o.j=a.target==a.currentTarget?null:new E(a.pageX,a.pageY)};f.lz=function(a){this.H("adError",a.j)};f.Bq=function(a){V(a.state,16)&&g0(this,"normal")};function g0(a,b){a.B!=b&&(a.B=b)}f.sm=function(){};function h0(a,b,c,d){this.I=a;this.b=b.b;this.B=b;this.M=b.getId();this.Y=c;this.j=d;this.k=new q_(this.b,this.Fe(),c,d);this.o=null;this.F=new Wk(this);this.g=new Wk(this)}w(h0,Kh);h0.b="rm";h0.g=10;h0.A=200;h0.k=200;h0.o=190;h0.j=100;f=h0.prototype;f.Ul=null;f.load=function(){var a;a=this.Y;a=a.ka.o?U_(a):a.app.g.j.qd();var b;this.Y.ka.b?b=!1:(b=0<(this.j&3)?h0.o:h0.k,b=a.width<h0.A||a.height<b);if(b){b=this.k;var c=t_(b);c.ck_wh=a.width+"x"+a.height;i0(b.b,14,c);x_();this.Ge(Error("The player size is too small."))}else j0(this)};
f.xn=function(){var a=new GP;a.baseYouTubeUrl=this.Y.R().qb;a.contentId=mt(this.Y.app).videoId;a.Bk=HH(this.Y.R(),"927622");a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=this.Y.ka.L;a.youTubeAdNamespace=this.Fe();a.showContentThumbnail=this.Y.ka.Eo;a.Hn=this.Y.ka.ck;return a};f.Fe=function(){return this.I};function k0(a){var b=h0.g;a.b=b;a.k.k=b}function l0(a,b){a.Ul=b;a.k.j=b.A()}function m0(a,b){var c=q("yt.www.watch.ads.setAdId");c&&c(b);a.k.g=b}
function n0(a){a=a.b;return 0==a||-1==a?a:1E3*a}
function j0(a){a.o=a.Y.Ek;if(a.o){r_(a.k);var b=new MW;b.adTagUrl=a.hg();var c=a.Y.ka.kf;c&&(b.adsResponse=c);c=U_(a.Y);b.linearAdSlotWidth=c.width;b.linearAdSlotHeight=c.height;b.nonLinearAdSlotWidth=c.width;b.nonLinearAdSlotHeight=h0.j;if(c=uL(a.Y.R()))b.lastActivity=c;a.Y.ka.la&&(b.tagForChildDirectedContent=!0);HH(a.Y.R(),"937420")&&(b.Ui=!0);var c=mt(a.Y.app),d=a.Y;b.Vg={"[CONTENT_V]":c.videoId,"[CPN]":c.Da,"[LACT]":{toString:function(){return null==d||d.ga()?d=null:uL(d.R()).toString()}}};a.o.listen("adsManagerLoaded",
a.yr,!1,a);a.o.listen("adError",a.xr,!1,a);a.Ij(a.o,b)}}f.yr=function(a){if(a.k===this){Dq("aml");try{var b=this.xn(),c=a.j}catch(d){this.fe(d);return}this.g.listen(c,"companionBackfill",t(this.GB,this,c));this.g.listen(c,"loaded",t(this.IB,this,c));this.g.listen(c,"adError",t(this.HB,this,c));this.g.listen(c,"allAdsCompleted",ca);this.g.listen(c,"contentPauseRequested",ca);this.g.listen(c,"contentResumeRequested",ca);a.j.Xc(new k_(this.Y.k),{},b);c=a.j;try{c.init("normal")}catch(e){c.destroy(),this.fe(e)}}};
f.IB=function(a,b){this.g.removeAll();var c=b.getAd(),d=dU(c),e=this.k,g=t_(e);g.ad_man=d?"instream":"overlay";s_(e.b,12,g);e=a.getMediaUrl();switch(d?this.lh(a,c,e):this.Te(a,c)){case 0:o0(this.B,this.Ul,this.b);break;case 1:a.destroy();this.Ge(Error("Unable to create a display state."));break;case 2:c=this.k;i0(c.b,21,t_(c));a.destroy();this.Ge(Error("Fallback to next ad."));break;default:a.destroy()}};f.HB=function(a,b){this.g.removeAll();a.destroy();this.fe(b.j)};
f.xr=function(a){var b=a.j;"adLoadError"==b.j&&a.k===this&&this.fe(b)};f.GB=function(){w_()};f.lh=function(a,b,c){m0(this,nU(b));var d;this.Y.ka.U?d=new W_(this.Fe(),this.Y,a,fU(b)):d=new N_(this.Fe(),this.Y,a,c,fU(b));l0(this,d);return 0};f.Te=function(a,b){m0(this,nU(b));l0(this,new e0(this.Fe(),this.Y,a));return 0};f.fe=function(a){if(a){var b=this.k,c=t_(b);a&&m_(a,c);i0(b.b,32,c);this.Ge(a)}};f.Ge=function(){p0(this.B)};
f.J=function(){this.o&&(this.o.Fa("adsManagerLoaded",this.yr,!1,this),this.o.Fa("adError",this.xr,!1,this));this.F.removeAll();this.g.removeAll();h0.G.J.call(this)};f.Ij=function(a,b){try{b.location=h_(),b.oh=a.g.A,QX(a.b,b,this),Dq("ra")}catch(c){this.fe(c)}};function q0(a,b){this.b=a;this.g=b};function r0(a){z_.call(this,a,2,3,null);this.k=this.o=0}w(r0,z_);r0.prototype.show=function(){var a=q("yt.www.watch.ads.loadAfc");a&&a();this.H("adEnd",this);this.o=Ve(t(this.B,this),1E3)};r0.prototype.J=function(){s0(this);r0.G.J.call(this)};function s0(a){a.o&&(We(a.o),a.k=0)}r0.prototype.B=function(){var a=q("yt.www.watch.ads.isAfcAdVisible");this.k++;var b={};b.at=this.A();10<=this.k||!a?(s0(this),this.H("AD_LOGGING_EVENT",2,b)):a()&&(s0(this),this.H("AD_LOGGING_EVENT",3,b))};function t0(a,b,c){h0.call(this,2,a,b,c);this.A=new q0(this.Y.ka,this.Y.R());v_()}w(t0,h0);t0.prototype.xn=function(){var a=t0.G.xn.call(this);a.$s=0==this.M;a.lD=f0(this.Y)?a.$s:!0;return a};
t0.prototype.hg=function(){var a=this.A,b=this.j,c=n0(this),d={},e;if(a.b.Mp&&(e=4==b&&a.b.Ca?a.b.Ca:a.b.nf)){0==e.lastIndexOf("http:",0)&&(e=e.substr(5));ec(d,zi(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.ya,d.scs=a.b.fk,d.client=a.b.hk,d.description_url=a.b.Ia,d.loeid=a.b.gk,d.cust_gender=a.b.pf,d.host=a.b.host,d.hl=a.g.B,d.max_ad_duration=a.b.of,a.b.za&&(d.adtest="on"),isNaN(a.b.xa)||(d.cust_age=a.b.xa),isNaN(a.b.eb)||(d.hostTierId=
a.b.eb),a.b.dc&&(d.yt_pt=a.b.dc),a.b.od&&(d.video_cpm=a.b.od),a.b.O&&(d.as_dbp=a.b.O),d.ytdevice=a.b.Uc,d.ad_type=p_(b),0<(b&3)?a.b.gb&&(d.channel=a.b.gb.join("+")):b&4&&a.b.xb&&(d.channel=a.b.xb.join("+")),a.b.ub&&(d.lsv=1),a.b.la&&(d.tfcd=1));d.videoad_start_delay=c;d.url="embedded"==a.g.ba&&a.g.g?a.g.g:a.b.Ia;var a=d,b={},h;for(h in a)fa.call(void 0,a[h])&&(b[h]=a[h]);return e+xi(b,"&")};
t0.prototype.Te=function(a,b){if(this.Y.ka.b)return 1;0==this.b&&(k0(this),s_(this.Y,1));return t0.G.Te.call(this,a,b)};t0.prototype.Ge=function(a){var b=this.Y.ka;b.b?t0.G.Ge.call(this,a):b.hb||this.j&4?(l0(this,new r0(this.Y)),o0(this.B,this.Ul,this.b)):t0.G.Ge.call(this,a)};function u0(a,b){if(a){this.vt=a;this.lt=b;var c,d=this.vt,e=d.indexOf(";sz=");c=wi(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{UD:d[0],VD:d[1],WD:c})this.kt=c.UD,this.nt=c.VD,this.qt=c.WD}}f=u0.prototype;f.vt="";f.kt="";f.lt=!1;f.Xn="";f.nt="";f.qt=null;
f.Bj=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=cc(this.qt);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.lt&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.Xn||(this.Xn=Math.floor(999999999*Math.random()).toString());
k.ord=this.Xn;d&&d.length&&"sz"in k&&delete k.sz;e=xi(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.kt,"pfadx",this.nt,";",e,"?"].join("")};function v0(a){this.b=a?a:""}v0.prototype.Bj=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 w0(a,b){e0.call(this,1,a,b)}w(w0,e0);w0.prototype.sm=function(){};w0.prototype.A=function(){return"1_3"};function x0(a,b,c){h0.call(this,1,a,b,c);a=this.Y.ka;this.L=a.hi?new v0(a.V):new u0(a.V,a.Wa)}w(x0,h0);x0.prototype.hg=function(){return this.L.Bj(this.b,this.j)};
x0.prototype.Te=function(a,b){m0(this,nU(b));var c=null!=b.g?b.g.L:{};if(o_(c,h0.b))return 1==this.j||f0(this.Y)||x_(),a.sendImpressionUrls(),this.Y.ka.zk?(l0(this,new r0(this.Y)),0):2;if(o_(c,"blockAllAds"))return a.sendImpressionUrls(),l0(this,new w0(this.Y,a)),0;if(o_(c,"hideMaster"))return l0(this,new w0(this.Y,a)),0;if(this.Y.ka.b)return 1;l0(this,new e0(this.Fe(),this.Y,a));return 0};function y0(a,b,c,d){x0.call(this,a,b,c|d);this.D=c;this.C=d;this.A=null;v_()}w(y0,x0);var z0={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=y0.prototype;f.hg=function(){if(this.Y.ka.hi){var a=new v0(this.Y.ka.P);return a.Bj(this.b,this.D)}a=new u0(this.Y.ka.P,this.Y.ka.Wa);return a.Bj(this.b,this.D)};f.Ij=function(a,b){if(this.C){b.youTubeAdType=p_(this.C);var c=this.Y.ka.ya;c&&(b.youTubeExperimentIds=c);b.youTubeVideoAdStartDelay=n0(this)}y0.G.Ij.call(this,a,b)};
f.lh=function(a,b,c){A0(this,a);return 1!=this.A&&2!=this.A?1:y0.G.lh.call(this,a,b,c)};f.Te=function(a,b){A0(this,a);switch(this.A){case 1:return y0.G.Te.call(this,a,b);case 2:var c;this.Y.ka.b?c=1:(0==this.b&&(k0(this),s_(this.Y,1)),m0(this,nU(b)),l0(this,new e0(2,this.Y,a)),c=0);return c;default:return 1}};f.Fe=function(){return this.A||0};function A0(a,b){var c=qU(b.getCurrentAd()),c=D(c)?iU(b.getCurrentAd()):c[0],c=z0[c.toUpperCase()];a.A=c?c:0};function B0(a,b){var c=b.ka;this.A=c.mf;var d=0,c=c.Ha.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);h0.call(this,2,a,b,d)}w(B0,h0);B0.g="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";B0.j="43";
B0.b=function(a){var b=new hv;Ji(a,{format:"RAW",method:"GET",timeout:5E3,bh:function(){b.eh(Error(a+" timed out"))},onError:function(c){b.eh(Error("Problem loading "+a+" with status code "+c.status))},onSuccess:function(a){b.ht(a)}});return b};B0.prototype.hg=function(){return""};
B0.prototype.Ij=function(a,b){var c=this.j;c&1||c&4||c&8?this.A?c&8?y_(this.A):("goo.gl"==Ai(this.A)?(c=B0.b(B0.g+this.A),nv(c,function(a){a=pf(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",B0.j);return B0.b(a.toString())},this)):c=B0.b(this.A),nv(c,function(c){b.adsResponse=c.responseText;b.location=h_();b.oh=a.g.A;QX(a.b,b,this)},this),ov(c,null,this.fe,this)):this.fe(Error("Invalid empty URL")):
this.fe(Error("Invalid request type: "+c))};function C0(a,b,c,d){this.b=a;this.g=d;this.k=b;this.j=mh||nh?"html5_ios":oh?"html5_android":mr()?"html5_ps3":"leanback"==c?"html5_tv_leanback":"html5_desktop"};function D0(a,b,c){h0.call(this,4,a,b,c);this.A=new C0(this.Y.ka,mt(this.Y.app).Oa,this.Y.R().ba,c)}w(D0,h0);
D0.prototype.hg=function(){var a;var b=this.A;if(b.b.oa&&b.b.pd){var c="youtube_watch_"+b.j;a={nw:"10613"};a.asnw=b.b.oa;a.ssnw=b.b.oa;a.caid=b.b.pd;a.prof="10613:10613_youtube_html5_2014";a.vdur=b.k;a.csid=c;a.resp="vast2";a.crtp="youtube";a.flag="+slcb+qtcb+amcb+exvt";c={};isNaN(b.b.Nd)||(c._fw_d_001=b.b.Nd);b.b.Ra&&(c._fw_d_002=b.b.Ra);b.b.mb&&(c["_fwu:10613:lang"]=b.b.mb);b.b.O&&(c._fw_dbp=b.b.O);c._fw_yt_type=b.b.C?"short":"long";var d="";b.g&1?(b={ptgt:"a",slid:"preroll",slau:"yt_html5_pre",
tpos:"0"},d=xi(b,"&"),b={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"yt_html5_dis1",flag:"+cmpn"},d=d+";"+xi(b,"&")):b.g&4?(b={ptgt:"a",slid:"overlay",slau:"yt_html5_overlay",tpos:"10"},d=xi(b,"&"),b={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"yt_html5_dis2",flag:"+cmpn"},d=d+";"+xi(b,"&")):b.g&8&&(b={ptgt:"s",slid:"dis",slau:"yt_html5_dis_standalone",w:"300",h:"250"},d=xi(b,"&"));b=d;a="//2975c.v.fwmrm.net/ad/g/1?"+xi(a,"&")+";"+xi(c,"&")+";"+b}else a="";return a};
D0.prototype.lh=function(a,b){return 0!=this.b?1:D0.G.lh.call(this,a,b,null)};D0.prototype.Te=function(a,b){return o_(null!=b.g?b.g.L:{},h0.b)?(this.B.k=a,2):1};function E0(a,b,c){h0.call(this,13,a,b,c)}w(E0,h0);var F0=[{tn:4,size:"480x70",Zr:"300x250"},{tn:1,size:"480x360",Zr:"300x60"}];
E0.prototype.hg=function(){var a=new J(this.Y.ka.lf,!0),b=this.j,c=F0.filter(function(a){return(b&a.tn)==a.tn}),d=c.map(function(a){return a.size}).join("|");K(a,"sz",d);c=c.map(function(a){return a.Zr}).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 G0(a,b,c){this.j=a;this.b=b;this.g=c||0}G0.prototype.create=function(a,b){switch(this.j){case 1:return new t0(a,b,this.b);case 2:return new x0(a,b,this.b);case 3:return new y0(a,b,this.b,this.g);case 5:return new D0(a,b,this.b);case 4:return new B0(a,b);case 6:return new E0(a,b,this.b);default:return null}};function H0(a){return 0<((a.b|a.g)&3)};function I0(a,b,c,d,e){cj.call(this);this.qa=b;this.j=a;this.b=c;this.o=d;this.k=this.g=null;this.A=!!e}w(I0,cj);f=I0.prototype;f.gm=!0;f.kc=!1;f.isVisible=!0;f.cd="unloaded";f.Gm=!1;function J0(a){return 0==a.b?K0(a)&&L0(a)?-2147483648:0:-1==a.b||-2==a.b?2147483647:1E3*a.b}function M0(a){return 0==a.b||-2==a.b?!1:kb(a.o,function(a){switch(a.j){case 1:case 2:case 3:case 6:return!0;default:return!1}})}function K0(a){return"loaded"==a.cd||"error"==a.cd}
function L0(a){if(!K0(a))throw Error("Preroll status is undefined before ad load.");return 0==a.b&&a.kc}function p0(a){a.cd="loading";0==a.b&&!jb(a.o,H0)&&ru(a.j);if(a.A)a.cd="loaded",a.kc=!0,N0(a);else{var b=a.o.shift();b?(0==a.b&&O0(a.j,"nl"),b=b.create(a,a.j),R(a,b),b.load()):(s_(a.j,2,P0(a,{})),Q0(a,!1),a.cd="error",N0(a))}}f.getId=function(){return this.qa};function R0(a){a.g&&(a.g.ha("adEnd",a.ws,a),a.g.ha("adError",a.xs,a),a.g.ha("AD_LOGGING_EVENT",a.ys,a),a.g.ha("select",a.vs,a))}
function o0(a,b,c){a.g=b;a.b=c;R(a,a.g);0==a.qa&&(a.j.A.at=a.g.A());a.g instanceof N_||a.g instanceof W_?a.kc=!0:a.g instanceof r0?a.isVisible=!1:a.g instanceof w0&&(a.isVisible=!1);a.cd="loaded";N0(a)}function N0(a){a.H("adBreakComplete",a)}
f.show=function(){this.Gm?this.g instanceof e0&&g0(this.g,"normal"):(this.Gm=!0,(this.g instanceof N_||this.g instanceof W_)&&O0(this.j,"bs"),this.g.subscribe("adEnd",this.ws,this),this.g.subscribe("adError",this.xs,this),this.g.subscribe("AD_LOGGING_EVENT",this.ys,this),this.g.subscribe("select",this.vs,this),this.g.show(),Q0(this,!0))};function Q0(a,b){a.k&&(a.k.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.k=null)}
f.ws=function(){if(this.kc){R0(this);var a=this.j;if(a.ka.dk&&!a.Hk){var b=a.R().qb;nf(b+"mac_204?action_fcts=1");ij("CLAD","tlip="+v());a.Hk=!0}}N0(this)};f.xs=function(a){if(a){var b={};m_(a,b);P0(this,b);i0(this.j,32,b)}R0(this);N0(this)};f.ys=function(a,b){P0(this,b);s_(this.j,a,b)};f.vs=function(){this.gm=!1};function P0(a,b){b.sst=a.b;b.sidx=0}f.J=function(){R0(this);this.k=this.g=null;I0.G.J.call(this)};function S0(a){this.Vu=a}function T0(a){try{var b=gD(a).getElementsByTagName("AdBreak"),c=B(b,function(a){a=a.getAttribute("time");return $a(a)});return new S0(c)}catch(d){return new S0([0])}};function U0(a){this.b=a};function V0(a,b){this.N=a;this.aa=this.N.ac;this.o="leanback"==this.N.ba;this.b=this.aa||this.o;var c=HH(a,"927619"),c=this.o&&c,d=this.aa&&HH(this.N,"947202");this.L=!this.b||d;this.U=a.Rb&&(!this.b||c)||d;this.Mp=HH(a,"906369");this.apply(b)}var W0={IE:"m",DE:"f"};f=V0.prototype;
f.apply=function(a){var b=l_(a.instream),c=l_(a.trueview),d=l_(a.aftv);this.ra=a.ad_slots;this.wa=a.ad_breaks;this.gf=a.ad_flags||0;this.xa=parseInt(a.cust_age,10);this.ya=a.cafe_experiment_id;var e=parseInt(a.cust_gender,10);isNaN(e)||(this.pf=e);this.V=a.ad_tag;this.za=!!a.adtest;this.nf=a.afv_ad_tag;this.Ca=a.afv_invideo_ad_tag;this.Nd=parseInt(a.ad_age,10);this.jf=a.cid;this.Ia=a.ad_eurl;this.P=a.dynamic_allocation_ad_tag;this.T=a.excluded_ads;this.Ha=a.force_ad_type;this.mf=a.force_ad_url;this.Ra=
Wb(W0,function(b){return b==a.ad_gender});this.O=a.dbp;this.zk=l_(a.afc_rm_fallback);this.Wa=!!a.mpu;this.host=a.ad_host;this.eb=parseInt(a.ad_host_tier,10);this.D=l_(a.afv)&&!this.b;this.j=d&&c;this.k=d&&b&&!l_(a.no_afv_instream);this.B=l_(a.dclk);this.hi=l_(a.gpt_migration);this.ub=1==a.livestream;this.da=l_(a.forced_ad)&&!this.b;this.F=1==parseInt(a.tpas_ad_type_id,10);this.$j=!!a.fqsf;this.g=b;this.I=l_(a.invideo)&&!this.b;this.ca=l_(a.mpu)&&!this.b;this.dk=l_(a.shortform);this.C=l_(a.sffb);this.Sh=
l_(a.xfp);this.lf=a.xfp_tag;this.fk="1"==a.as_launched_in_country;this.co=!this.b&&!this.F;this.M=c;b=a.ad_channel_code_instream;this.gb=r(b)?b.split(","):[];this.mb=a.ad_language_iso639_2;this.gk=a.loeid;b=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(b)&&(b=2E3);this.ik=b;b=parseInt(a.afv_instream_max,10);isNaN(b)&&(b=15E3);this.of=b;this.A=parseInt(a.midroll_freqcap,10);isNaN(this.A)&&(this.A=-1);this.hf=parseInt(a.midroll_prefetch_size_html5,10)||0;b=a.ad_channel_code_overlay;this.xb=
r(b)?b.split(","):[];this.dc=a.yt_pt;this.hk=a.ad_video_pub_id;"boolean"==typeof a.show_content_thumbnail&&(this.Eo=a.show_content_thumbnail);this.la=l_(a.tag_for_child_directed);this.kf=a.server_prefetched_vast;this.ck=a.surveyCreativeData;this.od=parseInt(a.afv_video_min_cpm,10);this.hb=d&&this.C&&!this.D;this.Ph=this.D||this.hb;this.Uc=parseInt(a.ad_device,10);this.pd=a.tpas_video_id;this.oa=a.tpas_partner_id;this.jb=X0(this)};
function X0(a){if(x(a.P)||!a.U)return!1;var b=(a.g||a.M)&&a.B;a.C&&a.B&&(b=b||a.I||a.ca);if(!b)return!1;b=a.j||a.k;if(!(b||a.C&&a.D))return!1;var c=a.P.length+330+(a.hi?25:102);window.document.referrer&&(c+=Aa("ref="+window.document.referrer).length);b||(c+=41);return c<=a.ik}f.co=!0;f.zk=!1;f.hi=!1;f.Sh=!1;f.Eo=!0;f.Mp=!1;function Y0(a,b,c){this.b=a;this.A=b;this.j=c;this.o=this.g=-1;this.j&&0<this.b.ka.A&&this.b.subscribe("endseeking",this.k,this)}w(Y0,Kh);function Z0(a,b){$0(a);0<b&&(a.o=L(t(a.k,a),1E3*b))}function $0(a){-1!=a.o&&(M(a.o),a.o=-1)}
Y0.prototype.k=function(){var a=this.b.ka.A;if(this.j&&!(0>=a)){var b=this.b.b.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Ob(this.A.g,function(a){if(a.isVisible&&!(0>=a1(this,a))){var g;g=a.getId();g=this.A.k[g];if(a1(this,a)>b){var l=!b1(this,a);l!=g.$d&&(g.$d=l,c.push(g));l||(g=a1(this,a)-b,g<e&&(e=g,d=a))}else g.$d||(g.$d=!0,c.push(g))}},this);0<c.length&&c1(this.b,c);if(d){var g=0;0<this.g&&(g=v()/1E3-this.g);Z0(this,a-g-e+2)}else $0(this)}};
function b1(a,b){if(!a.j||!(0<b.b)&&-1!=b.b)return!1;var c=a.b.ka.A;if(0>=c||0>=a.g)return!1;var d=v()/1E3,e=a1(a,b)-a.b.b.getCurrentTime();0<e&&(d+=e);return d-a.g<=c}function a1(a,b){return-1==b.b?a.b.b.getVideoData().Oa:b.b}Y0.prototype.J=function(){$0(this)};function d1(a,b){this.b=b;this.A=[];this.g={};this.k={};this.Y=a;var c=!a.ka.ub&&jb(this.b,function(a){return 0<a.b||-1==a.b});this.D=new Y0(this.Y,this,c);this.F=jb(this.b,function(a){return 0==a.b})}w(d1,Kh);f=d1.prototype;f.Ed=null;function e1(a){a.A.length||(a.A=hb(a.b,function(a){return"unloaded"==a.cd}),0==a.A.length?ru(a.Y):(a.F||ru(a.Y),f1(a)))}function f1(a){if(a.A.length){var b=a.A.shift();b.subscribe("adBreakComplete",a.Wf,a);p0(b)}}
f.Wf=function(a){a.ha("adBreakComplete",this.Wf,this);L(t(this.DD,this,a),0)};
f.DD=function(a){var b=fb(this.b,a),c=this.b[b+1],b=this.b[b-1],d=2147483646;-2==a.b||-1==a.b?d=2147483647:c&&2147483647!=c.b&&(d=J0(c)-1);0==a.qa&&(O0(this.Y,"bl"),L0(a)||O0(this.Y,"fb"));if(c="loaded"!=a.cd||0==a.qa&&L0(a)&&c&&1E3*this.Y.b.getCurrentTime()>J0(c)){if(b&&K0(b)){var e=J0(b);e>d&&(d=e);g1(this,b);h1(this,b,d)}}else this.g[a.getId()]=a,h1(this,a,d);ru(this.Y);c&&this.Ef(a);Rb(this.g)==this.b.length&&this.D.k();f1(this)};
function h1(a,b,c){var d=J0(b);if(!isNaN(d)){var e={};e.priority=-2!=b.b?2:3;e.id=String(b.getId());e.visible=b.isVisible;c=new fu(d,c,e);a.k[b.getId()]=c;a.Y.Kf(c)}}function g1(a,b){a.k[b.getId()]&&(a.Y.hD(a.k[b.getId()]),delete a.k[b.getId()])}f.Ef=function(a){a.ha("adBreakComplete",this.Wf,this);this.Ed&&a==this.Ed&&(this.Ed=null);g1(this,a);rb(this.b,a);delete this.g[a.getId()];Mh(a)};f.fm=function(a){return this.g[a]};
f.Gn=function(a){if(a.kc){if(-1!=a.b&&a.gm){var b=this.Y;i1(b);Bu(b)}else L0(a)&&!a.gm?(b=this.Y,i1(b),Bu(b)):(i1(this.Y),Cu(this.Y,!1));this.Ef(a)}else a.isVisible||this.Ef(a);a=this.D;a.j&&0<a.b.ka.A&&(a.g=v()/1E3,a.k())};f.J=function(){Mh(this.D);z(this.b,this.Ef,this);d1.G.J.call(this)};function j1(a,b,c){d1.call(this,a,b);this.B=[];this.C=[];this.o=[];this.M=c;this.j=null;this.I=a.ka.A;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],M0(c)){var d=new I0(c.j,c.qa,c.b,c.o,!0);b[a]=d;this.B.push(c)}this.F||this.Hf()}w(j1,d1);f=j1.prototype;
f.fm=function(a){a=j1.G.fm.call(this,a);if(!a)return null;if(!a.A)return a;var b;b=null;if(this.o.length){var c=b=this.o.shift();c.b=a.b;c.qa=a.getId()}b&&"loaded"==b.cd?(a.ha("adBreakComplete",this.Wf,this),this.g[a.getId()]=b,this.b[this.b.indexOf(a)]=b,Mh(a)):(this.Hf(),b&&(Mh(b),b=null),this.Ef(a));b&&!b.kc&&this.Hf();return b};f.Wf=function(a){0!=a.b||"loaded"==a.cd&&a.kc||this.Hf();j1.G.Wf.call(this,a)};
f.Gn=function(a){a.kc&&10<this.I?(ia(this.j)&&M(this.j),this.j=L(t(this.Hf,this),1E3*(this.I-10))):this.Hf();j1.G.Gn.call(this,a)};f.Hf=function(){for(this.j=null;this.B.length&&this.C.length+this.o.length<this.M;){var a=this.B.shift();a.subscribe("adBreakComplete",this.Cs,this);this.C.push(a);p0(a)}};f.Cs=function(a){a.ha("adBreakComplete",this.Cs,this);rb(this.C,a);this.o.push(a)};f.J=function(){ia(this.j)&&(M(this.j),this.j=null);z(this.C,Mh);z(this.o,Mh);z(this.B,Mh);j1.G.J.call(this)};function k1(a,b){this.B=a;this.X=b;this.C=v();this.b=a.ka;this.k={};this.A=new B_(a);var c=[];this.b.F&&this.b.g&&c.push("4_2");this.b.Sh&&(this.b.g&&c.push("13_2"),this.b.I&&c.push("13_1"));this.b.B&&(this.b.g&&c.push("1_2"),this.b.M&&c.push("1_2_1"),this.b.I&&c.push("1_1"),this.b.ca&&c.push("1_3"));this.b.j&&c.push("2_2_1");this.b.k&&c.push("2_2");this.b.D&&c.push("2_1");(this.b.Ph||this.b.zk)&&c.push("2_3");this.j=c.join(",");this.g="";this.k.allowed=this.j;(c=this.b.T)&&(this.k.ex_ads=c)}
k1.prototype.o=0;function l1(a){eL.call(this,a);sP.g=!0;sP.b=!0;sP.o="osd-id";sP.k=!0;this.k=null;this.B={};this.A={at:"0"};this.g=new IH(0,this.b);zt(this.b,this.g.K());this.j=null;this.o=-1}w(l1,eL);f=l1.prototype;f.va="ad";f.ic="ad";f.ye=null;f.Eb=null;f.ka=null;f.Hk=!1;f.ln=!1;f.Ek=null;l1.Ja=function(a){return!!a.zb.getVideoData().Y};f=l1.prototype;f.Ja=function(){return l1.Ja(this.app)};
f.create=function(){l1.G.create.call(this);O0(this,"i");this.ka=new V0(this.R(),this.b.getVideoData().k||{});this.ye=new k1(this,this.b);this.Hk=!1;t:if(!this.Ek){var a=this.ka.L?void 0:MH(this.g);if(this.ka.U){var b=new dL(this.app,2),c=JH(this.g);b.j||(b.j=bc(b.k),b.j.addEventListener=t(b.Tu,b),b.j.removeEventListener=t(b.Uu,b));this.k=new EQ(c,void 0,a,b.j)}else{b=T_(this,!1);if(!b)break t;this.k=new EQ(JH(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.fb.width="100%",a.fb.height="100%");this.Ek=new i_(this.k)}a=new U0(this);t:{b=[];try{var d=a.b.ka,e;if(d.co){var g;if(d.wa)g=T0(d.wa);else{var h;if(d.ra){var k=B(d.ra.split(","),$a);h=new S0(k)}else h=new S0([0]);g=h}e=g}else e=new S0([0]);for(var l=e.Vu,d=0;d<l.length;d++){var p=a.b;e=d;var s=l[d],u=a.b,y;if(u.ka.C){g=[];var G=u.ka;if(G.da)g.push(new G0(4,0));else{G.F&&(G.g||G.M)&&g.push(new G0(5,1));G.Sh&&(h=0,G.g&&(h|=1),G.I&&(h|=4),g.push(new G0(6,h)));h=
0;G.B&&(G.g&&(h|=1),G.M&&(h|=2),G.I&&(h|=4),G.ca&&(h|=8));k=0;if(G.k||G.j)G.k&&(k|=1),G.j&&(k|=2);c=0;G.D&&(c=4);k||(k=c,c=0);G.jb&&h&&(k||c)?g.push(new G0(3,h,k)):(h&&g.push(new G0(2,h)),k&&g.push(new G0(1,k)));c&&g.push(new G0(1,c))}}else{g=[];var A=u.ka;if(A.da)g.push(new G0(4,0));else{A.F&&A.g&&g.push(new G0(5,1));A.Sh&&A.g&&g.push(new G0(6,1));h=0;A.B&&(A.g&&(h|=1),A.M&&(h|=2));k=0;if(A.k||A.j)A.k&&(k|=1),A.j&&(k|=2);A.jb&&h&&k?g.push(new G0(3,h,k)):(h&&g.push(new G0(2,h)),k&&g.push(new G0(1,
k)))}}y=g;var X=new I0(p,e,s,y);b.push(X)}}catch(Ha){}finally{break t}}l=b;O0(this,"bd");p=this.ka;s=p.hf;this.Eb=!p.ub&&0<s?new j1(this,l,s):new d1(this,l);e1(this.Eb);l={};l.allowed=this.ye.j;vu(this,{},l)};f.destroy=function(){this.ln&&i1(this);if(this.j){var a=this.app,b=this.j;a0(a);b!=a.j&&Y_(a,a.j)}Oh(this.Eb,this.j);this.ye=this.j=this.Eb=null;KH(this.g);u_=!1;this.jc&&l1.G.destroy.call(this)};f.R=function(){return this.app.R()};f.isFullscreen=function(){return this.b.isFullscreen()||this.ka.o};
function s_(a,b,c){a=a.ye;c=c||{};var d=(v()-a.C)/1E3;c.art=d;d=a.B.R();d.C&&(c.feature=d.aa);c.ad_flags=a.b.gf;var e=a.b.jf;e&&(c.cid=e);c.mt=a.X.getCurrentTime();(d=uL(d))&&(c.lact=d);(d=a.X.zg())&&(c.len=d);a.b.$j&&(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?D_(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.ka.Uc;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==j_?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=C_(d);break;case "error_code":h.ima_error=d;case "error_message":h.error_msg=d;break;
case "ad_event":h.event=D_(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(h.i_x=a[0],h.i_y=a[1])}k=X_(b.b);c=mt(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=uL(b.b.R());k=J_(b.b);g.p_w=k.width;g.p_h=k.height;g.rt=(new Date).getTime();c=Ld(g);if("undefined"==typeof c)throw Error("Keys are undefined");k=new ke(null,0,void 0);g=Kd(g);for(h=0;h<c.length;h++)a=c[h],d=g[h],ga(d)?xe(k,a,d):k.add(a,d);b=b.b.R().qb+"api/stats/ads";b=new J(b);ie(b,k);
nf(b.toString())}}function i0(a,b,c){c=c||{};c.ad_error=b;s_(a,7,c)}f.$g=function(){var a;if(this.ye){a=this.ye;var b={allowed:a.j};a.b.T&&(b.ex_ad=a.b.T);a.g&&(b.at=a.g);a=b}else a=l1.G.$g.call(this);return a};function T_(a,b){var c;if(b){c=a.g;var d=NH(c);c.X.R().Rb||kd(d)||JH(c).appendChild(d);c=d}else c=a.g,c=c.X.R().Rb?c.X.app.g.b:NH(c);return c}function X_(a){if(!a.j){var b=new mL(a.R().j);b.ba="adunit";b.zc=!0;b.li=a.app.g.element;var c=T_(a,!1);b.Pa=c;a.j=new CN(b,2)}return a.j}
function J_(a){return a.ka.o?(a=U_(a),new zf(0,0,a.width,a.height)):dg(At(a.b))}function U_(a){return a.app.g.Qs()}function i1(a){KH(a.g);a.ln=!1;Au(a);zu(a,["seek"]);a.R().Xd&&zu(a,["audio"])}f.getAdState=function(){return this.o};function V_(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 P_(a,b,c,d){d&&a.H("publish_external_event","onAdInfoChange",d);a.H("publish_external_event","onAdStateChange",b,T_(a,!1),c)}
f.Dc=function(a){l1.G.Dc.call(this,a);var b=parseInt(a.getId(),10);this.Eb&&!isNaN(b)&&(a=this.Eb,n(b)&&(b=a.fm(b)))&&(a.Ed==b&&!b.kc&&b.isVisible?b.show():(a.Ed&&a.Ef(a.Ed),b1(a.D,b)?(a.Ed=null,b=a.k[b.getId()],b.$d||(b.$d=!0,c1(a.Y,[b]))):(a.Ed=b,b.subscribe("adBreakComplete",a.Gn,a),b.kc&&(a=a.Y,a.ln=!0,a.H("command_redirect_controls",a,["play_pause"],void 0),yu(a,["seek"]),a.R().Xd&&yu(a,["audio"]),a.pauseVideo()),b.show())))};
f.jd=function(a){l1.G.jd.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.b.getCurrentTime();this.Eb&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(a=this.Eb,(b=a.g[b])&&a.Ed==b&&!b.kc&&b.isVisible&&b.Gm&&b.g instanceof e0&&g0(b.g,"fullscreen"))};function O0(a,b){var c=b;"nl"==b&&(c=a.ye,c.o++,c=c.o.toString());a.B[c]=v();"bs"!=c&&"fb"!=c||vu(a,a.B,a.A)}function c1(a,b){a.H("command_update_cuerange_markers",b,a.b.getPlayerType())}
function f0(a){return Boolean(a.ka.C&&a.Eb&&1<a.Eb.b.length)}f.le=function(a){this.H(a)};
f.Nj=function(a){switch(a){case "addata":return a=this.ka,{adTag:a.V,adTest:a.za,forceAdType:a.Ha,isAfvSkippableInstreamEnabled:a.j,isAfvStandardInstreamEnabled:a.k,isBlazer:a.aa,isDoubleClickEnabled:a.B,isForcedAd:a.da,isFreeWheelEnabled:a.F,isHouseBrandPlayer:a.N.bc,isLeanback:a.o,tagForChildDirected:a.la};case "adstate":return this.getAdState();case "breaks":return this.Eb?this.Eb.b.length:0;case "loadedadbreaks":if(this.Eb){a=this.Eb.g;for(var b=[],c=0;c<a.length;c++)b[c]={isInterruptive:a[c].kc};
return b}return 0}};f.Hj=function(){var a=[];this.R().Ab()&&(a.push("addata"),a.push("adstate"),a.push("breaks"),a.push("loadedadbreaks"));return a};function m1(a,b,c){var d=["html5-center-transform","html5-center-overlay"];JE.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;n1(this,a,b)}w(m1,JE);function o1(a){p1(a,Y(0,"YTP_MDX_STATUS_CONNECTING"));q1(a,2)}function r1(a,b){p1(a,Y(0,"YTP_MDX_STATUS_ERROR"));Mv(a.template,"error",b);q1(a,0)}function q1(a,b){var c=a.template.b["ytp-remote-display-error"];Ox(c);a.g.hide();a.b.hide();switch(b){case 0:Nx(c);break;case 2:a.g.show()}}
function n1(a,b,c){var d=new dF(b.b.R().ac);d.show(b.b.getVideoData());R(a,d);a.g=new cF;N(a.g.element,"html5-center-overlay");N(a.g.element,"html5-center-transform");R(a,a.g);a.b=new WA(a.j,"ytp-button-remote-reconnect");a.b.na(Y(0,"YTP_MDX_PLAYER_RECONNECT_BUTTON"));R(a,a.b);b=new WA(a.j,"ytp-button-remote-maximize");b.na(["div",["html5-center-transform","html5-center-overlay","ytp-button-remote-maximize-icon"]]);R(a,b);Mv(a.template,"reconnectbutton",a.b);Mv(a.template,"thumbnail",d);Mv(a.template,
"loadingicon",a.g);Mv(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);o1(a);Mv(a.template,"receiver",c)}function p1(a,b){Mv(a.template,"statustext",b)};function s1(a,b,c,d){this.g=a;a.subscribe("onVolumeChange",this.Lo,this);d||a.subscribe("onPlaylistUpdate",this.Ko,this);this.j=b;b.subscribe("reconnect-button-click",this.No,this);b.subscribe("maximize-button-click",this.Mo,this);this.b=c;c.subscribe("proxyStateChange",this.Oo,this);c.subscribe("remotePlayerChange",this.Ok,this);c.subscribe("remoteQueueChange",this.Pk,this);this.F=new Yt;this.B=this.A=NaN;this.D=0;this.k={};this.C=new Tk(this.ev,1E3,this);R(this,this.C);this.I=0;this.o=d;this.o||
(a=si("yt-player-remoteservice-listid"),b=this.g.b,b.getVideoData().La&&b.getVideoData().La!=a?this.b.Qk(b.getVideoData().videoId,t1(this.g),b.getCurrentTime()):this.b.oi(b.getVideoData().videoId,b.getCurrentTime()),b.Yc()?pi("yt-player-remoteservice-listid",b.getVideoData().La):ti("yt-player-remoteservice-listid"));(a=this.g.b.mi("captions","track"))&&u1(this,a);this.Pk();this.Ok()}w(s1,Kh);f=s1.prototype;
f.J=function(){v1(this,new Yt);w1(this);x1(this);this.g.ha("onVolumeChange",this.Lo,this);this.o||this.g.ha("onPlaylistUpdate",this.Ko,this);Nh(this.j)||(this.j.ha("reconnect-button-click",this.No,this),this.j.ha("maximize-button-click",this.Mo,this));Nh(this.b)||(this.b.ha("proxyStateChange",this.Oo,this),this.b.ha("remotePlayerChange",this.Ok,this),this.b.ha("remoteQueueChange",this.Pk,this));y1(this,this.k);this.b=this.j=this.g=null};
f.aD=function(a,b){2==this.b.b||(z1(this)?this.oC.apply(this,arguments):this.nC.apply(this,arguments))};function A1(a,b){var c=a.g.b.getVideoData().Oa;a.g.H("command_progress",b,c)}f.nC=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":B1(this,this.g.b.getCurrentTime());break;case "control_seek":B1(this,c[0])}};
f.oC=function(a,b){if(1081==Lm(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==Lm(this.b).b?C1(this):D1(this);break;case "control_play":D1(this);break;case "control_pause":C1(this);break;case "control_seek":this.I=c[0];Uk(this.C);break;case "control_subtitles_set_track":u1(this,c[0])}};
f.Lo=function(a){if(z1(this)){var b=Math.round(a.volume);a=!!a.muted;var c=Lm(this.b);b==c.volume&&a==c.muted||this.b.setVolume(b,a)}};f.Ko=function(){var a=si("yt-player-remoteservice-listid"),b=this.g.b;b.getVideoData().La!=a&&(this.b.Qk(E1(this),t1(this.g),b.getCurrentTime()),pi("yt-player-remoteservice-listid",b.getVideoData().La))};f.No=function(){x1(this);this.b.k.reconnect();o1(this.j)};
f.Mo=function(){var a=this.g,b={video_id:a.b.getVideoData().videoId},b=new Rr(b),b=zI(a.app.zb.R(),b,{});uu(a,b)};f.Oo=function(a,b){x1(this);2==b&&this.ur()};
f.Ok=function(){if(z1(this)){w1(this);var a=Lm(this.b);switch(a.b){case 1:F1(this);v1(this,new Yt(8));break;case 3:v1(this,new Yt(1));break;case 0:v1(this,new Yt(2));this.C.stop();var b=this.g.b;(b=Us(b.app,b.b||1))&&b.wg(!0);A1(this,this.g.b.getVideoData().Oa);break;case 2:v1(this,new Yt(4));A1(this,Dm(a));break;case -1:v1(this,new Yt);break;case -1E3:v1(this,new Yt(128))}0==this.D&&(b=this.g.b,(b=Us(b.app,b.b||1))&&b.wg(!1));this.D=a.b;a=Lm(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,y1(this,a));a=Lm(this.b);-1==a.volume||Math.round(this.g.b.Wo())==a.volume&&this.g.b.Xo()==a.muted||(this.g.b.setVolume(a.volume),a.muted?this.g.b.Yo():this.g.b.Zo())}else v1(this,new Yt)};f.Pk=function(){z1(this)||(A1(this,0),w1(this),v1(this,new Yt))};
function u1(a,b){if(z1(a)){if(b){var c={style:a.g.b.mi("captions","displaySettings")};ec(c,b);a.b.wm(E1(a),c)}else a.b.wm(E1(a),null);a.k=Lm(a.b).j}}function C1(a){a.b.pause();var b=Lm(a.b);A1(a,Dm(b));w1(a);v1(a,new Yt(4))}function D1(a){a.b.play();F1(a);v1(a,new Yt(8))}function B1(a,b){if(a.o){var c=a.g.b.Yc();c?Rm(a.b,E1(a),b,c.Ga,a.g.b.getVideoData().La):Rm(a.b,E1(a),b)}else a.b.oi(E1(a),b);v1(a,new Yt(1))}
function y1(a,b){if(b){var c=a.g.b.mi("captions","tracklist",{Cq:1});c&&(c=lb(c,function(a){return a.languageCode==b.languageCode&&a.name==b.trackName}),a.g.b.zp("captions","track",c))}else a.g.b.Ap("captions")}f.ev=function(){var a=this.I;w1(this);A1(this,a);-1==Lm(this.b).b?B1(this,a):this.b.Hr(a);v1(this,new Yt(1))};function z1(a){return Bm(Lm(a.b))==E1(a)}function E1(a){return a.g.b.getVideoData().videoId}
function F1(a){w1(a);var b=Lm(a.b);1==b.b&&v1(a,new Yt(8));A1(a,Dm(b));a.A=L(t(function(){F1(this)},a),500)}function w1(a){M(a.A);a.A=NaN}f.ur=function(){x1(this);w1(this);var a=this.b.k.getReconnectTimeout();if(2!=this.b.b||isNaN(a))o1(this.j);else{var b=this.j;r1(b,Y(0,"YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:Ov(a/1E3)}));b.b.show();this.B=L(t(this.ur,this),1E3)}};function x1(a){M(a.B);a.B=NaN}
function v1(a,b){x1(a);var c=a.F;a.F=b;var d=a.j;p1(d,Y(0,"YTP_MDX_STATUS_CONNECTED"));q1(d,1);V(b,1)&&(d=a.j,p1(d,Y(0,"YTP_MDX_STATUS_CONNECTED")),q1(d,2));V(b,128)&&r1(a.j,Ze("YTP_MDX_PLAYER_ERROR"));d=a.g;Cu(d,V(b,8));d.app.H("presentingplayerstatechange",new BN(b,c))};function G1(a){eL.call(this,a);this.F=a.g.j;this.A={key:Vi(),name:Y(0,"YTP_MDX_MY_COMPUTER")};this.k=this.j=null;this.I=[];this.g=null;this.B=new VC(this.F,"ytp-remote-button",Y(0,"YTP_MDX_TOOLTIP"),"ytp-remote-button-active");R(this,this.B);this.B.listen("click",this.cv,this);this.o=new pC(this.F,t(this.$u,this),t(this.av,this));N(this.o.K(),"ytp-drop-down-background");R(this,this.o);this.C=new VA;this.C.b=Y(0,"YTP_MDX_TITLE");this.C.element=this.o;this.C.A=this.va;R(this,this.C);this.D=!1}
w(G1,eL);var H1=["play_pause","seek"],I1=["captions"];f=G1.prototype;f.va="remote";f.ic="remote";f.Ja=function(){return this.app.zb.R().Eg};f.create=function(){G1.G.create.call(this);this.I.push(Vh("yt-remote-connection-change",this.mr,this));this.mr();this.H("module_menu_button_add",this.va,this.B);Eu(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(){Xh(this.I);this.I.length=0;Mh(this.g);this.g=null;G1.G.destroy.call(this)};
f.load=function(){if(!this.loaded){G1.G.load.call(this);this.app.zb.R().rd&&(this.D=!0);lH(this.app,!1);ZC(this.B,"ytp-remote-button-active");var a=this.o.getSelected();this.k=new m1(this,a.name,this.F);zt(this.b,this.k.K());this.g&&(a=this.app.zb.R(),this.j=new s1(this,this.k,this.g,a.b.k||a.b.g));this.b.Lk();this.H("command_redirect_controls",this,H1,I1);var b=fo();0!=b&&((a=this.g?Bm(Lm(this.g)):null)&&a!=this.b.getVideoData().videoId||L(t(function(){this.H("command_progress",b,void 0)},this),
0))}};f.unload=function(){if(this.loaded){var a=On();a&&a.getLoungeToken()||(lH(this.app,this.D),this.D=!1);ZC(this.B,"ytp-remote-button");sC(this.o,this.A);Au(this);Oh(this.j,this.k);this.k=this.j=null;G1.G.unload.call(this)}};f.J=function(){this.destroy();Oh(this.j,this.k,this.g);this.g=this.k=this.j=null;G1.G.J.call(this)};f.le=function(a,b){this.j&&this.j.aD.apply(this.j,arguments)};
function nt(a,b,c){var d=c||a.A;b.unshift(a.A);J1(a,b);d=lb(b,function(a){return a.key==d.key});sC(a.o,d);a.k&&Mv(a.k.template,"receiver",d.name)}function t1(a){var b=a.b.Yc();if(b){a=[];for(var c=0;c<b.uc;c++)a[c]=zs(b,c).videoId;return a}return[a.b.getVideoData().videoId]}f.mr=function(){var a=ho();a?(this.g=a,this.load(),this.j||(a=this.app.zb.R(),this.j=new s1(this,this.k,this.g,a.b.k||a.b.g))):(Mh(this.g),this.g=null,this.unload())};
f.av=function(a){Gu(this);if(a!=this.o.getSelected())if(sC(this.o,a),a.key==this.A.key)a=this.g?Lm(this.g):null,$n(),this.unload(),a&&Bm(a)==this.b.getVideoData().videoId&&(0<Dm(a)&&this.b.Ng(Dm(a)),1==a.b&&this.b.Mg());else{var b=0,c="",d=this.b.Yc();d&&(b=d.Ga,c=this.b.getVideoData().La);b={videoIds:t1(this),listId:c,videoId:this.b.getVideoData().videoId,index:b,currentTime:this.b.getCurrentTime()};Xn(a,b);this.k&&Mv(this.k.template,"receiver",a.name);Mh(this.j);this.j=null;this.load()}};
function J1(a,b){z(b,function(a){a.toString=function(){return a.key}},a);qC(a.o,b)}f.cv=function(a){var b=Mn();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),Ej())};f.$u=function(a){return a.name};function K1(a,b){this.g=a;this.j=b;this.b=!1}function L1(a){var b;if(b=Fq("grc",""))Eq(""),b=!0;if(b){b=Eq("").span;var c=Eq("").tick;"grc"in c&&(b[a]=v()-c.grc)}else Fq(a,"")||Dq(a,void 0,"")}K1.prototype.info=function(a,b){Jq("")[a]=b};
function M1(a){var b=a.g;if(!b.Rk||!("detailpage"==b.ba||"leanback"==b.ba||"embedded"==b.ba&&b.Rh)||a.b)return NaN;a.b=!0;Te("TIMING_ACTION")||Re("TIMING_ACTION",a.g.oa);var b=a.j.C,c;for(c in b)Dq(c,b[c],"");a=a.j.B;for(var d in a)c=d,b=a[d],Jq("")[c]=b;if(d=Eg("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;Jq("").yt_vis=d}Jq("").yt_pt="html5";var e;if(Fq("_start",""))if(c=Eq("").tick,d=Eq("").span,b=
Jq(""),a=q("yt.timing.reportbuilder_")){if(a=a(c,d,b,""))Iq(a),Kq(""),Bq();e=NaN}else{a={v:2,s:"youtube",action:Te("TIMING_ACTION")};var g=Te("TIMING_INFO")||{},h;for(h in g)b[h]=g[h];h=b.srt;delete b.srt;var k;h||0===h||(k=Aq.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=Aq.getEntriesByName?Aq.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(!zq){k||(k=Aq.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,ja(p))){var p=p(),s=1E3*Math.min(p.requestTime||Infinity,p.startLoadTime||Infinity),s=Infinity===s?0:l.navigationStart-s;l=Math.max(0,Math.round(1E3*p.firstPaintTime+s)||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);zq=!0}.001>Math.random()&&Hq(d);for(var u in b)"_"!=u.charAt(0)&&(a[u]=b[u]);u={};k=[];for(var y in c)"_"!=y.charAt(0)&&(l=Math.max(Math.round(c[y]-g),0),u[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(",");Iq(a);(e=q("ytdebug.logTiming"))&&e(a,u,y);Kq("");Bq();e=u.aft+(h||0)}else e=NaN;return e}Gf("hidden",window.document);var lt={"api.invalidparam":2,auth:150,"drm.auth":150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"html5.missingapi.drm":5};function N1(a,b){cj.call(this);var c=b;c instanceof Zg||(c=new Zg(c));this.O=c;this.b=new mL(this.O.args||{});R(this,this.b);this.g=new pK(this);R(this,this.g);this.g.subscribe("templateready",this.Zt,this);this.g.subscribe("resize",this.fu,this);this.I=1;this.ya={};this.V=null;this.D=this.b.ek?Ds():{volume:100,muted:!1};this.jb=this.b.Ab()?new tt(this,1):new Gs(this,1);R(this,this.jb);this.gb=new xt(this);R(this,this.gb);this.zb=new xt(this,1);R(this,this.zb);this.U=this.k=null;this.ca={};var c=
this.b,d=new GK;vE(c)&&(d.j=!0,d.B=.1);c.b.I&&(d.g=8,d.b=!0,d.j=!0);c.b.N&&(d.g=8,d.j=!0);c.b.wa&&(d.k=5,d.C=!0);c.b.ca&&(d.A=12500);c.b.la&&(d.o=.9);this.xa=new vK(d);c=new CN(this.b,1);d={};d.internalvideodatachange=this.Mt;d.liveviewshift=this.Tt;d.playbackready=this.Nt;d.playbackstarted=this.Ot;d.statechange=this.Pt;d.urlauthexpired=this.au;for(var e in d)c.subscribe(e,d[e],this);this.j=c;this.j.ca=this.xa;R(this,this.j);this.hb={beginseeking:this.Qt,endseeking:this.St,internalvideodatachange:this.hu,
internalvideoformatchange:this.bu,progresssync:this.Yt,seekto:this.gu,onLoadProgress:this.Ut,onVideoProgress:this.cu,newlicensesession:this.eu,playbackready:this.Vt,statechange:this.Xt,connectionissue:this.Rt,heartbeatparams:this.du,videoelementevent:this.iu};this.A=null;this.za=this.ra=-1;e=new HK;c=this.gb;e.g!=c&&(IK(e),e.k={},e.g=c);c={};c.loaded=t(this.lo,this);c.unloaded=t(this.no,this);c.command_pause=O1(this.pauseVideo,this);c.command_play=O1(this.Od,this);c.command_seek=O1(this.rf,this);
c.command_disable_controls=t(this.sg,this);c.command_enable_controls=t(this.Yh,this);c.command_redirect_controls=t(this.qo,this);c.command_stop_redirect_controls=t(this.$h,this);c.command_redirected_show_is_playing=t(this.g.qk,this.g);c.command_progress=t(this.pk,this);c.command_add_cuerange=t(this.po,this);c.command_remove_cuerange=t(this.ro,this);c.command_remove_cuerange_all=t(this.oo,this);c.command_preroll_ready=t(this.to,this);c.command_update_cuerange_markers=t(this.uo,this);c.command_show_dialog=
t(this.ok,this);c.command_clear_video_overlays=t(this.Vh,this);c.command_navigate_to_url=t(this.lk,this);c.command_log=t(this.mk,this);c.publish_external_event=t(this.Uh,this);c.module_menu_button_add=t(this.eo,this);c.module_menu_button_remove=t(this.fo,this);c.module_menu_item_add=t(this.ho,this);c.module_menu_item_remove=t(this.jo,this);c.module_menu_show=t(this.ko,this);c.vss_segment=t(this.ju,this);e.o=c;this.C=e;R(this,this.C);this.oa=new K1(this.b,this.C);this.F=this.B=null;this.L={};this.T=
null;this.P={};this.da=null;this.Wa=0;this.Ra=!1;this.N=!0;this.o=null;this.la=1;this.aa=this.Ca=null;this.Ha=this.Ia=!1;this.wa=null;this.eb=0;this.mb=Q(window,"popstate",t(this.Wt,this),!1);e=new Rr(this.O.args);gs(e)&&(EN(this.j,e,t(this.Zh,this)),"detailpage"==this.b.ba&&(c=e.videoId,c=(d=si("yt-player-restore-playhead"))?d[c]:void 0,c&&(e.Sa=c)),ti("yt-player-restore-playhead"),this.b.Rh&&KN(this.j));L1("fs");this.g.initialize(a);oH(this,"init")}w(N1,cj);N1.g="defaultcontext";N1.b={};
N1.create=function(a,b){try{var c=N1.j(a);if(N1.b[c]){try{N1.b[c].dispose()}catch(d){Xe(d)}N1.b[c]=null}var e=new N1(a,b);Lh(e,function(){N1.b[c]=null});return N1.b[c]=e}catch(g){throw Xe(g),g;}};N1.j=function(a){return r(a)?a:"player"+la(a)};
function P1(a){a.k=EE.getTag(!0);a.U=a.k;a.A&&UN(a.A,a.k);Wt(a.k,a.la);a.b.Xd?(a.aa&&Rg(a.aa),a.aa=Q(a.k,"volumechange",t(a.fz,a),!1)):a.k.setVolume(a.D.volume,a.D.muted);var b=a.g;b.b=a.k;b.ra=new zf(0,0,0,0);b.b.parentNode||b.g.appendChild(b.b);N(b.b,"video-stream");N(b.b,"html5-main-video");var c=b.app.R();c.Qb&&c.Qd&&b.b.setAttribute("controls",!0);c.wi&&b.b.setAttribute("webkit-playsinline","");b.b.setAttribute("x-webkit-airplay","allow");c.Yk&&(b.ya=Q(b.b,"click",t(b.b.play,b.b)));a.b.Pa=a.k;
Qt(a.k)}function Q1(a){if(a.k){a.aa&&(Rg(a.aa),a.aa=null);a.A&&OH(a.A);var b=a.g;b.b&&(fd(b.b),b.b=null);a.b.Pa=null;EE.releaseTag(a.k);a.k=null}}function LH(a,b){a.b.Rb?(a.T&&(Mf(a.k,a.T.left,a.T.top),Xf(a.k,Cf(a.T)),a.T=null),Vt(a.k),OH(a.A),UN(a.A,a.k),Wt(a.k,a.la)):EE.releaseTag(b)}
function Y_(a,b){if(a.A!=b){a.A&&(IK(a.C),a0(a));if(b!=a.j){var c=b.getPlayerType();a.ca[c]=b}a.A=b;b.ca=a.xa;a.k&&UN(b,a.k);var c=a.hb,d;for(d in c)b.subscribe(d,c[d],a);R1(a,b,b.getVideoData());b.P.b&&S1(a,"dataloaded",b,b.getVideoData())}}function a0(a){OH(a.A);var b=a.A,c=a.hb,d;for(d in c)b.ha(d,c[d],a);b=a.A;b!=a.j&&(c=b.getPlayerType(),a.ca[c]==b&&delete a.ca[c]);a.A=null}function Us(a,b){return b?1==b?a.j:a.ca[b]||null:a.A}
function T1(a){var b=a.C,c=[QB.g,fI,bw,FJ,rE,MJ,QJ,zE,WJ];c.push(GI.b);z(c,b.Xq,b);a.H("videoready",a.getVideoData())}f=N1.prototype;f.Nt=function(){U1(this,5)};f.Vt=function(a){6!=this.I&&(V1(this),a=a.getPlayerState(),V(a,8)&&!V(a,2)&&this.Od())};function qt(a){!a.F&&a.zb.R().Eg&&(a.F=new G1(a),W1(a,a.F));if(a.F){var b=Tn();nt(a.F,Mn(),b);var c=a.F;c&&!c.jc&&c.Ja(a.zb)&&c.create();b&&a.F.load()}}
function W1(a,b){R(a,b);b.subscribe("loaded",a.lo,a);b.subscribe("unloaded",a.no,a);b.subscribe("command_pause",O1(a.pauseVideo,a));b.subscribe("command_play",O1(a.Od,a));b.subscribe("command_seek",O1(a.rf,a));b.subscribe("command_disable_controls",a.sg,a);b.subscribe("command_enable_controls",a.Yh,a);b.subscribe("command_redirect_controls",a.qo,a);b.subscribe("command_stop_redirect_controls",a.$h,a);b.subscribe("command_redirected_show_is_playing",a.g.qk,a.g);b.subscribe("command_progress",a.pk,
a);b.subscribe("command_add_cuerange",a.po,a);b.subscribe("command_remove_cuerange",a.ro,a);b.subscribe("command_remove_cuerange_all",a.oo,a);b.subscribe("command_update_cuerange_markers",a.uo,a);b.subscribe("command_preroll_ready",a.to,a);b.subscribe("command_show_dialog",a.ok,a);b.subscribe("command_clear_video_overlays",a.Vh,a);b.subscribe("command_log",a.mk,a);b.subscribe("command_navigate_to_url",a.lk,a);b.subscribe("publish_external_event",a.Uh,a);b.subscribe("module_menu_button_add",a.eo,a);
b.subscribe("module_menu_button_remove",a.fo,a);b.subscribe("module_menu_item_add",a.ho,a);b.subscribe("module_menu_item_remove",a.jo,a);b.subscribe("module_menu_show",a.ko,a);b.subscribe("command_log_timing",a.C.D,a.C)}function pt(a){a&&a.jc&&a.destroy()}f.Ua=function(a,b){this.H.apply(this,arguments);this.oe.apply(this,arguments)};f.Mh=function(a,b){var c=vb(arguments);this.b.Ab()&&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 mt(a){return a.j.getVideoData()}f.Zh=function(){var a=tL(this.b);ra(a,LK(this.C));this.B&&ra(a,this.B.$g());a.fs=this.b.tb;a.volume=Math.round(this.D.volume);a.mos=this.D.muted?1:0;return a};f.ok=function(a){this.g.Sg(a)};
f.Zt=function(){this.b.li=this.g.element;this.g.Rg();var a=this.jb;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=t(this.hx,this);b=document;var c;"onfullscreenchange"in b?c="fullscreenchange":(c=zg+"fullscreenchange",c="on"+c in b?c:null);"msfullscreenchange"==c&&(c="MSFullscreenChange");this.Ca=c?Q(b,c,a):null;b=this.O.args;if(lq()){P1(this);a=mt(this);c=this.g.Tb();this.b.Sd=c;this.Ua("onVolumeChange",this.D);"detailpage"==this.b.ba?ut(this):b&&(b.playlist||b.list||
b.api)&&(X1(this,b),gs(a)||(b=this.o,c=t(this.Xp,this),b.Me=c,b.de&&L(b.Me,0)));if(b=this.O.args.jsapicallback)ja(b)||(b=q(b)),b&&O1(t(b,m,this.b.Kk),m);Dn(this.b.b.g);this.b.Eg=ot(this.b)&&!D(Mn());Y_(this,this.j);this.b.Rh&&gs(a)?Y1(this):"leanback"!=this.b.ba&&Z1(this)}else Yv(this.j,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.g.Ql()};function Z1(a){a.H("initializingmode");U1(a,2)}
function Y1(a){V(a.getPlayerState(),128)||(a.H("initializingmode"),Y_(a,a.j),U1(a,3),a.b.Rb||(Q1(a),P1(a),UN(a.j,a.k)),PN(a.j),$1(a,3))}function a2(a){return a.b.b.k&&"detailpage"==a.b.ba&&!!a.F&&a.F.loaded}function O1(a,b){return function(){var c=Array.prototype.slice.call(arguments);L(function(){a.apply(b||this,c)},0)}}f.lk=function(a,b){b?hK(this,a):(window.ytspf||{}).enabled?spf.navigate(a):window.location=$d(a,{})+""};
f.mk=function(a,b,c){var d=Us(this);b.event=a;d.o&&(a=d.o,b.rt=eN(a.b).toFixed(3),ra(b,tN(a.b)),ra(b,vN(a)),delete b.fexp,b=Ci(a.b.g.qb+"player_204",b),nf(b,c))};function Rs(a,b){if(!isNaN(b)&&a.k){var c=1,c=a.b.Ag?Tq:[1],c=1>b?lb(c,function(a){return a>=b}):nb(c,function(a){return a<=b});a.la!=c&&(a.la=c,a.j==a.A&&Wt(a.k,c),a.H("onPlaybackRateChange",c))}}function Ss(a,b){var c=Us(a,b);return c&&c.getVideoData().b?c.getVideoData().b.video.b:"unknown"}
function cH(a){return(a=Us(a,void 0))?Sp(NM(a.ra,a.b)):"unknown"}function Ts(a,b,c,d){if(c=Us(a,c))a=a.b.o,"mobile"!=a&&"tablet"!=a&&(b=Mp(b,d||b,!0),OJ(c,"m",b))}f.getCurrentTime=function(a){return(a=Us(this,a))?a.getCurrentTime():0};function Ks(a,b){var c=Us(a,b);return c?c.Vd():0}function bt(a,b){var c=a.j.getDebugInfo(b);c.debug_playbackQuality=Ss(a);c.debug_date=(new Date).toString();delete c.uga;return rf(c)}
function LJ(a,b){var c=a.getVideoData(),d=!!c.wa||!!c.Pf||!b;a.H("threedenabled",d);d&&a.k.setAttribute("mozStereoMode","1");HJ()&&(a.k.setAttribute("mozStereoMode",d?"1":"0"),c=bq[d?c.OB:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),cd(document.documentElement,d),Wg(d,"3DModeEvent"))}f.getPlayerState=function(a){return(a=Us(this,a||1))&&a.getPlayerState()};
f.iu=function(a){var b=a.target;switch(a.type){case "loadedmetadata":L1("fvb");this.Wa=L(t(this.g.Zf,this.g),16);break;case "loadstart":L1("gv");break;case "progress":case "timeupdate":L1("1pb"),2<=Lt(b.buffered)&&L1("l2s")}};f.eu=function(a){if(this.Ha){var b=this.eb.toString();this.eb++;this.wa[b]=a;a={request:vb(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.Ut=function(a,b){this.Mh("onLoadProgress",b)};
f.cu=function(a,b){this.Mh("onVideoProgress",b)};f.Yt=function(){this.pk()};f.pk=function(a,b){this.H("progresssync",a,b)};
f.Pt=function(a){var b;(b=!V(a.state,2))||(this.o&&("embedded"==this.b.ba||this.b.tb)&&dI(this)?(et(this),b=!0):this.b.b.A&&this.getVideoData().Mi&&this.getVideoData().C&&0<this.getVideoData().C.length?(b=this.getVideoData().C[0],UH(this,b.id,b.endscreen_autoplay_session_data,b.list),b=!0):b=!1,b=!b);b&&(V(a.state,2)&&(this.pauseVideo(),V(a.b,32)&&this.j.Li(),this.b.ac&&eH(this,!1)),V(a.state,128)&&(b=a.state,Qs(this),b=b.b,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=
Ze(b.messageKey)),this.H("onError",lt[b.errorCode]||5),this.H("onDetailedError",b)),this.H("applicationplayerstatechange",a),V(a.state,2)&&(a=this.getVideoData(),a.Za&&!a.nb&&this.sg(["play_pause"])))};f.Xt=function(a){!V(a.state,32)&&0>Zv(a,16)&&(!V(a.state,8)||this.k.ended&&!V(a.state,2)||this.Od());this.H("presentingplayerstatechange",a);this.oe("onStateChange",a);$1(this,eu(a.state))};function R1(a,b){IK(a.C);Rs(a,1);a.Ua("videoplayerreset",b)}
function S1(a,b,c,d){if(a.k){if("dataloaded"==b)if(nL(c.R(),d.k),a.A==a.j){Dn(a.b.b.g);var e=ot(a.b)&&!!Tn(),g;if(g=!e)g=mt(a).Do&&!a.b.ac;if(g){var h="YTP_DEVICE_FALLBACK";uc||nr("iemobile")||nr("xbox")&&nr("trident")||nr("nintendo wiiu")||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");Yv(a.j,"html5.unsupportedads",h,void 0)}else if(g=mt(a),!(g.j||g.xe||g.ue||g.da||g.aa)||e||IN(a.j)){hs(g);e&&U1(a,6);e=l1.Ja;!a.B&&e(a)&&(a.B=new l1(a),a.B&&W1(a,a.B));try{(h=a.B)&&!h.jc&&h.Ja(a.zb)&&h.create()}catch(k){Xe(k),
a.j&&TN(a.j,"ad")}qt(a);T1(a)}else Yv(a.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else T1(a);1==c.getPlayerType()&&(a.getVideoData().vk?(a.V=bc(a.D),a.sg(["audio"]),h=a.k,h.Wk=!0,h.muted=!0):(Ps(a,"audio")&&a.Yh(["audio"]),a.k.Wk=!1,a.V&&(mH(a,a.V),a.V=null)),h=a.getVideoData(),h.Za&&!a.b.Fk?Yv(a.j,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0):h.Za&&!h.nb?a.sg(["seek"]):a.Yh(["seek"]),d.T||d.o.focEnabled||d.o.rmktEnabled||a.b.sf)&&(h=a.getVideoData(),e=1E3*h.Oa,
b2(a,"part2viewed",1,e),a.b.b.o&&b2(a,"engagedview",Math.max(1,1E3*h.te),e),b2(a,"videoplaytime25",.25*e,e),b2(a,"videoplaytime50",.5*e,e),b2(a,"videoplaytime75",.75*e,e),b2(a,"videoplaytime100",e,2147483647),b2(a,"conversionview",e,2147483647));a.Ua("videodatachange",b,d,c.getPlayerType())}}f.Mt=function(a){if("newdata"==a){pt(this.B);pt(this.F);this.Ia=!1;a=[];for(var b in this.L)Ps(this,b)&&a.push(b);this.L={};0<a.length&&this.H("controlsenabled",a);this.$h();this.ya={};this.oa.b=!1}};
f.hu=function(a,b,c){"newdata"==a?R1(this,b):S1(this,a,b,c)};f.bu=function(a,b){var c=this.A.getVideoData();a==c&&this.H("onPlaybackQualityChange",a.b.video.b,b)};function ut(a){var b=xH();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)});X1(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 X1(a,b){if(a.o){Mh(a.o);a.o=null;var c=Xs(a.C,"playlist");if(c){var d=a.C;if(!d.g||c.Sm(d.g))c.destroy(),rb(d.b,c)}}b&&(a.o=new os(b),a.C&&(c=a.C,z([GI.b],c.Xq,c)))}function b2(a,b,c,d){b in a.ya||(c=new fu(c,d,{id:b,priority:1}),c.ab.subscribe("onEnter",a.Ss,a),c.ab.subscribe("onExit",a.Ss,a),a.j.A.Ci(c),a.ya[b]=c)}
f.Ss=function(a){var b=a.getId(),c=mt(this);"part2viewed"==b?(c.T&&!this.b.b.o&&nf(c.T),c.lf&&nf(c.lf)):"conversionview"==b?yN(this.j.o):"engagedview"==b&&this.b.b.o&&nf(c.T);if(c.ra){var d;d=a.getId();d=Ci(c.ra,{label:d});nf(d)}switch(b){case "videoplaytime25":nf(c.gk);break;case "videoplaytime50":nf(c.ik);break;case "videoplaytime75":nf(c.hk);break;case "videoplaytime100":nf(c.fk)}this.b.sf&&this.b.sf[a.getId()]&&(b=this.b.sf[a.getId()],c=x(b)?!1:-1!=b.search(Le)||-1!=b.search(Je),nf(b,void 0,c));
this.j.A.Fg(a)};function U1(a,b){b!=a.I&&(2==b&&($1(a,-1),$1(a,5)),a.I=b,a.H("appstatechange",b))}function $1(a,b){a.A&&2==a.A.getPlayerType()?a.za!=b&&(a.za=b,a.Mh("onAdStateChange",b)):a.ra!=b&&(a.ra=b,a.Mh("onStateChange",b))}function oH(a,b){if(a.b.b.D){var c={controlClicked:b};a.b.tb&&(c.fs=1);a.mk("controlclicked",c)}}f.rf=function(a,b,c,d){(d=Us(this,d))&&QN(d,a,!1!=b,c)};f.gu=function(a,b){var c=a.getVideoData();if(1==this.I||2==this.I)c.Sa=b;2==this.I?Y1(this):this.Ua("seekto",b)};f.Qt=function(){this.Ua("beginseeking")};
f.St=function(){this.Ua("endseeking")};f.setVolume=function(a){var b=this.D;b.volume=a;mH(this,b)};function mH(a,b){a.D=b;b.volume=Jb(b.volume,0,100);if(a.b.ek&&!a.b.Xd){var c={};c.volume=isNaN(b.volume)?Ds().volume:Jb(b.volume,0,100);c.muted=void 0==b.muted?Ds().muted:b.muted;pi("yt-player-volume",c,2592E3)}Ps(a,"audio")?a.V&&(a.V=bc(b),a.Ua("onVolumeChange",b)):(V1(a),a.b.Xd||a.Ua("onVolumeChange",b))}function Ls(a){var b=a.D;b.muted=!0;mH(a,b)}
function Ms(a){var b=a.D;b.muted=!1;5>b.volume&&(b.volume=5);mH(a,b)}function Ys(a,b,c){b.list=b.list||null;b=new Rr(b);var d;if(d=a2(a)){d=b.videoId;var e;e=a.F;e=e.g?Bm(Lm(e.g)):"";d=d!=e}if(d)return!1;(d=a.getVideoData())&&d.La!=b.La&&X1(a,null);b.La&&"detailpage"==a.b.ba&&ut(a);return c2(a,b,void 0,void 0,c)}
function c2(a,b,c,d,e){Fq("_start","")||(Dq("_start",void 0,""),a.oa.info("srt",0));var g=Us(a,e);if(!g)return!1;M(a.Wa);void 0!=c&&(b.Sa=c);b.tf=yq(b.tf,d);Qs(a,e);EN(g,b,t(a.Zh,a));if(!JN(g))return!1;g==a.j?(U1(a,1),Y1(a)):PN(g);return!0}function d2(a,b){var c=c2(a,b,void 0);Is(a,c,void 0)}function Is(a,b,c){c=Us(a,c);b&&c==a.j&&(c.getVideoData().Md=!0)}function Zs(a,b,c){b.list=b.list||null;e2(a,new Rr(b),c)}
function e2(a,b,c){var d=Us(a,c);d&&(Qs(a,c),EN(d,b,t(a.Zh,a)),JN(d)&&(nL(d.R(),b.k),d==a.j&&(U1(a,1),Z1(a))))}function UH(a,b,c,d,e){if(!b&&!d)throw Error("Playback source is invalid");b={video_id:b,list:d};a.b.tb||"detailpage"!=a.b.ba?d?(a.N=!1,dt(a,b,void 0,void 0,void 0)):Ys(a,b,1):(d=new Rr(b),d=zI(a.b,d,{}),q("yt.player.exports.navigate")(d,c,!0),a.lk(d,e))}
function dt(a,b,c,d,e){if(ka(b)&&!ga(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},r(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;X1(a,b);b=a.o;a=t(a.Xp,a);b.Me=a;b.de&&L(b.Me,0)}f.Xp=function(){var a=zs(this.o);this.getVideoData().rg||!this.N?this.getVideoData().Md?d2(this,a):c2(this,a):a&&e2(this,a)};
function dI(a){var b=xH();return!(!a.o||!ws(a.o)||b&&!b.autoPlay)}function et(a){a.o&&(a.o.de?ws(a.o)&&c2(a,xs(a.o)):(xs(a.o),a.N=!1))}function ft(a){if(a.o)if(a.o.de){var b=a.o;(b.Uf||0<=b.Ga-1)&&d2(a,As(a.o))}else As(a.o),a.N=!1}function gt(a,b){a.o&&(a.o.de?d2(a,zs(a.o,b)):a.N=!1,ys(a.o,b))}function xH(){var a=q("yt.www.watch.lists.getState");return a?a():null}function ht(a){return a.o&&a.o.j?a.o.j.toString():null}
function at(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=Ks(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return zI(a.b,mt(a),null,c)}function ct(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 fu(1E3*c,1E3*d,b);c.ab.subscribe("onEnter",a.DC,a);c.ab.subscribe("onExit",a.EC,a);a.j.A.Ci(c);a.H("cuerangesadded",[c]);return!0}f.DC=function(a){this.H("onCueRangeEnter",a.getId())};
f.EC=function(a){this.H("onCueRangeExit",a.getId())};f.po=function(a,b){var c=Us(this,b);c&&(c.A.Ci.apply(c.A,a),this.H("cuerangesadded",a))};f.ro=function(a,b){var c=Us(this,b);c&&(c.A.Fg.apply(c.A,a),this.H("cuerangesremoved",a))};f.oo=function(a,b){var c=Us(this,b);if(c){for(var c=c.A,d=c.j.length-1;0<=d;d--)c.j[d].namespace==a&&ju(c,d);c.nc()}};f.uo=function(a){this.H("cuerangemarkersupdated",a)};f.to=function(a,b){var c=Us(this,b);c&&TN(c,a)};
f.Ot=function(){f2(this,M1(this.oa));if(!this.Ia&&"detailpage"==this.b.ba){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=Te("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);Iq(a)}}this.Ra=!1};
function f2(a,b){if(!isNaN(b)&&0<b&&a.j){var c=a.j;c.o&&0<b&&(c.o.k.j.aft=[b])}}f.lo=function(a){"remote"==a?(U1(this,6),pt(this.B)):this.Mh("onApiChange")};f.no=function(a){"remote"==a&&Z1(this)};f.fz=function(){if(!Ps(this,"audio")){var a={volume:100*this.k.volume,muted:this.k.muted};this.D=bc(a);this.Ua("onVolumeChange",a)}};function V1(a){var b=a.b.Xd?Rr.b:a.getVideoData().Kq;a.k.setVolume(a.D.volume*b,a.D.muted)}f.hx=function(){g2(this,!!Yg())};f.Wt=function(){g2(this,!1)};
function g2(a,b){a.g.Jm(b);if("detailpage"==a.b.ba&&!b){var c=mt(a);if(Te("VIDEO_ID")!=c.videoId){var d=a.getCurrentTime(),e={};e[c.videoId]=d;pi("yt-player-restore-playhead",e,172800);a.pauseVideo()}}a.b.tb=b;a.g.Zf();a.Ua("fullscreentoggled",b);c={fullscreen:b,videoId:mt(a).videoId};ht(a)&&(c.listId=ht(a));a.H("onFullscreenChange",c)}f.fu=function(){wH(this)};f.Vh=function(){this.Ua("clearvideooverlays")};f.eo=function(a,b){this.Ua("menu_button_add",a,b)};
f.fo=function(a){this.Ua("menu_button_remove",a)};f.ho=function(a){this.Ua("menu_item_add",a)};f.jo=function(a){this.Ua("menu_item_remove",a)};f.ko=function(a){this.Ua("menu_show",a)};f.ju=function(a){(a=Us(this,a))&&a.o&&bN(a.o.g)};f.Tt=function(a){this.Ua("liveviewshift",a)};
f.Uh=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(L1("vr"),eO(this.A),f2(this,M1(this.oa)));0==c&&e&&(this.j.O=e);var g=this.b;"leanback"==g.ba&&g.Ab()&&(0==c?this.U=this.k:this.U=d,this.H("onAdStateChange",c,e.video_id))}else this.H.apply(this,arguments)};f.oe=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.Od=function(a){(a=Us(this,a))&&(2==this.I?Y1(this):V(a.getPlayerState(),2)?this.rf(0):WN(a))};f.pauseVideo=function(a){(a=Us(this,a))&&a.pauseVideo()};function Qs(a,b){var c=Us(a,b);c&&1!=a.I&&2!=a.I&&(SN(c),1==b&&pt(a.B))}function Ns(a,b){if(!Ps(a,"play_pause")&&!a2(a)){var c=a.P.play_pause?a.da:null;c?c.le("control_play"):a.Od(b)}}function Os(a,b){if(!Ps(a,"play_pause")){var c=a.P.play_pause?a.da:null;c?c.le("control_pause"):a.pauseVideo(b)}}
function fH(a){var b;if(b=!Ps(a,"play_pause"))(b=!a.b.hc||2!=a.I)||(b=EE.hasTags(void 0));b&&((b=a.P.play_pause?a.da:null)?b.le("control_toggle_play_pause"):(b=Us(a,void 0))&&(V(b.j,8)&&!V(b.j,2)?a.pauseVideo(void 0):a.Od(void 0)))}function Js(a,b,c,d,e){if(!Ps(a,"seek")){var g=a.P.seek?a.da:null;g?g.le("control_seek",b):a.rf(b,c,d,e)}}function lH(a,b){eH(a,!1);b!=a.b.rd&&(a.b.rd=b,a.H("SIZE_CLICKED",b),a.g.qh())}
function eH(a,b){if(a.b.tb!=b)if(Xg())if(b){var c=a.g.element,d=Fg(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Fg(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else g2(a,b)}function Lz(a){eH(a,!a.b.tb)}function hK(a,b){eH(a,!1);a.pauseVideo();nI(b)}function nH(a){var b=a.getVideoData();"detailpage"==a.b.ba&&a.b.tb&&Te("VIDEO_ID")==b.videoId?eH(a,!1):hK(a,at(a,!0))}f.getAdState=function(){return this.B?this.B.getAdState():-1};
function wH(a){var b=a.g.Tb();a.b.Sd=b;if(a.k){b=!1;if(0!=a.k.readyState&&a.A){var c=new F(a.k.videoWidth,a.k.videoHeight),d=a.getVideoData();Mb(d.Wa,c)||(d.Wa=c,b=!0)}c=TE(a.g);Bf(a.b.Oq,c)||(a.b.Oq=c,b=!0);c=TE(a.g);Bf(a.b.Af,c)||(a.b.Af=c,b=!0);b&&(OJ(Us(a),"r"),a.H("resize",a.g.qd()),a.Ua("onResize"))}}function Ps(a,b){return!(!a.L[b]||!a.L[b].length)}
f.sg=function(a,b){b=b||N1.g;var c=[];z(a,function(a){this.L[a]?0>this.L[a].indexOf(b)&&this.L[a].push(b):(this.L[a]=[b],c.push(a))},this);0<c.length&&this.H("controlsdisabled",c)};f.Yh=function(a,b){b=b||N1.g;var c=[];z(a,function(a){if(Ps(this,a)){var e=this.L[a].indexOf(b);0<=e&&this.L[a].splice(e,1);0==this.L[a].length&&c.push(a)}},this);0<c.length&&this.H("controlsenabled",c)};f.qo=function(a,b,c){this.$h();this.da=a;b&&z(b,function(a){this.P[a]=!0},this);c&&JK(this.C,a,c)};
f.$h=function(){this.da=null;this.P={};KK(this.C)};function it(a,b,c,d){c=a.B&&b==a.B.va?a.B.Nj(c,d):b&&c?(a=Xs(a.C,b))?a.Nj(c,d):null:null;return c}f.au=function(){if(!this.Ra){this.Ra=!0;var a=this.getVideoData(),b=Us(this).getCurrentTime();Ys(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.Rt=function(){this.Ua("CONNECTION_ISSUE")};f.du=function(a){this.Ua("heartbeatparams",a)};
f.J=function(){Jn();Q1(this);this.Ca&&Rg(this.Ca);Rg(this.mb);Oh(Tb(this.ca),this.o);this.U=null;M(this.Wa);N1.G.J.call(this)};var h2=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};ba("yt.uix.widgets_",h2,void 0);function i2(a){a=a.getInstance();var b=Z(a);b in h2||(a.register(),mF(a,"yt-uix-dispose-"+b,a.dispose),h2[b]=a)};i2(hJ);i2(pF);q("yt.tracking.share")||ba("yt.tracking.share",hI,void 0);q("yt.net.ping")||ba("yt.net.ping.send",nf,void 0);q("yt.window.popup")||(ba("yt.window.popup",oI,void 0),ba("yt.window.open",nI,void 0));ba("yt.player.Application.create",N1.create,void 0);var j2=q("ytcsi.tick");j2&&j2("pe");})();
