(function(){'use strict';var g;function h(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); m("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;c0:!1} function G(){return F()?D("Chromium"):(E("Chrome")||E("CriOS"))&&!(F()?0:E("Edge"))||E("Silk")} ;!E("Android")||G();G();E("Safari")&&(G()||(F()?0:E("Coast"))||(F()?0:E("Opera"))||(F()?0:E("Edge"))||(F()?D("Microsoft Edge"):E("Edg/"))||F()&&D("Opera"));var H=Math.max,fa=H.apply,I=Object.values({ca:1,aa:2,Z:4,fa:8,ea:16,da:32,U:64,ha:128,Y:256,X:512,ba:1024,V:2048,ga:4096,W:8192}),J;if(I instanceof Array)J=I;else{for(var ha=n(I),K,L=[];!(K=ha.next()).done;)L.push(K.value);J=L}fa.call(H,Math,J);function M(){this.s=this.s;this.B=this.B} M.prototype.s=!1;M.prototype.dispose=function(){this.s||(this.s=!0,this.G())}; M.prototype[Symbol.dispose]=function(){this.dispose()}; M.prototype.G=function(){if(this.B)for(;this.B.length;)this.B.shift()()};var N=u.window,ia,ja,O=(N==null?void 0:(ia=N.yt)==null?void 0:ia.config_)||(N==null?void 0:(ja=N.ytcfg)==null?void 0:ja.data_)||{};w("yt.config_",O);function P(a,b){return a in O?O[a]:b} ;function ka(a,b){a=P("EXPERIMENT_FLAGS",{})[a];return a===void 0&&b!==void 0?b:Number(a||0)} ;var la=ka("web_emulated_idle_callback_delay",300),ma=1E3/60-3,na=[8,5,4,3,2,1,0]; function Q(a){a=a===void 0?{}:a;M.call(this);this.i=[];this.h={};this.D=this.g=0;this.C=this.l=!1;this.u=[];this.A=this.F=!1;for(var b=n(na),c=b.next();!c.done;c=b.next())this.i[c.value]=[];this.j=0;this.N=a.timeout||1;this.o=ma;this.m=0;this.H=this.R.bind(this);this.M=this.T.bind(this);this.J=this.O.bind(this);this.K=this.P.bind(this);this.L=this.S.bind(this);if(b=!!window.requestIdleCallback&&!!window.cancelIdleCallback)b=P("EXPERIMENT_FLAGS",{}).disable_scheduler_requestIdleCallback,b=!(typeof b=== "string"&&b==="false"?0:b);this.I=b;(this.v=a.useRaf!==!1&&!!window.requestAnimationFrame)&&document.addEventListener("visibilitychange",this.H)} Q.prototype=ca(M.prototype);Q.prototype.constructor=Q;if(t)t(Q,M);else for(var R in M)if(R!="prototype")if(Object.defineProperties){var qa=Object.getOwnPropertyDescriptor(M,R);qa&&Object.defineProperty(Q,R,qa)}else Q[R]=M[R];function ra(a,b){var c=Date.now();S(b);b=Date.now()-c;a.l||(a.o-=b)} function sa(a,b,c,d){++a.D;if(c===10)return ra(a,b),a.D;var e=a.D;a.h[e]=b;a.l&&!d?a.u.push({id:e,priority:c}):(a.i[c].push(e),a.C||a.l||(a.g!==0&&T(a)!==a.m&&U(a),a.start()));return e} function ta(a){a.u.length=0;for(var b=5;b>=0;b--)a.i[b].length=0;a.i[8].length=0;a.h={};U(a)} function T(a){if(a.i[8].length){if(a.A)return 4;if(!document.hidden&&a.v)return 3}for(var b=5;b>=a.j;b--)if(a.i[b].length>0)return b>0?!document.hidden&&a.v?3:2:1;return 0} function ua(a){var b=v("yt.logging.errors.log");b&&b(a)} function S(a){try{a()}catch(b){ua(b)}} function va(a){for(var b=n(na),c=b.next();!c.done;c=b.next())if(a.i[c.value].length)return!0;return!1} g=Q.prototype;g.P=function(a){var b=void 0;a&&(b=a.timeRemaining());this.F=!0;V(this,b);this.F=!1}; g.T=function(){V(this)}; g.O=function(){wa(this)}; g.S=function(a){this.A=!0;var b=T(this);b===4&&b!==this.m&&(U(this),this.start());V(this,void 0,a);this.A=!1}; g.R=function(){document.hidden||wa(this);this.g&&(U(this),this.start())}; function wa(a){U(a);a.l=!0;for(var b=Date.now(),c=a.i[8];c.length;){var d=c.shift(),e=a.h[d];delete a.h[d];e&&S(e)}xa(a);a.l=!1;va(a)&&a.start();a.o-=Date.now()-b} function xa(a){for(var b=0,c=a.u.length;bd?a.j:d;if(!(Date.now()>=b)){do{a:{c=a;e=d;for(f=3;f>=e;f--)for(var y=c.i[f];y.length;){var oa=y.shift(),pa=c.h[oa];delete c.h[oa];if(pa){c=pa;break a}}c=null}c&&S(c)}while(c&&Date.now()a&&(b.j=a,b.start())} function La(){window.clearTimeout(Y);var a=Z();a.j=0;a.start()} ;v("yt.scheduler.initialized")||(w("yt.scheduler.instance.dispose",za),w("yt.scheduler.instance.addJob",Ba),w("yt.scheduler.instance.addImmediateJob",Ca),w("yt.scheduler.instance.cancelJob",Ea),w("yt.scheduler.instance.cancelAllJobs",Aa),w("yt.scheduler.instance.start",Ga),w("yt.scheduler.instance.pause",Ha),w("yt.scheduler.instance.setPriorityThreshold",Ja),w("yt.scheduler.instance.enablePriorityThreshold",Ka),w("yt.scheduler.instance.clearPriorityThreshold",La),w("yt.scheduler.initialized",!0));}).call(this);