(function(){var m;function aa(a){var b=0;return function(){return b=f}}); la("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=ma(this,b,"endsWith");b+="";void 0===c&&(c=d.length);for(var e=Math.max(0,Math.min(c|0,d.length)),f=b.length;0=f}}); function oa(){oa=function(){}; ka.Symbol||(ka.Symbol=pa)} function qa(a,b){this.b=a;ja(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=ka.Symbol.iterator;a||(a=ka.Symbol.iterator=ka.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&ja(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return sa(aa(this))}}); ra=function(){}} function sa(a){ra();a={next:a};a[ka.Symbol.iterator]=function(){return this}; return a} function ta(a,b){return Object.prototype.hasOwnProperty.call(a,b)} var ua="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c>>0),Fa=0;function Ga(a,b,c){return a.call.apply(a.bind,arguments)} function Ha(a,b,c){if(!a)throw Error();if(2c?null:v(a)?a.charAt(c):a[c]} function Qa(a,b){var c=La(a,b);0<=c&&Array.prototype.splice.call(a,c,1)} function Ra(a){var b=a.length;if(0")&&(a=a.replace(Xa,">"));-1!=a.indexOf('"')&&(a=a.replace(Ya,"""));-1!=a.indexOf("'")&&(a=a.replace(Za,"'"));-1!=a.indexOf("\x00")&&(a=a.replace($a,"�"))}return a} var Va=/&/g,Wa=//g,Ya=/"/g,Za=/'/g,$a=/\x00/g,ab=/[\x00&<>"']/;function bb(a){return a=Ua(a,void 0)} function cb(a){for(var b=0,c=0;c>>0;return b} ;var db;a:{var eb=r.navigator;if(eb){var fb=eb.userAgent;if(fb){db=fb;break a}}db=""}function F(a){return-1!=db.indexOf(a)} ;function gb(a,b){for(var c in a)b.call(void 0,a[c],c,a)} function hb(a,b){var c=Ba(b),d=c?b:arguments;for(c=c?0:1;cparseFloat(yb)){xb=String(Ab);break a}}xb=yb}var Bb=xb,Db;var Eb=r.document;Db=Eb&&sb?wb()||("CSS1Compat"==Eb.compatMode?parseInt(Bb,10):5):void 0;var Fb=null,Gb=null;function Hb(a){this.b=a||{cookie:""}} m=Hb.prototype;m.isEnabled=function(){return navigator.cookieEnabled}; m.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+'"');u(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(A()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f}; m.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(";"),e=0,f;e",0);Xb("",0);Xb("
",0);function Yb(a,b){var c=b instanceof G?b:Tb(b);a.href=Rb(c)} function Zb(a,b){a.src=Pb(b);if(null===wa)b:{var c=r.document;if((c=c.querySelector&&c.querySelector("script[nonce]"))&&(c=c.nonce||c.getAttribute("nonce"))&&va.test(c)){wa=c;break b}wa=""}c=wa;c&&a.setAttribute("nonce",c)} ;function $b(a,b){this.x=u(a)?a:0;this.y=u(b)?b:0} m=$b.prototype;m.clone=function(){return new $b(this.x,this.y)}; m.equals=function(a){return a instanceof $b&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)}; m.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; m.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; m.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function ac(a,b){this.width=a;this.height=b} m=ac.prototype;m.clone=function(){return new ac(this.width,this.height)}; m.aspectRatio=function(){return this.width/this.height}; m.isEmpty=function(){return!(this.width*this.height)}; m.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; m.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; m.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function bc(a){var b=document;return v(a)?b.getElementById(a):a} function cc(a,b){gb(b,function(c,d){c&&"object"==typeof c&&c.J&&(c=c.I());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:dc.hasOwnProperty(d)?a.setAttribute(dc[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})} var dc={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 ec(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!Mb&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',bb(h.name),'"');if(h.type){f.push(' type="',bb(h.type),'"');var g={};qb(g,h);delete g.type;h=g}f.push(">");f=f.join("")}f=e.createElement(f);h&&(v(h)?f.className=h:Aa(h)?f.className=h.join(" "):cc(f,h));2p;p+=4)w[p/4]=t[p]<<24|t[p+1]<<16|t[p+2]<<8|t[p+3];for(p=16;80>p;p++)t=w[p-3]^w[p-8]^w[p-14]^w[p-16],w[p]=(t<<1|t>>>31)&4294967295;t=e[0];var H=e[1],V=e[2],na=e[3],tc=e[4];for(p=0;80>p;p++){if(40>p)if(20>p){var Ka=na^H&(V^na);var Cb=1518500249}else Ka=H^V^na,Cb=1859775393;else 60>p?(Ka=H&V|na&(H|V),Cb=2400959708):(Ka=H^V^na,Cb=3395469782);Ka=((t<<5|t>>>27)&4294967295)+Ka+tc+Cb+w[p]&4294967295;tc=na;na=V;V=(H<<30|H>>>2)&4294967295;H=t;t=Ka}e[0]=e[0]+t&4294967295;e[1]= e[1]+H&4294967295;e[2]=e[2]+V&4294967295;e[3]=e[3]+na&4294967295;e[4]=e[4]+tc&4294967295} function c(t,w){if("string"===typeof t){t=unescape(encodeURIComponent(t));for(var p=[],H=0,V=t.length;Hl?c(g,56-l):c(g,64-(l-56));for(var p=63;56<=p;p--)f[p]=w&255,w>>>=8;b(f);for(p=w=0;5>p;p++)for(var H=24;0<=H;H-=8)t[w++]=e[p]>>H&255;return t} for(var e=[],f=[],h=[],g=[128],k=1;64>k;++k)g[k]=0;var l,q;a();return{reset:a,update:c,digest:d,qa:function(){for(var t=d(),w="",p=0;pa.f&&(a.f++,b.next=a.b,a.b=b)} ;function zc(a){r.setTimeout(function(){throw a;},0)} var Ac; function Bc(){var a=r.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!F("Presto")&&(a=function(){var e=document.createElement("IFRAME");e.style.display="none";e.src="";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.write("");e.close();var h="callImmediate"+Math.random(),g="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=z(function(k){if(("*"==g||k.origin==g)&&k.data== h)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,g)}}}); if("undefined"!==typeof a&&!F("Trident")&&!F("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(u(c.next)){c=c.next;var e=c.ea;c.ea=null;e()}}; return function(e){d.next={ea:e};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var f=document.createElement("SCRIPT"); f.onreadystatechange=function(){f.onreadystatechange=null;f.parentNode.removeChild(f);f=null;e();e=null}; document.documentElement.appendChild(f)}:function(e){r.setTimeout(e,0)}} ;function Cc(){this.f=this.b=null} var Ec=new xc(function(){return new Dc},function(a){a.reset()}); Cc.prototype.add=function(a,b){var c=Ec.get();c.set(a,b);this.f?this.f.next=c:this.b=c;this.f=c}; Cc.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 Dc(){this.next=this.scope=this.b=null} Dc.prototype.set=function(a,b){this.b=a;this.scope=b;this.next=null}; Dc.prototype.reset=function(){this.next=this.scope=this.b=null};function Fc(a,b){Gc||Hc();Ic||(Gc(),Ic=!0);Jc.add(a,b)} var Gc;function Hc(){if(r.Promise&&r.Promise.resolve){var a=r.Promise.resolve(void 0);Gc=function(){a.then(Kc)}}else Gc=function(){var b=Kc; !Ca(r.setImmediate)||r.Window&&r.Window.prototype&&!F("Edge")&&r.Window.prototype.setImmediate==r.setImmediate?(Ac||(Ac=Bc()),Ac(b)):r.setImmediate(b)}} var Ic=!1,Jc=new Cc;function Kc(){for(var a;a=Jc.remove();){try{a.b.call(a.scope)}catch(b){zc(b)}yc(Ec,a)}Ic=!1} ;function Lc(){this.f=-1} ;function Mc(){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 h=a.b[2],g=a.b[3],k=a.b[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=g^c&(h^g);var l=1518500249}else f=c^h^g,l=1859775393;else 60>e?(f=c&h|g&(c|h),l=2400959708):(f=c^h^g,l= 3395469782);f=(b<<5|b>>>27)+f+k+l+d[e]&4294967295;k=g;g=h;h=(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]+h&4294967295;a.b[3]=a.b[3]+g&4294967295;a.b[4]=a.b[4]+k&4294967295} Mc.prototype.update=function(a,b){if(null!=a){u(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;Nc(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 I(){this.f=this.f;this.u=this.u} I.prototype.f=!1;I.prototype.dispose=function(){this.f||(this.f=!0,this.l())}; function Oc(a,b){a.f?u(void 0)?b.call(void 0):b():(a.u||(a.u=[]),a.u.push(u(void 0)?z(b,void 0):b))} I.prototype.l=function(){if(this.u)for(;this.u.length;)this.u.shift()()}; function Pc(a){a&&"function"==typeof a.dispose&&a.dispose()} function Qc(a){for(var b=0,c=arguments.length;b=a.length)throw Uc;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");} function Xc(a,b){if(Ba(a))try{E(a,b,void 0)}catch(c){if(c!==Uc)throw c;}else{a=Wc(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Uc)throw c;}}} function Yc(a){if(Ba(a))return Ra(a);a=Wc(a);var b=[];Xc(a,function(c){b.push(c)}); return b} ;function Zc(a,b){this.g={};this.b=[];this.h=this.f=0;var c=arguments.length;if(12*this.f&&ad(this),!0):!1}; function ad(a){if(a.f!=a.b.length){for(var b=0,c=0;b=d.b.length)throw Uc;var f=d.b[b++];return a?f:d.g[f]}; return e};function cd(a){var b=[];dd(new ed,a,b);return b.join("")} function ed(){} function dd(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Aa(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;fA())Gd.prototype.remove.call(this,a);else return b}};function Hd(){} ;function Id(){} B(Id,Hd);Id.prototype.clear=function(){var a=Yc(this.F(!0)),b=this;E(a,function(c){b.remove(c)})};function Jd(a){this.b=a} B(Jd,Id);m=Jd.prototype;m.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}}; m.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";}}; m.get=function(a){a=this.b.getItem(a);if(!v(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; m.remove=function(a){this.b.removeItem(a)}; m.F=function(a){var b=0,c=this.b,d=new Vc;d.next=function(){if(b>=c.length)throw Uc;var e=c.key(b++);if(a)return e;e=c.getItem(e);if(!v(e))throw"Storage mechanism: Invalid value was encountered";return e}; return d}; m.clear=function(){this.b.clear()}; m.key=function(a){return this.b.key(a)};function Kd(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a} B(Kd,Jd);function Ld(a,b){this.f=a;this.b=null;if(sb&&!(9<=Number(Db))){Md||(Md=new Zc);this.b=Md.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)),Md.set(a,this.b));try{this.b.load(this.f)}catch(c){this.b=null}}} B(Ld,Id);var Nd={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Md=null;function Od(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Nd[b]})} m=Ld.prototype;m.isAvailable=function(){return!!this.b}; m.set=function(a,b){this.b.setAttribute(Od(a),b);Pd(this)}; m.get=function(a){a=this.b.getAttribute(Od(a));if(!v(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; m.remove=function(a){this.b.removeAttribute(Od(a));Pd(this)}; m.F=function(a){var b=0,c=this.b.XMLDocument.documentElement.attributes,d=new Vc;d.next=function(){if(b>=c.length)throw Uc;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if(!v(e))throw"Storage mechanism: Invalid value was encountered";return e}; return d}; m.clear=function(){for(var a=this.b.XMLDocument.documentElement,b=a.attributes.length;0d&&(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 Vd=/#|$/;function Wd(a,b){var c=a.search(Vd);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," "))} ;function Xd(){this.f=[];this.b=-1} Xd.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.f[a]!=b&&(this.f[a]=b,this.b=-1)}; Xd.prototype.get=function(a){return!!this.f[a]}; function Yd(a){-1==a.b&&(a.b=Oa(a.f,function(b,c,d){return c?b+Math.pow(2,d):b},0)); return a.b} ;function Zd(a,b){if(1h.status)?h.json().then(k,function(){k(null)}):k(null)}}); b.ga&&0g.status,t=500<=g.status&&600>g.status;if(k||q||t)l=De(c,g,b.lb);if(k)a:if(g&&204==g.status)k=!0;else{switch(c){case "XML":k=0==parseInt(l&&l.return_code,10);break a;case "RAW":k=!0;break a}k=!!l}l=l||{};q=b.context||r;k?b.onSuccess&&b.onSuccess.call(q,g,l):b.onError&&b.onError.call(q,g,l);b.ca&&b.ca.call(q,g,l)}},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?Ce(a,b,"POST",e,d):P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d?Ce(a,b,"GET","",d):((d=$d.EXPERIMENT_FLAGS)&&d.web_use_beacon_api_for_ad_click_server_pings&&-1!=L(M(5,a)).indexOf("/aclk")&&"1"===Wd(a,"ae")&&"1"===Wd(a,"act")?Le(a)?(b&&b(),d=!0):d=!1:d=!1,d||Me(a,b)))} function Le(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1} function Me(a,b){var c=new Image,d=""+Je++;Ie[d]=c;c.onload=c.onerror=function(){b&&Ie[d]&&b();delete Ie[d]}; c.src=a} ;var Ne={},Oe=0; function Pe(a,b,c,d,e,f){f=f||{};f.name=c||P("INNERTUBE_CONTEXT_CLIENT_NAME",1);f.version=d||P("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<=Oe||(e=a.stacktrace,d=a.columnNumber,a.hasOwnProperty("params")&&(c=String(JSON.stringify(a.params)),f.params=c.substr(0,500)),a=Jb(a),e=e||a.stack,c=a.lineNumber.toString(),isNaN(c)||isNaN(d)||(c=c+":"+d),R("console_log_js_exceptions")&&(d= [],d.push("Name: "+a.name),d.push("Message: "+a.message),a.hasOwnProperty("params")&&d.push("Params: "+JSON.stringify(a.params)),d.push("File name: "+a.fileName),d.push("Line number: "+c),d.push("Level: "+b),"params"in f&&d.push("Error Params: "+f.params),d.push("Stacktrace: "+e)),window.yterr&&Ca(window.yterr)&&window.yterr(a),Ne[a.message]||0<=e.indexOf("/YouTubeCenter.js")||0<=e.indexOf("/mytube.js")))){b={Ua:{a:"logerror",t:"jserror",type:a.name,msg:a.message.substr(0,250),line:c,level:b,"client.name":f.name}, C:{url:P("PAGE_NAME",window.location.href),file:a.fileName},method:"POST"};f.version&&(b["client.version"]=f.version);e&&(b.C.stack=e);for(var h in f)b.C["client."+h]=f[h];if(h=P("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var g in h)b.C[g]=h[g];Be(P("ECATCHER_REPORT_HOST","")+"/error_204",b);Ne[a.message]=!0;Oe++}} ;var Qe=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};x("yt.msgs_",Qe,void 0);function Re(a){Zd(Qe,arguments)} ;function Se(a){a&&(a.dataset?a.dataset[Te("loaded")]="true":a.setAttribute("data-loaded","true"))} function Ue(a,b){return a?a.dataset?a.dataset[Te(b)]:a.getAttribute("data-"+b):null} var Ve={};function Te(a){return Ve[a]||(Ve[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))} ;var We=y("ytPubsubPubsubInstance")||new K;K.prototype.subscribe=K.prototype.subscribe;K.prototype.unsubscribeByKey=K.prototype.L;K.prototype.publish=K.prototype.K;K.prototype.clear=K.prototype.clear;x("ytPubsubPubsubInstance",We,void 0);var Xe=y("ytPubsubPubsubSubscribedKeys")||{};x("ytPubsubPubsubSubscribedKeys",Xe,void 0);var Ye=y("ytPubsubPubsubTopicToKeys")||{};x("ytPubsubPubsubTopicToKeys",Ye,void 0);var Ze=y("ytPubsubPubsubIsSynchronous")||{};x("ytPubsubPubsubIsSynchronous",Ze,void 0); function $e(a,b){var c=af();if(c){var d=c.subscribe(a,function(){var e=arguments;var f=function(){Xe[d]&&b.apply(window,e)}; try{Ze[a]?f():S(f,0)}catch(h){Q(h)}},void 0); Xe[d]=!0;Ye[a]||(Ye[a]=[]);Ye[a].push(d);return d}return 0} function bf(a){var b=af();b&&("number"==typeof a?a=[a]:v(a)&&(a=[parseInt(a,10)]),E(a,function(c){b.unsubscribeByKey(c);delete Xe[c]}))} function cf(a,b){var c=af();c&&c.publish.apply(c,arguments)} function df(a){var b=af();if(b)if(b.clear(a),a)ef(a);else for(var c in Ye)ef(c)} function af(){return y("ytPubsubPubsubInstance")} function ef(a){Ye[a]&&(a=Ye[a],E(a,function(b){Xe[b]&&delete Xe[b]}),a.length=0)} ;var ff=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,gf=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function hf(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(ff,""),c=c.replace(gf,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else jf(a,b,c)} function jf(a,b,c){c=void 0===c?null:c;var d=kf(a),e=document.getElementById(d),f=e&&Ue(e,"loaded"),h=e&&!f;f?b&&b():(b&&(f=$e(d,b),b=""+(b[Ea]||(b[Ea]=++Fa)),lf[b]=f),h||(e=mf(a,d,function(){Ue(e,"loaded")||(Se(e),cf(d),S(Ia(df,d),0))},c)))} function mf(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);Zb(e,ic(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function nf(a){a=kf(a);var b=document.getElementById(a);b&&(df(a),b.parentNode.removeChild(b))} function of(a,b){if(a&&b){var c=""+(b[Ea]||(b[Ea]=++Fa));(c=lf[c])&&bf(c)}} function kf(a){var b=document.createElement("a");Yb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+cb(a)} var lf={};function pf(){} function qf(a,b){return rf(a,1,b)} ;function sf(){} n(sf,pf);function rf(a,b,c){isNaN(c)&&(c=void 0);var d=y("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):S(a,c||0)} function tf(a){if(!isNaN(a)){var b=y("yt.scheduler.instance.cancelJob");b?b(a):T(a)}} sf.prototype.start=function(){var a=y("yt.scheduler.instance.start");a&&a()}; sf.prototype.pause=function(){var a=y("yt.scheduler.instance.pause");a&&a()}; ya(sf);sf.getInstance();var uf=[],vf=!1;function wf(){if("1"!=hb(be(),"args","privembed")){var a=function(){vf=!0;"google_ad_status"in window?O("DCLKSTAT",1):O("DCLKSTAT",2)}; hf("//static.doubleclick.net/instream/ad_status.js",a);uf.push(qf(function(){vf||"google_ad_status"in window||(of("//static.doubleclick.net/instream/ad_status.js",a),vf=!0,O("DCLKSTAT",3))},5E3))}} function xf(){return parseInt(P("DCLKSTAT",0),10)} ;function yf(){this.f=!1;this.b=null} yf.prototype.initialize=function(a,b,c,d,e){var f=this;b?(this.f=!0,hf(b,function(){f.f=!1;if(window.botguard)zf(f,c,d);else{nf(b);var h=Error("Unable to load Botguard");h.params="from "+b;ge(h)}},e)):a&&(eval(a),window.botguard?zf(this,c,d):ge(Error("Unable to load Botguard from JS")))}; function zf(a,b,c){try{a.b=new window.botguard.bg(b)}catch(d){ge(d)}c&&c(b)} yf.prototype.dispose=function(){this.b=null};var Af=new yf,Bf=!1,Cf=0,Df="";function Ef(a){R("botguard_periodic_refresh")?Cf=N():R("botguard_always_refresh")&&(Df=a)} function Ff(a){if(a){if(Af.f)return!1;if(R("botguard_periodic_refresh"))return 72E5a;a++)this.g.push(0);this.h=0;this.D=U(window,"mousemove",z(this.G,this));a=z(this.B,this);Ca(a)&&(a=fe(a));this.H=window.setInterval(a,25)} B(Qf,I);Qf.prototype.G=function(a){u(a.b)||Lf(a);var b=a.b;u(a.f)||Lf(a);this.b=new $b(b,a.f)}; Qf.prototype.B=function(){if(this.b){var a=N();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}}; Qf.prototype.l=function(){window.clearInterval(this.H);Pf(this.D)};var Rf={}; function Sf(a){var b=void 0===a?{}:a;a=void 0===b.wa?!0:b.wa;b=void 0===b.Ja?!1:b.Ja;if(null==y("_lact",window)){var c=parseInt(P("LACT"),10);c=isFinite(c)?A()-Math.max(c,0):-1;x("_lact",c,window);x("_fact",c,window);-1==c&&Tf();U(document,"keydown",Tf);U(document,"keyup",Tf);U(document,"mousedown",Tf);U(document,"mouseup",Tf);a&&(b?U(window,"touchmove",function(){Uf("touchmove",200)},{passive:!0}):(U(window,"resize",function(){Uf("resize",200)}),U(window,"scroll",function(){Uf("scroll",200)}))); new Qf(function(){Uf("mouse",100)}); U(document,"touchstart",Tf,{passive:!0});U(document,"touchend",Tf,{passive:!0})}} function Uf(a,b){Rf[a]||(Rf[a]=!0,qf(function(){Tf();Rf[a]=!1},b))} function Tf(){null==y("_lact",window)&&Sf();var a=A();x("_lact",a,window);-1==y("_fact",window)&&x("_fact",a,window);(a=y("ytglobal.ytUtilActivityCallback_"))&&a()} function Vf(){var a=y("_lact",window);return null==a?-1:Math.max(A()-a,0)} ;var Wf=Math.pow(2,16)-1,Xf=null,Yf=0,Zf={log_event:"events",log_interaction:"interactions"},$f=Object.create(null);$f.log_event="GENERIC_EVENT_LOGGING";$f.log_interaction="INTERACTION_LOGGING";var ag=new Set(["log_event"]),bg={},cg=0,dg=0,W=y("ytLoggingTransportLogPayloadsQueue_")||{};x("ytLoggingTransportLogPayloadsQueue_",W,void 0);var eg=y("ytLoggingTransportTokensToCttTargetIds_")||{};x("ytLoggingTransportTokensToCttTargetIds_",eg,void 0);var fg=y("ytLoggingTransportDispatchedStats_")||{}; x("ytLoggingTransportDispatchedStats_",fg,void 0);x("ytytLoggingTransportCapturedTime_",y("ytLoggingTransportCapturedTime_")||{},void 0);function gg(){T(cg);T(dg);dg=0;if(!kb(W)){for(var a in W){var b=bg[a];b&&(hg(a,b),delete W[a])}kb(W)||ig()}} function ig(){R("web_gel_timeout_cap")&&!dg&&(dg=S(gg,3E4));T(cg);cg=S(gg,P("LOGGING_BATCH_TIMEOUT",oe("web_gel_debounce_ms",1E4)))} function jg(a,b){b=void 0===b?"":b;W[a]=W[a]||{};W[a][b]=W[a][b]||[];return W[a][b]} function hg(a,b){var c=Zf[a],d=fg[a]||{};fg[a]=d;var e=Math.round(N());for(l in W[a]){var f=ob,h=b.b;h={client:{hl:h.Ca,gl:h.Ba,clientName:h.za,clientVersion:h.Aa}};var g=window.devicePixelRatio;g&&1!=g&&(h.client.screenDensityFloat=String(g));P("DELEGATED_SESSION_ID")&&!R("pageid_as_header_web")&&(h.user={onBehalfOfUser:P("DELEGATED_SESSION_ID")});f=f({context:h});f[c]=jg(a,l);d.dispatchedEventCount=d.dispatchedEventCount||0;d.dispatchedEventCount+=f[c].length;if(h=eg[l])a:{var k=l;if(h.videoId)g= "VIDEO";else if(h.playlistId)g="PLAYLIST";else break a;f.credentialTransferTokenTargetId=h;f.context=f.context||{};f.context.user=f.context.user||{};f.context.user.credentialTransferTokens=[{token:k,scope:g}]}delete eg[l];f.requestTimeMs=e;if(h=ae("EVENT_ID"))g=(P("BATCH_CLIENT_COUNTER",void 0)||0)+1,g>Wf&&(g=1),O("BATCH_CLIENT_COUNTER",g),h={serializedEventId:h,clientCounter:g},f.serializedClientEventId=h,Xf&&Yf&&R("log_gel_rtt_web")&&(f.previousBatchInfo={serializedClientEventId:Xf,roundtripMs:Yf}), Xf=h,Yf=0;kg(b,a,f,{retry:ag.has(a),onSuccess:z(lg,this,N())})}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 lg(a){Yf=Math.round(N()-a)} ;function mg(a,b,c,d,e){var f={};f.eventTimeMs=Math.round(d||N());f[a]=b;f.context={lastActivityMs:String(d?-1:Vf())};e?(a={},e.videoId?a.videoId=e.videoId:e.playlistId&&(a.playlistId=e.playlistId),eg[e.token]=a,e=jg("log_event",e.token)):e=jg("log_event");e.push(f);c&&(bg.log_event=new c);e.length>=(oe("web_logging_max_batch")||20)?gg():ig()} ;function ng(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||P("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.ib||P("AUTHORIZATION"))||(a?b="Bearer "+y("gapi.auth.getToken")().hb:b=wc([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=P("SESSION_INDEX",0),R("pageid_as_header_web")&&(d["X-Goog-PageId"]=P("DELEGATED_SESSION_ID")));return d} function og(a){a=Object.assign({},a);delete a.Authorization;var b=wc();if(b){var c=new Mc;c.update(P("INNERTUBE_API_KEY",void 0));c.update(b);b=c.digest();Ba(b);if(!Fb)for(Fb={},Gb={},c=0;65>c;c++)Fb[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),Gb[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c);c=Gb;for(var d=[],e=0;e>2;f=(f&3)<<4|g>>4;g=(g&15)<< 2|l>>6;l&=63;k||(l=64,h||(g=64));d.push(c[q],c[f],c[g],c[l])}a.hash=d.join("")}return a} ;function pg(a,b,c,d){Ib.set(""+a,b,c,"/",void 0===d?"youtube.com":d,!1)} ;function qg(){var a=new Kd;(a=a.isAvailable()?new Qd(a,"yt.innertube"):null)||(a=new Ld("yt.innertube"),a=a.isAvailable()?a:null);this.b=a?new Gd(a):null;this.f=document.domain||window.location.hostname} qg.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.b)try{this.b.set(a,b,A()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(cd(b))}catch(f){return}else e=escape(b);pg(a,e,c,this.f)}; qg.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=Ib.get(""+a,void 0))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; qg.prototype.remove=function(a){this.b&&this.b.remove(a);var b=this.f;Ib.remove(""+a,"/",void 0===b?"youtube.com":b)};var rg=new qg;function sg(a,b,c,d){if(d)return null;d=rg.get("nextId",!0)||1;var e=rg.get("requests",!0)||{};e[d]={method:a,request:b,authState:og(c),requestTime:Math.round(N())};rg.set("nextId",d+1,86400,!0);rg.set("requests",e,86400,!0);return d} function tg(a){var b=rg.get("requests",!0)||{};delete b[a];rg.set("requests",b,86400,!0)} function ug(a){var b=rg.get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(6E4>Math.round(N())-d.requestTime)){var e=d.authState,f=og(ng(!1));mb(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(N())),kg(a,d.method,e,{}));delete b[c]}}rg.set("requests",b,86400,!0)}} ;function vg(a){var b=this;this.b=a||{xa:ae("INNERTUBE_API_KEY"),ya:ae("INNERTUBE_API_VERSION"),za:P("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),Aa:ae("INNERTUBE_CONTEXT_CLIENT_VERSION"),Ca:ae("INNERTUBE_CONTEXT_HL"),Ba:ae("INNERTUBE_CONTEXT_GL"),Da:ae("INNERTUBE_HOST_OVERRIDE")||"",Ea:!!P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1)};rf(function(){ug(b)},0,5E3)} function kg(a,b,c,d){!P("VISITOR_DATA")&&.01>Math.random()&&Q(Error("Missing VISITOR_DATA when sending innertube request."),"WARNING");var e={headers:{"Content-Type":"application/json"},method:"POST",C:c,ha:"JSON",M:function(){d.M()}, ga:d.M,onSuccess:function(w,p){if(d.onSuccess)d.onSuccess(p)}, fa:function(w){if(d.onSuccess)d.onSuccess(w)}, onError:function(w,p){if(d.onError)d.onError(p)}, nb:function(w){if(d.onError)d.onError(w)}, timeout:d.timeout,withCredentials:!0},f="",h=a.b.Da;h&&(f=h);h=a.b.Ea||!1;var g=ng(h,f,d);Object.assign(e.headers,g);e.headers.Authorization&&!f&&(e.headers["x-origin"]=window.location.origin);var k=""+f+("/youtubei/"+a.b.ya+"/"+b)+"?alt=json&key="+a.b.xa,l;if(d.retry&&R("retry_web_logging_batches")&&"www.youtube-nocookie.com"!=f&&(l=sg(b,c,g,h))){var q=e.onSuccess,t=e.fa;e.onSuccess=function(w,p){tg(l);q(w,p)}; c.fa=function(w,p){tg(l);t(w,p)}}try{R("use_fetch_for_op_xhr")?ye(k,e):He(k,e)}catch(w){if("InvalidAccessError"==w)l&&(tg(l),l=0),Q(Error("An extension is blocking network request."),"WARNING"); else throw w;}l&&rf(function(){ug(a)},0,5E3)} ;var wg=A().toString(); function xg(){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=A();for(c=0;ce?d:d.substr(0,e)){if(b.itct||b.ved)b.csn=b.csn||Gg();if(g){var g= parseInt(g,10);isFinite(g)&&0>>0);function fh(a){var b="player";b=v(b)?bc(b):b;var c=eh+"_"+(b[Ea]||(b[Ea]=++Fa)),d=dh[c];if(d)return d.loadNewVideoConfig(a),d.api;d=new Rg(b,c);dh[c]=d;cf("player-added",d.api);Oc(d,Ia(gh,d));S(function(){d.loadNewVideoConfig(a)},0); return d.api} function gh(a){delete dh[a.getId()]} ;function hh(a,b,c){var d=vg;P("ytLoggingEventsDefaultDisabled",!1)&&vg==vg&&(d=null);mg(a,b,d,c,void 0)} ;var ih=y("ytLoggingLatencyUsageStats_")||{};x("ytLoggingLatencyUsageStats_",ih,void 0);var jh=0;function kh(a){ih[a]=ih[a]||{count:0};var b=ih[a];b.count++;b.time=N();jh||(jh=rf(lh,0,5E3));if(51E5*Math.random()){b=0==a.indexOf("info")?"WARNING":"ERROR";var c=Error("CSI data exceeded logging limit with key");c.params=a;Pe(c,b)}return!0}return!1} function lh(){var a=N(),b;for(b in ih)6E4