(function(){var g,aa=aa||{},m=this;function p(a){return void 0!==a} function q(a,b,c){a=a.split(".");c=c||m;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}} function r(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 t(){} function ba(a){a.getInstance=function(){return a.X?a.X:a.X=new a}} function ca(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b} function da(a){return"array"==ca(a)} function ea(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length} function u(a){return"string"==typeof a} function fa(a){return"number"==typeof a} function ga(a){return"function"==ca(a)} function ha(a){var b=typeof a;return"object"==b&&null!=a||"function"==b} function ia(a){return a[ka]||(a[ka]=++la)} var ka="closure_uid_"+(1E9*Math.random()>>>0),la=0;function ma(a,b,c){return a.call.apply(a.bind,arguments)} function na(a,b,c){if(!a)throw Error();if(2/g,ya=/"/g,za=/'/g,Aa=/\x00/g,Ba=/[\x00&<>"']/;function Ca(a){return-1!=a.indexOf("&")?"document"in m?Da(a):Ea(a):a} function Da(a){var b={"&":"&","<":"<",">":">",""":'"'},c;c=m.document.createElement("div");return a.replace(Fa,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var h=Number("0"+e.substr(1));isNaN(h)||(f=String.fromCharCode(h))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})} function Ea(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 Fa=/&([^;\s<&]+);?/g,Ga={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},Ha={"'":"\\'"}; function Ia(a,b){for(var c=0,d=sa(String(a)).split("."),e=sa(String(b)).split("."),f=Math.max(d.length,e.length),h=0;0==c&&hb?1:0} function Ka(a){for(var b=0,c=0;c>>0;return b} ;var La=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c; if(u(a))return u(b)&&1==b.length?a.indexOf(b,c):-1;for(;cb?null:u(a)?a.charAt(b):a[b]} function Qa(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)} function ab(a,b,c){if(!ea(a)||!ea(b)||a.length!=b.length)return!1;var d=a.length;c=c||bb;for(var e=0;eb?1:a",0);Mb("",0);Mb("
",0);function Nb(a,b){var c;c=b instanceof Db?b:Hb(b);a.href=Fb(c)} ;function Ob(a,b,c){a&&(a.dataset?a.dataset[Pb(b)]=c:a.setAttribute("data-"+b,c))} function D(a,b){return a?a.dataset?a.dataset[Pb(b)]:a.getAttribute("data-"+b):null} function Rb(a,b){a&&(a.dataset?delete a.dataset[Pb(b)]:a.removeAttribute("data-"+b))} var Sb={};function Pb(a){return Sb[a]||(Sb[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))} ;function Tb(a){m.setTimeout(function(){throw a;},0)} var Ub; function Vb(){var a=m.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!C("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=v(function(a){if(("*"==d||a.origin==d)&&a.data== c)this.port1.onmessage()},this); b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}}); if("undefined"!==typeof a&&!C("Trident")&&!C("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(p(c.next)){c=c.next;var a=c.sc;c.sc=null;a()}}; return function(a){d.next={sc: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 Wb(a,b,c){this.l=c;this.j=a;this.o=b;this.h=0;this.f=null} Wb.prototype.get=function(){var a;0 Download it from Adobe.';if(b)for(var c in a)b=b.replace(new RegExp("\\$"+c,"gi"),function(){return a[c]}); return b} function mc(a,b){if(1f&&(c=a.substring(f,e),c=c.replace(Fc,""),c=c.replace(Gc,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Hc(a,b)} function Hc(a,b){var c=Ic(a),d=document.getElementById(c),e=d&&D(d,"loaded"),f=d&&!e;if(e)b&&b();else{if(b){var e=yc(c,b),h=""+ia(b);Jc[h]=e}f||(d=Kc(a,c,function(){D(d,"loaded")||(Ob(d,"loaded","true"),K(c),I(oa(Dc,c),0))}))}} function Kc(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 Lc(a,b){if(a&&b){var c=""+ia(b);(c=Jc[c])&&Ac(c)}} function Ic(a){var b=document.createElement("a");Nb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ka(a)} var Fc=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Gc=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Jc={};var Mc=null;function Nc(){var a=H("BG_I",null),b=H("BG_IU",null),c=H("BG_P",void 0);b?Ec(b,function(){Mc=new botguard.bg(c)}):a&&(eval(a),Mc=new botguard.bg(c))} function Oc(){return null!=Mc} function Pc(){return Mc?Mc.invoke():null} ;function Qc(a,b){return Mb(b,null)} ;var Rc="StopIteration"in m?m.StopIteration:{message:"StopIteration",stack:""};function Sc(){} Sc.prototype.next=function(){throw Rc;}; Sc.prototype.wa=function(){return this}; function Tc(a){if(a instanceof Sc)return a;if("function"==typeof a.wa)return a.wa(!1);if(ea(a)){var b=0,c=new Sc;c.next=function(){for(;;){if(b>=a.length)throw Rc;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");} function Uc(a,b,c){if(ea(a))try{z(a,b,c)}catch(d){if(d!==Rc)throw d;}else{a=Tc(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Rc)throw d;}}} function Vc(a){if(ea(a))return Xa(a);a=Tc(a);var b=[];Uc(a,function(a){b.push(a)}); return b} ;function Wc(a,b){this.h={};this.f=[];this.Ha=this.j=0;var c=arguments.length;if(12*this.j&&Xc(this),!0):!1}; function Xc(a){if(a.j!=a.f.length){for(var b=0,c=0;b=d.f.length)throw Rc;var e=d.f[b++];return a?e:d.h[e]}; return e}; function Yc(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function $c(a){return a.U&&"function"==typeof a.U?a.U():ea(a)||u(a)?a.length:fb(a)} function ad(a){if(a.V&&"function"==typeof a.V)return a.V();if(u(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;dc)return!1;!(b instanceof ed)&&5parseFloat(qd)){pd=String(sd);break a}}pd=qd}var td=pd,ud={};function vd(a){return ud[a]||(ud[a]=0<=Ia(td,a))} function wd(a){return Number(xd)>=a} var yd=m.document,xd=yd&&L?od()||("CSS1Compat"==yd.compatMode?parseInt(td,10):5):void 0;function zd(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+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);} function Ad(a){return eval("("+a+")")} function M(a){return Bd(new Cd(void 0),a)} function Cd(a){this.f=a} function Bd(a,b){var c=[];Dd(a,b,c);return c.join("")} function Dd(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(da(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fc?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")} function Ld(a,b,c){if(da(b))for(var d=0;da.status)e=ae(c,a,b.gf);if(d)a:{switch(c){case "XML":d= 0==parseInt(e&&e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||m;d?b.ca&&b.ca.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.cc&&b.cc.call(f,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials); b.kb&&0c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(w()+1E3*c)).toUTCString();this.f.cookie=a+"="+b+e+d+c+f}; g.get=function(a,b){for(var c=a+"=",d=(this.f.cookie||"").split(bf),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b}; g.remove=function(a,b,c){var d=p(this.get(a));this.set(a,"",0,b,c);return d}; g.ra=function(){return cf(this).keys}; g.V=function(){return cf(this).values}; g.isEmpty=function(){return!this.f.cookie}; g.U=function(){return this.f.cookie?(this.f.cookie||"").split(bf).length:0}; g.bb=function(a){for(var b=cf(this).values,c=0;ce?d:d.substr(0,e))e=H("ST_BASE36",!0),f=H("ST_SHORT",!0)?"ST-":"s_tempdata-",d=f=e?f+Ka(d).toString(36):f+Ka(d),e=b?Od(b):"",ef(d,e,5),b&&(b=b.itct||b.ved,d=r("yt.logging.screenreporter.storeParentElement"), b&&d&&d(new $e))}}if(c)return!1;(window.ytspf||{}).enabled?spf.navigate(a):(c=window.location,a=Qd(a,{})+"",a=a instanceof Db?a:Hb(a),c.href=Fb(a));return!0} ;function gf(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||sb(hf);this.assets=a.assets||{};this.attrs=a.attrs||sb(jf);this.params=a.params||sb(kf);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.f=a.messages||{}} var hf={enablejsapi:1},jf={},kf={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};function lf(a){a instanceof gf||(a=new gf(a));return a} gf.prototype.clone=function(){var a=new gf,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ca(c)?a[b]=sb(c):a[b]=c}return a};function mf(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d} g=mf.prototype;g.getHeight=function(){return this.bottom-this.top}; g.clone=function(){return new mf(this.top,this.right,this.bottom,this.left)}; g.contains=function(a){return this&&a?a instanceof mf?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}; g.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}; g.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}; g.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};function nf(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d} g=nf.prototype;g.clone=function(){return new nf(this.left,this.top,this.width,this.height)}; g.contains=function(a){return a instanceof nf?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}; g.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}; g.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}; g.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};function of(a){of[" "](a);return a} of[" "]=t;function pf(a,b){var c=ve(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""} function qf(a,b){return pf(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]} function rf(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}L&&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,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a} function tf(a){var b=uf;if("none"!=qf(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a} function uf(a){var b=a.offsetWidth,c=a.offsetHeight,d=ld&&!b&&!c;return p(b)&&!d||!a.getBoundingClientRect?new re(b,c):(a=rf(a),new re(a.right-a.left,a.bottom-a.top))} function vf(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 wf(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?vf(a,c):0} var xf={thin:2,medium:4,thick:6};function yf(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 xf?xf[c]:vf(a,c)} ;var zf=C("Firefox"),Af=hd()||C("iPod"),Bf=C("iPad"),Cf=C("Android")&&!(Ab()||C("Firefox")||zb()||C("Silk")),Df=Ab(),Ef=C("Safari")&&!(Ab()||C("Coast")||zb()||C("Edge")||C("Silk")||C("Android"))&&!(hd()||C("iPad")||C("iPod"));function Ff(){var a;if(a=df.get("PREF",void 0)){a=unescape(a).split("&");for(var b=0;b=this.f){var h,k,l,n;if(sc)try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(x){h=null}else l=document.body,n=document.createElement("object"),n.setAttribute("type","application/x-shockwave-flash"),h=l.appendChild(n);if(h&&"GetVariable"in h)try{k=h.GetVariable("$version")}catch(x){k=""}l&&n&&l.removeChild(n);(h=k||"")?(h=h.split(" ")[1].split(","),h=[parseInt(h[0],10)||0,parseInt(h[1],10)||0,parseInt(h[2], 10)||0]):h=[0,0,0];this.f=h[0];this.h=h[1];this.j=h[2]}} ba(Of);Of.prototype.getVersion=function(){return[this.f,this.h,this.j]}; function Pf(a,b,c,d){b="string"==typeof b?b.split("."):[b,c,d];b[0]=parseInt(b[0],10)||0;b[1]=parseInt(b[1],10)||0;b[2]=parseInt(b[2],10)||0;return a.f>b[0]||a.f==b[0]&&a.h>b[1]||a.f==b[0]&&a.h==b[1]&&a.j>=b[2]} function Qf(a){return-1'+qc()+""} function Uf(a,b){return Qf(b)&&a.url||(-1b)throw Error("Bad port number "+b);a.B=b}else a.B=null} function qg(a,b,c){b instanceof sg?(a.j=b,yg(a.j,a.A)):(c||(b=tg(b,zg)),a.j=new sg(b,0,a.A))} function O(a,b,c){a.j.set(b,c)} function Ag(a,b,c){da(c)||(c=[String(c)]);Bg(a.j,b,c)} function Cg(a){O(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36));return a} function Dg(a){return a instanceof mg?a.clone():new mg(a,void 0)} function Eg(a,b,c,d){var e=new mg(null,void 0);a&&ng(e,a);b&&og(e,b);c&&pg(e,c);d&&(e.f=d);return e} function rg(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""} function tg(a,b,c){return u(a)?(a=encodeURI(a).replace(b,Fg),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null} function Fg(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)} var ug=/[#\/\?@]/g,wg=/[\#\?:]/g,vg=/[\#\?]/g,zg=/[\#\?@]/g,xg=/#/g;function sg(a,b,c){this.h=this.f=null;this.j=a||null;this.l=!!c} function Gg(a){a.f||(a.f=new Wc,a.h=0,a.j&&Jd(a.j,function(b,c){Hg(a,ua(b),c)}))} g=sg.prototype;g.U=function(){Gg(this);return this.h}; function Hg(a,b,c){Gg(a);a.j=null;b=Ig(a,b);var d=a.f.get(b);d||a.f.set(b,d=[]);d.push(c);a.h=a.h+1} g.remove=function(a){Gg(this);a=Ig(this,a);return Yc(this.f.h,a)?(this.j=null,this.h=this.h-this.f.get(a).length,this.f.remove(a)):!1}; g.clear=function(){this.f=this.j=null;this.h=0}; g.isEmpty=function(){Gg(this);return 0==this.h}; function Jg(a,b){Gg(a);b=Ig(a,b);return Yc(a.f.h,b)} g.bb=function(a){var b=this.V();return B(b,a)}; g.ra=function(){Gg(this);for(var a=this.f.V(),b=this.f.ra(),c=[],d=0;dl&&(c+=(1-l)*h),h=f.timing,l=f.progress;return{Eb:Math.round(c||b),Yc:h}} function dh(a,b,c){if(b&&a.getBoundingClientRect){var d=a.getBoundingClientRect();a=Math.max(d.top,0);var e=Math.min(d.right,c.width);c=Math.min(d.bottom,c.height);d=Math.max(d.left,0);if(c>a&&e>d)return new hh(a,e,c,d,b)}return null} function fh(a,b){var c,d=a.performance.timing.navigationStart;if("msFirstPaint"in a.performance.timing)c=a.performance.timing.f-d;else if("chrome"in a&&"loadTimes"in a.chrome){var e=a.chrome.loadTimes(),f=e.firstPaintTime;if(0=h&&(c=1E3*(f-h))}}if(void 0===c||0>c||12E4c)c=a})}return Math.max(c,0)||0} function gh(a,b,c){for(var d={0:0},e=0,f=0,h=c.length;fa&&(l=k.timing);d[l]||(d[l]=0);k=(k.f-k.l)*(k.j-k.h);d[l]+=k;e+=k}f=b.width*b.height;0h&&(c.fpt=n);n=a||oh().span;x=l.redirectEnd-l.redirectStart;0=l.navigationStart&& 0a.duration?b:a},{duration:0}); d&&0 Get the latest Flash Player
Get the latest version of QuickTime'); b=this.f.f.player_fallback||a;a=we("player-unavailable");if(we("unavailable-submessage")&&a){we("unavailable-submessage").innerHTML=b;var b=a||document,c=null;b.getElementsByClassName?c=b.getElementsByClassName("icon")[0]:b.querySelectorAll&&b.querySelector?c=b.querySelector(".icon"):c=ze("icon",a)[0];if(c=b=c||null)c=b?b.dataset?Pb("icon")in b.dataset:b.hasAttribute?!!b.hasAttribute("data-icon"):!!b.getAttribute("data-icon"):!1;c&&(b.src=D(b,"icon"));a.style.display="";ne(we("player"),"off-screen-trigger")}}; g.Ed=function(){return this.A||Hh(this)}; g.Dd=function(){return this.Nb}; function Hh(a){return(a=Fh(a))?"div"==a.tagName.toLowerCase()?"html5":"flash":null} function Ih(a){lh("dcp");a.cancel();xh(a);a.A=null;a.f&&(a.f.loaded=!1);var b=Fh(a);"html5"==Hh(a)?a.P=b:b&&b.destroy&&b.destroy();De(a.l);lg(a.ta);a.B=null;a.J=null} g.cancel=function(){this.R&&Lc(this.f.assets.js,this.R);J(this.nc);this.qa=!1}; g.G=function(){Ih(this);if(this.P&&this.f)try{this.P.destroy()}catch(b){pc(b)}this.Pa=null;for(var a in this.j)m[this.j[a]]=null;this.Mb=this.f=this.api=null;delete this.l;delete this.o;wh.I.G.call(this)};var Lh={},Mh="player_uid_"+(1E9*Math.random()>>>0);function Nh(a,b){a=u(a)?xe(a):a;b=lf(b);var c=Mh+"_"+ia(a),d=Lh[c];if(d)return d.jc(b),d.api;d=new wh(a,c);Lh[c]=d;K("player-added",d.api);gc(d,oa(Oh,d));I(function(){d.jc(b)},0); return d.api} function Oh(a){Lh[a.Z]=null} function Ph(a){a=we(a);if(!a)return null;var b=Mh+"_"+ia(a),c=Lh[b];c||(c=new wh(a,b),Lh[b]=c);return c.api} ;var Qh=r("yt.abuse.botguardInitialized")||Oc;q("yt.abuse.botguardInitialized",Qh,void 0);var Rh=r("yt.abuse.invokeBotguard")||Pc;q("yt.abuse.invokeBotguard",Rh,void 0);var Sh=r("yt.abuse.dclkstatus.checkDclkStatus")||ke;q("yt.abuse.dclkstatus.checkDclkStatus",Sh,void 0);var Th=r("yt.player.exports.navigate")||ff;q("yt.player.exports.navigate",Th,void 0);var Uh=r("yt.player.embed")||Nh;q("yt.player.embed",Uh,void 0);var Vh=r("yt.player.getPlayerByElement")||Ph;q("yt.player.getPlayerByElement",Vh,void 0); var Wh=r("yt.util.activity.init")||Xe;q("yt.util.activity.init",Wh,void 0);var Xh=r("yt.util.activity.getTimeSinceActive")||Ze;q("yt.util.activity.getTimeSinceActive",Xh,void 0);var Yh=r("yt.util.activity.setTimestamp")||Ye;q("yt.util.activity.setTimestamp",Yh,void 0);function Zh(a){P.call(this,1,arguments);this.f=a} y(Zh,P);function $h(a){P.call(this,1,arguments);this.f=a} y($h,P);function ai(a,b){P.call(this,1,arguments);this.f=a;this.h=b} y(ai,P);function bi(a,b,c,d,e){P.call(this,2,arguments);this.h=a;this.f=b;this.l=c||null;this.j=d||null;this.source=e||null} y(bi,P);function ci(a,b,c){P.call(this,1,arguments);this.f=a;this.subscriptionId=b} y(ci,P);function di(a,b,c,d,e,f,h){P.call(this,1,arguments);this.h=a;this.subscriptionId=b;this.f=c;this.o=d||null;this.l=e||null;this.j=f||null;this.source=h||null} y(di,P); var ei=new Q("subscription-batch-subscribe",Zh),fi=new Q("subscription-batch-unsubscribe",Zh),gi=new Q("subscription-pref-email",ai),hi=new Q("subscription-subscribe",bi),ii=new Q("subscription-subscribe-loading",$h),ji=new Q("subscription-subscribe-loaded",$h),ki=new Q("subscription-subscribe-success",ci),li=new Q("subscription-subscribe-external",bi),mi=new Q("subscription-unsubscribe",di),ni=new Q("subscription-unsubscirbe-loading",$h),oi=new Q("subscription-unsubscribe-loaded",$h),pi=new Q("subscription-unsubscribe-success", $h),qi=new Q("subscription-external-unsubscribe",di),ri=new Q("subscription-enable-ypc",$h),si=new Q("subscription-disable-ypc",$h);function ti(a,b){var c=document.location.protocol+"//"+document.domain+"/post_login";b&&(c=Pd(c,"mode",b));c=Pd("/signin?context=popup","next",c);c=Pd(c,"feature","sub_button");if(c=window.open(c,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var d=yc("LOGGED_IN",function(b){Ac(H("LOGGED_IN_PUBSUB_KEY",void 0));lc("LOGGED_IN",!0);a(b)}); lc("LOGGED_IN_PUBSUB_KEY",d);c.moveTo((screen.width-375)/2,(screen.height-440)/2)}} q("yt.pubsub.publish",K,void 0);function ui(){var a=H("PLAYER_CONFIG");return a&&a.args&&void 0!==a.args.authuser?!0:!(!H("SESSION_INDEX")&&!H("LOGGED_IN"))} ;var vi={},wi="ontouchstart"in document;function xi(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return Ne(c,function(a){return me(a,b)},!0,d)} function yi(a){var b="mouseover"==a.type&&"mouseenter"in vi||"mouseout"==a.type&&"mouseleave"in vi,c=a.type in vi||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=vi[b],d;for(d in c.ga){var e=xi(b,d,a.target);e&&!Ne(a.relatedTarget,function(a){return a==e},!0)&&c.F(d,e,b,a)}}if(b=vi[a.type])for(d in b.ga)(e=xi(a.type,d,a.target))&&b.F(d,e,a.type,a)}} N(document,"blur",yi,!0);N(document,"change",yi,!0);N(document,"click",yi);N(document,"focus",yi,!0);N(document,"mouseover",yi);N(document,"mouseout",yi);N(document,"mousedown",yi);N(document,"keydown",yi);N(document,"keyup",yi);N(document,"keypress",yi);N(document,"cut",yi);N(document,"paste",yi);wi&&(N(document,"touchstart",yi),N(document,"touchend",yi),N(document,"touchcancel",yi));function zi(a){this.o=a;this.j={};this.Ab=[];this.l=[]} function T(a,b){return"yt-uix"+(a.o?"-"+a.o:"")+(b?"-"+b:"")} zi.prototype.unregister=function(){Ac(this.Ab);this.Ab.length=0;$g(this.l);this.l.length=0}; zi.prototype.init=t;zi.prototype.dispose=t;function Ai(a,b,c){a.l.push(Zg(b,c,a))} function Bi(a,b,c){var d=T(a,void 0),e=v(c,a);b in vi||(vi[b]=new G);vi[b].subscribe(d,e);a.j[c]=e} function Ci(a,b,c){if(b in vi){var d=vi[b];d.unsubscribe(T(a,void 0),a.j[c]);0>=d.U()&&(d.dispose(),delete vi[b])}delete a.j[c]} function Di(a,b){Ob(a,"tooltip-text",b)} ;function Ei(){zi.call(this,"tooltip");this.f=0;this.h={}} y(Ei,zi);ba(Ei);g=Ei.prototype;g.register=function(){Bi(this,"mouseover",this.wb);Bi(this,"mouseout",this.Na);Bi(this,"focus",this.xc);Bi(this,"blur",this.qc);Bi(this,"click",this.Na);Bi(this,"touchstart",this.Xc);Bi(this,"touchend",this.Fb);Bi(this,"touchcancel",this.Fb)}; g.unregister=function(){Ci(this,"mouseover",this.wb);Ci(this,"mouseout",this.Na);Ci(this,"focus",this.xc);Ci(this,"blur",this.qc);Ci(this,"click",this.Na);Ci(this,"touchstart",this.Xc);Ci(this,"touchend",this.Fb);Ci(this,"touchcancel",this.Fb);this.dispose();Ei.I.unregister.call(this)}; g.dispose=function(){for(var a in this.h)this.Na(this.h[a]);this.h={}}; g.wb=function(a){if(!(this.f&&1E3>w()-this.f)){var b=parseInt(D(a,"tooltip-hide-timer"),10);b&&(Rb(a,"tooltip-hide-timer"),J(b));var b=v(function(){Fi(this,a);Rb(a,"tooltip-show-timer")},this),c=parseInt(D(a,"tooltip-show-delay"),10)||0,b=I(b,c); Ob(a,"tooltip-show-timer",b.toString());a.title&&(Di(a,Gi(a)),a.title="");b=ia(a).toString();this.h[b]=a}}; g.Na=function(a){var b=parseInt(D(a,"tooltip-show-timer"),10);b&&(J(b),Rb(a,"tooltip-show-timer"));b=v(function(){if(a){var b=we(Hi(this,a));b&&(Ii(b),b&&b.parentNode&&b.parentNode.removeChild(b),Rb(a,"content-id"));(b=we(Hi(this,a,"arialabel")))&&b.parentNode&&b.parentNode.removeChild(b)}Rb(a,"tooltip-hide-timer")},this); b=I(b,50);Ob(a,"tooltip-hide-timer",b.toString());if(b=D(a,"tooltip-text"))a.title=b;b=ia(a).toString();delete this.h[b]}; g.xc=function(a){this.f=0;this.wb(a)}; g.qc=function(a){this.f=0;this.Na(a)}; g.Xc=function(a,b,c){c.changedTouches&&(this.f=0,a=xi(b,T(this),c.changedTouches[0].target),this.wb(a))}; g.Fb=function(a,b,c){c.changedTouches&&(this.f=w(),a=xi(b,T(this),c.changedTouches[0].target),this.Na(a))}; function Ji(a,b){Di(a,b);var c=D(a,"content-id");(c=we(c))&&Ge(c,b)} function Gi(a){return D(a,"tooltip-text")||a.title} function Fi(a,b){if(b){var c=Gi(b);if(c){var d=we(Hi(a,b));if(!d){d=document.createElement("div");d.id=Hi(a,b);d.className=T(a,"tip");var e=document.createElement("div");e.className=T(a,"tip-body");var f=document.createElement("div");f.className=T(a,"tip-arrow");var h=document.createElement("div");h.setAttribute("aria-hidden","true");h.className=T(a,"tip-content");var k=Ki(a,b),l=Hi(a,b,"content");h.id=l;Ob(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(f);var l= Je(b),n=Hi(a,b,"arialabel"),f=document.createElement("div");ne(f,T(a,"arialabel"));f.id=n;"rtl"==document.body.getAttribute("dir")?Ge(f,c+" "+l):Ge(f,l+" "+c);b.setAttribute("aria-labelledby",n);l=Re()||document.body;l.appendChild(f);l.appendChild(d);Ji(b,c);(c=parseInt(D(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",ne(h,T(a,"normal-wrap")));h=me(b,T(a,"reverse"));Li(a,b,d,e,k,h)||Li(a,b,d,e,k,!h);var x=T(a,"tip-visible");I(function(){ne(d,x)},0)}}}} function Li(a,b,c,d,e,f){pe(c,T(a,"tip-reverse"),f);var h=0;f&&(h=1);a=tf(b);f=new qe((a.width-10)/2,f?a.height:0);var k=ve(b),l=new qe(0,0),n;n=k?ve(k):document;n=!L||wd(9)||Be(te(n).f)?n.documentElement:n.body;b!=n&&(n=rf(b),k=Ce(te(k).f),l.x=n.left+k.x,l.y=n.top+k.y);f=new qe(l.x+f.x,l.y+f.y);f=f.clone();l=(h&8&&"rtl"==qf(c,"direction")?h^4:h)&-9;h=tf(c);k=h.clone();n=f.clone();k=k.clone();0!=l&&(l&4?n.x-=k.width+0:l&2&&(n.x-=k.width/2),l&1&&(n.y-=k.height+0));f=new nf(0,0,0,0);f.left=n.x;f.top= n.y;f.width=k.width;f.height=k.height;k=new qe(f.left,f.top);k instanceof qe?(l=k.x,k=k.y):(l=k,k=void 0);c.style.left=sf(l,!1);c.style.top=sf(k,!1);k=new re(f.width,f.height);if(!(h==k||h&&k&&h.width==k.width&&h.height==k.height))if(h=k,f=ve(c),l=Be(te(f).f),!L||vd("10")||l&&vd("8"))f=c.style,kd?f.MozBoxSizing="border-box":ld?f.WebkitBoxSizing="border-box":f.boxSizing="border-box",f.width=Math.max(h.width,0)+"px",f.height=Math.max(h.height,0)+"px";else if(f=c.style,l){if(L){l=wf(c,"paddingLeft"); k=wf(c,"paddingRight");n=wf(c,"paddingTop");var x=wf(c,"paddingBottom"),l=new mf(n,k,x,l)}else l=pf(c,"paddingLeft"),k=pf(c,"paddingRight"),n=pf(c,"paddingTop"),x=pf(c,"paddingBottom"),l=new mf(parseFloat(n),parseFloat(k),parseFloat(x),parseFloat(l));if(L&&!wd(9)){k=yf(c,"borderLeft");n=yf(c,"borderRight");var x=yf(c,"borderTop"),pa=yf(c,"borderBottom"),k=new mf(x,n,pa,k)}else k=pf(c,"borderLeftWidth"),n=pf(c,"borderRightWidth"),x=pf(c,"borderTopWidth"),pa=pf(c,"borderBottomWidth"),k=new mf(parseFloat(x), parseFloat(n),parseFloat(pa),parseFloat(k));f.pixelWidth=h.width-k.left-l.left-l.right-k.right;f.pixelHeight=h.height-k.top-l.top-l.bottom-k.bottom}else f.pixelWidth=h.width,f.pixelHeight=h.height;f=Ae(window);1==c.nodeType?(c=rf(c),k=new qe(c.left,c.top)):(c=c.changedTouches?c.changedTouches[0]:c,k=new qe(c.clientX,c.clientY));c=tf(d);n=Math.floor(c.width/2);h=!!(f.height=c.length)throw Rc;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!u(d))throw"Storage mechanism: Invalid value was encountered";return d}; return d}; g.clear=function(){this.f.clear()}; g.key=function(a){return this.f.key(a)};function Wi(){var a=null;try{a=window.localStorage||null}catch(b){}this.f=a} y(Wi,Vi);function Xi(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.f=a} y(Xi,Vi);function Yi(a){this.f=a} Yi.prototype.set=function(a,b){p(b)?this.f.set(a,M(b)):this.f.remove(a)}; Yi.prototype.get=function(a){var b;try{b=this.f.get(a)}catch(c){return}if(null!==b)try{return zd(b)}catch(c){throw"Storage: Invalid value was encountered";}}; Yi.prototype.remove=function(a){this.f.remove(a)};function Zi(a){this.f=a} y(Zi,Yi);function $i(a){this.data=a} function aj(a){return!p(a)||a instanceof $i?a:new $i(a)} Zi.prototype.set=function(a,b){Zi.I.set.call(this,a,aj(b))}; Zi.prototype.h=function(a){a=Zi.I.get.call(this,a);if(!p(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; Zi.prototype.get=function(a){if(a=this.h(a)){if(a=a.data,!p(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function bj(a){this.f=a} y(bj,Zi);function cj(a){var b=a.creation;a=a.expiration;return!!a&&aw()} bj.prototype.set=function(a,b,c){if(b=aj(b)){if(c){if(c=wj.length)zj();else{var b=wj[a],c="chrome-extension://"+b+tj;0<=uj.indexOf(b)?xj(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,Aj(c,zj)):yj(a+1)}):Aj(c,function(){yj(a+1)})}} function Aj(a,b){var c=document.createElement("script");c.onerror=b;c.src=a;(document.head||document.documentElement).appendChild(c)} function zj(){var a=window.__onGCastApiAvailable;a&&"function"==typeof a&&a(!1,"No cast extension found")} function Bj(){if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;if(a){a({command:"cast.sender.init"});return}}window.chrome?(a=window.navigator.userAgent,0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")&&window.navigator.presentation?(a=sj()?"50":"",Aj("//www.gstatic.com/eureka/clank"+a+tj,zj)):yj(0)):zj()} ;var Cj=w(),Dj=null,Ej=Array(50),Fj=-1,Gj=!1;function Hj(a){Ij();Dj.push(a);Jj(Dj)} function Kj(a){var b=r("yt.mdx.remote.debug.handlers_");Ua(b||[],a)} function Lj(a,b){Ij();var c=Dj,d=Mj(a,String(b));0==c.length?Nj(d):(Jj(c),z(c,function(a){a(d)}))} function Ij(){Dj||(Dj=r("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",Dj,void 0))} function Nj(a){var b=(Fj+1)%50;Fj=b;Ej[b]=a;Gj||(Gj=49==b)} function Jj(a){var b=Ej;if(b[0]){var c=Fj,d=Gj?c:-1;do{var d=(d+1)%50,e=b[d];z(a,function(a){a(e)})}while(d!=c); Ej=Array(50);Fj=-1;Gj=!1}} function Mj(a,b){var c=(w()-Cj)/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 Oj(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 Pj(a,b){return!!b&&(a.id==b||a.uuid==b)} function Qj(a,b){return a||b?!a!=!b?!1:a.id==b.id:!0} function Rj(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 Sj(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}} function Tj(a){return new Oj(a)} function Uj(a){return da(a)?A(a,Tj):[]} function Vj(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 Wj(a){return da(a)?"["+A(a,Vj).join(",")+"]":"null"} ;var Xj={We:"atp",ef:"ska",bf:"que",$e:"mus",df:"sus"};function Yj(a){this.l=this.j="";this.f="/api/lounge";this.h=!0;a=a||document.location.href;var b=Number(a.match(Hd)[4]||null)||null||"";b&&(this.l=":"+b);this.j=Id(a)||"";a=wb;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ia(a,"10.0")&&(this.h=!1))} function Zj(a,b,c,d){var e=a.f;if(p(d)?d:a.h)e="https://"+a.j+a.l+a.f;return Qd(e+b,c||{})} function ak(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,ca:oa(a.A,d,!0),onError:oa(a.o,e),kb:oa(a.B,e)};c&&(a.T=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return $d(b,a)} Yj.prototype.A=function(a,b,c,d){b?a(d):a({text:c.responseText})}; Yj.prototype.o=function(a,b){a(Error("Request error: "+b.status))}; Yj.prototype.B=function(a){a(Error("request timed out"))};function bk(a){this.f=this.name=this.id="";this.status="UNKNOWN";a&&(this.id=a.id||"",this.name=a.name||"",this.f=a.activityId||"",this.status=a.status||"UNKNOWN")} function ck(a){return{id:a.id,name:a.name,activityId:a.f,status:a.status}} bk.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.f+",status:"+this.status+"}"}; function dk(a){a=a||[];return"["+A(a,function(a){return a?a.toString():"null"}).join(",")+"]"} ;function ek(){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 fk(a,b){return Pa(a,function(a){return a.key==b})} function gk(a){return A(a,function(a){return{key:a.id,name:a.name}})} function hk(a){return A(a,function(a){return ck(a)})} function ik(a){return A(a,function(a){return new bk(a)})} function jk(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0} function kk(a,b){return Pa(a,function(a){return a.id==b})} function lk(a,b){return Pa(a,function(a){return Qj(a,b)})} function mk(a,b){return Pa(a,function(a){return Pj(a,b)})} ;function V(){E.call(this);this.l=new G;gc(this,oa(F,this.l))} y(V,E);V.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.l.subscribe(a,b,c)}; V.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.l.unsubscribe(a,b,c)}; V.prototype.oa=function(a){return this.isDisposed()?!1:this.l.oa(a)}; V.prototype.F=function(a,b){return this.isDisposed()?!1:this.l.F.apply(this.l,arguments)};function nk(a){V.call(this);this.C=a;this.f=[]} y(nk,V);nk.prototype.$=function(){return this.f}; nk.prototype.contains=function(a){return!!lk(this.f,a)}; nk.prototype.get=function(a){return a?mk(this.f,a):null}; function ok(a,b){var c=a.get(b.uuid)||a.get(b.id);if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.f.push(b);return!0} function pk(a,b){var c=a.f.length!=b.length;a.f=Ma(a.f,function(a){return!!lk(b,a)}); for(var d=0,e=b.length;d=tk.length?this.F("pairingFailed",Error("DIAL polling timed out")):(a=tk[this.j],this.h=I(v(this.Qc,this),a),this.j++):this.F("pairingFailed",Error("Server error "+a.status))}; g.Oe=function(){this.f=null;this.F("pairingFailed",Error("Server not responding"))};function uk(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";new ed;a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",new ed(Ma((a.capabilities||"").split(","),oa(gb,Xj))))} uk.prototype.equals=function(a){return a?this.id==a.id:!1};var vk;function wk(){var a=xk(),b=yk();B(a,b);if(zk()){var c=a,d;d=0;for(var e=c.length,f;d>1,k;k=cb(b,c[h]);0d&&Za(c,-(d+1),0,b)}a=Ak(a);if(0==a.length)try{df.remove("remote_sid","/","youtube.com")}catch(l){}else try{ef("remote_sid",a.join(","),-1)}catch(l){}} function xk(){var a=jj("yt-remote-connected-devices")||[];a.sort(cb);return a} function Ak(a){if(0==a.length)return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return A(a,function(a,b){return 0==b?a:a.substring(c.length)})} function Bk(a){U("yt-remote-connected-devices",a,86400)} function yk(){if(Ck)return Ck;var a=jj("yt-remote-device-id");a||(a=ek(),U("yt-remote-device-id",a,31536E3));for(var b=xk(),c=1,d=a;B(b,d);)c++,d=a+"#"+c;return Ck=d} function Dk(){return jj("yt-remote-session-browser-channel")} function zk(){return jj("yt-remote-session-screen-id")} function Ek(a){5 "+b);if(this.f){var c=this.f.j;if(!a||c&&c.id!=a)vl("Unsetting old screen status: "+this.f.h.friendlyName),F(this.f),this.f=null}if(a&&b){if(!this.f){c=mk(this.h.$(),a);if(!c){vl("setConnectedScreenStatus: Unknown screen.");return}var d=wl(this,c);d||(vl("setConnectedScreenStatus: Connected receiver not custom..."),d=new chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=chrome.cast.ReceiverType.CUSTOM,this.j.push(d),chrome.cast.setCustomReceivers(this.j, t,v(function(a){this.N("Failed to set initial custom receivers: "+M(a))},this))); vl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);xl(this,new ql(this.h,d),!0)}this.f.gc(b)}else vl("setConnectedScreenStatus: no screen.")}; function wl(a,b){return b?Pa(a.j,function(a){return Pj(b,a.label)},a):null} g.Ee=function(a){this.isDisposed()?this.N("Setting connection data on disposed cast v2"):this.f?this.f.Ua(a):this.N("Setting connection data without a session")}; g.Te=function(){this.isDisposed()?this.N("Stopping session on disposed cast v2"):this.f?(this.f.stop(),F(this.f),this.f=null):vl("Stopping non-existing session")}; g.requestSession=function(){chrome.cast.requestSession(v(this.Kc,this),v(this.he,this))}; g.G=function(){this.h.unsubscribe("onlineScreenChange",v(this.bd,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.o);Kj(sl);F(this.f);rl.I.G.call(this)}; function vl(a){Lj("Controller",a)} g.N=function(a){Lj("Controller",a)}; function sl(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)} function ul(a){return a.A||!!a.j.length||!!a.f} function xl(a,b,c){F(a.f);(a.f=b)?(c?a.F("yt-remote-cast2-receiver-resumed",b.h):a.F("yt-remote-cast2-receiver-selected",b.h),b.subscribe("sessionScreen",v(a.Lc,a,b)),b.j?a.F("yt-remote-cast2-session-change",b.j):c&&a.f.Ua(null)):a.F("yt-remote-cast2-session-change",null)} g.Lc=function(a,b){this.f==a&&(b||xl(this,null),this.F("yt-remote-cast2-session-change",b))}; g.de=function(a,b){if(!this.isDisposed())if(a)switch(vl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.f)if(this.f.h.label!=a.label)vl("onReceiverAction_: Stopping active receiver: "+this.f.h.friendlyName),this.f.stop();else{vl("onReceiverAction_: Casting to active receiver.");this.f.j&&this.F("yt-remote-cast2-session-change",this.f.j);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:xl(this,new ql(this.h,a));break;case chrome.cast.ReceiverType.DIAL:xl(this, new nl(this.h,a));break;case chrome.cast.ReceiverType.CAST:xl(this,new jl(this.h,a));break;default:this.N("Unknown receiver type: "+a.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.f&&this.f.h.label==a.label?this.f.stop():this.N("Stopping receiver w/o session: "+a.friendlyName)}else this.N("onReceiverAction_ called without receiver.")}; g.Td=function(a){if(this.isDisposed())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.N("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.f?this.f.h:null;if(!c||c.label!=b.label)return this.N("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=chrome.cast.ReceiverType.DIAL){if(this.f.j)return vl("Reselecting dial screen."), this.F("yt-remote-cast2-session-change",this.f.j),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.N('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);xl(this,new nl(this.h,b))}b=this.f;b.J=a;return b.J.appState==chrome.cast.DialAppState.RUNNING?new Promise(v(b.Kd,b,(b.J.extraData||{}).screenId||null)):new Promise(v(b.ac,b))}; g.Kc=function(a){if(!this.isDisposed()){vl("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.f)if(b.receiverType==chrome.cast.ReceiverType.CAST)vl("Got resumed cast session before resumed mdx connection."),xl(this,new jl(this.h,b),!0);else{this.N("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.f.h,d=mk(this.h.$(),c.label);d&&Pj(d,b.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType== chrome.cast.ReceiverType.CAST&&(vl("onSessionEstablished_: manual to cast session change "+b.friendlyName),F(this.f),this.f=new jl(this.h,b),this.f.subscribe("sessionScreen",v(this.Lc,this,this.f)),this.f.Ua(null));this.f.fc(a)}}}; g.Se=function(){return this.f?this.f.cd():null}; g.he=function(a){this.isDisposed()||(this.N("Failed to estabilish a session: "+M(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&xl(this,null))}; g.ee=function(a){vl("Receiver availability updated: "+a);if(!this.isDisposed()){var b=ul(this);this.A=a==chrome.cast.ReceiverAvailability.AVAILABLE;ul(this)!=b&&this.F("yt-remote-cast2-availability-change",ul(this))}}; function tl(a){var b=a.h.$c(),c=a.f&&a.f.h;a=A(b,function(a){c&&Pj(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,f=wl(this,a);f?(f.label=b,f.friendlyName=a.name):(f=new chrome.cast.Receiver(b,a.name),f.receiverType=chrome.cast.ReceiverType.CUSTOM);return f},a); c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(c));return a} g.bd=function(){if(!this.isDisposed()){var a=ul(this);this.j=tl(this);vl("Updating custom receivers: "+M(this.j));chrome.cast.setCustomReceivers(this.j,t,v(function(){this.N("Failed to set custom receivers.")},this)); var b=ul(this);b!=a&&this.F("yt-remote-cast2-availability-change",b)}}; rl.prototype.setLaunchParams=rl.prototype.Ee;rl.prototype.setConnectedScreenStatus=rl.prototype.De;rl.prototype.stopSession=rl.prototype.Te;rl.prototype.getCastSession=rl.prototype.Se;rl.prototype.requestSession=rl.prototype.requestSession;rl.prototype.init=rl.prototype.init;rl.prototype.dispose=rl.prototype.dispose;function yl(a,b,c){zl()?Bl(a)&&(Cl(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Dl(b):(window.__onGCastApiAvailable=function(a,c){a?Dl(b):(El("Failed to load cast API: "+c),Fl(!1),Cl(!1),kj("yt-remote-cast-available"),kj("yt-remote-cast-receiver"),Gl(),b(!1))},c?Ec("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):Bj())):Al("Cannot initialize because not running Chrome")} function Gl(){Al("dispose");var a=Hl();a&&a.dispose();Il=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);Jl(!1);Ac(Kl);Kl.length=0} function Ll(){return!!jj("yt-remote-cast-installed")} function Ml(){var a=jj("yt-remote-cast-receiver");return a?Ca(a.friendlyName):null} function Nl(){Al("clearCurrentReciever");kj("yt-remote-cast-receiver")} function Ol(){Ll()?Hl()?Pl()?(Al("Requesting cast selector."),Il.requestSession()):(Al("Wait for cast API to be ready to request the session."),Kl.push(yc("yt-remote-cast2-api-ready",Ol))):El("requestCastSelector: Cast is not initialized."):El("requestCastSelector: Cast API is not installed!")} function Ql(a){Pl()?Hl().setLaunchParams(a):El("setLaunchParams called before ready.")} function Rl(a,b){Pl()?Hl().setConnectedScreenStatus(a,b):El("setConnectedScreenStatus called before ready.")} var Il=null;function zl(){var a;a=0<=wb.search(/\ (CrMo|Chrome|CriOS)\//);return Df||a} function Bl(a){var b=!1;if(!Il){var c=r("yt.mdx.remote.cloudview.instance_");c||(c=new rl(a),c.subscribe("yt-remote-cast2-availability-change",function(a){U("yt-remote-cast-available",a);K("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){Al("onReceiverSelected: "+a.friendlyName); U("yt-remote-cast-receiver",a);K("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){Al("onReceiverResumed: "+a.friendlyName); U("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){Al("onSessionChange: "+Vj(a)); a||kj("yt-remote-cast-receiver");K("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0); Il=c}Al("cloudview.createSingleton_: "+b);return b} function Hl(){Il||(Il=r("yt.mdx.remote.cloudview.instance_"));return Il} function Dl(a){Fl(!0);Cl(!1);Il.init(!0,function(b){b?(Jl(!0),K("yt-remote-cast2-api-ready")):(El("Failed to initialize cast API."),Fl(!1),kj("yt-remote-cast-available"),kj("yt-remote-cast-receiver"),Gl());a(b)})} function Al(a){Lj("cloudview",a)} function El(a){Lj("cloudview",a)} function Fl(a){Al("setCastInstalled_ "+a);U("yt-remote-cast-installed",a)} function Pl(){return!!r("yt.mdx.remote.cloudview.apiReady_")} function Jl(a){Al("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)} function Cl(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)} var Kl=[];function Sl(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a} function Tl(a){Lj("CAST",a)} function Ul(a){var b=Vl();b&&b.logMessage&&b.logMessage(a)} function Wl(a){if(a.event.source==window&&a.event.data&&"CastApi"==a.event.data.source&&"Hello"==a.event.data.event)for(;Xl.length;)Xl.shift()()} function Yl(){if(!r("yt.mdx.remote.castv2_")&&!Zl&&(0==Sa.length&&Ya(Sa,Lk()),Sl())){var a=Vl();a?(a.removeReceiverListener("YouTube",$l),a.addReceiverListener("YouTube",$l),Tl("API initialized in the other binary")):(a=new cast.Api,am(a),a.addReceiverListener("YouTube",$l),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){I(function(){window.location.reload(!0)},1E3)}),Hj(Ul),Tl("API initialized")); Zl=!0}} function bm(){var a=Vl();a&&(Tl("API disposed"),Kj(Ul),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(t),a.removeReceiverListener("YouTube",$l),am(null));Zl=!1;Xl=null;(a=Ve(window,"message",Wl,!1))&&We(a)} function cm(a){var b=Qa(Sa,function(b){return b.id==a.id}); 0<=b&&(Sa[b]=ck(a))} function $l(a){a.length&&Tl("Updating receivers: "+M(a));dm(a);K("yt-remote-cast-device-list-update");z(em(),function(a){fm(a.id)}); z(a,function(a){if(a.isTabProjected){var c=gm(a.id);Tl("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");I(function(){K("yt-remote-cast-device-tab-projected",c.id)},1E3)}})} function hm(a,b){Tl("Updating "+a+" activity status: "+M(b));var c=gm(a);c?(b.activityId&&(c.f=b.activityId),c.status="running"==b.status?"RUNNING":"stopped"==b.status?"STOPPED":"error"==b.status?"ERROR":"UNKNOWN","RUNNING"!=c.status&&(c.f=""),cm(c),K("yt-remote-cast-device-status-update",c)):Tl("Device not found")} function em(){Yl();return ik(Sa)} function dm(a){a=A(a,function(a){var c={id:a.id,name:Ca(a.name)};if(a=gm(a.id))c.activityId=a.f,c.status=a.status;return c}); Ra();Ya(Sa,a)} function gm(a){var b=em();return Pa(b,function(b){return b.id==a})||null} function fm(a){var b=gm(a),c=Vl();c&&b&&b.f&&c.getActivityStatus(b.f,function(b){"error"==b.status&&(b.status="stopped");hm(a,b)})} function im(a){Yl();var b=gm(a),c=Vl();c&&b&&b.f?(Tl("Stopping cast activity"),c.stopActivity(b.f,oa(hm,a))):Tl("Dropping cast activity stop")} function Vl(){return r("yt.mdx.remote.castapi.api_")} function am(a){q("yt.mdx.remote.castapi.api_",a,void 0)} var Zl=!1,Xl=null,Sa=r("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Sa,void 0);function jm(a,b){this.h=a;this.f=b||null} ;function km(){} ;function lm(){this.f=w()} new lm;lm.prototype.set=function(a){this.f=a}; lm.prototype.reset=function(){this.set(w())}; lm.prototype.get=function(){return this.f};function mm(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.f=!1;this.Sc=!0} mm.prototype.stopPropagation=function(){this.f=!0}; mm.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Sc=!1};var nm=!L||wd(9),om=L&&!vd("9");!ld||vd("528");kd&&vd("1.9b")||L&&vd("8")||id&&vd("9.5")||ld&&vd("528");kd&&!vd("8")||L&&vd("9");function pm(a,b){mm.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.h=this.state=null;a&&this.init(a,b)} y(pm,mm); pm.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;if(e){if(kd){var f;a:{try{of(e.nodeName);f=!0;break a}catch(h){}f=!1}f||(e=null)}}else"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===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.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.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.h=a;a.defaultPrevented&&this.preventDefault()}; pm.prototype.stopPropagation=function(){pm.I.stopPropagation.call(this);this.h.stopPropagation?this.h.stopPropagation():this.h.cancelBubble=!0}; pm.prototype.preventDefault=function(){pm.I.preventDefault.call(this);var a=this.h;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,om)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var qm="closure_listenable_"+(1E6*Math.random()|0),rm=0;function sm(a,b,c,d,e){this.listener=a;this.f=null;this.src=b;this.type=c;this.qb=!!d;this.ub=e;this.key=++rm;this.Wa=this.pb=!1} function tm(a){a.Wa=!0;a.listener=null;a.f=null;a.src=null;a.ub=null} ;function um(a){this.src=a;this.f={};this.h=0} function vm(a,b,c,d,e){var f=b.toString();b=a.f[f];b||(b=a.f[f]=[],a.h++);var h=wm(b,c,d,e);-1c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(l){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,h=c.length-1;!d.f&&0<=h;h--){d.currentTarget=c[h];var k=Km(c[h],f,!0,d),e=e&&k}for(h=0;!d.f&&h>>0);function Dm(a){if(ga(a))return a;a[Mm]||(a[Mm]=function(b){return a.handleEvent(b)}); return a[Mm]} ;function Nm(){E.call(this);this.j=new um(this);this.Ba=this;this.qa=null} y(Nm,E);Nm.prototype[qm]=!0;g=Nm.prototype;g.addEventListener=function(a,b,c,d){Cm(this,a,b,c,d)}; g.removeEventListener=function(a,b,c,d){Im(this,a,b,c,d)}; function Om(a,b){var c,d=a.qa;if(d){c=[];for(var e=1;d;d=d.qa)c.push(d),++e}var d=a.Ba,e=b,f=e.type||e;if(u(e))e=new mm(e,d);else if(e instanceof mm)e.target=e.target||d;else{var h=e,e=new mm(f,d);vb(e,h)}var h=!0,k;if(c)for(var l=c.length-1;!e.f&&0<=l;l--)k=e.currentTarget=c[l],h=Pm(k,f,!0,e)&&h;e.f||(k=e.currentTarget=d,h=Pm(k,f,!0,e)&&h,e.f||(h=Pm(k,f,!1,e)&&h));if(c)for(l=0;!e.f&&lb)break a}else if(3>b||3==b&&!id&&!Dn(this.O))break a;this.Ia||4!=b||7==c||(8==c||0>=d?this.f.la(3):this.f.la(2));En(this);var e=this.O.getStatus();this.ib=e;var f=Dn(this.O);(this.ma=200==e)?(4==b&&Fn(this),this.A?(Gn(this,b,f),id&&this.ma&&3==b&&(this.l.vb(this.h,"tick",this.se),this.h.Fa())):Hn(this,f),this.ma&&!this.Ia&&(4==b?this.f.xb(this):(this.ma=!1,Bn(this)))):(this.Ma= 400==e&&0b.length)return xn;var e=b.substr(d,c);a.ob=d+c;return e} function Kn(a,b){a.lb=w();Bn(a);var c=b?window.location.hostname:"";a.Ga=a.Ca.clone();O(a.Ga,"DOMAIN",c);O(a.Ga,"t",a.B);try{a.na=new ActiveXObject("htmlfile")}catch(n){Fn(a);a.Ma=7;X();In(a);return}var d="";if(b){for(var e="",f=0;f"==h)e=e+"\\x3e";else{if(h in Ha)h=Ha[h];else if(h in Ga)h=Ha[h]=Ga[h];else{var k=h,l=h.charCodeAt(0);if(31l)k=h;else{if(256>l){if(k="\\x",16>l||256l&&(k+="0"); k+=l.toString(16).toUpperCase()}h=Ha[h]=k}e+=h}}d+='