(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var q;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); t("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=e}}); t("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;f=f}}); t("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}}); t("Object.setPrototypeOf",function(a){return a||ra}); t("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ia(b,d)&&c.push(b[d]);return c}}); t("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); t("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c>>0),Qa=0;function Ra(a,b,c){return a.call.apply(a.bind,arguments)} function Sa(a,b,c){if(!a)throw Error();if(2/g,xb=/"/g,yb=/'/g,zb=/\x00/g,Ab=/[\x00&<>"']/;function Bb(a){this.g=a} Bb.prototype.toString=function(){return this.g.toString()}; var Cb={},Db=new Bb("about:invalid#zClosurez",Cb);var Eb,Fb=C("CLOSURE_FLAGS"),Gb=Fb&&Fb[610401301];Eb=null!=Gb?Gb:!1;function Hb(){var a=B.navigator;return a&&(a=a.userAgent)?a:""} var Ib,Ob=B.navigator;Ib=Ob?Ob.userAgentData||null:null;function Pb(a){return Eb?Ib?Ib.brands.some(function(b){return(b=b.brand)&&-1!=b.indexOf(a)}):!1:!1} function F(a){return-1!=Hb().indexOf(a)} ;function Qb(){return Eb?!!Ib&&0")&&(a=a.replace(wb,">")),-1!=a.indexOf('"')&&(a=a.replace(xb,""")),-1!=a.indexOf("'")&&(a=a.replace(yb,"'")),-1!=a.indexOf("\x00")&&(a=a.replace(zb,"�")));return a} ;var Vb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Wb(a){return a?decodeURI(a):a} function Xb(a){return Wb(a.match(Vb)[3]||null)} function Yb(a){var b=a.match(Vb);a=b[1];var c=b[2],d=b[3];b=b[4];var e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e} function Zb(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,-1!==e?e:0).replace(/\+/g," "))} ;function cc(a){B.setTimeout(function(){throw a;},0)} ;function dc(){return F("iPhone")&&!F("iPod")&&!F("iPad")} ;function ec(a){ec[" "](a);return a} ec[" "]=function(){};var fc=Qb()?!1:F("Opera"),gc=Rb(),hc=F("Edge"),ic=F("Gecko")&&!(-1!=Hb().toLowerCase().indexOf("webkit")&&!F("Edge"))&&!(F("Trident")||F("MSIE"))&&!F("Edge"),jc=-1!=Hb().toLowerCase().indexOf("webkit")&&!F("Edge");function kc(){var a=B.document;return a?a.documentMode:void 0} var lc;a:{var mc="",nc=function(){var a=Hb();if(ic)return/rv:([^\);]+)(\)|;)/.exec(a);if(hc)return/Edge\/([\d\.]+)/.exec(a);if(gc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(jc)return/WebKit\/(\S+)/.exec(a);if(fc)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); nc&&(mc=nc?nc[1]:"");if(gc){var sc=kc();if(null!=sc&&sc>parseFloat(mc)){lc=String(sc);break a}}lc=mc}var tc=lc,uc;if(B.document&&gc){var vc=kc();uc=vc?vc:parseInt(tc,10)||void 0}else uc=void 0;var wc=uc;var xc=dc()||F("iPod"),yc=F("iPad");!F("Android")||Sb();Sb();var zc=F("Safari")&&!(Sb()||(Qb()?0:F("Coast"))||(Qb()?0:F("Opera"))||(Qb()?0:F("Edge"))||(Qb()?Pb("Microsoft Edge"):F("Edg/"))||(Qb()?Pb("Opera"):F("OPR"))||F("Firefox")||F("FxiOS")||F("Silk")||F("Android"))&&!(dc()||F("iPad")||F("iPod"));var Ac={},Bc=null; function Cc(a,b){La(a);void 0===b&&(b=0);if(!Bc){Bc={};for(var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),d=["+/=","+/","-_=","-_.","-_"],e=0;5>e;e++){var f=c.concat(d[e].split(""));Ac[e]=f;for(var g=0;g>2];k=b[(k&3)<<4|l>>4];l=b[(l&15)<<2|h>>6];h=b[h&63];c[e++]=""+g+k+l+h}g=0;h=d;switch(a.length- f){case 2:g=a[f+1],h=b[(g&15)<<2]||d;case 1:a=a[f],c[e]=""+b[a>>2]+b[(a&3)<<4|g>>4]+h+d}return c.join("")} ;var Dc="undefined"!==typeof Uint8Array,Ec=!gc&&"function"===typeof btoa;function Fc(a){return Array.prototype.slice.call(a)} ;var Gc="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;Math.max.apply(Math,v(Object.values({Nd:1,Md:2,Ld:4,Pd:8,Od:16,Hd:32,Qd:64,Jd:128,Id:256,Kd:512})));var Hc=Gc?function(a,b){a[Gc]|=b}:function(a,b){void 0!==a.fa?a.fa|=b:Object.defineProperties(a,{fa:{value:b, configurable:!0,writable:!0,enumerable:!1}})}; function Ic(a){var b=G(a);1!==(b&1)&&(Object.isFrozen(a)&&(a=Fc(a)),Jc(a,b|1))} var Kc=Gc?function(a,b){a[Gc]&=~b}:function(a,b){void 0!==a.fa&&(a.fa&=~b)},G=Gc?function(a){return a[Gc]|0}:function(a){return a.fa|0},Lc=Gc?function(a){return a[Gc]}:function(a){return a.fa},Jc=Gc?function(a,b){a[Gc]=b}:function(a,b){void 0!==a.fa?a.fa=b:Object.defineProperties(a,{fa:{value:b, configurable:!0,writable:!0,enumerable:!1}})}; function Mc(a,b){Object.isFrozen(a)&&(a=Fc(a));Jc(a,b);return a} function Nc(a){Hc(a,1);return a} function Oc(a,b){Jc(b,(a|0)&-51)} function Pc(a,b){Jc(b,(a|18)&-41)} function Rc(a){a=a>>10&1023;return 0===a?536870912:a} ;var Sc={};function Tc(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object} var Uc,Vc,Wc=[];Jc(Wc,23);Vc=Object.freeze(Wc);function Xc(a){if(a&2)throw Error();} ;function Yc(a){return a.displayName||a.name||"unknown type name"} function Zc(a){if("boolean"!==typeof a)throw Error("Expected boolean but got "+Ka(a)+": "+a);return!!a} function $c(a){if(null!=a&&"string"!==typeof a)throw Error();return a} function ad(a){return null==a||"string"===typeof a?a:void 0} function bd(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Yc(b)+" but got "+(a&&Yc(a.constructor)));return a} function cd(a,b,c){var d=!1;if(null!=a&&"object"===typeof a&&!(d=Array.isArray(a))&&a.Ub===Sc)return a;if(d){var e=d=G(a);0===e&&(e|=c&16);e|=c&2;e!==d&&Jc(a,e);return new b(a)}} ;function dd(a,b){a=a.o;return ed(a,Lc(a),b)} function ed(a,b,c,d){if(-1===c)return null;if(c>=Rc(b)){if(b&128)return a[a.length-1][c]}else{var e=a.length;if(d&&b&128&&(d=a[e-1][c],null!=d))return d;b=c+((b>>8&1)-1);if(b=f||e){e=b;if(b&128)f=a[a.length-1];else{if(null==d)return;f=a[f+((b>>8&1)-1)]={};e|=128}f[c]=d;e&=-513;e!==b&&Jc(a,e)}else a[c+((b>>8&1)-1)]=d,b&128&&(d=a[a.length-1],c in d&&delete d[c]),b&512&&Jc(a,b&-513)} function jd(a,b,c,d,e){var f=b&2,g=ed(a,b,c,e);Array.isArray(g)||(g=Vc);var h=G(g);h&1||Nc(g);if(f)h&2||Hc(g,18),d&1||Object.freeze(g);else{f=!(d&2);var k=h&2;d&1||!k?f&&h&16&&!k&&Kc(g,16):(g=Nc(Fc(g)),fd(a,b,c,g,e))}return g} function kd(a,b,c,d){a=a.o;var e=Lc(a);Xc(e);(c=ld(a,e,c))&&c!==b&&null!=d&&fd(a,e,c);fd(a,e,b,d)} function md(a,b,c){a=a.o;return ld(a,Lc(a),b)===c?c:-1} function ld(a,b,c){for(var d=0,e=0;e>8&1)-1;e=f-b;1024<=e&&(wd(c,b,g),e=1023);d=d&-1047553|(e&1023)<<10;break a}}b&&(g=(d>>8&1)-1,b=Math.max(b,e-g),1024=f){Object.assign(b[b.length-1]={},g);break}e=!0}g=b;c=!c;f=Lc(a.o);a=Rc(f);f=(f>>8&1)-1;for(var h,k,l=0;lp;p+=4)r[p/4]=n[p]<<24|n[p+1]<<16|n[p+2]<<8|n[p+3];for(p=16;80>p;p++)n=r[p-3]^r[p-8]^r[p-14]^r[p-16],r[p]=(n<<1|n>>>31)&4294967295;n=e[0];var x=e[1],y=e[2],E=e[3],P=e[4];for(p=0;80>p;p++){if(40>p)if(20>p){var U=E^x&(y^E);var R=1518500249}else U=x^y^E,R=1859775393;else 60>p?(U=x&y|E&(x|y),R=2400959708):(U=x^y^E,R=3395469782);U=((n<<5|n>>>27)&4294967295)+U+P+R+r[p]&4294967295;P=E;E=y;y=(x<<30|x>>>2)&4294967295;x=n;n=U}e[0]=e[0]+n&4294967295;e[1]=e[1]+x&4294967295;e[2]= e[2]+y&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+P&4294967295} function c(n,r){if("string"===typeof n){n=unescape(encodeURIComponent(n));for(var p=[],x=0,y=n.length;xl?c(h,56-l):c(h,64-(l-56));for(var p=63;56<=p;p--)f[p]=r&255,r>>>=8;b(f);for(p=r=0;5>p;p++)for(var x=24;0<=x;x-=8)n[r++]=e[p]>>x&255;return n} for(var e=[],f=[],g=[],h=[128],k=1;64>k;++k)h[k]=0;var l,m;a();return{reset:a,update:c,digest:d,Sc:function(){for(var n=d(),r="",p=0;ph?"":0==h?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*h)).toUTCString();this.g.cookie=a+"="+b+c+g+h+d+(null!=e?";samesite="+ e:"")}; q.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(";"),e=0,f;ee?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}a=new Uint8Array(b.length);for(c=0;c>>0);function Me(a){if("function"===typeof a)return a;a[Ue]||(a[Ue]=function(b){return a.handleEvent(b)}); return a[Ue]} ;function Ve(){re.call(this);this.g=new Ee(this);this.Pa=this;this.N=null} Ua(Ve,re);Ve.prototype[we]=!0;Ve.prototype.addEventListener=function(a,b,c,d){Ke(this,a,b,c,d)}; Ve.prototype.removeEventListener=function(a,b,c,d){Se(this,a,b,c,d)}; function We(a,b){var c=a.N;if(c){var d=[];for(var e=1;c;c=c.N)d.push(c),++e}a=a.Pa;c=b.type||b;"string"===typeof b?b=new se(b,a):b instanceof se?b.target=b.target||a:(e=b,b=new se(c,a),ob(b,e));e=!0;if(d)for(var f=d.length-1;!b.i&&0<=f;f--){var g=b.g=d[f];e=Xe(g,c,!0,b)&&e}b.i||(g=b.g=a,e=Xe(g,c,!0,b)&&e,b.i||(e=Xe(g,c,!1,b)&&e));if(d)for(f=0;!b.i&&fa&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.g=-1)}; cf.prototype.get=function(a){return!!this.data_[a]}; function df(a){-1===a.g&&(a.g=db(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0)); return a.g} ;function ef(a){this.o=K(a)} w(ef,L);function ff(a){this.o=K(a)} w(ff,L);function gf(a,b){return J(a,2,b)} function hf(a,b){return J(a,3,b)} function jf(a,b){return J(a,4,b)} function kf(a,b){return J(a,5,b)} function lf(a,b){return J(a,9,b)} function mf(a,b){var c=a.o,d=Lc(c);Xc(d);if(null!=b){for(var e=!!b.length,f=0;fa.h&&(a.h++,b.next=a.g,a.g=b)} ;var yf;function zf(){var a=B.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!F("Presto")&&(a=function(){var e=Id();e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=Ta(function(k){if(("*"==h||k.origin==h)&&k.data==g)this.port1.onmessage()},this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}}); if("undefined"!==typeof a&&!Rb()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.fc;c.fc=null;e()}}; return function(e){d.next={fc:e};d=d.next;b.port2.postMessage(0)}}return function(e){B.setTimeout(e,0)}} ;function Af(){this.h=this.g=null} Af.prototype.add=function(a,b){var c=Bf.get();c.set(a,b);this.h?this.h.next=c:this.g=c;this.h=c}; Af.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.h=null),a.next=null);return a}; var Bf=new wf(function(){return new Cf},function(a){return a.reset()}); function Cf(){this.next=this.scope=this.g=null} Cf.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null}; Cf.prototype.reset=function(){this.next=this.scope=this.g=null};var Df,Ef=!1,Ff=new Af;function Gf(a,b){Df||Hf();Ef||(Df(),Ef=!0);Ff.add(a,b)} function Hf(){if(B.Promise&&B.Promise.resolve){var a=B.Promise.resolve(void 0);Df=function(){a.then(If)}}else Df=function(){var b=If; "function"!==typeof B.setImmediate||B.Window&&B.Window.prototype&&(Qb()||!F("Edge"))&&B.Window.prototype.setImmediate==B.setImmediate?(yf||(yf=zf()),yf(b)):B.setImmediate(b)}} function If(){for(var a;a=Ff.remove();){try{a.g.call(a.scope)}catch(b){cc(b)}xf(Bf,a)}Ef=!1} ;function Jf(a,b){this.g=a[B.Symbol.iterator]();this.h=b} Jf.prototype[Symbol.iterator]=function(){return this}; Jf.prototype.next=function(){var a=this.g.next();return{value:a.done?void 0:this.h.call(void 0,a.value),done:a.done}}; function Kf(a,b){return new Jf(a,b)} ;function Lf(){this.blockSize=-1} ;function Mf(){this.blockSize=-1;this.blockSize=64;this.g=[];this.s=[];this.u=[];this.i=[];this.i[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.g[0];c=a.g[1];var g=a.g[2],h=a.g[3],k=a.g[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+k+l+d[e]&4294967295;k=h;h=g;g=(c<<30|c>>>2)&4294967295;c=b;b=f}a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+c&4294967295;a.g[2]=a.g[2]+g&4294967295;a.g[3]=a.g[3]+h&4294967295;a.g[4]=a.g[4]+k&4294967295} Mf.prototype.update=function(a,b){if(null!=a){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.s,f=this.h;dthis.h?this.update(this.i,56-this.h):this.update(this.i,this.blockSize-(this.h-56));for(var c=this.blockSize-1;56<=c;c--)this.s[c]=b&255,b/=256;Nf(this,this.s);for(c=b=0;5>c;c++)for(var d=24;0<=d;d-=8)a[b]=this.g[c]>>d&255,++b;return a};function Of(){} Of.prototype.next=function(){return Pf}; var Pf={done:!0,value:void 0};function Qf(a){return{value:a,done:!1}} Of.prototype.ha=function(){return this};function Rf(a){if(a instanceof Sf||a instanceof Tf||a instanceof Uf)return a;if("function"==typeof a.next)return new Sf(function(){return a}); if("function"==typeof a[Symbol.iterator])return new Sf(function(){return a[Symbol.iterator]()}); if("function"==typeof a.ha)return new Sf(function(){return a.ha()}); throw Error("Not an iterator or iterable.");} function Sf(a){this.h=a} Sf.prototype.ha=function(){return new Tf(this.h())}; Sf.prototype[Symbol.iterator]=function(){return new Uf(this.h())}; Sf.prototype.g=function(){return new Uf(this.h())}; function Tf(a){this.h=a} w(Tf,Of);Tf.prototype.next=function(){return this.h.next()}; Tf.prototype[Symbol.iterator]=function(){return new Uf(this.h)}; Tf.prototype.g=function(){return new Uf(this.h)}; function Uf(a){Sf.call(this,function(){return a}); this.i=a} w(Uf,Sf);Uf.prototype.next=function(){return this.i.next()};function Vf(a,b){this.h={};this.g=[];this.i=this.size=0;var c=arguments.length;if(12*this.size&&Xf(this),!0):!1}; function Xf(a){if(a.size!=a.g.length){for(var b=0,c=0;b=d.g.length)return Pf;var f=d.g[b++];return Qf(a?f:d.h[f])}; return e}; function Yf(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;var $f=B.JSON.stringify;function ag(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})} ;function bg(a){this.g=0;this.H=void 0;this.l=this.h=this.i=null;this.s=this.u=!1;if(a!=Ya)try{var b=this;a.call(void 0,function(c){cg(b,2,c)},function(c){cg(b,3,c)})}catch(c){cg(this,3,c)}} function dg(){this.next=this.context=this.h=this.i=this.g=null;this.l=!1} dg.prototype.reset=function(){this.context=this.h=this.i=this.g=null;this.l=!1}; var eg=new wf(function(){return new dg},function(a){a.reset()}); function fg(a,b,c){var d=eg.get();d.i=a;d.h=b;d.context=c;return d} bg.prototype.then=function(a,b,c){return gg(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)}; bg.prototype.$goog_Thenable=!0;bg.prototype.cancel=function(a){if(0==this.g){var b=new hg(a);Gf(function(){ig(this,b)},this)}}; function ig(a,b){if(0==a.g)if(a.i){var c=a.i;if(c.h){for(var d=0,e=null,f=null,g=c.h;g&&(g.l||(d++,g.g==a&&(e=g),!(e&&1Date.now())yg.prototype.remove.call(this,a);else return b}};function zg(){} ;function Ag(){} Ua(Ag,zg);Ag.prototype[Symbol.iterator]=function(){return Rf(this.ha(!0)).g()}; Ag.prototype.clear=function(){var a=Array.from(this);a=u(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};function Bg(a){this.g=a} Ua(Bg,Ag);q=Bg.prototype;q.set=function(a,b){try{this.g.setItem(a,b)}catch(c){if(0==this.g.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; q.get=function(a){a=this.g.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; q.remove=function(a){this.g.removeItem(a)}; q.ha=function(a){var b=0,c=this.g,d=new Of;d.next=function(){if(b>=c.length)return Pf;var e=c.key(b++);if(a)return Qf(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return Qf(e)}; return d}; q.clear=function(){this.g.clear()}; q.key=function(a){return this.g.key(a)};function Cg(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a} Ua(Cg,Bg);function Dg(a,b){this.h=a;this.g=null;var c;if(c=gc)c=!(9<=Number(wc));if(c){Eg||(Eg=new Vf);this.g=Eg.get(a);this.g||(b?this.g=document.getElementById(b):(this.g=document.createElement("userdata"),this.g.addBehavior("#default#userData"),document.body.appendChild(this.g)),Eg.set(a,this.g));try{this.g.load(this.h)}catch(d){this.g=null}}} Ua(Dg,Ag);var Fg={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Eg=null;function Gg(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Fg[b]})} q=Dg.prototype;q.set=function(a,b){this.g.setAttribute(Gg(a),b);Hg(this)}; q.get=function(a){a=this.g.getAttribute(Gg(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; q.remove=function(a){this.g.removeAttribute(Gg(a));Hg(this)}; q.ha=function(a){var b=0,c=this.g.XMLDocument.documentElement.attributes,d=new Of;d.next=function(){if(b>=c.length)return Pf;var e=c[b++];if(a)return Qf(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return Qf(e)}; return d}; q.clear=function(){for(var a=this.g.XMLDocument.documentElement,b=a.attributes.length;0f?1:2048>f?2:65536>f?3:4}var h=new O.Ra(e);for(b=c=0;cf?h[c++]=f:(2048>f?h[c++]=192|f>>>6:(65536>f?h[c++]=224|f>>>12:(h[c++]=240|f>>>18,h[c++]=128|f>>>12&63),h[c++]=128|f>>> 6&63),h[c++]=128|f&63);return h} ;var Og={};Og=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==c;){f=2E3Sg;Sg++){Qg=Sg;for(var Tg=0;8>Tg;Tg++)Qg=Qg&1?3988292384^Qg>>>1:Qg>>>1;Rg[Sg]=Qg}Pg=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^Rg[(a^b[d])&255];return a^-1};var Ug={};Ug={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Vg(a){for(var b=a.length;0<=--b;)a[b]=0} var Wg=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Xg=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Yg=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Zg=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$g=Array(576);Vg($g);var ah=Array(60);Vg(ah);var bh=Array(512);Vg(bh);var ch=Array(256);Vg(ch);var dh=Array(29);Vg(dh);var eh=Array(30);Vg(eh);function fh(a,b,c,d,e){this.Fc=a;this.Wc=b;this.Vc=c;this.Tc=d;this.md=e;this.nc=a&&a.length} var Ch,Dh,Eh;function Fh(a,b){this.ic=a;this.Ya=0;this.Ba=b} function Gh(a,b){a.K[a.pending++]=b&255;a.K[a.pending++]=b>>>8&255} function Hh(a,b,c){a.O>16-c?(a.U|=b<>16-a.O,a.O+=c-16):(a.U|=b<>>=1,c<<=1;while(0<--b);return c>>>1} function Kh(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=Jh(d[e]++,e))} function Lh(a){var b;for(b=0;286>b;b++)a.X[2*b]=0;for(b=0;30>b;b++)a.Ja[2*b]=0;for(b=0;19>b;b++)a.R[2*b]=0;a.X[512]=1;a.va=a.cb=0;a.ca=a.matches=0} function Mh(a){8e?bh[e]:bh[256+(e>>>7)];Ih(a,g,c);h=Xg[g];0!==h&&(e-=eh[g],Hh(a,e,h))}}while(da.ta;){var k=a.L[++a.ta]=2>h?++h:0;c[2*k]=1;a.depth[k]=0;a.va--;e&&(a.cb-=d[2*k+1])}b.Ya=h;for(g=a.ta>>1;1<=g;g--)Ph(a,c,g);k=f;do g=a.L[1],a.L[1]=a.L[a.ta--],Ph(a,c,1),d=a.L[1],a.L[--a.Va]=g,a.L[--a.Va]=d,c[2*k]=c[2*g]+c[2*d],a.depth[k]=(a.depth[g]>=a.depth[d]?a.depth[g]:a.depth[d])+1,c[2*g+1]=c[2*d+1]=k,a.L[1]=k++,Ph(a,c,1);while(2<=a.ta);a.L[--a.Va]= a.L[1];g=b.ic;k=b.Ya;d=b.Ba.Fc;e=b.Ba.nc;f=b.Ba.Wc;var l=b.Ba.Vc,m=b.Ba.md,n,r=0;for(n=0;15>=n;n++)a.pa[n]=0;g[2*a.L[a.Va]+1]=0;for(b=a.Va+1;573>b;b++){var p=a.L[b];n=g[2*g[2*p+1]+1]+1;n>m&&(n=m,r++);g[2*p+1]=n;if(!(p>k)){a.pa[n]++;var x=0;p>=l&&(x=f[p-l]);var y=g[2*p];a.va+=y*(n+x);e&&(a.cb+=y*(d[2*p+1]+x))}}if(0!==r){do{for(n=m-1;0===a.pa[n];)n--;a.pa[n]--;a.pa[n+1]+=2;a.pa[m]--;r-=2}while(0k||(g[2*d+1]!==n&&(a.va+=(n-g[2*d+1])*g[2*d],g[2* d+1]=n),p--)}Kh(c,h,a.pa)} function Sh(a,b,c){var d,e=-1,f=b[1],g=0,h=7,k=4;0===f&&(h=138,k=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var l=f;f=b[2*(d+1)+1];++g=g?a.R[34]++:a.R[36]++,g=0,e=l,0===f?(h=138,k=3):l===f?(h=6,k=3):(h=7,k=4))}} function Th(a,b,c){var d,e=-1,f=b[1],g=0,h=7,k=4;0===f&&(h=138,k=3);for(d=0;d<=c;d++){var l=f;f=b[2*(d+1)+1];if(!(++g=g?(Ih(a,17,a.R),Hh(a,g-3,3)):(Ih(a,18,a.R),Hh(a,g-11,7));g=0;e=l;0===f?(h=138,k=3):l===f?(h=6,k=3):(h=7,k=4)}}} function Uh(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.X[2*c])return 0;if(0!==a.X[18]||0!==a.X[20]||0!==a.X[26])return 1;for(c=32;256>c;c++)if(0!==a.X[2*c])return 1;return 0} var Vh=!1;function Wh(a,b,c){a.K[a.jb+2*a.ca]=b>>>8&255;a.K[a.jb+2*a.ca+1]=b&255;a.K[a.Qb+a.ca]=c&255;a.ca++;0===b?a.X[2*c]++:(a.matches++,b--,a.X[2*(ch[c]+256+1)]++,a.Ja[2*(256>b?bh[b]:bh[256+(b>>>7)])]++);return a.ca===a.mb-1} ;function Xh(a,b){a.msg=Ug[b];return b} function Yh(a){for(var b=a.length;0<=--b;)a[b]=0} function Zh(a){var b=a.state,c=b.pending;c>a.F&&(c=a.F);0!==c&&(O.Sa(a.nb,b.K,b.ob,c,a.Za),a.Za+=c,b.ob+=c,a.Zb+=c,a.F-=c,b.pending-=c,0===b.pending&&(b.ob=0))} function Q(a,b){var c=0<=a.Z?a.Z:-1,d=a.j-a.Z,e=0;if(0>>3;var g=a.cb+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&-1!==c)Hh(a,b?1:0,3),Nh(a,c,d);else if(4===a.strategy||g===f)Hh(a,2+(b?1:0),3),Qh(a,$g,ah);else{Hh(a,4+(b?1:0),3);c=a.Db.Ya+1;d=a.zb.Ya+1;e+=1;Hh(a,c-257,5);Hh(a,d-1,5);Hh(a,e-4,4);for(f=0;f>>8&255;a.K[a.pending++]=b&255} function ai(a,b){var c=a.vc,d=a.j,e=a.aa,f=a.xc,g=a.j>a.S-262?a.j-(a.S-262):0,h=a.window,k=a.Da,l=a.ka,m=a.j+258,n=h[d+e-1],r=h[d+e];a.aa>=a.mc&&(c>>=2);f>a.m&&(f=a.m);do{var p=b;if(h[p+e]===r&&h[p+e-1]===n&&h[p]===h[d]&&h[++p]===h[d+1]){d+=2;for(p++;h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&h[++d]===h[++p]&&de){a.Xa=b;e=p;if(p>=f)break;n=h[d+e-1];r=h[d+e]}}}while((b=l[b&k])>g&&0!==--c);return e<= a.m?e:a.m} function bi(a){var b=a.S,c;do{var d=a.Hc-a.m-a.j;if(a.j>=b+(b-262)){O.Sa(a.window,a.window,b,b,0);a.Xa-=b;a.j-=b;a.Z-=b;var e=c=a.Cb;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.ka[--e],a.ka[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.C.T)break;e=a.C;c=a.window;f=a.j+a.m;var g=e.T;g>d&&(g=d);0===g?c=0:(e.T-=g,O.Sa(c,e.input,e.Na,g,f),1===e.state.wrap?e.A=Og(e.A,c,g,f):2===e.state.wrap&&(e.A=Pg(e.A,c,g,f)),e.Na+=g,e.Oa+=g,c=g);a.m+=c;if(3<=a.m+a.Y)for(d=a.j-a.Y,a.D=a.window[d],a.D= (a.D<a.m+a.Y););}while(262>a.m&&0!==a.C.T)} function ci(a,b){for(var c;;){if(262>a.m){bi(a);if(262>a.m&&0===b)return 1;if(0===a.m)break}c=0;3<=a.m&&(a.D=(a.D<a.j?a.j:2;return 4===b?(Q(a,!0),0===a.C.F?3:4):a.ca&&(Q(a,!1),0===a.C.F)?1:2} function di(a,b){for(var c,d;;){if(262>a.m){bi(a);if(262>a.m&&0===b)return 1;if(0===a.m)break}c=0;3<=a.m&&(a.D=(a.D<=a.G&&(1===a.strategy||3===a.G&&4096a.j?a.j:2;return 4===b?(Q(a,!0),0===a.C.F?3:4):a.ca&&(Q(a,!1),0===a.C.F)?1:2} function ei(a,b){for(var c,d,e,f=a.window;;){if(258>=a.m){bi(a);if(258>=a.m&&0===b)return 1;if(0===a.m)break}a.G=0;if(3<=a.m&&0a.m&&(a.G=a.m)}3<=a.G?(c=Wh(a,1,a.G-3),a.m-=a.G,a.j+=a.G,a.G=0):(c=Wh(a,0,a.window[a.j]),a.m--,a.j++);if(c&&(Q(a,!1),0===a.C.F))return 1}a.Y=0;return 4===b?(Q(a,!0),0===a.C.F?3:4):a.ca&& (Q(a,!1),0===a.C.F)?1:2} function fi(a,b){for(var c;;){if(0===a.m&&(bi(a),0===a.m)){if(0===b)return 1;break}a.G=0;c=Wh(a,0,a.window[a.j]);a.m--;a.j++;if(c&&(Q(a,!1),0===a.C.F))return 1}a.Y=0;return 4===b?(Q(a,!0),0===a.C.F?3:4):a.ca&&(Q(a,!1),0===a.C.F)?1:2} function gi(a,b,c,d,e){this.Zc=a;this.ld=b;this.od=c;this.kd=d;this.Xc=e} var hi;hi=[new gi(0,0,0,0,function(a,b){var c=65535;for(c>a.da-5&&(c=a.da-5);;){if(1>=a.m){bi(a);if(0===a.m&&0===b)return 1;if(0===a.m)break}a.j+=a.m;a.m=0;var d=a.Z+c;if(0===a.j||a.j>=d)if(a.m=a.j-d,a.j=d,Q(a,!1),0===a.C.F)return 1;if(a.j-a.Z>=a.S-262&&(Q(a,!1),0===a.C.F))return 1}a.Y=0;if(4===b)return Q(a,!0),0===a.C.F?3:4;a.j>a.Z&&Q(a,!1);return 1}), new gi(4,4,8,4,ci),new gi(4,5,16,8,ci),new gi(4,6,32,32,ci),new gi(4,4,16,16,di),new gi(8,16,32,32,di),new gi(8,16,128,128,di),new gi(8,32,128,256,di),new gi(32,128,258,1024,di),new gi(32,258,258,4096,di)]; function ii(){this.C=null;this.status=0;this.K=null;this.wrap=this.pending=this.ob=this.da=0;this.v=null;this.ea=0;this.method=8;this.Wa=-1;this.Da=this.ac=this.S=0;this.window=null;this.Hc=0;this.head=this.ka=null;this.xc=this.mc=this.strategy=this.level=this.Sb=this.vc=this.aa=this.m=this.Xa=this.j=this.La=this.Ac=this.G=this.Z=this.sa=this.ra=this.Mb=this.Cb=this.D=0;this.X=new O.na(1146);this.Ja=new O.na(122);this.R=new O.na(78);Yh(this.X);Yh(this.Ja);Yh(this.R);this.dc=this.zb=this.Db=null;this.pa= new O.na(16);this.L=new O.na(573);Yh(this.L);this.Va=this.ta=0;this.depth=new O.na(573);Yh(this.depth);this.O=this.U=this.Y=this.matches=this.cb=this.va=this.jb=this.ca=this.mb=this.Qb=0} function ji(a,b){if(!a||!a.state||5b)return a?Xh(a,-2):-2;var c=a.state;if(!a.nb||!a.input&&0!==a.T||666===c.status&&4!==b)return Xh(a,0===a.F?-5:-2);c.C=a;var d=c.Wa;c.Wa=b;if(42===c.status)if(2===c.wrap)a.A=0,S(c,31),S(c,139),S(c,8),c.v?(S(c,(c.v.text?1:0)+(c.v.za?2:0)+(c.v.ya?4:0)+(c.v.name?8:0)+(c.v.comment?16:0)),S(c,c.v.time&255),S(c,c.v.time>>8&255),S(c,c.v.time>>16&255),S(c,c.v.time>>24&255),S(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),S(c,c.v.fe&255),c.v.ya&&c.v.ya.length&&(S(c, c.v.ya.length&255),S(c,c.v.ya.length>>8&255)),c.v.za&&(a.A=Pg(a.A,c.K,c.pending,0)),c.ea=0,c.status=69):(S(c,0),S(c,0),S(c,0),S(c,0),S(c,0),S(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),S(c,3),c.status=113);else{var e=8+(c.ac-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.j&&(e|=32);c.status=113;$h(c,e+(31-e%31));0!==c.j&&($h(c,a.A>>>16),$h(c,a.A&65535));a.A=1}if(69===c.status)if(c.v.ya){for(e=c.pending;c.ea<(c.v.ya.length&65535)&&(c.pending!==c.da||(c.v.za&&c.pending> e&&(a.A=Pg(a.A,c.K,c.pending-e,e)),Zh(a),e=c.pending,c.pending!==c.da));)S(c,c.v.ya[c.ea]&255),c.ea++;c.v.za&&c.pending>e&&(a.A=Pg(a.A,c.K,c.pending-e,e));c.ea===c.v.ya.length&&(c.ea=0,c.status=73)}else c.status=73;if(73===c.status)if(c.v.name){e=c.pending;do{if(c.pending===c.da&&(c.v.za&&c.pending>e&&(a.A=Pg(a.A,c.K,c.pending-e,e)),Zh(a),e=c.pending,c.pending===c.da)){var f=1;break}f=c.eae&&(a.A=Pg(a.A,c.K,c.pending- e,e));0===f&&(c.ea=0,c.status=91)}else c.status=91;if(91===c.status)if(c.v.comment){e=c.pending;do{if(c.pending===c.da&&(c.v.za&&c.pending>e&&(a.A=Pg(a.A,c.K,c.pending-e,e)),Zh(a),e=c.pending,c.pending===c.da)){f=1;break}f=c.eae&&(a.A=Pg(a.A,c.K,c.pending-e,e));0===f&&(c.status=103)}else c.status=103;103===c.status&&(c.v.za?(c.pending+2>c.da&&Zh(a),c.pending+2<=c.da&&(S(c,a.A&255),S(c,a.A>>8&255),a.A=0, c.status=113)):c.status=113);if(0!==c.pending){if(Zh(a),0===a.F)return c.Wa=-1,0}else if(0===a.T&&(b<<1)-(4>=8,c.O-= 8)):5!==b&&(Hh(c,0,3),Nh(c,0,0),3===b&&(Yh(c.head),0===c.m&&(c.j=0,c.Z=0,c.Y=0))),Zh(a),0===a.F))return c.Wa=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(S(c,a.A&255),S(c,a.A>>8&255),S(c,a.A>>16&255),S(c,a.A>>24&255),S(c,a.Oa&255),S(c,a.Oa>>8&255),S(c,a.Oa>>16&255),S(c,a.Oa>>24&255)):($h(c,a.A>>>16),$h(c,a.A&65535));Zh(a);0a.Ea&&(a.Ea+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.C=new ki;this.C.F=0;var b=this.C;var c=a.level,d=a.method,e=a.Ea,f=a.nd,g=a.strategy;if(b){var h=1;-1===c&&(c=6);0>e?(h=0,e=-e):15f||9e||15c||9g||4c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.A=2===c.wrap?0:1;c.Wa=0;if(!Vh){d=Array(16);for(f=g=0;28>f;f++)for(dh[f]=g,e=0;e<1<f;f++)for(eh[f]=g,e=0;e<1<>=7;30>f;f++)for(eh[f]=g<<7,e=0;e<1<=e;e++)d[e]=0;for(e=0;143>=e;)$g[2*e+1]=8,e++,d[8]++;for(;255>=e;)$g[2*e+1]=9,e++,d[9]++;for(;279>=e;)$g[2*e+1]=7,e++,d[7]++;for(;287>=e;)$g[2*e+1]=8,e++,d[8]++;Kh($g,287,d);for(e=0;30>e;e++)ah[2*e+1]=5,ah[2*e]=Jh(e,5);Ch=new fh($g,Wg,257,286,15);Dh=new fh(ah,Xg,0,30,15);Eh=new fh([],Yg,0,19,7);Vh=!0}c.Db=new Fh(c.X,Ch);c.zb=new Fh(c.Ja,Dh);c.dc=new Fh(c.R, Eh);c.U=0;c.O=0;Lh(c);c=0}else c=Xh(b,-2);0===c&&(b=b.state,b.Hc=2*b.S,Yh(b.head),b.Sb=hi[b.level].ld,b.mc=hi[b.level].Zc,b.xc=hi[b.level].od,b.vc=hi[b.level].kd,b.j=0,b.Z=0,b.m=0,b.Y=0,b.G=b.aa=2,b.La=0,b.D=0);b=c}}else b=-2;if(0!==b)throw Error(Ug[b]);a.header&&(b=this.C)&&b.state&&2===b.state.wrap&&(b.state.v=a.header);if(a.kb){var l;"string"===typeof a.kb?l=Ng(a.kb):"[object ArrayBuffer]"===li.call(a.kb)?l=new Uint8Array(a.kb):l=a.kb;a=this.C;f=l;g=f.length;if(a&&a.state)if(l=a.state,b=l.wrap, 2===b||1===b&&42!==l.status||l.m)b=-2;else{1===b&&(a.A=Og(a.A,f,g,0));l.wrap=0;g>=l.S&&(0===b&&(Yh(l.head),l.j=0,l.Z=0,l.Y=0),c=new O.Ra(l.S),O.Sa(c,f,g-l.S,l.S,0),f=c,g=l.S);c=a.T;d=a.Na;e=a.input;a.T=g;a.Na=0;a.input=f;for(bi(l);3<=l.m;){f=l.j;g=l.m-2;do l.D=(l.D<f&&(b.subarray&&Mg||!b.subarray))b= String.fromCharCode.apply(null,O.Yb(b,f));else{for(var g="",h=0;hc&&(c=b.length),f=b.indexOf("?"),0>f||f>c?(f=c,e=""):e=b.substring(f+1,c),b=[b.slice(0,f),e,b.slice(c)],c=b[1],b[1]=a?c?c+"&"+a:a:c,a=b[0]+(b[1]?"?"+b[1]:"")+b[2]):a=b;return a+d} function Aj(a){if(!b)var b=window.location.href;var c=a.match(Vb)[1]||null,d=Xb(a);c&&d?(a=a.match(Vb),b=b.match(Vb),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Xb(b)==d&&(Number(b.match(Vb)[4]||null)||null)==(Number(a.match(Vb)[4]||null)||null):!0;return a} function vj(a){return a&&a.match(sj)?a:decodeURIComponent(a.replace(/\+/g," "))} ;function Bj(a){var b=Cj;a=void 0===a?C("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=ce;e.flash="0";a:{try{var f=b.g.top.location.href}catch(ea){f=2;break a}f=f?f===b.h.location.href?0:1:2}e=(e.frm=f,e);try{e.u_tz=-(new Date).getTimezoneOffset();var g=void 0===g?Gd:g;try{var h=g.history.length}catch(ea){h=0}e.u_his=h;var k;e.u_h=null==(k=Gd.screen)?void 0:k.height;var l;e.u_w=null==(l=Gd.screen)?void 0:l.width;var m;e.u_ah=null==(m=Gd.screen)?void 0:m.availHeight;var n;e.u_aw= null==(n=Gd.screen)?void 0:n.availWidth;var r;e.u_cd=null==(r=Gd.screen)?void 0:r.colorDepth}catch(ea){}h=b.g;try{var p=h.screenX;var x=h.screenY}catch(ea){}try{var y=h.outerWidth;var E=h.outerHeight}catch(ea){}try{var P=h.innerWidth;var U=h.innerHeight}catch(ea){}try{var R=h.screenLeft;var Ba=h.screenTop}catch(ea){}try{P=h.innerWidth,U=h.innerHeight}catch(ea){}try{var Qc=h.screen.availWidth;var Pa=h.screen.availTop}catch(ea){}p=[R,Ba,p,x,Qc,Pa,y,E,P,U];x=b.g.top;try{var Ca=(x||window).document,fa= "CSS1Compat"==Ca.compatMode?Ca.documentElement:Ca.body;var na=(new Hd(fa.clientWidth,fa.clientHeight)).round()}catch(ea){na=new Hd(-12245933,-12245933)}Ca=na;na={};var oa=void 0===oa?B:oa;fa=new cf;"SVGElement"in oa&&"createElementNS"in oa.document&&fa.set(0);x=ae();x["allow-top-navigation-by-user-activation"]&&fa.set(1);x["allow-popups-to-escape-sandbox"]&&fa.set(2);oa.crypto&&oa.crypto.subtle&&fa.set(3);"TextDecoder"in oa&&"TextEncoder"in oa&&fa.set(4);oa=df(fa);na.bc=oa;na.bih=Ca.height;na.biw= Ca.width;na.brdim=p.join();b=b.h;b=(na.vis=b.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""]||0,na.wgl=!!Gd.WebGLRenderingContext,na);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c} var Cj=new function(){var a=window.document;this.g=window;this.h=a}; D("yt.ads_.signals_.getAdSignalsString",function(a){return xj(Bj(a))});Date.now();var Dj="XMLHttpRequest"in B?function(){return new XMLHttpRequest}:null; function Ej(){if(!Dj)return null;var a=Dj();return"open"in a?a:null} ;var Fj={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL", "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Gj="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(v(ee)),Hj=!1; function Ij(a,b){b=void 0===b?{}:b;var c=Aj(a),d=V("web_ajax_ignore_global_headers_if_set"),e;for(e in Fj){var f=T(Fj[e]),g="X-Goog-AuthUser"===e||"X-Goog-PageId"===e;"X-Goog-Visitor-Id"!==e||f||(f=T("VISITOR_DATA"));!f||!c&&Xb(a)||d&&void 0!==b[e]||(!V("move_vss_away_from_login_info_cookie")||"TVHTML5_UNPLUGGED"===T("INNERTUBE_CLIENT_NAME"))&&g||(b[e]=f)}V("move_vss_away_from_login_info_cookie")&&c&&T("SESSION_INDEX")&&"TVHTML5_UNPLUGGED"!==T("INNERTUBE_CLIENT_NAME")&&(b["X-Yt-Auth-Test"]="test"); "X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!Xb(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!Xb(a)){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(k){}h&&(b["X-YouTube-Time-Zone"]=h)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&Xb(a)||(b["X-YouTube-Ad-Signals"]=xj(Bj()));return b} function Jj(a){var b=window.location.search,c=Xb(a);V("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Aj(a)&&(c=document.location.hostname);var d=Wb(a.match(Vb)[5]||null);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=yj(b),f={};cb(Gj,function(g){e[g]&&(f[g]=e[g])}); return zj(a,f||{},!1)} function Kj(a,b){var c=b.format||"JSON";a=Lj(a,b);var d=Mj(a,b),e=!1,f=Nj(a,function(k){if(!e){e=!0;h&&window.clearTimeout(h);a:switch(k&&"status"in k?k.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:var l=!0;break a;default:l=!1}var m=null,n=400<=k.status&&500>k.status,r=500<=k.status&&600>k.status;if(l||n||r)m=Oj(a,c,k,b.convertToSafeHtml);if(l)a:if(k&&204==k.status)l=!0;else{switch(c){case "XML":l=0==parseInt(m&&m.return_code,10);break a;case "RAW":l=!0;break a}l= !!m}m=m||{};n=b.context||B;l?b.onSuccess&&b.onSuccess.call(n,k,m):b.onError&&b.onError.call(n,k,m);b.onFinish&&b.onFinish.call(n,k,m)}},b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&0>3;switch(e&7){case 0:e=bk(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=bk(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity} ;function ck(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d=f)jl(a,k,p,g,x,b.join(),e),h=x;E.B(2);break;case 4:return E.return(Promise.reject(h))}})} function jl(a,b,c,d,e,f,g){b=c-b;e?(e instanceof X&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Bk("QUOTA_EXCEEDED",{dbName:Dk(a.g.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:g.mode}),e instanceof X&&"UNKNOWN_ABORT"===e.type&&(c-=a.i,0>c&&c>=Math.pow(2,31)&&(c=0),Bk("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.h=!0),kl(a,!1,d,f,b,g.tag),Ak(e)):kl(a,!0,d,f,b,g.tag)} function kl(a,b,c,d,e,f){Bk("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.h,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})} q.getName=function(){return this.g.name}; function fl(a){this.g=a} q=fl.prototype;q.add=function(a,b){return $k(this.g.add(a,b))}; q.autoIncrement=function(){return this.g.autoIncrement}; q.clear=function(){return $k(this.g.clear()).then(function(){})}; function ll(a,b,c){a.g.createIndex(b,c,{unique:!1})} function ml(a,b){return nl(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})} q.delete=function(a){return a instanceof IDBKeyRange?ml(this,a):$k(this.g.delete(a))}; q.get=function(a){return $k(this.g.get(a))}; q.index=function(a){try{return new ol(this.g.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new Mk(a,this.g.name);throw b;}}; q.getName=function(){return this.g.name}; q.keyPath=function(){return this.g.keyPath}; function nl(a,b,c){a=a.g.openCursor(b.query,b.direction);return pl(a).then(function(d){return al(d,c)})} function hl(a){var b=this;this.g=a;this.i=new Map;this.h=!1;this.done=new Promise(function(c,d){b.g.addEventListener("complete",function(){c()}); b.g.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.g.error)}); b.g.addEventListener("abort",function(){var e=b.g.error;if(e)d(e);else if(!b.h){e=X;for(var f=b.g.objectStoreNames,g=[],h=0;h=E},y); y.done.catch(function(E){e(E)})}catch(E){e(E)}}); g.addEventListener("success",function(){var p=g.result;k&&p.addEventListener("versionchange",function(){k(f())}); p.addEventListener("close",function(){Bk("IDB_UNEXPECTEDLY_CLOSED",{dbName:Dk(a),dbVersion:p.version});l&&l()}); d(f())}); g.addEventListener("error",function(){e(g.error)}); h&&g.addEventListener("blocked",function(){h()})})} function tl(a,b,c){c=void 0===c?{}:c;return sl(a,b,c)} function ul(a,b){b=void 0===b?{}:b;var c,d,e,f;return A(function(g){if(1==g.g)return va(g,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.Pc)&&c.addEventListener("blocked",function(){e()}),z(g,Zk(c),4); if(2!=g.g)g.g=0,g.s=0;else throw f=wa(g),Ok(f,a,"",-1);})} ;function vl(a,b){this.name=a;this.options=b;this.i=!0;this.s=this.l=0} vl.prototype.h=function(a,b,c){c=void 0===c?{}:c;return tl(a,b,c)}; vl.prototype.delete=function(a){a=void 0===a?{}:a;return ul(this.name,a)}; function wl(a,b){return new X("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})} function xl(a,b){if(!b)throw Pk("openWithToken",Dk(a.name));return yl(a)} function yl(a){function b(){var f,g,h,k,l,m,n,r,p,x;return A(function(y){switch(y.g){case 1:return g=null!=(f=Error().stack)?f:"",va(y,2),z(y,a.h(a.name,a.options.version,d),4);case 4:h=y.h;for(var E=a.options,P=[],U=u(Object.keys(E.ab)),R=U.next();!R.done;R=U.next()){R=R.value;var Ba=E.ab[R],Qc=void 0===Ba.pd?Number.MAX_VALUE:Ba.pd;!(h.g.version>=Ba.hb)||h.g.version>=Qc||h.g.objectStoreNames.contains(R)||P.push(R)}k=P;if(0===k.length){y.B(5);break}l=Object.keys(a.options.ab);m=h.objectStoreNames(); if(a.sa.options.version+1)throw r.close(),a.i=!1,wl(a,p);return y.return(r);case 8:throw c(),n instanceof Error&&!V("ytidb_async_stack_killswitch")&& (n.stack=n.stack+"\n"+g.substring(g.indexOf("\n")+1)),Ok(n,a.name,"",null!=(x=a.options.version)?x:-1);}})} function c(){a.g===e&&(a.g=void 0)} if(!a.i)throw wl(a);if(a.g)return a.g;var d={Qc:function(f){f.close()}, closed:c,rd:c,upgrade:a.options.upgrade};var e=b();a.g=e;return a.g} ;var zl=new vl("YtIdbMeta",{ab:{databases:{hb:1}},upgrade:function(a,b){b(1)&&el(a,"databases",{keyPath:"actualName"})}}); function Al(a,b){var c;return A(function(d){if(1==d.g)return z(d,xl(zl,b),2);c=d.h;return d.return(dl(c,["databases"],{V:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(g){if(g?a.actualName!==g.actualName||a.publicName!==g.publicName||a.userIdentifier!==g.userIdentifier:1)return $k(f.g.put(a,void 0)).then(function(){})})}))})} function Bl(a,b){var c;return A(function(d){if(1==d.g)return a?z(d,xl(zl,b),2):d.return();c=d.h;return d.return(c.delete("databases",a))})} function Cl(a,b){var c,d;return A(function(e){return 1==e.g?(c=[],z(e,xl(zl,b),2)):3!=e.g?(d=e.h,z(e,dl(d,["databases"],{V:!0,mode:"readonly"},function(f){c.length=0;return nl(f.objectStore("databases"),{},function(g){a(g.ia())&&c.push(g.ia());return g.continue()})}),3)):e.return(c)})} function Dl(a){return Cl(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)} ;var El,Fl=new function(){}(new function(){}); function Gl(){var a,b,c,d;return A(function(e){switch(e.g){case 1:a=xk();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);var f;if(f=Ek)f=/WebKit\/([0-9]+)/.exec(Hb()),f=!!(f&&600<=parseInt(f[1],10));f&&(f=/WebKit\/([0-9]+)/.exec(Hb()),f=!(f&&602<=parseInt(f[1],10)));if(f||hc)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(g){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1); va(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return z(e,Al(d,Fl),4);case 4:return z(e,Bl("yt-idb-test-do-not-use",Fl),5);case 5:return e.return(!0);case 2:return wa(e),e.return(!1)}})} function Hl(){if(void 0!==El)return El;zk=!0;return El=Gl().then(function(a){zk=!1;var b;if(null!=(b=wk())&&b.g){var c;b={hasSucceededOnce:(null==(c=xk())?void 0:c.hasSucceededOnce)||a};var d;null==(d=wk())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})} function Il(){return C("ytglobal.idbToken_")||void 0} function Jl(){var a=Il();return a?Promise.resolve(a):Hl().then(function(b){(b=b?Fl:void 0)&&D("ytglobal.idbToken_",b);return b})} ;new ag;function vm(a){if(!nk())throw a=new X("AUTH_INVALID",{dbName:a}),Ak(a),a;var b=ok();return{actualName:a+":"+b,publicName:a,userIdentifier:b}} function wm(a,b,c,d){var e,f,g,h,k,l;return A(function(m){switch(m.g){case 1:return f=null!=(e=Error().stack)?e:"",z(m,Jl(),2);case 2:g=m.h;if(!g)throw h=Pk("openDbImpl",a,b),V("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+f.substring(f.indexOf("\n")+1)),Ak(h),h;Ck(a);k=c?{actualName:a,publicName:a,userIdentifier:void 0}:vm(a);va(m,3);return z(m,Al(k,g),5);case 5:return z(m,tl(k.actualName,b,d),6);case 6:return m.return(m.h);case 3:return l=wa(m),va(m,7),z(m,Bl(k.actualName,g),9);case 9:m.g= 8;m.s=0;break;case 7:wa(m);case 8:throw l;}})} function xm(a,b,c){c=void 0===c?{}:c;return wm(a,b,!1,c)} function ym(a,b,c){c=void 0===c?{}:c;return wm(a,b,!0,c)} function zm(a,b){b=void 0===b?{}:b;var c,d;return A(function(e){if(1==e.g)return z(e,Jl(),2);if(3!=e.g){c=e.h;if(!c)return e.return();Ck(a);d=vm(a);return z(e,ul(d.actualName,b),3)}return z(e,Bl(d.actualName,c),0)})} function Am(a,b,c){a=a.map(function(d){return A(function(e){return 1==e.g?z(e,ul(d.actualName,b),2):z(e,Bl(d.actualName,c),0)})}); return Promise.all(a).then(function(){})} function Bm(){var a=void 0===a?{}:a;var b,c;return A(function(d){if(1==d.g)return z(d,Jl(),2);if(3!=d.g){b=d.h;if(!b)return d.return();Ck("LogsDatabaseV2");return z(d,Dl(b),3)}c=d.h;return z(d,Am(c,a,b),0)})} function Cm(a,b){b=void 0===b?{}:b;var c;return A(function(d){if(1==d.g)return z(d,Jl(),2);if(3!=d.g){c=d.h;if(!c)return d.return();Ck(a);return z(d,ul(a,b),3)}return z(d,Bl(a,c),0)})} ;function Dm(a,b){vl.call(this,a,b);this.options=b;Ck(a)} w(Dm,vl);function Em(a,b){var c;return function(){c||(c=new Dm(a,b));return c}} Dm.prototype.h=function(a,b,c){c=void 0===c?{}:c;return(this.options.Jb?ym:xm)(a,b,Object.assign({},c))}; Dm.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.Jb?Cm:zm)(this.name,a)}; function Fm(a,b){return Em(a,b)} ;var Gm={},Hm=Fm("ytGcfConfig",{ab:(Gm.coldConfigStore={hb:1},Gm.hotConfigStore={hb:1},Gm),Jb:!1,upgrade:function(a,b){b(1)&&(ll(el(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),ll(el(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});function Im(a){return xl(Hm(),a)} function Jm(a,b,c){var d,e,f;return A(function(g){switch(g.g){case 1:return d={config:a,hashData:b,timestamp:Y()},z(g,Im(c),2);case 2:return e=g.h,z(g,e.clear("hotConfigStore"),3);case 3:return z(g,gl(e,"hotConfigStore",d),4);case 4:return f=g.h,g.return(f)}})} function Km(a,b,c,d){var e,f,g;return A(function(h){switch(h.g){case 1:return e={config:a,hashData:b,configData:c,timestamp:Y()},z(h,Im(d),2);case 2:return f=h.h,z(h,f.clear("coldConfigStore"),3);case 3:return z(h,gl(f,"coldConfigStore",e),4);case 4:return g=h.h,h.return(g)}})} function Lm(a){var b,c;return A(function(d){return 1==d.g?z(d,Im(a),2):3!=d.g?(b=d.h,c=void 0,z(d,dl(b,["coldConfigStore"],{mode:"readwrite",V:!0},function(e){return ql(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.ia()})}),3)):d.return(c)})} function Mm(a){var b,c;return A(function(d){return 1==d.g?z(d,Im(a),2):3!=d.g?(b=d.h,c=void 0,z(d,dl(b,["hotConfigStore"],{mode:"readwrite",V:!0},function(e){return ql(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.ia()})}),3)):d.return(c)})} ;function Nm(){re.apply(this,arguments);this.g=[]} w(Nm,re);Nm.prototype.Ia=function(){this.g.length=0;re.prototype.Ia.call(this)};function Om(){this.g=0;this.h=new Nm} function Pm(a,b,c){var d,e,f;return A(function(g){switch(g.g){case 1:if(!V("update_log_event_config")){g.B(0);break}c&&(a.i=c,D("yt.gcf.config.hotConfigGroup",a.i||null));a.hotHashData=b;D("yt.gcf.config.hotHashData",a.hotHashData||null);d=Il();if(!d){g.B(3);break}if(c){g.B(4);break}return z(g,Mm(d),5);case 5:e=g.h,c=null==(f=e)?void 0:f.config;case 4:return z(g,Jm(c,b,d),3);case 3:if(c)for(var h=c,k=u(a.h.g),l=k.next();!l.done;l=k.next())l=l.value,l(h);g.g=0}})} function Qm(a,b,c){var d,e,f,g;return A(function(h){if(1==h.g){if(!V("update_log_event_config"))return h.B(0);a.coldHashData=b;D("yt.gcf.config.coldHashData",a.coldHashData||null);return(d=Il())?c?h.B(4):z(h,Lm(d),5):h.B(0)}4!=h.g&&(e=h.h,c=null==(f=e)?void 0:f.config);if(!c)return h.B(0);g=c.configData;return z(h,Km(c,b,g,d),0)})} ;function Rm(){return"INNERTUBE_API_KEY"in Xi&&"INNERTUBE_API_VERSION"in Xi} function Sm(){return{bd:T("INNERTUBE_API_KEY"),cd:T("INNERTUBE_API_VERSION"),Nb:T("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),oc:T("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),dd:T("INNERTUBE_CONTEXT_CLIENT_NAME",1),pc:T("INNERTUBE_CONTEXT_CLIENT_VERSION"),sc:T("INNERTUBE_CONTEXT_HL"),qc:T("INNERTUBE_CONTEXT_GL"),ed:T("INNERTUBE_HOST_OVERRIDE")||"",gd:!!T("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),fd:!!T("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:T("SERIALIZED_CLIENT_CONFIG_DATA")}} function Tm(a){var b={client:{hl:a.sc,gl:a.qc,clientName:a.oc,clientVersion:a.pc,configInfo:a.Nb}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=B.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=T("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=hj();0dn||g=jn&&(gn++,V("abandon_compression_after_N_slow_zips")?hn===gj("compression_disable_point")&&gn>kn&&(fn=!1):fn=!1);V("gel_compression_csi_killswitch")|| !V("log_gel_compression_latency")&&!V("log_gel_compression_latency_lr")||cn("gel_compression",f,{sampleRate:.1});c.headers||(c.headers={});c.headers["Content-Encoding"]="gzip";c.postBody=m;c.postParams=void 0}d(a,c)}catch(r){ej(r),d(a,c)}else d(a,c)} ;function mn(a){a=Object.assign({},a);delete a.Authorization;var b=oe();if(b){var c=new Mf;c.update(T("INNERTUBE_API_KEY"));c.update(b);a.hash=Cc(c.digest(),3)}return a} ;var nn;function on(){nn||(nn=new vk("yt.innertube"));return nn} function pn(a,b,c,d){if(d)return null;d=on().get("nextId",!0)||1;var e=on().get("requests",!0)||{};e[d]={method:a,request:b,authState:mn(c),requestTime:Math.round(Y())};on().set("nextId",d+1,86400,!0);on().set("requests",e,86400,!0);return d} function qn(a){var b=on().get("requests",!0)||{};delete b[a];on().set("requests",b,86400,!0)} function rn(a){var b=on().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(6E4>Math.round(Y())-d.requestTime)){var e=d.authState,f=mn(an(!1));lb(e,f)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round(Y())),sn(a,d.method,e,{}));delete b[c]}}on().set("requests",b,86400,!0)}} ;function tn(a){this.vb=this.g=!1;this.potentialEsfErrorCounter=this.h=0;this.handleError=function(){}; this.Ua=function(){}; this.now=Date.now;this.lb=!1;var b;this.Gc=null!=(b=a.Gc)?b:100;var c;this.Ec=null!=(c=a.Ec)?c:1;var d;this.Cc=null!=(d=a.Cc)?d:2592E6;var e;this.Bc=null!=(e=a.Bc)?e:12E4;var f;this.Dc=null!=(f=a.Dc)?f:5E3;var g;this.I=null!=(g=a.I)?g:void 0;this.Ab=!!a.Ab;var h;this.yb=null!=(h=a.yb)?h:.1;var k;this.Fb=null!=(k=a.Fb)?k:10;a.handleError&&(this.handleError=a.handleError);a.Ua&&(this.Ua=a.Ua);a.lb&&(this.lb=a.lb);a.vb&&(this.vb=a.vb);this.J=a.J;this.ga=a.ga;this.M=a.M;this.P=a.P;this.wa=a.wa;this.Wb= a.Wb;this.Vb=a.Vb;un(this)&&(!this.J||this.J("networkless_logging"))&&vn(this)} function vn(a){un(a)&&!a.lb&&(a.g=!0,a.Ab&&Math.random()<=a.yb&&a.M.Rc(a.I),wn(a),a.P.ba()&&a.qb(),a.P.Ka(a.Wb,a.qb.bind(a)),a.P.Ka(a.Vb,a.ec.bind(a)))} q=tn.prototype;q.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(un(this)&&this.g){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.M.set(d,this.I).then(function(e){d.id=e;c.P.ba()&&xn(c,d)}).catch(function(e){xn(c,d); yn(c,e)})}else this.wa(a,b)}; q.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(un(this)&&this.g){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.J&&this.J("nwl_skip_retry")&&(e.skipRetry=c);if(this.P.ba()||this.J&&this.J("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(g,h){return A(function(k){if(1==k.g)return z(k,d.M.set(e,d.I).catch(function(l){yn(d,l)}),2); f(g,h);k.g=0})}}this.wa(a,b,e.skipRetry)}else this.M.set(e,this.I).catch(function(g){d.wa(a,b,e.skipRetry); yn(d,g)})}else this.wa(a,b,this.J&&this.J("nwl_skip_retry")&&c)}; q.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(un(this)&&this.g){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){}; d.options.onSuccess=function(g,h){void 0!==d.id?c.M.Ta(d.id,c.I):e=!0;c.P.Ma&&c.J&&c.J("vss_network_hint")&&c.P.Ma(!0);f(g,h)}; this.wa(d.url,d.options);this.M.set(d,this.I).then(function(g){d.id=g;e&&c.M.Ta(d.id,c.I)}).catch(function(g){yn(c,g)})}else this.wa(a,b)}; q.qb=function(){var a=this;if(!un(this))throw Pk("throttleSend");this.h||(this.h=this.ga.oa(function(){var b;return A(function(c){if(1==c.g)return z(c,a.M.lc("NEW",a.I),2);if(3!=c.g)return b=c.h,b?z(c,xn(a,b),3):(a.ec(),c.return());a.h&&(a.h=0,a.qb());c.g=0})},this.Gc))}; q.ec=function(){this.ga.qa(this.h);this.h=0}; function xn(a,b){var c,d;return A(function(e){switch(e.g){case 1:if(!un(a))throw c=Pk("immediateSend"),c;if(void 0===b.id){e.B(2);break}return z(e,a.M.jd(b.id,a.I),3);case 3:(d=e.h)||a.Ua(Error("The request cannot be found in the database."));case 2:if(zn(a,b,a.Cc)){e.B(4);break}a.Ua(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){e.B(5);break}return z(e,a.M.Ta(b.id,a.I),5);case 5:return e.return();case 4:b.skipRetry||(b=An(a,b));if(!b){e.B(0);break}if(!b.skipRetry|| void 0===b.id){e.B(8);break}return z(e,a.M.Ta(b.id,a.I),8);case 8:a.wa(b.url,b.options,!!b.skipRetry),e.g=0}})} function An(a,b){if(!un(a))throw Pk("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var g,h,k,l;return A(function(m){switch(m.g){case 1:g=Bn(f);(h=Cn(f))&&a.J&&a.J("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.J&&a.J("nwl_consider_error_code")&&g||a.J&&!a.J("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.Fb)){m.B(2);break}if(!a.P.Ib){m.B(3);break}return z(m,a.P.Ib(),3);case 3:if(a.P.ba()){m.B(2);break}c(e,f);if(!a.J||!a.J("nwl_consider_error_code")||void 0===(null==(k=b)?void 0:k.id)){m.B(6); break}return z(m,a.M.Xb(b.id,a.I,!1),6);case 6:return m.return();case 2:if(a.J&&a.J("nwl_consider_error_code")&&!g&&a.potentialEsfErrorCounter>a.Fb)return m.return();a.potentialEsfErrorCounter++;if(void 0===(null==(l=b)?void 0:l.id)){m.B(8);break}return b.sendCount=c?!1:!0} function wn(a){if(!un(a))throw Pk("retryQueuedRequests");a.M.lc("QUEUED",a.I).then(function(b){b&&!zn(a,b,a.Bc)?a.ga.oa(function(){return A(function(c){if(1==c.g)return void 0===b.id?c.B(2):z(c,a.M.Xb(b.id,a.I),2);wn(a);c.g=0})}):a.P.ba()&&a.qb()})} function yn(a,b){a.Ic&&!a.P.ba()?a.Ic(b):a.handleError(b)} function un(a){return!!a.I||a.vb} function Bn(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0} function Cn(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)} ;var Dn; function En(){if(Dn)return Dn();var a={};Dn=Fm("LogsDatabaseV2",{ab:(a.LogsRequestsStore={hb:2},a),Jb:!1,upgrade:function(b,c,d){c(2)&&el(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.g.indexNames.contains("newRequest")&&d.g.deleteIndex("newRequest"),ll(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&b.g.objectStoreNames.contains("sapisid")&&b.g.deleteObjectStore("sapisid");c(9)&&b.g.objectStoreNames.contains("SWHealthLog")&&b.g.deleteObjectStore("SWHealthLog")}, version:9});return Dn()} ;function Fn(a){return xl(En(),a)} function Gn(a,b){var c,d,e,f;return A(function(g){if(1==g.g)return c={startTime:Y(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},z(g,Fn(b),2);if(3!=g.g)return d=g.h,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:T("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),z(g,gl(d,"LogsRequestsStore",e),3);f=g.h;c.ticks.tc=Y();Hn(c);return g.return(f)})} function In(a,b){var c,d,e,f,g,h,k;return A(function(l){if(1==l.g)return c={startTime:Y(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},z(l,Fn(b),2);if(3!=l.g)return d=l.h,e=T("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],g=[a,e,Y()],h=IDBKeyRange.bound(f,g),k=void 0,z(l,dl(d,["LogsRequestsStore"],{mode:"readwrite",V:!0},function(m){return ql(m.objectStore("LogsRequestsStore").index("newRequestV2"),{query:h,direction:"prev"},function(n){n.ia()&&(k=n.ia(),"NEW"===a&&(k.status="QUEUED", n.update(k)))})}),3); c.ticks.tc=Y();Hn(c);return l.return(k)})} function Jn(a,b){var c;return A(function(d){if(1==d.g)return z(d,Fn(b),2);c=d.h;return d.return(dl(c,["LogsRequestsStore"],{mode:"readwrite",V:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(g){if(g)return g.status="QUEUED",$k(f.g.put(g,void 0)).then(function(){return g})})}))})} function Kn(a,b,c,d){c=void 0===c?!0:c;var e;return A(function(f){if(1==f.g)return z(f,Fn(b),2);e=f.h;return f.return(dl(e,["LogsRequestsStore"],{mode:"readwrite",V:!0},function(g){var h=g.objectStore("LogsRequestsStore");return h.get(a).then(function(k){return k?(k.status="NEW",c&&(k.sendCount+=1),void 0!==d&&(k.options.compress=d),$k(h.g.put(k,void 0)).then(function(){return k})):Tk.resolve(void 0)})}))})} function Ln(a,b){var c;return A(function(d){if(1==d.g)return z(d,Fn(b),2);c=d.h;return d.return(c.delete("LogsRequestsStore",a))})} function Mn(a){var b,c;return A(function(d){if(1==d.g)return z(d,Fn(a),2);b=d.h;c=Y()-2592E6;return z(d,dl(b,["LogsRequestsStore"],{mode:"readwrite",V:!0},function(e){return nl(e.objectStore("LogsRequestsStore"),{},function(f){if(f.ia().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function Nn(){A(function(a){return z(a,Bm(),0)})} function Hn(a){V("nwl_csi_killswitch")||cn("networkless_performance",a,{sampleRate:1})} ;var On={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139, mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437, kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460, transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190, ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259, ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226, userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246, embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,tvhtml5ApiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272, liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300, delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321, voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343, sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363, clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382, startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404, playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,genericClientExperimentEvent:423, homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145, dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451, producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480};var Pn={},Qn=Fm("ServiceWorkerLogsDatabase",{ab:(Pn.SWHealthLog={hb:1},Pn),Jb:!0,upgrade:function(a,b){b(1)&&ll(el(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});function Rn(a){return xl(Qn(),a)} function Sn(a){var b,c;A(function(d){if(1==d.g)return z(d,Rn(a),2);b=d.h;c=Y()-2592E6;return z(d,dl(b,["SWHealthLog"],{mode:"readwrite",V:!0},function(e){return nl(e.objectStore("SWHealthLog"),{},function(f){if(f.ia().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})} function Tn(a){var b;return A(function(c){if(1==c.g)return z(c,Rn(a),2);b=c.h;return z(c,b.clear("SWHealthLog"),0)})} ;var Un={},Vn=0;function Wn(a){var b=new Image,c=""+Vn++;Un[c]=b;b.onload=b.onerror=function(){delete Un[c]}; b.src=a} ;function Xn(){this.g=new Map;this.h=!1} function Yn(){if(!Xn.g){var a=C("yt.networkRequestMonitor.instance")||new Xn;D("yt.networkRequestMonitor.instance",a);Xn.g=a}return Xn.g} Xn.prototype.requestComplete=function(a,b){b&&(this.h=!0);a=this.removeParams(a);this.g.get(a)||this.g.set(a,b)}; Xn.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.g.get(a))?!1:!1===a&&this.h?!0:null}; Xn.prototype.removeParams=function(a){return a.split("?")[0]}; Xn.prototype.removeParams=Xn.prototype.removeParams;Xn.prototype.isEndpointCFR=Xn.prototype.isEndpointCFR;Xn.prototype.requestComplete=Xn.prototype.requestComplete;Xn.getInstance=Yn;var Zn;function $n(){Zn||(Zn=new vk("yt.offline"));return Zn} function ao(a){if(V("offline_error_handling")){var b=$n().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);$n().set("errors",b,2592E3,!0)}} ;function Z(){Ve.call(this);var a=this;this.l=!1;this.h=af();this.h.Ka("networkstatus-online",function(){if(a.l&&V("offline_error_handling")){var b=$n().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new mk(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;dj(d)}$n().set("errors",{},2592E3,!0)}}})} w(Z,Ve);function bo(){if(!Z.g){var a=C("yt.networkStatusManager.instance")||new Z;D("yt.networkStatusManager.instance",a);Z.g=a}return Z.g} q=Z.prototype;q.ba=function(){return this.h.ba()}; q.Ma=function(a){this.h.h=a}; q.Yc=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; q.Uc=function(){this.l=!0}; q.Ka=function(a,b){return this.h.Ka(a,b)}; q.Ib=function(a){a=Ze(this.h,a);a.then(function(b){V("use_cfr_monitor")&&Yn().requestComplete("generate_204",b)}); return a}; Z.prototype.sendNetworkCheckRequest=Z.prototype.Ib;Z.prototype.listen=Z.prototype.Ka;Z.prototype.enableErrorFlushing=Z.prototype.Uc;Z.prototype.getWindowStatus=Z.prototype.Yc;Z.prototype.networkStatusHint=Z.prototype.Ma;Z.prototype.isNetworkAvailable=Z.prototype.ba;Z.getInstance=bo;function co(a){a=void 0===a?{}:a;Ve.call(this);var b=this;this.h=this.H=0;this.l=bo();var c=C("yt.networkStatusManager.instance.listen").bind(this.l);c&&(a.Hb?(this.Hb=a.Hb,c("networkstatus-online",function(){eo(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){eo(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){We(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){We(b,"publicytnetworkstatus-offline")})))} w(co,Ve);co.prototype.ba=function(){var a=C("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.l)():!0}; co.prototype.Ma=function(a){var b=C("yt.networkStatusManager.instance.networkStatusHint").bind(this.l);b&&b(a)}; co.prototype.Ib=function(a){var b=this,c;return A(function(d){c=C("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.l);return V("skip_network_check_if_cfr")&&Yn().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Ma((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.ba())})):c?d.return(c(a)):d.return(!0)})}; function eo(a,b){a.Hb?a.h?(bf.qa(a.H),a.H=bf.oa(function(){a.u!==b&&(We(a,b),a.u=b,a.h=Y())},a.Hb-(Y()-a.h))):(We(a,b),a.u=b,a.h=Y()):We(a,b)} ;var fo;function go(){var a=tn.call;fo||(fo=new co({ce:!0,be:!0}));a.call(tn,this,{M:{Rc:Mn,Ta:Ln,lc:In,jd:Jn,Xb:Kn,set:Gn},P:fo,handleError:function(b,c,d){var e,f=null==d?void 0:null==(e=d.error)?void 0:e.code;if(400===f||415===f){var g;ej(new mk(b.message,c,null==d?void 0:null==(g=d.error)?void 0:g.code),void 0,void 0,void 0,!0)}else dj(b)}, Ua:ej,wa:ho,now:Y,Ic:ao,ga:uk(),Wb:"publicytnetworkstatus-online",Vb:"publicytnetworkstatus-offline",Ab:!0,yb:.1,Fb:gj("potential_esf_error_limit",10),J:V,lb:!(nk()&&"www.youtube-nocookie.com"!==Xb(document.location.toString()))});this.i=new ag;V("networkless_immediately_drop_all_requests")&&Nn();Cm("LogsDatabaseV2")} w(go,tn);function io(){var a=C("yt.networklessRequestController.instance");a||(a=new go,D("yt.networklessRequestController.instance",a),V("networkless_logging")&&Jl().then(function(b){a.I=b;vn(a);a.i.resolve();a.Ab&&Math.random()<=a.yb&&a.I&&Sn(a.I);V("networkless_immediately_drop_sw_health_store")&&jo(a)})); return a} go.prototype.writeThenSend=function(a,b){b||(b={});nk()||(this.g=!1);tn.prototype.writeThenSend.call(this,a,b)}; go.prototype.sendThenWrite=function(a,b,c){b||(b={});nk()||(this.g=!1);tn.prototype.sendThenWrite.call(this,a,b,c)}; go.prototype.sendAndWrite=function(a,b){b||(b={});nk()||(this.g=!1);tn.prototype.sendAndWrite.call(this,a,b)}; go.prototype.awaitInitialization=function(){return this.i.promise}; function jo(a){var b;A(function(c){if(!a.I)throw b=Pk("clearSWHealthLogsDb"),b;return c.return(Tn(a.I).catch(function(d){a.handleError(d)}))})} function ho(a,b,c){b=V("web_fp_via_jspb")?Object.assign({},b):b;V("use_cfr_monitor")&&ko(a,b);if(V("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round(Y())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round(Y())}if(c&&0===Object.keys(b).length){var e=void 0===e?"":e;var f=void 0===f?!1:f;var g=void 0===g?!1:g;if(a)if(e)Nj(a,void 0,"POST",e);else if(T("USE_NET_AJAX_FOR_PING_TRANSPORT",!1))Nj(a,void 0,"GET", "",void 0,void 0,f,g);else{b:{try{var h=new Xa({url:a});if(h.i&&h.h||h.l){var k=Wb(a.match(Vb)[5]||null);var l=!(!k||!k.endsWith("/aclk")||"1"!==bc(a,"ri"));break b}}catch(n){}l=!1}if(l){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var m=!0;break b}}catch(n){}m=!1}c=m?!0:!1}else c=!1;c||Wn(a)}}else b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),ln(a,b.postBody,b,Kj)):ln(a,JSON.stringify(b.postParams),b,Sj): Kj(a,b)} function ko(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){Yn().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){Yn().requestComplete(a,!0);d(e,f)}} ;var lo=B.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};D("ytNetworklessLoggingInitializationOptions",lo);function mo(a){var b=this;this.config_=null;a?this.config_=a:Rm()&&(this.config_=Sm());qk(function(){rn(b)},5E3)} mo.prototype.isReady=function(){!this.config_&&Rm()&&(this.config_=Sm());return!!this.config_}; function sn(a,b,c,d){function e(x){x=void 0===x?!1:x;var y;if(d.retry&&"www.youtube-nocookie.com"!=h&&(x||V("skip_ls_gel_retry")||"application/json"!==g.headers["Content-Type"]||(y=pn(b,c,l,k)),y)){var E=g.onSuccess,P=g.onFetchSuccess;g.onSuccess=function(R,Ba){qn(y);E(R,Ba)}; c.onFetchSuccess=function(R,Ba){qn(y);P(R,Ba)}}try{if(x&&d.retry&&!d.wc.bypassNetworkless)g.method="POST",d.wc.writeThenSend?io().writeThenSend(p,g):io().sendAndWrite(p,g); else if(d.compress)if(g.postBody){var U=g.postBody;"string"!==typeof U&&(U=JSON.stringify(g.postBody));ln(p,U,g,Kj)}else ln(p,JSON.stringify(g.postParams),g,Sj);else V("web_all_payloads_via_jspb")?Kj(p,g):Sj(p,g)}catch(R){if("InvalidAccessError"==R.name)y&&(qn(y),y=0),ej(Error("An extension is blocking network request."));else throw R;}y&&qk(function(){rn(a)},5E3)} !T("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&ej(new mk("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var f=new mk("innertube xhrclient not ready",b,c,d);dj(f);throw f;}var g={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(x,y){if(d.onSuccess)d.onSuccess(y)}, onFetchSuccess:function(x){if(d.onSuccess)d.onSuccess(x)}, onError:function(x,y){if(d.onError)d.onError(y)}, onFetchError:function(x){if(d.onError)d.onError(x)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var h="";(f=a.config_.ed)&&(h=f);var k=a.config_.gd||!1,l=an(k,h,d);Object.assign(g.headers,l);(f=g.headers.Authorization)&&!h&&k&&(g.headers["x-origin"]=window.location.origin);var m="/youtubei/"+a.config_.cd+"/"+b,n={alt:"json"},r=a.config_.fd&&f;r=r&&f.startsWith("Bearer");r||(n.key=a.config_.bd);var p=zj(""+h+m,n||{},!0);C("ytNetworklessLoggingInitializationOptions")&& lo.isNwlInitialized?Hl().then(function(x){e(x)}):e(!1)} ;function no(){var a=C("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)} ;var oo=B.ytPubsubPubsubInstance||new M,po=B.ytPubsubPubsubSubscribedKeys||{},qo=B.ytPubsubPubsubTopicToKeys||{},ro=B.ytPubsubPubsubIsSynchronous||{};M.prototype.subscribe=M.prototype.subscribe;M.prototype.unsubscribeByKey=M.prototype.rb;M.prototype.publish=M.prototype.bb;M.prototype.clear=M.prototype.clear;D("ytPubsubPubsubInstance",oo);D("ytPubsubPubsubTopicToKeys",qo);D("ytPubsubPubsubIsSynchronous",ro);D("ytPubsubPubsubSubscribedKeys",po);var so=Symbol("injectionDeps");function to(){this.key=Om} function uo(){this.h=new Map;this.g=new Map} uo.prototype.resolve=function(a){return a instanceof to?vo(this,a.key,[],!0):vo(this,a,[])}; function vo(a,b,c,d){d=void 0===d?!1:d;if(-1=d.length&&Ro(b)===d[0])return d;for(var e=[],f=0;f=a?cp||(cp=sp(function(){e();cp=void 0},0)):10<=f-h&&(tp(c,d.tier),g.i=f)} function mp(a,b){if("log_event"===a.endpoint){jp(a);var c=kp(a),d=new Map;d.set(c,[a.payload]);b&&(Xo=new b);return new bg(function(e,f){Xo&&Xo.isReady()?up(d,Xo,e,f,{bypassNetworkless:!0},!0):e()})}} function pp(a,b,c){if("log_event"===b.endpoint){jp(void 0,b);a=kp(b,!0);var d=new Map;d.set(a,[b.payload.toJSON()]);c&&(Xo=new c);return new bg(function(e){Xo&&Xo.isReady()?vp(d,Xo,e,{bypassNetworkless:!0},!0):e()})}} function kp(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Si;c.videoId?kd(d,1,td,$c(c.videoId)):c.playlistId&&kd(d,2,td,$c(c.playlistId));fp[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),ep[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c} function qp(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new bg(function(e,f){var g=rp(c,d);wp(g.h);wp(g.g);g.g=0;Xo&&Xo.isReady()?void 0===d&&V("enable_web_tiered_gel")?xp(e,f,a,b,c,300):xp(e,f,a,b,c,d):(tp(c,d),e())})} function xp(a,b,c,d,e,f){var g=Xo;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;var h=new Map,k=new Map,l={isJspb:e,cttAuthInfo:d,tier:f},m={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=V("enable_web_tiered_gel")?hp().smartExtractMatchingEntries({keys:[l,m],sizeLimit:1E3}):hp().extractMatchingEntries(m),h.set(d,b),vp(h,g,a,c)):(h=V("enable_web_tiered_gel")?hp().smartExtractMatchingEntries({keys:[l,m],sizeLimit:1E3}):hp().extractMatchingEntries(m),k.set(d,h),up(k,g,a,b,c));else if(e){b=u(Object.keys(gp)); for(d=b.next();!d.done;d=b.next())k=d.value,f=V("enable_web_tiered_gel")?hp().smartExtractMatchingEntries({keys:[l,m],sizeLimit:1E3}):hp().extractMatchingEntries({isJspb:!0,cttAuthInfo:k}),0Wo&&(a=1);Yi("BATCH_CLIENT_COUNTER",a);return a} function yp(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]} function Ep(a,b,c){if(sd(c,1))var d=1;else if(c.getPlaylistId())d=2;else return;I(a,Si,4,c);a=nd(a,Bi,1)||new Bi;c=nd(a,Ai,3)||new Ai;var e=new zi;J(e,2,b);H(e,1,d);qd(c,12,zi,e);I(a,Ai,3,c)} function Dp(a){for(var b=[],c=0;c>=8);d[e++]=g}return Cc(d,3)})):b.return(Promise.resolve(null))})} ;var aq={};function bq(a){return aq[a]||(aq[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))} ;var cq={},dq=[],sg=new M,eq={};function fq(){for(var a=u(dq),b=a.next();!b.done;b=a.next())b=b.value,b()} function gq(a,b){var c;"yt:"===a.tagName.toLowerCase().substr(0,3)?c=a.getAttribute(b):c=a?a.dataset?a.dataset[bq(b)]:a.getAttribute("data-"+b):null;return c} function hq(a){sg.bb.apply(sg,arguments)} ;function iq(a){this.g=a||{};a=[this.g,window.YTConfig||{}];for(var b=0;b')}; q.getOptions=function(a){return this.ja.namespaces?a?this.ja[a]?this.ja[a].options||[]:[]:this.ja.namespaces||[]:[]}; q.getOption=function(a,b){if(this.ja.namespaces&&a&&b&&this.ja[a])return this.ja[a][b]}; function Nq(a){if("iframe"!==a.tagName.toLowerCase()){var b=gq(a,"videoid");b&&(b={videoId:b,width:gq(a,"width"),height:gq(a,"height")},new xq(a,b))}} ;D("YT.PlayerState.UNSTARTED",-1);D("YT.PlayerState.ENDED",0);D("YT.PlayerState.PLAYING",1);D("YT.PlayerState.PAUSED",2);D("YT.PlayerState.BUFFERING",3);D("YT.PlayerState.CUED",5);D("YT.get",function(a){return cq[a]}); D("YT.scan",fq);D("YT.subscribe",function(a,b,c){sg.subscribe(a,b,c);eq[a]=!0;for(var d in cq)cq.hasOwnProperty(d)&&rq(cq[d],a)}); D("YT.unsubscribe",function(a,b,c){rg(a,b,c)}); D("YT.Player",xq);oq.prototype.destroy=oq.prototype.destroy;oq.prototype.setSize=oq.prototype.setSize;oq.prototype.getIframe=oq.prototype.getIframe;oq.prototype.addEventListener=oq.prototype.addEventListener;xq.prototype.getVideoEmbedCode=xq.prototype.getVideoEmbedCode;xq.prototype.getOptions=xq.prototype.getOptions;xq.prototype.getOption=xq.prototype.getOption; dq.push(function(a){var b=a;b||(b=document);a=gb(b.getElementsByTagName("yt:player"));var c=b||document;if(c.querySelectorAll&&c.querySelector)b=c.querySelectorAll(".yt-player");else{var d;c=document;b=b||c;if(b.querySelectorAll&&b.querySelector)b=b.querySelectorAll(".yt-player");else if(b.getElementsByClassName){var e=b.getElementsByClassName("yt-player");b=e}else{e=b.getElementsByTagName("*");var f={};for(c=d=0;b=e[c];c++){var g=b.className,h;if(h="function"==typeof g.split)h=0<=bb(g.split(/\s+/), "yt-player");h&&(f[d++]=b)}f.length=d;b=f}}b=gb(b);cb(fb(a,b),Nq)}); "undefined"!=typeof YTConfig&&YTConfig.parsetags&&"onload"!=YTConfig.parsetags||fq();var Oq=B.onYTReady;Oq&&Oq();var Pq=B.onYouTubeIframeAPIReady;Pq&&Pq();var Qq=B.onYouTubePlayerAPIReady;Qq&&Qq();}).call(this);