(function(){var k;function aa(a){var b=0;return function(){return b=f}}); ma("String.prototype.endsWith",function(a){return a?a:function(a,c){var b=na(this,a,"endsWith");a+="";void 0===c&&(c=b.length);for(var e=Math.max(0,Math.min(c|0,b.length)),f=a.length;0=f}}); function oa(){oa=function(){}; la.Symbol||(la.Symbol=pa)} function qa(a,b){this.b=a;ka(this,"description",{configurable:!0,writable:!0,value:b})} qa.prototype.toString=function(){return this.b}; var pa=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new qa("jscomp_symbol_"+(c||"")+"_"+b++,c)} var b=0;return a}(); function ra(){oa();var a=la.Symbol.iterator;a||(a=la.Symbol.iterator=la.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&ka(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return sa(aa(this))}}); ra=function(){}} function sa(a){ra();a={next:a};a[la.Symbol.iterator]=function(){return this}; return a} function p(a,b){return Object.prototype.hasOwnProperty.call(a,b)} var ta="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c>>0),Ba=0;function Ca(a,b,c){return a.call.apply(a.bind,arguments)} function Da(a,b,c){if(!a)throw Error();if(2c?null:t(a)?a.charAt(c):a[c]} function Ma(a,b){var c=Ha(a,b);0<=c&&Array.prototype.splice.call(a,c,1)} function Na(a){var b=a.length;if(0")&&(a=a.replace(Ta,">"));-1!=a.indexOf('"')&&(a=a.replace(Ua,"""));-1!=a.indexOf("'")&&(a=a.replace(Va,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Wa,"�"))}return a} var Ra=/&/g,Sa=//g,Ua=/"/g,Va=/'/g,Wa=/\x00/g,Xa=/[\x00&<>"']/;function Ya(a){return a=Qa(a,void 0)} function Za(a){for(var b=0,c=0;c>>0;return b} ;var $a;a:{var ab=q.navigator;if(ab){var bb=ab.userAgent;if(bb){$a=bb;break a}}$a=""}function G(a){return-1!=$a.indexOf(a)} ;function cb(a,b){for(var c in a)b.call(void 0,a[c],c,a)} function db(a,b){var c=za(b),d=c?b:arguments;for(c=c?0:1;cparseFloat(vb)){ub=String(xb);break a}}ub=vb}var yb=ub,zb;var Ab=q.document;zb=Ab&&pb?tb()||("CSS1Compat"==Ab.compatMode?parseInt(yb,10):5):void 0;var Bb=null,Cb=null;function Db(a){this.b=a||{cookie:""}} k=Db.prototype;k.isEnabled=function(){return navigator.cookieEnabled}; k.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');r(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(B()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f}; k.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(";"),e=0,f;e",0);Tb("",0);Tb("
",0);function Ub(a,b){var c=b instanceof H?b:Pb(b);a.href=Nb(c)} function Vb(a,b){a.src=Lb(b);if(null===va)b:{var c=q.document;if((c=c.querySelector&&c.querySelector("script[nonce]"))&&(c=c.nonce||c.getAttribute("nonce"))&&ua.test(c)){va=c;break b}va=""}c=va;c&&a.setAttribute("nonce",c)} ;function Wb(a,b){this.x=r(a)?a:0;this.y=r(b)?b:0} k=Wb.prototype;k.clone=function(){return new Wb(this.x,this.y)}; k.equals=function(a){return a instanceof Wb&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)}; k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function Xb(a,b){this.width=a;this.height=b} k=Xb.prototype;k.clone=function(){return new Xb(this.width,this.height)}; k.aspectRatio=function(){return this.width/this.height}; k.isEmpty=function(){return!(this.width*this.height)}; k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Yb(a){var b=document;return t(a)?b.getElementById(a):a} function Zb(a,b){cb(b,function(b,d){b&&"object"==typeof b&&b.J&&(b=b.I());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:$b.hasOwnProperty(d)?a.setAttribute($b[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})} var $b={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"}; function ac(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!Ib&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',Ya(g.name),'"');if(g.type){f.push(' type="',Ya(g.type),'"');var h={};mb(h,g);delete h.type;g=h}f.push(">");f=f.join("")}f=e.createElement(f);g&&(t(g)?f.className=g:x(g)?f.className=g.join(" "):Zb(f,g));2d&&(d=a.length);var e=a.indexOf("?");if(0>e||e>d){e=d;var f=""}else f=a.substring(e+1,d);d=[a.substr(0,e),f,a.substr(d)];e=d[1];d[1]=c?e?e+"&"+c:c:e;c=d[0]+(d[1]?"?"+d[1]:"")+d[2]}else c=a;return c} var tc=/#|$/;function uc(a,b){var c=a.search(tc);a:{var d=0;for(var e=b.length;0<=(d=a.indexOf(b,d))&&dd)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.substr(d,e-d).replace(/\+/g," "))} ;var vc=null;function wc(){var a=q.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):B()} function xc(){var a=void 0===a?q:a;return(a=a.performance)&&a.now?a.now():null} ;function yc(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=this.label+"_"+this.type+"_"+Math.random();this.slotId=void 0} ;var K=q.performance,zc=!!(K&&K.mark&&K.measure&&K.clearMarks),Ac=Hb(function(){var a;if(a=zc){var b;if(null===vc){vc="";try{a="";try{a=q.top.location.hash}catch(c){a=q.location.hash}a&&(vc=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=vc;a=!!b.indexOf&&0<=b.indexOf("1337")}return a}); function Bc(){var a=Cc;this.events=[];this.f=a||q;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.b=Ac()||(null!=b?b:1>Math.random())} Bc.prototype.disable=function(){this.b=!1;this.events!=this.f.google_js_reporting_queue&&(Ac()&&F(this.events,Dc),this.events.length=0)}; function Dc(a){a&&K&&Ac()&&(K.clearMarks("goog_"+a.uniqueId+"_start"),K.clearMarks("goog_"+a.uniqueId+"_end"))} Bc.prototype.start=function(a,b){if(!this.b)return null;var c=xc()||wc();c=new yc(a,b,c);var d="goog_"+c.uniqueId+"_start";K&&Ac()&&K.mark(d);return c}; Bc.prototype.end=function(a){if(this.b&&"number"==typeof a.value){var b=xc()||wc();a.duration=b-a.value;b="goog_"+a.uniqueId+"_end";K&&Ac()&&K.mark(b);this.b&&this.events.push(a)}};if(oc&&!gc()){var Ec="."+Ga.domain;try{for(;2c;c+=4)b[c/4]=a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3];for(c=16;80>c;c++)a=b[c-3]^b[c-8]^b[c-14]^b[c-16],b[c]=(a<<1|a>>>31)&4294967295;a=e[0];var d=e[1],f=e[2],h=e[3],m=e[4];for(c=0;80>c;c++){if(40>c)if(20>c){var l=h^d&(f^h);var u=1518500249}else l=d^f^h,u=1859775393;else 60>c?(l=d&f|h&(d|f),u=2400959708):(l=d^f^h,u=3395469782);l=((a<<5|a>>>27)&4294967295)+l+m+u+b[c]&4294967295;m=h;h=f;f=(d<<30|d>>>2)&4294967295;d=a;a=l}e[0]=e[0]+a&4294967295;e[1]=e[1]+d&4294967295;e[2]= e[2]+f&4294967295;e[3]=e[3]+h&4294967295;e[4]=e[4]+m&4294967295} function c(a,c){if("string"===typeof a){a=unescape(encodeURIComponent(a));for(var d=[],e=0,g=a.length;el?c(h,56-l):c(h,64-(l-56));for(var g=63;56<=g;g--)f[g]=d&255,d>>>=8;b(f);for(g=d=0;5>g;g++)for(var m=24;0<=m;m-=8)a[d++]=e[g]>>m&255;return a} for(var e=[],f=[],g=[],h=[128],m=1;64>m;++m)h[m]=0;var l,u;a();return{reset:a,update:c,digest:d,ra:function(){for(var a=d(),b="",c=0;ca.f&&(a.f++,b.next=a.b,a.b=b)} ;function Qc(a){q.setTimeout(function(){throw a;},0)} var Rc; function Sc(){var a=q.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!G("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=A(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&&!G("Trident")&&!G("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(r(c.next)){c=c.next;var a=c.fa;c.fa=null;a()}}; return function(a){d.next={fa: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){q.setTimeout(a,0)}} ;function Tc(){this.f=this.b=null} var Vc=new Oc(function(){return new Uc},function(a){a.reset()}); Tc.prototype.add=function(a,b){var c=Vc.get();c.set(a,b);this.f?this.f.next=c:this.b=c;this.f=c}; Tc.prototype.remove=function(){var a=null;this.b&&(a=this.b,this.b=this.b.next,this.b||(this.f=null),a.next=null);return a}; function Uc(){this.next=this.scope=this.b=null} Uc.prototype.set=function(a,b){this.b=a;this.scope=b;this.next=null}; Uc.prototype.reset=function(){this.next=this.scope=this.b=null};function Wc(a,b){Xc||Yc();Zc||(Xc(),Zc=!0);$c.add(a,b)} var Xc;function Yc(){if(q.Promise&&q.Promise.resolve){var a=q.Promise.resolve(void 0);Xc=function(){a.then(ad)}}else Xc=function(){var a=ad; !y(q.setImmediate)||q.Window&&q.Window.prototype&&!G("Edge")&&q.Window.prototype.setImmediate==q.setImmediate?(Rc||(Rc=Sc()),Rc(a)):q.setImmediate(a)}} var Zc=!1,$c=new Tc;function ad(){for(var a;a=$c.remove();){try{a.b.call(a.scope)}catch(b){Qc(b)}Pc(Vc,a)}Zc=!1} ;function bd(){this.f=-1} ;function cd(){this.f=64;this.b=[];this.j=[];this.u=[];this.h=[];this.h[0]=128;for(var a=1;ae;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.b[0];c=a.b[1];var g=a.b[2],h=a.b[3],m=a.b[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^c&(g^h);var l=1518500249}else f=c^g^h,l=1859775393;else 60>e?(f=c&g|h&(c|g),l=2400959708):(f=c^g^h,l= 3395469782);f=(b<<5|b>>>27)+f+m+l+d[e]&4294967295;m=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.b[0]=a.b[0]+b&4294967295;a.b[1]=a.b[1]+c&4294967295;a.b[2]=a.b[2]+g&4294967295;a.b[3]=a.b[3]+h&4294967295;a.b[4]=a.b[4]+m&4294967295} cd.prototype.update=function(a,b){if(null!=a){r(b)||(b=a.length);for(var c=b-this.f,d=0,e=this.j,f=this.g;dthis.g?this.update(this.h,56-this.g):this.update(this.h,this.f-(this.g-56));for(var c=this.f-1;56<=c;c--)this.j[c]=b&255,b/=256;dd(this,this.j);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.b[c]>>d&255,++b;return a};function L(){this.f=this.f;this.u=this.u} L.prototype.f=!1;L.prototype.dispose=function(){this.f||(this.f=!0,this.l())}; function ed(a,b){a.f?r(void 0)?b.call(void 0):b():(a.u||(a.u=[]),a.u.push(r(void 0)?A(b,void 0):b))} L.prototype.l=function(){if(this.u)for(;this.u.length;)this.u.shift()()}; function fd(a){a&&"function"==typeof a.dispose&&a.dispose()} function gd(a){for(var b=0,c=arguments.length;b=a.length)throw kd;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");} function nd(a,b){if(za(a))try{F(a,b,void 0)}catch(c){if(c!==kd)throw c;}else{a=md(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==kd)throw c;}}} function od(a){if(za(a))return Na(a);a=md(a);var b=[];nd(a,function(a){b.push(a)}); return b} ;function pd(a,b){this.g={};this.b=[];this.h=this.f=0;var c=arguments.length;if(12*this.f&&rd(this),!0):!1}; function rd(a){if(a.f!=a.b.length){for(var b=0,c=0;b=d.b.length)throw kd;var e=d.b[b++];return a?e:d.g[e]}; return e};function td(a){var b=[];ud(new vd,a,b);return b.join("")} function vd(){} function ud(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(x(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fB())Yd.prototype.remove.call(this,a);else return b}};function Zd(){} ;function $d(){} C($d,Zd);$d.prototype.clear=function(){var a=od(this.F(!0)),b=this;F(a,function(a){b.remove(a)})};function ae(a){this.b=a} C(ae,$d);k=ae.prototype;k.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}}; k.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";}}; k.get=function(a){a=this.b.getItem(a);if(!t(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; k.remove=function(a){this.b.removeItem(a)}; k.F=function(a){var b=0,c=this.b,d=new ld;d.next=function(){if(b>=c.length)throw kd;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!t(d))throw"Storage mechanism: Invalid value was encountered";return d}; return d}; k.clear=function(){this.b.clear()}; k.key=function(a){return this.b.key(a)};function be(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a} C(be,ae);function ce(a,b){this.f=a;this.b=null;if(pb&&!(9<=Number(zb))){de||(de=new pd);this.b=de.get(a);this.b||(b?this.b=document.getElementById(b):(this.b=document.createElement("userdata"),this.b.addBehavior("#default#userData"),document.body.appendChild(this.b)),de.set(a,this.b));try{this.b.load(this.f)}catch(c){this.b=null}}} C(ce,$d);var ee={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},de=null;function fe(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(a){return ee[a]})} k=ce.prototype;k.isAvailable=function(){return!!this.b}; k.set=function(a,b){this.b.setAttribute(fe(a),b);ge(this)}; k.get=function(a){a=this.b.getAttribute(fe(a));if(!t(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; k.remove=function(a){this.b.removeAttribute(fe(a));ge(this)}; k.F=function(a){var b=0,c=this.b.XMLDocument.documentElement.attributes,d=new ld;d.next=function(){if(b>=c.length)throw kd;var d=c[b++];if(a)return decodeURIComponent(d.nodeName.replace(/\./g,"%")).substr(1);d=d.nodeValue;if(!t(d))throw"Storage mechanism: Invalid value was encountered";return d}; return d}; k.clear=function(){for(var a=this.b.XMLDocument.documentElement,b=a.attributes.length;0a&&0===a%1&&this.f[a]!=b&&(this.f[a]=b,this.b=-1)}; ie.prototype.get=function(a){return!!this.f[a]}; function je(a){-1==a.b&&(a.b=Ka(a.f,function(a,c,d){return c?a+Math.pow(2,d):a},0)); return a.b} ;function ke(a,b){if(1a.status)?a.json().then(d,function(){d(null)}):d(null)}}); b.ha&&0a.status,ea=500<=a.status&&600>a.status;if(d||h||ea)g=Pe(c,a,b.mb);if(d)a:if(a&&204==a.status)d=!0;else{switch(c){case "XML":d=0==parseInt(g&&g.return_code,10);break a;case "RAW":d=!0;break a}d=!!g}g=g||{};h=b.context||q;d?b.onSuccess&&b.onSuccess.call(h,a,g):b.onError&&b.onError.call(h,a,g);b.da&&b.da.call(h,a,g)}},b.method,d,b.headers,b.responseType, b.withCredentials); b.M&&0"',style:"display:none"}),(9==a.nodeType?a:a.ownerDocument||a.document).body.appendChild(a))):e?Oe(a,b,"POST",e,d):Q("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d?Oe(a,b,"GET","",d):((d=le.EXPERIMENT_FLAGS)&&d.web_use_beacon_api_for_ad_click_server_pings&&-1!=I(J(5,a)).indexOf("/aclk")&&"1"===uc(a,"ae")&&"1"===uc(a,"act")?Xe(a)?(b&&b(),d=!0):d=!1:d=!1,d||Ye(a,b)))} function Xe(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1} function Ye(a,b){var c=new Image,d=""+Ve++;Ue[d]=c;c.onload=c.onerror=function(){b&&Ue[d]&&b();delete Ue[d]}; c.src=a} ;var Ze={},$e=0; function af(a,b,c,d,e,f){f=f||{};f.name=c||Q("INNERTUBE_CONTEXT_CLIENT_NAME",1);f.version=d||Q("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);b=void 0===b?"ERROR":b;e=void 0===e?!1:e;b=void 0===b?"ERROR":b;e=window&&window.yterr||(void 0===e?!1:e)||!1;if(!(!a||!e||5<=$e||(e=a.stacktrace,c=a.columnNumber,a.hasOwnProperty("params")&&(d=String(JSON.stringify(a.params)),f.params=d.substr(0,500)),a=Fb(a),e=e||a.stack,d=a.lineNumber.toString(),isNaN(d)||isNaN(c)||(d=d+":"+c),window.yterr&&y(window.yterr)&&window.yterr(a), Ze[a.message]||0<=e.indexOf("/YouTubeCenter.js")||0<=e.indexOf("/mytube.js")))){b={Va:{a:"logerror",t:"jserror",type:a.name,msg:a.message.substr(0,250),line:d,level:b,"client.name":f.name},C:{url:Q("PAGE_NAME",window.location.href),file:a.fileName},method:"POST"};f.version&&(b["client.version"]=f.version);e&&(b.C.stack=e);for(var g in f)b.C["client."+g]=f[g];if(g=Q("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var h in g)b.C[h]=g[h];Ne(Q("ECATCHER_REPORT_HOST","")+"/error_204",b);Ze[a.message]= !0;$e++}} ;var bf=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};v("yt.msgs_",bf,void 0);function cf(a){ke(bf,arguments)} ;function df(a){a&&(a.dataset?a.dataset[ef("loaded")]="true":a.setAttribute("data-loaded","true"))} function ff(a,b){return a?a.dataset?a.dataset[ef(b)]:a.getAttribute("data-"+b):null} var gf={};function ef(a){return gf[a]||(gf[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))} ;var hf=w("ytPubsubPubsubInstance")||new N;N.prototype.subscribe=N.prototype.subscribe;N.prototype.unsubscribeByKey=N.prototype.L;N.prototype.publish=N.prototype.K;N.prototype.clear=N.prototype.clear;v("ytPubsubPubsubInstance",hf,void 0);var jf=w("ytPubsubPubsubSubscribedKeys")||{};v("ytPubsubPubsubSubscribedKeys",jf,void 0);var kf=w("ytPubsubPubsubTopicToKeys")||{};v("ytPubsubPubsubTopicToKeys",kf,void 0);var lf=w("ytPubsubPubsubIsSynchronous")||{};v("ytPubsubPubsubIsSynchronous",lf,void 0); function mf(a,b){var c=nf();if(c){var d=c.subscribe(a,function(){var c=arguments;var f=function(){jf[d]&&b.apply(window,c)}; try{lf[a]?f():T(f,0)}catch(g){R(g)}},void 0); jf[d]=!0;kf[a]||(kf[a]=[]);kf[a].push(d);return d}return 0} function of(a){var b=nf();b&&("number"==typeof a?a=[a]:t(a)&&(a=[parseInt(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete jf[a]}))} function pf(a,b){var c=nf();c&&c.publish.apply(c,arguments)} function qf(a){var b=nf();if(b)if(b.clear(a),a)rf(a);else for(var c in kf)rf(c)} function nf(){return w("ytPubsubPubsubInstance")} function rf(a){kf[a]&&(a=kf[a],F(a,function(a){jf[a]&&delete jf[a]}),a.length=0)} ;var sf=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,tf=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function uf(a,b,c){c=void 0===c?null:c;if(window.spf){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1f&&(c=a.substring(f,e),c=c.replace(sf,""),c=c.replace(tf,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else vf(a,b,c)} function vf(a,b,c){c=void 0===c?null:c;var d=wf(a),e=document.getElementById(d),f=e&&ff(e,"loaded"),g=e&&!f;f?b&&b():(b&&(f=mf(d,b),b=""+(b[Aa]||(b[Aa]=++Ba)),xf[b]=f),g||(e=yf(a,d,function(){ff(e,"loaded")||(df(e),pf(d),T(Ea(qf,d),0))},c)))} function yf(a,b,c,d){d=void 0===d?null:d;var e=document.createElement("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)}; e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; d&&e.setAttribute("nonce",d);Vb(e,ec(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function zf(a){a=wf(a);var b=document.getElementById(a);b&&(qf(a),b.parentNode.removeChild(b))} function Af(a,b){if(a&&b){var c=""+(b[Aa]||(b[Aa]=++Ba));(c=xf[c])&&of(c)}} function wf(a){var b=document.createElement("a");Ub(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Za(a)} var xf={};function Bf(){} function Cf(a,b){return Df(a,1,b)} ;function Ef(){} n(Ef,Bf);function Df(a,b,c){isNaN(c)&&(c=void 0);var d=w("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):T(a,c||0)} function Ff(a){if(!isNaN(a)){var b=w("yt.scheduler.instance.cancelJob");b?b(a):U(a)}} Ef.prototype.start=function(){var a=w("yt.scheduler.instance.start");a&&a()}; Ef.prototype.pause=function(){var a=w("yt.scheduler.instance.pause");a&&a()}; xa(Ef);Ef.getInstance();var Gf=[],Hf=!1;function If(){if("1"!=db(ne(),"args","privembed")){var a=function(){Hf=!0;"google_ad_status"in window?P("DCLKSTAT",1):P("DCLKSTAT",2)}; uf("//static.doubleclick.net/instream/ad_status.js",a);Gf.push(Cf(function(){Hf||"google_ad_status"in window||(Af("//static.doubleclick.net/instream/ad_status.js",a),Hf=!0,P("DCLKSTAT",3))},5E3))}} function Jf(){return parseInt(Q("DCLKSTAT",0),10)} ;function Kf(){this.f=!1;this.b=null} Kf.prototype.initialize=function(a,b,c,d,e){var f=this;b?(this.f=!0,uf(b,function(){f.f=!1;if(window.botguard)Lf(f,c,d);else{zf(b);var a=Error("Unable to load Botguard");a.params="from "+b;se(a)}},e)):a&&(eval(a),window.botguard?Lf(this,c,d):se(Error("Unable to load Botguard from JS")))}; function Lf(a,b,c){try{a.b=new botguard.bg(b)}catch(d){se(d)}c&&c(b)} Kf.prototype.dispose=function(){this.b=null};var Mf=new Kf,Nf=!1,Of=0,Pf="";function Qf(a){S("botguard_periodic_refresh")?Of=O():S("botguard_always_refresh")&&(Pf=a)} function Rf(a){if(a){if(Mf.f)return!1;if(S("botguard_periodic_refresh"))return 72E5a;a++)this.g.push(0);this.h=0;this.D=V(window,"mousemove",A(this.G,this));a=A(this.B,this);y(a)&&(a=re(a));this.H=window.setInterval(a,25)} C(bg,L);bg.prototype.G=function(a){r(a.b)||Xf(a);var b=a.b;r(a.f)||Xf(a);this.b=new Wb(b,a.f)}; bg.prototype.B=function(){if(this.b){var a=O();if(0!=this.i){var b=this.m,c=this.b,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.i);this.g[this.h]=.5c;c++)b+=this.g[c]||0;3<=b&&this.w();this.j=d}this.i=a;this.m=this.b;this.h=(this.h+1)%4}}; bg.prototype.l=function(){window.clearInterval(this.H);ag(this.D)};var cg={}; function dg(a){var b=void 0===a?{}:a;a=void 0===b.xa?!0:b.xa;b=void 0===b.Ka?!1:b.Ka;if(null==w("_lact",window)){var c=parseInt(Q("LACT"),10);c=isFinite(c)?B()-Math.max(c,0):-1;v("_lact",c,window);v("_fact",c,window);-1==c&&eg();V(document,"keydown",eg);V(document,"keyup",eg);V(document,"mousedown",eg);V(document,"mouseup",eg);a&&(b?V(window,"touchmove",function(){fg("touchmove",200)},{passive:!0}):(V(window,"resize",function(){fg("resize",200)}),V(window,"scroll",function(){fg("scroll",200)}))); new bg(function(){fg("mouse",100)}); V(document,"touchstart",eg,{passive:!0});V(document,"touchend",eg,{passive:!0})}} function fg(a,b){cg[a]||(cg[a]=!0,Cf(function(){eg();cg[a]=!1},b))} function eg(){null==w("_lact",window)&&dg();var a=B();v("_lact",a,window);-1==w("_fact",window)&&v("_fact",a,window);(a=w("ytglobal.ytUtilActivityCallback_"))&&a()} function gg(){var a=w("_lact",window);return null==a?-1:Math.max(B()-a,0)} ;var hg=Math.pow(2,16)-1,ig=null,jg=0,kg={log_event:"events",log_interaction:"interactions"},lg=Object.create(null);lg.log_event="GENERIC_EVENT_LOGGING";lg.log_interaction="INTERACTION_LOGGING";var mg=new Set(["log_event"]),ng={},og=0,pg=0,W=w("ytLoggingTransportLogPayloadsQueue_")||{};v("ytLoggingTransportLogPayloadsQueue_",W,void 0);var qg=w("ytLoggingTransportTokensToCttTargetIds_")||{};v("ytLoggingTransportTokensToCttTargetIds_",qg,void 0);var rg=w("ytLoggingTransportDispatchedStats_")||{}; v("ytLoggingTransportDispatchedStats_",rg,void 0);v("ytytLoggingTransportCapturedTime_",w("ytLoggingTransportCapturedTime_")||{},void 0);function sg(){U(og);U(pg);pg=0;if(!gb(W)){for(var a in W){var b=ng[a];b&&(tg(a,b),delete W[a])}gb(W)||ug()}} function ug(){S("web_gel_timeout_cap")&&!pg&&(pg=T(sg,3E4));U(og);og=T(sg,Q("LOGGING_BATCH_TIMEOUT",te("web_gel_debounce_ms",1E4)))} function vg(a,b){b=void 0===b?"":b;W[a]=W[a]||{};W[a][b]=W[a][b]||[];return W[a][b]} function tg(a,b){var c=kg[a],d=rg[a]||{};rg[a]=d;var e=Math.round(O());for(l in W[a]){var f=kb,g=b.b;g={client:{hl:g.Da,gl:g.Ca,clientName:g.Aa,clientVersion:g.Ba}};var h=window.devicePixelRatio;h&&1!=h&&(g.client.screenDensityFloat=String(h));Q("DELEGATED_SESSION_ID")&&!S("pageid_as_header_web")&&(g.user={onBehalfOfUser:Q("DELEGATED_SESSION_ID")});f=f({context:g});f[c]=vg(a,l);d.dispatchedEventCount=d.dispatchedEventCount||0;d.dispatchedEventCount+=f[c].length;if(g=qg[l])a:{var m=l;if(g.videoId)h= "VIDEO";else if(g.playlistId)h="PLAYLIST";else break a;f.credentialTransferTokenTargetId=g;f.context=f.context||{};f.context.user=f.context.user||{};f.context.user.credentialTransferTokens=[{token:m,scope:h}]}delete qg[l];f.requestTimeMs=e;if(g=me("EVENT_ID"))h=(Q("BATCH_CLIENT_COUNTER",void 0)||0)+1,h>hg&&(h=1),P("BATCH_CLIENT_COUNTER",h),g={serializedEventId:g,clientCounter:h},f.serializedClientEventId=g,ig&&jg&&S("log_gel_rtt_web")&&(f.previousBatchInfo={serializedClientEventId:ig,roundtripMs:jg}), ig=g,jg=0;wg(b,a,f,{retry:mg.has(a),onSuccess:A(xg,this,O())})}if(d.previousDispatchMs){c=e-d.previousDispatchMs;var l=d.diffCount||0;d.averageTimeBetweenDispatchesMs=l?(d.averageTimeBetweenDispatchesMs*l+c)/(l+1):c;d.diffCount=l+1}d.previousDispatchMs=e} function xg(a){jg=Math.round(O()-a)} ;function yg(a,b,c,d,e){var f={};f.eventTimeMs=Math.round(d||O());f[a]=b;f.context={lastActivityMs:String(d?-1:gg())};e?(a={},e.videoId?a.videoId=e.videoId:e.playlistId&&(a.playlistId=e.playlistId),qg[e.token]=a,e=vg("log_event",e.token)):e=vg("log_event");e.push(f);c&&(ng.log_event=new c);e.length>=(te("web_logging_max_batch")||20)?sg():ug()} ;function zg(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||Q("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.jb||Q("AUTHORIZATION"))||(a?b="Bearer "+w("gapi.auth.getToken")().ib:b=Nc([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=Q("SESSION_INDEX",0),S("pageid_as_header_web")&&(d["X-Goog-PageId"]=Q("DELEGATED_SESSION_ID")));return d} function Ag(a){a=Object.assign({},a);delete a.Authorization;var b=Nc();if(b){var c=new cd;c.update(Q("INNERTUBE_API_KEY",void 0));c.update(b);b=c.digest();za(b);if(!Bb)for(Bb={},Cb={},c=0;65>c;c++)Bb[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),Cb[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c);c=Cb;for(var d=[],e=0;e>2;f=(f&3)<<4|h>>4;h=(h&15)<< 2|l>>6;l&=63;m||(l=64,g||(h=64));d.push(c[u],c[f],c[h],c[l])}a.hash=d.join("")}return a} ;function Bg(a,b,c,d){Eb.set(""+a,b,c,"/",void 0===d?"youtube.com":d,!1)} ;function Cg(){var a=new be;(a=a.isAvailable()?new he(a,"yt.innertube"):null)||(a=new ce("yt.innertube"),a=a.isAvailable()?a:null);this.b=a?new Yd(a):null;this.f=document.domain||window.location.hostname} Cg.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.b)try{this.b.set(a,b,B()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(td(b))}catch(f){return}else e=escape(b);Bg(a,e,c,this.f)}; Cg.prototype.get=function(a,b){var c=void 0,d=!this.b;if(!d)try{c=this.b.get(a)}catch(e){d=!0}if(d&&(c=Eb.get(""+a,void 0))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; Cg.prototype.remove=function(a){this.b&&this.b.remove(a);var b=this.f;Eb.remove(""+a,"/",void 0===b?"youtube.com":b)};var Dg=new Cg;function Eg(a,b,c,d){if(d)return null;d=Dg.get("nextId",!0)||1;var e=Dg.get("requests",!0)||{};e[d]={method:a,request:b,authState:Ag(c),requestTime:Math.round(O())};Dg.set("nextId",d+1,86400,!0);Dg.set("requests",e,86400,!0);return d} function Fg(a){var b=Dg.get("requests",!0)||{};delete b[a];Dg.set("requests",b,86400,!0)} function Gg(a){var b=Dg.get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(6E4>Math.round(O())-d.requestTime)){var e=d.authState,f=Ag(zg(!1));ib(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(O())),wg(a,d.method,e,{}));delete b[c]}}Dg.set("requests",b,86400,!0)}} ;function Hg(a){var b=this;this.b=a||{ya:me("INNERTUBE_API_KEY"),za:me("INNERTUBE_API_VERSION"),Aa:Q("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),Ba:me("INNERTUBE_CONTEXT_CLIENT_VERSION"),Da:me("INNERTUBE_CONTEXT_HL"),Ca:me("INNERTUBE_CONTEXT_GL"),Ea:me("INNERTUBE_HOST_OVERRIDE")||"",Fa:!!Q("INNERTUBE_USE_THIRD_PARTY_AUTH",!1)};Df(function(){Gg(b)},0,5E3)} function wg(a,b,c,d){!Q("VISITOR_DATA")&&.01>Math.random()&&R(Error("Missing VISITOR_DATA when sending innertube request."),"WARNING");var e={headers:{"Content-Type":"application/json"},method:"POST",C:c,ia:"JSON",M:function(){d.M()}, ha:d.M,onSuccess:function(a,b){if(d.onSuccess)d.onSuccess(b)}, ga:function(a){if(d.onSuccess)d.onSuccess(a)}, onError:function(a,b){if(d.onError)d.onError(b)}, ob:function(a){if(d.onError)d.onError(a)}, timeout:d.timeout,withCredentials:!0},f="",g=a.b.Ea;g&&(f=g);g=a.b.Fa||!1;var h=zg(g,f,d);Object.assign(e.headers,h);e.headers.Authorization&&!f&&(e.headers["x-origin"]=window.location.origin);var m=""+f+("/youtubei/"+a.b.za+"/"+b)+"?alt=json&key="+a.b.ya,l;if(d.retry&&S("retry_web_logging_batches")&&"www.youtube-nocookie.com"!=f&&(l=Eg(b,c,h,g))){var u=e.onSuccess,ea=e.ga;e.onSuccess=function(a,b){Fg(l);u(a,b)}; c.ga=function(a,b){Fg(l);ea(a,b)}}try{S("use_fetch_for_op_xhr")?Ke(m,e):Te(m,e)}catch(Dd){if("InvalidAccessError"==Dd)l&&(Fg(l),l=0),R(Error("An extension is blocking network request."),"WARNING"); else throw Dd;}l&&Df(function(){Gg(a)},0,5E3)} ;var Ig=B().toString(); function Jg(){a:{if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;ca;a++){b=B();for(c=0;ce?d:d.substr(0,e)){if(b.itct||b.ved)b.csn=b.csn||Sg();if(h){var h= parseInt(h,10);isFinite(h)&&0>>0);function rh(a){var b="player";b=t(b)?Yb(b):b;var c=qh+"_"+(b[Aa]||(b[Aa]=++Ba)),d=ph[c];if(d)return d.loadNewVideoConfig(a),d.api;d=new ch(b,c);ph[c]=d;pf("player-added",d.api);ed(d,Ea(sh,d));T(function(){d.loadNewVideoConfig(a)},0); return d.api} function sh(a){delete ph[a.D]} ;function th(a,b,c){var d=Hg;Q("ytLoggingEventsDefaultDisabled",!1)&&Hg==Hg&&(d=null);yg(a,b,d,c,void 0)} ;var uh=w("ytLoggingLatencyUsageStats_")||{};v("ytLoggingLatencyUsageStats_",uh,void 0);var vh=0;function wh(a){uh[a]=uh[a]||{count:0};var b=uh[a];b.count++;b.time=O();vh||(vh=Df(xh,0,5E3));if(10