(function(){var h;function aa(a){var b=0;return function(){return b=f}}); ma("String.prototype.startsWith",function(a){return a?a:function(a,c){var b=na(this,a,"startsWith");a+="";for(var e=b.length,f=a.length,g=Math.max(0,Math.min(c|0,b.length)),k=0;k=f}}); function p(a,b){return Object.prototype.hasOwnProperty.call(a,b)} var sa="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 La(a,b){var c=Ga(a,b);0<=c&&Array.prototype.splice.call(a,c,1)} function Ma(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,Qa=/[\x00&<>"']/;function Xa(a){for(var b=0,c=0;c>>0;return b} ;var Ya;a:{var Za=q.navigator;if(Za){var $a=Za.userAgent;if($a){Ya=$a;break a}}Ya=""}function G(a){return-1!=Ya.indexOf(a)} ;function ab(a,b){for(var c in a)b.call(void 0,a[c],c,a)} function bb(a,b){var c=ya(b),d=c?b:arguments;for(c=c?0:1;cparseFloat(sb)){rb=String(ub);break a}}rb=sb}var vb=rb,wb;var xb=q.document;wb=xb&&mb?qb()||("CSS1Compat"==xb.compatMode?parseInt(vb,10):5):void 0;var yb=null,zb=null;function Ab(a){this.b=a||{cookie:""}} h=Ab.prototype;h.isEnabled=function(){return navigator.cookieEnabled}; h.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(A()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f}; h.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(";"),e=0,f;e",0);Qb("",0);Qb("
",0);function Rb(a,b){var c=b instanceof H?b:Mb(b);a.href=Kb(c)} function Sb(a,b){a.src=Ib(b);if(null===ua)b:{var c=q.document;if((c=c.querySelector&&c.querySelector("script[nonce]"))&&(c=c.nonce||c.getAttribute("nonce"))&&ta.test(c)){ua=c;break b}ua=""}c=ua;c&&a.setAttribute("nonce",c)} ;function Tb(a,b){this.x=r(a)?a:0;this.y=r(b)?b:0} h=Tb.prototype;h.clone=function(){return new Tb(this.x,this.y)}; h.equals=function(a){return a instanceof Tb&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)}; h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function Ub(a,b){this.width=a;this.height=b} h=Ub.prototype;h.clone=function(){return new Ub(this.width,this.height)}; h.aspectRatio=function(){return this.width/this.height}; h.isEmpty=function(){return!(this.width*this.height)}; h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Vb(a){var b=document;return t(a)?b.getElementById(a):a} function Wb(a,b){ab(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:Xb.hasOwnProperty(d)?a.setAttribute(Xb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})} var Xb={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 Yb(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!Fb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',Pa(g.name),'"');if(g.type){f.push(' type="',Pa(g.type),'"');var k={};jb(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(t(g)?f.className=g:x(g)?f.className=g.join(" "):Wb(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 pc=null;function qc(){var a=q.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):A()} function rc(){var a=void 0===a?q:a;return(a=a.performance)&&a.now?a.now():null} ;function sc(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,tc=!!(K&&K.mark&&K.measure&&K.clearMarks),uc=Eb(function(){var a;if(a=tc){var b;if(null===pc){pc="";try{a="";try{a=q.top.location.hash}catch(c){a=q.location.hash}a&&(pc=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=pc;a=!!b.indexOf&&0<=b.indexOf("1337")}return a}); function vc(){var a=wc;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=uc()||(null!=b?b:1>Math.random())} vc.prototype.disable=function(){this.b=!1;this.events!=this.f.google_js_reporting_queue&&(uc()&&F(this.events,xc),this.events.length=0)}; function xc(a){a&&K&&uc()&&(K.clearMarks("goog_"+a.uniqueId+"_start"),K.clearMarks("goog_"+a.uniqueId+"_end"))} vc.prototype.start=function(a,b){if(!this.b)return null;var c=rc()||qc();c=new sc(a,b,c);var d="goog_"+c.uniqueId+"_start";K&&uc()&&K.mark(d);return c}; vc.prototype.end=function(a){if(this.b&&"number"==typeof a.value){var b=rc()||qc();a.duration=b-a.value;b="goog_"+a.uniqueId+"_end";K&&uc()&&K.mark(b);this.b&&this.events.push(a)}};if(kc&&!cc()){var yc="."+Fa.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],k=e[3],l=e[4];for(c=0;80>c;c++){if(40>c)if(20>c){var m=k^d&(f^k);var u=1518500249}else m=d^f^k,u=1859775393;else 60>c?(m=d&f|k&(d|f),u=2400959708):(m=d^f^k,u=3395469782);m=((a<<5|a>>>27)&4294967295)+m+l+u+b[c]&4294967295;l=k;k=f;f=(d<<30|d>>>2)&4294967295;d=a;a=m}e[0]=e[0]+a&4294967295;e[1]=e[1]+d&4294967295;e[2]= e[2]+f&4294967295;e[3]=e[3]+k&4294967295;e[4]=e[4]+l&4294967295} function c(a,c){if("string"===typeof a){a=unescape(encodeURIComponent(a));for(var d=[],e=0,g=a.length;em?c(k,56-m):c(k,64-(m-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 l=24;0<=l;l-=8)a[d++]=e[g]>>l&255;return a} for(var e=[],f=[],g=[],k=[128],l=1;64>l;++l)k[l]=0;var m,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 Kc(a){q.setTimeout(function(){throw a;},0)} var Lc; function Mc(){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=z(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.ga;c.ga=null;a()}}; return function(a){d.next={ga: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 Nc(){this.f=this.b=null} var Pc=new Ic(function(){return new Oc},function(a){a.reset()}); Nc.prototype.add=function(a,b){var c=Pc.get();c.set(a,b);this.f?this.f.next=c:this.b=c;this.f=c}; Nc.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 Oc(){this.next=this.scope=this.b=null} Oc.prototype.set=function(a,b){this.b=a;this.scope=b;this.next=null}; Oc.prototype.reset=function(){this.next=this.scope=this.b=null};function Qc(a,b){Rc||Sc();Tc||(Rc(),Tc=!0);Uc.add(a,b)} var Rc;function Sc(){if(q.Promise&&q.Promise.resolve){var a=q.Promise.resolve(void 0);Rc=function(){a.then(Vc)}}else Rc=function(){var a=Vc; !za(q.setImmediate)||q.Window&&q.Window.prototype&&!G("Edge")&&q.Window.prototype.setImmediate==q.setImmediate?(Lc||(Lc=Mc()),Lc(a)):q.setImmediate(a)}} var Tc=!1,Uc=new Nc;function Vc(){for(var a;a=Uc.remove();){try{a.b.call(a.scope)}catch(b){Kc(b)}Jc(Pc,a)}Tc=!1} ;function Wc(){this.f=-1} ;function Xc(){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],k=a.b[3],l=a.b[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=k^c&(g^k);var m=1518500249}else f=c^g^k,m=1859775393;else 60>e?(f=c&g|k&(c|g),m=2400959708):(f=c^g^k,m= 3395469782);f=(b<<5|b>>>27)+f+l+m+d[e]&4294967295;l=k;k=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]+k&4294967295;a.b[4]=a.b[4]+l&4294967295} Xc.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;Yc(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 Zc(a,b){a.f?r(void 0)?b.call(void 0):b():(a.u||(a.u=[]),a.u.push(r(void 0)?z(b,void 0):b))} L.prototype.l=function(){if(this.u)for(;this.u.length;)this.u.shift()()}; function $c(a){a&&"function"==typeof a.dispose&&a.dispose()} function ad(a){for(var b=0,c=arguments.length;b=a.length)throw ed;if(b in a)return a[b++];b++}}; return c}throw Error("Not implemented");} function hd(a,b){if(ya(a))try{F(a,b,void 0)}catch(c){if(c!==ed)throw c;}else{a=gd(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==ed)throw c;}}} function id(a){if(ya(a))return Ma(a);a=gd(a);var b=[];hd(a,function(a){b.push(a)}); return b} ;function jd(a,b){this.g={};this.b=[];this.h=this.f=0;var c=arguments.length;if(12*this.f&&ld(this),!0):!1}; function ld(a){if(a.f!=a.b.length){for(var b=0,c=0;b=d.b.length)throw ed;var e=d.b[b++];return a?e:d.g[e]}; return e};function nd(a){var b=[];od(new pd,a,b);return b.join("")} function pd(){} function od(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;fA())Sd.prototype.remove.call(this,a);else return b}};function Td(){} ;function Ud(){} C(Ud,Td);Ud.prototype.clear=function(){var a=id(this.F(!0)),b=this;F(a,function(a){b.remove(a)})};function Vd(a){this.b=a} C(Vd,Ud);h=Vd.prototype;h.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}}; h.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";}}; h.get=function(a){a=this.b.getItem(a);if(!t(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; h.remove=function(a){this.b.removeItem(a)}; h.F=function(a){var b=0,c=this.b,d=new fd;d.next=function(){if(b>=c.length)throw ed;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}; h.clear=function(){this.b.clear()}; h.key=function(a){return this.b.key(a)};function Wd(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a} C(Wd,Vd);function Xd(a,b){this.f=a;this.b=null;if(mb&&!(9<=Number(wb))){Yd||(Yd=new jd);this.b=Yd.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)),Yd.set(a,this.b));try{this.b.load(this.f)}catch(c){this.b=null}}} C(Xd,Ud);var Zd={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Yd=null;function $d(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(a){return Zd[a]})} h=Xd.prototype;h.isAvailable=function(){return!!this.b}; h.set=function(a,b){this.b.setAttribute($d(a),b);ae(this)}; h.get=function(a){a=this.b.getAttribute($d(a));if(!t(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; h.remove=function(a){this.b.removeAttribute($d(a));ae(this)}; h.F=function(a){var b=0,c=this.b.XMLDocument.documentElement.attributes,d=new fd;d.next=function(){if(b>=c.length)throw ed;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}; h.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)}; ce.prototype.get=function(a){return!!this.f[a]}; function de(a){-1==a.b&&(a.b=Ja(a.f,function(a,c,d){return c?a+Math.pow(2,d):a},0)); return a.b} ;function ee(a,b){if(1a.status)?a.json().then(d,function(){d(null)}):d(null)}}); b.ia&&0a.status,da=500<=a.status&&600>a.status;if(d||k||da)g=Ie(c,a,b.hb);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||{};k=b.context||q;d?b.onSuccess&&b.onSuccess.call(k,a,g):b.onError&&b.onError.call(k,a,g);b.ea&&b.ea.call(k,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?He(a,b,"POST",e,d):Q("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d?He(a,b,"GET","",d):Qe(a,b))} function Qe(a,b){var c=new Image,d=""+Oe++;Ne[d]=c;c.onload=c.onerror=function(){b&&Ne[d]&&b();delete Ne[d]}; c.src=a} ;var Re={},Se=0; function Te(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<=Se||(c=a.stacktrace,d=a.columnNumber,a.hasOwnProperty("params")&&(f.params=JSON.stringify(a.params).substr(0,500)),a=Cb(a),c=c||a.stack,e=a.lineNumber.toString(),isNaN(e)||isNaN(d)||(e=e+":"+d),window.yterr&&za(window.yterr)&&window.yterr(a), Re[a.message]||0<=c.indexOf("/YouTubeCenter.js")||0<=c.indexOf("/mytube.js")))){b={Qa:{a:"logerror",t:"jserror",type:a.name,msg:a.message.substr(0,1E3),line:e,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);c&&(b.C.stack=c);for(var g in f)b.C["client."+g]=f[g];if(g=Q("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var k in g)b.C[k]=g[k];Ge(Q("ECATCHER_REPORT_HOST","")+"/error_204",b);Re[a.message]= !0;Se++}} ;var Ue=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};v("yt.msgs_",Ue,void 0);function Ve(a){ee(Ue,arguments)} ;function We(a){a&&(a.dataset?a.dataset[Xe("loaded")]="true":a.setAttribute("data-loaded","true"))} function Ye(a,b){return a?a.dataset?a.dataset[Xe(b)]:a.getAttribute("data-"+b):null} var Ze={};function Xe(a){return Ze[a]||(Ze[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))} ;var $e=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",$e,void 0);var af=w("ytPubsubPubsubSubscribedKeys")||{};v("ytPubsubPubsubSubscribedKeys",af,void 0);var bf=w("ytPubsubPubsubTopicToKeys")||{};v("ytPubsubPubsubTopicToKeys",bf,void 0);var cf=w("ytPubsubPubsubIsSynchronous")||{};v("ytPubsubPubsubIsSynchronous",cf,void 0); function df(a,b){var c=ef();if(c){var d=c.subscribe(a,function(){var c=arguments;var f=function(){af[d]&&b.apply(window,c)}; try{cf[a]?f():T(f,0)}catch(g){R(g)}},void 0); af[d]=!0;bf[a]||(bf[a]=[]);bf[a].push(d);return d}return 0} function ff(a){var b=ef();b&&("number"==typeof a?a=[a]:t(a)&&(a=[parseInt(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete af[a]}))} function gf(a,b){var c=ef();c&&c.publish.apply(c,arguments)} function hf(a){var b=ef();if(b)if(b.clear(a),a)jf(a);else for(var c in bf)jf(c)} function ef(){return w("ytPubsubPubsubInstance")} function jf(a){bf[a]&&(a=bf[a],F(a,function(a){af[a]&&delete af[a]}),a.length=0)} ;var kf=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,lf=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function mf(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(kf,""),c=c.replace(lf,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else nf(a,b,c)} function nf(a,b,c){c=void 0===c?null:c;var d=of(a),e=document.getElementById(d),f=e&&Ye(e,"loaded"),g=e&&!f;f?b&&b():(b&&(f=df(d,b),b=""+(b[Aa]||(b[Aa]=++Ba)),pf[b]=f),g||(e=qf(a,d,function(){Ye(e,"loaded")||(We(e),gf(d),T(Ea(hf,d),0))},c)))} function qf(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);Sb(e,ac(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e} function rf(a){a=of(a);var b=document.getElementById(a);b&&(hf(a),b.parentNode.removeChild(b))} function sf(a,b){if(a&&b){var c=""+(b[Aa]||(b[Aa]=++Ba));(c=pf[c])&&ff(c)}} function of(a){var b=document.createElement("a");Rb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Xa(a)} var pf={};function tf(){} function uf(a,b){return vf(a,1,b)} ;function wf(){} n(wf,tf);function vf(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 xf(a){if(!isNaN(a)){var b=w("yt.scheduler.instance.cancelJob");b?b(a):U(a)}} wf.prototype.start=function(){var a=w("yt.scheduler.instance.start");a&&a()}; wf.prototype.pause=function(){var a=w("yt.scheduler.instance.pause");a&&a()}; wa(wf);wf.getInstance();var yf=[],zf=!1;function Af(){if("1"!=bb(he(),"args","privembed")){var a=function(){zf=!0;"google_ad_status"in window?P("DCLKSTAT",1):P("DCLKSTAT",2)}; mf("//static.doubleclick.net/instream/ad_status.js",a);yf.push(uf(function(){zf||"google_ad_status"in window||(sf("//static.doubleclick.net/instream/ad_status.js",a),zf=!0,P("DCLKSTAT",3))},5E3))}} function Bf(){return parseInt(Q("DCLKSTAT",0),10)} ;function Cf(){this.f=!1;this.b=null} Cf.prototype.initialize=function(a,b,c,d,e){var f=this;b?(this.f=!0,mf(b,function(){f.f=!1;window.botguard?Df(f,c,d):(rf(b),qe(Error("Unable to load Botguard from "+b)))},e)):a&&(eval(a),window.botguard?Df(this,c,d):qe(Error("Unable to load Botguard from JS")))}; function Df(a,b,c){try{a.b=new botguard.bg(b)}catch(d){qe(d)}c&&c(b)} Cf.prototype.dispose=function(){this.b=null};var Ef=new Cf,Ff=!1,Gf=0,Hf="";function If(a){S("botguard_periodic_refresh")?Gf=O():S("botguard_always_refresh")&&(Hf=a)} function Jf(a){if(a){if(Ef.f)return!1;if(S("botguard_periodic_refresh"))return 72E5a;a++)this.g.push(0);this.h=0;this.D=V(window,"mousemove",z(this.G,this));a=z(this.B,this);za(a)&&(a=pe(a));this.H=window.setInterval(a,25)} C(Uf,L);Uf.prototype.G=function(a){r(a.b)||Pf(a);var b=a.b;r(a.f)||Pf(a);this.b=new Tb(b,a.f)}; Uf.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}}; Uf.prototype.l=function(){window.clearInterval(this.H);Tf(this.D)};var Vf={};function Wf(a){var b=void 0===a?{}:a;a=void 0===b.b?!0:b.b;b=void 0===b.f?!1:b.f;if(null==w("_lact",window)){var c=parseInt(Q("LACT"),10);c=isFinite(c)?A()-Math.max(c,0):-1;v("_lact",c,window);v("_fact",c,window);-1==c&&Xf();V(document,"keydown",Xf);V(document,"keyup",Xf);V(document,"mousedown",Xf);V(document,"mouseup",Xf);a&&(b?V(window,"touchmove",function(){Yf("touchmove",200)},{passive:!0}):(V(window,"resize",function(){Yf("resize",200)}),V(window,"scroll",function(){Yf("scroll",200)}))); new Uf(function(){Yf("mouse",100)}); V(document,"touchstart",Xf,{passive:!0});V(document,"touchend",Xf,{passive:!0})}} function Yf(a,b){Vf[a]||(Vf[a]=!0,uf(function(){Xf();Vf[a]=!1},b))} function Xf(){null==w("_lact",window)&&Wf();var a=A();v("_lact",a,window);-1==w("_fact",window)&&v("_fact",a,window);(a=w("ytglobal.ytUtilActivityCallback_"))&&a()} function Zf(){var a=w("_lact",window);return null==a?-1:Math.max(A()-a,0)} ;var $f=Math.pow(2,16)-1,ag=null,bg=0,cg={log_event:"events",log_interaction:"interactions"},dg=Object.create(null);dg.log_event="GENERIC_EVENT_LOGGING";dg.log_interaction="INTERACTION_LOGGING";var eg=new Set(["log_event"]),fg={},gg=0,hg=0,W=w("ytLoggingTransportLogPayloadsQueue_")||{};v("ytLoggingTransportLogPayloadsQueue_",W,void 0);var ig=w("ytLoggingTransportTokensToCttTargetIds_")||{};v("ytLoggingTransportTokensToCttTargetIds_",ig,void 0);var jg=w("ytLoggingTransportDispatchedStats_")||{}; v("ytLoggingTransportDispatchedStats_",jg,void 0);v("ytytLoggingTransportCapturedTime_",w("ytLoggingTransportCapturedTime_")||{},void 0);function kg(){U(gg);U(hg);hg=0;if(!eb(W)){for(var a in W){var b=fg[a];b&&(lg(a,b),delete W[a])}eb(W)||mg()}} function mg(){S("web_gel_timeout_cap")&&!hg&&(hg=T(kg,3E4));U(gg);gg=T(kg,Q("LOGGING_BATCH_TIMEOUT",1E4))} function ng(a,b){b=void 0===b?"":b;W[a]=W[a]||{};W[a][b]=W[a][b]||[];return W[a][b]} function lg(a,b){var c=cg[a],d=jg[a]||{};jg[a]=d;var e=Math.round(O());for(m in W[a]){var f=b.b;f={client:{hl:f.za,gl:f.ya,clientName:f.xa,clientVersion:f.innertubeContextClientVersion}};var g=window.devicePixelRatio;g&&1!=g&&(f.client.screenDensityFloat=String(g));Q("DELEGATED_SESSION_ID")&&!S("pageid_as_header_web")&&(f.user={onBehalfOfUser:Q("DELEGATED_SESSION_ID")});f={context:f};f[c]=ng(a,m);d.dispatchedEventCount=d.dispatchedEventCount||0;d.dispatchedEventCount+=f[c].length;if(g=ig[m])a:{var k= m;if(g.videoId)var l="VIDEO";else if(g.playlistId)l="PLAYLIST";else break a;f.credentialTransferTokenTargetId=g;f.context=f.context||{};f.context.user=f.context.user||{};f.context.user.credentialTransferTokens=[{token:k,scope:l}]}delete ig[m];f.requestTimeMs=e;if(g=ge("EVENT_ID"))l=(Q("BATCH_CLIENT_COUNTER",void 0)||0)+1,l>$f&&(l=1),P("BATCH_CLIENT_COUNTER",l),g={serializedEventId:g,clientCounter:l},f.serializedClientEventId=g,ag&&bg&&S("log_gel_rtt_web")&&(f.previousBatchInfo={serializedClientEventId:ag, roundtripMs:bg}),ag=g,bg=0;og(b,a,f,{retry:eg.has(a),onSuccess:pg.bind(this,O())})}if(d.previousDispatchMs){c=e-d.previousDispatchMs;var m=d.diffCount||0;d.averageTimeBetweenDispatchesMs=m?(d.averageTimeBetweenDispatchesMs*m+c)/(m+1):c;d.diffCount=m+1}d.previousDispatchMs=e} function pg(a){bg=Math.round(O()-a)} ;function qg(a,b,c,d,e){var f={};f.eventTimeMs=Math.round(d||O());f[a]=b;f.context={lastActivityMs:String(d?-1:Zf())};e?(a={},e.videoId?a.videoId=e.videoId:e.playlistId&&(a.playlistId=e.playlistId),ig[e.token]=a,e=ng("log_event",e.token)):e=ng("log_event");e.push(f);c&&(fg.log_event=new c);e.length>=(Number(S("web_logging_max_batch")||0)||20)?kg():mg()} ;function rg(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.eb||Q("AUTHORIZATION"))||(a?b="Bearer "+w("gapi.auth.getToken")().cb:b=Hc([]));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 sg(a){a=Object.assign({},a);delete a.Authorization;var b=Hc();if(b){var c=new Xc;c.update(Q("INNERTUBE_API_KEY",void 0));c.update(b);b=c.digest();if(!yb)for(yb={},zb={},c=0;65>c;c++)yb[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),zb[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c);c=zb;for(var d=[],e=0;e>2;f=(f&3)<<4|k>>4;k=(k&15)<<2|m>> 6;m&=63;l||(m=64,g||(k=64));d.push(c[u],c[f],c[k],c[m])}a.hash=d.join("")}return a} ;function tg(a,b,c,d){Bb.set(""+a,b,c,"/",void 0===d?"youtube.com":d,!1)} ;function ug(){var a=new Wd;(a=a.isAvailable()?new be(a,"yt.innertube"):null)||(a=new Xd("yt.innertube"),a=a.isAvailable()?a:null);this.b=a?new Sd(a):null;this.f=document.domain||window.location.hostname} ug.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(nd(b))}catch(f){return}else e=escape(b);tg(a,e,c,this.f)}; ug.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=Bb.get(""+a,void 0))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; ug.prototype.remove=function(a){this.b&&this.b.remove(a);var b=this.f;Bb.remove(""+a,"/",void 0===b?"youtube.com":b)};var vg=new ug;function wg(a,b,c,d){if(d)return null;d=vg.get("nextId",!0)||1;var e=vg.get("requests",!0)||{};e[d]={method:a,request:b,authState:sg(c),requestTime:Math.round(O())};vg.set("nextId",d+1,86400,!0);vg.set("requests",e,86400,!0);return d} function xg(a){var b=vg.get("requests",!0)||{};delete b[a];vg.set("requests",b,86400,!0)} function yg(a){var b=vg.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=sg(rg(!1));gb(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(O())),og(a,d.method,e,{}));delete b[c]}}vg.set("requests",b,86400,!0)}} ;function zg(a){var b=this;this.b=a||{innertubeApiKey:ge("INNERTUBE_API_KEY"),innertubeApiVersion:ge("INNERTUBE_API_VERSION"),xa:Q("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:ge("INNERTUBE_CONTEXT_CLIENT_VERSION"),za:ge("INNERTUBE_CONTEXT_HL"),ya:ge("INNERTUBE_CONTEXT_GL"),Aa:ge("INNERTUBE_HOST_OVERRIDE")||"",Ba:!!Q("INNERTUBE_USE_THIRD_PARTY_AUTH",!1)};vf(function(){yg(b)},0,5E3)} function og(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,ja:"JSON",M:function(){d.M()}, ia:d.M,onSuccess:function(a,b){if(d.onSuccess)d.onSuccess(b)}, ha:function(a){if(d.onSuccess)d.onSuccess(a)}, onError:function(a,b){if(d.onError)d.onError(b)}, jb:function(a){if(d.onError)d.onError(a)}, timeout:d.timeout,withCredentials:!0},f="",g=a.b.Aa;g&&(f=g);g=a.b.Ba||!1;var k=rg(g,f,d);Object.assign(e.headers,k);e.headers.Authorization&&!f&&(e.headers["x-origin"]=window.location.origin);var l=""+f+("/youtubei/"+a.b.innertubeApiVersion+"/"+b)+"?alt=json&key="+a.b.innertubeApiKey,m;if(d.retry&&S("retry_web_logging_batches")&&"www.youtube-nocookie.com"!=f&&(m=wg(b,c,k,g))){var u=e.onSuccess,da=e.ha;e.onSuccess=function(a,b){xg(m);u(a,b)}; c.ha=function(a,b){xg(m);da(a,b)}}try{S("use_fetch_for_op_xhr")?De(l,e):Me(l,e)}catch(Dd){if("InvalidAccessError"==Dd)m&&(xg(m),m=0),R(Error("An extension is blocking network request."),"WARNING"); else throw Dd;}m&&vf(function(){yg(a)},0,5E3)} ;var Ag=A().toString(); function Bg(){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||Kg();if(k){var k= parseInt(k,10);isFinite(k)&&0>>0);function lh(a){var b="player";b=t(b)?Vb(b):b;var c=kh+"_"+(b[Aa]||(b[Aa]=++Ba)),d=jh[c];if(d)return d.da(a),d.api;d=new Xg(b,c);jh[c]=d;gf("player-added",d.api);Zc(d,Ea(mh,d));T(function(){d.da(a)},0); return d.api} function mh(a){delete jh[a.D]} ;function nh(a,b,c){var d=zg;Q("ytLoggingEventsDefaultDisabled",!1)&&zg==zg&&(d=null);qg(a,b,d,c,void 0)} ;var oh=w("ytLoggingLatencyUsageStats_")||{};v("ytLoggingLatencyUsageStats_",oh,void 0);var ph=0;function qh(a){oh[a]=oh[a]||{count:0};var b=oh[a];b.count++;b.time=O();ph||(ph=vf(rh,0,5E3));return 10