Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

(function(){var f,aa=aa||{},m=this;function n(a){return void 0!==a}function ba(a,b,c){a=a...

Decoded Output download

(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.Rb?a.Rb:a.Rb=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 null!=a}function ha(a){return"array"==ea(a)}function ia(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function s(a){return"string"==typeof a}function ja(a){return"number"==typeof a}function ka(a){return"function"==ea(a)}function la(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ma(a){return a[na]||(a[na]=++oa)} 
var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}} 
function v(a,b,c){v=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return v.apply(null,arguments)}function sa(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 ta(a,b){for(var c in b)a[c]=b[c]}var w=Date.now||function(){return+new Date}; 
function x(a,b){function c(){}c.prototype=b.prototype;a.G=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.AF=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 v.apply(null,c)}return v(this,a)};function ua(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ua);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}x(ua,Error);ua.prototype.name="CustomError";var va;function wa(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function xa(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 ya(a){return/^[\s]*$/.test(a)}function A(a){return ya(za(a))}function Aa(a){return a.replace(/^[\s]+|[\s]+$/g,"")}function Ba(a){return encodeURIComponent(String(a))}function Ca(a){return decodeURIComponent(a.replace(/\+/g," "))} 
function Da(a){if(!Ea.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Fa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ga,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ha,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ia,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ja,"&#39;"));-1!=a.indexOf("")&&(a=a.replace(Ka,"&#0;"));return a}var Fa=/&/g,Ga=/</g,Ha=/>/g,Ia=/"/g,Ja=/'/g,Ka=//g,Ea=/[&<>"']/;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(//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 za(a){return null==a?"":String(a)}function Ua(a){return Array.prototype.join.call(arguments,"")} 
function Va(a,b){for(var c=0,d=Aa(String(a)).split("."),e=Aa(String(b)).split("."),g=Math.max(d.length,e.length),h=0;0==c&&h<g;h++){var k=d[h]||"",l=e[h]||"",p=RegExp("(\d*)(\D*)","g"),r=RegExp("(\d*)(\D*)","g");do{var u=p.exec(k)||["","",""],t=r.exec(l)||["","",""];if(0==u[0].length&&0==t[0].length)break;c=Wa(0==u[1].length?0:parseInt(u[1],10),0==t[1].length?0:parseInt(t[1],10))||Wa(0==u[2].length,0==t[2].length)||Wa(u[2],t[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&&ya(a)?NaN:b}function ab(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function bb(a){var b=s(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(s(a))return s(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},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(s(a))return s(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c; 
return-1},B=eb.forEach?function(a,b,c){eb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},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=s(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[g++]=l)}return e},C=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=s(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=v(b,d));return eb.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;B(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=s(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},kb=eb.every?function(a,b,c){return eb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&!b.call(c,e[g],g,a))return!1; 
return!0};function lb(a,b,c){b=mb(a,b,c);return 0>b?null:s(a)?a.charAt(b):a[b]}function mb(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1}function nb(a,b){var c=ob(a,b,void 0);return 0>c?null:s(a)?a.charAt(c):a[c]}function ob(a,b,c){for(var d=s(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1}function D(a,b){return 0<=fb(a,b)}function E(a){return 0==a.length} 
function pb(a){if(!ha(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function qb(a,b){D(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(ha(d)||(e=ia(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var g=a.length,h=d.length,k=0;k<h;k++)a[g+k]=d[k];else a.push(d)}}function 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=la(e)?"o"+ma(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,g)||(b[g]=!0,a[c++]=e)}a.length=c}function 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 Db(a,b){var c=Bb;Cb(a,function(a,e){return c(a[b],e[b])})} 
function Eb(a,b,c){if(!ia(a)||!ia(b)||a.length!=b.length)return!1;var d=a.length;c=c||Fb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Bb(a,b){return a>b?1:a<b?-1:0}function Fb(a,b){return a===b}function Gb(a,b,c){c=Ab(a,b,c);0>c&&xb(a,-(c+1),0,b)}function Hb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];ha(d)?b.push.apply(b,Hb.apply(null,d)):b.push(d)}return b};function Ib(a,b,c){return Math.min(Math.max(a,b),c)}function Kb(a,b,c){return a+c*(b-a)};function F(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=F.prototype;f.clone=function(){return new F(this.x,this.y)};function Lb(a,b){return new F(a.x-b.x,a.y-b.y)}f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};f.scale=function(a,b){var c=ja(b)?b:a;this.x*=a;this.y*=c;return this};function G(a,b){this.width=a;this.height=b}function Mb(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=G.prototype;f.clone=function(){return new G(this.width,this.height)};f.isEmpty=function(){return!(this.width*this.height)};f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; 
f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ja(b)?b:a;this.width*=a;this.height*=c;return this};function Nb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ob(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Pb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Qb(a){var b=0,c;for(c in a)b++;return b}function Rb(a){for(var b in a)return a[b]}function Sb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Tb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ub(a,b){for(var c in a)if(a[c]==b)return!0;return!1} 
function Vb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Wb(a){var b=Xb;return(a=Vb(b,a,void 0))&&b[a]}function Yb(a){for(var b in a)return!1;return!0}function Zb(a){for(var b in a)delete a[b]}function $b(a,b){return b in a?a[b]:void 0}function ac(a){var b={},c;for(c in a)b[c]=a[c];return b}function bc(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]=bc(a[c]);return b}return a}var cc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); 
function dc(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<cc.length;g++)c=cc[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function ec(a){var b=arguments.length;if(1==b&&ha(arguments[0]))return ec.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var fc;t:{var gc=m.navigator;if(gc){var hc=gc.userAgent;if(hc){fc=hc;break t}}fc=""}function ic(a){return Ma(fc,a)};var jc,kc,lc,mc,nc;function oc(){return m.navigator||null}var pc=ic("Opera")||ic("OPR"),qc=ic("Trident")||ic("MSIE"),rc=ic("Gecko")&&!Qa(fc,"WebKit")&&!(ic("Trident")||ic("MSIE")),sc=Qa(fc,"WebKit"),tc=sc&&ic("Mobile"),uc=oc(),vc=uc&&uc.platform||"";jc=Ma(vc,"Mac");kc=Ma(vc,"Win");lc=!!oc()&&Ma(oc().appVersion||"","X11");var wc=fc;mc=!!wc&&Ma(wc,"Android");nc=!!wc&&Ma(wc,"iPhone");var xc=!!wc&&Ma(wc,"iPad");function yc(){var a=m.document;return a?a.documentMode:void 0} 
var zc=function(){var a="",b;if(pc&&m.opera)return a=m.opera.version,ka(a)?a():a;rc?b=/rv\:([^\);]+)(\)|;)/:qc?b=/(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:sc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(fc))?a[1]:"");return qc&&(b=yc(),b>parseFloat(a))?String(b):a}(),Ac={};function Bc(a){return Ac[a]||(Ac[a]=0<=Va(zc,a))}function Cc(a){return qc&&Dc>=a}var Ec=m.document,Dc=Ec&&qc?yc()||("CSS1Compat"==Ec.compatMode?parseInt(zc,10):5):void 0;var Fc=!qc||Cc(9),Gc=!rc&&!qc||qc&&Cc(9)||rc&&Bc("1.9.1"),Hc=qc&&!Bc("9"),Ic=qc||pc||sc;function Jc(a){return a?new Kc(Lc(a)):va||(va=new Kc)}function Mc(a){return s(a)?document.getElementById(a):a}function Nc(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Oc("*",a,b)}function H(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Oc("*",a,b)[0];return d||null} 
function Oc(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&&D(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c} 
function Pc(a,b){Nb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Qc?a.setAttribute(Qc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Qc={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 Rc(a){a=a.document;a=Sc(a)?a.documentElement:a.body;return new G(a.clientWidth,a.clientHeight)}function Tc(a){var b=Uc(a);a=a.parentWindow||a.defaultView;return qc&&Bc("10")&&a.pageYOffset!=b.scrollTop?new F(b.scrollLeft,b.scrollTop):new F(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Uc(a){return!sc&&Sc(a)?a.documentElement:a.body||a.documentElement}function Vc(a){return a?a.parentWindow||a.defaultView:window}function I(a,b,c){return Wc(document,arguments)} 
function Wc(a,b){var c=b[0],d=b[1];if(!Fc&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Da(d.name),'"');if(d.type){c.push(' type="',Da(d.type),'"');var e={};dc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(s(d)?c.className=d:ha(d)?c.className=d.join(" "):Pc(c,d));2<b.length&&Xc(a,c,b,2);return c}function Xc(a,b,c,d){function e(c){c&&b.appendChild(s(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ia(g)||la(g)&&0<g.nodeType?e(g):B(Yc(g)?vb(g):g,e)}} 
function Zc(a){return document.createElement(a)}function $c(a){return document.createTextNode(String(a))}function Sc(a){return"CSS1Compat"==a.compatMode}function ad(a,b){a.appendChild(b)}function bd(a,b){Xc(Lc(a),a,arguments,1)}function cd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function dd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function ed(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function fd(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)} 
function gd(a){return Gc&&void 0!=a.children?a.children:hb(a.childNodes,function(a){return 1==a.nodeType})}function hd(a){return void 0!=a.firstElementChild?a.firstElementChild:id(a.firstChild)}function id(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function jd(a){var b;if(Ic&&!(qc&&Bc("9")&&!Bc("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return la(b)&&1==b.nodeType?b:null} 
function kd(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 Lc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function ld(a){return a.contentWindow||Vc(a.contentDocument||a.contentWindow.document)} 
function md(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{cd(a);var c=Lc(a);a.appendChild(c.createTextNode(String(b)))}}function nd(a,b){var c=[];return od(a,b,c,!0)?c[0]:void 0}function od(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||od(a,b,c,d))return!0;a=a.nextSibling}return!1} 
var pd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},qd={IMG:" ",BR:"
"};function rd(a,b,c){if(!(a.nodeName in pd))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(
|
|
)/g,"")):b.push(a.nodeValue);else if(a.nodeName in qd)b.push(qd[a.nodeName]);else for(a=a.firstChild;a;)rd(a,b,c),a=a.nextSibling}function Yc(a){if(a&&"number"==typeof a.length){if(la(a))return"function"==typeof a.item||"string"==typeof a.item;if(ka(a))return"function"==typeof a.item}return!1} 
function sd(a,b,c){if(!b&&!c)return null;var d=b?b.toUpperCase():null;return td(a,function(a){return(!d||a.nodeName==d)&&(!c||s(a.className)&&D(a.className.split(/\s+/),c))},!0)}function ud(a,b){return sd(a,null,b)}function td(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 Kc(a){this.b=a||m.document||document}f=Kc.prototype;f.K=function(a){return s(a)?this.b.getElementById(a):a};f.setProperties=Pc; 
f.oC=function(a,b,c){return Wc(this.b,arguments)};f.createElement=function(a){return this.b.createElement(a)};function vd(a){return Sc(a.b)}function wd(a){a=a.b;return a.parentWindow||a.defaultView}function xd(a){return Tc(a.b)}f.appendChild=ad;f.append=bd;f.contains=kd;var yd="StopIteration"in m?m.StopIteration:Error("StopIteration");function Ad(){}Ad.prototype.next=function(){throw yd;};Ad.prototype.gc=function(){return this};function Bd(a){if(a instanceof Ad)return a;if("function"==typeof a.gc)return a.gc(!1);if(ia(a)){var b=0,c=new Ad;c.next=function(){for(;;){if(b>=a.length)throw yd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");} 
function Cd(a,b,c){if(ia(a))try{B(a,b,c)}catch(d){if(d!==yd)throw d;}else{a=Bd(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==yd)throw e;}}}function Dd(a){if(ia(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.ea=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Ed?(c=a.La(),d=a.Sa()):(c=Tb(a),d=Sb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=Ed.prototype;f.Pa=function(){return this.ea};f.Sa=function(){Fd(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};f.La=function(){Fd(this);return this.b.concat()}; 
function Gd(a,b){return Hd(a.g,b)}f.wg=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.ea!=a.Pa())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.ea};f.clear=function(){this.g={};this.j=this.ea=this.b.length=0}; 
f.remove=function(a){return Hd(this.g,a)?(delete this.g[a],this.ea--,this.j++,this.b.length>2*this.ea&&Fd(this),!0):!1};function Fd(a){if(a.ea!=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.ea!=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.ea++,this.b.push(a),this.j++);this.g[a]=b}; 
f.forEach=function(a,b){for(var c=this.La(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};f.clone=function(){return new Ed(this)};f.gc=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 yd;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.Pa?a.Pa():ia(a)||s(a)?a.length:Qb(a)}function Kd(a){if("function"==typeof a.Sa)return a.Sa();if(s(a))return a.split("");if(ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Sb(a)}function Ld(a){if("function"==typeof a.La)return a.La();if("function"!=typeof a.Sa){if(ia(a)||s(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Tb(a)}} 
function Md(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(ia(a)||s(a))B(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(ia(a)||s(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=sc;function Td(a){return a?decodeURI(a):a}function Sd(a){return Td(Qd(a)[3]||null)} 
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(ha(b))for(var d=0;d<b.length;d++)Vd(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",Ba(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("=",Ba(c));return Ud(a)};function J(a,b){var c;a instanceof J?(this.lf=n(b)?b:a.lf,ee(this,a.Mb),this.kf=a.kf,fe(this,a.Fb),ge(this,a.jf),he(this,a.Ub),ie(this,a.b.clone()),this.fg=a.bh()):a&&(c=Qd(String(a)))?(this.lf=!!b,ee(this,c[1]||"",!0),this.kf=je(c[2]||""),fe(this,c[3]||"",!0),ge(this,c[4]),he(this,c[5]||"",!0),ie(this,c[6]||"",!0),this.fg=je(c[7]||"")):(this.lf=!!b,this.b=new ke(null,0,this.lf))}f=J.prototype;f.Mb="";f.kf="";f.Fb="";f.jf=null;f.Ub="";f.fg="";f.lf=!1; 
f.toString=function(){var a=[],b=this.Mb;b&&a.push(le(b,me,!0),":");if(b=this.Fb){a.push("//");var c=this.kf;c&&a.push(le(c,me,!0),"@");a.push(Ba(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.jf;null!=b&&a.push(":",String(b))}if(b=this.Ub)this.Fb&&"/"!=b.charAt(0)&&a.push("/"),a.push(le(b,"/"==b.charAt(0)?ne:oe,!0));(b=this.b.toString())&&a.push("?",b);(b=this.bh())&&a.push("#",le(b,pe));return a.join("")}; 
f.resolve=function(a){var b=this.clone(),c=!!a.Mb;c?ee(b,a.Mb):c=!!a.kf;c?b.kf=a.kf:c=!!a.Fb;c?fe(b,a.Fb):c=null!=a.jf;var d=a.Ub;if(c)ge(b,a.jf);else if(c=!!a.Ub){if("/"!=d.charAt(0))if(this.Fb&&!this.Ub)d="/"+d;else{var e=b.Ub.lastIndexOf("/");-1!=e&&(d=b.Ub.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.fg;c&&(b.fg=a.bh());return b};f.clone=function(){return new J(this)};function ee(a,b,c){a.Mb=c?je(b,!0):b;a.Mb&&(a.Mb=a.Mb.replace(/:$/,""));return a}function re(a){return a.Fb}function fe(a,b,c){a.Fb=c?je(b,!0):b;return a}function ge(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.jf=b}else a.jf=null;return a} 
function he(a,b,c){a.Ub=c?je(b,!0):b}function ie(a,b,c){b instanceof ke?(a.b=b,se(a.b,a.lf)):(c||(b=le(b,te)),a.b=new ke(b,0,a.lf));return a}function ue(a){return a.b}function K(a,b,c){a.b.set(b,c);return a}function ve(a,b,c){ha(c)||(c=[String(c)]);we(a.b,b,c)}f.bh=function(){return this.fg};function xe(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36));return a} 
function ye(a){return a instanceof J?a.clone():new J(a,void 0)}function ze(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,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function le(a,b,c){return s(a)?(a=encodeURI(a).replace(b,Ae),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Ae(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var me=/[#\/\?@]/g,oe=/[\#\?:]/g,ne=/[\#\?]/g,te=/[\#\?@]/g,pe=/#/g; 
function ke(a,b,c){this.b=a||null;this.g=!!c}function Be(a){if(!a.cb&&(a.cb=new Ed,a.ea=0,a.b))for(var b=a.b.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null,g=null;0<=d?(e=b[c].substring(0,d),g=b[c].substring(d+1)):e=b[c];e=Ca(e);e=Ce(a,e);a.add(e,g?Ca(g):"")}}f=ke.prototype;f.cb=null;f.ea=null;f.Pa=function(){Be(this);return this.ea};f.add=function(a,b){Be(this);this.b=null;a=Ce(this,a);var c=this.cb.get(a);c||this.cb.set(a,c=[]);c.push(b);this.ea++;return this}; 
f.remove=function(a){Be(this);a=Ce(this,a);return Gd(this.cb,a)?(this.b=null,this.ea-=this.cb.get(a).length,this.cb.remove(a)):!1};f.clear=function(){this.cb=this.b=null;this.ea=0};f.isEmpty=function(){Be(this);return 0==this.ea};function De(a,b){Be(a);b=Ce(a,b);return Gd(a.cb,b)}f.wg=function(a){var b=this.Sa();return D(b,a)};f.La=function(){Be(this);for(var a=this.cb.Sa(),b=this.cb.La(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c}; 
f.Sa=function(a){Be(this);var b=[];if(s(a))De(this,a)&&(b=ub(b,this.cb.get(Ce(this,a))));else{a=this.cb.Sa();for(var c=0;c<a.length;c++)b=ub(b,a[c])}return b};f.set=function(a,b){Be(this);this.b=null;a=Ce(this,a);De(this,a)&&(this.ea-=this.cb.get(a).length);this.cb.set(a,[b]);this.ea++;return this};f.get=function(a,b){var c=a?this.Sa(a):[];return 0<c.length?String(c[0]):b};function we(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.cb.set(Ce(a,b),vb(c)),a.ea+=c.length)} 
f.toString=function(){if(this.b)return this.b;if(!this.cb)return"";for(var a=[],b=this.cb.La(),c=0;c<b.length;c++)for(var d=b[c],e=Ba(d),d=this.Sa(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+Ba(d[g]));a.push(h)}return this.b=a.join("&")};f.clone=function(){var a=new ke;a.b=this.b;this.cb&&(a.cb=this.cb.clone(),a.ea=this.ea);return a};function Ce(a,b){var c=String(b);a.g&&(c=c.toLowerCase());return c} 
function se(a,b){b&&!a.g&&(Be(a),a.b=null,a.cb.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),we(this,e,a))},a));a.g=b};var Ee=/^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\/)/,Fe=/^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]+)?([\/\?\#]|$)/,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]+)?\/embed\//, 
He=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,Ie=/^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Je=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,Ke=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Le=/^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]+)?([\/\?\#]|$)/, 
Me=/^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]+)?([\/\?\#]|$))/,Ne=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/, 
Oe=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|24e12c4a-a-95274a9c-s-sites.googlegroups.com\/a\/google.com\/flash-api-test-harness\/apiharness.swf|([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|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){ka(a)&&(a=Ue(a));return window.setTimeout(a,b)}function Ve(a,b){ka(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} 
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 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(Le),c=cf(a);b!=c&&Xe(Error(a+" behavior is not consistent"));return c}function gf(){var a=document.location.toString(),b=!!a&&-1!=a.search(Ge),c=-1!=a.indexOf("/embed/");b!=c&&Xe(Error(a+" behavior is not consistent"));return c}function hf(a){var b=!!a&&-1!=a.search(Oe),c=cf(a)||df(a,af);b!=c&&Xe(Error(a+" behavior is not consistent"));return c} 
function jf(a){var b=!!a&&-1!=a.search(Me),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 kf(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 lf(a){a=new J(a);ee(a,document.location.protocol);return a.toString()};var mf={},nf=0,of=q("yt.net.ping.workerUrl_")||null;ba("yt.net.ping.workerUrl_",of,void 0);function pf(a,b,c){a&&(c?a&&(a=I("iframe",{src:'javascript:"data:text/html,<body><img src=\"'+a+'\"></body>"',style:"display:none"}),Lc(a).body.appendChild(a)):qf(a,b))}function qf(a,b){var c=new Image,d=""+nf++;mf[d]=c;c.onload=c.onerror=function(){b&&mf[d]&&b();delete mf[d]};c.src=a;c=eval("null")};function rf(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s]*$/.test(a.replace(/\["\\/bfnrtu]/g,"@").replace(/"[^"\

-
-]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function sf(a){return eval("("+a+")")}function tf(a){return uf(new vf(void 0),a)}function vf(a){this.b=a} 
function uf(a,b){var c=[];wf(a,b,c);return c.join("")} 
function wf(a,b,c){switch(typeof b){case "string":xf(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(null==b){c.push("null");break}if(ha(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],wf(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),xf(g,c), 
c.push(":"),wf(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 yf={'"':'\"',"\":"\\","/":"\/","":"\b","":"\f","
":"\n","
":"\r","	":"\t","":"\u000b"},zf=//.test("")?/[\\"--]/g:/[\\"--]/g; 
function xf(a,b){b.push('"',a.replace(zf,function(a){if(a in yf)return yf[a];var b=a.charCodeAt(0),e="\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return yf[a]=e+b.toString(16)}),'"')};function Af(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=Af.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new Af(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof Af?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; 
f.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};f.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};f.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; 
f.scale=function(a,b){var c=ja(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Bf(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=Bf.prototype;f.clone=function(){return new Bf(this.left,this.top,this.width,this.height)};function Cf(a){return new Bf(a.left,a.top,a.right-a.left,a.bottom-a.top)}function Df(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 Bf?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 Ef(a){return new G(a.width,a.height)}f.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; 
f.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};f.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ja(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Ff(a){Ff[" "](a);return a}Ff[" "]=ca;function Gf(){return sc?"Webkit":rc?"Moz":qc?"ms":pc?"O":null}function Hf(){return sc?"-webkit":rc?"-moz":qc?"-ms":pc?"-o":null}function If(a,b){if(b&&a in b)return a;var c=Gf();return c?(c=c.toLowerCase(),c+=bb(a),!n(b)||c in b?c:null):null};function Jf(a,b,c){s(b)?Kf(a,c,b):Nb(b,sa(Kf,a))}function Kf(a,b,c){(c=Lf(a,c))&&(a.style[c]=b)}function Lf(a,b){var c=ab(b);if(void 0===a.style[c]){var d=Gf()+bb(c);if(void 0!==a.style[d])return d}return c}function Mf(a,b){var c=Lc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Nf(a,b){return Mf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]} 
function Of(a,b,c){var d,e=rc&&(jc||lc)&&Bc("1.9");b instanceof F?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Pf(d,e);a.style.top=Pf(b,e)}function Qf(a){return new F(a.offsetLeft,a.offsetTop)}function Rf(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}qc&&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 Sf(a){if(qc&&!Cc(8))return a.offsetParent;var b=Lc(a),c=Nf(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Nf(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 Tf(a){for(var b=new Af(0,Infinity,Infinity,0),c=Jc(a),d=c.b.body,e=c.b.documentElement,g=Uc(c.b);a=Sf(a);)if(!(qc&&0==a.clientWidth||sc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Nf(a,"overflow")){var h=Uf(a),k;k=a;if(rc&&!Bc("1.9")){var l=parseFloat(Mf(k,"borderLeftWidth"));if(Vf(k))var p=k.offsetWidth-k.clientWidth-l-parseFloat(Mf(k,"borderRightWidth")),l=l+p;k=new F(l,parseFloat(Mf(k,"borderTopWidth")))}else k=new F(k.clientLeft,k.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top, 
h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);c=Rc(wd(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 Uf(a){var b,c=Lc(a),d=Nf(a,"position"),e=rc&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),g=new F(0,0),h;b=c?Lc(c):document;h=!qc||Cc(9)||vd(Jc(b))?b.documentElement:b.body;if(a==h)return g;if(a.getBoundingClientRect)b=Rf(a),a=xd(Jc(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(sc&&"fixed"==Nf(b,"position")){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(pc||sc&&"absolute"==d)g.y-=c.body.offsetTop;for(b=a;(b=Sf(b))&&b!=c.body&&b!=h;)g.x-=b.scrollLeft,pc&&"TR"==b.tagName||(g.y-=b.scrollTop)}return g} 
function Wf(a){var b;if(a.getBoundingClientRect)b=Rf(a),b=new F(b.left,b.top);else{b=xd(Jc(a));var c=Uf(a);b=new F(c.x-b.x,c.y-b.y)}if(rc&&!Bc(12)){i:{c=ab("transform");if(void 0===a.style[c]&&(c=Gf()+bb(c),void 0!==a.style[c])){c=Hf()+"-transform";break i}c="transform"}a=(a=Nf(a,c)||Nf(a,"transform"))?(a=a.match(Xf))?new F(parseFloat(a[1]),parseFloat(a[2])):new F(0,0):new F(0,0);a=new F(b.x+a.x,b.y+a.y)}else a=b;return a} 
function Yf(a){if(1==a.nodeType)return Wf(a);var b=ka(a.IC),c=a;a.targetTouches&&a.targetTouches.length?c=a.targetTouches[0]:b&&a.b.targetTouches&&a.b.targetTouches.length&&(c=a.b.targetTouches[0]);return new F(c.clientX,c.clientY)}function Zf(a,b,c){if(b instanceof G)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");$f(a,b);a.style.height=Pf(c,!0)}function Pf(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function $f(a,b){a.style.width=Pf(b,!0)} 
function ag(a){return bg(a)}function bg(a){var b=cg;if("none"!=Nf(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=sc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new G(b,c):(a=Rf(a),new G(a.right-a.left,a.bottom-a.top))} 
function dg(a){var b=Uf(a);a=bg(a);return new Bf(b.x,b.y,a.width,a.height)}function fg(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 gg(a,b){a.style.display=b?"":"none"}function Vf(a){return"rtl"==Nf(a,"direction")} 
function hg(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 ig(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?hg(a,c):0}var jg={thin:2,medium:4,thick:6}; 
function kg(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 jg?jg[c]:hg(a,c)}function lg(a){if(qc&&!Cc(9)){var b=kg(a,"borderLeft"),c=kg(a,"borderRight"),d=kg(a,"borderTop");a=kg(a,"borderBottom");return new Af(d,c,a,b)}b=Mf(a,"borderLeftWidth");c=Mf(a,"borderRightWidth");d=Mf(a,"borderTopWidth");a=Mf(a,"borderBottomWidth");return new Af(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))} 
var mg=/[^\d]+$/,ng={cm:1,"in":1,mm:1,pc:1,pt:1},og={em:1,ex:1};function pg(a){var b=Nf(a,"fontSize"),c;c=(c=b.match(mg))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(qc){if(c in ng)return hg(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in og)return a=a.parentNode,c=Nf(a,"fontSize"),hg(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;ed(c);return b}var Xf=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function qg(a){if(a.classList)return a.classList;a=a.className;return s(a)&&a.match(/\S+/g)||[]}function rg(a,b){return a.classList?a.classList.contains(b):D(qg(a),b)}function O(a,b){a.classList?a.classList.add(b):rg(a,b)||(a.className+=0<a.className.length?" "+b:b)}function sg(a,b){if(a.classList)B(b,function(b){O(a,b)});else{var c={};B(qg(a),function(a){c[a]=!0});B(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}} 
function P(a,b){a.classList?a.classList.remove(b):rg(a,b)&&(a.className=hb(qg(a),function(a){return a!=b}).join(" "))}function tg(a,b){a.classList?B(b,function(b){P(a,b)}):a.className=hb(qg(a),function(a){return!D(b,a)}).join(" ")}function Q(a,b,c){c?O(a,b):P(a,b)}function ug(a,b){var c=!rg(a,b);Q(a,b,c);return c};function vg(a,b,c){a&&(a.dataset?a.dataset[wg(b)]=c:a.setAttribute("data-"+b,c))}function xg(a,b){return a?a.dataset?a.dataset[wg(b)]:a.getAttribute("data-"+b):null}function yg(a,b){a&&(a.dataset?delete a.dataset[wg(b)]:a.removeAttribute("data-"+b))}var zg={};function wg(a){return zg[a]||(zg[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var Ag=sc?"webkit":rc?"moz":qc?"ms":pc?"o":"";function Bg(a){var b=a.__yt_uid_key;b||(b=Cg(),a.__yt_uid_key=b);return b}var Cg=q("yt.dom.getNextId_");if(!Cg){Cg=function(){return++Dg};ba("yt.dom.getNextId_",Cg,void 0);var Dg=0}function Eg(a,b){var c=Oc(a,null,b);return c.length?c[0]:null}function Fg(a,b){if(a in b)return b[a];var c=Ag+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function Gg(a,b){var c;jb(a,function(a){c=Fg(a,b);return!!c});return c} 
function Hg(a){Q(document.body,"hide-players",!0);a&&Q(a,"preserve-players",!0)}function Ig(){Q(document.body,"hide-players",!1);var a=Nc("preserve-players");B(a,function(a){P(a,"preserve-players")})};function Jg(a){if(a=a||window.event){for(var b in a)b in Kg||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.dc=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 Lg(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 Mg(a){n(a.b)||Lg(a);return a.b}function Ng(a){n(a.g)||Lg(a);return a.g}f=Jg.prototype;f.dc=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.dc.returnValue=!1;this.dc.preventDefault&&this.dc.preventDefault()}; 
f.stopPropagation=function(){this.dc.cancelBubble=!0;this.dc.stopPropagation&&this.dc.stopPropagation()};f.stopImmediatePropagation=function(){this.dc.cancelBubble=!0;this.dc.stopImmediatePropagation&&this.dc.stopImmediatePropagation()};var Kg={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Og=q("yt.events.listeners_")||{};ba("yt.events.listeners_",Og,void 0);var Pg=q("yt.events.counter_")||{count:0};ba("yt.events.counter_",Pg,void 0);function Qg(a,b,c,d){return Vb(Og,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})} 
function Rg(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Qg(a,b,c,d);if(e)return e;var e=++Pg.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new Jg(d);if(!td(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Jg(b);b.currentTarget=a;return c.call(a,b)};h=Ue(h);Og[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 Sg(a,b){var c;c=Rg(a,"playing",function(){Tg(c);b.apply(a,arguments)},void 0)}function Ug(a,b,c,d){return Vg(a,b,c,function(a){return rg(a,d)})} 
function Vg(a,b,c,d){var e=a||document;return Rg(e,b,function(a){var b=td(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Tg(a){a&&("string"==typeof a&&(a=[a]),B(a,function(a){if(a in Og){var c=Og[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 Og[a]}}))}function Wg(a){for(var b in Og)Og[b][0]==a&&Tg(b)} 
function Xg(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 Yg(){return!!Gg(["fullscreenEnabled","fullScreenEnabled"],document)}function Zg(){return Gg(["fullscreenElement","fullScreenElement"],document)};function $g(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ac(ah);this.assets=a.assets||{};this.attrs=a.attrs||ac(bh);this.params=a.params||ac(ch);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 ah={enablejsapi:1},bh={},ch={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"}; 
$g.prototype.clone=function(){var a=new $g,b;for(b in this){var c=this[b];"object"==ea(c)?a[b]=ac(c):a[b]=c}return a};var dh,eh,fh,gh,hh,ih,jh;jh=ih=hh=gh=fh=eh=dh=!1;var kh=fc;kh&&(-1!=kh.indexOf("Firefox")?dh=!0:-1!=kh.indexOf("Camino")?eh=!0:-1!=kh.indexOf("iPhone")||-1!=kh.indexOf("iPod")?fh=!0:-1!=kh.indexOf("iPad")?gh=!0:-1!=kh.indexOf("Chrome")?ih=!0:-1!=kh.indexOf("Android")?hh=!0:-1!=kh.indexOf("Safari")&&(jh=!0));var lh=dh,mh=eh,nh=fh,oh=gh,ph=hh,qh=ih,rh=jh;var sh=w(),th=null,uh=Array(50),vh=-1,wh=!1;function xh(){var a=yh;zh();th.push(a);Ah(th)}function Bh(a,b){zh();var c=th,d=Ch(a,String(b));E(c)?Dh(d):(Ah(c),B(c,function(a){a(d)}))}function zh(){th||(th=q("yt.mdx.remote.debug.handlers_")||[],ba("yt.mdx.remote.debug.handlers_",th,void 0))}function Dh(a){var b=(vh+1)%50;vh=b;uh[b]=a;wh||(wh=49==b)}function Ah(a){var b=uh;if(b[0]){var c=vh,d=wh?c:-1;do{var d=(d+1)%50,e=b[d];B(a,function(a){a(e)})}while(d!=c);uh=Array(50);vh=-1;wh=!1}} 
function Ch(a,b){var c=(w()-sh)/1E3;c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"
");return d.join("")};function Eh(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""}function Fh(a,b){return!!b&&(a.id==b||a.uuid==b)}function Gh(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 Hh(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function Ih(a){return new Eh(a)}function Jh(a){return ha(a)?C(a,Ih):[]} 
function Kh(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 Lh(a){return ha(a)?"["+C(a,Kh).join(",")+"]":"null"};function Mh(){}Mh.prototype.Rd=!1;Mh.prototype.ha=function(){return this.Rd};Mh.prototype.dispose=function(){this.Rd||(this.Rd=!0,this.J())};function R(a,b){Nh(a,sa(Oh,b))}function Nh(a,b){a.yb||(a.yb=[]);a.yb.push(n(void 0)?v(b,void 0):b)}Mh.prototype.J=function(){if(this.yb)for(;this.yb.length;)this.yb.shift()()};function Ph(a){return a&&"function"==typeof a.ha?a.ha():!1}function Oh(a){a&&"function"==typeof a.dispose&&a.dispose()} 
function Qh(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ia(d)?Qh.apply(null,d):Oh(d)}};function Rh(){this.b=[];this.kc={}}x(Rh,Mh);f=Rh.prototype;f.xs=1;f.Tj=0;f.subscribe=function(a,b,c){var d=this.kc[a];d||(d=this.kc[a]=[]);var e=this.xs;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.xs=e+3;d.push(e);return e};f.ga=function(a,b,c){if(a=this.kc[a]){var d=this.b;if(a=lb(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Ob(a)}return!1}; 
f.Ob=function(a){if(0!=this.Tj)return this.g||(this.g=[]),this.g.push(a),!1;var b=this.b[a];if(b){var c=this.kc[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.kc[a];if(c){this.Tj++;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.Tj--;if(this.g&&0==this.Tj)for(;c=this.g.pop();)this.Ob(c);return 0!=e}return!1}; 
f.clear=function(a){if(a){var b=this.kc[a];b&&(B(b,this.Ob,this),delete this.kc[a])}else this.b.length=0,this.kc={}};f.Pa=function(a){if(a){var b=this.kc[a];return b?b.length:0}a=0;for(b in this.kc)a+=this.Pa(b);return a};f.J=function(){Rh.G.J.call(this);delete this.b;delete this.kc;delete this.g};var Sh=q("yt.pubsub.instance_")||new Rh;Rh.prototype.subscribe=Rh.prototype.subscribe;Rh.prototype.unsubscribeByKey=Rh.prototype.Ob;Rh.prototype.publish=Rh.prototype.H;Rh.prototype.clear=Rh.prototype.clear;ba("yt.pubsub.instance_",Sh,void 0);var Th=q("yt.pubsub.subscribedKeys_")||{};ba("yt.pubsub.subscribedKeys_",Th,void 0);var Uh=q("yt.pubsub.topicToKeys_")||{};ba("yt.pubsub.topicToKeys_",Uh,void 0);var Vh=q("yt.pubsub.isSynchronous_")||{};ba("yt.pubsub.isSynchronous_",Vh,void 0); 
var Wh=q("yt.pubsub.skipSubId_")||null;ba("yt.pubsub.skipSubId_",Wh,void 0);function Xh(a,b,c){var d=Yh();if(d){var e=d.subscribe(a,function(){if(!Wh||Wh!=e){var d=arguments,h=function(){Th[e]&&b.apply(c||window,d)};try{Vh[a]?h():L(h,0)}catch(k){Xe(k)}}},c);Th[e]=!0;Uh[a]||(Uh[a]=[]);Uh[a].push(e);return e}return 0}function Zh(a){var b=Yh();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),B(a,function(a){b.unsubscribeByKey(a);delete Th[a]}))} 
function $h(a,b){var c=Yh();return c?c.publish.apply(c,arguments):!1}function ai(a,b){Vh[a]=!0;var c=Yh();c&&c.publish.apply(c,arguments);Vh[a]=!1}function bi(a){Uh[a]&&(a=Uh[a],B(a,function(a){Th[a]&&delete Th[a]}),a.length=0)}function ci(a){var b=Yh();if(b)if(b.clear(a),a)bi(a);else for(var c in Uh)bi(c)}function Yh(){return q("yt.pubsub.instance_")};function di(){};function ei(){}x(ei,di);ei.prototype.Pa=function(){var a=0;Cd(this.gc(!0),function(){a++});return a};ei.prototype.clear=function(){var a=Dd(this.gc(!0)),b=this;B(a,function(a){b.remove(a)})};function fi(a){this.b=a}x(fi,ei);f=fi.prototype;f.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};f.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};f.get=function(a){a=this.b.getItem(a);if(!s(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.b.removeItem(a)}; 
f.Pa=function(){return this.b.length};f.gc=function(a){var b=0,c=this.b,d=new Ad;d.next=function(){if(b>=c.length)throw yd;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!s(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.b.clear()};f.key=function(a){return this.b.key(a)};function gi(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a}x(gi,fi);function hi(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a}x(hi,fi);function ii(a){this.b=a}ii.prototype.set=function(a,b){n(b)?this.b.set(a,tf(b)):this.b.remove(a)};ii.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return rf(b)}catch(d){throw"Storage: Invalid value was encountered";}};ii.prototype.remove=function(a){this.b.remove(a)};function ji(a){this.b=a}x(ji,ii);function ki(a){this.data=a}function li(a){return!n(a)||a instanceof ki?a:new ki(a)}ji.prototype.set=function(a,b){ji.G.set.call(this,a,li(b))};ji.prototype.g=function(a){a=ji.G.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};ji.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 mi(a){this.b=a}x(mi,ji);function ni(a){var b=a.creation;a=a.expiration;return!!a&&a<w()||!!b&&b>w()}mi.prototype.set=function(a,b,c){if(b=li(b)){if(c){if(c<w()){mi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=w()}mi.G.set.call(this,a,b)};mi.prototype.g=function(a,b){var c=mi.G.g.call(this,a);if(c)if(!b&&ni(c))mi.prototype.remove.call(this,a);else return c};function oi(a){this.b=a}x(oi,mi);function pi(a,b){var c=[];Cd(b,function(a){var b;try{b=oi.prototype.g.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?ni(b)&&c.push(a):c.push(a)},a);return c}function qi(a,b){var c=pi(a,b);B(c,function(a){oi.prototype.remove.call(this,a)},a)}oi.prototype.j=function(){qi(this,this.b.gc(!0))};function ri(a,b,c){var d=c&&0<c?c:0;c=d?w()+1E3*d:0;if((d=d?si:ti)&&window.JSON){s(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function ui(a){if(!ti&&!si||!window.JSON)return null;var b;try{b=ti.get(a)}catch(c){}if(!s(b))try{b=si.get(a)}catch(d){}if(!s(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function vi(a){ti&&ti.remove(a);si&&si.remove(a)}var si,wi=new gi;si=wi.isAvailable()?new oi(wi):null;var ti,xi=new hi;ti=xi.isAvailable()?new oi(xi):null;function yi(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=Ca(h[0]||""),h=Ca(h[1]||"");k in d?ha(d[k])?wb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function zi(a,b){var c=[];Nb(a,function(a,b){var g=Ba(b),h;ha(a)?h=a:h=[a];B(h,function(a){""==a?c.push(g):c.push(g+"="+Ba(a))})});return c.join(b)}function Ai(a){"?"==a.charAt(0)&&(a=a.substr(1));return yi(a,"&")} 
function Bi(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Ai(1<a.length?a[1]:a[0])):{}}var Ci=Sd;function Di(a){a=Qd(a);return Od(a[1],a[2],a[3],a[4])}function Ei(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=Ai(d[1]||""),e;for(e in b)d[e]=b[e];return $d(a,d)+c};var Fi=null;"undefined"!=typeof XMLHttpRequest?Fi=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Fi=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Gi(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 Hi(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Ue(b)(l)}var l=Fi&&Fi();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=Ii(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 Ii(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=Ci(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?Ci(d)==e&&(Number(Qd(d)[4]||null)||null)==(Number(Qd(a)[4]||null)||null):!0;c=d||Ji(a)}c&&(b["X-YouTube-Page-CL"]=Te("PAGE_CL"),b["X-YouTube-Page-Timestamp"]=Te("PAGE_BUILD_TIMESTAMP"));return b} 
function Ji(a){var b=["X-YouTube-Page-CL","X-YouTube-Page-Timestamp"],c=Te("CORS_HEADER_WHITELIST")||{};a=Ci(a);if(!a)return!0;var d=c[a];return d?kb(b,function(a){return D(d,a)}):!1}function Ki(a,b){var c=Te("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.GF&&(!Ci(a)||Ci(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Nb&&b.Nb[c])} 
function Li(a,b){var c=b.format||"JSON";b.FF&&(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.jg;g&&(g[d]&&delete g[d],a=Ei(a,g));var h=b.Tx||"",g=b.Nb;Ki(a,b)&&(g||(g={}),g[d]=e);g&&s(h)&&(d=Ai(h),dc(d,g),h=Yd(d));var k=!1,l,p=Hi(a,function(a){if(!k){k=!0;l&&M(l);var d=Gi(a),e=null;if(d||400<=a.status&&500>a.status)e=Mi(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.Bb&&b.Bb.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.qh&&0<b.timeout&&(l=L(function(){k||(k=!0,p.abort(),M(l),b.qh.call(b.context||m,p))},b.timeout))} 
function Mi(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=sf(d));break;case "XML":if(d=(d=b.responseXML)?Ni(d):null)c={},B(d.getElementsByTagName("*"),function(a){c[a.tagName]=Oi(a)})}return c}function Ni(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Oi(a){var b="";B(a.childNodes,function(a){b+=a.nodeValue});return b} 
var Pi={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"},Qi={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 Ri(a,b,c,d){if(Te("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=Di(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Pi.watch_actions_ajax]=1;Li(e,{format:"RAW",method:"GET",jg:g,Bb:function(a){var b=Ai(a.responseText);b[Qi.watch_actions_ajax]?c&&c():d&&d(a,b)}})}};function Si(){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=fc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Va(a,"10.0")&&(this.b=!1))}function Ti(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 Ui(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Ui.prototype.id="";Ui.prototype.name="";Ui.prototype.activityId="";Ui.prototype.status="UNKNOWN";function Vi(a){return{id:a.id,name:a.name,activityId:a.activityId,status:a.status}}Ui.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"}; 
function Wi(a){a=a||[];return"["+C(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Xi(){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 Yi(a){return C(a,function(a){return{key:a.id,name:a.name}})}function Zi(a){return C(a,function(a){return Vi(a)})}function $i(a){return C(a,function(a){return new Ui(a)})}function aj(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function bj(a,b){return lb(a,function(a){return a.id==b})} 
function cj(a,b){return lb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function dj(a,b){return lb(a,function(a){return Fh(a,b)})};function ej(){this.M=new Rh;R(this,this.M)}x(ej,Mh);ej.prototype.subscribe=function(a,b,c){return this.ha()?0:this.M.subscribe(a,b,c)};ej.prototype.ga=function(a,b,c){return this.ha()?!1:this.M.ga(a,b,c)};ej.prototype.Ob=function(a){return this.ha()?!1:this.M.Ob(a)};ej.prototype.H=function(a,b){return this.ha()?!1:this.M.H.apply(this.M,arguments)};function fj(a){ej.call(this);this.j=a;this.g=[]}x(fj,ej);fj.prototype.rk=function(){return this.g};fj.prototype.contains=function(a){return!!cj(this.g,a)};fj.prototype.get=function(a){return a?dj(this.g,a):null};fj.prototype.info=function(a){Bh(this.j,a)};function gj(a){this.b=a}var hj=/\s*;\s*/;f=gj.prototype;f.set=function(a,b,c,d,e,g){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;
]/.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(w()+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(hj),e=0,g;g=d[e];e++){if(0==g.lastIndexOf(c,0))return g.substr(c.length);if(g==a)return""}return b};f.remove=function(a,b,c){var d=n(this.get(a));this.set(a,"",0,b,c);return d};f.La=function(){return ij(this).keys};f.Sa=function(){return ij(this).Ds};f.isEmpty=function(){return!this.b.cookie};f.Pa=function(){return this.b.cookie?(this.b.cookie||"").split(hj).length:0}; 
f.wg=function(a){for(var b=ij(this).Ds,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=ij(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function ij(a){a=(a.b.cookie||"").split(hj);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,Ds:c}}var jj=new gj(document);jj.g=3950;function kj(a,b){jj.set(""+a,b,void 0,"/","youtube.com")};function lj(){var a=mj(),b=nj();D(a,b);oj()&&Gb(a,b);a=pj(a);E(a)?jj.remove("remote_sid","/","youtube.com"):kj("remote_sid",a.join(","))}function mj(){var a=ui("yt-remote-connected-devices")||[];Cb(a);return a}function pj(a){if(E(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return C(a,function(a,b){return 0==b?a:a.substring(c.length)})}function qj(a){ri("yt-remote-connected-devices",a,86400)} 
function nj(){if(rj)return rj;var a=ui("yt-remote-device-id");a||(a=Xi(),ri("yt-remote-device-id",a,31536E3));for(var b=mj(),c=1,d=a;D(b,d);)c++,d=a+"#"+c;return rj=d}function sj(){return ui("yt-remote-session-browser-channel")}function oj(){return ui("yt-remote-session-screen-id")} 
function tj(a){5<a.length&&(a=a.slice(a.length-5));var b=C(uj(),function(a){return a.loungeToken}),c=C(a,function(a){return a.loungeToken});kb(c,function(a){return!D(b,a)})&&ri("yt-remote-lounge-token-expiration",!0,86400);ri("yt-remote-local-screens",a,31536E3)}function uj(){return ui("yt-remote-local-screens")||[]}function vj(){return ui("yt-remote-online-screens")||[]}function wj(a){ri("yt-remote-online-dial-devices",a,30)}function xj(){return ui("yt-remote-online-dial-devices")||[]} 
function yj(a,b){ri("yt-remote-session-browser-channel",a);ri("yt-remote-session-screen-id",b);var c=mj(),d=nj();D(c,d)||c.push(d);qj(c);lj()}function zj(a){a||vi("yt-remote-session-screen-id");lj();a=mj();rb(a,nj());qj(a)}var rj="";function Aj(){return!!ui("yt-remote-cast-installed")}function Bj(){var a=ui("yt-remote-cast-receiver");return a?a.friendlyName:null}function Cj(){return Aj()?Ej()?Fj.getCastSession():(Dj("getCastSelector: Cast is not initialized."),null):(Dj("getCastSelector: Cast API is not installed!"),null)} 
function Gj(){Aj()?Ej()?Hj()?(Bh("cloudview","Requesting cast selector."),Fj.requestSession()):(Bh("cloudview","Wait for cast API to be ready to request the session."),Ij.push(Xh("yt-remote-cast2-api-ready",Gj))):Dj("requestCastSelector: Cast is not initialized."):Dj("requestCastSelector: Cast API is not installed!")}function Jj(a){Hj()?Ej().setLaunchParams(a):Dj("setLaunchParams called before ready.")}var Fj=null;function Ej(){Fj||(Fj=q("yt.mdx.remote.cloudview.instance_"));return Fj} 
function Dj(a){Bh("cloudview",a)}function Hj(){return!!q("yt.mdx.remote.cloudview.apiReady_")}var Ij=[];function Kj(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||"")}Kj.prototype.id="";Kj.prototype.name="";Kj.prototype.app="";Kj.prototype.type="REMOTE_CONTROL";Kj.prototype.b="";Kj.prototype.equals=function(a){return a?this.id==a.id:!1};function Lj(a,b){this.action=a;this.params=b||null};function Mj(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Nj(a){Bh("CAST",a)}function yh(a){var b=Oj();b&&b.logMessage&&b.logMessage(a)}function Pj(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Qj.length;)Qj.shift()()} 
function Rj(){if(!q("yt.mdx.remote.castv2_")&&!Sj&&(E(Tj)&&wb(Tj,xj()),Mj())){var a=Oj();a?(a.removeReceiverListener("YouTube",Uj),a.addReceiverListener("YouTube",Uj),Nj("API initialized in the other binary")):(a=new cast.Api,Vj(a),a.addReceiverListener("YouTube",Uj),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){L(function(){window.location.reload(!0)},1E3)}),xh(),Nj("API initialized"));Sj=!0}} 
function Wj(){var a=Oj();if(a){Nj("API disposed");var b=q("yt.mdx.remote.debug.handlers_");rb(b||[],yh);a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(ca);a.removeReceiverListener("YouTube",Uj);Vj(null)}Sj=!1;Qj=null;(a=Qg(window,"message",Pj,!1))&&Tg(a)}function Xj(a){var b=mb(Tj,function(b){return b.id==a.id});0<=b&&(Tj[b]=Vi(a))} 
function Uj(a){a.length&&Nj("Updating receivers: "+tf(a));Yj(a);$h("yt-remote-cast-device-list-update");B(Zj(),function(a){ak(a.id)});B(a,function(a){if(a.isTabProjected){var c=bk(a.id);Nj("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");L(function(){$h("yt-remote-cast-device-tab-projected",c.id)},1E3)}})} 
function ck(a,b){Nj("Updating "+a+" activity status: "+tf(b));var c=bk(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=""),Xj(c),$h("yt-remote-cast-device-status-update",c)):Nj("Device not found")}function Zj(){Rj();return $i(Tj)} 
function Yj(a){a=C(a,function(a){var c={id:a.id,name:La(a.name)};if(a=bk(a.id))c.activityId=a.activityId,c.status=a.status;return c});pb(Tj);wb(Tj,a)}function bk(a){var b=Zj();return lb(b,function(b){return b.id==a})||null}function ak(a){var b=bk(a),c=Oj();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");ck(a,b)})} 
function dk(a){Rj();var b=bk(a),c=Oj();c&&b&&b.activityId?(Nj("Stopping cast activity"),c.stopActivity(b.activityId,sa(ck,a))):Nj("Dropping cast activity stop")}function Oj(){return q("yt.mdx.remote.castapi.api_")}function Vj(a){ba("yt.mdx.remote.castapi.api_",a,void 0)}var Sj=!1,Qj=null,Tj=q("yt.mdx.remote.castapi.devices_")||[];ba("yt.mdx.remote.castapi.devices_",Tj,void 0);function ek(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 fk(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ma(a):b.substr(0,1)+a}f=ek.prototype;f.Pa=function(){return this.b.Pa()};f.add=function(a){this.b.set(fk(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(fk(a))};f.clear=function(){this.b.clear()};f.isEmpty=function(){return this.b.isEmpty()}; 
f.contains=function(a){return Gd(this.b,fk(a))};f.Sa=function(){return this.b.Sa()};f.clone=function(){return new ek(this)};f.equals=function(a){return this.Pa()==Jd(a)&&gk(this,a)};function gk(a,b){var c=Jd(b);if(a.Pa()>c)return!1;!(b instanceof ek)&&5<c&&(b=new ek(b));return Nd(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.wg?c.wg(a):ia(c)||s(c)?D(c,a):Ub(c,a)})}f.gc=function(){return this.b.gc(!1)};function hk(){};function ik(){this.b=w()}new ik;ik.prototype.set=function(a){this.b=a};ik.prototype.reset=function(){this.set(w())};ik.prototype.get=function(){return this.b};function S(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1;this.Tr=!0}S.prototype.J=function(){};S.prototype.dispose=function(){};S.prototype.stopPropagation=function(){this.g=!0};S.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Tr=!1};function jk(a){a.stopPropagation()};var kk=!qc||Cc(9),lk=qc&&!Bc("9");!sc||Bc("528");rc&&Bc("1.9b")||qc&&Bc("8")||pc&&Bc("9.5")||sc&&Bc("528");rc&&!Bc("8")||qc&&Bc("9");var mk="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function nk(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)}x(nk,S);f=nk.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(rc){var e;t:{try{Ff(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(){nk.G.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0}; 
f.preventDefault=function(){nk.G.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,lk)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.IC=function(){return this.b};f.J=function(){};var ok="closure_listenable_"+(1E6*Math.random()|0);function pk(a){return!(!a||!a[ok])}var qk=0;function rk(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.cg=!!d;this.Xc=e;this.key=++qk;this.removed=this.Sj=!1}function sk(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Xc=null};function tk(a){this.src=a;this.b={};this.g=0}tk.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=uk(a,b,d,e);-1<h?(b=a[h],c||(b.Sj=!1)):(b=new rk(b,this.src,g,!!d,e),b.Sj=c,a.push(b));return b};tk.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=uk(e,b,c,d);return-1<b?(sk(e[b]),sb(e,b),0==e.length&&(delete this.b[a],this.g--),!0):!1}; 
function vk(a,b){var c=b.type;if(!(c in a.b))return!1;var d=rb(a.b[c],b);d&&(sk(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d}tk.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,sk(d[e]);delete this.b[c];this.g--}return b};function wk(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=uk(a,c,d,e));return-1<b?a[b]:null} 
function uk(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.cg==!!c&&g.Xc==d)return e}return-1};var xk="closure_lm_"+(1E6*Math.random()|0),yk={},zk=0;function Ak(a,b,c,d,e){if(ha(b)){for(var g=0;g<b.length;g++)Ak(a,b[g],c,d,e);return null}c=Bk(c);return pk(a)?a.listen(b,c,d,e):Ck(a,b,c,!1,d,e)}function Ck(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=Dk(a);k||(a[xk]=k=new tk(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=Ek();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(Fk(b.toString()),d);zk++;return c} 
function Ek(){var a=Gk,b=kk?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 Hk(a,b,c,d,e){if(ha(b)){for(var g=0;g<b.length;g++)Hk(a,b[g],c,d,e);return null}c=Bk(c);return pk(a)?a.Kd.add(String(b),c,!0,d,e):Ck(a,b,c,!0,d,e)}function Ik(a,b,c,d,e){if(ha(b))for(var g=0;g<b.length;g++)Ik(a,b[g],c,d,e);else c=Bk(c),pk(a)?a.Ga(b,c,d,e):a&&(a=Dk(a))&&(b=wk(a,b,c,!!d,e))&&Jk(b)} 
function Jk(a){if(ja(a)||!a||a.removed)return!1;var b=a.src;if(pk(b))return vk(b.Kd,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.cg):b.detachEvent&&b.detachEvent(Fk(c),d);zk--;(c=Dk(b))?(vk(c,a),0==c.g&&(c.src=null,b[xk]=null)):sk(a);return!0}function Fk(a){return a in yk?yk[a]:yk[a]="on"+a}function Kk(a,b,c,d){var e=1;if(a=Dk(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.cg==c&&!g.removed&&(e&=!1!==Lk(g,d))}return Boolean(e)} 
function Lk(a,b){var c=a.listener,d=a.Xc||a.src;a.Sj&&Jk(a);return c.call(d,b)} 
function Gk(a,b){if(a.removed)return!0;if(!kk){var c=b||q("window.event"),d=new nk(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&=Kk(c[k],g,!0,d);for(k=0;!d.g&&k<c.length;k++)d.currentTarget=c[k],e&=Kk(c[k],g,!1,d)}return e}return Lk(a,new nk(b,this))} 
function Dk(a){a=a[xk];return a instanceof tk?a:null}var Mk="__closure_events_fn_"+(1E9*Math.random()>>>0);function Bk(a){if(ka(a))return a;a[Mk]||(a[Mk]=function(b){return a.handleEvent(b)});return a[Mk]};function T(){this.Kd=new tk(this);this.ma=this;this.U=null}x(T,Mh);T.prototype[ok]=!0;f=T.prototype;f.Bi=function(a){this.U=a};f.addEventListener=function(a,b,c,d){Ak(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Ik(this,a,b,c,d)}; 
f.S=function(a){var b,c=this.U;if(c){b=[];for(var d=1;c;c=c.U)b.push(c),++d}c=this.ma;d=a.type||a;if(s(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);dc(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=Nk(g,d,!0,a)&&e;a.g||(g=a.currentTarget=c,e=Nk(g,d,!0,a)&&e,a.g||(e=Nk(g,d,!1,a)&&e));if(b)for(h=0;!a.g&&h<b.length;h++)g=a.currentTarget=b[h],e=Nk(g,d,!1,a)&&e;return e}; 
f.J=function(){T.G.J.call(this);this.removeAllListeners();this.U=null};f.listen=function(a,b,c,d){return this.Kd.add(String(a),b,!1,c,d)};f.Ga=function(a,b,c,d){return this.Kd.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.Kd?this.Kd.removeAll(a):0}; 
function Nk(a,b,c,d){b=a.Kd.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.cg==c){var k=h.listener,l=h.Xc||h.src;h.Sj&&vk(a.Kd,h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.Tr};function Ok(a,b){this.g=new vf(a);this.b=b?sf:rf}Ok.prototype.stringify=function(a){return uf(this.g,a)};Ok.prototype.parse=function(a){return this.b(a)};function Pk(a){this.g=0;this.j=a||100;this.b=[]}f=Pk.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=Qk(this,a);return this.b[a]};f.set=function(a,b){a=Qk(this,a);this.b[a]=b};f.Pa=function(){return this.b.length};f.isEmpty=function(){return 0==this.b.length};f.clear=function(){this.g=this.b.length=0};f.Sa=function(){for(var a=this.Pa(),b=this.Pa(),c=[],a=this.Pa()-a;a<b;a++)c.push(this.get(a));return c}; 
f.La=function(){for(var a=[],b=this.Pa(),c=0;c<b;c++)a[c]=c;return a};f.wg=function(a){for(var b=this.Pa(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Qk(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 Rk(a,b){T.call(this);this.b=a||1;this.g=b||m;this.j=v(this.uz,this);this.k=w()}x(Rk,T);f=Rk.prototype;f.nd=!1;f.Dc=null;function Sk(a,b){a.b=b;a.Dc&&a.nd?(a.stop(),a.start()):a.Dc&&a.stop()}f.uz=function(){if(this.nd){var a=w()-this.k;0<a&&a<.8*this.b?this.Dc=this.g.setTimeout(this.j,this.b-a):(this.Dc&&(this.g.clearTimeout(this.Dc),this.Dc=null),this.S("tick"),this.nd&&(this.Dc=this.g.setTimeout(this.j,this.b),this.k=w()))}}; 
f.start=function(){this.nd=!0;this.Dc||(this.Dc=this.g.setTimeout(this.j,this.b),this.k=w())};f.stop=function(){this.nd=!1;this.Dc&&(this.g.clearTimeout(this.Dc),this.Dc=null)};f.J=function(){Rk.G.J.call(this);this.stop();delete this.g};function Tk(a,b,c){if(ka(a))c&&(a=v(a,c));else if(a&&"function"==typeof a.handleEvent)a=v(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function Uk(a){m.clearTimeout(a)};function Vk(a,b,c){this.k=a;this.j=b;this.g=c;this.b=v(this.wz,this)}x(Vk,Mh);f=Vk.prototype;f.yg=!1;f.Xh=0;f.cf=null;function Wk(a){a.cf||a.Xh?a.yg=!0:Xk(a)}f.stop=function(){this.cf&&(Uk(this.cf),this.cf=null,this.yg=!1)};f.pause=function(){this.Xh++};f.resume=function(){this.Xh--;this.Xh||!this.yg||this.cf||(this.yg=!1,Xk(this))};f.J=function(){Vk.G.J.call(this);this.stop()};f.wz=function(){this.cf=null;this.yg&&!this.Xh&&(this.yg=!1,Xk(this))};function Xk(a){a.cf=Tk(a.b,a.j);a.k.call(a.g)};function Yk(a){this.j=a;this.g={}}x(Yk,Mh);var Zk=[];f=Yk.prototype;f.listen=function(a,b,c,d){return $k(this,a,b,c,d)};function al(a,b,c,d,e){$k(a,b,c,d,!1,e)}function $k(a,b,c,d,e,g){ha(c)||(c&&(Zk[0]=c.toString()),c=Zk);for(var h=0;h<c.length;h++){var k=Ak(b,c[h],d||a.handleEvent,e||!1,g||a.j||a);if(!k)break;a.g[k.key]=k}return a}function bl(a,b,c,d){cl(a,b,c,d,void 0)}function dl(a,b,c,d,e){cl(a,b,c,d,!1,e)} 
function cl(a,b,c,d,e,g){if(ha(c))for(var h=0;h<c.length;h++)cl(a,b,c[h],d,e,g);else(b=Hk(b,c,d||a.handleEvent,e,g||a.j||a))&&(a.g[b.key]=b)}f.Ga=function(a,b,c,d,e){if(ha(b))for(var g=0;g<b.length;g++)this.Ga(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.j||this,c=Bk(c),d=!!d,b=pk(a)?wk(a.Kd,String(b),c,d,e):a?(a=Dk(a))?wk(a,b,c,d,e):null:null,b&&(Jk(b),delete this.g[b.key]);return this};f.removeAll=function(){Nb(this.g,Jk);this.g={}};f.J=function(){Yk.G.J.call(this);this.removeAll()}; 
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function el(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 fl(){}fl.prototype.b=null;function gl(a){var b;(b=a.b)||(b={},hl(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};var il;function jl(){}x(jl,fl);function kl(a){return(a=hl(a))?new ActiveXObject(a):new XMLHttpRequest}function hl(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}il=new jl;function ll(a,b,c,d,e){this.b=a;this.j=c;this.B=d;this.A=e||1;this.qb=45E3;this.k=new Yk(this);this.g=new Rk;Sk(this.g,250)}f=ll.prototype;f.Re=null;f.Vc=!1;f.sg=null;f.On=null;f.Dh=null;f.kg=null;f.pe=null;f.se=null;f.Qe=null;f.nb=null;f.Mh=0;f.Wc=null;f.Vj=null;f.$e=null;f.gh=-1;f.Gr=!0;f.df=!1;f.gn=0;f.xj=null;var ml={},nl={};f=ll.prototype;f.setTimeout=function(a){this.qb=a};function ol(a,b,c){a.kg=1;a.pe=xe(b.clone());a.Qe=c;a.o=!0;pl(a,null)} 
function ql(a,b,c,d,e){a.kg=1;a.pe=xe(b.clone());a.Qe=null;a.o=c;e&&(a.Gr=!1);pl(a,d)}function pl(a,b){a.Dh=w();rl(a);a.se=a.pe.clone();ve(a.se,"t",a.A);a.Mh=0;a.nb=a.b.Cn(a.b.Ch()?b:null);0<a.gn&&(a.xj=new Vk(v(a.$r,a,a.nb),a.gn));a.k.listen(a.nb,"readystatechange",a.NB);var c=a.Re?ac(a.Re):{};a.Qe?(a.Vj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.nb.send(a.se,a.Vj,a.Qe,c)):(a.Vj="GET",a.Gr&&!sc&&(c.Connection="close"),a.nb.send(a.se,a.Vj,null,c));a.b.Uc(1)} 
f.NB=function(a){a=a.target;var b=this.xj;b&&3==sl(a)?Wk(b):this.$r(a)}; 
f.$r=function(a){try{if(a==this.nb)t:{var b=sl(this.nb),c=this.nb.g,d=this.nb.getStatus();if(qc&&!Cc(10)||sc&&!Bc("420+")){if(4>b)break t}else if(3>b||3==b&&!pc&&!tl(this.nb))break t;this.df||4!=b||7==c||(8==c||0>=d?this.b.Uc(3):this.b.Uc(2));ul(this);var e=this.nb.getStatus();this.gh=e;var g=tl(this.nb);(this.Vc=200==e)?(4==b&&vl(this),this.o?(wl(this,b,g),pc&&this.Vc&&3==b&&(this.k.listen(this.g,"tick",this.Ez),this.g.start())):xl(this,g),this.Vc&&!this.df&&(4==b?this.b.wj(this):(this.Vc=!1,rl(this)))): 
(this.$e=400==e&&0<g.indexOf("Unknown SID")?3:0,yl(),vl(this),zl(this))}}catch(h){this.nb&&tl(this.nb)}finally{}};function wl(a,b,c){for(var d=!0;!a.df&&a.Mh<c.length;){var e=Al(a,c);if(e==nl){4==b&&(a.$e=4,yl(),d=!1);break}else if(e==ml){a.$e=4;yl();d=!1;break}else xl(a,e)}4==b&&0==c.length&&(a.$e=1,yl(),d=!1);a.Vc=a.Vc&&d;d||(vl(a),zl(a))}f.Ez=function(){var a=sl(this.nb),b=tl(this.nb);this.Mh<b.length&&(ul(this),wl(this,a,b),this.Vc&&4!=a&&rl(this))}; 
function Al(a,b){var c=a.Mh,d=b.indexOf("
",c);if(-1==d)return nl;c=Number(b.substring(c,d));if(isNaN(c))return ml;d+=1;if(d+c>b.length)return nl;var e=b.substr(d,c);a.Mh=d+c;return e} 
function Bl(a,b){a.Dh=w();rl(a);var c=b?window.location.hostname:"";a.se=a.pe.clone();K(a.se,"DOMAIN",c);K(a.se,"t",a.A);try{a.Wc=new ActiveXObject("htmlfile")}catch(d){vl(a);a.$e=7;yl();zl(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"</script>');e+="</body></html>";a.Wc.open();a.Wc.write(e);a.Wc.close();a.Wc.parentWindow.m=v(a.hC,a);a.Wc.parentWindow.d=v(a.ks,a,!0);a.Wc.parentWindow.rpcClose=v(a.ks,a,!1);c=a.Wc.createElement("div");a.Wc.parentWindow.document.body.appendChild(c); 
c.innerHTML='<iframe src="'+a.se+'"></iframe>';a.b.Uc(1)}f.hC=function(a){Cl(v(this.oF,this,a),0)};f.oF=function(a){this.df||(ul(this),xl(this,a),rl(this))};f.ks=function(a){Cl(v(this.nF,this,a),0)};f.nF=function(a){this.df||(vl(this),this.Vc=a,this.b.wj(this),this.b.Uc(4))};f.cancel=function(){this.df=!0;vl(this)};function rl(a){a.On=w()+a.qb;Dl(a,a.qb)}function Dl(a,b){if(null!=a.sg)throw Error("WatchDog timer not null");a.sg=Cl(v(a.HE,a),b)} 
function ul(a){a.sg&&(m.clearTimeout(a.sg),a.sg=null)}f.HE=function(){this.sg=null;var a=w();0<=a-this.On?(2!=this.kg&&this.b.Uc(3),vl(this),this.$e=2,yl(),zl(this)):Dl(this,this.On-a)};function zl(a){a.b.ws()||a.df||a.b.wj(a)}function vl(a){ul(a);Oh(a.xj);a.xj=null;a.g.stop();a.k.removeAll();if(a.nb){var b=a.nb;a.nb=null;El(b);b.dispose()}a.Wc&&(a.Wc=null)}function xl(a,b){try{a.b.ys(a,b),a.b.Uc(4)}catch(c){}};function Fl(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;Gl(a,b,function(e){e?c(!0):m.setTimeout(function(){Fl(a,b,c,d,g)},g)})}}function Gl(a,b,c){var d=new Image;d.onload=function(){try{Hl(d),c(!0)}catch(a){}};d.onerror=function(){try{Hl(d),c(!1)}catch(a){}};d.onabort=function(){try{Hl(d),c(!1)}catch(a){}};d.ontimeout=function(){try{Hl(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a} 
function Hl(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function Il(a){this.b=a;this.g=new Ok(null,!0)}f=Il.prototype;f.Wm=null;f.jc=null;f.Rj=!1;f.Cr=null;f.Qj=null;f.qn=null;f.Jn=null;f.Fc=null;f.Nd=-1;f.Gh=null;f.Kh=null;f.connect=function(a){this.Jn=a;a=Jl(this.b,null,this.Jn);yl();this.Cr=w();var b=this.b.C;null!=b?(this.Gh=b[0],(this.Kh=b[1])?(this.Fc=1,Kl(this)):(this.Fc=2,Ll(this))):(ve(a,"MODE","init"),this.jc=new ll(this,0,void 0,void 0,void 0),this.jc.Re=this.Wm,ql(this.jc,a,!1,null,!0),this.Fc=0)}; 
function Kl(a){var b=Jl(a.b,a.Kh,"/mail/images/cleardot.gif");xe(b);Fl(b.toString(),5E3,v(a.tC,a),3,2E3);a.Uc(1)}f.tC=function(a){if(a)this.Fc=2,Ll(this);else{yl();var b=this.b;b.Rc=b.re.Nd;Ml(b,9)}a&&this.Uc(2)}; 
function Ll(a){var b=a.b.D;if(null!=b)yl(),b?(yl(),Nl(a.b,a,!1)):(yl(),Nl(a.b,a,!0));else if(a.jc=new ll(a,0,void 0,void 0,void 0),a.jc.Re=a.Wm,b=a.b,b=Jl(b,b.Ch()?a.Gh:null,a.Jn),yl(),!qc||Cc(10))ve(b,"TYPE","xmlhttp"),ql(a.jc,b,!1,a.Gh,!1);else{ve(b,"TYPE","html");var c=a.jc;a=Boolean(a.Gh);c.kg=3;c.pe=xe(b.clone());Bl(c,a)}}f.Cn=function(a){return this.b.Cn(a)};f.ws=function(){return!1}; 
f.ys=function(a,b){this.Nd=a.gh;if(0==this.Fc)if(b){try{var c=this.g.parse(b)}catch(d){c=this.b;c.Rc=this.Nd;Ml(c,2);return}this.Gh=c[0];this.Kh=c[1]}else c=this.b,c.Rc=this.Nd,Ml(c,2);else if(2==this.Fc)if(this.Rj)yl(),this.qn=w();else if("11111"==b){if(yl(),this.Rj=!0,this.Qj=w(),c=this.Qj-this.Cr,!qc||Cc(10)||500>c)this.Nd=200,this.jc.cancel(),yl(),Nl(this.b,this,!0)}else yl(),this.Qj=this.qn=w(),this.Rj=!1}; 
f.wj=function(){this.Nd=this.jc.gh;if(this.jc.Vc)0==this.Fc?this.Kh?(this.Fc=1,Kl(this)):(this.Fc=2,Ll(this)):2==this.Fc&&(a=!1,(a=!qc||Cc(10)?this.Rj:200>this.qn-this.Qj?!1:!0)?(yl(),Nl(this.b,this,!0)):(yl(),Nl(this.b,this,!1)));else{0==this.Fc?yl():2==this.Fc&&yl();var a=this.b;a.Rc=this.Nd;Ml(a,2)}};f.Ch=function(){return this.b.Ch()};f.Uc=function(a){this.b.Uc(a)};function Ol(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}x(Ol,T);var Pl=/^https?$/i,Ql=["POST","PUT"];function Rl(a,b){a.o=Math.max(0,b)}f=Ol.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?kl(this.M):kl(il);this.I=this.M?gl(this.M):gl(il);this.b.onreadystatechange=v(this.gp,this);try{hk(Sl(this,"Opening Xhr")),this.N=!0,this.b.open(b,String(a),!0),this.N=!1}catch(e){hk(Sl(this,"Error opening Xhr: "+e.message));Tl(this,e);return}a=c||"";var g=this.headers.clone(); 
d&&Md(d,function(a,b){g.set(b,a)});d=lb(g.La(),Ul);c=m.FormData&&a instanceof m.FormData;!D(Ql,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{Vl(this),0<this.o&&(this.F=Wl(this.b),hk(Sl(this,"Will abort after "+this.o+"ms if incomplete, xhr2 "+this.F)),this.F?(this.b.timeout=this.o,this.b.ontimeout=v(this.qb, 
this)):this.D=Tk(this.qb,this.o,this)),hk(Sl(this,"Sending request")),this.B=!0,this.b.send(a),this.B=!1}catch(h){hk(Sl(this,"Send error: "+h.message)),Tl(this,h)}};function Wl(a){return qc&&Bc(9)&&ja(a.timeout)&&n(a.ontimeout)}function Ul(a){return"content-type"==a.toLowerCase()}f.qb=function(){"undefined"!=typeof aa&&this.b&&(this.A="Timed out after "+this.o+"ms, aborting",this.g=8,Sl(this,this.A),this.S("timeout"),El(this,8))}; 
function Tl(a,b){a.j=!1;a.b&&(a.k=!0,a.b.abort(),a.k=!1);a.A=b;a.g=5;Xl(a);Yl(a)}function Xl(a){a.L||(a.L=!0,a.S("complete"),a.S("error"))}function El(a,b){a.b&&a.j&&(Sl(a,"Aborting"),a.j=!1,a.k=!0,a.b.abort(),a.k=!1,a.g=b||7,a.S("complete"),a.S("abort"),Yl(a))}f.J=function(){this.b&&(this.j&&(this.j=!1,this.k=!0,this.b.abort(),this.k=!1),Yl(this,!0));Ol.G.J.call(this)};f.gp=function(){this.ha()||(this.N||this.B||this.k?Zl(this):this.dD())};f.dD=function(){Zl(this)}; 
function Zl(a){if(a.j&&"undefined"!=typeof aa)if(a.I[1]&&4==sl(a)&&2==a.getStatus())Sl(a,"Local request error detected and ignored");else if(a.B&&4==sl(a))Tk(a.gp,0,a);else if(a.S("readystatechange"),4==sl(a)){Sl(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=!Pl.test(g?g.toLowerCase():"")}c=e}if(c)a.S("complete"),a.S("success");else{a.g=6;var k;try{k=2<sl(a)?a.b.statusText:""}catch(l){k=""}a.A=k+" ["+a.getStatus()+"]";Xl(a)}}finally{Yl(a)}}}function Yl(a,b){if(a.b){Vl(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 Vl(a){a.b&&a.F&&(a.b.ontimeout=null);ja(a.D)&&(Uk(a.D),a.D=null)}function sl(a){return a.b?a.b.readyState:0}f.getStatus=function(){try{return 2<sl(this)?this.b.status:-1}catch(a){return-1}}; 
function tl(a){try{return a.b?a.b.responseText:""}catch(b){return""}}function Sl(a,b){return b+" ["+a.P+" "+a.C+" "+a.getStatus()+"]"};function $l(a,b,c){this.B=a||null;this.b=1;this.g=[];this.k=[];this.o=new Ok(null,!0);this.C=b||null;this.D=null!=c?c:null}function am(a,b){this.b=a;this.map=b;this.context=null}f=$l.prototype;f.Th=null;f.Pb=null;f.hb=null;f.Jm=null;f.pj=null;f.tr=null;f.Jj=null;f.nh=0;f.LB=0;f.Gb=null;f.ue=null;f.Md=null;f.gf=null;f.re=null;f.Ij=null;f.Of=-1;f.Pr=-1;f.Rc=-1;f.kh=0;f.mg=0;f.Ue=8;var bm=new T;function cm(a){S.call(this,"statevent",a)}x(cm,S); 
function dm(a,b){S.call(this,"timingevent",a);this.size=b}x(dm,S);function em(a){S.call(this,"serverreachability",a)}x(em,S);f=$l.prototype;f.connect=function(a,b,c,d,e){yl();this.Jm=b;this.Th=c||{};d&&n(e)&&(this.Th.OSID=d,this.Th.OAID=e);this.re=new Il(this);this.re.Wm=null;this.re.g=this.o;this.re.connect(a)}; 
f.disconnect=function(){fm(this);if(3==this.b){var a=this.nh++,b=this.pj.clone();K(b,"SID",this.j);K(b,"RID",a);K(b,"TYPE","terminate");gm(this,b);a=new ll(this,0,this.j,a,void 0);a.kg=2;a.pe=xe(b.clone());(new Image).src=a.pe;a.Dh=w();rl(a)}hm(this)};function fm(a){if(a.re){var b=a.re;b.jc&&(b.jc.cancel(),b.jc=null);b.Nd=-1;a.re=null}a.hb&&(a.hb.cancel(),a.hb=null);a.Md&&(m.clearTimeout(a.Md),a.Md=null);im(a);a.Pb&&(a.Pb.cancel(),a.Pb=null);a.ue&&(m.clearTimeout(a.ue),a.ue=null)} 
function jm(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");a.g.push(new am(a.LB++,b));2!=a.b&&3!=a.b||km(a)}f.ws=function(){return 0==this.b};f.getState=function(){return this.b};function lm(a){var b=0;a.hb&&b++;a.Pb&&b++;return b}function km(a){a.Pb||a.ue||(a.ue=Cl(v(a.gs,a),0),a.kh=0)}f.gs=function(a){this.ue=null;mm(this,a)}; 
function mm(a,b){if(1==a.b){if(!b){a.nh=Math.floor(1E5*Math.random());var c=a.nh++,d=new ll(a,0,"",c,void 0);d.Re=null;var e=nm(a),g=a.pj.clone();K(g,"RID",c);a.B&&K(g,"CVER",a.B);gm(a,g);ol(d,g,e);a.Pb=d;a.b=2}}else 3==a.b&&(b?om(a,b):0!=a.g.length&&(a.Pb||om(a)))} 
function om(a,b){var c,d;b?6<a.Ue?(a.g=a.k.concat(a.g),a.k.length=0,c=a.nh-1,d=nm(a)):(c=b.B,d=b.Qe):(c=a.nh++,d=nm(a));var e=a.pj.clone();K(e,"SID",a.j);K(e,"RID",c);K(e,"AID",a.Of);gm(a,e);c=new ll(a,0,a.j,c,a.kh+1);c.Re=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Pb=c;ol(c,e,d)}function gm(a,b){if(a.Gb){var c=a.Gb.Ot(a);c&&Nb(c,function(a,c){K(b,c,a)})}} 
function nm(a){var b=Math.min(a.g.length,1E3),c=["count="+b],d;6<a.Ue&&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.Ue?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 pm(a){a.hb||a.Md||(a.A=1,a.Md=Cl(v(a.ht,a),0),a.mg=0)} 
function qm(a){if(a.hb||a.Md||3<=a.mg)return!1;a.A++;a.Md=Cl(v(a.ht,a),rm(a,a.mg));a.mg++;return!0}f.ht=function(){this.Md=null;this.hb=new ll(this,0,this.j,"rpc",this.A);this.hb.Re=null;this.hb.gn=0;var a=this.tr.clone();K(a,"RID","rpc");K(a,"SID",this.j);K(a,"CI",this.Ij?"0":"1");K(a,"AID",this.Of);gm(this,a);if(!qc||Cc(10))K(a,"TYPE","xmlhttp"),ql(this.hb,a,!0,this.Jj,!1);else{K(a,"TYPE","html");var b=this.hb,c=Boolean(this.Jj);b.kg=3;b.pe=xe(a.clone());Bl(b,c)}}; 
function Nl(a,b,c){a.Ij=c;a.Rc=b.Nd;a.kE(1,0);a.pj=Jl(a,null,a.Jm);km(a)} 
f.ys=function(a,b){if(0!=this.b&&(this.hb==a||this.Pb==a))if(this.Rc=a.gh,this.Pb==a&&3==this.b)if(7<this.Ue){var c;try{c=this.o.parse(b)}catch(d){c=null}if(ha(c)&&3==c.length)if(0==c[0])t:{if(!this.Md){if(this.hb)if(this.hb.Dh+3E3<this.Pb.Dh)im(this),this.hb.cancel(),this.hb=null;else break t;qm(this);yl()}}else this.Pr=c[1],0<this.Pr-this.Of&&37500>c[2]&&this.Ij&&0==this.mg&&!this.gf&&(this.gf=Cl(v(this.VA,this),6E3));else Ml(this,11)}else"y2f%"!=b&&Ml(this,11);else if(this.hb==a&&im(this),!ya(b)){c= 
this.o.parse(b);ha(c);for(var e=0;e<c.length;e++){var g=c[e];this.Of=g[0];g=g[1];2==this.b?"c"==g[0]?(this.j=g[1],this.Jj=g[2],g=g[3],null!=g?this.Ue=g:this.Ue=6,this.b=3,this.Gb&&this.Gb.Or(this),this.tr=Jl(this,this.Ch()?this.Jj:null,this.Jm),pm(this)):"stop"==g[0]&&Ml(this,7):3==this.b&&("stop"==g[0]?Ml(this,7):"noop"!=g[0]&&this.Gb&&this.Gb.Nr(this,g),this.mg=0)}}};f.VA=function(){null!=this.gf&&(this.gf=null,this.hb.cancel(),this.hb=null,qm(this),yl())}; 
function im(a){null!=a.gf&&(m.clearTimeout(a.gf),a.gf=null)} 
f.wj=function(a){var b;if(this.hb==a)im(this),this.hb=null,b=2;else if(this.Pb==a)this.Pb=null,b=1;else return;this.Rc=a.gh;if(0!=this.b)if(a.Vc)1==b?(w(),bm.S(new dm(bm,a.Qe?a.Qe.length:0)),km(this),this.k.length=0):pm(this);else{var c=a.$e,d;if(!(d=3==c||7==c||0==c&&0<this.Rc)){if(d=1==b)this.Pb||this.ue||1==this.b||2<=this.kh?d=!1:(this.ue=Cl(v(this.gs,this,a),rm(this,this.kh)),this.kh++,d=!0);d=!(d||2==b&&qm(this))}if(d)switch(c){case 1:Ml(this,5);break;case 4:Ml(this,10);break;case 3:Ml(this, 
6);break;case 7:Ml(this,12);break;default:Ml(this,2)}}};function rm(a,b){var c=5E3+Math.floor(1E4*Math.random());a.Gb||(c*=2);return c*b}f.kE=function(a){if(!D(arguments,this.b))throw Error("Unexpected channel state: "+this.b);};function Ml(a,b){if(2==b||9==b){var c=null;a.Gb&&(c=null);var d=v(a.tE,a);c||(c=new J("//www.google.com/images/cleardot.gif"),xe(c));Gl(c.toString(),1E4,d)}else yl();sm(a,b)}f.tE=function(a){a?yl():(yl(),sm(this,8))};function sm(a,b){a.b=0;a.Gb&&a.Gb.vs(a,b);hm(a);fm(a)} 
function hm(a){a.b=0;a.Rc=-1;if(a.Gb)if(0==a.k.length&&0==a.g.length)a.Gb.fn(a);else{var b=vb(a.k),c=vb(a.g);a.k.length=0;a.g.length=0;a.Gb.fn(a,b,c)}}function Jl(a,b,c){var d=ye(c);if(""!=d.Fb)b&&fe(d,b+"."+d.Fb),ge(d,d.jf);else var e=window.location,d=ze(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Th&&Nb(a.Th,function(a,b){K(d,b,a)});K(d,"VER",a.Ue);gm(a,d);return d}f.Cn=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Ol;a.O=!1;return a}; 
function Cl(a,b){if(!ka(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Uc=function(){bm.S(new em(bm))};function yl(){bm.S(new cm(bm))}f.Ch=function(){return!(!qc||Cc(10))};function tm(){}f=tm.prototype;f.Or=function(){};f.Nr=function(){};f.vs=function(){};f.fn=function(){};f.Ot=function(){return{}};function um(a,b){Rk.call(this);if(ka(a))b&&(a=v(a,b));else if(a&&ka(a.handleEvent))a=v(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a;Ak(this,"tick",v(this.A,this));this.stop();Sk(this,5E3+2E4*Math.random())}x(um,Rk);um.prototype.o=0;um.prototype.A=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);Sk(this,a)}this.B()};um.prototype.start=function(){um.G.start.call(this);this.o=w()+this.b};um.prototype.stop=function(){this.o=0;um.G.stop.call(this)};function vm(a,b){this.I=a;this.k=b;this.j=new Rh;this.g=new um(this.Gv,this);this.b=null;this.F=!1;this.A=null;this.D="";this.C=this.o=0;this.B=[]}x(vm,tm);f=vm.prototype;f.subscribe=function(a,b,c){return this.j.subscribe(a,b,c)};f.ga=function(a,b,c){return this.j.ga(a,b,c)};f.Ob=function(a){return this.j.Ob(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(),Oh(this.j))};f.ha=function(){return this.F}; 
function wm(a){return{firstTestResults:[""],secondTestResults:!a.b.Ij,sessionId:a.b.j,arrayId:a.b.Of}} 
f.connect=function(a,b,c){if(!this.b||2!=this.b.getState()){this.D="";this.g.stop();this.A=a||null;this.o=b||0;a=this.I+"/test";b=this.I+"/bind";var d=new $l("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.Gb=null);d.Gb=this;this.b=d;e?(3!=e.getState()&&0==lm(e)||e.getState(),this.b.connect(a,b,this.k,e.j,e.Of)):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.getState()&&mm(this.b),this.b.disconnect());this.C=0};f.sendMessage=function(a,b){var c={_sc:a};b&&dc(c,b);this.g.nd||2==(this.b?this.b.getState():0)?this.B.push(c):this.b&&3==this.b.getState()&&jm(this.b,c)};f.Or=function(){var a=this.g;a.stop();Sk(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)jm(this.b,a[b])}this.H("handlerOpened")}; 
f.vs=function(a,b){var c=2==b&&401==this.b.Rc;if(4!=b&&!c){if(6==b||410==this.b.Rc)c=this.g,c.stop(),Sk(c,500);this.g.start()}this.H("handlerError",b)};f.fn=function(a,b,c){if(!this.g.nd)this.H("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.B.push(c[a].map)};f.Ot=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&&dc(a,this.A);return a}; 
f.Nr=function(a,b){if("S"==b[0])this.D=b[1];else if("gracefulReconnect"==b[0]){var c=this.g;c.stop();Sk(c,500);this.g.start();this.b.disconnect()}else this.H("handlerMessage",new Lj(b[0],b[1]))};f.getDeviceId=function(){return this.k.id};f.Gv=function(){this.g.stop();0!=lm(this.b)?this.g.start():this.connect(this.A,this.o)};function xm(){this.b=[];this.g=[]}function ym(a){E(a.b)&&(a.b=a.g,a.b.reverse(),a.g=[])}function zm(a,b){a.g.push(b)}function Am(a){ym(a);return a.b.pop()}f=xm.prototype;f.Pa=function(){return this.b.length+this.g.length};f.isEmpty=function(){return E(this.b)&&E(this.g)};f.clear=function(){this.b=[];this.g=[]};f.contains=function(a){return D(this.b,a)||D(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.Sa=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 Bm(a){this.reset(a)}function Cm(a,b){if(a.g)throw Error(b+" is not allowed in V3.");}function Dm(a){a.volume=-1;a.muted=!1;a.j=null;a.b=-1;a.k=null;a.o=0;a.A=w()}Bm.prototype.reset=function(a){this.Ya=[];this.g="";Em(this);a&&(this.Ya=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 Em(a){a.index=-1;a.videoId="";Dm(a)}function Fm(a){return a.g?a.videoId:a.Ya[a.index]}function Gm(a,b){a.o=b;a.A=w()}function Hm(a){switch(a.b){case 1:return(w()-a.A)/1E3+a.o;case -1E3:return 0}return a.o}function Im(a,b){Cm(a,"setVideoId");var c=a.index;a.index=fb(a.Ya,b);c!=a.index&&Dm(a)}function Jm(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&Dm(a)}function Km(a,b,c){Cm(a,"setPlaylist");c=c||Fm(a);Eb(a.Ya,b)&&c==Fm(a)||(a.Ya=vb(b),Im(a,c))} 
Bm.prototype.add=function(a){Cm(this,"add");return a&&!D(this.Ya,a)?(this.Ya.push(a),!0):!1};Bm.prototype.remove=function(a){Cm(this,"remove");var b=Fm(this);return rb(this.Ya,a)?(this.index=fb(this.Ya,b),!0):!1};function Lm(a){var b={};b.videoIds=vb(a.Ya);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=bc(a.j);b.playerTime=a.o;b.playerTimeAt=a.A;return b}Bm.prototype.clone=function(){return new Bm(Lm(this))};function Mm(a,b){ej.call(this);this.j=0;this.k=a;this.B=[];this.A=new xm;this.o=NaN;this.g=this.b=null;this.F=v(this.Nv,this);this.C=v(this.Ng,this);this.D=v(this.Mv,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.il,this),Nm(this))):c=3;0!=c&&(b?this.il(c):L(v(function(){this.il(c)},this),0));Om(this,Cj())}x(Mm,ej);f=Mm.prototype;f.getState=function(){return this.j};function Pm(a){return new Bm(a.k.getPlayerContextData())} 
f.play=function(){1==this.getState()?(this.b?this.b.play(null,ca,v(function(){this.hf("Failed to play video with cast v2 channel.");Qm(this,"play")},this)):Qm(this,"play"),Rm(this,1,Hm(Pm(this))),Sm(this)):Tm(this,this.play)};f.pause=function(){1==this.getState()?(this.b?this.b.pause(null,ca,v(function(){this.hf("Failed to pause video with cast v2 channel.");Qm(this,"pause")},this)):Qm(this,"pause"),Rm(this,2,Hm(Pm(this))),Sm(this)):Tm(this,this.pause)}; 
f.os=function(a){if(1==this.getState()){if(this.b){var b=Pm(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.b.seek(c,ca,v(function(){this.hf("Failed to seek in video with cast v2 channel.");Qm(this,"seekTo",{newTime:a})},this))}else Qm(this,"seekTo",{newTime:a});Rm(this,3,a);Sm(this)}else Tm(this,sa(this.os,a))}; 
f.stop=function(){if(1==this.getState()){this.b?this.b.stop(null,ca,v(function(){this.hf("Failed to stop video with cast v2 channel.");Qm(this,"stopVideo")},this)):Qm(this,"stopVideo");var a=Pm(this);Em(a);Um(this,a);Sm(this)}else Tm(this,this.stop)}; 
f.setVolume=function(a,b){if(1==this.getState()){var c=Pm(this);if(this.g){if(c.volume!=a){var d=Math.round(a)/100;this.g.setReceiverVolumeLevel(d,v(function(){Vm("set receiver volume: "+d)},this),v(function(){this.hf("failed to set receiver volume.")},this))}c.muted!=b&&this.g.setReceiverMuted(b,v(function(){Vm("set receiver muted: "+b)},this),v(function(){this.hf("failed to set receiver muted.")},this))}else{var e={volume:a,muted:b};-1!=c.volume&&(e.delta=a-c.volume);Qm(this,"setVolume",e)}c.muted= 
b;c.volume=a;Um(this,c);Sm(this)}else Tm(this,sa(this.setVolume,a,b))};f.Hm=function(a,b){if(1==this.getState()){var c=Pm(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:tf(b.style)};dc(d,c.j);Qm(this,"setSubtitlesTrack",d)}else d={videoId:a},Qm(this,"setSubtitlesTrack",d);Um(this,c)}else Tm(this,sa(this.Hm,a,b))}; 
function Wm(a,b,c,d,e){var g=Pm(a);d=d||0;e={videoId:b,currentIndex:d,listId:e||g.g};Jm(g,b,d);n(c)&&(Gm(g,c),e.currentTime=c);Qm(a,"setPlaylist",e);Um(a,g)} 
f.Ii=function(a,b){if(1==this.getState()){var c=Pm(this);if(a!=Fm(c)){var d;Cm(c,"insert");a&&!D(c.Ya,a)?(-1<c.index&&c.index>=c.Ya.length-1?c.Ya.push(a):c.Ya.splice(c.index+1,0,a),d=!0):d=!1;d&&(d={videoId:a},Qm(this,"insertVideo",d));Im(c,a);d={videoId:a};n(b)&&(Gm(c,b),d.currentTime=b);Qm(this,"setVideo",d);Um(this,c)}}else Tm(this,sa(this.Ii,a,b))}; 
f.al=function(a,b,c){if(1==this.getState()){var d=Pm(this),e=a==Fm(d),d=Eb(b,d.Ya);e?d||(Qm(this,"updatePlaylist",{videoIds:b.join(",")}),a=Pm(this),Km(a,b),Um(this,a)):d?this.Ii(a,c):(Qm(this,"setPlaylist",{videoIds:b.join(","),videoId:a,currentTime:c}),e=Pm(this),Gm(e,c),Km(e,b,a),Um(this,e))}else Tm(this,sa(this.al,a,b,c))};f.dispose=function(){if(3!=this.j){var a=this.j;this.j=3;this.H("proxyStateChange",a,this.j)}Mm.G.dispose.call(this)}; 
f.J=function(){M(this.o);this.o=NaN;Xm(this);this.k=null;this.A.clear();Om(this,null);Mm.G.J.call(this)};function Nm(a){B(["remotePlayerChange","remoteQueueChange"],function(a){this.B.push(this.k.subscribe(a,sa(this.eD,a),this))},a)}function Xm(a){B(a.B,function(a){this.k.unsubscribeByKey(a)},a);a.B.length=0}function Tm(a,b){50>a.A.Pa()&&zm(a.A,b)}function Rm(a,b,c){var d=Pm(a);Gm(d,c);-1E3!=d.b&&(d.b=b);Um(a,d)}function Qm(a,b,c){a.k.sendMessage(b,c)} 
function Um(a,b){Xm(a);a.k.setPlayerContextData(Lm(b));Nm(a)}f.il=function(a){if((a!=this.j||2==a)&&3!=this.j&&0!=a){var b=this.j;this.j=a;this.H("proxyStateChange",b,a);if(1==a)for(;!this.A.isEmpty();)Am(this.A).apply(this);else 3==a&&this.dispose()}};function Sm(a){M(a.o);a.o=L(v(function(){this.H("remotePlayerChange");this.o=NaN},a),2E3)}f.eD=function(a){("remotePlayerChange"!=a||isNaN(this.o))&&this.H(a)}; 
function Om(a,b){a.g&&(a.g.removeUpdateListener(a.F),a.g.removeMediaListener(a.C),a.Ng(null));a.g=b;a.g&&(Vm("Setting cast session: "+a.g.sessionId),a.g.addUpdateListener(a.F),a.g.addMediaListener(a.C),a.g.media.length&&a.Ng(a.g.media[0]))} 
f.Nv=function(a){if(!a)this.Ng(null),Om(this,null);else if(this.g.receiver.volume){a=this.g.receiver.volume;var b=Pm(this);if(b.volume!=a.level||b.muted!=a.muted)Vm("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,Um(this,b),Sm(this)}};f.Ng=function(a){Vm("Cast media: "+!!a);this.b&&this.b.removeUpdateListener(this.D);if(this.b=a)this.b.addUpdateListener(this.D),Ym(this),Sm(this)}; 
function Ym(a){var b=a.b.customData;if(a.b.media){var c=a.b.media,d=Pm(a);c.contentId!=d.videoId&&Vm("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;Gm(d,a.b.getEstimatedTime());Um(a,d)}else Vm("No cast media video. Ignoring state update.")}f.Mv=function(a){a?(Ym(this),Sm(this)):this.Ng(null)};function Vm(a){Bh("CP",a)}f.hf=function(a){Bh("CP",a)};function Zm(a,b,c){ej.call(this);this.O=a;this.pd=[];this.pd.push(Rg(window,"beforeunload",v(this.ey,this)));this.j=[];this.b=new Bm;3==c["mdx-version"]&&(this.b.g="RQ"+b.token);this.D=b.id;this.g=new vm(Ti(this.O,"/bc",void 0,!1),c);this.g.subscribe("handlerOpened",this.jy,this);this.g.subscribe("handlerClosed",this.fy,this);this.g.subscribe("handlerError",this.gy,this);this.b.g?this.g.subscribe("handlerMessage",this.hy,this):this.g.subscribe("handlerMessage",this.iy,this);a=this.g;b=b.token;(a.k.loungeIdToken= 
b)||a.g.stop()}x(Zm,ej);f=Zm.prototype;f.Hh=NaN;f.Nn=!1;f.Qg=NaN;f.$n=NaN;f.nj=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.Ya=[d];this.b.index=0}this.b.state=3;Gm(this.b,g);this.log_("Connecting with setPlaylist and params: "+tf(h));this.g.connect({method:"setPlaylist",params:tf(h)}, 
a,sj())}else this.log_("Connecting without params"),this.g.connect({},a,sj());$m(this)};f.dispose=function(){this.ha()||an(this,3);Zm.G.dispose.call(this)};f.J=function(){bn(this);cn(this);M(this.nj);M(this.Qg);this.nj=NaN;this.k=null;Tg(this.pd);this.pd.length=0;this.g.dispose();Zm.G.J.call(this);this.j=this.b=this.g=null};f.log_=function(a){Bh("conn",a)};f.ey=function(){this.o(2)};function an(a,b){a.H("proxyStateChange",b)} 
function $m(a){a.Hh=L(v(function(){this.log_("Connecting timeout");this.o(1)},a),1E4)}function bn(a){M(a.Hh);a.Hh=NaN}function dn(a){cn(a);a.$n=L(v(function(){this.A("getNowPlaying")},a),2E4)}function cn(a){M(a.$n);a.$n=NaN}function en(a){var b=a.g;return!!b.b&&3==b.b.getState()&&isNaN(a.Hh)}f.jy=function(){this.log_("Channel opened");this.Nn&&(this.Nn=!1,this.Qg=L(v(function(){this.log_("Timing out waiting for a screen.");this.o(1)},this),15E3));yj(wm(this.g),this.D)}; 
f.fy=function(){this.log_("Channel closed");isNaN(this.Hh)?zj(!0):zj();this.dispose()};f.gy=function(a){zj();isNaN(this.B())?(this.log_("Channel error: "+a+" without reconnection"),this.dispose()):(this.Nn=!0,this.log_("Channel error: "+a+" with reconnection in "+this.B()+" ms"),an(this,2))};function fn(a,b){b==en(a)?b&&an(a,1):b?(bn(a),a.C()&&a.b.reset(),an(a,1),a.A("getNowPlaying")):a.o(1)} 
function gn(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.b.videoId&&(Yb(b.params)?a.b.j=null:a.b.j=b.params,a.H("remotePlayerChange"))}function hn(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.b.g=b.params.listId;Jm(a.b,c,d);a.H("remoteQueueChange")}function jn(a,b){hn(a,b);kn(a,b)} 
function kn(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);Gm(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=rf(b.params.currentError).reason||d));a.b.k=d;1==a.b.b?dn(a):cn(a);a.H("remotePlayerChange")}function ln(a,b){var c="true"==b.params.muted;a.b.volume=parseInt(b.params.volume,10);a.b.muted=c;a.H("remotePlayerChange")} 
f.hy=function(a){a.params?this.log_("Received: action="+a.action+", params="+tf(a.params)):this.log_("Received: action="+a.action);switch(a.action){case "loungeStatus":a=rf(a.params.devices);this.j=C(a,function(a){return new Kj(a)});a=!!lb(this.j,function(a){return"LOUNGE_SCREEN"==a.type});fn(this,a);break;case "loungeScreenConnected":fn(this,!0);break;case "loungeScreenDisconnected":tb(this.j,function(a){return"LOUNGE_SCREEN"==a.type});fn(this,!1);break;case "remoteConnected":var b=new Kj(rf(a.params.device)); 
lb(this.j,function(a){return a.equals(b)})||qb(this.j,b);break;case "remoteDisconnected":b=new Kj(rf(a.params.device));tb(this.j,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":hn(this,a);break;case "nowPlaying":jn(this,a);break;case "onStateChange":kn(this,a);break;case "onVolumeChanged":ln(this,a);break;case "onSubtitlesTrackChanged":gn(this,a);break;default:this.log_("Unrecognized action: "+a.action)}}; 
f.iy=function(a){a.params?this.log_("Received: action="+a.action+", params="+tf(a.params)):this.log_("Received: action="+a.action);mn(this,a);nn(this,a);if(en(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=rf(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==Fm(this.b)&& 
(delete a.params.videoId,Yb(a.params)?this.b.j=null:this.b.j=a.params,this.H("remotePlayerChange"));else if(Fm(this.b)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=Fm(this.b)):Im(this.b,""),e&&(e=e.split(","),Km(this.b,e,d))):Km(this.b,[]),this.b.add(d)&&this.A("getPlaylist"),d&&Im(this.b,d),b.index==this.b.index&&Eb(b.Ya,this.b.Ya)||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?dn(this):cn(this)),"onError"!=a.action||-1!=this.b.b&&-1E3!=this.b.b||(a=rf(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==Fm(this.b)&&(this.b.b=-1E3,this.b.k=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),Gm(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 mn(a,b){switch(b.action){case "loungeStatus":var c=rf(b.params.devices);a.j=C(c,function(a){return new Kj(a)});break;case "loungeScreenDisconnected":tb(a.j,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new Kj(rf(b.params.device));lb(a.j,function(a){return a.equals(d)})||qb(a.j,d);break;case "remoteDisconnected":d=new Kj(rf(b.params.device)),tb(a.j,function(a){return a.equals(d)})}} 
function nn(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;if(!isNaN(a.Qg))if(c)M(a.Qg),a.Qg=NaN;else return;c==en(a)?c&&an(a,1):c?(bn(a),a.C()&&a.b.reset(),an(a,1),a.A("getNowPlaying")):a.o(1)}f.ty=function(){if(this.k){var a=this.k;this.k=null;this.b.videoId!=a&&this.A("getNowPlaying")}};Zm.prototype.subscribe=Zm.prototype.subscribe; 
Zm.prototype.unsubscribeByKey=Zm.prototype.Ob;Zm.prototype.L=function(){var a=3;this.ha()||(a=0,isNaN(this.B())?en(this)&&(a=1):a=2);return a};Zm.prototype.getProxyState=Zm.prototype.L;Zm.prototype.o=function(a){this.log_("Disconnecting with "+a);1==a&&zj();this.g.disconnect(a);this.dispose()};Zm.prototype.disconnect=Zm.prototype.o;Zm.prototype.I=function(){var a=this.b;this.k&&(a=this.b.clone(),Jm(a,this.k,a.index));return Lm(a)};Zm.prototype.getPlayerContextData=Zm.prototype.I; 
Zm.prototype.N=function(a){var b=new Bm(a);b.videoId&&b.videoId!=this.b.videoId&&(this.k=b.videoId,M(this.nj),this.nj=L(v(this.ty,this),5E3));var c=[];this.b.g==b.g&&this.b.videoId==b.videoId&&this.b.index==b.index&&Eb(this.b.Ya,b.Ya)||c.push("remoteQueueChange");this.b.b==b.b&&this.b.volume==b.volume&&this.b.muted==b.muted&&Hm(this.b)==Hm(b)&&tf(this.b.j)==tf(b.j)||c.push("remotePlayerChange");this.b.reset(a);B(c,function(a){this.H(a)},this)};Zm.prototype.setPlayerContextData=Zm.prototype.N; 
Zm.prototype.F=function(){return this.g.k.loungeIdToken};Zm.prototype.getLoungeToken=Zm.prototype.F;Zm.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:""};Zm.prototype.getOtherConnectedRemoteId=Zm.prototype.C;Zm.prototype.B=function(){var a=this.g;return a.g.nd?a.g.o-w():NaN};Zm.prototype.getReconnectTimeout=Zm.prototype.B;Zm.prototype.P=function(){if(!isNaN(this.B())){var a=this.g.g;a.nd&&(a.stop(),a.start(),a.A())}}; 
Zm.prototype.reconnect=Zm.prototype.P;Zm.prototype.A=function(a,b){b?this.log_("Sending: action="+a+", params="+tf(b)):this.log_("Sending: action="+a);this.g.sendMessage(a,b)};Zm.prototype.sendMessage=Zm.prototype.A;function on(a){ej.call(this);this.k=a;this.Sc=Jh(uj());this.log_("Initializing local screens: "+Lh(this.Sc));this.j=pn();this.log_("Initializing account screens: "+Lh(this.j));this.xm=null;this.b=[];this.g=[];qn(this,Zj()||[]);this.log_("Initializing DIAL devices: "+Wi(this.g));a=Jh(vj());rn(this,a);this.log_("Initializing online screens: "+Lh(this.b));this.o=w()+3E5;sn(this)}x(on,ej);var tn=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=on.prototype;f.Rh=NaN;f.dk="";f.log_=function(a){Bh("RM",a)}; 
f.hf=function(a){Bh("RM",a)};function pn(){var a=Jh(uj()),b=Jh(vj());return hb(b,function(b){return!cj(a,b)})}function sn(a){Xh("yt-remote-cast-device-list-update",function(){var a=Zj();qn(this,a||[])},a);Xh("yt-remote-cast-device-status-update",a.yD,a);a.ft();var b=w()>a.o?2E4:1E4;Ve(v(a.ft,a),b)}f.H=function(a,b){if(this.ha())return!1;this.log_("Firing "+a);return this.M.H.apply(this.M,arguments)}; 
f.ft=function(){var a=Zj()||[];E(a)||qn(this,a);a=un(this);E(a)||(jb(a,function(a){return!cj(this.j,a)},this)&&!ui("yt-remote-lounge-token-expiration")?vn(this):wn(this,a))};function xn(a,b){var c=un(a);return hb(b,function(a){return a.uuid?(a=bj(this.g,a.uuid),!!a&&"RUNNING"==a.status):!!cj(c,a)},a)} 
function qn(a,b){var c=!1;B(b,function(a){var b=dj(this.Sc,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."),yn(a));wj(Zi(b));var d=!Eb(a.g,b,aj);d&&a.log_("Updating DIAL devices: "+Wi(a.g)+" to "+Wi(b));a.g=b;rn(a,a.b);d&&a.H("onlineReceiverChange")} 
f.yD=function(a){var b=bj(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,wj(Zi(this.g)));rn(this,this.b)};function rn(a,b,c){var d=xn(a,b),e=!Eb(a.b,d,Gh);!e&&!c||E(b)||(b=C(d,Hh),ri("yt-remote-online-screens",b,60));e&&(a.log_("Updating online screens: "+Lh(a.b)+" -> "+Lh(d)),a.b=d,a.H("onlineReceiverChange"))} 
function wn(a,b){var c=[],d={};B(b,function(a){a.token&&(d[a.token]=a,c.push(a.token))});var e={method:"POST",Nb:{lounge_token:c.join(",")},context:a,onSuccess:function(a,b){var c=[];B(b.screens||[],function(a){"online"==a.status&&c.push(d[a.loungeToken])});var e=this.xm?zn(this,this.xm):null;e&&!cj(c,e)&&c.push(e);rn(this,c,!0)}};Li(Ti(a.k,"/pairing/get_screen_availability"),e)} 
function vn(a){var b=un(a),c=C(b,function(a){return a.id});E(c)||(a.log_("Updating lounge tokens for: "+tf(c)),Li(Ti(a.k,"/pairing/get_lounge_token_batch"),{Nb:{screen_ids:c.join(",")},method:"POST",context:a,onSuccess:function(a,c){An(this,c.screens||[]);this.Sc=hb(this.Sc,function(a){return!!a.token});yn(this);wn(this,b)}}))}function An(a,b){B(ub(a.Sc,a.j),function(a){var d=lb(b,function(b){return a.id==b.screenId});d&&(a.token=d.loungeToken)})} 
function yn(a){var b=Jh(uj());Eb(a.Sc,b,Gh)&&(a.log_("Saving local screens: "+Lh(b)+" to "+Lh(a.Sc)),tj(C(a.Sc,Hh)),rn(a,a.b,!0),qn(a,Zj()||[]),a.H("managedScreenChange",un(a)))}function Bn(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;cj(a.b,c)||a.b.push(c);return e} 
f.Is=function(a,b,c){var d=!1;b>=tn.length&&(this.log_("Pairing DIAL device "+a+" with "+c+" timed out."),d=!0);var e=bj(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?(Cn(this),this.H("screenPair",null)):Li(Ti(this.k,"/pairing/get_screen"),{method:"POST",Nb:{pairing_code:c},context:this,onSuccess:function(a,b){if(c==this.dk){Cn(this); 
var d=new Eh(b.screen);d.name=e.name;d.uuid=e.id;this.log_("Pairing "+c+" succeeded.");var l=Bn(this,this.Sc,d);this.log_("Paired with "+(l?"a new":"an old")+" local screen:"+Kh(d));yn(this);this.H("screenPair",d)}},onError:function(){c==this.dk&&(this.log_("Polling pairing code: "+c),M(this.Rh),this.Rh=L(v(this.Is,this,a,b+1,c),tn[b]))}})}; 
function Dn(a,b,c){var d=En,e="";Cn(d);if(bj(d.g,a)){if(!e){var g=e=Xi();Rj();var h=bk(a),k=Oj();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",Xj(h),$h("yt-remote-cast-device-status-update",h)); 
Nj("Sending a cast launch request with params: "+l.parameters);k.launch(l,sa(ck,a))}else Nj("No cast API or no cast device. Dropping cast launch.")}d.dk=e;d.Rh=L(v(d.Is,d,a,0,e),tn[0])}else d.log_("No DIAL device with id: "+a)}function Cn(a){M(a.Rh);a.Rh=NaN;a.dk=""}function zn(a,b){var c=dj(un(a),b);a.log_("Found screen: "+Kh(c)+" with key: "+b);return c}function Fn(a){var b=En,c=dj(b.b,a);b.log_("Found online screen: "+Kh(c)+" with key: "+a);return c} 
function Gn(a){var b=En,c=bj(b.g,a);if(!c){var d=dj(b.Sc,a);d&&(c=bj(b.g,d.uuid))}b.log_("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function un(a){return ub(a.j,hb(a.Sc,function(a){return!cj(this.j,a)},a))};function Hn(a){fj.call(this,"ScreenServiceProxy");this.Rb=a;this.b=[];this.b.push(this.Rb.$_s("screenChange",v(this.vC,this)));this.b.push(this.Rb.$_s("onlineScreenChange",v(this.uC,this)))}x(Hn,fj);f=Hn.prototype;f.rk=function(a){return this.Rb.$_gos(a)};f.contains=function(a){return!!this.Rb.$_c(a)};f.get=function(a){return this.Rb.$_g(a)};f.start=function(){};f.add=function(a,b,c){this.Rb.$_a(a,b,c)};f.remove=function(a,b,c){this.Rb.$_r(a,b,c)}; 
f.J=function(){for(var a=0,b=this.b.length;a<b;++a)this.Rb.$_ubk(this.b[a]);this.b.length=0;this.Rb=null;Hn.G.J.call(this)};f.vC=function(){this.H("screenChange")};f.uC=function(){this.H("onlineScreenChange")};function In(a){a?ba("yt.mdx.remote.castv2_",!0,void 0):Rj();si&&si.j();lj();Jn||(Jn=new Si);En||a||(En=new on(Jn),En.subscribe("screenPair",Kn),En.subscribe("managedScreenChange",Ln),En.subscribe("onlineReceiverChange",function(){$h("yt-remote-receiver-availability-change")}));Mn||(Mn=q("yt.mdx.remote.deferredProxies_")||[],ba("yt.mdx.remote.deferredProxies_",Mn,void 0));Yb(Nn)&&(Nn=q("yt.mdx.remote.channelParams_")||{})} 
function On(){Zh(Pn);Pn.length=0;Oh(Qn);Qn=null;Mn&&(B(Mn,function(a){a(null)}),Mn.length=0,Mn=null,ba("yt.mdx.remote.deferredProxies_",null,void 0));En&&(Oh(En),En=null);Jn=null;Nn={};Wj()} 
function Rn(){if(Sn()&&Aj()){var a=[];if(ui("yt-remote-cast-available")||ui("yt-remote-cloudview-cast-button-shown")||Tn())a.push({key:"cast-selector-receiver",name:Un()}),ri("yt-remote-cloudview-cast-button-shown",!0);return a}if(q("yt.mdx.remote.cloudview.initializing_"))return[];var b=[],b=Vn()?Wn().Rb.$_gos(!0):Jh(vj());(a=Xn())&&Tn()&&(cj(b,a)||b.push(a));Vn()||(a=$i(xj()),a=hb(a,function(a){return!dj(b,a.id)}),b=ub(b,a));return Yi(b)} 
function Yn(){if(Sn()&&Aj()){var a=Bj();return a?{key:"cast-selector-receiver",name:a}:null}var a=Rn(),b=Zn(),c=Xn();c||(c=$n());return lb(a,function(a){return c&&Fh(c,a.key)||b&&(a=Gn(a.key))&&a.id==b?!0:!1})}function Un(){if(Sn()&&Aj())return Bj();var a=Xn();return a?a.name:null}function Xn(){var a=ao();if(!a)return null;if(!En){var b=Wn().rk();return dj(b,a)}return zn(En,a)} 
function bo(a,b){co("Connecting to: "+tf(a));if("cast-selector-receiver"==a.key)eo(b||null),Jj(b||null);else{fo();eo(b||null);var c=null;En?c=Fn(a.key):(c=Wn().rk(),c=dj(c,a.key));if(c)go(c);else{if(En&&(c=Gn(a.key))){ho(c);return}L(function(){io(null)},0)}}} 
function fo(){En&&Cn(En);t:{var a=Tn();if(a&&(a=a.getOtherConnectedRemoteId())){co("Do not stop DIAL due to "+a);jo("");break t}(a=Zn())?(co("Stopping DIAL: "+a),dk(a),jo("")):(a=Xn())&&a.uuid&&(co("Stopping DIAL: "+a.uuid),dk(a.uuid))}Hj()?Ej().stopSession():Dj("stopSession called before API ready.");(a=Tn())&&a.disconnect(1);io(null)}function ko(){var a=lo(),a=a?a.currentTime:0,b=mo();0==a&&b&&(a=Hm(Pm(b)));return a}function mo(){var a=Tn();return a?new Mm(a,void 0):null} 
function co(a){Bh("remote",a)}function Sn(){return!!q("yt.mdx.remote.castv2_")}function Vn(){return q("yt.mdx.remote.screenService_")}function Wn(){if(!Qn){var a=Vn();a&&(Qn=new Hn(a))}return Qn}function ao(){return q("yt.mdx.remote.currentScreenId_")}function no(a){ba("yt.mdx.remote.currentScreenId_",a,void 0);if(En){var b=En;b.o=w()+3E5;if((b.xm=a)&&(a=zn(b,a))&&!cj(b.b,a)){var c=vb(b.b);c.push(a);rn(b,c,!0)}}}function Zn(){return q("yt.mdx.remote.currentDialId_")} 
function jo(a){ba("yt.mdx.remote.currentDialId_",a,void 0)}function lo(){return q("yt.mdx.remote.connectData_")}function eo(a){ba("yt.mdx.remote.connectData_",a,void 0)}function Tn(){return q("yt.mdx.remote.connection_")}function io(a){var b=Tn();eo(null);a?cb(!Tn()):(no(""),jo(""));ba("yt.mdx.remote.connection_",a,void 0);B(Mn,function(b){b(a)});Mn.length=0;b&&!a?$h("yt-remote-connection-change",!1):!b&&a&&$h("yt-remote-connection-change",!0)} 
function $n(){var a=oj();if(!a)return null;if(Vn()){var b=Wn().rk();return dj(b,a)}return En?zn(En,a):null}function go(a){cb(!ao());no(a.id);var b=q("yt.mdx.remote.channelParams_");a=new Zm(Jn,a,b);a.connect(1,lo());Nh(a,function(){Tn()&&(Tn(),io(null))});io(a)}function ho(a){Zn();co("Connecting to: "+(a?a.toString():"null"));jo(a.id);var b=lo();b?Dn(a.id,b.videoIds[b.index],b.currentTime):Dn(a.id)}function Kn(a){co("Paired with: "+Kh(a));a?go(a):io(null)} 
function Ln(){var a=ao();a&&!Xn()&&(co("Dropping current screen with id: "+a),fo());$n()||zj()}var Jn=null,Mn=null,Qn=null,En=null,Nn={},Pn=[];var oo={vW:function(a,b){a.splice(0,b)},Wf:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},PD:function(a){a.reverse()}};function po(a){a=a.split("");oo.PD(a,23);oo.vW(a,2);oo.PD(a,62);oo.Wf(a,64);oo.vW(a,1);oo.PD(a,37);oo.vW(a,3);return a.join("")};function qo(){};var ro={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 so(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.ra=h||0;this.g=c||null;this.video=d||null;this.k=e||null;this.o=g||null;this.j=ro[this.id.split(":")[0]]||""}function to(a){return 2==a.b}function uo(a){return!(a.g&&a.video)}function vo(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")} 
function wo(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function xo(a,b,c,d){this.name=a;this.b=d}xo.prototype.toString=function(){return this.name};var Xb={TE:"auto",yK:"tiny",WI:"light",SMALL:"small",bF:"medium",LARGE:"large",uI:"hd720",sI:"hd1080",tI:"hd1440",EI:"highres",UNKNOWN:"unknown"},yo={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,highres:2160};function zo(a,b,c,d){this.width=a;this.height=b;if(!d)t:{for(d=2;d<Ao.length;d++){var e=Bo[Ao[d]];if(a>e[0]&&b>=e[1]||a>=e[0]&&b>e[1]){d=Ao[d-1];break t}}d="tiny"}this.b=d;this.g=c||0}var Ao="auto highres hd1440 hd1080 hd720 large medium small tiny".split(" "),Bo={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 Co(a,b){this.start=a;this.end=b;this.length=b-a+1}function Do(a){a=a.split("-");return 2==a.length&&(a=new Co(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function Eo(a,b){return new Co(a,a+b-1)}Co.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function Fo(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 Go(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 Ho(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 Io(a,b){var c=a,d;for(d in b)null!=b[d]&&(c=Ho(c,d,b[d]));return c};function Jo(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.b=a;this.sourceURL=d;this.startTime=b;this.Y=e||null};function Ko(){this.da=[]}f=Ko.prototype;f.yj=function(a){return(a=Lo(this,a))?a.duration:0};f.rm=function(a){return this.yj(a)};f.dt=function(){return this.da[0].b};f.Yb=function(){return this.da[this.da.length-1].b};f.Ff=function(){return this.da[this.da.length-1].endTime};f.Hn=function(){return this.da[0].startTime};f.ut=function(){return this.da.length};f.Xj=function(){return 0};f.ik=function(a){return(a=Mo(this,a))?a.b:-1};f.Ws=function(a){return Lo(this,a).sourceURL}; 
f.mj=function(a){return(a=Lo(this,a))?a.startTime:0};f.Qn=function(){return 0<this.da.length};function Lo(a,b){var c=Ab(a.da,new Jo(b,0,0,""),function(a,b){return a.b-b.b});return 0<=c?a.da[c]:null}function Mo(a,b){var c=Ab(a.da,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.da[c]:a.da[Math.max(0,-c-2)]} 
f.append=function(a){if(0!=a.length){var b=vb(a);if(0==this.da.length)this.da=b;else{var c=b[0].b-this.Yb();1<c&&pb(this.da);var d=this.da.length?db(this.da).endTime:0;B(a,function(a){a.startTime=d;a.endTime=a.startTime+a.duration;d+=a.duration});for(a=0<c?0:-c+1;a<b.length;a++)this.da.push(b[a])}}};function No(a,b){var c=mb(a.da,function(a){return a.b>=b},a);0<c&&a.da.splice(0,c)};function Oo(a){this.b=a;this.g=0;this.j=-1}var Po=0;function Qo(a,b){this.index=null;this.info=b;this.b=null;this.o=this.j=!1;this.A=new Oo(a)}Qo.prototype.lm=function(){return!1};Qo.prototype.wc=function(){return!1};Qo.prototype.Ir=function(a){return[a]};Qo.prototype.$i=function(a){return[a]};function Ro(a,b,c,d,e,g,h,k,l){this.b=b;this.Y=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.Y?this.Y.length:NaN;this.B=!!l;this.Y?(this.A=this.j+this.g==this.Y.length,this.o=this.startTime+this.duration*this.j/this.Y.length,this.D=this.duration*this.g/this.Y.length):(this.A=0!=this.g,this.o=this.startTime,this.D=this.duration);this.C=this.o+this.D}function So(a){return 1==a.type||2==a.type} 
function To(a,b){return a.b==b.b&&a.Y.start+a.j+a.g==b.Y.start+b.j}function Uo(a){cb(1==a.length||kb(a,function(a){return!!a.Y}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new Co(a[0].Y.start+a[0].j,b.Y.start+b.j+b.g-1)} 
function Vo(a,b){var c;c=a.b;var d=a;c.Pg(d);if(c.wc()){4==d.type&&(d=c.$i(d),d=d[d.length-1]);var e=0,g=d.Y.start+d.j+d.g;3==d.type&&(e=d.k,g==d.Y.end+1&&(e+=1));c=Wo(c,e,g,b)}else e=Eo(d.Y.end+1,b),e.end+1>c.g&&(e=new Co(e.start,c.g-1)),c=[new Ro(4,d.b,e)],c=new Xo(c);return c}function Yo(a){var b="i="+a.b.info.id;a.Y&&(b=b+",r="+(a.Y.start+a.j)+"-"+(a.Y.start+a.j+a.g-1));return b=b+",t="+a.o.toFixed(1)+","+(a.o+a.D).toFixed(1)};function Xo(a,b){this.j=a[0].b.A;this.g=b||"";this.b=a;this.Y=this.b[0].Y&&0<this.b[0].g?Uo(this.b):null}function Zo(a){var b;if(Ci(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.Y?Ho(b,"range",a.Y.toString()):b}function $o(a){if(a.Y)return a.Y.length;a=a.b[0];return Math.round(a.D*a.b.info.ra)};function ap(a,b,c,d,e){Qo.call(this,a,b);this.index=e||new Ko;this.k=d||null;this.B=c;this.g=!0}x(ap,Qo);f=ap.prototype;f.sm=function(){return!1};f.Xr=function(){var a=new Ro(1,this,this.k);return[new Xo([a],this.B)]};function bp(a,b){a.Pg(b);return cp(a,b.A?b.k+1:b.k,!1)}f.Ri=function(a,b){var c=this.index.ik(a);b&&(c=Math.min(this.index.Yb(),c+1));return cp(this,c,!0)};f.mq=function(a){this.b=new Uint8Array(dp(a).buffer)};f.lm=function(){return!1};f.wc=function(){return null!==this.b&&this.index.Qn()}; 
f.Pg=function(a){return this.index.Yb()>a.k&&this.index.dt()<=a.k+1};f.update=function(a,b,c){this.index.append(a);No(this.index,c);this.g=b};function cp(a,b,c){var d=a.index.Ws(b),e=a.index.mj(b),g=a.index.yj(b);c?g=c=0:c=0<a.info.ra?a.info.ra*g:1E3;a=new Ro(3,a,null,b,e,g,0,c,b==a.index.Yb()&&!a.g&&0<c);return new Xo([a],d)};function ep(a,b){var c=fp(a,0,1836019558);if(!c)return null;var d=fp(a,c.b+8,1835427940),e=fp(a,c.b+8,1953653094);if(!d||!e)return null;var g=fp(a,e.b+8,1952868452),h=fp(a,e.b+8,1953658222),k=fp(a,e.b+8,1952867444);if(!g||!h||!k)return null;for(var l=fp(a,e.b+8,1935763823),e=fp(a,e.b+8,1935763834),p=gp(g),r=gp(g),u=p&2,t=p&1?hp(g):0,z=u?gp(g):0,y=p&8?gp(g):0,N=p&16?gp(g):0,ra=p&32?gp(g):0,p=gp(h),zd=p&1,ff=p&4,Gw=p&256,g=p&512,Hw=p&1024,VT=p&2048,p=gp(h),WT=zd?gp(h):0,XT=ff?gp(h):0,zd=[],$F=[],Iw= 
[],Jw=[],aG=0,qe=0,Jb=0;Jb<p;Jb++){var ZT=Gw?gp(h):y;g&&zd.push(gp(h));var eg=ra;ff&&0==Jb?eg=XT:Hw&&(eg=gp(h));$F.push(eg);eg=VT?gp(h):0;0==Jb&&(aG=eg);Iw.push(qe+eg);Jw.push(Jb);qe+=ZT}Cb(Jw,function(a,b){return Iw[a]-Iw[b]});h=[];for(Jb=0;Jb<p;Jb++)h[Jw[Jb]]=Jb;qe=u?4:0;Jb=16*p;ra=68+qe+k.size+Jb+(l?l.size:0)+(e?e.size:0);y=new ip(ra);jp(y,ra);jp(y,1836019558);kp(y,d);jp(y,ra-24);jp(y,1953653094);jp(y,16+qe);jp(y,1952868452);jp(y,131072|(u?2:0));jp(y,r);u&&jp(y,z);kp(y,k);jp(y,20+Jb);jp(y,1953658222); 
jp(y,16781057);jp(y,p);jp(y,t+WT+ra-c.size);for(Jb=qe=0;Jb<p;Jb++)d=h[Jb],c=Math.round(b*d/p),d=Math.round(b*(d+1)/p)-c,eg=c-qe+aG,jp(y,d),jp(y,g?zd[Jb]:N),jp(y,$F[Jb]),jp(y,eg),qe+=d;l&&kp(y,l);e&&kp(y,e);return y.data.buffer}function fp(a,b,c){for(;lp(a,b);){var d=mp(a,b);if(d.type==c)return d;b+=d.size}return null}function mp(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new np(a,b,c,d)}function op(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)} 
function lp(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 np(a,b,c,d){this.data=a;this.b=b;this.size=c;this.type=d;this.g=8}function gp(a){var b=a.data.getInt32(a.b+a.g);a.g+=4;return b}function hp(a){var b=op(a.data,a.b+a.g);a.g+=8;return b}np.prototype.skip=function(a){this.g+=a};function ip(a){this.data=new DataView(new ArrayBuffer(a));this.b=0} 
function jp(a,b){a.data.setInt32(a.b,b);a.b+=4}function kp(a,b){for(var c=0;c+4<=b.size;)jp(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 pp(a,b,c,d){this.info=a;this.buffer=b;this.Y=c;this.b=d}function dp(a){return a.Y?new DataView(a.buffer,a.Y.start,a.Y.length):new DataView(a.buffer)}function qp(a){if(a.info.g!=a.Y.length)return!1;if(1==a.info.b.info.b){if(8>a.info.g||4==a.info.type)return!0;var b=dp(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 rp(a){var b;if(1==a.info.b.info.b){var c=NaN,d=NaN;b=0;for(a=new DataView(a.buffer);lp(a,b);){var e=mp(a,b);if(1936286840==e.type)d=e.data.getUint32(e.b+16);else if(1836476516==e.type)var d=e,g=d.data.getUint8(d.b+8)?28:20,d=d.data.getUint32(d.b+g);else 1952867444==e.type&&(c=e,c=c.data.getUint8(c.b+8)?op(c.data,c.b+12):c.data.getUint32(c.b+12));g=e.type;b=1836019558==g||1836019574==g||1953653094==g?b+8:b+e.size}b=c/d}else b=NaN;return b};function sp(){this.ea=0;this.b=new Float64Array(128);this.g=new Float64Array(128);this.k=1;this.j=!1}f=sp.prototype;f.Xj=function(a){return this.b[a]};f.mj=function(a){return this.g[a]/this.k};f.yj=function(a){a=this.rm(a);return 0<=a?a/this.k:-1};f.rm=function(a){return a+1<this.ea||this.j?this.g[a+1]-this.g[a]:-1};f.dt=function(){return 0};f.Yb=function(){return this.ea-1};f.Ff=function(){return this.j?this.g[this.ea]/this.k:NaN};f.Hn=function(){return 0};f.ut=function(){return this.ea};f.Ws=function(){return""}; 
f.ik=function(a){a=Ab(this.g.subarray(0,this.ea),a*this.k);return 0<=a?a:Math.max(0,-a-2)};f.Qn=function(){return 0<=this.Yb()};function tp(a){if(a.b.length<a.ea+1){var b=2*a.b.length,b=b+2,c=a.b;a.b=new Float64Array(b+1);var d=a.g;a.g=new Float64Array(b+1);for(b=0;b<a.ea+1;b++)a.b[b]=c[b],a.g[b]=d[b]}}function up(a,b){this.g=a;this.b=0;this.j=b||0}function vp(a){for(var b=wp(a,!1);236==b;)xp(a),b=wp(a,!1);return b} 
function yp(a){var b=wp(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 up(c,a.j+a.b);a.b+=b;return c}function zp(a){for(var b=wp(a,!0),c=Ap(a),d=1;d<b;d++)c=(c<<8)+Ap(a);return c}function xp(a){var b=wp(a,!0);a.b+=b}function wp(a,b){var c=Ap(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+Ap(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+Ap(a),e*=128;return b?c-e:c}function Ap(a){return a.g.getUint8(a.b++)};function Bp(a,b,c,d,e){Qo.call(this,a,b);this.C=c;this.B=d;this.k=null;this.index=new sp;this.g=e}x(Bp,Qo);f=Bp.prototype;f.wc=function(){return!(!this.b||!this.index.Qn())};f.Xr=function(a){var b=new Ro(1,this,this.C),c=new Ro(2,this,this.B),d=[],e=[b];To(b,c)?e.push(c):(d.push(new Xo([c])),a=0);isNaN(this.g)?a=0:a>this.g&&(a=this.g);b=e[e.length-1];c=b.Y.end-e[0].Y.start+1;a>c&&(a=Eo(b.Y.end+1,a-c),e.push(new Ro(4,this,a)));d.push(new Xo(e));return d}; 
f.mq=function(a){if(1==a.info.type){if(this.b)return;this.b=new Uint8Array(a.buffer,a.Y.start,a.Y.length)}else if(2==a.info.type){if(this.k||0<=this.index.Yb())return;if(1==this.info.b){var b=this.index,c=dp(a),d=a.info.Y.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.k=h;a+=8;0==g?(g=c.getUint32(a,!1),h=c.getUint32(a+4,!1),a+=8):(g=(c.getUint32(a,!1)<<32)+c.getUint32(a+4,!1),h=(c.getUint32(a+8,!1)<<32)+c.getUint32(a+12,!1),a+=16);b.b[0]=h+(e+d);b.g[0]=g;b.j= 
!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var k=c.getUint32(a,!1),h=c.getUint32(a+4,!1);a+=12;g=b;g.ea++;tp(g);g.b[g.ea]=g.b[g.ea-1]+k;g.g[g.ea]=g.g[g.ea-1]+h}}else this.k=dp(a)}if(to(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 up(c);if(440786851==vp(c)&&(xp(c),408125543==vp(c))){d=c;e=d.b;a=wp(d,!0);d.b=e;for(var c=yp(c),d=c.j+c.b,l=vp(c);357149030!=l;)xp(c),l=vp(c);c=yp(c);h=1E6;k=1E9;for(e=0;!(c.b>=c.g.byteLength);)if(l= 
vp(c),2807729==l)h=zp(c);else if(2807730==l)k=zp(c);else if(17545==l){var e=c,l=wp(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 xp(c);b.k=k/h;c=new up(g);if(475249515==vp(c)){for(c=yp(c);!(c.b>=c.g.byteLength);)if(l=vp(c),187==l){g=yp(c);h=d;if(179!=vp(g))k=null;else if(k=zp(g),183!=vp(g))k=null;else{g=yp(g);for(l=h;!(g.b>=g.g.byteLength);)241==vp(g)?l=zp(g)+h:xp(g);k=[l,k]}g=b;h=k[0];k=k[1];tp(g);g.b[g.ea]=h;g.g[g.ea]=k;g.ea++}else xp(c);c=a+d;a=e;tp(b);b.j= 
!0;b.g[b.ea]=a;b.b[b.ea]=c}}this.k=null}};function Wo(a,b,c,d){for(var e=[];b<=a.index.Yb();b++){var g;g=a.index;var h=b;g=Eo(g.Xj(h),h+1<g.ea||g.j?g.b[h+1]-g.b[h]:-1);var h=a.index.mj(b),k=a.index.yj(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new Ro(3,a,g,b,h,k,l,p,b==a.index.Yb()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new Xo(e)} 
f.Ir=function(a){for(var b=this.$i(a.info),c=[],d=a.b,e=0;e<b.length;e++){var g=Eo(b[e].Y.start+b[e].j-a.info.Y.start+a.Y.start,b[e].g);c.push(new pp(b[e],a.buffer,g,d));d=!1}return c};f.$i=function(a){for(var b=0;b<this.index.Yb()&&a.Y.start>=this.index.Xj(b+1);)b++;return Wo(this,b,a.Y.start,a.Y.length).b};f.Pg=function(a){return this.wc()?!0:isNaN(this.g)?!1:a.Y.end+1<this.g};f.Ri=function(a,b){var c=this.index.ik(a);b&&(c=Math.min(this.index.Yb(),c+1));return Wo(this,c,this.index.Xj(c),0)}; 
f.lm=function(){var a;if(a=this.wc()&&!isNaN(this.g))a=this.index,a=(a.j?a.b[a.ea]:-1)!=this.g;return a};f.sm=function(){return!0};function Cp(a){this.o=this.duration=0;this.b=!1;this.A=w();this.k=Infinity;this.Ma={};this.C=a||"";this.g=this.j=!1}function Dp(a){return Ob(a.Ma,function(a){return!!a.info.o},a)}var Ep=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/; 
function Fp(a,b){var c=new Cp;B(a,function(a){var e=a.type,g=a.itag,h=null;wo(e)&&(h=a.size.split("x"),h=new zo(parseInt(h[0],10),parseInt(h[1],10)));var k=null,l=null;vo(e)&&(k=new qo,a.name&&(l=new xo(a.name,0,0,"1"==a.isDefault)));a.xtags&&(g=a.itag+":"+a.xtags);var p=parseInt(a.bitrate,10)/8,r=null;b&&a.drm_families&&(r={},B(a.drm_families.split(","),function(a){r[a]=b[a]}));e=new so(g,e,k,h,l,r,p);h=Do(a.init);k=Do(a.index);l=Gp(a.url,e,a.s);a=parseInt(a.clen,10);l&&(c.Ma[g]=new Bp(l,e,h,k,a))}); 
return c}function Hp(a){if(!a)return 0;var b=Ep.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function Ip(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 Jp(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 Gp(a,b,c){if(!ef(a))return"";var d={alr:"yes",ratebypass:"yes"};Fo(a,"mime")||(d.mime=encodeURIComponent(b.mimeType.split(";")[0]));c&&(d.signature=po(c));return Io(a,d)} 
function Kp(a){var b=Ip(a,"id");"captions"==b&&(b=Ip(a,"lang"));var c=Ip(a,"mimeType"),d=Ip(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(Ip(a,"bandwidth"),10)/8,e=null;wo(c)&&(e=new zo(parseInt(Ip(a,"width"),10),parseInt(Ip(a,"height"),10)));var g=null,h=null;if(vo(c)){g=new qo;var h=Ip(a,"lang")||"",k=Jp(a,"Role");if(k){var k=Ip(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 xo(h+ 
" - "+l,0,0,"original"==l):null}else h=null}k=null;if(a=Jp(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 so(b,c,g,e,h,k,d)}function Lp(a,b,c,d){a.j=!0;a={format:"RAW",method:"GET",Bb:v(a.B,a,c,d||null)};Li(b,a)} 
Cp.prototype.B=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.k=1E3*Hp(Ip(c,"minimumUpdatePeriod"))||Infinity,this.b=Infinity>this.k,this.g=!0,this.o=parseInt(Ip(c,"yt:earliestMediaSequence"),10),c=0;c<b.length;c++){var d=Kp(b[c]);if(!this.Ma[d.id]){var e=Gp(Jp(b[c],"BaseURL").textContent,d),g=Jp(b[c], 
"Initialization"),h=Ip(g,"sourceURL"),g=Do(Ip(g,"range"));this.Ma[d.id]=new ap(e,d,h,null===g?void 0:g)}var h=Jp(b[c],"SegmentList"),k=Jp(h,"SegmentTimeline"),e=k.getElementsByTagName("S"),h=h.getElementsByTagName("SegmentURL"),g=0,l;if(this.b){l=parseInt(Ip(k,"startNumber"),10)||0;var p=parseInt(Ip(k,"yt:earliestMediaSequence"),10);l<p&&(l=p)}else l=0;for(var k=parseInt(Ip(k,"timescale"),10)||1,p=[],r=0;r<h.length;r++){var u;u=l+r;var t=g,z=k,y=h[r],z=parseFloat(e[r].getAttribute("d"))/z,N=y.getAttribute("media"), 
ra=null,y=y.getAttribute("mediaRange");null!=y&&(0<=parseInt(y.split("-")[1],10)?ra=Do(y):N=N+"?range="+y);u=new Jo(u,t,z,N,ra);p.push(u);g+=u.duration}this.Ma[d.id].update(p,this.b,this.o)}else i:for(this.duration=Hp(Ip(c,"mediaPresentationDuration")),c=0;c<b.length;c++){g=b[c];d=Kp(g);h=Jp(g,"BaseURL");e=Gp(h.textContent,d);l=Jp(g,"SegmentBase");g=Do(l.attributes.indexRange.value);l=Do(l.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"), 
10);d=new Bp(e,d,l,g,h);if(!d)break i;this.Ma[d.info.id]=d}this.A=w();a&&a(this)}else b&&b(c);this.j=!1};function Mp(a){for(var b in a.Ma)if(a.Ma[b].index)return a.Ma[b].index.Ff();return NaN}function Np(a){for(var b in a.Ma)if(a.Ma[b].index)return a.Ma[b].index.Hn();return 0}function Op(a,b){Nb(a.Ma,function(a){a=a.A;a.b=Io(a.b,b)})};function Pp(a,b){this.id=a;this.name=b}Pp.prototype.toString=function(){return this.name};function Qp(a,b,c){this.g=a||0;this.b=b||0;this.j=c}Qp.prototype.equals=function(a){return this.g==a.g&&this.b==a.b&&this.j==a.j};function Rp(a,b,c){return new Qp(yo[a]||0,yo[b]||0,c)}var Sp=Rp("auto","large",!1),Tp=Rp("auto","auto",!1);function Up(a){var b=yo.auto;return a.g==b&&a.b==b}function Vp(a){return a.j&&!!a.g&&a.g==a.b} 
function Wp(a,b){if(b.j&&Up(b))return Tp;if(b.j||Up(a))return b;if(a.j||Up(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 Qp(c,d,!1)}function Xp(a){var b=a.b||a.g;return Wb(function(a){return yo[a]==b})||"auto"}Qp.prototype.k=function(a){if(!a.video)return!1;a=yo[a.video.b];return this.g<=a&&(!this.b||this.b>=a)};function Yp(a,b){this.g=a;this.b=b||null}function Zp(a,b){var c=b||Tp,c=hb(a.g,v(c.k,c)),c=C(c,function(a){return a.video.b});zb(c);return c}function $p(a){if(!a.b)return[];var b=[];B(a.b,function(a){a.k&&b.push(new Pp(a.id,a.k.name))});zb(b);return b};function aq(a,b,c,d,e,g,h,k,l,p){this.g={};this.o=a;this.F=b;this.B=c;this.Ab=d;this.rows=e;this.I=g;this.D=h;this.j=k;this.k=l;this.M=p}aq.prototype.b=function(){return this.B};function bq(a,b){var c=a.D,c=c.replace("$N",a.j),c=c.replace("$L",a.M.toString()),c=c.replace("$M",b.toString());a.k&&(c=$d(c,{sigh:a.k}));return c} 
function cq(a,b){var c=Math.floor(b/(a.Ab*a.rows)),d=a.Ab*a.rows,e=b%d,g=e%a.Ab,e=Math.floor(e/a.Ab),h=a.rows,k=a.b()-d*c;k<d&&(h=Math.ceil(k/a.Ab));return{url:bq(a,c),XB:g,Ab:a.Ab,row:e,rows:h,is:a.o*a.Ab,hs:a.F*h}}aq.prototype.A=function(a){var b=this.b()-1;a=Math.round(1E3*a/this.I);return Ib(a,0,b)};function dq(a){this.b=this.g(a);this.j={};1<this.b.length&&-1!=this.b[0].j.indexOf("default")&&this.b.splice(0,1)}dq.prototype.g=function(a){var b=[];a=a.split("|");for(var c=a[0],d,e,g,h,k,l,p,r,u,t=1;t<a.length;t++)d=a[t].split("#"),e=t-1,g=parseInt(d[0],10),h=parseInt(d[1],10),180<=h||(k=parseInt(d[2],10),l=parseInt(d[3],10),p=parseInt(d[4],10),r=parseInt(d[5],10),u=d[6],d=d[7],b.push(this.k(g,h,k,l,p,r,c,u,d,e)));return b}; 
dq.prototype.k=function(a,b,c,d,e,g,h,k,l,p){return new aq(a,b,c,d,e,g,h,k,l,p)};function eq(a,b){var c=a.j[b];if(c)return c;for(var c=a.b.length,d=0;d<c;d++)if(a.b[d].o>=b)return a.j[b]=d;a.j[b]=c-1;return c-1};function fq(a,b,c,d,e,g,h,k,l,p,r,u){aq.call(this,a,b,c,d,e,g,h,k,l,p);this.$a=r;this.C=u?3:0}x(fq,aq);function gq(a){if(!n(a.Wh))for(var b in a.$a.Ma){a.Wh=b;break}}fq.prototype.b=function(){gq(this);return n(this.Wh)?this.$a.Ma[this.Wh].index.ut():-1};fq.prototype.A=function(a){gq(this);var b=this.rows*this.Ab*this.C,c=-1,d=-1;n(this.Wh)&&(d=this.$a.Ma[this.Wh].index,c=d.Yb(),d=d.ik(a));return d>c-b?-1:d};function hq(a,b){this.$a=b;dq.call(this,a)}x(hq,dq);hq.prototype.g=function(a){var b=a,c=[];B(a.split("|"),function(a){a=a.split("#");c.push([a[1],a[2],0,a[3],a[4],a[5],a[0],""].join("#"))});b="$N|"+c.join("|");return hq.G.g.call(this,b)};hq.prototype.k=function(a,b,c,d,e,g,h,k,l,p){return new fq(a,b,c,d,e,g,h,k,l,p,this.$a,this.$a.b)};var iq={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};var jq={aJ:1,bJ:2,cJ:3};var kq;var lq=fc,lq=lq.toLowerCase();if(Ma(lq,"android")){var mq=lq.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(mq)kq=Number(mq[1]);else{var nq={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},oq=lq.match("("+Tb(nq).join("|")+")");kq=oq?nq[oq[0]]:0}}else kq=void 0;var pq,qq;function rq(){var a=q("yt.player.utils.videoElement_");a||(a=document.createElement("video"),ba("yt.player.utils.videoElement_",a,void 0));return a}function sq(){if(2.2==kq)return!0;var a=rq();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 tq(){var a=I("div",{"class":"html5-player-css-loaded"});document.body.appendChild(a);var b="none"==Mf(a,"display");ed(a);return b};function uq(){var a;if(void 0==pq&&(pq=!1,window.crypto&&window.crypto.getRandomValues))try{a=new Uint8Array(1),window.crypto.getRandomValues(a),pq=!0}catch(b){}if(pq){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=w(),e=0;e<d%23;e++)a[c]=Math.random();a[c]=Math.floor(256*Math.random())}return a} 
function vq(){for(var a=uq(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function wq(){return C(uq(),function(a){return(a&15).toString(16)}).join("")};function xq(a,b,c){b={cpn:b};c&&(b.ibw="1369843");return{url:$d(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};function U(a,b){return void 0==b?a:"1"==b?!0:!1}function yq(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function zq(a,b){return void 0==b?a:Number(b)}function Aq(a,b){return void 0==b?a:b.toString()}function Bq(a,b){var c=Aq(a,b);c&&(c=kf(c));return c}var Cq=/^([0-9\.]+)\:([0-9\.]+)$/;function Dq(a){if(a&&(a=a.match(Cq))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function Eq(a,b){var c=yo.auto,d=yo[b];return d>=yo.medium?new Qp(d,c,!1):d>=c?new Qp(c,d,!1):a};var Fq,Gq=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},Hq=v(Gq.clearResourceTimings||Gq.webkitClearResourceTimings||Gq.mozClearResourceTimings||Gq.msClearResourceTimings||Gq.oClearResourceTimings||ca,Gq),Iq=Gq.mark?function(a){Gq.mark(a)}:ca;function Jq(a,b,c){Kq(c).tick[a]=b||w();b||Iq(a)}function Lq(a,b){var c=Kq(b).tick;return a in c} 
var Nq="https:"===window.location.protocol&&ka(Gq.getEntriesByType)?function(a){var b={};Gq.getEntriesByType("resource").forEach(function(a){if(0===a.name.indexOf("https://s.ytimg.com/yts/")){var d=Mq[a.initiatorType];if(d&&d.extension.test(a.name)){var e=d.tk,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 Oq(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];pf(b+"?"+c.substring(1))}function Pq(a){return Kq(a).info}function Kq(a){return q("ytcsi."+(a||"")+"data_")||Qq(a)}function Qq(a){var b={tick:{},span:{},info:{}};ba("ytcsi."+(a||"")+"data_",b,void 0);return b}var Mq={link:{tk:"c",extension:/\.css$/},script:{tk:"j",extension:/\.js$/},css:{tk:"s",extension:/\.(?:webp|png)$/},"":{tk:"f",extension:/\.swf$/}};var Rq,Sq;var Tq=fc,Uq=Tq.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Uq||2>Uq.length)Rq=void 0;else{var Vq=Tq.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Rq=Vq&&6==Vq.length?Number(Vq[5].replace("_",".")):0}(Sq=0<=Rq)&&0<=fc.search("Safari")&&fc.search("Version");var Wq={XI:0,eI:1,LI:2};function Xq(a,b,c){c=c||{};Ri(c.Ua,c.gb,v(Yq,m,a,b,c),c.onError)} 
function Yq(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.Ib;c.Oa&&(d.list=c.Oa);c.Ua&&(d.authuser=c.Ua);c.gb&&(d.pageid=c.gb);a={screen:Yd({h:screen.height,w:screen.width,d:screen.colorDepth}),session_token:Te("XSRF_TOKEN")};c.SD&&(a.station_id=c.SD);Li("/watch_actions_ajax",{format:"XML",method:"POST",jg:d,Nb:a,onSuccess:c.onSuccess,onError:c.onError,Bb:c.Bb})};var Zq=[.25,.5,1,1.25,1.5,2];function $q(a){this.b=(a||"").split(",");var b={};B(this.b,function(a){b[a]=!0});this.ta=!!b["925900"];this.F=!!b["913424"];this.B=!!b["932250"];this.V=!!b["945025"];this.T=!!b["945035"];this.M=!!b["945056"];this.ka=!!b["945066"];this.yb=!!b["945068"];this.C=!!b["945069"];this.oa=!!b["945063"];this.xa=!!b["945064"];this.aa=!!b["927845"];this.N=!!b["936926"];this.D=!!b["913430"];this.g=!(!b["926304"]&&!b["932404"]);this.k=!!(b["926301"]||b["926305"]||this.g);this.o=!(!b["931972"]&&!b["931983"]);this.j= 
!!b["907252"];this.fa=!!b["927877"];this.ca=!!b["939937"];this.wa=!!b["913436"];this.O=!!b["930655"];this.U=!!b["930656"];this.P=!!b["930657"];this.L=!!b["930658"];this.A=!!(b["913437"]||b["948903"]||b["948904"]||b["948905"]||b["948906"]||b["948907"]||b["948908"]);this.ma=!!b["907256"];this.I=!!b["953500"]};function ar(a,b){this.b=a;this.g=b}ar.prototype.clone=function(){return new ar(this.b,this.g)};function br(a){this.b=[];if(a)t:{var b,c;if(a instanceof br){if(b=a.La(),c=a.Sa(),0>=a.Pa()){a=this.b;for(var d=0;d<b.length;d++)a.push(new ar(b[d],c[d]));break t}}else b=Tb(a),c=Sb(a);for(d=0;d<b.length;d++)cr(this,b[d],c[d])}}function cr(a,b,c){var d=a.b;d.push(new ar(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=br.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.Sa=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].g);return b};f.La=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].b);return b};f.wg=function(a){return jb(this.b,function(b){return b.g==a})};f.clone=function(){return new br(this)}; 
f.Pa=function(){return this.b.length};f.isEmpty=function(){return E(this.b)};f.clear=function(){pb(this.b)};function dr(){br.call(this)}x(dr,br);function er(a,b){ej.call(this);this.b=a;this.j=new dr;this.o={};this.k=b||""}x(er,ej);er.prototype.g=!1;function fr(a,b,c){var d;for(c=eq(a.b,c);0<=c;){d=a.b.b[c];if(d=d.g[Math.floor(b/(d.Ab*d.rows))]?cq(d,b):null)return d;c--}return cq(a.b.b[0],b)}function gr(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=bq(a.b.b[b.bq],b.cq);c.onload=v(a.A,a,b.bq,b.cq)}} 
er.prototype.A=function(a,b){this.g=!1;var c=this.b.b[a];c.g[b]=!0;gr(this);var d,e=c.Ab*c.rows;d=b*e;c=Math.min(d+e-1,c.b()-1);d=[d,c];this.H("l",d[0],d[1])};function hr(a,b,c){this.g=a;this.b=b;this.j=c}var ir={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},jr=["widevine","playready"];function kr(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null} 
function lr(a,b,c){var d,e=kr();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<jr.length;g++){var h=jr[g];if(c[h])for(var k=ir[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 hr(h,p,c[h])}}return null};function mr(a,b){this.b=a;this.j=b;this.k=0;Object.defineProperty(this,"timestampOffset",{get:this.QA,set:this.RA});Object.defineProperty(this,"buffered",{get:this.PA})}f=mr.prototype;f.append=function(a){this.b.webkitSourceAppend(this.j,a)};f.abort=function(){this.b.webkitSourceAbort(this.j)};f.PA=function(){return this.b.webkitSourceState==this.b.SOURCE_CLOSED?new nr:this.b.webkitSourceBuffered(this.j)};f.QA=function(){return this.k}; 
f.RA=function(a){this.k=a;this.b.webkitSourceTimestampOffset(this.j,a)};function nr(){this.length=0};function or(a){this.activeSourceBuffers=this.sourceBuffers=[];this.b=a;this.g=NaN;this.j=0;Object.defineProperty(this,"duration",{get:this.gA,set:this.jA});Object.defineProperty(this,"readyState",{get:this.hA});this.b.addEventListener("webkitsourceclose",v(this.iA,this),!0)}f=or.prototype;f.addEventListener=function(a,b,c){this.b.addEventListener(a,b,c)};f.HB=function(){return this.b.webkitMediaSourceURL}; 
f.addSourceBuffer=function(a){var b=(this.j++).toString();this.b.webkitSourceAddId(b,a);a=new mr(this.b,b);this.sourceBuffers.push(a);return a};f.hA=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.iA=function(){pb(this.sourceBuffers)}; 
f.gA=function(){return this.g};f.jA=function(a){this.g=a;this.b.webkitSourceSetDuration&&this.b.webkitSourceSetDuration(a)};function pr(a){this.k=[];this.F=a||null}function qr(a,b,c,d){for(var e=0;e<c.length;e++)a.listen(b,c[e],d)}pr.prototype.listen=function(a,b,c){c=v(c,this.F||this);a.addEventListener(b,c,!1);this.k.push(a,b,c)};pr.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)}};pr.prototype.ha=function(){return null===this.k};pr.prototype.dispose=function(){this.removeAll();this.k=null};var rr=nh||oh;function sr(){return tr("(ps3; leanback shell)")}function ur(){return tr("safari/")&&tr(" version/8")}function tr(a){var b=fc;return b?0<=b.toLowerCase().indexOf(a.toLowerCase()):!1};function vr(a,b,c,d){pr.call(this);this.g=this.b=null;this.A=b;this.j=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new or(a);this.o="";this.B=null;qr(this,this.j,["sourceopen","webkitsourceopen"],sa(this.D,d,c));qr(this,this.j,["sourceclose","webkitsourceclose"],this.C)}x(vr,pr);function wr(a,b){a.B=b}function xr(a){if(!a.o){var b;b=a.j;b=b.HB?b.b.webkitMediaSourceURL:window.URL.createObjectURL(b);a.o=b}return a.o} 
vr.prototype.Cf=function(a){yr(this)?this.j.duration=a:this.A=a};function yr(a){return"open"==a.j.readyState}function zr(a){return"closed"==a.j.readyState}function Ar(a){return a.b.updating||a.g.updating}function Br(a){return a.b?!!a.b.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}vr.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))}; 
vr.prototype.C=function(){this.dispose()};vr.prototype.dispose=function(){var a=this.o;if(a)try{window.URL.revokeObjectURL(a)}catch(b){}this.o="";vr.G.dispose.call(this)};function Cr(a){if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if('video/webm; codecs="vp9"'==a&&!tr("(ps4; leanback shell)"))return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!rq().canPlayType(a)};function Dr(a,b){this.j=a;this.b=b;this.g={}}function Er(a){return a.b?a.j:$d(a.j,a.g)};function Fr(a,b){this.b=new Dr(a,!1);this.pg=b}var Gr="9h8(H*".split(""),Hr="h98(H*".split(""),Ir=["M","a","v","A","V"];Fr.prototype.getInfo=function(){return this.pg};Fr.prototype.bo=function(){return this.pg.video.b};var Jr={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Kr={"application/x-mpegURL":"maybe"},Lr={"application/x-mpegURL":"maybe"}; 
function Mr(a,b){if(!sq())return[];var c=Nr(a,b);a=!c.length&&b?Nr(a,!1):c;for(var d={},c=rq(),e=0;e<a.length;e++){var g=a[e];if(Or(c,g.getInfo().mimeType)&&!(g.pg.id in Pr||sr()&&"5"==g.pg.id)){var h=g.bo();if(!d[h]||to(d[h].getInfo()))d[h]=g}}var k=[];B(Ao,function(a){(g=d[a])&&k.push(g)});return k}function Or(a,b){var c;if(!(c=a.canPlayType(b))){var d;oh?d=Lr[b]:2.2==kq?d=Jr[b]:tr("android")&&tr("chrome")&&(d=Kr[b]);c=d||""}return c} 
function Qr(){return tr("android")&&tr("chrome")&&!Bc(29)?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var Pr={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function Rr(a){var b=[];B(a,function(a){a.url&&b.push(Sr(a.url,a.type,"medium","0"))});return b}function Sr(a,b,c,d,e){var g=new qo,h=Bo[c];h||(c="small",h=Bo.small);c=new zo(h[0],h[1],e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new Fr(a,new so(d,b,g,c))} 
function Nr(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],g;if(g=rc&&0!=e.pg.video.g)g=1==e.getInfo().b;g||0!=e.pg.video.g==b&&c.push(e)}return c}function Tr(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||po(e.s);e.url=Ei(e.url,{signature:g})}e.url&&c.push(Sr(e.url,e.type,e.quality,e.itag,e.stereo3d))}return Mr(c,!!b)}function Ur(a){a=Rr(a);return Mr(a,!1)} 
function Vr(a,b){if(!b.b)return a[0];for(var c=0;c<a.length;c++){var d=a[c].getInfo();if(yo[d.video.b]<=b.b)return a[c]}return a[a.length-1]} 
function Wr(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.Ma){var g=a.Ma[e];if(Cr(g.info.mimeType)){if(g.info.o){d||(d=rq());if(!lr(d,g.info.mimeType,g.info.o))continue;if(261==g.info.id&&(sr()||!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=Gr;if(tr("cros armv7")||tr("windows nt 5.1"))a=Hr;d=lb(a,b);a=lb(Ir,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.ra-a.ra});Cb(a,function(a,b){return b.ra-a.ra});return new Yp(d,a)};function Xr(a){ej.call(this);this.kb=new G(0,0);this.Va=this.fa=!1;this.F=[];this.k={};this.Ia={};this.o={};Yr(this,a)}x(Xr,ej);Xr.B=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Xr.b=1;Xr.k=-21;Xr.A=18E3;Xr.o="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(" "); 
Xr.j=["www.youtube.com","manifest.googlevideo.com"];f=Xr.prototype;f.Z=!1;f.zn="";f.Zr=null;f.Rq=!0;f.rb=!1;f.Cj="";f.an="";f.Ok=!1;f.Pq=Xr.b;f.ci=null;f.Vo=null;f.author="";f.ai=0;f.tm=!1;f.Ko=3;f.Yr=!1;f.Xf="";f.Fa="";f.nn=!1;f.ze=0;f.Sk=!1;f.qi=!1;f.Lk=!1;f.If=0;f.Te=!1;f.So=!1;f.Zh=0;f.Cg=!1;f.Eo=!0;f.Gk=!1;f.Qm=!1;f.zm=!1;f.Za=!1;f.Rm=!1;f.Lm=!1;f.Qd=!1;f.Ap=!1;f.Sm=!1;f.vx=0;f.Qa=0;f.wk=0;f.Ls=!1;f.ym="";f.pn=!1;f.hh=!1;f.Om=Tp;f.Ep=0;f.Uk=!1;f.Ta=0;f.uk=null;f.rl=2;f.zf=Tp;f.ms=!1;f.Yf=!1; 
f.Ee=null;f.title="";f.De="";f.fk=null;f.xk="vvt";f.Ms=!1;f.Fo=!1;f.clipStart=0;f.clipEnd=Infinity; 
function Zr(a,b){var c=b||{};c.iv_invideo_url&&(a.Cj=kf(c.iv_invideo_url));c.iv_cta_url&&(a.an=kf(c.iv_cta_url));c.cta_conversion_urls&&(a.xb=c.cta_conversion_urls);a.author=Aq(a.author,c.author);a.tm=U(a.tm,c.cc_asr);var d=c.ttsurl||a.Xf;d&&cf(d)?a.Xf=d:a.Xf=Bq(a.Xf,c.ttsurl);a.Fa=Aq(a.Fa,c.cpn);a.L=Aq(a.L,c.subscribed);a.rl=yq(a.rl,c.sentiment,Wq);a.title=Aq(a.title,c.title);a.xa=Aq(a.xa,c.ypc_preview);a.Ls=U(a.Ls,c.paygated);a.Ms=U(a.Ms,c.requires_purchase);c.keywords&&(a.Ia=$r(c.keywords));c.rvs&& 
(a.A=as(c.rvs));c.poster&&(a.ym=c.poster);a.nn=U(a.nn,"1"==c.cco);a.pn=U(a.pn,"1"==c.rco);a.B=Aq(a.B,c.oauth_token);B(Xr.o,function(a){a in c&&(this.k[a]=c[a])},a)} 
function Yr(a,b){var c=b||{};a.rb="1"!=c.hlsdvr||rh||oh&&5>Rq?!1:!0;a.Ok="1"==c.infringe||"1"==c.muted;a.wb=c.authkey;a.Ua=c.authuser;a.Fa||(a.Fa=c.cpn||vq());a.ky=w();a.vk=c.t;a.Sk=U(a.Sk,c.cenchd);a.qi=U(a.qi,c.enable_cardio);a.Lk=U(a.Lk,c.enable_cardio_before_playback);a.If=zq(a.If,c.end||c.endSeconds);a.Da=Aq(a.Da,c.itct);a.Eo="1"!=c.no_get_video_log;a.Gk="1"==c.tmi;a.Qm=U(a.Qm,c.noiba);a.zm="1"==c.livemonitor;a.Za="1"==c.live_playback;a.Rm=U(a.Rm,c.mdx);a.Lm=U(a.Lm,c.on3g);a.Sm=U(a.Sm,c.utpsa); 
a.Ae=c.iurlmaxres_webp||c.iurlmaxres;a.D=Aq(a.D,c.vvt);a.Jz=c.osig;a.qf=c.ptchn;a.pf=c.oid;a.P=c.ptk;a.sf=c.pltype;a.Ib=c.plid;a.C=c.eventid;a.mb=c.osid;a.Oa=Aq(a.Oa,c.list);a.ri=c.pyv_view_beacon_url;a.xx=c.pyv_quartile25_beacon_url;a.yx=c.pyv_quartile50_beacon_url;a.zx=c.pyv_quartile75_beacon_url;a.wx=c.pyv_quartile100_beacon_url;a.Ax=c.purchase_id;a.ti=c.sdetail;!a.eb&&c.session_data&&(a.eb=yi(c.session_data,"&").feature);a.ad=1==zq(a.ad?1:0,c.is_fling);a.jb=Aq(a.jb,c.ctrl);a.ob=Aq(a.ob,c.ytr); 
a.di=c.iurlsd_webp||c.iurlsd;a.Fo="1"==c.skip_kansas_logging;a.Om=Eq(a.Om,c.vq);a.zf=Eq(a.zf,c.suggestedQuality);a.gC=c.approx_threed_layout||0;a.ms="1"==c.threed_converted;a.wa=c.iurl_webp||c.iurl;a.Ta=zq(a.Ta,c.start||c.startSeconds);a.bi=U(a.bi,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId;a.$h=Aq(a.$h,c.vss_credentials_token);a.xk=Aq(a.xk,c.vss_credentials_token_type);bs(a,c.watermark);a.fi=Aq(a.fi,c.ypc_gid);a.gi=Aq(a.gi,c.ypc_license_session_token);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads? 
(a.Z=!0,"1"==c.ad_preroll&&a.F.push("ad")):"1"!=c.supported_without_ads&&(a.So=!0);c.adaptive_fmts&&(a.zn=c.adaptive_fmts);void 0!=c.atc&&(a.aa=c.atc);c.license_info&&(a.Zr=cs(c.license_info));c.allow_embed&&(a.Rq="1"==c.allow_embed);c.autoplay&&(a.Cg="1"==c.autoplay);c.iv_load_policy&&(a.Aa=ds(c.iv_load_policy,a.Aa));c.cc_load_policy&&(a.Ko=ds(c.cc_load_policy,2));"0"==c.dash&&(a.Yr=!0);if(c.dashmpd){a.O=$d(c.dashmpd,{cpn:a.Fa});var d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O);e&&(e=po(e[1]),a.O=a.O.replace(d, 
"/signature/"+e))}c.delay&&(a.ze=$a(c.delay));void 0!=c.end&&(a.clipEnd=c.end);c.fresca_preroll&&a.F.push("fresca");c.idpj&&(a.Zh=$a(c.idpj));c.url_encoded_fmt_stream_map&&(a.De=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.V=c.hlsvp);c.length_seconds&&(a.Qa=$a(c.length_seconds));c.ldpj&&(a.wk=$a(c.ldpj));c.loudness&&(a.wf=c.loudness,a.Pq=es(a));c.partnerid&&(a.T=$a(c.partnerid));c.probe_url&&(a.tf=lf($d(c.probe_url,{cpn:a.Fa})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(Je)&&(a.oa=c.pyv_billable_url); 
c.pyv_conv_url&&-1!=c.pyv_conv_url.search(Je)&&(a.ma=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Ha=d.quartile_0_url,a.vf=d.quartile_25_url,a.rf=d.quartile_50_url,a.uf=d.quartile_75_url,a.Be=d.quartile_100_url);c.spacecast_address&&(a.F.push("spacecast"),a.fb=c.spacecast_address);void 0==c.start||"1"==c.resume||a.Za||(a.clipStart=c.start);c.threed_module&&!c.threed_converted&&(a.ta=c.threed_module,a.yz=6);c.two_stage_token&&(a.ci=c.two_stage_token);c.url_encoded_third_party_media&& 
(a.Ee=as(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.Vo=c.watch_ajax_token);c.ypc_module&&a.F.push("ypc");c.ypc_clickwrap_module&&a.F.push("ypc_clickwrap");a.Yh=Aq(a.Yh,c.ucid);B("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.o[a]=c[a])},a);a.o.focEnabled=U(a.o.focEnabled,c.focEnabled);a.o.rmktEnabled=U(a.o.rmktEnabled,c.rmktEnabled);a.k=c;Zr(a,c);fs(a)} 
function fs(a){(a.Za||a.zm)&&"1"==a.k.as3fb||!Qr()||a.Yr||(a.zn?a.j=Fp(gs(a,a.zn),a.Zr):a.O&&(a.Te=!0,a.fa=!0))}f.ry=function(a){if(!this.ha()){if(this.j=a)this.Qa=this.j.duration||this.Qa;this.Cm()}};f.Cm=function(){this.ha()||(this.Te=!1,this.H("dataloaded",this.k))}; 
function hs(a){if(!a.ha()){a.g=null;a.U=null;a.I=null;if(a.ca){var b=gs(a,a.ca);a.I=Tr(b,!1);a.g=new Yp(C(a.I,function(a){return a.getInfo()}))}!a.g&&a.j&&(a.g=Wr(a.j));if(!a.g){if(a.Ee&&a.Ap)a.I=Ur(a.Ee);else{b=gs(a,a.De);if(a.V){var c=xq(a.V,a.Fa,!a.Lm);b.push(c)}a.I=Tr(b,!!a.ta||a.Yf)}a.I.length&&(a.g=new Yp(C(a.I,function(a){return a.getInfo()})))}a.Ep=Math.min(.8*a.Qa,180)}}function is(a){return a.b&&a.b.o||null}function js(a,b){return s(a.Ia[b])?a.Ia[b]:null} 
function ks(a){if(!a.fk){var b=ls(a);b&&(a.Za?a.fk=new hq(b,a.j):a.fk=new dq(b))}return a.fk}function ls(a){return a.k.storyboard_spec||a.k.live_storyboard_spec}function ms(a){var b=ks(a);!a.uk&&b&&(a.uk=new er(b),R(a,a.uk));return a.uk}function ns(a){return!a.ha()&&!(!a.videoId&&!a.Ee)}function os(a){return ns(a)&&!a.Te&&!a.fa&&(!!(a.j||a.De||a.Ee||a.ca||a.V)||D(a.F,"fresca")||D(a.F,"ypc"))} 
function ps(a,b){var c={format:"RAW",method:"GET",context:a,onSuccess:a.wE,onError:a.vE};a.Te=!0;Li(b,c);Jq("vir")}function es(a){return a.wf?(a=Math.min(Xr.k-a.wf,0),Math.pow(10,a/20)):Xr.b}f.wE=function(a){this.ha()||(this.Te=!1,a=Ai(a.responseText),"fail"==a.status?this.H("onStatusFail",a):(Jq("virc"),Yr(this,a),this.Cm()))};f.vE=function(){this.ha()||(this.Te=!1,this.H("onStatusFail",{errorcode:"manifest.net",reason:""}))};function ds(a,b){var c=parseInt(a,10);return Ub(jq,c)?c:b} 
function as(a){a=a.split(",");return a=a.map(function(a){return Ai(a)})}function gs(a,b){var c=as(b);B(c,function(a){a.url&&(a.url=$d(a.url,{cpn:this.Fa}))},a);return c}function $r(a){var b={};B(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}function bs(a,b){if(b){var c=b.split(",");2<=c.length&&(a.ka=c[1],-1!=a.ka.search(Xr.B)&&(a.ka=""))}}function cs(a){a=as(a);var b={};B(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b} 
function qs(a,b){return!!a.k[b]}function rs(a){return a.Za&&!a.rb}function ss(a){return a.Za&&a.rb}Xr.g=function(a){return a?a:{autonav:"1",feature:"related-auto",playnext:"1"}};function ts(a,b){this.type=a||"";this.id=b||""}function us(a){return new ts(a.substr(0,2),a.substr(2))}ts.prototype.toString=function(){return this.type+this.id};function vs(a){ej.call(this);this.views=0;this.b=[];this.g=[];this.Na=Math.max(0,a.index||0);this.dg=!!a.loop;this.Zm=a.startSeconds||0;this.Zq="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||"";a.video_id&&(this.b[this.Na]=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":ws(this,a.list);break;case "user_favorites":xs(this,a.list);break;case "search":ys(this, 
a.list);break;default:a.playlist_length&&(this.Bc=a.playlist_length),this.j=us(a.list),0==a.fetch&&a.videoList?zs(this,a.videoList):As(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Na&&(this.b=[]);B(b,function(a){a&&this.b.push({video_id:a})},this);this.Bc=this.b.length;b=C(this.b,function(a){return a.video_id});Bs(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.je=!0}else a.videoList&&zs(this,a.videoList);Cs(this,!!a.shuffle)}x(vs,ej); 
f=vs.prototype;f.dg=!1;f.Zm=0;f.Jr=!1;f.Na=0;f.title="";f.Bc=0;f.Zq=!1;f.je=!1;f.Nh=!1;f.Se=null;function Ds(a){return a.dg||a.Na+1<a.Bc}function Es(a){var b=a.Na+1;b>=a.Bc&&(b=a.dg?0:-1);return b}function Fs(a){var b=Es(a);if(-1==b)return null;Gs(a,b);return Hs(a,b)}function Is(a){if(0>--a.Na)if(a.dg)a.Na=a.Bc-1;else return null;Gs(a,a.Na);return Hs(a,a.Na)} 
function Hs(a,b){var c=void 0!=b?b:a.Na,c=a.b&&c in a.b?a.b[a.g[c]]:null,d=null;c&&(d=new Xr(c),d.Ta=a.Zm||d.clipStart||0,a.j&&(d.Oa=a.j.toString()));return d}function Cs(a,b){a.Jr=b;var c=a.g&&null!=a.g[a.Na]?a.g[a.Na]:a.Na;a.g=[];for(var d=0;d<a.b.length;d++)a.g.push(d);a.Na=c;if(a.Jr){c=a.g[a.Na];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.Na=d)}a.H("shuffle")} 
function Gs(a,b){a.Na=Ib(b,0,a.Bc-1);a.Zm=0}function ws(a,b){a.Nh||(a.j=new ts("UU","PLAYER_"+b),Bs(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}function xs(a,b){a.Nh||(a.j=new ts("FL","PLAYER_"+b),Bs(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function ys(a,b){if(!a.Nh){a.j=new ts("SR",b);var c={search_query:b};a.Zq&&(c.mob="1");Bs(a,"/search_ajax?style=json&embeddable=1",c)}} 
function As(a){if(!a.Nh){var b={list:a.j},c=Hs(a);c&&c.videoId&&(b.v=c.videoId);Bs(a,"/list_ajax?style=json&action_get_list=1",b)}}function Bs(a,b,c){Li($d(b,c),{format:"JSON",onSuccess:function(a,b){Js(this,b)},context:a})} 
function Js(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;var c=Hs(a);a.b=[];B(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.b.push(a))},a);a.Bc=a.b.length;Ks(a,c);Cs(a,!1);a.Nh=!1;a.je=!0;a.Se&&a.Se()}}function zs(a,b){0<a.Na&&(a.b=[]);B(b,function(a){this.b.push(a)},a);a.Bc=a.b.length;a.je=!0} 
function Ks(a,b){if(b){var c=b.videoId;if(!a.b[a.Na]||a.b[a.Na].video_id!=c)for(var d=0;d<a.b.length;d++)if(a.b[d].video_id==c){a.Na=d;break}}}f.J=function(){this.Se=null;Qh(this.b);vs.G.J.call(this)};function Ls(){var a={volume:100,muted:!1},b=ui("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Ib(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a};function Ms(a,b,c){s(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=a;c=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);b.videoId=c&&c[2]?c[2]:null;return Ns(a)}function Ns(a,b,c){if(la(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}};function Os(a,b){this.app=a;this.g=null;this.k={};this.o={};this.B={};this.A={};this.j=null;this.b=b;V(this,"cueVideoById",this.Gw);V(this,"loadVideoById",this.Vl);V(this,"cueVideoByUrl",this.Hw);V(this,"loadVideoByUrl",this.Zw);V(this,"playVideo",this.Zg);V(this,"pauseVideo",this.pauseVideo);V(this,"stopVideo",this.fl);V(this,"clearVideo",this.Ew);V(this,"getVideoBytesLoaded",this.Rw);V(this,"getVideoBytesTotal",this.Sw);V(this,"getVideoLoadedFraction",this.Yl);V(this,"getVideoStartBytes",this.Uw); 
V(this,"cuePlaylist",this.Fw);V(this,"loadPlaylist",this.Pp);V(this,"nextVideo",this.Qp);V(this,"previousVideo",this.Rp);V(this,"playVideoAt",this.Xl);V(this,"setShuffle",this.ix);V(this,"setLoop",this.fx);V(this,"getPlaylist",this.gd);V(this,"getPlaylistIndex",this.Kp);V(this,"getPlaylistId",this.Np);V(this,"loadModule",this.Yw);V(this,"unloadModule",this.Mp);V(this,"setOption",this.Lp);V(this,"getOption",this.Gi);V(this,"getOptions",this.Nw);V(this,"mute",this.qp);V(this,"unMute",this.rp);V(this, 
"isMuted",this.pp);V(this,"setVolume",this.setVolume);V(this,"getVolume",this.np);V(this,"seekTo",this.$g);V(this,"getPlayerState",this.getPlayerState);V(this,"getPlaybackRate",this.Pw);V(this,"setPlaybackRate",this.hx);V(this,"getAvailablePlaybackRates",this.Jw);V(this,"getPlaybackQuality",this.Ow);V(this,"setPlaybackQuality",this.Ip);V(this,"getAvailableQualityLevels",this.Kw);V(this,"getCurrentTime",this.getCurrentTime);V(this,"getDuration",this.Lg);V(this,"addEventListener",this.addEventListener); 
V(this,"removeEventListener",this.removeEventListener);V(this,"getVideoUrl",this.Vw);V(this,"getDebugText",this.Lw);V(this,"getVideoEmbedCode",this.Tw);V(this,"getVideoData",this.getVideoData);V(this,"addCueRange",this.Op);V(this,"removeCueRange",this.$w);V(this,"setSize",this.jx);V(this,"getApiInterface",this.Iw);V(this,"destroy",this.destroy);V(this,"showVideoInfo",this.kx);V(this,"hideVideoInfo",this.Ww);Ps(this,"getInternalApiInterface",this.Mw);Ps(this,"getAdState",this.getAdState);Ps(this,"isNotServable", 
this.Xw);Ps(this,"getUpdatedConfigurationData",this.Qw);Ps(this,"updateRemoteReceivers",this.lx);Ps(this,"sendAbandonmentPing",this.ax);Ps(this,"setAutonav",this.bx);Ps(this,"setMinimized",this.gx);Ps(this,"channelSubscribed",ca);Ps(this,"channelUnsubscribed",ca)}x(Os,Mh);function V(a,b,c){a.k[b]=v(c,a)}function Ps(a,b,c){a.o[b]=v(c,a)}f=Os.prototype;f.Iw=function(){return Tb(this.k)};f.Mw=function(){return Tb(this.o)};f.K=function(){return this.g}; 
f.addEventListener=function(a,b){var c=b;s(b)&&(c=function(){q(b).apply(window,arguments)},this.B[b]=c);this.app.subscribe(a,c)};f.Av=function(a,b){var c=s(b)?a+b:a+ma(b);if(!this.A[c]){s(b)&&(b=function(){q(b).apply(window,arguments)});var d=v(function(a){b({target:this.j,data:a})},this);this.A[c]=d;this.addEventListener(a,d)}};f.removeEventListener=function(a,b){var c=b;if(s(b)&&b in this.B){var c=this.B[b],d=this.B;b in d&&delete d[b]}this.app.ga(a,c)}; 
f.Bv=function(a,b){var c=s(b)?a+b:a+ma(b);this.A[c]&&this.removeEventListener(a,this.A[c])};f.getPlayerState=function(){return this.app.wa};f.$g=function(a,b){Qs(this.app,!0,this.b);Rs(this.app,a,b,void 0,this.b)};f.getCurrentTime=function(){return this.app.getCurrentTime(this.b)};f.Lg=function(){return Ss(this.app)};f.np=function(){return this.app.D.volume};f.setVolume=function(a){this.app.setVolume(a)};f.pp=function(){return this.app.D.muted};f.qp=function(){Ts(this.app)};f.rp=function(){Us(this.app)}; 
f.Zg=function(){Qs(this.app,!0,this.b);Vs(this.app,this.b)};f.pauseVideo=function(){Ws(this.app,this.b)};f.fl=function(){var a=this.app;Xs(a,"play_pause")||Ys(a,this.b)};f.Ew=function(){};f.Pw=function(){return this.app.oa};f.hx=function(a){Zs(this.app,a)};f.Jw=function(){return this.app.b.Mg?Zq:[1]};f.Ow=function(){return $s(this.app,this.b)};f.Ip=function(a){at(this.app,a,this.b)};f.Kw=function(){var a=bt(this.app,this.b);return a?ct(a):[]};f.Rw=function(){return this.Yl()};f.Sw=function(){return 1}; 
f.Yl=function(){return dt(this.app.ca)};f.Uw=function(){return 0};f.jx=function(){this.app.g.Eh()};f.bx=function(a){this.app.getVideoData().hh=a};f.gx=function(a){this.app.b.sr=a};f.Yw=function(a){this.app.B.isAvailable(a)&&(a=et(this.app.B,a))&&!a.loaded&&a.load()};f.Mp=function(a){this.app.B.isAvailable(a)&&(a=et(this.app.B,a))&&a.loaded&&a.unload()};f.Vl=function(a,b,c){a=ft(this.app,Ns(a,b,c),this.b);Qs(this.app,a,this.b)};f.Gw=function(a,b,c){gt(this.app,Ns(a,b,c),this.b)}; 
f.Zw=function(a,b,c){a=Ms(a,b,c);b=ft(this.app,a,this.b);Qs(this.app,b,this.b);b=this.app;(a=ue(new J(a.mediaContentUrl)))&&ht(b.b,a)};f.Hw=function(a,b,c){b=Ms(a,b,c);gt(this.app,b,this.b);a=this.app;(b=ue(new J(b.mediaContentUrl)))&&ht(a.b,b)};f.Vw=function(){return it(this.app)};f.Lw=function(){return jt(this.app)};f.Tw=function(){return""};f.Op=function(a,b,c){return kt(this.app,a,b,c)}; 
f.$w=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.Wa.clear();b.j.A.Rg(e);b.H("cuerangesremoved",[e]);a=!0;break t}}a=!1}return a};f.Pp=function(a,b,c,d){var e=this.app;e.O=!1;lt(e,a,b,c,d);Qs(this.app,!0,this.b)};f.Fw=function(a,b,c,d){var e=this.app;e.O=!0;lt(e,a,b,c,d)};f.Qp=function(){mt(this.app);Qs(this.app,!0,this.b)};f.Rp=function(){nt(this.app);Qs(this.app,!0,this.b)};f.Xl=function(a){ot(this.app,a);Qs(this.app,!0,this.b)}; 
f.ix=function(a){var b=this.app;b.o&&Cs(b.o,a)};f.fx=function(a){var b=this.app;b.o&&(b.o.dg=a)};f.gd=function(){var a=this.app.o;if(!a)return null;for(var b=[],c=0;c<a.Bc;c++)b[c]=Hs(a,c).videoId;return b};f.Kp=function(){var a;a=this.app;a=a.o?a.o.Na:null;return null==a?-1:a};f.Np=function(){return pt(this.app)};f.Lp=function(a,b,c){return qt(this.app,a,b,c)};f.Gi=function(a,b,c){return qt(this.app,a,b,c)}; 
f.Nw=function(a){var b;b=this.app;a?b=b.C&&a==b.C.ua?b.C.$j():rt(b.B,a):(a=rt(b.B),b.C&&a.push(b.C.ua),b=a);return b};f.getVideoData=function(){var a=bt(this.app,this.b),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.Np();b&&(a.list=b);return a};f.kx=function(){st(this.app.g)};f.Ww=function(){this.app.g.Nm()};f.getAdState=function(){return this.app.getAdState()};f.Xw=function(){var a=this.app.getPlayerState();return!(!a||!W(a,128)||5!=tt[a.b.errorCode])}; 
f.Qw=function(){var a=this.app,b=a.P.clone(),c=b.args,a=ut(a),d=ac(a.k);!a.Za&&0<a.Ta&&(d.start=a.Ta);ta(c,d);return b};f.lx=function(a,b){var c=this.app;c.I&&vt(c.I,a,b);wt(c.b)&&6!=c.F&&(c.b.Sg=!E(a),c.b.Sg?(1!=c.F&&3!=c.F||!b||xt(c.C),a.length&&1!=c.F&&zt(c)):xt(c.I))};f.destroy=function(){this.app.dispose()};f.ax=function(){var a=bt(this.app);if(a){var b=a.getPlayerState();W(b,2)||W(b,128)||(At(a),Bt(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;Os.G.J.call(this)};function Ct(a,b){Os.call(this,a,b);V(this,"cueVideoByPlayerVars",this.YD);V(this,"loadVideoByPlayerVars",this.Aq);V(this,"preloadVideoByPlayerVars",this.cE);V(this,"seekBy",this.vt);V(this,"enableLicenseIntercept",this.ZD);V(this,"updatePlaylist",this.hE);V(this,"resumeLicenseSession",this.dE);V(this,"updateLastActiveTime",this.gE);V(this,"updateVideoData",this.iE);V(this,"getStoryboardFormat",this.aE);V(this,"getProgressState",this.Pf);V(this,"hideUserInterface",this.bE);V(this,"showUserInterface", 
this.fE);V(this,"getHousebrandProperties",this.$D);V(this,"setPlaybackQualityRange",this.eE)}x(Ct,Os);f=Ct.prototype;f.Op=function(a,b,c,d,e){return kt(this.app,a,b,c,d,e)};f.YD=function(a){gt(this.app,a,this.b)};f.getPlayerState=function(a){var b=this.app;return 2==a?b.Da:b.wa};f.Aq=function(a){ft(this.app,a,this.b)};f.cE=function(a){var b=this.app,c=this.b;c&&1!=c||b.L&&b.L.getVideoData().videoId==a.videoId||(a=new Xr(a),Dt(b,a))};f.Zg=function(){Vs(this.app,this.b)}; 
f.$g=function(a,b){Rs(this.app,a,b,void 0,this.b)};f.Pp=function(a,b,c,d){var e=this.app;e.O=!1;lt(e,a,b,c,d)};f.Qp=function(){mt(this.app)};f.Rp=function(){nt(this.app)};f.Xl=function(a){ot(this.app,a)};f.vt=function(a,b,c){var d=this.app,e=this.b;Rs(d,d.getCurrentTime()+a,b,c,e)};f.ZD=function(){var a=this.app;a.Va||(a.Va=!0,a.xa={})};f.hE=function(){var a=this.app;Et(a);a.Xa("onPlaylistUpdate")};f.dE=function(a,b){var c=this.app,d=c.xa[a];d&&(Ft(d,b),d.start(),delete c.xa[a])}; 
f.gE=function(){this.app.b.rg=w()};f.iE=function(a){var b=bt(this.app,this.b||1);b&&(b=b.b,Zr(b,a),b.H("dataupdated"))};f.aE=function(){return ls(this.app.getVideoData())};f.bE=function(){this.app.g.ek(!1)};f.fE=function(){this.app.g.ek(!0)};f.$D=function(){var a=this.app.R();return{mc:a.mc,Cb:a.Cb(),nc:a.nc}};f.getVideoData=function(){var a=Ct.G.getVideoData.call(this),b=bt(this.app,this.b),b=b?b.getVideoData():{};a.cpn=b.Fa;a.isLive=b.Za;return a}; 
f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):Ct.G.getCurrentTime.call(this)};f.Lg=function(a){return a?Ss(this.app,a):Ct.G.Lg.call(this)}; 
f.Pf=function(){var a=this.app.getVideoData(),b=a.Za&&!a.rb?this.getCurrentTime():a.j&&!isNaN(Mp(a.j))?Mp(a.j):a.Qa,c=!a.Za||a.rb,d=a.clipEnd,e=a.clipStart,g=this.getCurrentTime(),h=this.Lg(),k;k=(k=bt(this.app,void 0))?Gt(k.g):0;return{allowSeeking:c,clipEnd:d,clipStart:e,current:g,displayedStart:-1,duration:h,loaded:k,seekableEnd:b,seekableStart:a.j&&!isNaN(Np(a.j))?Np(a.j):0}};f.Yl=function(a){var b=this.app;return(b.A&&2==b.A.getPlayerType())==(2==a)?dt(b.ca):0}; 
f.eE=function(a,b){at(this.app,a,this.b,b)};function Ht(a,b){Ct.call(this,a,b)}x(Ht,Ct);f=Ht.prototype;f.getPlayerType=function(){return this.b};f.Vl=function(a,b,c){ft(this.app,Ns(a,b,c),this.b)};f.Zg=function(){Vs(this.app,this.b)};f.$g=function(a,b){Rs(this.app,a,b,void 0,this.b)};function It(a,b){a.app.g.g.appendChild(b)}function Jt(a){return a.app.g.element}f.R=function(){return this.app.R()};f.gd=function(){return this.app.o};f.getVideoData=function(){var a=bt(this.app,this.b);return a&&a.getVideoData()};f.isFullscreen=function(){return this.app.R().ub};function Kt(a,b){this.xg=a;this.nf=b+"::"}x(Kt,ei);f=Kt.prototype;f.xg=null;f.nf="";f.set=function(a,b){this.xg.set(this.nf+a,b)};f.get=function(a){return this.xg.get(this.nf+a)};f.remove=function(a){this.xg.remove(this.nf+a)};f.gc=function(a){var b=this.xg.gc(!0),c=this,d=new Ad;d.next=function(){for(var d=b.next();d.substr(0,c.nf.length)!=c.nf;)d=b.next();return a?d.substr(c.nf.length):c.xg.get(d)};return d};function Lt(a,b){this.start=a;this.end=b;this.b=ma(this)}function Mt(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}Lt.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)};Lt.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function Nt(){this.b=[]}function Ot(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 Pt(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 Qt(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 Rt(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 St(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 Tt(a,b){var c=St(a,b);return 0<=c?a.end(c):NaN}function Ut(a){return a&&a.length?a.end(a.length-1):NaN}function Vt(a,b){var c=Tt(a,b);return 0<=c?c-b:0};function Wt(){}var Xt=Sq&&4>Rq?.1:0,Yt=new Wt;f=Wt.prototype;f.Cd=null;f.pl=!1;function Zt(a,b){var c="";b&&(a.Cd=b,c=Er(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.b||a.load())}function $t(a,b){0<a.readyState&&(a.currentTime=Math.max(Xt,b))}f.getCurrentTime=function(){return this.currentTime||0};function Gt(a){return 0<Ut(a.buffered)&&a.duration?Tt(a.buffered,a.currentTime):0}function dt(a){var b=a.duration||0;return Infinity==b?1:b?Gt(a)/b:0}function au(a){return a.paused||a.ended} 
function bu(a){a.ended&&$t(a,0);!a.hasAttribute("src")&&a.Cd&&(a.src=Er(a.Cd),a.Cd.b||a.load());a.play();Sq&&7<=Rq&&Sg(a,v(function(){L(v(this.zs,this,this.currentTime,0),500)},a))}f.zs=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),L(v(this.zs,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function cu(a){a.currentSrc&&(rr&&$t(a,0),cd(a),a.removeAttribute("src"),a.load(),a.Cd&&a.Cd.b&&(a.Cd=null))}function du(a){cu(a);a.Cd=null} 
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function eu(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.aD=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.bD=function(){this.pl&&!this.muted&&(this.muted=!0)}; 
Wt.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:Rt(this.played),vbu:Rt(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 fu(a,b){for(var c=0;c<b.length;c++)a.appendChild(b[c])};function gu(a,b){this.g=a||64;this.b=b||null} 
function hu(a,b,c){if(W(a,128))return a;var d=a.g,e=a.b,g=b.target;switch(b.type){case "ended":if(0>=g.networkState||!g.src)break;d=14;e=null;break;case "pause":W(a,256)?d^=256:W(a,32)||W(a,2)||(d=4,W(a,1)&&W(a,8)&&(d|=1),e=null);break;case "playing":d=8;e=null;break;case "abort":if(64==d)break;case "error":t:if((b=g.error)&&b.code){switch(b.code){case b.MEDIA_ERR_NETWORK:b="progressive.net";break;case b.MEDIA_ERR_DECODE:b="fmt.decode";break;case b.MEDIA_ERR_SRC_NOT_SUPPORTED:b="fmt.unplayable";break; 
default:b=null;break t}b={errorCode:b}}else b=null;b&&(e=b,d|=128);break;case "canplay":d&=-2;break;case "progress":W(a,8)&&iu(c,g)&&(d|=1);break;case "seeked":d&=-18;break;case "seeking":d|=16;0>=Vt(g.buffered,g.currentTime)&&(d|=1);d&=-3;break;case "waiting":W(a,2)||(d|=1);break;case "timeupdate":W(a,16)||(d=iu(c,g)?d|1:d&-2);1<g.readyState&&0<g.currentTime&&(d&=-65);break;default:return a}return ju(a,d,e)} 
function iu(a,b){if(!a)return!1;var c=Vt(b.buffered,b.currentTime);return ku(a,b.currentTime,w(),c)}function ju(a,b,c){return b==a.g&&c==a.b||b&128&&!c||b&2&&b&16?a:new gu(b,c)}function lu(a,b){return ju(a,a.g|b)}function W(a,b){return!!(a.g&b)}function mu(a){return W(a,128)?-1:W(a,2)?0:W(a,1)&&!W(a,32)?3:W(a,64)?-1:W(a,8)?1:W(a,4)?2:-1};function nu(a,b,c){Lt.call(this,a,b);a=c||{};this.va=a.id||"";void 0!=a.priority&&(this.Uh=a.priority);this.namespace=a.namespace||"";this.Wa=new Rh;this.g=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.fe=a.visible)}x(nu,Lt);f=nu.prototype;f.va="";f.Uh=7;f.active=!0;f.fe=!1;f.style="ytp-ad-progress";f.Wa=null;f.namespace="";f.getId=function(){return this.va};function ou(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}} 
function pu(a,b){return a.start==b.start?a.Uh==b.Uh?0:a.Uh<b.Uh?-1:1:a.start<b.start?-1:1};function qu(a,b,c){ej.call(this);this.C=a;this.B=b;this.D=c;this.o=new Rk(250);Ak(this.o,"tick",this.vc,!1,this);R(this,this.o);this.j=[];this.b=[];this.g=new Nt}x(qu,ej);f=qu.prototype;f.Pi=!1;f.Og=!1;f.Gm=!1;f.Fm=!1;f.Vg=null;f.Ti=function(a){this.vc();B(arguments,function(a){this.j.push(a);var c=this.g.b;!c.length||0<Mt(a,c[c.length-1])?c.push(a):Gb(c,a,Mt);this.H("onAdd",a)},this);this.vc()};f.Rg=function(a){B(arguments,function(a){a=this.j.indexOf(a);0<=a&&ru(this,a)},this);this.vc()}; 
function ru(a,b){var c=a.j.splice(b,1)[0],d=a.g.b,e=Ab(d,c,Mt);0<=e&&sb(d,e);b=a.b.indexOf(c);0<=b&&a.b.splice(b,1);a.H("onRemove",c)}f.ah=function(){this.k=su(this);this.Og=!0;this.vc()};f.reset=function(){this.Og=this.Pi=!1;tu(this);for(var a=this.j.length-1;0<=a;a--)ru(this,a);this.vc();this.A=null};function uu(a,b){var c=[];if(!b.length)return c;b.sort(pu);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 vu(a,b){var c=[];if(!b.length)return c;b.sort(pu);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.vc=function(){this.Fm=!0;if(!this.Gm)for(var a=3;this.Fm&&a;){this.Fm=!1;this.Gm=!0;if(this.Og&&!this.Pi){tu(this);for(var b=su(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(vu(this,d));d=Ot(this.g,b);e=this.B();!W(e,48)&&b>this.k&&(d=d.concat(Pt(this.g,this.k,b)));c=c.concat(uu(this,d));this.k=b;!this.Pi&&this.A&&(c.unshift(["onLockBlockExit",this.A]),this.A=null,W(e,2)&&(this.k=2147483647));this.D()&&(b=Qt(this.g,this.k),null!=b&&(this.Vg= 
Tk(v(this.vc,this),b-this.k)));wu(this,c)}this.Gm=!1;a--}};function wu(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.Wa.H.apply(e.Wa,d)}}function tu(a){null!=a.Vg&&(Uk(a.Vg),a.Vg=null)}function su(a){return W(a.B(),2)?2147483647:1E3*a.C()}f.J=function(){Ik(this.o,"tick",this.vc,!1,this);tu(this);this.A=this.g=this.b=this.j=null;qu.G.J.call(this)};function xu(a){ej.call(this);this.b=a;if(this.Pn){a="yt-html5-player-modules::"+this.Pn;var b=new gi;if(a=b.isAvailable()?a?new Kt(b,a):b:null)this.fa=new ii(a)}}x(xu,ej);f=xu.prototype;f.ua="";f.qc="";f.uc=!1;f.loaded=!1;f.zk=!1;f.xc=null;f.Sf=function(a){var b=vb(arguments),c=v(this.Mc,this),d=v(this.qd,this);B(b,function(a){a.namespace=this.ua;a.Wa.subscribe("onEnter",c);a.Wa.subscribe("onExit",d)},this);this.H("command_add_cuerange",b,this.b.getPlayerType())}; 
f.xD=function(a){var b=vb(arguments);this.H("command_remove_cuerange",b,this.b.getPlayerType())};function yu(a){a.H("command_remove_cuerange_all",a.ua,a.b.getPlayerType())}function zu(a){a.H("command_preroll_ready",a.ua,a.b.getPlayerType())}function Au(a,b){O(b,a.ua);a.b.app.g.N.K().appendChild(b)}function Bu(a,b){a.H("command_show_dialog",b)}f.Fg=function(){Bu(this)};f.create=function(){this.uc||(this.Ja(this.b),O(Jt(this.b),this.ua+"-created"),this.uc=!0)}; 
f.destroy=function(){this.loaded&&this.unload();P(Jt(this.b),this.ua+"-created");this.uc=!1};f.load=function(){this.loaded=!0;O(Jt(this.b),this.ua+"-loaded");this.H("loaded",this.ua)};f.unload=function(){this.loaded=!1;P(Jt(this.b),this.ua+"-loaded");this.H("unloaded",this.ua)};f.Mc=function(){};f.qd=function(){};f.qe=function(){};function Cu(a,b,c){a.H("command_navigate_to_url",b,c)}f.log=function(a){this.H("command_log",this.qc,a)}; 
function Du(a,b,c){var d={},e;for(e in b)d[a.ua+"_"+e]=b[e];b={};for(var g in c)b[a.ua+"_"+g]=c[g];a.H("command_log_timing",d,b)}f.ph=function(){return null};function Eu(a,b){if(!a.fa)return null;var c;try{c=a.fa.get(b)}catch(d){a.fa&&a.fa.remove(b)}return c}function Fu(a,b,c){if(a.fa)try{a.fa.set(b,c)}catch(d){}}function Gu(a,b){a.H("command_disable_controls",b,a.ua)}function Hu(a,b){a.H("command_enable_controls",b,a.ua)}function Iu(a){a.H("command_stop_redirect_controls")} 
function Ju(a){a.H("command_play",!1,a.b.getPlayerType())}f.pauseVideo=function(){this.H("command_pause",!1,this.b.getPlayerType())};function Ku(a,b){a.H("command_redirected_show_is_playing",b)}function Lu(a){return a.b.app.g.j}function Mu(a,b){a.H("module_menu_item_add",b)}function Nu(a,b){a.H("module_menu_item_remove",b)}function Ou(a){a.H("module_menu_show",void 0)}function Pu(a){a.H("vss_segment")}f.gk=function(){};f.$j=function(){return[]};f.Ja=function(){return!1};f.bn=function(){return!0}; 
f.hm=function(a,b){this.xc&&this.xc.qe&&this.xc.qe.apply(this.xc,arguments)};f.aj=function(){};var Qu={RG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",VG:"ERROR_AUTHENTICATION_EXPIRED",WG:"ERROR_AUTHENTICATION_MALFORMED",XG:"ERROR_AUTHENTICATION_MISSING",ZG:"ERROR_BAD_REQUEST",dH:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",lH:"ERROR_CGI_PARAMS_MALFORMED",mH:"ERROR_CGI_PARAMS_MISSING",dI:"YTP_DEVICE_FALLBACK",lI:"YTP_ERROR_LICENSE",oI:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",rI:"YTP_ERROR_GEO_FAILURE",GI:"YTP_ERROR_GENERIC",HI:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",RI:"YTP_ERROR_INVALID_DRM_MESSAGE", 
VI:"LEARN_MORE",wJ:"YTP_ERROR_NOT_SIGNED_IN",MJ:"YTP_ERROR_PURCHASE_NOT_FOUND",NJ:"YTP_ERROR_PURCHASE_REFUNDED",QJ:"YTP_ERROR_RENTAL_EXPIRED",fH:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",gH:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",iH:"YTP_ERROR_CAST_TOKEN_FAILED",hH:"YTP_ERROR_CAST_TOKEN_EXPIRED",jH:"YTP_ERROR_CAST_TOKEN_MALFORMED",aK:"YTP_ERROR_SERVER_ERROR",pK:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",rK:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",sK:"YTP_ERROR_STREAMING_NOT_ALLOWED",tK:"YTP_ERROR_STREAMING_UNAVAILABLE", 
TJ:"YTP_ERROR_RETRYABLE_ERROR",BK:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",AK:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",GK:"YTP_ERROR_UNSUPPORTED_DEVICE",IK:"YTP_ERROR_UNUSUAL_ACTIVITY",SK:"YTP_ERROR_VIDEO_FORBIDDEN",UK:"YTP_ERROR_VIDEO_NOT_FOUND"},Ru={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 Su(a){return(a=Ru[a.toString()])?a:"YTP_ERROR_LICENSE"};var Tu={created:1,ready:2,testing:4,"testing-starting":3,live:6,"live-starting":5,complete:8,"complete-starting":7};function Uu(a){m.setTimeout(function(){throw a;},0)}var Vu; 
function Wu(){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=v(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&&!ic("Trident")&&!ic("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){c=c.next;var a=c.Tt;c.Tt=null;a()};return function(a){d.next={Tt: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 Xu(a,b){Yu||Zu();$u||(Yu(),$u=!0);av.push(new bv(a,b))}var Yu;function Zu(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Yu=function(){a.then(cv)}}else Yu=function(){var a=cv;!ka(m.setImmediate)||m.Window&&m.Window.prototype.setImmediate==m.setImmediate?(Vu||(Vu=Wu()),Vu(a)):m.setImmediate(a)}}var $u=!1,av=[];function cv(){for(;av.length;){var a=av;av=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.b.call(c.scope)}catch(d){Uu(d)}}}$u=!1} 
function bv(a,b){this.b=a;this.scope=b};function dv(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function ev(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function fv(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){gv(c,2,a)},function(a){gv(c,3,a)})}catch(d){gv(this,3,d)}}function hv(){var a=iv;return new fv(function(b,c){var d=a.length,e=[];if(d)for(var g=function(a,c){d--;e[a]=c;0==d&&b(e)},h=function(a){c(a)},k=0,l;l=a[k];k++)l.then(sa(g,k),h);else b(e)})}fv.prototype.then=function(a,b,c){return jv(this,ka(a)?a:null,ka(b)?b:null,c)};dv(fv); 
fv.prototype.cancel=function(a){0==this.g&&Xu(function(){var b=new kv(a);lv(this,b)},this)};function lv(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.zj)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(0==c.g&&1==d?lv(c,b):(d=c.b.splice(e,1)[0],mv(c,d,3,b)))}}else gv(a,3,b)}function nv(a,b){a.b&&a.b.length||2!=a.g&&3!=a.g||ov(a);a.b||(a.b=[]);a.b.push(b)} 
function jv(a,b,c,d){var e={zj:null,Ps:null,Qs:null};e.zj=new fv(function(a,h){e.Ps=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.Qs=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof kv?h(b):a(e)}catch(p){h(p)}}:h});e.zj.j=a;nv(a,e);return e.zj}fv.prototype.B=function(a){this.g=0;gv(this,2,a)};fv.prototype.C=function(a){this.g=0;gv(this,3,a)}; 
function gv(a,b,c){if(0==a.g){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(ev(c)){a.g=1;c.then(a.B,a.C,a);return}if(la(c))try{var d=c.then;if(ka(d)){pv(a,c,d);return}}catch(e){b=3,c=e}}a.A=c;a.g=b;ov(a);3!=b||c instanceof kv||qv(a,c)}}function pv(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 ov(a){a.o||(a.o=!0,Xu(a.D,a))} 
fv.prototype.D=function(){for(;this.b&&this.b.length;){var a=this.b;this.b=[];for(var b=0;b<a.length;b++)mv(this,a[b],this.g,this.A)}this.o=!1};function mv(a,b,c,d){if(2==c)b.Ps(d);else{for(;a&&a.k;a=a.j)a.k=!1;b.Qs(d)}}function qv(a,b){a.k=!0;Xu(function(){a.k&&rv.call(null,b)})}var rv=Uu;function kv(a){ua.call(this,a)}x(kv,ua);kv.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 sv(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=sv.prototype;f.cancel=function(a){if(this.b)this.j instanceof sv&&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.sh(new tv)}};f.wp=function(a,b){this.B=!1;uv(this,a,b)};function uv(a,b,c){a.b=!0;a.j=c;a.k=!b;vv(a)} 
function wv(a){if(a.b){if(!a.D)throw new xv;a.D=!1}}f.wt=function(a){wv(this);uv(this,!0,a)};f.sh=function(a){wv(this);uv(this,!1,a)};function yv(a,b,c){zv(a,b,null,c)}function zv(a,b,c,d){a.o.push([b,c,d]);a.b&&vv(a)}f.then=function(a,b,c){var d,e,g=new fv(function(a,b){d=a;e=b});zv(this,d,function(a){a instanceof tv?g.cancel():e(a)});return g.then(a,b,c)};dv(sv);function Av(a){return jb(a.o,function(a){return ka(a[1])})} 
function vv(a){if(a.A&&a.b&&Av(a)){var b=a.A,c=Bv[b];c&&(m.clearTimeout(c.va),delete Bv[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);ev(b)&&(d=!0,a.B=!0)}catch(l){b=l,a.k=!0,Av(a)||(c=!0)}}a.j=b;d&&(k=v(a.wp,a,!0),d=v(a.wp,a,!1),b instanceof sv?(zv(b,k,d),b.M=!0):b.then(k,d));c&&(b=new Cv(b),Bv[b.va]=b,a.A=b.va)} 
function xv(){ua.call(this)}x(xv,ua);xv.prototype.message="Deferred has already fired";xv.prototype.name="AlreadyCalledError";function tv(){ua.call(this)}x(tv,ua);tv.prototype.message="Deferred was canceled";tv.prototype.name="CanceledError";function Cv(a){this.va=m.setTimeout(v(this.g,this),0);this.b=a}Cv.prototype.g=function(){delete Bv[this.va];throw this.b;};var Bv={};function Dv(a,b){var c=b||{},d=c.document||document,e=Zc("SCRIPT"),g={At:e,qb:void 0},h=new sv(Ev,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){Fv(e,!0);h.sh(new Gv(1,"Timeout reached for loading script "+a))},l),g.qb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Fv(e,c.XA||!1,k),h.wt(null))};e.onerror=function(){Fv(e,!0,k);h.sh(new Gv(0,"Error while loading script "+a))};Pc(e,{type:"text/javascript",charset:"UTF-8", 
src:a});Hv(d).appendChild(e);return h}function Hv(a){var b=a.getElementsByTagName("HEAD");return!b||E(b)?a.documentElement:b[0]}function Ev(){if(this&&this.At){var a=this.At;a&&"SCRIPT"==a.tagName&&Fv(a,!0,this.qb)}}function Fv(a,b,c){null!=c&&m.clearTimeout(c);a.onload=ca;a.onerror=ca;a.onreadystatechange=ca;b&&window.setTimeout(function(){ed(a)},0)}function Gv(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ua.call(this,c);this.code=a}x(Gv,ua);function Iv(a,b){this.g=new J(a);this.b=b?b:"callback";this.qb=5E3}var Jv=0;Iv.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(Jv++).toString(36)+w().toString(36);m._callbacks_||(m._callbacks_={});var e=this.g.clone();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||ve(e,g,a[g]);b&&(m._callbacks_[d]=Kv(d,b),ve(e,this.b,"_callbacks_."+d));b=Dv(e.toString(),{timeout:this.qb,XA:!0});zv(b,null,Lv(d,a,c),void 0);return{va:d,Rr:b}}; 
Iv.prototype.cancel=function(a){a&&(a.Rr&&a.Rr.cancel(),a.va&&Mv(a.va,!1))};function Lv(a,b,c){return function(){Mv(a,!1);c&&c(b)}}function Kv(a,b){return function(c){Mv(a,!0);b.apply(void 0,arguments)}}function Mv(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=ca)};function Nv(a){this.b=a;a=null;a=Ov(this.b);a="("+a.join("|")+")";a=xa("__%s__",a);this.j=new RegExp(a,"g");this.g={}}var Pv=/__([a-z]+(?:_[a-z]+)*)__/g;function Ov(a){var b=[],c={};a.replace(Pv,function(a,e){e in c||(c[e]=!0,b.push(e))});return b}function Qv(a,b){var c=v(function(a,c){return Da(b[c]||this.g[c]||"")},a);return a.b.replace(a.j,c)};function Rv(a,b){ej.call(this);this.j=Qv(new Nv(b),{video_id:a});this.b=new Rk(15E3+Math.floor(3E4*Math.random()));Ak(this.b,"tick",v(this.g,this));this.g();this.b.start()}x(Rv,ej);Rv.prototype.J=function(){this.b.dispose();Rv.G.J.call(this)};Rv.prototype.g=function(){(new Iv(this.j)).send(null,v(this.o,this),v(this.k,this))};Rv.prototype.o=function(a){this.H("payload",a);Sk(this.b,15E3+Math.floor(3E4*Math.random()))};Rv.prototype.k=function(){this.H("error");var a=this.b.b;192E4>a&&Sk(this.b,2*a)};function Sv(a){this.b={};this.j={};this.k={};this.g=Tv(this,a)}x(Sv,Mh);function Tv(a,b,c){var d=0,e=Zc(b[d++]);if(s(b[d])||ha(b[d])||null===b[d]){var g=b[d++];ha(g)&&(g=g.join(" "));if(g=Uv(a,e,"className",g))Vv(a,e,"className",g),Wv(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ha(h))Tv(a,h,e);else if(la(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&Vv(g,k,l,Uv(g,k,l,h[l]))}else s(h)&&(g=Uv(a,e,"child",h),null!=g&&e.appendChild($c(g)))}c&&c.appendChild(e);return e}f=Sv.prototype;f.K=function(){return this.g}; 
function Wv(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)Wv(a,d[b],c);else a.b[b]=c}f.W=function(a,b){n(b)?dd(a,this.g,b):a.appendChild(this.g)};f.Ic=function(){ed(this.g)};function Uv(a,b,c,d){return s(d)&&"{{"==d.substr(0,2)?(a.j[d]=[b,c],null):d}f.update=function(a){for(var b in a)Xv(this,b,a[b])};function Xv(a,b,c){if(c!=a.k[b]){var d=a.j["{{"+b+"}}"];d&&(a.k[b]=c,Vv(a,d[0],d[1],c))}}function Yv(a){return ha(a)&&s(a[0])} 
function Vv(a,b,c,d){if("child"==c){cd(b);if(!ha(d)||Yv(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ja(g)||s(g)||la(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?Yv(g)?c.push(Tv(a,g)):g.K?c.push(g.K()):c.push($c(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.Ic();delete this.g;Sv.G.J.call(this)};function Zv(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 $v(a){return Math.round(1E3*a)/10}function aw(a){return(!ja(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};var bw={qK:"html5-stop-propagation",xJ:"ytp-no-controls",YI:"html5-live-dvr-disabled",ZI:"html5-live-dvr-engaged",$I:"html5-live-playback",jJ:"html5-mobile",lJ:"modest-branding",uJ:"html5-native-controls",vK:"html5-tablet",uK:"html5-tablet-body",fJ:"html5-main-video",MK:"html5-video-container",NK:"html5-video-content",PK:"html5-video-controls",QK:"ytp-fallback",RK:"ytp-fallback-content",TK:"html5-video-loader",aL:"html5-watermark",aH:"html5-branded-watermark",tH:"html5-context-menu",Mz:"html5-context-menu-copy-debug-info", 
Nz:"html5-context-menu-copy-embed-html",Oz:"html5-context-menu-copy-video-url",Pz:"html5-context-menu-copy-video-url-at-current-time",Qz:"html5-context-menu-link",Rz:"html5-context-menu-report-playback-issue",Sz:"html5-context-menu-show-video-info",uH:"html5-show-video-info-template",kJ:"html5-modal-panel",II:"ideal-aspect",vI:"autohide-controls",xI:"autohide-controls-aspect",wI:"autohide-controls-fullscreen",hJ:"autominimize-progress-bar",iJ:"autominimize-progress-bar-non-aspect",pI:"hide-controls-when-cued", 
KK:"ytp-user-idle",yI:"hide-info-bar",zI:"html5-hide-share",AI:"html5-hide-volume",WK:"video-thumbnail",GJ:"ytp-dialog",TG:"html5-async-progress",UG:"html5-async-success",SG:"html5-async-error",kH:"html5-center-overlay",WJ:"ytp-scalable-icon-shrink",VJ:"ytp-scalable-icon-grow",FI:"house-brand",$J:"sentiment-like",ZJ:"sentiment-dislike"};function cw(){this.j=new Sv(["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"];O(this.g,"html5-stop-propagation");this.k=0;this.b=null}x(cw,Mh);cw.prototype.K=function(){return this.g}; 
cw.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 dw(a){var b=Math.floor((new Date).valueOf()/1E3);return b>a?Ze("YTP_FRESCA_STARTING_SOON_MESSAGE"):Zv(a-b)} 
cw.prototype.o=function(){var a;a=this.b;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;Q(this.g,"html5-fresca-show-countdown",a);a&&(this.j.update({countdown:dw(this.b.startTime)}),M(this.k),this.k=L(v(this.o,this),1E3))};cw.prototype.J=function(){M(this.k);this.g=null;cw.G.J.call(this)};function ew(a){this.b=[];this.j=!1;a&&fw(this,a)}ew.prototype.state=-1;function gw(a){return{imageUrl:a.g,messageText:a.getMessage(),startTime:a.startTime,state:a.state}} 
function fw(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=Tu[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=C(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})}}ew.prototype.getMessage=function(){return this.b.length?this.b:hw(this)}; 
function hw(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 iw(a){xu.call(this,a);Ye({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starter snart...",YTP_FRESCA_EVENT_OVER_MESSAGE:"Denne livebegivenhed er slut.",YTP_FRESCA_COMPLETE_MESSAGE:"Tak, fordi du kiggede med!",YTP_FRESCA_STAND_BY_MESSAGE:"Vent et jeblik.",YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE:"Der er i jeblikket tekniske problemer."})}x(iw,xu);f=iw.prototype;f.ua="fresca";f.qc="fresca";f.qj=!1;f.mh=!1;f.Ja=function(){return qs(this.b.getVideoData(),"fresca_module")}; 
f.create=function(a){iw.G.create.call(this);Or(rq(),"application/x-mpegURL")||Qr()?(this.qj=this.mh=!1,Gu(this,["play_pause","seek"]),this.j=new cw,It(this.b,this.j.K()),this.k=a||new Rv(this.b.getVideoData().videoId,this.b.R().hp+(this.b.R(),"feeds/api/users/live/broadcasts/__video_id__/states?v=2&alt=json-in-script")),this.k.subscribe("payload",this.CA,this),this.k.subscribe("error",this.BA,this),this.subscribe("onStateChange",this.rr,this)):jw(this.b.app.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK", 
void 0)};f.destroy=function(){this.ga("onStateChange",this.rr,this);Qh(this.k,this.j);iw.G.destroy.call(this)};f.rr=function(a){this.g&&(this.qj=W(a.state,2),(kw(a,16)||this.qj)&&lw(this,this.g))};f.BA=function(){this.mh||(mw(this,new ew),lw(this,this.g))};f.CA=function(a){mw(this,new ew(a));a=this.b.getVideoData();6!=this.g.state||a.V||a.O?lw(this,this.g):this.b.Vl(a.videoId)}; 
function lw(a,b){var c=6>b.state;!c&&a.b.app.j.ta&&(b.g||b.b.length)&&(c=!0);a.qj&&!a.b.R().Qc&&(c=!0);b.j||(c=!0);if(!a.mh)switch(b.state){case 6:b.j&&(a.mh=!0,Hu(a,["play_pause","seek"]),zu(a));break;case 8:case 7:c=a.mh=!0}c&&a.j.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function nw(a){return qs(a.getVideoData(),"fresca_module")?new iw(a):null}function mw(a,b){a.g!=b&&(a.g=b,a.b.R().Cb()&&a.H("publish_external_event","onFrescaStateChange",gw(a.g)))};function ow(a){this.jo=a||window;this.pd=[]}f=ow.prototype;f.jo=null;f.pd=null;f.listen=function(a,b,c,d){c=v(c,d||this.jo);a=Rg(a,b,c);this.pd.push(a);return a};function pw(a,b,c,d,e,g){d=v(d,g||a.jo);b=Ug(b,c,d,e);a.pd.push(b)}f.Ga=function(a){Tg(a);rb(this.pd,a)};f.removeAll=function(){Tg(this.pd);this.pd=[]};function qw(a,b,c){this.b=a;this.k=b||0;this.g=c;this.j=v(this.vz,this)}x(qw,Mh);f=qw.prototype;f.va=0;f.J=function(){qw.G.J.call(this);this.stop();delete this.b;delete this.g};f.start=function(a){this.stop();this.va=Tk(this.j,n(a)?a:this.k)};f.stop=function(){0!=this.va&&Uk(this.va);this.va=0};f.vz=function(){this.va=0;this.b&&this.b.call(this.g)};function rw(){T.call(this);this.b=0;this.endTime=this.startTime=null}x(rw,T);f=rw.prototype;f.Tc=function(){this.Qb("begin")};f.Gd=function(){this.Qb("end")};f.Bb=function(){this.Qb("finish")};f.onStop=function(){this.Qb("stop")};f.Qb=function(a){this.S(a)};function sw(){rw.call(this);this.g=[]}x(sw,rw);sw.prototype.add=function(a){D(this.g,a)||(this.g.push(a),Ak(a,"finish",this.k,!1,this))};sw.prototype.remove=function(a){rb(this.g,a)&&Ik(a,"finish",this.k,!1,this)};sw.prototype.J=function(){B(this.g,function(a){a.dispose()});this.g.length=0;sw.G.J.call(this)};function tw(){sw.call(this);this.j=0}x(tw,sw); 
tw.prototype.play=function(a){if(0==this.g.length)return!1;if(a||0==this.b)this.j=0,this.Tc();else if(1==this.b)return!1;this.Qb("play");-1==this.b&&this.Qb("resume");var b=-1==this.b&&!a;this.startTime=w();this.endTime=null;this.b=1;B(this.g,function(c){b&&-1!=c.b||c.play(a)});return!0};tw.prototype.pause=function(){1==this.b&&(B(this.g,function(a){1==a.b&&a.pause()}),this.b=-1,this.Qb("pause"))}; 
tw.prototype.stop=function(a){B(this.g,function(b){0==b.b||b.stop(a)});this.b=0;this.endTime=w();this.onStop();this.Gd()};tw.prototype.k=function(){this.j++;this.j==this.g.length&&(this.endTime=w(),this.b=0,this.Bb(),this.Gd())};var uw=/#(.)(.)(.)/;function vw(a){if(!ww.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(uw,"#$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 ww=/^#(?:[0-9a-f]{3}){1,2}$/i;var xw={},yw=null;function zw(a){a=ma(a);delete xw[a];Yb(xw)&&yw&&yw.stop()}function Aw(){yw||(yw=new qw(function(){Bw()},20));var a=yw;0!=a.va||a.start()}function Bw(){var a=w();Nb(xw,function(b){Cw(b,a)});Yb(xw)||Aw()};function Dw(a,b,c,d){rw.call(this);if(!ha(a)||!ha(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.k=a;this.A=b;this.duration=c;this.o=d;this.g=[]}x(Dw,rw);f=Dw.prototype;f.sd=0; 
f.play=function(a){if(a||0==this.b)this.sd=0,this.g=this.k;else if(1==this.b)return!1;zw(this);this.startTime=a=w();-1==this.b&&(this.startTime-=this.duration*this.sd);this.endTime=this.startTime+this.duration;this.sd||this.Tc();this.Qb("play");-1==this.b&&this.Qb("resume");this.b=1;var b=ma(this);b in xw||(xw[b]=this);Aw();Cw(this,a);return!0};f.stop=function(a){zw(this);this.b=0;a&&(this.sd=1);Ew(this,this.sd);this.onStop();this.Gd()};f.pause=function(){1==this.b&&(zw(this),this.b=-1,this.Qb("pause"))}; 
f.J=function(){0==this.b||this.stop(!1);this.Qb("destroy");Dw.G.J.call(this)};f.destroy=function(){this.dispose()};function Cw(a,b){a.sd=(b-a.startTime)/(a.endTime-a.startTime);1<=a.sd&&(a.sd=1);Ew(a,a.sd);1==a.sd?(a.b=0,zw(a),a.Bb(),a.Gd()):1==a.b&&a.Dn()}function Ew(a,b){ka(a.o)&&(b=a.o(b));a.g=Array(a.k.length);for(var c=0;c<a.k.length;c++)a.g[c]=(a.A[c]-a.k[c])*b+a.k[c]}f.Dn=function(){this.Qb("animate")};f.Qb=function(a){this.S(new Fw(a,this))}; 
function Fw(a,b){S.call(this,a);this.x=b.g[0];this.y=b.g[1];this.duration=b.duration;this.state=b.b}x(Fw,S);function Kw(a,b,c,d,e){Dw.call(this,b,c,d,e);this.element=a}x(Kw,Dw);Kw.prototype.j=ca;Kw.prototype.Dn=function(){this.j();Kw.G.Dn.call(this)};Kw.prototype.Gd=function(){this.j();Kw.G.Gd.call(this)};Kw.prototype.Tc=function(){this.j();Kw.G.Tc.call(this)};function Lw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Kw.apply(this,arguments)}x(Lw,Kw); 
Lw.prototype.j=function(){this.element.style.left=Math.round(this.g[0])+"px";this.element.style.top=Math.round(this.g[1])+"px"};function Mw(a,b,c,d){Lw.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}x(Mw,Lw);Mw.prototype.Tc=function(){this.k=[this.element.offsetLeft,this.element.offsetTop];Mw.G.Tc.call(this)};function Nw(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Kw.apply(this,arguments)}x(Nw,Kw); 
Nw.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px";this.element.style.height=Math.round(this.g[1])+"px"};function Ow(a,b,c,d,e){Kw.call(this,a,[b],[c],d,e)}x(Ow,Kw);Ow.prototype.j=function(){this.element.style.width=Math.round(this.g[0])+"px"};function Pw(a,b,c,d,e){ja(b)&&(b=[b]);ja(c)&&(c=[c]);Kw.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");}x(Pw,Kw);Pw.prototype.j=function(){fg(this.element,this.g[0])}; 
Pw.prototype.show=function(){this.element.style.display=""};Pw.prototype.hide=function(){this.element.style.display="none"};function Qw(a,b,c){Pw.call(this,a,1,0,b,c)}x(Qw,Pw);Qw.prototype.Tc=function(){this.show();Qw.G.Tc.call(this)};Qw.prototype.Gd=function(){this.hide();Qw.G.Gd.call(this)};function Rw(a,b,c){Pw.call(this,a,0,1,b,c)}x(Rw,Pw);Rw.prototype.Tc=function(){this.show();Rw.G.Tc.call(this)};function Sw(a){return Math.pow(a,3)}function Tw(a){return 3*a*a-2*a*a*a};function Uw(a){return ha(a)&&a.length?a[0]:a}function Vw(a){var b=/.+/;return s(a)&&null!=b&&null!=a&&a.match(b)?a:""}function Ww(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 Xw(a){return s(a)?a:""}function Yw(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function Zw(a,b){return"true"==a||"false"==a?"true"==a:b}function $w(a,b){return s(a)?parseFloat(a):b} 
function ax(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Ib(a,c,d);if(a>=c&&a<=d)return a}return g}function bx(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;B(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function cx(a,b){if(null==a)return null;if(ia(a)){var c=[];B(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]} 
function dx(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new Af(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 ex(a){function b(a){return hb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function fx(a){this.value=a};function gx(a,b,c){this.value=a;this.target=b;this.b=c}var hx={yH:"current",vJ:"new"};function ix(a){return a.value?a.value:null};function jx(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var kx={CLOSE:"close",BJ:"openUrl",PAUSE:"pause",fF:"subscribe"},lx={CLICK:"click",CLOSE:"close",$E:"hidden",UJ:"rollOut",dF:"rollOver",eF:"shown"}; 
function mx(a){if(!a)return null;var b=Yw(a.type,kx),c=Yw(a.trigger,lx),d;if(d=Uw(a.url)){var e=Xw(d.value);if(e&&null!=Bi(e)){var g=Yw(d.target,hx,"current");d=null==g?null:new gx(e,g,Zw(d.show_link_icon,!0))}else d=null}else d=null;Uw(a.subscribeData);(a=Uw(a.duration))?(a=bx(a.value),a=new fx(a)):a=null;return b?new jx(b,c,d,a):null};function nx(a,b,c,d,e,g,h,k,l,p,r,u,t,z){this.A=a;this.o=b;this.B=c;this.C=d;this.j=e;this.I=g;this.k=h;this.textAlign=k;this.M=l;this.D=p;this.F=r;this.b=u;this.g=t;this.L=z} 
function ox(a){if(!a)return null;var b=Ww(a.fgColor,"#1A1A1A"),c=Ww(a.bgColor,"#FFF"),d=Ww(a.borderColor,"#000"),e=ax(a.borderWidth,10,0,5,!1,0),g=ax(a.bgAlpha,10,0,1,!1,.8);ax(a.borderAlpha,10,0,1,!1,.2);ax(a.gloss,16,0,255,!1,0);var h=Ww(a.highlightFontColor,"#F2F2F2"),k=ax(a.highlightWidth,10,0,5,!1,3),l=Xw(a.textAlign),p=ax(a.textSize,10,3.3,30.1,!0,3.6107),r=Xw(a.fontWeight),u=dx(a.padding),t=ex(a.effects),z=ax(a.cornerRadius,10,0,10,!0,0);var y=Uw(a.gradient);if(y){a=ax(y.x1,10,0,100,!0,0); 
var N=ax(y.y1,10,0,100,!0,0),ra=ax(y.x2,10,0,100,!0,100),zd=ax(y.y2,10,0,100,!0,100),ff=Ww(y.color1,"#FFF"),Gw=Ww(y.color2,"#000"),Hw=ax(y.opacity1,10,0,100,!0,100),y=ax(y.opacity2,10,0,100,!0,0);a=new px(a,N,ra,zd,ff,Gw,Hw,y)}else a=null;return new nx(b,c,d,e,g,h,k,l,p,r,u,t,z,a)}function px(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 qx(a,b){this.b=a;this.videoId=b};var rx={gL:"xx",hL:"xy",lL:"yx",mL:"yy"};var sx=ec("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var tx=/<[^>]*>|&[^;]+;/g;function ux(a,b){return b?a.replace(tx,""):a} 
var vx=RegExp("[---]"),wx=RegExp("[A-Za-z--------]"),xx=RegExp("^[^A-Za-z--------]*[---]"),yx=/^http:\/\/.*/,zx=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,Ax= 
/\s+/,Bx=/\d/;function Cx(){this.b=Dx}Cx.prototype.qk=!0;Cx.prototype.pk=function(){return""};Cx.prototype.toString=function(){return"Const{}"};function Ex(a){return a instanceof Cx&&a.constructor===Cx&&a.b===Dx?"":"type_error:Const"}var Dx={};function Fx(){this.b="";this.g=Gx}Fx.prototype.qk=!0;var Gx={};Fx.prototype.pk=function(){return this.b};function Hx(a){var b=new Fx;b.b=a;return b}var Ix=Hx(""),Jx=/^[-.%_!# a-zA-Z0-9]+$/;function Kx(){this.b=Lx}Kx.prototype.qk=!0;Kx.prototype.pk=function(){return""};Kx.prototype.Mt=!0;Kx.prototype.Lh=function(){return 1};function Mx(a){return a instanceof Kx&&a.constructor===Kx&&a.b===Lx?"":"type_error:SafeUrl"}var Lx={};function Nx(){this.b="";this.j=Ox;this.g=null}Nx.prototype.Mt=!0;Nx.prototype.Lh=function(){return this.g};Nx.prototype.qk=!0;Nx.prototype.pk=function(){return this.b};function Px(a){return a instanceof Nx&&a.constructor===Nx&&a.j===Ox?a.b:"type_error:SafeHtml"}var Qx=/^[a-zA-Z0-9-]+$/,Rx=ec("action","cite","data","formaction","href","manifest","poster","src"),Sx=ec("link","script","style"); 
function Tx(a){function b(a){if(ha(a))B(a,b);else{if(!(a instanceof Nx)){var g=null;a.Mt&&(g=a.Lh());a=Ux(Da(a.qk?a.pk():String(a)),g)}d+=Px(a);a=a.Lh();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";B(arguments,b);return Ux(d,c)}var Ox={};function Ux(a,b){var c=new Nx;c.b=a;c.g=b;return c}Ux("",0);function Vx(a,b){ha(b)||(b=[b]);var c=C(b,function(a){return s(a)?a:a.Vp+" "+a.duration+"s "+a.timing+" "+a.Up+"s"});Wx(a,c.join(","))} 
var Xx=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(qc)return Bc("10.0");var a=document.createElement("div"),b=Hf(),c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!Qx.test("div"))throw Error("Invalid tag name <div>.");if("div"in Sx)throw Error("Tag name <div> is not allowed for SafeHtml.");var d=null,b="<div";if(c)for(var e in c){if(!Qx.test(e))throw Error('Invalid attribute name "'+e+'".');var g=c[e];if(null!=g){if(g instanceof 
Cx)g=Ex(g);else if("style"==e.toLowerCase()){if(!la(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof Fx)){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 Cx?l=Ex(l):Jx.test(l)||(l="zClosurez"),h+=k+":"+l+";")}g=h?Hx(h):Ix}h=void 0;h=g instanceof Fx&&g.constructor===Fx&&g.g===Gx?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 Kx)g=Mx(g);else if(e.toLowerCase()in Rx)throw Error('Attribute "'+e+'" requires goog.string.Const or goog.html.SafeUrl value, "'+g+'" given.');}b+=" "+e+'="'+Da(String(g))+'"'}}e=void 0;n(e)?ha(e)||(e=[e]):e=[];!0===sx.div?b+=">":(d=Tx(e),b+=">"+Px(d)+"</div>",d=d.Lh());(c=c&&c.dir)&&(/^(ltr|rtl|auto)$/i.test(c)?d=0:d=null);b=Ux(b,d);a.innerHTML=Px(b);a=a.firstChild;b=a.style[ab("transition")];return""!=("undefined"!==typeof b? 
b:a.style[Lf(a,"transition")]||"")});function Wx(a,b){Jf(a,"transition",b)};function Yx(a,b){(a=Mc(a))&&a.style&&(gg(a,b),Q(a,"hid",!b))}function Zx(a){return(a=Mc(a))?!("none"==a.style.display||rg(a,"hid")):!1}function $x(a){B(arguments,function(a){Yx(a,!0)})}function ay(a){B(arguments,function(a){Yx(a,!1)})}var by={};function cy(a){if(a in by)return by[a];var b=If(a,document.body.style);return by[a]=b}function dy(a,b,c){(a=Mc(a))&&a.style&&(b=cy(b))&&(a.style[b]=c)};function ey(a,b,c){var d=a.B,e=a.C,g=a.b?a.b:"xy",h=fy(c,a.k,g);a=gy(c,a.j,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new Bf(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 fy(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function gy(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function hy(a,b,c,d,e,g,h,k,l,p,r){this.x=a;this.y=b;this.o=c;this.h=d;this.g=e;this.A=g;this.B=h;this.C=k;this.k=l;this.j=p;this.b=r}function iy(a,b){if(!a)return null;var c=$w(a.x,0),d=$w(a.y,0),e=$w(a.w,0),g=$w(a.h,0),h=bx(a.t),k=$w(a.scaleSlope,1);return b(c,d,e,g,h,$w(a.d,0),$w(a.px,0),$w(a.py,0),$w(a.scaleSlopeX,k),$w(a.scaleSlopeY,k),Yw(a.scaleDimension,rx,"xy"))} 
function jy(a,b,c){c=c?jy(c,b):null;a=ey(a,new Bf(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=Ib(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Ib(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function ky(a){return a?iy(a,function(a,c,d,e,g,h,k,l,p,r,u){return new hy(a,c,d,e,g,h,k,l,p,r,u)}):null};function ly(a,b,c,d,e,g,h,k,l,p,r,u,t){hy.call(this,a,b,c,d,e,k,l,p,r,u,t);this.D=g;this.F=h}x(ly,hy);function my(a){if(!a)return null;var b=$w(a.sx,0),c=$w(a.sy,0);return iy(a,function(a,e,g,h,k,l,p,r,u,t,z){return new ly(a,e,g,h,k,b,c,l,p,r,u,t,z)})};function ny(a,b,c,d){this.type=a;this.g=b;this.b=c;this.j=d}var oy={SE:"anchored",OJ:"rect",bK:"shapeless"};function py(a){if(!a)return null;var b=Yw(a.type,oy,"rect"),c=cx(a.rectRegion,ky),d=cx(a.anchoredRegion,my);a=cx(a.shapelessRegion,ky);return new ny(b,c,d,a)}function qy(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 ry(a,b){this.g=a;this.b=b};function sy(a,b){this.state=a;this.b=b}var ty={CLOSED:"closed",CJ:"playerControlShow",dF:"rollOver",eF:"shown"};function uy(a){if(!a)return null;var b=Yw(a.state,ty);a=Vw(a.ref);return b?new sy(b,a):null};function vy(a,b,c,d){this.b=a||[];this.j=b||[];this.k=c;this.g=d;this.value=!1}function wy(a){if(!a)return null;var b=cx(a.condition,uy),c=cx(a.notCondition,uy),d=Zw(a.show_delay,!1);a=Zw(a.hide_delay,!1);return b||c?new vy(b,c,d,a):null}function xy(a,b,c){B(a.b,sa(b,!1),c);B(a.j,sa(b,!0),c)};function yy(a,b,c,d,e,g,h,k,l,p,r,u,t,z,y){this.id=a;this.author=b;this.type=c;this.style=d;this.A=e;this.g=g;this.o=h||[];this.C=k||[];this.b=l;this.D=p;this.k=r;this.B=u;this.j=t;this.data=z;this.Lb=y} 
var zy={SE:"anchored",UE:"branding",nH:"channel",wH:"cta",DI:"highlightText",UI:"label",EJ:"playlist",FJ:"popup",jK:"speech",fF:"subscribe",zK:"title",VIDEO:"video",$K:"vote",cL:"website"},Ay={UE:"branding",eH:"card",CI:"highlight",IMAGE:"image",MARKER:"marker",PAUSE:"pause",JJ:"promotion",xn:"survey",TEXT:"text",dL:"widget"},By={VK:"video_relative",DJ:"player_relative"}; 
function Cy(a){if(!a)return null;var b=Vw(a.id),c=Vw(a.author),d=Yw(a.type,Ay),e=Yw(a.style,zy),g=Xw(Uw(a.TEXT)),h=Xw(a.data),h=0!=h.length?rf(h):{},k;var l=Uw(a.segment);l?(Vw(l.timeRelative),k=Vw(l.spaceRelative),k=(l=cx(l.movingRegion,py))?new ry(k,l):null):k=null;var l=cx(a.action,mx),p=cx(a.trigger,wy),r=ox(Uw(a.appearance));r||(r=ox({}));var u=Yw(a.coordinate_system,By,"video_relative"),t;t=(t=Uw(a.image_source))?new qx(Xw(t.standard_url),Xw(t.video_id)):null;var z=Zw(a.closeable,!0),y=Xw(a.html_blob); 
a=Xw(a.log_data);return b&&d?new yy(b,c,d,e,g,k,l,p,r,u,t,z,y,h,a):null}function Dy(a){return(a=Ey(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}function Fy(a){return Gy(a,function(a){return null!=a.url&&a.url.b})}function Hy(a){return Gy(a,function(a){return"click"==a.trigger})}function Gy(a,b){return jb(a.o,b,void 0)}function Iy(a,b,c){B(a.o,b,c)}function Ey(a,b){return lb(a.o,b,void 0)}function Jy(a,b,c){B(a.C,b,c)}function Ky(a,b){C(a.C,b,void 0)} 
function Ly(a){return(a=My(a))?qy(a):null}function My(a){a.g?(a=a.g,a=a.b.length?a.b[0]:null):a=null;return a}function Ny(a,b){var c=Ly(a);return c&&b?gy(b,c.j,c.b?c.b:"xy"):1};function Oy(a){if(!a)return!1;var b=Py(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function Py(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()} 
function Qy(a,b){if("new"==a.target)return-1;var c=ix(a);if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!Oy(c))||(d=Td(Qd(c)[5]||null)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=Bi(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=Ai(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 Ry(a,b,c,d){(a=ix(a))?Oy(a)?d=Ei(a,{src_vid:c,feature:"iv",annotation_id:b}):(a?(b=Py(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=sa(Sy,d.gb,d.Ua),a=new J(a),he(a,d(a.Ub)),d=a.toString()):d=a):d=null;return d}function Sy(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 Ty(a){return a.target?"new"==a.target?"_blank":"_top":Oy(ix(a))?"_top":"_blank"};function Uy(a,b){this.j=a;this.g=b;this.b={}}function Vy(a,b,c,d){b&&(c=Wy(a,b,c),a.b[b]=c["p-time"],c["iv-event"]=c.link||c["l-class"]||c["link-id"]?2:7,dc(c,d||{}),a.log_(c))}function Xy(a,b,c,d,e){b&&(d=Wy(a,b,d),d["iv-event"]=3,d["i-time"]=a.b[b]||"",dc(d,e||{}),a.log_(d,c))}function Yy(a,b,c,d){b&&(c=Wy(a,b,c),c["iv-event"]=4,c["i-time"]=a.b[b]||"",dc(c,d||{}),a.log_(c))} 
function Zy(a,b,c){a=a.g.getVideoData();a.xb?(c=a.xb[c])&&-1!=c.search(Je)&&(a=Ba("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),pf(c)):a.ma&&pf(Ei(a.ma,{label:c,value:"a_id="+b}))}function Wy(a,b,c){var d={},e=new ke(b);B(e.La(),function(a){d[a]=escape(e.get(a,""))});d["p-time"]=a.g.getCurrentTime().toFixed(2);d.ps=a.g.R().zb;d["a-type"]=c||d["a-type"];return d}Uy.prototype.log_=function(a,b){this.j.H("command_log","iv",a,b)};function $y(a,b){this.T=a;this.context=b;this.O=this.N=this.M=null;this.C=0}function az(a,b,c,d,e,g){b=new nu(b,c,{id:d});b.namespace="iv-module";e&&b.Wa.subscribe("onEnter",e,a);g&&b.Wa.subscribe("onExit",g,a);a.context.Wa.H("command_add_cuerange",[b],a.context.g.getPlayerType())}f=$y.prototype;f.Lj=function(){this.context.Wa.subscribe("onResize",this.xd,this)};f.K=function(){return this.T}; 
function bz(a,b,c,d,e){pw(a.context.b,b,"click",sa(a.fh,b,c,d,e),"iv-click-target",a);pw(a.context.b,b,"touchend",sa(a.fh,b,c,d,e),"iv-click-target",a)}f.fh=function(a,b,c,d,e){e.stopPropagation();e.preventDefault();var g=Ry(b,c,this.context.k.videoId);a=v(function(){this.context.g.pauseVideo();window.open(g,Ty(b))},this);Oy(ix(b))&&"new"!=b.target||(a(),a=null);c={};c.interval=w()-this.C;Xy(this.context.logger,d.Lb,a,null,c);"cta"==d.style&&Zy(this.context.logger,d.id,"cta_annotation_clicked");return!1}; 
f.show=function(){this.C=w()};f.hide=function(){};f.destroy=function(){ed(this.K())};function cz(a){a.O||(a.O=ud(a.K(),"html5-video-player"));return a.O} 
function dz(a){var b=a.context.j.Yd;if(!b)return null;var c=a.context.j.Jf||new Bf(0,0,b.width,b.height),d=-c.top,e=b.height-c.top,g;a.N||(a.N=H("html5-video-container",cz(a)));g=a.N;if(!g)return null;g=35-(parseInt(Mf(g,"bottom"),10)||0);var h;a.M||(a.M=H("html5-info-bar",cz(a)));(h=a.M)&&a.context.j.bc&&"none"!=Mf(h,"display")&&(d+=bg(h).height);return new Af(d,b.width-c.left,e-g,-c.left)}f.xd=function(){};function ez(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.Bd=b.start_ms;this.g=b.end_ms;this.ja=c};function fz(a,b,c,d){ez.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}x(fz,ez);function gz(a,b,c,d){ez.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}x(gz,ez);function hz(a,b,c,d){ez.call(this,a,b,d);this.b=b.image_url;this.title=b.title;this.description=b.description;this.options=b.options}x(hz,ez);function iz(a,b,c,d){ez.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}x(iz,ez);function jz(a,b,c,d){iz.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}x(jz,iz);function kz(a,b,c,d){ez.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}x(kz,ez);function lz(a){a&&(a.style.display="block")}function mz(a){a&&(a.style.display="none")}function nz(a,b){var c=Fg("requestAnimationFrame",window);return L(function(){c?c.call(window,a):a()},b||0)};function X(a){this.template=new Sv(a);R(this,this.template);this.element=this.template.K();this.oa="block";this.P=!0;this.ad=[];this.ca={}}x(X,Mh);f=X.prototype;f.K=function(){return this.element};f.W=function(a,b){this.template.W(a,b)};f.Ic=function(){this.template.Ic()};f.pa=function(a,b){Xv(this.template,b||"content",a)};f.show=function(){var a=this.element;a&&(a.style.display=this.oa);this.P=!0;this.element.removeAttribute("aria-hidden")}; 
f.hide=function(){mz(this.element);this.P=!1;this.element.setAttribute("aria-hidden","true")};function oz(a,b){a.element.setAttribute("role",b)}f.Db=function(a){this.element.setAttribute("aria-label",a)};f.Hb=function(a){Xg(this.element,a)};f.listen=function(a,b,c,d){return pz(this,this.element,a,b,c,d)};function pz(a,b,c,d,e,g,h){b=Rg(b,c,v(d,e||a),h);a.ad.push(b);s(g)&&(a.ca[g]?a.ca[g].push(b):a.ca[g]=[b]);return b}f.Ga=function(a){Tg(a)};function qz(a,b){a.Ga(a.ca[b]);a.ca[b]=[]} 
f.stopPropagation=function(a){this.listen(a,this.qF)};f.qF=function(a){a.stopPropagation()};f.J=function(){this.Ga(this.ad);delete this.element;X.G.J.call(this)};function rz(a,b){var c=sz(a),d=document.getElementById(c),e=d&&xg(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Xh(c,b),ma(b)),g||(d=tz(a,c,function(){xg(d,"loaded")||(vg(d,"loaded","true"),$h(c),L(sa(ci,c),0))})))} 
function tz(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 sz(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Xa(a)}var uz=/-vfl[a-zA-Z0-9_+=-]+/,vz=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function wz(a,b){var c=xz(a),d=document.getElementById(c),e=d&&xg(d,"loaded"),g=d&&!e;e?b&&b():(b&&(Xh(c,b),ma(b)),g||(d=yz(a,c,function(){xg(d,"loaded")||(vg(d,"loaded","true"),$h(c),L(sa(ci,c),0))})))}function yz(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 xz(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Xa(a)}var zz=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;function Az(){return!!q("yt.scheduler.instance")}function Bz(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 Cz(a,b){return Bz(a,b)}function Dz(a){var b=q("yt.scheduler.instance.cancelJob");b?b(a):M(a)}function Ez(){var a=q("yt.scheduler.instance.start");a&&(Lq("jsp")&&!Lq("jsr")&&Jq("jsr"),M(Fz),a())}var Fz=0; 
function Gz(){var a=q("yt.scheduler.instance.pause");a&&(a(),Lq("jsp")||Jq("jsp"),M(Fz),Fz=L(Ez,800))};function Hz(a){this.args=a}function Iz(a){this.b=a}Iz.prototype.toString=function(){return this.b};var Jz=q("yt.pubsub2.instance_")||new Rh;Rh.prototype.subscribe=Rh.prototype.subscribe;Rh.prototype.unsubscribeByKey=Rh.prototype.Ob;Rh.prototype.publish=Rh.prototype.H;Rh.prototype.clear=Rh.prototype.clear;ba("yt.pubsub2.instance_",Jz,void 0);var Kz=q("yt.pubsub2.subscribedKeys_")||{};ba("yt.pubsub2.subscribedKeys_",Kz,void 0);var Lz=q("yt.pubsub2.topicToKeys_")||{};ba("yt.pubsub2.topicToKeys_",Lz,void 0);var Mz=q("yt.pubsub2.isAsync_")||{};ba("yt.pubsub2.isAsync_",Mz,void 0); 
ba("yt.pubsub2.skipSubKey_",null,void 0);function Nz(a,b){var c=q("yt.pubsub2.instance_");c&&c.publish.call(c,a.toString(),a,b)};var iv=[],Oz=!1;function Pz(a,b,c,d){Qz(function(){q("yt.www.ypc.checkout.showYpcOverlay")(a,b,c,d)})} 
function Qz(a){if(!iv.length){var b=Te("YPC_LOADER_CSS");iv.push(new fv(function(a){if(window.spf){var c=b.match(zz);spf.style.load(b,c?c[1]:"",a)}else wz(b,a)}));var c=Te("YPC_LOADER_JS");iv.push(new fv(function(a){if(window.spf){var b="";if(c){var d=c.indexOf("jsbin/"),k=c.lastIndexOf(".js"),l=d+6;-1<d&&-1<k&&k>l&&(b=c.substring(l,k),b=b.replace(uz,""),b=b.replace(vz,""),b=b.replace("debug-",""),b=b.replace("tracing-",""))}spf.script.load(c,b,a)}else rz(c,a)}));var d=Te("YPC_LOADER_CONFIGS");iv.push(new fv(function(a){Li(d, 
{onSuccess:function(b,c){Re(c.configs);Ye(c.messages);a()}})}))}hv().then(function(){Rz(a)})}function Rz(a){Oz||(B(Te("YPC_LOADER_CALLBACKS"),function(a){(a=q(a))&&a()}),Oz=!0);a&&a()};function Sz(a){this.b=a} 
function Tz(a,b){var c=Uz(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 X(["article","iv-card-channel",d,["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.B}]],["div","iv-card-content",e,["h1","iv-click-target",b.title],["div","iv-card-subscribe",""],["p","",b.description]]]), 
g=c.K();g&&Nb(b.o,function(a,b){var c=Nc(b,g);B(c,function(b){b.innerHTML=a})},c);return c} 
function Vz(a,b){var c=Uz(a,b.url,b.id),d=["ul","iv-card-meta-info"];B(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 X(c)} 
function Wz(a,b){var c=Uz(a,b.url,b.id),d=["iv-click-target","yt-uix-button","yt-uix-button-primary","yt-uix-button-size-large"],e="";b.b&&(d.push("yt-uix-button-has-icon"),e=["span","yt-uix-button-icon-wrapper",["img",["yt-uix-button-icon","iv-card-button-icon"],{src:b.b}]]);return new X(["article","iv-card-simple",["div","iv-card-image",{style:"background-image: url("+b.F+");"}],["div","iv-card-content",["h1","",b.title],["p","",b.description],["a",d,{href:c,role:"button"},e,["span","yt-uix-button-content", 
b.j]]]])}function Xz(a,b,c){var d=Wz(a,b),e=d.K();pw(a.b.b,e,"click",sa(a.j,b,c),"iv-click-target",a);return d} 
function Yz(a,b){var c=Uz(a,b.url,b.id),d=["ul","iv-card-meta-info"];B(b.o,function(a){d.push(["li","",a])});return new X(["article",["iv-card-watchable","iv-card-video"],["h1",{style:"background-image: url("+b.B+");"},b.j],["div","iv-click-target",["a",["iv-card-image","iv-click-target"],{href:c},["img",{src:b.C}],["span","iv-card-video-duration",b.b]],["div",["iv-card-content","iv-click-target"],["h2","",b.title],d]]])} 
function Zz(a,b){var c=["ul","iv-card-options"];B(b.options,function(a){c.push(["li","iv-card-option",{"data-index":a.index.toString()},a.desc])});var d=new X(["article","iv-card-poll",["div","iv-card-image",{style:"background-image: url("+b.b+");"}],["div","iv-card-content",["h1","",b.title],["p","",b.description],c]]),e=d.K();pw(a.b.b,e,"click",sa(a.g,b),"iv-card-option",a);pw(a.b.b,e,"touchend",sa(a.g,b),"iv-card-option",a);return d} 
Sz.prototype.g=function(a,b){var c={poll_id:a.id,index:xg(b.target,"index")},d=this.b.k.Cj,c={jg:{action_poll_vote:1},Nb:c},e=Te("XSRF_TOKEN");c.method="POST";c.Nb||(c.Nb={});c.Nb[Te("XSRF_FIELD_NAME")]=e;Li(d,c)};Sz.prototype.j=function(a,b,c){c.stopPropagation();c.preventDefault();Te("YPC_LOADER_ENABLED")?(this.b.g.pauseVideo(),this.b.g.isFullscreen()&&$z(this.b.g.app),this.b.Wa.H("external_overlay_activated"),Xy(this.b.logger,a.ja.Lb),Pz(a.D,a.C,a.B,a.o)):b(c.target,a.url,a.id,a.ja,c)}; 
function Uz(a,b,c){return b?Ry(b,c,a.b.k.videoId,a.b.j):null};function aA(a,b){$y.call(this,a,b);this.U=!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.Ie=I("div");this.k=I("div",["iv-cards-notif","iv-cards-notif-inactive"],void 0,this.Ie,I("button",{type:"button"},I("div")));this.j=I("div","iv-cards-details");this.A=new Sz(this.context);this.b=[];this.I=null;this.L=0;this.g=-1;this.Zb=null;this.D=this.B=!1;O(this.K(),"iv-cards");az(this,1E3*this.context.k.Qa-1200, 
2147483647,"",this.xv);this.context.g.addEventListener("onStateChange",v(this.Wd,this));this.context.g.addEventListener("onAdStateChange",v(this.Wd,this))}x(aA,$y);var bA={channel:fz,fundraising:iz,merch:iz,playlist:gz,poll:hz,product:iz,tip:jz,video:kz};function cA(a,b){return new Mw(a,[b,a.offsetTop],200,Tw)}function dA(a,b,c){a=new Qw(a,200,Tw);b&&Hk(a,"end",b,!1,c);return a}function eA(a){var b=new Rw(a,200,Tw);Hk(b,"end",sa(function(a,b){Jf(a,"opacity","");b.target.J()},a));return b} 
function fA(a){gg(a.o,!1);a.K().appendChild(a.o);Ak(a.o,"click",a.hj,!1,a);Ak(a.o,"touchend",a.hj,!1,a);a.K().appendChild(a.F);gg(a.j,!1);a.K().appendChild(a.j);a.K().appendChild(a.k);gA(a);a.context.b.listen(a.k,"click",a.Wq,a);a.context.b.listen(a.k,"touchend",a.Wq,a);a.context.b.listen(a.k,"mouseover",function(){hA(this);this.Zb&&this.Zb.Ym.stop()},a);a.context.b.listen(a.k,"mouseout",function(){this.Zb&&this.Zb.Ym.start(200)},a);a.context.Wa.subscribe("external_overlay_activated",a.hj,a);iA(a, 
dz(a))}f=aA.prototype; 
f.add=function(a){this.U||(fA(this),this.U=!0);var b=(new X(["button",{type:"button",style:"background-image: url("+a.k+");"}])).K();gg(b,!1);var c,d;switch(a.type){case "fundraising":case "merch":case "product":if(c=Wz(this.A,a))d=c.K(),bz(this,d,a.url,a.id,a.ja);break;case "tip":(c=Xz(this.A,a,v(this.fh,this)))&&(d=c.K());break;case "video":if(c=Yz(this.A,a))d=c.K(),bz(this,d,a.url,a.id,a.ja);break;case "playlist":if(c=Vz(this.A,a))d=c.K(),bz(this,d,a.url,a.id,a.ja);break;case "channel":if(c=Tz(this.A, 
a))d=c.K(),bz(this,d,a.url,a.id,a.ja);break;case "poll":(c=Zz(this.A,a))&&(d=c.K())}if(d){var e={be:a,Xk:d,Kg:b},g=Ab(this.b,e,function(a,b){return a.be.Bd-b.be.Bd});0>g&&(g=-(g+1));xb(this.b,g,0,e);dd(this.F,b,g);1<this.b.length&&$x(this.F);c.W(this.j,g);c=sa(this.Nx,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);az(this,a.Bd,a.g,a.id,sa(this.Ox,a),this.Px);iA(this,dz(this))}}; 
f.fh=function(a,b,c,d,e){sd(a,"article","iv-card-active")?aA.G.fh.call(this,a,b,c,d,e):e.preventDefault()};f.Nx=function(a,b){var c=mb(this.b,function(b){return b===a});jA(this,c,!0);sd(b.target,"button","yt-uix-button")||b.stopPropagation()};f.Ox=function(){++this.L;kA(this)?hA(this):this.D=!0;P(this.k,"iv-cards-notif-inactive")};f.Px=function(){--this.L;0==this.L&&O(this.k,"iv-cards-notif-inactive")}; 
function lA(a,b){if(!a.Zb){a.xd();var c=new X(["div","",["span","",b.A],["span","iv-card-image",{style:"background-image: url("+b.k+");"}]]);a.Ie.innerHTML="";bd(a.Ie,gd(c.K()));Vy(a.context.logger,b.ja.Lb,50)}}function hA(a){if(!a.Zb){var b=mA(a);if(!(0>b)){lA(a,a.b[b].be);$f(a.Ie,"");var c=a.Ie.offsetWidth;(new Ow(a.Ie,0,c,400,Tw)).play();a.Zb={Ym:new qw(function(){this.Zb&&((new Ow(this.Ie,c,0,200,Tw)).play(),this.Zb=null)},4E3,a),qz:b};a.Zb.Ym.start()}}}function gA(a){a.xd();eA(a.k)} 
f.Wq=function(a){a&&a.stopPropagation();if(!this.B){a=new tw;Zf(this.K(),this.context.j.Yd);for(var b=0;b<this.b.length;++b){var c=this.b[b].Kg;a.add(eA(c));fg(c,0);gg(c,!0);a.add(cA(c,b*(c.offsetWidth+15)))}a.add(dA(this.k));a.add(eA(this.o));for(b=0;b<this.b.length;++b)a.add(eA(this.b[b].Xk));this.B=!0;Hk(a,"end",this.Gp,!1,this);a.play();this.C=w();this.j.style.width=445*this.b.length+"px";gg(this.j,!0);fg(this.j,1);this.xd();a=this.Zb?this.Zb.qz:Math.max(0,mA(this));jA(this,a,!1);b={};b.notif= 
this.Zb?"1":"0";Xy(this.context.logger,this.b[a].be.ja.Lb,null,50,b);this.I=this.context.b.listen(this.K(),"keydown",this.rz,this)}};f.Gp=function(){this.B=!1};f.rz=function(a){switch(a.keyCode){case 27:this.hj();a.preventDefault();break;case 37:0<this.g&&jA(this,this.g-1,!0);a.preventDefault();break;case 39:this.g+1<this.b.length&&jA(this,this.g+1,!0);a.preventDefault();break;case 9:jA(this,this.g+1<this.b.length?this.g+1:0,!0),a.preventDefault()}return!1}; 
f.hj=function(a){a&&a.stopPropagation();if(!this.B){var b=new tw;B(this.b,function(a){b.add(dA(a.Kg));b.add(cA(a.Kg,0))});b.add(dA(this.o));b.add(eA(this.k));b.add(dA(this.j,function(){Zf(this.K(),"","")},this));this.B=!0;Hk(b,"end",this.Gp,!1,this);b.play();a={};a.interval=w()-this.C;this.b[this.g]&&Yy(this.context.logger,this.b[this.g].be.ja.Lb,null,a);this.I&&this.context.b.Ga(this.I)}};f.xv=function(){"none"!=this.j.style.display&&this.context.g.pauseVideo()}; 
function jA(a,b,c){var d=a.b[b];a.P.focus();if(a.g!=b){if(0<=a.g){var e=a.b[a.g];P(e.Kg,"yt-uix-button-toggled");P(e.Xk,"iv-card-active")}a.g=b;O(d.Kg,"yt-uix-button-toggled");O(d.Xk,"iv-card-active");cA(a.j,nA(a).x).play();b={};b.nav=c?"1":"0";Vy(a.context.logger,d.be.ja.Lb,null,b)}}function nA(a){var b=dz(a),c=b.right-b.left,b=b.bottom-b.top,d=bg(a.j);return new F(445*-(isNaN(void 0)?a.g||0:NaN)+(c-445)/2,(b-d.height+(1<a.b.length?63:0))/2)} 
f.xd=function(){var a=dz(this);a&&(iA(this,a),Zx(this.j)&&(Zf(this.K(),this.context.j.Yd),Of(this.j,nA(this))),Of(this.K(),a.left,a.top))};f.Wd=function(a){kA(this,a)&&this.D&&(this.D=!1,hA(this))};function iA(a,b){var c=(b?445<b.right-b.left&&243<b.bottom-b.top:!1)&&!!a.b.length;Yx(a.K(),c)}function kA(a,b){return 2==bt(a.context.g.app).getPlayerType()?1==(isNaN(b)?a.context.g.getAdState():b):1==(isNaN(b)?a.context.g.getPlayerState():b)} 
function mA(a){var b=1E3*a.context.g.getCurrentTime();return ob(a.b,function(a){return a.be.Bd<=b&&b<a.be.g})};function oA(a,b,c){$y.call(this,a,b);this.ja=c;this.g=!1}x(oA,$y);oA.prototype.Lj=function(){oA.G.Lj.call(this);var a=this.ja.data;"start_ms"in a&&"end_ms"in a&&az(this,this.ja.data.start_ms,this.ja.data.end_ms,this.ja.id,this.show,this.hide)};function pA(a,b,c){oA.call(this,a,b,c);this.j=null;this.k=!1;this.Mj=null;this.Ed=!1;this.b=0}x(pA,oA); 
function qA(a){var b=a.ja.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");md(d,b.channel_name);var e=I("div","iv-branding-context-subscribe");a.ja.j?e.innerHTML=a.ja.j:b.num_subscribers&&md(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);Jf(e,"right",a.b+"px");a.K().appendChild(e);bz(a,a.K(),Dy(a.ja),a.ja.id,a.ja);a.Mj=new qw(sa(function(a){var b=bg(a.parentElement);(new Nw(a.parentElement,[b.width,b.height],[0,0],200,Sw)).play();this.Ed=!1},d),500,a);pw(a.context.b,a.K(),"mouseover",sa(function(a,b,c){this.Mj.stop();if(!this.Ed){var d=bg(a);$f(a,d.width);c=Math.min(d.height,c);c=Math.max(c/2-10,0);Of(b,d.width,c);this.Ed=!0;b=9;d=bg(a);c=bg(a.parentElement); 
(new Nw(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,Sw)).play()}},d,c,b.image_height),"iv-view-target",a);pw(a.context.b,a.K(),"mouseout",v(a.Mj.start,a.Mj),"iv-view-target",a)}pA.prototype.show=function(){if(!this.g){pA.G.show.call(this);this.k||(qA(this),this.k=!0);this.xd();Vy(this.context.logger,this.ja.Lb);$x(this.K());this.g=!0;var a=this.j,b,c=dg(a).width,d=ja(void 0)?void 0:c;b=b||0;Of(a,d);b=new Lw(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,Sw);Ak(b,"begin",sa($x,a));b.play()}}; 
pA.prototype.hide=function(){this.g&&(ay(this.K()),this.g=!1)};pA.prototype.xd=function(){var a=dz(this);if(a){var b=a.right-this.b-20,a=a.top+20;Of(this.K(),b,a)}};function rA(a,b,c,d,e,g){this.b=a;this.j=b;this.k=c;this.logger=d;this.g=e;this.Wa=g};function sA(a,b,c){oA.call(this,a,b,c);this.Bj=this.j=this.o=!1;this.k=5E3;this.b=null;this.ig=I("div","iv-promo-contents")}x(sA,oA); 
function tA(a){var b=a.ja.data;a.k=b.collapse_delay_ms||a.k;var c=["iv-promo","iv-promo-inactive"],d;if(b.image_url){d=I("div","iv-promo-img");var e=I("img",{src:b.image_url,"class":"iv-click-target"});d.appendChild(e);b.video_duration?(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.ja.style){case "cta":case "website":g= 
I("p","iv-click-target",I("strong",null,b.text_line_1));h=I("p",["iv-promo-link","iv-click-target"],b.text_line_2);O(e,"iv-click-target");break;case "playlist":case "video":g=I("p","iv-click-target",b.text_line_1);h=I("p","iv-click-target",I("strong",null,b.text_line_2));O(e,"iv-click-target");c.push("iv-promo-video");break;case "vote":g=I("p",null,I("strong",null,b.text_line_1)),h=I("p",null,b.text_line_2),k=I("div","iv-promo-button"),b=I("button",["yt-uix-button","yt-uix-button-primary"],I("span", 
"yt-uix-button-content",b.button_text)),a.context.b.listen(b,"click",function(a){a.stopPropagation();Xy(this.context.logger,this.ja.Lb,null,null,{contest_vote:"1"});var b=this.ja.data;a=H("iv-promo-txt",this.ig);var c=H("iv-promo-button",this.ig),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);bd(d,e,b);ed(c);fd(d,a);bz(this,this.ig,Dy(this.ja),this.ja.id,this.ja)},a),k.appendChild(b),c.push("iv-promo-with-button")}g&& 
e.appendChild(g);h&&e.appendChild(h);a.ig.appendChild(e);k&&a.ig.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.cs,a);a.context.b.listen(h,"touchend",function(a){a.stopPropagation();this.cs();this.Bj=!1},a);a.context.b.listen(a.K(),"mouseout",a.VB,a);h=I("div","iv-promo-close");g.appendChild(h);uA(a,v(function(){this.hide()},a),h);sg(a.K(),c);d&&ad(a.K(),d);ad(a.K(),a.ig);ad(a.K(),g);bz(a,a.K(),Dy(a.ja),a.ja.id,a.ja)} 
f=sA.prototype;f.show=function(){this.g||(sA.G.show.call(this),this.o||(tA(this),this.o=!0),this.xd(),$x(this.K()),this.ja&&this.ja.Lb&&Vy(this.context.logger,this.ja.Lb),"cta"==this.ja.style&&Zy(this.context.logger,this.ja.id,"cta_annotation_shown"),P(this.K(),"iv-promo-inactive"),this.g=!0,this.b&&(Uk(this.b),this.b=null),vA(this),wA(this,this.k))};f.hide=function(){this.g&&(O(this.K(),"iv-promo-inactive"),this.g=!1)};f.cs=function(){this.Bj=!0;vA(this);wA(this,500)}; 
f.VB=function(){this.Bj=!1;xA(this)};function xA(a){a.j||a.Bj||a.b||(O(a.K(),"iv-promo-collapsed"),a.j=!0)}function vA(a){a.j&&(P(a.K(),"iv-promo-collapsed"),a.j=!1)}function wA(a,b){a.b||(a.b=Tk(function(){this.b&&(Uk(this.b),this.b=null);xA(this)},b,a))}f.xd=function(){var a=dz(this);if(a){var b=ag(this.K()),b=b.width<a.right-a.left&&b.height<a.bottom-a.top?a.bottom-b.height- -8-25:a.bottom;Of(this.K(),a.left,b)}}; 
function uA(a,b,c){function d(a){Yy(this.context.logger,this.ja.Lb);"cta"==this.ja.style&&Zy(this.context.logger,this.ja.id,"cta_annotation_closed");b(a);a.stopPropagation()}a.context.b.listen(c,"click",v(d,a));a.context.b.listen(c,"touchend",v(d,a))};function yA(a,b,c){this.b={};this.g=!1;this.o="ivTrigger:"+a;this.j=c;xy(b,function(a,b){var c=zA(b.state,b.b);this.j.subscribe(c,v(this.k,this,c,a));this.b[c]=a},this)}yA.prototype.k=function(a,b,c,d){this.b[a]=b?!c:c;a=Pb(this.b,function(a){return a});this.g!=a&&(this.g=a,this.j.H(this.o,a,d))};function zA(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function AA(a,b,c){this.j=a;this.ja=b;this.b=c;this.g=null;this.o=this.isVisible=!1;BA(b,a)}function BA(a,b){Ky(a,function(c){return new yA(a.id,c,b)})}AA.prototype.hide=function(){this.isVisible=!1;this.j.ga("onResize",this.k,this);this.b&&this.b.hide()};AA.prototype.show=function(){this.isVisible=!0;this.b&&this.b.show();this.j.subscribe("onResize",this.k,this)};AA.prototype.destroy=function(){this.j.ga("onResize",this.k,this);if(this.b){var a=this.b;a.C.removeAll();a.g&&ed(a.g);a.j&&a.j.K()&&ed(a.j.K())}CA(this)}; 
function CA(a){a.g&&(a.g.stop(),a.g=null)}AA.prototype.k=function(){this.b&&DA(this.b)};function EA(){};function FA(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}x(FA,EA);function GA(){this.da=[];this.ea=[];this.Od=[]}GA.prototype.vg=null;GA.prototype.ud=null;GA.prototype.lk=!0;var HA=[2,2,6,6,0];f=GA.prototype;f.clear=function(){this.da.length=0;this.ea.length=0;this.Od.length=0;delete this.vg;delete this.ud;delete this.lk;return this};function IA(a,b,c){0==db(a.da)?a.Od.length-=2:(a.da.push(0),a.ea.push(1));a.Od.push(b,c);a.ud=a.vg=[b,c]} 
f.ab=function(a){var b=db(this.da);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.da.push(1),this.ea.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Od.push(c,d)}this.ea[this.ea.length-1]+=b/2;this.ud=[c,d]};f.close=function(){var a=db(this.da);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.da.push(4),this.ea.push(1),this.ud=this.vg);return this}; 
function JA(a,b,c,d,e){var g=a.ud[0]-b*Math.cos(d*Math.PI/180),h=a.ud[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.da.push(3);a.ea.push(1);a.Od.push(b,c,d,e,g,h);a.lk=!1;a.ud=[g,h]}function KA(a,b){for(var c=a.Od,d=0,e=0,g=a.da.length;e<g;e++){var h=a.da[e],k=HA[h]*a.ea[e];b(h,c.slice(d,d+k));d+=k}} 
f.clone=function(){var a=new this.constructor;a.da=this.da.concat();a.ea=this.ea.concat();a.Od=this.Od.concat();a.vg=this.vg&&this.vg.concat();a.ud=this.ud&&this.ud.concat();a.lk=this.lk;return a};f.isEmpty=function(){return 0==this.da.length};function LA(a,b){this.D=a;this.F=null==b?1:b}x(LA,EA);function MA(a,b){this.b=a;this.g=b};function NA(){}da(NA);NA.prototype.b=0;function OA(a){T.call(this);this.I=a||Jc();this.va=null;this.Xe=!1;this.b=null;this.o=void 0;this.A=this.C=this.D=null}x(OA,T);f=OA.prototype;f.pC=NA.getInstance();f.getId=function(){return this.va||(this.va=":"+(this.pC.b++).toString(36))};f.K=function(){return this.b};f.Bi=function(a){if(this.D&&this.D!=a)throw Error("Method not supported");OA.G.Bi.call(this,a)};f.Us=function(){this.b=this.I.createElement("div")}; 
f.Ih=function(){PA(this,function(a){a.Xe&&a.Ih()});this.o&&this.o.removeAll();this.Xe=!1};f.J=function(){this.Xe&&this.Ih();this.o&&(this.o.dispose(),delete this.o);PA(this,function(a){a.dispose()});this.b&&ed(this.b);this.D=this.b=this.A=this.C=null;OA.G.J.call(this)};f.td=function(){return this.b};function PA(a,b){a.C&&B(a.C,b,void 0)} 
f.removeChild=function(a,b){if(a){var c=s(a)?a:a.getId();a=this.A&&c?$b(this.A,c)||null:null;if(c&&a){var d=this.A;c in d&&delete d[c];rb(this.C,a);b&&(a.Ih(),a.b&&ed(a.b));c=a;if(null==c)throw Error("Unable to set parent component");c.D=null;OA.G.Bi.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function QA(a,b,c,d,e){OA.call(this,e);this.width=a;this.height=b;this.k=c||null;this.F=d||null}x(QA,OA);QA.prototype.j=null;QA.prototype.Sh=function(){return this.Xe?ag(this.K()):ja(this.width)&&ja(this.height)?new G(this.width,this.height):null};function RA(a){var b=a.Sh();return b?b.width/(a.k?new G(a.k,a.F):a.Sh()).width:0}QA.prototype.resume=function(){};function SA(a,b){T.call(this);this.Ph=a;this.gl=b;this[ok]=!1}x(SA,T);f=SA.prototype;f.gl=null;f.Ph=null;f.K=function(){return this.Ph};f.addEventListener=function(a,b,c,d){Ak(this.Ph,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Ik(this.Ph,a,b,c,d)};f.J=function(){SA.G.J.call(this);var a=this.Ph;if(a)if(pk(a))a.removeAllListeners(void 0);else if(a=Dk(a)){var b=0,c;for(c in a.b)for(var d=a.b[c].concat(),e=0;e<d.length;++e)Jk(d[e])&&++b}};function TA(a,b,c,d){SA.call(this,a,b);a=this.gl;b=this.K();c?(b.setAttribute("stroke",c.g),c=c.b,s(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/RA(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.gl;a=this.K();if(d instanceof LA)a.setAttribute("fill",d.D),a.setAttribute("fill-opacity",d.F);else if(d instanceof FA){b="lg-"+d.o+"-"+d.B+"-"+d.A+"-"+d.C+"-"+d.b+"-"+d.g;var e=UA(c,b);if(!e){var e=VA(c,"linearGradient",{x1:d.o,y1:d.B,x2:d.A,y2:d.C,gradientUnits:"userSpaceOnUse"}), 
g="stop-color:"+d.b;ja(d.j)&&(g+=";stop-opacity:"+d.j);g=VA(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.g;ja(d.k)&&(g+=";stop-opacity:"+d.k);d=VA(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=WA(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}x(TA,SA);function XA(a,b){SA.call(this,a,b)}x(XA,SA);function YA(a,b){SA.call(this,a,b)}x(YA,SA);function ZA(a,b,c,d){TA.call(this,a,b,c,d)}x(ZA,TA);function $A(a,b){SA.call(this,a,b)}x($A,XA);$A.prototype.clear=function(){cd(this.K())};function aB(a,b,c,d){TA.call(this,a,b,c,d)}x(aB,ZA);function bB(a,b){SA.call(this,a,b)}x(bB,YA);function cB(a,b,c,d,e){QA.call(this,a,b,c,d,e);this.g={};this.M=sc&&!Bc(526);this.L=new Yk(this)}var dB;x(cB,QA);var eB=0;function VA(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=cB.prototype; 
f.Us=function(){var a=VA(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=VA(this,"g");this.B=VA(this,"defs");this.j=new $A(b,this);a.appendChild(this.B);a.appendChild(b);this.b=a;this.k&&(this.K().setAttribute("preserveAspectRatio","none"),this.M?this.Uq():this.K().setAttribute("viewBox","0 0 "+(this.k?this.k+" "+this.F:"")))}; 
f.Uq=function(){if(this.Xe){var a=this.Sh();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.Sh=function(){if(!rc)return this.Xe?ag(this.K()):cB.G.Sh.call(this);var a=this.width,b=this.height,c=s(a)&&-1!=a.indexOf("%"),d=s(b)&&-1!=b.indexOf("%");if(!this.Xe&&(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 G(a,b)};f.clear=function(){this.j.clear();cd(this.B);this.g={}};function fB(a,b,c,d){b=VA(a,"path",{d:gB(b)});c=new aB(b,a,c,d);a.j.K().appendChild(c.K())} 
function gB(a){var b=[];KA(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 WA(a,b,c){if(b in a.g)return a.g[b];var d="_svgdef_"+eB++;c.setAttribute("id",d);a.g[b]=d;a.B.appendChild(c);return d} 
function UA(a,b){return b in a.g?a.g[b]:null}f.Ih=function(){cB.G.Ih.call(this);this.M&&this.L.Ga(hB(),"tick",this.Uq)};f.J=function(){delete this.g;delete this.B;delete this.j;cB.G.J.call(this)};function hB(){dB||(dB=new Rk(400),dB.start());return dB};function iB(a,b,c){this.b=a;this.g=0;this.B=b;this.C=c||70;this.j=!1}iB.prototype.start=function(a){this.A=w();this.g=a;this.o=this.A+this.g;this.j=!0;$x(this.b);We(this.k);this.k=Ve(v(this.D,this),this.C)};iB.prototype.stop=function(){this.j=!1;ay(this.b);this.k&&We(this.k)}; 
iB.prototype.D=function(){if(this.j){var a=w(),b;b=0==this.g||a>=this.o?0:1-(a-this.A)/this.g;var c=H("countdowntimer-diminishing-pieslice",this.b),d=Eg("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 GA,g=d/2-5;IA(e,d/2,d/2);e.ab(d/2,5);JA(e,g,g,-90,360*-b);e.ab(d/2,d/2);e.close();c.setAttribute("d",gB(e));a>=this.o&&(this.stop(),this.B&&this.B())}};function jB(){this.element=this.b=null;this.priority=0;this.k=this.A=!1;this.B=null}x(jB,Mh);jB.prototype.listen=function(a,b,c){return this.element.listen(a,b,c||this)};jB.prototype.Ga=function(a){this.element.Ga(a)};function kB(a,b,c,d){X.call(this,["div",{className:"ytp-button","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.oa="inline-block";this.D=a;this.I=this.g=this.o=null;this.k=!1;this.listen("click",this.bC);this.listen("keypress",this.cC);this.D.Nf(this.element,v(this.aC,this));oz(this,"button");b&&lB(this,b);c&&this.Db(c);d&&(this.g=d)}x(kB,X);function lB(a,b){b&&""!=b&&(a.o&&P(a.element,a.o),a.o=b,O(a.element,b))}function mB(a,b){a.I=b;Xv(a.template,"tabindex",b)}f=kB.prototype; 
f.aC=function(){return this.k?null:this.g?this.g:null};f.enable=function(){this.k=!1;this.template.update({disabled:null,tabindex:this.I});P(this.element,"ytp-disabled")};f.disable=function(){this.k=!0;this.template.update({disabled:"true",tabindex:null});O(this.element,"ytp-disabled")};f.bC=function(a){this.k&&(a.stopImmediatePropagation(),a.preventDefault())};f.cC=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.Hb("click")}; 
f.J=function(){this.D.Kn(this.element);this.D=null;kB.G.J.call(this)};function nB(a,b,c){X.call(this,["div","ytp-segmented-control"]);this.k=a;this.g=-1;this.b=[];if(null!=b)for(Qh(this.b),this.b=[],a=0;a<b.length;a++){var d=new kB(this.k);oz(d,"radio");this.b.push(d);c?d.pa(["div",b[a]]):d.pa(b[a]);0!=a&&O(d.K(),"ytp-segmented-control-other");oB(d,a==this.g);d.listen("click",sa(this.j,a),this);d.W(this.element)}oz(this,"radiogroup")}x(nB,X); 
nB.prototype.W=function(a,b){nB.G.W.call(this,a,b);for(var c=0,d=0;d<this.b.length;d++)c=Math.max(c,ag(this.b[d].K()).width);if(c)for(d=0;d<this.b.length;d++)$f(this.b[d].K(),c)};function pB(a,b){a.g=b;for(var c=0;c<a.b.length;c++)oB(a.b[c],c==b)}nB.prototype.getSelected=function(){return this.g};function qB(a,b){for(var c=0;c<a.b.length;c++)mB(a.b[c],b)} 
function oB(a,b){var c=a.K();b?(P(c,"ytp-segmented-control-deselected"),O(c,"ytp-segmented-control-selected"),c.setAttribute("aria-checked",!0)):(P(c,"ytp-segmented-control-selected"),O(c,"ytp-segmented-control-deselected"),c.setAttribute("aria-checked",!1))}nB.prototype.j=function(a){a!=this.g&&(pB(this,a),this.Hb("change"))};nB.prototype.J=function(){Qh(this.b);this.b=[];nB.G.J.call(this)};function rB(a){jB.call(this);this.b=Y(0,"YTP_ANNOTATIONS");this.element=new nB(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);R(this,this.element);this.element.Db(this.b);qB(this.element,2200);this.priority=3;pB(this.element,1)}x(rB,jB);rB.prototype.getSelected=function(){return this.element.getSelected()};function sB(a,b){this.start=a<b?a:b;this.end=a<b?b:a}sB.prototype.clone=function(){return new sB(this.start,this.end)};function tB(){this.b=!1;this.o=this.j=null}function uB(a,b,c){a.j?(Zf(a.j.K(),b,c),a.j.clear()):(b=new cB(b,c,void 0,void 0,void 0),a.j=b,a.j.Us(),a.o=I("div"),b=a.j.K(),a.o.appendChild(b));return a.j}tB.prototype.K=function(){return this.o};tB.prototype.g=function(){};function vB(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Nb(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function wB(a,b){var c;c=":"+(NA.getInstance().b++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function xB(a,b){var c=wB(a,vB("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=wB(a,vB("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},vB("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=wB(a,vB("feComposite",{"in":c,in2:b,operator:"in"}));return wB(a,vB("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))} 
function yB(a,b){var c=wB(a,vB("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=wB(a,vB("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=wB(a,vB("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=wB(a,vB("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=wB(a,vB("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=wB(a,vB("feComposite",{operator:"out","in":c,in2:d}));return wB(a,vB("feComposite",{operator:"over","in":b,in2:c}))} 
function zB(a,b){return b}function AB(a){var b=vB("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";B(a,function(a){t:{switch(a){case "bevel":a=xB;break t;case "dropshadow":a=yB;break t}a=zB}c=a(b,c)});return b}function BB(a){a=hb(a,function(a){return a in CB});Cb(a,function(a,c){return CB[a]-CB[c]});return a}function DB(a){return lb(a,function(a){return"dropshadow"==a})?new Af(0,7,7,0):new Af(0,0,0,0)}var CB={bevel:1,dropshadow:2};function EB(a,b,c,d,e){b=FB(b,c,d?d.b/2+1:0);fB(a,b,d,e)}function FB(a,b,c){var d=new GA;IA(d,a.left+b+c,a.top+c);d.ab(a.left+a.width-b-c,a.top+c);JA(d,b,b,-90,90);d.ab(a.left+a.width-c,a.top+a.height-b-c);JA(d,b,b,0,90);d.ab(a.left+b+c,a.top+a.height-c);JA(d,b,b,90,90);d.ab(a.left+c,a.top+b+c);JA(d,b,b,180,90);d.close();return d}function GB(a,b,c,d){var e=a.L;e?a=new FA(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=HB(d,a.j),a=new LA(a.o,b));return a} 
function HB(a,b){return a?Math.max(b,.9):b}function IB(a,b){var c=new Af(a.top,a.left+a.width,a.top+a.height,a.left),d=DB(b);la(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=void 0,c.bottom+=void 0,c.left-=NaN);return Cf(c)} 
function JB(a,b,c){if(c.length&&(b=Oc("g",void 0,b),b.length)){var d=BB(c);if(d){c="effects:"+(d?d.join("|"):"");var e=UA(a,c);e?a=e:(d=AB(d),a=0<d.childNodes.length?WA(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function KB(){tB.call(this);this.k=0}x(KB,tB); 
KB.prototype.g=function(a,b,c){var d=a.b,e=d.C,g=this.b&&Hy(a),e=(e+=g?1:0)?new MA(e,g?d.A:d.B):null;if(g=Ly(a)){var h=jy(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=My(a))&&a.b?a.b:null)&&a.length?a[0]:null){var l;c=c?jy(c,b):null;a=ey(k,new Bf(k.D,k.F,k.o,k.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);l=new F(a.left,a.top);c=h.clone();a=new Bf(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=IB(c,d.b);a=uB(this,c.width,c.height);var g=GB(d,c.width,c.height,this.b),h=new Bf(h.left-c.left,h.top-c.top,h.width,h.height),r=new F(l.x-c.left,l.y-c.top);this.k=17*gy(b,k.j,k.b?k.b:"xy");b=d.g;k=e?e.b/2:0;l=LB(h,r);var p=this.A(h,b,r,l),u=r.x,r=r.y,t=h.width,z=h.height,y=h.left,h=h.top,N=new GA;IA(N,y+b+k,h+k);"t"==l&&(N.ab(p.start,h+k),N.ab(u,r),N.ab(p.end,h+k));N.ab(y+t-b-k,h+k);JA(N,b,b,-90,90);"r"==l&&(N.ab(y+t-k,p.start), 
N.ab(u,r),N.ab(y+t-k,p.end));N.ab(y+t-k,h+z-b-k);JA(N,b,b,0,90);"b"==l&&(N.ab(p.end,h+z-k),N.ab(u,r),N.ab(p.start,h+z-k));N.ab(y+b+k,h+z-k);JA(N,b,b,90,90);"l"==l&&(N.ab(y+k,p.end),N.ab(u,r),N.ab(y+k,p.start));N.ab(y+k,h+b+k);JA(N,b,b,180,90);N.close();fB(a,N,e,g);if(e=this.K())O(e,"annotation-shape"),O(e,"annotation-speech-shape"),Of(e,c.left,c.top),Zf(e,c.width,c.height),JB(a,e,d.b)}}}}; 
function LB(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"}KB.prototype.A=function(a,b,c,d){function e(a,c,d){h=Math.min(Math.max(d-2*b,0),g);k=Ib(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 sB(k,k+h)};function MB(){tB.call(this)}x(MB,tB);MB.prototype.g=function(a,b,c){var d=Ly(a);d&&(b=jy(d,b,c),0>=b.width||0>=b.height||(a=a.b,c=IB(b,a.b),d=uB(this,c.width,c.height),EB(d,new Bf(0,0,b.width,b.height),a.g,new MA(!a.k&&this.b?1:a.k,a.o),new LA("#000",0)),b=this.K(),O(b,"annotation-shape"),fg(b,HB(this.b,a.j)),Of(b,c.left,c.top),Zf(b,c.width,c.height)))};var NB=window.location.protocol+"//i.ytimg.com/",OB=4/3;function PB(a,b,c){var d;switch(b.T){case 30:d=QB;break;default:d=RB}return d(a,b,c)}function RB(a,b,c){if(!c){c=a.clientHeight;a=a.clientWidth;if((900<a||600<c)&&b.Ae)return b.Ae;if((430<a||320<c)&&b.di)return b.di}return b.wa?b.wa:b.videoId?SB(b.videoId):""}function QB(a,b){return b.wa?b.wa:b.videoId?$d("//docs.google.com/vt",{id:b.videoId,authuser:b.Ua,authkey:b.wb}):"//docs.google.com/images/doclist/cleardot.gif"} 
function SB(a,b){return(NB+"vi/"+escape(a)+"/"+escape(b||"hqdefault.jpg")).replace("i.","i"+(a.charCodeAt(0)%1+1)+".")};function TB(a,b,c){tB.call(this);this.k=a||0;this.B=b||0;this.A=c||!1}x(TB,tB);function UB(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 Bf(e,g,c,d)} 
TB.prototype.g=function(a,b,c){var d=jy(Ly(a),b,c);if(!(0>=d.width||0>=d.height)){var e=UB(d,this.B);e.left+=d.left;e.top+=d.top;b=a.b;c=IB(e,b.b);var g=uB(this,c.width,c.height),h=new LA("#000",0),e=UB(e,this.k);a=a.k?a.k.b?a.k.b:a.k.videoId?SB(a.k.videoId,"hqdefault.jpg"):"":"";e=VA(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 bB(e,g);g.j.K().appendChild(e.K()); 
if(a=this.K()){var k=HB(this.b,b.j);fg(a,k);if(this.A&&0<b.k){var k=new MA(b.k,b.o),d=new Bf(0,0,d.width,d.height),l;l=FB(d,b.g,k.b/2+1);var p=UA(g,"mask");if(p)l=p;else{var p=document.createElementNS("http://www.w3.org/2000/svg","mask"),r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d",gB(l));r.setAttribute("fill","#FFF");p.appendChild(r);l=WA(g,"mask",p)}e=e.K();l&&e.setAttribute("mask","url(#"+l+")");EB(g,d,b.g,k,h)}O(a,"annotation-shape");O(a,"annotation-image-shape"); 
Of(a,c.left,c.top);Zf(a,c.width,c.height);JB(g,a,b.b)}}};function VB(){tB.call(this)}x(VB,tB);VB.prototype.g=function(a,b,c){var d=Ly(a);if(d){var e=jy(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.b;c=IB(e,b.b);var d=uB(this,c.width,c.height),g=b.C;a=this.b&&Hy(a);a=(g+=a?1:0)?new MA(g,a?b.A:b.B):null;g=new Bf(0,0,e.width,e.height);e=GB(b,e.width,e.height,this.b);EB(d,g,b.g,a,e);if(a=this.K())O(a,"annotation-shape"),O(a,"annotation-popup-shape"),Of(a,c.left,c.top),Zf(a,c.width,c.height),JB(d,a,b.b)}}};function WB(){KB.call(this)}x(WB,KB);WB.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 sB(k,k+h)};function XB(a,b,c,d,e){this.b=a;this.F=b;this.B=c;this.M=d;this.I=e;this.C=new ow(this);this.D=this.j=this.o=this.k=this.A=this.g=null}function YB(a,b){var c=v(function(a,c,g){c=g?ZB(this,c,v(g,this)):ZB(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 $B(a){if(a.b.B){var b;Gy(a.b,function(a){return"close"==a.type})?b=a.g:(a.o=I("div",["annotation-close-button","hid"]),vg(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",ZB(a,"b",c));a.C.listen(b,"touchend",ZB(a,"b",c))}} 
function ZB(a,b,c){return v(function(a){if(this.I)c&&c(a);else if(a.target instanceof Element){var e=a.target;ay(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(ud(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{$x(e)}}e=dg(a.target);a=new F(a.clientX,a.clientY);"c"==b&&e.contains(a)|| 
this.M.H(b,this.b)},a)}XB.prototype.N=function(){this.o&&$x(this.o);this.k&&fg(this.k,1);var a=aC(this);this.j&&(this.j.b=!0,fg(this.g,bC(this)?1:0),a&&this.j.g(this.b,a,cC(this)))};XB.prototype.L=function(){this.o&&ay(this.o);this.k&&fg(this.k,0);var a=aC(this);this.j&&(this.j.b=!1,fg(this.g,bC(this)?1:0),a&&this.j.g(this.b,a,cC(this)))};function cC(a){return a.D?Ly(a.D):null} 
function DA(a){if(a.g||a.j){var b=Ly(a.b);if(b){var c=aC(a),d=cC(a);if(a.g&&c){b=jy(b,c,d);Zf(a.g,b.width,b.height);Of(a.g,b.left,b.top);var e=a.B.Jf;if(e){var g;g=(g=Ly(a.b))&&e?fy(e,g.k,g.b?g.b:"xy"):1;var e=Ny(a.b,e),h;h=a.b.b;h.F?h=h.F:(h="speech"==a.b.style?1.6:.8,h=new Af(h,h,h,h));h=new Af(360*h.top*e/100,640*h.right*g/100,360*h.bottom*e/100,640*h.left*g/100);a.k&&(h.right+=1.5*c.height/100);a.g.style.padding=h.top+"px "+h.right+"px "+h.bottom+"px "+h.left+"px";"label"==a.b.style&&a.A&&(a.A.style.padding= 
a.g.style.padding);a.k&&(g=g/e*c.height*4.2/100,g=new G(g,g),Zf(a.k,g),"highlight"==a.b.type||"label"==a.b.style?(e=1.5*c.height/100,g=new F(b.width-g.width-e,b.height-g.height-e)):g=new F(b.width-g.width-3*c.height/100,(b.height-g.height)/2),Of(a.k,g));a.o&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Of(a.o,g&&e?new F(b.width-9,-9):g?new F(b.width-9,45<b.height?9:b.height-9):e?new F(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new F(45<b.width?b.width-9-18:-9,b.height- 
9):new F(-9,45<b.height?9:b.height-9)))}}a.j&&c&&a.j.g(a.b,c,d);if(a.g){c=a.g;d=a.b.b;c.style.color="highlightText"==a.b.style?d.I:d.A;c.style.fontSize=360*d.M*Ny(a.b,a.B.Jf)/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=Zx(d);g=H("annotation-close-button",a);e=Zx(g);d&&b&&ay(d);g&&e&&ay(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=pg(a),r=p,u=5,t=Math.floor(p/2);t;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(u=r,r=Math.min(r+t,p)):r=Math.max(r-t,u),t=Math.floor(t/2),a.style.fontSize=r+"px";r!=u&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=u+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=k);g&&e&&$x(g); 
d&&b&&$x(d)}}}} 
XB.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=aC(this);if(d){var e=null;"highlight"==this.b.type||"label"==this.b.style?e=new MB:"popup"==this.b.style?e=new VB:"anchored"==this.b.style?e=new KB:"speech"==this.b.style?e=new WB:"image"==this.b.type&&("video"==this.b.style?e=new TB(4/3,16/9,!0):"channel"==this.b.style&&(e=new TB));e&&(e.g(this.b,d,cC(this)), 
this.j=e,d=e.K())&&(ay(d),O(d,"annotation-type-"+this.b.type.toLowerCase()),this.F(d))}}if(b){d=["annotation","hid"];"highlightText"!=this.b.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.b.type.toLowerCase());this.g=I("div",d);this.b.A&&(this.A=I("div","inner-text"),"label"==this.b.style&&(O(this.A,"label-text"),this.A.style.backgroundColor=this.b.b.o),md(this.A,this.b.A),this.g.appendChild(this.A));vg(this.g,"annotation_id",this.b.id);this.F(this.g);YB(this,this.g);if(Hy(this.b)&& 
"image"!=this.b.type&&Fy(this.b)){if(d=Dy(this.b))this.g.title=ix(d);this.k=I("span","annotation-link-icon");this.g.appendChild(this.k)}$B(this);Hy(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=qy(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)}$x(this.g);fg(this.g,bC(this)? 
1:0);DA(this);this.j&&$x(this.j.K())};XB.prototype.hide=function(){ay(this.g);this.j&&ay(this.j.K())};function bC(a){return"label"!=a.b.style||a.j.b}function aC(a){var b=a.B.Jf;return b?"player_relative"==a.b.D?(a=a.B.Yd)?new Bf(-b.left,-b.top,a.width,a.height):null:new Bf(0,0,b.width,b.height):null};function dC(a){xu.call(this,a);this.zk=!0;this.ua="iv-module";this.qc="iv";this.N=!1;this.U=!0;this.B=!1;this.k=0;this.g={};this.I={};this.D=null;this.A=new Uy(this.M,this.b);a=eC;this.o=new rB(Lu(this));R(this,this.o);this.o.listen("change",this.Vu,this);this.subscribe("onHideControls",this.Su,this);this.subscribe("onShowControls",this.Uu,this);this.subscribe("onStateChange",this.Tu,this);this.subscribe("d",this.Xu,this);this.subscribe("c",this.Wu,this);this.subscribe("a",this.Qu,this);this.subscribe("b", 
this.Ru,this);this.subscribe("videodatachange",this.Kk,this);var b=new Sv(["div",[a.Nu,"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.P=I("DIV",[a.Pu,"html5-stop-propagation"]);this.C=I("DIV",a.Ou);Au(this,I("DIV",a.Mu,this.P,this.C));Au(this,b);this.F=new iB(b,v(this.Hk,this)); 
this.j=null;this.O=[];this.L=null}x(dC,xu);dC.o="AnnotationsModule";var eC={Mu:"video-annotations",Nu:"countdowntimer",Ou:"video-custom-annotations",Pu:"video-legacy-annotations"};dC.k=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};dC.j=function(a){return"card"==a.type};dC.g=function(a){return dC.Ja(a)?new dC(a):null};dC.Ja=function(a){return"leanback"==a.R().ba?!1:qs(a.getVideoData(),"iv3_module")}; 
dC.b=function(){return I("div",["annotation","annotation-type-custom","hid"])};f=dC.prototype;f.Ja=function(){return dC.Ja(this.b)};f.create=function(){dC.G.create.call(this);Mu(this,this.o);1==(this.b.R().fa||this.b.getVideoData().Aa)&&this.load()};f.destroy=function(){Nu(this,this.o);this.ga("videodatachange",this.Kk,this);dC.G.destroy.call(this)};f.Vu=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.Tu=function(a){this.U=W(a.state,8);0>kw(a,4)&&this.F.stop()};f.load=function(){dC.G.load.call(this);var a=this.b.getVideoData(),b=v(this.Wr,this,a.videoId);Az()&&(b=fC(this,b));b={format:"XML",method:"GET",Bb:b};a.Cj&&(this.k++,Li(a.Cj,b));a.an&&(b=v(this.Wr,this,a.videoId),Az()&&(b=fC(this,b)),b={format:"XML",method:"GET",Bb:b},this.k++,Li(a.an,b));pB(this.o.element,0)}; 
f.unload=function(){pB(this.o.element,1);this.A.log_({"iv-event":1});this.Hk();yu(this);Nb(this.g,function(a){a.destroy()});Nb(this.I,function(a){a.destroy()});this.j&&(this.j.destroy(),this.j=null);this.k=0;this.B=!1;this.g={};this.I={};dC.G.unload.call(this)}; 
function gC(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(gC(a,e))}return c} 
f.Wr=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(Gi(b)&&c){hC(this,c[0]);O(Jt(this.b),this.ua+"-loaded");0==this.k&&(this.B=!0);var c=[],d;for(d in this.g){var e=this.g[d].ja,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 nu(g,h,k);c.push(e)}}this.Sf.apply(this,c)}}};function iC(a,b){var c=jC(a,b);if(!c&&"marker"!=b.type)return null;Jy(b,function(a){a=v(this.RD,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new AA(a.M,b,c)} 
function kC(a,b){var c=dC.b(),d=null;switch(b.type){case "branding":a.C.appendChild(c);d=new pA(c,lC(a),b);break;case "promotion":if(a.b.R().b.I&&"video"==b.style){var c=Bi(Dy(b).value).v,e=bx(b.data.video_duration);c&&e&&(a.D={id:c,vF:e,wF:"feature=endscreen",author:b.data.text_line_1,title:b.data.text_line_2,uF:1},a.Kk())}else a.C.appendChild(c),d=new sA(c,lC(a),b)}d&&d.Lj();return d} 
f.Kk=function(){if(this.D){var a=this.b.getVideoData().A;!a||1>=a.length||a[1].id==this.D.id||(xb(a,1,0,this.D),sb(a,a.length-1))}};function mC(a,b){if(!a.j){var c=dC.b();a.C.appendChild(c);a.j=new aA(c,lC(a));a.j.Lj()}(c=b&&b.data&&b.data.card_type)&&bA[c]&&a.j.add(new bA[c](b.id,b.data,Dy(b),b))}function lC(a){a.L||(a.L=new rA(new ow(a),a.b.R(),a.b.getVideoData(),a.A,a.b,a.M));return a.L} 
function hC(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=gC(a,c[d]),g=null;try{g=Cy(e)}catch(h){}g&&(dC.k(g)?(e=kC(a,g))&&(a.I[g.id]=e):dC.j(g)?mC(a,g):(e=iC(a,g))&&(a.g[g.id]=e))}Nb(a.g,function(a){var b=a.ja;b.g&&b.g.g&&(b=this.g[b.g.g])&&(a.b.D=b.ja)},a)}f.Mc=function(a){dC.G.Mc.call(this,a);a=a.getId();var b=this.g[a];b&&!b.o&&(b=b.ja,"pause"==b.type?nC(this,b):(oC(this,a),Vy(this.A,b.Lb)))};f.qd=function(a){dC.G.qd.call(this,a);pC(this,a.getId())}; 
function nC(a,b){if(a.U){var c=Ey(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.N=!0,a.H("command_pause"),a.F.start(1E3*c.duration.value))}}function qC(a,b,c,d){d?oC(a,b,c):pC(a,b,c)}function pC(a,b,c){if(b=a.g[b])CA(b),c&&c.g?(a=v(a.Zs,a,b),b.g=new qw(a,2E3),b.g.start()):a.Zs(b)}f.Zs=function(a){a&&(a.hide(),rC(this,"shown",!1,a.ja.id),sC(this,a.ja,"hidden"))};function oC(a,b,c){if(b=a.g[b])CA(b),c&&c.k?(a=v(a.Ks,a,b),b.g=new qw(a,2E3),b.g.start()):a.Ks(b)} 
f.Ks=function(a){a&&(a.show(),rC(this,"shown",!0,a.ja.id),sC(this,a.ja,"shown"))};f.RD=function(a,b,c){var d=this.g[a];if(d&&b.value!=c){b.value=c;var e=!1;Jy(d.ja,function(a){e|=a.value});qC(this,a,b,e)}};f.Qu=function(a){if(a&&a.id){var b=Dy(a);if(b){var c=v(function(){sC(this,a,"click")},this);Oy(ix(b))&&"new"!=b.target||(c(),c=null);Xy(this.A,a.Lb,c)}}}; 
function sC(a,b,c){Iy(b,function(a){if(a.trigger==c&&"openUrl"==a.type){var e=this.b.getVideoData(),g=Qy(a.url,e.videoId);if(-1!=g)this.H("command_seek",g),this.Hk();else if(e=Ry(a.url,b.id,e.videoId,this.b.R()))this.pauseVideo(),window.open(e,Ty(a.url))}},a)}f.Su=function(){rC(this,"playerControlShow",!1)};f.Uu=function(){rC(this,"playerControlShow",!0)};f.Xu=function(a){rC(this,"rollOver",!0,a.id)};f.Wu=function(a){rC(this,"rollOver",!1,a.id)}; 
f.Ru=function(a){if(a||a.id)this.g[a.id].o=!0,pC(this,a.id),a&&(Yy(this.A,a.Lb),sC(this,a,"close")),rC(this,"closed",!0,a.id)};f.Hk=function(){this.F.stop();this.N&&(this.N=!1,this.H("command_play"))};function jC(a,b){if(tC(b)){var c=b.B||Gy(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new XB(b,v(a.P.appendChild,a.P),a.b.R(),a.M,c)}return null} 
function tC(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in zy)if(a.style==zy[b])return!0;return!1}function rC(a,b,c,d){a.H(zA(b,d),c,d)}function fC(a,b){return v(function(){if(!this.ha()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=sa.apply(window,a);this.O.push(Bz(b,void 0))}},a)}f.J=function(){for(var a=this.O,b=0,c=a.length;b<c;b++)Dz(a[b]);this.O.length=0;dC.G.J.call(this)};function uC(a,b,c){c=c||{};var d=c.ve;d||(d=document.createElement("style"),d.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(d),d=d.sheet||d.styleSheet);c.reset&&vC(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 vC(a){for(var b=(a.cssRules||a.rules).length;0<b;b--){var c=a;c.deleteRule?c.deleteRule(0):c.removeRule(0)}};var wC={nJ:"monoSerif",LJ:"propSerif",mJ:"monoSans",KJ:"propSans",CASUAL:"casual",CURSIVE:"cursive",iK:"smallCaps"},xC={NONE:"none",DROP_SHADOW:"dropShadow",RAISED:"raised",DEPRESSED:"depressed",FK:"uniform"},yC=["left","right","center"],zC={id:0,priority:0,anchorPoint:7,tj:50,rF:80,ne:95,Dd:15,Km:100,isVisible:!0,textAlign:yC[2],Ze:0,backgroundColor:"#080808",foregroundColor:"#fff",iF:1,co:1},AC={id:98},BC={id:99,priority:1,anchorPoint:0,tj:5,ne:7,Dd:2,Km:32,textAlign:yC[0]},CC=["CA","MX","US"];var DC=[{ia:"#fff",message:"YTP_COLOR_WHITE"},{ia:"#ff0",message:"YTP_COLOR_YELLOW"},{ia:"#0f0",message:"YTP_COLOR_GREEN"},{ia:"#0ff",message:"YTP_COLOR_CYAN"},{ia:"#00f",message:"YTP_COLOR_BLUE"},{ia:"#f0f",message:"YTP_COLOR_MAGENTA"},{ia:"#f00",message:"YTP_COLOR_RED"},{ia:"#080808",message:"YTP_COLOR_BLACK"}],EC=[{ia:0,text:"0%"},{ia:.25,text:"25%"},{ia:.5,text:"50%"},{ia:.75,text:"75%"},{ia:1,text:"100%"}],FC=[{ia:.25,text:"25%"},{ia:.5,text:"50%"},{ia:.75,text:"75%"},{ia:1,text:"100%"}],GC= 
[{ia:"fontFamilyOption",message:"YTP_FONT_FAMILY",options:[{ia:"monoSerif",message:"YTP_FONT_FAMILY_MONO_SERIF"},{ia:"propSerif",message:"YTP_FONT_FAMILY_PROP_SERIF"},{ia:"monoSans",message:"YTP_FONT_FAMILY_MONO_SANS"},{ia:"propSans",message:"YTP_FONT_FAMILY_PROP_SANS"},{ia:"casual",message:"YTP_FONT_FAMILY_CASUAL"},{ia:"cursive",message:"YTP_FONT_FAMILY_CURSIVE"},{ia:"smallCaps",message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{ia:"color",message:"YTP_FONT_COLOR",options:DC},{ia:"fontSizeIncrement",message:"YTP_FONT_SIZE", 
options:[{ia:-2,text:"50%"},{ia:-1,text:"75%"},{ia:0,text:"100%"},{ia:1,text:"150%"},{ia:2,text:"200%"},{ia:3,text:"300%"},{ia:4,text:"400%"}]},{ia:"background",message:"YTP_BACKGROUND_COLOR",options:DC},{ia:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:EC},{ia:"windowColor",message:"YTP_WINDOW_COLOR",options:DC},{ia:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:EC},{ia:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{ia:"none",message:"YTP_EDGE_STYLE_NONE"},{ia:"dropShadow", 
message:"YTP_EDGE_STYLE_DROP_SHADOW"},{ia:"raised",message:"YTP_EDGE_STYLE_RAISED"},{ia:"depressed",message:"YTP_EDGE_STYLE_DEPRESSED"},{ia:"uniform",message:"YTP_EDGE_STYLE_OUTLINE"}]},{ia:"textOpacity",message:"YTP_FONT_OPACITY",options:FC}];function HC(a,b,c){X.call(this,["div","ytp-drop-down","{{content}}"]);this.o=!1;this.B=0;this.D=this.C=null;this.k=new X(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);R(this,this.k);this.b=new kB(a,"ytp-drop-down-label");R(this,this.b);this.b.listen("click",this.F,this);this.A=new X(["div","ytp-drop-down-label-content","{{content}}"]);R(this,this.A);this.b.pa([this.A,["div","ytp-drop-down-arrow"]]);this.pa([this.k,this.b]);this.stopPropagation("click");n(b)&&this.g(b);n(c)&&this.D!=c&& 
(this.k.pa(c),this.D=c,IC(this));IC(this)}x(HC,X);HC.prototype.g=function(a){this.C!=a&&(this.A.pa(a),this.C=a,IC(this))};HC.prototype.j=function(){this.o=!1;IC(this)};HC.prototype.F=function(){this.o=!this.o;IC(this);this.o&&this.k.K().focus()};function JC(a,b){b>a.B&&(a.B=b,a.element.style.minWidth=a.B+"px")} 
function IC(a){a.o?(a.k.show(),pz(a,window,"blur",a.j,a,"menu"),pz(a,document,"click",a.j,a,"menu")):(a.k.hide(),qz(a,"menu"));var b=ag(a.b.K());a.k.K().style.bottom=b.height-1+"px";JC(a,b.width)};function KC(a,b){kB.call(this,a,"ytp-drop-down-menu-button");this.b=new X(["div","ytp-drop-down-menu-button-check"]);R(this,this.b);this.j=!!b}x(KC,kB);KC.prototype.pa=function(a){KC.G.pa.call(this,[this.b,a])};function LC(a,b){Q(a.element,"ytp-drop-down-menu-button-selected",b);a.j||Q(a.element,"ytp-drop-down-menu-button-checked",b)}function MC(a,b,c){Q(a.element,"ytp-drop-down-menu-button-separated",b&&!c);Q(a.element,"ytp-drop-down-menu-button-separated-above",b&&c)} 
function NC(a,b){Q(a.element,"ytp-drop-down-menu-button-checked",b)};function OC(a,b,c,d){X.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}x(OC,X);function PC(a,b){Eb(a.k,b)||(Nb(a.j,function(a){a.Ic()}),a.k=[],b&&B(b,function(a){this.k.push(a);var b=QC(this,a);this.o&&NC(b,a==this.b);LC(b,a==this.g);b.W(this.element)},a))}function RC(a,b){null!=a.g&&LC(QC(a,a.g),!1);null!=b&&LC(QC(a,b),!0);a.g=b;a.o||(a.b=b)}OC.prototype.getSelected=function(){return this.g}; 
function SC(a,b,c){a=QC(a,b);c?a.disable():a.enable()}function TC(a,b){Nb(a.j,function(a){mB(a,b)})}function QC(a,b){var c=a.j[b.toString()];if(c)return c;c=new KC(a.C,a.o);R(a,c);a.j[b.toString()]=c;c.pa(a.A(b));c.listen("click",v(a.B,a,b));return c};function UC(a){jB.call(this);this.D=this.j;this.o={};this.o[this.j]=Y(0,"YTP_TRANSLATE_MENU_ITEM");this.o.contribute=Y(0,"YTP_CONTRIBUTE_MENU_ITEM");this.I=!0;this.b=Y(0,"YTP_SUBTITLES");this.g=new OC(a,v(this.L,this),v(this.N,this));R(this,this.g);this.element=new HC(a,void 0,this.g);R(this,this.element);JC(this.element,150);this.priority=2;this.k=!0;this.B="captions";this.C=this.M=!1}x(UC,jB);UC.prototype.j="translate"; 
function VC(a,b){var c=[a.j];a.C&&c.push("contribute");for(var d=0;d<b.length;d++){var e=b[d],g=e.toString();a.o[g]||(a.o[g]=WC(e));c.push(g)}PC(a.g,c);SC(a.g,a.j,!a.M);c=!a.C;MC(QC(a.g,a.j),c,!1);a.C&&MC(QC(a.g,"contribute"),!0,!1);c=2400;TC(a.g,c++);c=c++;mB(a.element.b,c)}function XC(a,b){a.o[b]&&(a.D=b,RC(a.g,b),a.element.g(a.L(b)))}function YC(a,b){a.M=b;SC(a.g,a.j,!b)}UC.prototype.L=function(a){return this.o[a]}; 
UC.prototype.N=function(a){this.element.j();a==this.j?(this.I=!0,this.element.Hb("select")):"contribute"==a?(this.I=!1,this.element.Hb("select")):(XC(this,a),this.element.Hb("change"))};var ZC;function $C(a,b){ia(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;ZC||(ZC={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=ZC;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function aD(a,b,c,d,e){kB.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}x(aD,kB);function bD(a){lB(a,a.b&&a.A?a.A:a.F);a.Db(a.b&&a.B?a.B:a.M);a.g=a.b&&a.C?a.C:a.L;Q(a.element,"ytp-button-pressed",a.b)}function cD(a){a.b=!0;$C(a.element,!0);bD(a)}function dD(a){a.b=!1;$C(a.element,!1);bD(a)}function eD(a,b){a.F=b;bD(a)}aD.prototype.J=function(){this.C=this.B=this.A=null;aD.G.J.call(this)};function fD(a){aD.call(this,a,"ytp-subtitles-button",Y(0,"YTP_SUBTITLES"),"ytp-subtitles-button-active");mB(this,6500);this.element.setAttribute("aria-haspopup",!0)}x(fD,aD);function gD(a){jB.call(this);this.b=Y(0,"YTP_SUBTITLES");this.element=new nB(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);R(this,this.element);this.element.Db(this.b);qB(this.element,2500);this.priority=1;this.A=!0;this.B="captions";pB(this.element,1)}x(gD,jB);gD.prototype.F=function(){this.element.Hb("select")};gD.prototype.getSelected=function(){return this.element.getSelected()};function hD(a){X.call(this,a)}x(hD,X);hD.prototype.Lr=function(){};hD.prototype.Oj=function(){};function iD(a,b,c,d){X.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Y(0,b.message):""),e=[new Sv(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new Sv(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.K().style.background=b.ia,e.unshift(d));c?e.unshift(new Sv(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new Sv(["div","ytp-subtitles-settings-dialog-list-check"]));this.b=new kB(a);R(this,this.b);this.b.pa(e); 
this.pa(this.b)}x(iD,X);iD.prototype.setEnabled=function(a){Q(this.b.K(),"ytp-subtitles-settings-dialog-list-selected",a)};function jD(a){X.call(this,["div",["ytp-subtitles-settings-dialog","ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body",["div","ytp-subtitles-settings-dialog-top-level","{{top}}"],["div","ytp-subtitles-settings-dialog-sub-level","{{sub}}"]],["div","ytp-dialog-buttons","{{buttons}}"]]);this.k=a;this.g=null;var b=Y(0,"YTP_DONE"),c=new kB(a,"ytp-dialog-button",b);R(this,c);c.pa(b);c.listen("click",sa(this.Hb,"cancel"),this);mB(c,1400);b=Y(0,"YTP_RESET");a=new kB(a,"ytp-dialog-button",b);R(this, 
a);a.pa(b);O(a.K(),"ytp-dialog-button-left");a.listen("click",sa(this.Hb,"select"),this);mB(a,1300);this.j={};this.b={};this.template.update({top:kD(this,GC),buttons:[a,c]})}x(jD,hD); 
function kD(a,b,c){var d=new X(["ul","ytp-subtitles-settings-dialog-list"]),e,g=!1;n(c)?(a.b={},e=a.b):(a.j={},e=a.j,g=!0);for(var h=0;h<b.length;h++){var k=b[h],l=new iD(a.k,k,g,b==DC);g?(l.listen("click",v(a.Cq,a,k.options,k.ia)),mB(l.b,1100)):c&&(l.listen("click",v(a.JA,a,c,k.ia)),mB(l.b,1200));e[k.ia]=l;l.W(d.K())}return d}f=jD.prototype;f.Cq=function(a,b){this.template.update({sub:kD(this,a,b)});lD(this,this.j,b);lD(this,this.b,this.g[b]);mD(this.template.b["ytp-subtitles-settings-dialog-sub-level"])}; 
function mD(a){(a=H("ytp-subtitles-settings-dialog-list-selected",a))&&a.focus()}f.Oj=function(){mD(this.template.b["ytp-subtitles-settings-dialog-top-level"])};function lD(a,b,c){Nb(b,function(a,b){a.setEnabled(b==c)},a)}f.setProperties=function(a){this.g=a;(a=GC[0])&&a.options&&this.Cq(a.options,a.ia)};f.JA=function(a,b){this.g&&(this.g[a]=b,this.Hb("change"));lD(this,this.b,b);this.Oj()}; 
f.Lr=function(){var a=this.k.Hc(),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=[];jD.G.J.call(this)};function nD(a,b,c,d,e,g){jB.call(this);this.L=b;this.N=c;this.M=d;this.O=e;this.I=g;this.j={};this.j.off=Y(0,"YTP_LANGUAGE_OFF");this.j.translate=Y(0,"YTP_TRANSLATE_MENU_ITEM");this.j.contribute=Y(0,"YTP_CONTRIBUTE_MENU_ITEM");this.b=Y(0,"YTP_SUBTITLES");this.g=new OC(a,v(this.D,this),v(this.P,this));R(this,this.g);this.element=new HC(a,void 0,this.g);R(this,this.element);JC(this.element,150);this.priority=1;this.A=!0;this.C=this.o=!1;oD(this,[]);this.off()}x(nD,jB);nD.prototype.F=function(){this.M()}; 
function oD(a,b){for(var c=["off"],d=0;d<b.length;d++){var e=b[d],g=e.toString();a.j[g]||(a.j[g]=WC(e));c.push(g)}c.push("translate");a.C&&c.push("contribute");PC(a.g,c);SC(a.g,"translate",!a.o);MC(QC(a.g,"translate"),!0,!0);c=2500;TC(a.g,c++);c=c++;mB(a.element.b,c)}function pD(a,b){a.j[b]&&(RC(a.g,b),a.element.g(a.D(b)))}nD.prototype.off=function(){pD(this,"off")};nD.prototype.D=function(a){return this.j[a]}; 
nD.prototype.P=function(a){this.element.j();"off"==a?this.L():"translate"==a?this.O():"contribute"==a?this.I():this.N(a)};function qD(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);var c=Y(0,"YTP_DISMISS"),b=new kB(a,"ytp-dialog-button",c);R(this,b);b.pa(c);b.listen("click",sa(this.Hb,"change"),this);mB(b,1400);var c=Y(0,"YTP_CANCEL"),d=new kB(a,"ytp-dialog-button",c);R(this,d);d.pa(c);d.listen("click",sa(this.Hb,"cancel"),this);mB(d,1500);this.g=new OC(a, 
v(this.j,this),v(this.o,this),!0);R(this,this.g);this.g.element.style.maxHeight="100px";this.b=new HC(a,void 0,this.g);R(this,this.b);JC(this.b,200);this.k=null;this.template.update({content:this.b,buttons:[b,d]})}x(qD,hD);function rD(a,b){a.k=b;a.b.g(b?a.j(b):null)}qD.prototype.getSelected=function(){return this.k};qD.prototype.o=function(a){this.b.j();rD(this,a)};qD.prototype.j=function(a){return a.Oi+" -- "+a.ul};qD.prototype.Oj=function(){this.b.b.K().focus()};function sD(a){a=a||zC;ta(this,a)}f=sD.prototype;f.anchorPoint=7;f.tj=50;f.ne=95;f.rF=80;f.Ze=0;f.textAlign="center";f.backgroundColor="#080808";f.foregroundColor="#fff";f.iF=1;f.co=1;f.Dd=15;f.Km=32;f.isVisible=!0;f.qt='"Arial Unicode Ms", Arial';f.TD="100%";function tD(a,b){this.id=a;this.Ea=new sD(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.za=I("div",{id:"caption-window-"+this.id,"class":c});this.Wb=I("span",{"class":"captions-text",style:"visibility: hidden"});this.Wb.innerHTML="C";this.Ba=I("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.mk=I("div",{"class":"caption-window-transform"});this.mk.appendChild(this.Ba);this.za.appendChild(this.mk)}tD.prototype.id=0;f=tD.prototype;f.Ea=null; 
f.Bh="";f.Zc=null;f.za=null;f.mk=null;f.Ba=null;f.Wb=null;f.type=1;f.hk=function(){var a;this.Wb.style.fontFamily=this.Ba.style.fontFamily;this.za.appendChild(this.Wb);a=this.Wb.offsetHeight;this.za.removeChild(this.Wb);return a};f.ff=function(){this.Ba&&(0!=this.id&&($f(this.za,"100%"),$f(this.za,this.Ba.offsetWidth+1)),uD(this),Yx(this.za,this.Ea.isVisible))};function uD(a){Of(a.za,a.Ea.tj+"%",a.Ea.ne+"%");for(var b=0;8>=b;b++)P(a.za,"anchor-point-"+b);O(a.za,"anchor-point-"+a.Ea.anchorPoint)} 
f.Dr=function(a){var b=[];B(a,function(a){a.kk?b[b.length-1]+=a.oe:b.push(a.oe)});this.ae(b.join("
"));this.Zc=a};f.ae=function(a){this.Bh=a=vD(a);this.Ba.innerHTML=this.Bh;this.eo();this.ff()}; 
f.eo=function(){this.za.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.co;this.Ba.style.fontFamily=this.Ea.qt;this.Ba.style.fontSize=this.Ea.TD;1==this.Ea.Ze?this.Ba.setAttribute("dir","rtl"):this.Ba.removeAttribute("dir")};f.toString=function(){var a="Caption window ("+this.id+"): "+this.Bh,b;for(b in this.Ea)a+=b+" "+this.Ea[b]+" | ";return a}; 
function vD(a){a=a.split("
");for(var b=0,c=a.length;b<c;b++)a[b]=a[b]?"&nbsp;"+a[b]+"&nbsp;":"";return a.join("<br>")}f.nk=function(){this.Zc=[];this.ae("")};function wD(){this.C=1;this.o=20971520;this.k=8388608;this.g=5242880;this.ra=NaN;this.A=this.B=2;this.L=25;this.F=2097152;this.b=!0;this.j=1800;this.zi=yo.auto;this.M=!0;this.N=tr("xboxone");this.D=0;this.O=this.I=!1};function xD(){this.da=[]}xD.prototype.contains=function(a){a=Ab(this.da,a);return 0<=a||0>a&&1==(-a-1)%2};xD.prototype.length=function(){return this.da.length/2};function yD(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=zD();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function AD(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 BD(a,b){if("undefined"!=typeof a.selectSingleNode){var c=Lc(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(document.implementation.hasFeature("XPath","3.0")){var c=Lc(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null} 
function CD(a){if("undefined"!=typeof a.selectNodes){var b=Lc(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=Lc(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 zD(){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 DD(){this.g=[];this.j=[]};function ED(a){this.b=a.Bd;this.k=a.priority;this.Cc=a.Cc||this.Cc}ED.prototype.b=0;ED.prototype.k=0;ED.prototype.Cc=0;ED.prototype.toString=function(){return this.b+", "+this.Cc};function FD(a){ED.call(this,a);this.oe=a.text||this.oe;this.oj=a.windowId||this.oj;this.kk=a.params.append||this.kk;this.Gt=a.params.row||this.Gt;this.Ft=a.params.WD||this.Ft}x(FD,ED);f=FD.prototype;f.oe="";f.kk=!1;f.Gt=0;f.Ft=0;f.oj=0;f.toString=function(){return this.b+", "+this.Cc+": "+this.oe}; 
function GD(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={Bd:c,Cc:d,text:b,windowId:e,priority:5,params:{}};a.getAttribute("r")&&(b.params.row=parseInt(a.getAttribute("r"),10));a.getAttribute("c")&&(b.params.WD=parseInt(a.getAttribute("c"),10)); 
a.getAttribute("append")&&(b.priority=6,b.params.append=!0);return new FD(b)}function HD(a){ED.call(this,a);this.id=a.windowId||this.id;this.params=a.params}x(HD,ED);HD.prototype.id=0;HD.prototype.params=null;HD.prototype.j="";HD.prototype.g=!1;function ID(){return new HD({Bd:-2147483648,Cc:4294967295,params:zC})};function JD(a){DD.call(this);this.j.push(ID());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=GD(a[b]);this.g.push(d)}}x(JD,DD);function KD(a){DD.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.Cc>=h?g.Cc=h:g=null);switch(d.getAttribute("op")){case "kill":d=null;break t;case "define":g=null}g?g.o=!0:g=ID();var k={};ta(k,g?g.params: 
zC);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.tF=d.getAttribute("op"));d.getAttribute("rc")&&(k.Dd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.Km=parseInt(d.getAttribute("cc"),10));d.getAttribute("ap")&&(g=parseInt(d.getAttribute("ap"),10),k.anchorPoint=0>g||8<g?7:g);d.getAttribute("ah")&&(k.tj=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(k.ne=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=yC[parseInt(d.getAttribute("ju"),10)]);d.getAttribute("pd")&&(k.Ze=1,0==parseInt(d.getAttribute("pd"),10)&&(k.Ze=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.Bm=parseInt(d.getAttribute("sd"), 
10));g=parseInt(d.getAttribute("d"),10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d={Bd:h,Cc:g,params:k,windowId:parseInt(d.getAttribute("id"),10)};d=new HD(d)}else d=null}this.b[e]=d;this.j.push(d);break;case "text":e=GD(a[b]),this.g.push(e),d=e.oj,this.b[d]&&(d=this.b[d],e=e.oe,""!=d.j&&(d.g=!0),d.j+=e)}}x(KD,DD);function LD(){DD.call(this)}x(LD,DD);function MD(a){this.b=a.languageCode;this.Oi=a.languageName||null;this.ul=a.languageOriginal||null;this.id=a.id||null;this.g=a.is_default||!1}MD.prototype.toString=function(){return this.b+"_"+this.Oi+"_"+this.ul+"_"+this.id+"_"+this.g};function ND(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.va=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 MD(a.translationLanguage))} 
function OD(a){var b={format:a.o,languageCode:a.g,languageName:a.A,displayName:WC(a),kind:a.j,name:a.k,id:a.va,is_servable:a.I,is_default:a.B,is_translateable:a.C};a.b&&(a=a.b,b.translationLanguage={languageCode:a.b,languageName:a.Oi,languageOriginal:a.ul,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.Oi);return b.join("")} 
ND.prototype.toString=function(){var a=[this.g,": ",this.k," (",this.j,")"];this.b&&a.push(" >> ",this.b.b);return a.join("")};ND.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 PD(a,b){DD.call(this);this.j.push(ID());for(var c=a.split(QD),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(RD))e=null;else{var h=e.split(SD),k=0,l=h[k++].match(TD);l||(l=h[k++].match(TD));l?(e=UD(l[1],g),g=UD(l[3],g),h=h.slice(k).join("
"),e=new FD({Bd:e,Cc:g-e,text:h,windowId:0,priority:5,params:{}})):e=null}e&&this.g.push(e)}}x(PD,DD);var RD=/NOTE/,QD=/[
|
|
]{2,}/,SD=/
|
|
/,TD=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[	 ]+-->[	 ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/; 
function UD(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 VD(a,b){this.b=[];this.g=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new PD(a,b||0):(c=yD(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new LD:new KD(c):new JD(c):null:null;c&&(this.g=c.j,this.b=c.g)};function WD(a,b){this.ya=a;this.X=b;this.A=new xD;this.k=!0;this.B=this.j=this.o=this.b=null;this.g=0}x(WD,Mh);WD.prototype.J=function(){We(this.g);this.g=0;this.k=!0};WD.prototype.resume=function(){this.k=!1;We(this.g);this.seek(this.X.getCurrentTime());XD(this)};WD.prototype.seek=function(a){this.b=db(this.B.Ri(a).b)};function YD(a,b){a.o=b}function ZD(a){var b;if(b=!a.k&&null!==a.b)b=a.b,b=b.b.Pg(b);return b&&!a.j&&!(a.b&&30<a.b.startTime-a.X.getCurrentTime())} 
function $D(a){var b;b=a.b;b=bp(b.b,b);if(!a.A.contains(b.b[0].k)){Li(Zo(b),{format:"RAW",Bb:v(a.C,a),withCredentials:!0});a.j=b;var c=a.A,d=a.j.b[0].k,e=Ab(c.da,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.da[e-1]&&e<c.da.length&&1==c.da[e]-d?(sb(c.da,e),sb(c.da,e-1)):0<e&&1==d-c.da[e-1]?c.da[e-1]=d:e<c.da.length&&1==c.da[e]-d?c.da[e]=d:(xb(c.da,e,0,d),xb(c.da,e+1,0,d)))}a.b=db(b.b)} 
WD.prototype.C=function(a){null==a.responseText||400<=a.status||this.k||null===this.o||(a=new VD(a.responseText,1E3*this.j.b[0].startTime),this.o(a));this.j=null};function XD(a){a.g=Ve(v(function(){ZD(this)&&$D(this)},a),1E3);ZD(a)&&$D(a)};function aE(){this.g=[];this.b=[];this.j=-1}function bE(a,b){return b?a.b.concat(a.g):a.b}function cE(a,b){switch(b.j){case "asr":return dE(b,a.g);default:if(b.B||0>a.j)a.j=a.b.length;return dE(b,a.b)}}function dE(a,b){return lb(b,v(a.equals,a))?!1:(b.push(a),!0)};function eE(a){this.Iq=!!a;this.b=new aE;this.A=[]}function fE(a,b){return lb(bE(a.b,!0),function(a){return a.toString()==b})}eE.prototype.seek=function(){};eE.prototype.B=function(){};function gE(a,b){eE.call(this);this.j=a;this.g=new WD(new wD,b)}x(gE,eE);gE.prototype.k=function(a,b){YD(this.g,function(c){b(c,a)});this.g.B=this.j.Ma[a.g];this.g.resume()};gE.prototype.o=function(a){cE(this.b,new ND({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};gE.prototype.seek=function(a){this.g.seek(a)};gE.prototype.B=function(){var a=this.g;We(a.g);a.g=0;a.k=!0};function hE(a,b){tD.call(this,a,b);this.Ba.style.display="block";this.Ba.style.padding="0";this.ic=[];var c=this.Ba;P(c,"captions-text");O(c,"caption-painton-text-rows")}x(hE,tD);f=hE.prototype;f.type=0;f.Oq="";f.Ah=!1;f.Tb=null;f.ic=null;f.hk=function(){return this.ic[0]?this.ic[0].offsetHeight:0};function iE(a){return a.ic.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)} 
f.ff=function(){0!=this.id&&($f(this.za,"100%"),$f(this.za,this.Ah?iE(this):this.Tb.width));var a=Math.round(this.Ea.Dd*this.hk());this.za.style.maxHeight=a+"px";uD(this);Yx(this.za,this.Ea.isVisible)}; 
f.ae=function(a){this.nk();a=vD(a);this.Ah||(this.Bh=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.Ah||(this.Ba.style.height=this.Tb.height+"px",this.Ba.style.width=this.Tb.width+"px",d.style.position="absolute",d.style.top=this.Tb.Mq[b]+"px",d.style.left=this.Tb.Lq[b]+"px");this.Ba.appendChild(d);this.ic.push(e)}this.eo();this.ff()}; 
f.nk=function(){for(var a=0,b=this.ic.length;a<b;a++){var c=ud(this.ic[a],"caption-row-holder");ed(c)}this.ic=[]};f.eo=function(){this.za.style.textAlign=this.Ea.textAlign;for(var a=0,b=this.ic.length;a<b;a++)this.ic[a].style.backgroundColor=this.Ea.backgroundColor;this.Ba.style.color=this.Ea.foregroundColor;this.Ba.style.opacity=this.Ea.co;this.Ba.style.fontFamily=this.Ea.qt;1==this.Ea.Ze?this.Ba.setAttribute("dir","rtl"):this.Ba.removeAttribute("dir")};function jE(a,b){tD.call(this,a,b);this.Zc=[];this.we=[];this.Vb=[];this.ug=new Rk(433);this.ug.stop();Rg(this.ug,"tick",v(this.jE,this))}x(jE,tD);f=jE.prototype;f.type=2;f.XD=32;f.Vb=null;f.xe=0;f.we=null;f.ug=null;f.ff=function(){$f(this.za,"100%");var a=this.za.offsetWidth,a=Math.min(kE(this),a);$f(this.za,a+"px");$f(this.mk,"100%");this.Ba.style.whiteSpace="nowrap";uD(this);Yx(this.za,this.Ea.isVisible)}; 
f.Dr=function(a){var b=a.length;if(0>=b)this.nk();else{for(var c=0;c<b&&0<=this.Zc.indexOf(a[c]);)c++;this.Zc=this.Zc.concat(a.slice(c));lE(this)}};f.nk=function(){this.Zc=[];this.Vb=[];this.xe=0;this.Vb=[];this.we=[];mE(this)}; 
function lE(a){if(!nE(a))if(a.xe>=a.Zc.length)mE(a);else{var b=a.Vb.length-1;0>b&&(a.we.push(0),a.xe=0,a.Vb.push(""),b=0);for(var c=a.Zc.length,d=a.xe;d<c;d++){var e=a.Zc[d];if("
"==e.oe){a.xe++;a.we[b]++;break}if(e.kk||0==a.Vb[b].length)a.Vb[b]+=e.oe,a.xe++,a.we[b]++;else break}mE(a);d<c&&!nE(a)&&(b=a.hk(),O(a.Ba,"caption-rollup"),a.za.style.overflow="hidden",a.Ba.style.top=-b+"px",a.ug.start())}}function nE(a){return a.ug.nd||rg(a.Ba,"caption-rollup")} 
f.jE=function(){this.za.style.overflow="visible";this.Ba.style.top=0;this.ug.stop();P(this.Ba,"caption-rollup");this.Vb.push("");this.we.push(0);lE(this)};function mE(a){if(!nE(a)){for(;a.Vb.length<a.Ea.Dd;)a.Vb.unshift(""),a.we.unshift(0);for(;a.Vb.length>a.Ea.Dd;){a.Vb.shift();var b=a.we.shift();0<b&&(a.xe-=b,a.Zc.splice(0,b))}a.ae(a.Vb.join("
"))}} 
function kE(a){a.Wb.style.fontFamily=a.Ba.style.fontFamily;a.Wb.style.fontSize=a.Ba.style.fontSize;a.Ba.appendChild(a.Wb);a.Wb.innerHTML="";var b=a.Wb.offsetWidth;a.Wb.innerHTML="&nbsp;";b=2*a.Wb.offsetWidth+b*a.XD;a.Ba.removeChild(a.Wb);return b};function oE(a,b,c,d){eE.call(this,d);c||(c=Bi(a).hl||"",c=c.split("_").join("-"));this.g=Ei(a,{hl:c});this.j=b;this.C={}}x(oE,eE);oE.prototype.k=function(a,b){var c=pE(this,a);Li(c,{format:"RAW",onSuccess:function(c){c=new VD(c.responseText);b(c,a)},withCredentials:!0})}; 
oE.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.Iq&&(b.asrs=1);d=Ei(d,b);b=v(function(b){if((b=b.responseXML)&&b.firstChild){for(var d=this.b,h=b.getElementsByTagName("track"),k=h.length,l=0;l<k;l++){var p=h[l].getAttribute("formats"),r=c,u=h[l].getAttribute("lang_code"),t=h[l].getAttribute("lang_translated"),z=h[l].getAttribute("name"),y=h[l].getAttribute("kind"),N=h[l].getAttribute("id"),ra="true"==h[l].getAttribute("lang_default"), 
zd="true"==h[l].getAttribute("cantran"),ff=h[l].getAttribute("vss_id"),p=new ND({formats:p,format:r,languageCode:u,languageName:t,name:z,kind:y,id:N,is_servable:!0,is_default:ra,is_translateable:zd,vss_id:ff});cE(d,p)}b=b.getElementsByTagName("target");d=b.length;for(h=0;h<d;h++)k=b[h].getAttribute("lang_code"),l=b[h].getAttribute("lang_translated"),p=b[h].getAttribute("lang_original"),r=b[h].getAttribute("id"),u="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:p, 
id:r,is_default:u},this.C[k.languageCode]=k.languageName,this.A.push(new MD(k))}a()},this);Li(d,{format:"RAW",onSuccess:b,withCredentials:!0})};function pE(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=Ei(c,d)};function qE(a){xu.call(this,a);Ye({YTP_TRANSLATE_MENU_ITEM:"Overst undertekster",YTP_CONTRIBUTE_MENU_ITEM:"Tilfj undertekster",YTP_TRANSLATE_DIALOG_TITLE:"Overst ...",YTP_ASR_SETTINGS_LABEL:"Automatiske undertekster",YTP_LANGUAGE_OFF:"Slet fra",YTP_FONT_FAMILY:"Skrifttypefamilie",YTP_FONT_SIZE:"Skriftstrrelse",YTP_FONT_COLOR:"Skriftfarve",YTP_FONT_OPACITY:"Skriftens gennemsigtighed",YTP_BACKGROUND_COLOR:"Baggrundsfarve",YTP_BACKGROUND_OPACITY:"Baggrundens gennemsigtighed", 
YTP_WINDOW_COLOR:"Vinduesfarve",YTP_WINDOW_OPACITY:"Vinduesgennemsigtighed",YTP_COLOR_WHITE:"Hvid",YTP_COLOR_YELLOW:"Gul",YTP_COLOR_GREEN:"Grn",YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Bl",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Rd",YTP_COLOR_BLACK:"Sort",YTP_FONT_FAMILY_MONO_SERIF:"Serif med fast tegnafstand",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Sans-Serif med fast tegnafstand",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual", 
YTP_FONT_FAMILY_CURSIVE:"Kursiv",YTP_FONT_FAMILY_SMALL_CAPS:"Sm versaler",YTP_CHAR_EDGE_STYLE:"Tegnkantstil",YTP_EDGE_STYLE_NONE:"Ingen",YTP_EDGE_STYLE_RAISED:"Hvet",YTP_EDGE_STYLE_DEPRESSED:"Nedsnket",YTP_EDGE_STYLE_OUTLINE:"Kontur",YTP_EDGE_STYLE_DROP_SHADOW:"Dropskygge",YTP_CLICK_FOR_SETTINGS:"Click $GEAR_ICON for settings"});this.zk=!0;this.o=this.V=!1;this.wb=new ow(this);this.F=a.R();this.C=null;this.oa=a.app.g;this.xa={};this.ka=[];this.Va=0;this.D={};this.aa={};this.wa=this.Da= 
this.ma=this.Ca=!1;this.Aa=new tD(99,BC);this.j=this.k=this.N=null;this.Ia=!1;this.T=this.O=0;this.B=this.F.b.ma;this.U=new fD(Lu(this));R(this,this.U);this.U.listen("click",this.yu,this);this.B?this.L=new nD(Lu(this),v(this.zu,this),v(this.vi,this),v(this.Po,this),v(this.Oo,this),v(this.No,this)):(this.I=new gD(Lu(this)),R(this,this.I),pB(this.I.element,1),this.I.listen("change",this.Iu,this),this.I.listen("select",this.Ju,this),this.A=new UC(Lu(this)),R(this,this.A),this.A.listen("change",this.wu, 
this),this.A.listen("select",this.xu,this),YC(this.A,!1));this.P=new jD(Lu(this));R(this,this.P);this.P.listen("change",v(this.Td,this,!0));this.P.listen("cancel",this.vu,this);this.P.listen("select",this.Mo,this);this.ca=new qD(Lu(this));R(this,this.ca);this.ca.listen("change",this.Eu,this);this.ca.listen("cancel",this.Fg,this);this.subscribe("onResize",v(this.Go,this));this.subscribe("onBackgroundChange",v(this.Fu,this));this.subscribe("onTextOpacityChange",v(this.Gu,this));this.subscribe("onWindowOpacityChange", 
v(this.Hu,this));this.subscribe("onFontSizeIncrease",v(this.Du,this));this.subscribe("onFontSizeDecrease",v(this.Cu,this));this.subscribe("onShowControls",v(this.Bu,this));this.subscribe("onHideControls",v(this.Au,this))}x(qE,xu);qE.prototype.ua="captions";qE.prototype.qc="cc";qE.prototype.Pn="subtitlesModuleData";qE.prototype.Ha=1; 
var rE={background:"#080808",backgroundOpacity:1,charEdgeStyle:"uniform",color:"#fff",fontFamily:'"Arial Unicode Ms", Arial',fontFamilyOption:"propSans",fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function sE(a){return a.F.Xb?!!a.oa.b.textTracks:!1}f=qE.prototype; 
f.create=function(){qE.G.create.call(this);this.C=this.b.getVideoData();-1==CC.indexOf(this.F.ka)&&O(Jt(this.b),"cc-international");this.g=ac(rE);ta(this.g,Eu(this,"display-settings"));this.P.setProperties(this.g);sE(this)||(this.H("module_menu_button_add",this.ua,this.U),this.B?Mu(this,this.L):Mu(this,this.I));var a;1==this.F.j.cc_load_policy||1==this.C.Ko||"alwayson"==js(this.C,"yt:cc")||sE(this)?a=!0:(a=Eu(this,"module-enabled"),a=null!=a?!!a:"on"==js(this.C,"yt:cc"));a&&this.load()}; 
function tE(a){a.B?Nu(a,a.L):(Nu(a,a.A),Nu(a,a.I));a.H("module_menu_button_remove",a.ua)}f.destroy=function(){tE(this);qE.G.destroy.call(this)};function uE(a){a.k.o(v(a.us,a),!0,sE(a)?"vtt":void 0)} 
f.load=function(){this.wa="alwayson"==js(this.C,"yt:cc");this.Da="1"==this.C.k.cc_auto_caps||"1"==this.F.j.cc_auto_caps;var a="1"==this.C.k.cc_contribute||"1"==this.F.j.cc_contribute;this.B?this.L.C=a:this.A.C=a;this.V||this.o?this.o&&(qE.G.load.call(this),this.V=!1,sE(this)||(this.Td(),this.Go())):(this.V=!0,this.o=!1,this.C.Za?(this.k=new gE(this.C.j,this.b),this.subscribe("seekto",this.uq,this)):(a=(a=this.C.k.cc_lang_pref||this.F.j.cc_lang_pref||js(this.C,"yt:cc_default_lang")||this.F.B)&&a.split("_").join("-"), 
this.k=new oE(this.C.Xf,this.C.videoId,a,this.C.tm)),uE(this))};f.unload=function(){this.xc&&(vE(this,!1),this.hm("control_subtitles_set_track"));if(sE(this)){var a;a=Oc("track",void 0,void 0);for(var b=0;b<a.length;b++)ed(a[b])}else wE(this,!1),xE(this),this.ga("seekto",this.uq,this),this.k=null,this.Fg();this.ma=this.V=!1;this.o&&(this.o=!1,qE.G.unload.call(this))};f.log_=function(){}; 
f.us=function(){if(this.k)if(this.V=!1,sE(this)){for(var a=this.oa.b,b=this.k,c=[],d=bE(b.b,void 0),e=0;e<d.length;e++){var g=d[e],h=pE(b,g),h={kind:"subtitles",label:g.k,srclang:g.g,src:h};g.B&&(h["default"]=1);c.push(I("track",h))}fu(a,c)}else a=this.ca,b=this.k.A,PC(a.g,b),TC(a.g,1E3),Xv(a.g.template,"tabindex",1E3),mB(a.b.b,1001),b.length?rD(a,b[0]):rD(a,null),a=bE(this.k.b,!0),0<a.length?(this.log_("Caption track list loaded, found "+a.length+" tracks."),this.B?oD(this.L,a):(Mu(this,this.A), 
VC(this.A,a)),b=this.k,a=b.b.j,b=bE(b.b,!0),(a=0>a?null:b[a])?(this.Ca=!0,yE(this,a)):(this.o||(this.o=!0,this.load()),a=this.k.b.g,a.length&&(a=a[0].toString(),this.B||zE(this,a),(this.ma||this.Da)&&this.vi(a))),this.H("publish_external_event","onCaptionsTrackListChanged")):(this.log_("No captions found."),tE(this),this.unload())}; 
f.Qx=function(a,b){this.k&&(this.o||(this.o=!0,this.load()),this.Ca&&(this.Ca=!1,this.H("publish_external_event","onCaptionsTrackListChanged")),!b||this.j&&b.equals(this.j)||AE(this,b),BE(this,a.g.concat(a.b)))}; 
function AE(a,b){xE(a);a.j=b;a.Ia=zx.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);c=WC(b)||"";c=c.replace(/<[^>]*>?/g,"");a.B&&(c&&(c+="
"),c+=Ze("YTP_CLICK_FOR_SETTINGS",{GEAR_ICON:'<div class="ytp-subtitles-gear"></div>'}));Au(a,a.Aa.za);a.Aa.ae(c);a.T||(a.T=L(v(a.kw,a),2E3));a.H("publish_external_event","captionschanged",OD(b));eD(a.U,"ytp-subtitles-button-active");a.B?(c=a.L,c.o=!0,SC(c.g,"translate",!1)):(pB(a.I.element, 
0),YC(a.A,!0));zE(a,b.toString());Fu(a,"module-enabled",!0);Pu(a)}function BE(a,b){a.log_("Caption track loaded with "+b.length+" events.");var c=[];B(b,function(a){var b;this.Va++;b="caption"+this.Va.toString();c.push(new nu(a.b,a.b+a.Cc,{id:b}));this.xa[b]=a},a);a.Sf.apply(a,c)}f.Mc=function(a){if(a=CE(this,a))this.ka.push(a),this.O||(this.O=L(v(this.Aj,this),0))};f.qd=function(a){if(a=CE(this,a))rb(this.ka,a),this.O||(this.O=L(v(this.Aj,this),0))}; 
function CE(a,b){var c=b.getId();return 0!=c.indexOf("caption")?null:a.xa[c]} 
f.NA=function(a){if(a instanceof HD){var b=this.D[a.id];ta(a.params,this.g);b&&b.type!=(a.params.Bm?2:a.g?0:1)&&(ed(b.za),delete this.D[a.id]);if(!this.D[a.id]){var b=this.D,c=a.id,d;t:{d=a.id;var e=a.params;switch(a.params.Bm?2:a.g?0:1){case 0:d=new hE(d,e);break t;case 2:d=new jE(d,e);break t;default:d=new tD(d,e)}}b[c]=d;b=this.D[a.id].za;Q(b,"captions-asr","asr"==this.j.j);null!=a.params.Ze&&(a.params.Ze=this.Ia?1:0);0==this.D[a.id].id?(O(b,this.ua),dd(this.b.app.g.F,b,0)):Au(this,b)}ta(this.D[a.id].Ea, 
a.params);if(0==(a.params.Bm?2:a.g?0:1)){b=this.D[a.id];b.Oq=a.j;b.Tb={};b.Ah=!0;b.ae(b.Oq);b.Tb.Dd=b.ic.length;b.Tb.width=b.za.offsetWidth;b.Tb.height=b.za.offsetHeight;b.Tb.Lq=[];b.Tb.Mq=[];for(a=0;a<b.Tb.Dd;a++)b.Tb.Mq.push(b.ic[a].offsetTop),b.Tb.Lq.push(b.ic[a].offsetLeft);b.Ah=!1;b.ae(b.Bh)}}else b=a.oj,this.aa[b]||(this.aa[b]=[]),this.aa[b].push(a)};f.Go=function(){this.o&&(this.Ha=DE(this.oa).height/360,this.Td(),Nb(this.D,function(a){a.ff()},this))}; 
function EE(a){var b=[];Nb(a.D,function(a){a instanceof hE&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Ea.ne-a.Ea.ne});var c=DE(a.oa).height,d=b[0].Ea.ne;B(b,function(a){a.Ea.ne=d;var b=Math.round(a.Ea.Dd*a.hk());d-=Math.round(b/c*100);a.ff()},a)}}f.kw=function(){this.T=0;ed(this.Aa.za)}; 
f.Aj=function(){this.O=0;this.o&&(Zb(this.aa),this.ka.sort(function(a,b){return a.b==b.b?a.k-b.k:a.b-b.b}),B(this.ka,this.NA,this),Nb(this.D,function(a,b){this.aa[b]?a.Dr(this.aa[b]):(ed(a.za),delete this.D[b])},this),EE(this),this.N&&this.N.ff(),this.log_("Refreshing caption display..."))};function FE(a,b,c){if(c&&c.length){for(var d=a.g[b],e=0,g=0;g<c.length;g++)if(d==c[g].ia){e=(g+1)%c.length;break}a.g[b]=c[e].ia;a.Td(!0)}}f.Fu=function(){FE(this,"backgroundOpacity",EC)}; 
f.Gu=function(){FE(this,"textOpacity",FC)};f.Hu=function(){FE(this,"windowOpacity",EC)};f.Bu=function(){var a=this.D[0];a&&a.za&&(a=a.za,P(a,"controls-hidden"),O(a,"controls-visible"))};f.Au=function(){var a=this.D[0];a&&a.za&&(a=a.za,rg(a,"controls-visible")&&(P(a,"controls-visible"),O(a,"controls-hidden")))};f.Cu=function(){GE(this,-1)};f.Du=function(){GE(this,1)};function GE(a,b){var c=a.g.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.g.fontSizeIncrement=c;a.Td()} 
function xE(a){if(a.j){a.j=null;yu(a);a.ka=[];a.xa={};a.j=null;a.Aj();eD(a.U,"ytp-subtitles-button");if(a.B){a.L.off();var b=a.L;b.o=!1;SC(b.g,"translate",!0)}else pB(a.I.element,1),YC(a.A,!1);a.k.B()}}f.vi=function(a){var b=fE(this.k,a);yE(this,b);this.log_("Caption change failed for "+a);this.B&&Ou(this)}; 
function yE(a,b){if(b&&(!a.j||!b.equals(a.j)))if(a.xc)a.j=b,vE(a,!0),a.hm("control_subtitles_set_track",OD(b)),a.o||(a.o=!0,a.load());else if(a.F.b.ta){var c=a.oa.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=Ei(d.g,e);g.mode="showing";g.setAttribute("kind","captions");g.setAttribute("default","");fu(c,[g]);AE(a,b)}else a.k.k(b,v(a.Qx,a)),a.V=!0,zE(a,b.toString())}function zE(a,b){a.B?pD(a.L,b):XC(a.A,b)} 
f.Oo=function(){this.wa||(Bu(this,this.ca),Ou(this))};f.Eu=function(){if(!this.wa){this.Fg();var a=this.ca.getSelected();if(a){var b=this.j,c=new ND;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;cE(this.k.b,c)&&(a=c.toString(),this.B?oD(this.L,bE(this.k.b,!0)):(Mu(this,this.A),VC(this.A,bE(this.k.b,!0))),zE(this,a));yE(this,c)}}};f.vu=function(){this.Fg();this.xc&&this.j&&this.hm("control_subtitles_set_track",OD(this.j))}; 
f.Mo=function(){delete this.g;this.g=ac(rE);this.P.setProperties(this.g);Fu(this,"display-settings",this.g);this.Td()}; 
f.Td=function(a){HE(this);var b=vw(this.g.background);this.eb=uC(".captions-text, .caption-row","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+this.g.backgroundOpacity+") !important;",{ve:this.eb,reset:!0});b=vw(this.g.color);this.jb=uC(".captions-text","color: rgba("+b[0]+","+b[1]+","+b[2]+","+this.g.textOpacity+") !important;",{ve:this.jb,reset:!0});b=vw(this.g.windowColor);this.xb=uC(".caption-window-transform","background-color: rgba("+b[0]+","+b[1]+","+b[2]+","+this.g.windowOpacity+") !important;", 
{ve:this.xb,reset:!0});var b=this.g.charEdgeStyle,c=this.g.textOpacity;if("none"==b)this.ta&&vC(this.ta);else{var d="",e="rgba(34, 34, 34, "+c+")",c="rgba(204, 204, 204, "+c+")";switch(b){case "dropShadow":d="text-shadow: 2px 2px 3px "+e+", 2px 2px 4px "+e+", 2px 2px 5px "+e+";";break;case "raised":d="text-shadow: 1px 1px "+e+", 2px 2px "+e+", 3px 3px "+e+";";break;case "depressed":d="text-shadow: 1px 1px "+c+", 0 1px "+c+", -1px -1px "+e+", 0 -1px "+e+";";break;case "uniform":d="text-shadow: 0 0 4px "+ 
e+", 0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e+";"}this.ta=uC(".captions-text",d,{ve:this.ta,reset:!0})}d=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',d="font-variant: small-caps;"}this.kb=uC(".captions-text",d+"font-family: "+b+" !important;",{ve:this.kb,reset:!0});this.g.fontFamily=b;b="font-size: "+Math.round(16*(1+.25*(this.g.fontSizeIncrement||0))*this.Ha)+"px;";this.mb= 
uC(".caption-window-transform",b,{ve:this.mb,reset:!0});this.Aj();n(a)&&!a||Fu(this,"display-settings",this.g)};function HE(a){var b=[],c=v(function(a){var c=this.g[a];c&&b.push(a+": "+c+" !important")},a);c("color");c("background");c={ve:a.fb,reset:!0};a.fb=uC(".captions-text",b,c);var d=vw(a.g.windowColor),c={ve:a.ob,reset:!0};a.ob=uC(".caption-window-transform","background-color: rgba("+d[0]+","+d[1]+","+d[2]+", 1)",c)} 
f.yu=function(){this.B&&(this.ma=!0);this.o?this.B&&(this.j?xE(this):this.us()):this.load()};f.zu=function(){Fu(this,"module-enabled",!1);Pu(this);xE(this);Ou(this)};f.Iu=function(){var a=0==this.I.getSelected();this.o&&!a?(this.unload(),Fu(this,"module-enabled",!1),Ou(this),Pu(this)):!this.o&&a?(this.ma=!0,this.load()):this.A.D&&this.vi(this.A.D)};f.Po=function(){Bu(this,this.P);Ou(this)};f.Ju=function(){this.Po()};f.wu=function(){this.vi(this.A.D);Ou(this)};f.xu=function(){this.A.I?this.Oo():this.No()}; 
f.No=function(){Cu(this,this.F.tb+"timedtext_video?v="+this.C.videoId);Ou(this)};function IE(a){return qE.prototype.Ja(a)?new qE(a):null} 
f.gk=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.g.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.Td()),this.g.fontSizeIncrement;case "reload":b&&uE(this);break;case "stickyLoading":this.F.Cb()&&Fu(this,"module-enabled",!!b);break;case "track":if(b){if(!la(b))break;var c=new ND(b);c.equals(this.j)||(yE(this,c),zE(this,c.toString()))}else return this.j?OD(this.j):{};return"";case "tracklist":return this.o?C(bE(this.k.b,b&&b.includeAsr),function(a){return OD(a)}):[];case "displaySettings":return b&& 
la(b)&&JE(this,b),c=ac(this.g),delete c.fontFamily,c;case "sampleSubtitles":wE(this,!!b)}};function wE(a,b){if(b&&!a.N){a.N=new tD(98,AC);var c=a.N.za;O(c,a.ua);dd(a.b.app.g.F,c,0);var c=a.N,d=Y(Lu(a),"YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.ae(d))}else!b&&a.N&&(ed(a.N.za),a.N=null)}f.$j=function(){var a="reload fontSize track tracklist displaySettings sampleSubtitle".split(" ");this.F.Cb()&&a.push("stickyLoading");return a};var KE=/^#(?:[0-9a-f]{3}){1,2}$/i;f=qE.prototype; 
f.Tn=function(a,b){return a&&s(a)&&KE.test(a)?a:b};f.Un=function(a,b){return ja(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.NC=function(a,b){return a&&s(a)&&Ub(xC,a)?a:b};f.OC=function(a,b){return a&&s(a)&&Ub(wC,a)?a:b};f.PC=function(a,b){return ja(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var LE=null; 
function JE(a,b){if(b)if($b(b,"reset"))a.Mo();else{if(!LE){var c={};c.color=a.Tn;c.textOpacity=a.Un;c.background=a.Tn;c.backgroundOpacity=a.Un;c.windowColor=a.Tn;c.windowOpacity=a.Un;c.charEdgeStyle=a.NC;c.fontFamilyOption=a.OC;c.fontSizeIncrement=a.PC;LE=c}var c=LE,d;for(d in c)a.g[d]=c[d](b[d],a.g[d]);a.Td(ME(a.F))}}f=qE.prototype;f.Ja=function(a){return!!a.getVideoData().Xf};f.aj=function(a){a?(a=this.j,xE(this),this.j=a):(vE(this,this.o),this.j&&yE(this,this.j))}; 
function vE(a,b){b?(eD(a.U,"ytp-subtitles-button-active"),a.B?zE(a,a.j.toString()):pB(a.I.element,0)):(eD(a.U,"ytp-subtitles-button"),a.B?a.L.off():pB(a.I.element,1))}f.uq=function(){this.k.seek(this.b.getCurrentTime())};f.ph=function(){var a=this.j;return a?{cc:a.D}:null};f.J=function(){this.wb.removeAll();this.O&&(M(this.O),this.O=0);this.T&&(We(this.T),this.T=0);qE.G.J.call(this)};function NE(a){xu.call(this,a);this.ua="ypc_license_checker";this.qc="ypc_license";this.A=!1;this.o=0;this.k=!1;this.g=NaN;this.C=wq();this.B=a.R().tb+"ypc_license_server";this.j=null}x(NE,xu); 
var OE={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 PE(a){return qs(a.getVideoData(),"ypc_license_checker_module")}f=NE.prototype;f.Ja=function(){return PE(this.b)};f.create=function(){NE.G.create.call(this);var a=new nu(1E3,2147483646,{priority:0});this.Sf(a);this.subscribe("heartbeatparams",this.MD,this);this.subscribe("onStateChange",this.ND,this)};function QE(a){return PE(a)?new NE(a):null}f.Mc=function(){this.A=!0;RE(this,6E4)};f.MD=function(a){this.j=a;RE(this,6E4)}; 
f.ND=function(a){W(a.state,2)?(this.o=0,this.g&&(M(this.g),this.g=NaN),this.k=!1):(W(a.state,1)||W(a.state,8))&&RE(this,6E4)};function RE(a,b){if(!a.g&&a.A){var c=a.b.getVideoData();if(!is(c)||a.j)if(is(c)||!ME(a.b.R()))c=b,void 0==c&&(c=a.k?a.j?1E3*a.j.b:6E4:1E3),a.g=L(v(a.Wx,a),c)}} 
f.Wx=function(){var a,b,c,d=this.b.getVideoData();is(d)?(b="GET",a={},c=$d(this.j.url,{request_id:wq()}),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:wq(),purchase_id:d.Ax,version:"4",player_time_seconds:this.b.getCurrentTime().toString(),gid:d.fi,ypc_token:d.gi},d.D&&(a.vvt=d.D),d.B&&(a.access_token=d.B),c=this.B);c=$d(c,{cpn:d.Fa});Li(c,{format:"RAW",method:b,Nb:a,timeout:3E4,onSuccess:v(this.LA,this),onError:v(this.KA,this), 
qh:v(this.MA,this),withCredentials:!0})};f.LA=function(a){if(this.g){a=a.responseText;var b;t:{b=a;var c=b.match(SE);if(c){if("0"!=c[1]){b=1;break t}b=c[3]}b=b in OE?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?TE(this,"decode"):(this.o=0,this.g=NaN,1==b?(this.k=!1,b="YTP_ERROR_LICENSE",(c=a.match(SE))?(a=parseInt(c[1],10))&&(b=Su(a)):a in OE&&(b=OE[a]),a=Ze(b),jw(this.b.app.j,"heartbeat",a,void 0)):(this.k=!0,RE(this)))}};f.KA=function(a){TE(this,"net-"+a.status)};f.MA=function(){TE(this,"timeout")}; 
function TE(a,b){if(a.g)if(a.log({errorType:b}),a.g=NaN,5<++a.o){var c=Ze("YTP_ERROR_LICENSE");jw(a.b.app.j,"heartbeat",c,void 0)}else RE(a)}var SE=/^GLS\/1.0 (\d+) (\w+).*?

([^]*)$/;function UE(){this.b=[];this.g=[]}da(UE);var VE=q("yt.player.utils.VideoTagPool.instance_")||UE.getInstance();ba("yt.player.utils.VideoTagPool.instance_",VE,void 0);f=UE.prototype;f.kF=function(a){if(!(this.b.length>=a)){a-=this.b.length;for(var b=0;b<a;b++){var c=WE(this);this.b.push(c)}}};function WE(a,b){var c=document.createElement("video");ta(c,Yt);Rg(c,"loadeddata",v(c.aD,c));Rg(c,"volumechange",v(c.bD,c));nh&&6<=Rq&&Rg(c,"webkitbeginfullscreen",v(c.play,c));b||Zt(c);a.g.push(c);return c} 
f.sF=function(a){return this.b.length?this.b.pop():WE(this,a)};f.pF=function(a){a&&D(this.g,a)&&(du(a),Wg(a),rb(this.g,a))};f.mF=function(a){return this.b.length>=(a||1)};f.gF=function(){this.b=[];B(this.g,function(a){Zt(a);this.b.push(a)},this)};UE.prototype.fillPool=UE.prototype.kF;UE.prototype.getTag=UE.prototype.sF;UE.prototype.releaseTag=UE.prototype.pF;UE.prototype.hasTags=UE.prototype.mF;UE.prototype.activateTags=UE.prototype.gF;var XE={yJ:"0",AJ:"1",TE:"2",tJ:"3"};function YE(){X.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.b=NaN;this.hide()}x(YE,X);YE.prototype.g=function(){O(this.element,"html5-bezel-fade");this.b=L(v(this.hide,this),300)};YE.prototype.hide=function(){YE.G.hide.call(this);ZE(this)};YE.prototype.setIcon=function(a){Xv(this.template,"icon",a)};YE.prototype.show=function(a){ZE(this);a&&this.setIcon(a);YE.G.show.call(this)};function ZE(a){M(a.b);P(a.element,"html5-bezel-fade")};function $E(a){X.call(this,a);this.T=new ej;R(this,this.T)}x($E,X);$E.prototype.subscribe=function(a,b,c){return this.T.subscribe(a,b,c)};$E.prototype.ga=function(a,b,c){return this.T.ga(a,b,c)};$E.prototype.Ob=function(a){return this.T.Ob(a)};$E.prototype.H=function(a,b){return this.T.H.apply(this.T,arguments)};function aF(){this.g=this.b=null}function Y(a,b,c){return Ze(b,c,void 0)}f=aF.prototype;f.Nf=function(a,b){this.b&&this.b.Nf(a,b)};f.Hf=function(a,b,c){this.b&&this.b.Hf(a,b,c)};f.Kn=function(a){this.b&&this.b.Kn(a)};f.Hc=function(){return this.g.Hc()};f.ac=function(){return this.g.ac()};function bF(a){X.call(this,["span"]);this.element.innerHTML=a}x(bF,X);function cF(a,b){X.call(this,["span","","{{sparkline_container}}"]);this.j=a;this.g=b;this.b=new bF("");R(this,this.b);Xv(this.template,"sparkline_container",this.b)}x(cF,X);function dF(){X.call(this,["div","html5-video-info-panel",["span","html5-video-info-panel-close",{role:"button",title:"close"},"[x]"],["div","html5-video-info-panel-content",["table","html5-video-info-table",["tr","",["th","","Video ID:"],["td","","{{video_id}}"]],["tr","",["th","","Dimensions:"],["td","","{{dimensions}}"]],["tr","",["th","","Resolution:"],["td","","{{resolution}}"]],["tr","",["th","","Volume:"],["td","","{{volume}}"]],["tr","",["th","","Stream Type:"],["td","","{{stream_type}}"]], 
["tr",{style:"{{cpn_style}}"},["th","","CPN:"],["td","","{{cpn}}"]],["tr","",["th","","Mime Type:"],["td","","{{mime}}"]],["tr","",["th","","DASH:"],["td","","{{dash}}"]],["tr",{style:"{{drm_style}}"},["th","","Protected:"],["td","","{{drm}}"]],["tr","",["th","","Bandwidth:"],["td","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]]],["table",["html5-video-info-table","html5-video-element-info-table"],["tr","",["th","","Decoded Frames"],["th","","Dropped Frames"],["th","", 
"Parsed Frames"],["th","","Presented Frames"]],["tr","",["td","","{{decoded_frames}}"],["td","","{{dropped_frames}}"],["td","","{{parsed_frames}}"],["td","","{{presented_frames}}"]],["tr","",["th","","Video Bytes Decoded"],["th","","Audio Bytes Decoded"],["th","","Painted Frames"],["th","","Paint Delay"]],["tr","",["td","","{{video_bytes_decoded}}"],["td","","{{audio_bytes_decoded}}"],["td","","{{painted_frames}}"],["td","","{{paint_delay}}"]]]]]);this.g=this.template.b["html5-video-info-panel-close"]; 
this.b=new cF(200,14);R(this,this.b);Xv(this.template,"bandwidth_sparkline",this.b)}x(dF,X); 
dF.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)};dF.prototype.J=function(){this.g=null;dF.G.J.call(this)};function eF(a){$E.call(this,["div","html5-video-player",{tabindex:-1}]);this.app=a;this.g=this.eb=null;this.L=new Bf(0,0,0,0);this.b=null;this.ma=new Bf(0,0,0,0);this.F=this.N=null;this.mb=this.xb=0;this.aa=null;this.V=0;this.xa=null;a=a.R();this.ob=gf()||"blazer"==a.zb;this.fb=0;this.A=null;this.j=new aF;this.jh()}x(eF,$E);f=eF.prototype; 
f.jh=function(){this.app.subscribe("initializingmode",this.IE,this);this.app.subscribe("videoplayerreset",this.KE,this);this.app.subscribe("videodatachange",this.JE,this)}; 
f.initialize=function(a){this.eb=Mc(a);this.element.setAttribute("id",this.app.P.attrs.id);vg(this.element,"version",this.app.P.assets.js);this.element.style.display="none";this.W(this.eb);Ye({YTP_ADVERTISEMENT:"Annoncering",YTP_AUDIO_TRACK_TITLE:"Lydspor",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Automatisk ($VIDEO_QUALITY)",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Skift kvalitet ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Kopier fejlretningsoplysninger",YTP_COPY_VIDEO_URL:"Kopier videoens webadresse",YTP_COPY_VIDEO_URL_AT_TIME:"Kopier videoens webadresse for tidspunktet", 
YTP_GET_DEBUG_INFO:"F oplysninger om fejlrettelse",YTP_GET_VIDEO_URL:"Hent videoens webadresse",YTP_GET_VIDEO_URL_AT_TIME:"Hent videoens webadresse p nuvrende tidspunkt",YTP_GET_EMBED:"Hent indlejret kode",YTP_DEFAULT_VIEW:"Standardvisning",YTP_EMBED_COPY:"Kopier indlejret kode",YTP_ERROR_GENERIC:"Der er opstet en fejl. Prv igen senere.",YTP_ERROR_GENERIC_WITH_LINK_2:"Der opstod en fejl. Prv igen senere. $BEGIN_LINKF flere oplysninger$END_LINK",YTP_EXIT_FULLSCREEN:"Afslut fuld skrm", 
YTP_FEATURED:"Udvalgte",YTP_FULLSCREEN:"Fuld skrm",YTP_MIX:"Mix",YTP_MORE:"Mere",YTP_MDX_TITLE:"Afspil p",YTP_MDX_TOOLTIP:"Afspil p tv",YTP_MDX_MY_COMPUTER:"Denne computer",YTP_MUTE:"Lyd fra",YTP_NEXT:"Nste",YTP_NEXT_VIDEO_IN:"Nste video om $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"Til",YTP_OFF:"Fra",YTP_OPTIONS:"Andet",YTP_PLAY_ALL:"Afspil alle",YTP_PREVIOUS:"Forrige",YTP_PLAYLIST:"Playliste",YTP_PLAYLIST_UP_NEXT:"Nste",YTP_QUALITY_TITLE:"Kvalitet",YTP_REPLAY:"Afspil igen", 
YTP_REPORT_ISSUE:"Rapporter afspilningsproblem",YTP_SETTINGS:"Indstillinger",YTP_SHARE:"Del",YTP_SHARE_WITH_PLAYLIST:"Del med playliste",YTP_SHOW_VIDEO_INFO:"Statistik for nrder",YTP_SPEED_TITLE:"Hastighed",YTP_ST_COLLAPSE:"Skjul",YTP_ST_EXPAND:"Udvid",YTP_SUBTITLES:"Undertekster",YTP_THEATER_MODE:"Biograf-tilstand",YTP_UNMUTE:"Lyd til",YTP_URL_NAVIGATE:"Se p YouTube.com",YTP_WATCH_ALL:"Se hele videoen",YTP_WATCH_LATER:"Se senere",YTP_WATCH_LATER_AS_2:"Se senere som $USER_NAME",YTP_SUBSCRIBE_AS:"Abonner som $USER_NAME", 
YTP_LIKE_AS:"Tilkendegiv, at du kan lide som $USER_NAME",YTP_DISLIKE_AS:"Tilkendegiv, at du ikke kan lide som $USER_NAME",YTP_WATCH_NEXT:"Se nste",YTP_PLAY:"Afspil",YTP_WATERMARK:"Vandmrke",YTP_ERROR_STREAMING_UNAVAILABLE:"Videoafspilning er ikke tilgngelig i jeblikket, da denne video er blevet downloadet til afspilning offline.",YTP_ERROR_LICENSE:"Der opstod en fejl under licenseringen af denne video.",YTP_ERROR_VIDEO_NOT_FOUND:"Videoen kan ikke findes.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"Denne video er allerede blevet downloadet til enheder, det antal gange ophavsretshaveren tillader. Videoen skal frigres p en anden enhed, inden du kan spille den her.", 
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"Der opstod en fejl ved aktivering af din videoleje. Genindls denne side, eller prv igen senere.",YTP_ERROR_PURCHASE_NOT_FOUND:"Denne video krver betaling.",YTP_ERROR_PURCHASE_REFUNDED:"Kbet af denne video er blevet refunderet.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Din konto afspiller denne video p en anden placering. Genindls denne side for at fortstte afspilningen.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Afspilningen stoppede, fordi for mange videoer fra samme konto afspilles.", 
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Afspilningen stoppede, fordi videoen er blevet afspillet p for mange enheder.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Der er blevet anvendt for mange enheder/IP-adresser i lbet af de sidste 24 timer.",YTP_ERROR_UNUSUAL_ACTIVITY:"P grund af usdvanlig kontoaktivitet er denne video ikke tilgngelig i jeblikket.",YTP_ERROR_NOT_SIGNED_IN:"Log ind for at fortstte afspilningen.",YTP_CLOSE:"Luk",YTP_ANNOTATIONS:"Annoteringer", 
YTP_DONE:"Frdig",YTP_SHARE_THIS_PLAYLIST:"Del denne playliste",YTP_UPLOADED_BY_2:"af $AUTHOR",YTP_SEEK_SLIDER:"Sgeskyder",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Nste video starter om $SECONDS_LEFT",YTP_CANCEL:"Annuller",YTP_ON_GOOGLE_PLUS:"P Google+",YTP_STILL_THERE:"Er du der endnu? Hvis du er, skal du klikke p knappen nedenfor for at fortstte med at se playlisten.",YTP_DISMISS:"OK",YTP_RESET:"Nulstil",YTP_STOP:"Stop live-afspilning", 
YTP_LIKE:"Kan lide",YTP_DISLIKE:"Kan ikke lide",YTP_MORE_INFO:"Flere oplysninger",YTP_SCREENREADER_VOLUME_SETTING:"lydstyrke",YTP_SCREENREADER_VOLUME_MUTED:"lyd slet fra",YTP_SCREENREADER_VOLUME_MUTE:"sl lyden fra",YTP_SCREENREADER_VOLUME_UNMUTE:"sl lyden til",YTP_SCREENREADER_CONTROL_TOGGLE:"skift",YTP_SAMPLE_SUBTITLES:"Underteksterne ser sdan ud",YTP_HTML5_CONTEXT_MENU_LINK:"Om HTML5-afspilleren",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"Dette videoformat understttes ikke.", 
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Din browser genkender ikke nogen af de tilgngelige videoformater p nuvrende tidspunkt. $BEGIN_LINKKlik her for at se vores ofte stillede sprgsml til HTML5-video.$END_LINK",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"Adobe Flash Player krves for at afspille videoer. $BEGIN_LINKHent den nyeste Flash Player$END_LINK.",YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"Enheden i sendingssessionen stemmer ikke overens med den efterspurgte.", 
YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"Videoen i sendingssessionen stemmer ikke overens med den efterspurgte.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Sendingssessionen udlb. Prv at opdatere.",YTP_ERROR_CAST_TOKEN_FAILED:"Sendingssessionen er ikke tilgngelig. Opdater, eller prv igen senere.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Ugyldig sendingssession. Opdater, eller prv igen senere.",YTP_ERROR_GEO_FAILURE:"Denne video er ikke tilgngelig i dit land.",YTP_ERROR_INVALID_DRM_MESSAGE:"Den specifikke DRM-systembesked er ugyldig.", 
YTP_ERROR_RENTAL_EXPIRED:"Denne videos lejeperiode er udlbet.",YTP_ERROR_RETRYABLE_ERROR:"Der opstod en midlertidig serverfejl. Prv igen senere.",YTP_ERROR_SERVER_ERROR:"Der opstod en intern serverfejl. Prv igen senere.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Afspilning tillades ikke, fordi videoen er fastgjort p en anden enhed.",YTP_ERROR_UNSUPPORTED_DEVICE:"Afspilning understttes ikke p denne enhed.",YTP_ERROR_VIDEO_FORBIDDEN:"Adgang til denne video er forbudt.",YTP_MDX_STATUS_CONNECTED:"Afspilles p", 
YTP_MDX_STATUS_CONNECTING:"Opretter forbindelse til",YTP_MDX_STATUS_ERROR:"Fejl p",YTP_MDX_PLAYER_ERROR:"Denne video kan ikke afspilles eksternt.",YTP_MDX_PLAYER_RECONNECT_TIME:"Kontrollr din internetforbindelse. Prver igen om $FORMATTED_TIME",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Genopret forbindelse",YTP_DEVICE_FALLBACK:"Vi beklager, men denne video er ikke tilgngelig p denne enhed.",YTP_AD_RESUME_MESSAGE:"Din video vil blive genoptaget efter den flgende annonce.", 
YTP_VISIT_ADVERTISERS_SITE:"Besg annoncrens website",YTP_PROGRESS_LABEL:"$PLAY_PROGRESS af $DURATION sekunder"});this.nt()};f.nt=function(){this.H("templateready")};f.IE=function(){this.ma=new Bf(0,0,0,0);this.L=new Bf(0,0,0,0)};f.addClass=function(a){sg(this.element,arguments)};f.removeClass=function(a){tg(this.element,arguments)}; 
f.dh=function(){this.Am();var a=this.app.R();this.addClass("el-"+a.ba);this.addClass("ps-"+a.zb);Q(this.element,"html5-native-controls",a.Xb);Q(this.element,"html5-mobile",a.lc);a.Vd||this.addClass("ytp-no-controls");a.$b||this.addClass("tag-pool-enabled");this.element.style.display="";a=new Sv(["div","html5-video-container"]);R(this,a);a.W(this.element);this.g=a.K();this.N=new Sv(["div","html5-video-content"]);R(this,this.N);this.N.W(this.g);a=new Sv(["div","html5-video-controls"]);R(this,a);a.W(this.element); 
this.F=a.K();this.A=new dF;this.A.W(this.element);pz(this,this.A.g,"click",this.Nm);R(this,this.A);this.ob?this.aa=Rg(window,"resize",v(this.Eh,this)):(a=Az()?v(this.JC,this):v(this.Eh,this),this.aa=Ve(a,250))};f.ek=function(a){a?lz(this.F):mz(this.F)};f.JC=function(){this.V&&Dz(this.V);this.V=Cz(v(this.Eh,this),0)};f.Eh=function(){Mb(this.ac(),Ef(this.L))||this.lg()}; 
f.lg=function(){if(this.b){var a=this.ac();if(!a.isEmpty()){var b=!Mb(a,Ef(this.L)),c,d=fF(this),e=this.ac();c=1;var g=gF(this),h=!1,k;g?(k=hF(this,e,d,g,!1),c=iF(new G(k.width,k.height))/iF(d),k=new Bf(k.left+k.width/2*(1-1/c),k.top,k.width/c,k.height)):k=new Bf(0,0,e.width,e.height);Df(this.ma,k)||(this.ma=k,Zf(this.b,Ef(k)),Of(this.b,new F(k.left,k.top)),h=!0);d=hF(this,e,d,g);Df(this.L,d)||(this.L=d,Zf(this.N.K(),d.width,d.height),Of(this.N.K(),d.left,d.top),h=!0);dy(this.b,"transform",1==c?"none": 
"scaleX("+c+")");c=h;b&&(this.L.width=a.width,this.L.height=a.height,this.An(a));(c||b)&&this.H("resize")}}};f.An=function(){};f.dm=function(){};f.JE=function(a,b){this.Zj(b)};f.KE=function(a){a.getVideoData()&&this.Zj(a.getVideoData())}; 
f.Zj=function(a){this.b&&(this.b.setAttribute("data-youtube-id",a.videoId),rr&&(a.title?this.b.setAttribute("title",a.title):this.b.removeAttribute("title")),a.ym&&(this.b.poster=a.ym));var b=js(a,"yt:bgcolor");this.g.style.backgroundColor=b?b:"";this.xb=Dq(js(a,"yt:stretch"));a=js(a,"yt:crop");this.mb="fullwidth"==a?Infinity:Dq(a)};f.eh=function(){};f.Vm=function(){};f.Hc=function(){return this.element?new G(this.element.clientWidth,this.element.clientHeight):new G(0,0)}; 
f.ac=function(){return this.g?new G(this.g.clientWidth,this.g.clientHeight):new G(0,0)};f.Ys=function(){return this.ac()};function DE(a){return a.b?new G(a.b.clientWidth,a.b.clientHeight):new G(0,0)}function fF(a){return a.b?new G(a.b.videoWidth,a.b.videoHeight):new G(0,0)}function jF(a){return hF(a,a.ac(),fF(a),gF(a),void 0)} 
function hF(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.xb||iF(c),a=a.mb||c,d=iF(b),d=a>d?new G(b.width,b.width/(isFinite(a)?a:c)):a<d?new G(b.height*a,b.height):b.clone(),e||(c>a?d.width=d.height*c:c<a&&(d.height=d.width/c))):(e=c.clone(),d=e.scale(e.width/e.height>b.width/b.height?b.width/e.width:b.height/e.height));return new Bf((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}function iF(a){var b=16/9;return 1>Math.abs(b*a.height-a.width)||1>Math.abs(b/a.width-a.height)?b:a.width/a.height} 
function gF(a){return!a.app.R().Xb&&!fF(a).isEmpty()}f.Fk=function(){};function st(a){a.A&&(a.A.show(),a.jt(),We(a.fb),a.fb=Ve(v(a.jt,a),500))} 
f.jt=function(){var a=bt(this.app),b=this.app.getVideoData(),c=this.app.Eg(),d=this.b,e=this.app.R(),g=b.videoId,h=d.videoWidth,k=d.videoHeight,l=d.clientWidth,d=d.clientHeight,p=window.devicePixelRatio,r=Math.round(this.app.D.volume),u;t:{if(b.De&&(u=b.De.match(/url=(https?)/))&&2==u.length){u=u[1];break t}u=""}u=u||e.protocol;var t=this.app;if(t.ma){var z=[];t.ma.D.forEach(v(z.push,z));t=z}else t=[0];c={video_id:g,video_width:h,video_height:k,video_element_width:l,video_element_height:d,device_pixel_ratio:p, 
cpn:"",mime:"",dash:"no",drm_flavor:"",drm_key_system:"",volume:r,stream_type:u,bandwidth_history:t,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=uo(b.b)?"yes":"no",g+=" ("+b.b.id,b.N&&uo(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;ME(e)&&(c.cpn=b.Fa);this.A.update(c)};f.Nm=function(){this.A&&(We(this.fb),this.A.hide())};f.Am=function(){this.j.g=this};f.J=function(){this.aa&&(this.ob?Tg(this.aa):We(this.aa),this.V&&Dz(this.V));this.xa&&Tg(this.xa);this.Nm();this.A&&Wg(this.A.g);this.F=this.N=this.b=this.g=this.eb=null;eF.G.J.call(this)};function kF(a){X.call(this,["div","ytp-dialog-holder","{{content}}"]);this.g=a;this.b=null}x(kF,X);kF.prototype.show=function(){kF.G.show.call(this);lF(this);this.b.Oj()};function lF(a){if(a.b){a.b.Lr();var b=a.g.Hc(),c=ag(a.b.K());a=a.b;b=new F(Math.floor((b.width-c.width)/2),Math.floor((b.height-c.height)/2));a.K().style.marginLeft=b.x+"px";a.K().style.marginTop=b.y+"px"}}kF.prototype.J=function(){this.b=null;kF.G.J.call(this)};function mF(a,b){X.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.b=0;this.o=null}x(mF,X);mF.prototype.j=function(a,b){M(this.b);this.context&&(this.b=nz(v(this.j,this,a,b),b),a.call(this,new Date-this.o))};mF.prototype.J=function(){M(this.b);this.context=null;mF.G.J.call(this)};function nF(a,b){mF.call(this,a,b);this.A=null;this.B=this.C=this.k=this.g=0;O(this.element,"ytp-tv-static");oF(this,a,b)}x(nF,mF);function pF(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 oF(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=pF(b);a.B=pF(c/10);a.context.scale(1.5,1.5)}}nF.prototype.show=function(){nF.G.show.call(this);var a=this.D;this.o=new Date;this.j(a,75)}; 
nF.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)};nF.prototype.hide=function(){M(this.b);nF.G.hide.call(this)};function qF(){X.call(this,["div",["ytp-error","html5-stop-propagation"],["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.oa="table";this.g=[];if(void 0==qq){var a=document.createElement("canvas");qq=!(!a.getContext||!a.getContext("2d"))}qq&&(this.b=new nF(1,1),this.b.W(this.element,0),R(this,this.b))}x(qF,X);qF.prototype.show=function(){qF.G.show.call(this);rF(this);this.b&&this.b.show()};qF.prototype.hide=function(){qF.G.hide.call(this);this.b&&this.b.hide()}; 
function rF(a){a.b&&oF(a.b,a.element.clientWidth,a.element.clientHeight)}qF.prototype.J=function(){Tg(this.g);this.g=[];qF.G.J.call(this)};function sF(a,b){var c=["ytp-large-play-button","html5-center-overlay","ytp-scalable-icon-shrink"],d;b&&c.push("ytp-housebrand-large-play-button");a?b?c.push("ytp-housebrand-large-play-button-image"):c.push("ytp-large-play-button-image"):d=b?'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-housebrand-large-play-button-svg" d="M59.6,1.35c0.267,0.5,0.4,1.133,0.4,1.9v53.5c0,0.767-0.133,1.4-0.4,1.9c-0.5,0.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.333-0.433-2.8-1.3C0.15,58.167,0,57.517,0,56.75V3.25c0-0.833,0.167-1.5,0.5-2C1,0.417,1.917,0,3.25,0h53.5C58.15,0,59.1,0.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="21,41.65 21,18 43.7,29.85"/></svg>': 
'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-large-play-button-svg" d="M84.15,26.4v6.35c0,2.833-0.15,5.967-0.45,9.4c-0.133,1.7-0.267,3.117-0.4,4.25l-0.15,0.95c-0.167,0.767-0.367,1.517-0.6,2.25c-0.667,2.367-1.533,4.083-2.6,5.15c-1.367,1.4-2.967,2.383-4.8,2.95c-0.633,0.2-1.316,0.333-2.05,0.4c-0.767,0.1-1.3,0.167-1.6,0.2c-4.9,0.367-11.283,0.617-19.15,0.75c-2.434,0.034-4.883,0.067-7.35,0.1h-2.95C38.417,59.117,34.5,59.067,30.3,59c-8.433-0.167-14.05-0.383-16.85-0.65c-0.067-0.033-0.667-0.117-1.8-0.25c-0.9-0.133-1.683-0.283-2.35-0.45c-2.066-0.533-3.783-1.5-5.15-2.9c-1.033-1.067-1.9-2.783-2.6-5.15C1.317,48.867,1.133,48.117,1,47.35L0.8,46.4c-0.133-1.133-0.267-2.55-0.4-4.25C0.133,38.717,0,35.583,0,32.75V26.4c0-2.833,0.133-5.95,0.4-9.35l0.4-4.25c0.167-0.966,0.417-2.05,0.75-3.25c0.7-2.333,1.567-4.033,2.6-5.1c1.367-1.434,2.967-2.434,4.8-3c0.633-0.167,1.333-0.3,2.1-0.4c0.4-0.066,0.917-0.133,1.55-0.2c4.9-0.333,11.283-0.567,19.15-0.7C35.65,0.05,39.083,0,42.05,0L45,0.05c2.467,0,4.933,0.034,7.4,0.1c7.833,0.133,14.2,0.367,19.1,0.7c0.3,0.033,0.833,0.1,1.6,0.2c0.733,0.1,1.417,0.233,2.05,0.4c1.833,0.566,3.434,1.566,4.8,3c1.066,1.066,1.933,2.767,2.6,5.1c0.367,1.2,0.617,2.284,0.75,3.25l0.4,4.25C84,20.45,84.15,23.567,84.15,26.4z M33.3,41.4L56,29.6L33.3,17.75V41.4z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="33.3,41.4 33.3,17.75 56,29.6"/></svg>'; 
X.call(this,["div",c]);d&&(this.element.innerHTML=d)}x(sF,X);function tF(a){this.g=a||30;mF.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()}x(tF,mF);tF.prototype.show=function(){tF.G.show.call(this);var a=this.C;this.o=new Date;this.j(a,125)}; 
tF.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()}};tF.prototype.hide=function(){M(this.b);tF.G.hide.call(this)};function uF(a){X.call(this,["div","ytp-thumbnail"]);this.b=a}x(uF,X); 
uF.prototype.show=function(a){if(a||this.element.childNodes.length){if(a){cd(this.element);var b=this.element,c=this.b;if(null!=cy("backgroundSize")){if(d=document.createElement("div"),b=PB(b,a,c))d.style.backgroundImage="url("+b+")"}else{var d=document.createElement("img");d.src=PB(b,a,c);a=d;b.clientWidth/b.clientHeight<OB?(a.style.height="100%",a.style.width="auto"):(a.style.height="auto",a.style.width="100%")}O(d,"video-thumbnail");this.element.appendChild(d)}uF.G.show.call(this)}};function vF(a,b,c,d,e,g,h){var k,l;if(k=c.offsetParent){var p="HTML"==k.tagName||"BODY"==k.tagName;p&&"static"==Nf(k,"position")||(l=Uf(k),p||(p=(p=Vf(k))&&rc?-k.scrollLeft:!p||qc&&Bc("8")||"visible"==Nf(k,"overflowX")?k.scrollLeft:k.scrollWidth-k.clientWidth-k.scrollLeft,l=Lb(l,new F(p,k.scrollTop))))}k=l||new F;l=dg(a);if(p=Tf(a)){var r=Cf(p),p=Math.max(l.left,r.left),u=Math.min(l.left+l.width,r.left+r.width);if(p<=u){var t=Math.max(l.top,r.top),r=Math.min(l.top+l.height,r.top+r.height);t<=r&&(l.left= 
p,l.top=t,l.width=u-p,l.height=r-t)}}p=Jc(a);t=Jc(c);if(p.b!=t.b){var u=p.b.body,t=wd(t),r=new F(0,0),z=Vc(Lc(u)),y=u;do{var N=z==t?Uf(y):Wf(y);r.x+=N.x;r.y+=N.y}while(z&&z!=t&&(y=z.frameElement)&&(z=z.parent));u=Lb(r,Uf(u));!qc||Cc(9)||vd(p)||(u=Lb(u,xd(p)));l.left+=u.x;l.top+=u.y}a=wF(a,b);b=new F(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 ra;h&&(ra=Tf(c))&&(ra.top-=k.y,ra.right-=k.x,ra.bottom-=k.y,ra.left-=k.x);return xF(b,c,d, 
g,ra,h,void 0)} 
function xF(a,b,c,d,e,g,h){a=a.clone();var k=0,l=wF(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;Of(b,a);Mb(c,h)||(a=Lc(b),e=vd(Jc(a)),!qc||Bc("10")|| 
e&&Bc("8")?(b=b.style,rc?b.MozBoxSizing="border-box":sc?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?(qc?(e=ig(b,"paddingLeft"),c=ig(b,"paddingRight"),g=ig(b,"paddingTop"),d=ig(b,"paddingBottom"),e=new Af(g,c,d,e)):(e=Mf(b,"paddingLeft"),c=Mf(b,"paddingRight"),g=Mf(b,"paddingTop"),d=Mf(b,"paddingBottom"),e=new Af(parseFloat(g),parseFloat(c),parseFloat(d),parseFloat(e))),b=lg(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 wF(a,b){return(b&4&&Vf(a)?b^2:b)&-5};var yF={},zF="ontouchstart"in document;function AF(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return td(c,function(a){return rg(a,b)},!0,d)} 
function BF(a){var b="mouseover"==a.type&&"mouseenter"in yF||"mouseout"==a.type&&"mouseleave"in yF,c=a.type in yF||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=yF[b],d;for(d in c.kc){var e=AF(b,d,a.target);e&&!td(a.relatedTarget,function(a){return a==e},!0)&&c.H(d,e,b,a)}}if(b=yF[a.type])for(d in b.kc)(e=AF(a.type,d,a.target))&&b.H(d,e,a.type,a)}}Rg(document,"blur",BF,!0);Rg(document,"change",BF,!0);Rg(document,"click",BF);Rg(document,"focus",BF,!0); 
Rg(document,"mouseover",BF);Rg(document,"mouseout",BF);Rg(document,"mousedown",BF);Rg(document,"keydown",BF);Rg(document,"keyup",BF);Rg(document,"keypress",BF);Rg(document,"cut",BF);Rg(document,"paste",BF);zF&&(Rg(document,"touchstart",BF),Rg(document,"touchend",BF),Rg(document,"touchcancel",BF));function CF(){this.k={};this.o=[]}f=CF.prototype;f.rd=function(a){return ud(a,Z(this))};function Z(a,b){return"yt-uix"+(a.Pd?"-"+a.Pd:"")+(b?"-"+b:"")}f.dispose=ca;function DF(a,b,c){b=Xh(b,c,a);a.o.push(b)}function EF(a,b,c,d){d=Z(a,d);var e=v(c,a);b in yF||(yF[b]=new Rh);yF[b].subscribe(d,e);a.k[c]=e}f.ng=function(a,b,c){var d=this.$(a,b);if(d&&(d=q(d))){var e=yb(arguments,2);xb(e,0,0,a);d.apply(null,e)}};f.$=function(a,b){return xg(a,b)};function FF(a,b){vg(a,"tooltip-text",b)} 
f.removeData=function(a,b){yg(a,b)};function GF(){CF.call(this);this.b={}}x(GF,CF);da(GF);f=GF.prototype;f.Pd="tooltip";f.bk=0;f.register=function(){EF(this,"mouseover",this.Nt);EF(this,"mouseout",this.ck);EF(this,"click",this.ck);EF(this,"touchstart",this.uE);EF(this,"touchend",this.Pt);EF(this,"touchcancel",this.Pt)};f.dispose=function(){for(var a in this.b)this.ck(this.b[a]);this.b={}}; 
f.Nt=function(a){if(!(this.bk&&1E3>w()-this.bk)){var b=parseInt(this.$(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),M(b));var b=v(function(){HF(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(this.$(a,"tooltip-show-delay"),10)||0,b=L(b,c);vg(a,"tooltip-show-timer",b.toString());a.title&&(FF(a,IF(this,a)),a.title="");b=ma(a).toString();this.b[b]=a}}; 
f.ck=function(a){var b=parseInt(this.$(a,"tooltip-show-timer"),10);b&&(M(b),this.removeData(a,"tooltip-show-timer"));b=v(function(){JF(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=L(b,50);vg(a,"tooltip-hide-timer",b.toString());if(b=this.$(a,"tooltip-text"))a.title=b;b=ma(a).toString();delete this.b[b]};f.uE=function(a,b,c){this.bk=0;a=AF(b,Z(this),c.changedTouches[0].target);this.Nt(a)};f.Pt=function(a,b,c){this.bk=w();a=AF(b,Z(this),c.changedTouches[0].target);this.ck(a)}; 
function KF(a,b,c){FF(b,c);a=a.$(b,"content-id");if(a=Mc(a))a.innerHTML=c}function IF(a,b){return a.$(b,"tooltip-text")||b.title} 
function HF(a,b){if(b){var c=IF(a,b);if(c){var d=Mc(LF(a,b));if(!d){d=document.createElement("div");d.id=LF(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=MF(a,b),l=LF(a,b,"content");h.id=l;vg(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Zg()||document.body).appendChild(d); 
KF(a,b,c);(c=parseInt(a.$(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",O(h,Z(a,"normal-wrap")));h=rg(b,Z(a,"reverse"));NF(a,b,d,e,k,h)||NF(a,b,d,e,k,!h);var p=Z(a,"tip-visible");L(function(){O(d,p)},0)}}}} 
function NF(a,b,c,d,e,g){Q(c,Z(a,"tip-reverse"),g);var h=0;g&&(h=1);var k=bg(b);g=new F((k.width-10)/2,g?k.height:0);var l=Uf(b);xF(new F(l.x+g.x,l.y+g.y),c,h);var l=Rc(window),p=Yf(c);c=bg(d);var r=Math.floor(c.width/2),h=!!(l.height<p.y+k.height),k=!!(p.y<k.height);g=!!(p.x<r);l=!!(l.width<p.x+r);p=(c.width+3)/-2- -5;a=a.$(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 JF(a,b){if(b){var c=Mc(LF(a,b));c&&(OF(c),ed(c),a.removeData(b,"content-id"))}}function LF(a,b,c){a=Z(a)+Bg(b);c&&(a+="-"+c);return a}function MF(a,b){var c=null;kc&&rg(b,Z(a,"masked"))&&((c=Mc("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),$x(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=Z(a,"tip-mask")));return c} 
function OF(a){var b=Mc("yt-uix-tooltip-shared-mask"),c=b&&td(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),ay(b),document.body.appendChild(b))};function PF(a,b){tg(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&O(a,b);JF(GF.getInstance(),a)};function QF(a){jB.call(this);this.j=null;this.g=new OC(a,v(this.o,this),v(this.C,this));R(this,this.g);this.b=Y(0,"YTP_AUDIO_TRACK_TITLE");this.element=new HC(a,void 0,this.g);R(this,this.element);JC(this.element,100);this.priority=0;this.k=!0}x(QF,jB);function RF(a,b){a.j!=b&&(a.j=b,RC(a.g,b),a.element.g(a.o(b)))}QF.prototype.o=function(a){return a.name};QF.prototype.C=function(a){this.element.j();RF(this,a);this.element.Hb("change")};function SF(a){this.bb=a;this.mf=0;this.Ka=new ow(this);TF(this,"focusin","focusout",1,this.bb);TF(this,"mouseover","mouseout",2,this.bb);TF(this,"mousedown","mouseup",4,document)}function TF(a,b,c,d,e){function g(){this.mf|=d;Q(this.bb,"ytp-block-autohide",!!this.mf);this.Ka.Ga(h);h=this.Ka.listen(e,c,k)}var h,k;k=function(){this.mf&=~d;Q(this.bb,"ytp-block-autohide",!!this.mf);this.Ka.Ga(h);h=this.Ka.listen(this.bb,b,g)};h=a.Ka.listen(a.bb,b,g)} 
SF.prototype.J=function(){this.mf&&P(this.bb,"ytp-block-autohide");this.Ka.removeAll();SF.G.J.call(this)};function UF(a,b){$E.call(this,b);this.D=a;this.videoId=null}x(UF,$E); 
UF.prototype.Lf=function(a,b){this.videoId=a?a.id||a.video_id:"";Q(this.element,"ytp-suggestion-set",!!this.videoId);if(this.videoId){var c;b&&a.iurlhq_webp?c=a.iurlhq_webp:!b&&a.iurlmq_webp?c=a.iurlmq_webp:c=SB(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:this.videoId,b?"hqdefault.jpg":"mqdefault.jpg");var d=ac(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=Zv(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 VF(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")]];UF.call(this,a,b);pz(this,this.template.b["ytp-autonav-widget-thumbnail"],"click",this.b,this);pz(this,this.template.b["ytp-autonav-widget-cancel"],"click", 
this.g,this)}x(VF,UF);VF.prototype.g=function(a){a.stopPropagation();this.H("autonavcancel",a)};VF.prototype.b=function(a){a.stopPropagation();this.H("nextvideo",a)};function WF(a){kB.call(this,a);mB(this,6900);XF(this)}x(WF,kB);function XF(a){lB(a,"ytp-button-fullscreen-enter");var b=Y(0,"YTP_FULLSCREEN");a.Db(b);a.g=b};function YF(a,b){X.call(this,["div","ytp-menu-container",{tabindex:-1},["div","ytp-menu",["div","ytp-menu-content","{{content}}"]]]);this.k=a;this.j=b||!1;this.b=[];this.g=[];oz(this,"menu")}x(YF,X);YF.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);ZF(this)};YF.prototype.remove=function(a){rb(this.b,a);ZF(this)}; 
function ZF(a){Qh(a.g);a.g=[];var b,c,d=[],e=1==a.b.length||a.j;e&&a.b.length&&(c=new X(["div","ytp-menu-row",["div","ytp-menu-cell",a.b[0].b]]),d.push(c));var g=!1;for(b=0;b<a.b.length;b++)g=g||a.b[b].A;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.k;c=e?!g||c?new X(["div","ytp-menu-row",["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.k?new X(["div","ytp-menu-row", 
["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.b],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.pa(k.element);c.pa(bG(a,k),"more");d.push(c)}a.pa(d)}function bG(a,b){if(b.A){var c=Y(0,"YTP_OPTIONS"),d=new kB(a.k,"ytp-menu-more-options",c);mB(d,2700);d.pa(c);a.g.push(d);d.listen("click",b.F,b);return d}return null}YF.prototype.J=function(){this.b=[];ZF(this);YF.G.J.call(this)};function cG(a){kB.call(this,a);mB(this,6E3);dG(this)}x(cG,kB);function dG(a){lB(a,"ytp-button-play");var b=Y(0,"YTP_PLAY");a.Db(b)};function eG(a){X.call(this,["div","ytp-playlist-controls","{{content}}"]);this.g=new kB(a,"ytp-button-prev",Y(0,"YTP_PREVIOUS"),Y(0,"YTP_PREVIOUS"));R(this,this.g);mB(this.g,6050);this.b=new kB(a,"ytp-button-next",Y(0,"YTP_NEXT"),Y(0,"YTP_NEXT"));R(this,this.b);mB(this.b,6051);this.pa([this.g,this.b])}x(eG,X);function fG(a,b){ej.call(this);this.g=!!b;this.bb=a;this.Ka=new ow(this);this.b=this.j=null;sc&&a.setAttribute("draggable","true");gG(this)}x(fG,ej);function gG(a){a.b=null;a.j=null;a.Ka.listen(a.bb,hG("over"),a.RB);a.Ka.listen(a.bb,"touchstart",a.SB)}f=fG.prototype; 
f.RB=function(a){this.Ka.removeAll();this.Ka.listen(this.bb,hG("move"),this.Ss);this.Ka.listen(this.bb,hG("out"),this.Ts);this.g&&this.Ka.listen(this.bb,hG("down"),this.Rs);this.H("hoverstart",Mg(a),Ng(a),a.target);this.H("hovermove",Mg(a),Ng(a),a.target)};f.Ss=function(a){this.b&&Mg(this.b)==Mg(a)&&Ng(this.b)==Ng(a)&&this.b.relatedTarget==a.target||this.H("hovermove",Mg(a),Ng(a),a.target);this.b=null}; 
f.Ts=function(a){a.relatedTarget&&kd(this.bb,a.relatedTarget)?(this.b=a,this.H("hovermove",Mg(a),Ng(a),a.relatedTarget)):(this.Ka.removeAll(),gG(this),this.H("hoverend",Mg(a),Ng(a),a.relatedTarget))};f.Rs=function(a){ja(a.button)&&0!=a.button||(this.Ka.removeAll(),this.Ka.listen(document,hG("move"),this.FD),this.Ka.listen(document,hG("up"),this.GD),sc?this.Ka.listen(this.bb,"dragstart",this.ED):a.preventDefault(),this.H("dragstart",Mg(a),Ng(a),a.target),this.H("dragmove",Mg(a),Ng(a),a.target))}; 
f.ED=function(a){a.preventDefault()};f.FD=function(a){var b=a.target==document?null:a.target;this.H("hovermove",Mg(a),Ng(a),b);this.H("dragmove",Mg(a),Ng(a),b)};f.GD=function(a){this.Ka.removeAll();a.target&&kd(this.bb,a.target)?(this.Ka.listen(this.bb,hG("move"),this.Ss),this.Ka.listen(this.bb,hG("out"),this.Ts),this.Ka.listen(this.bb,hG("down"),this.Rs),this.H("dragend",Mg(a),Ng(a),a.target)):(gG(this),this.H("dragend",Mg(a),Ng(a),a.target),this.H("hoverend",Mg(a),Ng(a),a.target))}; 
f.SB=function(a){var b=a.changedTouches[0];b&&(this.Ka.removeAll(),this.Ka.listen(this.bb,"touchmove",this.nC),this.Ka.listen(this.bb,"touchend",this.rs),this.Ka.listen(this.bb,"touchcancel",this.rs),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.nC=function(a){var b=iG(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.rs=function(a){var b=iG(this,a);b&&(a.preventDefault(),this.Ka.removeAll(),gG(this),this.g&&this.H("dragend",b.pageX,b.pageY,a.target),this.H("hoverend",b.pageX,b.pageY,a.target))};function iG(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 hG(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.J=function(){this.Ka.removeAll();fG.G.J.call(this)};function jG(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}jG.prototype.clone=function(){return new jG(this.b,this.B,this.j,this.o,this.k,this.A,this.g,this.C)};jG.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 kG(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 lG(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=kG(a,c),k=(kG(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=kG(a,c);return c};var mG=new function(){this.b=new jG(0,0,0,0,.58,1,1,1)};function nG(a,b){this.b=a;this.g=b}function oG(a){return a.g-a.b}function pG(a,b){return a.b+b*oG(a)}function qG(a,b){return oG(a)?Ib((b-a.b)/oG(a),0,1):Infinity};function rG(a,b,c,d){var e=Math.min(c/(b.is/b.Ab),d/(b.hs/b.rows)),g=b.is*e,e=b.hs*e,g=Math.floor(g/b.Ab)*b.Ab,e=Math.floor(e/b.rows)*b.rows,h=g/b.Ab,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.XB*h*-1;var r=b.row*k*-1;a=a.style;a.width=h+"px";a.height=k+"px";h=p+"px";a.marginTop=h;a.marginBottom=h;a.marginLeft=l+"px";a.marginRight=c+"px";a.backgroundImage="url("+b.url+")";a.backgroundPosition=d+"px "+r+"px";a.backgroundSize=g+"px "+e+"px"};function sG(a){$E.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 Vk(this.lw,250,this);R(this,this.o);this.de=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"];ed(this.j);this.g=0;this.k=new nG(0,0)}x(sG,$E);f=sG.prototype;f.Eq=!1;f.de=0;f.bm=0;f.xl=0;f.ds=10;f.fc=0;f.Dj=0;f.Bn=0;f.Kc=null;f.We=null;f.disable=function(){this.Eq=!0}; 
f.dz=function(){for(var a=this.b.cloneNode(!0),b=this.Kc.b[0].b(),c,d,e=0;e<b;e++)d=this.j.cloneNode(!1),c=fr(this.We,e,this.fc),rG(d,c,this.fc,this.Dj),a.appendChild(d);fd(a,this.b);this.b=a};f.rq=function(a,b){gg(this.b,!1);for(var c,d,e=a;e<=b;e++)if(d=this.b.children[e])c=fr(this.We,e,this.fc),rG(d,c,this.fc,this.Dj);gg(this.b,!0)};function tG(a,b){if(b!=a.Bn){var c=fr(a.We,b,2*a.fc),d=Math.round(2*a.fc),e=Math.round(2*a.Dj);rG(a.C,c,d,e);a.Bn=b}} 
f.lw=function(){for(var a=this.bm,b=Math.max(Math.floor(a/this.fc),0),a=Math.min(Math.ceil((a+this.de)/this.fc),this.Kc.b[0].b()-1);b<=a;b++){for(var c=this.We,d=b,e=eq(c.b,2*this.fc),g=void 0,h=void 0;0<=e;e--)if(g=c.b.b[e],h=Math.floor(d/(g.Ab*g.rows)),!g.g[h]){var g=c,k=e,l=k+"-"+h;g.o[l]||(g.o[l]=!0,cr(g.j,k,{bq:k,cq:h}))}gr(c)}}; 
function uG(a,b){a.ds=Math.min(10,Math.ceil(a.de/72));a.fc=Math.floor(a.de/a.ds);a.Dj=.555*a.fc;var c=a.Kc.b[0].b();a.xl=a.fc*c;$f(a.b,a.xl);var c=Math.round(2*a.fc),d=.555*c+12;Zf(a.A,c,d);Of(a.A,(a.de-c)/2);c=d+20;a.K().style.height=Pf(c,!0);b&&(c=a.Kc.b[0].b(),a.rq(0,c-1),tG(a,a.Bn),a.B=!0)}f.show=function(){this.Kc&&sG.G.show.call(this)};f.J=function(){this.We=this.Kc=null;Dz(this.g);sG.G.J.call(this)};function vG(a,b,c,d){this.width=b;this.g=c;this.o=d;this.b=b-c-d;this.k=Ib(a-c,0,this.b);this.position=this.k+c;this.j=this.k/this.b};function wG(){X.call(this,["div","ytp-progress-tooltip",["div","ytp-progress-tooltip-thumbnail-container",["div","ytp-progress-tooltip-thumbnail"]],["div","ytp-progress-tooltip-text-container",["div","ytp-progress-tooltip-text","{{text}}"]],["div","ytp-progress-tooltip-timestamp-container",["div","ytp-progress-tooltip-timestamp","{{timestamp}}"]],["div","ytp-progress-tooltip-arrow"]]);this.j=this.template.b["ytp-progress-tooltip-arrow"];this.b=-1;this.oa="";this.g=new nG(0,0);this.hide()}x(wG,X); 
f=wG.prototype;f.kj=!1;f.Ve=null;f.lh=null;f.disable=function(){this.kj=!0};f.show=function(){this.kj||wG.G.show.call(this)};f.reset=function(){P(this.K(),"with-thumbnail");this.lh=this.Ve=null};f.ez=function(a,b){a<=this.b&&this.b<=b&&xG(this)};function xG(a){var b=fr(a.lh,a.b,108);rG(a.template.b["ytp-progress-tooltip-thumbnail"],b,108,60)}f.J=function(){this.j=this.lh=this.Ve=null;wG.G.J.call(this)};function yG(a,b){var c=["div","ytp-progress-bar-container",["div",["html5-progress-bar","ytp-force-transform"],{tabIndex:6250,role:"slider","aria-label":Ze("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},["div","ytp-progress-bar-padding"],["div","ytp-progress-list",["div","ytp-unloaded-progress"],["div","ytp-play-progress"],["div","ytp-load-progress"],["div","ytp-spacecast-load-progress"],["div","ytp-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")}]]; 
$E.call(this,c);this.k=a.Hc().width;this.C=1;this.M=this.V=this.A=this.kb=this.I=0;this.ta=this.template.b["html5-ad-progress-list"];this.ob=this.template.b["ytp-marker-progress-list"];this.fb=this.template.b["ytp-marker-crenellation-list"];this.F={};this.U={};this.N=Infinity;this.fa=this.template.b["ytp-clip-end"];this.xa=new fG(this.fa,!0);R(this,this.xa);this.xa.subscribe("hoverstart",this.Jo,this);this.xa.subscribe("hoverend",this.Io,this);pz(this,this.fa,"click",this.Jk);this.wa=this.template.b["ytp-clip-end-exclude"]; 
this.eb=this.template.b["ytp-clip-start-exclude"];this.O=0;this.ka=this.template.b["ytp-clip-start"];this.Aa=new fG(this.ka,!0);R(this,this.Aa);this.Aa.subscribe("hoverstart",this.Jo,this);this.Aa.subscribe("hoverend",this.Io,this);pz(this,this.ka,"click",this.Jk);this.j=null;this.Ha=this.template.b["ytp-unloaded-progress"];this.Ia=this.template.b["ytp-load-progress"];this.D=0;this.Va=this.template.b["ytp-play-progress"];this.B=0;this.L=this.template.b["html5-progress-bar"];this.o=null;this.wb=new SF(this.K()); 
R(this,this.wb);this.g=null;this.ma=this.template.b["html5-scrubber-button"];this.xb=this.template.b["ytp-scrubber-pull-indicator"];this.mb=0;this.Ca=!1;this.Da=new F;this.b=new nG(0,0);this.jb=!1;this.aa=b;zG(this)}x(yG,$E);f=yG.prototype;f.gz=function(){this.g&&this.g.show()};f.iz=function(a,b,c){var d=Uf(this.K()),e=AG(this).b,g=c?c.getAttribute("data-tooltip"):null;g&&(a=qG(this.b,Number(c.getAttribute("data-position")))*e+Uf(this.L).x);this.Da.x=a-d.x;this.Da.y=b-d.y;g?BG(this,g):BG(this)}; 
function BG(a,b){if(a.g){var c=a.jb?a.b.g:0,d=AG(a),e=a.g;if(!e.kj){var g=50;e.Ve?(g=108,b&&(g*=2)):b&&(g=108);e.K().style.padding="2px";e.K().style.width=g+"px";var h=g/2+2,h=(new vG(d.position,d.width,h,h)).position-h;e.K().style.left=h+"px";e.j.style.left=Ib(d.position,0,d.width)-h-5+"px";d=pG(e.g,d.j);e.pa(Zv(d-c),"timestamp");e.Ve&&(c=eq(e.Ve,g),c=e.Ve.b[c].A(d),0<c&&c!=e.b&&(e.b=c,xG(e)));b?(O(e.K(),"with-text"),e.pa(b,"text")):P(e.K(),"with-text")}}}f.hz=function(){this.g&&this.g.hide()}; 
f.fz=function(a,b){var c=CG(this);this.mb=c.g-AG(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.kb=b;this.Ca=!0;this.H("beginseeking")};f.jz=function(){this.V=0;P(this.K(),"ytp-pull-ui");P(this.K(),"ytp-pulling");if(0<this.I){var a=w(),b=this.I,c=AG(this).position;this.A&&We(this.A);this.A=nz(v(this.fp,this,a,b,c),0)}this.g&&this.j&&(this.g.show(),this.j.hide());this.Ca=!1;this.H("endseeking")}; 
f.fp=function(a,b,c){var d,e=(w()-a)/200;d=mG.b;e=lG(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;DG(this,(1-d)*b,e,this.B);this.A=1>d?nz(v(this.fp,this,a,b,c),0):0};function DG(a,b,c,d){b=Ib(b,0,40);a.I=b;var e=a.C,g=Math.max(oG(a.b)/a.k,1);a.C=b/40*(g-1)+1;b=a.k*a.C;a.M=Ib(d*b-c,0,b-a.k);e!=a.C&&zG(a)} 
f.kz=function(a,b){var c=!1,d=!1,e=AG(this);3600<=oG(this.b)&&(DG(this,this.kb-b-10,e.position,e.j),d=!0,c=4<this.I,e=AG(this));Q(this.K(),"ytp-pull-ui",d);c&&O(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.V||M(this.A);c&&(this.A=nz(v(this.yp,this,w(),this.M),0));this.V=c;this.H("seekto",pG(this.b,e.j),!1)}; 
f.yp=function(a,b){if(this.V){var c=this.k*(this.C-1);this.M=Ib(b+this.V*(w()-a)*.3,0,c);zG(this);this.H("seekto",pG(this.b,AG(this).j),!1);0<this.M&&this.M<c&&(this.A=nz(v(this.yp,this,a,b),0))}}; 
function zG(a){var b=AG(a),c=gd(a.fb),d=0;if(8<a.I)for(var e=(-b.g+b.width)/b.b*(oG(a.b)/60),g=Math.ceil(-b.g/b.b*(oG(a.b)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),h.style.width="1px",a.fb.appendChild(h));d++;h.className=0==g%60?"ytp-60m-progress":0==g%30?"ytp-30m-progress":0==g%15?"ytp-15m-progress":"ytp-1m-progress";h.style.left=60*g/oG(a.b)*b.b+"px"}for(e=c.length-1;e>=d;e--)ed(c[e]);c=(-b.g+b.width)/b.b;a.pa(Zv(pG(a.b,-b.g/b.b)),"boundTimeLeft");a.pa(Zv(pG(a.b,c)),"boundTimeRight"); 
a.L.style.width=b.b+"px";a.K().style.height=a.I+(a.aa?20:8)+"px";b=b.g;dy(a.L,"transform",b?"translatex("+b+"px)":"");a.ma.style.height=a.I+(a.aa?12:6)+"px";for(var k in a.F)EG(a,a.F[k],a.U[k]);FG(a);GG(a,a.B,a.D)}function HG(a){var b=Math.floor(a.b.g),c=Math.floor(pG(a.b,a.B));a.template.update({ariamin:Math.floor(a.b.b),ariamax:b,arianow:c,arianowtext:Ze("YTP_PROGRESS_LABEL",{PLAY_PROGRESS:c,DURATION:b})})} 
function AG(a){var b=a.Da.x;if(a.Ca)var c=a.aa?32:16,b=(b+a.mb-c/2)/(a.k-c)*a.k;c=a.k*a.C;b=Ib(b,0,a.k);return new vG(b,a.k,-a.M,-(c-a.M-a.k))}function CG(a){var b=a.aa?32:16,c=a.k*a.C;return new vG(a.B*(c-b)+b/2,c,b/2,b/2)} 
function GG(a,b,c){if(b<a.O||b>a.N)a.Jk();else{a.B=b;a.D=Math.max(a.B,c);HG(a);var d=qG(a.b,a.O),e=qG(a.b,a.N),g=Ib(b,d,e);c=Ib(c,d,e);var h=g;g<e&&(h=a.k*a.C,h=(g*h-g)/h);a.Va.style.left=$v(d)+"%";dy(a.Va,"transform","scalex("+(h-d)+")");dy(a.ma,"transformOrigin",$v(b)+"%");b=CG(a).position+"px";a.ma.style.left=b;a.xb.style.left=b;a.Ia.style.left=$v(d)+"%";dy(a.Ia,"transform","scalex("+(c-d)+")");a.Ha.style.left=$v(d)+"%";dy(a.Ha,"transform","scalex("+(e-d)+")")}} 
function FG(a){var b=a.O>a.b.b,c=0<a.b.g&&a.N<a.b.g;Q(a.K(),"ytp-clip-start-enabled",b);Q(a.K(),"ytp-clip-end-enabled",c);b=b?qG(a.b,a.O):0;c=c?qG(a.b,a.N):1;a.ka.style.left=$v(b)+"%";a.fa.style.left=$v(c)+"%";a.eb.style.width=$v(b)+"%";a.wa.style.left=$v(c)+"%";a.wa.style.width=$v(1-c)+"%"}f.Jo=function(){O(this.K(),"ytp-clip-hover")};f.Io=function(){P(this.K(),"ytp-clip-hover")};f.Jk=function(){this.O=0;this.N=Infinity;FG(this);GG(this,this.B,this.D)}; 
function EG(a,b,c){var d=AG(a).b,e=qG(a.b,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=ou(b);var g=a/2,d=Ib(e,g,d-g)-g;break;default:a=Math.min(Math.min(qG(a.b,b.end/1E3)*d,d)-e,ou(b)),d=Ib(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style} 
function IG(a,b){B(b,function(a){if(a.fe){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.U[b]=e;EG(this,a,e);"ytp-chapter-marker"==a.style?this.ob.appendChild(e):this.ta.appendChild(e)}}else JG(this,a)},a)}function KG(a,b){B(b,function(a){JG(this,a)},a)}function JG(a,b){var c=b.getId();a.F[c]==b&&(ed(a.U[c]),delete a.F[c],delete a.U[c])} 
function LG(a,b){var c=a.L;P(c,"spacecast-cached");b&&L(function(){O(c,"spacecast-cached")},100)}f.J=function(){this.A&&(M(this.A),this.A=0);this.o&&(this.o.dispose(),this.o=null);this.Ia=this.ka=this.eb=this.fa=this.wa=this.ta=null;this.U={};this.Ha=this.ma=this.L=this.Va=null;this.aa=!1;yG.G.J.call(this)};function MG(a){jB.call(this);this.C=this.o="unknown";this.b=Y(0,"YTP_QUALITY_TITLE");this.j=new OC(a,v(this.D,this),v(this.I,this),!0);R(this,this.j);this.g=NaN;this.element=new HC(a,void 0,this.j);R(this,this.element);JC(this.element,100);this.priority=-1;this.k=!0}x(MG,jB);MG.prototype.bo=function(){return this.o}; 
function NG(a,b,c){if(a.o!=b||a.C!=c){a.o=b;a.C=c;RC(a.j,c);var d=a.j;null!=d.b&&NC(QC(d,d.b),!1);null!=b&&NC(QC(d,b),!0);d.b=b;"auto"==c&&c!=b?(b=Y(0,"YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:OG(b)}),b=new bF(b)):b=a.D(b);isNaN(a.g)||(Az()?Dz(a.g):M(a.g));Az()?a.g=Cz(v(a.element.g,a.element,b),0):a.g=L(v(a.element.g,a.element,b),0)}} 
function OG(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""}MG.prototype.D=function(a){var b=["span","",OG(a)];"highres"==a?(b.push(" "),b.push(["sup","","4K"])):0==a.indexOf("hd")&&(b.push(" "),b.push(["sup","","HD"]));return new Sv(b)}; 
MG.prototype.I=function(a){this.element.j();if("auto"!=this.C||"auto"!=a)NG(this,a,a),this.element.Hb("change")};MG.prototype.J=function(){Az()?Dz(this.g):M(this.g);MG.G.J.call(this)};function PG(a){aD.call(this,a,"ytp-settings-button",Y(0,"YTP_SETTINGS"),"ytp-settings-button-active");mB(this,6600);this.element.setAttribute("aria-haspopup",!0);this.j=new X(["div","{{content}}"]);R(this,this.j);this.pa(this.j);QG(this,"")}x(PG,aD);function QG(a,b){"highres"==b?a.j.pa("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.j.pa("ytp-settings-hd-quality-badge"):a.j.pa("")};function RG(a){aD.call(this,a,"ytp-size-toggle-large",Y(0,"YTP_THEATER_MODE"),"ytp-size-toggle-small",Y(0,"YTP_DEFAULT_VIEW"));mB(this,6800)}x(RG,aD);function SG(a){jB.call(this);this.j=2;this.b=Y(0,"YTP_SPEED_TITLE");this.g=new OC(a,v(this.o,this),v(this.C,this));R(this,this.g);this.element=new HC(a,void 0,this.g);R(this,this.element);JC(this.element,100);TG(this,this.j);this.priority=1;this.k=!0}x(SG,jB);function TG(a,b){a.j=b;RC(a.g,b);a.element.g(a.o(b))}SG.prototype.o=function(a){return 1==a?Y(0,"YTP_NORMAL_SPEED"):a.toString()};SG.prototype.C=function(a){this.element.j();TG(this,a);this.element.Hb("change")};function UG(){X.call(this,["div",["ytp-time-display","html5-control"],{"aria-hidden":"true"},["span","ytp-time-current","{{current}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"],["span","ytp-time-live-badge","Live"]]);this.b=this.template.b["ytp-time-live-badge"]}x(UG,X);UG.prototype.Cf=function(a){Xv(this.template,"duration",Zv(a))};function VG(a,b,c){Q(a.element,"ytp-time-liveonly",b&&!c);Q(a.element,"ytp-time-live",b&&c)} 
UG.prototype.J=function(){this.b=null;UG.G.J.call(this)};function WG(a){this.C=a;X.call(this,["div","ytp-volume-control",["div","ytp-volume-panel",{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:6200},["div","ytp-volume-slider",["div","ytp-volume-slider-foreground"]]]]);this.b=new kB(this.C,"ytp-button-volume",Y(0,"YTP_BUTTON_VOLUME"));R(this,this.b);this.b.W(this.element,0);mB(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 SF(this.A);R(this,this.B)}x(WG,X);WG.prototype.Db=function(a){this.b.Db(a)};function XG(a){a.j||(a.j=a.g.clientWidth);return a.j} 
WG.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"):"");this.Db(Y(0,b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+Y(0,"YTP_SCREENREADER_CONTROL_TOGGLE"));Xv(this.template,"valuenow",c);Xv(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");vg(this.b.K(),"value",c);c=XG(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 YG(a,b){ej.call(this);this.vb=a;this.Ik=new ow(this);this.pv=b;this.dd=null;this.b={};this.g={};this.k=this.j=this.Ud=this.ed=this.Xd=null;this.o=new ow(this);this.Uo=this.oc=null;this.B=-1;this.A=null;this.C=!1;this.Df=new X(["div","ytp-video-controls-clickguard"]);this.Df.hide();R(this,this.Df)}x(YG,ej);f=YG.prototype;f.Jc=null;f.Pc=null;f.Me=null;f.Si=null;f.Hi=null;f.Xm=!1;f.kd=null;f.disable=function(a){ZG(this,a,!0)};f.enable=function(a){ZG(this,a,!1)}; 
function ZG(a,b,c){for(var d=0;d<b.length;d++)switch(b[d]){case "audio":Q(a.Jc,"disabled-control-audio",c);break;case "play_pause":var e=a.Pc;c?e.disable():e.enable();break;case "seek":Q(a.Jc,"disabled-control-seek",c)}}f.setVolume=function(a,b){if(this.B!=a||this.A!=b)this.jd.setVolume(a,b),this.B=a,this.A=b};f.Cf=function(a){this.ld.Cf(a)};f.Lx=function(){this.H("mutetoggled")}; 
function $G(a,b){if(b){if(a.Xm){var c=a.Pc;lB(c,"ytp-button-stop");var d=Y(0,"YTP_STOP")}else c=a.Pc,lB(c,"ytp-button-pause"),d=Y(0,"YTP_PAUSE");c.Db(d)}else dG(a.Pc)}f.Kx=function(){this.H("playpausetoggled")};f.Hx=function(a){a=(a-Uf(this.jd.g).x)/XG(this.jd)*100;a={volume:Ib(a,0,100),muted:!1};this.H("volumechanged",a)};f.Gx=function(){this.H("fullscreentoggled")};function aH(a,b){var c=a.g[b.B||"__default__"];c&&c.add(b)}function bH(a,b){var c=a.g[b.B||"__default__"];c&&c.remove(b)} 
function cH(a,b,c,d){if(!a.b[b]){a.b[b]=c;if("remote"==b)dd(jd(a.dd.K()),c.K(),0);else{var e=c.K();d=d||a.dd.K();d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling)}c.listen("click",sa(a.OA,b),a,"menuButtonClick");c=new YF(a.vb,"__default__"!=b);R(a,c);c.hide();c.W(a.Jc);a.g[b]=c}}f.Ix=function(){var a=this.Eb.K();if(!rg(a,"html5-async-progress")){var b=rg(a,"html5-async-success");PF(a,"html5-async-progress");this.H("watchlater",b)}};f.Jx=function(){this.H("watchonyoutube")}; 
function dH(a,b,c){a.hd();if(0!=b.b.length){a.H("showdialog");var d=a.vb.Hc();Zf(a.Df.K(),d);a.Df.show();c&&(a.k=c,cD(a.k));a.j=b;a.j.show();a.j.K().focus();a.o.listen(window,"blur",a.hd);a.o.listen(document,"click",a.hd)}}f.hd=function(){this.o.removeAll();this.j&&(this.j.hide(),this.j=null);this.k&&(dD(this.k),this.k=null);this.Df.hide()};f.OA=function(a,b){b.stopPropagation();var c=this.b[a];c&&(c.b?this.hd():(dH(this,this.g[a],c),"__default__"==a&&this.H("settingsopened")))}; 
f.Bx=function(){this.H("audiotrackchanged",this.Xd.j);this.hd()};f.Cx=function(){var a=this.ed.bo();this.H("qualitychanged",a);this.H("controlclick","quality-"+a);this.hd()};f.Ex=function(){var a=this.oc;a.b?dD(a):cD(a);this.H("sizechangerequested",1==this.oc.b)};f.Fx=function(){var a=this.Ud.j;this.H("speedchanged",a);this.H("controlclick","speed-"+a);this.hd()}; 
f.Xy=function(a){var b=a.target;a=b==this.Pc.K()?"playpause":b==this.jd?"volume":b==this.ld?"time":b==this.dd?"settings":b==this.Eb?"watchlater":b==this.kd?"youtube":b==this.ge.K()?"fullscreen":b==this.oc?"size":a.target.className;this.H("controlclick",a)}; 
f.J=function(){this.Yo.dispose();this.Ik.removeAll();this.o.removeAll();this.hd();this.Eb=this.kd=this.Hi=this.jd=this.Jc=null;for(var a in this.b){var b=this.b[a];b&&(b.Ic(),qz(b,"menuButtonClick"))}this.b={};this.g={};this.oc=this.dd=this.Ud=this.ed=null;this.C||(this.B=-1,this.A=null);YG.G.J.call(this)};function eH(a){Li("/playlist_video_ajax?action_add_to_watch_later_list=1",{method:"POST",jg:{privacy:a.privacy||null,feature:a.BF||null,authuser:a.Ua||null,pageid:a.gb||null},Nb:{video_ids:a.Ya,src_playlist_id:a.EF,full_list_id:a.CF||null,new_playlist_name:a.DF||null,plid:Te("PLAYBACK_ID")||null},context:a.context,onError:a.onError,onSuccess:a.onSuccess,Bb:a.Bb})} 
function fH(a){Li("/playlist_video_ajax?action_delete_from_watch_later_list=1",{method:"POST",Nb:{video_ids:a.Ya,session_token:Te("XSRF_TOKEN")},context:a.context,onError:a.onError,onSuccess:a.onSuccess,Bb:a.Bb})};function gH(a,b){this.C=a;this.k=[];this.D=b;this.o=[]}x(gH,Mh);function hH(a,b,c){a.k.push(a.C.subscribe(b,c,a))}function iH(a,b,c){a.o.push(a.D.subscribe(b,c,a))}function jH(a){for(var b=0;b<a.k.length;b++)a.C.Ob(a.k[b]);for(b=0;b<a.o.length;b++)a.D.Ob(a.o[b])}gH.prototype.J=function(){jH(this);gH.G.J.call(this)};function kH(a,b){gH.call(this,a,b);hH(this,"videodatachange",this.M);hH(this,"presentingplayerstatechange",this.I);hH(this,"progresssync",this.L);iH(this,"autonavcancel",this.F);this.b=a;this.g=b;this.B=!1;this.A=0;this.j=Infinity}x(kH,gH);function lH(a){a.b.b.b.A&&a.B&&5>a.j-a.A&&a.b.getVideoData().hh?a.g.show():a.g.hide()}kH.prototype.I=function(a){this.B=W(a.state,8)&&!(W(a.state,16)||W(a.state,32)||W(a.state,2));lH(this)}; 
kH.prototype.L=function(a){var b=this.b.Jb.Pf();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));Xv(this.g.template,"next-video-in",Y(0,"YTP_NEXT_VIDEO_IN",{TIME_LEFT:a}));lH(this)};kH.prototype.M=function(a,b){b&&bt(this.b)&&1==bt(this.b).getPlayerType()&&(this.g.Lf(b&&b.A&&b.A.length?b.A[0]:null),lH(this))};kH.prototype.F=function(){this.b.getVideoData().hh=!1;lH(this)};function mH(a,b){gH.call(this,a,b);this.j=!1;this.g=a;this.b=b;var c=a.R();c.color&&O(this.b.L,c.color);c.rj&&(c=this.b,c.g=new wG,c.g.W(c.K()),R(c,c.g),c.j=new sG(c.k),c.j.hide(),c.j.W(c.K(),0),R(c,c.j));nH(this)}x(mH,gH); 
function nH(a){jH(a);a.j=!0;hH(a,"cuerangesadded",a.kD);hH(a,"cuerangesremoved",a.lD);hH(a,"cuerangemarkersupdated",a.jD);hH(a,"progresssync",a.Kq);hH(a,"resize",a.nD);hH(a,"seekto",a.pD);hH(a,"videodatachange",a.qD);hH(a,"videoplayerreset",a.Jq);hH(a,"videoready",a.oD);iH(a,"beginseeking",a.iD);iH(a,"endseeking",a.mD);iH(a,"seekto",a.hD)}f=mH.prototype;f.kD=function(a){IG(this.b,a)};f.lD=function(a){KG(this.b,a)};f.jD=function(a){IG(this.b,a)}; 
f.nD=function(a){var b=this.b;b.k=a.width;zG(b);b.j&&(b=b.j,a=a.width,!b.Kc||b.de==a&&b.B||(b.de=a,uG(b,!0)))};f.pD=function(a){var b=this.g.Jb.Pf();a=qG(new nG(b.seekableStart,b.seekableEnd),a);b=this.b;GG(b,n(a)?a:b.B,n(void 0)?void 0:b.D);if(this.b.j&&(b=this.b.j,b.Kc)){b.bm=b.xl*a-b.de/2;Of(b.b,-1*b.bm);var c,d=b.Kc;c=Ib(a,0,1);d=d.b[0].b()-1;c=Ib(Math.round(d*c),0,d);tG(b,c);a=pG(b.k,a);md(b.D,Zv(a));Wk(b.o)}}; 
f.Jq=function(a){if(1!=a.getPlayerType()){if(!this.j)return;jH(this);this.j=!1;hH(this,"videoplayerreset",this.Jq)}else if(!this.j){nH(this);var b=this.b;cd(b.ta);b.F={};b.U={};IG(this.b,a.A.j||[]);this.b.g&&this.b.g.reset()}this.Kq()};f.qD=function(a,b){var c=new nG(0,b.Qa),d=this.b;d.b=c;HG(d);zG(d);this.b.g&&(this.b.g.g=c);this.b.j&&(this.b.j.k=c);c=this.b;c.O=b.clipStart;FG(c);GG(c,c.B,c.D);c=this.b;c.N=b.clipEnd;FG(c);GG(c,c.B,c.D);LG(this.b,!!b.ca)}; 
f.oD=function(a){if(this.b.g){var b=this.b.g;if(!b.kj)if(ks(a)){O(b.K(),"with-thumbnail");b.Ve=ks(a);b.lh=ms(a);var c=v(b.ez,b);b.lh.subscribe("l",c)}else b.reset()}this.b.j&&(b=this.b.j,b.j&&cd(b.b),P(b.K(),"enabled"),Dz(b.g),b.Kc=ks(a),b.We=ms(a),b.Kc&&!b.Eq&&(O(b.K(),"enabled"),c=v(b.rq,b),b.We.subscribe("l",c),uG(b),Dz(b.g),b.g=Cz(v(b.dz,b))));this.b.jb=a.rb?!0:!1;rs(a)?(a=this.b,a.o&&(a.o.dispose(),a.o=null)):(a=this.b,a.o||(a.o=new fG(a.L,!0),a.o.subscribe("hoverstart",a.gz,a),a.o.subscribe("hovermove", 
a.iz,a),a.o.subscribe("hoverend",a.hz,a),a.o.subscribe("dragstart",a.fz,a),a.o.subscribe("dragmove",a.kz,a),a.o.subscribe("dragend",a.jz,a)))};f.Kq=function(a,b){var c=this.g.Jb.Pf(),d=n(a)?a:c.current,e=new nG(c.seekableStart,n(b)?b:c.seekableEnd),c=qG(e,c.loaded),d=qG(e,d),g=this.b;g.b=e;HG(g);zG(g);g=this.b;GG(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.iD=function(){oH(this.g.j)};f.mD=function(){this.g.j.fj()};f.hD=function(a,b){Rs(this.g,a,b)};f.J=function(){mH.G.J.call(this)};function pH(a,b){gH.call(this,a,b);hH(this,"applicationplayerstatechange",this.vy);hH(this,"controlsdisabled",this.yy);hH(this,"controlsenabled",this.zy);hH(this,"liveviewshift",this.Cy);hH(this,"fullscreentoggled",this.By);hH(this,"presentingplayerstatechange",this.Zy);hH(this,"progresssync",this.cz);hH(this,"threedenabled",this.Sy);hH(this,"videoplayerreset",this.bz);hH(this,"videodatachange",this.az);hH(this,"onPlaybackQualityChange",this.Ny);hH(this,"onVolumeChange",this.Ty);hH(this,"menu_button_add", 
this.Ey);hH(this,"menu_button_remove",this.Fy);hH(this,"menu_item_add",this.Gy);hH(this,"menu_item_remove",this.Hy);hH(this,"menu_show",this.Iy);iH(this,"fullscreentoggled",this.Ay);iH(this,"mutetoggled",this.Jy);iH(this,"nextvideo",this.Ky);iH(this,"playpausetoggled",this.Ly);iH(this,"previousvideo",this.My);iH(this,"qualitychanged",this.Oy);iH(this,"audiotrackchanged",this.wy);iH(this,"seekto",this.$y);iH(this,"sizechangerequested",this.Qy);iH(this,"speedchanged",this.Ry);iH(this,"volumechanged", 
this.Uy);iH(this,"watchlater",this.Vy);iH(this,"watchonyoutube",this.Wy);iH(this,"controlclick",this.xy);iH(this,"showdialog",this.Yy);iH(this,"settingsopened",this.Py);this.b=a;this.g=b;this.A=new mH(a,b.Si);R(this,this.A);this.j=new kH(a,b.Dp);R(this,this.j);var c=a.R();if(c.Ac){var d=this.g;this.b.R().Zd?cD(d.oc):dD(d.oc);d.oc.show()}c.$f||this.g.Eb.hide();c.Tf&&this.g.ge.show();if(c.Mg){var d=this.g,e=d.Ud;PC(e.g,this.b.b.Mg?Zq:[1]);var g=2300;TC(e.g,g++);g=g++;mB(e.element.b,g);aH(d,d.Ud)}if(c.b.F)for(d= 
this.g,e=[d.Pc,d.jd,d.ld,d.Eb,d.kd,d.ge,d.dd],g=0;g<e.length;g++)d.Ik.listen(e[g],"click",d.Xy);d=null!=c.$d&&0==c.$d.search("^https?://www.youtube.com");("detailpage"==c.ba||"profilepage"==c.ba||d)&&this.g.kd.hide()}x(pH,gH);f=pH.prototype;f.yy=function(a){this.g.disable(a)};f.zy=function(a){this.g.enable(a)};f.Cy=function(a){Q(this.g.ld.element,"ytp-time-live-dvr",!a)}; 
f.By=function(a){var b=this.g;this.b.R();a?(a=b.ge,lB(a,"ytp-button-fullscreen-exit"),b=Y(0,"YTP_EXIT_FULLSCREEN"),a.Db(b),a.g=b):XF(b.ge);qH(this)};f.Zy=function(a){W(a.state,2)||(0<kw(a,8)?$G(this.g,!0):0>kw(a,8)?$G(this.g,!1):0>kw(a,2)&&$G(this.g,W(a.state,8)));0>kw(a,16)&&rH(this,this.b.getCurrentTime())};f.vy=function(a){if(W(a.state,2)){a=this.g.Pc;lB(a,"ytp-button-replay");var b=Y(0,"YTP_REPLAY");a.Db(b)}}; 
f.Sy=function(){var a=this.g,b=this.b.getVideoData().Yf,c=H("html5-threed-conversion-on",a.Hi),a=H("html5-threed-conversion-off",a.Hi);Yx(c,!b);Yx(a,b)};f.bz=function(a){sH(this)&&(rH(this,a.getCurrentTime()),PF(this.g.Eb.K()),TG(this.g.Ud,1),a.getVideoData()&&tH(this,a.getVideoData()))};f.az=function(a,b){sH(this)&&tH(this,b)};function qH(a){a.b.o&&("detailpage"!=a.b.R().ba||a.b.R().ub)?a.g.Me.show():a.g.Me.hide()} 
function tH(a,b){a.g.Cf(b.Qa);var c=bt(a.b),d=a.g,e=ct(c),g=d.ed;PC(g.j,e);TC(g.j,2600);mB(g.element.b,2601);e.length?aH(d,d.ed):bH(d,d.ed);d=a.g;e=$s(a.b);g=uH(a.b);NG(d.ed,e,g);QG(d.dd,e);d=a.g;c.b.g?(c.oa||(c.oa=$p(c.b.g)),c=c.oa):c=[];PC(d.Xd.g,c);1<c.length?aH(d,d.Xd):bH(d,d.Xd);c=a.g;(d=(d=bt(a.b,void 0))?vH(d):null)&&RF(c.Xd,d);c=a.g;d=b.Za;e=b.rb;c.Xm=d&&!e;VG(c.ld,d,e);W(a.b.getPlayerState(),2)||$G(a.g,W(a.b.getPlayerState(),8));qH(a)} 
f.Ny=function(a){if(sH(this)){var b=this.g,c=uH(this.b);NG(b.ed,a,c);QG(b.dd,a)}};f.Ty=function(a){this.g.setVolume(a.volume,a.muted)};f.Gy=function(a){aH(this.g,a)};f.Hy=function(a){bH(this.g,a)};f.Ey=function(a,b){cH(this.g,a,b)};f.Fy=function(a){var b=this.g,c=b.b[a];c&&(c.Ic(),qz(c,"menuButtonClick"),b.b[a]=null,b.g[a].dispose(),b.g[a]=null)};f.Iy=function(a){var b=this.g;a&&b.g[a]?dH(b,b.g[a],b.b[a]):b.hd()};f.cz=function(a){rH(this,n(a)?a:this.b.Jb.Pf().current)};f.Ay=function(){wH(this.b,!this.b.R().ub)}; 
f.Jy=function(){this.b.D.muted?Us(this.b):Ts(this.b)};f.Ky=function(){mt(this.b)};f.Ly=function(){xH(this.b)};f.My=function(){nt(this.b)};f.Oy=function(a){at(this.b,a,1)};f.wy=function(a){var b=bt(this.b,1);if(b&&!b.ha()&&!W(b.j,128)&&b.b.g.b&&(b=b.k,!b.ha())){var c=b.o;a=a.id;c.o="m";c.g=c.$a.Ma[a];c.B=c.g;yH(b,new zH(c.B,c.j,c.o));AH(b,b.j,b.o.g);BH(b.j,!1);b.j.g=null;b.j.B=!0;CH(b)}};f.Yy=function(a){this.b.Dk(a)};f.$y=function(a){Rs(this.b,a,!0)}; 
f.Qy=function(a){var b=this.b;wH(b,!1);a!=b.b.Zd&&(b.b.Zd=a,b.H("SIZE_CLICKED",a),b.g.Eh())};f.Ry=function(a){Zs(this.b,a)};f.Uy=function(a){DH(this.b,a)};f.Wy=function(){EH(this.b)};f.xy=function(a){FH(this.b,a)};f.Py=function(){if(this.b.B.isAvailable("captions")){var a=et(this.b.B,"captions");a&&!a.loaded&&a.load()}};f.Vy=function(a){(a?fH:eH).call(this,GH(this,a?this.PE:this.QE))};function GH(a,b){return{Ya:ut(a.b).videoId,Ua:a.b.R().Ua,gb:a.b.R().gb,onSuccess:b,onError:a.mC,context:a}} 
f.QE=function(){var a=this.g.Eb.K();PF(a,"html5-async-success");this.b.H("WATCH_LATER_VIDEO_ADDED")};f.PE=function(){PF(this.g.Eb.K());this.b.H("WATCH_LATER_VIDEO_REMOVED")};f.mC=function(a,b){var c=b&&b.error_message,d=this.g.Eb.K();PF(d,"html5-async-error");if(c){var e=GF.getInstance(),g=IF(e,d);KF(e,d,c);HF(e,d);FF(d,g)}};function sH(a){return 1==bt(a.b).getPlayerType()} 
function rH(a,b){if(sH(a)&&(Xv(a.g.ld.template,"current",Zv(b)),43200<b&&a.b.getVideoData().rb)){var c=a.g;c.Xm=!0;VG(c.ld,!0,!1)}};var HH={0:[],1:["autohide-controls"],2:["autohide-controls-aspect","autohide-controls-fullscreen","autominimize-progress-bar-non-aspect"],3:["autominimize-progress-bar"]};function IH(a){eF.call(this,a);this.U=this.I=this.M=this.D=null;this.wa=[];this.ta=this.kb=this.B=this.jb=null;this.Ia=this.fa=!1;this.Va={x:0,y:0};this.Ha=null;this.Ca=!0;this.C=new kF(this.j);R(this,this.C);a=this.app.R().sc?4E3:3E3;this.ka=new qw(this.tq,a,this);R(this,this.ka);this.ka.start()}x(IH,eF);f=IH.prototype; 
f.jh=function(){IH.G.jh.call(this);this.app.subscribe("appstatechange",this.HD,this);this.app.subscribe("applicationplayerstatechange",this.ID,this);this.app.subscribe("initializingmode",this.KD,this);this.app.subscribe("presentingplayerstatechange",this.JD,this);this.app.subscribe("onDetailedError",this.LD,this)};f.dh=function(){IH.G.dh.call(this);var a=this.app.R();this.ao(a);this.Mn(a);this.Xn()}; 
f.ao=function(a){a.F&&this.addClass(a.F+"-theme");a.mc&&this.addClass("house-brand");!a.Vf&&a.Vd||this.addClass("modest-branding");a.Mi&&this.addClass("html5-hide-share");a.lq||this.addClass("html5-hide-volume");a.sc&&(this.addClass("html5-tablet"),O(document.body,"html5-tablet-body"));a.Xb||(this.wa=HH[a.cj],0<=this.wa.indexOf("autohide-controls")&&this.addClass("hide-controls-when-cued"));JH(this)&&this.addClass("ideal-aspect")}; 
f.Mn=function(a){if(a.Vd&&!a.Xb){this.B=new YG(this.j,a.sc);a.b.aa&&(this.B.C=!0);var b=this.B;b.Jc=this.F;b.Uo=new SF(b.Jc);R(b,b.Uo);b.Df.W(b.Jc);b.Si||(b.Si=new yG(b.vb,b.pv));b.Si.W(b.Jc);var c=new Sv(["div","html5-player-chrome"]);R(b,c);c.W(b.Jc);c=c.K();b.Pc=new cG(b.vb);R(b,b.Pc);b.Pc.W(c);b.Pc.listen("click",b.Kx,b);b.Me=new eG(b.vb);R(b,b.Me);b.Me.W(c);b.Me.b.listen("click",sa(b.H,"nextvideo"),b);b.Me.g.listen("click",sa(b.H,"previousvideo"),b);b.jd=new WG(b.vb);R(b,b.jd);b.jd.W(c);b.jd.b.listen("click", 
b.Lx,b);b.Yo=new fG(b.jd.g,!0);b.Yo.subscribe("dragmove",b.Hx,b);b.ld=new UG;R(b,b.ld);b.ld.W(c);b.Ik.listen(b.ld.b,"click",sa(b.H,"seekto",Infinity));b.Hi=H("html5-threed-popup-menu",b.Jc);b.ge=new WF(b.vb);b.ge.W(c);R(b,b.ge);b.ge.listen("click",b.Gx,b);b.oc=new RG(b.vb);b.oc.hide();b.oc.W(c);R(b,b.oc);b.oc.listen("click",b.Ex,b);b.kd=new kB(b.vb,"ytp-button-watch-on-youtube",Y(0,"YTP_URL_NAVIGATE"),Y(0,"YTP_URL_NAVIGATE"));mB(b.kd,6700);b.kd.W(c);R(b,b.kd);b.kd.listen("click",b.Jx,b);b.dd=new PG(b.vb); 
R(b,b.dd);cH(b,"__default__",b.dd,b.kd.K());b.jm=new kB(b.vb,"ytp-button-playlist",Y(0,"YTP_PLAYLIST"),Y(0,"YTP_PLAYLIST"));mB(b.jm,6400);b.jm.W(c);R(b,b.jm);b.Eb=new kB(b.vb,"ytp-button-watch-later",Y(0,"YTP_WATCH_LATER"));b.vb.Hf(b.Eb.K(),"YTP_WATCH_LATER_AS_2",Y(0,"YTP_WATCH_LATER"));b.Eb.W(c);mB(b.Eb,6300);b.Eb.Db(Y(0,"YTP_WATCH_LATER"));R(b,b.Eb);b.Eb.listen("click",b.Ix,b);b.Dp=new VF(b.vb);b.Dp.W(b.Jc);b.ed=new MG(b.vb);R(b,b.ed);b.ed.listen("change",b.Cx,b);b.Ud=new SG(b.vb);R(b,b.Ud);b.Ud.listen("change", 
b.Fx,b);b.Xd=new QF(b.vb);R(b,b.Xd);b.Xd.listen("change",b.Bx,b);R(this,this.B);this.kb=new pH(this.app,this.B);R(this,this.kb)}a.dq&&(this.Ha=new sF(a.lc,a.mc),this.Ha.W(this.g),R(this,this.Ha));this.M=new tF(60);O(this.M.element,"html5-video-loader");O(this.M.element,"html5-center-overlay");O(this.M.element,"ytp-scalable-icon-grow");this.M.W(this.g);R(this,this.M);this.I=new uF(a.lc);this.I.W(this.g);R(this,this.I);this.U=new YE;this.U.W(this.g);R(this,this.U);this.C.hide();this.C.W(this.element)}; 
f.An=function(a){IH.G.An.call(this,a);KH(this,a);this.D&&rF(this.D);Q(this.element,"ideal-aspect",JH(this));this.C.P&&lF(this.C)};f.dm=function(){IH.G.dm.call(this);KH(this,this.ac())};f.HD=function(a){2==a?LH(this):MH(this);this.app.R().b.j&&3==a&&this.I.show(this.app.getVideoData())}; 
f.JD=function(a){if(this.element){var b;b=a.state;if(W(b,2))b=["ended-mode"];else{var c=[];W(b,8)?c.push("playing-mode"):W(b,4)&&c.push("paused-mode");W(b,1)&&!W(b,32)&&c.push("buffering-mode");W(b,32)&&c.push("seeking-mode");W(b,64)&&c.push("unstarted-mode");b=c}W(a.state,2)||(b=b.concat(this.wa));this.ta&&tg(this.element,this.ta);sg(this.element,b);this.ta=b;NH(bt(this.app))?this.M.show():this.M.hide();b=bt(this.app);this.app.R().b.j&&b.pi()&&!NH(b)&&this.I.hide();0>kw(a,64)&&OH(this.app)}}; 
f.ID=function(a){!W(a.state,2)||this.app.R().mc||PH()?MH(this):LH(this)}; 
f.Xn=function(){var a=this.app.R();if(a.aq){a.sc&&(pz(this,this.element,"gesturechange",this.TA),pz(this,this.element,"gestureend",this.UA));rr?this.g.onclick=v(function(a){this.ln(new Jg(a))},this):this.mn();pz(this,this.element,"click",this.Mr);pz(this,this.element,"mousemove",this.Mr);pz(this,this.element,"mouseout",this.tq);var b,a=v(function(){var a=this.b;a&&(Zt(a),VE.fillPool(4),this.Ga(b))},this);b=pz(this,this.element,"click",a,void 0,void 0,!0)}}; 
f.mn=function(){pz(this,this.g,"click",this.ln);pz(this,this.g,"dblclick",this.Os)};f.ln=function(a){ud(a.target,"html5-stop-propagation")||(this.element.focus(),!rg(this.element,"cued-mode")&&this.app.R().Xb)||(QH(this),xH(this.app));FH(this.app,"screenclick")};f.Os=function(a){6!=this.app.F&&this.app.R().Tf&&(!ud(a.target,"html5-stop-propagation")&&$z(this.app),FH(this.app,"screendoubleclick"))};f.TA=function(a){var b=a.scale,c=this.app.R().ub;b*(c?-1:1)>(c?-.7:1.3)&&$z(this.app);a.preventDefault()}; 
f.UA=function(a){a=a.scale;var b=this.app.R().ub;a*(b?-1:1)>(b?-.9:1.1)&&$z(this.app)};function JH(a){a=new G(a.element.clientWidth,a.element.clientHeight);a=(a.width/a.height).toFixed(1);return"1.3"==a||"1.8"==a}f.Mr=function(a){if(a){var b=a.x||a.screenX;a=a.y||a.screenY;if(this.Va.x==b&&this.Va.y==a)return;this.Va={x:b,y:a}}this.app.b.rg=w();this.Ia=!1;this.ka.start();this.fa&&(this.fa=!1,this.removeClass("ytp-user-idle"),this.app.Xa("onShowControls"))}; 
f.tq=function(a){if(a&&(a=a.relatedTarget)&&kd(this.element,a))return;this.Ia=!0;this.ka.stop();if(!this.fa){a=this.B&&null!=this.B.j;var b=et(this.app.B,"playlist"),b=b&&b.loaded;!this.Ia||a||b||(this.fa=!0,this.addClass("ytp-user-idle"),this.app.Xa("onHideControls"))}};function LH(a){a.I.show(a.app.getVideoData());a.addClass("cued-mode");a.Ca=!0}function MH(a){a.Ca&&(a.app.R().b.j||a.I.hide(),a.removeClass("cued-mode"),a.Ca=!1)} 
f.eh=function(a){if(a){var b=this.C;b.b=a;b.pa(a);this.C.show()}else a=this.C,a.b=null,a.pa(null),this.C.hide()}; 
f.LD=function(a){if(this.element){this.D||(this.D=new qF,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.mc?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==a?(e="https://get.adobe.com/flashplayer/",d=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=a||b.mc||(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;Tg(b.g);b.g=[];Xv(b.template,"content",new bF(c));this.D.show()}};f.KD=function(){this.D&&this.D.hide()};function QH(a){var b=a.app.getPlayerState(),c=a.app.getVideoData(),d="html5-bezel-pause";W(b,8)?c.Za&&!c.rb&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.U;a.show(d);a.b=L(v(a.g,a),10)} 
f.lg=function(){var a=this.app.R();vg(document.documentElement,"player-size",a.ub?"fullscreen":a.Zd?"large":"small");IH.G.lg.call(this)}; 
function KH(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=Ib(e/g,.5,1),d=Nc("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++)1==c?dy(d[h],"transform",""):dy(d[h],"transform","scale("+c+")");c=Ib(e/g*.33,.5,1);d=Nc("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)1==c?dy(d[h],"transform",""):dy(d[h],"transform","scale("+c+")")}}f.Fk=function(a){this.B&&$G(this.B,a)}; 
f.J=function(){Wg(this.element);ed(this.jb);IH.G.J.call(this);this.I=this.U=this.jb=null};function RH(a,b,c,d){$E.call(this,["div",["html5-endscreen",c||"base-endscreen"]]);this.b=a;this.Wa=b;this.uc=!1;this.A=d||!1}x(RH,$E);RH.prototype.create=function(){this.uc=!0};RH.prototype.destroy=function(){this.uc=!1};function SH(a,b,c){var d=!!b.featured,e="1"==b.is_episodic;b=!!b.endscreen_autoplay_session_data;return c&&(d||e)||b||a.A&&a.dl()}RH.prototype.dl=function(){return!1};function TH(){X.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}x(TH,X);function UH(){X.call(this,["div","ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])}x(UH,X);function VH(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}}"]]];UF.call(this,a,b)}x(VH,UF);function WH(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),Li("/get_video_metadata",{method:"GET",onError:d,onSuccess:c,jg:a,context:e}))};function XH(a,b,c){RH.call(this,a,b,"subscribecard-endscreen");this.k=new TH;R(this,this.k);this.o=new Sv(["div","ytp-channel-curtain"]);R(this,this.o);this.j=new UH;R(this,this.j);(this.g=c?new VH(this.b.app.g.j):null)&&R(this,this.g);this.hide()}x(XH,RH); 
XH.prototype.create=function(){XH.G.create.call(this);cd(this.K());this.k.W(this.K());this.o.W(this.K());this.j.W(this.K());if(this.g){var a=this.b.getVideoData().A;a&&SH(this,a[0])&&(this.g.Lf(a[0]),this.g.W(this.K()))}WH(this.b.getVideoData().videoId,!0,this.B,ca,this,this.b.R().Ua,this.b.R().gb)}; 
XH.prototype.B=function(a,b){if(this.uc){var c=b.user_info,d=this.b.getVideoData();d&&(d.Ca=c.external_id);d=c.channel_logo_url||c.image_url;Xv(this.k.template,"banner",c.channel_banner_url);Xv(this.j.template,"image",d);Xv(this.j.template,"author",c.channel_title||c.username);this.g&&b.watch_next&&(this.g.Lf(b.watch_next),this.g.W(this.K()));c=c.subscription_button_html;this.j.template.b["html5-subscribe-button-container"].innerHTML=c?c:""}};function YH(a,b){return D(a.b.b,b)}function ZH(a,b){return jb(yb(arguments,1),sa(D,a.b.b))};function $H(a,b){var c=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",Y(0,"YTP_AD_RESUME_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",Y(0,"YTP_ADVERTISEMENT")],["div","video-ad-time-left"],["div",["html5-progress-bar","html5-stop-propagation"],["div",["html5-ad-progress-list","html5-progress-list"]]]],["div","ad-container",{id:"osd-id"}]];X.call(this,c);this.X=b}x($H,X);$H.prototype.g=null;$H.prototype.j=null;$H.prototype.b=null; 
function aI(a){if(!a.g&&(a.g=a.template.b["ad-container"],a.X.R().$b)){var b=YH(a.X.R(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";O(a.g,b)}return a.g}function bI(a){a.b&&(a.X.R().$b?(P(a.b,"ad-video"),cI(a.X.app,a.b),a.b=null):(ed(a.b),du(a.b)))} 
function dI(a){if(!a.j){if(a.X.R().sc){var b=Zc("button");O(b,"video-click-tracking");bd(b,Ze("YTP_VISIT_ADVERTISERS_SITE"));var c=Zc("div");O(c,"video-click-tracking-container");c.appendChild(b);aI(a).appendChild(c)}else b=Zc("div"),sg(b,["video-click-tracking","ad-video"]),aI(a).appendChild(b);a.j=b}return a.j}$H.prototype.J=function(){$H.G.J.call(this);this.b&&(cI(this.X.app,this.b),this.b=null);bI(this);cd(aI(this));cd(dI(this));this.j=this.g=null;delete this.X}; 
function eI(a){if(!a.b){var b;b=a.X.app;if(b.b.$b){var c=Qf(b.k),d=bg(b.k);b.V=new Bf(c.x,c.y,d.width,d.height);fI(b.A);eu(b.k,1);du(b.k);b=b.k}else b=VE.getTag(void 0);a.b=b;sg(a.b,["video-stream","ad-video"])}return a.b};function gI(){mF.call(this,84,84);this.g=this.width/2;this.k=this.height/2}x(gI,mF);var hI=3*Math.PI/2,iI=2*Math.PI;function jI(a,b){UF.call(this,a.app.g.j,["a","videowall-still",{tabIndex:0,style:"{{background}}",href:"{{linkurl}}"},["span","videowall-still-featured-label",Y(0,"YTP_FEATURED")],["span","videowall-still-info",["span","videowall-still-info-bg"],["span","videowall-still-info-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.B=this.g=this.o=null;this.j=0;this.b=this.k=null;this.listen("click",this.mw);this.listen("keypress",this.ow)}x(jI,UF);f=jI.prototype; 
f.Lf=function(a,b){jI.G.Lf.call(this,a,b);Xv(this.template,"linkurl",kI(this.X.R(),this.videoId,this.g));this.A=a.session_data?yi(a.session_data,"&"):null;this.o=a.endscreen_autoplay_session_data;this.g=a.list;var c=!1,d=!1,e=!1;"1"==a.is_episodic?d=!0:this.g&&"RD"==us(this.g).type?e=!0:this.g&&(c=!0);Q(this.element,"videowall-still-featured",!!a.featured);Q(this.element,"videowall-still-list",c);Q(this.element,"videowall-still-episodic",d);Q(this.element,"videowall-still-mix",e)}; 
f.select=function(a){lI(this);mI(this.X.app,this.videoId,a?Xr.g(this.o):this.A,this.g||void 0,void 0)}; 
f.ep=function(){var a=new Date-this.B,b=this.k,c=a/1E4;b.context.clearRect(0,0,b.width,b.height);b.context.beginPath();b.context.arc(b.g,b.k,42,0,iI);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, 
hI,c*iI+hI,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();b=Math.max(1E4-a,0);Xv(this.b,"autoplay",Ze("YTP_AUTOPLAY_COUNTDOWN_2",{SECONDS_LEFT:Math.ceil(b/1E3)}));1E4<=a&&this.select(!0)};f.zv=function(a){a.stopPropagation();this.j&&(this.C.log({cancelButtonClick:"1"}),lI(this))};function lI(a){a.j&&(We(a.j),a.j=0,Q(a.element,"videowall-still-autoplay",!1))}f.mw=function(a){aw(a)&&(this.select(!1),a.stopPropagation(),a.preventDefault())}; 
f.ow=function(a){switch(a.keyCode){case 13:case 32:this.select(),a.preventDefault()}};f.J=function(){lI(this);jI.G.J.call(this)};function nI(a,b,c,d){RH.call(this,a,b,"videowall-endscreen",d);this.B=c;this.g=[];this.j=null;this.o=new qw(sa(O,this.element,"ytp-animate-tiles"),0);R(this,this.o);this.k=new Sv(["div","ytp-endscreen-content"]);R(this,this.k);this.k.W(this.element);this.hide()}x(nI,RH);nI.j=79;nI.g=54;nI.b=1;f=nI.prototype;f.create=function(){nI.G.create.call(this);var a=this.b.getVideoData();a&&(this.j=a.A);this.uj();this.Wa.subscribe("onResize",this.uj,this);this.Wa.subscribe("videodatachange",this.Nq,this)}; 
f.destroy=function(){this.Wa.ga("onResize",this.uj,this);this.Wa.ga("videodatachange",this.Nq,this);Qh(this.g);this.j=[];this.g=[];nI.G.destroy.call(this)};f.dl=function(){return this.b.getVideoData().hh}; 
f.show=function(){nI.G.show.call(this);this.o.start();if(this.A?this.dl():this.g[0].o){var a=this.g[0];lI(a);if(!a.b){a.b=new Sv(["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);var b=new kB(a.D);R(a,b);b.listen("click",a.zv,a);b.W(a.b.K(),0);lB(b,"videowall-still-listlabel-autoplay-cancel"); 
b.pa(Y(0,"YTP_CANCEL"));a.k=new gI;R(a,a.k);O(a.k.K(),"autoplay-play-canvas");a.k.W(a.element)}Q(a.element,"videowall-still-autoplay",!0);a.C.log({cancelButtonShow:"1"});a.B=new Date;a.j=Ve(v(a.ep,a),50);a.ep()}};f.hide=function(){nI.G.hide.call(this);this.uc&&lI(this.g[0])}; 
f.uj=function(){if(this.j&&this.j.length){var a=this.element,b;t:{if(rg(Jt(this.b),"ad-showing")&&(b=H("ad-container"))){b=bg(b).height+20;break t}b=0}dy(a,"marginBottom",b+"px");var a=this.b.R().b,c=a.U,d=a.P,e=a.O||c||d,a=a.L,g=bg(this.element),h=nI.j,k=nI.g;if(c)h=80,k=45;else if(e||a)h=96,k=54;var l=g.width/g.height,p=h/k;b=a=0;var r=Math.max(g.width/h,2),u=Math.max(g.height/k,2),t=this.j.length,z=t,y=4<=r&&4<=u&&(SH(this,this.j[0],6<=r&&6<=u)||d),d=d&&6<=t&&8<=r&&8<=u;y&&(z+=3);for(d&&(z+=3);0< 
z&&(a<r||b<u);){var N=a/2,ra=b/2,zd=a<=r-2&&z>=ra,ff=b<=u-2&&z>=N;if(N/ra*p>l&&ff)z-=N,b+=2;else if(zd)z-=ra,a+=2;else if(ff)z-=N,b+=2;else break}p=!1;r=y?6:4;3<=z&&6>=t-z&&(b>=r||a>=r)&&!d&&(p=!0);h*=a;k*=b;t=1;t=h/k<l?g.height/k:g.width/h;e?(t=c?Math.min(t,1.7):Math.min(t,1.42),h=Math.min(g.width,h*t),k=Math.min(g.height,k*t)):(t=Math.min(t,1.25),h=Math.min(g.width,h*t*Ib((g.width-h*t)/h+1,1,1.4)),k=Math.min(g.height,k*t*Ib((g.height-k*t)/k+1,1,1.1)));c=this.k.K();Zf(c,h,k);dy(c,"marginLeft",h/ 
-2+"px");dy(c,"marginTop",k/-2+"px");e=h+nI.b;k+=nI.b;g=0;h=!1;for(t=0;t<a;t++)for(z=0;z<b;z++)u=d&&1<=g&&!h?g+1:g,r=0,p&&t>=a-2&&z>=b-2?r=1:0==z%2&&0==t%2&&(y&&4>z&&4>t?0==z&&0==t&&(r=4):d&&z>=b-4&&t>=a-4?z==b-4&&t==a-4&&(h=!0,u=1,r=4):r=2),0!=r&&(l=this.g[g],l||(l=new jI(this.b,this.B),this.g[g]=l,N=l.K(),c.appendChild(N)),l.Lf(this.j[u],2<r),u=Math.floor(k*z/b),N=Math.floor(e*t/a),ra=Math.floor(k*(z+r)/b)-u-nI.b,zd=Math.floor(e*(t+r)/a)-N-nI.b,Of(l.K(),N,u),Zf(l.K(),zd,ra),dy(l.K(),"transitionDelay", 
(z+t)/50+"s"),Q(l.K(),"videowall-still-mini",1==r),g++);for(a=this.g.length-1;a>=g;a--)l=this.g[a],ed(l.K()),Oh(l);this.g.length=g}};f.Nq=function(){var a=this.b.getVideoData().A;this.j!=a&&(this.j=a,this.uj())};function oI(a){xu.call(this,a);Ye({});this.ua="endscreen";this.qc="end";this.g=null;var b=a.R();pI(a)?this.g=new nI(this.b,this.M,this,b.b.wa):b.Fh?(a=b.b.D,b=new XH(this.b,this.M,a),a&&Rg(b.g.K(),"click",v(this.zA,this)),this.g=b):this.g=new RH(this.b,this.M);this.g.W(Jt(this.b))}x(oI,xu);function qI(a){return rI(a.R())&&1==bt(a.app).getPlayerType()}function pI(a){a=a.R();return a.Qc&&!a.Fh}f=oI.prototype;f.Ja=function(a){return qI(a)}; 
f.create=function(){oI.G.create.call(this);sI(this);this.b.getVideoData().subscribe("dataupdated",this.Hr,this)};f.destroy=function(){this.b.getVideoData().ga("dataupdated",this.Hr,this);yu(this);this.g.destroy();oI.G.destroy.call(this)};f.load=function(){oI.G.load.call(this);this.g.show();if(this.b.R().Fh&&.01>Math.random()){var a=this.b.R().b.D;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){oI.G.unload.call(this);this.g.hide()}; 
f.Mc=function(a){oI.G.Mc.call(this,a);var b=this.b.getVideoData(),c=!pI(this.b)||!(!b.A||!b.A.length);this.b.R();b=qs(b,"ypc_module");c&&!b&&("preload"==a.getId()?this.g.create():tI(this.b.app)||this.load())};f.qd=function(a){"load"==a.getId()&&this.loaded&&this.unload();oI.G.qd.call(this,a)};f.Hr=function(){yu(this);sI(this)};f.zA=function(a){var b=this.g.g.videoId,b=kI(this.b.R(),b,null);Cu(this,b,a.ctrlKey)}; 
function sI(a){var b=Math.max(1E3*(a.b.getVideoData().Qa-10),0),b=new nu(b,2147483647,{id:"preload"}),c=new nu(2147483647,2147483647,{id:"load",priority:6});a.Sf(b,c)}function uI(a){return qI(a)?new oI(a):null};function vI(a){pf("/gen_204?"+a,void 0)}function wI(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);pf(h)};function xI(a,b,c,d,e,g){this.args=arguments;this.source=g||null}x(xI,Hz);function yI(a,b,c,d,e,g,h){this.args=arguments;this.source=h||null}x(yI,Hz);var zI=new Iz("subscription-subscribe"),AI=new Iz("subscription-unsubscribe");function BI(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=Xh("LOGGED_IN",function(b){Zh(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",$h,void 0);function CI(){CF.call(this)}x(CI,CF);da(CI);f=CI.prototype;f.Pd="subscription-button"; 
f.register=function(){EF(this,"click",this.Kt);DF(this,"subscription-subscribe-loading",this.Jt);DF(this,"subscription-subscribe-loaded",this.It);DF(this,"subscription-unsubscirbe-loading",this.Jt);DF(this,"subscription-unsubscribe-loaded",this.It);DF(this,"subscription-subscribe-success",this.qE);DF(this,"subscription-unsubscribe-success",this.rE);DF(this,"subscription-enable-ypc",this.pE);DF(this,"subscription-disable-ypc",this.oE)}; 
f.Kt=function(a){var b=this.$(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.$(a,"target")||"_self",window.open(b,a);else if(c){b=this.$(a,"channel-external-id");c=this.$(a,"sessionlink");var d;if(this.$(a,"ypc-enabled")){d=this.$(a,"ypc-item-type");var e=this.$(a,"ypc-item-id"),g=this.$(a,"ypc-offers-url");d={itemType:d,itemId:e,offersUrl:g,subscriptionElement:a}}else d=null;e=this.$(a,"parent-url");this.$(a,"is-subscribed")? 
(g=this.$(a,"subscription-id"),Nz(AI,new yI(b,g,d,a,c,e))):Nz(zI,new xI(b,d,a,c,e))}else DI(this,a)};f.Jt=function(a){this.zg(a,this.Qt,!0)};f.It=function(a){this.zg(a,this.Qt,!1)};f.qE=function(a,b){this.zg(a,this.Rt,!0,b)};f.rE=function(a){this.zg(a,this.Rt,!1)};f.pE=function(a){this.zg(a,this.GE)};f.oE=function(a){this.zg(a,this.FE)}; 
f.Rt=function(a,b,c){b?(vg(a,"is-subscribed","true"),c&&vg(a,"subscription-id",c)):(this.removeData(a,"is-subscribed"),this.removeData(a,"subscription-id"));EI(this,a)};f.Qt=function(a,b){var c=ud(a,"yt-uix-button-subscription-container");Q(c,"yt-subscription-button-disabled-mask-container",b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b}; 
function EI(a,b){var c=a.$(b,"style-type"),d=!!a.$(b,"is-subscribed"),c="-"+c,e="yt-uix-button-subscribed"+c;Q(b,"yt-uix-button-subscribe"+c,!d);Q(b,e,d);a.$(b,"subscriber-count-tooltip")&&!a.$(b,"subscriber-count-show-when-subscribed")&&(c=Z(GF.getInstance()),Q(b,c,!d),b.title=d?"":a.$(b,"subscriber-count-title"));d?L(function(){O(b,"hover-enabled")},1E3):P(b,"hover-enabled")} 
f.GE=function(a){var b=!!this.$(a,"ypc-item-type"),c=!!this.$(a,"ypc-item-id"),d=!!this.$(a,"ypc-offers-url");!this.$(a,"ypc-enabled")&&b&&c&&d&&(O(a,"ypc-enabled"),vg(a,"ypc-enabled","true"))};f.FE=function(a){this.$(a,"ypc-enabled")&&(P(a,"ypc-enabled"),this.removeData(a,"ypc-enabled"))};function FI(a,b){var c=Nc(Z(a));return hb(c,function(a){return b==this.$(a,"channel-external-id")},a)}f.hF=function(a,b,c){var d=yb(arguments,2);B(a,function(a){b.apply(this,ub(a,d))},this)}; 
f.zg=function(a,b,c){var d=FI(this,a),d=ub([d],yb(arguments,1));this.hF.apply(this,d)};function DI(a,b){var c=v(function(a){a.discoverable_subscriptions&&Re("SUBSCRIBE_EMBED_DISCOVERABLE_SUBSCRIPTIONS",a.discoverable_subscriptions);this.Kt(b)},a);BI(c)};function GI(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))qc&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=Da(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 HI(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=GI(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function II(a){X.call(this,["div","ytp-action-buttons"]);this.k=new kB(a,"ytp-button-info",Y(0,"YTP_MORE_INFO"));R(this,this.k);this.k.W(this.element);mB(this.k,3500);this.j=new kB(a,"ytp-button-share",Y(0,"YTP_SHARE"));R(this,this.j);this.j.W(this.element);mB(this.j,3400);this.b=new kB(a,"ytp-button-dislike",Y(0,"YTP_DISLIKE"));R(this,this.b);mB(this.b,3300);vg(this.b.K(),"tooltip-below","1");a.Hf(this.b.K(),"YTP_DISLIKE_AS",Y(0,"YTP_DISLIKE"));this.g=new kB(a,"ytp-button-like",Y(0,"YTP_LIKE")); 
R(this,this.g);mB(this.g,3200);vg(this.g.K(),"tooltip-below","1");a.Hf(this.g.K(),"YTP_LIKE_AS",Y(0,"YTP_LIKE"))}x(II,X);function JI(){X.call(this,["div","ytp-sentiment-display",["div","ytp-sentiment-bar",["div","ytp-sentiment-bar-likes"],["div","ytp-sentiment-bar-dislikes"]]]);this.g=this.template.b["ytp-sentiment-bar-likes"];this.b=this.template.b["ytp-sentiment-bar-dislikes"]}x(JI,X);JI.prototype.J=function(){this.b=this.g=null;JI.G.J.call(this)};function KI(){var a=["button","ytp-button-share-more",{tabIndex:3800},["div",["ytp-button-share-more-icon","yt-uix-button-icon-new-window"]],["span","ytp-button-share-more-content",Y(0,"YTP_MORE")]];X.call(this,a)}x(KI,X);function LI(a,b,c,d){kB.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);O(this.element,"share-service-icon-sharebar");mB(this,3700)}x(LI,kB);function MI(){X.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.b=this.template.b["ytp-share-url"]}x(MI,X);MI.prototype.J=function(){this.b=null;MI.G.J.call(this)};function NI(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")]]];$E.call(this,c);this.k=b;this.B=a;this.b=null;this.o=[];this.j=this.g=null;this.A=new kB(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"]);mB(this.A,3900)} 
x(NI,$E);function OI(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.j?a.j.videoId:void 0};a.k.Ua&&(b.authuser=a.k.Ua);a.k.gb&&(b.pageid=a.k.gb);var c;PI(a)?(c=H("ytp-share-bar-checkbox"),c=!c||rg(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=PI(a));Li("/share_ajax",{context:a,method:"GET",onError:a.F,onSuccess:a.C,jg:b})} 
NI.prototype.C=function(a,b){if(!this.ha()){QI(this);var c=this.template.b["share-bar-content"];this.b=new MI;R(this,this.b);Pc(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 LI(this.B,d[e].name,d[e].sname,d[e].img);R(this,g);g.W(c);g.listen("click",sa(HI,d[e].url,{}));this.o.push(g)}this.g=new KI;R(this,this.g);this.g.listen("click",v(this.I,this,b.more));this.g.W(c);pz(this,this.template.b["ytp-share-bar-checkbox"],"click",this.D,this);this.H("menu_show")}}; 
NI.prototype.F=function(){};NI.prototype.I=function(a){GI(a)};function PI(a){return a.j?a.j.Oa:void 0}NI.prototype.D=function(){var a=H("ytp-share-bar-checkbox");ug(a,"ytp-share-bar-checked");OI(this)};function QI(a){a.b&&(a.b.Ic(),a.b=null);a.g&&(a.g.Ic(),a.g=null);B(a.o,function(a){ed(a.K())});a.o=[]};function RI(a,b){var c=["div","html5-title",["div",["html5-like-dislike-buttons","hid"]],["a","html5-title-logo",{tabIndex:3550,href:"{{logolink}}","aria-label":Y(0,"YTP_URL_NAVIGATE")},"YouTube"],["div","html5-title-text-wrapper",["a","html5-title-text",{tabIndex:3100,href:"{{titlelink}}"},"{{titletext}}"]]];$E.call(this,["div","html5-info-bar",c,["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.g=b;this.B=a;this.I=new SF(this.K());R(this,this.I);this.b=null;pz(this,this.template.b["html5-title-text"],"click",this.Jp);c=this.template.b["html5-title-logo"];vg(c,"tooltip",Y(0,"YTP_URL_NAVIGATE")); 
vg(c,"tooltip-below","1");a.Nf(c);pz(this,c,"click",this.Jp);c=this.template.b["html5-title"];this.j=new II(this.B);R(this,this.j);this.j.W(c,1);this.j.j.listen("click",this.Ji,this);this.j.k.listen("click",this.jl,this);this.g.mc&&this.j.k.hide();this.o=null;this.D=!1;this.k=null}x(RI,$E);f=RI.prototype;f.update=function(a){this.b=a;if(this.k){var b=this.k;b.j=a;OI(b)}b=a.title||"";a=SI(this.g,a);this.template.update({titletext:b,titlelink:a,logolink:a})};f.Jp=function(a){aw(a)&&(this.Ut(),a.preventDefault())}; 
f.Ut=function(){this.Wt()};f.jl=function(){if(!this.D){this.D=!0;WH(this.b?this.b.videoId:void 0,!1,this.wA,ca,this,this.g.Ua,this.g.gb);if(!this.o){var a=this.template.b["html5-info-panel-loading-icon"];this.o=new tF;R(this,this.o);O(this.o.element,"html5-info-panel-loader");this.o.W(a);R(this,this.o)}this.o.show()}P(this.element,"show-share");return ug(this.element,"show-more-info")}; 
f.Ji=function(){P(this.element,"show-more-info");if("detailpage"!=this.g.ba){if(!this.k){var a=this.k=new NI(this.B,this.g);a.j=this.b;OI(a);this.k.W(this.template.b["html5-info-bar"]);this.k.A.listen("click",this.Ji,this);this.k.subscribe("menu_show",v(this.sq,this))}ug(this.element,"show-share");this.sq();Q(this.element,"share-with-playlist",!!PI(this.k))}};f.sq=function(){rg(this.element,"show-share")&&this.k.b&&this.k.b.K().focus()}; 
f.wA=function(a,b){if(!this.ha()){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;pz(this,e,"click",this.dr);e=H("html5-author-name",c);md(e,d.channel_title||d.public_name||d.username);pz(this,e,"click",this.dr);var e=b.video_info,g=H("html5-subscribe-button-container",c);g.innerHTML=d.subscription_button_html?d.subscription_button_html:"";d=CI.getInstance();(d=H(Z(d),g))&&this.B.Hf(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 JI;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);md(d,e.description);this.o.hide();c=H("html5-info-panel-content",c);$x(c)}}; 
f.dr=function(){var a=this.g,b=this.b,c="",c=b.Ca?a.tb+"channel/UC"+b.Ca:a.tb+"user/"+b.author;this.wn(c)};f.wn=function(a){GI(a)};f.Wt=function(){this.wn(SI(this.g,this.b))};f.J=function(){this.b=this.g=null;RI.G.J.call(this)};function TI(){X.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}x(TI,X);TI.prototype.lj=function(a){Xv(this.template,"index",a+1)};function UI(a){aD.call(this,a,"ytp-button-expand",Y(0,"YTP_ST_EXPAND"),"ytp-button-collapse",Y(0,"YTP_ST_COLLAPSE"));this.pa([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Y(0,"YTP_PLAYLIST")]])}x(UI,aD);function VI(a){X.call(this,["div","ytp-playlist-tray-controller"]);this.b=new UI(a);this.b.W(this.template.K());R(this,this.b);this.g=new TI;this.g.W(this.template.K());R(this,this.g)}x(VI,X);function WI(a,b){X.call(this,["div","ytp-playlist-tray-item",["span","ytp-playlist-tray-item-index","{{index}}"],["span","ytp-playlist-tray-item-now-playing",""],["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.author,image:SB(a.videoId,"default.jpg")})}x(WI,X); 
WI.prototype.lj=function(a){Q(this.element,"ytp-playlist-tray-item-current",this.b==a)};function XI(){$E.call(this,["div","ytp-playlist-tray-tray"]);this.b=null;this.g=[]}x(XI,$E);function YI(a,b){a.b&&a.b.ga("shuffle",a.j,a);a.b=b;a.b.subscribe("shuffle",a.j,a);a.j()}XI.prototype.j=function(){Qh(this.g);this.g=[];cd(this.element);for(var a=0;a<=this.b.Bc-1;++a){var b=Hs(this.b,a);b&&(b=new WI(b,a),b.lj(this.b.Na),this.g.push(b),b.listen("click",v(this.k,this,a)),b.W(this.element))}};XI.prototype.k=function(a){this.H("playvideoat",a)}; 
XI.prototype.J=function(){Qh(this.g);this.g=[];cd(this.element);XI.G.J.call(this)};function ZI(a){xu.call(this,a);var b=Jt(a);this.C=a.app.g.j;this.A=!1;this.j=this.k=null;this.B=H("ytp-button-playlist",b);Rg(this.B,"click",v(this.vp,this));this.g=this.o=null}x(ZI,xu);f=ZI.prototype;f.ua="playlist"; 
f.create=function(){ZI.G.create.call(this);$I(this,this.b.gd());this.o=new Sv(["div","ytp-playlist-tray-container"]);this.o.W(Jt(this.b));this.j=new XI;this.j.subscribe("playvideoat",this.fq,this);this.j.W(this.o.K(),0);this.g=new VI(this.C);this.g.W(H("html5-title",void 0),0);this.g.b.listen("click",this.vp,this);this.subscribe("fullscreentoggled",this.wq,this);this.subscribe("videodatachange",this.yq,this);this.subscribe("clearvideooverlays",this.xq,this);this.Qi()}; 
f.Qi=function(){var a=this.b.Kp(),b=this.g.g;null!=a?b.show():b.hide();this.g.g.lj(a);a=this.g.g;b=this.b.gd();Xv(a.template,"length",b.Bc)};f.destroy=function(){ZI.G.destroy.call(this);$I(this,null);this.ga("fullscreentoggled",this.wq,this);this.ga("videodatachange",this.yq,this);this.ga("clearvideooverlays",this.xq,this);ed(this.o.K());this.j.dispose();this.j=null;this.o.dispose();this.o=null;ed(this.g.K());this.g.dispose();this.g=null}; 
f.load=function(){ZI.G.load.call(this);this.A||(YI(this.j,this.k),this.A=!0);for(var a=this.j,b=0;b<a.g.length;b++)a.g[b].lj(a.b.Na);cD(this.g.b)};f.unload=function(){ZI.G.unload.call(this);this.A=!1;dD(this.g.b)};f.xq=function(){this.loaded&&this.unload()};f.fq=function(a){this.b.Xl(a);this.unload()};f.vp=function(){this.loaded?this.unload():(this.H("command_clear_video_overlays"),this.load())};f.hide=function(){var a=H("ytp-playlist-tray-info");P(a,"show-more-info");P(a,"show-share")}; 
f.wq=function(a){var b=this.b.R().ba;this.loaded&&!a&&"detailpage"==b&&this.unload()};f.yq=function(){$I(this,this.b.gd());this.A&&YI(this.j,this.k);this.Qi()};function $I(a,b){a.k&&a.k.ga("shuffle",a.Qi,a);a.k=b;a.k&&a.k.subscribe("shuffle",a.Qi,a)}ZI.Ja=function(a){return!!a.gd()};ZI.prototype.Ja=function(a){return ZI.Ja(a)};ZI.prototype.bn=function(a){return!ZI.Ja(a)};ZI.b=function(a){return ZI.Ja(a)?new ZI(a):null};ZI.prototype.J=function(){this.j.ga("playvideoat",this.fq,this);Wg(this.B);ZI.G.J.call(this)};function aJ(a,b){this.b=a;this.g=!!b}x(aJ,Mh); 
function bJ(a,b,c){if(c)if(a.g)cJ(b,c);else{var d;a.b&&(d=dJ(a.b));d&&b.length?(d=[d,"/cache/videos?q=",b.join("&q=")].join(""),Li(d,{format:"JSON",method:"GET",context:a,timeout:2E3,onSuccess:function(a,d){var h=0;d&&d.ids&&(h=d.ids.length);eJ("search","success",{"num-requested":b.length,"num-cached":h});c(d)},onError:function(){eJ("search","error",{"num-requested":b.length});c({})},qh:function(){eJ("search","timeout",{"num-requested":b.length});fJ("__notfound__");c({})}})):c({})}} 
function gJ(a,b,c){if(c)if(a.g)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.b&&(d=dJ(a.b));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Li(d,{format:"JSON",method:"GET",context:a,timeout:600,onSuccess:function(a,d){c(d);eJ("meta","success",{v:b})},onError:function(){eJ("meta","error",{v:b});c({})},qh:function(){eJ("meta","timeout",{v:b});fJ("__notfound__");c({})}})):c({})}}function eJ(a,b,c){a={a:"spacecast",module:"cache",request:a,status:b};dc(a,c);vI(Yd(a))} 
function cJ(a,b){a.length?b({ids:a}):b({})}aJ.prototype.J=function(){this.b=null;aJ.G.J.call(this)};function hJ(a){(this.b=a)&&fJ("http://"+a)}x(hJ,Mh);function dJ(a){var b;(b=(b=ui("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.b?"http://"+a.b:null;return b}hJ.prototype.reset=function(){vi("yt-spacecast-uri")};function fJ(a){var b=ui("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;ri("yt-spacecast-uri",b)};var iJ=q("yt.prefs.UserPrefs.prefs_")||{};ba("yt.prefs.UserPrefs.prefs_",iJ,void 0);function jJ(){CF.call(this)}x(jJ,CF);f=jJ.prototype;f.rd=function(a){var b=CF.prototype.rd.call(this,a);return b?b:a};f.$=function(a,b){var c=jJ.G.$.call(this,a,b);return c?c:(c=jJ.G.$.call(this,a,"card-config"))&&(c=q(c))&&c[b]?c[b]:null}; 
f.show=function(a){var b=this.rd(a);if(b){O(b,Z(this,"active"));var c=kJ(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;lJ(this,a,c);var d=Z(this,"card-visible"),e=this.$(a,"card-delegate-show")&&this.$(b,"card-action");this.ng(b,"card-action",a);this.g=a;ay(c);L(v(function(){e||$x(c);mJ(c);O(c,d)},this),10)}}}; 
function kJ(a,b,c){var d=c||b,e=Z(a,"card");c=a.td(d);var g=Mc(Z(a,"card")+Bg(d));if(g)return a=H(Z(a,"card-body"),g),kd(a,c)||(ed(c),a.appendChild(c)),g;g=document.createElement("div");g.id=Z(a,"card")+Bg(d);g.className=e;(d=a.$(d,"card-class"))&&sg(g,d.split(/\s+/));d=document.createElement("div");d.className=Z(a,"card-border");b=a.$(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;ed(c);h.appendChild(c);d.appendChild(a);d.appendChild(h);g.appendChild(e);g.appendChild(d);document.body.appendChild(g);return g} 
function lJ(a,b,c){var d=a.$(b,"orientation")||"horizontal",e=a.$(b,"position"),g=!!a.$(b,"force-position"),h=a.$(b,"position-fixed"),d="horizontal"==d,k="bottomright"==e||"bottomleft"==e,l="topright"==e||"bottomright"==e,p,r;l&&k?(r=7,p=4):l&&!k?(r=6,p=5):!l&&k?(r=5,p=6):(r=4,p=7);var u=Vf(document.body),e=Vf(b);u!=e&&(r^=2);var t;d?(e=b.offsetHeight/2-12,t=new F(-12,b.offsetHeight+6)):(e=b.offsetWidth/2-6,t=new F(b.offsetWidth+6,-12));var z=bg(c),e=Math.min(e,(d?z.height:z.width)-24-6);6>e&&(e= 
6,d?t.y+=12-b.offsetHeight/2:t.x+=12-b.offsetWidth/2);var y=null;g||(y=10);z=Z(a,"card-flip");a=Z(a,"card-reverse");Q(c,z,l);Q(c,a,k);y=vF(b,r,c,p,t,null,y);!g&&y&&(y&48&&(l=!l,r^=2,p^=2),y&192&&(k=!k,r^=1,p^=1),Q(c,z,l),Q(c,a,k),vF(b,r,c,p,t));h&&(b=parseInt(c.style.top,10),g=Tc(document).y,dy(c,"position","fixed"),dy(c,"top",b-g+"px"));u&&(c.style.right="",b=dg(c),b.left=b.left||parseInt(c.style.left,10),g=Rc(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.rd(a)){var b=Mc(Z(this,"card")+Bg(a));b&&(P(a,Z(this,"active")),P(b,Z(this,"card-visible")),ay(b),this.g=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(ed(b.cardMask),b.cardMask=null))}};function nJ(a){a.g&&a.hide(a.g)}f.QB=function(a,b){var c=this.rd(a);if(c){if(b){var d=this.td(c);if(!d)return;d.innerHTML=b}rg(c,Z(this,"active"))&&(c=kJ(this,a,c),lJ(this,a,c),$x(c),mJ(c))}}; 
f.td=function(a){var b=a.cardContentNode;if(!b){var c=Z(this,"content"),d=Z(this,"card-content");(b=(b=this.$(a,"card-id"))?Mc(b):H(c,a))||(b=document.createElement("div"));var e=b;P(e,c);O(e,d);a.cardContentNode=b}return b}; 
function mJ(a){var b=a.cardMask;b||(b=document.createElement("iframe"),b.src='javascript:""',sg(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 oJ(){CF.call(this);this.b={};this.j={}}x(oJ,jJ);da(oJ);f=oJ.prototype;f.Pd="clickcard";f.register=function(){EF(this,"click",this.ME,"target");EF(this,"click",this.LE,"close")};f.ME=function(a,b,c){b=sd(c.target,"button");b&&b.disabled||(a=(b=this.$(a,"card-target"))?Mc(b):a,b=this.rd(a),this.$(b,"disabled")||(rg(b,Z(this,"active"))?(this.hide(a),P(b,Z(this,"active"))):(this.show(a),O(b,Z(this,"active")))))}; 
f.show=function(a){oJ.G.show.call(this,a);var b=this.rd(a);if(!xg(b,"click-outside-persists")){var c=ma(a);if(this.b[c])return;b=Rg(document,"click",v(this.PB,this,a));this.b[c]=b}a=Rg(window,"resize",v(this.QB,this,a,void 0));this.j[c]=a};f.hide=function(a){oJ.G.hide.call(this,a);a=ma(a);var b=this.b[a];b&&(Tg(b),this.b[a]=null);if(b=this.j[a])Tg(b),this.j[a]=null};f.PB=function(a,b){ud(b.target,"yt-uix"+(this.Pd?"-"+this.Pd:"")+"-card")||this.hide(a)}; 
f.LE=function(a){(a=ud(a,Z(this,"card")))&&this.hide(a.cardTargetNode)};function pJ(){CF.call(this)}x(pJ,jJ);da(pJ);f=pJ.prototype;f.Pd="hovercard";f.register=function(){EF(this,"mouseenter",this.AE,"target");EF(this,"mouseleave",this.CE,"target");EF(this,"mouseenter",this.BE,"card");EF(this,"mouseleave",this.DE,"card")}; 
f.AE=function(a){if(qJ!=a){qJ&&(this.hide(qJ),qJ=null);var b=v(this.show,this,a),c=parseInt(this.$(a,"delay-show"),10),b=L(b,-1<c?c:200);vg(a,"card-timer",b.toString());qJ=a;a.alt&&(vg(a,"card-alt",a.alt),a.alt="");a.title&&(vg(a,"card-title",a.title),a.title="")}}; 
f.CE=function(a){var b=parseInt(this.$(a,"card-timer"),10);M(b);this.rd(a).isCardHidable=!0;b=parseInt(this.$(a,"delay-hide"),10);b=-1<b?b:200;L(v(this.UD,this,a),b);if(b=this.$(a,"card-alt"))a.alt=b;if(b=this.$(a,"card-title"))a.title=b};f.UD=function(a){this.rd(a).isCardHidable&&(this.hide(a),qJ=null)};f.BE=function(a){a&&(a.cardRootNode.isCardHidable=!1)};f.DE=function(a){a&&this.hide(a.cardTargetNode)};var qJ=null;function rJ(a,b,c){this.Lc=a;this.o=!1;this.g=new Rh;this.A=Ug(this.Lc,"click",v(this.yA,this),"yt-dialog-dismiss");sJ(this);this.B=b;this.C=c;this.k=this.j=null}var tJ={LOADING:"loading",VE:"content",eL:"working"};function uJ(a,b){a.ha()||a.g.subscribe("post-all",b)}function sJ(a){a=H("yt-dialog-fg-content",a.Lc);var b=[];Nb(tJ,function(a){b.push("yt-dialog-show-"+a)});tg(a,b);O(a,"yt-dialog-show-content")}f=rJ.prototype; 
f.show=function(){if(!this.ha()){document.activeElement&&document.activeElement!=document.body&&document.activeElement.blur();this.b||(this.b=Mc("yt-dialog-bg"),this.b||(this.b=Zc("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=Rc(b).height;if(Sc(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";$x(this.b);Hg(this.Lc);a=vJ(this);wJ(a);this.B||(this.j=Rg(document,"keydown",v(this.uA,this)));a=this.Lc;d=Xh("player-added",this.tA,this);vg(a,"player-ready-pubsub-key",d);this.C&&(this.k=Rg(document,"click",v(this.vA,this)));$x(this.Lc);O(document.body,"yt-dialog-active");nJ(oJ.getInstance());nJ(pJ.getInstance())}}; 
function xJ(){var a=Nc("yt-dialog");return jb(a,function(a){return Zx(a)})}f.tA=function(){Hg(this.Lc)};function vJ(a){var b=Oc("iframe",null,a.Lc);B(b,function(a){var b=xg(a,"onload");b&&(b=q(b))&&Rg(a,"load",b);if(b=xg(a,"src"))a.src=b},a);return vb(b)}function wJ(a){B(document.getElementsByTagName("iframe"),function(b){-1==fb(a,b)&&O(b,"iframe-hid")})}function yJ(){var a=Nc("iframe-hid");B(a,function(a){P(a,"iframe-hid")})} 
f.yA=function(a){a=a.currentTarget;a.disabled||(a=xg(a,"action")||"",zJ(this,a))}; 
function zJ(a,b){if(!a.ha()){a.g.H("pre-all");a.g.H("pre-"+b);ay(a.Lc);nJ(oJ.getInstance());nJ(pJ.getInstance());xJ()||(ay(a.b),P(document.body,"yt-dialog-active"),Ig(),yJ());a.j&&(Tg(a.j),a.j=null);a.k&&(Tg(a.k),a.k=null);var c=a.Lc;if(c){var d=xg(c,"player-ready-pubsub-key");d&&(Zh(d),yg(c,"player-ready-pubsub-key"))}a.g.H("post-all");$h("yt-ui-dialog-hide-complete",a);"cancel"==b&&$h("yt-ui-dialog-cancelled",a);a.g&&a.g.H("post-"+b)}} 
f.uA=function(a){L(v(function(){27==a.keyCode&&zJ(this,"cancel")},this),0)};f.vA=function(a){"yt-dialog-base"==a.target.className&&zJ(this,"cancel")};f.ha=function(){return this.o};f.dispose=function(){Zx(this.Lc)&&zJ(this,"dispose");Tg(this.A);this.g.dispose();this.g=null;this.o=!0};ba("yt.ui.Dialog",rJ,void 0);function AJ(){CF.call(this);this.b=[];this.g={}}x(AJ,CF);da(AJ);f=AJ.prototype;f.Pd="button";f.og=null;f.register=function(){EF(this,"click",this.EE);EF(this,"keydown",this.yE);EF(this,"keypress",this.zE);DF(this,"page-scroll",this.xE)};f.EE=function(a){if(a&&!a.disabled){BJ(this,a);if(CJ(this,a)){var b=CJ(this,a),c=ud(b.activeButtonNode||b.parentNode,Z(this));c&&c!=a?(DJ(this,c),L(v(this.St,this,a),1)):Zx(b)?DJ(this,a):this.St(a);a.focus()}this.ng(a,"button-action")}}; 
f.yE=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=CJ(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=nd(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.OE:"table"==e&&(g=this.NE);g&&EJ(this,a,b,c,v(g,this))}}};f.xE=function(){var a=this.g;if(0!=Qb(a))for(var b in a){var c=a[b],d=ud(c.activeButtonNode||c.parentNode,Z(this));if(void 0==d||void 0==c)break;FJ(this,d,c,!0)}}; 
function EJ(a,b,c,d,e){var g=Zx(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=GJ(a,c))?(b=hd(d),"a"==b.tagName.toLowerCase()?window.location=b.href:Xg(b,"click")):h&&DJ(a,b):g?27==d.keyCode?(GJ(a,c),DJ(a,b)):e(b,c,d):(a=rg(b,Z(a,"reverse"))?38:40,d.keyCode==a&&(Xg(b,"click"),d.preventDefault()))}f.zE=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=CJ(this,a),Zx(a)&&c.preventDefault())};function GJ(a,b){var c=Z(a,"menu-item-highlight"),d=H(c,b);d&&P(d,c);return d} 
function HJ(a,b,c){O(c,Z(a,"menu-item-highlight"));b.setAttribute("aria-activedescendant",c.getAttribute("id"))}f.NE=function(a,b,c){var d=GJ(this,b);b=Eg("table",b);var e=Eg("tr",b),e=Oc("td",null,e).length;b=Oc("td",null,b);d=IJ(d,b,e,c);-1!=d&&(HJ(this,a,b[d]),c.preventDefault())};f.OE=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=GJ(this,b);b=hb(Oc("li",null,b),Zx);d=IJ(d,b,1,c);HJ(this,a,b[d]);c.preventDefault()}}; 
function IJ(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 JJ(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 FJ(a,b,c,d){var e=ud(b,Z(a,"group")),g=!!a.$(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=dg(b);if(rg(b,Z(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}rg(b,"flip")&&(rg(b,Z(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;a.$(b,"button-has-sibling-menu")?p=Sf(e):a.$(b,"button-menu-root-container")&&(p=KJ(a,b));qc&&!Bc("8")&&(p=null);var r;p&&(r=dg(p),r=new Af(-r.top,r.left,r.top,-r.left));p=new F(0,1);rg(b,Z(a,"center-menu"))&&(p.x-=Math.round((bg(c).width-bg(b).width)/ 
2));d&&(p.y+=Tc(document).y);if(a=JJ(a,b))b=bg(c),a.style.width=b.width+"px",a.style.height=b.height+"px",vF(e,g,a,h,p,r,197),d&&dy(a,"position","fixed");vF(e,g,c,h,p,r,197)}function KJ(a,b){if(a.$(b,"button-menu-root-container")){var c=a.$(b,"button-menu-root-container");return ud(b,c)}return document.body} 
f.St=function(a){if(a){var b=CJ(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.$(a,"button-has-sibling-menu")?c=a.parentNode:c=KJ(this,a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=JJ(this,a);d&&c.appendChild(d);(c=!!this.$(a,"button-menu-fixed"))&&(this.g[Bg(a).toString()]=b);FJ(this,a,b,c);ai("yt-uix-button-menu-before-show",a,b);$x(b);this.ng(a, 
"button-menu-action",!0);O(a,Z(this,"active"));b=v(this.Qr,this,a,!1);c=v(this.Qr,this,a,!0);d=v(this.WA,this,a,void 0);this.og&&CJ(this,this.og)==CJ(this,a)||LJ(this);$h("yt-uix-button-menu-show",a);Tg(this.b);this.b=[Rg(document,"click",c),Rg(document,"contextmenu",b),Rg(window,"resize",d)];this.og=a}}}; 
function DJ(a,b){if(b){var c=CJ(a,b);if(c){a.og=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");ay(c);a.ng(b,"button-menu-action",!1);var d=JJ(a,b),e=Bg(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=ud(b,Z(a,"group")),g=[Z(a,"active")]; 
e&&g.push(Z(a,"group-active"));tg(b,g);$h("yt-uix-button-menu-hide",b);Tg(a.b);a.b.length=0}}f.WA=function(a,b){var c=CJ(this,a);if(c){b&&(c.innerHTML=b);var d=!!this.$(a,"button-menu-fixed");FJ(this,a,c,d)}};f.getContent=function(a){return H(Z(this,"content"),a)}; 
f.Qr=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=ud(c,Z(this));if(d){var d=CJ(this,d),e=CJ(this,a);if(d==e)return}var d=ud(c,Z(this,"menu")),e=d==CJ(this,a),g=rg(c,Z(this,"menu-item")),h=rg(c,Z(this,"menu-close"));if(!d||e&&(g||h))if(DJ(this,a),d&&b&&this.$(a,"button-menu-indicate-selected")){if(a=H(Z(this,"content"),a))Hc&&"innerText"in c?b=c.innerText.replace(/(
|
|
)/g,"
"):(b=[],rd(c,b,!0),b=b.join("")),b=b.replace(/  /g," ").replace(//g, 
""),b=b.replace(//g,""),Hc||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),md(a,b);MJ(this,d,c)}};function MJ(a,b,c){var d=Z(a,"menu-item-selected");a=Nc(d,b);B(a,function(a){P(a,d)});O(c.parentNode,d)}function CJ(a,b){if(!b.widgetMenu){var c=a.$(b,"button-menu-id"),c=c&&Mc(c),d=Z(a,"menu");c?sg(c,[d,Z(a,"menu-external")]):c=H(d,b);b.widgetMenu=c}return b.widgetMenu} 
function BJ(a,b){if(a.$(b,"button-toggle")){var c=ud(b,Z(a,"group"));if(c&&a.$(c,"button-toggle-group")){var d=a.$(c,"button-toggle-group"),c=Nc(Z(a),c),e=Z(a,"toggled"),g=rg(b,e);B(c,function(a){a!=b||"optional"==d&&g?P(a,e):O(b,e)})}else ug(b,Z(a,"toggled"))}}function LJ(a){a.og&&DJ(a,a.og)};function NJ(){CF.call(this)}x(NJ,CF);da(NJ);f=NJ.prototype;f.Yc=null;f.Pj=null;f.Pd="overlay";f.register=function(){EF(this,"click",this.Vt,"target");EF(this,"click",this.hide,"close");OJ(this)}; 
f.Vt=function(a){if(!this.Yc||!Zx(this.Yc.Lc)){var b=this.rd(a);a=PJ(b,a);b||(b=a?a.overlayParentNode:null);if(b&&a){var c=!!this.$(b,"disable-shortcuts")||!1;this.Yc=new rJ(a,c);this.Pj=b;var d=H("yt-dialog-fg",a);if(d){var e=this.$(b,"overlay-class")||"",g=this.$(b,"overlay-style")||"default",h=this.$(b,"overlay-shape")||"default",e=e?e.split(" "):[];e.push(Z(this,g));e.push(Z(this,h));sg(d,e)}this.Yc.show();OJ(this);c||(c=v(function(a){rg(a.target,"yt-dialog-base")&&QJ(this)},this),a=H("yt-dialog-base", 
a),this.b=Rg(a,"click",c));this.ng(b,"overlay-shown");nJ(oJ.getInstance());LJ(AJ.getInstance())}}};function OJ(a){a.g||(a.g=Xh("yt-uix-overlay-hide",RJ));a.Yc&&uJ(a.Yc,function(){var a=NJ.getInstance();a.Pj=null;a.Yc.dispose();a.Yc=null})}function QJ(a){if(a.Yc){var b=a.Pj;zJ(a.Yc,"overlayhide");a.ng(b,"overlay-hidden");a.Pj=null;a.b&&(Tg(a.b),a.b=null);a.Yc=null}} 
function PJ(a,b){var c;if(a)if(c=H("yt-dialog",a)){var d=Mc("body-container");d&&(d.appendChild(c),a.overlayContentNode=c,c.overlayParentNode=a)}else c=a.overlayContentNode;else b&&(c=ud(b,"yt-dialog"));return c}f.td=function(a){return H("yt-dialog-content",a.overlayContentNode||a)};f.hide=function(){$h("yt-uix-overlay-hide")};function RJ(){QJ(NJ.getInstance())}f.show=function(a){this.Vt(a)};function SJ(a){this.g=a;this.b=[];this.b.push(Xh("yt-uix-load-more-success",this.j,this))}x(SJ,Mh);var TJ=!1;SJ.prototype.j=function(){var a={},b=ub(vb(Nc("spacecast-item")),vb(Nc("yt-lockup-video")));B(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=Tb(a),c=w();bJ(this.g,b,v(this.k,this,a,c))}; 
SJ.prototype.k=function(a,b,c){b=w()-b;var d=0;c&&c.ids&&(UJ(),B(c.ids,function(b){B(a[b],function(a){O(a,"spacecast-cached")})}),d=c.ids.length);vI(Yd({a:"spacecast",module:"highlight",count:Tb(a).length,cached:d,"cache-latency":b}));d&&VJ()};function VJ(){if(Te("INIT_SPACECAST_PROMO")&&!TJ){var a=H("spacecast-promo-overlay");a&&(TJ=!0,NJ.getInstance().show(a))}}function UJ(){var a=q("yt.player.getPlayerByElement");a&&a("player-api")} 
SJ.prototype.J=function(){this.g=null;this.b.length&&(Zh(this.b),this.b=[]);SJ.G.J.call(this)};function WJ(){this.j=this.g=this.b=null}x(WJ,Mh);da(WJ);WJ.prototype.init=function(a){this.b||(this.b=new hJ(a||null),this.g=new aJ(this.b),this.j=new SJ(this.g))};WJ.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);WJ.G.J.call(this);delete WJ.Rb};function XJ(a){xu.call(this,a);this.qc=this.ua="spacecast";this.g=null}x(XJ,xu);f=XJ.prototype;f.Ja=function(){return!!this.b.getVideoData().fb};function YJ(a){return a.getVideoData().fb?new XJ(a):null}f.create=function(){XJ.G.create.call(this);var a=this.b.getVideoData().fb,b=WJ.getInstance();b&&b.init(a);this.g=b;this.load()};f.destroy=function(){XJ.G.destroy.call(this);this.g=null}; 
f.load=function(){XJ.G.load.call(this);var a=this.b.getVideoData().videoId,b=this.g.g,c=w(),c=v(this.SA,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),eJ("meta","prefetch",{v:a})):gJ(b,a,c)};f.SA=function(a,b,c){b=w()-b;var d=0;if(c){var e=c.id;c=c.fmt_list;if(e&&c){var g={};B(c,function(a){a.itag&&(g[a.itag.toString()]=!0)});if(c=ZJ(this,dJ(this.g.b),e,g))d=this.b.getVideoData(),d.ca=c,hs(d),this.b.Ip("auto"),d=1}}zu(this);vI(Yd({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))}; 
function ZJ(a,b,c,d){if(!b)return null;a=a.b.getVideoData();a=as(a.De);a=hb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=Ci(b)||"",g=Number(Qd(b)[4]||null)||null;return C(a,function(a){var b=K(K(ge(fe(ee(ye(a.url),"http"),e),g),"orig_host",Di(a.url)),"scid",c);a.url=b.toString();return Yd(a)}).join(",")};function $J(){var a=fc,b;if(b=sq())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"); 
bd(document.documentElement,c);c=Mc("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break t}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function aK(a){jB.call(this);this.b="3D";this.element=new nB(a,[Y(0,"YTP_ON"),Y(0,"YTP_OFF")]);R(this,this.element);this.element.Db(this.b);qB(this.element,2100);this.priority=10;this.A=!0;pB(this.element,1)}x(aK,jB);aK.prototype.F=function(){this.element.Hb("select")};aK.prototype.getSelected=function(){return this.element.getSelected()};function bK(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Y(0,"YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.b=new kB(a,"ytp-dialog-button",b);R(this,this.b);this.b.pa(b);b=Y(0,"YTP_CLOSE");this.g=new kB(a,"ytp-dialog-button",b);this.g.pa(b);R(this,this.g);this.template.update({content:new bF(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]})}x(bK,hD);function cK(a){xu.call(this,a);Ye({YTP_THREED_HTML5_WARNING_DIALOG_TITLE:"Der blev ikke fundet nogen HTML5 3D-hardware",YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE:"F $BEGIN_LINKhjlp til opstning af HTML5 3D$END_LINK eller til skift mellem 3D-visningstilstande.",YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE:"Skift tilstand for 3D-afspilning"});this.g=new aK(Lu(this));R(this,this.g);pB(this.g.element,1);this.g.listen("change",this.eA,this);this.g.listen("select",this.fA,this);this.j=new bK(Lu(this)); 
R(this,this.j);this.j.b.listen("click",this.er,this);this.j.g.listen("click",this.Fg,this)}x(cK,xu);f=cK.prototype;f.Pn="threeDModuleData";f.ua="threed";f.qc="threed";f.create=function(){dK(this.b.app,void 0);Mu(this,this.g);cK.G.create.call(this)};f.destroy=function(){Nu(this,this.g);dK(this.b.app,!0);cK.G.destroy.call(this)};function eK(a){return cK.prototype.Ja(a)?new cK(a):null}f.Ja=function(a){a=a.getVideoData();return!!a.ta||!!a.ms}; 
function fK(a,b){if(a.b.getVideoData().Yf!=b)if(Bu(a),$J()){var c=a.b.app,d=bt(c);d.b.g&&d.b.g.b||(d.b.Yf=!d.b.Yf,hs(d.b),gK(d,"r"));dK(c)}else b&&(Bu(a,a.j),pB(a.g.element,1),Ou(a))}f.er=function(){Cu(this,"/select_3d_mode?video_id="+this.b.getVideoData().videoId)};f.eA=function(){0==this.g.getSelected()?fK(this,!0):fK(this,!1)};f.fA=function(){Ou(this);this.er()};function hK(a){xu.call(this,a);Ye({YTP_YPC_START_RENTAL_HEADER:"Vil du starte denne filmleje?",YTP_YPC_START_RENTAL_BUTTON:"Start lejeperioden"});this.g=new Sv(["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")]]);mz(this.g.K());It(this.b,this.g.K());R(this,this.g);this.j=this.g.b["confirm-button"]}x(hK,xu);f=hK.prototype;f.ua="ypc_clickwrap"; 
f.qc="ypc-clickwrap";f.Ja=function(){return qs(this.b.getVideoData(),"ypc_clickwrap_module")};function iK(a){return qs(a.getVideoData(),"ypc_clickwrap_module")?new hK(a):null}f.create=function(){hK.G.create.call(this);this.load()};f.load=function(){hK.G.load.call(this);lz(this.g.K());Rg(this.j,"click",v(this.lC,this))};f.unload=function(){mz(this.g.K());Wg(this.j);hK.G.unload.call(this)};f.lC=function(){zu(this);this.destroy()};function jK(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 kK(){X.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["a","ytp-drawer-close-button"],["a","ytp-drawer-open-button"]]);this.g=this.template.b["ytp-drawer-close-button"];pz(this,this.g,"click",this.hide);this.b=this.template.b["ytp-drawer-open-button"];pz(this,this.b,"click",this.show);this.pa(null);this.hide()}x(kK,X);kK.prototype.hide=function(){O(this.element,"ytp-drawer-closed")}; 
kK.prototype.pa=function(a){a?(kK.G.pa.call(this,a),lz(this.element)):mz(this.element)};kK.prototype.show=function(){L(sa(P,this.element,"ytp-drawer-closed"),0)};kK.prototype.J=function(){Wg(this.g);Wg(this.b);this.b=this.g=null;kK.G.J.call(this)};function lK(a,b){ej.call(this);this.b=new kK;R(this,this.b);this.g=document.createElement("div");sg(this.g,["html5-stop-propagation","html5-ypc-endscreen"]);this.k=document.createElement("div");O(this.k,"html5-ypc-overlay");this.j=new Sv(["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"];Rg(this.o,"click",v(this.A,this));md(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)}x(lK,ej);lK.prototype.J=function(){lK.G.J.call(this);this.o&&Wg(this.o);ed(this.g);ed(this.k);this.k=this.g=this.b=null};lK.prototype.W=function(a){this.b.W(a);this.b.pa(this.j.K());a.appendChild(this.g)}; 
function mK(a){var b=a.j.K();a.g.appendChild(b);a.b.pa(null);lz(a.g)}lK.prototype.A=function(){this.H("ypcContentRequest")};function nK(a){xu.call(this,a);this.j=this.g=null;this.k=NaN}x(nK,xu);f=nK.prototype;f.ua="ypc";f.qc="ypc";f.Ja=function(){return qs(this.b.getVideoData(),"ypc_module")};function oK(a){return qs(a.getVideoData(),"ypc_module")?new nK(a):null}f.create=function(){nK.G.create.call(this);this.g=new jK(this.b.getVideoData());L(v(this.load,this),0)};f.destroy=function(){nK.G.destroy.call(this);this.g=null}; 
f.load=function(){if(this.g){nK.G.load.call(this);var a=this.b.getVideoData();if(this.g.videoId&&!a.xa)this.b.Aq({video_id:this.g.videoId,ypc_preview:1});else{var b=H("html5-video-container",Jt(this.b));this.j=new lK(b,this.g);this.j.subscribe("ypcContentRequest",this.Yx,this);this.g.videoId&&dd(this.b.app.g.F,this.j.k,0);rI(this.b.R())&&(b=new nu(2147483647,2147483647,{priority:2}),this.Sf(b));this.j.b.show();M(this.k);this.k=L(v(function(){this.j.b.hide()},this),1E4);this.g.videoId?a.xa&&zu(this): 
mK(this.j)}}};f.unload=function(){yu(this);Qh(this.j);this.j=null;nK.G.unload.call(this)};f.Mc=function(a){nK.G.Mc.call(this,a);mK(this.j)};f.qd=function(a){nK.G.qd.call(this,a);a=this.j;mz(a.g);a.b.pa(a.j.K())};f.Yx=function(){if(this.g.b)"embedded"==this.b.R().ba?GI(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()&&$z(this.b.app),a(this.g.k))}};function pK(a,b,c){this.o=Rg(a,"click",v(this.F,this));this.A=Rg(a,"dblclick",v(this.C,this));this.D=b;this.j=c;this.g=new qw(this.B,200,this);R(this,this.g);this.b=!0;this.k=null}x(pK,Mh);pK.prototype.F=function(a){0!=this.g.va?(this.g.stop(),this.j(a),this.b=!1):(this.k=a,this.g.start(),this.b=!0)};pK.prototype.C=function(a){this.b&&this.j(a)};pK.prototype.B=function(){this.D(this.k);this.b=!0};pK.prototype.J=function(){Tg(this.o);Tg(this.A);pK.G.J.call(this)};var qK=new G(1294,630),rK=new G(1320,870),sK={zt:new G(1280,720),b:new G(960,540),fo:new G(854,480),xt:new G(640,360)},tK={zt:new G(1280,750),b:new G(960,570),fo:new G(854,510),xt:new G(640,390)};function uK(a,b){var c=new G(window.innerWidth,window.innerHeight);if(a.ub)return c;var d=b?tK:sK;return a.Zd?c.width>=rK.width&&c.height>=rK.height?d.zt.clone():d.fo.clone():c.width>=qK.width&&c.height>=qK.height?d.fo.clone():d.xt.clone()};function vK(a){X.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.b=new X(["input","html5-modal-panel-input",{type:"text",readonly:"readonly"}]);R(this,this.b);tc&&this.b.K().removeAttribute("readonly");this.b.listen("click",this.j,this);var b=Y(0,"YTP_CLOSE");this.g=new kB(a,"ytp-dialog-button",b);this.g.pa(b);R(this,this.g);this.template.update({content:this.b,buttons:this.g});this.listen("contextmenu", 
this.k)}x(vK,hD);vK.prototype.k=function(a){a.stopPropagation()};vK.prototype.j=function(){this.b.K().select()};function wK(a,b,c){X.call(this,["ul",["html5-context-menu","yt-uix-button-menu"],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url"],Y(0,"YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],Y(0,"YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],Y(0,"YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"], 
Y(0,"YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],Y(0,"YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],Y(0,"YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},Y(0,"YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.X=a;this.X.subscribe("internalvideodatachange",this.Qq,this);this.j=new ow(this);this.j.listen(b,"contextmenu", 
this.Uz);this.b=new ow(this);this.g=new vK(c);R(this,this.g);this.g.g.listen("click",this.Tz,this);a={Mz:this.Vz,Nz:this.Wz,Oz:v(this.Xq,this,!1),Pz:v(this.Xq,this,!0),Rz:this.Yz,Sz:this.Zz,Qz:this.Xz};for(var d in a)xK(this,d,a[d]);this.hide()}x(wK,X);f=wK.prototype;f.Tz=function(){this.X.g.eh()};function yK(a,b){var c=a.g;c.b.K().value=b;c.b.K().focus();L(v(c.j,c),100);a.X.g.eh(a.g)} 
function xK(a,b,c){a.j.listen(a.template.b[bw[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.hide();a=b.replace("CONTEXT_MENU_","").toLowerCase();FH(this.X,"contextmenu."+a)})}f.Qq=function(a,b){Yx(this.template.b["html5-context-menu-copy-embed-html"],b.Rq)};f.Xq=function(a){yK(this,it(this.X,a))}; 
f.Wz=function(){var a=Te("EMBED_HTML_TEMPLATE"),b=Te("EMBED_HTML_URL"),c=this.X.g.Hc(),d=this.X.getVideoData().videoId,b=b.replace(/__videoid__/g,d),a=a.replace(/__url__/g,Da(b)),a=a.replace(/__width__/g,c.width),a=a.replace(/__height__/g,c.height);yK(this,a)};f.Xz=function(a){zK(this.X,a.target.getAttribute("href"))}; 
f.Yz=function(){var a=bt(this.X);a&&a.Qo("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(AK(a,this.X.getVideoData())))};f.Vz=function(){yK(this,jt(this.X,!0))};f.Zz=function(){st(this.X.g)};f.Uz=function(a){a.preventDefault();var b=Mg(a);a=Ng(a);var c=Tf(document.body);xF(new F(b,a),this.element,0,null,c,5);this.show()};f.jC=function(a){!1===a.dc.returnValue||this.hide()}; 
f.show=function(){this.P||(this.b.removeAll(),this.b.listen(window,"blur",this.hide),this.b.listen(document,"click",this.kC),this.b.listen(document,"contextmenu",this.jC),wK.G.show.call(this))};f.kC=function(a){2==a.button||a.target&&kd(this.element,a.target)||this.hide()};f.hide=function(){wK.G.hide.call(this);this.b.removeAll()};f.J=function(){this.j.removeAll();this.b.removeAll();this.X.ga("internalvideodatachange",this.Qq,this);this.X=null;wK.G.J.call(this)};function BK(a,b){RI.call(this,a,b.R());this.X=b;this.C=2;this.F=this.A=!1;this.j.g.listen("click",this.oy,this);this.j.b.listen("click",this.ny,this);this.X.subscribe("presentingplayerstatechange",this.Wd,this)}x(BK,RI);f=BK.prototype;f.update=function(a){BK.G.update.call(this,a);CK(this,a.rl);a&&a.Vo&&!this.X.o?(a=this.j,a.b.W(a.element),a.g.W(a.element)):(a=this.j,a.g.Ic(),a.b.Ic());this.X.R().Mi?this.j.j.Ic():(a=this.j,a.j.W(a.element))}; 
f.Ji=function(){var a=rg(this.element,"show-share");this.H("share-click");a||BK.G.Ji.call(this)};f.Ut=function(){this.H("title-click")};f.jl=function(){var a=rg(this.element,"show-more-info");this.H("info-click");if(a)this.F&&this.X.Sd();else{BK.G.jl.call(this);var b=this.X.getPlayerState();this.F=W(b,8)&&!W(b,2);this.X.pauseVideo()}return!a};f.oy=function(){DK(this,0)};f.ny=function(){DK(this,1)};f.Wd=function(a){W(a.state,8)&&P(this.element,"show-more-info")}; 
function DK(a,b){if(!a.A&&(a.C==b&&(b=2),CK(a,b),a.b)){if("detailpage"!=a.g.ba){a.A=!0;var c={Ib:a.b.Ib,onSuccess:v(function(){this.A=!1},a),onError:v(function(){this.A=!1},a),Ua:a.g.Ua,gb:a.g.gb};Xq(a.b.videoId,b,c)}a.X.H("RATE_SENTIMENT",{videoId:a.b.videoId,sentiment:b})}}function CK(a,b){a.C=b;Q(a.element,"sentiment-like",0==b);Q(a.element,"sentiment-dislike",1==b)}f.wn=function(a){zK(this.X,a)};f.Wt=function(){EH(this.X)}; 
f.J=function(){this.X.ga("presentingplayerstatechange",this.Wd,this);this.X=null;BK.G.J.call(this)};function EK(a,b,c,d,e,g,h,k){this.o=[];B(Hb(b),function(b){this.o.push(Rg(a,b,v(this.Pv,this)))},this);B(Hb(d),function(b){this.o.push(Rg(a,b,v(this.Ov,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=EK.prototype;f.Pv=function(a){M(this.b);this.b=0;this.j=L(v(this.OB,this,a),this.D)};f.Ov=function(a){M(this.j);this.j=0;this.b=L(v(this.MB,this,a),this.B)};f.OB=function(a){this.g||this.k||(this.k=!0,this.F.call(this.A||m,a))}; 
f.MB=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);Tg(this.o)};f.ha=function(){return this.g};function FK(){X.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.b=this.template.b["ytp-tooltip-body"]}x(FK,X);FK.prototype.hide=function(){FK.G.hide.call(this);Of(this.b,0)};FK.prototype.J=function(){cd(this.b);this.b=null;FK.G.J.call(this)};function GK(a,b){this.b={};this.jn=a;this.g=b}x(GK,Mh); 
GK.prototype.Nf=function(a,b){var c,d=new EK(a,"mouseover",function(){if(this.jn){var d=new FK;d.W(this.jn);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||xg(a,"tooltip")||"";if(s(d)){var g=$c(d),d=Zc("span");d.className="ytp-text-tooltip";d.appendChild(g)}Xv(c.template,"content",d);var g=!!xg(a,"tooltip-below"),d=c,h=bg(a),h=new F(h.width/2,g?h.height:0),k=Uf(a),h=new F(k.x+h.x,k.y+h.y),g=!!g;Q(d.element,"ytp-tooltip-below",g);if(k=Sf(d.element))var l=Uf(k),p=lg(k),h=Lb(h,new F(l.x+p.left,l.y+p.top)); 
xF(h,d.element,g?1:0);d.show();var p=bg(d.b),g=p.width/2*-1,r=Rc(window),u=Tc(document),h=u.x,r=r.width+u.x,u=h,t=r;k&&(k=bg(k),u=l.x,t=k.width+l.x);k=Uf(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(r,t)&&(g-=k-Math.min(r,t));Of(d.b,g)}},["mouseout","mousedown"],function(){c&&(c.hide(),Oh(c),c=null)},this,10,50);this.b[ma(a)]=d}; 
GK.prototype.Hf=function(a,b,c){var d=this.g;this.Nf(a,function(){if(d){var a="detailpage"==d.ba;if(!d.aa||a)return c}else return c;var g=d.aa,h=d.wa,a=Zc("div");O(a,"ytp-identity-tooltip");var k=Zc("img");k.src=h;h=Zc("span");g=$c(Ze(b,{USER_NAME:g}));bd(h,g);bd(a,k,h);return a})};GK.prototype.Kn=function(a){a=ma(a);Oh(this.b[a]);this.b[a]=null};GK.prototype.J=function(){this.g=this.jn=null;for(var a in this.b)Oh(this.b[a]);this.b={};GK.G.J.call(this)};function HK(a){IH.call(this,a);this.o=this.Da=this.k=this.O=null;this.wb=this.Aa=!1}x(HK,IH);HK.b=50;HK.g=200;f=HK.prototype;f.jh=function(){HK.G.jh.call(this);this.app.subscribe("clearvideooverlays",this.OD,this)}; 
f.nt=function(){var a=this.app.P.assets;if(a.css&&!tq()){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");Pc(c,a);b||document.getElementsByTagName("head")[0].appendChild(c);this.Fr(HK.g)}else this.Aa=!0;this.H("templateready")};f.Fr=function(a){0>=a||tq()?(this.Aa=!0,this.element&&lz(this.element)):L(v(this.Fr,this,a-1),HK.b)};f.dh=function(){this.Aa||mz(this.element);HK.G.dh.call(this)}; 
f.ao=function(a){HK.G.ao.call(this,a);a.bc||this.addClass("hide-info-bar");a.Ac&&this.lg()}; 
f.Mn=function(a){HK.G.Mn.call(this,a);var b=new X(["img",["html5-watermark","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 wK(this.app,this.element,this.j);R(this,this.k);this.k.W(document.body);this.o=new BK(this.j,this.app);this.o.W(this.element);R(this,this.o);a.mc&&O(this.k.K(),"house-brand")}; 
f.mn=function(){this.app.R().Tf?this.Da||(this.Da=new pK(this.g,v(this.ln,this),v(this.Os,this)),R(this,this.Da)):HK.G.mn.call(this)};f.ek=function(a){HK.G.ek.call(this,a);a?lz(this.o.K()):mz(this.o.K())};f.Zj=function(a){HK.G.Zj.call(this,a);this.o&&this.o.update(a);var b=this.app;if(b.b.wl?0:b.getVideoData().ka||b.b.Oc){if(a=a.ka)this.O.src=a;$x(this.O)}}; 
f.Xn=function(){HK.G.Xn.call(this);var a=this.app.R();a.sc||(pz(this,this.element,"click",v(this.ct,this,!1),void 0,void 0,!0),pz(this,this.element,"keydown",v(this.ct,this,!0),void 0,void 0,!0),pz(this,this.element,"focus",this.sD,void 0,void 0,!0));a.tl||(pz(this,this.element,"keypress",this.wD),pz(this,this.element,"keydown",this.vD));pz(this,this.O,"click",this.bt);this.o.subscribe("title-click",v(this.bt,this));this.o.subscribe("share-click",v(this.uD,this));this.o.subscribe("info-click",v(this.tD, 
this))}; 
f.wD=function(a){this.app.b.rg=w();var b=!1===a.dc.returnValue,c=a.keyCode;if(!b){if(179==c||178==c)179==c&&(this.H("playpausetoggled",!0),b=!0),178==c&&(this.app.b.rg=w(),Ws(this.app),b=!0);98==c&&(this.app.te("onBackgroundChange"),b=!0);111==c&&(this.app.te("onTextOpacityChange"),b=!0);119==c&&(this.app.te("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.app.te("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.app.te("onFontSizeDecrease"),b=!0;32==c&&(QH(this),xH(this.app),b=!0);48<=c&&57>=c&& 
(Rs(this.app,(c-48)/10*Ss(this.app)),b=!0);b&&a.preventDefault()}this.app.te("onKeyPress",a);this.app.R().Cb()&&this.app.ji("onKeyPress",{keyCode:c,handled:b})}; 
f.vD=function(a){var b=!1===a.dc.returnValue,c=a.keyCode;if(!b){if(38==c||40==c||37==c||39==c){b=5;a.ctrlKey&&(b*=2);if(38==c)b=this.app,DH(b,{volume:b.D.volume+5,muted:!1});else if(40==c)b=this.app,DH(b,{volume:b.D.volume-5,muted:!1});else if(37==c){var d=this.app,b=-1*b;Rs(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.app,Rs(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(Rs(this.app,0),b=!0);35==c&&(Rs(this.app,Infinity),b=!0);27==c&&(Zg()?(wH(this.app,!1),b=!0):this.k&&this.k.P? 
(this.k.hide(),b=!0):null!=this.B.j?(this.B.hd(),b=!0):this.C.P&&(this.eh(),b=!0));b&&a.preventDefault()}this.app.R().Cb()&&this.app.ji("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.app.R().ub})};f.bt=function(){EH(this.app)};f.uD=function(){this.app.ki();if("detailpage"==this.app.R().ba){wH(this.app,!1);var a=this.app,b=a.getVideoData();a.H("SHARE_CLICKED",{videoId:b.videoId,listId:b.Oa,feature:"player_"+a.b.ba})}}; 
f.tD=function(){this.app.ki()};f.OD=function(){var a=this.o;P(a.element,"show-share");P(a.element,"show-more-info")};f.ct=function(a){this.wb=a};f.sD=function(){Q(this.element,"ytp-keyboard-focus",this.wb)};f.Vm=function(a){HK.G.Vm.call(this,a);this.k&&(a?this.k.W(this.element):this.k.W(document.body),this.k.hide());a&&this.element.focus()}; 
f.Am=function(){HK.G.Am.call(this);if(!this.app.R().lc){var a=new GK(this.element,this.app.R());R(this,a);this.j.b=a;var b=Nc("ytp-tooltip-anchor",this.element);B(b,function(b){a.Nf(b)})}};f.Hc=function(){var a=this.app.R();return"detailpage"==a.ba&&a.b.o?uK(a,!0):HK.G.Hc.call(this)};f.ac=function(){var a=this.app.R(),b=bt(this.app)&&2==bt(this.app).getPlayerType();return"detailpage"==a.ba&&!b&&a.b.o?uK(a):HK.G.ac.call(this)}; 
f.Ys=function(){var a=this.ac();this.app.R().Vd&&(a=a.clone(),a.height+=3);return a};f.J=function(){HK.G.J.call(this);Wg(this.O);this.O=null};function IK(a){this.k=Math.exp(Math.log(.5)/a);this.b=this.j=0}IK.prototype.g=function(a,b){var c=Math.pow(this.k,a);this.b=b*(1-c)+c*this.b;this.j+=a};IK.prototype.o=function(){return this.b/(1-Math.pow(this.k,this.j))};function JK(a){this.g=window.Float32Array?new Float32Array(a):Array(a);this.b=a-1}JK.prototype.add=function(a){this.b=(this.b+1)%this.g.length;this.g[this.b]=a};JK.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 KK(a,b,c){this.D=0;this.B=a;this.k=b||.5;this.A=c||0;this.C="index";this.b=0;this.j=[]}KK.prototype.g=function(a,b){LK(this,"index");this.j.push({index:this.D++,weight:a,value:b});this.b+=a;for(LK(this,"index");this.b>this.B;){var c=this.b-this.B,d=this.j[0];d.weight<=c?(this.b-=d.weight,this.j.shift()):(this.b-=c,d.weight-=c)}};function MK(a,b){LK(a,"value");var c=b*a.b,d=0,e=NaN;a.j.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e} 
KK.prototype.o=function(){return this.A?(MK(this,this.k-this.A)+MK(this,this.k)+MK(this,this.k+this.A))/3:MK(this,this.k)};function LK(a,b){a.C!=b&&(a.C=b,Db(a.j,b))};function NK(a){this.g=a;this.b=this.A=this.B=0;this.D=new JK(100);this.F=this.C=0;this.k=new KK(16,.6);this.o=new IK(4);this.g.k?this.j=new IK(17):this.j=new KK(17,.5,.1);a=ui("yt-player-bandwidth")||{};this.j.g(this.g.g,0<a.byterate?a.byterate:13E4);0<a.delay&&this.k.g(1,Math.min(+a.delay,2));0<a.tailDelay&&this.o.g(1,+a.tailDelay);this.b=w()}function OK(a,b,c){b=Math.max(b,.05);a.j.g(b,c/b);PK(a)}function QK(a,b,c){isNaN(c)||(a.A+=c);isNaN(b)||(a.B+=b/1E3);PK(a)} 
function RK(a,b,c){b=Math.max(b,8192);a.o.g(1,c/b);1E4<w()-a.b&&SK(a)}function TK(a){var b=a.k.o(),b=isNaN(b)?.5:b;0<=a.g.b&&(b=Math.min(b,a.g.b));return b}function UK(a){return a.o.o()||0}function VK(a){a=a.j.o();return 0<a?a:1}function WK(a){var b={};b.delay=TK(a);b.tailDelay=UK(a);b.byterate=VK(a);return b}function SK(a){var b=WK(a);ri("yt-player-bandwidth",b,2592E3);a.b=w()}function PK(a){var b=w();a.F=b;500<b-a.C&&(a.D.add(1/(1/VK(a)+UK(a))),a.C=b)}function XK(a){return 4E3<=w()-a.F};function YK(){this.b=-1;this.g=.5;this.j=this.k=!1};function ZK(){this.b=[];this.k={};this.B={};this.C={};this.g=this.o=null;this.j=[];this.A=null}x(ZK,Mh);ZK.prototype.Yq=function(a){if(this.g){var b;var c=ma(a);b=this.k[c];if(!b)if(this.g){if(b=a(this.g)){a=this.k[c]=b;for(var d in this.o)a.subscribe(d,this.o[d]);a.subscribe("command_log_timing",this.D,this);R(this,b)}}else b=null;b&&b.Ja(this.g)&&!D(this.b,b)&&(b.create(),this.b.push(b),D(this.j,b.ua)&&(b.xc=this.A,b.aj(!!b.xc)))}}; 
function $K(a){a.b=hb(a.b,function(a){if(!this.g||a.bn(this.g)){try{a.destroy()}catch(c){Xe(c)}return!1}return!0},a)}function aL(a,b,c){bL(a);a.A=b;a.j=vb(c);B(a.b,function(a){0<=fb(c,a.ua)&&(a.xc=b,a.aj(!!a.xc))})}function bL(a){B(a.j,function(a){if(a=et(this,a))a.xc=null,a.aj(!1)},a);a.A=null;a.j=[]}function rt(a,b){if(!b)return C(a.b,function(a){return a.ua});var c=et(a,b);return c?c.$j():[]}function et(a,b){return lb(a.b,function(a){return a.ua==b})} 
ZK.prototype.F=function(a,b){B(this.b,function(c){c.H(a,b)})};function cL(a){var b={};B(a.b,function(a){ta(b,a.ph())});return b}ZK.prototype.D=function(a,b){ta(this.C,a||null);ta(this.B,b||null)};ZK.prototype.isAvailable=function(a){return(a=et(this,a))?a.zk:!1};function dL(a){this.b={};for(var b=0;b<a.length;b++){var c=a[b];this.b[c.b]=c}}function eL(a){a=Sb(a.b);Cb(a,function(a,c){return a.b-c.b});return a};function fL(a,b,c){this.j=a;this.b=b;this.k=!!c.af;this.g=c.qa};function gL(){this.Ec={};this.g=this.hc().b;this.b=null}f=gL.prototype;f.hc=function(){var a=this.constructor,b;if(!(b=a.Lt)){var c;b=a.sE;var d=[];for(c in b)0!=c&&d.push(new fL(a,c,b[c]));c=new dL(d);b=a.Lt=c}return b};f.get=function(a,b){a.j.hc();this.hc();var c;c=a.b;var d=hL(this,c);c=this.g[c].k?d[b||0]:d;return c};f.set=function(a,b){a.j.hc();this.hc();iL(this,a.b,b)};f.add=function(a,b){a.j.hc();this.hc();jL(this,a.b,b)}; 
f.clear=function(a){a.j.hc();this.hc();a=a.b;delete this.Ec[a];this.b&&delete this.b[a]};f.equals=function(a){if(!a||this.constructor!=a.constructor)return!1;for(var b=eL(this.hc()),c=0;c<b.length;c++){var d=b[c],e=d.b;if(null!=this.Ec[e]!=(null!=a.Ec[e]))return!1;if(null!=this.Ec[e]){var g=11==d.g||10==d.g,h=hL(this,e),e=hL(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 kL(a,b){for(var c=eL(a.hc()),d=0;d<c.length;d++){var e=c[d],g=e.b;if(null!=b.Ec[g]){a.b&&delete a.b[e.b];var h=11==e.g||10==e.g;if(e.k)for(var e=hL(b,g)||[],k=0;k<e.length;k++)jL(a,g,h?e[k].clone():e[k]);else e=hL(b,g),h?(h=hL(a,g))?kL(h,e):iL(a,g,e.clone()):iL(a,g,e)}}}f.clone=function(){var a=new this.constructor;a!=this&&(a.Ec={},a.b&&(a.b={}),kL(a,this));return a};function hL(a,b){var c=a.Ec[b];return null==c?null:c}function iL(a,b,c){a.Ec[b]=c;a.b&&(a.b[b]=c)} 
function jL(a,b,c){a.Ec[b]||(a.Ec[b]=[]);a.Ec[b].push(c);a.b&&delete a.b[b]}function lL(a,b){a.sE=b;a.hc=function(){return a.Lt||(new a).hc()}};function mL(){gL.apply(this)}x(mL,gL);function nL(){gL.apply(this)}x(nL,gL);lL(mL,{0:{name:"MessageDetails",of:"logs_proto.MessageDetails"},1:{name:"may_appear_in",af:!0,qa:11,type:nL}});lL(nL,{0:{name:"Type",oL:mL,of:"logs_proto.MessageDetails.Type"},1:{name:"source_type",required:!0,qa:9,type:String},2:{name:"log_type",required:!0,qa:9,type:String}});var oL={WF:0,CH:1,NH:2,VF:3,dG:4,zH:5,LH:6,IH:7,JH:8,KH:9,GH:10,HH:11,fG:12,eG:13,UF:14,OF:15,BH:20,PH:21,NF:22,DH:23,OH:24,MH:25,aG:30,QH:31,$F:32,bG:33,FH:40,EH:41,gG:42,hG:43,PF:50,SF:51,XF:52,YF:53,ZF:54,KF:55,LF:56,cG:57,TF:58,RF:60,QF:61,MF:70,AH:80,iG:90};function pL(){gL.apply(this)}x(pL,gL);function qL(){gL.apply(this)}x(qL,gL);function rL(){gL.apply(this)}x(rL,gL);function sL(){gL.apply(this)}x(sL,gL);function tL(){gL.apply(this)}x(tL,gL);function uL(){gL.apply(this)}x(uL,gL); 
uL.prototype.hasFeature=function(){return null!=this.Ec[7]}; 
lL(pL,{0:{name:"YtAdType",of:"video.YtAdType"},1:{name:"ad_namespace",required:!0,qa:14,defaultValue:0,type:{IG:0,fI:1,JG:2,YH:3,qI:4,cI:5,bI:6,VH:7,$H:8,WH:9,XH:10,aI:11,UH:12,fL:13}},2:{name:"ad_format",required:!0,qa:14,defaultValue:0,type:{EG:0,SI:1,QI:2,sJ:3,JK:4,TI:5,MI:6,OI:7,kL:8,kI:9}},3:{name:"ad_invideo",qa:14,defaultValue:0,type:{GG:0,pH:1,qH:2,rH:3,ZH:4,oH:5,cH:6}},4:{name:"invideo_autoplay",qa:14,defaultValue:0,type:{YG:0,cF:1}},5:{name:"ad_instream",qa:14,defaultValue:0,type:{FG:0, 
DK:1,HK:2,xn:3,bH:4}},6:{name:"ad_instream_long",qa:8,type:Boolean}});lL(qL,{0:{name:"AdId",of:"video.AdId"},1:{name:"ad_network",qa:14,defaultValue:1,type:{OTHER:1,IF:2}},2:{name:"ad_network_name",qa:9,type:String},3:{name:"ad_id",required:!0,qa:9,type:String}}); 
lL(rL,{0:{name:"YtAdEvent",of:"video.YtAdEvent"},1:{name:"ad_event_type",required:!0,qa:14,defaultValue:0,type:{qG:0,xG:1,rG:2,AG:3,sG:4,tG:5,nG:6,lG:7,RH:8,jG:9,yG:10,zG:11,kG:12,TH:13,BG:14,oG:15,SH:16,pG:17,mG:18,CG:100,DG:101,vG:130,uG:131,wG:132}},2:{name:"wall_time",required:!0,qa:2,type:Number},3:{name:"media_time",required:!0,qa:2,type:Number},4:{name:"logentry_time_usec",required:!0,qa:3,type:String},5:{name:"ad_error_type",qa:14,defaultValue:0,type:oL}}); 
lL(sL,{0:{name:"YtAdSlot",of:"video.YtAdSlot"},1:{name:"slot_time",required:!0,qa:2,type:Number},2:{name:"ad_type",required:!0,qa:11,type:pL},3:{name:"ad_events",af:!0,qa:11,type:rL},4:{name:"ad_video_duration",qa:2,type:Number},5:{name:"ad_id",qa:9,type:String},6:{name:"slot_index",qa:5,type:Number}}); 
lL(tL,{0:{name:"YtVideoMetadata",of:"video.YtVideoMetadata"},1:{name:"content_owner_ids",af:!0,qa:9,type:String},2:{name:"video_duration_seconds",qa:2,type:Number},3:{name:"all_content_owner_ids",qa:9,type:String}}); 
lL(uL,{0:{name:"YtWatchAdInfo",of:"video.YtWatchAdInfo"},1:{name:"video_id",required:!0,qa:9,type:String},2:{name:"allowed_ads",af:!0,qa:11,type:pL},3:{name:"ad_slots",af:!0,qa:11,type:sL},4:{name:"ps",qa:9,type:String},5:{name:"el",qa:9,type:String},6:{name:"country",qa:9,type:String},7:{name:"feature",qa:9,type:String},8:{name:"blocked",qa:8,type:Boolean},9:{name:"plid",qa:9,type:String},10:{name:"video_metadata",qa:11,type:tL},11:{name:"experiment_id",af:!0,qa:3,type:String},12:{name:"ad_flags", 
qa:4,type:String},13:{name:"all_experiment_ids",qa:9,type:String},14:{name:"no_ads_returned",qa:8,type:Boolean},15:{name:"ad_errors",af:!0,qa:14,defaultValue:0,type:oL},16:{name:"ad_slot_with_event",qa:11,type:sL}});function vL(a,b){Ct.call(this,a,b)}x(vL,Ct);f=vL.prototype;f.Zg=function(){Qs(this.app,!0,this.b);this.app.Sd(this.b)};f.pauseVideo=function(){this.app.pauseVideo(this.b)};f.vt=function(a,b,c){Qs(this.app,!0,this.b);var d=this.app,e=this.b;d.yf(d.getCurrentTime()+a,b,c,e)};f.$g=function(a,b){Qs(this.app,!0,this.b);this.app.yf(a,b,void 0,this.b)};f.fl=function(){Ys(this.app,this.b)};function wL(a){this.app=a;xu.call(this,a.Jb)}x(wL,xu);wL.prototype.getAdState=function(){return-1};var xL={PJ:"red",WHITE:"white"};var yL={$E:"0",kK:"1",xH:"2"};var zL={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},AL={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},BL={adunit:{bc:!1,dq:!1,Oc:!1},detailpage:{Ac:!0}};BL.embedded={Tf:Yg(),Oc:!0};BL.profilepage={Fh:!0}; 
var CL="blogger books docs google-live play picasaweb".split(" "),DL={blazer:{nL:"youtube_mobile",Gc:!1,jF:!1,rj:!1,ko:!1,lc:!0,Ac:!1,bl:!0,Xb:!1,$b:!1,sc:!0},blogger:{He:!1,Ag:!1,nc:!1,bc:!1,Qc:!1,Ac:!1,$f:!1,Oc:!1,bd:"bl"},books:{He:!1,Ag:!1,nc:!1,bc:!1,Qc:!1,Ac:!0,$f:!1,Oc:!1,bd:"gb"},docs:{He:!1,Ag:!1,nc:!1,bc:!1,Qc:!1,Ac:!1,$f:!1,Oc:!1,bd:"gd"},"google-live":{He:!1,Ag:!1,nc:!1,bc:!1,Qc:!1,Ac:!1,$f:!1,Oc:!1,bd:"gl"},play:{bc:!1,Qc:!1,Ac:!1,Oc:!1,bd:"gp"},"native":{rj:!1,ko:!1,Xb:!0},picasaweb:{He:!1, 
Ag:!1,nc:!1,bc:!1,Qc:!1,Ac:!1,$f:!1,Oc:!1,bd:"pw"},touch:{rj:!1,ko:!1,sc:!0}}; 
function EL(a){a=ac(a);this.j={};this.b=new $q(a.fexp);this.ta=a.forced_experiments||null;this.origin=Aq(this.origin,a.origin);this.$d=Aq(this.$d,a.loaderUrl);"adunit"==a.el?jf(this.$d)?this.ba="adunit":this.ba="embedded":this.ba=a.el||this.ba;var b=BL[this.ba];b&&ta(this,b);b=a.ps;if(!D(CL,b)||this.Cb())this.zb=b||this.zb;(b=DL[this.zb])&&ta(this,b);this.mc=this.Cb()&&D(CL,this.zb);this.Mg=!(!rq().defaultPlaybackRate||pc||oh||nh||ph);if(a.use_media_volume)b=!1;else{var b=rq(),c=b.muted;b.muted=!c; 
b=b.muted!=c}this.lq=b;this.Xp=ph;if(oh||nh||rh)this.Ro="blazer"!=this.zb;this.aq="0"!=a.add_player_event_listeners;b=U(this.Tf,a.fs);this.Tf="detailpage"==this.ba?b:b&&Yg();this.Ua=Aq(this.Ua,a.authuser);this.cj=yq(this.cj,a.autohide,XE);this.Gc=U(this.Gc,a.autoplay);this.om=U(this.om,a.autoplayoverride);this.color=yq(this.color,a.color,xL);this.A=Aq(this.A,a.content_v);this.pm=yq(this.pm,a.controls,yL);this.tl=U(this.tl,a.disablekb);this.dj=U(this.dj,a.edu_mode);this.g=Aq(this.g,a.eurl);this.D= 
Aq(this.D,a.framer);this.fa=yq(this.fa,a.iv_load_policy,jq);this.B=Aq(this.B,a.hl);this.nq=U(this.nq,a.bwlogging);this.lc=U(this.lc,a.is_html5_mobile_device);this.Zd=U(this.Zd,a.player_wide);this.oq=U(this.oq,a.is_playground);this.wi=U(this.wi,a.privembed);this.qq=U(this.qq,a.loop);this.Vf=U(this.Vf,a.modestbranding);"red"!=this.color&&(this.Vf=!1);this.pq=U(this.pq,a.on3g);this.gb=Aq(this.gb,a.pageid);this.nm=Eq(this.nm,a.vq);this.Wk=Aq(this.Wk,a.playerapiid);this.Fi=U(this.Fi,a.playsinline);this.ql= 
U(this.ql,a.playonclick);this.ka=Aq(this.ka,a.cr);this.nc=U(this.nc,a.logwatch);this.Qk=U(this.Qk,a.canplaylive);this.bc=U(this.bc,a.showinfo);this.Qc=U(this.Qc,a.rel);this.Ac=U(this.Ac,a.enablesizebutton);this.Mi=U(this.Mi,a.ss);this.F=Aq(this.F,a.theme);this.Xb=U(this.Xb,a.use_native_controls);this.$b=!nh&&U(this.$b,a.svt);this.Cb()&&(this.Mk=U(this.Mk,a.retryneterr));b=gf()?this.$d:document.location.toString();c=!!b&&-1!=b.search(Ne);if(hf(b)||c)this.wl=U(this.wl,a.nologo);this.Xb&&(this.Vf=!0, 
this.fa=3);this.ej=U(this.ej,a.ssl);if(this.Li=U(this.Li,a.ssl_stream))this.ej=!0;if(this.sc=U(this.sc,a.use_tablet_controls))this.F="dark",this.cj="blazer"==this.zb?"3":"1";b=this.Gg;if(c=a.video_container_override){var d=c.split("x");2==d.length&&(c=parseInt(d[0],10),d=parseInt(d[1],10),b=isNaN(c)||isNaN(d)||0>=c*d?b:new G(c,d))}this.Gg=b;this.Da=Aq(this.Da,a.attrib);this.Ia=Aq(this.Ia,a.sk);this.protocol=this.ej?"https":"http";this.Vd="0"!=this.pm;this.yk=U(this.Vd,a.store_user_volume);this.ce= 
U(this.ce,a.use_media_volume);if(b=a.BASE_YT_URL)c=(c=b&&b.match(Ee))?c[0]:"",d=cf(b)?b:"",c!=d&&Xe(Error(b+" behavior is not consistent")),d&&(this.tb=d);if(c=b=a.gdatabaseurl)c=!!b&&-1!=b.search(He),d=cf(b),c!=d&&Xe(Error(b+" behavior is not consistent")),c=d;c&&(this.hp=b);FL(this,a);b=!this.b.ca;("detailpage"==this.ba||b&&"unknown"==this.g||"undefined"==this.g)&&delete this.g;this.Oc=this.Vf&&!this.Xb?!this.bc:this.bc||this.Vd?!1:this.Oc;b=this.Gc||"detailpage"==this.ba;c=!0;this.lc&&(c=!1);tr("nintendo wiiu")&& 
(c=!1);this.om&&(c=!0);this.ii=b&&c;this.j=a}x(EL,Mh);f=EL.prototype;f.Af=null;f.aq=!0;f.Tf=!0;f.Ua="";f.cj="2";f.Gc=!1;f.om=!1;f.tb="/";f.hp="//gdata.youtube.com/";f.jF=!0;f.color="red";f.pm="1";f.xf="web";f.Ce="html5";f.tl=!1;f.dj=!1;f.rj=!0;f.ko=!0;f.Mg=!1;f.lq=!1;f.ba="detailpage";f.nq=!1;f.mc=!1;f.lc=!1;f.ub=!1;f.sr=!1;f.Zd=!1;f.He=!0;f.oq=!1;f.wi=!1;f.Ag=!0;f.rg=0;f.Sg=!1;f.$d="";f.qq=!1;f.Vf=!1;f.nm=Tp;f.Wk="";f.pq=!1;f.gb="";f.zb=null;f.Fi=!1;f.Xp=!1;f.Mk=!1;f.ii=!1;f.nc=!1;f.Qk=!0;f.Vd=!0; 
f.yk=!0;f.ce=!1;f.bc=!0;f.dq=!0;f.Qc=!0;f.Fh=!1;f.Ac=!1;f.$f=!0;f.Oc=!1;f.Mi=!1;f.wl=!1;f.Ro=!1;f.Xb=!1;f.$b=!0;f.ej=!1;f.Li=!1;f.sc=!1;f.Yd=null;f.Gg=null;f.Sq=null;f.Jf=null;f.Ra=null;f.Ei=null;f.bd="yt";f.ql=!1;function ht(a,b){a.ma=b.get("d",a.ma);a.ca=b.get("f",a.ca)} 
function FL(a,b){if(b){var c;(c=b.adformat)||(c=(c=b.attrib)&&c in zL&&c in AL?AL[c]+"_"+zL[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.Cb()||d)&&(a.k=c,a.j.adformat=b.adformat,d||(a.ba="adunit"))}}a.Af=(b&&b.adpings?Ai(b.adpings):null)||a.Af;c=b.agcid;a.Ca=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.Ha=b.q;a.I=Aq(a.I,b.cbrand);a.M=Aq(a.M,b.cbr);a.L=Aq(a.L,b.cbrver);a.xf=Aq(a.xf,b.c);a.Ce=Aq(a.Ce, 
b.cver);a.N=Aq(a.N,b.cmodel);a.O=Aq(a.O,b.cnetwork);a.P=Aq(a.P,b.cos);a.U=Aq(a.U,b.cosver);a.o=Aq(a.o,b.cplatform);a.nc=U(a.nc,b.logwatch);a.xa=zq(a.xa,b.user_age);a.wa=Aq(a.wa,b.user_display_image);a.aa=Aq(a.aa,b.user_display_name);a.Aa=Aq(a.Aa,b.user_gender);a.V=Aq(a.V,b.eventid);a.oa=Aq(a.oa,b.csi_page_type);a.bl=U(a.bl,b.enablecsi)} 
function GL(a){var b={};b.c=a.xf;a.Ce&&(b.cver=a.Ce);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.U&&(b.cosver=a.U);return b} 
function HL(a,b){switch(b.T){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.Jz});case 30:return c="//docs.google.com/",a.tb!=EL.prototype.tb&&(c=a.tb),$d(c+"get_video_info",{docid:b.videoId,authuser:b.Ua,authkey:b.wb,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.Fa,eurl:a.g,ps:a.zb,el:a.ba,hl:a.B,list:b.Oa, 
agcid:a.Ca,sts:16292,lact:IL(a)};a.ta&&(c.forced_experiments=a.ta);b.D?c.vvt=b.D:b.B&&(c.access_token=b.B);a.k&&(c.adformat=a.k);b.Aa&&(c.iv_load_policy=b.Aa);b.Da&&(c.itct=b.Da);b.Cg&&(c.autoplay="1");b.Qm&&(c.noiba="1");b.Rm&&(c.mdx="1");b.Sm&&(c.utpsa="1");b.ad&&(c.is_fling="1");var d;d=(d=a.Ei)?new G(d.clientWidth,d.clientHeight):new G(Number.NaN,Number.NaN);d.width&&(c.width=d.width);d.height&&(c.height=d.height);b.xa&&(c.ypc_preview="1");b.Qd&&(c.splay="1");a.A&&(c.content_v=a.A);b.zm&&(c.livemonitor= 
1);a.Ua&&(c.authuser=a.Ua);a.gb&&(c.pageid=a.gb);a.V&&(c.ei=a.V);a.Li&&(c.ssl_stream="1");gf()&&(c.iframe="1");b.ci&&(c.tst=b.ci);b.nn&&(c.cco="1");b.pn&&(c.rco="1");ta(c,GL(a));return $d(a.tb+"get_video_info",c)}}function JL(a){return a.dj?"//s.youtubeeducation.com/":a.Ag?"//s.youtube.com/":"//video.google.com/"}function KL(a){return JL(a)+(a.b.M?"api/stats/qoe":"stream_204")}function LL(a){return a.T?a.T.slice(0,128):""}function SI(a,b,c,d){return kI(a,b.videoId,b.Oa,c,d)} 
function kI(a,b,c,d,e){b={v:b,list:c};d&&ta(b,d);a=$d(a.protocol+"://"+("www.youtube-nocookie.com"==window.location.host||a.dj?"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=Ai(b);for(var g in e)b[g]=e[g];e=d+Yd(b);a=a+e}return a} 
function AK(a,b){if("play"!=a.zb)return"https://support.google.com/youtube/?p=report_playback";var c={contact_type:"playbackissue",html5:1,plid:b.Ib,ei:b.C,v:b.videoId,p:"movies_playback"};b.b&&(c.fmt=b.b.id);b.Fa&&(c.cpn=b.Fa);b.T&&(c.partnerid=b.T);return $d("//support.google.com/googleplay/",c)} 
function ML(a){var b={};if(!a.Ra)return b;a.Ra.webkitDecodedFrameCount&&(b.hmewdfc=a.Ra.webkitDecodedFrameCount,b.hmewdrop=a.Ra.webkitDroppedFrameCount,b.hmewvdbc=a.Ra.webkitVideoDecodedByteCount,b.hmewadbc=a.Ra.webkitAudioDecodedByteCount);a.Ra.mozParsedFrames&&(b.hmempf=a.Ra.mozParsedFrames,b.hmemdf=a.Ra.mozDecodedFrames,b.hmempresented=a.Ra.mozPresentedFrames,b.hmempainted=a.Ra.mozPaintedFrames,b.hmempaintdelay=a.Ra.mozPaintDelay);return b} 
function IL(a){var b=q("yt.www.watch.activity.getTimeSinceActive",window);if("detailpage"==a.ba&&b)return b();b=0;a.rg&&(b=w()-a.rg);return b}function rI(a){return"leanback"==a.ba||a.mc||!a.Qc&&!a.Fh?!1:!0}function wt(a){return"detailpage"!=a.ba&&"embedded"!=a.ba&&"profilepage"!=a.ba?!1:!0}f.Cb=function(){var a=document.location.toString(),b=!!a&&-1!=a.search(Fe),c=cf(a);b!=c&&Xe(Error(a+" behavior is not consistent"));a=c&&!gf();return c&&gf()&&hf(this.$d)||a}; 
function ME(a){return qh&&tr("crkey")||"tv"==a.o}f.J=function(){this.Ei=this.Ra=null;EL.G.J.call(this)};function NL(a,b){this.b=a;this.ya=b;this.g=1}function OL(a,b,c,d){d/=a.g;var e=UK(a.b)+1/VK(a.b),g;g=Math.max(.9*(d-3),TK(a.b)+8192*e);c=g/e/(b+c);c=Math.min(c,d);c=Math.max(a.ya.A,Math.min(a.ya.L,c));a=Math.max(a.ya.F,Math.ceil(a.ya.A*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function PL(a){var b=VK(a.b);a=TK(a.b)+1048576*UK(a.b);return b*Math.min(1,1048576/(b*a))}function QL(a){return PL(a)/a.g};function zH(a,b,c){this.b=a;this.video=b;this.g=c};function RL(a,b,c,d){this.L=a;this.ya=b;this.$a=c;this.C=d;this.j=this.B=this.b=null;this.o="i";this.F=-1;this.A=this.g=null;this.k=[];this.D=this.I=0;this.M=null}function SL(a,b,c){"m"==c&&Vp(a.b)&&!Vp(b)&&(c="a");if("m"==c&&Vp(b))return a.o=c,TL(a,b),a.j=UL(a),new zH(a.g,a.j,c);var d=a.b.equals(b);if("m"==a.o&&Vp(a.b)&&d)return null;"r"!=c||d||(a.F=-1);TL(a,b);b=UL(a);if("r"==c&&!d&&b==a.j)return a.j=b,new zH(a.g,b,c);a.o=c;return null}function VL(a,b){WL(a);a.M=b;a.D=w();a.F=-1;TL(a,a.b)} 
function WL(a){return!!a.D&&9E4>=w()-a.D}function UL(a){if(Vp(a.b)||!(8E3>w()-a.F)){a.D&&!WL(a)&&(a.D=0,TL(a,a.b));var b=QL(a.L);if(Vp(a.b))a.A=a.$a.Ma[a.k[a.k.length-1].id];else{for(var c=Math.min(a.I,a.k.length-1),d=b/1.05-a.g.info.ra;0<c&&!(a.k[c].ra<=d);c--);for(b=b/1.15-a.g.info.ra;c<a.k.length-1&&!(a.k[c+1].ra>=b);c++);a.I=c;a.A=a.$a.Ma[a.k[c].id]}}return a.A}function XL(a){var b=a.o;a.o="a";a.F=w();return new zH(a.B,a.j,b)} 
function TL(a,b){a.b=b;var c=a.C.g;if(!Vp(a.b)&&(c=hb(c,function(a){return a.ra>this.ya.ra?!1:!this.$a.Ma[a.id].o},a),WL(a))){var c=hb(c,function(a){return a.id!=this.M.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.C.g);c=hb(c,a.b.k,a.b);c.length||(c=[a.C.g[0]]);c.sort(function(a,b){return a.ra-b.ra});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.video.width>g.video.width?(sb(c,d),d--):1.15*e.ra>g.ra&&(sb(c,d-1),d--)}a.k=c} 
function YL(a){var b=lb(a.C.b,function(a){return!!a.k&&a.k.b});b||(b=a.C.b[0]);a.g=a.$a.Ma[b.id]}function ZL(a){var b=QL(a.L)/1.05-a.g.info.ra,c=ob(a.k,function(a){return this.ya.zi&&this.ya.zi<yo[a.video.b]?!1:a.ra<b},a);0>c&&(c=0);a.I=c;a.A=a.$a.Ma[a.k[c].id]};function $L(a,b){this.ya=a;this.j=b;this.pendingRequests_=[];this.b=[];this.k=this.g=null;this.o=0;this.ra=b.info.ra;this.B=this.A=this.C=!1}function aM(a,b){a.pendingRequests_.push(b);a.g=db(b.info.b);a.o+=$o(b.info)}function bM(a){for(;a.pendingRequests_.length&&5==a.pendingRequests_[0].state;){var b=a.pendingRequests_.shift();a.o-=$o(b.info);a.o+=db(b.k).buffer.byteLength;B(b.k,a.F,a)}} 
$L.prototype.F=function(a){if(4==a.info.type){var b=a.info.b.Ir(a);a.info==this.g&&(this.g=db(b).info);B(b,this.F,this)}else 3==a.info.type&&this.b.push(a)};function cM(a){var b=dp(a.b[0]);return b.getInt32(0)>b.byteLength&&1==a.b.length} 
function dM(a,b){if(a.C)return a.b[0].Y;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.ya.I)break}d--;var e=a.b[d].Y.end,g=a.b[d].info.C-b;if(c&&0<=a.ya.C&&g>a.ya.C){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].Y.start+c-1}return new Co(a.b[0].b?0:a.b[0].Y.start,e)} 
function eM(a,b){for(var c;a.b.length;){if(a.b[0].Y.end>b.end){var d;c=a.b[0];var e=b.end-a.b[0].Y.start+1,e=Math.min(e,c.info.g),g=new Ro(c.info.type,c.info.b,c.info.Y,c.info.k,c.info.startTime,c.info.duration,c.info.j,e,!1);d=Eo(c.Y.start,e);g=new pp(g,c.buffer,d,c.b);e=new Ro(c.info.type,c.info.b,c.info.Y,c.info.k,c.info.startTime,c.info.duration,c.info.j+e,c.info.g-e,c.info.B);d=new Co(d.end+1,c.Y.end);d=[g,new pp(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.ra=Math.max(d.ra,g.b.info.ra);if(c.Y.end==b.end)break}a.b.length&&c.buffer==a.b[0].buffer||(a.o-=c.buffer.byteLength)}function fM(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 gM(a,b){var c=hM(a,b);if(0<=c)return c;a.g=a.j.Ri(b).b[0];a.k&&a.k.B&&(a.k=null);return a.g.startTime} 
function BH(a,b){iM(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 jM(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());fM(a)}} 
function kM(a){return jb(a.b,function(a){return a.info.A})}function lM(a){return!!a.k&&a.k.B}function mM(a){var b=[];a.k&&b.push(a.k);B(a.b,function(a){b.push(a.info)});B(a.pendingRequests_,function(a){B(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 nM(a){if(!a.g||!a.g.g)return!1;a=mM(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 hM(a,b){if(nM(a)){var c;t:{c=mM(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 oM(a){return jb(a.pendingRequests_,function(a){return 3<=a.state})}function pM(a){return!!(a.g&&a.j.wc()&&a.g.b!=a.j&&a.g.b.info.ra<a.j.info.ra)}$L.prototype.D=function(a){So(a.info.b[0])||a.dispose();this.o-=$o(a.info)};function iM(a){B(a.pendingRequests_,a.D,a);a.pendingRequests_=[];a.g=null};function qM(a,b,c){this.ya=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}qM.g=!1;qM.b=1E4;f=qM.prototype;f.getErrorCode=function(){return this.o};function rM(a){var b;b=a.timing;b={rt:((w()-b.g)/1E3).toFixed(2),lb:b.b,pt:(b.M/1E3).toFixed(2),pb:b.I};b.shost=Ci(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&&sM(this);tM(this,2);if(b){if(2>this.j){this.j++;a=qM.b*(.5+Math.random());1==this.j&&(a=2E3);L(v(this.Um,this),a);return}b=this.info.j;if(!(this.F<=b.j)){b.g++;b.j=Po-1;var c=kf(b.b);b.b=Ho(c,"cmo",encodeURIComponent("pf="+b.g));c.match("c\.youtube\.com/")&&(b.b+="&cmo=sensitive_content%3Dyes")}this.j=0}a?this.Um():L(v(this.Um,this),0)}; 
f.Um=function(){if(!this.ha()){this.F=Po++;var a;a=Zo(this.info);a=Ho(a,"keepalive","yes");this.j&&(a=Ho(a,"playerretry",this.j.toString()));this.D=a;this.b=new XMLHttpRequest;try{this.b.open("GET",a)}catch(b){this.o="net.ssl";tM(this,6);return}this.b.responseType="arraybuffer";this.b.withCredentials=!0;var c=v(this.Cw,this);this.b.addEventListener("load",c,!1);this.b.addEventListener("error",c,!1);this.b.send();this.A=0;c=this.timing;c.g=w();c.A=c.g;c.b=0;c.D=!1;c.F=!1;c.o=0;c.C=WK(c.j);uM(c);c.M= 
c.B-c.g;this.b.addEventListener("progress",v(this.Dw,this),!1);0<this.ya.j&&(this.g=L(v(this.Xo,this),this.ya.j));Fo(a,"itag");Fo(a,"range");Math.round(this.info.b[0].o);Math.round(db(this.info.b).C);w()}};f.Dw=function(a){if(!this.ha()){this.b&&(this.C=this.b.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.g&&4E12>c?c:w();20>c-b.A||vM(b,c,a);b=this.timing;b.b>b.L&&8192<b.b&&3>this.state&&tM(this,3)}}; 
f.Cw=function(a){var b=this.b;if(!this.ha()&&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=Go(c,"keepalive");c=Go(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=Go(c,g[d]); 
if(1<e.length)for(e=e[1].split("&"),d=0;d<e.length;d++)c=Go(c,e[d].split("=")[0])}}c=Go(c,"range");b.j.b=c;tM(this,4)}else if(this.info.Y&&b.byteLength!=this.info.Y.length)a=!0,this.o="fmt.unparseable";else{c=this.info.b;1!=c.length||c[0].Y||(d=c[0],e=Eo(0,b.byteLength),d=new Ro(d.type,d.b,e,d.k,d.startTime,d.duration,d.j,e.length,d.B),c[0]=d);for(var d=[],e=0,h=!1,g=!1,k=0;k<c.length;k++){var l=c[k],p=b,r=Eo(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), 
r=Eo(0,l.g),h=!0;else if(3==l.type||4==l.type)u=h&&!g,g=!0;d.push(new pp(l,p,r,u));e+=l.g}this.k=d;c=this.timing;d=w();b=b.byteLength;c.D||(c.D=!0,d=d>c.g&&4E12>d?d:w(),vM(c,d,b),e=(d-c.g)/1E3,!c.F&&8192<=c.b&&OK(c.j,e,b),8192<=c.b&&RK(c.j,b,c.o),QK(c.j,d-c.g,c.b),c.k&&(c.k=!1));w();tM(this,5)}}a&&(sM(this),tM(this,6))}};function sM(a){if(2>a.j)a=!0;else{var b=a.info.j;a=!(a.F>b.j&&1<=b.g)}return a}function tM(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.k&&(c.k=!1)}a.B&&a.B(a)} 
f.Xo=function(){this.g=NaN;if(!this.ha()){var a=w(),b=!1;if(8192<=this.timing.b){var c=this.timing.B;uM(this.timing);this.timing.B-c>=.8*this.ya.j?(this.A++,b=5<=this.A):this.A=0}else b=this.timing,b=5E3<a-(b.g+1E3*b.C.delay);b?(b=this.timing,a=a>b.g&&4E12>a?a:w(),8192<=b.b||b.j.g.j?(b.o+=(a-b.A)/1E3,RK(b.j,b.I,b.o)):(c=b.j,c.k.g(1,(a-b.g)/1E3),1E4<w()-c.b&&SK(c)),QK(b.j,a-b.g,b.b),wM(this),this.o="net.timeout",tM(this,So(this.info.b[0])?6:7)):this.g=L(v(this.Xo,this),this.ya.j)}}; 
f.ha=function(){return-1==this.state};f.dispose=function(){tM(this,-1);this.B=this.k=null;wM(this);M(this.g);this.g=NaN};function wM(a){if(a.b){var b=a.b;a.b=null;b.abort()}a=a.timing;a.k&&(a.k=!1)};function xM(a,b,c){this.j=a;this.I=b;this.L=c;this.b=this.A=this.g=NaN;this.F=this.D=this.k=!1;this.o=0;this.B=this.M=NaN}function vM(a,b,c){if(a.k){var d=(b-a.A)/1E3,e=c-a.b;0<e&&(.2<d||1024>e?(a.o+=d,.2<d&&OK(a.j,.05,e)):OK(a.j,d,e),a.F=!0)}else 8192<=c&&(d=a.j,d.k.g(1,(b-a.g)/1E3),1E4<w()-d.b&&SK(d),a.k=!0);a.A=b;a.b=c}function uM(a){var b=a.I-a.b,b=1E3*(b*a.C.tailDelay+b/a.C.byterate),c=w(),b=8192<=a.b?b+c:b+Math.max(c,a.g+1E3*a.C.delay);a.B=b};function yM(a,b,c,d){ej.call(this);this.A=a;this.ya=b;this.$a=c;this.g=this.j=null;this.C=new NL(a,b);this.b=null;this.o=new RL(this.C,b,this.$a,d);this.k=this.V=this.N=this.O=NaN;this.D=!1;this.I=NaN;this.U=0;this.B=!1;this.ca={};this.L="";this.T=!1;this.F=0}x(yM,ej);yM.k=!1;yM.b=2/24;yM.g=1E3;yM.j=1E4;f=yM.prototype; 
f.initialize=function(a,b,c){a=a||0;var d=this.o;d.o="i";YL(d);d.B=d.g;TL(d,b);ZL(d);d.j=d.A;b=XL(d);this.j=new $L(this.ya,b.b);this.g=new $L(this.ya,b.video);this.H("formatchange",b);this.k=a;c?(this.B=!0,zM(this)):AM(this)};function AM(a){0==a.k&&(a.j.j.j||BM(a,a.j,!0),a.g.j.j||BM(a,a.g,!0));a.seek(a.k);CM(a,"gv")}f.resume=function(){this.B&&(this.B=!1)}; 
f.kA=function(a){this.resume();this.b=a;Br(a)&&(a.b.addEventListener("updateend",v(this.yc,this),!1),a.g.addEventListener("updateend",v(this.yc,this),!1));CM(this,"msa");this.yc();this.V=Ve(v(this.yc,this),yM.j)};function DM(a){a.b&&a.b.b&&a.b.b.removeEventListener&&(a.b.b.removeEventListener("updateend",v(a.yc,a),!1),a.b.g.removeEventListener("updateend",v(a.yc,a),!1));a.b=null;a.B=!0;a.j&&(BH(a.g,!1),BH(a.j,!1))}function EM(a){a.b&&zr(a.b)&&DM(a)} 
function FM(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 GM(a,b,c){if(a.B)return!1;if(!b.g){if(!b.j.wc())return b.j.j||BM(a,b,!1),!1;gM(b,a.k)}var d=b.pendingRequests_.length+c.pendingRequests_.length;if(oM(b)||oM(c)||a.$a.b)d-=1;if(2<=d+1)return!1;d=b.g;4==d.type&&d.b.wc()&&(b.g=db(d.b.$i(d)),d=b.g);!d.B&&!d.b.Pg(d)||d.b.info.g&&4==d.type?a=!1:pM(b)&&a.ya.b?a=!0:(!(c=d.B||b.o+c.o>a.ya.g||!!(c.g&&!c.g.B&&c.g.C<d.C))&&(c=3==d.type)&&(d=d.C,b=HM(a,b,!0),Vp(a.o.b)||(c=(w()-a.U)/1E3,b=Math.min(b,30+2*c)),c=d>a.k+b),a=c?!1:!0);return a} 
function IM(a,b,c){if(!a.b||yr(a.b)||Br(a.b)){var d=a.k,e;e=a.C;c=OL(e,b.j.info.ra,c.j.info.ra,0);e=TK(e.b)+c*UK(e.b)+c/VK(e.b);e=Math.max(e,e+5-c/b.j.info.ra);d=d+e;a=a.o;t:{a=!!(a.j&&a.A&&a.j.info.ra<a.A.info.ra&&"r"==a.o);if(b.pendingRequests_.length){if(b.pendingRequests_[0].info.b[0].startTime<=d)break t;iM(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));fM(b);a&&b.g&&d<b.g.startTime&&(b.g=b.j.Ri(d,!0).b[0])}}} 
function JM(a,b,c){GM(a,b,c);var d=b.g;if(b.g.b.wc()){pM(b)&&a.ya.b&&(IM(a,b,c),b.g||gM(b,a.k));var d=b.g,e=d.C-a.k,g;(g=b.j.wc()&&b.g.b!=b.j)&&!pM(b)&&(g=15>=e);var h=!d.Y||0==d.g&&0==d.j?0:d.Y.length-(d.j+d.g);g&&0==h&&(g=d.startTime+yM.b,d.g&&(g+=d.duration),gM(b,g),d=b.g,g=!1);d.b.sm()?(c=OL(a.C,d.b.info.ra,c.j.info.ra,e),e=g,c=Vo(d,c),c.Y&&1<c.b.length&&(e?c=Vo(d,c.b[0].g):(e=c.b[c.b.length-1],g=e.g/c.Y.length,!e.A&&.4>g&&(c=Vo(d,c.Y.length-e.g)))),d=c):d=bp(d.b,d)}else d.b.sm()?(c=OL(a.C,b.j.info.ra, 
c.j.info.ra,0),d=Vo(d,c)):d=bp(d.b,d);aM(b,KM(a,d))}function KM(a,b){if(3==b.b[b.b.length-1].type){var c;t:{c=a.o;var d=b.b[0].b;if(d.info.video){if(c.j!=d){c.j=d;c=XL(c);break t}}else c.B=d;c=null}yH(a,c)}c=$o(b);var d=a.A,e=a.C,g=Math.min(2.5,TK(e.b)),e=PL(e);c=new qM(a.ya,b,new xM(d,c,c-g*e));d=v(a.Lz,a);c.B=d;c.start();return c}function yH(a,b){b&&a.H("formatchange",b)} 
f.Lz=function(a){if(!this.ha()&&3<=a.state){var b=a.info.b[0].b,c=!this.aa&&b.info.video,d=!this.P&&b.info.g;6==a.state&&sM(a)?(this.Bf(!1,a.getErrorCode(),rM(a)),b.info.video&&0<a.j&&!WL(this.o)?(VL(this.o,b.info),iM(this.g),So(a.info.b[0])&&BM(this,this.g,!1),this.yc()):a.start()):4==a.state?(c?CM(this,"vrr"):d&&CM(this,"arr"),a.start()):5==a.state?(c?(this.aa=a.D,Az()&&Gz()):d&&(this.P=a.D),B(a.k,function(a){So(a.info)&&a.info.b.mq(a)}),kb(a.k,function(a){return qp(a)})&&!a.k[0].info.b.lm()?this.yc(): 
this.Bf(!0,"fmt.unparseable",rM(a))):7==a.state?(this.Bf(!1,a.getErrorCode(),rM(a)),CH(this)):3==a.state?(this.yc(),c&&Az()&&rg(document.body,"exp-js-scheduler-aggressive")&&Gz()):So(a.info.b[0])?(b.o=!0,this.yc()):this.Bf(!0,"net.retryexhausted",rM(a))}};function CH(a){if(isNaN(a.O)){var b=v(a.yc,a);a.O=L(b,0)}}function zM(a){if(isNaN(a.N)){var b=v(function(){this.N=NaN;this.yc()},a);a.N=L(b,yM.g)}} 
f.yc=function(){this.O=NaN;EM(this);if(this.b&&!Ar(this.b))if(this.$a.b)Infinity!=this.I&&(this.I=Infinity,this.b.Cf(Infinity));else if(!isFinite(this.I)){var a=Math.floor(Math.max(this.j.j.index.Ff(),this.g.j.index.Ff()));0<a&&(this.b.Cf(a),this.I=a)}if(!this.ha())if(a=this.$a,w()-a.A>=a.k){a=this.$a;if(!a.j){var b=Ho(a.C,"start_seq",(Rb(a.Ma).index.Yb()+1).toString());Lp(a,b)}zM(this)}else if("prerender"==window.document.webkitVisibilityState)zM(this);else if(EM(this),bM(this.g),bM(this.j),jM(this.g), 
jM(this.j),this.j.j.j||(!this.B||XK(this.A)?AM(this):zM(this)),!this.b||FM(this,this.j,this.b.b)||FM(this,this.g,this.b.g)||((a=LM(this,this.g,this.b.g))&&!this.F&&(this.F=w(),CM(this,"vda")),b=Tt(this.b.g.buffered,this.k+yM.b),isNaN(b)&&!lM(this.g)&&this.b.b.buffered.length||(lM(this.g)&&(b=NaN),a|=LM(this,this.j,this.b.b,b)),lM(this.g)&&lM(this.j)&&yr(this.b)&&!Ar(this.b)&&(b=this.b,yr(b)&&b.j.endOfStream(),SK(this.A)),a&&!Br(this.b)&&CH(this)),AH(this,this.g,UL(this.o)),AH(this,this.j,this.o.g), 
this.g.j.o||this.j.j.o)this.Bf(!0,"net.retryexhausted");else{a=this.F?w()-this.F:0;if(this.T||a>=this.ya.D)GM(this,this.g,this.j)&&JM(this,this.g,this.j),GM(this,this.j,this.g)&&JM(this,this.j,this.g);this.ya.M&&this.L&&!this.B&&XK(this.A)&&(a=this.L,this.L="",b=Ci(a),Li(a,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:v(this.Bf,this,!1,"pathprobe.net",{shost:b})}))}}; 
function LM(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||To(b.k,e.info)||(b.k=null,yr(a.b)&&c.abort(),c.g=null);var g=!(!b.ya.I||!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:(MM(a,c,h),c.g=h,a.H("initsegment",c.g),h=c.updating);if(h)return!0;h=HM(a,b,!1);h=a.k+h;0<=d&&(h=Math.min(h,d));d=dM(b,h);if(!d)return!1;if(g){if(cM(b))return!1;var k;t:{cM(b);var g=b.b[0],l=dp(g);h=l.getInt32(0);if(h>l.byteLength){var p= 
b.b[1];if(p.Y.length+l.byteLength<h){k=null;break t}k=new Uint8Array(h);l=new Uint8Array(g.buffer,g.Y.start,g.Y.length);k.set(l);l=new Uint8Array(p.buffer,p.Y.start,h-g.Y.length);k.set(l,g.Y.length);l=new DataView(k.buffer)}var r=g.info.b.index.rm(g.info.k);(l=ep(l,r))?(k?(eM(b,g.Y),eM(b,Eo(p.Y.start,h-g.Y.length))):eM(b,Eo(g.Y.start,h)),k=l):k=null}if(k)return MM(a,c,new Uint8Array(k)),!0}k=new Uint8Array(e.buffer,d.start,d.length);a.$a.g&&3==e.info.type&&ja(c.timestampOffset)&&(p=0,p=a.ya.N&&!b.A? 
-rp(e):-(rp(e)-e.info.startTime),c.timestampOffset==p||isNaN(p)||(c.timestampOffset=p));if(!MM(a,c,k))return!1;a.$a.g&&a.ya.N&&!b.A||eM(b,d);b.A||(b.A=!0);e.b&&(c.g=e.info.b.b,a.H("initsegment",c.g));return!0}function MM(a,b,c){if(Br(a.b))try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!zr(a.b)}function HM(a,b,c){var d;d=Vp(a.o.b)&&a.ya.b?b.j.info.g?10485760:62914560:b.j.info.g?a.ya.k:a.ya.o;c&&(d+=a.ya.g);return d/(Vp(a.o.b)?b.g?b.g.b.info.ra:b.j.info.ra:b.ra)} 
f.seek=function(a){if(!this.ha()){EM(this);this.U=w();this.g.j=UL(this.o);var b=NM(this,this.g,a,this.b&&this.b.g);this.j.j=this.o.g;var c=NM(this,this.j,b,this.b&&this.b.b);this.k=Math.max(a,b,c);this.D=!0;CH(this)}}; 
function NM(a,b,c,d){if(b.j.wc())if(d){var e=Tt(d.buffered,c),g=NaN,h=b.k;h&&(g=Tt(d.buffered,h.b.index.mj(h.k)));if(e==g&&nM(b))return c;d=hM(b,c);if(0<=d)return d;BH(b,!0);b.j.info.video&&b.k&&!b.k.A&&!kM(b)&&(d=b.k,b.b.length&&(d=db(b.b).info),d=b.g||d,d=Vo(d,d.Y.length-(d.g+d.j)),aM(b,KM(a,d)));if(isNaN(e))return gM(b,c);gM(b,e+yM.b)}else gM(b,c);else b.j.j||BM(a,b,!1),0!=c&&iM(b);return c}function AH(a,b,c){b.j!=c&&(b.j=c,c.j||BM(a,b,!1))} 
function BM(a,b,c){var d=c?65536:0;c&&!isNaN(a.ya.B)&&(d=Math.floor(Math.max(d,a.ya.B*b.j.info.ra)));c=b.j.Xr(d);B(c,function(a){var c=KM(this,a);!So(a.b[a.b.length-1])&&aM(b,c)},a);b.j.j=!0}f.J=function(){DM(this);this.j&&(iM(this.j),iM(this.g));We(this.V);this.g=this.j=null;yM.G.J.call(this)};f.Bf=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&&yr(this.b)&&(a=this.b,yr(a)&&a.j.endOfStream("network")),this.dispose())}; 
yM.prototype.getDebugInfo=function(){var a={lct:this.k.toFixed(3),lsk:this.D,lmf:Vp(this.o.b),lbw:VK(this.A).toFixed(3),lhd:TK(this.A).toFixed(3),ltd:(1E9*UK(this.A)).toFixed(3),laa:this.j.k?Yo(this.j.k):"",lva:this.g.k?Yo(this.g.k):"",lar:this.j.g?Yo(this.j.g):"",lvr:this.g.g?Yo(this.g.g):""};this.b&&!zr(this.b)&&(a.lab=Rt(this.b.b.buffered),a.lvb=Rt(this.b.g.buffered));return a};function CM(a,b,c){a.ca[b]=c?window.performance.timing.navigationStart+c:w()};function OM(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 pr(this);R(this,this.k);this.b&&(qr(this.k,this.b,["message","mskeymessage"],this.kp),qr(this.k,this.b,["error","mskeyerror"],this.jp),qr(this.k,this.b,["ready","mskeyadded"],this.ip))}x(OM,Mh);f=OM.prototype;f.setCallbacks=function(a,b,c,d){this.D=a;this.C=b;this.B=c;this.g=d};f.kp=function(a){this.D.call(this.g,a)}; 
f.jp=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.ip=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;OM.G.J.call(this)};function PM(a,b){this.b=a;this.k=b;this.A={};this.j=null;this.o=new pr(this);R(this,this.o);kr()||(qr(this.o,this.b,["keymessage","webkitkeymessage"],this.D),qr(this.o,this.b,["keyerror","webkitkeyerror"],this.C),qr(this.o,this.b,["keyadded","webkitkeyadded"],this.B));this.g=null}x(PM,Mh);function QM(a){a.g=new (kr())(a.k.b);a.b&&(a.b.msSetMediaKeys?a.b.msSetMediaKeys(a.g):a.b.setMediaKeys(a.g))} 
function RM(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}PM.prototype.D=function(a){var b=RM(this,a);b&&b.kp(a)};PM.prototype.C=function(a){var b=RM(this,a);b&&b.jp(a)};PM.prototype.B=function(a){var b=RM(this,a);b&&b.ip(a)};PM.prototype.J=function(){this.b=null;PM.G.J.call(this)};var SM=null,TM=null;function UM(a,b){this.url=a;this.b=b};function VM(a,b,c){this.b=a;this.headers=b;this.message=c};function WM(a,b,c,d,e){this.F=a;this.g=d;this.g.subscribe("oauthtoken",this.Bp,this);this.o={session_id:e};Ft(this,a.j);this.b=[];this.k=this.B=this.D=!1;var g;try{var h=c.b;if(kr()){b.g||QM(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 OM(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 OM(b.b,b.k,h,null),g=b.j}catch(r){b="g",r instanceof DOMException&&(b+=r.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.Wl,this.Bw,this.Aw,this),R(this,this.j)}x(WM,Mh);f=WM.prototype;f.Bp=function(a){this.C=a}; 
function Ft(a,b){if(cf(b)){for(var c in a.o)b=de(b,c,a.o[c]);a.A=b}else XM(a,"drm.net","u")}f.start=function(){this.ha()||(this.D=!0,this.b.length&&this.Wl(this.b.shift()))}; 
f.Wl=function(a){if(!this.ha())if(this.k&&a.defaultURL&&Ft(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(!SM)for(SM={},TM={},c=0;65>c;c++)SM[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),TM[SM[c]]=c,62<=c&&(TM["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)]= 
c);for(var c=TM,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",Tx:a,responseType:"arraybuffer",withCredentials:!0,onSuccess:this.Ux,onError:this.Cp,context:this};b=this.A;this.C&&(b=de(b,"access_token",this.C));Li(b,a)}else this.b.push(a), 
this.B||(this.B=!0,this.g.H("newsession",this))};f.Aw=function(){this.ha()||(this.k||(this.g.H("sessionready"),this.k=!0),this.b.length&&this.Wl(this.b.shift()))}; 
f.Ux=function(a){if(!this.ha())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("
"),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=s(d)?/^\s*-?0x/i.test(d)?parseInt(d,16):parseInt(d,10):NaN,g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new VM(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?XM(this,"drm.auth","f"+a.b,Su(a.b)):(b=(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new UM(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60)),(b||c)&&this.g.H("newlicense",b,c),this.j.update(a.message)):XM(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Cp(a)};f.Bw=function(a,b){this.ha()||XM(this,"drm.keyerror","s"+a+"."+b)};f.Cp=function(a){XM(this,"drm.net","r"+a.status)}; 
function XM(a,b,c,d){a.ha()||a.g.H("licenseerror",b,c,d);a.dispose()}f.J=function(){this.g=null;WM.G.J.call(this)};function YM(a,b){this.b=a;this.g=b||null};function ZM(a,b){ej.call(this);this.D=a;this.b=b;this.subscribe("newlicense",this.uv,this);this.subscribe("newsession",this.vv,this);this.subscribe("sessionready",this.wv,this);this.N=wq();this.k=null;this.C={};this.g=[];this.j=Sp;this.L=new PM("com.microsoft.playready"==b.b?null:a,b);R(this,this.L);this.A=new PM(a,b);R(this,this.A);this.B=2;this.F=new pr(this);R(this,this.F);this.o=!1;this.I=null;qr(this.F,this.D,kr()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.tv)}x(ZM,ej);f=ZM.prototype; 
f.tv=function(a){$M(this,new YM(a.initData,a.contentType),!0)}; 
function $M(a,b,c){if(!(a.ha()||"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||(aN(a,b),a.o=!0)}}}function aN(a,b){var c=new WM(a.b,a.L,b,a,a.N);c.Bp(a.k);R(a,c)}f.uv=function(a,b){a&&D(a,"HD")&&!Up(this.j)&&"com.microsoft.playready"!=this.b.b&&(this.j=Tp,this.H("qualitychange"));b&&!this.I&&(this.I=b,this.H("heartbeatparams",b))};f.vv=function(){this.ha()||(this.g.shift(),this.g.length&&aN(this,this.g[0]))};f.wv=function(){this.B--;0==this.B&&QM(this.A)}; 
f.J=function(){this.D=null;this.g=[];ZM.G.J.call(this)};function bN(a){this.j={};this.j.c1a=v(this.k,this);this.j.c3a=v(this.o,this);(this.b=a)&&this.b.aa?this.g=Ai(this.b.aa):this.g=[]}bN.prototype.k=function(){var a=q("yt.abuse.botguardInitialized");return a&&a()?(a=q("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};bN.prototype.o=function(a){return"r3a="+Math.floor(this.b.Qa%$a(a.c3a))};function cN(a,b,c){this.b=a;this.j=b;this.g=c};function dN(a){this.b=a}function eN(a,b){return Wp(Wp(a.b.nm,b.Om),b.zf)} 
function fN(a,b){var c;c=!!b.g.b;var d;!a.b.b.o||"detailpage"!=a.b.ba&&"adunit"!=a.b.ba||(d=uK(a.b).clone());d||(a.b.Gg?d=a.b.Gg.clone():nh&&!a.b.Fi?d=window.screen&&window.screen.width?new G(window.screen.width,window.screen.height):null:a.b.Yd&&(d=a.b.Yd.clone()));d?((nh||jc||c)&&d.scale(window.devicePixelRatio||1),c=d):c=new G(640,360);var e;d=b.g.g;if(d.length){for(var g=0;g<d.length&&!(e=d[g].video,null===c||.85*e.width<c.width&&.85*e.height<c.height);g++);e=Rp("auto",e.b,!1)}else e=Tp;c=e.b; 
qh&&tr("crkey")&&(c=Math.max(c,yo.hd1080));if(d=(tr("armv7")||tr("android"))&&!ME(a.b))d=b.g.g[0],d="9"==d.j||"("==d.j;d&&(c=Math.min(c,yo.large));c=Math.max(c,yo.medium);e.b!=c&&(e=new Qp(e.g,c,e.j));return e};function gN(){this.k=this.b=NaN;this.j=this.g=!1}function ku(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 hN(){this.b=this.g=!1}hN.prototype.start=function(){this.g=!0};function iN(){this.g=0;this.b=this.o=this.j=this.k=NaN};var jN={};function kN(a){return a?24==a.length&&"UC"==a.slice(0,2)?a.substr(2):22==a.length?a:null:null};var lN; 
lN={o:["f.Kr.","e.Kr."],k:["f.Kr.","e.Kr."],B:"JFMAMJJASOND".split(""),N:"JFMAMJJASOND".split(""),A:"januar februar marts april maj juni juli august september oktober november december".split(" "),L:"januar februar marts april maj juni juli august september oktober november december".split(" "),F:"jan. feb. mar. apr. maj jun. jul. aug. sep. okt. nov. dec.".split(" "),P:"jan feb mar apr maj jun jul aug sep okt nov dec".split(" "),ca:"sndag mandag tirsdag onsdag torsdag fredag lrdag".split(" "),T:"sndag mandag tirsdag onsdag torsdag fredag lrdag".split(" "), 
M:"sn. man. tir. ons. tor. fre. lr.".split(" "),U:"sn man tir ons tor fre lr".split(" "),C:"SMTOTFL".split(""),O:"SMTOTFL".split(""),I:["K1","K2","K3","K4"],D:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],b:["AM","PM"],g:["EEEE 'den' d. MMMM y","d. MMM y","dd/MM/y","dd/MM/yy"],V:["HH.mm.ss zzzz","HH.mm.ss z","HH.mm.ss","HH.mm"],j:["{1} 'kl.' {0}","{1} 'kl.' {0}","{1} {0}","{1} {0}"],XE:0,aa:[5,6],YE:3};function mN(a,b,c,d,e,g){s(a)?(this.j="y"==a?b:0,this.g="m"==a?b:0,this.b="d"==a?b:0,this.k="h"==a?b:0,this.o="n"==a?b:0,this.A="s"==a?b:0):(this.j=a||0,this.g=b||0,this.b=c||0,this.k=d||0,this.o=e||0,this.A=g||0)}mN.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};mN.prototype.clone=function(){return new mN(this.j,this.g,this.b,this.k,this.o,this.A)}; 
mN.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 nN(a,b,c){ja(a)?(this.b=oN(a,b||0,c||1),pN(this,c||1)):la(a)?(this.b=oN(a.getFullYear(),a.getMonth(),a.getDate()),pN(this,a.getDate())):(this.b=new Date(w()),this.b.setHours(0),this.b.setMinutes(0),this.b.setSeconds(0),this.b.setMilliseconds(0))}function oN(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=nN.prototype;f.As=lN.XE;f.Bs=lN.YE; 
f.clone=function(){var a=new nN(this.b);a.As=this.As;a.Bs=this.Bs;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()),pN(this,a.getDate()))};f.lF=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.lF()};function pN(a,b){a.getDate()!=b&&a.b.setUTCHours(a.b.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.b.valueOf()};var qN=["3djj8jS0370cu_ghKs_Ong","LsooMJoIpl_7ux2jvdPB-Q","JkWoS4RsldA1coEIot5yDA","jVkjd2VWCWO-9DHRQER3Yg","L8ZULXASCc1I_oaOT0NaOQ"];function rN(a){this.g=a;this.b=0;this.o=NaN;this.j=0;this.da=[];this.k=sN(this.g);this.A=this.B=0}function tN(a){a.k.startTime=a.j;a.k.endTime=a.b;a.da.length&&db(a.da).isEmpty()?a.da[a.da.length-1]=a.k:a.da.length&&a.k.isEmpty()||a.da.push(a.k);a.B+=a.b-a.j;a.k=sN(a.g);a.j=a.b}function uN(a){return a.B+a.g.j()-a.j}function vN(a){a.da.length&&a.b==a.j||tN(a);var b=a.da;a.da=[];return b} 
rN.prototype.update=function(){var a=this.g.j()||0,b=wN(this.g);if(a!=this.b||xN(this,a,b)){if(a<this.b||a-this.b>b-this.o+.5||xN(this,a,b))tN(this),this.j=a;this.o=b;this.b=a}};function xN(a,b,c){c-=a.o;return b==a.b&&.5<c};function yN(a,b){this.b=b;this.k=!1;this.g=a}yN.prototype.j=function(){return{ps:this.b.zb,el:this.b.ba}};yN.prototype.send=function(){this.k||(pf($d(this.b.tb+"set_awesome",this.j())),this.k=!0)};function zN(a,b,c){yN.call(this,b,c);this.o=a}x(zN,yN); 
zN.prototype.j=function(){var a=zN.G.j.call(this);ta(a,GL(this.b));var b=Ib(this.g.ai/this.g.Qa,0,1);ta(a,{html5:"1",video_id:this.g.videoId,eurl:this.b.g,framer:this.b.D,feature:this.b.C,list:this.g.Oa,w:b,l:this.g.Qa,plid:this.g.Ib,ei:this.g.C,access_token:this.g.B,tpmt:uN(this.o),cpn:this.g.Fa});this.b.k&&(a.adformat=this.b.k);this.b.T&&(a.referrer=LL(this.b));this.b.Gc&&(a.autoplay="1");this.b.Ua&&(a.authuser=this.b.Ua);this.b.gb&&(a.pageid=this.b.gb);this.g.Qd&&(a.splay="1");this.g.L&&(a.subscribed= 
this.g.L);ta(a,zN.G.j.call(this));ta(a,GL(this.b));return a};function AN(a){this.b=a;this.j={};this.M=NaN;this.o=new qw(this.rv,3E4,this);R(this,this.o);this.A=new qw(this.Rk,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}x(AN,Mh);var BN={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function CN(a,b,c,d){var e=a.j[b];e||(e=[],a.j[b]=e);a=0<=d?d:wN(a.b);e.push(a.toFixed(3)+":"+c.join(":"))}f=AN.prototype; 
f.Rk=function(a){a=a||wN(this.b);var b=this.b.B();if(!isNaN(this.O)&&!isNaN(b.j)){var c=b.j-this.O;0<c&&CN(this,"bwm",[c,(b.o-this.P).toFixed(3)],a)}this.O=b.j;this.P=b.o;isNaN(b.b)||CN(this,"bwe",[b.b.toFixed(0)],a);isNaN(b.g)||(c=b.g,b.k<c&&(c=b.k),this.L!=c&&(CN(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());CN(this,"cmt",[this.b.j()],a)}; 
function DN(a){var b={event:"streamingstats"};a.b.b.b&&(b.fmt=a.b.b.b.id);b.cpn=a.b.b.Fa;b.ei=a.b.b.C;b.el=a.b.g.ba;b.docid=a.b.b.videoId;b.ns=a.b.g.bd;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.rb?"dvr":"live");b.html5="1";return b} 
f.Jg=function(a){if(!this.ha()&&!Yb(this.j)){0!=this.A.va||this.Rk(a);a=ML(this.b.g).hmewdrop;0<=a&&a!=this.D&&CN(this,"df",[a-(this.D||0)]);this.D=a;a=DN(this);dc(a,GL(this.b.g));a=$d(KL(this.b.g),a);for(var b in this.j)a+="&"+b+"="+this.j[b].join(",");pf(a);this.j={};this.o.start()}};f.ah=function(){CN(this,"vps",["N"]);this.b.b.Va&&(this.j.cat=["preload"]);this.M=Ve(v(this.Jg,this),1E4);this.o.start()};f.onError=function(a,b){var c=this.b.j(),c=[a,c.toFixed(3)];b&&c.push(b);CN(this,"error",c)}; 
f.rv=function(){"PL"==this.g&&(CN(this,"vps",[this.g]),this.Jg())};f.J=function(){AN.G.J.call(this);We(this.M)};function EN(a,b,c,d){this.b=[];this.o=[];this.I=!1;this.g="watchtime"==c;this.yb="playback"==c;this.ka="delayplay"==c;this.Aa=(this.F="atr"==c)?"/api/stats/"+c:JL(b)+"api/stats/"+c;d&&(this.no=d.fs,d.rtn&&(this.Bg=d.rtn),this.g?(this.uf=d.state,0<d.rti&&(this.li=d.rti)):(this.oa=d.mos,this.ta=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.ni=b.Gc;this.Ia=b.A;this.Rd=b.I;this.Ha=b.M;this.Va=b.L;this.eb=b.xf;this.fb=b.Ce;this.kb=b.N;this.mb= 
b.O;this.jb=b.P;this.ob=b.U;this.xb=b.o;this.wb=b.g;this.Ae=b.ba;this.o=b.b.b;this.O=b.B;this.lo=b.bd;this.qf=b.T;this.P=b.ka;this.j=b.C;this.pf=b.Ha;this.ca=b.xa;this.aa=b.Aa;this.xa=IL(b);!a.b||a.kb.isEmpty();this.ni=a.Cg||this.ni;this.V=a.ci;this.Da=a.Fa;this.C=a.$h;this.fa=a.xk;this.k=a.ai;this.N=a.ze;a.b&&(this.tf=a.b.id);this.oo=a.Qd;this.Be=a.Zh;a.Za&&(this.ma=a.rb?"dvr":"live");this.vf=a.wk;this.Ib=a.Ib;this.ad=a.C;this.Oa=a.Oa;this.j=a.eb||this.j;this.U=a.jb;this.T=a.ob;this.sf=a.bi;this.wf= 
a.L;this.videoId=a.videoId;this.rf=a.mb}f=EN.prototype;f.ni=!1;f.ux=!1;f.Wo=!1;f.no=!1;f.sv=!1;f.oo=!1;f.lo="yt";f.li=null;f.Bg=null;f.send=function(){if(!this.I){var a=FN(this),a=$d(this.Aa,a);if(this.F)this.B&&Li(a,{method:"POST",Nb:{atr:this.B}});else{var b;b||(b=document.location.href);b=Qd(b)[1]||null;null!==b&&"https"==b&&this.C?Li(a,{headers:{Authorization:"CredentialTransfer type="+this.fa+",token="+this.C}}):pf(a)}this.I=!0}}; 
function FN(a){var b={ns:a.lo,el:a.Ae,cpn:a.Da,docid:a.videoId,ver:2,referrer:a.qf,cmt:a.Gf(a.k),plid:a.Ib,ei:a.ad,fmt:a.tf,fs:a.no?"1":"0",rt:a.Gf(a.wa),c:a.eb,cver:a.fb,adformat:a.Ca,content_v:a.Ia,euri:a.wb,subscribed:a.wf,lact:a.xa,live:a.ma,cplatform:a.xb,cbrand:a.Rd,cmodel:a.kb,cnetwork:a.mb,cbr:a.Ha,cbrver:a.Va,cos:a.jb,cosver:a.ob,mos:a.oa,q:a.pf,osid:a.rf,state:a.uf,volume:a.ta};a.ni&&(b.autoplay="1");a.Wo&&(b["final"]="1");a.oo&&(b.splay="1");a.N&&(b.delay=a.N);a.O&&(b.hl=a.O);a.P&&(b.cr= 
a.P);n(a.ca)&&a.aa&&(b.uga=a.aa+a.ca);n(a.M)&&(b.len=a.Gf(a.M));!a.g&&0<a.o.length&&(b.fexp=a.o.toString());null!=a.Bg&&(b.rtn=a.Gf(a.Bg));a.j&&(b.feature=a.j);a.Oa&&(b.list=a.Oa);a.U&&(b.ctrl=a.U);a.T&&(b.ytr=a.T);a.sf&&(b.ssrt="1");a.g?(b.idpj=a.Be,b.ldpj=a.vf,null!=a.li&&(b.rti=a.Gf(a.li))):(n(a.L)&&(b.at=a.L),n(a.A)&&(b.allowed=a.A),n(a.D)&&(b.ex_ads=a.D));(a.yb||a.ka)&&a.V&&(b.tst=a.V);a.g&&(b.st=GN(a,C(a.b,function(a){return a.startTime})),b.et=GN(a,C(a.b,function(a){return a.endTime})));jb(a.b, 
function(a){return 0!=a.visibilityState})&&(b.vis=GN(a,C(a.b,function(a){return a.visibilityState})));jb(a.b,function(a){return 1!=a.playbackRate})&&(b.rate=GN(a,C(a.b,function(a){return a.playbackRate})));jb(a.b,function(a){return"-"!=a.Vk})&&(b.cc=C(a.b,function(a){return a.Vk}).join(","));return b}f.Gf=function(a){return(1*a.toFixed(3)).toString()};function GN(a,b){return C(b,a.Gf).join(",")};function HN(a){this.b=a;this.k=new AN(a);R(this,this.k);this.g=new rN(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 zN(this.g,this.b.b,this.b.g)}x(HN,Mh);function IN(a,b,c){var d=wN(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(v(a.WB,a,c,b),d);return c}f=HN.prototype; 
f.WB=function(a,b){if(!this.ha()){this.B=NaN;this.g.update();var c=vN(this.g),d=JN(this,c);b&&(d.li=a);var e=400<this.F;!(1<c.length)&&c[0].isEmpty()||e||(d.Bg=IN(this,!0,a));d.send();this.F++}};function KN(a,b){var c=LN(a.b);ta(c,{state:a.A});c=new EN(a.b.b,a.b.g,b,c);c.k=a.b.j();c.M=a.b.A();c.wa=wN(a.b);c.b=[sN(a.b)];return c}function JN(a,b){var c=KN(a,"watchtime");c.b=b;c.k=a.g.b;return c}function MN(a){a.g.update();return JN(a,vN(a.g))} 
function NN(a){var b=a.b.g;a=a.b.b;var c=a.eb||b.C,c={ns:b.bd,html5:"1",el:b.ba,ps:b.zb,fexp:b.b.b.join(",")||void 0,feature:c||void 0,ctrl:a.jb||void 0,ytr:a.ob||void 0,list:a.Oa,d:b.ma,f:b.ca};b.Gc&&(c.autoplay="1");a.L&&(c.subscribed=a.L);return c}f.ah=function(){this.k.ah()};f.onError=function(a,b){this.k.onError(a,b)}; 
function ON(a,b){if(!a.ha()){W(b.state,2)?(a.A="paused",a.j&&MN(a).send()):W(b.state,8)?(a.A="playing",a.j&&isNaN(a.B)&&IN(a,!1)):a.A="paused";var c=a.k,d=b.state,e;e=b.state;if(W(e,128))e="ER";else if(W(e,16)||W(e,32))e="S";else{var g=BN[mu(e)];"B"==g&&W(e,4)&&(g="PB");e=g}if(e!=c.g){var g=e,h=wN(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.ha()){var k=DN(c);k.qoealert="1";k=$d(KL(c.b.g),k);pf(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?CN(c,"cmt",[c.b.j().toFixed(3)]):c.Rk();CN(c,"vps",[e]);c.g=e}if(W(d,128))c.onError(d.b.errorCode,d.b.errorDetail);(W(d,2)||W(d,128))&&c.Jg();a.o&&W(b.state,128)&&(a.yi("error-100"),M(a.o))}}function PN(a){a.o=Ve(v(a.yi,a,"heartbeat"),3E4)} 
f.yi=function(a){var b=this.b.g,c=this.b.b,d={ns:b.bd,el:b.ba,eurl:b.g,fmt:c.b?c.b.id:0,html5:1,list:c.Oa,plid:c.Ib,cpn:c.Fa,ei:c.C,ps:b.zb,noflv:1,st:this.b.j(),video_id:c.videoId,metric:a};b.Gc&&(d.autoplay="1");c.Gk&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=uN(this.g));ta(d,GL(b));pf($d("//www.youtube.com/live_204",d))};f.J=function(){HN.G.J.call(this);M(this.B);this.B=NaN;var a=this.g;We(a.A);a.A=NaN};HN.prototype.getDebugInfo=function(){return FN(KN(this,"playback"))}; 
function QN(a){if(!a.M){a.b.b.o.eventLabel=a.b.g.ba;a.b.b.o.playerStyle=a.b.g.zb;a.b.b.oa&&(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.oa);var b=a.b.b.o;b&&b.uid&&(jN[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(s(b)){var d=kN(b);if(!c||c.uid!=d)if(c=jN[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&&pf(e)}(e=Te("CONVERSION_CONFIG_DICT"))&&(!s(b)||e.uid==kN(b))&&Ub(qN,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))&&pf(b))}a.M=!0}};function RN(){this.endTime=this.startTime=-1;this.Vk="-";this.playbackRate=1;this.visibilityState=0}RN.prototype.isEmpty=function(){return this.endTime==this.startTime};function SN(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 wN(a){var b=window.performance&&window.performance.now?window.performance.now():w();0>a.k&&(a.k=b);return Math.round(b-a.k)/1E3} 
function LN(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.ta&&(c.threed=a.yz);c.plid=a.Ib;c.ei=a.C;c.list=a.Oa;c.cpn=a.Fa;a.videoId&&(c.v=a.videoId);a.Ok&&(c.infringe=1);a.Qd&&(c.splay=1);a.Za&&(c.live=a.rb?"dvr":"live");a.Cg&&(c.autoplay=1);a.ti&&(c.sdetail=a.ti);a.T&&(c.partnerid=a.T);a.mb&&(c.osid=a.mb);ta(b,c);return b} 
function sN(a){var b=new RN;b.Vk=a.o().cc||"-";var c=a.g;b.playbackRate=c.Ra&&c.Ra.playbackRate||1;(c=Fg("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.g.ub?b.visibilityState=2:a.g.sr&&(b.visibilityState=1);return b};function TN(a,b){this.state=a;this.b=b}function kw(a,b){return W(a.state,b)&&!W(a.b,b)?1:!W(a.state,b)&&W(a.b,b)?-1:0};function UN(a,b){ej.call(this);this.xa=new gN;this.A=new qu(v(this.getCurrentTime,this),v(this.getPlayerState,this),v(this.pi,this));R(this,this.A);this.T=NaN;this.I=this.B=null;this.C=a;this.ma=new dN(a);this.ta=!1;this.D=this.k=null;this.L=[];this.P=new hN;this.N=new hN;this.Ca=!1;this.wa=NaN;this.j=new gu;this.Ha=b;this.U=this.ca=null;this.F=NaN;this.V=new ow(this);this.b=new Xr;this.g=this.O=null;this.fa=NaN;this.o=null;this.Da=!1;this.aa=0;this.Ia=null;this.ka=!1;this.oa=null}x(UN,ej); 
function Bt(a){Az()?Dz(a.aa):M(a.aa)}f=UN.prototype;f.J=function(){M(this.fa);We(this.wa);At(this);VN(this);Bt(this);fI(this);Qh(this.U,this.V,this.b);this.V=this.I=null;this.ka=!1}; 
function WN(a,b,c){a.L.length=0;a.P=new hN;a.N=new hN;a.T=NaN;a.F=NaN;a.O=null;a.Da=!1;a.g&&du(a.g);XN(a);At(a);VN(a);Bt(a);Oh(a.b);a.A.reset();if(2==a.Ha||jf(a.C.$d))b.Ap=!0;a.b=b;a.b.subscribe("dataupdated",a.by,a);a.b.subscribe("dataloaded",a.Bq,a);a.b.subscribe("onStatusFail",a.ay,a);b.If&&b.If>b.Ta&&(b=b.If,a.I&&(a.A.Rg(a.I),a.I=null),a.I=new nu(1E3*b,2147483646),a.I.Wa.subscribe("onEnter",a.Ef,a),a.A.Ti(a.I));At(a);a.b.Ee||(c=new SN(a.b,a.C,c,v(a.wd,a),v(a.getCurrentTime,a),v(a.Zx,a),v(a.$x, 
a)),a.o=new HN(c));a.ka=!1;YN(a,"newdata");ZN(a,new gu)}function At(a){if(a.o){var b=a.o;if(!b.ha()&&b.j){b.A="paused";var c=MN(b);c.Wo=!0;c.send();c=b.k;"PL"==c.g&&(c.g="N");CN(c,"vps",[c.g]);c.Jg();M(b.o);b.dispose()}Oh(a.o);a.o=null}}f.getVideoData=function(){return this.b};f.R=function(){return this.C};function $N(a){return!(!a.b.g||!a.b.g.g.length)}function aO(a){if(ns(a.b))return!0;jw(a,"api.invalidparam");return!1} 
function bO(a,b){a.Ca=!!b;aO(a)&&!a.P.g&&(a.P.start(),a.o&&a.o.ah(),a.Bq())}f.Bq=function(){if(os(this.b))os(this.b),this.P.b=!0,this.L=vb(this.b.F),hs(this.b),$N(this)&&(this.b.rb&&(cO(this,this.b.Qa),dO(this,!0)),this.b.g.b&&eO(this),gK(this,"i")),YN(this,"dataloaded"),this.N.g&&fO(this);else if(this.b.fa){var a=this.b;a.fa=!1;var b=a.O,c=Ci(b),b=0>Xr.j.indexOf(c)?kf(b):lf(b),c=v(a.ry,a),a=v(a.Cm,a);Lp(new Cp(b),b,c,a)}else this.b.Te||(a=HL(this.C,this.b),ps(this.b,a))}; 
function gO(a){bO(a);aO(a)&&!W(a.j,128)&&(a.N.g||(a.N.start(),ZN(a,lu(a.j,8))),fO(a))}function fO(a){if(!(a.N.b||!a.P.b||W(a.j,128)||a.L.length||(a.A.Og||a.A.ah(),a.L.length||0<Ot(a.A.g,-2147483648).length))){a.b.Za&&hO(a,Infinity,!0);a.N.b=!0;if(a.o){var b=a.o;b.b.b.qi&&b.b.b.Lk&&(b.yi("connected"),PN(b))}a.H("playbackready",a)}}f.Ef=function(a){this.pauseVideo();a=0==a?new gu:new gu(14);ZN(this,a)}; 
function iO(a,b,c,d){a.b.b=c;a.b.N=d||c;if(a.o){d=a.b;var e=fN(a.ma,d),e=lb(d.g.g,v(e.k,e));d=a.o.k;e=new cN(c,b,e?e.id:"");c=wN(d.b);CN(d,"vfs",[e.b.id,e.g,d.N,e.j],c);d.N=e.b.id;e=d.b.g;e=e.Ra?new G(0<e.Ra.style.width.indexOf("px")?parseInt(e.Ra.style.width,10):e.Ra.clientWidth,0<e.Ra.style.height.indexOf("px")?parseInt(e.Ra.style.height,10):e.Ra.clientHeight):new G(Number.NaN,Number.NaN);0<e.width&&0<e.height&&CN(d,"view",[Math.round(e.width),Math.round(e.height)],c);CN(d,"vps",[d.g],c);d.Jg(c)}a.H("internalvideoformatchange", 
a.b,"m"==b)}function jw(a,b,c,d){if(Ub(Qu,c))var e=c;else var g=c;ZN(a,ju(a.j,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));jO(a)}function kO(a,b){a.L=a.L.filter(function(a){return b!=a});a.N.g&&fO(a)}f.pi=function(){return W(this.j,8)&&!W(this.j,64)&&!W(this.j,2)};function NH(a){return W(a.j,1)&&!W(a.j,2)}f.getPlayerState=function(){return this.j};f.getPlayerType=function(){return this.Ha};function lO(a,b){a.g&&fI(a);a.g=b;mO(a)} 
function fI(a){a.D=null;a.k&&(a.k.B=!0);if(a.g){if(a.o&&a.P.g&&W(a.j,64)){var b=new TN(new gu(4),a.j);ON(a.o,b)}XN(a);a.V.removeAll();du(a.g);a.g=null}} 
function nO(a){gO(a);W(a.j,64)&&ZN(a,lu(a.j,8));if(a.N.b&&a.g)if(a.b.g){var b;if(a.b.g.b)oO(a),b=a.Ia,a.k.resume();else{VN(a);b=a.b.U.b;var c=a.b,d={};c.P&&(d.ptk=c.P,d.oid=c.pf,d.ptchn=c.qf,d.pltype=c.sf);ta(b.g,d);ta(b.g,{c:a.C.xf,cver:a.C.Ce})}a.g.Cd!=b?pO(a,b):(rs(a.b)&&au(a.g)&&hO(a,Infinity,!0),bu(a.g))}else jw(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function ct(a){if(!a.b.g)return[];var b=qO(a);a=Zp(a.b.g,b);a.length&&(a=a.concat(["auto"]));return a} 
function rO(a){return Wp(Wp(eN(a.ma,a.b),fN(a.ma,a.b)),qO(a))}function qO(a){return a.b.Sk?Tp:a.B?a.B.j:$N(a)&&a.b.g.b&&Dp(a.b.j)?Sp:Tp}function gK(a,b,c){if(!a.ha()&&!W(a.j,128)&&(c&&(a.b.zf=c),$N(a))){"m"==b&&c&&Up(c)&&(b="a");c=rO(a);if(a.b.g.b){if("i"!=b){var d=a.k;d.ha()||(yH(d,SL(d.o,c,b)),AH(d,d.g,UL(d.o)),Vp(d.o.b)&&"m"==b&&(d.ya.O?(BH(d.g,!1),d.g.B=!0):BH(d.g,!0),d.g.j.wc()&&gM(d.g,d.k)),pM(d.g)&&IM(d,d.g,d.j),CH(d))}}else a.b.U=Vr(a.b.I,c),iO(a,b,a.b.U.getInfo());a.pi()&&nO(a)}} 
function vH(a){if(!a.getVideoData().N)return null;var b=a.getVideoData().N;return lb(a.oa,function(a){return a.id==b.id})} 
function eO(a){Op(a.b.j,{c:a.C.xf,cver:a.C.Ce});var b=a.C,c=new wD;if(ur()||b.b.ka)c.I=!0;ur()&&(c.C=-1);b.b.V&&(c.A=1.5);b.b.T&&(c.B=3.5);b.b.fa&&(c.D=300);b.b.xa&&(c.O=!0);ME(b)&&(c.o=8388608,c.k=524288,c.g=2097152,c.F=1048576,c.A=1.5,c.L=15,c.b=!1,c.M=!1,c.D=0,c.zi=yo.hd720,sr()&&(c.ra=44E4));qh&&tr("crkey")&&(c.o=20971520,c.k=1572864,c.g=20971520,c.b=!0,c.j=1E3);var b=b.Gg||new G(window.screen.width,window.screen.height),d=window.devicePixelRatio||1;2560<=b.width*d&&1440<=b.height*d&&(c.o=52428800, 
c.k=5242880,c.g=20971520,c.F=8388608,c.zi=yo.auto);a.k=new yM(a.ca,c,a.b.j,a.b.g);a.k.subscribe("initsegment",a.Yu,a);a.k.subscribe("formatchange",a.$u,a);a.k.subscribe("fatalerror",a.Zu,a);a.k.subscribe("softerror",a.Qo,a);a.k.subscribe("seekrequired",a.av,a);c=D(a.L,"spacecast")||a.Ca;a.k.initialize(a.b.Ta,rO(a),c);a.b.tf&&(a.k.L=a.b.tf);if(a.L.length||a.Ca)a.k.B=!0}function VN(a){a.k&&(a.k.dispose(),a.k=null);a.D&&(a.D.dispose(),a.D=null)} 
function oO(a){if(!a.D){a.k?a.k.seek(a.getCurrentTime()):eO(a);a.D=new vr(a.g,a.b.Qa,a.b.g.g[0].mimeType,a.b.g.b[0].mimeType);try{var b=xr(a.D)}catch(c){c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);jw(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Ia=new Dr(b,!0);wr(a.D,v(a.k.kA,a.k))}} 
f.Yu=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&&$M(b,new YM(a),!1)}}};f.$u=function(a){iO(this,a.g,a.video.info,a.b.info)}; 
f.Zu=function(a,b){jw(this,a,void 0,b);VN(this)};f.Qo=function(a,b){if(this.o)this.o.onError(a,b);var c;if(c="net.badstatus"==a)if(c=this.C.b.N)c=this.b,c=w()-c.ky>Xr.A;c&&(this.o.onError("staleconfig"),this.H("urlauthexpired"))};f.pauseVideo=function(a){if(W(this.j,64)&&!a){var b;b=this.j;b=ju(b,b.g&-9);ZN(this,b)}this.g&&(a&&!W(this.j,128)&&ZN(this,lu(this.j,256)),this.g.pauseVideo())}; 
function jO(a){a.pauseVideo(!0);a.g&&(XN(a),a.D&&(a.D.dispose(),a.D=null),a.b&&(a.b.Ta=a.getCurrentTime()),a.F=NaN,cu(a.g),W(a.j,128)||ZN(a,ju(a.j)))}function hO(a,b,c,d){if(a.g){b=Ib(b||0,0,sO(a));b>=sO(a)?dO(a,!0):dO(a,!1);a.b.Ta=b;a.F=b;var e=a.xa;e.b=b;e.g=!0;c?a.fj():(oH(a),d&&(a.U||(a.U=new qw(a.fj,d,a)),a.U.start()),tO(a,!0));a.I&&b>a.b.If&&(a.A.Rg(a.I),a.I=null);a.H("seekto",a,b)}else a.b.Ta=b||0} 
function oH(a){W(a.j,32)||(ZN(a,lu(a.j,32)),W(a.j,8)&&a.pauseVideo(!0),a.H("beginseeking",a))}f.fj=function(){if(!isNaN(this.F)&&this.g){var a=this.wd();!this.b.Za&&this.F>=Math.floor(a)?(this.F=a,this.H("endseeking",this),this.pauseVideo(!0),this.Ef()):(this.k&&this.k.seek(this.F),$t(this.g,this.F))}this.U&&(this.U.dispose(),this.U=null);W(this.j,32)&&(a=this.j,a=ju(a,a.g&-33),ZN(this,lu(a,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.ai||this.b.Ta||0);return a};f.wd=function(){return rs(this.b)?Infinity:this.b&&this.b.Qa?this.b.Qa:sO(this)?sO(this):0}; 
f.Zx=function(){var a=new iN;if(this.ca&&this.k){var b=this.ca;a.j=b.A;a.o=b.B;a.b=VK(b);b=this.k;b.b&&!zr(b.b)&&(a.g=Vt(b.b.g.buffered,b.k),a.k=Vt(b.b.b.buffered,b.k));a.b=PL(b.C);VK(b.A);TK(b.A);UK(b.A)}else this.g&&(a.g=Vt(this.g.buffered,this.getCurrentTime()));return a};function uO(a){if(a.g)if(rs(a.b))a=1;else if(ss(a.b))if(a.ta)a=0;else{var b=a.g;a=(0<Ut(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.wd()}else a=dt(a.g);else a=0;return a} 
UN.prototype.getDebugInfo=function(a){var b={};a&&(this.o&&ta(b,this.o.getDebugInfo()),this.g&&ta(b,this.g.getDebugInfo()),this.k&&ta(b,this.k.getDebugInfo()),W(this.j,128)&&(b.debug_error=this.j.b),(this.L.length||0<Ot(this.A.g,-2147483648).length)&&(b.preroll="1"));b.debug_videoId=this.b.videoId;return b};f=UN.prototype;f.by=function(){if(this.B){var a=this.B,b=this.b.B;a.k=b;a.H("oauthtoken",b)}YN(this)};f.ay=function(a){jw(this,"auth",unescape(a.reason),a.errordetail)}; 
function YN(a,b){a.H("internalvideodatachange",b||"dataupdated",a,a.b)}function mO(a){B("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.V.listen(this.g,a,this.RC)},a)} 
f.RC=function(a){var b=a.target;if(b==this.g&&b.currentSrc){switch(a.type){case "error":if(this.C.Mk&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(v(function(){this.g&&(this.b.U&&this.g.load(),nO(this))},this),500);if(this.o)this.o.onError("progressive.net");return}break;case "durationchange":if(!this.b.rb||this.b.j&&!this.b.j.b)b=b.duration||0,(!this.D||isFinite(b)&&0<b)&&cO(this,b);break;case "ratechange":this.k&&(this.k.C.g=Math.max(1,this.g.playbackRate));break;case "ended":ZN(this, 
ju(this.j,4));this.Nk();break;case "loadedmetadata":this.b.Ta&&(this.g.currentTime=this.b.Ta),this.C.Ro&&this.b.Ta&&(this.T=this.b.Ta,this.pauseVideo(!0));case "loadeddata":this.fa&&M(this.fa);break;case "loadstart":We(this.wa);this.Ul()||(this.wa=Ve(v(this.Ul,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.Aa=this.V.listen(this.g,"canplay",this.yw));case "suspend":tO(this);this.H("onLoadProgress",this,uO(this)); 
break;case "seeked":vO(this);break;case "seeking":this.C.b.yb&&this.k&&this.k.seek(b.currentTime);break;case "playing":Jq("plev");break;case "timeupdate":this.Da=!0,this.Ul(),vO(this),tO(this),this.H("onVideoProgress",this,b.getCurrentTime())}this.H("videoelementevent",a);a=hu(this.j,a,this.xa);ZN(this,a)}}; 
f.Ul=function(){var a=this.g;a&&this.Da&&!this.b.Uk&&!Lq("vfp")&&2<=a.readyState&&!a.ended&&0<Ut(a.buffered)&&Jq("vfp");if((a=this.g)&&!this.b.Uk&&0<(a.duration||0)&&(!Lq("pbr")&&Lq("plev")&&au(a)&&2<=a.readyState&&0<Ut(a.buffered)&&Jq("pbr"),0<a.getCurrentTime())){We(this.wa);this.b.Uk=!0;wO(this);if(this.o){a=this.o;if(!a.j){var b=KN(a,"playback");a.D=[10+a.b.b.Zh,10,10,40+a.b.b.wk-a.b.b.Zh,40];var c=a.g;We(c.A);c.A=NaN;c.A=Ve(v(c.update,c),100);c.o=wN(c.g);c.k=sN(c.g);b.Bg=IN(a,!0);b.sv=!0;b.send(); 
!a.b.g.nc||a.b.g.wi||a.j||(b=a.b.g,c=a.b.b,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.Fa,plid:c.Ib,ei:c.C,referrer:LL(b),eurl:b.g,framer:b.D,feature:b.C,fmt:c.b?c.b.id:0,ptk:c.P,skl:c.Fo,access_token:c.B,ucid:c.Yh},ta(b,NN(a)),delete b.fexp,b=$d(a.b.g.tb+"user_watch",b),pf(b));a.b.b.P&&(b=a.b.g,c=a.b.b,b=$d(b.tb+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.Fa,plid:c.Ib,ei:c.C,ptk:c.P,oid:c.pf,ptchn:c.qf,pltype:c.sf,content_v:b.A}),pf(b));if(a.b.b.Eo&&a.b.g.He&&!a.j){var b=a.b.g,c=a.b.b,d= 
{noflv:1,video_id:c.videoId,cpn:c.Fa,el:b.ba,ps:b.zb,referrer:LL(b),eurl:b.g,framer:b.D,fmt:c.b?c.b.id:0,ptk:c.P,subscribed:c.L,t:c.vk};b.Gc&&(d.autoplay="1");c.Qd&&(d.splay="1");0<c.Ta&&(d.start=1E3*c.Ta);c.Gk&&(d.tmi="1");b=$d(a.b.g.tb+"get_video",d);pf(b)}a.b.b.qi&&(a.yi("playback"),a.o||PN(a));a.b.b.ze||QN(a);a.j=!0;a=a.g;a.b=a.g.j();a.o=wN(a.g);.5<a.b-a.j&&(a.j=a.b)}L(v(this.Nk,this),4500)}this.H("playbackstarted");this.k&&(this.k.T=!0);Az()&&Ez();return!0}return!1}; 
function wO(a){var b=w(),c=a.getCurrentTime(),d=a.b;if(!Lq("pbs")){var e=1E3*(c-d.Ta);0>e&&(e=0);Jq("pbs",b-e);Gq.measure&&Gq.getEntriesByName&&(Gq.getEntriesByName("mark_navigation_requested")[0]?Gq.measure("measure_above_the_fold","mark_navigation_requested"):Gq.measure("measure_above_the_fold"))}d.videoId&&(b=d.videoId,Pq(void 0).docid=b);d.C&&(b=d.C,Pq(void 0).ei=b);d.Fa&&(b=d.Fa,Pq(void 0).cpn=b);0<d.Ta&&(b=d.Ta.toString(),Pq(void 0).start=b);a.g&&au(a.g)&&(Pq(void 0).paused=1);d.b?(b=d.b.id, 
Pq(void 0).fmt=b):Pq(void 0).fmt="-1";d.Va&&(Pq(void 0).preloaded="1");d=Math.round(uO(a)*a.wd()).toString();Pq(void 0).tds=d;c=c.toFixed(3);Pq(void 0).cmt=c;if(a.k){a=a.k;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(a.aa),c.length&&(c=c[0],CM(a,"vri",c.fetchStart),CM(a,"vdns",c.domainLookupEnd),CM(a,"vreq",c.requestStart),CM(a,"fvb",c.responseStart),CM(a,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(a.P),c.length&&(c=c[0],CM(a, 
"ari",c.fetchStart),CM(a,"adns",c.domainLookupEnd),CM(a,"areq",c.requestStart),CM(a,"avb",c.responseStart),CM(a,"arc",c.responseEnd)));a=a.ca;for(var g in a)Jq(g,a[g])}}f.yw=function(){this.Aa&&(this.V.Ga(this.Aa),this.Aa=void 0,bu(this.g))}; 
function tO(a,b){if(a.g&&a.b){var c=a.getCurrentTime();if(c<xO(a))hO(a,sO(a),!0);else{if(a.k){var d=a.k;if(d.b){d.resume();if(d.D&&!zr(d.b)){var e=d.k<=c&&c<d.k+10,g=0<=St(d.b.b.buffered,d.k)&&0<=St(d.b.g.buffered,d.k);e&&g&&(d.D=!1)}d.D||(d.k=c);zM(d)}}ss(a.b)&&c>a.wd()&&(d=a.wd(),0==d&&(d=c),cO(a,1.2*d));5<c&&(a.b.Ta=c);(d=Az())?Dz(a.aa):M(a.aa);au(a.g)||(e=v(a.tx,a),a.aa=a.g.played&&0==a.g.played.length?d?Bz(e,100):L(e,100):d?Bz(e,500):L(e,500));a.b.ai=c;!b&&a.pi()&&a.o&&(d=a.o,d.g.update(),d.b.b.Qa&& 
d.b.b.ze&&!d.L&&uN(d.g)>=d.b.b.ze&&(d.j&&d.b.b.ze&&(e=KN(d,"delayplay"),e.ux=!0,e.send(),d.L=!0),QN(d)),e=d.N,!e.k&&e.b.He&&!e.b.wi&&e.g.Qa&&uN(e.o)>=e.g.Ep&&d.N.send());a.H("progresssync",a,b);a.b.vx=c}}}f.tx=function(){if(this.g){if(W(this.j,8)&&ku(this.xa,this.getCurrentTime(),Date.now(),Vt(this.g.buffered,this.g.getCurrentTime()))){var a=this.wd();a&&1>Math.abs(a-this.g.currentTime)?this.Ef():ZN(this,lu(this.j,1))}tO(this)}}; 
function ZN(a,b){var c=a.j;if(b.g!=c.g||b.b!=c.b){c=new TN(b,a.j);a.j=b;0>kw(c,8)&&dO(a,!1);0<kw(c,32)&&dO(a,!1);ss(a.b)&&W(c.state,2)&&(cO(a,a.getCurrentTime()),tO(a,!0));a.o&&ON(a.o,c);var d=a.A;if(d.Og&&!d.Pi)if(tu(d),W(c.state,2)){d.A=null;for(var e=[],g=0;g<d.b.length;g++){var h=d.b[g];h.active&&2147483647>h.end&&e.push(h)}g=Ot(d.g,2147483646);g=g.concat(Pt(d.g,2147483646));e=vu(d,e).concat(uu(d,g));wu(d,e)}else W(c.state,16)?(d.k=su(d),d.o.stop(),d.o.start(),d.vc()):(d.o.stop(),W(c.b,16)?(d.k= 
su(d),null!=Qt(d.g,Math.max(d.k-2E3,0))&&(d.Vg=Tk(v(d.vc,d)))):d.vc());a.H("statechange",c)}}f.$x=function(){this.b.Za||this.H("connectionissue")};f.av=function(){$t(this.g,Math.max(0,this.g.currentTime+.1))};function vO(a){W(a.j,2)||W(a.j,32)||(a.F=NaN)}function dO(a,b){a.b.rb&&a.ta!=b&&(a.ta=b,a.H("liveviewshift",b))}function pO(a,b){Jq("vta");Zt(a.g,b);a.D&&!b.b&&(a.D=null);is(a.b)&&yO(a);M(a.fa);a.fa=L(v(a.AA,a),15E3);a.C.Xp?L(v(function(){bu(this.g)},a),0):bu(a.g)} 
function yO(a){var b=is(a.b);if(b&&!a.B&&a.g)if(b=lr(a.g,a.b.b.mimeType,b)){a.B=new ZM(a.g,b);a.B.subscribe("newsession",a.Iz,a);a.B.subscribe("licenseerror",a.Fz,a);a.B.subscribe("qualitychange",a.Gz,a);a.B.subscribe("heartbeatparams",a.Hz,a);var b=a.B,c=a.b.B;b.k=c;b.H("oauthtoken",c);R(a,a.B)}else jw(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function XN(a){a.B&&(a.B.dispose(),a.B=null)} 
f.Iz=function(a){var b=GL(this.C);b.cpn=this.b.Fa;this.b.D&&(b.vvt=this.b.D);this.C.Ua&&(b.authuser=this.C.Ua);this.C.gb&&(b.pageid=this.C.gb);dc(a.o,b);Ft(a,a.A);this.H("newlicensesession",a)};f.Fz=function(a,b,c){jw(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.Gz=function(){gK(this,"r");YN(this)};f.Hz=function(a){this.H("heartbeatparams",a)};f.AA=function(){this.o.onError("qoe.start15s");this.H("loadsofttimeout")};function cO(a,b){a.b.Qa!=b&&(a.b.Qa=b,YN(a))} 
f.Nk=function(){if(!this.ka){var a=new bN(this.b),b;"c1a"in a.g?(b=q("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)L(v(this.Nk,this),4500);else{this.ka=!0;var c;if(a.b&&a.b.aa){b=[a.b.aa];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=KN(a,"atr"),b.B=c,b.send(),a.I=!0))}}}; 
function sO(a){if(!a.g)return 0;if(a.k){var b=a.k,c=Math.floor(Math.min(b.j.j.index.Ff(),b.g.j.index.Ff()));return Math.max(b.$a.b?c-14:c,xO(a))}a=a.g;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}function xO(a){return a.b.j?(a=Rb(a.b.j.Ma))?a.index.Hn():0:0};function zO(){this.j=!1;this.g=0;this.b=""};function AO(a,b,c){this.k=b;this.b=c;this.j=a}AO.prototype.getMessage=function(){return this.k};AO.prototype.getErrorCode=function(){return this.b};AO.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.g?" Caused by: "+this.g:"")};function BO(a,b){S.call(this,"adError");this.j=a;this.k=b?b:null}x(BO,S);var CO="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 DO(a,b,c){S.call(this,a);this.k=b;this.j=null!=c?c:null}x(DO,S);DO.prototype.getAd=function(){return this.k}; 
var EO={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",jI:"engagedview",nI:"expandedChanged",STARTED:"start",Sr:"impression",XK:"viewable_impression",PAUSED:"pause",SJ:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",hK:"skipshown",fK:"skippableStateChanged",HG:"adMetadata",JF:"adBreakReady", 
dJ:"log",VOLUME_CHANGED:"volumeChange",ZK:"mute",sH:"companionBackfill",jL:"youTubeVideoMetadata",iL:"youTubeChannelMetadata"};var FO=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\?a=sul"];function GO(a){return A(a)?!1:null!=lb(FO,function(b){return null!=a.match(b)})} 
function HO(a){a=GO(a)?'javascript:"data:text/html,<body><img src=\"'+a+'\"></body>"':a;var b=I("iframe",{src:a,style:"display:none"});a=Lc(b).body;var c,d=Tk(function(){Jk(c);ed(b)},15E3);c=Hk(b,["load","error"],function(){Tk(function(){Uk(d);ed(b)},5E3)});a.appendChild(b)};var IO={"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"},JO=["ADSENSE","ADSENSE/ADX"],KO=["DART","DART_DFA","DART_DFP"],LO=["GDFP"],MO={pJ:"video/mp4",rJ:"video/mpeg",eJ:"application/x-mpegURL",zJ:"video/ogg",wK:"video/3gpp",bL:"video/webm",oJ:"audio/mpeg",qJ:"audio/mp4"};var NO=["google-developers.appspot.com","devsite.googleplex.com"],OO=["*.googlesyndication.com"],PO=["*.youtu.be","*.youtube.com"],QO="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(" "), 
RO=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function SO(a){var b;if(b=null!=a)(b=TO(NO,a))||(b=re(new J(a)),b=null!=b?wa(b,".corp.google.com")||"corp.google.com"==b:!1),b=b||(null!=a?TO(PO,a):!1);return b}function TO(a,b){try{var c=re(new J(b)),c=c.replace(/^www./i,"");return jb(a,function(a){return UO(a,c)})}catch(d){return!1}} 
function UO(a,b){if(A(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 VO(a){var b;if(b="https:"==window.location.protocol)b=(new RegExp("^https?://([a-z0-9-]{1,63}\.)*("+QO.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);return b?(a=new J(a),ee(a,"https"),a.toString()):a};function WO(a){window.open(VO(a),"_blank")}function XO(a,b,c){null!=a?(K(a,"label",b),null!=c&&K(a,"value",c.join(";")),a=a.toString()):a="";YO(a)}function YO(a,b,c){null!=b&&(a=ZO(a,b));null!=c&&(A(c)||(b=new J(a),De(b.b,"label")&&(K(b,"acvw",c),a=b.toString())));a=VO(a);HO(a)}function $O(a,b){null!=a&&B(a,function(a){YO(a,b)})} 
function ZO(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=$b(b,a),d=d.toString();if(!A(d))return encodeURIComponent(d).replace("%2C",",")}catch(e){}return a})};function aP(a,b){this.message=a;this.errorCode=b}aP.prototype.getErrorCode=function(){return this.errorCode};aP.prototype.getMessage=function(){return this.message}; 
var bP=new aP("Unable to request ads from server. Cause: {0}.",1005),cP=new aP("Unable to request ads from server due to network error.",1012),dP=new aP("Cannot parse the {0} value for the adslist response: {1}.",900),eP=new aP("Invalid usage of the API. Cause: {0}",900),fP=new aP("Unable to display one or more required companions.",602),gP=new aP("There was a problem requesting ads from the server.",1005),hP=new aP("The provided ad type: {0} is not supported.",1005),iP=new aP("The provided {0} information: {1} is invalid.", 
1101),jP=new aP("The response does not contain any valid ads.",1009),kP=new aP("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),lP=new aP("The ad playlist response was malformed or empty.",1010),mP=new aP("The ad response was not understood and cannot be parsed.",1010),nP=new aP("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),oP=new aP("The ad response contains unexpected element. Cause {0}.", 
1010),pP=new aP("No assets were found in the VAST ad response.",200),qP=new aP("Duplicate node in <{0}>: {1}",101),rP=new aP("The VAST response document is empty.",1009),sP=new aP("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),tP=new aP("Ad request reached a timeout.",301),uP=new aP("VAST response was malformed and could not be parsed.",100),vP=new aP("VAST media file loading reached a timeout of {0} seconds.",402),wP=new aP("Ad request could not be completed due to a network error.", 
301),xP=new aP("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),yP=new aP("The maximum number of VAST wrappers ({0}) has been reached.",302),zP=new aP("VAST media file duration differs from the VAST response duration by {0} seconds.",202),AP=new aP("Video player received an ad with unexpected or incompatible linearity",201),BP=new aP("Unknown node in <{0}>: {1}",101),CP=new aP("Invalid VAST resource type: {0}",101),DP=new aP("Invalid VAST version", 
102),EP=new aP("No additional VAST wrappers allowed.",300),FP=new aP("No Ads VAST response after one or more Wrappers",303),GP=new aP("There was an error playing the video ad.",400),HP=new aP("VMAP unsupported node in <{0}>: {1}",1010),IP=new aP("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);function JP(a,b,c){return KP("adLoadError",a,b||null,yb(arguments,2))}function LP(a,b,c){return KP("adPlayError",a,b||null,yb(arguments,2))} 
function MP(a,b,c,d,e){var g=a.apply(null,ub([c,d],yb(arguments,3)));b.S(new DO("log",null,g))}function KP(a,b,c,d){if(c instanceof AO)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 AO(a,b,e);a.g=c;return a}function NP(a,b,c,d){var e=LP.apply(null,ub([b,c],yb(arguments,3)));a.S(new BO(e))};function OP(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};var PP=new function(){this.j="always";this.b=this.k=this.g=!1};function QP(a){return(a=a.exec(fc))?a[1]:""}var RP=function(){if(lh)return QP(/Firefox\/([0-9.]+)/);if(qc||pc)return zc;if(qh)return QP(/Chrome\/([0-9.]+)/);if(rh)return QP(/Version\/([0-9.]+)/);if(nh||oh){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(fc))return a[1]+"."+a[2]}else{if(ph)return(a=QP(/Android\s+([0-9.]+)/))?a:QP(/Version\/([0-9.]+)/);if(mh)return QP(/Camino\/([0-9.]+)/)}return""}();var SP={},TP="",UP=/OS (\S+) like/,VP=/Android (\S+);/;function WP(){return mc||Qa(fc,"Mobile")}function XP(a,b){if(null==SP[b]){var c;ya(TP)&&(c=a.exec(fc))&&(TP=c[1]);(c=TP)?(c.replace(/_/g,"."),SP[b]=0<=Va(c,b)):SP[b]=!1}return SP[b]}function YP(){return nc&&WP()&&Qa(fc,"Safari")||mc&&(!mc||!XP(VP,4))?!1:!0};function ZP(){this.g=.05>Math.random();this.b=Math.floor(4503599627370496*Math.random())}da(ZP);function $P(a,b,c,d){if(a.g||d){c=c||{};c.lid=b;c=aQ(a,c);var e=new J("http://pagead2.googlesyndication.com/pagead/gen_204");Nb(c,function(a,b){K(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=bQ();ee(e,a.Mb);YO(e.toString())}}function aQ(a,b){b.id="";var c=bQ();b.c=a.b;b.domain=c.Fb;return b}function bQ(){var a=Vc(),b=document;return new J(a.parent==a?a.location.href:b.referrer)};function cQ(){}f=cQ.prototype;f.BD=!1;f.kt=!1;f.Tq=!0;f.baseYouTubeUrl=null;f.ag=-1;f.contentId=null;f.Tk=!1;f.th=null;f.Ln=null;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.loadVideoTimeout=15E3;function dQ(a,b,c){if(E(a))return null;a=hb(a,function(a){var b=a.j;return"application/x-mpegurl"==za(a.b).toLowerCase()||"progressive"==b});E(c)||(c=C(c,function(a){return a.toLowerCase()}),a=hb(a,function(a){return D(c,za(a.b).toLowerCase())}));if(!ja(b)||0>=b)b=ic("iPad")||ic("Android")&&!ic("Mobile")||ic("Silk")||!(ic("iPod")||ic("iPhone")||ic("Android")||ic("IEMobile"))?1E3:500;return eQ(a,b)}function eQ(a,b){return fQ(a,b)||gQ(a,b)||hQ(a,b)} 
function fQ(a,b){var c=null;B(a,function(a){var e=a.Ye,g=a.le;e>b||g<b||!(null==c||c.Ye>e)||(c=a)});return c}function gQ(a,b){var c=null;B(a,function(a){var e=a.Ye,g=a.le;g>b||(null==c||c.le<g?c=a:null!=c&&c.le==g&&c.Ye>e&&(c=a))});return c}function hQ(a,b){var c=null;B(a,function(a){var e=a.Ye,g=a.le;if(!(e<b))if(null!=c&&c.Ye==e&&c.le<g)c=a;else if(null==c||c.Ye>e)c=a});return c};function iQ(){T.call(this);this.k=this.B=this.A=!1;this.b=0;this.g=[];this.C=!1;this.o={}}x(iQ,T);function jQ(a,b){null==b||a.A||(a.j=b,kQ(a),a.A=!0)}function lQ(a){null!=a.j&&a.A&&(mQ(a),a.A=!1,a.B=!1,a.k=!1,a.b=0,a.g=[],a.C=!1)}function kQ(a){mQ(a);a.o=a.j instanceof T||!nc&&!xc?{click:v(a.XC,a)}:{touchstart:v(a.$C,a),touchmove:v(a.ZC,a),touchend:v(a.YC,a)};Nb(a.o,function(a,c){this.j.addEventListener(c,a,!1)},a)} 
function mQ(a){Nb(a.o,function(a,c){this.j.removeEventListener(c,a,!1)},a);a.o={}}f=iQ.prototype;f.$C=function(a){this.B=!0;this.b=a.touches.length;this.C=nQ(this,a.touches)||1!=a.touches.length;oQ(this,a.touches)};f.ZC=function(a){this.k=!0;this.b=a.touches.length};f.YC=function(a){this.B&&1==this.b&&!this.k&&!this.C&&nQ(this,a.changedTouches)&&this.S(new S("click"));this.b=a.touches.length;0==this.b&&(this.k=this.B=!1,this.g=[])};f.XC=function(){this.S(new S("click"))}; 
function oQ(a,b){a.g=[];B(b,function(a){qb(this.g,a.identifier)},a)}function nQ(a,b){return jb(b,function(a){return D(this.g,a.identifier)},a)}f.J=function(){lQ(this);iQ.G.J.call(this)};function pQ(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.Ye=d;this.le=e;this.o=h;this.g=k;this.k=l}pQ.prototype.getHeight=function(){return this.o};function qQ(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.qb=g};function rQ(){T.call(this)}x(rQ,T);var sQ={$G:"beginFullscreen",CLICK:"click",gI:"end",iI:"endFullscreen",ERROR:"error",gJ:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",eK:"skip",mK:"start",xK:"timeUpdate",YK:"volumeChange"};function tQ(a){T.call(this);this.b=a;this.M=new Pk(4);this.C=this.N=0;this.I=this.j=this.B=!1;this.size=this.$m();this.D=this.sj();this.O=15E3;this.F=!1}x(tQ,rQ);f=tQ.prototype; 
f.pr=function(a,b,c,d){a=hb(a,function(a){if(!d&&A(a.g))a=!1;else{var b=a.b;"progressive"!=a.j&&"application/x-mpegurl"!=za(b).toLowerCase()?a=!1:(b=za(b).toLowerCase(),a=ya(b)||mc&&XP(VP,2.3)&&Ma(b,"application/ogg")?!1:mc&&(Ma(b,"video/mp4")||Ma(b,"video/3gpp"))||(nc||xc)&&(Ma(b,"application/x-mpegurl")||Ma(b,"application/vnd.apple.mpegurl"))?!0:!ya(this.b.canPlayType(b)))}return a},this);return dQ(a,b,c)};f.ts=function(){return hb(Sb(MO),function(a){return!ya(this.b.canPlayType(a))},this)}; 
f.nl=function(a){this.O=0<a.qb?a.qb:15E3};f.Ig=function(a){uQ(this);this.b.src=a;this.b.load()};f.Kj=function(){return this.b.src};f.setVolume=function(a){this.b.volume=a};f.ie=function(){return this.b.volume};f.play=function(){this.F=!1;Tk(this.b.play,0,this.b);this.L=Tk(this.iC,this.O,this)};f.pause=function(){this.F=!0;this.b.pause()};f.rh=function(){return this.b.paused?nc||xc||qh?this.b.currentTime<this.b.duration:!0:!1};f.gj=function(){return this.b.muted}; 
f.Fn=function(){nc&&this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen&&this.b.webkitExitFullscreen()};f.sj=function(){if(nc)return this.b.webkitSupportsFullscreen&&this.b.webkitDisplayingFullscreen;var a=window.screen.availWidth||window.screen.width,b=window.screen.availHeight||window.screen.height,c=ka(this.b.getBoundingClientRect)?this.b.getBoundingClientRect():{width:this.b.offsetWidth,height:this.b.offsetHeight};return c.width>=a&&c.height>=b}; 
f.oh=function(a){var b;t:{for(b=this.M.Sa();b.length;){var c=b.pop();if(0<c){b=c;break t}}b=-1}return b>=a};f.eg=function(a){this.b.currentTime=a};f.getCurrentTime=function(){return this.b.currentTime};f.zd=function(){return isNaN(this.b.duration)?-1:this.b.duration};f.Ke=function(){return this.b.ended};f.$m=function(){return new G(this.b.offsetWidth,this.b.offsetHeight)};f.mr=function(){return this.b.seeking};f.J=function(){this.Mf();this.b=null;tQ.G.J.call(this)};f.Cs=function(){return this.b.error}; 
f.Ki=function(){this.Mf();this.g=new Yk(this);this.g.listen(this.b,"canplay",this.pA);this.g.listen(this.b,"ended",this.mA);this.g.listen(this.b,"webkitbeginfullscreen",this.vm);this.g.listen(this.b,"webkitendfullscreen",this.Vq);this.g.listen(this.b,"pause",this.nA);this.g.listen(this.b,"playing",this.rA);this.g.listen(this.b,"timeupdate",this.sA);this.g.listen(this.b,"volumechange",this.oA);this.g.listen(this.b,"error",this.Yp);this.o=new iQ;this.g.listen(this.o,"click",this.lA);jQ(this.o,this.b); 
this.A=new Rk(1E3);this.g.listen(this.A,"tick",this.qA);this.A.start()};f.Mf=function(){null!=this.o&&(lQ(this.o),this.o=null);null!=this.A&&this.A.dispose();null!=this.g&&(this.g.dispose(),this.g=null);uQ(this)};function uQ(a){a.j=!1;a.I=!1;a.M.clear();Uk(a.L);Oh(a.k)}function vQ(a){a.j||(a.j=!0,Uk(a.L),a.S("start"),(!mc||mc&&XP(VP,3))&&(!nc||(nc||xc)&&XP(UP,4))||a.vm())}f.pA=function(){var a;if(a=rh)a=fc,a=!(null!=a&&Qa(a,"Samsung")&&Qa(a,"SMART-TV"));a&&!this.I&&(this.eg(.001),this.I=!0)}; 
f.rA=function(){this.S("play");nc||xc||ph||vQ(this)};f.sA=function(){if(!this.j&&(nc||xc||ph)){if(0>=this.getCurrentTime())return;if(ph&&this.Ke()&&1==this.zd()){this.Yp();return}vQ(this)}if(nc||xc){if(!this.B&&1.5<this.getCurrentTime()-this.N){this.B=!0;this.eg(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.oA=function(){this.S("volumeChange")}; 
f.nA=function(){var a;this.j&&(nc||xc)&&!this.F&&2>wQ(this)-this.b.currentTime?(this.k=new Rk(250),this.g.listen(this.k,"tick",this.qy),this.k.start(),a=!0):a=!1;a||this.S("pause")};f.mA=function(){var a=!0;(nc||xc)&&(a=this.C>=this.b.duration-1.5);!this.B&&a&&this.S("end")};f.vm=function(){this.S("beginFullscreen")};f.Vq=function(){this.S("endFullscreen")};f.Yp=function(){Uk(this.L);this.S("error")};f.lA=function(){this.S("click")}; 
f.qA=function(){var a=this.$m(),b=this.sj();if(a.width!=this.size.width||a.height!=this.size.height)!this.D&&b?this.vm():this.D&&!b&&this.Vq(),this.D=b,this.size=a};f.iC=function(){if(!this.j){try{$P(ZP.getInstance(),16)}catch(a){}uQ(this);this.S("mediaLoadTimeout")}};f.qy=function(){if(this.Ke()||!this.rh())Oh(this.k);else{var a=this.b.duration-this.b.currentTime,b=wQ(this)-this.b.currentTime;0<b&&(2<=b||2>a)&&(Oh(this.k),this.play())}}; 
function wQ(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 xQ(a,b){if(null==a||!kd(Lc(a),a))throw LP(iP,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)}x(xQ,Mh);xQ.prototype.initialize=function(){WP()&&this.g.load()};xQ.prototype.dispose=function(){ed(this.b)};xQ.prototype.show=function(){var a=this.b;null!=a&&(a.style.display="block")};xQ.prototype.hide=function(){var a=this.b;null!=a&&(a.style.display="none")};function yQ(a){null!=a?TO(OO,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&TO(PO,a)?zQ(a):null:a=null;return a}function AQ(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 zQ(a){if(A(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=ue(new J(a));return De(a,"v")?a.get("v").toString():De(a,"video_id")?a.get("video_id").toString():null};function BQ(a){T.call(this);this.N="ima-chromeless-video";var b=null;null!=a&&(s(a)?this.N=a:b=a);this.O=new Yk(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=v(this.qv,this),CQ?a():(DQ.push(a),a=Zc("script"),a.src="//www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))}x(BQ,rQ); 
var EQ=["video/mp4","video/webm"],FQ={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},DQ=[],CQ=!1;f=BQ.prototype;f.pr=function(a,b,c){var d=lb(a,function(a){return null!==yQ(a.g)});return null!==d||!E(c)&&(c=hb(c,function(a){return D(EQ,a)}),d=dQ(a,b,c),null!==d)?d:lb(a,function(a){return D(EQ,a.b)})};f.nl=function(a){this.g=a};f.Ig=function(a,b){null!==a&&(this.L=a,this.b?GQ(this,a,b):(this.C=a,this.F=b))};f.Kj=function(){return this.L}; 
f.setVolume=function(a){this.P?this.S("volumeChange"):this.b?(a=Ib(100*a,0,100),this.X.setVolume(a),this.o=-1,this.S("volumeChange")):this.o=a};f.ie=function(){return this.b?this.X.getVolume()/100:this.o};f.play=function(){if(!A(this.L)){if(!this.j){HQ(this);var a=15E3;null!=this.g&&0<this.g.qb&&(a=this.g.qb);this.T=Tk(this.Xx,a,this)}this.b?(this.I=!1,IQ(this),this.k=new Rk(100),this.O.listen(this.k,"tick",this.zq),this.k.start(),this.X.playVideo()):this.I=!0}}; 
f.pause=function(){this.b&&this.j&&(IQ(this),this.X.pauseVideo())};f.rh=function(){return this.b?2==this.X.getPlayerState(this.A):!1};f.gj=function(){return this.V?this.X.isMuted():0==this.ie()};f.Fn=function(){};f.sj=function(){return!1};f.oh=function(a){return this.b?this.X.getCurrentTime(this.A)>=a:!1};f.eg=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.zd=function(){return this.b&&this.j?this.X.getDuration(this.A):-1};f.Cs=function(){return null};f.ts=function(){return Sb(MO)};f.Ke=function(){return this.b?0==this.X.getPlayerState(this.A):!1};f.$m=function(){var a=document.getElementById(this.N);return new G(a.offsetWidth,a.offsetHeight)};f.mr=function(){return!1}; 
f.Ki=function(){this.M=v(this.gt,this);this.D=v(this.Zn,this);this.P&&(this.X.addEventListener("onAdStateChange",this.D),this.X.addEventListener("onReady",this.M),this.X.addEventListener("onStateChange",this.D))};f.Mf=function(){this.P&&(this.X.removeEventListener("onAdStateChange",this.D),this.X.removeEventListener("onReady",this.M),this.X.removeEventListener("onStateChange",this.D))}; 
f.qv=function(){var a=this.N,b={playerVars:ac(FQ),events:{onError:v(this.QD,this),onReady:v(this.gt,this),onAdStateChange:v(this.Zn,this),onStateChange:v(this.Zn,this)}},c=q("YT");this.X=null!=c&&null!=c.Player?new c.Player(a,b):null}; 
function GQ(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=yQ(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.QD=function(){this.S("error")}; 
f.gt=function(){this.b=!0;-1!=this.o&&(this.setVolume(this.o),this.o=-1);null!=this.C&&(GQ(this,this.C,this.F),this.F=this.C=null);-1!=this.B&&(this.eg(this.B),this.B=-1);this.I&&this.play()};f.Zn=function(a){switch(a.data){case 0:this.j?this.S("end"):this.S("error");break;case 1:this.j||(HQ(this),this.j=!0,this.S("start"));this.S("play");break;case 2:this.S("pause")}};function IQ(a){a.O.Ga(a.k,"tick",a.zq);null!=a.k&&(a.k.stop(),a.k=null)}function HQ(a){null!=a.T&&Uk(a.T)}f.zq=function(){this.S("timeUpdate")}; 
f.Xx=function(){this.S("mediaLoadTimeout")};f.J=function(){IQ(this);HQ(this);this.Mf();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="";BQ.G.J.call(this)};ba("onYouTubeIframeAPIReady",function(){CQ=!0;B(DQ,function(a){a()});pb(DQ)},window);function JQ(a){T.call(this);this.b=a||Za();this.g=[]}x(JQ,T);JQ.prototype.j=!1;JQ.prototype.connect=function(){for(this.j=!0;!E(this.g);){var a=this.g.shift();this.sendMessage(a.name,a.type,a.data)}};JQ.prototype.send=function(a,b,c){this.j?this.sendMessage(a,b,c):this.g.push({name:a,type:b,data:c})};function KQ(a,b,c,d,e){S.call(this,a);this.od=b;this.ef=c;this.hr=d;this.k=e}x(KQ,S);KQ.prototype.getOrigin=function(){return this.k};KQ.prototype.toString=function(){return""};function LQ(a,b){JQ.call(this,b);this.k=a;this.Nc=null;this.o=new Yk(this);this.logger=null;this.o.listen(Vc(),"message",this.receive)}x(LQ,JQ);function MQ(a){if(null==a||!s(a)||0!=a.lastIndexOf("ima://",0))return null;a=a.substr(6);try{return rf(a)}catch(b){return null}}LQ.prototype.sendMessage=function(a,b,c){null!=this.Nc&&null!=this.Nc.postMessage&&this.Nc.postMessage(NQ(this,a,b,c),"*");null!=this.Nc&&null==this.Nc.postMessage&&$P(ZP.getInstance(),11)}; 
LQ.prototype.J=function(){this.o.dispose();LQ.G.J.call(this)};LQ.prototype.receive=function(a){a=a.b;var b=MQ(a.data);if(null!=b){if(null==this.Nc)this.Nc=a.source;else if(this.Nc!=a.source)return;var c=b.channel;null!=c&&c==this.k&&(c=b.sid,null!=c&&("*"!=this.b&&c!=this.b||this.S(new KQ(b.name,b.type,b.data||{},b.sid,a.origin))))}};function NQ(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://"+tf(e)};function OQ(a,b){T.call(this);this.k=a;this.j=b;this.b={};this.g=new Yk(this);this.g.listen(Vc(),"message",this.o)}x(OQ,T);OQ.prototype.send=function(a){var b=a.getChannelId();this.b.hasOwnProperty(b)?this.b[b].send(a.type,a.od,a.ef):a.getChannelId()};function PQ(a,b,c,d){a.b.hasOwnProperty(b)||(c=new LQ(b,c),a.g.listen(c,a.k,function(a){a=new QQ(a.type,a.od,a.ef,a.hr,a.getOrigin(),b);this.S(a)}),c.Nc=d,c.connect(),a.b[b]=c)}OQ.prototype.J=function(){this.g.dispose();Qh(this.b);OQ.G.J.call(this)}; 
OQ.prototype.o=function(a){a=a.b;var b=MQ(a.data);if(null!=b){var c=b.channel;if(this.j&&!this.b.hasOwnProperty(c)){var d=b.sid;PQ(this,c,d,a.source);this.S(new QQ(b.name,b.type,b.data||{},d,a.origin,c))}}};function QQ(a,b,c,d,e,g){KQ.call(this,a,b,c,d,e);this.j=g}x(QQ,KQ);QQ.prototype.getChannelId=function(){return this.j};function RQ(){var a=q("google.ima.gptProxyInstance",Vc());if(null!=a)return a;Yk.call(this);this.k=new OQ("gpt",!0);this.listen(this.k,"gpt",this.A);this.b=null;SQ()||Vc().top===Vc()||(this.b=new OQ("gpt",!1),this.listen(this.b,"gpt",this.o))}x(RQ,Yk);function SQ(){return!!q("googletag.cmd",Vc())}function TQ(){var a=q("googletag.console",Vc());return null!=a?a:null} 
RQ.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)PQ(this.b,a.getChannelId(),a.hr,Vc().parent),null!=this.b&&this.b.send(a);else if(c=a.ef,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.od,"isGptPresent"==c?d=SQ():"isConsolePresent"==c&&(d=null!=TQ());else if(SQ())if("pubads"==b||"companionAds"==b){d=a.od;var e,g=Vc().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.od,e=TQ(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.od;d=Vc();if(D(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}n(d)&&(a.ef.returnValue=d,this.k.send(a))}};RQ.prototype.o=function(a){this.k.send(a)};function UQ(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,k,l,p,r,u){if("%"==p)return"%";var t=c.shift();if("undefined"==typeof t)throw Error("[goog.string.format] Not enough arguments");arguments[0]=t;return VQ[p].apply(null,arguments)})} 
var VQ={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 VQ.f(parseInt(a, 
10),b,c,d,0,g,h,k)}};VQ.i=VQ.d;VQ.u=VQ.d;function WQ(a,b){T.call(this);this.j=new Yk(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:")+UQ("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});bl(this.j,c,"load",this.qw);a.appendChild(c);this.ib=c;c=this.o.get("*");null==c&&(c=new LQ(this.C,"*"),this.B&&(c.Nc=ld(this.ib),c.connect()),this.o.set("*",c));this.k=c;this.A=b;this.b=this.A.o; 
this.g=null;this.j.listen(this.k,"mouse",this.sw);this.j.listen(this.k,"touch",this.uw);null!=this.b&&(this.j.listen(this.k,"displayContainer",this.rw),this.j.listen(this.k,"videoDisplay",this.tw),this.j.listen(this.b,Sb(sQ),this.ww));var c=Vc(),d=q("google.ima.gptProxyInstance",c);null==d&&(d=new RQ,ba("google.ima.gptProxyInstance",d,c))}x(WQ,T);f=WQ.prototype; 
f.J=function(){this.j.dispose();null!==this.g&&(this.g.dispose(),this.g=null);Cd(this.o.gc(!1),function(a){a.dispose()});this.o.clear();ed(this.ib);WQ.G.J.call(this)};f.sw=function(a){var b=a.ef,c=Uf(this.ib),d=document.createEvent("MouseEvent");d.initMouseEvent(a.od,!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(!rh||nc||xc||0==document.webkitIsFullScreen)this.ib.blur(),window.focus();this.ib.dispatchEvent(d)}; 
function XQ(a,b){var c=Uf(a.ib),d=C(b,function(a){return document.createTouch(window,this.ib,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)} 
f.uw=function(a){var b=a.ef,c=Uf(this.ib),d=document.createEvent("TouchEvent");d.initTouchEvent(a.od,!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,XQ(this,b.touches),XQ(this,b.targetTouches),XQ(this,b.changedTouches),b.scale,b.rotation);this.ib.dispatchEvent(d)}; 
f.tw=function(a){if(null!=this.b){var b=a.ef;switch(a.od){case "startTracking":this.b.Ki();break;case "stopTracking":this.b.Mf();break;case "exitFullscreen":this.b.Fn();break;case "play":this.b.play();break;case "pause":this.b.pause();break;case "load":this.b.Ig(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.b.eg(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.b.nl(new qQ(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled, 
a.loadVideoTimeout,a.ibaDisabled))}}}; 
f.ww=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.Ke();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.zd();break;case "volumeChange":a= 
"volumeChange";b.volume=this.b.ie();break;default:return}this.k.send("videoDisplay",a,b)};f.rw=function(a){switch(a.od){case "showVideo":null!=this.g?lQ(this.g):(this.g=new iQ,this.j.listen(this.g,"click",this.Vx));a=this.A;jQ(this.g,a.D&&a.k?a.k: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.Vx=function(){this.k.send("displayContainer","videoClick")}; 
f.qw=function(){Cd(this.o.gc(!1),function(a){a.Nc=ld(this.ib);a.connect()},this);this.B=!0};function YQ(a,b,c,d){if(null==a||!kd(Lc(a),a))throw LP(iP,null,"containerElement","element");this.C=a;var e=null!=b||null!=d;this.k=(this.j=e)?c||null:null;this.D=null!=this.k;this.B=e&&null!=d;$P(ZP.getInstance(),8,{enabled:this.j,yt:null!=d,customClick:null!=this.k});PP.g?a=null:(c=I("div",{style:"position:absolute"}),a.insertBefore(c,a.firstChild),a=c);this.g=a;this.b=!this.j&&this.g&&!PP.g&&WP()?new xQ(this.g,null):null;a=null;this.j?b?a=new tQ(b):d&&(a=new BQ(d)):this.b&&(a=new tQ(this.b.g)); 
this.o=a;this.A=null==this.g||PP.g?null:new WQ(this.g,this)}YQ.prototype.initialize=function(){null!=this.b&&this.b.initialize()};YQ.prototype.destroy=function(){Oh(this.b);Oh(this.A);Oh(this.o);ed(this.g)};YQ.prototype.hide=function(){null!=this.b&&this.b.hide()};function ZQ(){T.call(this);this.currentTime=0}x(ZQ,T);function $Q(a){ZQ.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw LP(iP,null,"content","currentTime");this.g=a;this.b=new Rk(250);this.j=new Yk(this);al(this.j,this.b,"tick",this.k,this)}x($Q,ZQ);$Q.prototype.start=function(){this.b.start()};$Q.prototype.stop=function(){this.b.stop()};$Q.prototype.J=function(){$Q.G.J.call(this);this.j.dispose();this.b.dispose()}; 
$Q.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 aR(){this.reset()}aR.prototype.reset=function(){this.b=0;this.g=null};function bR(){this.g=this.b=null}bR.prototype.reset=function(){this.g=this.b=null};function cR(){this.b=dR();this.M=this.L=this.j=this.B=this.k=null;this.I=dR();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null}function dR(){return Math.floor(4503599627370496*Math.random())}var eR=new cR;cR.prototype.clear=function(){this.b=dR();this.j=this.B=this.k=null;this.I=dR();this.g=null;this.N=this.C=this.D="";this.A=this.F=this.o=null};function fR(a){if(PP.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 gR(a,b){this.A=a;this.o=C(b,function(a){return a.clone()});this.k="";this.b=this.j=0;this.g=!0}function hR(a){a.k="";a.j=0;a.b=0;a.g=!0}gR.prototype.getContent=function(){return this.k};gR.prototype.clone=function(){var a=new gR(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 iR(){T.call(this);this.k=!1}x(iR,T);function jR(a){S.call(this,a)}x(jR,S);function kR(){iR.call(this);this.B=[];this.o=!1;this.j="not_loaded";this.g=null;this.A=0;this.b=null;this.C=new Kc}x(kR,iR);da(kR);function lR(a){var b=["googletag","googletag.cmd"];return lb(a,function(a){return kb(b,function(b){return!fa(q(b,a))})})||null}f=kR.prototype;f.J=function(){this.g&&this.g.dispose()};f.initialize=function(){if(!this.k){var a;var b=wd(new Kc);try{q("googletag"),lR([b,b.top]),a=!0}catch(c){a=!1}a?mR(this):(this.k=!0,this.j="not_available")}}; 
function nR(a){return a.k?C(a.B,function(a){return a.clone()}):[]}function oR(a){a=nR(a);return null!=a?C(a,function(a){return a.o}):void 0}function pR(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(eR.b,"","","",d,e,c)}catch(g){}}function qR(a,b){var c=rR(a);if(null!==c){pR(c,b,!0);try{c.refreshAllSlots()}catch(d){}}} 
f.setVideoContent=function(a,b){var c=sR(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};function rR(a){null==a.b&&tR(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.companionAds?a.b.googletag.companionAds():null}function sR(a){null==a.b&&tR(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.pubads?a.b.googletag.pubads():null}f.Fp=function(){0<this.A&&w()>=this.A?(this.k=!0,uR(this),vR(this)):mR(this)}; 
function uR(a){a.g&&(a.g.stop(),a.g.Ga("tick",a.Fp,!1,a),a.g.dispose(),a.g=null)} 
function mR(a){var b;if(b=!a.o)tR(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=C(d,a.xw,a)}}catch(e){a.o=!0,c=[]}a.B=c;a.o=!0}if("retrieved"!=a.j&&"not_available"!=a.j&&!fa(rR(a))){var g;b=rR(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,uR(a),a.S(new jR("companions_success"))):a.o&&"not_available"==a.j?(a.k=!0,uR(a),vR(a)):a.g||(a.A=w()+5E3,a.g=new Rk(100),a.g.listen("tick",a.Fp,!1,a),a.g.start())}function tR(a){var b=wd(a.C);try{a.b=lR([b,b.top])}catch(c){a.b=null}}function vR(a){a.S(new jR("companion_initialization_failed"))}f.xw=function(a){var b=C(a.adSizes,function(a){return new G(a.adWidth,a.adHeight)});return new gR(a.slotId,b)}; 
f.zz=function(a){var b={};b.slotId=a.A;b.adContent=a.getContent();b.adWidth=a.j;b.adHeight=a.b;b.friendlyIframeRendering=a.g;return b};function wR(a){S.call(this,a)}x(wR,S);function xR(){T.call(this);this.j=[]}x(xR,T);xR.prototype.Ni=function(){return null};xR.prototype.lt=function(){return!0};function yR(){return new zR("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new Ed)};function AR(a){xR.call(this);this.b=a;this.A=null;this.B=!1;this.g=null;this.o=new Yk;al(this.o,this.b,["companions_success","companion_initialization_failed"],this.my,this);al(this.o,this.b,"companion_display_error",this.ly,this);this.b.k?this.B=!0:this.b.initialize()}x(AR,xR);f=AR.prototype;f.destroy=function(){null!=this.o&&this.o.dispose();this.g=null};function BR(a,b){a.g=b;a.k=!0;a.B?CR(a):(a.k=DR(ER(b),[]),a.k||(a.g=null))} 
function CR(a){var b=a.g;a.g=null;if(null!=a.b)if(E(a.j))FR(a);else if(null!=b){var c=GR(a,b),d=a.b;try{d.b.googleSetCompanionAdContents(C(a.j,d.zz,d))}catch(e){d.S(new jR("companion_display_error"))}if(0<c.length&&b.fa&&(d=a.b,0!=c.length&&"GDFP"==HR(b)[0])){a=[];for(var g=0;g<c.length;g++)a.push(c[g].A);b=b.j;c=rR(d);if(null!==c){pR(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else FR(a)}function FR(a){a.S(new wR("companion_display_error"))}f.lt=function(){return this.k}; 
f.my=function(){null!=this.A&&(this.A.stop(),this.A.dispose(),this.A=null);if(null!=this.b){var a=nR(this.b);null!=a&&(this.j=a)}this.B=!0;null!=this.g&&CR(this);this.S(new S("initialized"))};f.ly=function(){FR(this)}; 
function GR(a,b){var c=[],d=[];B(a.j,function(a){hR(a);jb(a.o,function(d){t:{var e=IR(b);d=JR(new KR(new G(d.width,d.height)),e);if(!E(d)&&(d=LR(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.getContent(),l=d.b.yd(),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=ER(b);a.k=DR(e,c);a.k||B(a.j,function(a){hR(a)},a);return d} 
function DR(a,b){if(null==a)return!0;var c=a.b;return"all"==a.g?MR(c,b):"any"==a.g?NR(c,b):!0}function ER(a){return null!=a&&ga(a.getSelectedCreative())&&!isNaN(OR(a.getSelectedCreative()))?lb(PR(a,!0),function(a){a=a.b;return E(a)?!1:isNaN(a[0].b.b)?!1:a[0].b.b==QR(a[0])}):null}function MR(a,b){return kb(a,function(a){return D(b,a)})}function NR(a,b){return jb(a,function(a){return D(b,a)})}function LR(a,b){return lb(a,function(a){return!D(b,a)})}f.Ni=function(){return this.b};function RR(a){S.call(this,a);this.o=[];this.k={};this.j=null}x(RR,S);function SR(){T.call(this);this.g=this.b=!1}x(SR,T);var TR=null;function UR(){null!=TR||(TR=new SR);return TR}SR.prototype.init=function(){this.b||(zv(Dv("//pagead2.googlesyndication.com/pagead/js/lidar.js",{timeout:3E4}),this.k,this.j,this),this.b=!0)};function VR(a,b,c){if(a.b&&a.g){a={};var d;d=PP.o;PP.b&&null!=d&&(a.opt_videoAdElement=Mc(d));return Goog_AdSense_Lidar_sendVastMessage(b,c,a)}return""}SR.prototype.destroy=function(){this.va="";this.g=this.b=!1};SR.prototype.k=function(){this.g=!0}; 
SR.prototype.j=function(){this.g=!1};ba("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewability=b;UR().S(new DO("viewable_impression",null,c))},void 0);function WR(a,b,c){this.A=b;this.k=c;this.o=null;this.g=new Yk(this);this.F=a;this.j=this.b=null;this.B=!1}WR.prototype.start=function(a,b){this.o=a;this.D=b;XR(this);this.A.B?this.C():dl(this.g,this.A,"initialized",this.C,this)};WR.prototype.C=function(){var a=this.A.Ni(),b;b=a.k?"retrieved"!=a.j?void 0:a.D:void 0;a=oR(a);null!=b&&(this.k.I=b);null!=a&&(this.k.A=a);YR(this)}; 
function YR(a){if(null===a.o)ZR(a);else{var b=new J(a.o.adTagUrl),c=za(b.b.get("vid")),b=za(b.b.get("cmsid")),d=a.k.D,e=a.k.C;a.k.D=c;a.k.C=b;if(A(c)||A(b))ZR(a);else if(c==d&&b==e)ZR(a);else{var g=a.A.Ni();g.setVideoContent(c,b);qR(g,a.o);a.j=new Rk(100);al(a.g,a.j,"tick",function(){var a;t:{var b=sR(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break t}catch(c){a=!0;break t}a=!1}a&&ZR(this)},a);a.j.start()}}} 
function XR(a){a.b=new Rk;dl(a.g,a.b,"tick",function(){ZR(this)},a);Sk(a.b,a.F);a.b.start()}function ZR(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 $R(){};function aS(a){return JP(BP,null,a.parentNode.nodeName,a.nodeName)}function bS(a){return JP(qP,null,a.parentNode.nodeName,a.nodeName)}function cS(a,b){return null!=a?hb(gd(a),function(a){return a.nodeName==b}):[]}function dS(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function eS(a,b){if(null==a)return null;var c="";B(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=Aa(c);return b?La(c):c} 
function fS(a,b,c,d){null!=a&&B(gd(a),function(a){if(a.nodeName==b)c.call(d,a);else throw aS(a);})}function gS(a){return A(a)?NaN:$a(za(a))}function hS(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new mN(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 iS(a,b){if(!A(a))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};function jS(a,b,c){this.g=a;this.b=c;this.j=b};function kS(a){this.j=a};function lS(a){this.j=a;this.g=this.b=!1}x(lS,kS);function mS(a,b,c){this.b=a;this.g=b;this.j=c};function nS(){this.b=new Ed}function oS(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];Gd(a.b,c)&&(d=a.b.get(c,[]));B(b,function(a){null!=a&&qb(d,a)});a.b.set(c,d)};function pS(a,b){this.b=a;this.g=b}x(pS,$R);pS.prototype.j=function(){return new jS(this.b,null,qS(this))}; 
function qS(a){var b=new nS;B(gd(hd(a.b)),function(a){switch(a.nodeName){case "Preroll":a=rS(this,a);oS(b,a,0);break;case "Midroll":var d=dS(a,"timeOffset"),e=hS(d);if(-1==e)throw JP(dP,null,"timeOffset",za(d));a=rS(this,a);oS(b,a,e);break;case "Postroll":a=rS(this,a);oS(b,a,-1);break;default:throw JP(mP,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.b.La().length)throw JP(lP);return b} 
function rS(a,b){var c=[];B(gd(b),function(a){switch(a.nodeName){case "Ad":var b=za(eS(a));if(!ya(b)){a=dS(a,"bumper");var g=this.g.clone();g.adTagUrl=b;b=new lS(g);b.b=null!=a;b.g="always"==a;qb(c,b)}break;default:throw JP(mP,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function sS(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 tS(a){var b={};B(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Aa(d[0]),d=Aa(d[1]),0<a.length&&(b[a]=d))});return b};var uS=["ai","sigh"];function vS(a,b){var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?Ma(a,"/pagead/adview")?wS(a)?0:2:Ma(a,"/pagead/conversion")?wS(a)?1:2:2:2;if(2==c)return a;switch(c){case 0:return c=eR.F,c=null!=c?xS(a,"&ppid="+c):a,b?c:xS(c,"&sdkv="+fR(eR));case 1:return b?a:xS(a,"&sdkv="+fR(eR))}return a}function xS(a,b){var c=a.indexOf("&adurl=");return-1!=c?Ua(a.substr(0,c),b,a.substr(c,a.length)):a+b} 
function wS(a){return kb(uS,function(b){var c=a||"";return 0<=ae(c,0,b,c.search(be))})};function yS(a,b){this.b=a;this.g=b}function zS(a){return a.g?-1:a.b};function AS(){this.b=new Ed}function BS(a,b){this.j=a;this.b=b}function CS(a,b){BS.call(this,"progress",a);this.g=b}x(CS,BS);function DS(a,b){B(b,function(a){var b=a.j.toLowerCase(),e=ES(this,b);e.push(a);this.b.set(b,e)},a)}function FS(a,b,c,d){b=b.toLowerCase();var e=ES(a,b);null!=d?(d=new CS(c,d),null!=d?e.push(d):e.push(new BS(b,c))):e.push(new BS(b,c));a.b.set(b,e)}function ES(a,b){return null!=b?a.b.get(b.toLowerCase())||[]:[]} 
function GS(a,b){var c=ES(a,"progress");B(c,function(a){a=a.g;a.g&&(a.g=!1,a.b=a.b*b/100)});Cb(c,function(a,b){return zS(a.g)-zS(b.g)})}AS.prototype.isEmpty=function(){return this.b.isEmpty()};function HS(a,b){return C(ES(a,b)||[],function(a){return a.b})};function IS(a,b){var c=new AS;fS(a,"Tracking",function(a){var e=dS(a,"event"),g=vS(eS(a),b);JS(g)&&null!=e&&("progress"==e?(a=dS(a,"offset"),a=KS(a),null!=a&&FS(c,e,g,a)):FS(c,e,g))});return c}function LS(a){if(A(a))return null;a=new J(a);if("thismessage"!=a.Mb||"extensions"!=a.Fb)return null;a=a.Ub;if(0!=a.lastIndexOf("/",0))return null;a=a.substr(1);return A(a)?null:a} 
function KS(a){if(A(a))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new yS(a,!0))):(a=hS(a),0<=a&&(b=new yS(a,!1)));return b}function JS(a){var b=!0;if(A(a))b=!1;else try{new J(a)}catch(c){b=!1}return b};function MS(a){this.b=null!=a?a:new AS}function NS(a,b){var c=b.b;B(c.La(),function(a){DS(this.b,c.get(a))},a)}function OS(a,b){var c=HS(a.b,b);return null!=c?c:[]};function PS(){this.b="Ads by Google";this.g="http://www.google.com/adsense/support";this.j=0};function QS(a,b,c,d,e,g,h,k,l){MS.call(this,l);this.k=a;this.o=b;this.g=c;this.j=e;this.A=g;this.B=h}x(QS,MS);function RS(){}RS.prototype.parse=function(a){var b;fS(a,"config",function(a){null!=b||(b=SS(this,a))},this);return b};function SS(a,b){var c;B(gd(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new PS:null;break;case "params":null!=c&&TS(this,c,a)}},a);return c}function TS(a,b,c){B(gd(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 US(){} 
US.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k=!1;B(gd(a),function(a){switch(a.nodeName){case "AttributionText":b=eS(a);break;case "AttributionUrl":c=eS(a);break;case "ConversionUrl":e=eS(a);break;case "CustomTracking":null!=gd(a)&&(d=IS(a));break;case "PreviousAdInformation":eS(a);break;case "VisibleUrl":g=eS(a);break;case "UI":h=(new RS).parse(a);break;case "ShowYouTubeAnnotations":var p=eS(a);k=iS(za(p),!1);case "QueryId":eS(a)}},this);null!=h||(h=new PS);return new QS(b, 
c,e,0,g,h,k,0,d)};function VS(a,b){MS.call(this,b);this.g=a}x(VS,MS);function WS(){}WS.prototype.parse=function(a){if(null==a)return null;var b;B(gd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=gd(a)&&(b=IS(a))}});a=null;null!=b&&0<ES(b,"skip").length&&(a="Generic");return new VS(a,b)};function XS(){}XS.prototype.parse=function(a){if(null==a)return null;var b,c;B(gd(a),function(a){switch(a.nodeName){case "SkippableAdType":b=eS(a);break;case "CustomTracking":null!=gd(a)&&(c=IS(a))}});return new VS(b,c)};function YS(){}YS.prototype.parse=function(a){if(null==a)return null;var b;B(gd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=gd(a)&&(b=IS(a))}},this);return new MS(b)};function ZS(){MS.call(this)}x(ZS,MS);function $S(){}$S.prototype.parse=function(a){a=AD(a);return A(a)?null:new ZS};function aT(a){MS.call(this);this.g=a}x(aT,MS);function bT(){MS.call(this)}x(bT,MS);function cT(){}cT.prototype.b={GC:"TEMPLATE_PARAMETERS",HC:"TEMPLATE_URL"};cT.prototype.parse=function(a){if(null==a)return null;B(gd(a),function(a){switch(a.nodeName){case this.b.GC:dT(this,a)}},this);return new bT};function dT(a,b){B(gd(b),function(a){a.nodeName==this.b.HC&&eS(a)},a)};function eT(a,b,c,d){MS.call(this);this.j=a;this.k=b;this.o=c;this.g=d}x(eT,MS);function fT(){}fT.prototype.b={AC:"Line1",BC:"Line2",CC:"Line3",zC:"ImageUrl"};fT.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;B(gd(a),function(a){switch(a.nodeName){case this.b.AC:b=eS(a,!0);break;case this.b.BC:c=eS(a,!0);break;case this.b.CC:d=eS(a,!0);break;case this.b.zC:e=eS(a)}},this);return new eT(b,c,d,e)};function gT(a){MS.call(this);this.g=a}x(gT,MS);function hT(){}hT.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 gT(a)};function iT(){MS.call(this)}x(iT,MS);function jT(){}jT.prototype.parse=function(a){return null!=a?new iT:null};function kT(a){MS.call(this);this.g=isNaN(a)?-1:a}x(kT,MS);function lT(){}lT.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?$a(a):NaN;return new kT(a)};function mT(){}var nT={IMAGE:"Image",ZE:"Flash",RE:"All"},oT={HTML:"Html",JI:"IFrame",nK:"Static",RE:"All"},pT={KI:"IgnoreSize",XJ:"SelectExactMatch",YJ:"SelectNearMatch"};var qT=!1,rT="";function sT(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")} 
if(navigator.plugins&&navigator.plugins.length){var tT=navigator.plugins["Shockwave Flash"];tT&&(qT=!0,tT.description&&(rT=sT(tT.description)));navigator.plugins["Shockwave Flash 2.0"]&&(qT=!0,rT="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var uT=navigator.mimeTypes["application/x-shockwave-flash"];(qT=uT&&uT.enabledPlugin)&&(rT=sT(uT.enabledPlugin.description))}else try{var vT=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),qT=!0,rT=sT(vT.GetVariable("$version"))}catch(wT){try{vT= 
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),qT=!0,rT="6.0.21"}catch(xT){try{vT=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),qT=!0,rT=sT(vT.GetVariable("$version"))}catch(yT){}}}var zT=qT,AT=rT;function KR(a){if(null==a||0>=a.width||0>=a.height)throw LP(iP,null,"ad slot size",a.toString());this.g=a;this.b=new mT;this.o=BT(oT,this.b.k)?this.b.k:"All";this.k=BT(nT,this.b.j)?this.b.j:"All";this.B=BT(pT,this.b.o)?this.b.o:"SelectExactMatch";this.j=null!=this.b.g?this.b.g:[];this.A=ja(this.b.b)&&0<this.b.b&&100>=this.b.b?this.b.b:90} 
function JR(a,b){var c=[];B(b,function(a){!A(a.b.k)&&(isNaN(a.b.b)||isNaN(QR(a))||QR(a)==a.b.b)&&CT(this,a)?c.push(a):(a=DT(this,a),null!=a&&!A(a.b.k)&&c.push(a))},a);return c} 
function CT(a,b){var c;if(c="Flash"!=b.getContentType()||zT){if(c="All"==a.o||a.o==b.b.P)c=b.getContentType(),c=null!=c?"All"==a.k||a.k==c:!0;c&&(c=b.j,c=E(a.j)?!0:null!=c?0<=fb(a.j,c):!1)}c?(c=b.b.he(),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 DT(a,b){var c=b.g;return null!=c?lb(c,function(a){return CT(this,a)},a):null} 
function BT(a,b){return null!=b&&Ub(a,b)};function ET(a,b,c,d){this.va=a;this.b=Ib(c||0,0,1);this.g=null!=d?d:!0}ET.prototype.getId=function(){return this.va};function FT(a){this.va=a;this.g=new Ed;this.b=null}function GT(a){var b=Math.random(),c=0,d=a.g.Sa();B(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 HT(){this.b=new Ed;IT(this,41351021,0);IT(this,41351022,1);JT(this)}var KT=null;function LT(){KT||(KT=new HT);return KT}function IT(a,b,c){A("GvnExternalLayer")||isNaN(b)||0>=b||(b=new ET(b,0,c),MT(a,"GvnExternalLayer").g.set(b.getId(),b))}function JT(a){B(a.b.Sa(),function(a){GT(a)},a)}function NT(a,b){B(b,function(a){var b=Number(a);a="forcedLayer"+a;isNaN(b)||0>=b||A(a)||(a=MT(this,a),b=new ET(b),a.b=b)},a)} 
function OT(a){var b=LT();return jb(b.b.Sa(),function(b){return!!b.b&&b.b.getId()==a})}function PT(a){var b=[];B(a.b.Sa(),function(a){(a=a.b)&&a.g&&b.push(a.getId())});return b.sort().join(",")}function MT(a,b){var c=a.b.get(b);null==c&&(c=new FT(b),a.b.set(b,c));return c};function QT(a){J.call(this,a);this.g=new Ed;a=this.Ub;var b=a.indexOf(";"),c=null;0<=b?(he(this,a.substring(0,b)),c=a.substring(b+1)):he(this,a);RT(this,c)}x(QT,J);QT.prototype.toString=function(){return ST(this,QT.G.toString.call(this))};QT.prototype.bh=function(){return""};function RT(a,b){A(b)||B(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=Ca(a.substring(0,b));a=Ca(a.substring(b+1));b=this.g.get(e);null!=b?D(b,a)||b.push(a):b=[za(a)];this.g.set(e,b)}},a)} 
function TT(a){if(A("ord"))return null;a=a.g.get("ord");return null!=a?a:null}function UT(a,b,c){A(b)||(c=C(c,za),a.g.set(b,c))}function ST(a,b){var c=[za(b)];wb(c,$T(a));return c.join(";")}function $T(a){var b=TT(a);null!=b?A("ord")||a.g.remove("ord"):b=[za(w())];var c=[];B(a.g.La(),function(a){B(this.g.get(a),function(b){wb(c,a+"="+b)})},a);wb(c,"ord="+b[0]);UT(a,"ord",b);return c}QT.prototype.clone=function(){return new QT(this.toString())};function aU(a){if(null==a.adTagUrl)return!1;a=new J(a.adTagUrl);return"googleads.g.doubleclick.net"==a.Fb&&"/pagead/ads"==a.Ub}function bU(a){a=a.adTagUrl;if(null==a)return!1;a=(new J(a)).Ub;return A(a)?!1:/\/gampad\/ads/.test(a)}function cU(a){a=a.adTagUrl;if(null==a)return!1;a=new QT(a);var b=a.Fb,c;if(c=!wa(b,".g.doubleclick.net")){if(b=wa(b,"doubleclick.net"))a=ST(a,a.Ub),b=A(a)?!1:/\/(ad|pfad)[x|i|j]?\//.test(a);c=b}return c?!0:!1} 
function dU(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==re(new J(a)):!1};function eU(){this.b=1;this.k=this.j=0;this.g=1};function fU(){this.L={};this.T="";this.gg=new AS}function OR(a){return a.b}fU.prototype.Wn=function(){return null};function gU(a,b,c){a.T=b;a.L=c}fU.prototype.Hg=function(a){this.aa=a};fU.prototype.getAd=function(){return this.aa};function hU(a,b){var c=[],d=iU(a);B(d,function(a){a=ES(a.gg,b)||[];c=ub(a,c)},a);return c}function jU(a,b){var c=hU(a,b);return C(c||[],function(a){return a.b})}function iU(a){for(var b=[a],c=a.aa.b;c;){var d=kU(a,c)||kU(a,c,!0);null!=d&&b.push(d);c=c.b}return b} 
function kU(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 lU(a,b,c,d,e){fU.call(this);this.fa=a;this.g=b;this.ca=c;this.D=vb(d);this.ka=this.ma=null;this.j=e}x(lU,fU);lU.prototype.Jd=function(){return this.g};function mU(a){var b=new Ed,c=iU(a);B(c,function(a){var c=a.ca;B(c.La(),function(a){b.set(a,ub(c.get(a),b.get(a)||[]))},this)},a);return b}lU.prototype.getMediaUrl=function(a){var b="";jb(this.D,function(c){var d=c.g;return!A(a)&&a!=c.b||null==d||A(d)?!1:(b=d,!0)},this);return b};lU.prototype.setMediaUrl=function(a){this.ka=a}; 
lU.prototype.Wn=function(){var a=lb(this.D,function(a){return!A(a.b)&&-1!=a.b.indexOf("javascript")&&("VPAID"==a.k||"surveys"==a.k)});return null!=a?a.g:null};function nU(a,b,c){this.g=a;this.j=b;this.k=c;this.A=0;this.b=new Yk(this);oU(this)}x(nU,Mh);function oU(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)}nU.prototype.B=function(){this.o=w()}; 
nU.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=Uf(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="+(w()-this.o));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};nU.prototype.C=function(){this.A++};nU.prototype.J=function(){nU.G.J.call(this);this.b.dispose()};function pU(a,b,c,d,e){fU.call(this);A(a)&&(a=Za()+"_ima");this.va=za(a);this.ta=b;this.P=c;this.O=d;this.k=e;null!=this.O?this.V=IO[this.O]||"Other":this.V=null}x(pU,fU);f=pU.prototype;f.getContent=function(){var a;a=this.td();if("outerHTML"in a)a=a.outerHTML;else{var b=Lc(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.V};f.he=function(){return this.ta};f.yd=function(){return this.he().width};f.getHeight=function(){return this.he().height}; 
f.Wn=function(){return"VPAID"==this.B?this.k:null};f.Jd=function(){return this.I};function qU(a,b,c,d,e){pU.call(this,a,b,c,d,e);this.yb=-2;this.j=null;new Yk(this);this.M=this.F=ca;this.N=[];this.oa=!0;this.U=[];this.C=!1}x(qU,pU);function rU(a,b){a.j=b;null!=a.g&&null!=b&&(sU(a,a.F),tU(a,a.M))}function sU(a,b){null!=a.j&&null!=a.g&&B(a.N,function(a){this.j.Ga(a,"click",this.F);A(this.Jd())||this.j.listen(a,"click",b)},a);a.F=b}function tU(a,b){null!=a.j&&null!=a.g&&(a.j.Ga(a.g,"creativeview",a.M),a.j.listen(a.g,"creativeview",b));a.M=b} 
function uU(a){B(a.U,function(a){ed(Mc(a))},a);a.U=[]}qU.prototype.o=function(a){null==this.j||A(this.Jd())||(this.j.listen(a,"click",this.F),this.N.push(a))};qU.prototype.td=function(){null==this.g&&(this.g=this.Qh(),bd(this.g,vU(this)));null!=this.j&&this.j.listen(this.g,"creativeview",this.M);return this.g}; 
function wU(a,b){var c=a.va,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.yd()+"px");A(c)||(d.id=c);return I("div",d,b)}qU.prototype.Vs=function(){return 2}; 
function vU(a){if(!a.oa)return null;var b=hU(a,"start");wb(b,hU(a,"creativeview"));if(null!=b&&!E(b)){var c=[];B(b,function(a){if(!A(a)){var b;b=Jc().oC("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});Jf(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",VO(a.b));b.setAttribute("id",g);this.U.push(g);qb(c,b)}},a);return c}return null} 
function xU(a,b){if(null!=a.g){var c=new Ed;B(a.N,function(a){c.set(a,this.Vs(a))},a);new nU(b,a.g,c)}};function zR(a,b,c,d,e,g,h,k,l,p,r,u,t,z,y,N){T.call(this);this.P=a;this.D=b;this.N=c;this.Da=d;this.T=new Yk(this);this.T.listen(UR(),"viewable_impression",this.Ku);this.oa=isNaN(h)||""==h||0==h?-1:h;this.F=k?vb(k):[];this.ka=l?vb(l):[];this.k=p?vb(p):[];this.O=r?vb(r):[];this.o=[];B(this.O,function(a){wb(this.o,vb(a.b))},this);this.fa=!0;this.b=this.g=null;this.A=new Ed(u);this.I=null!=N;this.wa=(this.B=null!=t)?z||!1:!1;this.xa=this.Lu?y||!1:!1;this.Aa=za(t);this.Ca=za(N);this.ta=this.j=null;this.C= 
new eU;this.aa=new G(0,0);UR();this.V=String(Math.floor(1E9*Math.random()));this.M=this.L=this.ca=null;B(ub(this.k,this.o),function(a){a.Hg(this)},this);PP.b&&yU(this)&&(this.o=hb(this.o,function(a){return 60>=a.getHeight()}))}x(zR,T);function zU(a){var b;b=AU(a)?BU(a)?"2_1":"2_2":"2";return(CU(a,KO)||CU(a,LO)?1:CU(a,JO)?2:0)+"_"+b}function DU(a){return null!=a.D?a.D:""}function EU(a){return null!=a.b?ub(EU(a.b),a.F):a.F}function FU(a){return null!=a.b?ub(FU(a.b),a.ka):a.ka}f=zR.prototype; 
f.getContentType=function(){var a=this.getSelectedCreative(),b="";if(null===a)return b;if(a instanceof lU)a=a.ma,null===a||(b=za(a.b));else if(a instanceof qU)switch(a.P){case "IFrame":case "Html":case "Static":b=za(a.O)}return b};function IR(a){return null!=a.b?ub(a.o,IR(a.b)):a.o}function GU(a){return null!=a.g?a.g.T:""}f.getExtension=function(a){return this.A.get(a)};function HU(a,b){a.g=b;a.aa=null!=a.g&&a.g instanceof qU?a.g.he():new G(0,0)}f.getSelectedCreative=function(){return this.g}; 
f.Ku=function(a){a.j.queryId==this.V&&this.S(new DO("viewable_impression",this,a.j))};function IU(a){return null!=a.P?a.P:""}function JU(a){if(null==a.b)return[];var b=[IU(a.b)];wb(b,JU(a.b));return b}function KU(a){var b=JU(a).reverse();b.push(IU(a));return b}function LU(a){if(null==a.b)return[];var b=[DU(a.b)];wb(b,LU(a.b));return b}function MU(a){var b=LU(a).reverse();b.push(DU(a));return b}function HR(a){if(null==a.b)return[a.N];var b=HR(a.b);b.push(a.N);return b} 
function NU(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.g?a.g:-1}function OU(a){if(-1!=a.oa)return a.oa;a=a.getExtension("pod");return null!=a&&-1!=a.g?a.g:-1}function PR(a,b){return b||null==a.b?a.O:ub(a.O,PR(a.b))}function PU(a,b){return jb(a.k,function(a){return a instanceof lU&&"linear"==b||a instanceof qU&&"nonlinear"==b?!0:!1})}function yU(a){return QU(a)?"video"==a.Da:PU(a,"linear")}function AU(a){return null!=RU(a)} 
function RU(a){if(OT(919139)||OT(919140))return new yS(0,!1);var b=new yS(5,!1),c=SU(a);if("implicit"==c)return b;a=a.getSelectedCreative();var d=null;null!=a&&a instanceof lU&&(d=a.j);null!=d||"explicit"!=c||(d=b);return null!=d&&PP.b?b:d} 
function SU(a){if(null!=lb(a.A.Sa(),function(a){return!E(OS(a,"skip"))}))return"implicit";var b=a.A.get("DFP");if(b instanceof VS)switch(b.g){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.getSelectedCreative();return null==a||(a=a.gg,null==a||E(ES(a,"skip")))?"none":"explicit"}function TU(a){return null!=a.j&&(aU(a.j)||bU(a.j)||cU(a.j))} 
function BU(a){if(null==a.D||null==a.j)return!1;if(TU(a)&&(QU(a)||UU(a))||a.b&&a.b.I&&TU(a.b))return!0;a=CU(a,["ADSENSE/ADX"])||a.b&&CU(a,JO);return PP.b&&!a}f.Lu=function(){return this.B};function VU(a){return null===a.g?null:a.g.Jd()}function WU(a){return null==a.g||a.g instanceof qU?-1:a.g.fa}function XU(a){return null===a.g?null:a.g.Wn()}function QU(a){return YU(a,JO)}f.getHeight=function(){return this.aa.height};function ZU(a){return a.ca} 
function UU(a){if(!YU(a,LO))return!1;a=a.A.get("DFP");return null!=a?"InstreamSelect"==a.g:!1}f.toString=function(){return"Ad: "+this.P};function YU(a,b){return null!=a.D?D(b,a.N):!1}function CU(a,b){for(var c=HR(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(D(b,c[d]))return!0;break}return!1}f.J=function(){null!=this.T&&this.T.dispose();zR.G.J.call(this)};function $U(a,b){this.b=a;this.g=b};function aV(a,b,c){this.b=a;this.g=b;this.j=c}aV.prototype.getContent=function(){return this.b.getContent()};aV.prototype.getContentType=function(){return this.b.getContentType()};aV.prototype.getHeight=function(){return this.b.getHeight()};function QR(a){a=a.b.getAd().getSelectedCreative();return null!=a?a.b:NaN}aV.prototype.Hg=function(a){this.b.Hg(a);B(this.g,function(b){b.Hg(a)},this)};function bV(a,b,c){this.g=a;this.b=b;this.j=c}bV.prototype.getContentType=function(){return null!=this.b?IO[this.b]||"Other":null};qc&&Bc(8);function cV(){};var dV={},eV={},fV={};function gV(){throw Error("Do not instantiate directly");}gV.prototype.ye=null;gV.prototype.getContent=function(){return this.content};gV.prototype.toString=function(){return this.content};function hV(a,b){var c=Jc().createElement("DIV"),d=iV(a(b||jV,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function iV(a){if(!la(a))return String(a);if(a instanceof gV){if(a.$c===dV)return a.getContent();if(a.$c===fV)return Da(a.getContent())}return"zSoyz"}var jV={};function kV(a){if(null!=a)switch(a.ye){case 1:return 1;case -1:return-1;case 0:return 0}return null}function lV(){gV.call(this)}x(lV,gV);lV.prototype.$c=dV;function mV(a){return null!=a&&a.$c===dV?a:a instanceof Nx?nV(Px(a),a.Lh()):nV(Da(String(String(a))),kV(a))}function oV(){gV.call(this)}x(oV,gV);oV.prototype.$c={};oV.prototype.ye=1;function pV(){gV.call(this)}x(pV,gV);pV.prototype.$c={};function qV(){gV.call(this)}x(qV,gV);qV.prototype.$c=eV;qV.prototype.ye=1;function rV(){gV.call(this)} 
x(rV,gV);rV.prototype.$c={};rV.prototype.ye=1;function sV(){gV.call(this)}x(sV,gV);sV.prototype.$c={};sV.prototype.ye=1;function tV(a,b){this.content=String(a);this.ye=null!=b?b:null}x(tV,gV);tV.prototype.$c=fV;function uV(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){var e=new b(String(a));void 0!==d&&(e.ye=d);return e}}function vV(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}}var nV=uV(lV);vV(oV);uV(pV);vV(qV); 
var wV=vV(rV);vV(sV);(function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){var e=String(a);if(!e)return"";e=new b(e);void 0!==d&&(e.ye=d);return e}})(lV);var xV=/['()]/g;function yV(a){return"%"+a.charCodeAt(0).toString(16)}function zV(a){if(null!=a&&a.$c===eV)return String(a).replace(AV,BV);if(a instanceof Kx)return a=Mx(a),String(a).replace(AV,BV);a=Ba(String(a));xV.lastIndex=0;return xV.test(a)?a.replace(xV,yV):a}var CV={}; 
function DV(a){CV[1]||(CV[1]=new cV);var b=kV(a);if(null==b){var c=b=0,d=!1;a=ux(a+"",null!=a&&a.$c===dV).split(Ax);for(var e=0;e<a.length;e++){var g=a[e];xx.test(ux(g,void 0))?(b++,c++):yx.test(g)?d=!0:wx.test(ux(g,void 0))?c++:Bx.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return wV(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")} 
var EV={"":"%00","":"%01","":"%02","":"%03","":"%04","":"%05","":"%06","":"%07","":"%08","	":"%09","
":"%0A","":"%0B","":"%0C","
":"%0D","":"%0E","":"%0F","":"%10","":"%11","":"%12","":"%13","":"%14","":"%15","":"%16","":"%17","":"%18","":"%19","":"%1A","":"%1B","":"%1C","":"%1D","":"%1E","":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28", 
")":"%29","<":"%3C",">":"%3E","\":"%5C","{":"%7B","}":"%7D","":"%7F","":"%C2%85","":"%C2%A0","":"%E2%80%A8","":"%E2%80%A9","":"%EF%BC%81","":"%EF%BC%83","":"%EF%BC%84","":"%EF%BC%86","":"%EF%BC%87","":"%EF%BC%88","":"%EF%BC%89","":"%EF%BC%8A","":"%EF%BC%8B","":"%EF%BC%8C","":"%EF%BC%8F","":"%EF%BC%9A","":"%EF%BC%9B","":"%EF%BC%9D","":"%EF%BC%9F","":"%EF%BC%A0","":"%EF%BC%BB", 
"":"%EF%BC%BD"};function BV(a){return EV[a]}var AV=/[- "'-)<>\{}-]/g;function FV(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+mV(a.Ld)+'"><img src="'+mV(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+mV(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+mV(a.Ld)+'" target="_blank" dir='+mV(a.dir)+">"+mV(a.title)+'</a><div class="text-description" dir='+mV(a.dir)+">"+mV(a.text)+"</div>"+(a.Kr?'<a target="_blank" href="'+ 
mV(a.Ld)+'" class="text-ad-channel">'+mV(a.Kr)+"</a>":"")+"</div></div>"} 
function GV(a){return'<div class="flash-container '+(a.cg?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+mV(a.Ld)+'"></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="'+mV(a.width)+'" height="'+mV(a.height)+'"><param name="movie" value="'+mV(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+zV(a.Ld)+ 
'"><embed width="'+mV(a.width)+'" height="'+mV(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+mV(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+zV(a.Ld)+'"></object></div>'}function HV(a){return'<div class="image-container" id="'+mV(a.id)+'" style="width:'+mV(a.width)+";height:"+mV(a.height)+'"><a target="_blank" href="'+mV(a.Ld)+'"><img src="'+mV(a.url)+'" border="0"></a></div>'};function IV(a,b,c,d){qU.call(this,a,b,"Static",c,d);this.ls=!1}x(IV,qU);IV.prototype.Qh=function(){var a=this.B,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:VO(za(this.k)),width:this.yd(),height:this.getHeight(),Ld:this.Jd(),cg:this.ls||!a},a=hV(GV,a);a.style.width=this.yd()+"px";a.style.height=this.getHeight()+"px";a.id=this.va;B(a.getElementsByTagName("object"),this.o,this);B(a.getElementsByTagName("a"),this.o,this);return a};function JV(a,b,c,d){qU.call(this,a,b,"Html",c,d)}x(JV,qU);JV.prototype.Qh=function(){var a=I("div");a.innerHTML=this.k;this.o(a);return wU(this,a)};function KV(a,b,c,d){qU.call(this,a,b,"Static",c,d)}x(KV,qU);KV.prototype.getContent=function(){var a=KV.G.getContent.call(this);this.C&&(a=a.replace('<img src=""','<img src="'+VO(za(this.k))+'"'));return a};KV.prototype.Qh=function(){var a="";this.C||(a=VO(za(this.k)));a={id:this.va,url:a,Ld:this.Jd(),width:this.yd()+"px",height:this.getHeight()+"px"};a=hV(HV,a);B(a.getElementsByTagName("a"),this.o,this);return a};function LV(a){a=a.className;return s(a)&&a.match(/\S+/g)||[]}function MV(a,b){for(var c=LV(a),d=yb(arguments,1),e=c,g=0;g<d.length;g++)D(e,d[g])||e.push(d[g]);c=c.join(" ");a.className=c}function NV(a,b){var c=LV(a),d=yb(arguments,1),c=OV(c,d).join(" ");a.className=c}function OV(a,b){return hb(a,function(a){return!D(b,a)})}function PV(a,b,c){c?MV(a,b):NV(a,b)};function QV(a,b){qU.call(this,a,b,"Static","text","")}x(QV,qU);f=QV.prototype;f.he=function(){return new G(this.yd(),this.getHeight())};f.getHeight=function(){return 63};f.yd=function(){return null!=this.A?dg(this.A).width:0};f.Vs=function(a){return D(LV(a),"text-image")?9:D(LV(a),"text-ad-channel")?1:0}; 
f.Qh=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.j,e="rtl";null!=d&&(e=vx.test(ux(d,void 0))?"rtl":"ltr");d={title:d,text:c.k+" "+c.o,dir:e,Ld:this.Jd()};if(c=c.g)d.image=VO(c),a=lb(a.k,function(a){return a instanceof lU}),null!=a&&(d.duration=sS(a.fa));b.j&&(d.Kr=b.j);this.A=hV(FV,d);B(this.A.getElementsByTagName("a"),this.o,this);this.A.id=this.va;this.A.style.height=this.getHeight()+"px";return this.A};function RV(a,b,c,d,e){qU.call(this,a,b,c,d,e)}x(RV,qU);RV.prototype.Qh=function(){var a=za(this.k);A(this.Jd())||(a=new J(a),K(a,"clickTAG",Ba(this.Jd())),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.yd());b.setAttribute("src",VO(a));this.o(b);return wU(this,b)};function SV(a,b,c){var d=TV(c);c=d.g;var e=d.b,d=d.j;switch(c){case "Html":return new JV(a,b,e,d);case "Static":switch(IO[e]){case "Image":return new KV(a,b,e,d);case "Flash":return new IV(a,b,e,d);case "Text":return new QV(a,b)}}return new RV(a,b,c,e,d)} 
function TV(a){var b=lb(a,function(a){return"Static"==a.g&&"Flash"==IO[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"==IO[a.b]}),g=lb(a,function(a){return"Static"==a.g&&"Text"==IO[a.b]});return zT&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function UV(a,b,c,d,e){var g=TV(e),h=SV(a.id,a.size,[g]);h.C=!0;h.B=a.cn;h.I=b;h.b=c;d&&(h.gg=d);rb(e,g);var k=[];B(e,function(e){e=SV(a.id,a.size,[e]);e.C=!0;e.B=a.cn;e.I=b;e.b=c;d&&(e.gg=d);k.push(new aV(e,[],a.ir))});return new aV(h,k,a.ir)};function VV(){};function WV(a,b,c,d){a=SV("icon",a,d);a.B=b;a.I=c.fC;return new VV};function XV(a){this.k=a;this.logger=null}x(XV,$R); 
XV.prototype.b={xA:"Ad",hn:"AdParameters",mB:"AdSystem",nB:"AdTitle",HF:"Advertiser",qC:"AltText",AB:"ClickThrough",BB:"ClickTracking",JB:"Companion",EB:"CompanionAds",rC:"CompanionClickThrough",sC:"CompanionClickTracking",FB:"Creative",vH:"CreativeExtensions",pB:"Creatives",CB:"CustomClick",qB:"Description",un:"Duration",ERROR:"Error",IB:"Extension",rB:"Extensions",Fj:"HTMLResource",FC:"Icon",iB:"Icons",cB:"IconClicks",DC:"IconClickThrough",EC:"IconClickTracking",dB:"IconViewTracking",Gj:"IFrameResource", 
Sr:"Impression",NI:"InLine",LINEAR:"Linear",yB:"MediaFile",jB:"MediaFiles",yC:"NonLinear",GB:"NonLinearAds",FA:"NonLinearClickThrough",GA:"NonLinearClickTracking",IJ:"Pricing",Hj:"StaticResource",xn:"Survey",CK:"Tracking",vn:"TrackingEvents",LK:"VAST",tB:"VASTAdTagURI",lB:"VideoClicks",uB:"Wrapper"}; 
XV.prototype.g={UC:"adSlotID",oB:"allowMultipleAds",Ej:"apiFramework",vB:"bitrate",DB:"creativeType",wB:"delivery",un:"duration",mI:"event",sB:"followAdditionalWrappers",VC:"expandedHeight",WC:"expandedWidth",rn:"height",en:"id",DA:"maintainAspectRatio",xB:"maxBitrate",zB:"minBitrate",EA:"minSuggestedDuration",eB:"offset",fB:"program",KB:"required",HA:"scalable",lr:"sequence",kB:"skipoffset",Ur:"type",VERSION:"version",tn:"width",gB:"xPosition",hB:"yPosition"}; 
function YV(a){if(null==a)return!1;a=hd(a);return null!=a&&"VAST"==a.nodeName}function ZV(a){var b=[];fS(hd(a.k),a.b.xA,function(a){var d;d=$V(a);if(null==d)throw aS(a);var e=a.getAttribute(this.g.en);a=Number(a.getAttribute(this.g.lr));d=aW(this,d,e||null,a||0);null!=d&&b.push(d)},a);return b}XV.prototype.j=function(){return new jS(this.k,ZV(this),null)};function $V(a){var b=null;B(gd(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw aS(a);}});return b} 
function aW(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],r=new Ed,u,t=b.nodeName==a.b.uB,z=t,y=t,N;B(gd(b),function(a){switch(a.nodeName){case this.b.tB:if(t){if(null!=u)throw bS(a);u=eS(a);N=LS(u);z=iS(b.getAttribute(this.g.oB),z);y=iS(b.getAttribute(this.g.sB),y)}else throw aS(a);break;case this.b.mB:e=eS(a);break;case this.b.nB:g=eS(a);break;case this.b.qB:eS(a);break;case this.b.xn:eS(a);break;case this.b.Sr:a=eS(a);JS(a)&&h.push(vS(a));break;case this.b.ERROR:a=eS(a);k.push(vS(a));break;case this.b.pB:a= 
bW(this,a);l=a.bB;p=a.aB;break;case this.b.rB:r=cW(this,a,N)}},a);return new zR(za(c),e,dW(e),g,0,0,d,k,h,l,p,r,u,z,y,eW(r))}function eW(a){var b=null;a=a.get("AdSense");null!=a&&(a=OS(a,"vast2tracking"),null!=a&&!E(a)&&(b=a[0]));return b}function dW(a){if(A(a))return"UNKNOWN";a=a.toUpperCase();switch(a){case "ADSENSE":case "ADSENSE/ADX":case "DART":case "DART_DFP":case "DART_DFA":case "GDFP":case "402":return a;default:return"UNKNOWN"}} 
function fW(a){if(A(a))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}} 
function cW(a,b,c){var d=new Ed;try{var e=cS(b,a.b.IB);B(e,function(a){var b=a.getAttribute(this.g.Ur);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new jT).parse(a);break;case "pod":a=(new hT).parse(a);break;case "waterfall":a=(new lT).parse(a);break;case "dart":a=(new WS).parse(a);break;case "dfp":b="DFP";a=(new XS).parse(a);break;case "adsense":b="AdSense";a=(new US).parse(a);break;case "textad":b="TextAd";a=(new fT).parse(a);break;case "templatead":b="TemplateAd";a=(new cT).parse(a);break; 
case "infocards":b="InfoCards";a=(new $S).parse(a);break;case c:b="LocalRedirect";if(null!=a){var e=null;a=cS(a,"AdXml");1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+AD(hd(a[0])));a=new aT(e)}else a=null;break;default:e=new YS,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(NS(e,a.b),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d} 
function bW(a,b){var c=[],d=[];fS(b,a.b.FB,function(a){var b=a.getAttribute(this.g.lr),h;A(b)||(h=parseFloat(b));var k=!1;B(gd(a),function(a){switch(a.nodeName){case this.b.LINEAR:if(k)throw bS(a);a=gW(this,a,isNaN(h)?0:h);wb(c,a);k=!0;break;case this.b.EB:if(k)throw bS(a);a=hW(this,a,isNaN(h)?void 0:h);wb(d,a);k=!0;break;case this.b.GB:if(k)throw bS(a);a=iW(this,a,isNaN(h)?0:h);wb(c,a);k=!0}},this)},a);return{bB:c,aB:d}} 
function iW(a,b,c){var d=[],e=new AS;B(gd(b),function(a){switch(a.nodeName){case this.b.yC:a=jW(this,a,c);null!=a&&d.push(a);break;case this.b.vn:e=IS(a);break;default:throw aS(a);}},a);0!=d.length||e.isEmpty()||(a=new qU(null,new G(-1,-1),"",null,""),a.b=c,d.push(a));B(d,function(a){e&&(a.gg=e)});return d} 
function kW(a,b){var c={};c.id=b.getAttribute(a.g.en);c.ir=b.getAttribute(a.g.UC);c.cn=b.getAttribute(a.g.Ej);var d=$a(b.getAttribute(a.g.tn)),e=$a(b.getAttribute(a.g.rn));c.size=new G(d,e);d=b.getAttribute(a.g.WC);e=b.getAttribute(a.g.VC);A(d)||A(e)||(c.yF=new G($a(d),$a(e)));return c} 
function jW(a,b,c){var d=kW(a,b);b.getAttribute(a.g.Ej);b.getAttribute(a.g.HA);b.getAttribute(a.g.DA);var e=b.getAttribute(a.g.EA),e=hS(e,-1),g=[];new Ed;var h={},k="",l;B(gd(b),function(a){switch(a.nodeName){case this.b.GA:break;case this.b.FA:l=eS(a);break;case this.b.hn:h=lW(a);k=za(eS(a));break;case this.b.Gj:case this.b.Hj:case this.b.Fj:g.push(mW(this,a));break;default:throw aS(a);}},a);if(E(g))return null;a=SV(d.id,d.size,g);gU(a,k,h);a.B=d.cn;a.I=l;a.yb=e;a.b=c;return a} 
function mW(a,b){var c=dS(b,a.g.DB),d;t:switch(d=b.nodeName,d){case a.b.Hj:d="Static";break t;case a.b.Gj:d="IFrame";break t;case a.b.Fj:d="Html";break t;default:throw JP(CP,null,d);}var e=eS(b);null!=e||(e="");return new bV(d,c,e)}function hW(a,b,c){var d=[],e=fW(dS(b,a.g.KB));fS(b,a.b.JB,function(a){a=nW(this,a,c);null!=a&&d.push(a)},a);return new $U(d,e)} 
function nW(a,b,c){var d=kW(a,b),e=[],g=new AS,h;B(gd(b),function(a){switch(a.nodeName){case this.b.sC:break;case this.b.vn:g=IS(a,!0);break;case this.b.rC:h=eS(a);break;case this.b.qC:eS(a);break;case this.b.hn:eS(a);break;case this.b.Gj:case this.b.Hj:case this.b.Fj:e.push(mW(this,a));break;default:throw aS(a);}},a);return E(e)?null:UV(d,h,c,g,e)} 
function gW(a,b,c){var d=new AS,e={},g="",h=[],k,l=new Ed,p=[],r,u=KS(dS(b,a.g.kB));B(gd(b),function(a){switch(a.nodeName){case this.b.iB:oW(this,a);break;case this.b.hn:e=lW(a);g=za(eS(a));break;case this.b.un:r=hS(eS(a),0);break;case this.b.vn:d=IS(a);break;case this.b.jB:p=pW(this,a);break;case this.b.lB:a=qW(this,a);l=a.$A;k=a.YA;h=a.ZA;break;default:throw aS(a);}},a);B(h,function(a){FS(d,"click",a)});a=new lU(r,k,l,p,u);gU(a,g,e);a.b=c;d&&(a.gg=d);return a} 
function qW(a,b){var c,d=[],e=new Ed;B(gd(b),function(a){switch(a.nodeName){case this.b.AB:c=eS(a);break;case this.b.BB:a=eS(a);d.push(a);break;case this.b.CB:var b=dS(a,this.g.en);null!=b||(b="");var k=e.get(b,[]);k.push(eS(a));e.set(b,k);break;default:throw aS(a);}},a);return{YA:c,ZA:d,$A:e}} 
function pW(a,b){var c=[];fS(b,a.b.yB,function(a){var b=dS(a,this.g.wB),g=dS(a,this.g.Ur);a.getAttribute(this.g.tn);var h=$a(a.getAttribute(this.g.rn)),k=a.getAttribute(this.g.Ej),l=eS(a),p=gS(a.getAttribute(this.g.vB)),r=gS(a.getAttribute(this.g.zB));a=gS(a.getAttribute(this.g.xB));c.push(new pQ(b,g,p,r,a,0,h,l,k))},a);return c}function oW(a,b){var c=[];fS(b,a.b.FC,function(a){a=rW(this,a);null!=a&&c.push(a)},a)} 
function rW(a,b){dS(b,a.g.fB);dS(b,a.g.gB);dS(b,a.g.hB);var c=$a(b.getAttribute(a.g.tn)),d=$a(b.getAttribute(a.g.rn)),c=new G(c,d),d=b.getAttribute(a.g.Ej);KS(dS(b,a.g.eB));var e=b.getAttribute(a.g.un);hS(e,-1);var g=[],h=[],k;B(gd(b),function(a){switch(a.nodeName){case this.b.dB:h.push(eS(a));break;case this.b.cB:k=sW(this,a);break;case this.b.Gj:case this.b.Hj:case this.b.Fj:g.push(mW(this,a));break;default:throw aS(a);}},a);return E(g)?null:WV(c,d,k,g)} 
function sW(a,b){var c=[],d;B(gd(b),function(a){switch(a.nodeName){case this.b.DC:d=eS(a);break;case this.b.EC:c.push(eS(a));break;default:throw aS(a);}},a);return{fC:d,xF:c}}function lW(a){a=eS(a);return null!=a?tS(a):{}};function tW(a,b){this.g=a;this.b=b}x(tW,$R);tW.prototype.j=function(){return new jS(this.g,null,uW(this))};function vW(a){var b=CD(a);return E(b)?[dS(a,"timeOffset")]:C(b,function(a){return dS(a,"timeOffset")})} 
function uW(a){var b=new nS;B(gd(hd(a.g)),function(a){if("vmap:AdBreak"==a.nodeName){var d=wW(this,a);a=vW(a);B(a,function(a,c){var h=hS(a);0<c&&(d=xW(this,d));if("start"==a||0==h)oS(b,d,0);else if("end"==a)oS(b,d,-1);else{if(-1==h)throw JP(dP,null,"timeOffset",za(a));oS(b,d,h)}},this)}},a);if(0==b.b.La().length)throw JP(jP);return b}function xW(a,b){return C(b,function(a){var b=new lS(a.j.clone());b.b=a.b;b.g=a.g;return b},a)} 
function wW(a,b){var c=[],d="",e=null,g=!1,h=!1;B(gd(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e&&(e=BD(a,"vmap:VASTData/VAST")||BD(a,"vmap:VASTAdData/VAST"),!e)){var b=cS(a,"vmap:AdTagURI"),c="";b.length&&(c=za(eS(b[0])));if(ya(c))throw JP(HP,null,a.parentNode.nodeName,a.nodeName);d=c}break;case "vmap:Extensions":a=cS(a,"vmap:Extension"),a=yW(this,a),null!=a&&(g=!0,a=dS(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=zW(a,e):ya(d)||(k=AW(a,d));k&&(k=new lS(k),k.b= 
g,k.g=g&&!h,qb(c,k));return c}function yW(a,b){return lb(b,function(a){return"bumper"==dS(a,"type")},a)}function AW(a,b){var c=a.b.clone();ya(c.adsResponse)||(c.adsResponse="");c.adTagUrl=b;return c}function zW(a,b){var c=a.b.clone();c.adsResponse=AD(b);c.adTagUrl="";return c};function BW(a,b){if(null!=a){var c;null!=a?(c=hd(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return new pS(a,b);null!=a?(c=hd(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return new tW(a,b);if(YV(a)){if(!YV(a))throw JP(mP);c=hd(a);var d;null==c?d=0:(d=parseInt(c.getAttribute("version"),10),d=ja(d)?d:0);if(1>d||3<d)throw JP(DP);c=cS(c,"Ad");if(E(c))throw JP(rP);c=$V(c[0]);if(null==c)throw JP(uP);if(1!=cS(c,"AdSystem").length)throw JP(uP);return new XV(a)}}return null};function CW(a,b){this.g=a;this.j=b}function DW(a,b){var c=a.j.o;null!=c&&b.set("js","ima-"+c)}function EW(a){PP.k&&a.set("osd",2);var b;t:{try{b=window.top.location.href}catch(c){b=2;break t}b=null!=b?b==window.document.location.href?0:1:2}a.set("frm",b)}function FW(a){return a.k(a.A())}function GW(a){return PP.g?"h.3.0.0":null!=a.j?fR(a.j):null}CW.prototype.o=function(){var a=0;this.g.uh&&(a+=1);YP()&&(a+=4);return a};function HW(){this.b=["video"]}var IW={EK:"ultrahigh",BI:"high",bF:"medium"},JW={KG:1E3,LG:1001,MG:1002,NG:1003,OG:1004,PG:1005,QG:1006},KW={aF:1,WE:2},LW={VE:"content",cK:"site",dK:"site_content"};f=HW.prototype;f.Ui="high";f.Gl=!1;f.Al=1;f.Bl=null;f.Oe="video";f.zl=1;f.Cl=null;f.Hl=null;f.Dl=!0;f.El=null;f.Fl=null;f.Yg=null;f.zc=null;f.Il=null;f.host=null;f.Jl=null;f.Kl=!1;f.Ll=null;f.iq=null;f.hq=null;f.Vi=1E5;f.Xi=null;f.kq=null;f.jq=null;f.Ol=0;f.Rf=null;f.Yi=null;f.bj=null;f.Pl=null;f.Zi=-1; 
f.url=null;f.Wi=null;f.Ml=null;f.Nl=null;f.Tl=null;f.Ql=null;f.Rl=null;f.Sl=null;var MW=(new Date).getTime();var NW={ZE:"flash",IMAGE:"image",gK:"skippablevideo",lK:"standardvideo",oK:"staticimage",TEXT:"text",VIDEO:"video"},OW=["flash","image","staticimage"],PW=[new G(200,200),new G(250,250),new G(300,250),new G(336,280),new G(450,50),new G(468,60),new G(480,70),new G(728,90)]; 
function QW(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 RW(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",MW)} 
function SW(a,b,c){var d=new Ed;d.set("ad_type",b.Oe);zT&&d.set("flash",AT);QW(d,a);TW(b)&&(d.set("ea","0"),null!=a.nonLinearAdSlotWidth&&null!=a.nonLinearAdSlotHeight&&d.set("image_size",UW(b,a.nonLinearAdSlotWidth,a.nonLinearAdSlotHeight)));VW(d,c);d.set("lact",a.lastActivity);d.set("videoad_start_delay",a.youTubeVideoAdStartDelay);RW(d);A(a.b)||WW("ref",a.b,d);return d} 
function XW(a,b){if(null==b)return a;var c=b.split("_");B(c,function(a){if(!Ub(NW,a))throw JP(iP,null,"ad_type",String(b));});if(!YP()){var d=[];B(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw JP(hP,null,"skippablevideo");return d}return c}function YW(a,b){return null!=b?b.split(/[+, ]/):a}function UW(a,b,c){a.k&&(c=Math.min(c,90));var d=[];B(PW,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")} 
function ZW(a,b){return null==b||isNaN(b)?a:Number(b)}function $W(a,b){return null!=b?String(b):null!=a?a:null}function aX(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 bX(a,b,c){return null!=b&&Ub(c,b)?b:a}function TW(a){return jb(OW,function(b){return D(a.b,b)})} 
function VW(a,b){zT?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 WW(a,b,c){null!=b&&c.set(a,b)};function cX(a,b,c){CW.call(this,a,b);b=new HW;a=ue(new J(a.adTagUrl));b.Hl=bX(b.Hl,a.get("cust_age"),JW);b.Ui=bX(b.Ui,a.get("adsafe"),IW);b.b=XW(b.b,a.get("ad_type"));b.Oe=b.b.join("_");b.Al=ZW(b.Al,a.get("videoad_start_delay"));b.Bl=$W(b.Bl,a.get("slotname"));b.Gl=aX(b.Gl,a.get("adtest"));b.Cl=$W(b.Cl,a.get("afi_url"));b.Dl=aX(b.Dl,a.get("scs"));b.El=$W(b.El,a.get("alternate_ad_url"));b.g=YW(b.g,a.get("channel"));b.Fl=ZW(b.Fl,a.get("cpm"));b.Yg=$W(b.Yg,a.get("description_url"));b.zc=$W(b.zc,a.get("eid")); 
b.Il=bX(b.Il,a.get("cust_gender"),KW);b.k=aX(b.k,a.get("overlay"));b.host=$W(b.host,a.get("host"));b.j=YW(b.j,a.get("h_ch"));b.Jl=ZW(b.Jl,a.get("ht_id"));b.Kl=aX(b.Kl,a.get("lsv"));var d;null!=this.g.g?d=this.g.g:(d=oc(),d=OP(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=$W(e,d);var g;null!=d&&!A(d)&&(g=OP(d));b.Ll=$W(b.Ll,g);b.iq=ZW(b.iq,a.get("linearAdSlotWidth"));b.hq=ZW(b.hq,a.get("linearAdSlotHeight"));b.Vi=ZW(b.Vi,a.get("max_ad_duration")); 
b.Ol=ZW(b.Ol,a.get("min_ad_duration"));b.Xi=ZW(b.Xi,a.get("sdmax"));b.kq=ZW(b.kq,a.get("nonLinearAdSlotWidth"));b.jq=ZW(b.jq,a.get("nonLinearAdSlotHeight"));b.Rf=$W(b.Rf,a.get("client"));b.Yi=$W(b.Yi,a.get("t_pyv"));b.bj=ZW(b.bj,a.get("sdki"));b.Zi=ZW(b.Zi,a.get("tfcd"));b.Pl=bX(b.Pl,a.get("targeting"),LW);b.Wi=ZW(b.Wi,a.get("video_format"));b.Ml=ZW(b.Ml,a.get("video_cpm"));b.Nl=$W(b.Nl,a.get("loeid"));b.Tl=$W(b.Tl,a.get("yt_pt"));b.Ql=$W(b.Ql,a.get("ytdevice"));b.Rl=$W(b.Rl,a.get("ytdevicever")); 
b.Sl=$W(b.Sl,a.get("as_dbp"));b.o=$W(b.o,a.get("ms"));b.zl=ZW(b.zl,a.get("adBlock"));b.url=$W(b.url,a.get("url"));this.b=b;this.C=c;A(this.b.zc)||(c=this.b.zc.split(","),NT(LT(),c))}x(cX,CW);var dX=["skippablevideo","standardvideo","video"];cX.prototype.B={Rx:"allow",Sx:"exclude",RJ:"require"};function eX(a){return null!=a.b.g?-1<a.b.g.indexOf("afitc"):!1}cX.prototype.o=function(){var a=cX.G.o.call(this);this.b.bj&&(a+=this.b.bj&2);return a}; 
cX.prototype.k=function(a){var b=new J("//googleads.g.doubleclick.net/pagead/ads"),c=a.La();B(c,function(c){K(b,c,a.get(c))});return b}; 
cX.prototype.A=function(){var a=new Ed;a.set("sdkv",GW(this));a.set("sdki",this.o().toString(16));a.set("video_product_type",null!=this.b.Rf?PP.b?5:eX(this)?7:0==this.b.Rf.lastIndexOf("ca-games-",0)?4:0==this.b.Rf.lastIndexOf("ca-video-",0)?0:-1:-1);a.set("correlator",this.j.b);a.set("client",this.b.Rf);PP.b&&!A(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",fX(this));a.set("channel",gX(this));a.set("ad_type",this.b.Oe);a.set("output","xml_vast2"); 
this.b.Gl&&a.set("adtest","on");zT&&a.set("flash",AT);WW("alternate_ad_url",this.b.El,a);WW("cpm",this.b.Fl,a);QW(a,this.g);PP.b||Ub(IW,this.b.Ui)&&a.set("adsafe",this.b.Ui);this.b.host&&(a.set("host",this.b.host),WW("ht_id",this.b.Jl,a),null!=this.b.j&&WW("h_ch",this.b.j.join("+"),a));WW("hl",this.b.Ll,a);WW("cust_age",this.b.Hl,a);WW("cust_gender",this.b.Il,a);-1!=this.b.Zi&&WW("tfcd",this.b.Zi,a);eX(this)?WW("afi_url",this.b.Cl,a):WW("slotname",this.b.Bl,a);var b=PT(LT());A(b)||a.set("eid",b); 
RW(a);b=this.b.Yg;if(null!=b){var c,d;d=this.j;null==d.j&&(d.j=new aR);d=d.j;eX(this)?c=this.b.zl:(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 bR);c=c.M;var e=b!=this.j.L;(d=0==d.b%100||e)||(d=36E5<(null===c.b?0:(new nN).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.Al;a.set("videoad_start_delay",null!=b?b:1);DW(this,a);EW(a);TW(this.b)&&(a.set("ea","0"),null!= 
this.g.nonLinearAdSlotWidth&&null!=this.g.nonLinearAdSlotHeight&&a.set("image_size",UW(this.b,this.g.nonLinearAdSlotWidth,this.g.nonLinearAdSlotHeight)));hX(this)&&a.set("video_format",null!=this.b.Wi&&PP.b?this.b.Wi:qh&&0<=Va(RP,6)||lh&&0<=Va(RP,4)||mc&&XP(VP,2.3)?43:18);b=null!=this.b.Yi?this.b.Yi:D(this.b.Oe.split("_"),"text")?this.B.Rx:this.B.Sx;a.set("t_pyv",b);WW("min_ad_duration",this.b.Ol,a);0<this.b.Vi&&a.set("max_ad_duration",iX(this.b.Vi,fX(this)));0<this.b.Xi&&a.set("sdmax",iX(this.b.Xi, 
fX(this)));VW(a,this.C);PP.b&&(b=yQ(this.b.Yg),null!=b&&a.set("video_doc_id","yt_"+b));WW("description_url",this.b.Yg,a);PP.b&&(WW("lact",this.g.lastActivity,a),WW("loeid",this.b.Nl,a),WW("lsv",this.b.Kl,a),this.b.Dl||WW("scs","false",a),WW("targeting",this.b.Pl,a),WW("video_cpm",this.b.Ml,a),WW("yt_pt",this.b.Tl,a),WW("ytdevice",this.b.Ql,a),WW("ytdevicever",this.b.Rl,a),WW("as_dbp",this.b.Sl,a));WW("ms",this.b.o,a);b=this.g;A(b.b)||WW("ref",b.b,a);null!=this.g.Pe&&WW("loc",this.g.Pe.page_location, 
a);return a};function hX(a){return jb(dX,function(a){return D(this.b.b,a)},a)}function fX(a){return eX(a)||PP.b?1:D(a.b.Oe.split("_"),"text")?3:1}function gX(a){a=a.b.g?a.b.g:[];zb(a);a=yb(a,0,30);return a.join("+")}function iX(a,b){return Math.round(1.1*(a||0)+0*b)};function jX(){}f=jX.prototype; 
f.clone=function(){var a=new jX;a.adTagUrl=this.adTagUrl;a.Pe=ac(this.Pe);a.adsResponse=this.adsResponse;a.ih=ac(this.ih);a.Vr=this.Vr;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.ij=this.ij; 
a.uh=this.uh;a.youTubeAdType=this.youTubeAdType;a.youTubeExperimentIds=this.youTubeExperimentIds;a.youTubeVideoAdStartDelay=this.youTubeVideoAdStartDelay;return a};f.Pe=null;f.ih=null;f.Vr=!1;f.isYouTube=!1;f.linearAdSlotWidth=0;f.linearAdSlotHeight=0;f.nonLinearAdSlotWidth=0;f.nonLinearAdSlotHeight=0;f.tagForChildDirectedContent=!1;f.ij=!1;f.uh=!0;f.youTubeVideoAdStartDelay=0;function kX(a,b){CW.call(this,a,b)}x(kX,CW);kX.prototype.k=function(a){var b=new J(this.g.adTagUrl);B(a.La(),function(c){ya(a.get(c))?b.b.remove(c):K(b,c,a.get(c))});return b};kX.prototype.A=function(){var a=new Ed;a.set("sdkv",GW(this));EW(a);return a};function lX(a,b){CW.call(this,a,b)}x(lX,CW);lX.prototype.A=function(){return null};lX.prototype.k=function(){var a=new QT(this.g.adTagUrl),b=GW(this);b&&UT(a,"dc_sdkv",[b]);(b=this.o().toString(16))&&UT(a,"dc_sdki",[b]);(b=this.j.B)&&UT(a,"dc_submodel",[b]);b=new Ed;DW(this,b);EW(b);Gd(b,"js")&&UT(a,"dc_js",[b.get("js")]);Gd(b,"msid")&&UT(a,"dc_msid",[b.get("msid")]);Gd(b,"frm")&&UT(a,"dc_frm",[b.get("frm")]);Gd(b,"osd")&&(UT(a,"osd",[b.get("osd")]),UT(a,"dc_osd",[b.get("osd")]));return a};function mX(a){CW.call(this,a,null)}x(mX,CW);mX.prototype.k=function(a){return new J(a.get("adTagUrl"))};mX.prototype.A=function(){var a=new Ed;a.set("adTagUrl",this.g.adTagUrl);a.set("adsResponse",this.g.adsResponse);return a};function nX(a,b){CW.call(this,a,b)}x(nX,CW);nX.prototype.k=function(a){var b=new J(this.g.adTagUrl);B(a.La(),function(c){ya(a.get(c))?b.b.remove(c):K(b,c,a.get(c))});return b}; 
nX.prototype.A=function(){var a=new Ed;a.set("sdkv",GW(this));a.set("sdki",this.o().toString(16));a.set("correlator",this.j.I);a.set("scor",this.j.b);DW(this,a);EW(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,A(c)?c=!1:(c=new J(c),!c.Mb||"http"!=c.Mb&&"https"!=c.Mb?c=!1:(c=c.Fb,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=oX(b),a.set("ciu_szs",b));a.set("impl","");return a};function oX(a){var b=[];B(a,function(a){0<a.length&&b.push(C(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function pX(a,b,c){CW.call(this,a,b);this.C=A(a.youTubeAdType);a=new HW;a.b=XW(a.b,this.g.youTubeAdType);a.Oe=a.b.join("_");a.zc=$W(a.zc,this.g.youTubeExperimentIds);this.b=a;this.B=c;A(this.b.zc)||(c=this.b.zc.split(","),NT(LT(),c))}x(pX,nX);pX.prototype.k=function(a){a=pX.G.k.call(this,a);this.C||qX(this,a);return a};function rX(a){var b=SW(a.g,a.b,a.B);b.set("sdkv",GW(a));b.set("sdki",a.o().toString(16));return b} 
function qX(a,b){var c=rX(a),d=C(c.La(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});ve(b,"afvparams",[Ba(d.join("&"))])};function sX(a,b,c){CW.call(this,a,b);this.C=A(a.youTubeAdType);a=new HW;a.b=XW(a.b,this.g.youTubeAdType);a.Oe=a.b.join("_");a.zc=$W(a.zc,this.g.youTubeExperimentIds);this.b=a;this.B=c;A(this.b.zc)||(c=this.b.zc.split(","),NT(LT(),c))}x(sX,lX);sX.prototype.k=function(a){a=sX.G.k.call(this,a);this.C||tX(this,a);return a};function uX(a){var b=SW(a.g,a.b,a.B);b.set("sdkv",GW(a));b.set("sdki",a.o().toString(16));return b} 
function tX(a,b){var c=uX(a),d=C(c.La(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});UT(b,"afvparams",[Ba(d.join("&"))])};function vX(a,b){return!cU(a)&&!bU(a)||A(a.youTubeAdType)?cU(a)?new lX(a,eR):aU(a)?new cX(a,eR,b):bU(a)?new nX(a,eR):dU(a)?new kX(a,eR):new mX(a):cU(a)?new sX(a,eR,b):new pX(a,eR,b)};function wX(a){a=hb(a,function(a){return 0<OU(a)});Cb(a,function(a,c){return OU(a)-OU(c)});return a}function xX(a){return hb(a,function(a){return-1==OU(a)})};function yX(a){this.b=a};function zX(){}function AX(a,b,c,d,e,g){var h=v(function(a){d(a,Error(el(a)))},a),k=v(function(a){6==a?BX(this,b,!1,c,h,e,g):h(a)},a);BX(a,b,!0,c,k,e,g)} 
function BX(a,b,c,d,e,g,h){var k=new Ol;k.O=c;Rl(k,CX(g));var l=new Yk,p=v(function(){l.dispose();k.dispose()},a);c=v(function(){e(k.g);p()},a);dl(l,k,"success",function(){var a;try{a=k.b?k.b.responseXML:null}catch(b){a=null}if(null==a){var c=tl(k);try{a=yD(c)}catch(e){t:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=zD())){a.appendChild(a.createNode(1,"parsererror","")); 
break t}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);dl(l,k,["error","timeout"],c,a);var r;"POST"==h&&(a=new J(b),r=a.b.toString(),ie(a,""),b=a.toString());k.send(VO(b),h,r)};function DX(a,b,c){var d=null,e=c+b;B(a.k,function(a){var h;if(h=a instanceof qU)0==c&&0==b||a instanceof QV?h=!0:(h=a.he(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-a.he().height+b-a.he().width,"Flash"!=a.getContentType()||zT))if(null==d)d=a,e=h;else if(h==e&&a.b<d.b||h<e)d=a,e=h});HU(a,d)}function EX(a){var b=null;B(a.k,function(a){a instanceof lU&&(null===b||a.b<b.b)&&(b=a)});HU(a,b)};var FX=[202,1009],GX=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"];function HX(a,b,c){var d={};a=new IX(a,n(b)?b:null,n(c)?c:null);JX(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.b?b.b:900;KX(d,a);LX(d,a);MX(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=fb(FX,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d} 
function NX(a,b){var c={},d=new IX(null,a,n(b)?b:null);JX(c,d);KX(c,d);LX(c,d);MX(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.Pe&&null!=e.Pe.video_start_delay?(e=e.Pe.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.C,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)))}OX(c,d);return c} 
function IX(a,b,c){this.error=a;this.b=b;this.display=c}function JX(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.Kj():""}}}function KX(a,b){a["[SDKV]"]="h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";null!=b.b&&(a["[VIEWABILITY]"]={toString:function(){var a=UR();return VR(a,"metric",b.b.V)}});a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}} 
function LX(a,b){if(null!=b.b&&null!=b.b.j&&null!=b.b.j.ih&&PP.b){var c=b.b.j.ih;B(GX,function(b){b in c&&(a[b]=c[b])})}} 
function MX(a,b){if(null!=b.b){a["[AD_ID]"]=KU(b.b);a["[AD_SYS]"]=MU(b.b);a["[AD_V]"]={toString:function(){return null!=b.display?yQ(b.display.Kj()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=zU(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 OX(a,b){null!=b.b&&(a["[AD_LEN]"]={toString:function(){var a=WU(b.b);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.ie()).toString():""}})};function PX(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}PX.prototype.Fd=function(){return null!=this.b&&this.b.Fd()?!0:0<this.g.length&&this.j<this.g.length-1};function QX(a,b,c){null!=a.b?RX(a,b,c):a.Fd()?SX(a,b,v(function(a){this.Fd()&&301!=a.getErrorCode()?QX(this,b,c):c(a)},a)):c(new AO("adLoadError","The ad source contains no more ads.",1005))} 
PX.prototype.I=function(a,b){return this.A?0<a.length?a:b:yb(b,0,1)};PX.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;QU(a)&&!a.B?PU(a,"nonlinear")?DX(a,d,e):EX(a):PU(a,"linear")?EX(a):PU(a,"nonlinear")&&DX(a,d,e);d=null!=a.getSelectedCreative()}d?(this.C++,b(a)):(b=E(a.k)?JP(uP):yU(a)?JP(pP):JP(xP),d=HX(b,a),$O(a.F,d),c(b))}; 
PX.prototype.D=function(a,b,c){var d=this.B.clone();d.adsResponse="";d.adTagUrl=a.Aa;TX(this,a,d,b,c)};function UX(a,b,c,d){var e=a.B.clone();e.adsResponse="";e.adTagUrl=b.Ca;TX(a,b,e,c,d)} 
function TX(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.g,null!=g&&(c.adsResponse=g));a.N.g(c,v(function(a){if(a instanceof PX){var c=this.A&&b.wa,g=b.xa,p;for(p in a.g){var r=a.g[p],u=b;if(!PP.b&&u&&QU(r)){var t={loc:document.URL,ref:document.referrer,skippable:AU(r)};try{$P(ZP.getInstance(),23,t,!0)}catch(z){}}r.b=u}a.A=c;a.g=a.I(a.o,a.F);a.j=-1;a.M=g;d(a)}else a instanceof yX?e(new AO("adLoadError","Ad source cannot contain playlist response.",2)):e(new AO("adLoadError","Unknown ad source.", 
2))},a),e)}function VX(a){var b=0;for(a=a.b;null!=a;)a=a.b,b++;return b}function RX(a,b,c){a.b.Fd()?QX(a.b,v(function(a){this.k(a,b,v(function(a){this.Fd()?QX(this,b,c):c(a)},this))},a),v(function(a){WX(this.g[this.j],a);this.b=null;301==a.getErrorCode()?c(a):this.Fd()?QX(this,b,c):c(a)},a)):(0==a.b.C&&WX(a.g[a.j],JP(FP)),a.b=null,QX(a,b,c))}function WX(a,b){1012==b.getErrorCode()&&(b=JP(wP));var c=HX(b,a);$O(a.F,c)} 
function SX(a,b,c){a.j++;var d=a.g[a.j];d.B||d.I?d.I?UX(a,d,v(function(a){this.b=a;QX(this,b,c)},a),v(function(a){a=XX(a);WX(d,a);c(a)},a)):4<=VX(d)?(a=JP(yP,null,"4"),WX(d,a),c(a)):a.M?a.D(d,v(function(a){this.b=a;QX(this,b,c)},a),v(function(a){a=XX(a);WX(d,a);c(a)},a)):c(JP(EP)):a.k(d,b,c)}function XX(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=JP(FP)}return a};function YX(a,b,c,d){PX.call(this,[],a,b,c);this.L=d}x(YX,PX);YX.prototype.Fd=function(){return null!=this.b&&this.b.Fd()?!0:0<this.g.length&&this.j<this.g.length-1&&0==this.C};YX.prototype.I=function(a,b){return b};YX.prototype.k=function(a,b,c){var d=-1,d=null==this.b?NU(a):NU(this.g[this.j]);this.L.g=d;YX.G.k.call(this,a,b,c)};YX.prototype.D=function(a,b,c){this.L.g=-1;YX.G.D.call(this,a,b,c)};function ZX(a,b,c,d,e){this.k=a;this.o=b;this.j=c;this.b=d;this.qb=e}ZX.prototype.g=function(a,b,c){A(a.adsResponse)?bU(a)&&null!=this.b&&!this.b.B?this.b.start(a,v(function(){$X(this,a,b,c)},this)):$X(this,a,b,c):aY(this,a,b,c)};function aY(a,b,c,d){var e;try{e=yD(b.adsResponse)}catch(g){d(JP(mP,g));return}null!=e?bY(a,e,b,c,d):d(JP(mP))} 
function $X(a,b,c,d){var e=FW(vX(b,a.j)).toString(),g=b.ij&&TO(RO,e)?"POST":"GET";AX(a.o,e,v(function(a){bY(this,a,b,c,d)},a),v(function(a,c){var e;e=8==a?JP(tP):5==a||6==a?JP(cP):JP(gP,c);d(e);e="third_party";aU(b)?e="adsense":cU(b)?e="dart":bU(b)&&(e="xfp");e={rt:e,ec:a};$P(ZP.getInstance(),18,e,!0)},a),a.qb,g);cY(b)}function cY(a){var b="third_party";aU(a)?b="adsense":cU(a)?b="dart":bU(a)?b="xfp":dU(a)&&(b="dbm");a={rt:b};$P(ZP.getInstance(),17,a,!0)} 
function bY(a,b,c,d,e){var g;try{var h=BW(b,c);if(!h)throw JP(mP);g=h.j();dY(a,g,c,d)}catch(k){k instanceof AO?e(k):e(JP(nP,k))}}function dY(a,b,c,d){var e=b.b;if(null!=e)d(new yX(e));else{var g=b.j;if(null==g)throw JP(rP);B(g,function(a){a.j=c;PP.b&&(a.ta=b.g)});e=wX(g);g=xX(g);0<g.length&&0<=NU(g[0])?d(new YX(g,c,a,a.k)):d(new PX(e,g,c,a))}};function eY(a){this.b=a+w()}eY.prototype.reset=function(a){this.b=a+w()};function CX(a){var b=w();a=a.b-b;return 0<a?a:0};function fY(a,b){this.b=a;this.g=b;PP.k&&UR().init()}function gY(a,b,c,d){var e=null;null!=a.b&&(e=new WR(1E3,a.b,a.g));(new ZX(a.g,new zX,a.b,e,new eY(8E3))).g(b,v(function(a){a instanceof yX?c(a):hY(this,a,c,d)},a),d)}function hY(a,b,c,d){var e=[],g=v(function(a,b){a.Fd()?QX(a,v(function(b){e.push(b);g(a,null)},this),v(function(b){301==b.getErrorCode()?d(JP(tP)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=JP(jP)),1012==b.getErrorCode()&&(b=JP(wP)),d(b))},a);g(b,null)};function iY(a){this.g=a;this.b=new xm}function jY(a,b,c,d){var e=v(function(a){c(a);Am(this.b);kY(this)},a),g=v(function(a){d(a);Am(this.b);kY(this)},a);zm(a.b,v(function(){gY(this.g,b,e,g)},a));kY(a)}function kY(a){1==a.b.Pa()?(a=a.b,ym(a),a=db(a.b),null!=a&&a()):a.b.Pa()};function lY(a,b,c){T.call(this);this.g=new iY(new fY(b,c));this.b=b;this.Je=!0}x(lY,T);function mY(a,b,c){if(a.Je){var d=null!=c?c:{};jY(a.g,b,v(function(a){nY(this,a,d)},a),v(function(a){oY(this,a,d)},a))}}function pY(a,b,c){if(!a.Je){var d=null!=c?c:{};jY(a.g,b,v(function(a){nY(this,a,d)},a),v(function(a){oY(this,a,d)},a))}} 
function nY(a,b,c){if(a.Je)b instanceof yX?(b=new qY(b.b,a),b.D=a.b,a.S(new rY(b,c))):(b=sY(b),b.D=a.b,null!=b?a.S(new rY(b,c)):oY(a,JP(pP,null),c));else if(b instanceof yX)oY(a,JP(bP,null,"Unsupported ad format."),c);else{var d=new RR("adsLoaderSdkAdLoaded");d.o=b;d.k=c;a.S(d)}}function oY(a,b,c){a.Je?("always"==PP.j&&null!=a.b&&BR(a.b,yR()),a.S(new BO(b,c))):(c=new RR("adsLoaderSdkAdError"),c.j=b,a.S(c))};var tY={NORMAL:"normal",FULLSCREEN:"fullscreen"};function uY(){return'<div class="close-padding"><div class="close-button"></div></div>'}function vY(a){return'<div class="recall-button '+(a.CD?"auto-hide":"")+'"></div>'}function wY(a){return'<a target="_blank" href="'+mV(a.url)+'" class="attribution-button">'+mV(a.text)+"</a>"};function xY(a,b){this.A=a;this.b=I("div",{"class":"controls"});this.O=b||ca;this.Xc=new Yk(this)}x(xY,Mh);f=xY.prototype;f.Ed=!1;f.bs=1E3;f.Er=30;f.nr=45E3;f.or=15E3;f.Xs=!1;function yY(a){var b=I("div",{"class":"container"});Vx(b,"opacity 0.4s");a.Xc.listen(b,"mouseover",a.wC);a.Xc.listen(b,"mouseout",a.xC);b.appendChild(a.b);return b}f.jk=function(){var a=yY(this);this.b.appendChild(this.A);this.display(this.A);this.play();return a};f.K=function(){null==this.I&&(this.I=this.jk());return this.I}; 
f.play=function(){null==this.g&&(this.g=Tk(function(){this.Ed||(this.hide(),this.Xs=!0);this.g=null},this.Xs?this.or:this.nr,this))};f.stop=function(){null!=this.g&&(Uk(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(){fg(this.K(),1);null!=this.j&&(Uk(this.j),this.j=null)};f.hide=function(){fg(this.K(),this.Er/100);null==this.j&&(this.j=Tk(function(){this.O();this.j=null},400,this))}; 
f.wC=function(){this.show();this.Ed=!0;this.B=Tk(function(){this.Ed&&this.stop();this.B=null},this.bs,this)};f.xC=function(){null!=this.B&&(Uk(this.B),this.B=null);this.Ed&&this.play();this.Ed=!1};f.J=function(){xY.G.J.call(this);this.stop();Oh(this.Xc)};function zY(a,b){this.F=a;this.N=new Ed;this.L=15E3;this.C=I("span");xY.call(this,a[0],b);this.b.appendChild(this.C)}x(zY,xY); 
zY.prototype.jk=function(){var a=yY(this);MV(a,"container-rotator");this.D=I("div");this.b.appendChild(this.D);B(this.F,function(a,c){MV(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.Xc.listen(e,"click",function(a){AY(this,a.target)});this.N.set(e.id,a);this.C.appendChild(e)},this);AY(this,hd(this.C));this.play();return a}; 
zY.prototype.play=function(){null==this.k&&(this.k=new Rk(this.L),this.Xc.listen(this.k,"tick",this.P));zY.G.play.call(this);this.k.start()};zY.prototype.stop=function(){null!=this.k&&this.k.stop();zY.G.stop.call(this)};zY.prototype.P=function(){var a=this.o;AY(this,(void 0!=a.nextElementSibling?a.nextElementSibling:id(a.nextSibling))||hd(this.o.parentNode))};function AY(a,b){a.o&&NV(a.o,"container-active");MV(b,"container-active");var c=a.N.get(b.id);fd(c,a.D);a.o=b;a.D=c;a.display(c)};function BY(a,b){xY.call(this,a,b)}x(BY,xY);xY.prototype.M=!1;BY.prototype.jk=function(){var a=yY(this);MV(a,"container-slider");this.b.appendChild(this.A);this.Xc.listen(this.b,"click",this.k);this.play();return a};BY.prototype.show=function(){this.display(this.A);CY(this);NV(this.K(),"hidden")};BY.prototype.hide=function(){CY(this);MV(this.K(),"hidden")};BY.prototype.k=function(a){0!=Qf(this.b).y&&(a.preventDefault(),a.stopPropagation())};function CY(a){a.M?MV(a.K(),"animated"):a.M=!0};function DY(a,b){xY.call(this,a[0],b);this.k=a;MV(this.b,"container-stack")}x(DY,xY);DY.prototype.hide=ca;DY.prototype.jk=function(){var a=yY(this);B(this.k,function(a){MV(a,"container-highlight");this.b.appendChild(a);this.display(a)},this);this.play();return a};function EY(a){T.call(this);this.B=a;this.A=null;this.I="normal";this.o=this.volume=null;this.g=new cQ;this.fa=!1;this.content={};this.N=!1;B(a,function(){});B(a,function(a,c){var d=a.C,e=c+1;d.b=e;d.g=e})}x(EY,T);function $(a){if(null!=a.A){if(AU(a.A)&&!YP())throw LP(hP,null,"skippablevideo");return a.A}throw LP(eP,null,"An ad has not been selected.");}f=EY.prototype;f.Xg=function(){var a=fb(this.B,this.A);-1!=a&&++a<this.B.length?this.A=this.B[a]:this.A=null}; 
f.Ns=function(){if(null==this.A){if(E(this.B))throw LP(pP);this.A=this.B[0];if(null==this.A.getSelectedCreative())throw JP(pP);}};f.na=function(a){null!=this.A?this.S(new DO(a,$(this))):this.S(new DO(a,null))};function FY(a){null==a.j&&(a.j=new Yk(a));return a.j}function GY(a,b){if(null!=a.D&&(bl(FY(a),a.D,"companion_display_error",function(){}),BR(a.D,b),!a.D.lt()))throw LP(fP);}f.destroy=function(){this.dispose()}; 
f.J=function(){null!=this.A&&(HU(this.A,null),this.A=null);Oh(this.j);this.j=null;Oh(this.D);this.D=null;this.N=!1;EY.G.J.call(this)};f.tt=function(){return[]};f.getCurrentAd=function(){return this.B[0]};f.init=function(a){HY(this);this.Wj(a);this.fa=!0;this.ok()};f.ok=function(){this.na("loaded")};f.sendImpressionUrls=function(a){null!=this.A&&PP.b&&$O(FU($(this)),a)}; 
f.fd=function(a,b,c){if(!this.N){if(null==a)throw LP(iP,null,"displayContainer");if(null!=c){var d=new ek(Tb(this.g));if(!Nd(Tb(c),d.contains,d))throw LP(iP,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.g;if(null==c.ag||0>=c.ag)c.ag=-1;null==c.th&&(c.th=[]);IY(c.th);ja(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);dc(d,c)}this.content=b;this.o=a;this.Ns();this.N=!0}};f.getRemainingTime=function(){return-1};f.Oh=ca;f.pause=function(){};f.resume=function(){}; 
f.skip=function(){};f.start=function(){HY(this);if(!this.fa)throw JP(eP,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&NP(this,iP,null,"volume",String(a));this.volume=a};f.Wj=function(a){if(!Ub(tY,a))throw LP(iP,null,"view mode",a);this.I=a};f.setMediaUrl=function(){};function HY(a){if(!a.N)throw LP(eP,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null}; 
function IY(a){if(!ha(a))throw LP(eP,null,"adsRenderingSettings.mimeTypes should be an array");var b=ub(Sb(MO),Sb(IO));B(a,function(a){if(!D(b,a))throw LP(eP,null,"Invalid or unsuppoted mime type "+a);})};function JY(a){EY.call(this,a);this.k=null;this.P=!1;this.O=I("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"})}x(JY,EY);f=JY.prototype;f.start=function(){JY.G.start.call(this);this.o.Di();this.k=this.o.Zf();if(null!=this.k){cd(this.k);var a=this.Vn();this.k.appendChild(a);KY(this);this.na("start")}};f.Oh=function(){JY.G.Oh.call(this);KY(this)};f.getSelectedCreative=function(){return $(this).getSelectedCreative()}; 
f.J=function(){Oh(this.b);this.o=this.b=null;null!=this.k&&(cd(this.k),this.k=null);JY.G.J.call(this)};f.Vn=function(){var a=$(this).getSelectedCreative();if(null==a)throw a=LP(pP),LY(this,a),a;rU(a,FY(this));sU(a,jk);try{GY(this,$(this))}catch(b){throw LY(this,b),b;}var c=NX($(this));$O(FU($(this)),c);this.na("impression");return MY(this,[a.td()])};f.kr=function(a,b){return new xY(a[0],b)}; 
function MY(a,b){null!=a.b&&a.b.stop();a.b=a.kr(b,v(a.jr,a));var c=a.b.K();if(PP.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)}PV(c,"autoalign",a.g.Tq);PV(c,"viewmode-fullscreen","fullscreen"==a.I);c.appendChild(a.O);FY(a).listen(c,"click",jk);(null!=a.A&&QU($(a))||a.g.useStyledNonLinearAds)&&a.km(a.b.b);return c}f.km=function(a){var b=FY(this);this.L=hV(vY,{CD:this.P});b.listen(this.L,"click",this.DD);var c=hV(uY);b.listen(c,"click",this.Yn);a.appendChild(c)};function KY(a){if(null!=a.b){var b=bg(a.o.Zf()),c=bg(hd(a.b.b));if(c.width>b.width||c.height>b.height)throw b=LP(kP,null),LY(a,b),a.stop(),b;}} 
function LY(a,b){var c=HX(b,$(a)),d=EU($(a));$O(d,c)}f.Yn=function(){this.jr();this.na("userClose")};f.jr=function(){this.b.stop();var a=this.getSelectedCreative();null!=a&&uU(a);fd(this.L,this.b.b)};f.DD=function(a){jk(a);this.b.show();this.b.play();fd(this.b.b,this.L);Tk(function(){gg(this.O,!1)},500,this);gg(this.O,!0)};function NY(a){JY.call(this,a);this.C=!1;this.F=this.T=null;!E(a)&&null!=a[0].j&&(this.T=a[0].j,a=(new J(this.T.adTagUrl)).b.get("channel"),this.Jh=null!=a&&-1<a.split("+").indexOf("afitc"))&&(this.P=!0)}x(NY,JY);f=NY.prototype;f.Jh=!1; 
f.kr=function(a,b){if(this.C||null==b)b=ca;var c;this.Jh?c=new BY(a[0]):PP.b&&this.C?c=new xY(a[0],b):"fullscreen"==this.I?c=new DY(a):1<a.length?(c=new zY(a),c.L=15E3):c=new xY(a[0],b);c.bs=100;this.C&&(c.Er=30);c.nr=this.Jh?1E4:45E3;c.or=6E3;PV(c.b,"scalable",this.C);PV(c.K(),"afi",this.Jh);PV(c.K(),"yt-text-overlay",PP.b&&this.C);return c}; 
f.QC=function(a){var b=a.getSelectedCreative();null!=b?(null==this.M&&(this.M=a.getExtension("AdSense").A),tU(b,sa(this.gD,a,b)),sU(b,sa(this.fD,a,b)),b.oa=!1,"Text"==b.getContentType()&&(this.C=!0),this.F.push(b)):(b=JP(pP),b=HX(b,a),$O(EU(a),b))};f.fd=function(a,b,c){NY.G.fd.call(this,a,b,c);this.g.Tq=!0;null!=this.B[0]&&0<IR(this.B[0]).length?GY(this,this.B[0]):this.na("companionBackfill")}; 
f.Vn=function(){null==this.F&&(this.F=[],B(this.B,this.QC,this));if(0==this.F.length)throw LP(pP);var a=[];B(this.F,function(b){rU(b,FY(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.ls=!0);a.push(b.td());xU(b,this.M.j)},this);if(0==a.length)throw LP(pP);return MY(this,a)};f.Yn=function(a){B(this.F,function(a){var c=NX(a.getAd());$O(jU(a,"close"),c)},this);NY.G.Yn.call(this,a)}; 
f.km=function(a){NY.G.km.call(this,a);var b=this.B[0].getExtension("AdSense"),c=b.k,b=b.o,c=hV(wY,{text:null!=c?c:this.M.b,url:null!=b?b:this.M.g});a.appendChild(c)};f.gD=function(a,b){var c=NX(a);$O(FU(a),c);$O(jU(b,"creativeview"),c);tU(b,ca)}; 
f.fD=function(a,b,c){c=Yf(c);a=a.getExtension("AdSense");a=new J(a.g);var d=b.yd();isNaN(d)&&(d=ag(b.td()).width);var e=b.getHeight();isNaN(e)&&(e=ag(b.td()).height);b=LT();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.I,"sdkv=h.0.0.0","eids="+PT(b)];XO(a,"elementclick",b);this.na("click")};f.Wj=function(a){this.I!=a&&(NY.G.Wj.call(this,a),null!=this.k&&(cd(this.k),a=this.Vn(),this.k.appendChild(a)),this.na("expandedChanged"))};function OY(a){DO.call(this,"adMetadata",a)}x(OY,DO);function PY(a,b,c){var d=ca;a=new J("https://gdata.youtube.com/feeds/api/videos/"+a);null!=c&&(b=v(b,c),d=v(d,c));QY(new Ol,a,b,d)}function RY(a,b,c){var d=ca;a=new J("https://gdata.youtube.com/feeds/api/channels/"+a);null!=c&&(b=v(b,c),d=v(d,c));QY(new Ol,a,b,d)} 
function QY(a,b,c,d){SY(b);Rl(a,2E3);var e=new Yk(a);bl(e,a,"success",function(a){a=a.target;var b;b=a.b?rf(a.b.responseText):void 0;c(b||{});e.dispose();a.dispose()});bl(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.g&&(b=Error(el(a.g)));d(b);e.dispose();a.dispose()});a.send(b)}function SY(a){K(a,"alt","json");K(a,"v","2")};function TY(a){UY(this,a)}function UY(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 VY(a){WY(this,a)}VY.prototype.b=!0;function WY(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 XY(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">'+mV(a.Ci)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+mV(a.Ci)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttribution"',c;c=DV(a.Ge); 
c=mV(c);return b+c+">"+mV(a.Ge)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}function YY(a){var b=DV(a.Ge);return'<div class="videoAdUi videoAdUi-gvn"><div class="videoAdUiTopBar"><div class="videoAdUiAttribution videoAdUiAttribution-gvn"'+mV(b)+">"+mV(a.Ge)+'</div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'} 
function ZY(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail"></div></div></div>'}function $Y(a){var b="";a="Du kan springe til video om "+mV(a.To);return b+a}function aZ(a){return'<div class="videoAdUiSkipContainer"><div class="videoAdUiSkipButton">'+mV(a.hv)+'<div class="videoAdUiSkipIcon"></div></div></div>'};function bZ(a,b,c,d,e){rw.call(this);this.g=a;this.o=b;this.A=c;this.j=d;this.B=ha(e)?e:[e]}x(bZ,rw);f=bZ.prototype;f.play=function(){if(1==this.b)return!1;this.Tc();this.Qb("play");this.startTime=w();this.b=1;if(Xx())return Jf(this.g,this.A),this.k=Tk(this.Kz,void 0,this),!0;this.am(!1);return!1};f.Kz=function(){Vx(this.g,this.B);Jf(this.g,this.j);this.k=Tk(v(this.am,this,!1),1E3*this.o)};f.stop=function(){1==this.b&&this.am(!0)}; 
f.am=function(a){Wx(this.g,"");Uk(this.k);Jf(this.g,this.j);this.endTime=w();this.b=0;if(a)this.onStop();else this.Bb();this.Gd()};f.J=function(){this.stop();bZ.G.J.call(this)};f.pause=function(){};function cZ(a,b,c,d){return new bZ(a,.5,{opacity:c},{opacity:d},{Vp:"opacity",duration:.5,timing:b,Up:0})};function dZ(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 Yk(this);this.O=!1;this.V=this.T=this.L=0;this.A=this.C=this.B=null;this.I=!1;this.j.k&&(this.o.listen(b,"touchstart",this.ev),this.o.listen(b,"touchmove",this.dv),this.o.listen(b,"touchend",this.cv));this.k=hV(ZY);this.N=H("videoAdUiPreSkipButton",this.k);this.F=H("videoAdUiPreSkipText",this.N);this.P=H("videoAdUiPreSkipThumbnail",this.N);md(this.F,$Y({To:eZ(this)}));var c=this.j.P, 
c=(A(c)?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.j.N&&!A(c)){var d=Zc("img");d.setAttribute("src",c);MV(d,"videoAdUiPreSkipThumbnailImage");this.P.appendChild(d)}else MV(this.F,"videoAdUiPreSkipTextOnly");this.j.k?c=" Swipe to Skip":(c="Spring annoncen over ",d=new RegExp(Ra(""),""),c=c.replace(d,""),c=Aa(c));this.b=hV(aZ,{hv:c});gg(this.k,!1);b.appendChild(this.k);gg(this.b,!1);fg(this.b,0);b.appendChild(this.b);this.o.listen(this.b,"click",this.fv)}x(dZ,T);f=dZ.prototype; 
f.J=function(){null!=this.B&&(this.B.dispose(),this.B=null);null!=this.C&&(this.C.dispose(),this.C=null);fZ(this);null!=this.k&&(ed(this.k),this.k=null);null!=this.b&&(ed(this.b),this.b=null);this.o.dispose();this.o=null;this.I=!1;dZ.G.J.call(this)}; 
f.update=function(a,b){this.M=b;if(!(0>=this.M||null==this.j.b||0>zS(this.j.b))){var c=zS(this.j.b);c>=this.M||3==this.g||(0>a?this.g=1:a<=c?(2!=this.g&&(gZ(this,0),cZ(this.k,"ease-out",0,1).play(),gg(this.k,!0)),this.g=2):(3!=this.g&&(gg(this.b,!0),this.C=new bZ(this.k,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{Vp:"opacity",duration:.5,timing:"ease-out",Up:0}),this.B=cZ(this.b,"ease-out",0,1),this.C.play(),this.B.play(),this.o.listen(jd(this.b),"mouseover",this.mx),this.o.listen(jd(this.b), 
"mouseout",this.Wp),this.Wp()),this.g=3,this.S("skipshown")))}2==this.g&&gZ(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.ev=function(a){var b=a.b;3==this.g&&1==b.touches.length&&(this.O=!0,this.V=b.touches[0].pageX,a.preventDefault())};f.dv=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.V-b,0<b&&(this.b.style.right=b+"px"),a.preventDefault())}; 
f.cv=function(){this.O=!1;if(3==this.g){var a=ag(jd(this.b));if(parseInt(this.b.style.right,10)+4*this.L>.25*a.width&&0<this.L){gg(this.b,!1);this.D=!0;this.S("skip");return}}this.b.style.right=0};function eZ(a){return null!=a.j.b&&-1!=zS(a.j.b)?zS(a.j.b):-1}function gZ(a,b){var c=eZ(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+sS(c));c=$Y({To:d});md(a.F,c)}}f.fv=function(a){a.stopPropagation();3!=this.g||this.D||(this.D=!0,this.S("skip"))}; 
f.Wp=function(){null==this.A&&(this.A=Tk(function(){this.I=!0;cZ(this.b,"ease-in",1,.5).play();this.A=null},this.I?5E3:15E3,this))};f.mx=function(){fg(this.b,1);fZ(this)};function fZ(a){null!=a.A&&(Uk(a.A),a.A=null)};function hZ(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 Yk(this);this.g=hV(this.b.B,{Ge:this.b.Ge,Ci:this.b.Ci});this.j.listen(this.g,"touchmove",this.kv);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.iv);null!=this.C&&this.j.listen(this.C,"click",this.jv);null!=this.L&&this.j.listen(this.L,"click",this.lv);null!=this.N&&this.j.listen(this.N,"click",this.Pk);null!=this.D&&this.j.listen(this.D,"click",this.nv);null!=this.o&&this.j.listen(this.o,"click",this.ov);null!=this.I&&this.j.listen(this.g,"mouseover",this.mv); 
null!=this.b.b&&(this.k=new dZ(this.b,this.g),this.k.Bi(this));400>=(parseInt(Mf(b,"width"),10)||b.width)&&MV(this.g,"videoAdUi-mobile");this.b.k&&MV(this.g,"videoAdUi-swipeable");gg(this.g,!1);b.appendChild(this.g);this.b.j||(this.A=I("div",{style:"width:100%;height:100%"}),this.g.appendChild(this.A));iZ(this)}x(hZ,T);f=hZ.prototype;f.show=function(){null!=this.g&&gg(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&&(ed(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;hZ.G.J.call(this)};f.update=function(a,b){this.O=!0;if(null!=this.g){if(null!=this.F){var c=this.b.Ge,d=sS(b-a);md(this.F,c+(" ("+d+")"));gg(this.F,this.b.o&&this.O)}null!=this.M&&$f(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&&MV(this.I,"videoAdUiTopBarNoFade")}}; 
function iZ(a){var b=a.b.F&&(6E3<a.T||0==a.T),c=b&&a.b.M,d=b&&a.b.L,e=b&&a.b.g,g=b&&a.b.D,b=b&&a.b.A,h=a.b.C&&!0,k="0px";null!=a.o&&(gg(a.o,b),null!=a.B&&gg(a.B,c),null!=a.C&&gg(a.C,d),null!=a.L&&gg(a.L,e),null!=a.D&&(gg(a.D,g),g&&a.S("videoShareShown")),null!=a.I&&gg(a.I,b||c||d||e));null!=a.F&&gg(a.F,a.b.o&&a.O);null!=a.M&&(gg(a.M,h),h&&(k=Mf(a.M,"height")));null!=a.P&&Jf(a.P,"bottom",k);null!=a.N&&gg(a.N,a.b.j)}f.iv=function(){this.S("videoAuthorIconClicked")};f.jv=function(){this.S("videoAuthorClicked")}; 
f.lv=function(){this.S("videoLearnMoreClicked")};f.nv=function(){this.S("videoShareClicked")};f.ov=function(){this.S("videoTitleClicked")};f.kv=function(a){a.preventDefault()};f.Pk=function(){this.S("click")};f.mv=function(){MV(this.I,"videoAdUiTopBarTransitions")};function jZ(){this.Ge="Annonce:";var a="",b="F flere oplysninger "+mV("");this.Ci=a+b;this.b=null;this.o=this.F=!0;this.D=this.g=!1;this.C=!0;this.j=!1;this.I=!0;this.A=this.L=this.M=!1;this.B=null;this.k=!1;this.N=!0}function kZ(a,b,c,d,e,g,h,k){var l=new jZ;l.O=b;l.P=e;l.I=g;l.g=!1;l.D=h;l.C=k;l.b=c;l.j=a;l.B=XY;l.T=AQ(b,null!=c,d.baseYouTubeUrl);l.k=mk&&OT(0);l.N=null!=e&&(null!=d?d.showContentThumbnail:!0);return l};function lZ(){this.k="";this.b=new AS;this.o=new Ed;this.g=[];this.A=!1;this.Uf={};this.j=-1}x(lZ,Mh);lZ.prototype.J=function(){this.g=[];this.Uf={}};function mZ(a,b){a.Uf=b}function nZ(a,b){var c=VR(UR(),b.type,a.k);"impression"==b.type&&!a.A&&null!=a.g&&0<a.g.length&&(oZ(a,a.g),a.A=!0);var d;t:switch(d=b.type,d){case "click":d=!0;break t;default:d=!Gd(a.o,d)}d&&(d=HS(a.b,b.type),0<d.length&&(oZ(a,d,c),a.o.set(b.type,!0)))}function oZ(a,b,c){B(b,function(a){YO(a,this.Uf,c)},a)};function pZ(a){S.call(this,a)}x(pZ,S);function qZ(a){T.call(this);this.o=a;this.D=new Ed;this.C=-1;this.F=!1}x(qZ,T);function rZ(a){this.g=!1;this.b=a.gj();this.volume=a.ie()}rZ.prototype.muted=function(a,b){return!this.b&&a||0<this.volume&&0==b};f=qZ.prototype;f.J=function(){sZ(this);qZ.G.J.call(this)};function sZ(a){null!=a.g&&a.g.dispose();null!=a.b&&a.b.Mf();null!=a.A&&a.A.dispose();a.A=null;null!=a.B&&a.B.dispose();a.B=null;a.D.clear();a.C=-1;a.F=!1} 
function tZ(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&&nZ(a.o,new S("click"))}nZ(a.o,new S(b))}a.S(b)}}f.jw=function(a){var b=a.j;a=this.o;var c=this.o.Uf,b=null!=b?b.viewability:null;null!=b&&(c["[VIEWABILITY]"]=b);a.Uf=c;tZ(this,"viewable_impression",!1)}; 
f.Yv=function(){var a=this.b.zd();if(-1!=a){this.b.oh(.25*a)&&tZ(this,"firstquartile",!0);this.b.oh(.5*a)&&tZ(this,"midpoint",!0);this.b.oh(.75*a)&&tZ(this,"thirdquartile",!0);var b=this.o,c=this.b.getCurrentTime();0>b.j&&(GS(b.b,a),b.j=0);for(var a=ES(b.b,"progress"),d=b.j;d<a.length;d++){var e=a[d];if(zS(e.g)>c)break;b.j=d+1;YO(e.b,b.Uf)}}uZ(this)};function uZ(a){0>a.C||a.F||!a.b.oh(a.C)&&!a.b.Ke()||(a.F=!0,tZ(a,"engagedview",!0),a.S(new pZ("viewCount")))} 
f.Xv=function(){tZ(this,"impression",!0);tZ(this,"creativeview",!0);null!=this.I||null!=this.j||this.g.listen(this.b,"click",this.uy);null!=this.I&&(this.A=new iQ,this.g.listen(this.A,"click",this.Dq,!1),jQ(this.A,this.I));null!=this.j&&(this.B=new iQ,this.g.listen(this.B,"click",this.Dq,!1),jQ(this.B,this.j));tZ(this,"start",!0);(this.b.gj()||0==this.b.ie())&&tZ(this,"mute",!1)}; 
f.Zv=function(){var a=this.b.gj(),b=this.b.ie(),c=this.k;c.b&&!a||!a&&0==c.volume&&0<b?tZ(this,"unmute",!1):this.k.muted(a,b)&&tZ(this,"mute",!1);this.k.b=a;this.k.volume=b};f.Vv=function(){this.b.Ke()?(uZ(this),tZ(this,"complete",!0)):this.b.rh()&&!this.b.mr()&&(this.k.g=!0,tZ(this,"pause",!1))};f.Wv=function(){this.k.g&&(this.k.g=!1,tZ(this,"resume",!1))};f.Rv=function(){uZ(this);tZ(this,"complete",!0)};f.Dq=function(){tZ(this,"click",!1)};f.Sv=function(){tZ(this,"error",!1)}; 
f.Uv=function(){tZ(this,"mediaLoadTimeout",!1)};f.bw=function(){tZ(this,"skipshown",!0)};f.dw=function(){tZ(this,"videoAuthorIconClicked",!1)};f.cw=function(){tZ(this,"videoAuthorClicked",!1)};f.ew=function(){tZ(this,"videoLearnMoreClicked",!1)};f.fw=function(){tZ(this,"videoShareClicked",!1)};f.gw=function(){tZ(this,"videoShareShown",!0)};f.iw=function(){tZ(this,"videoTitleClicked",!0)};f.xp=function(){tZ(this,"skip",!0)};f.aw=function(){tZ(this,"skip",!0)};f.uy=function(){tZ(this,"click",!1)}; 
f.Tv=function(){tZ(this,"fullscreen",!1)};f.$v=function(){tZ(this,"exitfullscreen",!1)};function vZ(a){EY.call(this,a);this.k=null;this.F=new lZ;this.C=new qZ(this.F);this.O=this.P=this.M=!1;this.L=1}x(vZ,EY);f=vZ.prototype;f.J=function(){wZ(this);var a=!1;null!=this.o&&(a=this.o.Gn(),this.o.hide(),this.o=null);this.M&&(this.M=!1,this.b.rh()||this.b.Ke()||this.b.pause(),!nc&&!xc||a||(this.b.eg(.001),this.b.Ig("","")),this.na("contentResumeRequested"),this.na("allAdsCompleted"),nc&&this.b.sj()&&!a&&this.b.Fn());vZ.G.J.call(this)}; 
function wZ(a){Oh(a.k);a.k=null;Oh(a.C);Oh(a.F);Oh(a.A);a.T=null}function xZ(a){a.Xg();null!=a.A?a.start():a.stop()}f.Xg=function(){wZ(this);vZ.G.Xg.call(this);null!=this.A&&(this.F=new lZ,this.C=new qZ(this.F))}; 
f.ox=function(a,b,c){this.P||(this.P=!0,this.na("contentPauseRequested"));this.M=!0;var d=this.C,e=this.b,g=this.T,h=this.k;sZ(d);d.o.k=a.V;d.b=e;d.j=h||null;d.b.Ki();d.k=new rZ(d.b);d.I=g||null;d.g=new Yk(d);d.g.listen(a,"viewable_impression",d.jw);d.g.listen(d.b,"timeUpdate",d.Yv);d.g.listen(d.b,"volumeChange",d.Zv);d.g.listen(d.b,"pause",d.Vv);d.g.listen(d.b,"play",d.Wv);d.g.listen(d.b,"end",d.Rv);d.g.listen(d.b,"beginFullscreen",d.Tv);d.g.listen(d.b,"endFullscreen",d.$v);d.g.listen(d.b,"skip", 
d.xp);d.g.listen(d.b,"start",d.Xv);d.g.listen(d.b,"error",d.Sv);d.g.listen(d.b,"mediaLoadTimeout",d.Uv);null!=d.j&&(d.g.listen(d.j,"videoAuthorIconClicked",d.dw),d.g.listen(d.j,"videoAuthorClicked",d.cw),d.g.listen(d.j,"videoLearnMoreClicked",d.ew),d.g.listen(d.j,"videoTitleClicked",d.iw),d.g.listen(d.j,"videoShareClicked",d.fw),d.g.listen(d.j,"videoShareShown",d.gw),d.g.listen(d.j,"skipshown",d.bw),d.g.listen(d.j,"skip",d.xp),d.g.listen(d.j,"PUBLISHER_INVOKED_SKIP",d.aw));FY(this).listen(this.C, 
"engagedview",this.ee);FY(this).listen(this.C,"videoAuthorIconClicked",this.ee);FY(this).listen(this.C,"videoAuthorClicked",this.ee);FY(this).listen(this.C,"videoLearnMoreClicked",this.ee);FY(this).listen(this.C,"videoShareClicked",this.ee);FY(this).listen(this.C,"videoShareShown",this.ee);FY(this).listen(this.C,"videoTitleClicked",this.ee);FY(this).listen(this.b,"timeUpdate",this.hw);FY(this).listen(this.b,"volumeChange",this.Qv);this.setVolume(this.L);yZ(this,a);zZ(this,a);this.o.Ai();this.k&&(A(VU(a))? 
(d=this.k,null!=d.A&&(d.j.Ga(d.A,"click",d.Pk),Jf(d.A,"cursor","default"))):(d=this.k,null!=d.A&&(d.j.listen(d.A,"click",d.Pk),Jf(d.A,"cursor","pointer"))));this.b.nl(AZ(this,a));this.b.Ig(b,c);try{GY(this,a)}catch(k){BZ(this,fP,k);return}this.b.play()};function CZ(a,b,c,d){b=ES(b.b,c);E(b)||(a[d]=b[0].b)} 
function DZ(a,b,c){b=c.getExtension(b);null!=b&&(CZ(a,b,"annotation_click","cta_annotation_clicked"),CZ(a,b,"annotation_close","cta_annotation_closed"),CZ(a,b,"annotation_start","cta_annotation_shown"))}function AZ(a,b){var c=QU(b)&&!b.B?IU(b):null,d=AU(b)&&!BU(b),e=null!=a.k&&a.g.Tk&&a.k.b.j,g=b.j,h=zU(b),k;a.k?(k={},DZ(k,"AdSense",b),DZ(k,"dart",b),DZ(k,"DFP",b)):k=null;return new qQ(h,c,k,e,d,a.g.loadVideoTimeout,g?g.tagForChildDirectedContent:!1)} 
function EZ(a){var b=0;B(a.B,function(a){FZ(a)&&b++},a);var c=1;B(a.B,function(a){var b=a.C;FZ(a)&&(b.b=c,b.g=c,c++)},a)}function FZ(a){a=a.getSelectedCreative();return null!=a&&a instanceof lU}function GZ(a){return jb(a.B,function(a){a=HZ(a);return jb(a,function(a){return!A(yQ(a.g))})},a)}function HZ(a){var b=a.b;if(b&&b.I&&(b=b.k,!E(b)&&b[0]instanceof lU))return b[0].D;b=a.getSelectedCreative();return FZ(a)?b.D:[]} 
function IZ(a,b){if(!FZ(b))throw LP(AP);var c=b.getSelectedCreative(),d=c.ka;if(!A(d))return new pQ("","",0,0,0,0,0,d,"");var e=null!=b&&(PP.b||a.o.vj()),d=HZ(b),e=a.b.pr(d,a.g.ag,a.g.th||[],e);JZ(d,a.g.ag,e);if(null!=e)return c.ma=e;throw LP(sP);}function JZ(a,b,c){try{var d=C(a,function(a){return a.le}),e=C(a,function(a){return a.b}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.le,selmt:null===c?"":c.b,nat:!1};$P(ZP.getInstance(),22,g)}catch(h){}} 
f.ok=function(){this.na("loaded");this.S(new OY($(this)))};f.fd=function(a,b,c){vZ.G.fd.call(this,a,b,c);this.b=this.o.Nj(GZ(this))};f.skip=function(){null!=this.A&&AU($(this))&&(null!=this.k?this.k.skip():(nZ(this.F,new S("skip")),KZ(this)))}; 
f.start=function(){vZ.G.start.call(this);EZ(this);this.T=this.o.Zl();try{var a=IZ(this,$(this));this.O=!1;if(this.g.useVideoAdUi){var b=$(this),c;c=IZ(this,b).g;var d=b.getExtension("AdSense"),e=this.g.Tk&&((null===c?!1:"modules"==(new J(c)).bh().toLowerCase())||null!=d&&d.B),g=yQ(c),h;if(PP.b)h=kZ(e,g,RU(b),this.g,this.g.contentId,!0,this.g.useShareButton,!0);else{var k;if(!YU(b,KO)&&!YU(b,LO)||UU(b)){var l=RU(b),p=kZ(e,g,l,this.g,this.g.contentId,!1,!1,!1);p.B=YY;k=p}else{var r=RU(b),u=kZ(e,g,r, 
this.g,this.g.contentId,!1,!1,!1);u.o=!1;u.F=!1;k=u}h=k}var b=h,t=this.o.$l();if(null===t)t=document.body;else{cd(t);var z=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}}"); 
t.appendChild(z)}var y=1E3*WU($(this));this.k=new hZ(b,t,y);var N=b.O;null!=N&&($(this).ca=N,b.I&&LZ(this,N));this.k.show()}Tk(v(vZ.prototype.ox,this,$(this),a.g,a.b))}catch(ra){MZ(this,ra),this.Xg(),null!=this.A?(MP(LP,this,GP,ra,void 0),this.start()):(this.M?MP(LP,this,GP,ra,void 0):(null!=this.D&&BR(this.D,yR()),NP(this,GP,ra)),this.stop())}};f.setVolume=function(a){HY(this);this.M?this.b.setVolume(a):this.L=a}; 
f.setMediaUrl=function(a){HY(this);var b;if(b=null!=this.A)b=null!=$(this).j;b&&(b=$(this),(SO(b.j.location)||PP.b)&&null!=b.getSelectedCreative()&&b.getSelectedCreative()instanceof lU&&b.getSelectedCreative().setMediaUrl(a))};f.pause=function(){HY(this);this.b.pause()};f.resume=function(){HY(this);this.b.play()};f.getRemainingTime=function(){HY(this);var a=this.b.zd(),b=this.b.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.dC=function(){BZ(this,GP,LP(GP,this.b.Cs()))}; 
f.eC=function(){BZ(this,vP,LP(vP,null,(this.g.loadVideoTimeout/1E3).toString()))};function BZ(a,b,c){MZ(a,c);a.Xg();null!=a.A?(MP(LP,a,b,c,void 0),a.start()):(NP(a,b,c),a.stop())}function MZ(a,b){var c=LP(GP,b),c=HX(c,$(a),a.b),d=EU($(a));$O(d,c)} 
function zZ(a,b){mZ(a.F,NX(b,a.b));var c=b.getSelectedCreative();if(null!=c&&c instanceof lU){NZ(a,mU(c));B(CO,function(a){var b=hU(c,a);DS(this.F.b,b);OZ(this,a)},a);var d=FY(a);al(d,a.C,"error",a.dC,a);al(d,a.C,"mediaLoadTimeout",a.eC,a)}PZ(a,b);AU(b)&&(a.C.C=30)}function NZ(a,b){B(b.La(),function(a){var d=b.get(a);B(d,function(b){FS(this.F.b,a,b);OZ(this,a)},this)},a)}function QZ(a){if(PP.g){var b=VU($(a));null!=b&&WO(b)}a.na("click")} 
function PZ(a,b){var c=b;do c.A.forEach(function(a){B(CO,function(b){var c=ES(a.b,b);E(c)||RZ(this,b,c)},this)},a),c=c.b;while(c)}function RZ(a,b,c){B(c,function(a){FS(this.F.b,a.j,a.b)},a);OZ(a,b)}function yZ(a,b){B(FU(b),function(a){qb(this.F.g,a)},a);OZ(a,"impression")}function OZ(a,b){Ub(EO,b)&&al(FY(a),a.C,b,a.ee,a)} 
f.ee=function(a){switch(a.type){case "start":this.na("start");break;case "impression":this.na("impression");break;case "pause":this.na("pause");break;case "resume":this.na("resume");break;case "firstquartile":this.na("firstquartile");break;case "midpoint":this.na("midpoint");break;case "thirdquartile":this.na("thirdquartile");break;case "complete":this.na("complete");xZ(this);break;case "click":this.k&&this.k.b.g?this.b.rh()?this.resume():this.pause():QZ(this);break;case "engagedview":var b=$(this); 
a=b.ca;if(BU(b)&&!PP.b&&!this.o.vj()&&a){var b=this.b.getCurrentTime(),c=this.b.zd(),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));YO(d.toString())}this.na("engagedview");break;case "videoAuthorIconClicked":SZ(this);break;case "videoAuthorClicked":SZ(this);break;case "videoLearnMoreClicked":this.b.pause(); 
QZ(this);break;case "videoShareClicked":a=$(this).L;null!=a&&(a=a.videoId,b=this.g.baseYouTubeUrl,A(a)?a=null:(b=new J((null!=b?b:"//www.youtube.com/")+"watch"),c=b.b,c.set("v",a),ie(b,c),b.fg="action=share",a=b.toString()),null===a||window.open(a,"_blank","width="+(550).toString()+",height="+(500).toString()),a=TZ(this),null!=a&&XO(a,"sharebuttonclicked"));break;case "videoShareShown":a=TZ(this);null!=a&&XO(a,"sharebuttondisplayed");break;case "videoTitleClicked":a=$(this);b=a.L;null!=b&&(a=AQ(b.videoId, 
null!=RU(a),this.g.baseYouTubeUrl),null!==a&&(this.b.pause(),WO(a)));break;case "skipshown":this.na("skippableStateChanged");break;case "skip":KZ(this)}};function TZ(a){var b;b=$(a).getExtension("AdSense");if(!(b=null!=b?new J(b.g):null))t:{if(a=$(a).getSelectedCreative())if(a=hU(a,"start"),!E(a)){b=new J(a[0].b);break t}b=null}return b}function KZ(a){Tk(function(){this.na("skip");xZ(this)},0,a)}f.getSelectedCreative=function(){var a=$(this);return SO(a.j.location)?$(this).getSelectedCreative():null}; 
f.getMediaUrl=function(){if(null==this.A)return null;var a=$(this);if(!FZ(a))throw LP(AP);a=a.getSelectedCreative().D;return E(a)?null:a[0].g};f.hw=function(){var a=this.b.zd(),b=this.b.getCurrentTime();if(null!=this.k&&0<=a&&0<=b){if(!this.O){var c=this.b.zd(),d=WU($(this)),c=Math.abs(c-d);2<c&&(c=LP(zP,null,Number(c).toFixed(2)),c=HX(c,$(this),this.b),d=EU($(this)),$O(d,c));this.O=!0}this.k.update(b,a)}};f.Qv=function(){var a=this.b.ie();a!=this.L&&(this.L=a,this.na("volumeChange"),0==a&&this.na("mute"))}; 
function LZ(a,b){null!=a.k&&PY(b,function(a){a=new VY(a);ZU($(this))==a.videoId&&(UZ(this,a),!A(a.g)&&a.b&&RY(a.g,function(a){a=new TY(a);if(null!=this.k){var b=this.k,c=a.j;b.b.L=!A(c);b.b.U=c;null!=b.C&&(c="af "+b.b.U,md(b.C,(new tV(c,void 0)).getContent()));iZ(b);b=this.k;c=a.g;b.b.M=!A(c);if(null!=b.B){var h=Zc("img");h.setAttribute("src",c);MV(h,"videoAdUiAuthorIconImage");b.B.appendChild(h);null!=b.o&&MV(b.o,"videoAdUiTitleWithAuthorIcon")}iZ(b)}$(this).M=a;this.na("youTubeChannelMetadata"); 
a=$(this);b=a.L;if(PP.b&&E(IR(a))&&null!=a.M&&null!=b&&b.b){a=$(this);FY(this).listen(window,"message",this.zw);var b=$(this),c=b.M.b,h=zU(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 RV("1",new G(300,250),"IFrame",null,l.toString());c.Hg(b);c.C=!0;a.o=[new aV(c,[],null)];GY(this,a)}},this))},a)} 
f.zw=function(a){var b=a.b;if("companion-setup-complete"==b.data){a=$(this);var c=encodeURIComponent(za(VU(a)))+","+encodeURIComponent(TZ(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=VU(a)?210:185}else"pause-video"==b.data&&this.pause()}; 
function UZ(a,b){if(null!=a.k&&b.b){var c=a.k,d=b.title;c.b.A=!A(d);c.b.title=d;vx.test(ux(c.b.title,void 0));null!=c.o&&md(c.o,c.b.title);iZ(c);c=a.k;null!=c.D&&md(c.D,"Del")}$(a).L=b;a.na("youTubeVideoMetadata")}function SZ(a){var b;b=$(a).M;if(null!=b){b=b.b;var c=a.g.baseYouTubeUrl;b=A(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/UC"+b;null!==b&&(a.b.pause(),WO(b))}};function VZ(a){this.b=a}f=VZ.prototype;f.Zl=function(){return this.b.Zl()};f.$l=function(){return this.b.$l()};f.Zf=function(){return this.b.Zf()};f.Nj=function(a){return this.b.Nj(a)};f.Gn=function(){return this.b.Gn()};f.vj=function(){return this.b.vj()};f.hide=ca;f.Ai=ca;f.Di=ca;function WZ(a,b,c,d,e,g,h){T.call(this);this.k=this.A=0;this.B=a;this.D=b;this.ca=c;this.o=null;this.N=d;this.aa=g;this.L=PP.j;this.b=null;this.T="normal";this.M=null;this.F=e;this.j=[];this.V=this.P=this.I=!1;this.O=h;XZ(this)}x(WZ,T);f=WZ.prototype;f.init=function(a,b,c){YZ(this,c);null==this.C&&(this.C=new Yk(this),al(this.C,this.N,"adsLoaderSdkAdLoaded",this.AD,this),al(this.C,this.N,"adsLoaderSdkAdError",this.zD,this));ZZ(this)}; 
f.start=function(){this.I=!0;$Z(this);0<this.j.length?a_(this):("always"==PP.j&&null!=this.O&&BR(this.O,yR()),MP(JP,this,jP,void 0,void 0),0==this.D&&this.S("contentResumeRequested"),b_(this))};f.destroy=function(){null!=this.C&&(this.C.dispose(),this.C=null);this.F.hide();c_(this);PP.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 YZ(a,b){null!=b&&(a.T=b);null!=a.b&&(a.b.Wj(b),a.b.Oh())}function XZ(a){B(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.AD=function(a){PP.j=this.L;var b=a.o;E(b)||(a=a.k,a.b&&B(b,function(a){a.fa=!1},this),qb(this.j,new mS(b,a.b,a.g)));this.A++;ZZ(this)};f.zD=function(a){a=a.j;PP.j=this.L;a.getMessage();MP(JP,this,jP,void 0,void 0);this.A++;ZZ(this)};function ZZ(a){a.A<a.B.length&&null!=a.B[a.A]&&!(2<=a.j.length-a.k)?d_(a):a.P||(a.S("adBreakInitialized"),a.P=!0)}function d_(a){var b=a.B[a.A];PP.j="on_master_ad";pY(a.N,b.j,b)} 
function $Z(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 a_(a){if(a.k<a.j.length){var b=a.j[a.k];c_(a);try{var c=b.b,b=null;if(yU(c[0]))b=new vZ(c);else{var d=c[0];if(null!=d&&PU(d,"nonlinear"))b=new JY(c);else throw Error("No valid creative type found.");}b.D=a.O;b.fd(new VZ(a.F),{currentTime:0},a.aa);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 Yk(a);var e=a.b;al(a.g,e,"adError",a.Jv,a);al(a.g,e,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "), 
a.Kv,a);a.g.listen(e,["allAdsCompleted"],ca);al(a.g,e,"contentPauseRequested",a.Hv,a);al(a.g,e,"contentResumeRequested",a.Iv,a);if(e_(a.b)){var g;g=a.b.getSelectedCreative().yb;g=0<g?g:15;null!=a.o&&a.o.dispose();a.o=new Rk(1E3*g);dl(a.g,a.o,"tick",a.Lv,a)}a.b.init(a.T);null!=a.M&&a.b.setVolume(a.M);if(e_(a.b))a.S("contentResumeRequested"),a.F.Di(),a.b.start(),null!=a.o&&a.o.start();else{var h=a.b;if(null!=h&&h instanceof vZ)a.F.Ai(),a.b.start();else throw Error("Unknown ads manager type.");}}catch(k){a.k++, 
a_(a)}a.A<a.B.length&&null!=a.B[a.A]&&d_(a)}else a.S("contentResumeRequested"),b_(a)}function c_(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.Lv=function(){c_(this);b_(this)};f.Jv=function(){this.k++;a_(this)};f.Iv=function(){this.k++;a_(this)};f.Hv=function(){this.V||(this.S("contentPauseRequested"),this.V=!0)};function e_(a){return null!=a&&a instanceof JY}function b_(a){a.I=!1;a.S("allAdsCompleted")} 
f.Kv=function(a){f_(this,a.type,a.getAd());this.S(a)};function f_(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0;B(a.j,function(a,b){var h=a.b;fb(h,c);b<this.k&&(d+=h.length)},a);b=c.C;b.b=d+b.g;b.j=a.ca;b.k=a.D}};function g_(a){S.call(this,a);this.j=null}x(g_,S);function h_(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&&ja(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.j=null;this.k=!1;i_(this,b)}x(h_,T);function j_(a){this.b=a;this.j=this.g=!1}function k_(a){null!=a.j&&(a.j.dispose(),a.j=null);a.g.stop();a.k=!1}function l_(a){if(a.k){var b=lb(a.b,function(a){return-1==a.b},a);null!=b&&m_(a,!0,b)}} 
function i_(a,b){B(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Gb(this.b,new j_(a),function(a,b){return Bb(a.b,b.b)})},a)}h_.prototype.o=function(){if(this.k){var a=this.g.currentTime;if(isNaN(a)||0>a)n_(this);else{var b=o_(this,a);this.A?B(b,function(a){m_(this,!0,a)},this):m_(this,!0,db(b));m_(this,!1,p_(this,a))}}};function o_(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 p_(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}h_.prototype.B=function(){n_(this)};function n_(a){a.S(new g_("contentTrackingError"))}function m_(a,b,c){if(null!=c){if(!c.g){var d=new g_("requestAds");d.j=c.b;a.S(d);c.g=!0}b&&!c.j&&(b=new g_("playAds"),b.j=c.b,a.S(b),c.j=!0)}};function qY(a,b){EY.call(this,[]);this.P=a;this.F=new Ed;this.k=this.b=null;this.V=new xm;this.C=null;this.L=b;this.T=this.O=!1;this.M=null;this.ca=this.aa=-1}x(qY,EY);f=qY.prototype; 
f.fd=function(a,b,c){null!=this.k&&(k_(this.k),this.k.dispose(),this.k=null);qY.G.fd.call(this,a,b,c);c=this.P.b.La();b=new $Q(b);this.k=new h_(b,c,{prefetch:4});B(c,function(b,c){if(isNaN(b))throw JP(dP,null,"timeOffset",b+"");var g=ja(b)&&!isNaN(b)?this.P.b.get(b,[]):[];if(!E(g)){g=new WZ(g,b,0==b||-1==b?b:c,this.L,a,this.g,this.D);if(Gd(this.F,b))throw JP(oP,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){qY.G.init.call(this,a);null!=this.k&&(q_(this),this.j=new Yk(this),al(this.j,this.k,"requestAds",this,this),al(this.j,this.k,"playAds",this,this),al(this.j,this.k,"contentTrackingError",this,this),al(this.j,this.k,"adBreakReady",this.qx,this),al(this.j,this.L,"contentComplete",this.rx,this),this.L.Je=!1,a=this.k,a.k||(null==a.j&&(a.j=new Yk(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.k.o(),a=ja(0)&&!isNaN(0)? 
this.P.b.get(0,[]):[],E(a)&&this.na("contentResumeRequested"))};f.ok=function(){this.tt();this.S(new OY(null))};f.destroy=function(){this.dispose()};f.J=function(){this.L.Je=!0;if(0<this.F.Pa()){var a=this.F.Sa();B(a,this.Pm,this);this.F.clear()}q_(this);r_(this);null!=this.o&&(this.o.hide(),this.o=null);qY.G.J.call(this)};f.start=function(){qY.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){qY.G.setVolume.call(this,a);null!=this.b&&this.b.setVolume(a)};f.Oh=function(){qY.G.Oh.call(this);var a=Rc(window);this.aa=a.width;this.ca=a.height;null!=this.b&&YZ(this.b,this.I)};f.getRemainingTime=function(){return null!=this.b?this.b.getRemainingTime():-1};f.tt=function(){return this.P.b.La()};f.getCurrentAd=function(){return null!=this.b?this.b.getCurrentAd():null};f.Ns=function(){}; 
f.handleEvent=function(a){"contentTrackingError"!=a.type&&(zm(this.V,a),s_(this))};function q_(a){null!=a.j&&(a.j.dispose(),a.j=null);a.O=!1;null!=a.k&&k_(a.k)} 
function s_(a){if(null==a.C){var b=Am(a.V);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 Yk(a)),al(a.j,c,"click start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),a.S,a),al(a.j,c,"allAdsCompleted",a.xr,a),al(a.j,c,"contentPauseRequested",a.ur,a),al(a.j,c,"contentResumeRequested",a.wr,a),al(a.j,c,"adBreakInitialized",a.yr,a),c.init(a.aa,a.ca,a.I)):"playAds"==b.type?(null!=a.b&&a.b.I&&a.Pm(a.b),a.b=c,a.b.setVolume(a.volume), 
YZ(a.b,a.I),a.b.start()):(a.C=null,s_(a)):(a.C=null,s_(a))}}}f.Pm=function(a){a.destroy();this.F.remove(a.D);this.b=null;null!=this.j&&(this.j.Ga(a,"click start pause firstquartile midpoint thirdquartile complete loaded adMetadata".split(" "),this.S,!1,this),this.j.Ga(a,"allAdsCompleted",this.xr,!1,this),this.j.Ga(a,"contentPauseRequested",this.ur,!1,this),this.j.Ga(a,"contentResumeRequested",this.wr,!1,this),this.j.Ga(a,"adBreakInitialized",this.yr,!1,this))}; 
f.rx=function(){this.O=!0;-1==this.M||t_(this);l_(this.k)};f.qx=function(a){a=a.j;-1==a?Tk(function(){t_(this)},500,this):0==a&&Tk(function(){this.na("contentResumeRequested")},100,this);this.S(new DO("adBreakReady",null,{zF:a}))};f.xr=function(a){this.Pm(a.target);(0==this.F.Sa().length||this.O)&&t_(this);this.C=null;s_(this)};function t_(a){a.T||(a.T=!0,a.L.Je=!0,a.na("allAdsCompleted"),-1==a.M&&r_(a))}function r_(a){eR.clear();null!=a.D&&(a=a.D.Ni(),null!=a&&a.F(eR.b))} 
f.ur=function(){var a=this.k;a.g.stop();a.k=!1;this.na("contentPauseRequested")};f.wr=function(){this.na("contentResumeRequested");if(!this.O){var a=this.k;a.g.start();a.k=!0}this.C=null};f.yr=function(){this.C=null;s_(this)};f.na=function(a){var b=null;null!=this.b&&(b=this.b.getCurrentAd());this.S(new DO(a,b))};function u_(a){EY.call(this,a);this.V=this.T=this.L=!1;this.M=[];this.P=Za();this.k=null;this.b=new lZ;this.C=!0;this.O=-1;this.F=1}x(u_,EY);f=u_.prototype; 
f.init=function(a){u_.G.init.call(this,a);a=XU($(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="da".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.g.contentId&&(a=de(a,"v",this.g.contentId))}a=za(a)}else{var b=new J(a),c=new J("http://tpc.googlesyndication.com/pagead/js/loader6.html");"https"==b.Mb&&ee(c,"https");a=ie(c,a||"",void 0).toString()}this.ib=I("iframe",{src:VO(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"}); 
FY(this).listen(window,"message",this.MC);FY(this).listen(this.ib,"load",this.KC);FY(this).listen(this.ib,"error",this.LC);this.o.Zf().appendChild(this.ib)};f.fd=function(a,b,c){u_.G.fd.call(this,a,b,c);this.C=$(this).getSelectedCreative()instanceof lU;this.k=a.Nj(!1);FY(this).listen(this.k,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.cD)};f.stop=function(){this.o.hide();u_.G.stop.call(this)}; 
function v_(a,b){mZ(a.b,NX(b,a.k));var c=b.getSelectedCreative();null!=c&&(c instanceof lU&&w_(a,c.ca),B(CO,function(a){a=hU(c,a);DS(this.b.b,a)},a),B(FU(b),function(a){qb(this.b.g,a)},a))}function w_(a,b){B(b.La(),function(a){var d=b.get(a);B(d,function(b){FS(this.b.b,a,b)},this)},a)}f.start=function(){u_.G.start.call(this);v_(this,$(this));this.k.Ki();this.o.Di();this.ib.style.opacity=1;this.V=!0;this.C&&this.na("contentPauseRequested");x_(this)};f.pause=function(){y_(this,"pauseAd")}; 
f.resume=function(){y_(this,"resumeAd")};f.setVolume=function(a){u_.G.setVolume.call(this,a);y_(this,"setAdVolume",{value:a})};f.J=function(){var a=this.o.Zf();null!=a&&cd(a);this.C&&this.na("contentResumeRequested");this.na("allAdsCompleted");this.L=!1;this.M=[];u_.G.J.call(this)};f.ok=function(){}; 
f.KC=function(){var a=this.k.ts();E(a)&&(a=this.g.th);z_(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=GU($(this)),b=za(VU($(this))),b={desiredBitrate:this.g.ag,creativeData:a,viewMode:this.I,clickThroughUrl:b};XU($(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.g.Ln&&(b.creativeData=this.g.Ln);z_(this,"initAd",b);B(this.M,function(a){z_(this,a.type,a.params)},this);this.L=!0;this.M=[]}; 
function y_(a,b,c){a.L?z_(a,b,c):a.M.push({type:b,params:c})}function z_(a,b,c){null!=a.ib?(null!=c||(c={}),c.session=a.P,c.type=b,a.ib.contentWindow.postMessage(tf(c),"*")):(A_(a,IP,null),a.stop())} 
f.MC=function(a){a=a.b;if(a.source==this.ib.contentWindow&&(a=rf(a.data),a.session==this.P&&s(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.o.Ai();this.k.Kj()!=a.src&&this.k.Ig(a.src,a.mimetype);this.k.play();break;case "pause":this.k.pause()}break;case "getAdRemainingTime":a=a.remainingTime;this.C||(Uk(this.O),ja(a)&&-1!=a||(a=30),this.O=Tk(this.IA,1E3*a,this));break;case "AdClickThru":nZ(this.b,new S("click"));a.url&&YO(a.url);this.na("click");break;case "AdError":A_(this, 
IP,null);this.stop();break;case "AdExpandedChange":this.na("expandedChanged");break;case "AdImpression":this.na("impression");break;case "AdLinearChange":a=a.isLinear;!this.C&&a?(this.na("contentPauseRequested"),Uk(this.O)):!a&&this.C&&(this.na("contentResumeRequested"),this.C=a,y_(this,"getAdRemainingTime"));this.C=a;break;case "AdLoaded":this.T=!0;x_(this);B_(this,"loaded");break;case "AdPaused":B_(this,"pause");break;case "AdPlaying":B_(this,"resume");break;case "AdRemainingTimeChange":this.C|| 
y_(this,"getAdRemainingTime");break;case "AdSkipped":B_(this,"skip");break;case "AdStarted":nZ(this.b,new S("impression"));nZ(this.b,new S("creativeview"));this.na("start");break;case "AdStopped":nZ(this.b,new S("stop"));this.stop();break;case "AdUserAcceptInvitation":this.C?nZ(this.b,new S("acceptinvitationlinear")):nZ(this.b,new S("acceptinvitation"));break;case "AdUserMinimize":nZ(this.b,new S("collapse"));break;case "AdUserClose":B_(this,"userClose");break;case "AdVideoComplete":B_(this,"complete"); 
break;case "AdVideoFirstQuartile":B_(this,"firstquartile");break;case "AdVideoMidpoint":B_(this,"midpoint");break;case "AdVideoStart":nZ(this.b,new S("start"));break;case "AdVideoThirdQuartile":B_(this,"thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.F&&this.na("volumeChange");0==a&&0!=this.F?(nZ(this.b,new S("mute")),this.na("mute")):0==this.F&&0!=a&&nZ(this.b,new S("unmute"));this.F=a;this.k.setVolume(a);break;case "Ping":YO(a.url)}};f.LC=function(a){A_(this,pP,a);this.stop()}; 
function A_(a,b,c){var d=LP(b,c),d=HX(d,$(a)),e=EU($(a));$O(e,d);NP(a,b,c)}function B_(a,b){nZ(a.b,new S(b));a.na(b)}f.cD=function(a){switch(a.type){case "timeUpdate":a=this.k.zd();var b=this.k.getCurrentTime();z_(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":C_(this,"ended");break;case "mediaLoadTimeout":C_(this,"stalled");break;default:C_(this,a.type)}};function C_(a,b){z_(a,"wrapperCall",{messageType:b})} 
function x_(a){a.T&&a.V&&(y_(a,"startAd"),a.C||y_(a,"getAdRemainingTime"))}f.IA=function(){y_(this,"stopAd")};function D_(){}function sY(a){if(!E(a)){var b=a[0],c=XU(b),c=(YU(b,["402"])||s(c)&&!fa(c.match("//s0.2mdn.net/instream/html5/survey/survey.html")))&&PP.b;switch(null!=XU(b)&&c?"vpaid":QU(b)&&PU(b,"nonlinear")?"overlay":PU(b,"linear")?"video":PU(b,"nonlinear")?"overlay":null){case "overlay":return QU(b)?new NY(a):new JY(a);case "video":return new vZ(a);case "vpaid":return new u_(a)}}return null};function E_(){try{return window.top.location.href}catch(a){return window.location.href}};function F_(a){T.call(this);this.g=a;a=new AR(new kR);this.b=new lY(new D_,a,eR);this.b.listen("adsManagerLoaded",this.S,!1,this);this.b.listen("adError",this.S,!1,this);this.b.listen("adLoadError",this.S,!1,this)}x(F_,T);F_.prototype.J=function(){null!=this.b&&(this.b.Ga("adsManagerLoaded",this.S),this.b.Ga("adError",this.S),this.b.Ga("adLoadError",this.S),this.b=null);F_.G.J.call(this)};var G_={HJ:0,cF:-1,hI:-2};function H_(a){this.b=a}f=H_.prototype;f.Zl=function(){return null};f.$l=function(){return this.b.C};f.Zf=function(){return this.b.C};f.Nj=function(){var a=this.b.o;return null!=a?a:new BQ};f.Ai=function(){var a=this.b;null!=a.b&&a.b.show()};f.Di=function(){};f.Gn=function(){return this.b.j};f.vj=function(){return this.b.B};f.hide=function(){};function rY(a,b){S.call(this,"adsManagerLoaded");this.j=a;this.k=b}x(rY,S);function I_(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function J_(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null;c?b.error_code=c:(c=("getMessage"in a&&ka(a.getMessage)?a.getMessage():a.message)||"",50<c.length&&(c=c.substring(0,47)+"..."),b.error_message=c)}}function K_(a,b){if(a){var c=IU(a);if(c){var d=JU(a)||[];b.ad_id=ub(d,c).join(",");if(c=DU(a))d=LU(a)||[],b.ad_sys=ub(d,c).join(",");AU(a)&&(b.skip=1)}}} 
function L_(a,b){if(a[b])return I_(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return I_(a[d]);return!1}function M_(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 N_(a,b,c,d){this.k=a;this.o=b;this.b=c;this.A=d}N_.prototype.j="";N_.prototype.g="";function O_(a){P_(a.b,9,Q_(a))}function Q_(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 R_=!1;function S_(){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 T_(){var a=q("window.google_show_companion_ad");ka(a)?a():R_=!0}function U_(){var a=q("yt.www.watch.ads.setCompanion");a&&a()}function V_(a){var b=q("yt.www.watch.ads.showForcedMpu");b&&b(a)}Xh("showCompanionAdLoaded",function(){R_&&(T_(),R_=!1)});function W_(a,b,c,d){ej.call(this);this.b=a;this.type=b+"_"+c;this.g=d;this.j=null}x(W_,ej);W_.prototype.A=function(){return this.type};W_.prototype.getCurrentAd=function(){return this.g?this.g.getCurrentAd():null};function X_(a,b,c){this.isSkippable=b;this.skip=c;this.skipTime=5;this.videoId=a};function Y_(a){this.b=a}function Z_(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 $_(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 a0(a,b){this.b=a;this.k=b}a0.prototype.o=null;a0.prototype.g=NaN;function b0(a,b,c){a.b.H("AD_LOGGING_EVENT",b,c)}function c0(a){d0(a);var b=e0(a);if(a.j){var c=f0(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}b0(a,15,b)}function g0(a){d0(a);var b=e0(a);if(isNaN(a.g))d0(a);else{var c=w()-a.g;b.ad_stl=c}b0(a,4,b)}function h0(a){d0(a);var b=e0(a),c=a.b.Rn();c?b.ad_fmt=c:d0(a);b0(a,5,b)} 
function i0(a){var b=e0(a),c=a.b.Rn();c?b.ad_fmt=c:d0(a);b0(a,14,b)}function e0(a){var b={},c=a.b.j,d=a.b.jj(),e=a.b.fr();K_(a.b.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);c&&c.videoId?b.ad_v=c.videoId:e&&(c=Ci(e),b.ad_dom=c,a.k.la.B&&(b.ad_v_url=e.substr(0,512)));b.at=a.b.A();return b}function d0(a){a.o||(a.o="InstreamAdDisplay ("+a.b.A()+")")};function j0(a,b,c,d,e){W_.call(this,b,a,2,c);this.b.subscribe("onVolumeChange",this.Zp,this);this.b.subscribe("control_toggle_play_pause",this.$p,this);this.b.subscribe("control_play",this.gm,this);this.b.subscribe("control_pause",this.fm,this);this.F=d;this.o=new a0(this,this.b);this.k=new ow(this);this.D=this.B=!1;this.C=0;this.I=e}x(j0,W_);j0.b=2E3;f=j0.prototype;f.Sb=null;f.qg=!1;f.xh=null;f.wh=null;f.yh=null; 
f.show=function(){this.o.g=w();var a;if(a=this.F){var b=Bi(a),b=b.v||b.video_id;if(!b){var c=Td(Qd(a)[5]||null).match(/^\/watch\/([^\/]*)$/i);c&&(b=c[1])}b||(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),null!=a&&1<a.length&&(b=a[1]));a=b?new Xr({video_id:b,dash:"0"}):null}else a=null;this.j=a;var d,e;this.j?(this.j.Qd=!0,d={video_id:this.j.videoId},e=new X_(this.j.videoId,this.I,v(this.nx,this)),this.j.subscribe("onStatusFail",this.Sp,this),this.j.subscribe("dataloaded",this.Tp,this),a=this.b.R(),a=new EL(a.j), 
a.ba="adunit",a.Gc=!0,a.k=this.type,a=HL(a,this.j),ps(this.j,a)):k0(this);this.B||(l0(this.b,-1,d,e),this.Hp())};f.nx=function(){this.b.k.o.S("skip")};function m0(a){a.j&&(a.j.ga("onStatusFail",a.Sp,a),a.j.ga("dataloaded",a.Tp,a))}f.Tp=function(){m0(this);hs(this.j);var a=new dN(this.b.R());(a=Vr(this.j.I,fN(a,this.j)))?(a=a.b)?(a=new J(Er(a)),a.b.set("autoplay","1"),this.g.setMediaUrl(a.toString()),k0(this)):n0(this,Error("Failed to determine ad media resource.")):n0(this,Error("Failed to determine ad media format."))}; 
function k0(a){if(nh||2.2<=kq&&3>kq){var b=w()-a.o.g,b=j0.b-b;a.C=L(v(a.gr,a),Math.max(0,b));O(Jt(a.b.b),"ad-interstitial-showing")}else a.gr()} 
f.gr=function(){o0(this);this.Sb=p0(this.b,!0);this.yh=Jt(this.b.b);if(this.b.la.O)ed(H("video-ad-status-bar"));else{var a=Jt(this.b.b);this.xh=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=Zc("div");O(b,"ytp-ad-progress");a.appendChild(b);this.wh=b;this.k.listen(this.Sb,"timeupdate",this.dA)}sg(this.yh,["ad-showing","ad-interrupting"]);this.k.listen(dI(this.b.g),"mouseup",this.bA);this.k.listen(this.Sb,"waiting",this.Hp);this.b.subscribe("onResize",this.Im,this);try{this.k.listen(this.g, 
"adError",this.aA);this.k.listen(this.g,"click",this.$z);this.k.listen(this.g,"complete",this.Mm);this.k.listen(this.g,"pause",this.ar);this.k.listen(this.g,"start",this.br);this.k.listen(this.g,"skip",this.cA);this.Im();var c=this.b,d=c.g,e=q0(c);d.X.R().$b&&(Zf(d.b,e),Of(d.b,0,0));this.g.start()}catch(g){n0(this,g)}};f.br=function(){this.qg=!0;this.B=!1;this.D||(this.D=!0,g0(this.o),r0(this.b,1));Ku(this.b,!0);l0(this.b,1);this.H("adPlay",this)}; 
f.ar=function(){this.qg=!1;Ku(this.b,!1);l0(this.b,2)};f.cA=function(){i0(this.o);this.Mm()};f.Mm=function(){this.B||(h0(this.o),this.qg=!1,this.B=!0,l0(this.b,0),r0(this.b,0),this.H("adEnd",this))};f.aA=function(a){n0(this,a.j)};function n0(a,b){a.qg=!1;a.B=!0;l0(a.b,0);a.H("adError",b)}f.Sp=function(){m0(this);n0(this,Error("Request to get video data failed."))};f.$z=function(){c0(this.o);this.H("select")};f.bA=function(a){a=new F(Mg(a),Ng(a));this.o.j=a}; 
f.dA=function(a){var b=Zv(this.g.getRemainingTime());this.xh.innerHTML=b;b=this.jj()?this.Sb.getCurrentTime()/this.jj():0;b=$v(b);this.wh.style.width=b+"%";this.Sb.ended&&L(v(this.Mm,this,a),50)};f.Hp=function(){!this.qg&&this.D||l0(this.b,3)}; 
f.J=function(){this.b.ga("control_toggle_play_pause",this.$p,this);this.b.ga("control_play",this.gm,this);this.b.ga("control_pause",this.fm,this);this.b.ga("onResize",this.Im,this);this.b.ga("onVolumeChange",this.Zp,this);this.k.removeAll();m0(this);this.g.destroy();this.Sb&&(bI(this.b.g),this.Sb=null);o0(this);this.xh&&(this.xh.innerHTML="",this.xh=null);this.wh&&(ed(this.wh),this.wh=null);this.yh&&(tg(this.yh,["ad-showing","ad-interrupting"]),this.yh=null);this.B=!0;j0.G.J.call(this)}; 
function o0(a){a.C&&(M(a.C),a.C=0,P(Jt(a.b.b),"ad-interstitial-showing"))}f.jj=function(){return this.Sb?this.Sb.duration||0:null};f.Rn=function(){return null};f.fr=function(){return this.Sb&&this.Sb.currentSrc?this.Sb.currentSrc:null};f.Zp=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Ib(a/100,0,1),this.g.setVolume(a))};f.$p=function(){this.qg?this.fm():this.gm()};f.gm=function(){this.Sb&&(this.g.resume(),this.br())};f.fm=function(){this.Sb&&(this.g.pause(),this.ar())};f.Im=function(){q0(this.b)};function s0(a,b,c,d){W_.call(this,b,a,2,c);this.b.subscribe("control_toggle_play_pause",this.mp,this);this.b.subscribe("control_play",this.ll,this);this.b.subscribe("control_pause",this.kl,this);this.B=new a0(this,this.b);this.k=new ow(this);this.o=t0(b);this.o.subscribe("statechange",this.Wd,this);this.o.subscribe("internalvideodatachange",this.lp,this);this.C=this.D=!1;this.F=d}x(s0,W_);f=s0.prototype;f.Yj=!1;f.Ug=null;f.Tg=null;f.Wg=null; 
f.show=function(){var a=this.b;u0(a.app,t0(a));this.B.g=w();this.Wg=Jt(this.b.b);this.o.subscribe("progresssync",this.zp,this);if(this.b.la.O)ed(H("video-ad-status-bar"));else{a=Jt(this.b.b);this.Ug=H("video-ad-time-left",a);var a=H("html5-ad-progress-list",a),b=Zc("div");O(b,"ytp-ad-progress");a.appendChild(b);this.Tg=b}sg(this.Wg,["ad-showing","ad-interrupting"]);this.b.subscribe("onResize",this.yl,this);try{this.k.listen(this.g,"adError",this.oz),this.k.listen(this.g,"click",this.nz),this.k.listen(this.g, 
"complete",this.lz),this.k.listen(this.g,"engagedview",this.mz),this.k.listen(this.g,"pause",this.Gq),this.k.listen(this.g,"start",this.Hq),this.k.listen(this.g,"skip",this.pz),this.yl(),this.g.start()}catch(c){v0(this,c)}};f.lp=function(a,b,c){"newdata"==a&&this.j!=c&&(a={video_id:c.videoId},b=new X_(c.videoId,this.F,v(this.g.skip,this.g)),l0(this.b,-1,a,b));this.j=c};f.Wd=function(a){a=a.state;W(a,128)&&v0(this,Error(a.b.message||"Video player error."))}; 
f.Hq=function(){this.Yj=!0;this.C=!1;this.D||(this.D=!0,g0(this.B),r0(this.b,1));l0(this.b,1);this.H("adPlay",this)};f.Gq=function(){this.Yj&&(this.Yj=!1,l0(this.b,2))};f.lz=function(){h0(this.B);w0(this)};function w0(a){var b=new zO;b.j=a.C;b.g=w();a.j&&a.j.Fa&&(b.b=a.j.Fa);jO(t0(a.b));l0(a.b,0,b);r0(a.b,0);a.H("adEnd",a)}f.mz=function(){var a=this.B;a.b.H("AD_LOGGING_EVENT",777,e0(a))};f.pz=function(){this.C=!0;i0(this.B);w0(this)}; 
f.oz=function(a){var b={};b.error_code=a.j.getErrorCode();var c=this.B;d0(c);var d=e0(c);b&&ta(d,b);d.ad_error=32;b0(c,7,d);v0(this,a.j)};function v0(a,b){a.o.Ef();l0(a.b,0);a.H("adError",b)}f.nz=function(){c0(this.B);this.g.pause();this.H("select")};f.zp=function(){var a=this.b.b.Pf();this.b.la.O||(this.Ug.innerHTML=Zv(a.duration-a.current),a=$v(a.current/a.duration),this.Tg.style.width=a+"%")}; 
f.J=function(){this.b.ga("control_toggle_play_pause",this.mp,this);this.b.ga("control_play",this.ll,this);this.b.ga("control_pause",this.kl,this);this.b.ga("onResize",this.yl,this);this.k.removeAll();this.o.subscribe("statechange",this.Wd,this);this.o.ga("internalvideodatachange",this.lp,this);this.o.ga("progresssync",this.zp,this);var a=this.b;if(a.j){var b=a.app,a=a.j;x0(b);a!=b.j&&u0(b,b.j)}this.g.destroy();this.Ug&&(this.Ug.innerHTML="",this.Ug=null);this.Tg&&(ed(this.Tg),this.Tg=null);this.Wg&& 
(tg(this.Wg,["ad-showing","ad-interrupting"]),this.Wg=null);this.C=!1;s0.G.J.call(this)};f.jj=function(){return this.o.wd()};f.Rn=function(){return this.j&&this.j.b?this.j.b.mimeType:null};f.fr=function(){return this.j&&this.j.U?Er(this.j.U.b):null};f.mp=function(){this.Yj?this.kl():this.ll()};f.ll=function(){this.g.resume();this.Hq()};f.kl=function(){this.g.pause();this.Gq()};f.yl=function(){Zf(aI(this.b.g),q0(this.b))};function y0(a,b){this.g=a;this.b=b}function z0(a,b,c){a.g.H("AD_LOGGING_EVENT",b,c)}function A0(a){var b={};K_(a.g.getCurrentAd(),b);a.o&&a.k&&(b.ot=a.k-a.o);var c;c=a.b.isFullscreen()?2:a.b.R().Zd?1:0;b.ad_ps=c;b.at=a.g.A();return b};function B0(a,b,c){W_.call(this,b,a,1,c);this.o=new y0(this,b);this.k=new ow(this)}x(B0,W_);f=B0.prototype;f.Hd=null;f.Dm=!1; 
f.show=function(){if(!this.Dm||!C0(this.b)){var a=Jt(this.b.b);O(a,"ad-showing");this.Hd=aI(this.b.g);a=this.g.getCurrentAd().getHeight();this.Hd.style.height=Pf(a,!0);O(this.Hd,"ad-overlay");this.k.listen(this.Hd,"mouseup",this.Cz);try{this.k.listen(this.g,"userClose",this.Dz);this.k.listen(this.g,"click",this.Bz);this.k.listen(this.g,"adError",this.Az);D0(this,"normal");this.g.start();var b=this.o;b.o=w();var c=A0(b);z0(b,3,c);this.b.subscribe("onResize",this.Em,this);this.b.subscribe("onStateChange", 
this.Fq,this);this.H("adEnd",this)}catch(d){this.H("adError",d)}}};f.J=function(){this.k.removeAll();this.b.ga("onResize",this.Em,this);this.b.ga("onStateChange",this.Fq,this);var a=Jt(this.b.b);P(a,"ad-showing");this.g&&(this.g.destroy(),this.g=null);this.Hd&&P(this.Hd,"ad-overlay");this.Hd=null;this.Dm=!1;B0.G.J.call(this)};f.Dz=function(){this.Hd&&this.g&&this.g.getCurrentAd()&&(this.Hd.style.height=Pf(0,!0));this.Dm=!0;var a=this.o;a.k=w();var b=A0(a);z0(a,6,b)}; 
f.Bz=function(){this.b.pauseVideo();var a=this.o;a.k=w();var b=A0(a);if(a.j){var c=f0(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}z0(a,100,b)};f.Cz=function(a){this.o.j=a.target==a.currentTarget?null:new F(a.pageX,a.pageY)};f.Az=function(a){this.H("adError",a.j)};f.Fq=function(a){W(a.state,16)&&D0(this,"normal")};function D0(a,b){a.B!=b&&(a.B=b)}f.Em=function(){};function E0(a,b,c,d){this.I=a;this.b=b.b;this.B=b;this.M=b.getId();this.Z=c;this.j=d;this.k=new N_(this.b,this.Le(),c,d);this.o=null;this.F=new Yk(this);this.g=new Yk(this)}x(E0,Mh);E0.b="rm";E0.g=10;E0.A=200;E0.k=200;E0.o=190;E0.j=100;f=E0.prototype;f.im=null;f.load=function(){var a;a=this.Z;a=a.la.B?q0(a):a.app.g.j.Hc();var b;this.Z.la.g?b=!1:(b=0<(this.j&3)?E0.o:E0.k,b=a.width<E0.A||a.height<b);if(b){b=this.k;var c=Q_(b);c.ck_wh=a.width+"x"+a.height;F0(b.b,14,c);U_();this.Ne(Error("The player size is too small."))}else G0(this)}; 
f.In=function(){var a=new cQ;a.baseYouTubeUrl=this.Z.R().tb;a.contentId=ut(this.Z.app).videoId;a.Tk=YH(this.Z.R(),"927622");a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=this.Z.la.O;a.youTubeAdNamespace=this.Le();a.showContentThumbnail=this.Z.la.Lo;a.Ln=this.Z.la.vk;return a};f.Le=function(){return this.I};function H0(a){var b=E0.g;a.b=b;a.k.k=b}function I0(a,b){a.im=b;a.k.j=b.A()}function J0(a,b){var c=q("yt.www.watch.ads.setAdId");c&&c(b);a.k.g=b} 
function K0(a){a=a.b;return 0==a||-1==a?a:1E3*a} 
function G0(a){a.o=a.Z.Yk;if(a.o){O_(a.k);var b=new jX;b.adTagUrl=a.tg();var c=a.Z.la.qf;c&&(b.adsResponse=c);c=q0(a.Z);b.linearAdSlotWidth=c.width;b.linearAdSlotHeight=c.height;b.nonLinearAdSlotWidth=c.width;b.nonLinearAdSlotHeight=E0.j;if(c=IL(a.Z.R()))b.lastActivity=c;a.Z.la.yb&&(b.tagForChildDirectedContent=!0);YH(a.Z.R(),"937420")&&(b.ij=!0);var c=ut(a.Z.app),d=a.Z;b.ih={"[CONTENT_V]":c.videoId,"[CPN]":c.Fa,"[LACT]":{toString:function(){return null==d||d.ha()?d=null:IL(d.R()).toString()}}};a.o.listen("adsManagerLoaded", 
a.Br,!1,a);a.o.listen("adError",a.Ar,!1,a);a.ak(a.o,b)}}f.Br=function(a){if(a.k===this){Jq("aml");try{var b=this.In(),c=a.j}catch(d){this.ke(d);return}this.g.listen(c,"companionBackfill",v(this.YB,this,c));this.g.listen(c,"loaded",v(this.$B,this,c));this.g.listen(c,"adError",v(this.ZB,this,c));this.g.listen(c,"allAdsCompleted",ca);this.g.listen(c,"contentPauseRequested",ca);this.g.listen(c,"contentResumeRequested",ca);a.j.fd(new H_(this.Z.k),{},b);c=a.j;try{c.init("normal")}catch(e){c.destroy(),this.ke(e)}}}; 
f.$B=function(a,b){this.g.removeAll();var c=b.getAd(),d=yU(c),e=this.k,g=Q_(e);g.ad_man=d?"instream":"overlay";P_(e.b,12,g);e=a.getMediaUrl();switch(d?this.zh(a,c,e):this.bf(a,c)){case 0:L0(this.B,this.im,this.b);break;case 1:a.destroy();this.Ne(Error("Unable to create a display state."));break;case 2:c=this.k;F0(c.b,21,Q_(c));a.destroy();this.Ne(Error("Fallback to next ad."));break;default:a.destroy()}};f.ZB=function(a,b){this.g.removeAll();a.destroy();this.ke(b.j)}; 
f.Ar=function(a){var b=a.j;"adLoadError"==b.j&&a.k===this&&this.ke(b)};f.YB=function(){T_()};f.zh=function(a,b,c){J0(this,IU(b));var d;this.Z.la.eb?d=new s0(this.Le(),this.Z,a,AU(b)):d=new j0(this.Le(),this.Z,a,c,AU(b));I0(this,d);return 0};f.bf=function(a,b){J0(this,IU(b));I0(this,new B0(this.Le(),this.Z,a));return 0};f.ke=function(a){if(a){var b=this.k,c=Q_(b);a&&J_(a,c);F0(b.b,32,c);this.Ne(a)}};f.Ne=function(){M0(this.B)}; 
f.J=function(){this.o&&(this.o.Ga("adsManagerLoaded",this.Br,!1,this),this.o.Ga("adError",this.Ar,!1,this));this.F.removeAll();this.g.removeAll();E0.G.J.call(this)};f.ak=function(a,b){try{b.location=E_(),b.uh=a.g.B,mY(a.b,b,this),Jq("ra")}catch(c){this.ke(c)}};function N0(a,b){this.b=a;this.g=b};function O0(a){W_.call(this,a,2,3,null);this.k=this.o=0}x(O0,W_);O0.prototype.show=function(){var a=q("yt.www.watch.ads.loadAfc");a&&a();this.H("adEnd",this);this.o=Ve(v(this.B,this),1E3)};O0.prototype.J=function(){P0(this);O0.G.J.call(this)};function P0(a){a.o&&(We(a.o),a.k=0)}O0.prototype.B=function(){var a=q("yt.www.watch.ads.isAfcAdVisible");this.k++;var b={};b.at=this.A();10<=this.k||!a?(P0(this),this.H("AD_LOGGING_EVENT",2,b)):a()&&(P0(this),this.H("AD_LOGGING_EVENT",3,b))};function Q0(a,b,c){E0.call(this,2,a,b,c);this.A=new N0(this.Z.la,this.Z.R());S_()}x(Q0,E0);Q0.prototype.In=function(){var a=Q0.G.In.call(this);a.kt=0==this.M;a.BD=C0(this.Z)?a.kt:!0;return a}; 
Q0.prototype.tg=function(){var a=this.A,b=this.j,c=K0(this),d={},e;if(a.b.Ho&&(e=4==b&&a.b.Da?a.b.Da:a.b.wf)){0==e.lastIndexOf("http:",0)&&(e=e.substr(5));dc(d,Bi(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.Aa,a.b.fi||(d.scs="false",d.targeting="content"),d.client=a.b.bi,d.description_url=a.b.Rd,d.loeid=a.b.gi,d.cust_gender=a.b.sf,d.host=a.b.host,d.hl=a.g.B,d.max_ad_duration=a.b.vf,a.b.Ca&&(d.adtest="on"),isNaN(a.b.xa)||(d.cust_age= 
a.b.xa),isNaN(a.b.kb)||(d.ht_id=a.b.kb),a.b.ad&&(d.yt_pt=a.b.ad),a.b.Be&&(d.video_cpm=a.b.Be),a.b.P&&(d.as_dbp=a.b.P),d.ytdevice=a.b.Ae,d.ad_type=M_(b),0<(b&3)?a.b.mb&&(d.channel=a.b.mb.join("+")):b&4&&a.b.wb&&(d.channel=a.b.wb.join("+")),a.b.ka&&(d.lsv=1),a.b.yb&&(d.tfcd=1));d.videoad_start_delay=c;d.url="embedded"==a.g.ba&&a.g.g?a.g.g:a.b.Rd;var a=d,b={},h;for(h in a)ga.call(void 0,a[h])&&(b[h]=a[h]);return e+zi(b,"&")}; 
Q0.prototype.bf=function(a,b){if(this.Z.la.g)return 1;0==this.b&&(H0(this),P_(this.Z,1));return Q0.G.bf.call(this,a,b)};Q0.prototype.Ne=function(a){var b=this.Z.la;b.g?Q0.G.Ne.call(this,a):b.jb||this.j&4?(I0(this,new O0(this.Z)),L0(this.B,this.im,this.b)):Q0.G.Ne.call(this,a)};function R0(a,b){if(a){this.Ht=a;this.Ct=b;var c,d=this.Ht,e=d.indexOf(";sz=");c=yi(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{lE:d[0],mE:d[1],nE:c})this.Bt=c.lE,this.Dt=c.mE,this.Et=c.nE}}f=R0.prototype;f.Ht="";f.Bt="";f.Ct=!1;f.ho="";f.Dt="";f.Et=null; 
f.Uj=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=bc(this.Et);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.Ct&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.ho||(this.ho=Math.floor(999999999*Math.random()).toString()); 
k.ord=this.ho;d&&d.length&&"sz"in k&&delete k.sz;e=zi(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.Bt,"pfadx",this.Dt,";",e,"?"].join("")};function S0(a){this.b=a?a:""}S0.prototype.Uj=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 T0(a,b){B0.call(this,1,a,b)}x(T0,B0);T0.prototype.Em=function(){};T0.prototype.A=function(){return"1_3"};function U0(a,b,c){E0.call(this,1,a,b,c);a=this.Z.la;this.L=a.xi?new S0(a.V):new R0(a.V,a.fb)}x(U0,E0);U0.prototype.tg=function(){return this.L.Uj(this.b,this.j)}; 
U0.prototype.bf=function(a,b){J0(this,IU(b));var c=null!=b.g?b.g.L:{};if(L_(c,E0.b))return 1==this.j||C0(this.Z)||U_(),a.sendImpressionUrls(),this.Z.la.Ck?(I0(this,new O0(this.Z)),0):2;if(L_(c,"blockAllAds"))return a.sendImpressionUrls(),I0(this,new T0(this.Z,a)),0;if(L_(c,"hideMaster"))return I0(this,new T0(this.Z,a)),0;if(this.Z.la.g)return 1;I0(this,new B0(this.Le(),this.Z,a));return 0};function V0(a,b,c,d){U0.call(this,a,b,c|d);this.D=c;this.C=d;this.A=null;S_()}x(V0,U0);var W0={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=V0.prototype;f.tg=function(){if(this.Z.la.xi){var a=new S0(this.Z.la.U);return a.Uj(this.b,this.D)}a=new R0(this.Z.la.U,this.Z.la.fb);return a.Uj(this.b,this.D)};f.ak=function(a,b){if(this.C){b.youTubeAdType=M_(this.C);var c=this.Z.la.Aa;c&&(b.youTubeExperimentIds=c);b.youTubeVideoAdStartDelay=K0(this)}V0.G.ak.call(this,a,b)}; 
f.zh=function(a,b,c){X0(this,a);return 1!=this.A&&2!=this.A?1:V0.G.zh.call(this,a,b,c)};f.bf=function(a,b){X0(this,a);switch(this.A){case 1:return V0.G.bf.call(this,a,b);case 2:var c;this.Z.la.g?c=1:(0==this.b&&(H0(this),P_(this.Z,1)),J0(this,IU(b)),I0(this,new B0(2,this.Z,a)),c=0);return c;default:return 1}};f.Le=function(){return this.A||0};function X0(a,b){var c=LU(b.getCurrentAd()),c=E(c)?DU(b.getCurrentAd()):c[0],c=W0[c.toUpperCase()];a.A=c?c:0};function Y0(a,b){var c=b.la;this.A=c.ri;var d=0,c=c.Ha.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);E0.call(this,2,a,b,d)}x(Y0,E0);Y0.g="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";Y0.j="43"; 
Y0.b=function(a){var b=new sv;Li(a,{format:"RAW",method:"GET",timeout:5E3,qh:function(){b.sh(Error(a+" timed out"))},onError:function(c){b.sh(Error("Problem loading "+a+" with status code "+c.status))},onSuccess:function(a){b.wt(a)}});return b};Y0.prototype.tg=function(){return""}; 
Y0.prototype.ak=function(a,b){var c=this.j;c&1||c&4||c&8?this.A?c&8?V_(this.A):("goo.gl"==Ci(this.A)?(c=Y0.b(Y0.g+this.A),yv(c,function(a){a=rf(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",Y0.j);return Y0.b(a.toString())},this)):c=Y0.b(this.A),yv(c,function(c){b.adsResponse=c.responseText;b.location=E_();b.uh=a.g.B;mY(a.b,b,this)},this),zv(c,null,this.ke,this)):this.ke(Error("Invalid empty URL")): 
this.ke(Error("Invalid request type: "+c))};function Z0(a,b,c,d){this.b=a;this.k=c;this.j=d;this.o=b;nh||oh?this.g="html5_ios":ph?this.g="html5_android":sr()?this.g="html5_ps3":"leanback"==this.k.ba?this.g="html5_tv_leanback":$0(this)?this.g="html5_desktop":this.g="html5"}var a1="kyvDG3GPNY0 F_HOziu_duk T8uOdgwGUvc Ojs8LzuieSI JzTfd-RlK4M bfHSqiuB_QA b2nJxZl0xEk Bj9O5BESM1o tu3C_TjRpGM FQYmOyuKtwg FEWg27qS_aY 9_edKusM2j0 SbL08XsN9rk u31pf-9Rsjc 64J_K7R7Bu8 wDzg2Eh-TiQ qERY1A8AnM0 B5uvc8NhkwI".split(" "); 
function $0(a){return D(a1,a.b.T)||YH(a.k,"952600")};function b1(a,b,c){E0.call(this,4,a,b,c);this.A=new Z0(this.Z.la,ut(this.Z.app).Qa,this.Z.R(),c)}x(b1,E0); 
b1.prototype.tg=function(){var a;var b=this.A;if(b.b.oa&&b.b.T){a={};var c="youtube_watch_"+b.g;a.nw="10613";a.asnw=b.b.oa;a.ssnw=b.b.oa;a.caid=b.b.T;a.vdur=b.o;a.csid=c;a.resp="vast2";c={};isNaN(b.b.Ia)||(c._fw_d_001=b.b.Ia);b.b.Va&&(c._fw_d_002=b.b.Va);b.b.xb&&(c["_fwu:10613:lang"]=b.b.xb);b.b.P&&(c._fw_dbp=b.b.P);c._fw_distributorvideoassetid=b.b.T;c._fw_yt_type=b.b.I?"short":"long";if($0(b)){a.prof="10613:10613_youtube_html5_2014";a.crtp="youtube";a.flag="+slcb+qtcb+amcb+exvt";var d="",e;b.j& 
1&&(e={slid:"preroll",ptgt:"a",slau:"yt_html5_pre",tpos:"0"},d=zi(e,"&")+";",e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"yt_html5_dis1",flag:"+cmpn"},d+=zi(e,"&")+";");b.j&4&&(e={slid:"overlay",ptgt:"a",slau:"yt_html5_overlay",tpos:"10"},d+=zi(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"yt_html5_dis2",flag:"+cmpn"},d+=zi(e,"&")+";");b.j&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"yt_html5_dis_standalone"},d+=zi(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+ 
zi(a,"&")+";"+zi(c,"&")+";"+b}else{d="10613:10613_youtube_"+b.g.split("_")[0];a.prof="10613:10613_youtube_"+b.g;a.crtp="vast2s";a.flag="+emcr";e={ptgt:"a",slid:"preroll"};var g="";b.b.j&&!b.b.b?g=";linear-skippable":!b.b.j&&b.b.b&&(g=";video");e.slau="preroll"+g;e.w="480";e.h="360";e.tpos="0";e.tpcl="preroll";e.envp=d;e.cd="1440,900";a="//2975c.v.fwmrm.net/ad/g/1?"+zi(a,"&")+";"+zi(c,"&")+";"+zi(e,"&")}}else a="";return a};b1.prototype.zh=function(a,b){return 0!=this.b?1:b1.G.zh.call(this,a,b,null)}; 
b1.prototype.bf=function(a,b){return L_(null!=b.g?b.g.L:{},E0.b)?(this.B.k=a,2):1};function c1(a,b,c){E0.call(this,13,a,b,c)}x(c1,E0);var d1=[{En:4,size:"480x70",as:"300x250"},{En:1,size:"480x360",as:"300x60"}]; 
c1.prototype.tg=function(){var a=new J(this.Z.la.uf,!0),b=this.j,c=d1.filter(function(a){return(b&a.En)==a.En}),d=c.map(function(a){return a.size}).join("|");K(a,"sz",d);c=c.map(function(a){return a.as}).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 e1(a,b,c){this.j=a;this.b=b;this.g=c||0}e1.prototype.create=function(a,b){switch(this.j){case 1:return new Q0(a,b,this.b);case 2:return new U0(a,b,this.b);case 3:return new V0(a,b,this.b,this.g);case 5:return new b1(a,b,this.b);case 4:return new Y0(a,b);case 6:return new c1(a,b,this.b);default:return null}};function f1(a){return 0<((a.b|a.g)&3)};function g1(a,b,c,d,e){ej.call(this);this.va=b;this.j=a;this.b=c;this.o=d;this.k=this.g=null;this.A=!!e}x(g1,ej);f=g1.prototype;f.wm=!0;f.tc=!1;f.isVisible=!0;f.md="unloaded";f.Tm=!1;function h1(a){return 0==a.b?i1(a)&&j1(a)?-2147483648:0:-1==a.b||-2==a.b?2147483647:1E3*a.b}function k1(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 i1(a){return"loaded"==a.md||"error"==a.md} 
function j1(a){if(!i1(a))throw Error("Preroll status is undefined before ad load.");return 0==a.b&&a.tc}function M0(a){a.md="loading";0==a.b&&!jb(a.o,f1)&&zu(a.j);if(a.A)a.md="loaded",a.tc=!0,l1(a);else{var b=a.o.shift();b?(0==a.b&&m1(a.j,"nl"),b=b.create(a,a.j),R(a,b),b.load()):(P_(a.j,2,n1(a,{})),o1(a,!1),a.md="error",l1(a))}}f.getId=function(){return this.va};function p1(a){a.g&&(a.g.ga("adEnd",a.Fs,a),a.g.ga("adError",a.Gs,a),a.g.ga("AD_LOGGING_EVENT",a.Hs,a),a.g.ga("select",a.Es,a))} 
function L0(a,b,c){a.g=b;a.b=c;R(a,a.g);0==a.va&&(a.j.A.at=a.g.A());a.g instanceof j0||a.g instanceof s0?a.tc=!0:a.g instanceof O0?a.isVisible=!1:a.g instanceof T0&&(a.isVisible=!1);a.md="loaded";l1(a)}function l1(a){a.H("adBreakComplete",a)} 
f.show=function(){this.Tm?this.g instanceof B0&&D0(this.g,"normal"):(this.Tm=!0,(this.g instanceof j0||this.g instanceof s0)&&m1(this.j,"bs"),this.g.subscribe("adEnd",this.Fs,this),this.g.subscribe("adError",this.Gs,this),this.g.subscribe("AD_LOGGING_EVENT",this.Hs,this),this.g.subscribe("select",this.Es,this),this.g.show(),o1(this,!0))};function o1(a,b){a.k&&(a.k.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.k=null)} 
f.Fs=function(){if(this.tc){p1(this);var a=this.j;if(a.la.$h&&!a.cl){var b=a.R().tb;pf(b+"mac_204?action_fcts=1");kj("CLAD","tlip="+w());a.cl=!0}}l1(this)};f.Gs=function(a){if(a){var b={};J_(a,b);n1(this,b);F0(this.j,32,b)}p1(this);l1(this)};f.Hs=function(a,b){n1(this,b);P_(this.j,a,b)};f.Es=function(){this.wm=!1};function n1(a,b){b.sst=a.b;b.sidx=0}f.J=function(){p1(this);this.k=this.g=null;g1.G.J.call(this)};function q1(a){this.Cv=a}function r1(a){try{var b=yD(a).getElementsByTagName("AdBreak"),c=C(b,function(a){a=a.getAttribute("time");return $a(a)});return new q1(c)}catch(d){return new q1([0])}};function s1(a){this.b=a};function t1(a,b){this.D=a;this.aa=this.D.lc;this.B="leanback"==this.D.ba;this.g=this.aa||this.B;var c=ZH(a,"927618","927619","947208","947209","947206"),c=this.B&&c,d=this.aa&&oh&&ZH(this.D,"947202","947215");this.O=!this.g||d;this.eb=a.$b&&(!this.g||c)||d;this.apply(b)}var u1={aF:"m",WE:"f"};f=t1.prototype; 
f.apply=function(a){var b=I_(a.instream),c=I_(a.trueview),d=I_(a.aftv);this.ta=a.ad_slots;this.wa=a.ad_breaks;this.pf=a.ad_flags||0;this.xa=parseInt(a.cust_age,10);this.Aa=a.cafe_experiment_id;var e=parseInt(a.cust_gender,10);isNaN(e)||(this.sf=e);this.V=a.ad_tag;this.Ca=!!a.adtest;this.wf=a.afv_ad_tag;this.Da=a.afv_invideo_ad_tag;this.ma=!!a.afv_merge_enabled;this.Ho=!this.ma&&YH(this.D,"924617")||YH(this.D,"932625");this.Ia=parseInt(a.ad_age,10);this.tf=a.cid;this.Rd=a.ad_eurl;this.U=a.dynamic_allocation_ad_tag; 
this.ca=a.excluded_ads;this.Ha=a.force_ad_type;this.ri=a.force_ad_url;this.Va=Vb(u1,function(b){return b==a.ad_gender});this.P=a.dbp;this.Ck=I_(a.afc_rm_fallback);this.fb=!!a.mpu;this.host=a.ad_host;this.kb=parseInt(a.ad_host_tier,10);this.M=I_(a.afv)&&!this.g;this.k=d&&c;this.o=d&&b&&!I_(a.no_afv_instream);this.F=I_(a.dclk);this.xi=I_(a.gpt_migration);this.ka=1==a.livestream;this.fa=I_(a.forced_ad)&&!this.g;this.L=1==parseInt(a.tpas_ad_type_id,10);this.Yh=!!a.fqsf;this.b=b;this.A=I_(a.invideo)&& 
!this.g;this.N=I_(a.mpu)&&!this.g;this.$h=I_(a.shortform);this.I=I_(a.sffb);this.hi=I_(a.xfp);this.uf=a.xfp_tag;this.fi="1"==a.as_launched_in_country;this.Do=!this.g&&!this.L;this.j=c;b=a.ad_channel_code_instream;this.mb=s(b)?b.split(","):[];this.xb=a.ad_language_iso639_2;this.gi=a.loeid;b=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(b)&&(b=2E3);this.ti=b;b=parseInt(a.afv_instream_max,10);isNaN(b)&&(b=15E3);this.vf=b;this.C=parseInt(a.midroll_freqcap,10);isNaN(this.C)&&(this.C=-1);this.rf= 
parseInt(a.midroll_prefetch_size,10)||0;b=a.ad_channel_code_overlay;this.wb=s(b)?b.split(","):[];this.ad=a.yt_pt;this.bi=a.ad_video_pub_id;"boolean"==typeof a.show_content_thumbnail&&(this.Lo=a.show_content_thumbnail);this.yb=I_(a.tag_for_child_directed);this.qf=a.server_prefetched_vast;this.vk=a.surveyCreativeData;this.Be=parseInt(a.afv_video_min_cpm,10);this.jb=d&&this.I&&!this.M;this.di=this.M||this.jb;this.Ae=parseInt(a.ad_device,10);this.T=a.tpas_video_id;this.oa=a.tpas_partner_id;this.ob=v1(this)}; 
function v1(a){if(A(a.U))return!1;var b=(a.b||a.j)&&a.F;a.I&&a.F&&(b=b||a.A||a.N);if(!b)return!1;b=a.k||a.o;if(!(b||a.I&&a.M))return!1;var c=a.U.length+330+(a.xi?25:102);window.document.referrer&&(c+=Ba("ref="+window.document.referrer).length);b||(c+=41);return c<=a.ti}f.Do=!0;f.Ck=!1;f.xi=!1;f.hi=!1;f.Lo=!0;f.Ho=!1;function w1(a,b,c){this.b=a;this.A=b;this.j=c;this.o=this.g=-1;this.j&&0<this.b.la.C&&this.b.subscribe("endseeking",this.k,this)}x(w1,Mh);function x1(a,b){y1(a);0<b&&(a.o=L(v(a.k,a),1E3*b))}function y1(a){-1!=a.o&&(M(a.o),a.o=-1)} 
w1.prototype.k=function(){var a=this.b.la.C;if(this.j&&!(0>=a)){var b=this.b.b.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Nb(this.A.g,function(a){if(a.isVisible&&!(0>=z1(this,a))){var g;g=a.getId();g=this.A.k[g];if(z1(this,a)>b){var l=!A1(this,a);l!=g.fe&&(g.fe=l,c.push(g));l||(g=z1(this,a)-b,g<e&&(e=g,d=a))}else g.fe||(g.fe=!0,c.push(g))}},this);0<c.length&&B1(this.b,c);if(d){var g=0;0<this.g&&(g=w()/1E3-this.g);x1(this,a-g-e+2)}else y1(this)}}; 
function A1(a,b){if(!a.j||!(0<b.b)&&-1!=b.b)return!1;var c=a.b.la.C;if(0>=c||0>=a.g)return!1;var d=w()/1E3,e=z1(a,b)-a.b.b.getCurrentTime();0<e&&(d+=e);return d-a.g<=c}function z1(a,b){return-1==b.b?a.b.b.getVideoData().Qa:b.b}w1.prototype.J=function(){y1(this)};function C1(a,b){this.b=b;this.A=[];this.g={};this.k={};this.Z=a;var c=!a.la.ka&&jb(this.b,function(a){return 0<a.b||-1==a.b});this.D=new w1(this.Z,this,c);this.F=jb(this.b,function(a){return 0==a.b})}x(C1,Mh);f=C1.prototype;f.Id=null;function D1(a){a.A.length||(a.A=hb(a.b,function(a){return"unloaded"==a.md}),0==a.A.length?zu(a.Z):(a.F||zu(a.Z),E1(a)))}function E1(a){if(a.A.length){var b=a.A.shift();b.subscribe("adBreakComplete",a.hg,a);M0(b)}} 
f.hg=function(a){a.ga("adBreakComplete",this.hg,this);L(v(this.VD,this,a),0)}; 
f.VD=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=h1(c)-1);0==a.va&&(m1(this.Z,"bl"),j1(a)||m1(this.Z,"fb"));if(c="loaded"!=a.md||0==a.va&&j1(a)&&c&&1E3*this.Z.b.getCurrentTime()>h1(c)){if(b&&i1(b)){var e=h1(b);e>d&&(d=e);F1(this,b);G1(this,b,d)}}else this.g[a.getId()]=a,G1(this,a,d);zu(this.Z);c&&this.Kf(a);Qb(this.g)==this.b.length&&this.D.k();E1(this)}; 
function G1(a,b,c){var d=h1(b);if(!isNaN(d)){var e={};e.priority=-2!=b.b?2:3;e.id=String(b.getId());e.visible=b.isVisible;c=new nu(d,c,e);a.k[b.getId()]=c;a.Z.Sf(c)}}function F1(a,b){a.k[b.getId()]&&(a.Z.xD(a.k[b.getId()]),delete a.k[b.getId()])}f.Kf=function(a){a.ga("adBreakComplete",this.hg,this);this.Id&&a==this.Id&&(this.Id=null);F1(this,a);rb(this.b,a);delete this.g[a.getId()];Oh(a)};f.um=function(a){return this.g[a]}; 
f.Sn=function(a){if(a.tc){if(-1!=a.b&&a.wm){var b=this.Z;H1(b);Ju(b)}else j1(a)&&!a.wm?(b=this.Z,H1(b),Ju(b)):(H1(this.Z),Ku(this.Z,!1));this.Kf(a)}else a.isVisible||this.Kf(a);a=this.D;a.j&&0<a.b.la.C&&(a.g=w()/1E3,a.k())};f.J=function(){Oh(this.D);B(this.b,this.Kf,this);C1.G.J.call(this)};function I1(a,b,c){C1.call(this,a,b);this.B=[];this.C=[];this.o=[];this.M=c;this.j=null;this.I=a.la.C;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],k1(c)){var d=new g1(c.j,c.va,c.b,c.o,!0);b[a]=d;this.B.push(c)}this.F||this.Qf()}x(I1,C1);f=I1.prototype; 
f.um=function(a){a=I1.G.um.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.va=a.getId()}b&&"loaded"==b.md?(a.ga("adBreakComplete",this.hg,this),this.g[a.getId()]=b,this.b[this.b.indexOf(a)]=b,Oh(a)):(this.Qf(),b&&(Oh(b),b=null),this.Kf(a));b&&!b.tc&&this.Qf();return b};f.hg=function(a){0!=a.b||"loaded"==a.md&&a.tc||this.Qf();I1.G.hg.call(this,a)}; 
f.Sn=function(a){a.tc&&10<this.I?(ja(this.j)&&M(this.j),this.j=L(v(this.Qf,this),1E3*(this.I-10))):this.Qf();I1.G.Sn.call(this,a)};f.Qf=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.Js,this);this.C.push(a);M0(a)}};f.Js=function(a){a.ga("adBreakComplete",this.Js,this);rb(this.C,a);this.o.push(a)};f.J=function(){ja(this.j)&&(M(this.j),this.j=null);B(this.C,Oh);B(this.o,Oh);B(this.B,Oh);I1.G.J.call(this)};function J1(a,b){this.B=a;this.X=b;this.C=w();this.b=a.la;this.k={};this.A=new Y_(a);var c=[];this.b.L&&this.b.b&&c.push("4_2");this.b.hi&&(this.b.b&&c.push("13_2"),this.b.A&&c.push("13_1"));this.b.F&&(this.b.b&&c.push("1_2"),this.b.j&&c.push("1_2_1"),this.b.A&&c.push("1_1"),this.b.N&&c.push("1_3"));this.b.k&&c.push("2_2_1");this.b.o&&c.push("2_2");this.b.M&&c.push("2_1");(this.b.di||this.b.Ck)&&c.push("2_3");this.j=c.join(",");this.g="";this.k.allowed=this.j;(c=this.b.ca)&&(this.k.ex_ads=c)} 
J1.prototype.o=0;function K1(a){wL.call(this,a);PP.g=!0;PP.b=!0;PP.o="osd-id";PP.k=!0;this.k=null;this.B={};this.A={at:"0"};this.g=new $H(0,this.b);It(this.b,this.g.K());this.j=null;this.o=-1}x(K1,wL);f=K1.prototype;f.ua="ad";f.qc="ad";f.Fe=null;f.Kb=null;f.la=null;f.cl=!1;f.yn=!1;f.Yk=null;K1.Ja=function(a){return!!a.Jb.getVideoData().Z};f=K1.prototype;f.Ja=function(){return K1.Ja(this.app)}; 
f.create=function(){K1.G.create.call(this);m1(this,"i");this.la=new t1(this.R(),this.b.getVideoData().k||{});this.Fe=new J1(this,this.b);this.cl=!1;t:if(!this.Yk){var a=this.la.O?void 0:dI(this.g);if(this.la.eb){var b=new vL(this.app,2),c=aI(this.g);b.j||(b.j=ac(b.k),b.j.addEventListener=v(b.Av,b),b.j.removeEventListener=v(b.Bv,b));this.k=new YQ(c,void 0,a,b.j)}else{b=p0(this,!1);if(!b)break t;this.k=new YQ(aI(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.A&&(a=a.A,a.ib.width="100%",a.ib.height="100%");this.Yk=new F_(this.k)}a=new s1(this);t:{b=[];try{var d=a.b.la,e;if(d.Do){var g;if(d.wa)g=r1(d.wa);else{var h;if(d.ta){var k=C(d.ta.split(","),$a);h=new q1(k)}else h=new q1([0]);g=h}e=g}else e=new q1([0]);for(var l=e.Cv,d=0;d<l.length;d++){var p=a.b;e=d;var r=l[d],u=a.b,t;if(u.la.I){g=[];var z=u.la;if(z.fa)g.push(new e1(4,0));else{if(z.L){h=0;if(z.b||z.j)h|=1;z.A&&(h|=4);z.N&&(h|=8);g.push(new e1(5,h))}z.hi&&(h=0,z.b&&(h|=1), 
z.A&&(h|=4),g.push(new e1(6,h)));h=0;z.F&&(z.b&&(h|=1),z.j&&(h|=2),z.A&&(h|=4),z.N&&(h|=8));k=0;if(z.o||z.k)z.o&&(k|=1),z.k&&(k|=2);c=0;z.M&&(z.ma&&k?k|=4:c=4);k||(k=c,c=0);z.ob&&h&&(k||c)?g.push(new e1(3,h,k)):(h&&g.push(new e1(2,h)),k&&g.push(new e1(1,k)));c&&g.push(new e1(1,c))}}else{g=[];var y=u.la;if(y.fa)g.push(new e1(4,0));else{if(y.L){h=0;if(y.b||y.j)h|=1;y.A&&(h|=4);y.N&&(h|=8);g.push(new e1(5,h))}y.hi&&y.b&&g.push(new e1(6,1));h=0;y.F&&(y.b&&(h|=1),y.j&&(h|=2));k=0;if(y.o||y.k)y.o&&(k|= 
1),y.k&&(k|=2);y.ob&&h&&k?g.push(new e1(3,h,k)):(h&&g.push(new e1(2,h)),k&&g.push(new e1(1,k)))}}t=g;var N=new g1(p,e,r,t);b.push(N)}}catch(ra){}finally{break t}}l=b;m1(this,"bd");p=this.la;r=p.rf;this.Kb=!p.ka&&0<r?new I1(this,l,r):new C1(this,l);D1(this.Kb);l={};l.allowed=this.Fe.j;Du(this,{},l)};f.destroy=function(){this.yn&&H1(this);if(this.j){var a=this.app,b=this.j;x0(a);b!=a.j&&u0(a,a.j)}Qh(this.Kb,this.j);this.Fe=this.j=this.Kb=null;bI(this.g);R_=!1;this.uc&&K1.G.destroy.call(this)};f.R=function(){return this.app.R()}; 
f.isFullscreen=function(){return this.b.isFullscreen()||this.la.B}; 
function P_(a,b,c){a=a.Fe;c=c||{};var d=(w()-a.C)/1E3;c.art=d;d=a.B.R();d.C&&(c.feature=d.ca);c.ad_flags=a.b.pf;var e=a.b.tf;e&&(c.cid=e);c.mt=a.X.getCurrentTime();(d=IL(d))&&(c.lact=d);(d=a.X.Lg())&&(c.len=d);a.b.Yh&&(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?$_(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.la.Ae;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==G_?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=Z_(d);break;case "error_code":h.ima_error=d;case "error_message":h.error_msg=d;break; 
case "ad_event":h.event=$_(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(h.i_x=a[0],h.i_y=a[1])}k=t0(b.b);c=ut(b.b.app);g.cpn=c.Fa;g.content_v=c.videoId;g.mt=Math.round(1E3*k.getCurrentTime());g.ei=c.C;g.lact=IL(b.b.R());k=f0(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],ha(d)?we(k,a,d):k.add(a,d);b=b.b.R().tb+"api/stats/ads";b=new J(b);ie(b,k); 
pf(b.toString())}}function F0(a,b,c){c=c||{};c.ad_error=b;P_(a,7,c)}f.ph=function(){var a;if(this.Fe){a=this.Fe;var b={allowed:a.j};a.b.ca&&(b.ex_ad=a.b.ca);a.g&&(b.at=a.g);a=b}else a=K1.G.ph.call(this);return a};function p0(a,b){var c;if(b){c=a.g;var d=eI(c);c.X.R().$b||jd(d)||aI(c).appendChild(d);c=d}else c=a.g,c=c.X.R().$b?c.X.app.g.b:eI(c);return c}function t0(a){if(!a.j){var b=new EL(a.R().j);b.ba="adunit";b.Gc=!0;b.Ei=a.app.g.element;var c=p0(a,!1);b.Ra=c;a.j=new UN(b,2)}return a.j} 
function f0(a){return a.la.B?(a=q0(a),new Bf(0,0,a.width,a.height)):dg(Jt(a.b))}function q0(a){return a.app.g.Ys()}function H1(a){bI(a.g);a.yn=!1;Iu(a);Hu(a,["seek"]);a.R().ce&&Hu(a,["audio"])}f.getAdState=function(){return this.o};function r0(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 l0(a,b,c,d){d&&a.H("publish_external_event","onAdInfoChange",d);a.H("publish_external_event","onAdStateChange",b,p0(a,!1),c)} 
f.Mc=function(a){K1.G.Mc.call(this,a);var b=parseInt(a.getId(),10);this.Kb&&!isNaN(b)&&(a=this.Kb,n(b)&&(b=a.um(b)))&&(a.Id==b&&!b.tc&&b.isVisible?b.show():(a.Id&&a.Kf(a.Id),A1(a.D,b)?(a.Id=null,b=a.k[b.getId()],b.fe||(b.fe=!0,B1(a.Z,[b]))):(a.Id=b,b.subscribe("adBreakComplete",a.Sn,a),b.tc&&(a=a.Z,a.yn=!0,a.H("command_redirect_controls",a,["play_pause"],void 0),Gu(a,["seek"]),a.R().ce&&Gu(a,["audio"]),a.pauseVideo()),b.show())))}; 
f.qd=function(a){K1.G.qd.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.b.getCurrentTime();this.Kb&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(a=this.Kb,(b=a.g[b])&&a.Id==b&&!b.tc&&b.isVisible&&b.Tm&&b.g instanceof B0&&D0(b.g,"fullscreen"))};function m1(a,b){var c=b;"nl"==b&&(c=a.Fe,c.o++,c=c.o.toString());a.B[c]=w();"bs"!=c&&"fb"!=c||Du(a,a.B,a.A)}function B1(a,b){a.H("command_update_cuerange_markers",b,a.b.getPlayerType())} 
function C0(a){return Boolean(a.la.I&&a.Kb&&1<a.Kb.b.length)}f.qe=function(a){this.H(a)}; 
f.gk=function(a){switch(a){case "addata":return a=this.la,{adTag:a.V,adTest:a.Ca,forceAdType:a.Ha,isAfvSkippableInstreamEnabled:a.k,isAfvStandardInstreamEnabled:a.o,isBlazer:a.aa,isDoubleClickEnabled:a.F,isForcedAd:a.fa,isFreeWheelEnabled:a.L,isHouseBrandPlayer:a.D.mc,isLeanback:a.B,tagForChildDirected:a.yb};case "adstate":return this.getAdState();case "breaks":return this.Kb?this.Kb.b.length:0;case "loadedadbreaks":if(this.Kb){a=this.Kb.g;for(var b=[],c=0;c<a.length;c++)b[c]={isInterruptive:a[c].tc}; 
return b}return 0}};f.$j=function(){var a=[];this.R().Cb()&&(a.push("addata"),a.push("adstate"),a.push("breaks"),a.push("loadedadbreaks"));return a};function L1(a,b,c){var d=["html5-center-transform","html5-center-overlay"];$E.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;M1(this,a,b)}x(L1,$E);function N1(a){O1(a,Y(0,"YTP_MDX_STATUS_CONNECTING"));P1(a,2)}function Q1(a,b){O1(a,Y(0,"YTP_MDX_STATUS_ERROR"));Xv(a.template,"error",b);P1(a,0)}function P1(a,b){var c=a.template.b["ytp-remote-display-error"];ay(c);a.g.hide();a.b.hide();switch(b){case 0:$x(c);break;case 2:a.g.show()}} 
function M1(a,b,c){var d=new uF(b.b.R().lc);d.show(b.b.getVideoData());R(a,d);a.g=new tF;O(a.g.element,"html5-center-overlay");O(a.g.element,"html5-center-transform");R(a,a.g);a.b=new kB(a.j,"ytp-button-remote-reconnect");a.b.pa(Y(0,"YTP_MDX_PLAYER_RECONNECT_BUTTON"));R(a,a.b);b=new kB(a.j,"ytp-button-remote-maximize");b.pa(["div",["html5-center-transform","html5-center-overlay","ytp-button-remote-maximize-icon"]]);R(a,b);Xv(a.template,"reconnectbutton",a.b);Xv(a.template,"thumbnail",d);Xv(a.template, 
"loadingicon",a.g);Xv(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);N1(a);Xv(a.template,"receiver",c)}function O1(a,b){Xv(a.template,"statustext",b)};function R1(a,b,c,d){this.g=a;a.subscribe("onVolumeChange",this.$o,this);d||a.subscribe("onPlaylistUpdate",this.Zo,this);this.j=b;b.subscribe("reconnect-button-click",this.bp,this);b.subscribe("maximize-button-click",this.ap,this);this.b=c;c.subscribe("proxyStateChange",this.dp,this);c.subscribe("remotePlayerChange",this.Zk,this);c.subscribe("remoteQueueChange",this.$k,this);this.F=new gu;this.B=this.A=NaN;this.D=0;this.k={};this.C=new Vk(this.yv,1E3,this);R(this,this.C);this.I=0;this.o=d;this.o|| 
(a=ui("yt-player-remoteservice-listid"),b=this.g.b,b.getVideoData().Oa&&b.getVideoData().Oa!=a?this.b.al(b.getVideoData().videoId,S1(this.g),b.getCurrentTime()):this.b.Ii(b.getVideoData().videoId,b.getCurrentTime()),b.gd()?ri("yt-player-remoteservice-listid",b.getVideoData().Oa):vi("yt-player-remoteservice-listid"));(a=this.g.b.Gi("captions","track"))&&T1(this,a);this.$k();this.Zk()}x(R1,Mh);f=R1.prototype; 
f.J=function(){U1(this,new gu);V1(this);W1(this);this.g.ga("onVolumeChange",this.$o,this);this.o||this.g.ga("onPlaylistUpdate",this.Zo,this);Ph(this.j)||(this.j.ga("reconnect-button-click",this.bp,this),this.j.ga("maximize-button-click",this.ap,this));Ph(this.b)||(this.b.ga("proxyStateChange",this.dp,this),this.b.ga("remotePlayerChange",this.Zk,this),this.b.ga("remoteQueueChange",this.$k,this));X1(this,this.k);this.b=this.j=this.g=null}; 
f.rD=function(a,b){2==this.b.j||(Y1(this)?this.UB.apply(this,arguments):this.TB.apply(this,arguments))};function Z1(a,b){var c=a.g.b.getVideoData().Qa;a.g.H("command_progress",b,c)}f.TB=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":$1(this,this.g.b.getCurrentTime());break;case "control_seek":$1(this,c[0])}}; 
f.UB=function(a,b){if(1081==Pm(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==Pm(this.b).b?a2(this):b2(this);break;case "control_play":b2(this);break;case "control_pause":a2(this);break;case "control_seek":this.I=c[0];Wk(this.C);break;case "control_subtitles_set_track":T1(this,c[0])}}; 
f.$o=function(a){if(Y1(this)){var b=Math.round(a.volume);a=!!a.muted;var c=Pm(this.b);b==c.volume&&a==c.muted||this.b.setVolume(b,a)}};f.Zo=function(){var a=ui("yt-player-remoteservice-listid"),b=this.g.b;b.getVideoData().Oa!=a&&(this.b.al(c2(this),S1(this.g),b.getCurrentTime()),ri("yt-player-remoteservice-listid",b.getVideoData().Oa))};f.bp=function(){W1(this);this.b.k.reconnect();N1(this.j)}; 
f.ap=function(){var a=this.g,b={video_id:a.b.getVideoData().videoId},b=new Xr(b),b=SI(a.app.Jb.R(),b,{});Cu(a,b)};f.dp=function(a,b){W1(this);2==b&&this.zr()}; 
f.Zk=function(){if(Y1(this)){V1(this);var a=Pm(this.b);switch(a.b){case 1:d2(this);U1(this,new gu(8));break;case 3:U1(this,new gu(1));break;case 0:U1(this,new gu(2));this.C.stop();var b=this.g.b;(b=bt(b.app,b.b||1))&&b.Ef(!0);Z1(this,this.g.b.getVideoData().Qa);break;case 2:U1(this,new gu(4));Z1(this,Hm(a));break;case -1:U1(this,new gu);break;case -1E3:U1(this,new gu(128))}0==this.D&&(b=this.g.b,(b=bt(b.app,b.b||1))&&b.Ef(!1));this.D=a.b;a=Pm(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,X1(this,a));a=Pm(this.b);-1==a.volume||Math.round(this.g.b.np())==a.volume&&this.g.b.pp()==a.muted||(this.g.b.setVolume(a.volume),a.muted?this.g.b.qp():this.g.b.rp())}else U1(this,new gu)};f.$k=function(){Y1(this)||(Z1(this,0),V1(this),U1(this,new gu))}; 
function T1(a,b){if(Y1(a)){if(b){var c={style:a.g.b.Gi("captions","displaySettings")};dc(c,b);a.b.Hm(c2(a),c)}else a.b.Hm(c2(a),null);a.k=Pm(a.b).j}}function a2(a){a.b.pause();var b=Pm(a.b);Z1(a,Hm(b));V1(a);U1(a,new gu(4))}function b2(a){a.b.play();d2(a);U1(a,new gu(8))}function $1(a,b){if(a.o){var c=a.g.b.gd();c?Wm(a.b,c2(a),b,c.Na,a.g.b.getVideoData().Oa):Wm(a.b,c2(a),b)}else a.b.Ii(c2(a),b);U1(a,new gu(1))} 
function X1(a,b){if(b){var c=a.g.b.Gi("captions","tracklist",{Iq:1});c&&(c=lb(c,function(a){return a.languageCode==b.languageCode&&a.name==b.trackName}),a.g.b.Lp("captions","track",c))}else a.g.b.Mp("captions")}f.yv=function(){var a=this.I;V1(this);Z1(this,a);-1==Pm(this.b).b?$1(this,a):this.b.os(a);U1(this,new gu(1))};function Y1(a){return Fm(Pm(a.b))==c2(a)}function c2(a){return a.g.b.getVideoData().videoId} 
function d2(a){V1(a);var b=Pm(a.b);1==b.b&&U1(a,new gu(8));Z1(a,Hm(b));a.A=L(v(function(){d2(this)},a),500)}function V1(a){M(a.A);a.A=NaN}f.zr=function(){W1(this);V1(this);var a=this.b.k.getReconnectTimeout();if(2!=this.b.j||isNaN(a))N1(this.j);else{var b=this.j;Q1(b,Y(0,"YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:Zv(a/1E3)}));b.b.show();this.B=L(v(this.zr,this),1E3)}};function W1(a){M(a.B);a.B=NaN} 
function U1(a,b){W1(a);var c=a.F;a.F=b;var d=a.j;O1(d,Y(0,"YTP_MDX_STATUS_CONNECTED"));P1(d,1);W(b,1)&&(d=a.j,O1(d,Y(0,"YTP_MDX_STATUS_CONNECTED")),P1(d,2));W(b,128)&&Q1(a.j,Ze("YTP_MDX_PLAYER_ERROR"));d=a.g;Ku(d,W(b,8));d.app.H("presentingplayerstatechange",new TN(b,c))};function e2(a){wL.call(this,a);this.D=a.g.j;this.A={key:Xi(),name:Y(0,"YTP_MDX_MY_COMPUTER")};this.k=this.j=null;this.F=[];this.g=null;this.B=new aD(this.D,"ytp-remote-button",Y(0,"YTP_MDX_TOOLTIP"),"ytp-remote-button-active");R(this,this.B);this.B.listen("click",this.Fv,this);this.o=new OC(this.D,v(this.Dv,this),v(this.Ev,this));O(this.o.K(),"ytp-drop-down-background");R(this,this.o);this.C=new jB;this.C.b=Y(0,"YTP_MDX_TITLE");this.C.element=this.o;this.C.B=this.ua;R(this,this.C)}x(e2,wL); 
var f2=["play_pause","seek"],g2=["captions"];f=e2.prototype;f.ua="remote";f.qc="remote";f.Ja=function(){return this.app.Jb.R().Sg};f.create=function(){e2.G.create.call(this);this.F.push(Xh("yt-remote-connection-change",this.qr,this));this.qr();this.H("module_menu_button_add",this.ua,this.B);Mu(this,this.C);var a=this.b.app.F;this.o.getSelected()&&this.o.getSelected()!=this.A&&1!=a&&3!=a&&this.load()};f.destroy=function(){Zh(this.F);this.F.length=0;Oh(this.g);this.g=null;e2.G.destroy.call(this)}; 
f.load=function(){if(!this.loaded){e2.G.load.call(this);eD(this.B,"ytp-remote-button-active");var a=this.o.getSelected();this.k=new L1(this,a.name,this.D);It(this.b,this.k.K());this.g&&(a=this.app.Jb.R(),this.j=new R1(this,this.k,this.g,a.b.k||a.b.g));this.b.fl();this.H("command_redirect_controls",this,f2,g2);var b=ko();0!=b&&((a=this.g?Fm(Pm(this.g)):null)&&a!=this.b.getVideoData().videoId||L(v(function(){this.H("command_progress",b,void 0)},this),0))}}; 
f.unload=function(){this.loaded&&(eD(this.B,"ytp-remote-button"),RC(this.o,this.A),Iu(this),Qh(this.j,this.k),this.k=this.j=null,e2.G.unload.call(this))};f.J=function(){this.destroy();Qh(this.j,this.k,this.g);this.g=this.k=this.j=null;e2.G.J.call(this)};f.qe=function(a,b){this.j&&this.j.rD.apply(this.j,arguments)};function vt(a,b,c){var d=c||a.A;b.unshift(a.A);h2(a,b);d=lb(b,function(a){return a.key==d.key});RC(a.o,d);a.k&&Xv(a.k.template,"receiver",d.name)} 
function S1(a){var b=a.b.gd();if(b){a=[];for(var c=0;c<b.Bc;c++)a[c]=Hs(b,c).videoId;return a}return[a.b.getVideoData().videoId]}f.qr=function(){var a=mo();a?(this.g=a,this.load(),this.j||(a=this.app.Jb.R(),this.j=new R1(this,this.k,this.g,a.b.k||a.b.g))):(Oh(this.g),this.g=null,this.unload())}; 
f.Ev=function(a){Ou(this);if(a!=this.o.getSelected())if(RC(this.o,a),a.key==this.A.key)a=this.g?Pm(this.g):null,fo(),this.unload(),a&&Fm(a)==this.b.getVideoData().videoId&&(0<Hm(a)&&this.b.$g(Hm(a)),1==a.b&&this.b.Zg());else{var b=0,c="",d=this.b.gd();d&&(b=d.Na,c=this.b.getVideoData().Oa);b={videoIds:S1(this),listId:c,videoId:this.b.getVideoData().videoId,index:b,currentTime:this.b.getCurrentTime()};bo(a,b);this.k&&Xv(this.k.template,"receiver",a.name);Oh(this.j);this.j=null;this.load()}}; 
function h2(a,b){B(b,function(a){a.toString=function(){return a.key}},a);PC(a.o,b)}f.Fv=function(a){var b=Rn();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),Gj())};f.Dv=function(a){return a.name};function i2(a,b){this.g=a;this.j=b;this.b=!1}function j2(a){var b;if(b=Lq("grc",""))Kq(""),b=!0;if(b){b=Kq("").span;var c=Kq("").tick;"grc"in c&&(b[a]=w()-c.grc)}else Lq(a,"")||Jq(a,void 0,"")}i2.prototype.info=function(a,b){Pq("")[a]=b}; 
function k2(a){var b=a.g;if(!b.bl||"detailpage"!=b.ba&&"leanback"!=b.ba&&("embedded"!=b.ba||!b.ii&&!b.b.C)||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)Jq(c,b[c],"");a=a.j.B;for(var d in a)c=d,b=a[d],Pq("")[c]=b;if(d=Fg("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;Pq("").yt_vis=d}Pq("").yt_pt="html5";var e;if(Lq("_start",""))if(c=Kq("").tick,d=Kq("").span, 
b=Pq(""),a=q("yt.timing.reportbuilder_")){if(a=a(c,d,b,""))Oq(a),Qq(""),Hq();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=Gq.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=Gq.getEntriesByName?Gq.getEntriesByName(g)[0]:null)?b.h5jse=Math.round(b.h5jse-g.responseEnd):delete b.h5jse); 
g=!1;c.aft||(c.pbr&&c.pbs>c.pbr?(c.aft=c.pbr,g=!0):c.pbs?(c.aft=c.pbs,g=!0):c.vr?(c.aft=c.vr,g=!0):c.aft=c.ol);c.gv&&g&&(d.vl=Math.round(c.aft-c.gv));g=c._start;if(!Fq){k||(k=Gq.timing||{});var l;i:if(l=k,l.msFirstPaint)l=Math.max(0,l.msFirstPaint);else{var p=window.chrome;if(p&&(p=p.loadTimes,ka(p))){var p=p(),r=1E3*Math.min(p.requestTime||Infinity,p.startLoadTime||Infinity),r=Infinity===r?0:l.navigationStart-r;l=Math.max(0,Math.round(1E3*p.firstPaintTime+r)||0);break i}l=0}0<l&&l>g&&(c.fpt=l);l= 
k.redirectEnd-k.redirectStart;0<l&&(d.rtime_=l);l=k.domainLookupEnd-k.domainLookupStart;0<l&&(d.dns_=l);l=k.connectEnd-k.connectStart;0<l&&(d.tcp_=l);l=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart&&0<l&&(d.stcp_=l);l=k.responseStart-k.requestStart;0<l&&(d.req_=l);l=k.responseEnd-k.responseStart;0<l&&(d.rcv_=l);Fq=!0}.001>Math.random()&&Nq(d);for(var u in b)"_"!=u.charAt(0)&&(a[u]=b[u]);u={};k=[];for(var t in c)"_"!=t.charAt(0)&&(l=Math.max(Math.round(c[t]-g),0),u[t]=l,k.push(t+"."+ 
l));a.rt=k.join(",");t={};k=[];for(e in d)"_"!=e.charAt(0)&&(t[e]=d[e],k.push(e+"."+d[e]));a.it=k.join(",");Oq(a);(e=q("ytdebug.logTiming"))&&e(a,u,t);Qq("");Hq();e=u.aft+(h||0)}else e=NaN;return e}If("hidden",window.document);var tt={"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 l2(a,b){ej.call(this);var c=b;c instanceof $g||(c=new $g(c));this.P=c;this.b=new EL(this.P.args||{});R(this,this.b);this.g=new HK(this);R(this,this.g);this.g.subscribe("templateready",this.ku,this);this.g.subscribe("resize",this.qu,this);this.F=1;this.Aa={};this.T=null;this.D=this.b.yk?Ls():{volume:100,muted:!1};this.ob=this.b.Cb()?new Ct(this,1):new Os(this,1);R(this,this.ob);this.mb=new Ht(this);R(this,this.mb);this.Jb=new Ht(this,1);R(this,this.Jb);this.ca=this.k=null;this.ka={};var c= 
this.b,d=new YK;ME(c)&&(d.k=!0,d.g=.1);c.b.oa&&(d.b=5,d.j=!0);this.ma=new NK(d);this.Ca={internalvideodatachange:this.Xt,liveviewshift:this.eu,playbackready:this.Yt,playbackstarted:this.Zt,statechange:this.au,urlauthexpired:this.lu};c=new UN(this.b,1);m2(this,c,this.Ca);this.j=c;this.j.ca=this.ma;R(this,this.j);this.jb={beginseeking:this.bu,endseeking:this.du,internalvideodatachange:this.su,internalvideoformatchange:this.mu,progresssync:this.ju,seekto:this.ru,onLoadProgress:this.fu,onVideoProgress:this.nu, 
newlicensesession:this.pu,playbackready:this.gu,statechange:this.iu,connectionissue:this.cu,heartbeatparams:this.ou,videoelementevent:this.tu};this.L=this.A=null;this.Da=this.wa=-1;c=new ZK;d=this.mb;c.g!=d&&($K(c),c.k={},c.g=d);d={};d.loaded=v(this.vo,this);d.unloaded=v(this.wo,this);d.command_pause=n2(this.pauseVideo,this);d.command_play=n2(this.Sd,this);d.command_seek=n2(this.yf,this);d.command_disable_controls=v(this.Dg,this);d.command_enable_controls=v(this.mi,this);d.command_redirect_controls= 
v(this.zo,this);d.command_stop_redirect_controls=v(this.oi,this);d.command_redirected_show_is_playing=v(this.g.Fk,this.g);d.command_progress=v(this.Ek,this);d.command_add_cuerange=v(this.yo,this);d.command_remove_cuerange=v(this.Ao,this);d.command_remove_cuerange_all=v(this.xo,this);d.command_preroll_ready=v(this.Bo,this);d.command_update_cuerange_markers=v(this.Co,this);d.command_show_dialog=v(this.Dk,this);d.command_clear_video_overlays=v(this.ki,this);d.command_navigate_to_url=v(this.Ak,this); 
d.command_log=v(this.Bk,this);d.publish_external_event=v(this.ji,this);d.module_menu_button_add=v(this.po,this);d.module_menu_button_remove=v(this.qo,this);d.module_menu_item_add=v(this.ro,this);d.module_menu_item_remove=v(this.to,this);d.module_menu_show=v(this.uo,this);d.vss_segment=v(this.uu,this);c.o=d;this.B=c;R(this,this.B);this.ta=new i2(this.b,this.B);this.I=this.C=null;this.N={};this.V=null;this.U={};this.fa=null;this.fb=0;this.eb=!1;this.O=!0;this.o=null;this.oa=1;this.aa=this.Ia=null;this.Va= 
this.Ha=!1;this.xa=null;this.kb=0;this.xb=!1;this.wb=Rg(window,"popstate",v(this.hu,this),!1);c=new Xr(this.P.args);if(ns(c)){WN(this.j,c,v(this.Eg,this));if("detailpage"==this.b.ba){var d=c.videoId,e=ui("yt-player-restore-playhead"),d=e?e[d]:void 0;d&&(c.Ta=d)}vi("yt-player-restore-playhead");this.b.ii&&bO(this.j)}j2("fs");this.g.initialize(a);FH(this,"init")}x(l2,ej);l2.g="defaultcontext";l2.b={}; 
l2.create=function(a,b){try{var c=l2.j(a);if(l2.b[c]){try{l2.b[c].dispose()}catch(d){Xe(d)}l2.b[c]=null}var e=new l2(a,b);Nh(e,function(){l2.b[c]=null});return l2.b[c]=e}catch(g){throw Xe(g),g;}};l2.j=function(a){return s(a)?a:"player"+ma(a)}; 
function o2(a){a.k=VE.getTag(!0);a.ca=a.k;a.A&&lO(a.A,a.k);eu(a.k,a.oa);a.b.ce?(a.aa&&Tg(a.aa),a.aa=Rg(a.k,"volumechange",v(a.xz,a),!1)):a.k.setVolume(a.D.volume,a.D.muted);var b=a.g;b.b=a.k;b.ma=new Bf(0,0,0,0);b.b.parentNode||b.g.appendChild(b.b);O(b.b,"video-stream");O(b.b,"html5-main-video");var c=b.app.R();c.Xb&&c.Vd&&b.b.setAttribute("controls",!0);c.Fi&&b.b.setAttribute("webkit-playsinline","");b.b.setAttribute("x-webkit-airplay","allow");c.ql&&(b.xa=Rg(b.b,"click",v(b.b.play,b.b)));a.b.Ra= 
a.k;Zt(a.k)}function p2(a){if(a.k){a.aa&&(Tg(a.aa),a.aa=null);a.A&&fI(a.A);var b=a.g;b.b&&(ed(b.b),b.b=null);a.b.Ra=null;VE.releaseTag(a.k);a.k=null}}function cI(a,b){a.b.$b?(a.V&&(Of(a.k,a.V.left,a.V.top),Zf(a.k,Ef(a.V)),a.V=null),du(a.k),fI(a.A),lO(a.A,a.k),eu(a.k,a.oa)):VE.releaseTag(b)}function u0(a,b){if(a.A!=b){a.A&&($K(a.B),x0(a));if(b!=a.j){var c=b.getPlayerType();a.ka[c]=b}a.A=b;b.ca=a.ma;a.k&&lO(b,a.k);m2(a,b,a.jb);q2(a,b,b.getVideoData());b.P.b&&r2(a,"dataloaded",b,b.getVideoData())}} 
function m2(a,b,c){for(var d in c)b.subscribe(d,c[d],a)}function x0(a){fI(a.A);var b=a.A,c=a.jb,d;for(d in c)b.ga(d,c[d],a);b=a.A;b!=a.j&&(c=b.getPlayerType(),a.ka[c]==b&&delete a.ka[c]);a.A=null}function bt(a,b){return b?1==b?a.j:a.ka[b]||null:a.A}function s2(a){var b=a.B,c=[dC.g,uI,nw,YJ,IE,eK,iK,QE,oK];c.push(ZI.b);B(c,b.Yq,b);a.H("videoready",a.getVideoData())}f=l2.prototype;f.Yt=function(){t2(this)||u2(this,5)};f.gu=function(a){t2(this)||(v2(this),a=a.getPlayerState(),W(a,8)&&!W(a,2)&&this.Sd())}; 
function zt(a){if("profilepage"!=a.b.ba&&(!a.I&&a.Jb.R().Sg&&(a.I=new e2(a),w2(a,a.I)),a.I)){var b=Yn();vt(a.I,Rn(),b);var c=a.I;c&&!c.uc&&c.Ja(a.Jb)&&c.create();b&&a.I.load()}} 
function w2(a,b){R(a,b);b.subscribe("loaded",a.vo,a);b.subscribe("unloaded",a.wo,a);b.subscribe("command_pause",n2(a.pauseVideo,a));b.subscribe("command_play",n2(a.Sd,a));b.subscribe("command_seek",n2(a.yf,a));b.subscribe("command_disable_controls",a.Dg,a);b.subscribe("command_enable_controls",a.mi,a);b.subscribe("command_redirect_controls",a.zo,a);b.subscribe("command_stop_redirect_controls",a.oi,a);b.subscribe("command_redirected_show_is_playing",a.g.Fk,a.g);b.subscribe("command_progress",a.Ek, 
a);b.subscribe("command_add_cuerange",a.yo,a);b.subscribe("command_remove_cuerange",a.Ao,a);b.subscribe("command_remove_cuerange_all",a.xo,a);b.subscribe("command_update_cuerange_markers",a.Co,a);b.subscribe("command_preroll_ready",a.Bo,a);b.subscribe("command_show_dialog",a.Dk,a);b.subscribe("command_clear_video_overlays",a.ki,a);b.subscribe("command_log",a.Bk,a);b.subscribe("command_navigate_to_url",a.Ak,a);b.subscribe("publish_external_event",a.ji,a);b.subscribe("module_menu_button_add",a.po,a); 
b.subscribe("module_menu_button_remove",a.qo,a);b.subscribe("module_menu_item_add",a.ro,a);b.subscribe("module_menu_item_remove",a.to,a);b.subscribe("module_menu_show",a.uo,a);b.subscribe("command_log_timing",a.B.D,a.B)}function xt(a){a&&a.uc&&a.destroy()}f.Xa=function(a,b){this.H.apply(this,arguments);this.te.apply(this,arguments)};f.Vh=function(a,b){var c=vb(arguments);this.b.Cb()&&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 ut(a){return a.j.getVideoData()}f.Eg=function(){var a=ML(this.b);ta(a,cL(this.B));this.C&&ta(a,this.C.ph());a.fs=this.b.ub;a.volume=Math.round(this.D.volume);a.mos=this.D.muted?1:0;return a};f.Dk=function(a){this.g.eh(a)}; 
f.ku=function(){this.b.Ei=this.g.element;this.g.dh();var a=this.ob;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=v(this.Mx,this);b=document;var c;"onfullscreenchange"in b?c="fullscreenchange":(c=Ag+"fullscreenchange",c="on"+c in b?c:null);"msfullscreenchange"==c&&(c="MSFullscreenChange");this.Ia=c?Rg(b,c,a):null;b=this.P.args;if(sq()){o2(this);a=ut(this);c=this.g.ac();this.b.Yd=c;this.Xa("onVolumeChange",this.D);"detailpage"==this.b.ba?Et(this):b&&(b.playlist||b.list|| 
b.api)&&(x2(this,b),ns(a)||(b=this.o,c=v(this.gq,this),b.Se=c,b.je&&L(b.Se,0)));if(b=this.P.args.jsapicallback)ka(b)||(b=q(b)),b&&n2(v(b,m,this.b.Wk),m);In(this.b.b.g);this.b.Sg=wt(this.b)&&!E(Rn());u0(this,this.j);this.b.ii&&ns(a)?y2(this):"leanback"!=this.b.ba&&z2(this)}else jw(this.j,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.g.dm()};function z2(a){a.H("initializingmode");u2(a,2)} 
function y2(a){W(a.getPlayerState(),128)||(a.H("initializingmode"),u0(a,a.j),u2(a,3),a.b.$b||(p2(a),o2(a),lO(a.j,a.k)),gO(a.j),A2(a,3),a.xb=!0)}function t2(a){return wt(a.b)&&!!Yn()&&"profilepage"!=a.b.ba}function n2(a,b){return function(){var c=Array.prototype.slice.call(arguments);L(function(){a.apply(b||this,c)},0)}}f.Ak=function(a,b){b?zK(this,a):(window.ytspf||{}).enabled?spf.navigate(a):window.location=$d(a,{})+""}; 
f.Bk=function(a,b,c){var d=bt(this);b.event=a;d.o&&(a=d.o,b.rt=wN(a.b).toFixed(3),ta(b,LN(a.b)),ta(b,NN(a)),delete b.fexp,b=Ei(a.b.g.tb+"player_204",b),pf(b,c))};function Zs(a,b){if(!isNaN(b)&&a.k){var c=1,c=a.b.Mg?Zq:[1],c=1>b?lb(c,function(a){return a>=b}):nb(c,function(a){return a<=b});a.oa!=c&&(a.oa=c,a.j==a.A&&eu(a.k,c),a.H("onPlaybackRateChange",c))}}function $s(a,b){var c=bt(a,b);return c&&c.getVideoData().b?c.getVideoData().b.video.b:"unknown"} 
function uH(a){return(a=bt(a,void 0))?Xp(eN(a.ma,a.b)):"unknown"}function at(a,b,c,d){if(c=bt(a,c))a=a.b.o,"mobile"!=a&&"tablet"!=a&&(b=Rp(b,d||b,!0),gK(c,"m",b))}f.getCurrentTime=function(a){return(a=bt(this,a))?a.getCurrentTime():0};function Ss(a,b){var c=bt(a,b);return c?c.wd():0}function jt(a,b){var c=a.j.getDebugInfo(b);c.debug_playbackQuality=$s(a);c.debug_date=(new Date).toString();delete c.uga;return tf(c)} 
function dK(a,b){var c=a.getVideoData(),d=!!c.ta||!!c.Yf||!b;a.H("threedenabled",d);d&&a.k.setAttribute("mozStereoMode","1");$J()&&(a.k.setAttribute("mozStereoMode",d?"1":"0"),c=iq[d?c.gC:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),bd(document.documentElement,d),Xg(d,"3DModeEvent"))}f.getPlayerState=function(a){return(a=bt(this,a||1))&&a.getPlayerState()}; 
f.tu=function(a){var b=a.target;switch(a.type){case "loadedmetadata":j2("fvb");this.fb=L(v(this.g.lg,this.g),16);break;case "loadstart":j2("gv");break;case "progress":case "timeupdate":j2("1pb"),2<=Ut(b.buffered)&&j2("l2s")}};f.pu=function(a){if(this.Va){var b=this.kb.toString();this.kb++;this.xa[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.fu=function(a,b){this.Vh("onLoadProgress",b)}; 
f.nu=function(a,b){this.Vh("onVideoProgress",b)};f.ju=function(){this.Ek()};f.Ek=function(a,b){this.H("progresssync",a,b)}; 
f.au=function(a){var b;if(b=0<kw(a,2))this.o&&("embedded"==this.b.ba||this.b.ub)&&tI(this)?(mt(this),b=!0):this.b.b.A&&this.getVideoData().hh&&this.getVideoData().A&&0<this.getVideoData().A.length?(b=this.getVideoData().A[0],mI(this,b.id,Xr.g(b.endscreen_autoplay_session_data),b.list),b=!0):b=!1,b=!b;b&&(this.pauseVideo(),W(a.b,32)&&this.j.fj(),this.b.lc&&wH(this,!1));W(a.state,128)&&(b=a.state,Ys(this),b=b.b,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=Ze(b.messageKey)), 
this.H("onError",tt[b.errorCode]||5),this.H("onDetailedError",b));this.H("applicationplayerstatechange",a);W(a.state,2)&&(a=this.getVideoData(),a.Za&&!a.rb&&this.Dg(["play_pause"]))};f.iu=function(a){!W(a.state,32)&&0>kw(a,16)&&(!W(a.state,8)||this.k.ended&&!W(a.state,2)||this.Sd());this.H("presentingplayerstatechange",a);this.te("onStateChange",a);A2(this,mu(a.state))}; 
function B2(a){xt(a.C);xt(a.I);a.Ha=!1;var b=[],c;for(c in a.N)Xs(a,c)&&b.push(c);a.N={};0<b.length&&a.H("controlsenabled",b);a.oi();a.Aa={};a.ta.b=!1}function q2(a,b){$K(a.B);Zs(a,1);a.Xa("videoplayerreset",b)} 
function r2(a,b,c,d){if(a.k){if("dataloaded"==b)if(FL(c.R(),d.k),a.A==a.j){In(a.b.b.g);var e=t2(a),g;if(g=!e)g=ut(a).So&&!a.b.lc;if(g){var h="YTP_DEVICE_FALLBACK";tc||tr("iemobile")||tr("xbox")&&tr("trident")||tr("nintendo wiiu")||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");jw(a.j,"html5.unsupportedads",h,void 0)}else if(g=ut(a),!(g.j||g.De||g.Ee||g.ca||g.V)||e||$N(a.j)){os(g);e&&u2(a,6);e=K1.Ja;!a.C&&e(a)&&(a.C=new K1(a),a.C&&w2(a,a.C));try{(h=a.C)&&!h.uc&&h.Ja(a.Jb)&&h.create()}catch(k){Xe(k), 
a.j&&kO(a.j,"ad")}zt(a);s2(a)}else jw(a.j,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else s2(a);1==c.getPlayerType()&&(a.getVideoData().Ok?(a.T=ac(a.D),a.Dg(["audio"]),h=a.k,h.pl=!0,h.muted=!0):(Xs(a,"audio")&&a.mi(["audio"]),a.k.pl=!1,a.T&&(DH(a,a.T),a.T=null)),h=a.getVideoData(),h.Za&&!a.b.Qk?jw(a.j,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0):h.Za&&!h.rb?a.Dg(["seek"]):a.mi(["seek"]),d.oa||d.Ha||d.o.focEnabled||d.o.rmktEnabled||a.b.Af)&&(h=a.getVideoData(),e= 
1E3*h.Qa,C2(a,"part2viewed",1,e),C2(a,"engagedview",Math.max(1,1E3*h.ze),e),C2(a,"videoplaytime25",.25*e,e),C2(a,"videoplaytime50",.5*e,e),C2(a,"videoplaytime75",.75*e,e),C2(a,"videoplaytime100",e,2147483647),C2(a,"conversionview",e,2147483647));a.Xa("videodatachange",b,d,c.getPlayerType())}}f.Xt=function(a){"newdata"==a&&B2(this)};f.su=function(a,b,c){"newdata"==a?q2(this,b):r2(this,a,b,c)};f.mu=function(a,b){var c=this.A.getVideoData();a==c&&this.H("onPlaybackQualityChange",a.b.video.b,b)}; 
function Et(a){var b=PH();if(b&&0<=b.index){var c=[];B(b.videoIds,function(a){if(a=b.videoData?b.videoData[a]:void 0)a.video_id=a.id,c.push(a)});x2(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 x2(a,b){if(a.o){Oh(a.o);a.o=null;var c=et(a.B,"playlist");if(c){var d=a.B;if(!d.g||c.bn(d.g))c.destroy(),rb(d.b,c)}}b&&(a.o=new vs(b),a.B&&(c=a.B,B([ZI.b],c.Yq,c)))} 
function C2(a,b,c,d){b in a.Aa||(c=new nu(c,d,{id:b,priority:1}),c.Wa.subscribe("onEnter",a.$s,a),c.Wa.subscribe("onExit",a.$s,a),a.j.A.Ti(c),a.Aa[b]=c)} 
f.$s=function(a){var b=a.getId(),c=ut(this);"part2viewed"==b?(c.ri&&pf(c.ri),c.Ha&&pf(c.Ha)):"conversionview"==b?QN(this.j.o):"engagedview"==b&&pf(c.oa);if(c.ma){var d;d=a.getId();d=Ei(c.ma,{label:d});pf(d)}switch(b){case "videoplaytime25":c.vf&&pf(c.vf);pf(c.xx);break;case "videoplaytime50":c.rf&&pf(c.rf);pf(c.yx);break;case "videoplaytime75":c.uf&&pf(c.uf);pf(c.zx);break;case "videoplaytime100":c.Be&&pf(c.Be),pf(c.wx)}this.b.Af&&this.b.Af[a.getId()]&&(b=this.b.Af[a.getId()],c=A(b)?!1:-1!=b.search(Ke)|| 
-1!=b.search(Ie),pf(b,void 0,c));this.j.A.Rg(a)};function u2(a,b){b!=a.F&&(2==b&&(A2(a,-1),A2(a,5)),a.F=b,a.H("appstatechange",b))}function A2(a,b){a.A&&2==a.A.getPlayerType()?a.Da!=b&&(a.Da=b,a.Vh("onAdStateChange",b)):a.wa!=b&&(a.wa=b,a.Vh("onStateChange",b))}function FH(a,b){if(a.b.b.F){var c={controlClicked:b};a.b.ub&&(c.fs=1);a.Bk("controlclicked",c)}}f.yf=function(a,b,c,d){(d=bt(this,d))&&hO(d,a,0!=b,c)}; 
f.ru=function(a,b){var c=a.getVideoData();if(1==this.F||2==this.F)c.Ta=b;2==this.F?y2(this):this.Xa("seekto",b)};f.bu=function(){this.Xa("beginseeking")};f.du=function(){this.Xa("endseeking")};f.setVolume=function(a){var b=this.D;b.volume=a;DH(this,b)}; 
function DH(a,b){a.D=b;b.volume=Ib(b.volume,0,100);if(a.b.yk&&!a.b.ce){var c={};c.volume=isNaN(b.volume)?Ls().volume:Ib(b.volume,0,100);c.muted=void 0==b.muted?Ls().muted:b.muted;ri("yt-player-volume",c,2592E3)}Xs(a,"audio")?a.T&&(a.T=ac(b),a.Xa("onVolumeChange",b)):(v2(a),a.b.ce||a.Xa("onVolumeChange",b))}function Ts(a){var b=a.D;b.muted=!0;DH(a,b)}function Us(a){var b=a.D;b.muted=!1;5>b.volume&&(b.volume=5);DH(a,b)} 
function ft(a,b,c){b.list=b.list||null;b=new Xr(b);var d=a.getVideoData();d&&d.Oa!=b.Oa&&x2(a,null);b.Oa&&"detailpage"==a.b.ba&&Et(a);return D2(a,b,void 0,void 0,c)}function Dt(a,b){a.L&&a.L.getVideoData().videoId==b.videoId||(b.Va=!0,a.L||(a.L=new UN(a.b,1),a.L.ca=a.ma),WN(a.L,b,v(a.Eg,a)),bO(a.L,!0))} 
function D2(a,b,c,d,e){Lq("_start","")||(Jq("_start",void 0,""),a.ta.info("srt",0));var g;if(a.L&&a.L.getVideoData().videoId==b.videoId){g=a.L;a.L=null;b=g;c=a.j;d=a.Ca;for(var h in d)c.ga(h,d[h],a);a.j.dispose();a.j=b;m2(a,b,a.Ca);B2(a)}else{g=bt(a,e);if(!g)return!1;M(a.fb);void 0!=c&&(b.Ta=c);b.zf=Eq(b.zf,d);Ys(a,e);WN(g,b,v(a.Eg,a))}if(!aO(g))return!1;g==a.j?(u2(a,1),y2(a)):gO(g);return!0}function E2(a,b){var c=D2(a,b,void 0);Qs(a,c,void 0)} 
function Qs(a,b,c){c=bt(a,c);b&&c==a.j&&(c.getVideoData().Qd=!0)}function gt(a,b,c){b.list=b.list||null;F2(a,new Xr(b),c)}function F2(a,b,c){var d=bt(a,c);d&&(Ys(a,c),WN(d,b,v(a.Eg,a)),aO(d)&&(FL(d.R(),b.k),d==a.j&&(u2(a,1),z2(a))))}function mI(a,b,c,d,e){if(!b&&!d)throw Error("Playback source is invalid");b={video_id:b,list:d};a.b.ub||"detailpage"!=a.b.ba?d?(a.O=!1,lt(a,b,void 0,void 0,void 0)):ft(a,b,1):(d=new Xr(b),d=SI(a.b,d,{}),q("yt.player.exports.navigate")(d,c,!0),a.Ak(d,e))} 
function lt(a,b,c,d,e){if(la(b)&&!ha(b)){c="playlist list listType index startSeconds suggestedQuality".split(" ");d={};for(e=0;e<c.length;e++){var g=c[e];b[g]&&(d[g]=b[g])}b=d}else d={index:c,startSeconds:d,suggestedQuality:e},s(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;x2(a,b);b=a.o;a=v(a.gq,a);b.Se=a;b.je&&L(b.Se,0)}f.gq=function(){var a=Hs(this.o);this.getVideoData().Cg||!this.O?this.getVideoData().Qd?E2(this,a):D2(this,a):a&&F2(this,a)}; 
function tI(a){var b=PH();return!(!a.o||!Ds(a.o)||b&&!b.autoPlay)}function mt(a){a.o&&(a.o.je?Ds(a.o)&&D2(a,Fs(a.o)):(Fs(a.o),a.O=!1))}function nt(a){if(a.o)if(a.o.je){var b=a.o;(b.dg||0<=b.Na-1)&&E2(a,Is(a.o))}else Is(a.o),a.O=!1}function ot(a,b){a.o&&(a.o.je?E2(a,Hs(a.o,b)):a.O=!1,Gs(a.o,b))}function PH(){var a=q("yt.www.watch.lists.getState");return a?a():null}function pt(a){return a.o&&a.o.j?a.o.j.toString():null} 
function it(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=Ss(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return SI(a.b,ut(a),null,c)}function kt(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 nu(1E3*c,1E3*d,b);c.Wa.subscribe("onEnter",a.SC,a);c.Wa.subscribe("onExit",a.TC,a);a.j.A.Ti(c);a.H("cuerangesadded",[c]);return!0}f.SC=function(a){this.H("onCueRangeEnter",a.getId())}; 
f.TC=function(a){this.H("onCueRangeExit",a.getId())};f.yo=function(a,b){var c=bt(this,b);c&&(c.A.Ti.apply(c.A,a),this.H("cuerangesadded",a))};f.Ao=function(a,b){var c=bt(this,b);c&&(c.A.Rg.apply(c.A,a),this.H("cuerangesremoved",a))};f.xo=function(a,b){var c=bt(this,b);if(c){for(var c=c.A,d=c.j.length-1;0<=d;d--)c.j[d].namespace==a&&ru(c,d);c.vc()}};f.Co=function(a){this.H("cuerangemarkersupdated",a)};f.Bo=function(a,b){var c=bt(this,b);c&&kO(c,a)}; 
f.Zt=function(){G2(this,k2(this.ta));if(!this.Ha&&"detailpage"==this.b.ba){this.Ha=!0;var a=this.j;if(a.O&&a.O.b){var b={},c={};a.b.videoId&&(b.docid=a.b.videoId);a.b.Ib&&(b.plid=a.b.Ib);b.cpn=a.b.Fa;b.ad_cpn=a.O.b;var d=w()-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);Oq(a)}}this.eb=!1; 
this.b.b.C&&tI(this)&&(b=Hs(this.o,Es(this.o)))&&Dt(this,b)};function G2(a,b){if(!isNaN(b)&&0<b&&a.j){var c=a.j;c.o&&0<b&&(c.o.k.j.aft=[b])}}f.vo=function(a){"remote"==a?(2==this.F&&y2(this),u2(this,6),xt(this.C)):this.Vh("onApiChange")};f.wo=function(a){"remote"==a&&z2(this)};f.xz=function(){if(!Xs(this,"audio")){var a={volume:100*this.k.volume,muted:this.k.muted};this.D=ac(a);this.Xa("onVolumeChange",a)}}; 
function v2(a){var b=a.b.ce?Xr.b:a.getVideoData().Pq;a.k.setVolume(a.D.volume*b,a.D.muted)}f.Mx=function(){H2(this,!!Zg())};f.hu=function(){H2(this,!1)};function H2(a,b){a.g.Vm(b);if("detailpage"==a.b.ba&&!b){var c=ut(a);if(Te("VIDEO_ID")!=c.videoId){var d=a.getCurrentTime(),e={};e[c.videoId]=d;ri("yt-player-restore-playhead",e,172800);a.pauseVideo()}}a.b.ub=b;a.g.lg();a.Xa("fullscreentoggled",b);c={fullscreen:b,videoId:ut(a).videoId};pt(a)&&(c.listId=pt(a));a.H("onFullscreenChange",c)}f.qu=function(){OH(this)}; 
f.ki=function(){this.Xa("clearvideooverlays")};f.po=function(a,b){this.Xa("menu_button_add",a,b)};f.qo=function(a){this.Xa("menu_button_remove",a)};f.ro=function(a){this.Xa("menu_item_add",a)};f.to=function(a){this.Xa("menu_item_remove",a)};f.uo=function(a){this.Xa("menu_show",a)};f.uu=function(a){(a=bt(this,a))&&a.o&&tN(a.o.g)};f.eu=function(a){this.Xa("liveviewshift",a)}; 
f.ji=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(j2("vr"),wO(this.A),G2(this,k2(this.ta)));0==c&&e&&(this.j.O=e);var g=this.b;"leanback"==g.ba&&g.Cb()&&(0==c?this.ca=this.k:this.ca=d,this.H("onAdStateChange",c,e.video_id))}else this.H.apply(this,arguments)};f.te=function(a,b){this.B.F.apply(this.B,arguments);this.C&&this.C.H.apply(this.C,arguments);this.I&&this.I.H.apply(this.I,arguments)}; 
f.Sd=function(a){(a=bt(this,a))&&(2==this.F?y2(this):W(a.getPlayerState(),2)?this.yf(0):nO(a))};f.pauseVideo=function(a){(a=bt(this,a))&&a.pauseVideo()};function Ys(a,b){var c=bt(a,b);c&&1!=a.F&&2!=a.F&&(jO(c),1==b&&xt(a.C))}function Vs(a,b){if(!(Xs(a,"play_pause")||a.b.b.k&&"detailpage"==a.b.ba&&a.I&&a.I.loaded)){var c=a.U.play_pause?a.fa:null;c?c.qe("control_play"):a.Sd(b)}}function Ws(a,b){if(!Xs(a,"play_pause")){var c=a.U.play_pause?a.fa:null;c?c.qe("control_pause"):a.pauseVideo(b)}} 
function xH(a){var b;if(b=!Xs(a,"play_pause"))(b=!a.b.sc||2!=a.F)||(b=VE.hasTags(void 0));b&&((b=a.U.play_pause?a.fa:null)?b.qe("control_toggle_play_pause"):(b=bt(a,void 0))&&(W(b.j,8)&&!W(b.j,2)?a.pauseVideo(void 0):a.Sd(void 0)))}function Rs(a,b,c,d,e){if(!Xs(a,"seek")){var g=a.U.seek?a.fa:null;g?g.qe("control_seek",b):a.yf(b,c,d,e)}} 
function wH(a,b){if(a.b.ub!=b)if(Yg())if(b){var c=a.g.element,d=Gg(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=Gg(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else H2(a,b)}function $z(a){wH(a,!a.b.ub)}function zK(a,b){wH(a,!1);a.pauseVideo();GI(b)}function EH(a){var b=a.getVideoData();"detailpage"==a.b.ba&&a.b.ub&&Te("VIDEO_ID")==b.videoId?wH(a,!1):zK(a,it(a,!0))}f.getAdState=function(){return this.C?this.C.getAdState():-1}; 
function OH(a){var b=a.g.ac();a.b.Yd=b;if(a.k){b=!1;if(0!=a.k.readyState&&a.A){var c=new G(a.k.videoWidth,a.k.videoHeight),d=a.getVideoData();Mb(d.kb,c)||(d.kb=c,b=!0)}c=jF(a.g);Df(a.b.Sq,c)||(a.b.Sq=c,b=!0);c=jF(a.g);Df(a.b.Jf,c)||(a.b.Jf=c,b=!0);b&&(gK(bt(a),"r"),a.H("resize",a.g.Hc()),a.Xa("onResize"))}}function Xs(a,b){return!(!a.N[b]||!a.N[b].length)} 
f.Dg=function(a,b){b=b||l2.g;var c=[];B(a,function(a){this.N[a]?0>this.N[a].indexOf(b)&&this.N[a].push(b):(this.N[a]=[b],c.push(a))},this);0<c.length&&this.H("controlsdisabled",c)};f.mi=function(a,b){b=b||l2.g;var c=[];B(a,function(a){if(Xs(this,a)){var e=this.N[a].indexOf(b);0<=e&&this.N[a].splice(e,1);0==this.N[a].length&&c.push(a)}},this);0<c.length&&this.H("controlsenabled",c)};f.zo=function(a,b,c){this.oi();this.fa=a;b&&B(b,function(a){this.U[a]=!0},this);c&&aL(this.B,a,c)}; 
f.oi=function(){this.fa=null;this.U={};bL(this.B)};function qt(a,b,c,d){c=a.C&&b==a.C.ua?a.C.gk(c,d):b&&c?(a=et(a.B,b))?a.gk(c,d):null:null;return c}f.lu=function(){if(!this.eb){this.eb=!0;var a=this.getVideoData(),b=bt(this).getCurrentTime();ft(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.cu=function(){this.Xa("CONNECTION_ISSUE")};f.ou=function(a){this.Xa("heartbeatparams",a)}; 
f.J=function(){On();p2(this);this.Ia&&Tg(this.Ia);Tg(this.wb);Qh(Sb(this.ka),this.o);this.ca=null;M(this.fb);l2.G.J.call(this)};var I2=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};ba("yt.uix.widgets_",I2,void 0);function J2(a){a=a.getInstance();var b=Z(a);b in I2||(a.register(),DF(a,"yt-uix-dispose-"+b,a.dispose),I2[b]=a)};J2(AJ);J2(GF);q("yt.tracking.share")||ba("yt.tracking.share",wI,void 0);q("yt.net.ping")||ba("yt.net.ping.send",pf,void 0);q("yt.window.popup")||(ba("yt.window.popup",HI,void 0),ba("yt.window.open",GI,void 0));ba("yt.player.Application.create",l2.create,void 0);var K2=q("ytcsi.tick");K2&&K2("pe");})(); 

Did this file decode correctly?

Original Code

(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.Rb?a.Rb:a.Rb=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 null!=a}function ha(a){return"array"==ea(a)}function ia(a){var b=ea(a);return"array"==b||"object"==b&&"number"==typeof a.length}function s(a){return"string"==typeof a}function ja(a){return"number"==typeof a}function ka(a){return"function"==ea(a)}function la(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ma(a){return a[na]||(a[na]=++oa)}
var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
function v(a,b,c){v=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return v.apply(null,arguments)}function sa(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 ta(a,b){for(var c in b)a[c]=b[c]}var w=Date.now||function(){return+new Date};
function x(a,b){function c(){}c.prototype=b.prototype;a.G=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.AF=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 v.apply(null,c)}return v(this,a)};function ua(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ua);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}x(ua,Error);ua.prototype.name="CustomError";var va;function wa(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function xa(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 ya(a){return/^[\s\xa0]*$/.test(a)}function A(a){return ya(za(a))}function Aa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function Ba(a){return encodeURIComponent(String(a))}function Ca(a){return decodeURIComponent(a.replace(/\+/g," "))}
function Da(a){if(!Ea.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Fa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ga,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ha,"&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 Fa=/&/g,Ga=/</g,Ha=/>/g,Ia=/"/g,Ja=/'/g,Ka=/\x00/g,Ea=/[\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 za(a){return null==a?"":String(a)}function Ua(a){return Array.prototype.join.call(arguments,"")}
function Va(a,b){for(var c=0,d=Aa(String(a)).split("."),e=Aa(String(b)).split("."),g=Math.max(d.length,e.length),h=0;0==c&&h<g;h++){var k=d[h]||"",l=e[h]||"",p=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var u=p.exec(k)||["","",""],t=r.exec(l)||["","",""];if(0==u[0].length&&0==t[0].length)break;c=Wa(0==u[1].length?0:parseInt(u[1],10),0==t[1].length?0:parseInt(t[1],10))||Wa(0==u[2].length,0==t[2].length)||Wa(u[2],t[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&&ya(a)?NaN:b}function ab(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function bb(a){var b=s(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(s(a))return s(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},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(s(a))return s(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},B=eb.forEach?function(a,b,c){eb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},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=s(a)?a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[g++]=l)}return e},C=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=s(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=v(b,d));return eb.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;B(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=s(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},kb=eb.every?function(a,b,c){return eb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&!b.call(c,e[g],g,a))return!1;
return!0};function lb(a,b,c){b=mb(a,b,c);return 0>b?null:s(a)?a.charAt(b):a[b]}function mb(a,b,c){for(var d=a.length,e=s(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1}function nb(a,b){var c=ob(a,b,void 0);return 0>c?null:s(a)?a.charAt(c):a[c]}function ob(a,b,c){for(var d=s(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1}function D(a,b){return 0<=fb(a,b)}function E(a){return 0==a.length}
function pb(a){if(!ha(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function qb(a,b){D(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(ha(d)||(e=ia(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var g=a.length,h=d.length,k=0;k<h;k++)a[g+k]=d[k];else a.push(d)}}function 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=la(e)?"o"+ma(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,g)||(b[g]=!0,a[c++]=e)}a.length=c}function 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 Db(a,b){var c=Bb;Cb(a,function(a,e){return c(a[b],e[b])})}
function Eb(a,b,c){if(!ia(a)||!ia(b)||a.length!=b.length)return!1;var d=a.length;c=c||Fb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Bb(a,b){return a>b?1:a<b?-1:0}function Fb(a,b){return a===b}function Gb(a,b,c){c=Ab(a,b,c);0>c&&xb(a,-(c+1),0,b)}function Hb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];ha(d)?b.push.apply(b,Hb.apply(null,d)):b.push(d)}return b};function Ib(a,b,c){return Math.min(Math.max(a,b),c)}function Kb(a,b,c){return a+c*(b-a)};function F(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=F.prototype;f.clone=function(){return new F(this.x,this.y)};function Lb(a,b){return new F(a.x-b.x,a.y-b.y)}f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};f.scale=function(a,b){var c=ja(b)?b:a;this.x*=a;this.y*=c;return this};function G(a,b){this.width=a;this.height=b}function Mb(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=G.prototype;f.clone=function(){return new G(this.width,this.height)};f.isEmpty=function(){return!(this.width*this.height)};f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ja(b)?b:a;this.width*=a;this.height*=c;return this};function Nb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ob(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Pb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Qb(a){var b=0,c;for(c in a)b++;return b}function Rb(a){for(var b in a)return a[b]}function Sb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Tb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ub(a,b){for(var c in a)if(a[c]==b)return!0;return!1}
function Vb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Wb(a){var b=Xb;return(a=Vb(b,a,void 0))&&b[a]}function Yb(a){for(var b in a)return!1;return!0}function Zb(a){for(var b in a)delete a[b]}function $b(a,b){return b in a?a[b]:void 0}function ac(a){var b={},c;for(c in a)b[c]=a[c];return b}function bc(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]=bc(a[c]);return b}return a}var cc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function dc(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<cc.length;g++)c=cc[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function ec(a){var b=arguments.length;if(1==b&&ha(arguments[0]))return ec.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var fc;t:{var gc=m.navigator;if(gc){var hc=gc.userAgent;if(hc){fc=hc;break t}}fc=""}function ic(a){return Ma(fc,a)};var jc,kc,lc,mc,nc;function oc(){return m.navigator||null}var pc=ic("Opera")||ic("OPR"),qc=ic("Trident")||ic("MSIE"),rc=ic("Gecko")&&!Qa(fc,"WebKit")&&!(ic("Trident")||ic("MSIE")),sc=Qa(fc,"WebKit"),tc=sc&&ic("Mobile"),uc=oc(),vc=uc&&uc.platform||"";jc=Ma(vc,"Mac");kc=Ma(vc,"Win");lc=!!oc()&&Ma(oc().appVersion||"","X11");var wc=fc;mc=!!wc&&Ma(wc,"Android");nc=!!wc&&Ma(wc,"iPhone");var xc=!!wc&&Ma(wc,"iPad");function yc(){var a=m.document;return a?a.documentMode:void 0}
var zc=function(){var a="",b;if(pc&&m.opera)return a=m.opera.version,ka(a)?a():a;rc?b=/rv\:([^\);]+)(\)|;)/:qc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:sc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(fc))?a[1]:"");return qc&&(b=yc(),b>parseFloat(a))?String(b):a}(),Ac={};function Bc(a){return Ac[a]||(Ac[a]=0<=Va(zc,a))}function Cc(a){return qc&&Dc>=a}var Ec=m.document,Dc=Ec&&qc?yc()||("CSS1Compat"==Ec.compatMode?parseInt(zc,10):5):void 0;var Fc=!qc||Cc(9),Gc=!rc&&!qc||qc&&Cc(9)||rc&&Bc("1.9.1"),Hc=qc&&!Bc("9"),Ic=qc||pc||sc;function Jc(a){return a?new Kc(Lc(a)):va||(va=new Kc)}function Mc(a){return s(a)?document.getElementById(a):a}function Nc(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Oc("*",a,b)}function H(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Oc("*",a,b)[0];return d||null}
function Oc(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&&D(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function Pc(a,b){Nb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Qc?a.setAttribute(Qc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Qc={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 Rc(a){a=a.document;a=Sc(a)?a.documentElement:a.body;return new G(a.clientWidth,a.clientHeight)}function Tc(a){var b=Uc(a);a=a.parentWindow||a.defaultView;return qc&&Bc("10")&&a.pageYOffset!=b.scrollTop?new F(b.scrollLeft,b.scrollTop):new F(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Uc(a){return!sc&&Sc(a)?a.documentElement:a.body||a.documentElement}function Vc(a){return a?a.parentWindow||a.defaultView:window}function I(a,b,c){return Wc(document,arguments)}
function Wc(a,b){var c=b[0],d=b[1];if(!Fc&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Da(d.name),'"');if(d.type){c.push(' type="',Da(d.type),'"');var e={};dc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(s(d)?c.className=d:ha(d)?c.className=d.join(" "):Pc(c,d));2<b.length&&Xc(a,c,b,2);return c}function Xc(a,b,c,d){function e(c){c&&b.appendChild(s(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ia(g)||la(g)&&0<g.nodeType?e(g):B(Yc(g)?vb(g):g,e)}}
function Zc(a){return document.createElement(a)}function $c(a){return document.createTextNode(String(a))}function Sc(a){return"CSS1Compat"==a.compatMode}function ad(a,b){a.appendChild(b)}function bd(a,b){Xc(Lc(a),a,arguments,1)}function cd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function dd(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function ed(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function fd(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}
function gd(a){return Gc&&void 0!=a.children?a.children:hb(a.childNodes,function(a){return 1==a.nodeType})}function hd(a){return void 0!=a.firstElementChild?a.firstElementChild:id(a.firstChild)}function id(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function jd(a){var b;if(Ic&&!(qc&&Bc("9")&&!Bc("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return la(b)&&1==b.nodeType?b:null}
function kd(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 Lc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function ld(a){return a.contentWindow||Vc(a.contentDocument||a.contentWindow.document)}
function md(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{cd(a);var c=Lc(a);a.appendChild(c.createTextNode(String(b)))}}function nd(a,b){var c=[];return od(a,b,c,!0)?c[0]:void 0}function od(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||od(a,b,c,d))return!0;a=a.nextSibling}return!1}
var pd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},qd={IMG:" ",BR:"\n"};function rd(a,b,c){if(!(a.nodeName in pd))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 qd)b.push(qd[a.nodeName]);else for(a=a.firstChild;a;)rd(a,b,c),a=a.nextSibling}function Yc(a){if(a&&"number"==typeof a.length){if(la(a))return"function"==typeof a.item||"string"==typeof a.item;if(ka(a))return"function"==typeof a.item}return!1}
function sd(a,b,c){if(!b&&!c)return null;var d=b?b.toUpperCase():null;return td(a,function(a){return(!d||a.nodeName==d)&&(!c||s(a.className)&&D(a.className.split(/\s+/),c))},!0)}function ud(a,b){return sd(a,null,b)}function td(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 Kc(a){this.b=a||m.document||document}f=Kc.prototype;f.K=function(a){return s(a)?this.b.getElementById(a):a};f.setProperties=Pc;
f.oC=function(a,b,c){return Wc(this.b,arguments)};f.createElement=function(a){return this.b.createElement(a)};function vd(a){return Sc(a.b)}function wd(a){a=a.b;return a.parentWindow||a.defaultView}function xd(a){return Tc(a.b)}f.appendChild=ad;f.append=bd;f.contains=kd;var yd="StopIteration"in m?m.StopIteration:Error("StopIteration");function Ad(){}Ad.prototype.next=function(){throw yd;};Ad.prototype.gc=function(){return this};function Bd(a){if(a instanceof Ad)return a;if("function"==typeof a.gc)return a.gc(!1);if(ia(a)){var b=0,c=new Ad;c.next=function(){for(;;){if(b>=a.length)throw yd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function Cd(a,b,c){if(ia(a))try{B(a,b,c)}catch(d){if(d!==yd)throw d;}else{a=Bd(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==yd)throw e;}}}function Dd(a){if(ia(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.ea=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Ed?(c=a.La(),d=a.Sa()):(c=Tb(a),d=Sb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=Ed.prototype;f.Pa=function(){return this.ea};f.Sa=function(){Fd(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};f.La=function(){Fd(this);return this.b.concat()};
function Gd(a,b){return Hd(a.g,b)}f.wg=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.ea!=a.Pa())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.ea};f.clear=function(){this.g={};this.j=this.ea=this.b.length=0};
f.remove=function(a){return Hd(this.g,a)?(delete this.g[a],this.ea--,this.j++,this.b.length>2*this.ea&&Fd(this),!0):!1};function Fd(a){if(a.ea!=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.ea!=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.ea++,this.b.push(a),this.j++);this.g[a]=b};
f.forEach=function(a,b){for(var c=this.La(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};f.clone=function(){return new Ed(this)};f.gc=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 yd;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.Pa?a.Pa():ia(a)||s(a)?a.length:Qb(a)}function Kd(a){if("function"==typeof a.Sa)return a.Sa();if(s(a))return a.split("");if(ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Sb(a)}function Ld(a){if("function"==typeof a.La)return a.La();if("function"!=typeof a.Sa){if(ia(a)||s(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Tb(a)}}
function Md(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(ia(a)||s(a))B(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(ia(a)||s(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=sc;function Td(a){return a?decodeURI(a):a}function Sd(a){return Td(Qd(a)[3]||null)}
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(ha(b))for(var d=0;d<b.length;d++)Vd(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",Ba(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("=",Ba(c));return Ud(a)};function J(a,b){var c;a instanceof J?(this.lf=n(b)?b:a.lf,ee(this,a.Mb),this.kf=a.kf,fe(this,a.Fb),ge(this,a.jf),he(this,a.Ub),ie(this,a.b.clone()),this.fg=a.bh()):a&&(c=Qd(String(a)))?(this.lf=!!b,ee(this,c[1]||"",!0),this.kf=je(c[2]||""),fe(this,c[3]||"",!0),ge(this,c[4]),he(this,c[5]||"",!0),ie(this,c[6]||"",!0),this.fg=je(c[7]||"")):(this.lf=!!b,this.b=new ke(null,0,this.lf))}f=J.prototype;f.Mb="";f.kf="";f.Fb="";f.jf=null;f.Ub="";f.fg="";f.lf=!1;
f.toString=function(){var a=[],b=this.Mb;b&&a.push(le(b,me,!0),":");if(b=this.Fb){a.push("//");var c=this.kf;c&&a.push(le(c,me,!0),"@");a.push(Ba(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.jf;null!=b&&a.push(":",String(b))}if(b=this.Ub)this.Fb&&"/"!=b.charAt(0)&&a.push("/"),a.push(le(b,"/"==b.charAt(0)?ne:oe,!0));(b=this.b.toString())&&a.push("?",b);(b=this.bh())&&a.push("#",le(b,pe));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Mb;c?ee(b,a.Mb):c=!!a.kf;c?b.kf=a.kf:c=!!a.Fb;c?fe(b,a.Fb):c=null!=a.jf;var d=a.Ub;if(c)ge(b,a.jf);else if(c=!!a.Ub){if("/"!=d.charAt(0))if(this.Fb&&!this.Ub)d="/"+d;else{var e=b.Ub.lastIndexOf("/");-1!=e&&(d=b.Ub.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.fg;c&&(b.fg=a.bh());return b};f.clone=function(){return new J(this)};function ee(a,b,c){a.Mb=c?je(b,!0):b;a.Mb&&(a.Mb=a.Mb.replace(/:$/,""));return a}function re(a){return a.Fb}function fe(a,b,c){a.Fb=c?je(b,!0):b;return a}function ge(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.jf=b}else a.jf=null;return a}
function he(a,b,c){a.Ub=c?je(b,!0):b}function ie(a,b,c){b instanceof ke?(a.b=b,se(a.b,a.lf)):(c||(b=le(b,te)),a.b=new ke(b,0,a.lf));return a}function ue(a){return a.b}function K(a,b,c){a.b.set(b,c);return a}function ve(a,b,c){ha(c)||(c=[String(c)]);we(a.b,b,c)}f.bh=function(){return this.fg};function xe(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36));return a}
function ye(a){return a instanceof J?a.clone():new J(a,void 0)}function ze(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,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function le(a,b,c){return s(a)?(a=encodeURI(a).replace(b,Ae),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Ae(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var me=/[#\/\?@]/g,oe=/[\#\?:]/g,ne=/[\#\?]/g,te=/[\#\?@]/g,pe=/#/g;
function ke(a,b,c){this.b=a||null;this.g=!!c}function Be(a){if(!a.cb&&(a.cb=new Ed,a.ea=0,a.b))for(var b=a.b.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null,g=null;0<=d?(e=b[c].substring(0,d),g=b[c].substring(d+1)):e=b[c];e=Ca(e);e=Ce(a,e);a.add(e,g?Ca(g):"")}}f=ke.prototype;f.cb=null;f.ea=null;f.Pa=function(){Be(this);return this.ea};f.add=function(a,b){Be(this);this.b=null;a=Ce(this,a);var c=this.cb.get(a);c||this.cb.set(a,c=[]);c.push(b);this.ea++;return this};
f.remove=function(a){Be(this);a=Ce(this,a);return Gd(this.cb,a)?(this.b=null,this.ea-=this.cb.get(a).length,this.cb.remove(a)):!1};f.clear=function(){this.cb=this.b=null;this.ea=0};f.isEmpty=function(){Be(this);return 0==this.ea};function De(a,b){Be(a);b=Ce(a,b);return Gd(a.cb,b)}f.wg=function(a){var b=this.Sa();return D(b,a)};f.La=function(){Be(this);for(var a=this.cb.Sa(),b=this.cb.La(),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};
f.Sa=function(a){Be(this);var b=[];if(s(a))De(this,a)&&(b=ub(b,this.cb.get(Ce(this,a))));else{a=this.cb.Sa();for(var c=0;c<a.length;c++)b=ub(b,a[c])}return b};f.set=function(a,b){Be(this);this.b=null;a=Ce(this,a);De(this,a)&&(this.ea-=this.cb.get(a).length);this.cb.set(a,[b]);this.ea++;return this};f.get=function(a,b){var c=a?this.Sa(a):[];return 0<c.length?String(c[0]):b};function we(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.cb.set(Ce(a,b),vb(c)),a.ea+=c.length)}
f.toString=function(){if(this.b)return this.b;if(!this.cb)return"";for(var a=[],b=this.cb.La(),c=0;c<b.length;c++)for(var d=b[c],e=Ba(d),d=this.Sa(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+Ba(d[g]));a.push(h)}return this.b=a.join("&")};f.clone=function(){var a=new ke;a.b=this.b;this.cb&&(a.cb=this.cb.clone(),a.ea=this.ea);return a};function Ce(a,b){var c=String(b);a.g&&(c=c.toLowerCase());return c}
function se(a,b){b&&!a.g&&(Be(a),a.b=null,a.cb.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),we(this,e,a))},a));a.g=b};var Ee=/^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\/)/,Fe=/^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]+)?([\/\?\#]|$)/,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]+)?\/embed\//,
He=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,Ie=/^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Je=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,Ke=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Le=/^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]+)?([\/\?\#]|$)/,
Me=/^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]+)?([\/\?\#]|$))/,Ne=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,
Oe=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|24e12c4a-a-95274a9c-s-sites.googlegroups.com\/a\/google.com\/flash-api-test-harness\/apiharness.swf|([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|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){ka(a)&&(a=Ue(a));return window.setTimeout(a,b)}function Ve(a,b){ka(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}
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 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(Le),c=cf(a);b!=c&&Xe(Error(a+" behavior is not consistent"));return c}function gf(){var a=document.location.toString(),b=!!a&&-1!=a.search(Ge),c=-1!=a.indexOf("/embed/");b!=c&&Xe(Error(a+" behavior is not consistent"));return c}function hf(a){var b=!!a&&-1!=a.search(Oe),c=cf(a)||df(a,af);b!=c&&Xe(Error(a+" behavior is not consistent"));return c}
function jf(a){var b=!!a&&-1!=a.search(Me),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 kf(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 lf(a){a=new J(a);ee(a,document.location.protocol);return a.toString()};var mf={},nf=0,of=q("yt.net.ping.workerUrl_")||null;ba("yt.net.ping.workerUrl_",of,void 0);function pf(a,b,c){a&&(c?a&&(a=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Lc(a).body.appendChild(a)):qf(a,b))}function qf(a,b){var c=new Image,d=""+nf++;mf[d]=c;c.onload=c.onerror=function(){b&&mf[d]&&b();delete mf[d]};c.src=a;c=eval("null")};function rf(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 sf(a){return eval("("+a+")")}function tf(a){return uf(new vf(void 0),a)}function vf(a){this.b=a}
function uf(a,b){var c=[];wf(a,b,c);return c.join("")}
function wf(a,b,c){switch(typeof b){case "string":xf(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(null==b){c.push("null");break}if(ha(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],wf(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),xf(g,c),
c.push(":"),wf(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 yf={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},zf=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function xf(a,b){b.push('"',a.replace(zf,function(a){if(a in yf)return yf[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return yf[a]=e+b.toString(16)}),'"')};function Af(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=Af.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new Af(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof Af?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
f.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};f.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};f.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
f.scale=function(a,b){var c=ja(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function Bf(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=Bf.prototype;f.clone=function(){return new Bf(this.left,this.top,this.width,this.height)};function Cf(a){return new Bf(a.left,a.top,a.right-a.left,a.bottom-a.top)}function Df(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 Bf?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 Ef(a){return new G(a.width,a.height)}f.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
f.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};f.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ja(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Ff(a){Ff[" "](a);return a}Ff[" "]=ca;function Gf(){return sc?"Webkit":rc?"Moz":qc?"ms":pc?"O":null}function Hf(){return sc?"-webkit":rc?"-moz":qc?"-ms":pc?"-o":null}function If(a,b){if(b&&a in b)return a;var c=Gf();return c?(c=c.toLowerCase(),c+=bb(a),!n(b)||c in b?c:null):null};function Jf(a,b,c){s(b)?Kf(a,c,b):Nb(b,sa(Kf,a))}function Kf(a,b,c){(c=Lf(a,c))&&(a.style[c]=b)}function Lf(a,b){var c=ab(b);if(void 0===a.style[c]){var d=Gf()+bb(c);if(void 0!==a.style[d])return d}return c}function Mf(a,b){var c=Lc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Nf(a,b){return Mf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Of(a,b,c){var d,e=rc&&(jc||lc)&&Bc("1.9");b instanceof F?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Pf(d,e);a.style.top=Pf(b,e)}function Qf(a){return new F(a.offsetLeft,a.offsetTop)}function Rf(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}qc&&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 Sf(a){if(qc&&!Cc(8))return a.offsetParent;var b=Lc(a),c=Nf(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Nf(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 Tf(a){for(var b=new Af(0,Infinity,Infinity,0),c=Jc(a),d=c.b.body,e=c.b.documentElement,g=Uc(c.b);a=Sf(a);)if(!(qc&&0==a.clientWidth||sc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Nf(a,"overflow")){var h=Uf(a),k;k=a;if(rc&&!Bc("1.9")){var l=parseFloat(Mf(k,"borderLeftWidth"));if(Vf(k))var p=k.offsetWidth-k.clientWidth-l-parseFloat(Mf(k,"borderRightWidth")),l=l+p;k=new F(l,parseFloat(Mf(k,"borderTopWidth")))}else k=new F(k.clientLeft,k.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,
h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);c=Rc(wd(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 Uf(a){var b,c=Lc(a),d=Nf(a,"position"),e=rc&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),g=new F(0,0),h;b=c?Lc(c):document;h=!qc||Cc(9)||vd(Jc(b))?b.documentElement:b.body;if(a==h)return g;if(a.getBoundingClientRect)b=Rf(a),a=xd(Jc(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(sc&&"fixed"==Nf(b,"position")){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(pc||sc&&"absolute"==d)g.y-=c.body.offsetTop;for(b=a;(b=Sf(b))&&b!=c.body&&b!=h;)g.x-=b.scrollLeft,pc&&"TR"==b.tagName||(g.y-=b.scrollTop)}return g}
function Wf(a){var b;if(a.getBoundingClientRect)b=Rf(a),b=new F(b.left,b.top);else{b=xd(Jc(a));var c=Uf(a);b=new F(c.x-b.x,c.y-b.y)}if(rc&&!Bc(12)){i:{c=ab("transform");if(void 0===a.style[c]&&(c=Gf()+bb(c),void 0!==a.style[c])){c=Hf()+"-transform";break i}c="transform"}a=(a=Nf(a,c)||Nf(a,"transform"))?(a=a.match(Xf))?new F(parseFloat(a[1]),parseFloat(a[2])):new F(0,0):new F(0,0);a=new F(b.x+a.x,b.y+a.y)}else a=b;return a}
function Yf(a){if(1==a.nodeType)return Wf(a);var b=ka(a.IC),c=a;a.targetTouches&&a.targetTouches.length?c=a.targetTouches[0]:b&&a.b.targetTouches&&a.b.targetTouches.length&&(c=a.b.targetTouches[0]);return new F(c.clientX,c.clientY)}function Zf(a,b,c){if(b instanceof G)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");$f(a,b);a.style.height=Pf(c,!0)}function Pf(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function $f(a,b){a.style.width=Pf(b,!0)}
function ag(a){return bg(a)}function bg(a){var b=cg;if("none"!=Nf(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=sc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new G(b,c):(a=Rf(a),new G(a.right-a.left,a.bottom-a.top))}
function dg(a){var b=Uf(a);a=bg(a);return new Bf(b.x,b.y,a.width,a.height)}function fg(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 gg(a,b){a.style.display=b?"":"none"}function Vf(a){return"rtl"==Nf(a,"direction")}
function hg(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 ig(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?hg(a,c):0}var jg={thin:2,medium:4,thick:6};
function kg(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 jg?jg[c]:hg(a,c)}function lg(a){if(qc&&!Cc(9)){var b=kg(a,"borderLeft"),c=kg(a,"borderRight"),d=kg(a,"borderTop");a=kg(a,"borderBottom");return new Af(d,c,a,b)}b=Mf(a,"borderLeftWidth");c=Mf(a,"borderRightWidth");d=Mf(a,"borderTopWidth");a=Mf(a,"borderBottomWidth");return new Af(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}
var mg=/[^\d]+$/,ng={cm:1,"in":1,mm:1,pc:1,pt:1},og={em:1,ex:1};function pg(a){var b=Nf(a,"fontSize"),c;c=(c=b.match(mg))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(qc){if(c in ng)return hg(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in og)return a=a.parentNode,c=Nf(a,"fontSize"),hg(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;ed(c);return b}var Xf=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function qg(a){if(a.classList)return a.classList;a=a.className;return s(a)&&a.match(/\S+/g)||[]}function rg(a,b){return a.classList?a.classList.contains(b):D(qg(a),b)}function O(a,b){a.classList?a.classList.add(b):rg(a,b)||(a.className+=0<a.className.length?" "+b:b)}function sg(a,b){if(a.classList)B(b,function(b){O(a,b)});else{var c={};B(qg(a),function(a){c[a]=!0});B(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function P(a,b){a.classList?a.classList.remove(b):rg(a,b)&&(a.className=hb(qg(a),function(a){return a!=b}).join(" "))}function tg(a,b){a.classList?B(b,function(b){P(a,b)}):a.className=hb(qg(a),function(a){return!D(b,a)}).join(" ")}function Q(a,b,c){c?O(a,b):P(a,b)}function ug(a,b){var c=!rg(a,b);Q(a,b,c);return c};function vg(a,b,c){a&&(a.dataset?a.dataset[wg(b)]=c:a.setAttribute("data-"+b,c))}function xg(a,b){return a?a.dataset?a.dataset[wg(b)]:a.getAttribute("data-"+b):null}function yg(a,b){a&&(a.dataset?delete a.dataset[wg(b)]:a.removeAttribute("data-"+b))}var zg={};function wg(a){return zg[a]||(zg[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var Ag=sc?"webkit":rc?"moz":qc?"ms":pc?"o":"";function Bg(a){var b=a.__yt_uid_key;b||(b=Cg(),a.__yt_uid_key=b);return b}var Cg=q("yt.dom.getNextId_");if(!Cg){Cg=function(){return++Dg};ba("yt.dom.getNextId_",Cg,void 0);var Dg=0}function Eg(a,b){var c=Oc(a,null,b);return c.length?c[0]:null}function Fg(a,b){if(a in b)return b[a];var c=Ag+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function Gg(a,b){var c;jb(a,function(a){c=Fg(a,b);return!!c});return c}
function Hg(a){Q(document.body,"hide-players",!0);a&&Q(a,"preserve-players",!0)}function Ig(){Q(document.body,"hide-players",!1);var a=Nc("preserve-players");B(a,function(a){P(a,"preserve-players")})};function Jg(a){if(a=a||window.event){for(var b in a)b in Kg||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.dc=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 Lg(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 Mg(a){n(a.b)||Lg(a);return a.b}function Ng(a){n(a.g)||Lg(a);return a.g}f=Jg.prototype;f.dc=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.dc.returnValue=!1;this.dc.preventDefault&&this.dc.preventDefault()};
f.stopPropagation=function(){this.dc.cancelBubble=!0;this.dc.stopPropagation&&this.dc.stopPropagation()};f.stopImmediatePropagation=function(){this.dc.cancelBubble=!0;this.dc.stopImmediatePropagation&&this.dc.stopImmediatePropagation()};var Kg={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Og=q("yt.events.listeners_")||{};ba("yt.events.listeners_",Og,void 0);var Pg=q("yt.events.counter_")||{count:0};ba("yt.events.counter_",Pg,void 0);function Qg(a,b,c,d){return Vb(Og,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function Rg(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Qg(a,b,c,d);if(e)return e;var e=++Pg.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new Jg(d);if(!td(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Jg(b);b.currentTarget=a;return c.call(a,b)};h=Ue(h);Og[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 Sg(a,b){var c;c=Rg(a,"playing",function(){Tg(c);b.apply(a,arguments)},void 0)}function Ug(a,b,c,d){return Vg(a,b,c,function(a){return rg(a,d)})}
function Vg(a,b,c,d){var e=a||document;return Rg(e,b,function(a){var b=td(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Tg(a){a&&("string"==typeof a&&(a=[a]),B(a,function(a){if(a in Og){var c=Og[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 Og[a]}}))}function Wg(a){for(var b in Og)Og[b][0]==a&&Tg(b)}
function Xg(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 Yg(){return!!Gg(["fullscreenEnabled","fullScreenEnabled"],document)}function Zg(){return Gg(["fullscreenElement","fullScreenElement"],document)};function $g(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ac(ah);this.assets=a.assets||{};this.attrs=a.attrs||ac(bh);this.params=a.params||ac(ch);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 ah={enablejsapi:1},bh={},ch={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
$g.prototype.clone=function(){var a=new $g,b;for(b in this){var c=this[b];"object"==ea(c)?a[b]=ac(c):a[b]=c}return a};var dh,eh,fh,gh,hh,ih,jh;jh=ih=hh=gh=fh=eh=dh=!1;var kh=fc;kh&&(-1!=kh.indexOf("Firefox")?dh=!0:-1!=kh.indexOf("Camino")?eh=!0:-1!=kh.indexOf("iPhone")||-1!=kh.indexOf("iPod")?fh=!0:-1!=kh.indexOf("iPad")?gh=!0:-1!=kh.indexOf("Chrome")?ih=!0:-1!=kh.indexOf("Android")?hh=!0:-1!=kh.indexOf("Safari")&&(jh=!0));var lh=dh,mh=eh,nh=fh,oh=gh,ph=hh,qh=ih,rh=jh;var sh=w(),th=null,uh=Array(50),vh=-1,wh=!1;function xh(){var a=yh;zh();th.push(a);Ah(th)}function Bh(a,b){zh();var c=th,d=Ch(a,String(b));E(c)?Dh(d):(Ah(c),B(c,function(a){a(d)}))}function zh(){th||(th=q("yt.mdx.remote.debug.handlers_")||[],ba("yt.mdx.remote.debug.handlers_",th,void 0))}function Dh(a){var b=(vh+1)%50;vh=b;uh[b]=a;wh||(wh=49==b)}function Ah(a){var b=uh;if(b[0]){var c=vh,d=wh?c:-1;do{var d=(d+1)%50,e=b[d];B(a,function(a){a(e)})}while(d!=c);uh=Array(50);vh=-1;wh=!1}}
function Ch(a,b){var c=(w()-sh)/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 Eh(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""}function Fh(a,b){return!!b&&(a.id==b||a.uuid==b)}function Gh(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 Hh(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function Ih(a){return new Eh(a)}function Jh(a){return ha(a)?C(a,Ih):[]}
function Kh(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 Lh(a){return ha(a)?"["+C(a,Kh).join(",")+"]":"null"};function Mh(){}Mh.prototype.Rd=!1;Mh.prototype.ha=function(){return this.Rd};Mh.prototype.dispose=function(){this.Rd||(this.Rd=!0,this.J())};function R(a,b){Nh(a,sa(Oh,b))}function Nh(a,b){a.yb||(a.yb=[]);a.yb.push(n(void 0)?v(b,void 0):b)}Mh.prototype.J=function(){if(this.yb)for(;this.yb.length;)this.yb.shift()()};function Ph(a){return a&&"function"==typeof a.ha?a.ha():!1}function Oh(a){a&&"function"==typeof a.dispose&&a.dispose()}
function Qh(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ia(d)?Qh.apply(null,d):Oh(d)}};function Rh(){this.b=[];this.kc={}}x(Rh,Mh);f=Rh.prototype;f.xs=1;f.Tj=0;f.subscribe=function(a,b,c){var d=this.kc[a];d||(d=this.kc[a]=[]);var e=this.xs;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.xs=e+3;d.push(e);return e};f.ga=function(a,b,c){if(a=this.kc[a]){var d=this.b;if(a=lb(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Ob(a)}return!1};
f.Ob=function(a){if(0!=this.Tj)return this.g||(this.g=[]),this.g.push(a),!1;var b=this.b[a];if(b){var c=this.kc[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.kc[a];if(c){this.Tj++;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.Tj--;if(this.g&&0==this.Tj)for(;c=this.g.pop();)this.Ob(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.kc[a];b&&(B(b,this.Ob,this),delete this.kc[a])}else this.b.length=0,this.kc={}};f.Pa=function(a){if(a){var b=this.kc[a];return b?b.length:0}a=0;for(b in this.kc)a+=this.Pa(b);return a};f.J=function(){Rh.G.J.call(this);delete this.b;delete this.kc;delete this.g};var Sh=q("yt.pubsub.instance_")||new Rh;Rh.prototype.subscribe=Rh.prototype.subscribe;Rh.prototype.unsubscribeByKey=Rh.prototype.Ob;Rh.prototype.publish=Rh.prototype.H;Rh.prototype.clear=Rh.prototype.clear;ba("yt.pubsub.instance_",Sh,void 0);var Th=q("yt.pubsub.subscribedKeys_")||{};ba("yt.pubsub.subscribedKeys_",Th,void 0);var Uh=q("yt.pubsub.topicToKeys_")||{};ba("yt.pubsub.topicToKeys_",Uh,void 0);var Vh=q("yt.pubsub.isSynchronous_")||{};ba("yt.pubsub.isSynchronous_",Vh,void 0);
var Wh=q("yt.pubsub.skipSubId_")||null;ba("yt.pubsub.skipSubId_",Wh,void 0);function Xh(a,b,c){var d=Yh();if(d){var e=d.subscribe(a,function(){if(!Wh||Wh!=e){var d=arguments,h=function(){Th[e]&&b.apply(c||window,d)};try{Vh[a]?h():L(h,0)}catch(k){Xe(k)}}},c);Th[e]=!0;Uh[a]||(Uh[a]=[]);Uh[a].push(e);return e}return 0}function Zh(a){var b=Yh();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),B(a,function(a){b.unsubscribeByKey(a);delete Th[a]}))}
function $h(a,b){var c=Yh();return c?c.publish.apply(c,arguments):!1}function ai(a,b){Vh[a]=!0;var c=Yh();c&&c.publish.apply(c,arguments);Vh[a]=!1}function bi(a){Uh[a]&&(a=Uh[a],B(a,function(a){Th[a]&&delete Th[a]}),a.length=0)}function ci(a){var b=Yh();if(b)if(b.clear(a),a)bi(a);else for(var c in Uh)bi(c)}function Yh(){return q("yt.pubsub.instance_")};function di(){};function ei(){}x(ei,di);ei.prototype.Pa=function(){var a=0;Cd(this.gc(!0),function(){a++});return a};ei.prototype.clear=function(){var a=Dd(this.gc(!0)),b=this;B(a,function(a){b.remove(a)})};function fi(a){this.b=a}x(fi,ei);f=fi.prototype;f.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};f.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};f.get=function(a){a=this.b.getItem(a);if(!s(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.b.removeItem(a)};
f.Pa=function(){return this.b.length};f.gc=function(a){var b=0,c=this.b,d=new Ad;d.next=function(){if(b>=c.length)throw yd;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!s(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.b.clear()};f.key=function(a){return this.b.key(a)};function gi(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a}x(gi,fi);function hi(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a}x(hi,fi);function ii(a){this.b=a}ii.prototype.set=function(a,b){n(b)?this.b.set(a,tf(b)):this.b.remove(a)};ii.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return rf(b)}catch(d){throw"Storage: Invalid value was encountered";}};ii.prototype.remove=function(a){this.b.remove(a)};function ji(a){this.b=a}x(ji,ii);function ki(a){this.data=a}function li(a){return!n(a)||a instanceof ki?a:new ki(a)}ji.prototype.set=function(a,b){ji.G.set.call(this,a,li(b))};ji.prototype.g=function(a){a=ji.G.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};ji.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 mi(a){this.b=a}x(mi,ji);function ni(a){var b=a.creation;a=a.expiration;return!!a&&a<w()||!!b&&b>w()}mi.prototype.set=function(a,b,c){if(b=li(b)){if(c){if(c<w()){mi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=w()}mi.G.set.call(this,a,b)};mi.prototype.g=function(a,b){var c=mi.G.g.call(this,a);if(c)if(!b&&ni(c))mi.prototype.remove.call(this,a);else return c};function oi(a){this.b=a}x(oi,mi);function pi(a,b){var c=[];Cd(b,function(a){var b;try{b=oi.prototype.g.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?ni(b)&&c.push(a):c.push(a)},a);return c}function qi(a,b){var c=pi(a,b);B(c,function(a){oi.prototype.remove.call(this,a)},a)}oi.prototype.j=function(){qi(this,this.b.gc(!0))};function ri(a,b,c){var d=c&&0<c?c:0;c=d?w()+1E3*d:0;if((d=d?si:ti)&&window.JSON){s(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function ui(a){if(!ti&&!si||!window.JSON)return null;var b;try{b=ti.get(a)}catch(c){}if(!s(b))try{b=si.get(a)}catch(d){}if(!s(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function vi(a){ti&&ti.remove(a);si&&si.remove(a)}var si,wi=new gi;si=wi.isAvailable()?new oi(wi):null;var ti,xi=new hi;ti=xi.isAvailable()?new oi(xi):null;function yi(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=Ca(h[0]||""),h=Ca(h[1]||"");k in d?ha(d[k])?wb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function zi(a,b){var c=[];Nb(a,function(a,b){var g=Ba(b),h;ha(a)?h=a:h=[a];B(h,function(a){""==a?c.push(g):c.push(g+"="+Ba(a))})});return c.join(b)}function Ai(a){"?"==a.charAt(0)&&(a=a.substr(1));return yi(a,"&")}
function Bi(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Ai(1<a.length?a[1]:a[0])):{}}var Ci=Sd;function Di(a){a=Qd(a);return Od(a[1],a[2],a[3],a[4])}function Ei(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=Ai(d[1]||""),e;for(e in b)d[e]=b[e];return $d(a,d)+c};var Fi=null;"undefined"!=typeof XMLHttpRequest?Fi=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Fi=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Gi(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 Hi(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Ue(b)(l)}var l=Fi&&Fi();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=Ii(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 Ii(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=Ci(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?Ci(d)==e&&(Number(Qd(d)[4]||null)||null)==(Number(Qd(a)[4]||null)||null):!0;c=d||Ji(a)}c&&(b["X-YouTube-Page-CL"]=Te("PAGE_CL"),b["X-YouTube-Page-Timestamp"]=Te("PAGE_BUILD_TIMESTAMP"));return b}
function Ji(a){var b=["X-YouTube-Page-CL","X-YouTube-Page-Timestamp"],c=Te("CORS_HEADER_WHITELIST")||{};a=Ci(a);if(!a)return!0;var d=c[a];return d?kb(b,function(a){return D(d,a)}):!1}function Ki(a,b){var c=Te("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.GF&&(!Ci(a)||Ci(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Nb&&b.Nb[c])}
function Li(a,b){var c=b.format||"JSON";b.FF&&(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.jg;g&&(g[d]&&delete g[d],a=Ei(a,g));var h=b.Tx||"",g=b.Nb;Ki(a,b)&&(g||(g={}),g[d]=e);g&&s(h)&&(d=Ai(h),dc(d,g),h=Yd(d));var k=!1,l,p=Hi(a,function(a){if(!k){k=!0;l&&M(l);var d=Gi(a),e=null;if(d||400<=a.status&&500>a.status)e=Mi(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.Bb&&b.Bb.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.qh&&0<b.timeout&&(l=L(function(){k||(k=!0,p.abort(),M(l),b.qh.call(b.context||m,p))},b.timeout))}
function Mi(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=sf(d));break;case "XML":if(d=(d=b.responseXML)?Ni(d):null)c={},B(d.getElementsByTagName("*"),function(a){c[a.tagName]=Oi(a)})}return c}function Ni(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Oi(a){var b="";B(a.childNodes,function(a){b+=a.nodeValue});return b}
var Pi={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"},Qi={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 Ri(a,b,c,d){if(Te("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=Di(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Pi.watch_actions_ajax]=1;Li(e,{format:"RAW",method:"GET",jg:g,Bb:function(a){var b=Ai(a.responseText);b[Qi.watch_actions_ajax]?c&&c():d&&d(a,b)}})}};function Si(){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=fc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Va(a,"10.0")&&(this.b=!1))}function Ti(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 Ui(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Ui.prototype.id="";Ui.prototype.name="";Ui.prototype.activityId="";Ui.prototype.status="UNKNOWN";function Vi(a){return{id:a.id,name:a.name,activityId:a.activityId,status:a.status}}Ui.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};
function Wi(a){a=a||[];return"["+C(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Xi(){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 Yi(a){return C(a,function(a){return{key:a.id,name:a.name}})}function Zi(a){return C(a,function(a){return Vi(a)})}function $i(a){return C(a,function(a){return new Ui(a)})}function aj(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function bj(a,b){return lb(a,function(a){return a.id==b})}
function cj(a,b){return lb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function dj(a,b){return lb(a,function(a){return Fh(a,b)})};function ej(){this.M=new Rh;R(this,this.M)}x(ej,Mh);ej.prototype.subscribe=function(a,b,c){return this.ha()?0:this.M.subscribe(a,b,c)};ej.prototype.ga=function(a,b,c){return this.ha()?!1:this.M.ga(a,b,c)};ej.prototype.Ob=function(a){return this.ha()?!1:this.M.Ob(a)};ej.prototype.H=function(a,b){return this.ha()?!1:this.M.H.apply(this.M,arguments)};function fj(a){ej.call(this);this.j=a;this.g=[]}x(fj,ej);fj.prototype.rk=function(){return this.g};fj.prototype.contains=function(a){return!!cj(this.g,a)};fj.prototype.get=function(a){return a?dj(this.g,a):null};fj.prototype.info=function(a){Bh(this.j,a)};function gj(a){this.b=a}var hj=/\s*;\s*/;f=gj.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(w()+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(hj),e=0,g;g=d[e];e++){if(0==g.lastIndexOf(c,0))return g.substr(c.length);if(g==a)return""}return b};f.remove=function(a,b,c){var d=n(this.get(a));this.set(a,"",0,b,c);return d};f.La=function(){return ij(this).keys};f.Sa=function(){return ij(this).Ds};f.isEmpty=function(){return!this.b.cookie};f.Pa=function(){return this.b.cookie?(this.b.cookie||"").split(hj).length:0};
f.wg=function(a){for(var b=ij(this).Ds,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=ij(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function ij(a){a=(a.b.cookie||"").split(hj);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,Ds:c}}var jj=new gj(document);jj.g=3950;function kj(a,b){jj.set(""+a,b,void 0,"/","youtube.com")};function lj(){var a=mj(),b=nj();D(a,b);oj()&&Gb(a,b);a=pj(a);E(a)?jj.remove("remote_sid","/","youtube.com"):kj("remote_sid",a.join(","))}function mj(){var a=ui("yt-remote-connected-devices")||[];Cb(a);return a}function pj(a){if(E(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return C(a,function(a,b){return 0==b?a:a.substring(c.length)})}function qj(a){ri("yt-remote-connected-devices",a,86400)}
function nj(){if(rj)return rj;var a=ui("yt-remote-device-id");a||(a=Xi(),ri("yt-remote-device-id",a,31536E3));for(var b=mj(),c=1,d=a;D(b,d);)c++,d=a+"#"+c;return rj=d}function sj(){return ui("yt-remote-session-browser-channel")}function oj(){return ui("yt-remote-session-screen-id")}
function tj(a){5<a.length&&(a=a.slice(a.length-5));var b=C(uj(),function(a){return a.loungeToken}),c=C(a,function(a){return a.loungeToken});kb(c,function(a){return!D(b,a)})&&ri("yt-remote-lounge-token-expiration",!0,86400);ri("yt-remote-local-screens",a,31536E3)}function uj(){return ui("yt-remote-local-screens")||[]}function vj(){return ui("yt-remote-online-screens")||[]}function wj(a){ri("yt-remote-online-dial-devices",a,30)}function xj(){return ui("yt-remote-online-dial-devices")||[]}
function yj(a,b){ri("yt-remote-session-browser-channel",a);ri("yt-remote-session-screen-id",b);var c=mj(),d=nj();D(c,d)||c.push(d);qj(c);lj()}function zj(a){a||vi("yt-remote-session-screen-id");lj();a=mj();rb(a,nj());qj(a)}var rj="";function Aj(){return!!ui("yt-remote-cast-installed")}function Bj(){var a=ui("yt-remote-cast-receiver");return a?a.friendlyName:null}function Cj(){return Aj()?Ej()?Fj.getCastSession():(Dj("getCastSelector: Cast is not initialized."),null):(Dj("getCastSelector: Cast API is not installed!"),null)}
function Gj(){Aj()?Ej()?Hj()?(Bh("cloudview","Requesting cast selector."),Fj.requestSession()):(Bh("cloudview","Wait for cast API to be ready to request the session."),Ij.push(Xh("yt-remote-cast2-api-ready",Gj))):Dj("requestCastSelector: Cast is not initialized."):Dj("requestCastSelector: Cast API is not installed!")}function Jj(a){Hj()?Ej().setLaunchParams(a):Dj("setLaunchParams called before ready.")}var Fj=null;function Ej(){Fj||(Fj=q("yt.mdx.remote.cloudview.instance_"));return Fj}
function Dj(a){Bh("cloudview",a)}function Hj(){return!!q("yt.mdx.remote.cloudview.apiReady_")}var Ij=[];function Kj(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||"")}Kj.prototype.id="";Kj.prototype.name="";Kj.prototype.app="";Kj.prototype.type="REMOTE_CONTROL";Kj.prototype.b="";Kj.prototype.equals=function(a){return a?this.id==a.id:!1};function Lj(a,b){this.action=a;this.params=b||null};function Mj(){if(!("cast"in window))retur